/* pro.geminichong.com
 * Design: Revolut (structure / typography / pill buttons / 20px cards)
 *       + Spotify (vibrant green accents / uppercase CTAs / elevation shadows)
 *
 * Two-mode rhythm: alternating #0a0a0a (storytelling) and #16181a (catalogue).
 * Cobalt violet #494fdf reserved for featured balance card + brand wordmark.
 * Spotify green #1ed760 reserved for "+earn" / milestones / streak fire.
 */

:root {
  /* Revolut palette */
  --rev-violet: #494fdf;
  --rev-violet-bright: #4f55f1;
  --rev-violet-deep: #3a40c4;

  /* Spotify palette */
  --spot-green: #1ed760;
  --spot-green-dim: #169c44;
  --spot-orange: #ffa42b;

  /* Canvas */
  --canvas-deep: #0a0a0a;
  --canvas-elevated: #16181a;
  --canvas-card: #1f1f1f;
  --canvas-nested: #252525;

  /* Ink */
  --ink: #ffffff;
  --ink-mute: #b3b3b3;
  --ink-stone: #8d969e;
  --ink-dim: #505a63;
  --hairline: rgba(255,255,255,0.12);
  --hairline-strong: rgba(255,255,255,0.22);

  /* Semantic */
  --pink: #e61e49;
  --warn: #ec7e00;
  --danger: #e23b4a;

  /* Shadows (Spotify) */
  --shadow-md: 0 8px 24px rgba(0,0,0,0.5);
  --shadow-sm: 0 4px 12px rgba(0,0,0,0.35);
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--canvas-deep);
  color: var(--ink);
  font-family: 'Inter', -apple-system, "PingFang SC", "Microsoft YaHei",
               "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--ink); text-decoration: none; }
a:hover { opacity: 0.7; }

button { font-family: inherit; cursor: pointer; border: none; outline: none; }

input, textarea {
  font-family: inherit;
  font-size: 16px;
  color: var(--ink);
  background: var(--canvas-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 16px;
  outline: none;
  width: 100%;
}
input:focus, textarea:focus {
  border-color: var(--hairline-strong);
  background: var(--canvas-nested);
}

/* ── Typography (Revolut display + Spotify uppercase) ──────────────────── */
.display-xl {
  font-size: clamp(48px, 8vw, 80px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.04em;
}
.display-lg {
  font-size: clamp(36px, 5.5vw, 48px);
  font-weight: 500;
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.heading-lg {
  font-size: clamp(24px, 3.5vw, 32px);
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.body-lg { font-size: 18px; font-weight: 400; line-height: 1.56; }
.body-md { font-size: 16px; font-weight: 400; line-height: 1.5; }
.caption { font-size: 14px; font-weight: 400; color: var(--ink-mute); }
.eyebrow {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ── Nav ────────────────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10,10,10,0.85);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--hairline);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px;
}
.nav-brand {
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.01em;
}
.nav-actions { display: flex; gap: 8px; align-items: center; }
.nav-actions a {
  font-size: 14px; font-weight: 500;
  padding: 8px 14px;
  border-radius: 9999px;
  color: var(--ink-mute);
}
.nav-actions a:hover { color: var(--ink); background: var(--canvas-card); opacity: 1; }
.nav-actions a.pill-active {
  background: var(--ink);
  color: #000;
}

/* ── Container ──────────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.narrow    { max-width: 760px;  margin: 0 auto; padding: 0 32px; }

/* ── Buttons (Revolut pill + Spotify uppercase for CTAs) ──────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px;
  height: 48px;
  padding: 0 28px;
  border-radius: 9999px;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  transition: all 0.15s ease;
}
.btn-primary {
  background: var(--ink);
  color: #000;
}
.btn-primary:hover { background: #c9c9cd; }
.btn-secondary {
  background: var(--canvas-card);
  color: var(--ink);
  border: 1px solid var(--hairline-strong);
}
.btn-secondary:hover { background: var(--canvas-nested); }
.btn-violet {
  background: var(--rev-violet);
  color: #fff;
}
.btn-violet:hover { background: var(--rev-violet-bright); }
.btn-green {
  background: var(--spot-green);
  color: #000;
}
.btn-green:hover { background: #2bea73; }
.btn-cta {
  /* Spotify uppercase pop on hero CTAs */
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  font-size: 14px;
  padding: 0 32px;
  height: 52px;
}
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none !important; }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
/* anchor-as-button: override the global a:hover opacity dim */
a.btn:hover { opacity: 1; }

/* ── Cards ─────────────────────────────────────────────────────────── */
.card {
  background: var(--canvas-elevated);
  border-radius: 20px;
  padding: 32px;
}
.card-nested {
  background: var(--canvas-card);
  border-radius: 16px;
  padding: 20px;
}

/* ── Hero (with optional video background) ─────────────────────────── */
.hero {
  position: relative;
  overflow: hidden;
  padding: 80px 32px 60px;
  text-align: center;
  background-color: var(--canvas-deep);
}
/* Text halo — soft dark glow so headlines / sub / CTAs read clearly even
   when particles drift behind them. Layered (20/40/60px) gives a smooth
   falloff instead of a hard rectangle. */
.hero h1,
.hero .sub,
.hero .eyebrow {
  text-shadow:
    0 0 18px rgba(10,10,10,0.95),
    0 0 36px rgba(10,10,10,0.75),
    0 0 60px rgba(10,10,10,0.55);
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  /* fade in once metadata loads (set by JS) */
  opacity: 0;
  transition: opacity 0.6s ease;
}
.hero-video.loaded { opacity: 1; }
.hero-overlay {
  position: absolute;
  inset: 0;
  /* Dark scrim makes white text readable regardless of video content.
     Top-to-bottom gradient: slightly lighter at top, dense at bottom so
     the live-counter pill / trust strip below stay legible. */
  background:
    radial-gradient(at 50% 30%, rgba(10,10,10,0.20), rgba(10,10,10,0.78) 65%),
    linear-gradient(180deg, rgba(10,10,10,0.40) 0%, rgba(10,10,10,0.85) 100%);
  z-index: 1;
}
/* Particle canvas — z-order chosen so particles glow ON TOP of overlay
   (above the scrim), giving them visual punch. Video underneath, dimmed.
   Display order back-to-front: video(0) → overlay(1) → particles(2) → content(3) */
.hero-particles {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-particles.loaded { opacity: 1; pointer-events: auto; }
.hero > .container { position: relative; z-index: 3; }
/* Respect reduced-motion accessibility — pause animation for those users */
@media (prefers-reduced-motion: reduce) {
  .hero-video, .hero-particles { display: none; }
}
.hero .eyebrow { margin-bottom: 24px; }
.hero h1 {
  margin: 0 0 24px;
  max-width: 900px;
  margin-left: auto; margin-right: auto;
}
.hero .price-accent {
  color: var(--spot-green);
}
.hero p.sub {
  font-size: 20px;
  font-weight: 400;
  color: var(--ink-mute);
  margin: 0 auto 40px;
  max-width: 640px;
  letter-spacing: -0.01em;
}
.hero .cta-row {
  display: flex; gap: 12px; justify-content: center; flex-wrap: wrap;
  margin: 0 0 32px;
}

/* Live counter */
.live-counter {
  display: inline-flex; gap: 24px; align-items: center;
  padding: 12px 24px;
  background: var(--canvas-elevated);
  border-radius: 9999px;
  font-size: 14px;
  color: var(--ink-mute);
}
.live-counter .dot {
  width: 8px; height: 8px;
  background: var(--spot-green);
  border-radius: 50%;
  box-shadow: 0 0 12px var(--spot-green);
  animation: pulse 1.6s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.4; }
}
.live-counter b { color: var(--ink); font-weight: 600; }

/* ── Trust strip ────────────────────────────────────────────────────── */
.trust {
  margin: 40px 0 64px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--hairline);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--hairline);
}
.trust > div {
  background: var(--canvas-elevated);
  padding: 24px 20px;
  text-align: center;
  font-size: 14px;
  color: var(--ink-mute);
}
.trust > div b {
  display: block;
  font-size: 24px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 4px;
  letter-spacing: -0.02em;
}

/* ── Features ──────────────────────────────────────────────────────── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 0 0 64px;
}
.feature {
  background: var(--canvas-elevated);
  border-radius: 20px;
  padding: 40px 32px;
  transition: background 0.15s ease;
}
.feature:hover { background: #1c1f22; }
.feature .icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 48px; height: 48px;
  background: var(--canvas-card);
  border-radius: 14px;
  font-size: 24px;
  margin-bottom: 20px;
}
.feature h3 {
  margin: 0 0 8px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.feature p { margin: 0; color: var(--ink-mute); font-size: 15px; line-height: 1.55; }

/* ── Ticker ────────────────────────────────────────────────────────── */
.ticker-wrap {
  margin: 0 0 64px;
}
.ticker-title {
  margin: 0 0 20px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--spot-green);
}
.ticker {
  background: var(--canvas-elevated);
  border-radius: 20px;
  padding: 12px 0;
  max-height: 280px;
  overflow: hidden;
  position: relative;
}
.ticker::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 80px;
  background: linear-gradient(to bottom, transparent, var(--canvas-elevated));
  pointer-events: none;
}
.ticker-item {
  padding: 12px 24px;
  display: flex; align-items: center; gap: 14px;
  font-size: 14px;
  animation: tickerIn 0.4s ease;
}
.ticker-item + .ticker-item { border-top: 1px solid var(--hairline); }
@keyframes tickerIn {
  from { opacity: 0; transform: translateY(-8px); }
  to   { opacity: 1; transform: translateY(0); }
}
.ticker-item .badge {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(30,215,96,0.15);
  color: var(--spot-green);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  font-weight: 700;
}
.ticker-item .time { color: var(--ink-stone); font-size: 12px; margin-left: auto; }
.ticker-item .email { color: var(--ink); font-family: 'SF Mono', ui-monospace, monospace; }

/* ── Tier-preview chips (landing page) ───────────────────────────── */
.tier-chip {
  position: relative;
  display: flex; flex-direction: column; align-items: center;
  gap: 4px;
  padding: 18px 12px;
  background: var(--canvas-elevated);
  border: 2px solid transparent;
  border-radius: 16px;
  text-align: center;
  transition: all 0.18s ease;
  color: var(--ink) !important;
  text-decoration: none;
}
.tier-chip:hover {
  background: #1c1f22;
  transform: translateY(-3px);
  opacity: 1;
}
.tier-chip .icon { font-size: 24px; }
.tier-chip .name {
  font-weight: 600; font-size: 15px;
  letter-spacing: -0.01em;
  margin-top: 4px;
}
.tier-chip .warranty {
  font-size: 11px; color: var(--ink-mute);
}
.tier-chip .price {
  font-size: 18px; font-weight: 700;
  color: var(--spot-green);
  letter-spacing: -0.02em;
  margin-top: 6px;
}
.tier-chip-recommended {
  border-color: var(--rev-violet);
  background: rgba(73, 79, 223, 0.10);
}
.tier-chip .badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 3px 12px;
  background: linear-gradient(135deg, var(--rev-violet), #ec4899);
  color: #fff;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  white-space: nowrap;
}
/* Mobile: collapse to 2-col grid */
@media (max-width: 720px) {
  #tierGrid { grid-template-columns: 1fr 1fr !important; }
}
@media (max-width: 420px) {
  #tierGrid { grid-template-columns: 1fr !important; }
  .tier-chip { flex-direction: row; justify-content: space-between; padding: 14px 18px; }
  .tier-chip .icon { font-size: 20px; }
  .tier-chip .price { margin-top: 0; }
  .tier-chip .badge { position: static; transform: none; margin-left: 8px; }
}

/* ── FAQ ───────────────────────────────────────────────────────────── */
.faq { margin: 64px 0; }
.faq h2 { text-align: center; margin: 0 0 32px; }
.faq-item {
  background: var(--canvas-elevated);
  border-radius: 16px;
  margin-bottom: 8px;
  overflow: hidden;
  transition: background 0.15s ease;
}
.faq-item:hover { background: #1c1f22; }
.faq-item summary {
  padding: 20px 24px;
  cursor: pointer;
  font-weight: 500;
  font-size: 16px;
  display: flex; align-items: center; justify-content: space-between;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-size: 24px;
  color: var(--ink-mute);
  font-weight: 300;
  margin-left: 16px;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item .answer {
  padding: 0 24px 20px;
  color: var(--ink-mute);
  font-size: 15px;
  line-height: 1.65;
}

/* ── Footer ────────────────────────────────────────────────────────── */
.footer {
  margin: 80px 0 32px;
  padding: 32px 0 0;
  text-align: center;
  color: var(--ink-stone);
  font-size: 13px;
  border-top: 1px solid var(--hairline);
}
.footer a {
  color: var(--ink-mute);
  margin: 0 10px;
}

/* ────────────────────────────────────────────────────────────────────
 * Dashboard
 * ──────────────────────────────────────────────────────────────────── */

.dash-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 16px;
  margin: 32px 0;
}

/* Featured balance card — Revolut's plan-card-featured */
.balance-card {
  background: var(--rev-violet);
  background-image: linear-gradient(135deg, var(--rev-violet) 0%, var(--rev-violet-deep) 100%);
  color: #fff;
  border-radius: 28px;
  padding: 40px 36px;
  position: relative;
  overflow: hidden;
}
.balance-card::before {
  content: '';
  position: absolute;
  top: -40%; right: -10%;
  width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,0.12), transparent 60%);
  pointer-events: none;
}
.balance-card .eyebrow {
  color: rgba(255,255,255,0.7);
  margin-bottom: 12px;
}
.balance-card .balance {
  font-size: clamp(56px, 9vw, 88px);
  font-weight: 500;
  line-height: 1.0;
  letter-spacing: -0.04em;
  font-variant-numeric: tabular-nums;
  margin: 0 0 8px;
}
.balance-card .balance-unit {
  font-size: 0.5em;
  font-weight: 400;
  color: rgba(255,255,255,0.7);
  margin-left: 6px;
}
.balance-card .sub {
  color: rgba(255,255,255,0.8);
  font-size: 16px;
  margin-bottom: 28px;
}

.streak-row {
  display: flex; align-items: center; gap: 16px;
  margin: 24px 0 0;
  padding: 16px 20px;
  background: rgba(255,255,255,0.10);
  border-radius: 16px;
  backdrop-filter: blur(8px);
}
.streak-row .fire {
  font-size: 28px;
  filter: drop-shadow(0 0 12px rgba(255,164,43,0.6));
}
.streak-row .label { font-size: 13px; color: rgba(255,255,255,0.7); }
.streak-row .value { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.streak-row .next { margin-left: auto; text-align: right; font-size: 12px; color: rgba(255,255,255,0.7); }

/* Check-in button — Spotify green pill */
.checkin-btn {
  width: 100%;
  margin-top: 24px;
  height: 56px;
  background: var(--spot-green);
  color: #000;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex; align-items: center; justify-content: center;
}
.checkin-btn:hover:not(:disabled) {
  background: #2bea73;
  transform: scale(1.02);
}
.checkin-btn:disabled {
  background: rgba(255,255,255,0.15);
  color: rgba(255,255,255,0.5);
  cursor: not-allowed;
}

/* Milestone progress */
.milestone-row {
  display: flex; justify-content: space-between;
  font-size: 13px;
  margin-top: 20px;
  color: rgba(255,255,255,0.85);
}
.milestone-row b { color: #fff; font-weight: 600; }
.progress-bar {
  height: 6px;
  background: rgba(0,0,0,0.25);
  border-radius: 100px;
  overflow: hidden;
  margin: 8px 0;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--spot-green) 0%, #ffdd57 100%);
  transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Calendar — 7-column grid */
.cal-wrap {
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.18);
}
.cal-wrap .eyebrow { color: rgba(255,255,255,0.7); margin-bottom: 14px; }
.cal {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.cal-cell {
  aspect-ratio: 1 / 1;
  display: flex; align-items: center; justify-content: center;
  border-radius: 8px;
  background: rgba(0,0,0,0.25);
  font-size: 12px;
  color: rgba(255,255,255,0.5);
  font-weight: 500;
}
.cal-cell.checked {
  background: var(--spot-green);
  color: #000;
  font-weight: 700;
}
.cal-cell.checked::after { content: '✓'; font-size: 14px; }
.cal-cell.today { box-shadow: 0 0 0 2px #fff inset; color: #fff; }
.cal-cell.future { opacity: 0.3; }

/* Sidebar cards */
.side-card {
  background: var(--canvas-elevated);
  border-radius: 20px;
  padding: 24px;
}
.side-card + .side-card { margin-top: 16px; }
.side-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -0.01em;
}
.side-card .desc {
  font-size: 14px;
  color: var(--ink-mute);
  margin: 0 0 16px;
  line-height: 1.55;
}

/* Invite code box */
.invite-code-box {
  display: flex; align-items: center; gap: 8px;
  background: var(--canvas-card);
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 6px 6px 6px 14px;
}
.invite-code-box input {
  flex: 1; background: transparent; border: none; padding: 0;
  font-family: 'SF Mono', ui-monospace, monospace;
  font-size: 13px;
  color: var(--ink);
}
.invite-code-box input:focus { background: transparent; border: none; }
.invite-code-box .btn { padding: 0 16px; height: 36px; }

/* Ledger entries */
.ledger-entry {
  display: flex; justify-content: space-between;
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.ledger-entry:last-child { border-bottom: none; }
.ledger-entry .reason { font-weight: 500; font-size: 15px; }
.ledger-entry .note { font-size: 13px; color: var(--ink-stone); margin-top: 2px; }
.ledger-entry .delta {
  font-size: 16px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.ledger-entry .delta.positive { color: var(--spot-green); }
.ledger-entry .delta.negative { color: var(--danger); }
.ledger-entry .when { font-size: 11px; color: var(--ink-stone); text-align: right; margin-top: 2px; }

/* Toast */
.toast-wrap {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%);
  z-index: 1000; display: flex; flex-direction: column; gap: 8px;
}
.toast {
  background: var(--canvas-elevated);
  border: 1px solid var(--hairline-strong);
  color: var(--ink);
  padding: 14px 22px;
  border-radius: 9999px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: var(--shadow-md);
  animation: slideDown 0.3s cubic-bezier(0.22, 1, 0.36, 1);
}
.toast.success { border-color: var(--spot-green); color: var(--spot-green); }
.toast.error   { border-color: var(--danger); color: var(--danger); }
.toast.gold    { border-color: var(--spot-orange); color: var(--spot-orange); }
@keyframes slideDown {
  from { transform: translateY(-30px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}

/* Floating coin */
.float-coin {
  position: fixed;
  font-size: 28px;
  font-weight: 700;
  color: var(--spot-green);
  pointer-events: none;
  z-index: 2000;
  animation: floatUp 1.2s ease-out forwards;
  filter: drop-shadow(0 0 8px var(--spot-green));
}
@keyframes floatUp {
  0%   { opacity: 0; transform: translateY(0) scale(0.6); }
  20%  { opacity: 1; transform: translateY(-20px) scale(1.1); }
  100% { opacity: 0; transform: translateY(-120px) scale(1); }
}

/* Email bind banner */
.banner {
  margin-top: 16px;
  padding: 20px 24px;
  background: var(--canvas-elevated);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap;
  border-left: 4px solid var(--spot-orange);
}
.banner .title { font-weight: 600; }
.banner .desc { font-size: 13px; color: var(--ink-mute); margin-top: 4px; }

/* Invite list rows */
.invitee-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--hairline);
}
.invitee-row:last-child { border-bottom: none; }
.invitee-row .status-active  { color: var(--spot-green); }
.invitee-row .status-blocked { color: var(--danger); }
.invitee-row .status-pending { color: var(--spot-orange); }

/* Redemption tier picker — used inside the redeem modal */
.rdm-tier {
  padding: 14px 16px;
  margin-bottom: 8px;
  background: var(--canvas-card);
  border: 2px solid transparent;
  border-radius: 12px;
  cursor: pointer;
  transition: all 0.15s ease;
}
.rdm-tier:hover:not(.rdm-locked) {
  background: var(--canvas-nested);
  border-color: rgba(167, 139, 250, 0.25);
}
.rdm-tier.rdm-selected {
  background: rgba(73, 79, 223, 0.15);
  border-color: var(--rev-violet);
}
.rdm-tier.rdm-locked {
  opacity: 0.55;
  cursor: not-allowed;
}

/* Modal */
.modal-bg {
  position: fixed; inset: 0; background: rgba(0,0,0,0.7); z-index: 100;
  backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
}
.modal {
  background: var(--canvas-elevated);
  border-radius: 24px;
  padding: 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: var(--shadow-md);
}
.modal h3 { margin: 0 0 12px; font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.modal label { display: block; font-size: 13px; color: var(--ink-mute); margin: 16px 0 6px; font-weight: 500; }
.modal .row-btns { display: flex; gap: 10px; margin-top: 20px; }
.modal .row-btns .btn { flex: 1; }

/* ── Floating customer-service widget ─────────────────────────────── */
.cs-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 90;
}
.cs-button {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--rev-violet) 0%, var(--spot-green) 100%);
  color: #fff;
  font-size: 26px;
  display: flex; align-items: center; justify-content: center;
  border: none;
  box-shadow: 0 10px 32px rgba(0,0,0,0.45);
  cursor: pointer;
  transition: transform 0.18s ease;
  animation: cs-pulse 2.4s ease-in-out infinite;
  position: relative;
}
.cs-button:hover { transform: scale(1.08); }
.cs-button-active {
  background: linear-gradient(135deg, #3a3d40, #16181a);
  animation: none;
}
@keyframes cs-pulse {
  0%, 100% { box-shadow: 0 10px 32px rgba(0,0,0,0.45), 0 0 0 0 rgba(30,215,96,0.55); }
  60%      { box-shadow: 0 10px 32px rgba(0,0,0,0.45), 0 0 0 16px rgba(30,215,96,0); }
}

.cs-panel {
  display: none;
  position: absolute;
  bottom: 72px;
  right: 0;
  width: 300px;
  background: var(--canvas-elevated);
  border: 1px solid var(--hairline);
  border-radius: 20px;
  box-shadow: 0 16px 48px rgba(0,0,0,0.55);
  padding: 20px;
  animation: cs-slide-up 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}
.cs-panel.cs-panel-open { display: block; }
@keyframes cs-slide-up {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to   { opacity: 1; transform: translateY(0)    scale(1); }
}
.cs-panel-header {
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 16px; margin-bottom: 14px;
}
.cs-close {
  background: transparent; border: none; color: var(--ink-mute);
  font-size: 24px; line-height: 1; cursor: pointer;
  padding: 0 6px; border-radius: 8px;
  transition: all 0.15s ease;
}
.cs-close:hover { color: var(--ink); background: var(--canvas-card); }

.cs-channel-card {
  background: var(--canvas-card);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}
.cs-channel-name { font-weight: 600; font-size: 14px; }
.cs-channel-desc {
  font-size: 12px; color: var(--ink-mute); margin-top: 3px;
}

.cs-qr-wrap {
  background: #fff;
  border-radius: 14px;
  padding: 10px;
  display: flex; justify-content: center; align-items: center;
  margin-bottom: 12px;
  min-height: 240px;
}
.cs-qr-wrap img {
  display: block; width: 100%; height: auto; max-width: 260px;
  border-radius: 6px;
}
.cs-no-qr {
  text-align: center; padding: 28px 16px;
  color: #555; font-size: 13px; line-height: 1.7;
}
.cs-no-qr a { color: var(--rev-violet); text-decoration: underline; }

.cs-tips {
  font-size: 12px; color: var(--ink-stone); text-align: center;
  padding-top: 4px;
}

/* Mobile: smaller button, full-width panel */
@media (max-width: 600px) {
  .cs-float { bottom: 16px; right: 16px; }
  .cs-button { width: 52px; height: 52px; font-size: 24px; }
  .cs-panel {
    width: calc(100vw - 32px);
    max-width: 320px;
    right: -8px;
    bottom: 66px;
  }
}

/* ── Mobile ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .features { grid-template-columns: 1fr 1fr; }
  .dash-grid { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr 1fr; }
  .balance-card { padding: 32px 28px; }
}
@media (max-width: 600px) {
  .features { grid-template-columns: 1fr; }
  .trust { grid-template-columns: 1fr; }
  .nav-inner { padding: 14px 20px; }
  .nav-brand { font-size: 16px; }
  .container, .narrow { padding: 0 20px; }
  .hero { padding: 56px 20px 40px; }
  .hero p.sub { font-size: 16px; margin-bottom: 28px; }
  .hero .cta-row { gap: 8px; }
  .btn-cta { padding: 0 24px; height: 48px; }
  .card { padding: 24px 20px; }
  .balance-card { padding: 28px 24px; border-radius: 22px; }
  .feature { padding: 28px 24px; }
  .ticker-item { padding: 12px 18px; font-size: 13px; }
  .live-counter { font-size: 13px; padding: 10px 18px; gap: 14px; flex-wrap: wrap; justify-content: center; }
}
