:root {
  --bg: #060711;
  --bg-2: #090b17;
  --surface: rgba(15, 17, 34, .66);
  --surface-strong: rgba(18, 20, 40, .9);
  --line: rgba(255,255,255,.085);
  --line-strong: rgba(255,255,255,.16);
  --text: #f5f6ff;
  --muted: #9095aa;
  --muted-2: #686d83;
  --violet: #8b5cf6;
  --violet-2: #b59cff;
  --cyan: #55d7ff;
  --green: #47e6a5;
  --red: #ff6d88;
  --shadow: 0 24px 80px rgba(0,0,0,.35);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at 50% -20%, rgba(103,65,217,.22), transparent 38%),
    linear-gradient(180deg, #070812 0%, #060711 60%, #05060d 100%);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow-x: hidden;
}

button, input { font: inherit; }
a { color: inherit; }
::selection { background: rgba(139,92,246,.45); }

.noise {
  position: fixed; inset: 0; z-index: -1; pointer-events: none; opacity: .025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 160 160' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.9'/%3E%3C/svg%3E");
}
.grid-bg {
  position: fixed; z-index: -3; inset: 0; pointer-events: none; opacity: .22;
  background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: linear-gradient(to bottom, black, transparent 85%);
}
.aurora { position: fixed; z-index: -2; width: 520px; height: 520px; border-radius: 999px; filter: blur(110px); opacity: .12; pointer-events: none; animation: drift 13s ease-in-out infinite alternate; }
.aurora-a { background: #8756ff; top: 8%; left: -180px; }
.aurora-b { background: #2dbbff; top: 34%; right: -240px; animation-delay: -5s; }
@keyframes drift { to { transform: translate3d(80px, 40px, 0) scale(1.13); } }

.topbar {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  height: 88px;
  display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid rgba(255,255,255,.055);
}
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; position: relative;
  background: linear-gradient(145deg, rgba(139,92,246,.28), rgba(85,215,255,.08));
  border: 1px solid rgba(176,147,255,.3); box-shadow: inset 0 1px rgba(255,255,255,.13), 0 10px 30px rgba(95,65,180,.18);
}
.brand-mark::before, .brand-mark::after, .brand-mark span { content:""; position:absolute; border: 2px solid var(--violet-2); transform: rotate(45deg); border-radius: 3px; }
.brand-mark::before { width: 14px; height: 14px; opacity: .95; }
.brand-mark::after { width: 7px; height: 7px; background: var(--violet-2); box-shadow: 0 0 18px var(--violet); }
.brand-copy { display:flex; flex-direction:column; line-height:1; }
.brand-copy strong { font-size: 14px; letter-spacing: .19em; font-weight: 800; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 9px; letter-spacing: .33em; }
.topbar-right { display:flex; align-items:center; gap:10px; }
.live-pill { height: 36px; padding:0 13px; border-radius:999px; display:flex; align-items:center; gap:8px; color:#c8ccdc; font-size:12px; border:1px solid var(--line); background:rgba(12,14,27,.55); backdrop-filter: blur(12px); }
.live-pill i { width:7px; height:7px; border-radius:50%; background:var(--green); box-shadow:0 0 0 4px rgba(71,230,165,.08),0 0 14px rgba(71,230,165,.5); animation:pulse 2s infinite; }
@keyframes pulse { 50% { opacity:.55; box-shadow:0 0 0 7px rgba(71,230,165,0),0 0 8px rgba(71,230,165,.3); } }
.icon-btn { width:36px; height:36px; border-radius:10px; display:grid; place-items:center; color:#cfd3e5; border:1px solid var(--line); background:rgba(12,14,27,.55); cursor:pointer; transition:.2s ease; }
.icon-btn:hover { transform:translateY(-1px); border-color:rgba(139,92,246,.38); background:rgba(139,92,246,.1); }
.icon-btn.loading svg { animation:spin .8s linear infinite; }
.icon-btn svg { width:17px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
@keyframes spin { to { transform:rotate(360deg); } }

main { width:min(1180px, calc(100% - 40px)); margin:0 auto; }
.hero { padding: 104px 0 46px; max-width: 900px; }
.eyebrow { color:#aaa0ca; font-size:11px; letter-spacing:.22em; font-weight:700; display:flex; align-items:center; gap:10px; }
.eyebrow span { width:24px; height:1px; background:linear-gradient(90deg,var(--violet),transparent); }
.hero h1 { margin:24px 0 22px; font-size:clamp(48px,7.1vw,88px); line-height:.96; letter-spacing:-.052em; font-weight:760; }
.hero h1 em { font-style:normal; font-weight:650; background:linear-gradient(100deg,#b7a0ff 5%,#7cd9ff 74%); -webkit-background-clip:text; background-clip:text; color:transparent; text-shadow:0 0 50px rgba(139,92,246,.08); }
.hero-copy { margin:0; max-width:720px; color:#9ba0b6; font-size:16px; line-height:1.75; }
.hero-copy strong { color:#d9dced; font-weight:600; }
.hero-actions { margin-top:34px; display:flex; align-items:center; gap:12px; }
.search-wrap { height:52px; width:min(540px,100%); display:flex; align-items:center; gap:12px; padding:0 13px 0 16px; border:1px solid var(--line); border-radius:15px; background:rgba(14,16,31,.68); backdrop-filter:blur(16px); box-shadow:inset 0 1px rgba(255,255,255,.025); transition:.2s ease; }
.search-wrap:focus-within { border-color:rgba(151,111,255,.52); box-shadow:0 0 0 4px rgba(139,92,246,.08); }
.search-wrap svg { width:18px; flex:0 0 auto; fill:none; stroke:#73798f; stroke-width:1.8; stroke-linecap:round; }
.search-wrap input { flex:1; min-width:0; color:var(--text); background:transparent; border:0; outline:0; font-size:14px; }
.search-wrap input::placeholder { color:#656a7e; }
kbd { color:#74798d; font-size:11px; border:1px solid var(--line); background:rgba(255,255,255,.025); border-radius:6px; padding:2px 7px; box-shadow:inset 0 -1px rgba(255,255,255,.04); }
.sort-switch { display:flex; padding:4px; border:1px solid var(--line); background:rgba(14,16,31,.65); border-radius:13px; height:52px; }
.sort-switch button { border:0; background:transparent; color:#777d92; border-radius:9px; padding:0 15px; cursor:pointer; font-size:12px; font-weight:650; transition:.18s ease; white-space:nowrap; }
.sort-switch button.active { color:#eeeaff; background:rgba(139,92,246,.14); box-shadow:inset 0 0 0 1px rgba(160,130,255,.16); }

.stats { display:grid; grid-template-columns:repeat(4,1fr); gap:12px; padding:18px 0 56px; }
.stat-card { min-height:92px; display:flex; align-items:center; gap:14px; padding:18px; border:1px solid var(--line); border-radius:18px; background:linear-gradient(145deg,rgba(19,21,39,.7),rgba(10,12,24,.5)); backdrop-filter:blur(14px); box-shadow:inset 0 1px rgba(255,255,255,.025); }
.stat-card strong { display:block; font-size:22px; letter-spacing:-.03em; }
.stat-card small { display:block; margin-top:4px; color:var(--muted-2); font-size:11px; white-space:nowrap; }
.stat-icon { width:40px; height:40px; flex:0 0 auto; border-radius:12px; display:grid; place-items:center; position:relative; border:1px solid rgba(255,255,255,.07); }
.stat-icon span { width:8px; height:8px; border-radius:3px; transform:rotate(45deg); }
.stat-icon.purple { background:rgba(139,92,246,.08); } .stat-icon.purple span { background:#9f79ff; box-shadow:0 0 14px rgba(159,121,255,.5); }
.stat-icon.green { background:rgba(71,230,165,.07); } .stat-icon.green span { background:var(--green); box-shadow:0 0 14px rgba(71,230,165,.45); }
.stat-icon.blue { background:rgba(85,152,255,.07); } .stat-icon.blue span { background:#6ca7ff; box-shadow:0 0 14px rgba(108,167,255,.45); }
.stat-icon.cyan { background:rgba(85,215,255,.07); } .stat-icon.cyan span { background:var(--cyan); box-shadow:0 0 14px rgba(85,215,255,.42); }
.source-card strong { max-width:150px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; font-size:14px; }

.network-section { padding: 16px 0 28px; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:20px; padding-bottom:20px; border-bottom:1px solid rgba(255,255,255,.055); }
.section-kicker { color:#777d94; font-size:9px; font-weight:800; letter-spacing:.24em; }
.section-head h2 { margin:6px 0 0; font-size:22px; letter-spacing:-.025em; }
.updated { text-align:right; }
.updated span { display:block; color:#62677c; font-size:10px; }
.updated strong { display:block; margin-top:4px; color:#a8adbf; font-size:11px; font-weight:600; }
.services-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:12px; margin-top:18px; }
.service-card { position:relative; min-height:194px; padding:20px; border-radius:19px; border:1px solid var(--line); background:linear-gradient(145deg,rgba(17,19,37,.78),rgba(9,11,23,.64)); overflow:hidden; transition:transform .22s ease,border-color .22s ease,background .22s ease,box-shadow .22s ease; box-shadow:inset 0 1px rgba(255,255,255,.025); }
.service-card::before { content:""; position:absolute; inset:-1px; opacity:0; pointer-events:none; background:radial-gradient(330px circle at var(--mx,50%) var(--my,0%),rgba(141,102,255,.12),transparent 48%); transition:opacity .25s; }
.service-card:hover { transform:translateY(-3px); border-color:rgba(162,132,255,.22); background:linear-gradient(145deg,rgba(22,24,46,.86),rgba(10,12,25,.72)); box-shadow:0 18px 45px rgba(0,0,0,.18),inset 0 1px rgba(255,255,255,.04); }
.service-card:hover::before { opacity:1; }
.card-top { display:flex; justify-content:space-between; align-items:flex-start; position:relative; z-index:1; }
.service-logo { width:44px; height:44px; border-radius:14px; display:grid; place-items:center; font-size:15px; font-weight:800; color:#d8cdff; background:linear-gradient(145deg,rgba(139,92,246,.17),rgba(85,215,255,.05)); border:1px solid rgba(164,133,255,.18); box-shadow:inset 0 1px rgba(255,255,255,.04); text-transform:uppercase; }
.status-chip { display:flex; align-items:center; gap:6px; height:27px; padding:0 9px; border-radius:999px; font-size:9px; font-weight:750; letter-spacing:.06em; border:1px solid; }
.status-chip i { width:5px; height:5px; border-radius:50%; }
.status-chip.online { color:#8cf0c4; background:rgba(71,230,165,.055); border-color:rgba(71,230,165,.15); } .status-chip.online i{background:var(--green);box-shadow:0 0 8px rgba(71,230,165,.6)}
.status-chip.offline { color:#d08a9a; background:rgba(255,109,136,.045); border-color:rgba(255,109,136,.12); } .status-chip.offline i{background:#d96e85}
.card-main { position:relative; z-index:1; margin-top:25px; }
.card-main h3 { margin:0; font-size:16px; letter-spacing:-.015em; }
.card-host { margin:6px 0 0; color:#6f748a; font-size:11px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.card-footer { position:relative; z-index:1; margin-top:22px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.card-meta { display:flex; align-items:center; gap:9px; color:#676d82; font-size:9px; }
.card-meta span { display:flex; align-items:center; gap:5px; }
.card-meta b { font-weight:650; color:#8f95a9; }
.open-link { height:31px; min-width:31px; border-radius:9px; display:flex; align-items:center; justify-content:center; gap:6px; color:#aea3d0; border:1px solid rgba(158,129,255,.13); background:rgba(139,92,246,.055); text-decoration:none; font-size:10px; font-weight:700; padding:0 10px; transition:.18s ease; }
.open-link:hover { color:#ece7ff; background:rgba(139,92,246,.13); border-color:rgba(158,129,255,.27); }
.open-link svg { width:12px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
.open-link.disabled { pointer-events:none; opacity:.45; }
.current-tag { color:#9f90c9; }

.skeleton-grid { margin-top:18px; }
.skeleton { min-height:194px; border-radius:19px; border:1px solid var(--line); background:linear-gradient(110deg,rgba(17,19,34,.6) 8%,rgba(29,31,53,.72) 18%,rgba(17,19,34,.6) 33%); background-size:200% 100%; animation:shimmer 1.35s linear infinite; }
@keyframes shimmer { to { background-position-x:-200%; } }
.hidden { display:none !important; }
.error-banner { margin:16px 0 0; padding:12px 14px; border-radius:12px; color:#d9b5be; font-size:11px; line-height:1.55; background:rgba(255,109,136,.045); border:1px solid rgba(255,109,136,.11); }
.empty-state { margin:24px 0; min-height:230px; display:grid; place-items:center; align-content:center; text-align:center; border:1px dashed rgba(255,255,255,.08); border-radius:19px; }
.empty-icon { color:#76679e; font-size:28px; }
.empty-state h3 { margin:10px 0 5px; font-size:15px; }
.empty-state p { margin:0; color:#6b7085; font-size:11px; }
.info-strip { margin:24px 0 56px; display:flex; justify-content:space-between; align-items:center; gap:20px; padding:16px 18px; border-radius:16px; border:1px solid var(--line); background:rgba(12,14,26,.52); }
.info-strip>div { display:flex; align-items:center; gap:11px; }
.info-strip p { margin:0; color:#7c8297; font-size:10px; line-height:1.5; }
.info-strip strong { color:#aeb3c7; font-weight:650; }
.pulse-dot { width:7px; height:7px; flex:0 0 auto; border-radius:50%; background:var(--green); box-shadow:0 0 12px rgba(71,230,165,.5); }
.mode-note { max-width:530px; text-align:right; }
footer { width:min(1180px,calc(100% - 40px)); margin:0 auto; min-height:78px; border-top:1px solid rgba(255,255,255,.05); display:flex; align-items:center; justify-content:center; gap:9px; color:#4f5468; font-size:10px; }
.footer-dot { color:#343849; }

.reveal { animation:reveal .6s cubic-bezier(.2,.75,.3,1) both; }
.delay-1 { animation-delay:.08s; }.delay-2{animation-delay:.14s}.delay-3{animation-delay:.2s}
@keyframes reveal { from{opacity:0;transform:translateY(14px)} to{opacity:1;transform:none} }

@media (max-width: 940px) {
  .stats { grid-template-columns:repeat(2,1fr); }
  .services-grid { grid-template-columns:repeat(2,1fr); }
  .hero { padding-top:76px; }
}
@media (max-width: 650px) {
  .topbar, main, footer { width:min(100% - 26px,1180px); }
  .topbar { height:72px; }
  .live-pill span { display:none; }
  .live-pill { width:36px; padding:0; justify-content:center; }
  .hero { padding:66px 0 34px; }
  .hero h1 { font-size:clamp(43px,14vw,66px); }
  .hero-copy { font-size:14px; }
  .hero-actions { align-items:stretch; flex-direction:column; }
  .search-wrap { width:100%; }
  .sort-switch { width:max-content; }
  .stats { grid-template-columns:1fr 1fr; padding-bottom:40px; }
  .stat-card { min-height:82px; padding:14px; gap:10px; }
  .stat-icon { width:34px;height:34px; }
  .stat-card strong{font-size:18px}.stat-card small{font-size:9px}
  .source-card strong { font-size:11px; }
  .services-grid { grid-template-columns:1fr; }
  .section-head { align-items:flex-start; }
  .updated { text-align:right; }
  .info-strip { align-items:flex-start; flex-direction:column; }
  .mode-note { text-align:left; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration:.001ms !important; animation-iteration-count:1 !important; scroll-behavior:auto !important; transition-duration:.001ms !important; }
}
