:root {
  --bg: #05070b;
  --panel: rgba(13, 18, 28, 0.82);
  --border: rgba(255, 255, 255, 0.08);
  --text: #f3f5f8;
  --muted: #98a2b3;
  --orange: #f36b38;
  --orange-hover: #ff7e4d;
  --cyan: #6bd6dc;
  --green: #22c55e;
  --red: #ef4444;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

.bg-grid {
  position: fixed; inset: 0; z-index: -3;
  background-image:
    linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 48px 48px;
}
.bg-glow {
  position: fixed; width: 520px; height: 520px; border-radius: 50%;
  filter: blur(140px); opacity: 0.16; z-index: -2; pointer-events: none;
}
.bg-glow-orange { top: -160px; left: -120px; background: var(--orange); }
.bg-glow-cyan { bottom: -180px; right: -120px; background: var(--cyan); }

.container { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* Navbar */
.navbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(5, 7, 11, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 16px;
}
.brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; color: var(--text);
  font-family: 'Rajdhani', sans-serif; font-weight: 700; font-size: 1.45rem; letter-spacing: 1px;
}
.brand-mark {
  width: 34px; height: 34px; border-radius: 8px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--orange), #b83b12);
  color: #fff; font-size: 1.2rem;
}
.brand-text span { color: var(--orange); }
.nav-links { display: flex; gap: 24px; }
.nav-links a {
  color: var(--muted); text-decoration: none; font-size: 0.92rem; font-weight: 500;
  transition: color .2s;
}
.nav-links a:hover { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 1px solid transparent; border-radius: 10px;
  font-weight: 600; font-size: 0.92rem; text-decoration: none; cursor: pointer;
  padding: 11px 20px; transition: all .2s ease;
}
.btn-sm { padding: 8px 14px; font-size: 0.84rem; }
.btn-lg { padding: 14px 26px; font-size: 0.98rem; }
.btn-full { width: 100%; }
.btn-primary {
  background: linear-gradient(135deg, var(--orange), #d94e1f);
  color: #fff; box-shadow: 0 8px 24px rgba(243, 107, 56, 0.25);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--orange-hover), var(--orange)); transform: translateY(-1px); }
.btn-primary:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-outline {
  background: rgba(255,255,255,0.03);
  border-color: var(--border); color: var(--text);
}
.btn-outline:hover { border-color: var(--cyan); color: var(--cyan); }

/* Glass Card */
.glass {
  background: var(--panel);
  backdrop-filter: blur(16px);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}

/* Hero */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 36px; align-items: center; }
.live-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--border);
  font-size: 0.84rem; font-weight: 500; margin-bottom: 18px;
}
.dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }
.dot-loading { background: var(--cyan); }
.dot-online { background: var(--green); box-shadow: 0 0 10px var(--green); }
.dot-offline { background: var(--red); box-shadow: 0 0 10px var(--red); }

h1, h2, h3 { font-family: 'Rajdhani', sans-serif; letter-spacing: 0.5px; }
.hero h1 { font-size: clamp(2.4rem, 5vw, 3.8rem); line-height: 1.04; margin-bottom: 16px; }
.accent { color: var(--orange); }
.hero-sub { color: var(--muted); font-size: 1.02rem; max-width: 540px; margin-bottom: 28px; }
.hero-sub strong { color: var(--text); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Status Card */
.status-card { padding: 24px; }
.card-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.card-header h2 { font-size: 1.2rem; color: var(--cyan); }
.icon-btn {
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  color: var(--text); width: 32px; height: 32px; border-radius: 8px;
  cursor: pointer; font-size: 1rem;
}
.icon-btn:hover { border-color: var(--cyan); color: var(--cyan); }
.stat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.stat-box {
  background: rgba(5, 7, 11, 0.55); border: 1px solid var(--border);
  border-radius: 10px; padding: 12px 14px;
}
.stat-label { display: block; font-size: 0.72rem; color: var(--muted); letter-spacing: 0.8px; }
.stat-value { font-family: 'Rajdhani', sans-serif; font-size: 1.45rem; font-weight: 700; }
.stat-value.cyan { color: var(--cyan); }
.stat-value.online { color: var(--green); }
.stat-value.offline { color: var(--red); }

.channel-list { display: flex; flex-direction: column; gap: 8px; }
.channel-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 12px; border-radius: 8px;
  background: rgba(255,255,255,0.025); font-size: 0.9rem;
}
.badge {
  font-size: 0.75rem; font-weight: 600; padding: 3px 10px; border-radius: 999px;
  background: rgba(255,255,255,0.08); color: var(--muted);
}
.badge-on { background: rgba(34, 197, 94, 0.16); color: #4ade80; }
.badge-off { background: rgba(239, 68, 68, 0.16); color: #f87171; }

/* Sections */
.section { padding: 68px 0; }
.section-alt { background: rgba(255,255,255,0.015); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.eyebrow {
  display: inline-block; font-size: 0.78rem; font-weight: 700; letter-spacing: 1.4px;
  color: var(--cyan); margin-bottom: 6px;
}
.section h2 { font-size: 2.1rem; margin-bottom: 14px; }
.section-head { margin-bottom: 28px; }
.row-between { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

/* Register */
.split-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
.section-info p { color: var(--muted); margin-bottom: 20px; }
.perk-list { list-style: none; display: flex; flex-direction: column; gap: 12px; }
.perk-list li {
  padding: 12px 14px; border-radius: 10px;
  background: rgba(255,255,255,0.025); border-left: 3px solid var(--orange);
  font-size: 0.92rem; color: var(--muted);
}
.perk-list strong { color: var(--text); }

.form-card { padding: 28px; }
.form-card h3 { font-size: 1.5rem; margin-bottom: 18px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 0.86rem; font-weight: 600; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border-radius: 10px;
  background: #070b12; border: 1px solid var(--border);
  color: var(--text); font-size: 0.95rem; outline: none;
  transition: border-color .2s;
}
.field input:focus { border-color: var(--orange); }
.field small { display: block; margin-top: 5px; font-size: 0.78rem; color: var(--muted); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 76px; }
.pw-toggle {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--cyan); font-size: 0.8rem; font-weight: 600; cursor: pointer;
}

.alert {
  padding: 12px 14px; border-radius: 10px; font-size: 0.9rem; margin-bottom: 16px;
}
.alert.hidden { display: none; }
.alert-ok { background: rgba(34, 197, 94, 0.14); border: 1px solid rgba(34, 197, 94, 0.35); color: #86efac; }
.alert-err { background: rgba(239, 68, 68, 0.14); border: 1px solid rgba(239, 68, 68, 0.35); color: #fca5a5; }

/* Download */
.download-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; margin-bottom: 24px; }
.dl-card { padding: 26px; display: flex; flex-direction: column; gap: 12px; }
.dl-card p { color: var(--muted); font-size: 0.92rem; flex: 1; }
.dl-card code { background: rgba(255,255,255,0.08); padding: 2px 6px; border-radius: 5px; color: var(--cyan); }
.dl-tag {
  align-self: flex-start; font-size: 0.72rem; font-weight: 700; letter-spacing: 1px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(243, 107, 56, 0.18); color: var(--orange);
}
.cyan-tag { background: rgba(107, 214, 220, 0.15); color: var(--cyan); }

.specs-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; padding: 24px; }
.specs-grid h4 { font-family: 'Rajdhani', sans-serif; font-size: 1.15rem; color: var(--cyan); margin-bottom: 12px; }
.specs-grid ul { list-style: none; display: flex; flex-direction: column; gap: 8px; font-size: 0.88rem; color: var(--muted); }
.specs-grid li span { color: var(--text); font-weight: 600; }

/* Leaderboard */
.table-wrap { overflow-x: auto; }
.lb-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
.lb-table th, .lb-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.lb-table th { font-size: 0.76rem; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); background: rgba(255,255,255,0.02); }
.lb-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.lb-table tbody tr:last-child td { border-bottom: none; }
.rank-num {
  display: inline-grid; place-items: center; width: 28px; height: 28px;
  border-radius: 8px; font-weight: 700; font-size: 0.85rem;
  background: rgba(255,255,255,0.06);
}
.rank-1 { background: rgba(250, 204, 21, 0.2); color: #facc15; }
.rank-2 { background: rgba(203, 213, 225, 0.2); color: #e2e8f0; }
.rank-3 { background: rgba(249, 115, 22, 0.2); color: #fb923c; }
.center { text-align: center; }
.muted { color: var(--muted); }

/* Footer */
.footer { border-top: 1px solid var(--border); padding: 26px 0; font-size: 0.86rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }

@media (max-width: 860px) {
  .hero-grid, .split-grid, .download-grid, .specs-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .hero { padding: 48px 0 36px; }
}
