/* ═══════════════════════════════════════════════════════════
   ROYALL — Creator Portal
   V4: Light-first. Soft shadows. Airy. Modern finance feel.
   ═══════════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Space+Grotesk:wght@400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800;900&display=swap');

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

:root {
  --font: 'Plus Jakarta Sans', -apple-system, sans-serif;
  --font-display: 'Space Grotesk', 'Plus Jakarta Sans', sans-serif;

  /* Light theme (default) */
  --bg: #f4f5f7;
  --surface: #ffffff;
  --surface-2: #f8f8fa;
  --surface-3: #f0f0f4;
  --border: #eaeaef;
  --border-2: #dddde3;

  --text: #0f0f12;
  --text-2: #5a5a68;
  --text-muted: #9898a5;

  /* Accent — deep violet */
  --accent: #6c5ce7;
  --accent-dim: #5a4bd6;
  --accent-soft: rgba(108,92,231,0.08);
  --accent-glow: rgba(108,92,231,0.12);
  --accent-text: #fff;

  --violet: #8b5cf6;
  --violet-soft: rgba(139,92,246,0.07);
  --violet-glow: rgba(139,92,246,0.12);

  /* Status */
  --green: #10b981;
  --amber: #f59e0b;
  --red: #ef4444;
  --blue: #3b82f6;
  --purple: #8b5cf6;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.04), 0 1px 2px rgba(0,0,0,0.02);
  --shadow-md: 0 4px 16px rgba(0,0,0,0.06), 0 1px 4px rgba(0,0,0,0.03);
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.08), 0 2px 8px rgba(0,0,0,0.04);
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.1);

  /* Radii */
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 999px;

  /* Motion */
  --ease: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
  --duration: 0.3s;
}

/* ── Dark theme ──────────────────────────────────────── */
html[data-theme="dark"],
html[data-theme="dark"] body {
  --bg: #030303 !important;
  --surface: #0a0a0b !important;
  --surface-2: #111113 !important;
  --surface-3: #19191c !important;
  --border: #1c1c20 !important;
  --border-2: #28282e !important;
  --text: #f5f5f5 !important;
  --text-2: #8b8b95 !important;
  --text-muted: #4a4a54 !important;
  --accent: #8b7aff !important;
  --accent-dim: #7a6aee !important;
  --accent-soft: rgba(139,122,255,0.10) !important;
  --accent-glow: rgba(139,122,255,0.18) !important;
  --accent-text: #fff !important;
  --violet: #a78bfa !important;
  --violet-soft: rgba(167,139,250,0.10) !important;
  --violet-glow: rgba(167,139,250,0.18) !important;
  --green: #34d399 !important;
  --amber: #fbbf24 !important;
  --red: #f87171 !important;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.2) !important;
  --shadow-md: 0 4px 16px rgba(0,0,0,0.3) !important;
  --shadow-lg: 0 12px 40px rgba(0,0,0,0.4) !important;
  --shadow-xl: 0 20px 60px rgba(0,0,0,0.5) !important;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  overflow-x: hidden;
  transition: background 0.3s, color 0.3s;
}

a { color: var(--accent); text-decoration: none; transition: color 0.2s var(--ease); }
a:hover { color: var(--accent-dim); text-decoration: none; }
button { font-family: var(--font); cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: var(--font); }

::selection { background: var(--accent); color: #fff; }


/* ── Typography ────────────────────────────────────────── */
.logo-img { height: 28px; width: auto; display: block; }
.logo-img-lg { height: 40px; }
.logo-img-xl { height: 56px; }

.display-hero {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(60px, 11vw, 130px);
  letter-spacing: -5px;
  line-height: 0.88;
  color: var(--text);
}

.display-xl {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(46px, 7vw, 84px);
  letter-spacing: -3px;
  line-height: 0.92;
  color: var(--text);
}

.display-lg {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(28px, 4vw, 42px);
  letter-spacing: -1.2px;
  line-height: 1.05;
}

.display-md {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.5px;
  line-height: 1.1;
}

.display-sm {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.3px;
}

.text-muted { color: var(--text-muted); }
.text-2 { color: var(--text-2); }
.text-accent { color: var(--accent); }
.text-sm { font-size: 13px; }
.text-xs { font-size: 11px; }

.label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  text-transform: uppercase;
  color: var(--text-muted);
}

.sub {
  font-size: 17px;
  color: var(--text-2);
  line-height: 1.7;
  max-width: 440px;
  font-weight: 400;
}

/* Gradient text: yellow -> violet */
.gradient-text {
  background: linear-gradient(135deg, var(--accent) 0%, var(--violet) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Accent highlight text */
.text-pop { color: var(--accent); }


/* ── Buttons ───────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 50px;
  padding: 0 30px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 0.2px;
  transition: all var(--duration) var(--ease);
  white-space: nowrap;
  position: relative;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); transition-duration: 0.1s; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-text);
  box-shadow: 0 2px 16px var(--accent-glow);
}
.btn-primary:hover {
  background: var(--accent-dim);
  box-shadow: 0 8px 32px var(--accent-glow);
}

.btn-accent {
  background: var(--accent);
  color: var(--accent-text, #fff);
  box-shadow: 0 2px 16px var(--accent-glow);
}
.btn-accent:hover { background: var(--accent-dim, var(--accent)); filter: brightness(0.9); box-shadow: 0 8px 32px var(--accent-glow); }

.btn-ghost {
  background: transparent;
  border: 1px solid var(--border-2);
  color: var(--text-2);
}
.btn-ghost:hover { border-color: var(--text-muted); color: var(--text); background: var(--surface-2); }

.btn-danger-ghost {
  background: transparent;
  border: 1px solid rgba(248,113,113,0.2);
  color: var(--red);
}
.btn-danger-ghost:hover { background: rgba(248,113,113,0.06); border-color: var(--red); }

.btn-lg { height: 60px; padding: 0 44px; font-size: 16px; border-radius: 16px; }
.btn-sm { height: 38px; padding: 0 18px; font-size: 13px; border-radius: 10px; }
.btn-full { width: 100%; }
.btn[disabled] { opacity: 0.3; pointer-events: none; }


/* ── Inputs ────────────────────────────────────────────── */
.input {
  width: 100%;
  height: 56px;
  padding: 0 20px;
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: 15px;
  outline: none;
  transition: all var(--duration) var(--ease);
}
.input:hover { border-color: var(--border-2); background: var(--surface-2); }
.input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
  background: var(--surface);
}
.input::placeholder { color: var(--text-muted); }
.input-lg { height: 62px; font-size: 17px; border-radius: 16px; padding: 0 24px; }


/* ── Cards & Badges ────────────────────────────────────── */
.card {
  background: var(--surface);
  border: none;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
}
.card:hover { box-shadow: var(--shadow-md); }

.badge {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
  gap: 4px;
  padding: 5px 14px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.badge-outline { border: 1px solid var(--border-2); color: var(--text-2); }
.badge-accent { background: var(--accent-soft); color: var(--accent); border: 1px solid rgba(232,255,71,0.12); }
.badge-green { background: rgba(52,211,153,0.08); color: var(--green); }
.badge-amber { background: rgba(251,191,36,0.08); color: var(--amber); }
.badge-red { background: rgba(248,113,113,0.08); color: var(--red); }

/* Request action buttons */
.btn-sm {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 9px 22px; border-radius: 10px; font-size: 13px; font-weight: 700;
  font-family: var(--font); border: none; cursor: pointer;
  transition: all 0.2s var(--ease);
}
.btn-accept { background: var(--green); color: #fff; }
.btn-accept:hover { background: #059669; transform: translateY(-1px); box-shadow: 0 4px 12px rgba(16,185,129,0.3); }
.btn-decline { background: transparent; color: var(--red); border: 1.5px solid var(--red); }
.btn-decline:hover { background: rgba(239,68,68,0.06); }

.label { font-size: 12px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.5px; }

/* Success check animation */
.check-draw {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  animation: drawCheck 0.6s 0.3s var(--ease-out) forwards;
}
@keyframes drawCheck {
  to { stroke-dashoffset: 0; }
}
.success-check {
  animation: successPop 0.5s var(--ease-spring);
}
@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  60% { transform: scale(1.15); }
  100% { transform: scale(1); opacity: 1; }
}


/* ═══════════════════════════════════════════════════════════
   AUTH PAGES
   ═══════════════════════════════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 24px;
  position: relative;
  overflow: hidden;
}

/* Dual-color gradient orbs */
.auth-page::before {
  content: '';
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,92,231,0.06) 0%, transparent 65%);
  top: 20%;
  left: 60%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: orbFloat1 12s ease-in-out infinite;
}
.auth-page::after {
  content: '';
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.05) 0%, transparent 65%);
  top: 70%;
  left: 30%;
  transform: translate(-50%, -50%);
  pointer-events: none;
  animation: orbFloat2 15s ease-in-out infinite;
  z-index: 0;
}

@keyframes orbFloat1 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.15) translateX(40px); }
}
@keyframes orbFloat2 {
  0%, 100% { transform: translate(-50%, -50%) scale(1); }
  50% { transform: translate(-50%, -50%) scale(1.1) translateX(-30px); }
}

.auth-card {
  width: 100%;
  max-width: 440px;
  position: relative;
  z-index: 1;
}
.auth-card .logo-img { margin: 0 auto 72px; }
.auth-card .input { margin-bottom: 16px; }
.auth-card .btn { margin-bottom: 16px; }
.error-msg { color: var(--red); font-size: 14px; margin-bottom: 12px; min-height: 20px; transition: all 0.2s; }

.otp-row { display: flex; gap: 16px; justify-content: center; margin: 44px 0; }
.otp-digit {
  width: 78px;
  height: 96px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 18px;
  text-align: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 38px;
  color: var(--text);
  outline: none;
  caret-color: var(--accent);
  transition: all var(--duration) var(--ease);
}
.otp-digit:hover { border-color: var(--border-2); }
.otp-digit:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
  transform: translateY(-3px);
  background: var(--surface);
}


/* ═══════════════════════════════════════════════════════════
   WIZARD
   ═══════════════════════════════════════════════════════════ */
.wizard {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  position: relative;
}

/* Dual ambient orbs */
.wizard::before {
  content: '';
  position: fixed;
  width: 900px;
  height: 900px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108,92,231,0.04) 0%, transparent 60%);
  top: 20%;
  right: -200px;
  pointer-events: none;
  animation: orbFloat1 20s ease-in-out infinite;
}
.wizard::after {
  content: '';
  position: fixed;
  width: 700px;
  height: 700px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.04) 0%, transparent 60%);
  bottom: -100px;
  left: -200px;
  pointer-events: none;
  animation: orbFloat2 18s ease-in-out infinite;
}

.wizard-bar {
  display: flex;
  gap: 8px;
  padding: 32px 24px;
  max-width: 400px;
  margin: 0 auto;
  width: 100%;
  position: relative;
  z-index: 2;
}
.wizard-seg {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: var(--border);
  transition: all 0.6s var(--ease-out);
  overflow: hidden;
}
.wizard-seg.done { background: var(--accent); }
.wizard-seg.active {
  background: var(--accent);
  box-shadow: 0 0 16px var(--accent-glow);
}

.wizard-body {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  padding: 40px 24px;
  overflow: hidden;
  z-index: 2;
}

.step {
  position: absolute;
  width: 100%;
  max-width: 580px;
  padding: 0 24px;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translateY(50px) scale(0.96);
  filter: blur(4px);
  transition: opacity 0.55s var(--ease), transform 0.55s var(--ease-out), filter 0.55s var(--ease);
}
.step.active {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  filter: blur(0px);
}
.step.exit {
  opacity: 0;
  transform: translateY(-40px) scale(0.98);
  filter: blur(4px);
}

.step .logo-img { margin: 0 auto 44px; opacity: 0.35; transition: opacity 0.3s; }
.step .display-xl { margin-bottom: 24px; }
.step .sub { margin: 0 auto 52px; }


/* ── Type Grid ─────────────────────────────────────────── */
.type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(128px, 1fr));
  gap: 10px;
  text-align: center;
  max-width: 580px;
  margin: 0 auto 40px;
  max-height: 440px;
  overflow-y: auto;
  padding: 4px;
}
.type-grid::-webkit-scrollbar { width: 4px; }
.type-grid::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }

.type-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 22px 12px;
  cursor: pointer;
  transition: all 0.3s var(--ease);
  position: relative;
}
.type-card:hover {
  border-color: var(--border-2);
  box-shadow: var(--shadow-md);
}
.type-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm);
}

.type-card .ic {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  transition: all 0.3s var(--ease);
}
.type-card .ic svg, .type-card .ic i { width: 18px; height: 18px; color: var(--text-muted); transition: color 0.3s; }
.type-card.selected .ic { background: var(--accent); box-shadow: 0 4px 20px var(--accent-glow); }
.type-card.selected .ic svg, .type-card.selected .ic i { color: var(--accent-text); }
.type-card .nm { font-size: 12px; font-weight: 600; color: var(--text-2); line-height: 1.3; transition: color 0.3s; }
.type-card.selected .nm { color: var(--text); }
.selected-count { font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 22px; }


/* ── Platform Selection ────────────────────────────────── */
.cat-row { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.cat-btn {
  padding: 10px 24px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  transition: all 0.3s var(--ease);
  cursor: pointer;
}
.cat-btn:hover { border-color: var(--text-muted); color: var(--text-2); transform: translateY(-1px); }
.cat-btn.active {
  background: var(--accent);
  color: var(--accent-text);
  border-color: var(--accent);
  box-shadow: 0 4px 20px var(--accent-glow);
}

.plat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(148px, 1fr));
  gap: 10px;
  max-width: 600px;
  margin: 0 auto 16px;
  overflow: hidden;
  position: relative;
  transition: max-height 0.4s var(--ease-out);
  padding: 4px;
}
.plat-grid.collapsed {
  max-height: 240px;
}
.plat-grid.expanded {
  max-height: 340px;
  overflow-y: auto;
}
.plat-grid.expanded::-webkit-scrollbar { width: 4px; }
.plat-grid.expanded::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
.plat-grid.collapsed::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}
.btn-show-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text-2);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  margin-bottom: 20px;
  transition: all 0.25s var(--ease);
  box-shadow: var(--shadow-sm);
}
.btn-show-more:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-1px);
  box-shadow: var(--shadow-md);
}
.plat-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.plat-card:hover { border-color: var(--border-2); box-shadow: var(--shadow-md); }
.plat-card .ic { margin: 0 auto 10px; color: var(--text-muted); transition: color 0.3s; }
.plat-card .ic svg { width: 22px; height: 22px; }
.plat-card .nm { font-size: 13px; font-weight: 600; transition: color 0.3s; }
.plat-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent), var(--shadow-sm);
}
.plat-card.selected .ic img { opacity: 1 !important; }
.plat-card.selected .nm { color: var(--text); }

.added-chips { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 20px; }
.selected-summary {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
}
.added-chip {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 7px 16px;
  border-radius: var(--radius-full);
  background: var(--violet-soft);
  border: 1px solid rgba(139,92,246,0.15);
  font-size: 12px;
  font-weight: 600;
  color: var(--violet);
  animation: chipIn 0.35s var(--ease-spring);
}
@keyframes chipIn {
  from { opacity: 0; transform: scale(0.7); }
  to { opacity: 1; transform: scale(1); }
}
.added-chip .x { width: 16px; height: 16px; cursor: pointer; opacity: 0.5; transition: opacity 0.15s; }
.added-chip .x:hover { opacity: 1; }


/* ── Vault Door ────────────────────────────────────────── */
.vault-anim {
  margin: 0 auto 52px;
  perspective: 800px;
  width: 220px;
  height: 220px;
  position: relative;
}

/* Outer pulse ring */
.vault-anim::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 220px;
  height: 220px;
  border-radius: 50%;
  border: 1px solid rgba(139,92,246,0.15);
  animation: vaultPulse 3s 0.5s ease-in-out infinite;
  opacity: 0;
}

/* Second outer ring */
.vault-anim::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(139,92,246,0.06);
  animation: vaultPulse 3s 1.2s ease-in-out infinite;
  opacity: 0;
}

@keyframes vaultPulse {
  0% { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
  50% { opacity: 0.4; transform: translate(-50%, -50%) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(0.85); }
}

.vault-ring {
  width: 200px;
  height: 200px;
  border-radius: 50%;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  transform-style: preserve-3d;
}

/* Outer ring border with gradient */
.vault-ring::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  border: 2px solid transparent;
  background: conic-gradient(from 0deg, rgba(139,92,246,0.5), rgba(232,255,71,0.3), rgba(139,92,246,0.5), rgba(232,255,71,0.3), rgba(139,92,246,0.5)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  animation: vaultRingSpin 4s linear infinite;
}

@keyframes vaultRingSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Inner ring detail */
.vault-ring::after {
  content: '';
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 1px solid rgba(139,92,246,0.12);
}

/* Tick marks around the ring */
.vault-cross {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  animation: vaultHandleSpin 3s linear infinite;
}
.vault-cross::before, .vault-cross::after {
  content: '';
  position: absolute;
  border-radius: 3px;
}
.vault-cross::before {
  width: 4px;
  height: 70px;
  top: -35px;
  left: -2px;
  background: linear-gradient(to bottom, var(--violet), var(--accent));
  box-shadow: 0 0 16px var(--violet-glow);
}
.vault-cross::after {
  width: 70px;
  height: 4px;
  top: -2px;
  left: -35px;
  background: linear-gradient(to right, var(--accent), var(--violet));
  box-shadow: 0 0 16px var(--accent-glow);
}

.vault-hub {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--violet);
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  background: rgba(139,92,246,0.15);
  box-shadow: 0 0 20px var(--violet-glow), inset 0 0 8px var(--violet-glow);
}

/* Additional hub dot */
.vault-hub::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 8px var(--accent);
}

.vault-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%,-50%);
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: radial-gradient(circle,
    rgba(139,92,246,0.2) 0%,
    rgba(232,255,71,0.05) 40%,
    transparent 70%
  );
  opacity: 0;
  animation: glowPulse 3s 0.5s ease-in-out infinite;
  z-index: -1;
}

@keyframes vaultHandleSpin {
  from { transform: translate(-50%,-50%) rotate(0); }
  to { transform: translate(-50%,-50%) rotate(360deg); }
}
@keyframes glowPulse {
  0% { opacity: 0.3; transform: translate(-50%,-50%) scale(0.9); }
  50% { opacity: 0.7; transform: translate(-50%,-50%) scale(1); }
  100% { opacity: 0.3; transform: translate(-50%,-50%) scale(0.9); }
}
.vault-text { opacity: 0; animation: fadeSlideUp 0.7s 1.2s var(--ease-out) forwards; }


/* ═══════════════════════════════════════════════════════════
   VAULT DASHBOARD — SIDEBAR LAYOUT
   ═══════════════════════════════════════════════════════════ */
.vault-layout {
  min-height: 100vh;
  display: flex;
}

/* ── Sidebar ──────────────────────────────────────────── */
.vault-sidebar {
  width: 260px;
  min-height: 100vh;
  background: var(--surface);
  border-right: none;
  box-shadow: 1px 0 0 var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  position: fixed;
  top: 0;
  left: 0;
  z-index: 100;
  transition: transform 0.35s var(--ease-out), background 0.3s;
}

.sidebar-header {
  padding: 32px 24px 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.sidebar-profile {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 20px 24px 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 8px;
  width: 100%;
  text-align: center;
}
.sidebar-profile-info {
  min-width: 0;
  width: 100%;
}
.sidebar-profile-name {
  font-weight: 700;
  font-size: 15px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.sidebar-profile-email {
  font-size: 12px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.vault-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--violet));
  color: var(--accent-text);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 14px;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease), box-shadow 0.3s;
}
.vault-avatar:hover { transform: scale(1.08); box-shadow: 0 0 20px var(--violet-glow); }

.sidebar-nav {
  flex: 1;
  padding: 8px 16px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.v-tab {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  white-space: nowrap;
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.v-tab:hover { background: var(--surface-2); color: var(--text); }
.v-tab.on {
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
}
.v-tab svg, .v-tab i { width: 18px; height: 18px; flex-shrink: 0; transition: color 0.2s; }
.v-tab.on svg, .v-tab.on i { color: var(--accent); }

.sidebar-footer {
  padding: 16px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 2px;
  width: 100%;
}

.sidebar-footer-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.sidebar-footer-btn:hover { background: var(--surface-2); color: var(--text-2); }
.sidebar-footer-btn svg, .sidebar-footer-btn i { width: 16px; height: 16px; }

/* Theme toggle in sidebar */
.theme-toggle {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  border: none;
  background: none;
  width: 100%;
  text-align: left;
}
.theme-toggle:hover { background: var(--surface-2); color: var(--text-2); }
.theme-toggle svg, .theme-toggle i { width: 16px; height: 16px; }

/* ── Main content ────────────────────────────────────── */
.vault-main {
  flex: 1;
  margin-left: 260px;
  min-height: 100vh;
  transition: margin-left 0.35s var(--ease-out);
}

.vault-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 48px;
  border-bottom: none;
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(244,245,247,0.85);
  backdrop-filter: blur(16px);
  transition: background 0.3s;
}
html[data-theme="dark"] .vault-top { background: rgba(3,3,3,0.85); }
.vault-top-left {
  display: flex;
  align-items: center;
  gap: 16px;
}
.vault-top-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.3px;
}
.vault-top-right { display: flex; align-items: center; gap: 16px; }

/* Mobile sidebar toggle */
.mobile-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: var(--radius);
  background: none;
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.2s;
}
.mobile-toggle:hover { background: var(--surface); color: var(--text); }

.v-panel {
  display: none;
  padding: 48px;
  opacity: 0;
  transition: background 0.3s;
}
.v-panel.on {
  display: block;
  animation: panelIn 0.45s var(--ease-out) forwards;
}
@keyframes panelIn {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile sidebar overlay */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 99;
  opacity: 0;
  transition: opacity 0.3s;
}
.sidebar-overlay.on { display: block; opacity: 1; }

/* Stats */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 16px;
  margin-bottom: 44px;
}
.stat-box {
  background: var(--surface);
  border: none;
  border-radius: var(--radius-lg);
  padding: 30px;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
}
.stat-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}
.stat-box .label { margin-bottom: 14px; }
.stat-box .val {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -2px;
  line-height: 1;
  transition: color 0.3s;
}
.stat-box .val.accent { color: var(--accent); }
.stat-box .val.red { color: var(--red); }

/* ── Overview Redesign ────────────────────────────────────── */
.ov-wrap {
  max-width: 1080px;
  margin: 0 auto;
}

/* Hero */
.ov-hero {
  margin-bottom: 36px;
}
.ov-hero-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2.4px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.ov-hero-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(38px, 5.4vw, 58px);
  letter-spacing: -2px;
  line-height: 1.02;
  color: var(--text);
}

/* Featured metric: big consent rate w/ progress ring */
.ov-feature {
  background: var(--surface);
  border-radius: var(--radius-xl);
  padding: 38px 42px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}
.ov-feature::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -10%;
  width: 280px;
  height: 280px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  pointer-events: none;
}
.ov-feature-left {
  position: relative;
  z-index: 1;
  flex: 1;
  min-width: 0;
}
.ov-feature-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.ov-feature-num {
  font-family: var(--font-display);
  font-size: clamp(56px, 9vw, 88px);
  font-weight: 700;
  letter-spacing: -3.5px;
  line-height: 0.92;
  color: var(--text);
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
}
.ov-feature-pct {
  font-size: 0.42em;
  color: var(--text-muted);
  font-weight: 600;
  letter-spacing: -1px;
}
.ov-feature-sub {
  font-size: 14px;
  color: var(--text-2);
  margin-top: 14px;
  font-weight: 500;
}
.ov-ring {
  width: 132px;
  height: 132px;
  flex-shrink: 0;
  position: relative;
  z-index: 1;
}
.ov-ring svg {
  width: 100%;
  height: 100%;
  display: block;
}

/* Compact stats grid */
.ov-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.ov-stat {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 24px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.ov-stat:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.ov-stat-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.3px;
  color: var(--text-muted);
  margin-bottom: 14px;
}
.ov-stat-val {
  font-family: var(--font-display);
  font-size: 38px;
  font-weight: 700;
  letter-spacing: -1.6px;
  line-height: 1;
  color: var(--text);
}
.ov-stat-green  { color: var(--green); }
.ov-stat-amber  { color: var(--amber); }
.ov-stat-accent { color: var(--accent); }

/* Quick actions */
.ov-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-bottom: 28px;
}
.ov-action {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px 22px;
  display: flex;
  align-items: center;
  gap: 16px;
  text-align: left;
  cursor: pointer;
  transition: all var(--duration) var(--ease);
  font-family: inherit;
  width: 100%;
}
.ov-action:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.ov-action-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: all var(--duration) var(--ease);
}
.ov-action:hover .ov-action-icon {
  background: var(--accent);
  color: var(--accent-text);
}
.ov-action-icon i,
.ov-action-icon svg {
  width: 18px;
  height: 18px;
}
.ov-action-body { flex: 1; min-width: 0; }
.ov-action-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 3px;
  letter-spacing: -0.2px;
}
.ov-action-sub {
  font-size: 12.5px;
  color: var(--text-muted);
  font-weight: 500;
}
.ov-action-arrow {
  color: var(--text-muted);
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  transition: transform 0.25s var(--ease), color 0.25s var(--ease);
}
.ov-action:hover .ov-action-arrow {
  color: var(--accent);
  transform: translateX(4px);
}

/* Profile */
.ov-profile {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 28px 32px;
  box-shadow: var(--shadow-sm);
}
.ov-profile-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.6px;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.ov-types {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ov-bio {
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.7;
  margin-top: 18px;
}

/* Mobile tweaks */
@media (max-width: 640px) {
  .ov-feature {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 26px;
  }
  .ov-ring { width: 110px; height: 110px; align-self: flex-end; margin-top: -60px; }
  .ov-feature-num { font-size: 64px; }
}

/* ── Earnings Redesign ─────────────────────────────────── */
.earn-hero {
  background: var(--surface);
  border-radius: 24px;
  padding: 40px 44px 32px;
  margin-bottom: 12px;
  box-shadow: var(--shadow-sm);
}
.earn-hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 28px;
}
.earn-hero-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  margin-bottom: 10px;
}
.earn-hero-num {
  font-family: var(--font-display);
  font-size: 68px;
  font-weight: 900;
  letter-spacing: -3px;
  line-height: 1;
  color: var(--accent);
}
.earn-stripe-badge {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(16,185,129,0.1);
  color: #059669;
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 4px;
}
.earn-hero-divider {
  height: 1px;
  background: var(--border);
  margin-bottom: 24px;
}
.earn-hero-substats {
  display: flex;
  align-items: center;
  gap: 36px;
}
.earn-hero-substat { display: flex; flex-direction: column; gap: 5px; }
.earn-hero-substat-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--text-muted);
}
.earn-hero-substat-val {
  font-family: var(--font-display);
  font-size: 24px;
  font-weight: 800;
  letter-spacing: -0.5px;
  color: var(--text);
}
.earn-hero-substat-sep {
  width: 1px;
  height: 36px;
  background: var(--border);
}

.earn-txn-header {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: var(--text-muted);
  padding: 20px 4px 12px;
}
.earn-txn-list {
  background: var(--surface);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.earn-txn {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 18px 24px;
  transition: background var(--duration) var(--ease);
}
.earn-txn:hover { background: var(--surface-2); }
.earn-txn + .earn-txn { border-top: 1px solid var(--border); }
.earn-txn-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 900;
  flex-shrink: 0;
  font-family: var(--font-display);
}
.earn-txn-body { flex: 1; min-width: 0; }
.earn-txn-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.earn-txn-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 3px;
}
.earn-txn-right {
  text-align: right;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}
.earn-txn-amount {
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 800;
  color: var(--green);
  letter-spacing: -0.3px;
}

/* ── Transaction detail drawer ───────────────────────────────────────────── */
.txn-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.32);
  z-index: 200;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s var(--ease);
}
.txn-drawer-overlay.open {
  opacity: 1;
  pointer-events: all;
}
.txn-drawer {
  position: fixed;
  top: 0;
  right: 0;
  height: 100%;
  width: 380px;
  max-width: 94vw;
  background: var(--surface);
  box-shadow: -8px 0 40px rgba(0,0,0,0.12);
  z-index: 201;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4,0,0.2,1);
  overflow: hidden;
}
.txn-drawer.open {
  transform: translateX(0);
}
.txn-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}
.txn-drawer-head-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.txn-drawer-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: var(--surface-2);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background var(--duration) var(--ease);
}
.txn-drawer-close:hover { background: var(--border); }
.txn-drawer-close svg { width: 16px; height: 16px; }

.txn-drawer-body {
  flex: 1;
  overflow-y: auto;
  padding: 28px 24px 40px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Big icon + type */
.txn-drawer-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
}
.txn-drawer-icon {
  width: 72px;
  height: 72px;
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 900;
  font-family: var(--font-display);
}
.txn-drawer-type {
  font-size: 20px;
  font-weight: 800;
  color: var(--text);
  font-family: var(--font-display);
  letter-spacing: -0.3px;
}
.txn-drawer-company {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: -6px;
}

/* Amount block */
.txn-drawer-amount-block {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 20px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.txn-drawer-amount-main {
  font-family: var(--font-display);
  font-size: 36px;
  font-weight: 900;
  color: var(--green);
  letter-spacing: -1px;
  line-height: 1;
}
.txn-drawer-amount-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 2px;
}

.txn-drawer-fee-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  padding: 8px 0;
  border-top: 1px solid var(--border);
}
.txn-drawer-fee-label { color: var(--text-muted); }
.txn-drawer-fee-val   { font-weight: 700; color: var(--text); }
.txn-drawer-fee-val.net { color: var(--green); font-size: 15px; }
.txn-drawer-fee-val.fee { color: var(--text-muted); }

/* Meta rows */
.txn-drawer-section-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-bottom: 8px;
}
.txn-drawer-meta-rows {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
}
.txn-drawer-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 16px;
  font-size: 13px;
  gap: 12px;
}
.txn-drawer-meta-row + .txn-drawer-meta-row { border-top: 1px solid var(--border); }
.txn-drawer-meta-key { color: var(--text-muted); flex-shrink: 0; }
.txn-drawer-meta-val { color: var(--text); font-weight: 600; text-align: right; word-break: break-word; }

/* Status badge inside drawer */
.txn-drawer-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}
.txn-drawer-status.completed { background: rgba(16,185,129,0.12); color: #059669; }
.txn-drawer-status.pending   { background: rgba(245,158,11,0.12);  color: #d97706; }
.txn-drawer-status.processing{ background: rgba(99,102,241,0.12);  color: #4f46e5; }
.txn-drawer-status.failed    { background: rgba(239,68,68,0.1);    color: #dc2626; }

.txn-drawer-deal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 14px;
  border-radius: 12px;
  border: 1px solid var(--border-2);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  transition: all var(--duration) var(--ease);
  font-family: inherit;
}
.txn-drawer-deal-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }

/* Payout status */
.earn-payout-schedule {
  margin-left: 10px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.earn-payout-balance {
  display: flex;
  align-items: center;
  gap: 0;
  background: var(--surface);
  border-radius: 16px;
  box-shadow: var(--shadow-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.earn-payout-bal-item {
  flex: 1;
  padding: 18px 24px;
}
.earn-payout-bal-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}
.earn-payout-bal-val {
  font-family: var(--font-display);
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -1px;
}
.earn-payout-bal-divider {
  width: 1px;
  height: 44px;
  background: var(--border);
  flex-shrink: 0;
}

.earn-payout-bank-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: rgba(99,102,241,0.1);
  color: #6366f1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.earn-payout-fail-note {
  font-size: 11px;
  color: var(--red);
  font-weight: 600;
  margin-top: 3px;
}

.earn-payout-empty {
  background: var(--surface);
  border-radius: 16px;
  padding: 24px 20px;
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  box-shadow: var(--shadow-sm);
}

/* ── Vault Messaging ──────────────────────────────────────────────────────── */

/* Override the default v-panel padding/display for the messages panel */
#panel-messages.v-panel.on {
  display: flex;
  flex-direction: column;
  padding: 0;
  height: calc(100vh - 76px);   /* 76px = vault-top bar height */
  overflow: hidden;
}

.vault-msgs-wrap {
  display: flex;
  flex-direction: column;
  flex: 1;
  overflow: hidden;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
  padding: 24px 48px;
  box-sizing: border-box;
}

.vault-msgs-thread {
  flex: 1;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 8px 0 16px;
}

.vmsg-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex: 1;
  height: 100%;
  text-align: center;
}

.vmsg-empty p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
  line-height: 1.6;
}

.vmsg-day {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin: 16px 0 8px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.vmsg-day::before,
.vmsg-day::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--border);
}

.vmsg-row {
  display: flex;
  flex-direction: column;
  margin: 2px 0;
}

.vmsg-mine  { align-items: flex-end; }
.vmsg-theirs { align-items: flex-start; }

.vmsg-bubble {
  max-width: 70%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
}

.vmsg-mine .vmsg-bubble {
  background: var(--accent);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.vmsg-theirs .vmsg-bubble {
  background: var(--surface);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.vmsg-time {
  font-size: 11px;
  color: var(--text-muted);
  margin-top: 3px;
  padding: 0 2px;
}

.vault-msgs-compose {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  border-radius: 14px;
  padding: 12px 14px;
  margin-top: 8px;
}

.vault-msgs-compose textarea {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  font-size: 14px;
  font-family: inherit;
  color: var(--text);
  line-height: 1.4;
  max-height: 120px;
  overflow-y: auto;
}

.vault-msgs-compose textarea::placeholder {
  color: var(--text-muted);
}

.vault-msgs-send {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  transition: background 0.15s;
}

.vault-msgs-send:hover { background: var(--accent-dark, #5a4bd6); }
.vault-msgs-send:disabled { opacity: 0.4; cursor: default; }

.v-tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 4px;
  border-radius: 20px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  margin-left: 4px;
}

.v-tab-badge.hidden { display: none; }

@media (max-width: 768px) {
  .earn-hero { padding: 28px 24px 22px; }
  .earn-hero-num { font-size: 48px; letter-spacing: -2px; }
  .earn-hero-substats { gap: 20px; flex-wrap: wrap; }
  .earn-hero-substat-val { font-size: 20px; }
  .earn-txn { padding: 14px 16px; }
  .earn-payout-bal-item { padding: 16px 18px; }
  .earn-payout-bal-val { font-size: 22px; }
}

@media (max-width: 680px) {
  /* Stack transactions + bank transfers on mobile */
  .earn-cols { flex-direction: column !important; }
  .earn-cols > div:last-child { width: 100% !important; }
}

/* Channel Cards */
.ch-card {
  background: var(--surface);
  border: none;
  border-radius: var(--radius-lg);
  margin-bottom: 12px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all var(--duration) var(--ease);
  scroll-margin-top: 90px;
}
@keyframes cardSlideIn {
  from {
    max-height: 0;
    opacity: 0;
    margin-bottom: 0;
    padding: 0;
    border-width: 0;
  }
  to {
    max-height: 800px;
    opacity: 1;
    margin-bottom: 12px;
  }
}
.ch-card.card-entering {
  animation: cardSlideIn 0.6s cubic-bezier(0.22, 1, 0.36, 1) both;
  overflow: hidden;
}
.ch-card:hover { box-shadow: var(--shadow-md); }
.ch-card.open { box-shadow: var(--shadow-lg); }

.ch-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px;
  cursor: pointer;
  transition: background 0.25s var(--ease);
}
.ch-top:hover { background: var(--surface-2); }
.ch-left { display: flex; align-items: center; gap: 16px; }
.ch-icon {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s var(--ease);
}
.ch-card.open .ch-icon { background: var(--violet-soft); }
.ch-icon svg { width: 18px; height: 18px; color: var(--text-muted); transition: color 0.3s; }
.ch-card.open .ch-icon svg { color: var(--violet); }
.ch-name { font-weight: 700; font-size: 15px; }
.ch-cat { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.ch-right { display: flex; align-items: center; gap: 12px; }
.ch-chevron { transition: transform 0.35s var(--ease-out); color: var(--text-muted); }
.ch-card.open .ch-chevron { transform: rotate(180deg); }

.ch-body {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.5s var(--ease-out);
}
.ch-card.open .ch-body { max-height: 600px; }
.ch-inner { padding: 0 28px 28px; border-top: 1px solid var(--surface-3); padding-top: 24px; }

/* Channels divider */
.channels-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 28px 0 12px;
}
.channels-divider::before,
.channels-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--surface-3);
}
.channels-divider span {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  white-space: nowrap;
}

/* Channel needs URL state */
.ch-card.ch-needs-url { border-left: 3px solid var(--amber); }
.ch-card.ch-needs-url .ch-top { cursor: pointer; }
.badge-muted { background: var(--surface-2); color: var(--text-muted); }

/* Deal filter tabs */
.deal-filter-btn {
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border: 1.5px solid var(--border);
  border-radius: 100px;
  background: transparent;
  color: var(--text-2);
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.deal-filter-btn:hover { border-color: var(--text-2); color: var(--text); }
.deal-filter-btn.active { background: var(--text); color: var(--bg); border-color: var(--text); }

/* Scrape progress bar */
.scrape-progress { margin-bottom: 8px; }
.scrape-bar {
  height: 6px;
  border-radius: 3px;
  background: var(--surface-3);
  overflow: hidden;
  position: relative;
}
.scrape-bar-fill {
  height: 100%;
  border-radius: 3px;
  background: linear-gradient(90deg, var(--accent), var(--violet));
  width: 0%;
  transition: width 2.5s cubic-bezier(0.25, 0.1, 0.25, 1);
}

/* Consent Toggle */
.consent-row {
  display: inline-flex;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}
.consent-btn {
  padding: 10px 22px;
  font-size: 13px;
  font-weight: 600;
  border: none;
  background: transparent;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.25s var(--ease);
}
.consent-btn:not(:last-child) { border-right: 1px solid var(--border); }
.consent-btn:hover { background: var(--surface-2); color: var(--text-2); }
.consent-btn.on-green { background: var(--green); color: #fff; }
.consent-btn.on-amber { background: var(--amber); color: #fff; }
.consent-btn.on-red { background: var(--red); color: #fff; }

/* Metrics */
.metrics-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.m-tag {
  padding: 6px 14px;
  background: var(--surface-2);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text-2);
  white-space: nowrap;
  transition: all 0.2s var(--ease);
}
.m-tag:hover { background: var(--surface-3); transform: translateY(-1px); }
.m-tag strong { color: var(--text); font-weight: 700; }

/* Empty States */
.empty { text-align: center; padding: 100px 24px; }
.empty-icon { color: var(--text-muted); margin-bottom: 20px; opacity: 0.25; }
.empty-icon svg { width: 56px; height: 56px; }
.empty h3 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.empty p { font-size: 15px; color: var(--text-muted); max-width: 360px; margin: 0 auto 28px; line-height: 1.7; }

/* Modals */
.modal-bg {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  backdrop-filter: blur(16px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
}
.modal-bg.on { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--surface);
  border: none;
  border-radius: var(--radius-xl);
  padding: 40px;
  width: 100%;
  max-width: 520px;
  transform: scale(0.9) translateY(24px);
  transition: transform 0.45s var(--ease-spring);
  box-shadow: var(--shadow-xl);
}
.modal-bg.on .modal-box { transform: scale(1) translateY(0); }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 32px; }
/* Avatar dropdown */
.avatar-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 220px;
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--surface-3);
  padding: 14px 16px;
  opacity: 0;
  transform: translateY(-8px) scale(0.95);
  pointer-events: none;
  transition: all 0.25s var(--ease);
  z-index: 200;
}
.avatar-dropdown.on {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}
.avatar-dropdown-name { font-size: 14px; font-weight: 700; color: var(--text); }
.avatar-dropdown-email { font-size: 12px; color: var(--text-muted); margin-top: 2px; }
.avatar-dropdown-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 4px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  border-radius: 6px;
  transition: all 0.2s var(--ease);
}
.avatar-dropdown-btn:hover { color: var(--danger); background: var(--surface-2); }

.modal-close { color: var(--text-muted); cursor: pointer; transition: color 0.2s, transform 0.3s var(--ease); }
.modal-close:hover { color: var(--text); transform: rotate(90deg); }

/* Add-channel platform grid */
.add-plat-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
  gap: 10px;
  max-height: 340px;
  overflow-y: auto;
  padding: 4px;
  transition: opacity 0.4s var(--ease);
}
.add-plat-grid::-webkit-scrollbar { width: 4px; }
.add-plat-grid::-webkit-scrollbar-thumb { background: var(--border-2); border-radius: 4px; }
.add-plat-grid .plat-card {
  padding: 16px 10px;
  transition: all 0.4s var(--ease);
}
.add-plat-grid .plat-card .ic img { width: 24px; height: 24px; }
.add-plat-grid .plat-card .nm { font-size: 11px; }
.add-plat-grid.has-selection .plat-card:not(.selected) {
  opacity: 0.3;
  transform: scale(0.92);
  pointer-events: none;
}
.add-plat-grid.has-selection .plat-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 2px var(--accent), var(--shadow-md);
  transform: scale(1.08);
}

/* Selected platform card in step 2 */
.add-plat-selected {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 28px;
  background: var(--accent-soft);
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all 0.3s var(--ease);
}
.add-plat-selected:hover { box-shadow: var(--shadow-md); }
.add-plat-selected img { width: 22px; height: 22px; }
.add-plat-selected .nm { font-size: 14px; font-weight: 700; color: var(--text); }

/* URL field slide-in */
@keyframes modalUrlIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-url-wrap {
  animation: modalUrlIn 0.5s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* Analytics */
.bar-item { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.bar-label { width: 120px; font-size: 13px; font-weight: 600; color: var(--text-2); text-align: right; }
.bar-track { flex: 1; height: 34px; background: var(--surface-2); border-radius: 10px; overflow: hidden; }
.bar-fill {
  height: 100%;
  border-radius: 10px;
  transition: width 0.9s var(--ease-out);
  display: flex;
  align-items: center;
  padding-left: 12px;
  font-size: 12px;
  font-weight: 700;
  color: #000;
}
.bar-fill.c-purple { background: var(--purple); }
.bar-fill.c-blue { background: var(--blue); }
.bar-fill.c-green { background: var(--green); }
.bar-fill.c-amber { background: var(--amber); }
.bar-fill.c-red { background: var(--red); }

.consent-bar { display: flex; height: 14px; border-radius: 7px; overflow: hidden; margin: 22px 0 16px; }
.consent-bar > div { transition: width 0.9s var(--ease-out); }
.cb-g { background: var(--green); }
.cb-a { background: var(--amber); }
.cb-r { background: var(--red); }
.consent-legend { display: flex; gap: 28px; justify-content: center; }
.consent-legend span { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--text-2); }
.consent-legend .dot { width: 8px; height: 8px; border-radius: 50%; }

/* Pending Page */
.pending-page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  position: relative;
}

.pending-page::before {
  content: '';
  position: fixed;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 65%);
  top: 35%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.pending-page::after {
  content: '';
  position: fixed;
  width: 400px;
  height: 400px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232,255,71,0.04) 0%, transparent 65%);
  top: 60%;
  left: 40%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

/* Toast */
.toast {
  position: fixed;
  bottom: 36px;
  left: 50%;
  transform: translateX(-50%) translateY(28px);
  padding: 14px 28px;
  border-radius: var(--radius);
  background: var(--surface-2);
  border: 1px solid var(--border);
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  opacity: 0;
  transition: all 0.45s var(--ease-out);
  z-index: 2000;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(16px);
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }
.toast-error { border-color: rgba(248,113,113,0.3); }
.toast-success { border-color: rgba(52,211,153,0.3); }


/* ═══════════════════════════════════════════════════════════
   ANIMATIONS & TRANSITIONS
   ═══════════════════════════════════════════════════════════ */

@keyframes fadeSlideUp {
  from { opacity: 0; transform: translateY(28px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeSlideDown {
  from { opacity: 0; transform: translateY(-20px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeScale {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}

@keyframes spin { to { transform: rotate(360deg); } }
.spinning { animation: spin 1s linear infinite; }

/* Stagger system — longer delays, smoother feel */
.anim {
  opacity: 0;
  animation: fadeSlideUp 0.65s var(--ease-out) forwards;
}
.d1 { animation-delay: 0.06s; }
.d2 { animation-delay: 0.14s; }
.d3 { animation-delay: 0.22s; }
.d4 { animation-delay: 0.30s; }
.d5 { animation-delay: 0.38s; }
.d6 { animation-delay: 0.46s; }
.d7 { animation-delay: 0.54s; }
.d8 { animation-delay: 0.62s; }


/* ═══════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .vault-sidebar {
    transform: translateX(-100%);
    box-shadow: none;
  }
  .vault-sidebar.open {
    transform: translateX(0);
    box-shadow: 8px 0 40px rgba(0,0,0,0.3);
  }
  .vault-main { margin-left: 0; }
  .mobile-toggle { display: flex; }
  .vault-top { padding: 16px 20px; }
  .v-panel { padding: 28px 20px; }
}

@media (max-width: 768px) {
  .stats-row { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .stat-box { padding: 22px; }
  .stat-box .val { font-size: 34px; }
  .type-grid { grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); max-height: 360px; }
  .plat-grid { grid-template-columns: repeat(2, 1fr); }
  .otp-digit { width: 64px; height: 80px; font-size: 32px; }
  .ch-top { padding: 18px 20px; }
  .ch-inner { padding: 0 20px 20px; padding-top: 20px; }
  .display-hero { letter-spacing: -2.5px; }
}

@media (max-width: 480px) {
  .stats-row { grid-template-columns: 1fr; }
  .display-xl { font-size: 40px; letter-spacing: -1.5px; }
  .display-hero { font-size: 42px; letter-spacing: -1.5px; }
  .otp-row { gap: 10px; }
  .otp-digit { width: 56px; height: 70px; font-size: 28px; border-radius: 14px; }
  .v-panel { padding: 24px 16px; }
  .auth-card { max-width: 100%; }
  .auth-card .logo-img { margin: 0 auto 48px; }
  .modal-box { padding: 28px; }
  .btn-lg { height: 54px; padding: 0 32px; }
}
