/* ═══════════════════════════════════════════════════════════
   DESIGN TOKENS
═══════════════════════════════════════════════════════════ */
:root {
  --orange:       #C81E2C;
  --orange-dark:  #A01823;
  --orange-glow:  rgba(200,30,44,0.18);
  --orange-soft:  #FBE4E6;
  --navy:         #0A1224;
  --navy-mid:     #1A1A1A;
  --navy-card:    #1E2F50;
  --navy-border:  rgba(255,255,255,0.08);
  --emerald:      #10B981;
  --emerald-soft: #D1FAE5;
  --rose:         #F43F5E;
  --rose-soft:    #FFE4E6;
  --sky:          #38BDF8;
  --white:        #FFFFFF;
  --light-bg:     #F5F5F5;
  --border:       #E5E1D8;
  --text:         #0D1B35;
  --slate:        #5C5C5C;
  --muted:        #9CA3AF;
  --green:        #1A1A1A;
  --green-light:  #F0FBF3;
  --red-light:    #FFF0F0;

  --sb-width:     240px;
  --sb-collapsed: 64px;
  --topbar-h:     58px;

  /* Claymorphism pass: rounder, puffier radii than the old flat-UI values */
  --radius-sm: 10px;
  --radius:    18px;
  --radius-lg: 26px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
  --shadow:    0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
  /* Clay button shadow: soft colored drop-shadow + glossy top inset highlight
     + a darker inset at the base, so the button reads as a puffy 3D blob
     rather than a flat rectangle with a drop-shadow underneath it. */
  --shadow-orange: 0 10px 22px rgba(200,30,44,0.30), inset 0 1px 0 rgba(255,255,255,0.35), inset 0 -3px 6px rgba(160,24,35,0.28);
  --shadow-orange-hover: 0 14px 28px rgba(200,30,44,0.34), inset 0 1px 0 rgba(255,255,255,0.4), inset 0 -3px 6px rgba(160,24,35,0.24);
}

[data-theme="dark"] {
  --light-bg:  #0D1117;
  --white:     #161B27;
  --border:    #2A3548;
  --text:      #E8ECF0;
  --slate:     #94A3B8;
  --muted:     #64748B;
  --navy:      #0A0F1C;
  --navy-mid:  #111827;
}

/* ── DEBUGGED: glassmorphic toast tokens ──────────────────────────────
   The toast previously used a flat opaque --white background, which never
   actually read as "glass" and looked identical whether one or several
   toasts stacked over page content. These tokens give the toast a frosted,
   translucent panel (semi-transparent tint + backdrop-filter blur, applied
   on .vbe-toast below) that still meets contrast for --text/--slate in
   both themes because the tint values were tuned per-theme, not shared. */
:root {
  --toast-glass-bg: linear-gradient(155deg, rgba(255,255,255,0.82), rgba(255,255,255,0.62));
  --toast-glass-border: rgba(255,255,255,0.55);
  --toast-glass-highlight: rgba(255,255,255,0.9);
}
[data-theme="dark"] {
  --toast-glass-bg: linear-gradient(155deg, rgba(30,41,59,0.72), rgba(15,23,35,0.58));
  --toast-glass-border: rgba(255,255,255,0.12);
  --toast-glass-highlight: rgba(255,255,255,0.14);
}

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { -webkit-tap-highlight-color: transparent; scroll-behavior: smooth; }
body {
  font-family: var(--vbe-font-body,'Outfit', sans-serif);
  font-size: 15px;
  background: var(--light-bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}
h1, h2, h3, h4, h5 { font-family: var(--vbe-font-heading,'Playfair Display', serif); line-height: 1.25; }
a { text-decoration: none; color: inherit; }
button { font-family: var(--vbe-font-body,'Outfit', sans-serif); cursor: pointer; border: none; background: none; }
input, textarea, select { font-family: var(--vbe-font-body,'Outfit', sans-serif); }

/* ── BOTTOM TAB BAR (phone only), shared by the auth page and the
   dashboard, so this stays outside the is_logged_in style gate below. ── */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 300;
  display: none;
  background: rgba(10, 18, 36, 0.92);
  backdrop-filter: blur(20px) saturate(1.6);
  -webkit-backdrop-filter: blur(20px) saturate(1.6);
  border-top: 1px solid rgba(255,255,255,0.10);
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
  transition: transform 0.28s ease;
}
@media (max-width: 860px) { .bottom-nav { display: block; } }
.bottom-nav.vbe-nav-hidden { transform: translateY(100%); }
.bottom-nav-inner { display: flex; align-items: center; justify-content: space-between; max-width: 560px; margin: 0 auto; }
.bottom-nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 3px;
  flex: 1; padding: 6px 2px; border-radius: 10px;
  color: rgba(255,255,255,0.6); text-decoration: none;
  background: none; border: none; font-family: var(--vbe-font-body,'Outfit', sans-serif); cursor: pointer;
  transition: color 0.2s;
}
.bottom-nav-item svg { flex-shrink: 0; }
.bottom-nav-item:active { transform: scale(0.96); }
.bottom-nav-item:hover, .bottom-nav-item.current { color: #FFFFFF; }
.bottom-nav-item.bottom-nav-primary { color: var(--orange); }
.bottom-nav-item.bottom-nav-primary:hover { color: var(--orange); }
.bottom-nav-item.bottom-nav-primary svg circle,
.bottom-nav-item.bottom-nav-primary svg rect { fill: rgba(200,30,44,0.16); }
.bottom-nav-label { font-size: 9.5px; font-weight: 600; letter-spacing: 0.2px; }

/* Account avatar chip for the bottom-nav "Account" tab: mirrors
   index.php's treatment so the two stay visually identical. */
.bottom-nav-avatar {
  position: relative;
  width: 22px; height: 22px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #E8455A 0%, #C81E2C 100%);
  color: #fff; font-family: var(--vbe-font-body,'Outfit', sans-serif); font-size: 11px; font-weight: 700;
  box-shadow: 1px 1px 4px rgba(0,0,0,0.4), -1px -1px 3px rgba(255,255,255,0.05), inset 0 1px 1px rgba(255,255,255,0.25);
}
.bottom-nav-avatar-img { width: 100%; height: 100%; object-fit: cover; display: block; border-radius: 50%; }
.bottom-nav-avatar-initial { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; }
.bottom-nav-item.bottom-nav-account:hover .bottom-nav-avatar { box-shadow: 0 0 0 2px rgba(255,255,255,0.45), 1px 1px 4px rgba(0,0,0,0.4); }

/* ═══════════════════════════════════════════════════════════
   AUTH PAGE STYLES (non-logged-in)
═══════════════════════════════════════════════════════════ */
