/* ============================================================
   CLAUDE SCHOOL IL — 2026 Design System
   Hebrew Digital Course Platform for Claude AI
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Heebo:wght@400;600;700;800;900&family=Space+Grotesk:wght@400;600;700&family=JetBrains+Mono:wght@400;500&display=swap');

/* ============================================================
   1. DESIGN TOKENS — CSS Custom Properties
   ============================================================ */

/* RTL-safe animation direction factor: multiply translateX by this variable.
   Usage: transform: translateX(calc(var(--dir-factor) * 100%)) */
html[dir="rtl"] { --dir-factor: -1; }
html[dir="ltr"] { --dir-factor:  1; }
:root           { --dir-factor:  1; }

/* ------------------------------------------------------------
   Semantic note — token naming history
   ------------------------------------------------------------
   Legacy `--purple` is a misnomer: the current brand color is gold (#E8A020),
   not purple. Use `--brand-gold` (and the `--brand-gold-*` family) going
   forward. `--purple`, `--purple-light`, `--purple-glow`, `--gold`,
   and `--glow-gold` remain as backwards-compat aliases pointing at the
   canonical `--brand-gold*` tokens — 60+ files still consume them.
   `--glow-gold` previously held a TEAL value; it has been corrected to
   actually be a gold glow. Components that intentionally want a teal glow
   should switch to `--brand-glow-teal`.
   ------------------------------------------------------------ */
:root {
  color-scheme: dark;

  /* --- Backgrounds --- */
  --bg-void: #050508;
  --bg-surface: #0D0D14;
  --bg-elevated: #13131E;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);

  /* --- Brand Colors (canonical) --- */
  --brand-gold: #E8A020;
  --brand-gold-light: #F5C040;
  --brand-gold-dark: #C18014;
  --brand-glow-gold-soft: 0 0 20px rgba(232, 160, 32, 0.22);
  --brand-glow-gold-strong: 0 0 30px rgba(232, 160, 32, 0.55);
  --brand-glow-teal: 0 0 20px rgba(0, 196, 179, 0.3);

  /* --- Legacy brand aliases (backwards compat — 60+ consumers) --- */
  --purple: var(--brand-gold);
  --purple-light: var(--brand-gold-light);
  --purple-glow: var(--brand-glow-gold-soft);
  --gold: var(--brand-gold);
  --gold-glow: rgba(232, 160, 32, 0.18);
  --glow-gold: var(--brand-glow-gold-soft);   /* was teal — fixed semantic */
  --accent: #00C4B3;
  --accent-light: #2EDEC9;
  --accent-glow: rgba(0, 196, 179, 0.20);
  --pink: #EC4899;
  --teal: #00C4B3;
  --green: #10B981;
  --amber: #E8A020;
  --red: #EF4444;
  --blue: #3B82F6;

  /* --- Text --- WCAG AA verified on #050508 bg */
  --text-1: #F0F0FF;                       /* ~17.8:1 — AAA */
  --text-2: rgba(240, 240, 255, 0.8);      /* ~12.9:1 — AAA */
  --text-3: rgba(240, 240, 255, 0.62);     /* ~ 7.4:1 — AAA body, was 0.4 which failed AA */

  /* --- Borders --- */
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);

  /* --- Category Colors --- */
  --cat-prompting: #E8A020;
  --cat-code: #EC4899;
  --cat-tools: #F59E0B;
  --cat-agents: #10B981;
  --cat-automation: #3B82F6;
  --cat-social: #EF4444;
  --cat-marketing: #8B5CF6;
  --cat-video: #F97316;
  --cat-advanced: #06B6D4;

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

  /* --- Shadows & Glows --- */
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 16px 64px rgba(0, 0, 0, 0.6);
  --glow-purple: 0 0 20px rgba(232, 160, 32, 0.4);
  /* NOTE: --glow-gold and --brand-glow-* are declared at top of :root above.
     The previous --glow-gold value was a teal color (semantic bug); fixed. */

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

  /* --- Transitions --- */
  --transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
  --transition-fast: all 0.15s ease;
}

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

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  background-color: #03020a;
  /* Same panda hero bg as dashboard — owner request 2026-05-07 */
  background-image: url('/assets/dashboard-bg.webp');
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  background-repeat: no-repeat;
  /* Firefox scrollbar parity — תואם לערכי ה־webkit בהמשך */
  scrollbar-width: thin;
  scrollbar-color: rgba(232,160,32,0.4) var(--bg-surface);
}

body {
  background: transparent; /* canvas fixed z-index:0 shows through */
  color: var(--text-1);
  font-family: 'Heebo', sans-serif;
  line-height: 1.6;
  min-height: 100vh;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  position: relative;
}

/* Legibility wash + vignette for hero panda bg (matches dashboard) */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3,2,10,0.10) 0%, rgba(3,2,10,0.30) 55%, rgba(3,2,10,0.65) 100%),
    radial-gradient(ellipse 95% 90% at 50% 50%, transparent 55%, rgba(0,0,0,0.55) 100%);
}
/* Dashboard already has its own .dash-bg-scene overlays — opt-out body::before there */
body.dashboard-page::before { display: none; }

/* Selection */
::selection {
  background: var(--purple-glow);
  color: var(--text-1);
}

::-moz-selection {
  background: var(--purple-glow);
  color: var(--text-1);
}

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

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

::-webkit-scrollbar-thumb { background: rgba(232,160,32,0.4); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: rgba(232,160,32,0.65); }

/* Base elements */
a {
  color: var(--purple-light);
  text-decoration: none;
  transition: var(--transition-fast);
}

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

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

button {
  font-family: 'Heebo', sans-serif;
  cursor: pointer;
}

input,
textarea,
select {
  font-family: 'Heebo', sans-serif;
  direction: rtl;
}

ul,
ol {
  list-style: none;
}

/* ============================================================
   3. LAYOUT
   ============================================================ */

.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 var(--space-8);
}

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

.section-center {
  text-align: center;
}

/* Grid Utilities */
.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 {
  display: flex;
}

.flex-center {
  display: flex;
  align-items: center;
  justify-content: center;
}

.flex-between {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.flex-col {
  display: flex;
  flex-direction: column;
}

.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); }

/* ============================================================
   4. NAVIGATION
   ============================================================ */

.nav {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  z-index: 100;
  height: 70px;
  background: rgba(5, 5, 8, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  transition: var(--transition);
}

.nav.scrolled {
  background: rgba(5, 5, 8, 0.95);
  box-shadow: var(--shadow-md);
}

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

.nav-logo {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  text-decoration: none;
  letter-spacing: -0.02em;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.nav-logo-img {
  height: 60px;
  width: auto;
  vertical-align: middle;
  flex-shrink: 0;
}

/* mix-blend רק כשהניווט שקוף — מונע ריצוד מול כדורי הזהב כשגוללים */
.nav:not(.scrolled) .nav-logo-img { mix-blend-mode: screen; }

@media (max-width: 768px) {
  .nav-logo-img { height: 40px; }
}

.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  margin-top: 0.75rem;
}
.footer-contact a {
  color: var(--text-2);
  font-size: 0.875rem;
  text-decoration: none;
}
.footer-contact a:hover { color: var(--purple-light); }

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--space-6);
}

.nav-link {
  color: var(--text-2);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  transition: var(--transition-fast);
  position: relative;
  padding: var(--space-2) 0;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  right: 0;
  width: 0;
  height: 2px;
  background: var(--purple-light);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

.nav-link:hover {
  color: var(--text-1);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 100%;
}

.nav-link.active {
  color: var(--text-1);
}

.nav-progress {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-1) var(--space-3);
  background: var(--purple-glow);
  border: 1px solid rgba(232, 160, 32, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--purple-light);
  white-space: nowrap;
}

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

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: var(--space-2);
  background: none;
  border: none;
}

.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text-1);
  border-radius: var(--radius-full);
  transition: var(--transition);
}

/* ============================================================
   5. HERO SECTION
   ============================================================ */

.hero {
  position: relative;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding-top: 70px;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(ellipse 80% 50% at 20% 30%, rgba(232, 160, 32, 0.15) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 70%, rgba(212, 175, 55, 0.1) 0%, transparent 60%),
    radial-gradient(ellipse 50% 60% at 50% 50%, rgba(236, 72, 153, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.hero-canvas {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 900px;
  width: 100%;
  margin: 0 auto;
  padding: var(--space-8);
  text-align: center;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--purple-glow);
  border: 1px solid rgba(232, 160, 32, 0.3);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--purple-light);
  margin-bottom: var(--space-6);
  animation: fadeIn 0.6s ease;
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, 5rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, var(--text-1) 0%, var(--purple-light) 40%, var(--gold) 80%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  background-size: 200% 200%;
  animation: slideUp 0.7s ease 0.1s both, gradient-shift 6s ease infinite;
  margin-bottom: var(--space-6);
}

.hero-subtitle {
  font-size: 1.3rem;
  color: var(--text-2);
  max-width: 640px;
  margin: 0 auto var(--space-8);
  line-height: 1.7;
  animation: slideUp 0.7s ease 0.2s both;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: var(--space-4);
  margin-bottom: var(--space-8);
  animation: slideUp 0.7s ease 0.3s both;
  flex-wrap: wrap;
}

.hero-stat {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-4) var(--space-8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  text-align: center;
  min-width: 130px;
}

.hero-stat-number {
  font-size: 2rem;
  font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(135deg, var(--purple-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.2;
}

.hero-stat-label {
  font-size: 0.8rem;
  color: var(--text-3);
  font-weight: 600;
  margin-top: var(--space-1);
}

.hero-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-4);
  flex-wrap: wrap;
  animation: slideUp 0.7s ease 0.4s both;
}

/* ============================================================
   6. GLASS CARD
   ============================================================ */

.glass-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
}

.glass-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* ============================================================
   7. CATEGORY CARDS
   ============================================================ */

.category-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-6);
  transition: var(--transition);
  cursor: pointer;
  position: relative;
  overflow: hidden;
  border-inline-end: 3px solid transparent; /* H-04 logical — was border-right */
}

.category-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: var(--transition);
  border-radius: var(--radius-lg);
}

.category-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

/* Category color variants */
.category-card[data-category="prompting"] {
  border-right-color: var(--cat-prompting);
}
.category-card[data-category="prompting"]:hover {
  box-shadow: var(--shadow-lg), 0 0 20px rgba(232, 160, 32, 0.2);
}

.category-card[data-category="code"] {
  border-right-color: var(--cat-code);
}
.category-card[data-category="code"]:hover {
  box-shadow: var(--shadow-lg), 0 0 20px rgba(236, 72, 153, 0.2);
}

.category-card[data-category="tools"] {
  border-right-color: var(--cat-tools);
}
.category-card[data-category="tools"]:hover {
  box-shadow: var(--shadow-lg), 0 0 20px rgba(245, 158, 11, 0.2);
}

.category-card[data-category="agents"] {
  border-right-color: var(--cat-agents);
}
.category-card[data-category="agents"]:hover {
  box-shadow: var(--shadow-lg), 0 0 20px rgba(16, 185, 129, 0.2);
}

.category-card[data-category="automation"] {
  border-right-color: var(--cat-automation);
}
.category-card[data-category="automation"]:hover {
  box-shadow: var(--shadow-lg), 0 0 20px rgba(59, 130, 246, 0.2);
}

.category-card[data-category="social"] {
  border-right-color: var(--cat-social);
}
.category-card[data-category="social"]:hover {
  box-shadow: var(--shadow-lg), 0 0 20px rgba(239, 68, 68, 0.2);
}

.category-card[data-category="marketing"] {
  border-right-color: var(--cat-marketing);
}
.category-card[data-category="marketing"]:hover {
  box-shadow: var(--shadow-lg), 0 0 20px rgba(139, 92, 246, 0.2);
}

.category-card[data-category="video"] {
  border-right-color: var(--cat-video);
}
.category-card[data-category="video"]:hover {
  box-shadow: var(--shadow-lg), 0 0 20px rgba(249, 115, 22, 0.2);
}

.category-card[data-category="advanced"] {
  border-right-color: var(--cat-advanced);
}
.category-card[data-category="advanced"]:hover {
  box-shadow: var(--shadow-lg), 0 0 20px rgba(6, 182, 212, 0.2);
}

.category-icon {
  width: 3rem;
  height: 3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  margin-bottom: var(--space-4);
  transition: var(--transition);
}

.category-card:hover .category-icon {
  transform: scale(1.1);
}

.category-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: var(--space-2);
}

.category-count {
  font-size: 0.85rem;
  color: var(--text-3);
  margin-bottom: var(--space-4);
}

.category-bar {
  height: 3px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.category-bar-fill {
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.8s cubic-bezier(0.23, 1, 0.32, 1);
}

[data-category="prompting"] .category-bar-fill { background: var(--cat-prompting); }
[data-category="code"] .category-bar-fill { background: var(--cat-code); }
[data-category="tools"] .category-bar-fill { background: var(--cat-tools); }
[data-category="agents"] .category-bar-fill { background: var(--cat-agents); }
[data-category="automation"] .category-bar-fill { background: var(--cat-automation); }
[data-category="social"] .category-bar-fill { background: var(--cat-social); }
[data-category="marketing"] .category-bar-fill { background: var(--cat-marketing); }
[data-category="video"] .category-bar-fill { background: var(--cat-video); }
[data-category="advanced"] .category-bar-fill { background: var(--cat-advanced); }

/* ============================================================
   8. LESSON CARDS
   ============================================================ */

.lesson-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  padding: var(--space-6);
  transition: var(--transition);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}

.lesson-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg), 0 0 20px var(--purple-glow);
}

.lesson-card.completed {
  border-color: rgba(16, 185, 129, 0.3);
}

.lesson-card.completed:hover {
  box-shadow: var(--shadow-lg), 0 0 20px rgba(16, 185, 129, 0.2);
}

.lesson-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: var(--space-3);
}

.lesson-header-right {
  display: flex;
  align-items: center;
  gap: var(--space-2);
}

.lesson-category-icon {
  font-size: 1.2rem;
  line-height: 1;
}

.lesson-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-1);
  line-height: 1.4;
  flex: 1;
}

.lesson-description {
  color: var(--text-2);
  font-size: 0.9rem;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.lesson-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
}

.lesson-duration {
  font-size: 0.82rem;
  color: var(--text-3);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: var(--space-1);
}

.lesson-completed-mark {
  display: flex;
  align-items: center;
  gap: var(--space-1);
  font-size: 0.82rem;
  color: var(--green);
  font-weight: 600;
}

.lesson-number {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-3);
  padding: 2px 8px;
  background: var(--bg-elevated);
  border-radius: var(--radius-sm);
}

/* ============================================================
   9. BUTTONS
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  font-family: 'Heebo', sans-serif;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  white-space: nowrap;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  color: white;
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  min-height: 44px;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--glow-purple), var(--shadow-md);
  color: white;
}

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

.btn-secondary {
  background: transparent;
  color: var(--gold);
  border: 1px solid var(--gold);
  padding: var(--space-3) var(--space-8);
  border-radius: var(--radius-full);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
}

.btn-secondary:hover {
  background: var(--gold-glow);
  box-shadow: var(--glow-gold);
  color: var(--gold);
  transform: translateY(-2px);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
  border: none;
  padding: var(--space-3) var(--space-4);
  border-radius: var(--radius-md);
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  text-decoration: none;
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  position: relative;
}

.btn-ghost::after {
  content: '';
  position: absolute;
  bottom: 4px;
  right: var(--space-4);
  left: var(--space-4);
  height: 1px;
  background: currentColor;
  opacity: 0;
  transition: var(--transition);
}

.btn-ghost:hover {
  color: var(--text-1);
}

.btn-ghost:hover::after {
  opacity: 0.4;
}

.btn-sm {
  font-size: 0.875rem;
  padding: var(--space-2) var(--space-4);
}

.btn-lg {
  font-size: 1.1rem;
  padding: var(--space-4) var(--space-12);
}

.btn-icon {
  padding: var(--space-3);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-2);
  cursor: pointer;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-icon:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text-1);
}

/* ============================================================
   10. BADGES
   ============================================================ */

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.6;
  white-space: nowrap;
}

.badge-beginner {
  background: rgba(16, 185, 129, 0.15);
  color: #10B981;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-intermediate {
  background: rgba(245, 158, 11, 0.15);
  color: #F59E0B;
  border: 1px solid rgba(245, 158, 11, 0.3);
}

.badge-advanced {
  background: rgba(239, 68, 68, 0.15);
  color: #EF4444;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.badge-purple {
  background: var(--purple-glow);
  color: var(--purple-light);
  border: 1px solid rgba(232, 160, 32, 0.3);
}

.badge-gold {
  background: var(--gold-glow);
  color: var(--gold);
  border: 1px solid rgba(212, 175, 55, 0.3);
}

/* ============================================================
   11. SEARCH BAR
   ============================================================ */

.search-wrapper {
  position: relative;
  width: 100%;
}

.search-bar {
  width: 100%;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: var(--space-3) var(--space-6);
  padding-right: 3rem;
  color: var(--text-1);
  font-family: 'Heebo', sans-serif;
  font-size: 1rem;
  direction: rtl;
  outline: none;
  transition: var(--transition);
  -webkit-appearance: none;
  appearance: none;
}

.search-bar::placeholder {
  color: var(--text-3);
}

.search-bar:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 3px var(--purple-glow);
  background: var(--bg-elevated);
}

.search-icon {
  position: absolute;
  right: var(--space-4);
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-3);
  pointer-events: none;
  font-size: 1rem;
  transition: var(--transition-fast);
}

.search-bar:focus ~ .search-icon {
  color: var(--purple-light);
}

/* ============================================================
   12. MODAL
   ============================================================ */

.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: var(--space-4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: all;
}

.modal-overlay.active .modal-content {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.modal-content {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  max-width: 800px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  padding: var(--space-12);
  position: relative;
  transform: translateY(30px) scale(0.98);
  opacity: 0;
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1), opacity 0.35s ease;
  scrollbar-width: thin;
  scrollbar-color: var(--purple) var(--bg-surface);
}

.modal-progress-bar {
  position: sticky;
  top: calc(-1 * var(--space-12));
  right: 0;
  left: 0;
  height: 3px;
  background: var(--border);
  margin: calc(-1 * var(--space-12)) calc(-1 * var(--space-12)) var(--space-8);
  z-index: 1;
}

.modal-progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  /* H-04 logical radii — was: border-radius: 0 var(--radius-full) var(--radius-full) 0; */
  border-start-start-radius: 0;
  border-end-start-radius: 0;
  border-start-end-radius: var(--radius-full);
  border-end-end-radius: var(--radius-full);
  transition: width 0.4s ease;
}

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

.modal-title {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-1);
  line-height: 1.3;
}

.modal-close {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-2);
  cursor: pointer;
  font-size: 1.2rem;
  line-height: 1;
  transition: var(--transition);
  margin-inline-start: auto;
}

.modal-close:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text-1);
}

.modal-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
  margin-top: var(--space-8);
  padding-top: var(--space-6);
  border-top: 1px solid var(--border);
}

.modal-nav-info {
  font-size: 0.85rem;
  color: var(--text-3);
  font-family: 'Space Grotesk', sans-serif;
}

/* ============================================================
   13. LESSON CONTENT TYPOGRAPHY
   ============================================================ */

.lesson-content {
  color: var(--text-2);
  font-size: 1rem;
  line-height: 1.8;
}

.lesson-content h3 {
  color: var(--gold);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  margin-top: var(--space-8);
  line-height: 1.3;
}

.lesson-content h3:first-child {
  margin-top: 0;
}

.lesson-content h4 {
  color: var(--text-1);
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: var(--space-3);
  margin-top: var(--space-6);
}

.lesson-content p {
  color: var(--text-2);
  margin-bottom: var(--space-4);
}

.lesson-content ul,
.lesson-content ol {
  margin-right: var(--space-6);
  margin-bottom: var(--space-4);
  color: var(--text-2);
  list-style: disc;
}

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

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

.lesson-content strong {
  color: var(--text-1);
  font-weight: 700;
}

.lesson-content em {
  color: var(--purple-light);
  font-style: italic;
}

.lesson-content code {
  font-family: 'JetBrains Mono', monospace;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  padding: 2px 6px;
  border-radius: 4px;
  color: var(--purple-light);
  font-size: 0.9em;
}

.lesson-content pre {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  overflow-x: auto;
  margin-bottom: var(--space-6);
  scrollbar-width: thin;
  scrollbar-color: var(--purple) transparent;
}

.lesson-content pre code {
  background: none;
  border: none;
  padding: 0;
  color: #A78BFA;
  font-size: 0.9rem;
  line-height: 1.7;
}

.lesson-content blockquote {
  border-inline-start: 3px solid var(--purple); /* H-04 logical: was border-right */
  padding-inline-start: var(--space-4);         /* H-04 logical: was padding-right */
  color: var(--text-2);
  font-style: italic;
  margin: var(--space-6) 0;
  background: var(--bg-card);
  border-start-start-radius: 0;
  border-end-start-radius: 0;
  border-start-end-radius: var(--radius-sm);
  border-end-end-radius: var(--radius-sm);
  padding: var(--space-4);
  padding-inline-start: var(--space-6); /* logical override after shorthand */
}

.lesson-content a {
  color: var(--purple-light);
  text-decoration: underline;
  text-decoration-color: var(--purple-glow);
  text-underline-offset: 3px;
}

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

.lesson-content hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: var(--space-8) 0;
}

/* ============================================================
   14. PROGRESS BAR
   ============================================================ */

.progress-bar-container {
  height: 4px;
  background: var(--border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.progress-bar-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--purple), var(--gold));
  border-radius: var(--radius-full);
  transition: width 0.5s cubic-bezier(0.23, 1, 0.32, 1);
  position: relative;
}

.progress-bar-fill::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 30px;
  background: linear-gradient(to left, rgba(255, 255, 255, 0.3), transparent);
  border-radius: var(--radius-full);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  from { opacity: 0; }
  50% { opacity: 1; }
  to { opacity: 0; }
}

/* ============================================================
   15. BENTO GRID
   ============================================================ */

.bento-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-4);
}

.bento-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
}

.bento-item:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.bento-item.large {
  grid-column: span 2;
}

.bento-item.tall {
  grid-row: span 2;
}

.bento-item.featured {
  background: linear-gradient(135deg, rgba(232, 160, 32, 0.15), rgba(212, 175, 55, 0.08));
  border-color: rgba(232, 160, 32, 0.2);
}

/* ============================================================
   16. TOAST NOTIFICATIONS
   ============================================================ */

.toast-container {
  position: fixed;
  bottom: var(--space-6);
  left: var(--space-6);
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  pointer-events: none;
}

.toast {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-4) var(--space-6);
  color: var(--text-1);
  font-size: 0.9rem;
  font-weight: 600;
  min-width: 260px;
  max-width: 380px;
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  pointer-events: all;
  animation: slideInToast 0.35s cubic-bezier(0.23, 1, 0.32, 1);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.toast.success {
  border-inline-start: 3px solid var(--green);
}

.toast.info {
  border-inline-start: 3px solid var(--purple);
}

.toast.warning {
  border-inline-start: 3px solid var(--amber);
}

.toast.error {
  border-inline-start: 3px solid var(--red);
}

.toast-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
}

.toast-text {
  flex: 1;
}

.toast.removing {
  animation: slideOutToast 0.3s ease forwards;
}

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

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

/* ============================================================
   17. SIDEBAR (lessons.html)
   ============================================================ */

.lessons-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--space-8);
  align-items: start;
  padding-top: calc(70px + var(--space-8));
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: calc(70px + var(--space-4));
  max-height: calc(100vh - 90px);
  overflow-y: auto;
  padding: var(--space-4);
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  scrollbar-width: thin;
  scrollbar-color: var(--purple) transparent;
}

.sidebar-header {
  padding: var(--space-4) var(--space-2) var(--space-4);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--space-4);
}

.sidebar-progress {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-bottom: var(--space-4);
}

.sidebar-progress-ring {
  position: relative;
  width: 56px;
  height: 56px;
  flex-shrink: 0;
}

.sidebar-progress-ring svg {
  transform: rotate(-90deg);
}

.sidebar-progress-ring .ring-bg {
  fill: none;
  stroke: var(--border);
  stroke-width: 4;
}

.sidebar-progress-ring .ring-fill {
  fill: none;
  stroke: url(#progressGradient);
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.sidebar-progress-text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-1);
}

.sidebar-progress-info {
  flex: 1;
}

.sidebar-progress-label {
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-1);
  margin-bottom: 2px;
}

.sidebar-progress-sub {
  font-size: 0.78rem;
  color: var(--text-3);
}

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

.sidebar-lesson-item {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-3);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: var(--transition-fast);
  text-decoration: none;
  color: var(--text-2);
}

.sidebar-lesson-item:hover {
  background: var(--bg-card-hover);
  color: var(--text-1);
}

.sidebar-lesson-item.active {
  background: var(--purple-glow);
  color: var(--text-1);
  border-right: 2px solid var(--purple);
}

.sidebar-lesson-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 0.65rem;
  color: transparent;
  transition: var(--transition-fast);
}

.sidebar-lesson-item.completed .sidebar-lesson-check {
  background: var(--green);
  border-color: var(--green);
  color: white;
}

.sidebar-lesson-title {
  font-size: 0.85rem;
  font-weight: 600;
  flex: 1;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.sidebar-lesson-num {
  font-size: 0.7rem;
  font-family: 'Space Grotesk', sans-serif;
  color: var(--text-3);
  flex-shrink: 0;
}

/* ============================================================
   18. TYPEWRITER CURSOR
   ============================================================ */

.typewriter-cursor {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--gold);
  margin-right: 4px;
  vertical-align: text-bottom;
  border-radius: 1px;
  animation: blink 1s step-end infinite;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ============================================================
   19. KEYFRAME ANIMATIONS
   ============================================================ */

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

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

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

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

@keyframes glow-pulse {
  0%, 100% { box-shadow: 0 0 10px var(--purple-glow); }
  50% { box-shadow: 0 0 30px var(--purple-glow), 0 0 60px var(--purple-glow); }
}

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

@keyframes gradient-shift {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

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

@keyframes pulse-ring {
  0% { transform: scale(0.8); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

/* Animation utility classes */
.animate-float { animation: float 3s ease-in-out infinite; }
.animate-pulse-glow { animation: glow-pulse 2s ease-in-out infinite; }
.animate-spin { animation: spin 1.5s linear infinite; }
.animate-fade-in { animation: fadeIn 0.5s ease; }
.animate-slide-up { animation: slideUp 0.6s cubic-bezier(0.23, 1, 0.32, 1) both; }

/* ============================================================
   20. SCROLL REVEAL
   ============================================================ */

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.23, 1, 0.32, 1);
}

.reveal.visible {
  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; }

/* ============================================================
   21. FILTER BUTTONS
   ============================================================ */

.filter-row {
  display: flex;
  gap: var(--space-2);
  flex-wrap: wrap;
  align-items: center;
}

.track-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 6px 18px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-2);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Heebo', sans-serif;
  white-space: nowrap;
}
.track-btn:hover { background: var(--bg-card-hover); color: var(--text-1); }
.track-btn.active {
  background: linear-gradient(135deg, rgba(99,102,241,0.25), rgba(139,92,246,0.2));
  border-color: rgba(139,92,246,0.5);
  color: #a78bfa;
}

.filter-btn {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  background: var(--bg-card);
  color: var(--text-2);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  font-family: 'Heebo', sans-serif;
  white-space: nowrap;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.filter-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  color: var(--text-1);
}

.filter-btn.active {
  background: var(--purple-glow);
  border-color: rgba(232, 160, 32, 0.4);
  color: var(--purple-light);
}

.filter-btn .filter-count {
  font-size: 0.75rem;
  background: var(--bg-elevated);
  padding: 1px 6px;
  border-radius: var(--radius-full);
  color: var(--text-3);
}

.filter-btn.active .filter-count {
  background: rgba(232, 160, 32, 0.3);
  color: var(--purple-light);
}

/* ============================================================
   22. SECTION HEADINGS
   ============================================================ */

.section-heading {
  font-size: clamp(2rem, 3.5vw, 2.5rem);
  font-weight: 800;
  background: linear-gradient(135deg, var(--text-1), var(--purple-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-4);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.section-subheading {
  color: var(--text-2);
  font-size: 1.1rem;
  line-height: 1.7;
  max-width: 600px;
}

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

.section-header.center {
  text-align: center;
}

.section-header.center .section-subheading {
  margin: 0 auto;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--purple-light);
  margin-bottom: var(--space-3);
}

.section-label::before {
  content: '';
  display: block;
  width: 24px;
  height: 2px;
  background: var(--purple);
  border-radius: var(--radius-full);
}

/* ============================================================
   23. STAT CARDS
   ============================================================ */

.stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: var(--space-6) var(--space-8);
  text-align: center;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  transition: var(--transition);
}

.stat-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.stat-number {
  font-size: 3rem;
  font-weight: 900;
  font-family: 'Space Grotesk', sans-serif;
  background: linear-gradient(135deg, var(--purple-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.1;
  margin-bottom: var(--space-2);
}

.stat-label {
  font-size: 0.9rem;
  color: var(--text-3);
  font-weight: 600;
}

/* ============================================================
   24. FOOTER
   ============================================================ */

.footer {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  padding: var(--space-16) 0 var(--space-8);
  margin-top: auto;
}

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

.footer-brand {}

.footer-logo {
  font-size: 1.3rem;
  font-weight: 800;
  background: linear-gradient(135deg, var(--purple-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: var(--space-4);
  display: inline-block;
}

.footer-description {
  color: var(--text-3);
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 320px;
}

.footer-col-title {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: var(--space-4);
}

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

.footer-link {
  color: var(--text-2);
  font-size: 0.9rem;
  text-decoration: none;
  transition: var(--transition-fast);
}

.footer-link:hover {
  color: var(--purple-light);
}

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

.footer-stat {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-4);
}

.footer-stat-label {
  color: var(--text-3);
  font-size: 0.85rem;
}

.footer-stat-value {
  color: var(--text-1);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: 'Space Grotesk', sans-serif;
}

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

.footer-copyright {
  color: var(--text-3);
  font-size: 0.85rem;
}

.footer-made-with {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: var(--space-2) var(--space-4);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-2);
  transition: var(--transition-fast);
}

.footer-made-with:hover {
  border-color: var(--purple);
  color: var(--purple-light);
}

/* ============================================================
   25. UTILITY CLASSES
   ============================================================ */

/* Text utilities */
.text-1 { color: var(--text-1); }
.text-2 { color: var(--text-2); }
.text-3 { color: var(--text-3); }
.text-purple { color: var(--purple-light); }
.text-gold { color: var(--gold); }
.text-green { color: var(--green); }
.text-pink { color: var(--pink); }
.text-teal { color: var(--teal); }

.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.text-xl { font-size: 1.25rem; }
.text-2xl { font-size: 1.5rem; }

.font-mono { font-family: 'JetBrains Mono', monospace; }
.font-numbers { font-family: 'Space Grotesk', sans-serif; }

.font-bold { font-weight: 700; }
.font-extrabold { font-weight: 800; }
.font-black { font-weight: 900; }

.text-center { text-align: center; }
.text-right { text-align: right; }
.text-left { text-align: left; }

/* Gradient text utility */
.gradient-text {
  background: linear-gradient(135deg, var(--purple-light), var(--gold));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.gradient-text-purple {
  background: linear-gradient(135deg, var(--purple), var(--pink));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Spacing utilities */
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }

/* Display utilities */
.hidden { display: none; }
.invisible { visibility: hidden; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border-width: 0;
}

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

/* Tag / chip */
.tag {
  display: inline-flex;
  align-items: center;
  padding: var(--space-1) var(--space-3);
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-3);
  transition: var(--transition-fast);
}

/* Loading skeleton */
.skeleton {
  background: linear-gradient(90deg, var(--bg-elevated) 25%, var(--bg-card-hover) 50%, var(--bg-elevated) 75%);
  background-size: 200% 100%;
  animation: skeleton-shimmer 1.5s infinite;
  border-radius: var(--radius-sm);
}

@keyframes skeleton-shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

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

.empty-state-icon {
  font-size: 3rem;
  margin-bottom: var(--space-4);
  opacity: 0.5;
}

.empty-state-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--text-2);
  margin-bottom: var(--space-2);
}

/* ============================================================
   26. RESPONSIVE BREAKPOINTS
   ============================================================ */

/* Tablet — max 1024px */
@media (max-width: 1024px) {
  .container {
    padding: 0 var(--space-6);
  }

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

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

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

  .bento-item.large {
    grid-column: span 2;
  }

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

  .footer-brand {
    grid-column: span 2;
  }

  .lessons-layout {
    grid-template-columns: 240px 1fr;
    gap: var(--space-6);
  }
}

/* Mobile — max 768px */
@media (max-width: 768px) {
  .container {
    padding: 0 var(--space-4);
  }

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

  /* Navigation */
  .nav-links {
    display: none;
    position: fixed;
    top: 70px;
    right: 0;
    left: 0;
    background: rgba(5, 5, 8, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: var(--space-6) var(--space-4);
    flex-direction: column;
    gap: var(--space-4);
    align-items: flex-start;
  }

  .nav-links.open {
    display: flex;
    animation: slideDown 0.3s ease;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-progress {
    display: none;
  }

  /* Hero */
  .hero-title {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .hero-subtitle {
    font-size: 1.1rem;
  }

  .hero-stats {
    gap: var(--space-3);
  }

  .hero-stat {
    min-width: 100px;
    padding: var(--space-3) var(--space-4);
  }

  .hero-stat-number {
    font-size: 1.6rem;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn-primary,
  .hero-actions .btn-secondary {
    justify-content: center;
  }

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

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

  .bento-item.large {
    grid-column: span 1;
  }

  .bento-item.tall {
    grid-row: span 1;
  }

  /* Section headings */
  .section-heading {
    font-size: clamp(1.75rem, 6vw, 2rem);
  }

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

  .footer-brand {
    grid-column: span 1;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--space-3);
  }

  /* Modal */
  .modal-content {
    padding: var(--space-6);
    max-height: 92vh;
    border-radius: var(--radius-lg);
  }

  .modal-progress-bar {
    margin: calc(-1 * var(--space-6)) calc(-1 * var(--space-6)) var(--space-6);
    top: calc(-1 * var(--space-6));
  }

  /* Sidebar */
  .lessons-layout {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    max-height: none;
    order: 2;
  }

  /* Toast */
  .toast-container {
    bottom: var(--space-4);
    inset-inline-start: var(--space-4);
    inset-inline-end: var(--space-4);
  }

  .toast {
    min-width: unset;
    max-width: 100%;
  }

  /* Filter */
  .filter-row {
    gap: var(--space-2);
    overflow-x: auto;
    flex-wrap: nowrap;
    padding-bottom: var(--space-2);
    scrollbar-width: none;
  }

  .filter-row::-webkit-scrollbar {
    display: none;
  }

  .filter-btn {
    flex-shrink: 0;
  }
}

/* Small mobile — max 480px */
@media (max-width: 480px) {
  .container {
    padding: 0 var(--space-4);
  }

  .hero-content {
    padding: var(--space-4);
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-stats {
    justify-content: center;
  }

  .hero-stat {
    flex: 1;
    min-width: 80px;
  }

  .modal-content {
    padding: var(--space-4);
    border-radius: var(--radius-md);
  }

  .stat-number {
    font-size: 2.2rem;
  }

  .section-heading {
    font-size: 1.75rem;
  }

  .btn-lg {
    font-size: 1rem;
    padding: var(--space-3) var(--space-8);
  }

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

/* ============================================================
   27. PRINT STYLES
   ============================================================ */

@media print {
  .nav,
  .modal-overlay,
  .toast-container,
  .hero-canvas {
    display: none !important;
  }

  body {
    background: white;
    color: black;
  }
}

/* ============================================================
   28. REDUCED MOTION
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }

  .reveal {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   PREMIUM ADDITIONS — Auth, Dashboard, Admin, Lock, Pricing, Testimonials
   ========================================================================== */

/* ── Utility ──────────────────────────────────────────────────────────────── */
.hidden { display: none !important; }
.spin { animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── Auth Page ────────────────────────────────────────────────────────────── */
.auth-page { background: var(--bg-void); min-height: 100vh; }

.auth-bg {
  position: fixed; inset: 0; overflow: hidden; pointer-events: none; z-index: 0;
}
.auth-bg-orb {
  position: absolute; border-radius: 50%; filter: blur(80px);
}
.auth-bg-orb-1 {
  width: 500px; height: 500px; top: -150px; right: -100px;
  background: radial-gradient(circle, rgba(232, 160, 32,0.2) 0%, transparent 70%);
}
.auth-bg-orb-2 {
  width: 400px; height: 400px; bottom: -100px; left: -80px;
  background: radial-gradient(circle, rgba(236,72,153,0.15) 0%, transparent 70%);
}

.auth-nav {
  position: relative; z-index: 10;
  padding: 1.25rem 2rem;
  border-bottom: 1px solid var(--border);
}

.auth-main {
  position: relative; z-index: 10;
  display: flex; align-items: center; justify-content: center; gap: 3rem;
  min-height: calc(100vh - 70px);
  padding: 2rem;
}

.auth-card {
  width: 100%; max-width: 420px;
  padding: 2.5rem 2rem;
  border-radius: var(--radius-xl);
  flex-shrink: 0;
}

.auth-header { text-align: center; margin-bottom: 1.75rem; }
.auth-logo-badge {
  font-size: 2.5rem; display: block; margin-bottom: 0.75rem;
}
.auth-title { font-size: 1.6rem; font-weight: 800; color: var(--text-1); margin-bottom: 0.4rem; }
.auth-subtitle { font-size: 0.85rem; color: var(--text-3); line-height: 1.5; }

.auth-tabs {
  display: flex; gap: 0.5rem; margin-bottom: 1.75rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md); padding: 0.25rem;
}
.auth-tab {
  flex: 1; padding: 0.55rem; border: none; border-radius: var(--radius-sm);
  background: transparent; color: var(--text-3); font-family: inherit;
  font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: var(--transition-fast);
}
.auth-tab.active {
  background: var(--purple); color: #fff;
  box-shadow: 0 2px 12px rgba(232, 160, 32,0.4);
}

.auth-form { display: flex; flex-direction: column; gap: 1.1rem; }

.auth-field { display: flex; flex-direction: column; gap: 0.4rem; }
.auth-field label { font-size: 0.82rem; font-weight: 600; color: var(--text-2); }
.auth-field input {
  padding: 0.7rem 1rem;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--text-1); font-family: inherit; font-size: 0.9rem;
  direction: ltr; text-align: left;
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.auth-field input:focus {
  border-color: rgba(232, 160, 32,0.5);
  box-shadow: 0 0 0 3px rgba(232, 160, 32,0.12);
}
.auth-field input::placeholder { color: var(--text-3); direction: rtl; }

/* Email/tel inputs always LTR — cursor starts left regardless of page dir */
input[type="email"],
input[type="tel"],
input[type="url"] {
  direction: ltr;
  text-align: left;
}

.auth-password-wrap { position: relative; }
.auth-password-wrap input { width: 100%; padding-left: 2.75rem; }
.auth-eye {
  position: absolute; left: 0.75rem; top: 50%; transform: translateY(-50%);
  background: transparent; border: none; cursor: pointer;
  color: var(--text-3); padding: 0.25rem; transition: color 0.2s;
}
.auth-eye:hover { color: var(--text-1); }
.auth-eye svg { width: 16px; height: 16px; display: block; }

.auth-message { font-size: 0.82rem; min-height: 1.2rem; text-align: center; font-weight: 600; }
.auth-error   { color: #F87171; }
.auth-success { color: #34D399; }

.auth-submit {
  width: 100%; padding: 0.85rem; font-size: 0.95rem;
  display: flex; align-items: center; justify-content: center; gap: 0.5rem;
}
.btn-loading { display: flex; align-items: center; gap: 0.5rem; }
.btn-loading svg { width: 16px; height: 16px; }

.auth-footer-note { text-align: center; font-size: 0.75rem; color: var(--text-3); margin-top: 1.25rem; }
.auth-link { color: var(--purple-light); text-decoration: none; }
.auth-link:hover { text-decoration: underline; }

/* Auth side panel */
.auth-side {
  max-width: 300px; flex-shrink: 0;
  display: none;
}
@media (min-width: 900px) { .auth-side { display: block; } }

.auth-side-inner {
  padding: 2rem;
  background: rgba(232, 160, 32,0.08);
  border: 1px solid rgba(232, 160, 32,0.2);
  border-radius: var(--radius-xl);
}
.auth-side-title { font-size: 1.1rem; font-weight: 800; color: var(--text-1); margin-bottom: 1.25rem; }
.auth-side-list { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.auth-side-list li { font-size: 0.88rem; color: var(--text-2); }
.auth-side-quote {
  margin-top: 1.5rem; padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  font-size: 0.82rem; color: var(--text-3); font-style: italic;
}
.auth-side-quote span { display: block; margin-top: 0.4rem; font-weight: 700; color: var(--gold); }

/* ── Dashboard ────────────────────────────────────────────────────────────── */
.dashboard-page { background: var(--bg-void); min-height: 100vh; }

.dashboard-nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(5,5,8,0.9);
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
  padding: 0.9rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
}

.dash-user-menu {
  display: flex; align-items: center; gap: 1rem;
}
.dash-user-name {
  font-size: 0.85rem; font-weight: 600; color: var(--text-2);
}
.dash-logout-btn {
  padding: 0.35rem 0.85rem;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-3); font-family: inherit; font-size: 0.8rem;
  cursor: pointer; transition: var(--transition-fast);
}
.dash-logout-btn:hover { background: rgba(255,255,255,0.1); color: var(--text-1); }

.dashboard-main { max-width: 1200px; margin: 0 auto; padding: 2.5rem 1.5rem; }

/* Welcome section */
.dash-welcome {
  display: flex; align-items: center; gap: 2rem;
  margin-bottom: 2.5rem;
  padding: 2rem 2.5rem;
  background: rgba(232, 160, 32,0.08);
  border: 1px solid rgba(232, 160, 32,0.2);
  border-radius: var(--radius-xl);
}

.dash-progress-ring { flex-shrink: 0; position: relative; width: 80px; height: 80px; }
.dash-progress-ring svg { width: 80px; height: 80px; transform: rotate(-90deg); }
.dash-ring-bg  { fill: none; stroke: rgba(255,255,255,0.08); stroke-width: 6; }
.dash-ring-fg  { fill: none; stroke-width: 6; stroke-linecap: round; transition: stroke-dashoffset 1s ease; }
.dash-ring-text {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-size: 0.65rem; font-weight: 800; color: var(--text-1); line-height: 1.1;
}

.dash-welcome-text { flex: 1; }
.dash-welcome-greeting { font-size: 1.6rem; font-weight: 900; color: var(--text-1); margin-bottom: 0.3rem; }
.dash-welcome-sub { font-size: 0.9rem; color: var(--text-3); }

/* Access banner */
.dash-access-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.25rem 1.75rem;
  background: rgba(212,175,55,0.08);
  border: 1px solid rgba(212,175,55,0.25);
  border-radius: var(--radius-lg);
  margin-bottom: 2rem;
}
.dash-banner-text .dash-banner-title { font-size: 0.95rem; font-weight: 700; color: var(--gold); }
.dash-banner-text p { font-size: 0.82rem; color: var(--text-3); margin-top: 0.2rem; }
.dash-banner-cta { white-space: nowrap; flex-shrink: 0; }

/* Section titles */
.dash-section-title {
  font-size: 1.15rem; font-weight: 800; color: var(--text-1); margin-bottom: 1.25rem;
  display: flex; align-items: center; gap: 0.5rem;
}

/* Continue section */
.dash-continue-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1rem; margin-bottom: 2.5rem;
}

/* Category progress grid */
.dash-categories-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem; margin-bottom: 2.5rem;
}
.dash-cat-card {
  padding: 1.25rem;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  cursor: pointer; transition: var(--transition);
  text-decoration: none;
}
.dash-cat-card:hover { border-color: var(--border-hover); background: var(--bg-elevated); }
.dash-cat-icon { font-size: 1.5rem; margin-bottom: 0.5rem; }
.dash-cat-name { font-size: 0.88rem; font-weight: 700; color: var(--text-1); margin-bottom: 0.6rem; }
.dash-cat-progress-bar {
  height: 4px; background: rgba(255,255,255,0.08); border-radius: 2px; overflow: hidden;
  margin-bottom: 0.4rem;
}
.dash-cat-progress-fill { height: 100%; border-radius: 2px; transition: width 0.8s ease; }
.dash-cat-count { font-size: 0.72rem; color: var(--text-3); }

/* ── Lesson Card Lock Overlay ─────────────────────────────────────────────── */
.lesson-card { position: relative; }

.lesson-card.locked {
  opacity: 0.6;
}
.lesson-card.locked:hover { opacity: 0.8; }

.lock-overlay {
  position: absolute; inset: 0; z-index: 5;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0.5rem;
  background: rgba(5,5,8,0.6);
  -webkit-backdrop-filter: blur(4px);
          backdrop-filter: blur(4px);
  border-radius: inherit;
  cursor: pointer;
}
.lock-icon { font-size: 1.75rem; }
.lock-label { font-size: 0.78rem; font-weight: 700; color: var(--text-2); }

/* ── Admin Panel ──────────────────────────────────────────────────────────── */
.admin-page { background: var(--bg-void); min-height: 100vh; }

.admin-header {
  background: rgba(5,5,8,0.95); border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  position: sticky; top: 0; z-index: 100;
  -webkit-backdrop-filter: blur(20px);
          backdrop-filter: blur(20px);
}
.admin-header-title { font-size: 1.1rem; font-weight: 800; color: var(--text-1); }
.admin-header-badge {
  padding: 0.25rem 0.75rem;
  background: rgba(239,68,68,0.2); border: 1px solid rgba(239,68,68,0.3);
  border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 700; color: #F87171;
}

.admin-main { max-width: 1200px; margin: 0 auto; padding: 2rem 1.5rem; }

.admin-stats {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.admin-stat-card {
  padding: 1.25rem 1.5rem;
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
}
.admin-stat-label { font-size: 0.78rem; color: var(--text-3); font-weight: 600; margin-bottom: 0.4rem; }
.admin-stat-value { font-size: 2rem; font-weight: 900; color: var(--text-1); line-height: 1; }

.admin-controls {
  display: flex; gap: 1rem; margin-bottom: 1.25rem; align-items: center; flex-wrap: wrap;
}
.admin-search {
  flex: 1; min-width: 200px;
  padding: 0.6rem 1rem;
  background: rgba(255,255,255,0.05); border: 1px solid var(--border);
  border-radius: var(--radius-md); color: var(--text-1); font-family: inherit; font-size: 0.88rem;
  outline: none; direction: rtl;
}
.admin-search:focus { border-color: rgba(232, 160, 32,0.4); }

/* Users table */
.admin-table-wrap { overflow-x: auto; }
.admin-table {
  width: 100%; border-collapse: collapse;
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden;
}
.admin-table th {
  padding: 0.75rem 1rem; background: rgba(255,255,255,0.04);
  text-align: right; font-size: 0.78rem; font-weight: 700; color: var(--text-3);
  border-bottom: 1px solid var(--border);
}
.admin-table td {
  padding: 0.85rem 1rem; font-size: 0.84rem; color: var(--text-2);
  border-bottom: 1px solid rgba(255,255,255,0.04);
  vertical-align: middle;
}
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tr:hover td { background: rgba(255,255,255,0.02); }

.admin-access-badge {
  display: inline-flex; align-items: center; gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 700;
}
.admin-access-badge.yes { background: rgba(16,185,129,0.15); color: #34D399; }
.admin-access-badge.no  { background: rgba(239,68,68,0.1); color: #F87171; }

.admin-role-badge {
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full); font-size: 0.68rem; font-weight: 700;
  background: rgba(232, 160, 32,0.2); color: var(--purple-light);
}
.admin-role-badge.admin { background: rgba(212,175,55,0.2); color: var(--gold); }

.admin-action-btn {
  padding: 0.3rem 0.7rem; border-radius: var(--radius-sm);
  font-family: inherit; font-size: 0.78rem; font-weight: 600; cursor: pointer;
  border: 1px solid; transition: var(--transition-fast);
}
.admin-action-btn.grant  { background: rgba(16,185,129,0.1); border-color: rgba(16,185,129,0.3); color: #34D399; }
.admin-action-btn.grant:hover  { background: rgba(16,185,129,0.2); }
.admin-action-btn.revoke { background: rgba(239,68,68,0.1); border-color: rgba(239,68,68,0.3); color: #F87171; }
.admin-action-btn.revoke:hover { background: rgba(239,68,68,0.2); }
.admin-action-btn.delete { background: transparent; border-color: rgba(255,255,255,0.1); color: var(--text-3); }
.admin-action-btn.delete:hover { border-color: rgba(239,68,68,0.3); color: #F87171; }

/* ── Pricing Cards (Landing) ──────────────────────────────────────────────── */
.pricing-section { padding: var(--space-20) 0; }
.pricing-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.5rem; max-width: 700px; margin: 0 auto;
}
.pricing-card {
  padding: 2.5rem 2rem;
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  text-align: center; position: relative; transition: var(--transition);
}
.pricing-card.featured {
  border-color: rgba(232, 160, 32,0.5);
  background: rgba(232, 160, 32,0.08);
  box-shadow: var(--glow-purple);
}
.pricing-badge {
  position: absolute; top: -12px; right: 50%; transform: translateX(50%);
  padding: 0.25rem 1rem;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  border-radius: var(--radius-full); font-size: 0.72rem; font-weight: 700; color: #fff;
  white-space: nowrap;
}
.pricing-plan { font-size: 0.8rem; font-weight: 700; color: var(--text-3); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 0.5rem; }
.pricing-price { font-size: 3rem; font-weight: 900; color: var(--text-1); line-height: 1; margin-bottom: 0.25rem; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--text-3); }
.pricing-desc { font-size: 0.82rem; color: var(--text-3); margin-bottom: 1.75rem; }
.pricing-features { list-style: none; text-align: right; display: flex; flex-direction: column; gap: 0.75rem; margin-bottom: 2rem; }
.pricing-features li { font-size: 0.84rem; color: var(--text-2); display: flex; gap: 0.5rem; align-items: flex-start; }
.pricing-features li::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
.pricing-features li.no::before { content: '✗'; color: var(--text-3); }

/* ── Testimonials ─────────────────────────────────────────────────────────── */
.testimonials-section { padding: var(--space-20) 0; }
.testimonials-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}
.testimonial-card {
  padding: 1.75rem;
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  position: relative; transition: var(--transition);
}
.testimonial-card:hover { border-color: var(--border-hover); }
.testimonial-stars { color: var(--gold); font-size: 0.85rem; letter-spacing: 0.05em; margin-bottom: 0.75rem; }
.testimonial-text { font-size: 0.88rem; color: var(--text-2); line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: 0.75rem; }
.testimonial-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; font-weight: 800; color: #fff; flex-shrink: 0;
}
.testimonial-name { font-size: 0.82rem; font-weight: 700; color: var(--text-1); }
.testimonial-role { font-size: 0.72rem; color: rgba(240,240,255,0.75); margin-top: 0.1rem; }

/* ── Curriculum Accordion ─────────────────────────────────────────────────── */
.curriculum-section { padding: var(--space-20) 0; }
.curriculum-list { display: flex; flex-direction: column; gap: 0.75rem; }
.curriculum-item {
  background: var(--bg-surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  overflow: hidden; transition: border-color 0.2s;
}
.curriculum-item.open { border-color: rgba(232, 160, 32,0.3); }
.curriculum-header {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.5rem;
  cursor: pointer; user-select: none;
}
.curriculum-icon { font-size: 1.25rem; flex-shrink: 0; }
.curriculum-name { flex: 1; font-size: 0.95rem; font-weight: 700; color: var(--text-1); }
.curriculum-meta { font-size: 0.78rem; color: var(--text-3); white-space: nowrap; }
.curriculum-chevron {
  color: var(--text-3); transition: transform 0.25s ease; font-size: 0.75rem; flex-shrink: 0;
}
.curriculum-item.open .curriculum-chevron { transform: rotate(180deg); }
.curriculum-body {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.curriculum-item.open .curriculum-body { max-height: 400px; }
.curriculum-lessons { padding: 0 1.5rem 1.25rem; display: flex; flex-direction: column; gap: 0.5rem; }
.curriculum-lesson {
  display: flex; align-items: center; gap: 0.75rem;
  padding: 0.5rem 0; border-top: 1px solid rgba(255,255,255,0.04);
  font-size: 0.82rem; color: var(--text-2);
}
.curriculum-lesson:first-child { border-top: none; }
.curriculum-lesson .cl-icon { font-size: 0.8rem; flex-shrink: 0; width: 18px; text-align: center; }
.curriculum-lesson .cl-title { flex: 1; }
.curriculum-lesson .cl-lock { color: var(--text-3); font-size: 0.75rem; }
.curriculum-lesson .cl-duration { font-size: 0.72rem; color: var(--text-3); white-space: nowrap; }

/* Social proof bar */
.social-proof {
  display: flex; align-items: center; justify-content: center; gap: 2.5rem; flex-wrap: wrap;
  padding: var(--space-12) 0;
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border);
  margin: var(--space-12) 0;
}
.social-proof-stat { text-align: center; }
.social-proof-num { font-size: 1.75rem; font-weight: 900; color: var(--text-1); line-height: 1; }
.social-proof-label { font-size: 0.72rem; color: var(--text-3); margin-top: 0.2rem; }

/* Animated gradient underline for hero title */
.hero-title .gradient-underline {
  position: relative; display: inline-block;
}
.hero-title .gradient-underline::after {
  content: ''; position: absolute; bottom: -6px; right: 0; left: 0; height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--pink), var(--gold));
  border-radius: 2px;
  animation: underline-pulse 3s ease-in-out infinite;
}
@keyframes underline-pulse {
  0%,100% { opacity: 1; transform: scaleX(1); }
  50% { opacity: 0.7; transform: scaleX(0.95); }
}

/* ── Responsive ───────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .auth-main { padding: 1.25rem; align-items: flex-start; padding-top: 2rem; }
  .auth-card { padding: 1.75rem 1.25rem; }
  .dash-welcome { flex-direction: column; text-align: center; padding: 1.5rem; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .pricing-grid { grid-template-columns: 1fr; }
  .social-proof { gap: 1.5rem; }
}

/* ── נגישות גלובלית ────────────────────────────────────────────────── */
:focus-visible {
  outline: 2px solid #E8A020;
  outline-offset: 3px;
  border-radius: 4px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* ── מודול פיננסי ─────────────────────────────────────────────────── */
.finance-stat-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1.25rem 1.5rem;
  transition: border-color 0.2s;
}
.finance-stat-card:hover { border-color: rgba(232,160,32,0.3); }
.fstat-label { font-size: 0.78rem; color: rgba(240,240,255,0.55); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.35rem; }
.fstat-value { font-size: 1.8rem; font-weight: 900; color: #E8A020; }
.fstat-sub   { font-size: 0.75rem; color: rgba(240,240,255,0.62); margin-top: 0.2rem; }

.tier-pill      { display: inline-block; padding: 0.15rem 0.6rem; border-radius: 20px; font-size: 0.72rem; font-weight: 700; }
.tier-free      { background: rgba(16,185,129,0.12);  color: #10B981; }
.tier-developer { background: rgba(99,102,241,0.15);  color: #6366F1; }
.tier-business  { background: rgba(245,158,11,0.15);  color: #F59E0B; }

/* ============================================================
   IS 5568 / WCAG 2.0 AA — Accessibility (נגישות)
   ============================================================ */

/* ── Skip link ── */
.skip-link {
  position: absolute;
  top: -100px;
  left: 0;
  background: #00C4B3;
  color: #000;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  font-size: 1rem;
  z-index: 10000;
  text-decoration: none;
  border-radius: 0 0 8px 0;
  transition: top 0.2s;
}
.skip-link:focus {
  top: 0;
}

/* ── Focus visible ── */
:focus-visible {
  outline: 3px solid #00C4B3;
  outline-offset: 3px;
  border-radius: 4px;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid #00C4B3;
  outline-offset: 3px;
}

/* ============================================================
   THEME OVERRIDES — UX Stream B (dark/light toggle)
   Default (no attr) remains the existing dark design.
   [data-theme="dark"] re-asserts dark tokens for explicit opt-in.
   [data-theme="light"] provides a light-mode override.
   ============================================================ */

html[data-theme="dark"] {
  --bg-void: #050508;
  --bg-surface: #0D0D14;
  --bg-elevated: #13131E;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --text-1: #F0F0FF;
  --text-2: rgba(240, 240, 255, 0.7);
  --text-3: rgba(240, 240, 255, 0.62);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --purple-light: #F5C040;
}

/* Light mode TEMPORARILY DISABLED — vars match dark theme until full audit of hardcoded whites */
html[data-theme="light"] {
  color-scheme: light;
  --bg-void: #050508;
  --bg-surface: #0D0D14;
  --bg-elevated: #13131E;
  --bg-card: rgba(255, 255, 255, 0.04);
  --bg-card-hover: rgba(255, 255, 255, 0.07);
  --text-1: #F0F0FF;
  --text-2: rgba(240, 240, 255, 0.7);
  --text-3: rgba(240, 240, 255, 0.62);
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  --purple-light: #F5C040;
}
html[data-theme="light"] body { background: #050508; color: #F0F0FF; }

/* ============================================================
   SKELETON LOADER — shimmer
   ============================================================ */
.skeleton {
  display: block;
  background: linear-gradient(
    90deg,
    rgba(255,255,255,0.04) 0%,
    rgba(255,255,255,0.10) 50%,
    rgba(255,255,255,0.04) 100%
  );
  background-size: 200% 100%;
  border-radius: 8px;
  min-height: 0.75rem;
}
html[data-theme="light"] .skeleton {
  background: linear-gradient(
    90deg,
    rgba(10,10,20,0.05) 0%,
    rgba(10,10,20,0.10) 50%,
    rgba(10,10,20,0.05) 100%
  );
  background-size: 200% 100%;
}
.skeleton-line { height: 0.9rem; margin-block: 0.4rem; }
.skeleton-line-title { height: 1.2rem; width: 70%; }
.skeleton-line-short { width: 40%; }
.skeleton-image { width: 100%; aspect-ratio: 16/9; border-radius: 12px; margin-bottom: 0.75rem; }
.skeleton-avatar { width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto; }
.skeleton-card { padding: 1rem; border: 1px solid var(--border); border-radius: 16px; background: var(--bg-card); }
.skeleton-list-item { display: flex; gap: 0.75rem; align-items: center; padding: 0.75rem 0; }
.skeleton-list-col { flex: 1 1 auto; min-width: 0; }

@keyframes skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}
@media (prefers-reduced-motion: no-preference) {
  .skeleton { animation: skeleton-shimmer 1.4s linear infinite; }
}

.tier-pro       { background: rgba(232,160,32,0.15);  color: #E8A020; } /* legacy */

/* ============================================================
   H-02 + H-03 + M-01 — Hebrew typography guard
   Loosen tracking + raise line-height for he so descenders/diacritics
   don't clip; floor tiny labels at ~12.5px for legibility.
   ============================================================ */
html[lang^="he"] :where(h1, h2, h3, .hero-title, .dash-hero-name, .pricing-title) {
  letter-spacing: -0.01em;
  line-height: max(1.18, 1em);
}
html[lang^="he"] :where(.dash-hero-stat-lbl, .dash-hero-time, .lc-cat-badge, .lc-duration) {
  font-size: max(0.78rem, 1em);
}

/* ============================================================
   Glass-surface fallback — opaque backgrounds when
   backdrop-filter is unsupported (older Firefox, etc.).
   ============================================================ */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: rgba(5, 5, 8, 0.96); }
  .hero-stat,
  .glass-card,
  .category-card { background: rgba(20, 20, 28, 0.92); }
}

/* Mobile: iOS Safari fix — background-attachment:fixed broken on iOS.
   visual-upgrade.css handles the body::after pseudo-element approach. */
@media (max-width: 768px) {
  html {
    background-image: none;
    background-attachment: scroll;
    background-color: #050508; /* fallback if image hasn't loaded */
  }
}
/* Ensure footer nav links meet 44px touch target height on mobile (WCAG 2.5.5) */
@media (max-width: 768px) {
  .footer-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding-block: 0.4rem;
  }
}
