/* Beatcash — Gold / Black / White Edition Stylesheet
   Rebrand: pure black surfaces, white text, gold as the single accent color.
   A thin, deliberately minimal amount of red/green is kept ONLY for
   pass/fail financial states (approve vs reject, success vs error) — colour
   alone should never be the only signal, but for safety-critical actions
   like approving a withdrawal, a small amount of semantic red/green is
   more legible than pure monochrome. Everything else — buttons, nav,
   cards, badges — is gold, black and white.
*/
@import url('https://fonts.googleapis.com/css2?family=Bricolage+Grotesque:opsz,wght@12..96,400..800&family=Inter:wght@400;500;600;700&family=Space+Mono:wght@400;700&display=swap');

:root {
  --char:        #0a0a0a;
  --char2:       #141414;
  --char3:       #1c1c1c;
  --parchment:   #ffffff;
  --parchment-dim:   rgba(255,255,255,.72);
  --parchment-faint: rgba(255,255,255,.44);
  --ink:         #0a0a0a;

  --gold:        #d9b54a;
  --gold-light:  #f0d27f;
  --gold-dim:    rgba(217,181,74,.16);
  --gold-line:   rgba(217,181,74,.45);

  --ember:       #e2574c;
  --ember-dim:   rgba(226,87,76,.14);
  --ember-line:  rgba(226,87,76,.4);

  --pistachio:   #6fbf8e;
  --pistachio-dim:  rgba(111,191,142,.14);
  --pistachio-line: rgba(111,191,142,.4);

  /* Semantic mapping for the app */
  --bg:      var(--char);
  --surface: var(--char2);
  --surface2:var(--char3);
  --surface3:#262626;
  --border:  var(--gold-line);
  --border2: rgba(255,255,255,.14);
  --text:    var(--parchment);
  --muted:   var(--parchment-dim);
  --green:   var(--pistachio);
  --red:     var(--ember);
  --blue:    #cfd8e3;
  --accent:  var(--gold);

  --radius:     1rem;
  --radius-sm:  .65rem;
  --radius-lg:  1.4rem;

  --focus-ring: 0 0 0 3px rgba(217,181,74,.35);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
  font-size: 15px;
  line-height: 1.65;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); text-decoration: none; cursor: pointer; }
a:hover { text-decoration: underline; color: var(--gold-light); }

/* Visible focus for keyboard users on every interactive element, and a
   plain cursor:pointer reminder on everything clickable so it's always
   obvious what can be interacted with. */
button, [role="button"], select, summary, label[for] { cursor: pointer; }
a:focus-visible, button:focus-visible, select:focus-visible, [tabindex]:focus-visible {
  outline: none; box-shadow: var(--focus-ring); border-radius: 4px;
}

img { max-width: 100%; height: auto; }

h1,h2,h3,h4,h5 { font-family: 'Bricolage Grotesque', system-ui, 'Segoe UI', Arial, sans-serif; font-weight: 700; letter-spacing: -.01em; line-height: 1.15; }

.mono { font-family: 'Space Mono', monospace; }
.eyebrow {
  font-family: 'Space Mono', monospace; font-size: .72rem; letter-spacing: .16em;
  text-transform: uppercase; display: inline-flex; align-items: center; gap: .5rem; color: var(--gold);
}
.eyebrow::before { content: ""; width: 1.4rem; height: 1px; background: currentColor; display: inline-block; }

/* ── LAYOUT ──────────────────────────────────────────────────────────── */
.sv-wrapper { display: flex; min-height: 100vh; }
.sv-sidebar {
  width: 250px; flex-shrink: 0;
  background: var(--surface);
  border-right: 1px solid var(--border2);
  display: flex; flex-direction: column;
  position: fixed; top: 0; left: 0; bottom: 0; z-index: 50;
  transition: transform 0.25s ease;
}
.sv-main { margin-left: 250px; flex: 1; min-height: 100vh; }
.sv-topbar {
  height: 64px; background: rgba(28,23,18,.9); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border2);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 1.5rem; position: sticky; top: 0; z-index: 40;
}
.sv-content { padding: 1.9rem 1.6rem; }

/* ── SIDEBAR ─────────────────────────────────────────────────────────── */
.sv-logo {
  padding: .95rem 1.15rem; min-height: 64px; display: flex; align-items: center;
  border-bottom: 1px solid var(--border2);
}
.sv-logo a { display: flex; align-items: center; gap: .6rem; }
.sv-logo span { color: var(--text); }
.sv-nav { padding: 1.1rem .75rem; flex: 1; overflow-y: auto; }
.sv-nav-section {
  font-family: 'Space Mono', monospace; font-size: .66rem; text-transform: uppercase;
  letter-spacing: .14em; color: var(--parchment-faint); padding: .9rem .6rem .4rem;
}
.sv-nav a {
  display: flex; align-items: center; gap: .65rem; cursor: pointer;
  padding: .62rem .8rem; border-radius: var(--radius-sm);
  color: var(--muted); font-size: .88rem; font-weight: 500;
  transition: background 0.15s, color 0.15s, transform 0.08s; margin-bottom: 2px;
  border: 1px solid transparent;
}
.sv-nav a:hover {
  background: var(--gold-dim); color: var(--text); text-decoration: none;
}
.sv-nav a:active { transform: scale(0.98); }
.sv-nav a:focus-visible { outline: none; border-color: var(--gold); box-shadow: var(--focus-ring); }
.sv-nav a.active {
  background: var(--gold-dim); color: var(--gold); text-decoration: none;
  border-color: var(--gold-line);
}
.sv-nav a .nav-icon { width: 18px; text-align: center; font-style: normal; }
.sv-nav a .nav-badge {
  margin-left: auto; background: var(--ember); color: #fff;
  font-size: 0.65rem; font-weight: 700; padding: 1px 6px; border-radius: 10px;
}
.sv-sidebar-footer { padding: 0.85rem; border-top: 1px solid var(--border2); }
.sv-sidebar-footer a {
  display: flex; align-items: center; gap: 0.6rem; cursor: pointer;
  padding: 0.6rem 0.8rem; border-radius: var(--radius-sm);
  color: var(--muted); font-size: 0.85rem; transition: background 0.15s, color 0.15s;
}
.sv-sidebar-footer a:hover { color: var(--ember); background: var(--ember-dim); text-decoration: none; }

/* ── TOPBAR ──────────────────────────────────────────────────────────── */
.topbar-left { font-family: 'Bricolage Grotesque', system-ui, 'Segoe UI', Arial, sans-serif; font-size: 1.15rem; font-weight: 700; }
.topbar-right { display: flex; align-items: center; gap: 0.85rem; }
.notif-btn {
  position: relative; background: none; border: none;
  color: var(--muted); font-size: 1.1rem; cursor: pointer; padding: 0.3rem;
}
.notif-btn .badge {
  position: absolute; top: 0; right: 0;
  background: var(--ember); color: #fff;
  font-size: 0.6rem; font-weight: 700;
  width: 16px; height: 16px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
}
.topbar-user {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: 999px; padding: 0.35rem 0.9rem 0.35rem 0.35rem; font-size: 0.85rem;
}
.topbar-avatar {
  width: 30px; height: 30px; border-radius: 50%;
  background: linear-gradient(135deg, var(--gold-light), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.72rem; font-weight: 700; color: var(--ink);
}
.hamburger {
  display: none; background: none; border: none;
  color: var(--text); font-size: 1.4rem; cursor: pointer; padding: 0.3rem;
}

/* ── CARDS ───────────────────────────────────────────────────────────── */
.sv-card {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 1.4rem 1.5rem;
}
.sv-card-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.25rem; padding-bottom: 0.95rem;
  border-bottom: 1px solid var(--border2);
}
.sv-card-header h3 { font-family: 'Bricolage Grotesque', system-ui, 'Segoe UI', Arial, sans-serif; font-size: 1.05rem; font-weight: 700; }

/* ── STAT CARDS ──────────────────────────────────────────────────────── */
.sv-stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; margin-bottom: 1.5rem; }
.sv-stat {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius); padding: 1.2rem 1.3rem;
}
.sv-stat .stat-label { font-family: 'Space Mono', monospace; font-size: 0.68rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 0.4rem; }
.sv-stat .stat-value { font-family: 'Bricolage Grotesque', system-ui, 'Segoe UI', Arial, sans-serif; font-size: 1.55rem; font-weight: 700; }
.sv-stat .stat-sub { font-size: 0.78rem; color: var(--muted); margin-top: 0.2rem; }
.sv-stat .stat-change { font-size: 0.78rem; margin-top: 0.2rem; }
.sv-stat .stat-change.up { color: var(--green); }
.sv-stat .stat-change.down { color: var(--red); }
.sv-stat.gold .stat-value { color: var(--gold); }
.sv-stat.green .stat-value { color: var(--green); }
.sv-stat.red .stat-value { color: var(--red); }
.sv-stat.blue .stat-value { color: var(--blue); }
.sv-stat .stat-icon { float: right; font-size: 1.6rem; opacity: 0.3; margin-top: -0.2rem; }

/* ── TABLES ──────────────────────────────────────────────────────────── */
.sv-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--border2); }
.sv-table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
.sv-table th {
  background: var(--surface2); color: var(--muted);
  font-family: 'Space Mono', monospace;
  font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.08em;
  padding: 0.8rem 1rem; text-align: left; font-weight: 500;
  white-space: nowrap;
}
.sv-table td { padding: 0.9rem 1rem; border-top: 1px solid var(--border2); vertical-align: middle; transition: background 0.12s; }
.sv-table tr:hover td { background: rgba(255,255,255,0.035); }
.sv-table tr.clickable { cursor: pointer; }
.sv-table tr.clickable:hover td { background: var(--gold-dim); }
.sv-table tr.clickable:active td { background: rgba(217,181,74,.22); }

/* ── BADGES ──────────────────────────────────────────────────────────── */
.sv-badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 0.72rem; font-weight: 600; padding: 3px 10px;
  border-radius: 999px; text-transform: capitalize;
}
.sv-badge.success { background: var(--pistachio-dim); color: var(--pistachio); }
.sv-badge.danger  { background: var(--ember-dim);  color: var(--ember); }
.sv-badge.warning { background: var(--gold-dim); color: var(--gold); }
.sv-badge.info    { background: rgba(157,180,196,0.14); color: var(--blue); }
.sv-badge.muted   { background: rgba(243,236,221,0.1); color: var(--muted); }
.sv-badge.gold    { background: var(--gold-dim); color: var(--gold); }

/* ── FORMS ───────────────────────────────────────────────────────────── */
.sv-form-group { margin-bottom: 1.15rem; }
.sv-form-group label {
  display: block; font-family: 'Space Mono', monospace; font-size: 0.72rem; letter-spacing: .06em;
  text-transform: uppercase; font-weight: 500; color: var(--parchment-faint); margin-bottom: 0.5rem;
}
.sv-form-group label span.req { color: var(--ember); margin-left: 2px; }
.sv-input, .sv-select, .sv-textarea {
  width: 100%;
  background: var(--surface2); border: 1px solid var(--border2);
  color: var(--text); border-radius: var(--radius-sm);
  padding: 0.7rem 0.95rem; font-size: 0.9rem;
  font-family: 'Inter', sans-serif; outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sv-input:focus, .sv-select:focus, .sv-textarea:focus { border-color: var(--gold); box-shadow: var(--focus-ring); }
.sv-input:hover, .sv-select:hover, .sv-textarea:hover { border-color: var(--parchment-faint); }
.sv-input::placeholder { color: var(--parchment-faint); }
.sv-select option { background: var(--surface2); }
.sv-textarea { resize: vertical; min-height: 100px; }
.sv-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.sv-form-hint { font-size: 0.78rem; color: var(--muted); margin-top: 0.35rem; }
.sv-form-error { font-size: 0.78rem; color: var(--ember); margin-top: 0.35rem; }

/* ── TOGGLE SWITCH (on/off state must be unmistakable at a glance) ─────── */
.sv-toggle-row {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1rem 1.15rem; background: var(--surface2); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); margin-bottom: 0.75rem; transition: border-color 0.15s;
}
.sv-toggle-row:hover { border-color: var(--gold-line); }
.sv-toggle-row .tr-title { font-weight: 600; font-size: 0.92rem; }
.sv-toggle-row .tr-sub { font-size: 0.78rem; color: var(--muted); margin-top: 0.15rem; }
.sv-toggle { position: relative; display: inline-flex; align-items: center; cursor: pointer; flex-shrink: 0; }
.sv-toggle input { position: absolute; opacity: 0; width: 42px; height: 24px; margin: 0; cursor: pointer; }
.sv-toggle .track {
  width: 42px; height: 24px; border-radius: 999px; background: var(--surface3);
  border: 1px solid var(--border2); position: relative; transition: background 0.15s, border-color 0.15s;
}
.sv-toggle .track::after {
  content: ''; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px;
  border-radius: 50%; background: var(--parchment-faint); transition: transform 0.15s, background 0.15s;
}
.sv-toggle input:checked + .track { background: var(--gold-dim); border-color: var(--gold-line); }
.sv-toggle input:checked + .track::after { transform: translateX(18px); background: var(--gold); }
.sv-toggle input:focus-visible + .track { box-shadow: var(--focus-ring); }
.sv-toggle input:disabled + .track { opacity: 0.5; cursor: not-allowed; }
.sv-toggle-status { font-family: 'Space Mono', monospace; font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; }
.sv-toggle-status.on { color: var(--pistachio); }
.sv-toggle-status.off { color: var(--muted); }

/* ── PAYMENT METHOD PICKER (user-facing deposit tabs) ───────────────── */
.pm-tabs { display: flex; gap: 0.5rem; flex-wrap: wrap; margin-bottom: 1.2rem; }
.pm-tab {
  display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1.1rem;
  background: var(--surface2); border: 1px solid var(--border2); border-radius: 999px;
  color: var(--muted); font-size: 0.85rem; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
}
.pm-tab:hover { border-color: var(--gold-line); color: var(--text); }
.pm-tab.active { background: var(--gold-dim); border-color: var(--gold); color: var(--gold); }

/* ── BUTTONS ─────────────────────────────────────────────────────────── */
.sv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  font-family: 'Inter', sans-serif; font-weight: 600; font-size: 0.9rem;
  padding: 0.68rem 1.5rem; border-radius: 999px;
  cursor: pointer; border: 1px solid transparent; transition: filter 0.15s, opacity 0.15s, transform 0.08s, box-shadow 0.15s, background 0.15s, border-color 0.15s;
  text-decoration: none; white-space: nowrap;
}
.sv-btn:hover { text-decoration: none; }
.sv-btn:active { transform: scale(0.96); }
.sv-btn:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sv-btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }
.sv-btn-primary { background: linear-gradient(100deg, var(--gold-light), var(--gold)); color: var(--ink); }
.sv-btn-primary:hover { filter: brightness(1.12); box-shadow: 0 4px 18px -4px rgba(217,181,74,.5); }
.sv-btn-primary:active { filter: brightness(0.95); }
.sv-btn-success { background: var(--ink); color: var(--pistachio); border-color: var(--pistachio-line); }
.sv-btn-success:hover { background: var(--pistachio-dim); box-shadow: 0 4px 18px -4px rgba(111,191,142,.35); }
.sv-btn-danger  { background: var(--ink); color: var(--ember); border-color: var(--ember-line); }
.sv-btn-danger:hover { background: var(--ember-dim); box-shadow: 0 4px 18px -4px rgba(226,87,76,.35); }
.sv-btn-outline {
  background: transparent; color: var(--text);
  border: 1px solid var(--parchment-faint);
}
.sv-btn-outline:hover { border-color: var(--gold); color: var(--gold); background: var(--gold-dim); }
.sv-btn-sm { padding: 0.42rem 0.95rem; font-size: 0.8rem; }
.sv-btn-lg { padding: 0.9rem 2.1rem; font-size: 1rem; }
.sv-btn-block { width: 100%; }

/* ── ALERTS ──────────────────────────────────────────────────────────── */
.sv-alert {
  display: flex; align-items: flex-start; gap: 0.75rem;
  padding: 0.95rem 1.15rem; border-radius: var(--radius-sm);
  margin-bottom: 1.2rem; font-size: 0.88rem;
}
.alert-icon { font-weight: 700; flex-shrink: 0; }
.sv-alert-success { background: var(--pistachio-dim); border: 1px solid var(--pistachio-line); color: var(--pistachio); }
.sv-alert-error   { background: var(--ember-dim);  border: 1px solid var(--ember-line);  color: var(--ember); }
.sv-alert-warning { background: var(--gold-dim); border: 1px solid var(--gold-line); color: var(--gold); }
.sv-alert-info    { background: rgba(157,180,196,0.1); border: 1px solid rgba(157,180,196,.35); color: var(--blue); }

/* ── MUSIC PLAYER ────────────────────────────────────────────────────── */
.sv-music-card {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 1rem;
  display: flex; align-items: center; gap: 1rem; transition: border-color 0.2s;
}
.sv-music-card.playing { border-color: var(--gold-line); }
.song-cover {
  width: 58px; height: 58px; border-radius: 12px;
  background: linear-gradient(135deg, var(--surface3), var(--surface2)); flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; border: 1px solid var(--border2);
}
.song-info { flex: 1; min-width: 0; }
.song-title { font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.song-artist { font-size: 0.8rem; color: var(--muted); }
.song-progress { margin-top: 0.55rem; }
.progress-track { height: 3px; background: var(--surface3); border-radius: 2px; }
.progress-fill { height: 100%; background: linear-gradient(90deg, var(--gold), var(--gold-light)); border-radius: 2px; width: 0%; transition: width 0.5s linear; }
.song-timer { font-family: 'Space Mono', monospace; font-size: 0.7rem; color: var(--muted); margin-top: 0.3rem; }
.song-controls { display: flex; align-items: center; gap: 0.5rem; }
.play-btn {
  width: 42px; height: 42px; border-radius: 50%;
  background: var(--gold); border: none; color: var(--ink);
  font-size: 1rem; cursor: pointer; display: flex;
  align-items: center; justify-content: center;
  flex-shrink: 0; transition: filter 0.15s;
}
.play-btn:hover { filter: brightness(1.1); }
.play-btn.counted { background: var(--pistachio); }
.song-counted-badge {
  font-size: 0.72rem; color: var(--pistachio);
  background: var(--pistachio-dim); padding: 3px 10px;
  border-radius: 999px; white-space: nowrap;
}

/* ── TASK PROGRESS BOX ───────────────────────────────────────────────── */
.task-progress-box {
  background: var(--surface2); border: 1px solid var(--gold-line);
  border-radius: var(--radius); padding: 1.1rem 1.3rem;
  margin-bottom: 1.5rem; display: flex; align-items: center; gap: 1rem;
}
.task-progress-box .task-label { flex: 1; }
.task-progress-box .task-title { font-weight: 600; font-size: 0.95rem; }
.task-progress-box .task-sub { font-size: 0.8rem; color: var(--muted); }
.task-dots { display: flex; gap: 5px; }
.task-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--surface3); border: 1.5px solid var(--border2); }
.task-dot.done { background: var(--pistachio); border-color: var(--pistachio); }
.task-dot.active { border-color: var(--gold); }

/* ── PLAN CARDS ──────────────────────────────────────────────────────── */
.sv-plans-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px,1fr)); gap: 1.1rem; margin-bottom: 1.5rem; }
.sv-plan-card {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 1.6rem; text-align: center;
  transition: border-color 0.2s, transform 0.15s; position: relative;
}
.sv-plan-card:hover { border-color: var(--gold-line); transform: translateY(-3px); }
.sv-plan-card.featured { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold); }
.plan-badge {
  position: absolute; top: -11px; left: 50%; transform: translateX(-50%);
  background: var(--gold); color: var(--ink); font-family: 'Space Mono', monospace; font-size: 0.68rem; font-weight: 700;
  padding: 4px 14px; border-radius: 999px; white-space: nowrap; letter-spacing: .04em;
}
.plan-name { font-family: 'Bricolage Grotesque', system-ui, 'Segoe UI', Arial, sans-serif; font-size: 1.15rem; font-weight: 700; margin-bottom: 0.2rem; }
.plan-roi { font-family: 'Bricolage Grotesque', system-ui, 'Segoe UI', Arial, sans-serif; font-size: 2.3rem; font-weight: 800; color: var(--gold); margin: 0.8rem 0; }
.plan-roi span { font-size: 1rem; color: var(--muted); font-family: 'Inter',sans-serif; font-weight: 500; }
.plan-range { font-family: 'Space Mono', monospace; font-size: 0.8rem; color: var(--muted); margin-bottom: 0.85rem; }
.plan-features { list-style: none; text-align: left; margin-bottom: 1.3rem; }
.plan-features li { font-size: 0.85rem; padding: 0.4rem 0; border-bottom: 1px solid var(--border2); display: flex; gap: 0.5rem; }
.plan-features li:last-child { border-bottom: none; }
.plan-features li .f-icon { color: var(--gold); }

/* ── PAGINATION ──────────────────────────────────────────────────────── */
.sv-pagination { display: flex; justify-content: center; margin-top: 1.5rem; }
.sv-pagination ul { display: flex; gap: 0.4rem; list-style: none; }
.sv-pagination ul li a {
  display: flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: var(--radius-sm);
  background: var(--surface2); border: 1px solid var(--border2);
  color: var(--muted); font-size: 0.85rem; text-decoration: none;
}
.sv-pagination ul li.active a { background: var(--gold); color: var(--ink); border-color: var(--gold); }
.sv-pagination ul li a:hover { border-color: var(--gold); color: var(--gold); }

/* ── AUTH PAGES ──────────────────────────────────────────────────────── */
.sv-auth-wrap {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  padding: 1rem; background: radial-gradient(ellipse at top, #241d16 0%, var(--bg) 60%);
}
.sv-auth-card {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 2.4rem; width: 100%; max-width: 450px;
  box-shadow: 0 30px 60px -20px rgba(0,0,0,.5);
}
.sv-auth-logo { font-family: 'Bricolage Grotesque', system-ui, 'Segoe UI', Arial, sans-serif; font-size: 1.6rem; font-weight: 800; color: var(--gold); margin-bottom: 0.3rem; }
.sv-auth-logo span { color: var(--text); }
.sv-auth-sub { color: var(--muted); font-size: 0.9rem; margin-bottom: 2.1rem; }
.sv-auth-footer { text-align: center; margin-top: 1.3rem; font-size: 0.85rem; color: var(--muted); }
.sv-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.2rem 0; color: var(--muted); font-size: 0.8rem; }
.sv-divider::before, .sv-divider::after { content: ''; flex: 1; height: 1px; background: var(--border2); }

/* ── WALLET DISPLAY ──────────────────────────────────────────────────── */
.wallet-hero {
  background: linear-gradient(120deg, var(--gold-dim) 0%, rgba(28,23,18,0) 65%);
  border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg); padding: 1.9rem; margin-bottom: 1.6rem;
}
.wallet-label { font-family: 'Space Mono', monospace; font-size: 0.76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 0.45rem; }
.wallet-amount { font-family: 'Bricolage Grotesque', system-ui, 'Segoe UI', Arial, sans-serif; font-size: 2.9rem; font-weight: 800; color: var(--gold); letter-spacing: -1px; }
.wallet-row { display: flex; gap: 1.6rem; margin-top: 1.1rem; flex-wrap: wrap; }
.wallet-stat .wl { font-size: 0.75rem; color: var(--muted); }
.wallet-stat .wv { font-size: 0.95rem; font-weight: 600; }

/* ── LANDING PAGE ────────────────────────────────────────────────────── */
.lp-nav {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 2rem; height: 68px;
  background: rgba(28,23,18,0.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border2);
}
.lp-hero { text-align: center; padding: 6.5rem 1rem 4.5rem; position: relative; overflow: hidden; }
.lp-hero h1 {
  font-family: 'Bricolage Grotesque', system-ui, 'Segoe UI', Arial, sans-serif; font-size: clamp(2.6rem,7vw,4.6rem);
  font-weight: 800; letter-spacing: -1.5px; line-height: 1.05; margin-bottom: 1.3rem;
}
.lp-hero h1 em { font-style: normal; color: var(--gold); }
.lp-hero p { color: var(--muted); max-width: 520px; margin: 0 auto 2.3rem; font-size: 1.08rem; }
.lp-btns { display: flex; gap: 0.85rem; justify-content: center; flex-wrap: wrap; }
.lp-section { padding: 4.5rem 1.5rem; max-width: 1120px; margin: 0 auto; }
.lp-section-title { font-family: 'Bricolage Grotesque', system-ui, 'Segoe UI', Arial, sans-serif; font-size: 2rem; font-weight: 800; text-align: center; margin-bottom: 0.6rem; }
.lp-section-sub { text-align: center; color: var(--muted); margin-bottom: 2.75rem; }
.lp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px,1fr)); gap: 1.1rem; }
.lp-step {
  background: var(--surface); border: 1px solid var(--border2);
  border-radius: var(--radius-lg); padding: 1.7rem; text-align: center;
}
.lp-step .step-num {
  width: 46px; height: 46px; border-radius: 50%;
  background: var(--gold-dim); border: 1.5px solid var(--gold-line);
  display: flex; align-items: center; justify-content: center;
  font-family: 'Bricolage Grotesque', system-ui, 'Segoe UI', Arial, sans-serif; font-weight: 700; color: var(--gold);
  margin: 0 auto 1.1rem;
}
.lp-step h4 { font-size: 1.02rem; margin-bottom: 0.45rem; }
.lp-step p { font-size: 0.85rem; color: var(--muted); }
.lp-footer { background: var(--surface); border-top: 1px solid var(--border2); padding: 1.75rem; text-align: center; color: var(--muted); font-size: 0.85rem; }

/* ── DUALITY-STYLE DIVIDER (decorative, borrowed motif) ─────────────── */
.bc-divider { position: relative; height: 4rem; overflow: hidden; }
.bc-divider-track { position: absolute; inset: 0; background: linear-gradient(90deg, var(--gold) 0%, var(--char2) 48%, var(--char2) 52%, var(--parchment) 100%); opacity: .9; }
.bc-divider-labels { position: relative; height: 100%; max-width: 1120px; margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; }
.bc-divider-labels span { font-family: 'Space Mono', monospace; font-size: 0.7rem; letter-spacing: .12em; text-transform: uppercase; padding: 0.4rem 0.9rem; background: var(--char); border-radius: 999px; }
.bc-divider-labels span:first-child { color: var(--gold); }
.bc-divider-labels span:last-child { color: var(--ink); background: var(--parchment); }

/* ── MODAL ───────────────────────────────────────────────────────────── */
.sv-modal-bg {
  position: fixed; inset: 0; background: rgba(15,12,9,0.8);
  z-index: 500; display: none; align-items: center; justify-content: center; padding: 1rem;
}
.sv-modal-bg.open { display: flex; }
.sv-modal {
  background: var(--surface); border: 1px solid var(--gold-line);
  border-radius: var(--radius-lg); padding: 1.85rem; max-width: 460px; width: 100%;
  max-height: 90vh; overflow-y: auto; box-shadow: 0 30px 70px -20px rgba(0,0,0,.6);
}
.sv-modal h3 { font-family: 'Bricolage Grotesque', system-ui, 'Segoe UI', Arial, sans-serif; font-size: 1.2rem; margin-bottom: 0.35rem; }
.sv-modal-sub { color: var(--muted); font-size: 0.85rem; margin-bottom: 1.5rem; }
.sv-modal-actions { display: flex; gap: 0.75rem; margin-top: 1.5rem; }

/* ── TOAST ───────────────────────────────────────────────────────────── */
#sv-toast {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 1000;
  display: flex; flex-direction: column; gap: 0.5rem; pointer-events: none;
}
.toast-item {
  background: var(--surface2); border: 1px solid var(--border2);
  border-radius: var(--radius-sm); padding: 0.8rem 1.15rem;
  font-size: 0.85rem; min-width: 260px; max-width: 360px;
  opacity: 0; transform: translateX(20px);
  transition: all 0.25s; pointer-events: none;
  box-shadow: 0 10px 30px -10px rgba(0,0,0,.5);
}
.toast-item.show { opacity: 1; transform: translateX(0); }
.toast-item.success { border-color: var(--pistachio-line); color: var(--pistachio); }
.toast-item.error   { border-color: var(--ember-line);  color: var(--ember); }
.toast-item.info    { border-color: rgba(157,180,196,.4); color: var(--blue); }

/* ── ANNOUNCEMENT BAR ────────────────────────────────────────────────── */
.sv-announce { padding: 0.65rem 1.5rem; font-size: 0.85rem; text-align: center; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }
.sv-announce.info    { background: rgba(157,180,196,0.1); color: var(--blue); }
.sv-announce.success { background: var(--pistachio-dim); color: var(--pistachio); }
.sv-announce.warning { background: var(--gold-dim); color: var(--gold); }
.sv-announce.danger  { background: var(--ember-dim);  color: var(--ember); }

/* ── PAGE HEADER ─────────────────────────────────────────────────────── */
.sv-page-header { margin-bottom: 1.6rem; }
.sv-page-header h1 { font-size: 1.55rem; margin-bottom: 0.25rem; }
.sv-page-header p { color: var(--muted); font-size: 0.9rem; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .sv-sidebar { transform: translateX(-100%); }
  .sv-sidebar.open { transform: translateX(0); box-shadow: 4px 0 24px rgba(0,0,0,0.55); }
  .sv-main { margin-left: 0; }
  .hamburger { display: block; }
  .sv-overlay { position: fixed; inset: 0; background: rgba(0,0,0,0.55); z-index: 45; display: none; }
  .sv-overlay.open { display: block; }
}
@media (max-width: 600px) {
  .sv-content { padding: 1.1rem; }
  .sv-stats-grid { grid-template-columns: 1fr 1fr; }
  .sv-form-row { grid-template-columns: 1fr; }
  .wallet-amount { font-size: 2.1rem; }
  .lp-hero { padding: 3.5rem 1rem 2.5rem; }
}
@media (max-width: 380px) {
  .sv-stats-grid { grid-template-columns: 1fr; }
}

/* ── ADMIN / TABS ────────────────────────────────────────────────────── */
.admin-topbar-actions { display: flex; align-items: center; gap: 0.75rem; }
.sv-tabs { display: flex; gap: 0.4rem; border-bottom: 1px solid var(--border2); margin-bottom: 1.5rem; }
.sv-tab {
  padding: 0.65rem 1.1rem; font-size: 0.88rem; font-weight: 500;
  color: var(--muted); cursor: pointer; border-bottom: 2px solid transparent;
  transition: color 0.15s, background 0.15s; background: none; border-top: none; border-left: none; border-right: none;
  font-family: 'Inter', sans-serif; border-radius: 0.4rem 0.4rem 0 0;
}
.sv-tab:hover { color: var(--text); background: var(--gold-dim); }
.sv-tab:active { background: rgba(217,181,74,.24); }
.sv-tab:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.sv-tab.active { color: var(--gold); border-bottom-color: var(--gold); }
.sv-tab-content { display: none; }
.sv-tab-content.active { display: block; }
.admin-action-row { display: flex; gap: 0.5rem; flex-wrap: wrap; }

/* ── CHART CONTAINER ─────────────────────────────────────────────────── */
.chart-container { position: relative; height: 240px; }

/* ── MISC ────────────────────────────────────────────────────────────── */
.text-gold   { color: var(--gold); }
.text-green  { color: var(--green); }
.text-red    { color: var(--red); }
.text-muted  { color: var(--muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.gap-row { display: flex; gap: 0.75rem; align-items: center; flex-wrap: wrap; }
.flex-1 { flex: 1; }
.empty-state { text-align: center; padding: 3rem 1rem; color: var(--muted); }
.empty-state .es-icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.divider { height: 1px; background: var(--border2); margin: 1.3rem 0; }

/* ── TEST MODE PILL ──────────────────────────────────────────────────── */
.test-mode-pill {
  font-family: 'Space Mono', monospace; font-size: 0.62rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase;
  color: var(--gold); background: var(--gold-dim); border: 1px solid var(--gold-line);
  padding: 3px 9px; border-radius: 999px;
}

/* ── PAYMENT GATEWAY MODAL (card checkout) ──────────────────────────── */
.pg-modal {
  background: #fff; color: #1a1a1a; border-radius: 14px;
  max-width: 380px; width: 100%; overflow: hidden;
  box-shadow: 0 30px 70px -20px rgba(0,0,0,.6);
}
.pg-header {
  background: var(--ink); color: #fff; padding: 1.1rem 1.3rem;
  display: flex; align-items: center; justify-content: space-between;
}
.pg-header .pg-brand { display: flex; align-items: center; gap: 0.5rem; font-weight: 700; font-size: 0.95rem; }
.pg-header .pg-test-badge {
  font-family: 'Space Mono', monospace; font-size: 0.6rem; text-transform: uppercase;
  background: var(--gold); color: var(--ink); padding: 2px 8px; border-radius: 999px; font-weight: 700;
}
.pg-close { background: none; border: none; color: rgba(255,255,255,.6); font-size: 1.1rem; cursor: pointer; }
.pg-body { padding: 1.4rem 1.3rem; }
.pg-amount-row { text-align: center; margin-bottom: 1.3rem; }
.pg-amount-row .pg-amt { font-family: 'Bricolage Grotesque', system-ui, 'Segoe UI', Arial, sans-serif; font-size: 1.8rem; font-weight: 800; color: var(--ink); }
.pg-amount-row .pg-to { font-size: 0.78rem; color: #777; margin-top: 0.2rem; }
.pg-field { margin-bottom: 0.9rem; }
.pg-field label { display: block; font-size: 0.72rem; color: #666; margin-bottom: 0.35rem; font-weight: 600; }
.pg-field input {
  width: 100%; border: 1px solid #ddd; border-radius: 8px;
  padding: 0.65rem 0.8rem; font-size: 0.9rem; color: #1a1a1a; font-family: 'Space Mono', monospace;
}
.pg-field input:focus { outline: none; border-color: var(--gold); }
.pg-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0.8rem; }
.pg-pay-btn {
  width: 100%; background: var(--ink); color: #fff; border: none;
  border-radius: 999px; padding: 0.85rem; font-weight: 700; font-size: 0.92rem;
  cursor: pointer; margin-top: 0.4rem; transition: opacity 0.15s;
  font-family: 'Inter', sans-serif;
}
.pg-pay-btn:hover { opacity: 0.88; }
.pg-secure-note { text-align: center; font-size: 0.72rem; color: #999; margin-top: 0.9rem; }
.pg-processing { text-align: center; padding: 2.5rem 1rem; }
.pg-spinner {
  width: 42px; height: 42px; border-radius: 50%;
  border: 3px solid #eee; border-top-color: var(--gold);
  margin: 0 auto 1.1rem; animation: pg-spin 0.8s linear infinite;
}
@keyframes pg-spin { to { transform: rotate(360deg); } }
.pg-success { text-align: center; padding: 2rem 1rem; }
.pg-success-icon {
  width: 56px; height: 56px; border-radius: 50%; background: #e8f7ee; color: #1e9e5c;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
  margin: 0 auto 1rem;
}


.sv-logo img, .sv-logo svg { height: 40px; width: auto; flex-shrink: 0; }
.sv-logo a:hover { opacity: 0.85; }
.lp-nav .sv-logo { padding: 0; background: none; border: none; min-height: auto; }
.lp-nav .sv-logo svg { height: 46px; }

</style>
