/* =========================================================
   BTO Budget Calculator — Design System v3 · Sandstone & Indigo
   ========================================================= */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&family=Fraunces:opsz,wght@9..144,600;9..144,700&family=JetBrains+Mono:wght@400;500;600&display=swap');

/* ---- CSS Variables ---- */
:root {
  --bg-base:       #f5f0e8;
  --bg-card:       #fffef9;
  --bg-section:    #ede8de;
  --border-card:   rgba(148, 118, 72, 0.16);
  --border-section:rgba(148, 118, 72, 0.11);
  --shadow-card:   0 2px 6px rgba(60, 35, 10, 0.05), 0 8px 28px rgba(60, 35, 10, 0.08);
  --shadow-card-hover: 0 4px 12px rgba(60, 35, 10, 0.08), 0 16px 40px rgba(60, 35, 10, 0.13);
  --nav-bg:        #18112e;
  --nav-border:    rgba(196, 123, 74, 0.22);
  --accent-sky:      #5c3d9e;
  --accent-sky-light:#7c5fc8;
  --accent-gold:     #c97b4a;
  --accent-gold-light:#e09464;
  --text-primary:  #1a1225;
  --text-secondary:#57486f;
  --text-muted:    #a096b4;
  --font-body:  'Outfit', ui-sans-serif, system-ui, sans-serif;
  --font-brand: 'Fraunces', Georgia, serif;
  --font-mono:  'JetBrains Mono', 'DM Mono', monospace;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

body {
  background-color: var(--bg-base);
  font-family: var(--font-body);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
  position: relative;
}

/* Warm sandstone background: amber blobs + diamond crosshatch */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  background-image:
    radial-gradient(ellipse 80% 60% at -5% -5%,  rgba(201, 123, 74, 0.09)  0%, transparent 60%),
    radial-gradient(ellipse 70% 50% at 105% 105%, rgba(92, 61, 158, 0.07)  0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 50% 0%,    rgba(201, 123, 74, 0.04)  0%, transparent 50%),
    repeating-linear-gradient( 45deg, rgba(148,118,72,0.035) 0px, rgba(148,118,72,0.035) 1px, transparent 1px, transparent 28px),
    repeating-linear-gradient(-45deg, rgba(148,118,72,0.035) 0px, rgba(148,118,72,0.035) 1px, transparent 1px, transparent 28px);
  pointer-events: none;
  z-index: -1;
}

/* ---- Navbar ---- */
.navbar {
  background: var(--nav-bg);
  background-image: linear-gradient(90deg, rgba(92,61,158,0.06) 0%, transparent 40%, rgba(201,123,74,0.04) 100%);
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  height: 56px;
  gap: 0.25rem;
  box-shadow: 0 1px 0 var(--nav-border), 0 3px 20px rgba(0, 0, 0, 0.4);
  position: sticky;
  top: 0;
  z-index: 50;
}

/* Accent gradient line at bottom of navbar — indigo to terracotta */
.navbar::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent 0%, rgba(124,95,200,0.6) 25%, rgba(201,123,74,0.5) 75%, transparent 100%);
}

.navbar-logo {
  font-family: var(--font-brand);
  font-size: 1.0625rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.01em;
  margin-right: 1.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}

.navbar-logo span { color: var(--accent-gold-light); }

.nav-link {
  color: #8878aa;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  white-space: nowrap;
  letter-spacing: 0.01em;
}
.nav-link:hover { color: #e8e0f4; background: rgba(255,255,255,0.07); }
.nav-link.active {
  color: #fff;
  background: rgba(124, 95, 200, 0.18);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(124, 95, 200, 0.2);
}

/* ---- Page Wrapper ---- */
.page-wrapper {
  max-width: 1320px;
  margin: 0 auto;
  padding: 1.75rem 1.5rem 3.5rem;
}

/* ---- Card ---- */
.card {
  background: var(--bg-card);
  border-radius: 20px;
  border: 1px solid var(--border-card);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s;
}

/* ---- Section Label ---- */
.section-label {
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.section-label::before {
  content: '';
  display: inline-block;
  width: 14px;
  height: 2px;
  background: linear-gradient(90deg, var(--accent-gold), var(--accent-sky-light));
  border-radius: 1px;
  flex-shrink: 0;
}

/* ---- Input Group Block ---- */
.input-group {
  background: var(--bg-section);
  border: 1px solid var(--border-section);
  border-radius: 14px;
  padding: 1rem;
}

/* ---- Currency Input ---- */
.currency-input { position: relative; }

.currency-input::before {
  content: '$';
  position: absolute;
  left: 11px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 0.875rem;
  font-family: var(--font-mono);
  pointer-events: none;
  z-index: 1;
}

.currency-input input { padding-left: 26px; }

/* ---- Form Inputs ---- */
input[type="number"],
input[type="date"],
input[type="text"],
select {
  font-size: 0.875rem;
  color: var(--text-primary);
  font-family: var(--font-body);
}

input[type="number"] { font-family: var(--font-mono); font-size: 0.875rem; }

input:disabled,
input[readonly] {
  background: #ede8de;
  color: var(--text-muted);
  cursor: not-allowed;
}

/* ---- Input Field (.field) ---- */
.field {
  width: 100%;
  border: 1.5px solid rgba(148,118,72,0.22);
  border-radius: 11px;
  padding: 0.625rem 0.75rem;
  font-size: 0.875rem;
  background: var(--bg-card);
  color: var(--text-primary);
  transition: box-shadow 0.15s, border-color 0.15s, background 0.15s;
  font-family: var(--font-body);
}
.field:focus {
  outline: none;
  border-color: var(--accent-sky-light);
  box-shadow: 0 0 0 3px rgba(124, 95, 200, 0.13);
  background: #fff;
}

.field-sm {
  border: 1.5px solid rgba(148,118,72,0.22);
  border-radius: 9px;
  padding: 0.5rem 0.75rem;
  font-size: 0.8125rem;
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-body);
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field-sm:focus {
  outline: none;
  border-color: var(--accent-sky-light);
  box-shadow: 0 0 0 3px rgba(124, 95, 200, 0.13);
}

/* ---- Numeric output values ---- */
.num {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

/* ---- Payment Mode Badges ---- */
.badge-cash {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(239, 68, 68, 0.1);
  color: rgba(252, 165, 165, 0.85);
  border: 1px solid rgba(239, 68, 68, 0.15);
  vertical-align: middle;
  line-height: 1.4;
}
.badge-cpf {
  display: inline-flex;
  align-items: center;
  border-radius: 4px;
  padding: 1px 5px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.06em;
  background: rgba(124, 95, 200, 0.14);
  color: rgba(167, 139, 250, 0.9);
  border: 1px solid rgba(124, 95, 200, 0.2);
  vertical-align: middle;
  line-height: 1.4;
}

/* ---- Toggle Switch ---- */
.toggle-track {
  width: 44px;
  height: 24px;
  background: #d5cec4;
  border-radius: 12px;
  position: relative;
  transition: background 0.2s;
  flex-shrink: 0;
  cursor: pointer;
}
.toggle-track.on { background: var(--accent-sky); }
.toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.22);
  transition: transform 0.2s;
}
.toggle-track.on::after { transform: translateX(20px); }

/* ---- Scrollbar ---- */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(148,118,72,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(148,118,72,0.4); }

/* ---- No-state banner ---- */
.no-state-banner {
  background: #fdf6ee;
  border: 1px solid rgba(201,123,74,0.3);
  color: #7c4a1a;
  border-radius: 12px;
  padding: 1rem 1.25rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.no-state-banner a { color: var(--accent-sky); font-weight: 600; text-decoration: underline; }

/* ---- Page hidden until auth confirmed ---- */
.page-hidden { opacity: 0; }

/* ---- Nav layout helpers (auth.js injects) ---- */
.nav-links-center {
  display: flex;
  align-items: center;
  gap: 0.125rem;
  flex: 1;
  justify-content: center;
  overflow: visible;
  scrollbar-width: none;
}
.nav-links-center::-webkit-scrollbar { display: none; }

.nav-user-group {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-gold), var(--accent-sky));
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 0 0 2px rgba(201, 123, 74, 0.35);
}

.nav-username { color: #b8a8cc; font-size: 0.8125rem; font-weight: 500; white-space: nowrap; }

.nav-signout {
  color: #f87171 !important;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
.nav-signout:hover { background: rgba(248, 113, 113, 0.1) !important; }

.nav-auth-buttons {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin-left: auto;
  flex-shrink: 0;
}

.nav-btn-signup {
  background: rgba(201, 123, 74, 0.14);
  color: var(--accent-gold-light);
  border: 1px solid rgba(201, 123, 74, 0.25);
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 600;
  padding: 0.375rem 0.875rem;
  border-radius: 6px;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.nav-btn-signup:hover { background: var(--accent-gold); color: #fff; }

/* ---- Auth Pages ---- */
.auth-page {
  min-height: 100vh;
  background: linear-gradient(145deg, #100820 0%, #1c1038 40%, #271550 75%, #311860 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  position: relative;
  overflow: hidden;
}

/* Decorative background for auth pages */
.auth-page::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(ellipse 60% 40% at 0% 0%, rgba(92, 61, 158, 0.18) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 100% 100%, rgba(201, 123, 74, 0.1) 0%, transparent 60%),
    repeating-linear-gradient( 45deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 24px),
    repeating-linear-gradient(-45deg, rgba(255,255,255,0.015) 0px, rgba(255,255,255,0.015) 1px, transparent 1px, transparent 24px);
  pointer-events: none;
}

.auth-card {
  background: #ffffff;
  border-radius: 22px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45), 0 2px 0 rgba(255,255,255,0.06) inset;
  width: 100%;
  max-width: 420px;
  padding: 2.5rem 2rem;
  position: relative;
  z-index: 1;
  border: 1px solid rgba(255,255,255,0.08);
}

.auth-logo {
  font-family: var(--font-brand);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--nav-bg);
  text-align: center;
  margin-bottom: 0.25rem;
  letter-spacing: -0.01em;
}
.auth-logo span { color: var(--accent-gold); }
.auth-title { font-size: 1.375rem; font-weight: 700; color: #0f172a; text-align: center; margin-top: 1.5rem; margin-bottom: 0.375rem; font-family: var(--font-body); }
.auth-subtitle { font-size: 0.875rem; color: #64748b; text-align: center; margin-bottom: 1.75rem; }
.auth-field { margin-bottom: 1rem; }
.auth-label { display: block; font-size: 0.8125rem; font-weight: 600; color: #374151; margin-bottom: 0.375rem; letter-spacing: 0.01em; }

.auth-input {
  width: 100%;
  border: 1.5px solid rgba(148,118,72,0.2);
  border-radius: 11px;
  padding: 0.6875rem 0.875rem;
  font-size: 0.9375rem;
  color: #0f172a;
  background: #faf8f4;
  transition: border-color 0.15s, box-shadow 0.15s;
  box-sizing: border-box;
  font-family: var(--font-body);
}
.auth-input:focus { outline: none; border-color: var(--accent-sky-light); box-shadow: 0 0 0 3px rgba(124,95,200,0.13); background: #fff; }
.auth-input.error { border-color: #f87171; }

.auth-btn {
  width: 100%;
  background: linear-gradient(135deg, #18112e 0%, #2e1d5a 100%);
  color: #fff;
  border: none;
  border-radius: 11px;
  padding: 0.8125rem;
  font-size: 0.9375rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.15s, transform 0.1s, box-shadow 0.15s;
  font-family: var(--font-body);
  margin-top: 0.5rem;
  box-shadow: 0 4px 14px rgba(24, 17, 46, 0.4);
}
.auth-btn:hover  { opacity: 0.92; box-shadow: 0 6px 20px rgba(24, 17, 46, 0.5); }
.auth-btn:active { transform: scale(0.99); }
.auth-btn:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }

.auth-error {
  background: #fff0f0;
  border: 1px solid #fecaca;
  color: #dc2626;
  border-radius: 9px;
  padding: 0.625rem 0.875rem;
  font-size: 0.8125rem;
  margin-bottom: 1rem;
  display: none;
}
.auth-error.show { display: block; }

.auth-footer { text-align: center; margin-top: 1.5rem; font-size: 0.875rem; color: #64748b; }
.auth-footer a { color: var(--accent-sky); font-weight: 600; text-decoration: none; }
.auth-footer a:hover { text-decoration: underline; }

.auth-divider { display: flex; align-items: center; gap: 0.75rem; margin: 1.25rem 0; color: #94a3b8; font-size: 0.8125rem; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: rgba(148,118,72,0.15); }

/* ---- Advertisement Slots ---- */
.ad-slot {
  border: 1.5px dashed rgba(148,118,72,0.15);
  border-radius: 14px;
  background: rgba(148,118,72,0.02);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
}

.ad-slot-inner {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(148,118,72,0.2);
  user-select: none;
}

/* Horizontal leaderboard banner */
.ad-slot-leaderboard {
  width: 100%;
  min-height: 90px;
  margin-top: 1.5rem;
}

/* Responsive: hide ad on very small screens */
@media (max-width: 480px) {
  .ad-slot-leaderboard { display: none; }
}

/* ---- Logo house animation (hover-triggered) ---- */
.logo-icon-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.6rem;
  height: 1.35rem;
  vertical-align: middle;
  flex-shrink: 0;
}
.logo-house-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
/* Default: house hidden (dashoffset = length), transition on hover */
.lh-roof  { stroke-dasharray: 32; stroke-dashoffset: 32; transition: stroke-dashoffset 0.35s ease; }
.lh-walls { stroke-dasharray: 36; stroke-dashoffset: 36; transition: stroke-dashoffset 0.4s  ease 0.22s; }
.lh-door  { stroke-dasharray: 18; stroke-dashoffset: 18; transition: stroke-dashoffset 0.28s ease 0.48s; }
/* Default: BTO text visible */
.logo-bto-letters {
  font-family: var(--font-brand);
  font-size: 0.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.05em;
  transition: opacity 0.2s ease;
}
/* Budget always visible */
.logo-budget-word {
  font-family: var(--font-brand);
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--accent-gold-light);
}
/* Hover: BTO → house */
.navbar-logo:hover .lh-roof,
.landing-logo:hover .lh-roof  { stroke-dashoffset: 0; }
.navbar-logo:hover .lh-walls,
.landing-logo:hover .lh-walls { stroke-dashoffset: 0; }
.navbar-logo:hover .lh-door,
.landing-logo:hover .lh-door  { stroke-dashoffset: 0; }
.navbar-logo:hover .logo-bto-letters,
.landing-logo:hover .logo-bto-letters { opacity: 0; }

/* ---- Finance split animation ---- */
@keyframes splitDraw { to { stroke-dashoffset: 0; } }
@keyframes finFadeIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes finCardIn { from { opacity: 0; transform: translateY(6px);  } to { opacity: 1; transform: translateY(0); } }

/* ---- Calculator phase arrow ---- */
.calc-arrow-wrap {
  display: flex; justify-content: center;
  margin: -10px 0 2px 0;    /* pull arrow up into bottom of TOP card */
  position: relative; z-index: 5;
}
.phase-card { position: relative; }
.calc-arrow {
  width: 22px; height: 15px;
  clip-path: polygon(30% 0%, 70% 0%, 70% 52%, 100% 52%, 50% 100%, 0% 52%, 30% 52%);
  filter: drop-shadow(0 3px 7px rgba(0,0,0,0.75));
  animation: arrowFlow 1.5s ease-in-out infinite;
}
/* Per-phase arrow colours */
.calc-arrow-slate  { background: linear-gradient(180deg, rgba(148,163,184,0.8), rgba(100,116,139,0.4)); }
.calc-arrow-amber  { background: linear-gradient(180deg, rgba(251,191,36,0.95), rgba(245,158,11,0.5)); }
.calc-arrow-orange { background: linear-gradient(180deg, rgba(251,146,60,0.95), rgba(201,123,74,0.5)); }
.calc-arrow-purp   { background: linear-gradient(180deg, rgba(167,139,250,0.95), rgba(124,95,200,0.5)); }
.calc-arrow-gold   { background: linear-gradient(180deg, rgba(252,211,77,0.95), rgba(245,158,11,0.5)); }
@keyframes arrowFlow {
  0%   { transform: translateY(-2px) scaleY(0.9);  opacity: 0.5;  }
  50%  { transform: translateY(2px)  scaleY(1.08); opacity: 1;    }
  100% { transform: translateY(-2px) scaleY(0.9);  opacity: 0.5;  }
}

/* Finance split arrow hover (re-triggered via JS) */
.fin-phase-card:hover .splitDraw-svg line,
.fin-phase-card:hover .splitDraw-svg polyline { animation-play-state: running; }

/* ---- Calculator two-pane sticky layout ---- */
@media (min-width: 768px) {
  .calc-two-pane { grid-template-columns: 2fr 3fr !important; }

  /* Outer sticky wrapper — no overflow so sticky stays reliable */
  .calc-pane {
    position: sticky;
    top: 84px;
    align-self: start;
  }
  /* Inner scroll container — separated from sticky to avoid WebKit overflow/sticky conflict */
  .calc-pane-scroll {
    overflow-y: auto;
    max-height: calc(100vh - 100px);
  }
  /* Prevent flex children from shrinking so overflow-y scroll works correctly */
  .calc-pane-scroll > * { flex-shrink: 0; }
  /* thin custom scrollbar */
  .calc-pane-scroll::-webkit-scrollbar { width: 4px; }
  .calc-pane-scroll::-webkit-scrollbar-track { background: transparent; }
  .calc-pane-scroll::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 4px; }
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
  .navbar-logo { margin-right: 0.5rem; font-size: 0.9375rem; }
  .nav-link { padding: 0.375rem 0.5rem; font-size: 0.75rem; }
  .nav-username { display: none; }
  .page-wrapper { padding: 1.25rem 1rem 3rem; }
}
@media (max-width: 400px) {
  .nav-links-center .nav-link { padding: 0.25rem 0.375rem; font-size: 0.6875rem; }
}

/* Calculator results panel: collapse 3-col strip to 2-col on narrow screens */
@media (max-width: 480px) {
  .calc-3col { grid-template-columns: repeat(2, 1fr) !important; }
  .calc-3col > :last-child { grid-column: 1 / -1; }
}

/* Results empty state */
#resultsEmptyState {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2.5rem 1.5rem;
  gap: 0.75rem;
  text-align: center;
}
#resultsPanel.has-results #resultsEmptyState { display: none; }

/* ---- Coming Soon nav item ---- */
.nav-coming-soon {
  color: #8878aa;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  white-space: nowrap;
  letter-spacing: 0.01em;
  cursor: not-allowed;
  opacity: 0.5;
  position: relative;
  user-select: none;
}
.nav-coming-soon:hover::after {
  content: 'Coming Soon';
  position: absolute;
  top: calc(100% + 6px);
  left: 50%;
  transform: translateX(-50%);
  background: #18112e;
  color: var(--accent-gold-light);
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  white-space: nowrap;
  border: 1px solid rgba(201,123,74,0.25);
  pointer-events: none;
  z-index: 100;
}

/* ---- Pro badge in nav ---- */
.nav-pro-badge {
  display: inline-block;
  font-size: 0.55rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: #fff;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-radius: 4px;
  padding: 1px 4px;
  margin-left: 4px;
  vertical-align: middle;
  line-height: 1.4;
}

/* ---- Admin Pages dropdown ---- */
.nav-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}
.nav-dropdown-trigger {
  color: #8878aa;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.375rem 0.75rem;
  border-radius: 6px;
  cursor: pointer;
  background: none;
  border: none;
  font-family: var(--font-body);
  letter-spacing: 0.01em;
  white-space: nowrap;
  transition: color 0.15s, background 0.15s;
}
.nav-dropdown-trigger:hover,
.nav-dropdown:hover .nav-dropdown-trigger { color: #e8e0f4; background: rgba(255,255,255,0.07); }
.nav-dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: #18112e;
  border: 1px solid rgba(196,123,74,0.22);
  border-radius: 12px;
  padding: 0.375rem;
  padding-top: 0.625rem;
  min-width: 170px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  z-index: 100;
}
.nav-dropdown:hover .nav-dropdown-menu { display: block; }
.nav-dropdown-item {
  display: block;
  color: #b8a8cc;
  text-decoration: none;
  font-size: 0.8125rem;
  font-weight: 500;
  padding: 0.5rem 0.875rem;
  border-radius: 8px;
  transition: background 0.12s, color 0.12s;
  white-space: nowrap;
}
.nav-dropdown-item:hover { background: rgba(124,95,200,0.15); color: #e8e0f4; }
