/* =============================================================================
   PIP HUNTER ACADEMY — Design System
   academy.css v1.0
   Premium forex trading academy stylesheet
   ============================================================================= */

/* =============================================================================
   1. CSS CUSTOM PROPERTIES
   ============================================================================= */

:root {
  /* Colors */
  --bg:           #0a0f1e;
  --bg-2:         #111827;
  --bg-3:         #1a2235;
  --bg-4:         #0d1526;
  --gold:         #f0a500;
  --gold-light:   #ffd166;
  --gold-dark:    #c47f00;
  --gold-glow:    rgba(240, 165, 0, 0.25);
  --green:        #22c55e;
  --green-dark:   #16a34a;
  --red:          #ef4444;
  --red-dark:     #dc2626;
  --blue-tg:      #229ED9;
  --blue-tg-dark: #1a7db0;
  --text:         #f1f5f9;
  --text-muted:   #94a3b8;
  --text-dim:     #64748b;
  --border:       #1e293b;
  --border-light: #263348;
  --border-gold:  rgba(240, 165, 0, 0.30);
  --border-gold-hover: rgba(240, 165, 0, 0.60);

  /* Gradients */
  --gradient-gold:    linear-gradient(135deg, #f0a500 0%, #ffd166 50%, #f0a500 100%);
  --gradient-gold-2:  linear-gradient(135deg, #c47f00 0%, #f0a500 100%);
  --gradient-dark:    linear-gradient(135deg, #0a0f1e 0%, #111827 100%);
  --gradient-hero:    linear-gradient(180deg, #0a0f1e 0%, #0d1526 60%, #0a0f1e 100%);
  --gradient-card:    linear-gradient(145deg, #111827 0%, #1a2235 100%);
  --gradient-tg:      linear-gradient(135deg, #229ED9 0%, #1a7db0 100%);

  /* Typography */
  --font-sans:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-mono:    'JetBrains Mono', 'Fira Code', 'Cascadia Code', monospace;

  /* Font Scale */
  --text-xs:   0.75rem;    /* 12px */
  --text-sm:   0.875rem;   /* 14px */
  --text-base: 1rem;       /* 16px */
  --text-lg:   1.125rem;   /* 18px */
  --text-xl:   1.25rem;    /* 20px */
  --text-2xl:  1.5rem;     /* 24px */
  --text-3xl:  1.875rem;   /* 30px */
  --text-4xl:  2.25rem;    /* 36px */
  --text-5xl:  3rem;       /* 48px */
  --text-6xl:  3.75rem;    /* 60px */
  --text-7xl:  4.5rem;     /* 72px */

  /* Spacing */
  --space-1:   0.25rem;
  --space-2:   0.5rem;
  --space-3:   0.75rem;
  --space-4:   1rem;
  --space-5:   1.25rem;
  --space-6:   1.5rem;
  --space-8:   2rem;
  --space-10:  2.5rem;
  --space-12:  3rem;
  --space-16:  4rem;
  --space-20:  5rem;
  --space-24:  6rem;
  --space-32:  8rem;

  /* Borders */
  --radius-sm:  4px;
  --radius:     8px;
  --radius-md:  12px;
  --radius-lg:  16px;
  --radius-xl:  24px;
  --radius-full: 9999px;

  /* Shadows */
  --shadow-sm:   0 1px 3px rgba(0,0,0,0.4);
  --shadow:      0 4px 16px rgba(0,0,0,0.5);
  --shadow-lg:   0 12px 40px rgba(0,0,0,0.6);
  --shadow-gold: 0 0 30px rgba(240,165,0,0.20), 0 4px 16px rgba(0,0,0,0.5);
  --shadow-gold-lg: 0 0 60px rgba(240,165,0,0.30), 0 12px 40px rgba(0,0,0,0.6);

  /* Transitions */
  --transition:     all 0.2s ease;
  --transition-slow: all 0.4s ease;

  /* Layout */
  --nav-height:   72px;
  --sidebar-width: 260px;
  --sidebar-collapsed: 72px;
  --container-max: 1280px;

  /* Z-index Scale */
  --z-base:    1;
  --z-above:   10;
  --z-dropdown: 100;
  --z-sticky:  200;
  --z-nav:     300;
  --z-modal:   400;
  --z-toast:   500;
  --z-loader:  9999;
}

/* =============================================================================
   2. RESET & BASE
   ============================================================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  font-size: 16px;
}

body {
  font-family: var(--font-sans);
  font-size: var(--text-base);
  font-weight: 400;
  line-height: 1.6;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: var(--bg-2);
}

::-webkit-scrollbar-thumb {
  background: var(--border-light);
  border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
  background: var(--gold);
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--border-light) var(--bg-2);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: var(--gold);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--gold-light);
}

ul, ol {
  list-style: none;
}

button {
  cursor: pointer;
  border: none;
  background: none;
  font-family: inherit;
}

input, textarea, select {
  font-family: inherit;
}

::selection {
  background: var(--gold);
  color: #000;
}

/* =============================================================================
   3. TYPOGRAPHY
   ============================================================================= */

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  letter-spacing: -0.02em;
}

h1 { font-size: var(--text-5xl); }
h2 { font-size: var(--text-4xl); }
h3 { font-size: var(--text-3xl); }
h4 { font-size: var(--text-2xl); }
h5 { font-size: var(--text-xl); }
h6 { font-size: var(--text-lg); }

p {
  color: var(--text-muted);
  line-height: 1.75;
}

.text-gold    { color: var(--gold) !important; }
.text-green   { color: var(--green) !important; }
.text-red     { color: var(--red) !important; }
.text-muted   { color: var(--text-muted) !important; }
.text-white   { color: var(--text) !important; }

.text-xs   { font-size: var(--text-xs); }
.text-sm   { font-size: var(--text-sm); }
.text-base { font-size: var(--text-base); }
.text-lg   { font-size: var(--text-lg); }
.text-xl   { font-size: var(--text-xl); }
.text-2xl  { font-size: var(--text-2xl); }

.font-400 { font-weight: 400; }
.font-500 { font-weight: 500; }
.font-600 { font-weight: 600; }
.font-700 { font-weight: 700; }
.font-800 { font-weight: 800; }

/* Lead text */
.lead {
  font-size: var(--text-xl);
  font-weight: 400;
  color: var(--text-muted);
  line-height: 1.8;
}

/* Eyebrow badge label */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold);
  background: rgba(240, 165, 0, 0.10);
  border: 1px solid var(--border-gold);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
}

.eyebrow-badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold);
  background: rgba(240, 165, 0, 0.08);
  border: 1px solid var(--border-gold);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  margin-bottom: var(--space-6);
}

.eyebrow-badge .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--gold);
  display: inline-block;
  animation: pulse-gold 2s infinite;
}

/* Gold highlight in headings */
.highlight-gold {
  background: var(--gradient-gold);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* =============================================================================
   4. LAYOUT UTILITIES
   ============================================================================= */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-sm {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.container-xs {
  max-width: 560px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

/* Grid helpers */
.grid { display: grid; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--space-6); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-6); }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-6); }

/* Flex helpers */
.flex         { display: flex; }
.flex-col     { display: flex; flex-direction: column; }
.flex-center  { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.flex-start   { display: flex; align-items: center; justify-content: flex-start; }
.flex-end     { display: flex; align-items: center; justify-content: flex-end; }
.flex-wrap    { flex-wrap: wrap; }
.items-center { align-items: center; }
.items-start  { align-items: flex-start; }
.gap-1  { gap: var(--space-1); }
.gap-2  { gap: var(--space-2); }
.gap-3  { gap: var(--space-3); }
.gap-4  { gap: var(--space-4); }
.gap-6  { gap: var(--space-6); }
.gap-8  { gap: var(--space-8); }

/* Spacing helpers */
.mt-2  { margin-top: var(--space-2); }
.mt-4  { margin-top: var(--space-4); }
.mt-6  { margin-top: var(--space-6); }
.mt-8  { margin-top: var(--space-8); }
.mt-12 { margin-top: var(--space-12); }
.mb-2  { margin-bottom: var(--space-2); }
.mb-4  { margin-bottom: var(--space-4); }
.mb-6  { margin-bottom: var(--space-6); }
.mb-8  { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.p-4   { padding: var(--space-4); }
.p-6   { padding: var(--space-6); }
.p-8   { padding: var(--space-8); }
.py-4  { padding-top: var(--space-4); padding-bottom: var(--space-4); }
.py-8  { padding-top: var(--space-8); padding-bottom: var(--space-8); }
.py-16 { padding-top: var(--space-16); padding-bottom: var(--space-16); }
.py-20 { padding-top: var(--space-20); padding-bottom: var(--space-20); }
.px-4  { padding-left: var(--space-4); padding-right: var(--space-4); }
.px-6  { padding-left: var(--space-6); padding-right: var(--space-6); }

/* Text alignment */
.text-left   { text-align: left; }
.text-center { text-align: center; }
.text-right  { text-align: right; }

/* Display helpers */
.block        { display: block; }
.hidden       { display: none; }
.w-full       { width: 100%; }
.relative     { position: relative; }
.overflow-h   { overflow: hidden; }

/* Divider */
.divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-8) 0;
}

/* =============================================================================
   5. BUTTONS
   ============================================================================= */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.75rem 1.5rem;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: var(--text-sm);
}

.btn-lg {
  padding: 1rem 2rem;
  font-size: var(--text-base);
}

/* Gold primary button */
.btn-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 2rem;
  font-size: var(--text-sm);
  font-weight: 700;
  font-family: var(--font-sans);
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  background: var(--gradient-gold);
  color: #0a0f1e;
  box-shadow: 0 4px 20px rgba(240,165,0,0.30);
}

.btn-gold::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.15) 0%, transparent 60%);
  opacity: 0;
  transition: var(--transition);
  pointer-events: none;
}

.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(240,165,0,0.45);
  color: #0a0f1e;
}

.btn-gold:hover::before {
  opacity: 1;
}

.btn-gold:active {
  transform: translateY(0);
}

/* Outline gold button */
.btn-outline-gold {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 2rem;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius);
  border: 1.5px solid var(--border-gold);
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  background: transparent;
  color: var(--gold);
}

.btn-outline-gold:hover {
  background: var(--gradient-gold);
  color: #0a0f1e;
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(240,165,0,0.30);
  transform: translateY(-2px);
}

/* Dark button */
.btn-dark {
  background: var(--bg-2);
  color: var(--text);
  border-color: var(--border);
}

.btn-dark:hover {
  background: var(--bg-3);
  border-color: var(--border-light);
  transform: translateY(-2px);
  color: var(--text);
}

/* Ghost button */
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
  border-color: transparent;
}

.btn-ghost:hover {
  background: rgba(255,255,255,0.05);
  color: var(--text);
}

/* Telegram button */
.btn-telegram {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 0.875rem 2rem;
  font-size: var(--text-sm);
  font-weight: 600;
  font-family: var(--font-sans);
  border-radius: var(--radius);
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
  line-height: 1;
  letter-spacing: 0.01em;
  position: relative;
  overflow: hidden;
  background: var(--gradient-tg);
  color: #fff;
  box-shadow: 0 4px 20px rgba(34,158,217,0.30);
}

.btn-telegram:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 32px rgba(34,158,217,0.45);
  color: #fff;
}

/* Success / Green button */
.btn-success {
  background: linear-gradient(135deg, #16a34a 0%, #22c55e 100%);
  color: #fff;
  border-color: transparent;
}

.btn-success:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(34,197,94,0.30);
  color: #fff;
}

/* Danger button */
.btn-danger {
  background: linear-gradient(135deg, #dc2626 0%, #ef4444 100%);
  color: #fff;
  border-color: transparent;
}

.btn-danger:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(239,68,68,0.30);
  color: #fff;
}

/* Size modifiers — must come after all button variants to override padding */
.btn-gold.btn-sm,
.btn-outline-gold.btn-sm,
.btn-telegram.btn-sm,
.btn-dark.btn-sm,
.btn-ghost.btn-sm {
  padding: 0.5rem 1.125rem;
  font-size: 0.8125rem;
}

.btn-gold.btn-lg,
.btn-outline-gold.btn-lg,
.btn-telegram.btn-lg,
.btn-dark.btn-lg {
  padding: 1rem 2.25rem;
  font-size: var(--text-base);
}

/* Icon button */
.btn-icon {
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: var(--radius);
  flex-shrink: 0;
}

/* =============================================================================
   6. NAVIGATION
   ============================================================================= */

.academy-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: var(--z-nav);
  height: var(--nav-height);
  background: rgba(10, 15, 30, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition-slow);
}

.academy-nav.scrolled {
  background: rgba(10, 15, 30, 0.97);
  border-bottom-color: var(--border-gold);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 var(--space-6);
  gap: var(--space-8);
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  flex-shrink: 0;
}

.nav-logo-icon {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
}

.nav-logo-text {
  font-size: var(--text-lg);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--gold);
  line-height: 1;
}

.nav-logo-text span {
  color: var(--text);
  font-weight: 500;
}

/* Nav links */
.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  flex: 1;
  justify-content: center;
}

.nav-links a {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius);
  text-decoration: none;
  position: relative;
  transition: var(--transition);
}

.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: var(--space-4);
  right: var(--space-4);
  height: 2px;
  background: var(--gold);
  border-radius: var(--radius-full);
  transform: scaleX(0);
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  transform: scaleX(1);
}

/* Nav actions */
.nav-actions {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  flex-shrink: 0;
}

/* Hamburger */
.nav-hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 40px;
  height: 40px;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px;
  transition: var(--transition);
}

.nav-hamburger:hover {
  border-color: var(--gold);
}

.nav-hamburger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: var(--transition);
}

.nav-hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.nav-hamburger.open span:nth-child(2) {
  opacity: 0;
}

.nav-hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu overlay */
.nav-mobile-overlay {
  display: none;
  position: fixed;
  top: var(--nav-height);
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(10, 15, 30, 0.98);
  z-index: calc(var(--z-nav) - 1);
  flex-direction: column;
  padding: var(--space-8) var(--space-6);
  gap: var(--space-2);
  overflow-y: auto;
  animation: fadeInDown 0.25s ease;
}

.nav-mobile-overlay.open {
  display: flex;
}

.nav-mobile-overlay a {
  font-size: var(--text-lg);
  font-weight: 600;
  color: var(--text-muted);
  padding: var(--space-4);
  border-radius: var(--radius);
  border-bottom: 1px solid var(--border);
  text-decoration: none;
  transition: var(--transition);
}

.nav-mobile-overlay a:hover {
  color: var(--gold);
  background: rgba(240,165,0,0.05);
}

.nav-mobile-overlay .nav-mobile-actions {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-top: var(--space-6);
}

.nav-mobile-overlay .nav-mobile-actions .btn {
  width: 100%;
  justify-content: center;
}

/* =============================================================================
   7. HERO SECTION
   ============================================================================= */

.academy-hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding-top: calc(var(--nav-height) + var(--space-16));
  padding-bottom: var(--space-20);
  background: var(--gradient-hero);
  overflow: hidden;
  text-align: center;
}

/* Compact hero for interior pages. The full-height hero centres its content in
   a viewport fraction, which leaves dead space between the CTA and whatever
   section follows. Here the height is driven by the content itself. */
.academy-hero.hero-page {
  min-height: 0;
  padding-top: calc(var(--nav-height) + var(--space-12));
  padding-bottom: var(--space-8);
}

/* Hero children carry bottom margins sized for the home hero, which stacks more
   content underneath. Whatever ends up last here — CTA group, or the copy alone
   when there's no CTA — shouldn't leave a trailing gap. */
.academy-hero.hero-page .hero-content > *:last-child {
  margin-bottom: 0;
}

/* The following section supplies its own generous top padding; trim it so the
   two paddings don't stack into a large void. */
.academy-hero.hero-page + .academy-section {
  padding-top: var(--space-8);
}

@media (max-width: 768px) {
  .academy-hero.hero-page {
    padding-top: calc(var(--nav-height) + var(--space-8));
    padding-bottom: var(--space-6);
  }
  .academy-hero.hero-page + .academy-section {
    padding-top: var(--space-6);
  }
}

/* Animated candlestick background elements */
.hero-bg-candles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.hero-candle {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  opacity: 0.06;
  animation: float var(--duration, 6s) ease-in-out infinite;
  animation-delay: var(--delay, 0s);
}

.hero-candle .wick {
  width: 2px;
  height: var(--wick-h, 20px);
  background: var(--c, var(--green));
  border-radius: 1px;
}

.hero-candle .body {
  width: var(--w, 14px);
  height: var(--h, 40px);
  background: var(--c, var(--green));
  border-radius: 2px;
}

.hero-candle .wick-bottom {
  width: 2px;
  height: var(--wick-b, 15px);
  background: var(--c, var(--green));
  border-radius: 1px;
}

/* Radial glow in hero */
.hero-glow {
  position: absolute;
  width: 800px;
  height: 800px;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: radial-gradient(circle, rgba(240,165,0,0.07) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Grid overlay */
.hero-grid-overlay {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 41, 59, 0.3) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 41, 59, 0.3) 1px, transparent 1px);
  background-size: 48px 48px;
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: var(--z-above);
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, var(--text-7xl));
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: var(--space-6);
}

.hero-description {
  font-size: var(--text-xl);
  color: var(--text-muted);
  max-width: 620px;
  margin: 0 auto var(--space-10);
  line-height: 1.75;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  margin-bottom: var(--space-16);
}

/* Trust indicators row */
.hero-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-top: var(--space-8);
}

.hero-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.hero-trust-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

/* Hero video wrapper */
.hero-video-wrapper {
  position: relative;
  z-index: var(--z-above);
  width: 100%;
  max-width: 860px;
  margin: 0 auto;
  padding: 0 var(--space-6);
}

.hero-video-container {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-gold);
  box-shadow: var(--shadow-gold-lg), inset 0 1px 0 rgba(255,255,255,0.05);
  background: var(--bg-2);
}

.hero-video-container iframe,
.hero-video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Video placeholder */
.video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  background: var(--bg-2);
  color: var(--text-muted);
  font-size: var(--text-sm);
}

.video-placeholder .play-btn {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: var(--shadow-gold);
}

.video-placeholder .play-btn:hover {
  transform: scale(1.1);
  box-shadow: var(--shadow-gold-lg);
}

/* =============================================================================
   8. SECTION STYLES
   ============================================================================= */

.academy-section {
  padding: var(--space-24) 0;
  position: relative;
}

.academy-section-sm {
  padding: var(--space-16) 0;
}

.academy-section.bg-alt {
  background: var(--bg-2);
}

.academy-section.bg-dark-3 {
  background: var(--bg-4);
}

.section-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto var(--space-16);
}

.section-header h2 {
  margin-bottom: var(--space-4);
}

.section-header p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  line-height: 1.75;
}

/* Section divider line */
.section-divider {
  width: 60px;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
  margin: var(--space-6) auto 0;
}

/* =============================================================================
   9. FEATURE CARDS
   ============================================================================= */

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-6);
}

.feature-card {
  background: var(--gradient-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: var(--transition-slow);
  position: relative;
  overflow: hidden;
}

.feature-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: var(--transition);
}

.feature-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.feature-card:hover::before {
  opacity: 1;
}

.feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(240, 165, 0, 0.10);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-5);
  color: var(--gold);
  transition: var(--transition);
  flex-shrink: 0;
}

.feature-card:hover .feature-icon {
  background: rgba(240, 165, 0, 0.18);
  box-shadow: 0 0 20px rgba(240,165,0,0.20);
}

.feature-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-3);
  color: var(--text);
}

.feature-card p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
}

/* =============================================================================
   10. COURSE CARDS
   ============================================================================= */

.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}

.course-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition-slow);
  display: flex;
  flex-direction: column;
}

.course-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
}

.course-card-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: var(--bg-3);
  overflow: hidden;
}

.course-card-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition-slow);
}

.course-card:hover .course-card-thumb img {
  transform: scale(1.05);
}

/* Locked overlay */
.course-card.locked .course-card-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(10, 15, 30, 0.7);
  backdrop-filter: blur(2px);
}

.course-lock-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  z-index: 2;
  color: var(--gold);
}

.course-lock-overlay svg {
  filter: drop-shadow(0 0 12px rgba(240,165,0,0.5));
}

.course-lock-overlay span {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--gold);
}

.course-badge {
  position: absolute;
  top: var(--space-3);
  left: var(--space-3);
  z-index: 3;
  background: var(--gradient-gold);
  color: #0a0f1e;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.course-card-body {
  padding: var(--space-5);
  flex: 1;
  display: flex;
  flex-direction: column;
}

.course-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-3);
}

.course-level {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  background: rgba(240,165,0,0.10);
  padding: 2px 8px;
  border-radius: var(--radius-full);
}

.course-lessons-count {
  font-size: var(--text-xs);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
}

.course-card-body h3 {
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-2);
  line-height: 1.3;
}

.course-card-body p {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: var(--space-5);
  flex: 1;
}

.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-4);
  border-top: 1px solid var(--border);
}

.course-price {
  font-size: var(--text-xl);
  font-weight: 800;
  color: var(--gold);
}

.course-price.free {
  color: var(--green);
}

/* =============================================================================
   11. LESSON CARDS
   ============================================================================= */

.lessons-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.lesson-card {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4) var(--space-5);
  transition: var(--transition);
  cursor: pointer;
}

.lesson-card:hover {
  border-color: var(--border-gold);
  background: var(--bg-3);
}

.lesson-number {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(240,165,0,0.10);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gold);
  flex-shrink: 0;
}

.lesson-card.completed .lesson-number {
  background: rgba(34,197,94,0.15);
  border-color: rgba(34,197,94,0.4);
  color: var(--green);
}

.lesson-card.locked .lesson-number {
  background: rgba(255,255,255,0.04);
  border-color: var(--border);
  color: var(--text-dim);
}

.lesson-info {
  flex: 1;
}

.lesson-title {
  font-size: var(--text-base);
  font-weight: 600;
  color: var(--text);
  margin-bottom: 2px;
  line-height: 1.3;
}

.lesson-card.locked .lesson-title {
  color: var(--text-dim);
}

.lesson-subtitle {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.lesson-duration {
  font-size: var(--text-sm);
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.lesson-lock-icon {
  color: var(--text-dim);
  flex-shrink: 0;
}

/* =============================================================================
   12. PRICING CARDS
   ============================================================================= */

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-6);
  align-items: start;
}

.pricing-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  position: relative;
  transition: var(--transition-slow);
}

.pricing-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-4px);
}

.pricing-card.featured {
  border-color: var(--gold);
  border-width: 1px;
  box-shadow: var(--shadow-gold-lg);
  background: linear-gradient(145deg, #111827 0%, #1c2640 100%);
}

.pricing-card.featured::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-gold);
  border-radius: var(--radius-xl) var(--radius-xl) 0 0;
}

.pricing-popular-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient-gold);
  color: #0a0f1e;
  font-size: var(--text-xs);
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 16px;
  border-radius: var(--radius-full);
  white-space: nowrap;
}

.pricing-plan-name {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: var(--space-3);
}

.pricing-card.featured .pricing-plan-name {
  color: var(--gold);
}

.pricing-price {
  display: flex;
  align-items: flex-end;
  gap: var(--space-1);
  margin-bottom: var(--space-4);
}

.pricing-currency {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 6px;
}

.pricing-amount {
  font-size: var(--text-6xl);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  letter-spacing: -0.04em;
}

.pricing-period {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-bottom: 8px;
}

.pricing-description {
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  line-height: 1.65;
}

.pricing-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  border-top: 1px solid var(--border);
  padding-top: var(--space-6);
}

.pricing-feature-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.pricing-feature-item.included {
  color: var(--text);
}

.pricing-feature-item .check-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(34,197,94,0.15);
  border: 1px solid rgba(34,197,94,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--green);
  margin-top: 1px;
}

.pricing-feature-item .x-icon {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--text-dim);
  margin-top: 1px;
}

/* =============================================================================
   13. TESTIMONIAL CARDS
   ============================================================================= */

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: var(--transition-slow);
  position: relative;
}

.testimonial-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.testimonial-stars {
  display: flex;
  gap: 3px;
  margin-bottom: var(--space-4);
  color: var(--gold);
}

.testimonial-quote {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-6);
  font-style: italic;
  position: relative;
}

.testimonial-quote::before {
  content: '\201C';
  font-size: 3rem;
  color: var(--gold);
  opacity: 0.3;
  position: absolute;
  top: -10px;
  left: -8px;
  line-height: 1;
  font-family: Georgia, serif;
}

.testimonial-author {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.testimonial-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-gold);
}

.testimonial-avatar-placeholder {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: var(--text-sm);
  color: #0a0f1e;
  flex-shrink: 0;
}

.testimonial-name {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
}

.testimonial-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* =============================================================================
   14. STATS BAR
   ============================================================================= */

.stats-bar {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: var(--space-8) 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-4);
  text-align: center;
}

.stat-item {
  padding: var(--space-4);
  position: relative;
}

.stat-item + .stat-item::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  height: 40px;
  width: 1px;
  background: var(--border);
}

.stat-number {
  font-size: var(--text-4xl);
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.04em;
  line-height: 1;
  margin-bottom: var(--space-2);
}

.stat-number .suffix {
  font-size: var(--text-2xl);
}

.stat-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

/* =============================================================================
   15. TELEGRAM CTA BANNER
   ============================================================================= */

.telegram-cta {
  background: linear-gradient(135deg, #0d2137 0%, #1a4d6e 50%, #0d2137 100%);
  border: 1px solid rgba(34, 158, 217, 0.25);
  border-radius: var(--radius-xl);
  padding: var(--space-12) var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.telegram-cta::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-tg);
}

.telegram-cta-icon {
  width: 64px;
  height: 64px;
  background: var(--gradient-tg);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  box-shadow: 0 0 30px rgba(34,158,217,0.30);
}

.telegram-cta h3 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.telegram-cta p {
  font-size: var(--text-lg);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

/* Sticky Telegram floating button */
.telegram-float-btn {
  position: fixed;
  bottom: var(--space-6);
  right: var(--space-6);
  z-index: var(--z-sticky);
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient-tg);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(34,158,217,0.40), 0 8px 32px rgba(0,0,0,0.4);
  transition: var(--transition);
  text-decoration: none;
}

.telegram-float-btn:hover {
  transform: scale(1.1) translateY(-2px);
  box-shadow: 0 8px 32px rgba(34,158,217,0.55), 0 12px 40px rgba(0,0,0,0.5);
}

.telegram-float-btn svg {
  color: #fff;
}

/* =============================================================================
   16. FOOTER
   ============================================================================= */

.academy-footer {
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  padding-top: var(--space-16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-12);
  padding-bottom: var(--space-12);
  border-bottom: 1px solid var(--border);
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  margin-bottom: var(--space-4);
}

.footer-logo-text {
  font-size: var(--text-lg);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.footer-logo-text span {
  color: var(--text);
  font-weight: 500;
}

.footer-tagline {
  font-size: var(--text-sm);
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}

.footer-social {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

.footer-social a {
  width: 38px;
  height: 38px;
  border-radius: var(--radius);
  background: var(--bg-3);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: var(--transition);
}

.footer-social a:hover {
  background: rgba(240,165,0,0.10);
  border-color: var(--border-gold);
  color: var(--gold);
}

.footer-col h4 {
  font-size: var(--text-sm);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text);
  margin-bottom: var(--space-5);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.footer-col ul li a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--gold);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-contact-item svg {
  color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-6) 0;
  gap: var(--space-4);
  flex-wrap: wrap;
}

.footer-copyright {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.footer-legal-links {
  display: flex;
  gap: var(--space-6);
  flex-wrap: wrap;
}

.footer-legal-links a {
  font-size: var(--text-sm);
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.footer-legal-links a:hover {
  color: var(--gold);
}

/* =============================================================================
   17. DASHBOARD LAYOUT
   ============================================================================= */

.dash-layout {
  display: flex;
  min-height: 100vh;
  background: var(--bg);
}

/* Sidebar */
.dash-sidebar {
  width: var(--sidebar-width);
  min-height: 100vh;
  background: var(--bg-2);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  left: 0;
  bottom: 0;
  z-index: var(--z-nav);
  transition: var(--transition-slow);
  overflow-y: auto;
  overflow-x: hidden;
}

.dash-sidebar::-webkit-scrollbar { width: 3px; }

.sidebar-logo {
  padding: var(--space-5) var(--space-5);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  min-height: var(--nav-height);
  text-decoration: none;
  flex-shrink: 0;
}

.sidebar-logo-icon { flex-shrink: 0; }

.sidebar-logo-text {
  font-size: var(--text-base);
  font-weight: 800;
  color: var(--gold);
  line-height: 1.1;
  white-space: nowrap;
}

.sidebar-logo-text span {
  display: block;
  font-size: var(--text-xs);
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.05em;
}

/* Sidebar nav */
.sidebar-nav {
  flex: 1;
  padding: var(--space-4) var(--space-3);
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.sidebar-section-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--text-dim);
  padding: var(--space-3) var(--space-3) var(--space-1);
  margin-top: var(--space-3);
}

.sidebar-nav-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: 10px var(--space-3);
  border-radius: var(--radius);
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
  white-space: nowrap;
}

.sidebar-nav-item:hover {
  background: rgba(255,255,255,0.04);
  color: var(--text);
}

.sidebar-nav-item.active {
  background: rgba(240,165,0,0.10);
  color: var(--gold);
  border: 1px solid rgba(240,165,0,0.15);
}

.sidebar-nav-item svg {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

.sidebar-nav-item.logout {
  color: var(--red);
}

.sidebar-nav-item.logout:hover {
  background: rgba(239,68,68,0.10);
  color: var(--red);
}

/* Admin section in sidebar */
.sidebar-admin-section {
  border-top: 1px solid var(--border);
  padding-top: var(--space-2);
}

/* Sidebar footer */
.sidebar-footer {
  padding: var(--space-4) var(--space-3);
  border-top: 1px solid var(--border);
  flex-shrink: 0;
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3);
  border-radius: var(--radius);
  transition: var(--transition);
  cursor: pointer;
}

.sidebar-user:hover {
  background: rgba(255,255,255,0.04);
}

.sidebar-user-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-gold);
  flex-shrink: 0;
}

.sidebar-user-info {
  flex: 1;
  overflow: hidden;
}

.sidebar-user-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.sidebar-user-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
}

/* Main dashboard area */
.dash-main {
  margin-left: var(--sidebar-width);
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}

/* Topbar */
.dash-topbar {
  position: sticky;
  top: 0;
  z-index: calc(var(--z-nav) - 1);
  height: var(--nav-height);
  background: rgba(10, 15, 30, 0.90);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 var(--space-8);
  gap: var(--space-4);
}

.topbar-left {
  display: flex;
  align-items: center;
  gap: var(--space-4);
}

.topbar-hamburger {
  display: none;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

.topbar-hamburger:hover {
  border-color: var(--gold);
  color: var(--gold);
}

.topbar-page-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  letter-spacing: -0.01em;
}

.topbar-right {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.topbar-user {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  cursor: pointer;
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  transition: var(--transition);
  text-decoration: none;
}

.topbar-user:hover {
  border-color: var(--border-gold);
  background: rgba(240,165,0,0.05);
}

.topbar-user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid var(--border-gold);
  flex-shrink: 0;
}

.topbar-user-name {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  white-space: nowrap;
}

/* Public nav + dashboard topbar — currency picker */
.nav-fx,
.topbar-fx {
  position: relative;
}

.nav-fx-btn,
.topbar-fx-btn {
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  font-family: inherit;
  font-size: var(--text-xs);
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 0.5rem 0.75rem;
  cursor: pointer;
  transition: var(--transition);
  line-height: 1;
  height: 34px;
  display: inline-flex;
  align-items: center;
}

.nav-fx-btn:hover,
.nav-fx-btn[aria-expanded="true"],
.topbar-fx-btn:hover,
.topbar-fx-btn[aria-expanded="true"] {
  border-color: var(--border-gold);
  color: var(--gold);
  background: rgba(240, 165, 0, 0.06);
}

.nav-fx-menu,
.topbar-fx-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.nav-fx-menu.open,
.topbar-fx-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.nav-fx-item,
.topbar-fx-item {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: var(--transition);
}

.nav-fx-item:hover,
.topbar-fx-item:hover {
  background: rgba(240, 165, 0, 0.08);
  color: var(--gold);
}

.nav-fx-item.is-active,
.topbar-fx-item.is-active {
  background: rgba(240, 165, 0, 0.12);
  color: var(--gold);
}

.nav-fx-code,
.topbar-fx-code {
  font-weight: 700;
  font-size: var(--text-xs);
  letter-spacing: 0.05em;
}

.nav-fx-name,
.topbar-fx-name {
  color: var(--text-muted);
  font-size: var(--text-xs);
}

.nav-fx-item:hover .nav-fx-name,
.nav-fx-item.is-active .nav-fx-name,
.topbar-fx-item:hover .topbar-fx-name,
.topbar-fx-item.is-active .topbar-fx-name {
  color: var(--text);
}

.nav-fx-sym,
.topbar-fx-sym {
  color: var(--text-muted);
  font-weight: 600;
  font-size: var(--text-sm);
}

/* Topbar notification bell */
.topbar-notif-wrap {
  position: relative;
}

.topbar-notif-btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-size: 16px;
  position: relative;
  padding: 0;
}

.topbar-notif-btn:hover,
.topbar-notif-btn[aria-expanded="true"] {
  border-color: var(--border-gold);
  color: var(--gold);
  background: rgba(240, 165, 0, 0.06);
}

.topbar-notif-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 9999px;
  background: var(--red);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid var(--bg);
  line-height: 1;
}

.topbar-notif-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 340px;
  max-width: calc(100vw - 2rem);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
  overflow: hidden;
}

.topbar-notif-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.topbar-notif-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
}

.topbar-notif-markall {
  background: transparent;
  border: none;
  color: var(--gold);
  font-size: var(--text-xs);
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  font-family: inherit;
}

.topbar-notif-markall:hover {
  text-decoration: underline;
}

.topbar-notif-empty {
  padding: var(--space-6) var(--space-4);
  text-align: center;
  color: var(--text-muted);
  font-size: var(--text-sm);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  align-items: center;
}

.topbar-notif-empty i {
  font-size: 24px;
  color: var(--text-dim);
}

.topbar-notif-list {
  max-height: 360px;
  overflow-y: auto;
}

.topbar-notif-item {
  display: flex;
  gap: var(--space-3);
  align-items: flex-start;
  padding: var(--space-3) var(--space-4);
  border-bottom: 1px solid var(--border);
  color: var(--text);
  text-decoration: none;
  transition: background 0.15s ease;
}

.topbar-notif-item:last-child {
  border-bottom: none;
}

.topbar-notif-item:hover {
  background: rgba(240, 165, 0, 0.05);
}

.topbar-notif-item.is-unread {
  background: rgba(240, 165, 0, 0.035);
}

.topbar-notif-icon {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(240, 165, 0, 0.10);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.topbar-notif-body {
  flex: 1;
  min-width: 0;
}

.topbar-notif-title {
  font-size: var(--text-sm);
  font-weight: 500;
  color: var(--text);
  line-height: 1.4;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.topbar-notif-item.is-unread .topbar-notif-title {
  font-weight: 700;
}

.topbar-notif-time {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.topbar-notif-footer {
  display: block;
  padding: var(--space-3) var(--space-4);
  text-align: center;
  border-top: 1px solid var(--border);
  color: var(--gold);
  text-decoration: none;
  font-size: var(--text-xs);
  font-weight: 600;
  transition: background 0.15s ease;
}

.topbar-notif-footer:hover {
  background: rgba(240, 165, 0, 0.06);
}

/* Topbar user dropdown menu */
.topbar-user-wrap {
  position: relative;
}

button.topbar-user {
  background: transparent;
  font: inherit;
  color: inherit;
}

.topbar-user[aria-expanded="true"] {
  border-color: var(--border-gold);
  background: rgba(240, 165, 0, 0.06);
}

.topbar-user-caret {
  font-size: 12px;
  color: var(--text-muted);
  transition: transform 0.18s ease, color 0.18s ease;
}

.topbar-user[aria-expanded="true"] .topbar-user-caret {
  transform: rotate(180deg);
  color: var(--gold);
}

.topbar-user-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 240px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

.topbar-user-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.topbar-user-menu-header {
  padding: var(--space-2) var(--space-3) var(--space-3);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-2);
}

.topbar-user-menu-name {
  font-weight: 600;
  color: var(--text);
  font-size: var(--text-sm);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.topbar-user-menu-role {
  font-size: var(--text-xs);
  color: var(--text-muted);
  margin-top: 2px;
}

.topbar-user-menu-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-size: var(--text-sm);
  transition: var(--transition);
}

.topbar-user-menu-item i {
  width: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 14px;
}

.topbar-user-menu-item:hover {
  background: rgba(240, 165, 0, 0.08);
  color: var(--gold);
}

.topbar-user-menu-item:hover i {
  color: var(--gold);
}

.topbar-user-menu-highlight {
  background: rgba(240, 165, 0, 0.08);
  border: 1px solid rgba(240, 165, 0, 0.25);
  color: var(--gold);
  margin-bottom: var(--space-2);
}

.topbar-user-menu-highlight i {
  color: var(--gold);
}

.topbar-user-menu-danger:hover {
  background: rgba(239, 68, 68, 0.10);
  color: var(--red);
}

.topbar-user-menu-danger:hover i {
  color: var(--red);
}

.topbar-user-menu-sep {
  height: 1px;
  background: var(--border);
  margin: var(--space-2) var(--space-1);
}

@media (max-width: 480px) {
  .topbar-user-name { display: none; }
  .topbar-user-menu { min-width: 220px; }
}

/* =============================================================================
   Admin page header — <div class="dash-page-header">
                         <div><h1 class="dash-page-title">...</h1>
                              <p class="dash-page-subtitle">...</p></div>
                         ...
                       </div>
   ============================================================================= */
.dash-page-header {
  margin-bottom: var(--space-6);
}

.dash-page-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.dash-page-subtitle {
  color: var(--text-muted);
  font-size: var(--text-sm);
  margin-top: var(--space-2);
  line-height: 1.5;
}

/* =============================================================================
   Settings tabs — used on academy_settings.php
   Tabs sit directly above a .dash-card; active tab visually merges into it.
   ============================================================================= */
.settings-tabs {
  display: flex;
  gap: var(--space-1);
  flex-wrap: wrap;
  margin-bottom: -1px;
  position: relative;
  z-index: 1;
}

.settings-tab-btn {
  padding: var(--space-3) var(--space-5);
  font-family: inherit;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  background: transparent;
  border: 1px solid var(--border);
  border-bottom: none;
  border-radius: var(--radius) var(--radius) 0 0;
  cursor: pointer;
  transition: var(--transition);
}

.settings-tab-btn:hover {
  color: var(--gold-light);
  background: rgba(240, 165, 0, 0.05);
}

.settings-tab-btn.active {
  color: var(--gold);
  background: var(--bg-2);
  border-top: 2px solid var(--gold);
  padding-top: calc(var(--space-3) - 1px);
}

/* The card below the tabs — cancel its top-left radius so the active
   tab appears to extend into it. */
.settings-tabs + .dash-card,
.settings-tabs + form .dash-card:first-of-type,
.dash-card.settings-tab-panel {
  border-top-left-radius: 0;
}

/* Suppress the top gold-gradient accent strip that .dash-card renders
   on hover — on settings panels the tabs already own that accent and
   the strip bleeds through the transparent inactive tabs as a stray
   underline. */
.dash-card.settings-tab-panel::before {
  content: none;
}

/* =============================================================================
   Row actions — shared kebab dropdown for admin tables
   Replaces per-row button clusters (Edit / Delete / Password / etc.)
   Usage:
     <div class="row-actions">
       <button type="button" class="row-actions-toggle" aria-haspopup="true" aria-expanded="false">
         <i class="fa-solid fa-ellipsis-vertical"></i>
       </button>
       <div class="row-actions-menu" role="menu">
         <a class="row-actions-item" href="..." role="menuitem">
           <i class="fa-solid fa-pen"></i> Edit
         </a>
         <a class="row-actions-item row-actions-danger" href="..."
            onclick="return confirm('Delete?')" role="menuitem">
           <i class="fa-solid fa-trash"></i> Delete
         </a>
       </div>
     </div>
   ============================================================================= */
.row-actions {
  position: relative;
  display: inline-block;
}

.row-actions-toggle {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text-muted);
  cursor: pointer;
  transition: var(--transition);
  font-size: 15px;
  padding: 0;
}

.row-actions-toggle:hover,
.row-actions-toggle[aria-expanded="true"] {
  border-color: var(--border-gold);
  color: var(--gold);
  background: rgba(240, 165, 0, 0.06);
}

.row-actions-menu {
  position: absolute;
  min-width: 180px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: var(--space-2);
  z-index: var(--z-dropdown);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-4px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s;
}

/* JS toggles .open on the menu itself — it gets moved into document.body
   on open to escape transformed ancestors (e.g. .dash-card:hover). */
.row-actions-menu.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.row-actions-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  font-size: var(--text-sm);
  font-weight: 500;
  white-space: nowrap;
  transition: var(--transition);
  cursor: pointer;
}

.row-actions-item i {
  width: 16px;
  text-align: center;
  color: var(--text-muted);
  font-size: 13px;
}

.row-actions-item:hover {
  background: rgba(240, 165, 0, 0.08);
  color: var(--gold);
}

.row-actions-item:hover i {
  color: var(--gold);
}

.row-actions-danger:hover {
  background: rgba(239, 68, 68, 0.10);
  color: var(--red);
}

.row-actions-danger:hover i {
  color: var(--red);
}

.row-actions-sep {
  height: 1px;
  background: var(--border);
  margin: var(--space-2) var(--space-1);
}

/* Dashboard content area */
.dash-content {
  flex: 1;
  padding: var(--space-8);
  min-width: 0;
}

/* Sidebar overlay for mobile */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  z-index: calc(var(--z-nav) - 1);
  backdrop-filter: blur(2px);
}

.sidebar-overlay.visible {
  display: block;
}

/* =============================================================================
   18. DASHBOARD CARDS
   ============================================================================= */

.dash-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: var(--space-5);
  margin-bottom: var(--space-8);
}

.dash-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}

.dash-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-gold);
  opacity: 0;
  transition: var(--transition);
}

.dash-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.dash-card:hover::before {
  opacity: 1;
}

.dash-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: var(--space-4);
}

.dash-card-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: rgba(240,165,0,0.10);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--gold);
}

.dash-card-value {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text);
  letter-spacing: -0.03em;
  margin-bottom: var(--space-1);
}

.dash-card-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
  font-weight: 500;
}

.dash-card-change {
  font-size: var(--text-xs);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 3px;
}

.dash-card-change.positive { color: var(--green); }
.dash-card-change.negative { color: var(--red); }

/* =============================================================================
   19. PROGRESS BAR
   ============================================================================= */

.progress-bar-gold {
  position: relative;
  width: 100%;
}

.progress-label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-2);
}

.progress-label {
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
}

.progress-percent {
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--gold);
}

.progress-track {
  width: 100%;
  height: 8px;
  background: var(--bg-3);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--gradient-gold);
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.progress-fill::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  animation: shimmer 2s infinite;
}

/* Progress bar variants */
.progress-track.thin { height: 4px; }
.progress-track.thick { height: 12px; }

.progress-fill.green { background: linear-gradient(90deg, #16a34a, #22c55e); }
.progress-fill.blue  { background: linear-gradient(90deg, #1d4ed8, #3b82f6); }

/* =============================================================================
   20. ADMIN LAYOUT (extends dashboard)
   ============================================================================= */

.dash-layout.admin-layout .dash-sidebar {
  background: #0a0f1e;
  border-right-color: var(--border);
}

.dash-layout.admin-layout .sidebar-nav-item.active {
  background: rgba(240,165,0,0.12);
  border-color: rgba(240,165,0,0.20);
}

.admin-badge {
  display: inline-flex;
  align-items: center;
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  background: var(--gradient-gold);
  color: #0a0f1e;
  padding: 2px 6px;
  border-radius: var(--radius-full);
  margin-left: auto;
}

/* =============================================================================
   21. FORM STYLES
   ============================================================================= */

.form-group {
  margin-bottom: var(--space-5);
}

.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
}

.form-row-2 > .form-group {
  margin-bottom: var(--space-5);
  min-width: 0;
}

@media (max-width: 640px) {
  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }
}

.form-label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.form-label .required {
  color: var(--red);
  margin-left: 3px;
}

.form-control-dark {
  width: 100%;
  padding: 0.75rem 1rem;
  background: var(--bg-3);
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  font-size: var(--text-base);
  font-family: var(--font-sans);
  transition: var(--transition);
  outline: none;
}

.form-control-dark:hover {
  border-color: var(--border-light);
}

.form-control-dark:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(240,165,0,0.15);
  background: var(--bg-2);
}

.form-control-dark::placeholder {
  color: var(--text-dim);
}

.form-control-dark:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

textarea.form-control-dark {
  min-height: 120px;
  resize: vertical;
}

select.form-control-dark {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 40px;
}

.form-hint {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--text-muted);
}

.form-error {
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--red);
  display: flex;
  align-items: center;
  gap: 4px;
}

/* Input with icon */
.input-group {
  position: relative;
}

.input-group .input-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  pointer-events: none;
}

.input-group .form-control-dark {
  padding-left: 40px;
}

.input-group .input-icon-right {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  cursor: pointer;
}

/* Checkbox & Radio */
.form-check {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  cursor: pointer;
}

.form-check input[type="checkbox"],
.form-check input[type="radio"] {
  width: 18px;
  height: 18px;
  accent-color: var(--gold);
  flex-shrink: 0;
  margin-top: 2px;
  cursor: pointer;
}

.form-check-label {
  font-size: var(--text-sm);
  color: var(--text-muted);
}

/* =============================================================================
   22. ALERT STYLES
   ============================================================================= */

.alert {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: var(--text-sm);
  line-height: 1.6;
}

.alert svg {
  flex-shrink: 0;
  margin-top: 1px;
  width: 18px;
  height: 18px;
}

.alert-gold {
  background: rgba(240,165,0,0.08);
  border-color: rgba(240,165,0,0.25);
  color: var(--gold-light);
}

.alert-gold svg { color: var(--gold); }

/* Color variants — each bundles the base .alert layout so callers
   can use a single class (e.g. class="alert-success-dark") without
   also needing to add .alert. */
.alert-success-dark,
.alert-danger-dark,
.alert-info-dark {
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  border: 1px solid transparent;
  border-radius: var(--radius);
  font-size: var(--text-sm);
  line-height: 1.6;
}

.alert-success-dark {
  background: rgba(34,197,94,0.08);
  border-color: rgba(34,197,94,0.25);
  color: #86efac;
}

.alert-success-dark svg { color: var(--green); }

.alert-danger-dark {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.25);
  color: #fca5a5;
}

.alert-danger-dark svg { color: var(--red); }

.alert-info-dark {
  background: rgba(59,130,246,0.08);
  border-color: rgba(59,130,246,0.25);
  color: #93c5fd;
}

/* =============================================================================
   23. TABLE STYLES
   ============================================================================= */

.table-wrapper {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
}

.table-dark-academy {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-sm);
}

.table-dark-academy thead tr {
  background: var(--bg-3);
  border-bottom: 1px solid var(--border-gold);
}

.table-dark-academy thead th {
  padding: var(--space-4) var(--space-5);
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--gold);
  text-align: left;
  white-space: nowrap;
}

.table-dark-academy tbody tr {
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.table-dark-academy tbody tr:last-child {
  border-bottom: none;
}

.table-dark-academy tbody tr:hover {
  background: rgba(255,255,255,0.02);
}

.table-dark-academy tbody tr:nth-child(even) {
  background: rgba(255,255,255,0.01);
}

.table-dark-academy tbody td {
  padding: var(--space-4) var(--space-5);
  color: var(--text-muted);
  vertical-align: middle;
}

.table-dark-academy tbody td strong {
  color: var(--text);
  font-weight: 600;
}

/* =============================================================================
   24. BADGE STYLES
   ============================================================================= */

/* Base badge styles are applied to every variant so markup like
   <span class="badge-gold"> works on its own without needing "badge" too. */
.badge,
.badge-gold,
.badge-premium,
.badge-locked,
.badge-unlocked,
.badge-new,
.badge-danger {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  font-size: var(--text-xs);
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.badge-gold {
  background: rgba(240,165,0,0.12);
  color: var(--gold);
  border: 1px solid rgba(240,165,0,0.25);
}

.badge-premium {
  background: var(--gradient-gold);
  color: #0a0f1e;
  box-shadow: 0 2px 8px rgba(240,165,0,0.30);
}

.badge-locked {
  background: rgba(255,255,255,0.06);
  color: var(--text-dim);
  border: 1px solid var(--border);
}

.badge-unlocked {
  background: rgba(34,197,94,0.10);
  color: var(--green);
  border: 1px solid rgba(34,197,94,0.25);
}

.badge-new {
  background: rgba(59,130,246,0.12);
  color: #60a5fa;
  border: 1px solid rgba(59,130,246,0.25);
}

.badge-danger {
  background: rgba(239,68,68,0.10);
  color: var(--red);
  border: 1px solid rgba(239,68,68,0.25);
}

/* =============================================================================
   25. PAGE LOADER / SPINNER
   ============================================================================= */

.page-loader {
  position: fixed;
  inset: 0;
  z-index: var(--z-loader);
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: var(--space-6);
  transition: opacity 0.4s ease, visibility 0.4s ease;
}

.page-loader.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader-logo {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--gold);
  letter-spacing: -0.02em;
}

.loader-logo span { color: var(--text); font-weight: 500; }

.loader-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

.loader-spinner-sm {
  width: 20px;
  height: 20px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  display: inline-block;
}

/* Inline spinner */
.spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255,255,255,0.2);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
}

/* =============================================================================
   26. ANIMATIONS
   ============================================================================= */

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

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

@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

@keyframes float {
  0%, 100% { transform: translateY(0px) rotate(0deg); }
  33%       { transform: translateY(-20px) rotate(2deg); }
  66%       { transform: translateY(-10px) rotate(-1deg); }
}

@keyframes pulse-gold {
  0%, 100% {
    opacity: 1;
    box-shadow: 0 0 0 0 rgba(240,165,0,0.4);
  }
  50% {
    opacity: 0.7;
    box-shadow: 0 0 0 6px rgba(240,165,0,0);
  }
}

@keyframes shimmer {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

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

@keyframes scaleIn {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 20px rgba(240,165,0,0.20); }
  50%       { box-shadow: 0 0 40px rgba(240,165,0,0.45); }
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }

/* =============================================================================
   27. LESSON PAGE
   ============================================================================= */

.lesson-page {
  display: flex;
  gap: var(--space-8);
  min-height: calc(100vh - var(--nav-height));
}

.lesson-main {
  flex: 1;
  min-width: 0;
}

.lesson-sidebar {
  width: 320px;
  flex-shrink: 0;
  position: sticky;
  top: calc(var(--nav-height) + var(--space-4));
  height: fit-content;
  max-height: calc(100vh - var(--nav-height) - var(--space-8));
  overflow-y: auto;
}

.video-player-wrapper {
  position: relative;
  width: 100%;
  padding-top: 56.25%;
  background: #000;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-6);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}

.video-player-wrapper iframe,
.video-player-wrapper video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.lesson-content {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  margin-bottom: var(--space-6);
}

.lesson-content h1,
.lesson-content h2,
.lesson-content h3 {
  color: var(--text);
  margin-bottom: var(--space-4);
}

.lesson-content p {
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  line-height: 1.8;
}

.lesson-content ul,
.lesson-content ol {
  padding-left: var(--space-6);
  margin-bottom: var(--space-4);
  color: var(--text-muted);
}

.lesson-content ul { list-style: disc; }
.lesson-content ol { list-style: decimal; }

.lesson-content li {
  margin-bottom: var(--space-2);
  line-height: 1.75;
}

.lesson-content pre {
  background: var(--bg-3);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-5);
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: var(--text-sm);
  color: var(--text);
  margin-bottom: var(--space-4);
}

.lesson-content blockquote {
  border-left: 3px solid var(--gold);
  padding-left: var(--space-5);
  margin-bottom: var(--space-4);
  font-style: italic;
  color: var(--text-muted);
}

/* Lesson nav buttons */
.lesson-nav-buttons {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.lesson-nav-prev,
.lesson-nav-next {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--text);
  text-decoration: none;
  transition: var(--transition);
  max-width: 48%;
}

.lesson-nav-prev:hover,
.lesson-nav-next:hover {
  border-color: var(--border-gold);
  background: var(--bg-3);
  color: var(--gold);
}

.lesson-nav-label {
  font-size: var(--text-xs);
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 2px;
}

.lesson-nav-title {
  font-size: var(--text-sm);
  font-weight: 600;
  line-height: 1.3;
}

/* Lesson sidebar outline */
.lesson-outline {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.lesson-outline-header {
  padding: var(--space-4) var(--space-5);
  border-bottom: 1px solid var(--border);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.lesson-outline-list {
  padding: var(--space-3);
}

/* =============================================================================
   28. CHECKOUT PAGE
   ============================================================================= */

.checkout-layout {
  display: grid;
  grid-template-columns: 1fr 380px;
  gap: var(--space-8);
  align-items: start;
}

.checkout-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
}

.checkout-card h3 {
  font-size: var(--text-xl);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-4);
  border-bottom: 1px solid var(--border);
}

/* Price breakdown */
.price-breakdown {
  background: var(--bg-3);
  border-radius: var(--radius);
  padding: var(--space-5);
  margin-bottom: var(--space-6);
}

.price-breakdown-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-3) 0;
  font-size: var(--text-sm);
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
}

.price-breakdown-row:last-child {
  border-bottom: none;
  padding-top: var(--space-4);
  font-weight: 700;
  color: var(--text);
}

.price-breakdown-row .total-value {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--gold);
}

/* Payment method tabs */
.payment-method-tabs {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}

.payment-tab {
  flex: 1;
  min-width: 120px;
  padding: var(--space-4);
  background: var(--bg-3);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  text-align: left;
}

.payment-tab:hover {
  border-color: var(--border-gold);
  color: var(--text);
}

.payment-tab.active {
  border-color: var(--gold);
  background: rgba(240,165,0,0.08);
  color: var(--gold);
}

.payment-tab-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.06);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* =============================================================================
   29. MENTORSHIP PAGE
   ============================================================================= */

.slot-card {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6);
  transition: var(--transition);
}

.slot-card:hover {
  border-color: var(--border-gold);
  transform: translateY(-2px);
}

.slot-card.booked {
  opacity: 0.6;
  cursor: not-allowed;
}

.slot-card.booked:hover {
  transform: none;
  border-color: var(--border);
}

.slot-date {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--gold);
  margin-bottom: var(--space-1);
}

.slot-time {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-bottom: var(--space-4);
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.time-slot {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 600;
  background: rgba(240,165,0,0.08);
  border: 1px solid rgba(240,165,0,0.20);
  color: var(--gold);
  padding: var(--space-2) var(--space-3);
  border-radius: var(--radius-full);
}

.time-slot.booked {
  background: rgba(239,68,68,0.08);
  border-color: rgba(239,68,68,0.25);
  color: var(--red);
}

.booking-confirmed {
  text-align: center;
  padding: var(--space-12);
  background: var(--bg-2);
  border: 1px solid rgba(34,197,94,0.30);
  border-radius: var(--radius-xl);
}

.booking-confirmed-icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(34,197,94,0.12);
  border: 2px solid rgba(34,197,94,0.30);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  color: var(--green);
}

.booking-confirmed h3 {
  font-size: var(--text-2xl);
  color: var(--green);
  margin-bottom: var(--space-3);
}

/* =============================================================================
   30. VIP PAGE
   ============================================================================= */

.vip-session-card {
  background: linear-gradient(145deg, #111827 0%, #1a2235 100%);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius-xl);
  padding: var(--space-6);
  position: relative;
  overflow: hidden;
  transition: var(--transition-slow);
}

.vip-session-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--gradient-gold);
}

.vip-session-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-gold);
  border-color: var(--gold);
}

.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #fff;
  background: var(--red);
  padding: 3px 10px;
  border-radius: var(--radius-full);
}

.live-badge .live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fff;
  animation: pulse-gold 1.5s infinite;
}

.vip-session-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
  margin: var(--space-3) 0 var(--space-2);
}

.vip-session-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  margin-bottom: var(--space-5);
}

.vip-meta-item {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.vip-meta-item svg {
  color: var(--gold);
  flex-shrink: 0;
}

.meeting-link-box {
  background: var(--bg);
  border: 1px solid var(--border-gold);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-top: var(--space-4);
}

.meeting-link-url {
  font-size: var(--text-sm);
  color: var(--gold);
  font-family: var(--font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =============================================================================
   31. AUTH PAGES
   ============================================================================= */

.auth-page {
  background: var(--bg);
  min-height: 100vh;
}

.auth-layout {
  display: flex;
  min-height: 100vh;
}

.auth-left {
  flex: 1;
  background: var(--bg-2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: var(--space-12);
  position: relative;
  overflow: hidden;
}

.auth-left::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at 20% 20%, rgba(240,165,0,0.08) 0%, transparent 50%),
    radial-gradient(ellipse at 80% 80%, rgba(34,197,94,0.05) 0%, transparent 50%);
  pointer-events: none;
}

/* Grid overlay on auth left */
.auth-left::after {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(30, 41, 59, 0.4) 1px, transparent 1px),
    linear-gradient(90deg, rgba(30, 41, 59, 0.4) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
}

.auth-left-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 420px;
}

.auth-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-3);
  margin-bottom: var(--space-10);
  text-decoration: none;
}

.auth-brand-text {
  font-size: var(--text-2xl);
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}

.auth-brand-text span {
  color: var(--text);
  font-weight: 500;
}

.auth-left-tagline {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text);
  margin-bottom: var(--space-4);
  line-height: 1.3;
}

.auth-left-desc {
  font-size: var(--text-base);
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: var(--space-10);
}

.auth-trust-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  text-align: left;
}

.auth-trust-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.auth-trust-item svg {
  color: var(--green);
  flex-shrink: 0;
}

.auth-right {
  width: 480px;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-12) var(--space-8);
  min-height: 100vh;
  overflow-y: auto;
}

.auth-form-card {
  width: 100%;
  max-width: 400px;
}

.auth-form-title {
  font-size: var(--text-3xl);
  font-weight: 800;
  color: var(--text);
  margin-bottom: var(--space-2);
}

.auth-form-subtitle {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-bottom: var(--space-8);
}

.auth-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-6) 0;
}

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

.auth-divider span {
  font-size: var(--text-xs);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.auth-footer-text {
  margin-top: var(--space-6);
  text-align: center;
  font-size: var(--text-sm);
  color: var(--text-muted);
}

.auth-footer-text a {
  color: var(--gold);
  font-weight: 600;
}

/* =============================================================================
   32. MODAL
   ============================================================================= */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: var(--z-modal);
  background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  animation: fadeIn 0.2s ease;
}

.modal {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 540px;
  max-height: 90vh;
  overflow-y: auto;
  animation: scaleIn 0.2s ease;
  position: relative;
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--space-5) var(--space-6);
  border-bottom: 1px solid var(--border);
}

.modal-title {
  font-size: var(--text-xl);
  font-weight: 700;
  color: var(--text);
}

.modal-close {
  width: 32px;
  height: 32px;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: var(--text-muted);
  transition: var(--transition);
  flex-shrink: 0;
}

.modal-close:hover {
  background: rgba(239,68,68,0.10);
  border-color: var(--red);
  color: var(--red);
}

.modal-body {
  padding: var(--space-6);
}

.modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: var(--space-3);
  padding: var(--space-5) var(--space-6);
  border-top: 1px solid var(--border);
}

/* =============================================================================
   33. TOASTS / NOTIFICATIONS
   ============================================================================= */

.toast-container {
  position: fixed;
  top: calc(var(--nav-height) + var(--space-4));
  right: var(--space-4);
  z-index: var(--z-toast);
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 360px;
  width: calc(100% - var(--space-8));
}

.toast {
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: var(--space-4);
  display: flex;
  align-items: flex-start;
  gap: var(--space-3);
  box-shadow: var(--shadow-lg);
  animation: slideInLeft 0.3s ease;
}

.toast.toast-success { border-left: 3px solid var(--green); }
.toast.toast-error   { border-left: 3px solid var(--red); }
.toast.toast-gold    { border-left: 3px solid var(--gold); }

.toast-message {
  flex: 1;
  font-size: var(--text-sm);
  color: var(--text);
  line-height: 1.5;
}

/* =============================================================================
   34. MISCELLANEOUS COMPONENTS
   ============================================================================= */

/* Breadcrumb */
.breadcrumb {
  display: flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
  flex-wrap: wrap;
}

.breadcrumb a {
  color: var(--text-muted);
  text-decoration: none;
  transition: var(--transition);
}

.breadcrumb a:hover {
  color: var(--gold);
}

.breadcrumb-sep {
  color: var(--text-dim);
}

.breadcrumb .current {
  color: var(--text);
  font-weight: 600;
}

/* Empty state */
.empty-state {
  text-align: center;
  padding: var(--space-20) var(--space-8);
}

.empty-state-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(240,165,0,0.06);
  border: 1px solid var(--border-gold);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto var(--space-5);
  color: var(--gold);
}

.empty-state h3 {
  font-size: var(--text-xl);
  color: var(--text);
  margin-bottom: var(--space-2);
}

.empty-state p {
  font-size: var(--text-base);
  color: var(--text-muted);
  margin-bottom: var(--space-6);
}

/* Divider with text */
.or-divider {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin: var(--space-5) 0;
  font-size: var(--text-xs);
  color: var(--text-dim);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

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

/* Tag */
.tag {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-size: var(--text-xs);
  font-weight: 600;
  border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--text-muted);
}

/* Section separator wave */
.wave-separator {
  width: 100%;
  overflow: hidden;
  line-height: 0;
}

/* Card with glass effect */
.glass-card {
  background: rgba(17, 24, 39, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: var(--radius-lg);
}

/* Gold glow text */
.glow-text {
  text-shadow: 0 0 30px rgba(240,165,0,0.5);
}

/* Pulsing gold dot indicator */
.gold-pulse {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--gold);
  animation: pulse-gold 2s infinite;
  display: inline-block;
}

/* Horizontal scrollable tabs */
.scroll-tabs {
  display: flex;
  gap: var(--space-2);
  border-bottom: 1px solid var(--border);
  overflow-x: auto;
  padding-bottom: 0;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.scroll-tabs::-webkit-scrollbar { display: none; }

.scroll-tab {
  padding: var(--space-3) var(--space-5);
  font-size: var(--text-sm);
  font-weight: 600;
  color: var(--text-muted);
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
  text-decoration: none;
}

.scroll-tab:hover {
  color: var(--text);
}

.scroll-tab.active {
  color: var(--gold);
  border-bottom-color: var(--gold);
}

/* Candlestick chart decorative element */
.candlestick-decoration {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 48px;
}

.candle-bar {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.candle-wick-top { width: 2px; border-radius: 1px; }
.candle-body { width: 10px; border-radius: 2px; }
.candle-wick-bottom { width: 2px; border-radius: 1px; }

.candle-bar.bull .candle-wick-top,
.candle-bar.bull .candle-body,
.candle-bar.bull .candle-wick-bottom { background: var(--green); }

.candle-bar.bear .candle-wick-top,
.candle-bar.bear .candle-body,
.candle-bar.bear .candle-wick-bottom { background: var(--red); }

/* =============================================================================
   35. RESPONSIVE BREAKPOINTS
   ============================================================================= */

/* --- Wide (1280px+) already the default --- */

/* --- Desktop (max 1024px) --- */
@media (max-width: 1024px) {
  :root {
    --sidebar-width: 240px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
  }

  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .checkout-layout .price-breakdown-col {
    max-width: 480px;
    margin: 0 auto;
    width: 100%;
  }

  .grid-4 {
    grid-template-columns: repeat(2, 1fr);
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .stat-item + .stat-item::before { display: none; }
}

/* --- Tablet (max 768px) --- */
@media (max-width: 768px) {
  :root {
    --nav-height: 64px;
  }

  h1 { font-size: var(--text-4xl); }
  h2 { font-size: var(--text-3xl); }
  h3 { font-size: var(--text-2xl); }

  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-actions .btn:not(.nav-hamburger) { display: none; }

  .nav-inner { padding: 0 var(--space-4); }

  .hero-title { font-size: clamp(2rem, 8vw, 3rem); }
  .hero-description { font-size: var(--text-lg); }
  .hero-cta-group { gap: var(--space-3); }

  .academy-section { padding: var(--space-16) 0; }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Sidebar on mobile becomes overlay */
  .dash-sidebar {
    left: calc(-1 * var(--sidebar-width));
    box-shadow: none;
  }

  .dash-sidebar.open {
    left: 0;
    box-shadow: var(--shadow-lg);
  }

  .dash-main {
    margin-left: 0;
  }

  .topbar-hamburger { display: flex; }
  .topbar-page-title { font-size: var(--text-lg); }
  .dash-content { padding: var(--space-4); }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .auth-layout { flex-direction: column; }
  .auth-left { display: none; }
  .auth-right {
    width: 100%;
    padding: var(--space-8) var(--space-4);
  }

  .lesson-page { flex-direction: column; }
  .lesson-sidebar { width: 100%; position: static; }

  .pricing-grid { grid-template-columns: 1fr; }
}

/* --- Mobile (max 480px) --- */
@media (max-width: 480px) {
  :root {
    --container-max: 100%;
  }

  .container { padding: 0 var(--space-4); }

  h1 { font-size: var(--text-3xl); }

  .hero-title { font-size: var(--text-3xl); }
  .hero-description { font-size: var(--text-base); }
  .hero-cta-group { flex-direction: column; width: 100%; }
  .hero-cta-group .btn { width: 100%; justify-content: center; }

  .features-grid,
  .courses-grid,
  .testimonials-grid {
    grid-template-columns: 1fr;
  }

  .stats-grid { grid-template-columns: 1fr 1fr; gap: var(--space-2); }

  .btn-lg { padding: 0.875rem 1.5rem; font-size: var(--text-base); }

  .pricing-card { padding: var(--space-6); }
  .checkout-card { padding: var(--space-5); }
  .dash-content { padding: var(--space-3); }
  .dash-cards-grid { grid-template-columns: 1fr; }

  .testimonial-quote { font-size: var(--text-sm); }

  .lesson-nav-buttons { flex-direction: column; }
  .lesson-nav-prev,
  .lesson-nav-next { max-width: 100%; width: 100%; }

  .payment-method-tabs { flex-direction: column; }
  .payment-tab { min-width: unset; }

  .telegram-float-btn {
    bottom: var(--space-4);
    right: var(--space-4);
    width: 48px;
    height: 48px;
  }
}

/* =============================================================================
   36. PRINT STYLES
   ============================================================================= */

@media print {
  .academy-nav,
  .dash-sidebar,
  .dash-topbar,
  .telegram-float-btn,
  .page-loader,
  .btn,
  .hero-bg-candles,
  .hero-glow,
  .hero-grid-overlay {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
  }

  .dash-main {
    margin-left: 0;
  }

  .dash-content {
    padding: 0;
  }

  .academy-hero {
    min-height: auto;
    padding: 2rem 0;
  }

  h1, h2, h3, h4, h5, h6 {
    color: #000;
  }

  p {
    color: #333;
  }

  a {
    color: #000;
    text-decoration: underline;
  }

  .table-dark-academy thead tr {
    background: #eee;
  }

  .table-dark-academy thead th {
    color: #000;
  }

  .table-dark-academy tbody td {
    color: #333;
    border-color: #ccc;
  }
}

/* =============================================================================
   37. DASHBOARD PAGE ADDITIONS (appended — missing classes backfill)
   ============================================================================= */

/* Dashboard page layout */
.dash-page-content {
  padding: 2rem;
  max-width: 1400px;
}

.dash-greeting h1 {
  font-size: clamp(1.5rem, 3vw, 2.2rem);
  font-weight: 800;
  color: #f1f5f9;
  margin-bottom: 0.5rem;
}

.dash-greeting p { color: #94a3b8; margin-bottom: 2rem; }

/* Access banners */
.access-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  padding: 1.5rem 2rem;
  border-radius: 12px;
  margin-bottom: 2rem;
}
.access-banner h3 { color: #fff; margin-bottom: 0.25rem; }
.access-banner p { color: #94a3b8; margin: 0; }
.access-banner.enroll-banner { background: linear-gradient(135deg, #1a2235, #0f1729); border: 1px solid rgba(240,165,0,0.4); }
.access-banner.course-banner { background: linear-gradient(135deg, #1a2235, #162030); border: 1px solid rgba(34,197,94,0.3); }
.access-banner.premium-banner { background: linear-gradient(135deg, #1a1a00, #1a1500); border: 1px solid rgba(240,165,0,0.5); }
.banner-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

/* Dashboard stats row */
.dash-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (max-width: 1024px) { .dash-stats-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .dash-stats-row { grid-template-columns: 1fr; } }

.stat-card { text-align: center; padding: 1.5rem 1rem; }
.stat-icon { font-size: 1.75rem; margin-bottom: 0.5rem; }
.stat-num { font-size: 1.75rem; font-weight: 800; color: #f0a500; margin-bottom: 0.25rem; }
.stat-label { color: #94a3b8; font-size: 0.875rem; }

/* Dashboard sections */
.dash-section { margin-bottom: 2.5rem; }
.dash-section-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #f1f5f9;
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #1e293b;
}

/* Course progress grid */
.courses-progress-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.course-progress-card { padding: 1.5rem; }
.cp-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }
.cp-header h4 { color: #f1f5f9; font-size: 1rem; margin: 0; }
.cp-percent { color: #f0a500; font-weight: 700; font-size: 1.1rem; }

/* VIP preview card */
.vip-preview-card { padding: 1.5rem; }
.vip-preview-card h4 { color: #f1f5f9; font-size: 1rem; margin-bottom: 0.5rem; }

/* Auth page extras */
.auth-form-inner { width: 100%; }
.auth-title { font-size: 1.75rem; font-weight: 800; color: #0a0f1e; margin-bottom: 0.5rem; }
.auth-subtitle { color: #6b7280; margin-bottom: 2rem; }

/* Slot card extras */
.slot-price { font-size: 1.5rem; font-weight: 800; color: #f0a500; margin-bottom: 1rem; }
.slot-notes { color: #94a3b8; font-size: 0.875rem; margin-bottom: 1rem; }

/* VIP session card — is-live variant */
.vip-session-card.is-live { border-color: #ef4444; box-shadow: 0 0 20px rgba(239,68,68,0.15); }

/* Session meta & type */
.session-meta { display: flex; flex-wrap: wrap; gap: 1rem; color: #94a3b8; font-size: 0.875rem; margin: 1rem 0; }
.session-type { background: #1a2235; padding: 0.2rem 0.6rem; border-radius: 20px; font-size: 0.8rem; color: #94a3b8; }

/* Payment tab buttons (alternative .pay-tab-btn / .pay-tab-panel pattern) */
.payment-method-tabs .pay-tabs { display: flex; gap: 0.5rem; margin-bottom: 1.5rem; }
.pay-tab-btn {
  flex: 1;
  padding: 0.75rem;
  background: #1a2235;
  border: 1px solid #1e293b;
  border-radius: 8px;
  color: #94a3b8;
  cursor: pointer;
  font-size: 0.9rem;
  transition: all 0.2s;
}
.pay-tab-btn.active { background: #f0a500; color: #0a0f1e; border-color: #f0a500; font-weight: 600; }
.pay-tab-panel { display: none; }
.pay-tab-panel.active { display: block; }

/* =============================================================================
   38. ADMIN FORM GRID COMPAT LAYER
   Minimal Bootstrap-grid subset used by the admin form views
   (row/col-md-*/g-*). Scoped to layout only — does not touch typography
   or component styles, so the academy design system owns visuals.
   ============================================================================= */

.row {
  display: flex;
  flex-wrap: wrap;
  margin-right: calc(var(--gutter, 1.5rem) * -0.5);
  margin-left:  calc(var(--gutter, 1.5rem) * -0.5);
}
.row > [class^="col-"],
.row > [class*=" col-"] {
  padding-right: calc(var(--gutter, 1.5rem) * 0.5);
  padding-left:  calc(var(--gutter, 1.5rem) * 0.5);
  width: 100%;
  box-sizing: border-box;
}

.g-2 { --gutter: 0.5rem; }
.g-3 { --gutter: 1rem;  }
.g-4 { --gutter: 1.5rem;}
.g-5 { --gutter: 2rem;  }

.col-12 { flex: 0 0 100%; max-width: 100%; }
.col-6  { flex: 0 0 50%;  max-width: 50%;  }

@media (min-width: 576px) {
  .col-sm-6 { flex: 0 0 50%;  max-width: 50%;  }
}

@media (min-width: 768px) {
  .col-md-2  { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .col-md-3  { flex: 0 0 25%;       max-width: 25%;       }
  .col-md-4  { flex: 0 0 33.3333%;  max-width: 33.3333%;  }
  .col-md-6  { flex: 0 0 50%;       max-width: 50%;       }
  .col-md-8  { flex: 0 0 66.6667%;  max-width: 66.6667%;  }
  .col-md-12 { flex: 0 0 100%;      max-width: 100%;      }
}

@media (min-width: 992px) {
  .col-lg-2  { flex: 0 0 16.6667%; max-width: 16.6667%; }
  .col-lg-3  { flex: 0 0 25%;       max-width: 25%;       }
  .col-lg-4  { flex: 0 0 33.3333%;  max-width: 33.3333%;  }
  .col-lg-6  { flex: 0 0 50%;       max-width: 50%;       }
}

/* Spacing utilities used by legacy forms */
.py-3 { padding-top:  1rem;  padding-bottom: 1rem;  }
.mb-3 { margin-bottom: 1rem; }
.mt-3 { margin-top: 1rem; }
.d-block  { display: block; }
.d-flex   { display: flex; }
.d-none   { display: none; }

/* =============================================================================
   39. PAGER (admin table pagination)
   ============================================================================= */

.pager {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.25rem;
  padding: 0.85rem 0.25rem;
}

.pager-summary {
  color: var(--text-muted);
  font-size: 0.85rem;
}

.pager-links {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.pager-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 36px;
  padding: 0 0.75rem;
  border-radius: 8px;
  border: 1px solid rgba(255,255,255,0.08);
  background: rgba(255,255,255,0.02);
  color: #cbd5e1;
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  transition: border-color 0.15s, color 0.15s, background 0.15s;
  user-select: none;
}

.pager-link:hover {
  border-color: rgba(240,165,0,0.35);
  color: #f0a500;
}

.pager-link.is-active {
  background: linear-gradient(135deg, #f0a500, #d4920a);
  border-color: #f0a500;
  color: #0a0f1e;
  cursor: default;
}

.pager-link.is-disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

.pager-ellipsis {
  color: var(--text-muted);
  padding: 0 0.35rem;
  font-size: 0.9rem;
}

@media (max-width: 560px) {
  .pager { justify-content: center; }
  .pager-summary { width: 100%; text-align: center; }
}

/* =============================================================================
   END OF academy.css
   ============================================================================= */
