:root {
  --bg: #08080c;
  --bg-2: #0d0d15;
  --ink: #f5f3ea;
  --muted: #8c8c9e;
  --faint: #5a5a6c;
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 255, 255, 0.14);
  --panel: rgba(255, 255, 255, 0.026);
  --gold: #f5c451;
  --gold-bright: #ffd982;
  --gold-deep: #b8852a;
  --green: #5fd08a;
  --netflix: #ff2b3e;
  --disney: #3b82f6;
  --hbomax: #a06bff;
  --radius: 20px;
  --shadow: 0 30px 80px -40px rgba(0, 0, 0, 0.9);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

[hidden] {
  display: none !important;
}

html {
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  font-family: 'Satoshi', ui-sans-serif, system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.5;
}
body.auth-open {
  overflow: hidden;
}

/* ---------- atmosphere ---------- */
.ambient {
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(60% 50% at 78% -8%, rgba(245, 196, 81, 0.16), transparent 60%),
    radial-gradient(45% 40% at 8% 0%, rgba(160, 107, 255, 0.12), transparent 55%),
    radial-gradient(70% 60% at 50% 110%, rgba(59, 130, 246, 0.09), transparent 60%),
    linear-gradient(180deg, #0a0a12, #08080c 40%);
}
.grain {
  position: fixed;
  inset: -50%;
  z-index: -1;
  pointer-events: none;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 8s steps(6) infinite;
}
@keyframes grain {
  0%, 100% { transform: translate(0, 0); }
  20% { transform: translate(-4%, 3%); }
  40% { transform: translate(3%, -2%); }
  60% { transform: translate(-2%, -3%); }
  80% { transform: translate(2%, 4%); }
}

/* ---------- topbar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px clamp(18px, 5vw, 56px);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(8, 8, 12, 0.85), rgba(8, 8, 12, 0));
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 0 0 rgba(245, 196, 81, 0.6);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(245, 196, 81, 0.55); }
  70% { box-shadow: 0 0 0 10px rgba(245, 196, 81, 0); }
  100% { box-shadow: 0 0 0 0 rgba(245, 196, 81, 0); }
}
.brand-mark {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 18px;
}
.brand-tv { color: var(--gold); }
.topbar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}
.user-chip {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 14px;
  color: var(--muted);
}
.avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #1a1204;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold-deep));
  font-family: 'Clash Display', sans-serif;
}

/* ---------- buttons ---------- */
.btn {
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  border-radius: 12px;
  padding: 11px 18px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.25s var(--ease), background 0.25s, box-shadow 0.25s, opacity 0.25s;
  color: var(--ink);
}
.btn:active { transform: scale(0.97); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--line-strong);
}
.sync-icon { display: inline-block; transition: transform 0.6s var(--ease); }
.btn-ghost.spinning .sync-icon { animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.btn-primary {
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  color: #1c1405;
  box-shadow: 0 12px 30px -12px rgba(245, 196, 81, 0.7);
}
.btn-primary:hover { box-shadow: 0 16px 40px -12px rgba(245, 196, 81, 0.85); transform: translateY(-1px); }
.btn-block { width: 100%; justify-content: center; padding: 14px; margin-top: 6px; }
.btn:disabled { opacity: 0.55; cursor: default; }

/* ---------- layout ---------- */
.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 20px clamp(18px, 5vw, 56px) 80px;
  display: flex;
  flex-direction: column;
  gap: 26px;
}
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  backdrop-filter: blur(8px);
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 20px;
}
.panel-head h2 {
  font-family: 'Clash Display', sans-serif;
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.01em;
}
.muted { color: var(--muted); font-size: 13px; }

/* ---------- auth / landing ---------- */
.auth-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: clamp(20px, 4vw, 48px);
  overflow: hidden;
}
.auth-screen[hidden] { display: none; }

.auth-sky {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}
.auth-beam {
  position: absolute;
  left: 50%;
  top: -18%;
  width: min(90vw, 920px);
  height: 78vh;
  transform: translateX(-50%);
  background:
    radial-gradient(ellipse 55% 70% at 50% 0%, rgba(255, 217, 130, 0.22), transparent 70%),
    linear-gradient(180deg, rgba(245, 196, 81, 0.08), transparent 72%);
  filter: blur(2px);
  animation: beamBreathe 7s ease-in-out infinite;
}
@keyframes beamBreathe {
  0%, 100% { opacity: 0.7; transform: translateX(-50%) scaleY(1); }
  50% { opacity: 1; transform: translateX(-50%) scaleY(1.04); }
}
.auth-screen-glow {
  position: absolute;
  left: 50%;
  bottom: -20%;
  width: 120vw;
  height: 55vh;
  transform: translateX(-50%);
  background: radial-gradient(ellipse at 50% 0%, rgba(245, 196, 81, 0.1), transparent 60%);
}
.auth-orbit { position: absolute; inset: 0; }
.auth-flake {
  position: absolute;
  left: var(--x);
  top: var(--y);
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 12, 18, 0.55);
  backdrop-filter: blur(8px);
  opacity: 0;
  animation: flakeIn 0.9s var(--ease) forwards, flakeFloat 9s ease-in-out infinite;
  animation-delay: var(--d), var(--d);
}
.auth-flake.nf { color: #ff8a96; box-shadow: 0 0 24px -10px rgba(255, 43, 62, 0.7); }
.auth-flake.dx { color: #8eb6ff; box-shadow: 0 0 24px -10px rgba(59, 130, 246, 0.7); }
.auth-flake.mx { color: #c4a0ff; box-shadow: 0 0 24px -10px rgba(160, 107, 255, 0.7); }
.auth-flake.gold {
  color: #1a1208;
  background: linear-gradient(135deg, #ffd982, #b8852a);
  border-color: transparent;
  box-shadow: 0 10px 30px -12px rgba(245, 196, 81, 0.8);
  font-family: 'Clash Display', sans-serif;
}
@keyframes flakeIn {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes flakeFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(28px, 5vw, 64px);
  align-items: center;
}
.auth-hero {
  max-width: 34ch;
  animation: landIn 0.9s var(--ease) both;
}
.auth-brand {
  margin-bottom: 28px;
}
.auth-brand .brand-mark {
  font-size: clamp(20px, 3vw, 26px);
  letter-spacing: 0.16em;
}
.auth-kicker {
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-size: 11px;
  color: var(--gold);
  margin-bottom: 18px;
  animation: landIn 0.9s var(--ease) 0.08s both;
}
.auth-title {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: clamp(42px, 7vw, 72px);
  line-height: 0.96;
  letter-spacing: -0.03em;
  display: grid;
  gap: 0.08em;
  margin-bottom: 18px;
}
.auth-title-line {
  display: block;
  animation: landIn 0.95s var(--ease) both;
}
.auth-title-line:nth-child(1) { animation-delay: 0.12s; }
.auth-title-line:nth-child(2) { animation-delay: 0.22s; }
.auth-title-line.gold {
  background: linear-gradient(110deg, #fff6d6 10%, var(--gold-bright) 45%, var(--gold-deep) 90%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  background-size: 160% 100%;
  animation:
    landIn 0.95s var(--ease) 0.22s both,
    goldShimmer 5.5s ease-in-out 1.2s infinite;
}
@keyframes goldShimmer {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}
@keyframes landIn {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}
.auth-copy {
  color: var(--muted);
  margin: 0;
  max-width: 36ch;
  font-size: 16px;
  line-height: 1.55;
  animation: landIn 0.9s var(--ease) 0.3s both;
}

.auth-panel {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 26px;
  padding: clamp(22px, 3vw, 32px);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(8, 8, 14, 0.72);
  box-shadow:
    0 40px 100px -40px rgba(0, 0, 0, 0.95),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  animation: landIn 0.95s var(--ease) 0.18s both;
}
.auth-form { display: grid; gap: 15px; }
.auth-actions {
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 10px;
  margin-top: 4px;
}
.auth-actions .btn { justify-content: center; padding: 14px; }
.auth-form label span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 7px;
  letter-spacing: 0.02em;
}
.auth-form label:not(.consent-check) input {
  width: 100%;
  background: rgba(255, 255, 255, 0.035);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 14px;
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.auth-form label:not(.consent-check) input:focus {
  outline: none;
  border-color: rgba(245, 196, 81, 0.65);
  background: rgba(245, 196, 81, 0.05);
  box-shadow: 0 0 0 3px rgba(245, 196, 81, 0.12);
}
.auth-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
  color: var(--faint);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.auth-foot span {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  font-size: 10px;
  color: #1a1208;
  background: linear-gradient(135deg, #ffd982, #b8852a);
}
.auth-foot i {
  width: 18px;
  height: 1px;
  background: rgba(255, 255, 255, 0.14);
}

/* ---------- hero ---------- */
.hero {
  display: grid;
  grid-template-columns: 1.4fr 0.9fr;
  gap: 30px;
  align-items: center;
  padding: 40px clamp(24px, 4vw, 44px);
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(120% 120% at 100% 0%, rgba(245, 196, 81, 0.1), transparent 55%),
    var(--panel);
  position: relative;
  overflow: hidden;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-size: 11px;
  color: var(--gold);
  margin-bottom: 14px;
}
.balance {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: clamp(64px, 11vw, 116px);
  line-height: 0.92;
  letter-spacing: -0.03em;
  background: linear-gradient(170deg, #fff 8%, var(--gold-bright) 60%, var(--gold-deep));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-variant-numeric: tabular-nums;
}
.balance-unit {
  font-size: 0.24em;
  color: var(--muted);
  -webkit-text-fill-color: var(--muted);
  letter-spacing: 0;
  margin-left: 8px;
}
.hero-meta {
  display: flex;
  gap: 12px;
  margin-top: 22px;
  flex-wrap: wrap;
}
.delta, .streak {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  border: 1px solid var(--line);
}
.delta { background: rgba(95, 208, 138, 0.1); color: var(--green); border-color: rgba(95, 208, 138, 0.25); }
.streak { background: rgba(255, 255, 255, 0.04); }
.streak b { color: var(--gold-bright); }
.hero-sub { color: var(--muted); margin-top: 20px; max-width: 42ch; font-size: 14.5px; }

.redeem-card {
  margin-top: 22px;
  max-width: 38ch;
  padding: 14px 16px;
  border-radius: 14px;
  border: 1px solid rgba(245, 196, 81, 0.22);
  background: rgba(245, 196, 81, 0.06);
}
.redeem-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}
.redeem-label {
  font-family: 'Clash Display', sans-serif;
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--gold-bright);
}
.redeem-status {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  white-space: nowrap;
}
.redeem-status.ready { color: var(--green); }
.redeem-meter {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}
.redeem-meter i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, #b8852a, #ffd982);
  transition: width 1.1s cubic-bezier(.22, 1, .36, 1);
}
.redeem-copy {
  margin: 10px 0 0;
  font-size: 12.5px;
  line-height: 1.45;
  color: var(--muted);
}
.redeem-card .btn {
  margin-top: 12px;
  width: 100%;
  justify-content: center;
}

.onboard-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px clamp(20px, 3vw, 28px);
  border-radius: 20px;
  border: 1px solid rgba(255, 43, 62, 0.35);
  background:
    radial-gradient(90% 120% at 0% 0%, rgba(255, 43, 62, 0.18), transparent 55%),
    var(--panel);
}
.onboard-banner[hidden] { display: none !important; }
.onboard-banner h2 {
  font-family: 'Clash Display', sans-serif;
  font-size: 28px;
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.onboard-banner p { margin: 0; color: var(--muted); max-width: 46ch; font-size: 14px; }
.onboard-banner .btn { flex-shrink: 0; }

.hero-orb { position: relative; display: grid; place-items: center; min-height: 220px; }
.ring { width: 220px; height: 220px; transform: rotate(-90deg); }
.orb-center {
  position: absolute;
  display: grid;
  place-items: center;
  text-align: center;
}
.orb-num {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: 46px;
  line-height: 1;
}
.orb-label { font-size: 12px; color: var(--muted); letter-spacing: 0.04em; margin-top: 4px; }

/* ---------- connections ---------- */
.panel-head {
  align-items: flex-start;
}
.panel-sub {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--muted);
  max-width: 46ch;
}
.panel-head .lock-note { font-size: 12px; color: var(--muted); display: inline-flex; gap: 6px; align-items: center; margin-top: 4px; }
.service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.service-card {
  --brand: var(--gold);
  position: relative;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.02);
  overflow: hidden;
  transition: transform 0.35s var(--ease), border-color 0.35s, background 0.35s;
}
.service-card.primary {
  border-color: color-mix(in srgb, var(--brand) 55%, transparent);
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--brand) 18%, transparent);
}
.service-card.primary::before { opacity: 1; }
.service-card.later {
  opacity: 0.55;
}
.service-card.later:hover { opacity: 0.85; }
.sc-badge {
  display: inline-flex;
  align-items: center;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #1a1208;
  background: linear-gradient(135deg, #ffd982, #b8852a);
}
.service-card::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(80% 100% at 100% 0%, color-mix(in srgb, var(--brand) 22%, transparent), transparent 60%);
  opacity: 0;
  transition: opacity 0.4s;
}
.service-card > * {
  position: relative;
  z-index: 1;
}
.service-card:hover { transform: translateY(-4px); border-color: var(--line-strong); }
.service-card:hover::before { opacity: 1; }
.service-card.connected { border-color: color-mix(in srgb, var(--brand) 34%, transparent); }
.sc-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sc-logo {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: 0.02em;
  color: var(--brand);
}
.sc-status {
  font-size: 11px;
  padding: 4px 9px;
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.03em;
  border: 1px solid var(--line);
  color: var(--muted);
}
.sc-status.on { color: var(--green); border-color: rgba(95, 208, 138, 0.3); background: rgba(95, 208, 138, 0.08); }
.sc-status.warn { color: var(--gold-bright); border-color: rgba(245, 196, 81, 0.3); background: rgba(245, 196, 81, 0.08); }
.sc-body { min-height: 46px; }
.sc-account { font-size: 14px; font-weight: 600; }
.sc-meta { font-size: 12px; color: var(--muted); margin-top: 4px; }
.sc-empty { font-size: 13px; color: var(--muted); }
.sc-actions { margin-top: 16px; display: flex; gap: 8px; }
.sc-actions .btn { flex: 1; justify-content: center; padding: 10px; font-size: 13px; }
.sc-actions .link-btn { flex: 0 0 auto; }
.link-btn {
  background: none;
  border: none;
  color: var(--faint);
  font-size: 12px;
  cursor: pointer;
  font-family: inherit;
  padding: 8px;
  transition: color 0.2s;
}
.link-btn:hover { color: var(--netflix); }

/* ---------- charts ---------- */
.charts { display: grid; grid-template-columns: 1.7fr 1fr; gap: 26px; }
.area-wrap { position: relative; height: 220px; }
#areaChart { width: 100%; height: 200px; display: block; }
.area-x { display: flex; justify-content: space-between; color: var(--faint); font-size: 11px; margin-top: 6px; }

.donut-wrap { display: flex; flex-direction: column; align-items: center; gap: 18px; }
#donut { width: 180px; height: 180px; }
.donut-legend { display: flex; flex-direction: column; gap: 10px; width: 100%; }
.leg-row { display: flex; align-items: center; gap: 10px; font-size: 13px; }
.leg-dot { width: 10px; height: 10px; border-radius: 3px; }
.leg-name { flex: 1; color: var(--ink); }
.leg-val { color: var(--muted); font-variant-numeric: tabular-nums; }

/* ---------- heatmap ---------- */
.heatmap {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 6px;
}
.heat-cell {
  aspect-ratio: 1;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.04);
  transition: transform 0.2s;
}
.heat-cell:hover { transform: scale(1.18); }
.heat-key { display: flex; align-items: center; gap: 5px; justify-content: flex-end; margin-top: 14px; font-size: 11px; color: var(--faint); }
.heat-key i { width: 12px; height: 12px; border-radius: 3px; }
.heat-key i:nth-child(2) { background: rgba(245, 196, 81, 0.15); }
.heat-key i:nth-child(3) { background: rgba(245, 196, 81, 0.4); }
.heat-key i:nth-child(4) { background: rgba(245, 196, 81, 0.7); }
.heat-key i:nth-child(5) { background: var(--gold); }

/* ---------- feed ---------- */
.feed {
  display: flex;
  flex-direction: column;
  max-height: min(760px, 72vh);
  overflow-y: auto;
  padding-right: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(245, 196, 81, 0.45) rgba(255, 255, 255, 0.05);
}
.feed::-webkit-scrollbar { width: 8px; }
.feed::-webkit-scrollbar-track { background: rgba(255, 255, 255, 0.04); border-radius: 999px; }
.feed::-webkit-scrollbar-thumb { background: rgba(245, 196, 81, 0.45); border-radius: 999px; }
.feed-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 13px 4px;
  border-top: 1px solid var(--line);
}
.feed-row:first-child { border-top: none; }
.feed-badge {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #fff;
  flex-shrink: 0;
}
.feed-main { min-width: 0; }
.feed-title { font-size: 14.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.feed-sub { font-size: 12px; color: var(--muted); margin-top: 3px; display: flex; align-items: center; gap: 8px; }
.feed-prog { width: 70px; height: 4px; border-radius: 3px; background: rgba(255, 255, 255, 0.1); overflow: hidden; }
.feed-prog i { display: block; height: 100%; background: var(--gold); border-radius: 3px; }
.feed-right { text-align: right; flex-shrink: 0; }
.feed-pts { font-family: 'Clash Display', sans-serif; font-weight: 600; color: var(--gold-bright); font-size: 14px; }
.feed-time { font-size: 11px; color: var(--faint); margin-top: 2px; }
.feed-empty { color: var(--muted); text-align: center; padding: 40px 0; font-size: 14px; }
.feed-more {
  margin: 14px 4px 2px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.045);
  color: var(--gold-bright);
  border-radius: 12px;
  padding: 11px 14px;
  font-family: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s, transform 0.2s;
}
.feed-more:hover:not(:disabled) {
  background: rgba(245, 196, 81, 0.09);
  border-color: rgba(245, 196, 81, 0.28);
  transform: translateY(-1px);
}
.feed-more:disabled {
  cursor: default;
  opacity: 0.65;
}

.foot { text-align: center; color: var(--faint); font-size: 12px; padding-top: 10px; }

/* ---------- modal ---------- */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: rgba(4, 4, 8, 0.7);
  backdrop-filter: blur(10px);
  display: grid;
  place-items: center;
  padding: 20px;
  animation: fade 0.3s var(--ease);
}
.modal-backdrop[hidden] { display: none; }
@keyframes fade { from { opacity: 0; } }
.modal {
  width: min(430px, 100%);
  background: linear-gradient(180deg, #14141d, #0e0e15);
  border: 1px solid var(--line-strong);
  border-radius: 22px;
  padding: 30px;
  position: relative;
  box-shadow: var(--shadow);
  animation: rise 0.4s var(--ease);
}
@keyframes rise { from { opacity: 0; transform: translateY(18px) scale(0.98); } }
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 15px;
  cursor: pointer;
}
.modal-service {
  font-family: 'Clash Display', sans-serif;
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}
.modal h3 { font-family: 'Clash Display', sans-serif; font-weight: 600; font-size: 22px; }
.modal-sub { color: var(--muted); font-size: 13.5px; margin: 8px 0 22px; }

.connect-progress {
  margin-top: 4px;
}
.connect-progress[hidden] { display: none; }
.connect-progress-row {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}
.connect-spinner {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  border: 2px solid rgba(255, 255, 255, 0.12);
  border-top-color: var(--gold);
  animation: spin 0.8s linear infinite;
  flex-shrink: 0;
}
.connect-progress-title {
  font-size: 15px;
  font-weight: 750;
}
.connect-progress-meta {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12.5px;
}
.connect-progress-copy {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0 0 16px;
}
.btn-secondary {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  font-weight: 750;
}
.btn-secondary:hover {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.07);
}
@keyframes spin { to { transform: rotate(360deg); } }
#connectForm label { display: block; margin-bottom: 15px; }
#connectForm label span { display: block; font-size: 12px; color: var(--muted); margin-bottom: 7px; letter-spacing: 0.02em; }
#connectForm label:not(.consent-check) input {
  width: 100%;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 13px 14px;
  color: var(--ink);
  font-family: inherit;
  font-size: 14.5px;
  transition: border-color 0.2s, background 0.2s;
}
#connectForm label:not(.consent-check) input:focus {
  outline: none;
  border-color: var(--gold);
  background: rgba(245, 196, 81, 0.05);
}
.secure-row {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 11.5px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.025);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 11px 13px;
  margin: 4px 0 6px;
  line-height: 1.45;
}
.consent-check {
  display: grid !important;
  grid-template-columns: 18px 1fr;
  align-items: start;
  gap: 9px;
  margin: 11px 0 12px !important;
  cursor: pointer;
}
.consent-check input {
  width: 16px !important;
  height: 16px;
  margin-top: 2px;
  accent-color: var(--gold);
}
.consent-check span {
  margin: 0 !important;
  line-height: 1.4;
}

/* ---------- toasts ---------- */
.toast-wrap {
  position: fixed;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 80;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}
.toast {
  background: #16161f;
  border: 1px solid var(--line-strong);
  border-left: 3px solid var(--gold);
  padding: 13px 18px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow);
  animation: toastIn 0.4s var(--ease);
  display: flex;
  gap: 10px;
  align-items: center;
}
.toast.good { border-left-color: var(--green); }
.toast.bad { border-left-color: var(--netflix); }
.toast b { color: var(--gold-bright); font-family: 'Clash Display', sans-serif; }
@keyframes toastIn { from { opacity: 0; transform: translateY(14px); } }

.netflix-helper {
  display: grid;
  gap: 14px;
}
.netflix-helper[hidden] { display: none !important; }
.nf-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}
.nf-check {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.02);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.nf-check::before {
  content: '';
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}
.nf-check.on {
  color: var(--ink);
  border-color: rgba(95, 208, 138, 0.35);
  background: rgba(95, 208, 138, 0.08);
}
.nf-check.on::before {
  border-color: var(--green);
  background:
    radial-gradient(circle at center, var(--green) 0 35%, transparent 36%),
    rgba(95, 208, 138, 0.15);
}
.nf-check.warn {
  border-color: rgba(245, 196, 81, 0.35);
  color: var(--gold-bright);
}
.nf-install-details {
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.02);
  color: var(--muted);
  font-size: 13px;
}
.nf-install-details summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 600;
}
.nf-install-details[open] summary { margin-bottom: 10px; }
.nf-step { display: grid; gap: 10px; }
.nf-howto {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  display: grid;
  gap: 6px;
}
.nf-howto a { color: var(--gold-bright); }
.nf-howto code {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 1px 6px;
  font-size: 12px;
}
.nf-version {
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 600;
}
.nf-copy {
  margin-left: 6px;
  border: 1px solid var(--line-strong);
  background: transparent;
  color: var(--gold-bright);
  border-radius: 999px;
  padding: 2px 8px;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.nf-copy:hover { border-color: var(--gold); }
.netflix-helper-note {
  margin: 0;
  color: var(--faint);
  font-size: 12px;
  line-height: 1.4;
  min-height: 1.2em;
}
.netflix-helper-note:empty { display: none; }

/* ---------- reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  animation: revealUp 0.7s var(--ease) forwards;
  animation-delay: calc(var(--d, 0) * 90ms + 60ms);
}
@keyframes revealUp { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  .reveal { animation: none; opacity: 1; transform: none; }
  .grain { animation: none; }
}

/* ---------- responsive ---------- */
@media (max-width: 900px) {
  .hero { grid-template-columns: 1fr; }
  .hero-orb { order: -1; }
  .charts { grid-template-columns: 1fr; }
  .service-grid { grid-template-columns: 1fr; }
  .onboard-banner { flex-direction: column; align-items: stretch; }
  .onboard-banner .btn { width: 100%; justify-content: center; }
  .auth-shell { grid-template-columns: 1fr; gap: 28px; }
  .auth-hero { max-width: none; text-align: center; margin: 0 auto; }
  .auth-brand { justify-content: center; }
  .auth-copy { margin: 0 auto; }
  .auth-flake { display: none; }
  .auth-flake.gold { display: inline-flex; }
}
@media (max-width: 560px) {
  .topbar-right .user-chip span:last-child { display: none; }
  .btn-ghost { padding: 10px 12px; }
  .auth-actions { grid-template-columns: 1fr; }
  .auth-title { font-size: clamp(36px, 11vw, 48px); }
}
