/* ═══════════════════════════════════════════════════════════════
   VALOR PERKS — css/buy-tokens.css
   FULLY SELF-CONTAINED — no design-system.css dependency
   Theme: deep purple glassmorphism + purple-to-orange gradient CTA
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ──────────────────────────────────────────────── */
:root {
  /* Fonts */
  --font-display: 'Syne', sans-serif;
  --font-body:    'Plus Jakarta Sans', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  /* Purple palette (Figma) */
  --purple-900: #0f0a2e;
  --purple-800: #1a1052;
  --purple-700: #2d1b69;
  --purple-600: #3d2080;
  --purple-500: #7c3aed;
  --purple-400: #a78bfa;
  --purple-300: #c4b5fd;

  /* Accent */
  --orange:      #f97316;
  --orange-dim:  rgba(249,115,22,0.15);
  --amber:       #fbbf24;
  --amber-dim:   rgba(251,191,36,0.12);
  --emerald:     #10b981;
  --emerald-dim: rgba(16,185,129,0.10);
  --blue:        #3b82f6;
  --red:         #ef4444;

  /* Glass surfaces */
  --glass-1:   rgba(255,255,255,0.06);
  --glass-2:   rgba(255,255,255,0.10);
  --glass-3:   rgba(255,255,255,0.15);
  --glass-border: rgba(255,255,255,0.10);
  --glass-border-bright: rgba(255,255,255,0.18);

  /* Text */
  --t-primary:   #f0ecff;
  --t-secondary: rgba(240,236,255,0.65);
  --t-muted:     rgba(240,236,255,0.38);
  --t-faint:     rgba(240,236,255,0.20);

  /* CTA gradient */
  --cta-gradient: linear-gradient(135deg, #7c3aed 0%, #a855f7 45%, #f97316 100%);

  /* Sidebar (stays light for consistency) */
  --sidebar-bg:   #ffffff;
  --sidebar-text: #0d1117;
  --sidebar-muted:#6b7280;
  --sidebar-active-bg: #eff4ff;
  --sidebar-active: #1a56db;
  --sidebar-border: #e8edf5;
  --sidebar-surface: #f8fafc;
  --chartreuse: #c8f700;
  --chart-text: #1a2000;

  /* Radii */
  --r-xs:  4px;
  --r-sm:  8px;
  --r-md:  12px;
  --r-lg:  16px;
  --r-xl:  20px;
  --r-2xl: 26px;
  --r-pill:999px;

  /* Spacing */
  --s-2:2px;   --s-4:4px;   --s-6:6px;   --s-8:8px;
  --s-10:10px; --s-12:12px; --s-14:14px; --s-16:16px;
  --s-18:18px; --s-20:20px; --s-24:24px; --s-28:28px;
  --s-32:32px; --s-40:40px; --s-48:48px; --s-56:56px;
  --s-64:64px; --s-72:72px; --s-80:80px;

  /* Layout */
  --sidebar-w: 220px;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

/* ── Body ───────────────────────────────────────────────────── */
.bt-body {
  background:
    radial-gradient(ellipse 80% 60% at 60% 10%, rgba(124,58,237,0.35) 0%, transparent 55%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(167,85,250,0.20) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 85% 70%, rgba(249,115,22,0.10) 0%, transparent 50%),
    linear-gradient(160deg, #0f0a2e 0%, #1a1052 40%, #0d0825 100%);
  background-attachment: fixed;
  color: var(--t-primary);
  min-height: 100vh;
}

/* ══════════════════════════════════════════════════════════════
   SIDEBAR — light, consistent with trade.html
   ══════════════════════════════════════════════════════════════ */
.vp-shell {
  display: flex;
  min-height: 100vh;
}

.vp-sidebar {
  width: var(--sidebar-w);
  min-height: 100vh;
  background: var(--sidebar-bg);
  border-right: 1px solid var(--sidebar-border);
  display: flex;
  flex-direction: column;
  padding: var(--s-24) var(--s-16);
  position: fixed;
  left: 0; top: 0; bottom: 0;
  z-index: 50;
  overflow-y: auto;
  gap: var(--s-8);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
}

.vp-sidebar-logo { padding: var(--s-4) var(--s-8); margin-bottom: var(--s-16); }

.vp-logo-link {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--sidebar-text);
  letter-spacing: -0.02em;
  display: inline-flex;
  align-items: center;
  gap: 1px;
}

.vp-logo-link span:first-child { color: var(--sidebar-active); }
.vp-logo-dot { color: var(--sidebar-active); font-size: 26px; line-height: 1; }

/* Balance card — chartreuse */
.vp-balance-card {
  background: var(--chartreuse);
  border-radius: var(--r-lg);
  padding: var(--s-16);
  margin-bottom: var(--s-16);
  position: relative;
  overflow: hidden;
}

.vp-balance-card::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 80px; height: 80px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
}

.vp-balance-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--chart-text);
  opacity: 0.7;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: var(--s-6);
}

.vp-balance-amount {
  display: flex;
  align-items: baseline;
  gap: 4px;
}

#current-balance {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  color: var(--chart-text);
  letter-spacing: -0.03em;
  line-height: 1;
}

.vp-balance-unit {
  font-size: 11px;
  font-weight: 700;
  color: var(--chart-text);
  opacity: 0.7;
}

.vp-balance-naira {
  font-size: 11px;
  color: var(--chart-text);
  opacity: 0.6;
  font-family: var(--font-mono);
  margin-top: var(--s-4);
}

.vp-balance-arrow {
  position: absolute;
  top: var(--s-14); right: var(--s-14);
  width: 32px; height: 32px;
  background: var(--chart-text);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--chartreuse);
}

/* Nav */
.vp-nav {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  flex: 1;
}

.vp-nav-item {
  display: flex;
  align-items: center;
  gap: var(--s-10);
  padding: 10px var(--s-12);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 500;
  color: var(--sidebar-muted);
  text-decoration: none;
  background: none;
  border: none;
  transition: background 0.14s, color 0.14s;
  cursor: pointer;
  width: 100%;
  text-align: left;
}

.vp-nav-item:hover { background: var(--sidebar-surface); color: var(--sidebar-text); }

.vp-nav-item.active {
  background: var(--sidebar-active-bg);
  color: var(--sidebar-active);
  font-weight: 600;
}

.vp-nav-icon {
  display: flex;
  align-items: center;
  width: 18px;
  color: rgba(0,0,0,0.3);
  flex-shrink: 0;
  transition: color 0.14s;
}

.vp-nav-item.active .vp-nav-icon { color: var(--sidebar-active); }

.vp-sidebar-bottom {
  display: flex;
  flex-direction: column;
  gap: var(--s-2);
  padding-top: var(--s-16);
  border-top: 1px solid var(--sidebar-border);
  margin-top: var(--s-16);
}

.vp-logout-btn {
  display: flex;
  align-items: center;
  gap: var(--s-10);
  padding: 10px var(--s-12);
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 600;
  color: var(--red);
  background: none;
  border: none;
  cursor: pointer;
  transition: background 0.14s;
  width: 100%;
  text-align: left;
  margin-top: var(--s-4);
}

.vp-logout-btn:hover { background: #fef2f2; }

/* ══════════════════════════════════════════════════════════════
   MAIN AREA
   ══════════════════════════════════════════════════════════════ */
.vp-main {
  margin-left: var(--sidebar-w);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  padding: var(--s-20) var(--s-24) var(--s-40);
}

/* ── Topbar ─────────────────────────────────────────────────── */
.vp-topbar {
  display: flex;
  align-items: center;
  gap: var(--s-16);
  background: var(--glass-2);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-xl);
  padding: var(--s-12) var(--s-20);
  margin-bottom: var(--s-24);
  min-height: 58px;
}

.vp-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 4px;
  width: 34px;
  height: 34px;
  background: none;
  border: 1px solid var(--glass-border);
  border-radius: var(--r-sm);
  cursor: pointer;
  flex-shrink: 0;
}

.vp-hamburger span {
  display: block;
  width: 16px;
  height: 1.5px;
  background: var(--t-secondary);
  border-radius: 2px;
}

.vp-topbar-search {
  flex: 1;
  display: flex;
  align-items: center;
  gap: var(--s-10);
  background: var(--glass-1);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  padding: 9px var(--s-18);
  max-width: 480px;
}

.vp-topbar-input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--t-secondary);
}

.vp-topbar-input::placeholder { color: var(--t-muted); }

.vp-topbar-right {
  display: flex;
  align-items: center;
  gap: var(--s-10);
  margin-left: auto;
}

.vp-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--glass-1);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: background 0.14s;
  flex-shrink: 0;
}

.vp-icon-btn:hover { background: var(--glass-2); }

.vp-notif-dot {
  position: absolute;
  top: 4px; right: 4px;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--red);
  border: 1.5px solid var(--purple-900);
}

/* Tier chip */
.vp-tier-chip {
  padding: 5px 12px;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  border: 1px solid var(--glass-border);
  color: var(--t-muted);
  background: var(--glass-1);
}

.dash-tier-badge--free   { color: var(--t-muted); }
.dash-tier-badge--silver { color: #b8c4d8; border-color: rgba(184,196,216,0.2); }
.dash-tier-badge--gold   { color: var(--amber); border-color: rgba(251,191,36,0.3); background: var(--amber-dim); }

/* User chip */
.vp-user-chip {
  display: flex;
  align-items: center;
  gap: var(--s-10);
  background: var(--glass-2);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-pill);
  padding: 5px 14px 5px 6px;
  cursor: pointer;
  transition: background 0.14s, border-color 0.14s;
  color: var(--t-primary);
}

.vp-user-chip:hover { background: var(--glass-3); border-color: var(--glass-border-bright); }

.vp-avatar-circle {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--cta-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}

.vp-user-info { display: flex; flex-direction: column; }

.vp-user-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--t-primary);
  white-space: nowrap;
  line-height: 1.3;
}

.vp-user-email {
  font-size: 10px;
  color: var(--t-muted);
  white-space: nowrap;
}

/* Dropdown */
.vp-user-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 190px;
  background: rgba(26,16,82,0.95);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border-bright);
  border-radius: var(--r-lg);
  padding: var(--s-6);
  box-shadow: 0 16px 48px rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity 0.15s, transform 0.15s;
  z-index: 200;
}

.vp-user-dropdown.open { opacity: 1; pointer-events: auto; transform: translateY(0); }

.vp-dd-item {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  width: 100%;
  padding: var(--s-8) var(--s-10);
  border-radius: var(--r-sm);
  font-size: 13px;
  color: var(--t-secondary);
  background: none;
  border: none;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.12s, color 0.12s;
  text-align: left;
}

.vp-dd-item:hover { background: var(--glass-2); color: var(--t-primary); }
.vp-dd-danger { color: #f87171; }
.vp-dd-danger:hover { background: rgba(239,68,68,0.10); }

/* ══════════════════════════════════════════════════════════════
   PAGE CONTENT
   ══════════════════════════════════════════════════════════════ */
.bt-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: var(--s-28);
}

/* ── Page header ────────────────────────────────────────────── */
.bt-page-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--s-24);
  flex-wrap: wrap;
}

.bt-eyebrow {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--purple-400);
  margin-bottom: var(--s-8);
}

.bt-headline {
  font-family: var(--font-display);
  font-size: clamp(24px, 4vw, 38px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--t-primary);
  line-height: 1.1;
  margin-bottom: var(--s-10);
}

.bt-subtext {
  font-size: 14px;
  color: var(--t-secondary);
  line-height: 1.7;
  max-width: 460px;
}

.bt-header-stats {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--glass-1);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  overflow: hidden;
  backdrop-filter: blur(12px);
  flex-shrink: 0;
}

.bt-header-stat { padding: var(--s-14) var(--s-20); text-align: center; }

.bt-header-stat-val {
  font-family: var(--font-mono);
  font-size: 17px;
  font-weight: 700;
  color: var(--t-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.bt-header-stat-label {
  font-size: 9px;
  color: var(--t-muted);
  text-transform: uppercase;
  letter-spacing: 0.07em;
  margin-top: 4px;
}

.bt-header-stat-div {
  width: 1px;
  height: 32px;
  background: var(--glass-border);
  flex-shrink: 0;
}

/* ── Two-column layout ──────────────────────────────────────── */
.bt-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: var(--s-20);
  align-items: start;
}

/* ── Glass card ─────────────────────────────────────────────── */
.bt-glass-card {
  background: var(--glass-1);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-2xl);
  padding: var(--s-24);
  position: relative;
  overflow: hidden;
}

.bt-glass-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(167,85,250,0.08) 0%, transparent 60%);
  pointer-events: none;
}

.bt-card-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--purple-400);
  margin-bottom: var(--s-16);
}

/* ══ PLAN ROWS (Figma-style selectable) ═════════════════════════ */
.bt-plan-row {
  display: flex;
  align-items: center;
  gap: var(--s-14);
  padding: var(--s-14) var(--s-16);
  border-radius: var(--r-lg);
  border: 1px solid var(--glass-border);
  background: var(--glass-1);
  margin-bottom: var(--s-10);
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.18s, background 0.18s, transform 0.15s;
  color: var(--t-primary);
  position: relative;
}

.bt-plan-row:last-of-type { margin-bottom: 0; }

.bt-plan-row:hover {
  background: var(--glass-2);
  border-color: var(--glass-border-bright);
  transform: translateX(3px);
}

/* Standard — featured highlight (Figma "Most Popular" selected row) */
.bt-plan-row--featured {
  border-color: rgba(249,115,22,0.45);
  background: linear-gradient(135deg, rgba(124,58,237,0.10) 0%, rgba(249,115,22,0.06) 100%);
}

.bt-plan-row--featured:hover {
  border-color: rgba(249,115,22,0.65);
}

/* Pro — emerald accent */
.bt-plan-row--pro {
  border-color: rgba(16,185,129,0.25);
  background: rgba(16,185,129,0.04);
}

.bt-plan-row--pro:hover { border-color: rgba(16,185,129,0.45); }

/* VIP — amber accent */
.bt-plan-row--vip {
  border-color: rgba(251,191,36,0.25);
  background: rgba(251,191,36,0.04);
}

.bt-plan-row--vip:hover { border-color: rgba(251,191,36,0.50); }

/* Plan icon circle */
.bt-plan-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
  font-family: var(--font-display);
  flex-shrink: 0;
}

.bt-plan-icon--starter  { background: rgba(255,255,255,0.08); color: var(--t-secondary); }
.bt-plan-icon--standard { background: linear-gradient(135deg, #7c3aed, #f97316); color: #fff; }
.bt-plan-icon--pro      { background: linear-gradient(135deg, #065f46, #10b981); color: #fff; }
.bt-plan-icon--vip      { background: linear-gradient(135deg, #78350f, #fbbf24); color: #fff; }

/* Plan info */
.bt-plan-info { flex: 1; min-width: 0; }

.bt-plan-name {
  font-size: 14px;
  font-weight: 700;
  color: var(--t-primary);
  display: flex;
  align-items: center;
  gap: var(--s-8);
  flex-wrap: wrap;
  margin-bottom: 2px;
}

.bt-plan-desc {
  font-size: 11px;
  color: var(--t-muted);
  line-height: 1.4;
}

/* Pill badges */
.bt-popular-pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: rgba(249,115,22,0.18);
  color: var(--orange);
  border: 1px solid rgba(249,115,22,0.28);
}

.bt-value-pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--emerald-dim);
  color: var(--emerald);
  border: 1px solid rgba(16,185,129,0.25);
}

.bt-vip-pill {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: var(--amber-dim);
  color: var(--amber);
  border: 1px solid rgba(251,191,36,0.28);
}

/* Plan right side */
.bt-plan-right {
  text-align: right;
  flex-shrink: 0;
  margin-right: var(--s-8);
}

.bt-plan-price {
  font-family: var(--font-mono);
  font-size: 16px;
  font-weight: 700;
  color: var(--t-primary);
  letter-spacing: -0.02em;
  line-height: 1;
}

.bt-plan-price--featured { color: var(--orange); }
.bt-plan-price--vip      { color: var(--amber); }

.bt-plan-tokens {
  font-size: 10px;
  color: var(--t-muted);
  font-family: var(--font-mono);
  margin-top: 2px;
}

.bt-plan-arrow {
  color: var(--t-faint);
  flex-shrink: 0;
  transition: color 0.15s, transform 0.15s;
}

.bt-plan-row:hover .bt-plan-arrow {
  color: var(--t-secondary);
  transform: translateX(2px);
}

/* ── Custom amount row ──────────────────────────────────────── */
.bt-custom-row {
  margin-top: var(--s-20);
  padding-top: var(--s-20);
  border-top: 1px solid var(--glass-border);
}

.bt-custom-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--t-muted);
  margin-bottom: var(--s-12);
}

.bt-custom-controls {
  display: flex;
  align-items: center;
  gap: var(--s-12);
  flex-wrap: wrap;
}

.bt-custom-input-wrap {
  position: relative;
  flex: 1;
  min-width: 140px;
}

.bt-custom-input {
  width: 100%;
  padding: 11px 44px 11px 14px;
  background: var(--glass-1);
  border: 1px solid var(--glass-border-bright);
  border-radius: var(--r-md);
  color: var(--t-primary);
  font-size: 14px;
  font-family: var(--font-body);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.bt-custom-input::placeholder { color: var(--t-muted); }

.bt-custom-input:focus {
  border-color: var(--purple-500);
  box-shadow: 0 0 0 3px rgba(124,58,237,0.18);
}

.bt-custom-input[type=number]::-webkit-inner-spin-button,
.bt-custom-input[type=number]::-webkit-outer-spin-button { -webkit-appearance: none; }
.bt-custom-input[type=number] { -moz-appearance: textfield; }

.bt-custom-suffix {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  color: var(--purple-400);
  pointer-events: none;
  letter-spacing: 0.04em;
}

.bt-custom-total {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--t-secondary);
  white-space: nowrap;
  flex-shrink: 0;
  padding: 10px 14px;
  background: var(--glass-1);
  border-radius: var(--r-md);
  border: 1px solid var(--glass-border);
}

/* CTA button — Figma purple-to-orange gradient */
.bt-custom-btn {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  padding: 12px 20px;
  background: var(--cta-gradient);
  border: none;
  border-radius: var(--r-lg);
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-body);
  color: #fff;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity 0.15s, transform 0.12s, box-shadow 0.15s;
  letter-spacing: 0.01em;
  flex-shrink: 0;
}

.bt-custom-btn:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(124,58,237,0.35);
}

.bt-card-note {
  font-size: 10px;
  color: var(--t-faint);
  text-align: center;
  margin-top: var(--s-16);
  line-height: 1.6;
}

/* ── Instructions card ──────────────────────────────────────── */
.bt-instructions-card {
  display: flex;
  align-items: flex-start;
  gap: var(--s-14);
  margin-top: var(--s-16);
}

.bt-instructions-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(59,130,246,0.12);
  border: 1px solid rgba(59,130,246,0.20);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #60a5fa;
  flex-shrink: 0;
  margin-top: 2px;
}

.bt-instructions-title {
  font-size: 13px;
  font-weight: 700;
  color: var(--t-primary);
  margin-bottom: var(--s-6);
}

.bt-instructions-text {
  font-size: 12px;
  color: var(--t-secondary);
  line-height: 1.75;
}

.bt-email-link {
  color: #60a5fa;
  font-weight: 500;
  text-decoration: none;
}

.bt-email-link:hover { text-decoration: underline; }

/* ══ RIGHT COLUMN ════════════════════════════════════════════ */
.bt-right {
  display: flex;
  flex-direction: column;
  gap: var(--s-16);
  position: sticky;
  top: var(--s-20);
}

/* ── Tiers card ─────────────────────────────────────────────── */
.bt-tiers-card {}

.bt-tiers-intro {
  font-size: 12px;
  color: var(--t-muted);
  line-height: 1.6;
  margin-bottom: var(--s-16);
}

.bt-tier-row {
  display: flex;
  align-items: center;
  gap: var(--s-10);
  padding: var(--s-12) var(--s-14);
  border-radius: var(--r-md);
  border: 1px solid var(--glass-border);
  background: var(--glass-1);
  margin-bottom: var(--s-8);
  transition: background 0.14s;
}

.bt-tier-row:hover { background: var(--glass-2); }

.bt-tier-row--silver { border-color: rgba(148,163,184,0.22); }
.bt-tier-row--gold   { border-color: rgba(251,191,36,0.25); background: rgba(251,191,36,0.04); }

.bt-tier-name-wrap {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  width: 70px;
  flex-shrink: 0;
}

.bt-tier-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.bt-tier-dot--free   { background: rgba(255,255,255,0.25); }
.bt-tier-dot--silver { background: #b8c4d8; }
.bt-tier-dot--gold   { background: var(--amber); box-shadow: 0 0 6px rgba(251,191,36,0.5); }

.bt-tier-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--t-secondary);
}

.bt-tier-name--silver { color: #b8c4d8; }
.bt-tier-name--gold   { color: var(--amber); }

.bt-tier-detail {
  flex: 1;
  font-size: 11px;
  color: var(--t-muted);
  font-family: var(--font-mono);
}

.bt-tier-cost {
  font-size: 11px;
  font-weight: 700;
  color: var(--t-muted);
  font-family: var(--font-mono);
  flex-shrink: 0;
}

.bt-tier-cost--silver { color: #b8c4d8; }
.bt-tier-cost--gold   { color: var(--amber); }

/* Tier feature list */
.bt-tier-features {
  margin: var(--s-14) 0;
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
}

.bt-tier-feat {
  display: flex;
  align-items: center;
  gap: var(--s-8);
  font-size: 12px;
  color: var(--t-secondary);
}

/* Tier activate button */
.bt-tier-activate-btn {
  width: 100%;
  padding: 12px;
  background: var(--cta-gradient);
  border: none;
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.12s, box-shadow 0.15s;
  letter-spacing: 0.02em;
  margin-top: var(--s-4);
  font-family: var(--font-body);
}

.bt-tier-activate-btn:hover {
  opacity: 0.90;
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(124,58,237,0.30);
}

/* ── Security card ──────────────────────────────────────────── */
.bt-security-card {}

.bt-security-badges {
  display: flex;
  gap: var(--s-12);
  align-items: center;
  margin-bottom: var(--s-14);
  flex-wrap: wrap;
}

.bt-badge-img {
  height: 28px;
  width: auto;
  object-fit: contain;
  border-radius: var(--r-sm);
  opacity: 0.80;
}

.bt-security-text {
  font-size: 12px;
  color: var(--t-muted);
  line-height: 1.65;
  margin-bottom: var(--s-16);
}

.bt-powered-row {
  display: flex;
  align-items: center;
  gap: var(--s-12);
  padding-top: var(--s-14);
  border-top: 1px solid var(--glass-border);
}

.bt-powered-text {
  font-size: 11px;
  color: var(--t-muted);
  line-height: 1.5;
}

/* ── Back card ──────────────────────────────────────────────── */
.bt-back-card {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s-8);
  padding: var(--s-14);
  background: var(--glass-1);
  border: 1px solid var(--glass-border);
  border-radius: var(--r-lg);
  font-size: 13px;
  font-weight: 600;
  color: var(--t-secondary);
  text-decoration: none;
  transition: background 0.14s, color 0.14s;
}

.bt-back-card:hover {
  background: var(--glass-2);
  color: var(--t-primary);
}

/* ══ MODAL ═══════════════════════════════════════════════════ */
.bt-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(5,3,20,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--s-20);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s;
}

.bt-modal-backdrop.open {
  opacity: 1;
  pointer-events: auto;
}

.bt-modal {
  background: rgba(26,16,82,0.95);
  backdrop-filter: blur(30px);
  -webkit-backdrop-filter: blur(30px);
  border: 1px solid var(--glass-border-bright);
  border-radius: var(--r-2xl);
  padding: var(--s-28);
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.6);
  transform: translateY(8px);
  transition: transform 0.2s;
}

.bt-modal-backdrop.open .bt-modal { transform: translateY(0); }

.bt-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--s-16);
}

.bt-modal-title {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 800;
  color: var(--t-primary);
  letter-spacing: -0.025em;
}

.bt-modal-close {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: var(--glass-2);
  border: 1px solid var(--glass-border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--t-secondary);
  transition: background 0.14s;
}

.bt-modal-close:hover { background: var(--glass-3); color: var(--t-primary); }

.bt-modal-body {
  font-size: 14px;
  color: var(--t-secondary);
  line-height: 1.7;
  margin-bottom: var(--s-24);
}

.bt-modal-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 14px;
  background: var(--cta-gradient);
  border-radius: var(--r-lg);
  font-size: 14px;
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  transition: opacity 0.15s, box-shadow 0.15s;
}

.bt-modal-cta:hover {
  opacity: 0.90;
  box-shadow: 0 6px 24px rgba(124,58,237,0.35);
}

/* ══ MOBILE NAV ══════════════════════════════════════════════ */
.vp-mobile-nav {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(15,10,46,0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transform: translateX(-100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  overflow-y: auto;
}

.vp-mobile-nav.open { transform: translateX(0); }

.vp-mobile-backdrop {
  position: fixed;
  inset: 0;
  z-index: 199;
  background: rgba(0,0,0,0.5);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s;
}

.vp-mobile-backdrop.open { opacity: 1; pointer-events: auto; }

.vp-mobile-nav-inner {
  padding: var(--s-32) var(--s-24);
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
  min-height: 100%;
}

.vp-mobile-logo {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 800;
  color: var(--t-primary);
  margin-bottom: var(--s-24);
}

.vp-mobile-logo span { color: var(--purple-400); }

.vp-mobile-links {
  display: flex;
  flex-direction: column;
  gap: var(--s-4);
  flex: 1;
}

.vp-mobile-link {
  display: block;
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 15px;
  font-weight: 500;
  color: var(--t-secondary);
  transition: background 0.12s, color 0.12s;
}

.vp-mobile-link:hover { background: var(--glass-2); color: var(--t-primary); }
.vp-mobile-link.active { background: rgba(124,58,237,0.15); color: var(--purple-300); font-weight: 600; }

.vp-mobile-logout {
  display: flex;
  align-items: center;
  gap: var(--s-10);
  padding: 12px 16px;
  border-radius: var(--r-md);
  font-size: 14px;
  font-weight: 700;
  color: #f87171;
  background: none;
  border: none;
  cursor: pointer;
  margin-top: auto;
}

.vp-mobile-logout:hover { background: rgba(239,68,68,0.08); }

/* ══ TOAST ═══════════════════════════════════════════════════ */
.toast-container {
  position: fixed;
  bottom: var(--s-24);
  right: var(--s-20);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--s-8);
  pointer-events: none;
}

.toast {
  min-width: 260px;
  max-width: 360px;
  background: rgba(26,16,82,0.96);
  backdrop-filter: blur(16px);
  border: 1px solid var(--glass-border-bright);
  border-radius: var(--r-lg);
  padding: var(--s-12) var(--s-16);
  font-size: 13px;
  color: var(--t-primary);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  pointer-events: auto;
  cursor: pointer;
  animation: toast-in 0.25s ease forwards;
}

.toast--success { border-left: 3px solid var(--emerald); }
.toast--error   { border-left: 3px solid var(--red); }
.toast--info    { border-left: 3px solid var(--purple-500); }
.toast.hiding   { animation: toast-out 0.25s ease forwards; }

@keyframes toast-in  { from { opacity:0; transform:translateY(8px); } to { opacity:1; transform:translateY(0); } }
@keyframes toast-out { from { opacity:1; transform:translateY(0); } to { opacity:0; transform:translateY(8px); } }

/* ══ FOOTER ══════════════════════════════════════════════════ */
.bt-footer {
  margin-top: var(--s-32);
  padding: var(--s-20) 0 0;
  border-top: 1px solid var(--glass-border);
  text-align: center;
}

.bt-footer p { font-size: 11px; color: var(--t-faint); line-height: 1.6; }
.bt-footer a  { color: var(--purple-400); }

/* ══ RESPONSIVE ══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .bt-layout { grid-template-columns: 1fr 290px; }
}

@media (max-width: 960px) {
  .vp-sidebar { transform: translateX(-100%); transition: transform 0.28s ease; }
  .vp-main    { margin-left: 0; }
  .vp-hamburger { display: flex; }
  .bt-layout { grid-template-columns: 1fr; }
  .bt-right  { position: static; }
}

@media (max-width: 640px) {
  .vp-main { padding: var(--s-16) var(--s-14) var(--s-32); }
  .vp-topbar { padding: var(--s-10) var(--s-14); gap: var(--s-10); }
  .vp-topbar-search { display: none; }
  .vp-user-info { display: none; }
  .bt-page-header { flex-direction: column; align-items: flex-start; }
  .bt-header-stats { width: 100%; }
  .bt-header-stat { flex: 1; }
  .bt-custom-controls { flex-direction: column; align-items: stretch; }
  .bt-custom-input-wrap { min-width: unset; }
  .bt-custom-total { text-align: center; }
  .bt-custom-btn { width: 100%; justify-content: center; }
  .bt-glass-card { padding: var(--s-18); }
}

@media (max-width: 400px) {
  .bt-header-stats { flex-direction: column; }
  .bt-header-stat-div { display: none; }
}