/* ============================================
   FinVest Pro — Classic Investment Platform
   Color System: Deep Navy + Gold + Ivory
============================================ */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;600;700&family=Inter:wght@300;400;500;600&family=JetBrains+Mono:wght@400;500&display=swap');

:root {
  --navy-950: #040d1f;
  --navy-900: #071128;
  --navy-800: #0d1f47;
  --navy-700: #152d63;
  --navy-600: #1e3d7e;
  --navy-500: #2651a0;
  --gold-600: #8B6914;
  --gold-500: #B8871E;
  --gold-400: #D4A029;
  --gold-300: #E8BE52;
  --gold-200: #F0D080;
  --gold-100: #FAF0C8;
  --ivory-100: #FDFBF5;
  --ivory-200: #F8F4E8;
  --ivory-300: #F0EAD6;
  --green-success: #10B981;
  --red-danger: #EF4444;
  --amber-warn: #F59E0B;
  --text-primary: #0d1f47;
  --text-secondary: #4B5C7E;
  --text-muted: #8897B8;
  --border: rgba(21,45,99,0.12);
  --border-gold: rgba(184,135,30,0.3);
  --shadow-sm: 0 1px 3px rgba(4,13,31,0.08);
  --shadow-md: 0 4px 16px rgba(4,13,31,0.12);
  --shadow-lg: 0 8px 32px rgba(4,13,31,0.18);
  --shadow-gold: 0 4px 20px rgba(184,135,30,0.2);
  --radius: 12px;
  --radius-sm: 6px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', sans-serif;
  background: var(--ivory-100);
  color: var(--text-primary);
  line-height: 1.6;
  font-size: 15px;
}

h1, h2, h3 { font-family: 'Playfair Display', serif; }

/* =================== ANIMATIONS =================== */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slideRight {
  from { opacity: 0; transform: translateX(-20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes pulse-gold {
  0%, 100% { box-shadow: 0 0 0 0 rgba(184,135,30,0.4); }
  50%       { box-shadow: 0 0 0 8px rgba(184,135,30,0); }
}
@keyframes shimmer {
  0%   { background-position: -1000px 0; }
  100% { background-position: 1000px 0; }
}
@keyframes countUp {
  from { opacity: 0; transform: scale(0.8); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50%       { transform: translateY(-6px); }
}
@keyframes gradientShift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
@keyframes particleFloat {
  0%   { transform: translateY(100vh) rotate(0deg); opacity: 0; }
  10%  { opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(-100px) rotate(720deg); opacity: 0; }
}
@keyframes lineGrow {
  from { width: 0; }
  to   { width: 100%; }
}
@keyframes barGrow {
  from { height: 0; }
  to   { height: var(--bar-height); }
}

.animate-fadeUp   { animation: fadeUp 0.6s ease both; }
.animate-fadeIn   { animation: fadeIn 0.5s ease both; }
.animate-float    { animation: float 3s ease-in-out infinite; }
.animate-pulse-gold { animation: pulse-gold 2s infinite; }
.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }
.delay-4 { animation-delay: 0.4s; }
.delay-5 { animation-delay: 0.5s; }

/* =================== NAVBAR =================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(4,13,31,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(184,135,30,0.2);
  padding: 0 2rem;
  height: 70px;
  display: flex; align-items: center; justify-content: space-between;
  transition: var(--transition);
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none;
}
.brand-logo {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--gold-400), var(--gold-600));
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: var(--navy-900);
  font-family: 'Playfair Display', serif;
  animation: float 4s ease-in-out infinite;
}
.brand-text { font-family: 'Playfair Display', serif; font-size: 1.25rem; color: var(--ivory-100); }
.brand-text span { color: var(--gold-400); }
.navbar-nav { display: flex; align-items: center; gap: 0.5rem; list-style: none; }
.nav-link {
  color: rgba(253,251,245,0.75);
  text-decoration: none; padding: 0.5rem 1rem;
  border-radius: var(--radius-sm);
  transition: var(--transition); font-size: 0.875rem; font-weight: 500;
}
.nav-link:hover, .nav-link.active {
  color: var(--gold-300);
  background: rgba(184,135,30,0.1);
}
.btn-nav {
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-950) !important;
  padding: 0.5rem 1.25rem !important;
  border-radius: var(--radius-sm) !important;
  font-weight: 600 !important;
  transition: var(--transition) !important;
}
.btn-nav:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
}

/* =================== HERO =================== */
.hero {
  min-height: 100vh;
  background: var(--navy-950);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding-top: 70px;
}
.hero-particles { position: absolute; inset: 0; pointer-events: none; }
.particle {
  position: absolute; border-radius: 50%;
  background: rgba(184,135,30,0.15);
  animation: particleFloat var(--dur, 8s) linear infinite;
  animation-delay: var(--delay, 0s);
}
.hero-grid {
  position: absolute; inset: 0; opacity: 0.05;
  background-image: 
    linear-gradient(rgba(184,135,30,0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(184,135,30,0.5) 1px, transparent 1px);
  background-size: 60px 60px;
}
.hero-glow {
  position: absolute; border-radius: 50%;
  background: radial-gradient(circle, rgba(184,135,30,0.12) 0%, transparent 70%);
  pointer-events: none;
}
.hero-glow-1 { width: 600px; height: 600px; top: -100px; right: -100px; }
.hero-glow-2 { width: 400px; height: 400px; bottom: -50px; left: 100px; }
.hero-content { position: relative; z-index: 2; max-width: 1200px; margin: 0 auto; padding: 4rem 2rem; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(184,135,30,0.15);
  border: 1px solid rgba(184,135,30,0.3);
  border-radius: 100px; padding: 0.35rem 1rem;
  color: var(--gold-300); font-size: 0.8rem; font-weight: 500;
  margin-bottom: 1.5rem;
}
.hero-badge::before {
  content: '';
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gold-400);
  animation: pulse-gold 2s infinite;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  color: var(--ivory-100);
  line-height: 1.15; margin-bottom: 1.5rem;
  font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--gold-400); }
.hero p {
  font-size: 1.15rem; color: rgba(253,251,245,0.65);
  max-width: 560px; margin-bottom: 2.5rem; line-height: 1.8;
}
.hero-stats {
  display: flex; gap: 3rem; margin-top: 4rem;
  padding-top: 2rem;
  border-top: 1px solid rgba(184,135,30,0.2);
}
.hero-stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; font-weight: 700; color: var(--gold-400);
  display: block;
}
.hero-stat-label { font-size: 0.8rem; color: rgba(253,251,245,0.5); text-transform: uppercase; letter-spacing: 1px; }

/* =================== BUTTONS =================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 0.75rem 1.75rem; border-radius: var(--radius-sm);
  font-weight: 600; font-size: 0.9rem;
  cursor: pointer; border: none; text-decoration: none;
  transition: var(--transition); font-family: 'Inter', sans-serif;
  letter-spacing: 0.3px;
}
.btn-primary {
  background: linear-gradient(135deg, var(--gold-500) 0%, var(--gold-400) 100%);
  color: var(--navy-950);
  box-shadow: 0 4px 15px rgba(184,135,30,0.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(184,135,30,0.45); }
.btn-secondary {
  background: transparent;
  border: 1.5px solid rgba(184,135,30,0.5);
  color: var(--gold-300);
}
.btn-secondary:hover { background: rgba(184,135,30,0.1); border-color: var(--gold-400); }
.btn-outline-light {
  background: transparent; border: 1.5px solid rgba(253,251,245,0.3);
  color: var(--ivory-100);
}
.btn-outline-light:hover { background: rgba(253,251,245,0.08); }
.btn-danger { background: var(--red-danger); color: white; }
.btn-success { background: var(--green-success); color: white; }
.btn-sm { padding: 0.45rem 1rem; font-size: 0.8rem; }
.btn-lg { padding: 1rem 2.5rem; font-size: 1rem; }
.btn-block { width: 100%; display: flex; }

/* =================== CARDS =================== */
.card {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  padding: 1.75rem;
  transition: var(--transition);
}
.card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.card-gold {
  background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 100%);
  border: 1px solid rgba(184,135,30,0.3);
  color: var(--ivory-100);
}
.card-navy {
  background: var(--navy-800);
  border: 1px solid rgba(184,135,30,0.2);
  color: var(--ivory-100);
}

/* Stats card */
.stat-card {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); padding: 1.5rem;
  position: relative; overflow: hidden;
  transition: var(--transition);
}
.stat-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
}
.stat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }
.stat-label { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 1px; color: var(--text-muted); font-weight: 600; }
.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.85rem; font-weight: 700; color: var(--text-primary);
  margin: 0.35rem 0; line-height: 1;
  animation: countUp 0.6s ease both;
}
.stat-change { font-size: 0.8rem; font-weight: 500; }
.stat-change.up { color: var(--green-success); }
.stat-change.down { color: var(--red-danger); }
.stat-icon {
  position: absolute; top: 1.25rem; right: 1.25rem;
  width: 44px; height: 44px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.stat-icon-gold { background: rgba(184,135,30,0.12); }
.stat-icon-green { background: rgba(16,185,129,0.12); }
.stat-icon-blue { background: rgba(37,99,235,0.1); }
.stat-icon-red { background: rgba(239,68,68,0.1); }

/* =================== FORMS =================== */
.form-group { margin-bottom: 1.25rem; }
.form-label {
  display: block; font-size: 0.82rem; font-weight: 600;
  color: var(--text-secondary); margin-bottom: 0.4rem;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.form-control {
  width: 100%; padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: white; color: var(--text-primary);
  font-family: 'Inter', sans-serif; font-size: 0.9rem;
  transition: var(--transition);
}
.form-control:focus {
  outline: none; border-color: var(--gold-400);
  box-shadow: 0 0 0 3px rgba(184,135,30,0.12);
}
.form-control.dark {
  background: rgba(255,255,255,0.06);
  border-color: rgba(184,135,30,0.2);
  color: var(--ivory-100);
}
.form-control.dark:focus { border-color: var(--gold-400); }
.form-control.dark::placeholder { color: rgba(253,251,245,0.35); }
.input-group { position: relative; }
.input-prefix {
  position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: 0.875rem; pointer-events: none;
}
.input-group .form-control { padding-left: 2.5rem; }
.form-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.3rem; }
.form-error { font-size: 0.78rem; color: var(--red-danger); margin-top: 0.3rem; }

/* =================== TABLE =================== */
.table-wrapper { overflow-x: auto; border-radius: var(--radius); }
.table {
  width: 100%; border-collapse: collapse;
  font-size: 0.875rem;
}
.table th {
  background: var(--ivory-200);
  color: var(--text-muted); text-transform: uppercase;
  font-size: 0.72rem; letter-spacing: 1px; font-weight: 600;
  padding: 0.875rem 1rem; text-align: left; white-space: nowrap;
}
.table td { padding: 0.875rem 1rem; border-bottom: 1px solid var(--border); vertical-align: middle; }
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--ivory-200); }
.table-dark th { background: var(--navy-800); color: var(--gold-300); }
.table-dark td { color: var(--ivory-100); border-color: rgba(255,255,255,0.06); }
.table-dark tr:hover td { background: rgba(255,255,255,0.03); }

/* =================== BADGES / STATUS =================== */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 0.25rem 0.75rem; border-radius: 100px;
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.badge::before { content: ''; width: 5px; height: 5px; border-radius: 50%; }
.badge-success { background: rgba(16,185,129,0.1); color: #059669; }
.badge-success::before { background: #10B981; }
.badge-danger { background: rgba(239,68,68,0.1); color: #DC2626; }
.badge-danger::before { background: #EF4444; }
.badge-warning { background: rgba(245,158,11,0.1); color: #D97706; }
.badge-warning::before { background: #F59E0B; }
.badge-info { background: rgba(37,99,235,0.1); color: #2563EB; }
.badge-info::before { background: #3B82F6; }
.badge-gold { background: rgba(184,135,30,0.15); color: var(--gold-600); }
.badge-gold::before { background: var(--gold-400); }
.badge-navy { background: rgba(7,17,40,0.1); color: var(--navy-700); }

/* =================== SIDEBAR =================== */
.sidebar {
  width: 260px; min-height: 100vh;
  background: var(--navy-950);
  border-right: 1px solid rgba(184,135,30,0.15);
  position: fixed; left: 0; top: 0;
  display: flex; flex-direction: column;
  z-index: 100; transition: var(--transition);
}
.sidebar-logo {
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid rgba(184,135,30,0.15);
  display: flex; align-items: center; gap: 12px;
}
.sidebar-logo .brand-text { font-size: 1.1rem; }
.sidebar-nav { flex: 1; padding: 1.25rem 0.75rem; overflow-y: auto; }
.sidebar-section-label {
  font-size: 0.65rem; text-transform: uppercase; letter-spacing: 2px;
  color: rgba(184,135,30,0.5); font-weight: 700;
  padding: 0.5rem 0.75rem; margin-top: 0.5rem;
}
.sidebar-link {
  display: flex; align-items: center; gap: 12px;
  padding: 0.7rem 0.875rem; border-radius: 8px;
  color: rgba(253,251,245,0.6); text-decoration: none;
  font-size: 0.875rem; font-weight: 500;
  transition: var(--transition); margin-bottom: 2px;
  position: relative;
}
.sidebar-link:hover { color: var(--ivory-100); background: rgba(255,255,255,0.05); }
.sidebar-link.active {
  color: var(--gold-300);
  background: rgba(184,135,30,0.12);
  border: 1px solid rgba(184,135,30,0.2);
}
.sidebar-link .icon { font-size: 17px; width: 20px; text-align: center; }
.sidebar-badge {
  margin-left: auto;
  background: var(--gold-500); color: var(--navy-950);
  border-radius: 100px; padding: 1px 7px;
  font-size: 0.68rem; font-weight: 700;
}
.sidebar-footer {
  padding: 1rem; border-top: 1px solid rgba(184,135,30,0.15);
}
.main-content {
  margin-left: 260px;
  min-height: 100vh;
  background: var(--ivory-100);
}

/* =================== TOPBAR =================== */
.topbar {
  background: white; border-bottom: 1px solid var(--border);
  padding: 0 2rem; height: 64px;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 50;
}
.topbar-title { font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 600; }
.topbar-actions { display: flex; align-items: center; gap: 1rem; }
.topbar-btn {
  width: 38px; height: 38px; border-radius: 8px;
  background: var(--ivory-200); border: 1px solid var(--border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 17px; position: relative;
  transition: var(--transition); text-decoration: none; color: var(--text-primary);
}
.topbar-btn:hover { background: var(--ivory-300); }
.notif-dot {
  position: absolute; top: 6px; right: 6px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--red-danger); border: 2px solid white;
}
.user-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
  display: flex; align-items: center; justify-content: center;
  color: var(--gold-400); font-weight: 700; font-size: 0.9rem;
  cursor: pointer;
}

/* =================== INVESTMENT PLANS =================== */
.plan-card {
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); padding: 2rem;
  position: relative; overflow: hidden;
  transition: var(--transition);
}
.plan-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(184,135,30,0.04));
  pointer-events: none;
}
.plan-card:hover { box-shadow: var(--shadow-gold); border-color: rgba(184,135,30,0.4); transform: translateY(-4px); }
.plan-card.featured {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-800));
  border-color: rgba(184,135,30,0.5);
  color: var(--ivory-100);
}
.plan-badge {
  position: absolute; top: 1rem; right: 1rem;
  background: linear-gradient(135deg, var(--gold-500), var(--gold-400));
  color: var(--navy-950); padding: 0.2rem 0.75rem;
  border-radius: 100px; font-size: 0.7rem; font-weight: 700;
}
.plan-roi {
  font-family: 'Playfair Display', serif;
  font-size: 3rem; font-weight: 700; color: var(--gold-400);
  line-height: 1;
}
.plan-roi sup { font-size: 1.5rem; }
.plan-features { list-style: none; margin-top: 1.5rem; }
.plan-features li {
  padding: 0.4rem 0; font-size: 0.875rem;
  display: flex; align-items: center; gap: 8px;
  border-bottom: 1px solid rgba(184,135,30,0.1);
}
.plan-features li:last-child { border-bottom: none; }
.plan-features li::before { content: '✓'; color: var(--gold-400); font-weight: 700; }

/* =================== ALERTS =================== */
.alert {
  padding: 0.875rem 1.25rem; border-radius: var(--radius-sm);
  border-left: 4px solid; margin-bottom: 1rem;
  font-size: 0.875rem; display: flex; align-items: flex-start; gap: 10px;
}
.alert-success { background: rgba(16,185,129,0.08); border-color: var(--green-success); color: #065F46; }
.alert-danger { background: rgba(239,68,68,0.08); border-color: var(--red-danger); color: #991B1B; }
.alert-warning { background: rgba(245,158,11,0.08); border-color: var(--amber-warn); color: #92400E; }
.alert-info { background: rgba(37,99,235,0.08); border-color: #3B82F6; color: #1E40AF; }
.alert-gold { background: rgba(184,135,30,0.08); border-color: var(--gold-400); color: var(--gold-600); }

/* =================== LOADER =================== */
.spinner {
  width: 24px; height: 24px; border-radius: 50%;
  border: 3px solid rgba(184,135,30,0.2);
  border-top-color: var(--gold-400);
  animation: spin 0.8s linear infinite;
  display: inline-block;
}
.page-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: var(--navy-950);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 1.5rem;
}
.loader-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2rem; color: var(--gold-400); font-weight: 700;
  animation: fadeIn 0.5s ease;
}
.loader-bar {
  width: 200px; height: 3px;
  background: rgba(184,135,30,0.2); border-radius: 100px;
  overflow: hidden;
}
.loader-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  animation: lineGrow 2s ease forwards;
}
.loader-text { color: rgba(253,251,245,0.5); font-size: 0.82rem; }

/* =================== MODAL =================== */
.modal-overlay {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(4,13,31,0.85); backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem; opacity: 0; pointer-events: none;
  transition: opacity 0.3s ease;
}
.modal-overlay.active { opacity: 1; pointer-events: all; }
.modal {
  background: white; border-radius: var(--radius-lg);
  width: 100%; max-width: 520px; max-height: 90vh;
  overflow-y: auto;
  box-shadow: 0 25px 60px rgba(4,13,31,0.4);
  transform: translateY(20px) scale(0.97);
  transition: transform 0.3s ease;
}
.modal-overlay.active .modal { transform: none; }
.modal-header {
  padding: 1.5rem 1.75rem;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; background: white; z-index: 1;
}
.modal-title { font-family: 'Playfair Display', serif; font-size: 1.2rem; }
.modal-close {
  width: 32px; height: 32px; border-radius: 6px;
  background: var(--ivory-200); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; transition: var(--transition);
}
.modal-close:hover { background: var(--ivory-300); }
.modal-body { padding: 1.75rem; }
.modal-footer {
  padding: 1.25rem 1.75rem;
  border-top: 1px solid var(--border);
  display: flex; gap: 0.75rem; justify-content: flex-end;
}

/* =================== DROPDOWN =================== */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: white; border-radius: var(--radius);
  border: 1px solid var(--border); box-shadow: var(--shadow-lg);
  min-width: 200px; padding: 0.5rem; z-index: 100;
  opacity: 0; pointer-events: none; transform: translateY(-8px);
  transition: var(--transition);
}
.dropdown.open .dropdown-menu { opacity: 1; pointer-events: all; transform: none; }
.dropdown-item {
  display: flex; align-items: center; gap: 10px;
  padding: 0.625rem 0.875rem; border-radius: 6px;
  color: var(--text-primary); text-decoration: none;
  font-size: 0.875rem; transition: var(--transition);
}
.dropdown-item:hover { background: var(--ivory-200); color: var(--navy-700); }
.dropdown-divider { border: none; border-top: 1px solid var(--border); margin: 0.35rem 0; }

/* =================== PROGRESS =================== */
.progress-bar {
  height: 8px; background: var(--ivory-300); border-radius: 100px;
  overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 100px;
  background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
  transition: width 1s cubic-bezier(0.4, 0, 0.2, 1);
}

/* =================== TOAST =================== */
.toast-container {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 9999;
  display: flex; flex-direction: column; gap: 0.75rem;
  pointer-events: none;
}
.toast {
  background: var(--navy-950); color: var(--ivory-100);
  border: 1px solid rgba(184,135,30,0.3);
  padding: 1rem 1.25rem; border-radius: var(--radius);
  box-shadow: var(--shadow-lg); min-width: 300px; max-width: 400px;
  display: flex; gap: 12px; align-items: flex-start;
  pointer-events: all; animation: fadeUp 0.3s ease;
}
.toast-icon { font-size: 20px; flex-shrink: 0; }
.toast-title { font-weight: 600; font-size: 0.875rem; }
.toast-msg { font-size: 0.8rem; color: rgba(253,251,245,0.65); margin-top: 2px; }

/* =================== TABS =================== */
.tab-nav {
  display: flex; gap: 0; border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
}
.tab-btn {
  padding: 0.75rem 1.25rem; border: none; background: none;
  color: var(--text-muted); font-size: 0.875rem; font-weight: 500;
  cursor: pointer; transition: var(--transition); position: relative;
  font-family: 'Inter', sans-serif;
}
.tab-btn.active { color: var(--navy-700); }
.tab-btn.active::after {
  content: ''; position: absolute; bottom: -2px; left: 0; right: 0;
  height: 2px; background: linear-gradient(90deg, var(--gold-500), var(--gold-300));
}
.tab-pane { display: none; animation: fadeIn 0.3s ease; }
.tab-pane.active { display: block; }

/* =================== SECTIONS =================== */
.section { padding: 5rem 0; }
.section-header { text-align: center; margin-bottom: 3.5rem; }
.section-eyebrow {
  display: inline-block; font-size: 0.75rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 2px;
  color: var(--gold-500); margin-bottom: 0.75rem;
}
.section-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.8rem, 4vw, 2.75rem); color: var(--text-primary);
  line-height: 1.2; margin-bottom: 1rem;
}
.section-sub { font-size: 1rem; color: var(--text-secondary); max-width: 520px; margin: 0 auto; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 2rem; }
.grid { display: grid; gap: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.content-grid { display: grid; grid-template-columns: 1fr 340px; gap: 1.75rem; align-items: start; }
@media (max-width: 900px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .content-grid { grid-template-columns: 1fr; }
  .main-content { margin-left: 0; }
  .sidebar { transform: translateX(-100%); }
  .sidebar.open { transform: none; }
  .hero-stats { flex-wrap: wrap; gap: 1.5rem; }
}
@media (max-width: 600px) {
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
}

/* =================== CHART BARS (CSS Only) =================== */
.chart-bars { display: flex; align-items: flex-end; gap: 8px; height: 100px; }
.chart-bar {
  flex: 1; border-radius: 4px 4px 0 0;
  background: linear-gradient(180deg, var(--gold-400), var(--gold-600));
  animation: barGrow 1s cubic-bezier(0.4, 0, 0.2, 1) both;
  position: relative; cursor: pointer;
}
.chart-bar:hover { background: linear-gradient(180deg, var(--gold-300), var(--gold-500)); }
.chart-bar::after {
  content: attr(data-val);
  position: absolute; bottom: calc(100% + 4px); left: 50%; transform: translateX(-50%);
  font-size: 10px; color: var(--text-muted); white-space: nowrap;
}

/* =================== MISC =================== */
.divider { border: none; border-top: 1px solid var(--border); margin: 1.5rem 0; }
.text-gold { color: var(--gold-500); }
.text-muted { color: var(--text-muted); }
.text-success { color: var(--green-success); }
.text-danger { color: var(--red-danger); }
.text-center { text-align: center; }
.font-mono { font-family: 'JetBrains Mono', monospace; }
.mt-1 { margin-top: 0.5rem; } .mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: 0.5rem; } .mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.d-flex { display: flex; } .align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-1 { gap: 0.5rem; } .gap-2 { gap: 1rem; } .gap-3 { gap: 1.5rem; }
.fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.fs-sm { font-size: 0.82rem; } .fs-lg { font-size: 1.1rem; }
select.form-control { cursor: pointer; appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%238897B8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center;
  padding-right: 2.5rem;
}
