/* FinVest — Premium Financial Platform CSS */
/* Theme: Dark Luxury / Gold Accent */

@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;500;600;700;800&family=DM+Sans:wght@300;400;500;600;700&family=DM+Mono:wght@400;500&display=swap');

:root {
  /* Core Palette */
  --gold: #D4AF37;
  --gold-light: #F0CC5A;
  --gold-dark: #B8962A;
  --gold-muted: rgba(212,175,55,0.15);
  --teal: #2DD4BF;
  --teal-muted: rgba(45,212,191,0.12);
  --rose: #FB7185;
  --purple: #A78BFA;

  /* Dark Backgrounds */
  --bg-void: #060A14;
  --bg-deep: #0A0F1E;
  --bg-surface: #0E1628;
  --bg-card: #111827;
  --bg-elevated: #1A2235;
  --bg-hover: #1E293B;

  /* Text */
  --text-primary: #F1F5F9;
  --text-secondary: #94A3B8;
  --text-muted: #475569;
  --text-gold: #D4AF37;

  /* Borders */
  --border: rgba(212,175,55,0.12);
  --border-subtle: rgba(255,255,255,0.06);
  --border-bright: rgba(212,175,55,0.35);

  /* Gradients */
  --gradient-gold: linear-gradient(135deg, #D4AF37 0%, #F0CC5A 50%, #B8962A 100%);
  --gradient-dark: linear-gradient(180deg, #0A0F1E 0%, #060A14 100%);
  --gradient-card: linear-gradient(135deg, rgba(212,175,55,0.08) 0%, rgba(212,175,55,0.02) 100%);
  --gradient-hero: linear-gradient(135deg, #0A0F1E 0%, #0E1628 40%, #111827 100%);

  /* Shadows */
  --shadow-card: 0 4px 24px rgba(0,0,0,0.4), 0 1px 0 rgba(212,175,55,0.08) inset;
  --shadow-gold: 0 8px 32px rgba(212,175,55,0.2);
  --shadow-lg: 0 20px 60px rgba(0,0,0,0.5);

  /* Fonts */
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', monospace;

  /* Spacing */
  --radius: 12px;
  --radius-lg: 20px;
  --radius-xl: 28px;

  /* Transitions */
  --transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-slow: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── Reset & Base ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font-body);
  background: var(--bg-void);
  color: var(--text-primary);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--gold-light); }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-display); font-weight: 600; line-height: 1.25; }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-deep); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: var(--gold); }

/* ── Noise Texture Overlay ── */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.025;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* ── Layout ── */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 820px; margin: 0 auto; padding: 0 24px; }

/* ── Ticker Bar ── */
.ticker-bar {
  background: var(--bg-void);
  border-bottom: 1px solid var(--border);
  padding: 8px 0;
  overflow: hidden;
  position: relative;
}
.ticker-bar::before, .ticker-bar::after {
  content: '';
  position: absolute;
  top: 0;
  width: 80px;
  height: 100%;
  z-index: 2;
}
.ticker-bar::before { left: 0; background: linear-gradient(90deg, var(--bg-void), transparent); }
.ticker-bar::after { right: 0; background: linear-gradient(-90deg, var(--bg-void), transparent); }
.ticker-track {
  display: flex;
  gap: 48px;
  animation: tickerScroll 40s linear infinite;
  width: max-content;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}
.ticker-symbol { color: var(--text-secondary); font-weight: 500; }
.ticker-value { color: var(--text-primary); font-weight: 600; }
.ticker-change.up { color: var(--teal); }
.ticker-change.down { color: var(--rose); }
@keyframes tickerScroll { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }

/* ── Navigation ── */
.navbar {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(10, 15, 30, 0.92);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.5px;
}
.nav-logo-icon {
  width: 36px;
  height: 36px;
  background: var(--gradient-gold);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-style: normal;
}
.nav-logo span { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  list-style: none;
}
.nav-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text-primary);
  background: var(--bg-elevated);
}
.nav-links a.active { color: var(--gold); }
.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 12px 6px 6px;
  border-radius: 99px;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
}
.nav-user:hover { border-color: var(--border-bright); background: var(--bg-elevated); }
.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  color: var(--bg-void);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}
.nav-hamburger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text-primary);
  border-radius: 2px;
  transition: var(--transition);
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 14px;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
}
.btn-gold {
  background: var(--gradient-gold);
  color: var(--bg-void);
  box-shadow: 0 4px 16px rgba(212,175,55,0.3);
}
.btn-gold:hover {
  transform: translateY(-1px);
  box-shadow: var(--shadow-gold);
  color: var(--bg-void);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--border-bright);
  color: var(--text-primary);
}
.btn-outline:hover {
  background: var(--gold-muted);
  border-color: var(--gold);
  color: var(--gold);
}
.btn-ghost {
  background: transparent;
  color: var(--text-secondary);
}
.btn-ghost:hover { color: var(--text-primary); background: var(--bg-elevated); }
.btn-danger {
  background: rgba(251,113,133,0.15);
  border: 1px solid rgba(251,113,133,0.3);
  color: var(--rose);
}
.btn-danger:hover { background: rgba(251,113,133,0.25); }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 28px; font-size: 16px; border-radius: var(--radius-lg); }
.btn-block { width: 100%; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }

/* ── Hero ── */
.hero {
  position: relative;
  min-height: 92vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--gradient-hero);
}
.hero-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(212,175,55,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212,175,55,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse 80% 80% at 50% 50%, black, transparent);
}
.hero-orbs {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.hero-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.15;
}
.hero-orb-1 { width: 600px; height: 600px; background: var(--gold); top: -200px; right: -100px; }
.hero-orb-2 { width: 400px; height: 400px; background: var(--teal); bottom: -100px; left: -50px; }
.hero-orb-3 { width: 300px; height: 300px; background: var(--purple); top: 50%; left: 40%; transform: translate(-50%, -50%); }
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  background: var(--gold-muted);
  border: 1px solid var(--border-bright);
  border-radius: 99px;
  font-size: 12px;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 24px;
  animation: fadeInUp 0.6s ease both;
}
.hero-title {
  font-size: clamp(42px, 6vw, 80px);
  font-weight: 800;
  line-height: 1.05;
  letter-spacing: -2px;
  margin-bottom: 20px;
  animation: fadeInUp 0.6s 0.1s ease both;
}
.hero-title .highlight {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 540px;
  margin-bottom: 36px;
  line-height: 1.7;
  animation: fadeInUp 0.6s 0.2s ease both;
}
.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 48px;
  animation: fadeInUp 0.6s 0.3s ease both;
}
.hero-stats {
  display: flex;
  gap: 40px;
  animation: fadeInUp 0.6s 0.4s ease both;
}
.hero-stat-value {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
}
.hero-stat-label { font-size: 12px; color: var(--text-muted); margin-top: 4px; text-transform: uppercase; letter-spacing: 0.5px; }
.hero-visual {
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 50%;
  max-width: 600px;
  z-index: 1;
  animation: fadeInRight 0.8s 0.3s ease both;
}

/* ── Section Styles ── */
.section { padding: 80px 0; }
.section-sm { padding: 48px 0; }
.section-header { margin-bottom: 48px; }
.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--gold);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-label::before {
  content: '';
  display: block;
  width: 20px;
  height: 2px;
  background: var(--gold);
  border-radius: 1px;
}
.section-title {
  font-size: clamp(28px, 3vw, 44px);
  font-weight: 700;
  letter-spacing: -1px;
  margin-bottom: 12px;
}
.section-subtitle { color: var(--text-secondary); font-size: 16px; max-width: 500px; }
.section-header-row { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; }

/* ── Cards ── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
}
.card:hover {
  border-color: var(--border);
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}
.card-body { padding: 24px; }

/* Content Cards */
.content-card { display: flex; flex-direction: column; height: 100%; }
.content-card-img {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-elevated);
}
.content-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}
.content-card:hover .content-card-img img { transform: scale(1.05); }
.content-card-img .badge {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 2;
}
.content-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.content-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 12px;
  color: var(--text-muted);
}
.content-card-title {
  font-size: 17px;
  font-weight: 600;
  line-height: 1.35;
  margin-bottom: 10px;
  flex: 1;
}
.content-card-title a { color: var(--text-primary); }
.content-card-title a:hover { color: var(--gold); }
.content-card-excerpt { font-size: 14px; color: var(--text-secondary); line-height: 1.6; margin-bottom: 16px; }
.content-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border-subtle);
  margin-top: auto;
}

/* Grid layouts */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-auto { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ── Badges ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.badge-gold { background: var(--gold-muted); color: var(--gold); border: 1px solid rgba(212,175,55,0.25); }
.badge-teal { background: var(--teal-muted); color: var(--teal); border: 1px solid rgba(45,212,191,0.25); }
.badge-rose { background: rgba(251,113,133,0.12); color: var(--rose); border: 1px solid rgba(251,113,133,0.25); }
.badge-purple { background: rgba(167,139,250,0.12); color: var(--purple); border: 1px solid rgba(167,139,250,0.25); }
.badge-gray { background: rgba(148,163,184,0.1); color: var(--text-secondary); border: 1px solid rgba(148,163,184,0.15); }

/* ── Quiz Styles ── */
.quiz-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  cursor: pointer;
}
.quiz-card:hover { border-color: var(--gold); transform: translateY(-4px); box-shadow: 0 12px 40px rgba(212,175,55,0.15); }
.quiz-card-header { padding: 24px 24px 0; }
.quiz-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--gold-muted);
  border: 1px solid var(--border-bright);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.quiz-card-body { padding: 16px 24px 24px; }
.quiz-meta { display: flex; gap: 16px; margin-top: 14px; }
.quiz-meta-item { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text-muted); }

/* Quiz Play Interface */
.quiz-play-wrapper {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 0;
}
.quiz-progress-bar {
  height: 3px;
  background: var(--border-subtle);
  border-radius: 99px;
  margin-bottom: 32px;
  overflow: hidden;
}
.quiz-progress-fill {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: 99px;
  transition: width 0.4s ease;
}
.quiz-question-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 36px;
}
.quiz-question-num {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  font-family: var(--font-mono);
}
.quiz-question-text {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.4;
  margin-bottom: 28px;
}
.quiz-options { display: flex; flex-direction: column; gap: 12px; }
.quiz-option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  background: var(--bg-surface);
}
.quiz-option:hover { border-color: var(--border-bright); background: var(--gold-muted); }
.quiz-option.selected { border-color: var(--gold); background: var(--gold-muted); }
.quiz-option.correct { border-color: var(--teal); background: var(--teal-muted); }
.quiz-option.wrong { border-color: var(--rose); background: rgba(251,113,133,0.08); }
.quiz-option-letter {
  min-width: 32px;
  height: 32px;
  border-radius: 8px;
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 700;
  font-family: var(--font-mono);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}
.quiz-option.selected .quiz-option-letter { background: var(--gold); color: var(--bg-void); border-color: var(--gold); }
.quiz-option.correct .quiz-option-letter { background: var(--teal); color: var(--bg-void); border-color: var(--teal); }
.quiz-option.wrong .quiz-option-letter { background: var(--rose); color: white; border-color: var(--rose); }
.quiz-option-text { font-size: 15px; line-height: 1.4; }

/* Quiz Results */
.quiz-result-card {
  text-align: center;
  padding: 48px 36px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
}
.quiz-score-circle {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: conic-gradient(var(--gold) 0% var(--score-pct, 60%), var(--bg-elevated) var(--score-pct, 60%) 100%);
  margin: 0 auto 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.quiz-score-circle::before {
  content: '';
  position: absolute;
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background: var(--bg-card);
}
.quiz-score-inner {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 32px;
  font-weight: 800;
  color: var(--gold);
}

/* ── Event Cards ── */
.event-card { display: flex; gap: 20px; padding: 24px; }
.event-date-box {
  min-width: 60px;
  text-align: center;
  background: var(--gold-muted);
  border: 1px solid var(--border-bright);
  border-radius: var(--radius);
  padding: 10px 8px;
}
.event-date-day {
  font-family: var(--font-display);
  font-size: 28px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.event-date-month { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; margin-top: 4px; }
.event-content { flex: 1; }
.event-title { font-size: 16px; font-weight: 600; margin-bottom: 8px; color: var(--text-primary); }
.event-title:hover { color: var(--gold); }
.event-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: 12px; color: var(--text-muted); margin-bottom: 12px; }

/* ── Forms ── */
.form-group { margin-bottom: 20px; }
.form-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-control {
  width: 100%;
  padding: 12px 16px;
  background: var(--bg-surface);
  border: 1.5px solid var(--border-subtle);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-family: var(--font-body);
  font-size: 15px;
  transition: var(--transition);
  outline: none;
}
.form-control:focus { border-color: var(--gold); background: var(--bg-card); box-shadow: 0 0 0 3px var(--gold-muted); }
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
textarea.form-control { resize: vertical; min-height: 100px; }
.form-hint { font-size: 12px; color: var(--text-muted); margin-top: 6px; }
.form-error { font-size: 12px; color: var(--rose); margin-top: 6px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ── Tables ── */
.table-wrapper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.table { width: 100%; border-collapse: collapse; }
.table th {
  padding: 14px 20px;
  text-align: left;
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
}
.table td {
  padding: 16px 20px;
  font-size: 14px;
  color: var(--text-primary);
  border-bottom: 1px solid var(--border-subtle);
  vertical-align: middle;
}
.table tr:last-child td { border-bottom: none; }
.table tr:hover td { background: var(--bg-hover); }
.table-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  background: var(--gradient-gold);
}

/* ── Admin Sidebar ── */
.admin-layout { display: flex; min-height: 100vh; }
.admin-sidebar {
  width: 260px;
  background: var(--bg-surface);
  border-right: 1px solid var(--border-subtle);
  position: fixed;
  top: 0;
  left: 0;
  height: 100vh;
  overflow-y: auto;
  z-index: 100;
  display: flex;
  flex-direction: column;
  transition: var(--transition);
}
.admin-sidebar-logo {
  padding: 24px;
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 12px;
}
.admin-nav { padding: 16px 12px; flex: 1; }
.admin-nav-section { margin-bottom: 8px; }
.admin-nav-label {
  padding: 6px 12px;
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 1.5px;
}
.admin-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  transition: var(--transition);
  margin-bottom: 2px;
}
.admin-nav-link:hover { color: var(--text-primary); background: var(--bg-elevated); }
.admin-nav-link.active { color: var(--gold); background: var(--gold-muted); }
.admin-nav-link .nav-icon { font-size: 16px; width: 20px; text-align: center; }
.admin-main { margin-left: 260px; flex: 1; }
.admin-topbar {
  height: 64px;
  background: var(--bg-surface);
  border-bottom: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 32px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.admin-page { padding: 32px; }
.admin-page-header { margin-bottom: 28px; }
.admin-page-title { font-size: 28px; font-weight: 700; letter-spacing: -0.5px; }
.admin-page-subtitle { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }

/* Stats Cards */
.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px;
  transition: var(--transition);
}
.stat-card:hover { border-color: var(--border); }
.stat-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 16px;
}
.stat-card-icon.gold { background: var(--gold-muted); }
.stat-card-icon.teal { background: var(--teal-muted); }
.stat-card-icon.rose { background: rgba(251,113,133,0.1); }
.stat-card-icon.purple { background: rgba(167,139,250,0.1); }
.stat-value { font-family: var(--font-display); font-size: 32px; font-weight: 700; line-height: 1; margin-bottom: 6px; }
.stat-label { font-size: 13px; color: var(--text-muted); }
.stat-change { font-size: 12px; margin-top: 8px; display: flex; align-items: center; gap: 4px; }
.stat-change.up { color: var(--teal); }
.stat-change.down { color: var(--rose); }

/* ── Auth Pages ── */
.auth-page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: var(--bg-void);
  position: relative;
}
.auth-page::before {
  content: '';
  position: absolute;
  width: 800px;
  height: 800px;
  background: radial-gradient(circle, rgba(212,175,55,0.06) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.auth-card {
  width: 100%;
  max-width: 460px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 40px;
  position: relative;
  z-index: 1;
}
.auth-logo { text-align: center; margin-bottom: 28px; }
.auth-title { font-size: 26px; font-weight: 700; text-align: center; margin-bottom: 6px; }
.auth-subtitle { font-size: 14px; color: var(--text-secondary); text-align: center; margin-bottom: 28px; }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 20px 0; }
.auth-divider::before, .auth-divider::after { content: ''; flex: 1; height: 1px; background: var(--border-subtle); }
.auth-divider span { font-size: 12px; color: var(--text-muted); }

/* ── Modals ── */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(6,10,20,0.85);
  backdrop-filter: blur(4px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
}
.modal-overlay.active { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  transform: scale(0.95) translateY(10px);
  transition: var(--transition);
}
.modal-overlay.active .modal { transform: scale(1) translateY(0); }
.modal-header {
  padding: 24px 28px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.modal-title { font-size: 20px; font-weight: 700; }
.modal-close {
  width: 32px; height: 32px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-elevated);
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 18px;
  transition: var(--transition);
}
.modal-close:hover { background: var(--rose); color: white; }
.modal-body { padding: 20px 28px 28px; }

/* ── Alerts ── */
.alert {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px 16px;
  border-radius: var(--radius);
  font-size: 14px;
  margin-bottom: 16px;
}
.alert-success { background: rgba(45,212,191,0.08); border: 1px solid rgba(45,212,191,0.2); color: var(--teal); }
.alert-error { background: rgba(251,113,133,0.08); border: 1px solid rgba(251,113,133,0.2); color: var(--rose); }
.alert-info { background: var(--gold-muted); border: 1px solid var(--border-bright); color: var(--gold); }

/* ── Footer ── */
.footer {
  background: var(--bg-deep);
  border-top: 1px solid var(--border-subtle);
  padding: 64px 0 32px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand-desc { font-size: 14px; color: var(--text-muted); margin: 16px 0 20px; line-height: 1.7; max-width: 260px; }
.footer-social { display: flex; gap: 10px; }
.footer-social-link {
  width: 36px; height: 36px;
  border-radius: 8px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  color: var(--text-secondary);
  transition: var(--transition);
}
.footer-social-link:hover { background: var(--gold-muted); border-color: var(--border-bright); color: var(--gold); }
.footer-col-title { font-size: 13px; font-weight: 700; color: var(--text-primary); margin-bottom: 16px; text-transform: uppercase; letter-spacing: 0.5px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 14px; color: var(--text-muted); transition: var(--transition); }
.footer-links a:hover { color: var(--gold); }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
  color: var(--text-muted);
}

/* ── Toast Notifications ── */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column-reverse;
  gap: 10px;
}
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 14px;
  min-width: 280px;
  box-shadow: var(--shadow-lg);
  animation: toastIn 0.3s ease;
}
.toast-icon { font-size: 18px; }
.toast.success { border-left: 3px solid var(--teal); }
.toast.error { border-left: 3px solid var(--rose); }
.toast.info { border-left: 3px solid var(--gold); }
@keyframes toastIn { from { transform: translateX(120%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ── Newsletter ── */
.newsletter-section {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-xl);
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: '';
  position: absolute;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, var(--gold-muted) 0%, transparent 70%);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
.newsletter-form { display: flex; gap: 10px; max-width: 440px; margin: 24px auto 0; }
.newsletter-form .form-control { border-radius: var(--radius); }

/* ── Pagination ── */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 32px 0; }
.page-btn {
  width: 38px; height: 38px;
  border-radius: 8px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.page-btn:hover { border-color: var(--border-bright); color: var(--gold); }
.page-btn.active { background: var(--gradient-gold); color: var(--bg-void); border-color: transparent; font-weight: 700; }

/* ── Tag Pills ── */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 4px 12px;
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: 99px;
  font-size: 12px;
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
}
.tag:hover, .tag.active { border-color: var(--gold); color: var(--gold); background: var(--gold-muted); }

/* ── Animations ── */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeInRight {
  from { opacity: 0; transform: translateX(40px) translateY(-50%); }
  to { opacity: 1; transform: translateX(0) translateY(-50%); }
}
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.5; }
}
.animate-in { animation: fadeInUp 0.5s ease both; }
.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-hover) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: skeleton 1.5s ease infinite;
  border-radius: var(--radius);
}
@keyframes skeleton { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ── Mobile ── */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-links, .nav-cta .btn { display: none; }
  .nav-hamburger { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .hero-title { font-size: 36px; letter-spacing: -1px; }
  .hero-stats { gap: 24px; }
  .hero-visual { display: none; }
  .section { padding: 56px 0; }
  .admin-sidebar { transform: translateX(-100%); }
  .admin-sidebar.open { transform: translateX(0); }
  .admin-main { margin-left: 0; }
  .admin-page { padding: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .newsletter-form { flex-direction: column; }
  .modal { max-width: 100%; margin: 0 8px; }
  .quiz-question-card { padding: 24px 20px; }
}
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  .grid-4 { grid-template-columns: 1fr; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }
}

/* ── Dark mobile nav overlay ── */
.mobile-nav-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(6,10,20,0.9);
  z-index: 999;
}
.mobile-nav-overlay.active { display: block; }
.mobile-nav {
  position: fixed;
  top: 0;
  left: 0;
  width: 280px;
  height: 100%;
  background: var(--bg-surface);
  border-right: 1px solid var(--border);
  z-index: 1001;
  padding: 24px;
  transform: translateX(-100%);
  transition: var(--transition);
  overflow-y: auto;
}
.mobile-nav.active { transform: translateX(0); }
.mobile-nav-links { list-style: none; margin-top: 24px; }
.mobile-nav-links li { margin-bottom: 4px; }
.mobile-nav-links a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 15px;
  font-weight: 500;
  transition: var(--transition);
}
.mobile-nav-links a:hover, .mobile-nav-links a.active {
  color: var(--gold);
  background: var(--gold-muted);
}

/* Rich text content */
.prose h2, .prose h3 { font-family: var(--font-display); margin: 24px 0 12px; }
.prose p { color: var(--text-secondary); margin-bottom: 16px; line-height: 1.75; }
.prose ul, .prose ol { padding-left: 24px; color: var(--text-secondary); margin-bottom: 16px; }
.prose li { margin-bottom: 8px; }
.prose a { color: var(--gold); border-bottom: 1px solid var(--border-bright); }
.prose blockquote {
  border-left: 3px solid var(--gold);
  padding-left: 20px;
  margin: 24px 0;
  font-style: italic;
  color: var(--text-secondary);
}

/* Loader */
.page-loader {
  position: fixed;
  inset: 0;
  background: var(--bg-void);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 16px;
  transition: opacity 0.4s ease;
}
.page-loader.hidden { opacity: 0; pointer-events: none; }
.loader-ring {
  width: 48px;
  height: 48px;
  border: 3px solid var(--border-subtle);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* Dropdown menus */
.dropdown { position: relative; }
.dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 180px;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  z-index: 500;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: var(--transition);
  box-shadow: var(--shadow-lg);
}
.dropdown:hover .dropdown-menu,
.dropdown.active .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.dropdown-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: var(--text-secondary);
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}
.dropdown-item:hover { background: var(--bg-hover); color: var(--text-primary); }
.dropdown-item.danger:hover { background: rgba(251,113,133,0.1); color: var(--rose); }
.dropdown-divider { height: 1px; background: var(--border-subtle); margin: 6px 0; }
