/*
Theme Name: Neveen Ali Arabic Academy v3
Theme URI: https://arabic4all.org
Author: Neveen Ali | Design by Tausif Torun
Author URI: https://www.facebook.com/tausif.torun
Description: Modern green Arabic learning platform. Full membership system with Stripe & PayPal. Free: Alphabet + Vocabulary. Premium: full access.
Version: 3.0.0
License: GNU General Public License v2 or later
Text Domain: neveen-arabic-v3
Tags: education, arabic, language-learning, responsive, membership
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
*/

/* =====================================================
   GOOGLE FONTS + ARABIC FONT
   ===================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700;800;900&family=Sora:wght@700;800;900&family=Noto+Naskh+Arabic:wght@400;500;600;700&display=swap');

/* =====================================================
   CSS VARIABLES — GREEN THEME
   ===================================================== */
:root {
  /* Brand Colors */
  --primary:        #1B6B3A;
  --primary-light:  #2E8B57;
  --primary-dark:   #0F4520;
  --primary-glow:   rgba(27,107,58,.15);
  --secondary:      #F0A500;
  --secondary-light:#FFD166;
  --accent:         #06D6A0;
  --accent2:        #118AB2;

  /* Backgrounds */
  --bg:             #F4FAF6;
  --bg2:            #FFFFFF;
  --bg3:            #EAF5EE;
  --surface:        #FFFFFF;
  --surface2:       #F0F7F2;

  /* Text */
  --fg:             #0D2418;
  --fg2:            #1E3D2A;
  --muted-fg:       #5A7A65;
  --muted:          #EAF2ED;

  /* UI */
  --border:         #C8E0CF;
  --border2:        #A8D4B5;
  --radius:         12px;
  --radius-lg:      20px;
  --radius-xl:      28px;
  --shadow:         0 2px 16px rgba(27,107,58,.08);
  --shadow-lg:      0 8px 40px rgba(27,107,58,.15);
  --shadow-xl:      0 20px 60px rgba(27,107,58,.20);

  /* Fonts */
  --font-body:      'Inter', sans-serif;
  --font-heading:   'Sora', sans-serif;
  --font-arabic:    'Noto Naskh Arabic', serif;
}

/* =====================================================
   RESET & BASE
   ===================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--fg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a  { color: var(--primary); text-decoration: none; }
ul { list-style: none; }
h1,h2,h3,h4,h5 { font-family: var(--font-heading); line-height: 1.25; color: var(--fg); }
h1 { font-size: clamp(2rem,5vw,3.2rem); }
h2 { font-size: clamp(1.5rem,3.5vw,2.25rem); }
h3 { font-size: 1.25rem; }
p  { color: var(--muted-fg); line-height: 1.75; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* =====================================================
   BUTTONS
   ===================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .45rem;
  padding: .7rem 1.6rem; border-radius: 50px; font-weight: 700;
  font-family: var(--font-body); font-size: .9rem;
  cursor: pointer; transition: all .22s; border: 2px solid transparent;
  text-decoration: none; white-space: nowrap;
}
.btn-primary {
  background: var(--primary); color: #fff; border-color: var(--primary);
  box-shadow: 0 4px 18px rgba(27,107,58,.3);
}
.btn-primary:hover { background: var(--primary-dark); border-color: var(--primary-dark); transform: translateY(-2px); box-shadow: 0 8px 28px rgba(27,107,58,.4); }
.btn-secondary { background: var(--secondary); color: #fff; border-color: var(--secondary); box-shadow: 0 4px 18px rgba(240,165,0,.3); }
.btn-secondary:hover { background: #d4920a; transform: translateY(-2px); }
.btn-outline  { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-ghost    { background: rgba(255,255,255,.12); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.22); }
.btn-white    { background: #fff; color: var(--primary); border-color: #fff; }
.btn-white:hover { background: var(--bg3); }
.btn-lg  { padding: .9rem 2rem; font-size: 1rem; }
.btn-sm  { padding: .5rem 1.1rem; font-size: .82rem; }
.btn-xl  { padding: 1.1rem 2.5rem; font-size: 1.05rem; }

/* =====================================================
   BADGES / TAGS
   ===================================================== */
.badge { display: inline-block; padding: .2rem .7rem; border-radius: 50px; font-size: .75rem; font-weight: 700; }
.badge-green   { background: #d4f0df; color: var(--primary); }
.badge-yellow  { background: #fff3cd; color: #7a5c00; }
.badge-blue    { background: #d1ecff; color: #1565c0; }
.badge-outline { border: 1.5px solid var(--border); color: var(--muted-fg); }
.section-tag {
  display: inline-flex; align-items: center; gap: .4rem;
  background: var(--primary-glow); color: var(--primary);
  padding: .35rem 1rem; border-radius: 50px; font-size: .82rem; font-weight: 700;
  border: 1px solid rgba(27,107,58,.18); margin-bottom: .75rem;
}

/* =====================================================
   NAVBAR
   ===================================================== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(27,107,58,.06);
  height: 68px;
}
.navbar .container {
  display: flex; align-items: center; gap: 1rem;
  height: 68px;
}
.navbar-brand {
  display: flex; align-items: center; gap: .6rem;
  font-family: var(--font-heading); font-weight: 800;
  font-size: 1.05rem; color: var(--fg); flex-shrink: 0;
}
.brand-icon {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.1rem; flex-shrink: 0;
}
.navbar-links {
  display: flex; align-items: center; gap: .15rem;
  flex: 1; justify-content: center;
}
.navbar-links a {
  color: var(--muted-fg); font-size: .875rem; font-weight: 500;
  padding: .45rem .8rem; border-radius: 8px; transition: all .18s;
}
.navbar-links a:hover, .navbar-links a.active {
  color: var(--primary); background: var(--primary-glow);
}
.navbar-actions { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.navbar-toggle {
  display: none; background: none; border: none; cursor: pointer;
  font-size: 1.4rem; color: var(--fg); padding: .4rem;
}
/* Mobile menu */
.mobile-menu {
  display: none; position: fixed; top: 68px; left: 0; right: 0;
  background: #fff; border-bottom: 2px solid var(--border);
  padding: 1rem 1.5rem 1.5rem; z-index: 999;
  box-shadow: 0 8px 24px rgba(0,0,0,.1);
  flex-direction: column; gap: .35rem;
}
.mobile-menu.active { display: flex; }
.mobile-menu a {
  display: flex; align-items: center; gap: .65rem;
  padding: .75rem 1rem; border-radius: 10px;
  color: var(--fg); font-weight: 500; font-size: .95rem;
  transition: background .18s;
}
.mobile-menu a:hover { background: var(--bg3); color: var(--primary); }
.mobile-menu-divider { height: 1px; background: var(--border); margin: .5rem 0; }
.mobile-menu-actions { display: flex; gap: .75rem; padding-top: .5rem; }

/* =====================================================
   HERO
   ===================================================== */
.hero {
  min-height: 100vh;
  background: linear-gradient(135deg, #0a2e18 0%, #0F4520 40%, #1B6B3A 80%, #2E8B57 100%);
  position: relative; overflow: hidden;
  display: flex; align-items: center;
  padding-top: 68px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%2306D6A0' fill-opacity='0.04'%3E%3Cpath d='M50 50c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10-10-4.5-10-10zm-20 0c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10-10-4.5-10-10zM10 50c0-5.5 4.5-10 10-10s10 4.5 10 10-4.5 10-10 10S10 55.5 10 50z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-blob1, .hero-blob2 {
  position: absolute; border-radius: 50%; filter: blur(60px); pointer-events: none;
}
.hero-blob1 { width: 500px; height: 500px; background: rgba(6,214,160,.12); top: -100px; right: -100px; }
.hero-blob2 { width: 400px; height: 400px; background: rgba(240,165,0,.08); bottom: -80px; left: -80px; }
.hero .container {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 3rem; align-items: center;
  padding: 4rem 1.5rem;
  position: relative; z-index: 1;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(6,214,160,.15); border: 1px solid rgba(6,214,160,.3);
  color: var(--accent); padding: .4rem 1rem; border-radius: 50px;
  font-size: .82rem; font-weight: 700; margin-bottom: 1.25rem;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); animation: pulse-dot 2s ease-in-out infinite; }
.hero-arabic {
  font-family: var(--font-arabic); font-size: 1.15rem;
  color: rgba(255,255,255,.55); margin-bottom: .75rem; direction: rtl;
}
.hero h1 { color: #fff; margin-bottom: 1.25rem; }
.hero h1 .highlight-green { color: var(--accent); }
.hero h1 .highlight-yellow { color: var(--secondary-light); }
.hero-desc { color: rgba(255,255,255,.75); font-size: 1.05rem; margin-bottom: 2rem; max-width: 480px; }
.hero-buttons { display: flex; gap: 1rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.hero-stats {
  display: flex; gap: 2rem; flex-wrap: wrap;
  padding-top: 2rem; border-top: 1px solid rgba(255,255,255,.12);
}
.hero-stat .value { font-size: 1.5rem; font-weight: 800; color: #fff; font-family: var(--font-heading); }
.hero-stat .label { font-size: .78rem; color: rgba(255,255,255,.55); margin-top: .1rem; }

/* Hero image card */
.hero-image-wrap { position: relative; }
.hero-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-xl); overflow: hidden;
  backdrop-filter: blur(10px);
  box-shadow: 0 24px 60px rgba(0,0,0,.3);
}
.hero-card img { width: 100%; height: 360px; object-fit: cover; }
.hero-card-overlay {
  padding: 1.25rem 1.5rem;
  background: rgba(255,255,255,.06);
  border-top: 1px solid rgba(255,255,255,.12);
  display: flex; gap: 1rem;
}
.hero-card-stat { text-align: center; flex: 1; }
.hero-card-stat .num  { font-size: 1.3rem; font-weight: 800; color: var(--accent); font-family: var(--font-heading); }
.hero-card-stat .text { font-size: .72rem; color: rgba(255,255,255,.55); margin-top: .1rem; }
.hero-float-badge {
  position: absolute; top: 1.5rem; right: -1rem;
  background: #fff; border-radius: 12px; padding: .65rem 1rem;
  box-shadow: 0 8px 24px rgba(0,0,0,.18);
  display: flex; align-items: center; gap: .6rem; font-size: .82rem; font-weight: 600;
}
.hero-float-badge .hf-icon { font-size: 1.3rem; }

/* =====================================================
   FEATURE STRIP
   ===================================================== */
.feature-strip {
  background: var(--primary); padding: 1rem 0; overflow: hidden;
}
.feature-strip .container {
  display: flex; align-items: center; gap: 2rem; justify-content: center; flex-wrap: wrap;
}
.fs-item { display: flex; align-items: center; gap: .5rem; color: rgba(255,255,255,.85); font-size: .875rem; font-weight: 500; }
.fs-dot  { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }

/* =====================================================
   SECTIONS
   ===================================================== */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.section-heading { text-align: center; max-width: 640px; margin: 0 auto 3.5rem; }
.section-heading h2 { margin-bottom: .75rem; }
.section-heading p { font-size: 1.05rem; }

/* =====================================================
   LEARNING PATHS GRID
   ===================================================== */
.paths-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; }
.path-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: all .25s; cursor: pointer; position: relative; overflow: hidden;
  box-shadow: var(--shadow);
}
.path-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0); transform-origin: left; transition: transform .3s;
}
.path-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: var(--border2); }
.path-card:hover::before { transform: scaleX(1); }
.path-num { position: absolute; top: 1.25rem; right: 1.25rem; width: 28px; height: 28px; border-radius: 50%; background: var(--bg3); color: var(--primary); font-size: .75rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.path-icon { font-size: 2.25rem; margin-bottom: .9rem; }
.path-card h3 { font-size: 1.05rem; margin-bottom: .25rem; }
.path-ar { font-family: var(--font-arabic); font-size: .95rem; color: var(--muted-fg); margin-bottom: .6rem; }
.path-desc { font-size: .85rem; margin-bottom: 1rem; line-height: 1.65; }
.path-features { display: flex; flex-direction: column; gap: .3rem; margin-bottom: 1.1rem; }
.path-features li { font-size: .8rem; color: var(--muted-fg); display: flex; align-items: center; gap: .4rem; }
.path-features li::before { content: '✓'; color: var(--primary); font-weight: 700; flex-shrink: 0; }
.path-cta { color: var(--primary); font-weight: 700; font-size: .875rem; display: flex; align-items: center; gap: .3rem; }
.path-free-tag { position: absolute; top: 1.25rem; left: 1.25rem; }

/* =====================================================
   LESSON CARDS
   ===================================================== */
.lessons-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.lesson-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: all .25s; box-shadow: var(--shadow);
  text-decoration: none; color: var(--fg);
}
.lesson-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: var(--border2); }
.lesson-img { position: relative; height: 180px; overflow: hidden; }
.lesson-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.lesson-card:hover .lesson-img img { transform: scale(1.06); }
.lesson-img-play {
  position: absolute; inset: 0; background: rgba(27,107,58,.5);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .25s;
}
.lesson-card:hover .lesson-img-play { opacity: 1; }
.lesson-img-play span { width: 44px; height: 44px; background: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1rem; }
.lesson-body { padding: 1.1rem 1.25rem; }
.lesson-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: .6rem; }
.lesson-rating { font-size: .8rem; color: var(--secondary); font-weight: 700; }
.lesson-title { font-weight: 700; font-size: .95rem; margin-bottom: .2rem; }
.lesson-title-ar { font-family: var(--font-arabic); font-size: .875rem; color: var(--muted-fg); margin-bottom: .6rem; }
.lesson-info { display: flex; align-items: center; gap: .6rem; font-size: .78rem; color: var(--muted-fg); }

/* =====================================================
   TEACHER SECTION
   ===================================================== */
.teacher-section { background: var(--bg3); }
.teacher-grid {
  display: grid; grid-template-columns: 420px 1fr;
  gap: 4rem; align-items: center;
}
.teacher-img-wrap { position: relative; }
.teacher-img-wrap img {
  width: 100%; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl); object-fit: cover;
  aspect-ratio: 4/5;
}
.teacher-img-badge {
  position: absolute; bottom: 1.5rem; left: -1.5rem;
  background: var(--primary); color: #fff; border-radius: 14px;
  padding: 1rem 1.25rem; text-align: center;
  box-shadow: 0 8px 24px rgba(27,107,58,.4);
}
.teacher-img-badge .big { font-size: 1.5rem; font-weight: 800; font-family: var(--font-heading); }
.teacher-img-badge .sm  { font-size: .72rem; opacity: .8; margin-top: .1rem; }
.teacher-stats { display: grid; grid-template-columns: repeat(2,1fr); gap: 1rem; margin-top: 2rem; }
.teacher-stat {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1rem; text-align: center; box-shadow: var(--shadow);
}
.teacher-stat .ico { font-size: 1.5rem; margin-bottom: .3rem; }
.teacher-stat .val { font-size: 1.3rem; font-weight: 800; color: var(--primary); font-family: var(--font-heading); }
.teacher-stat .lbl { font-size: .78rem; color: var(--muted-fg); margin-top: .1rem; }

/* =====================================================
   TESTIMONIALS
   ===================================================== */
.testimonials-section { background: linear-gradient(135deg, #0a2e18 0%, #1B6B3A 100%); }
.testimonials-section .section-heading h2 { color: #fff; }
.testimonials-section .section-heading p  { color: rgba(255,255,255,.65); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1.25rem; }
.testimonial-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.12);
  border-radius: var(--radius-lg); padding: 1.75rem;
  transition: transform .25s;
}
.testimonial-card:hover { transform: translateY(-4px); }
.testimonial-stars { color: var(--secondary-light); font-size: 1rem; margin-bottom: .75rem; letter-spacing: .1rem; }
.testimonial-text { color: rgba(255,255,255,.85); font-size: .9rem; line-height: 1.75; margin-bottom: 1.25rem; font-style: italic; }
.testimonial-author { display: flex; align-items: center; gap: .75rem; }
.testimonial-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-weight: 700; font-size: 1rem;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.testimonial-name    { font-weight: 700; color: #fff; font-size: .9rem; }
.testimonial-country { font-size: .78rem; color: rgba(255,255,255,.5); margin-top: .1rem; }

/* =====================================================
   CTA BANNER
   ===================================================== */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--accent2) 100%);
  padding: 5rem 0; text-align: center; position: relative; overflow: hidden;
}
.cta-banner::after {
  content: 'بِسْمِ اللَّهِ';
  position: absolute; right: 2rem; bottom: 1.5rem;
  font-family: var(--font-arabic); font-size: 1.5rem;
  color: rgba(255,255,255,.1);
}
.cta-banner h2 { color: #fff; font-size: clamp(1.6rem,4vw,2.4rem); margin-bottom: .75rem; }
.cta-banner p  { color: rgba(255,255,255,.75); max-width: 520px; margin: 0 auto 2rem; font-size: 1.05rem; }

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
  background: #0d2b1a;
  color: rgba(255,255,255,.8);
  padding: 4rem 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 1.8fr 1fr 1fr 1fr;
  gap: 2.5rem; padding-bottom: 3rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.footer-brand {
  display: flex; align-items: center; gap: .65rem;
  font-family: var(--font-heading); font-weight: 800; font-size: 1rem;
  color: #fff; margin-bottom: 1rem;
}
.footer-brand .icon { font-size: 1.4rem; }
.footer-desc { font-size: .85rem; opacity: .55; line-height: 1.75; max-width: 22rem; }
.footer-socials { display: flex; gap: .6rem; margin-top: 1.25rem; flex-wrap: wrap; }
.footer-social-btn {
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.65); transition: all .2s; text-decoration: none;
}
.footer-social-btn:hover { transform: translateY(-3px); color: #fff; }
.footer-social-yt:hover  { background: #FF0000; border-color: #FF0000; }
.footer-social-ig:hover  { background: linear-gradient(45deg,#f09433,#e6683c,#dc2743,#cc2366,#bc1888); border-color: #e6683c; }
.footer-social-tg:hover  { background: #0088cc; border-color: #0088cc; }
.footer-social-fb:hover  { background: #1877F2; border-color: #1877F2; }
.footer-social-tt:hover  { background: #111; border-color: #555; }
.footer-social-wa:hover  { background: #25D366; border-color: #25D366; }
.site-footer h4 { color: #fff; font-size: .875rem; font-weight: 700; margin-bottom: 1rem; }
.site-footer a  { display: block; color: rgba(255,255,255,.5); font-size: .85rem; margin-bottom: .6rem; transition: color .18s; text-decoration: none; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  padding: 1.5rem 0; display: flex; align-items: center;
  justify-content: space-between; flex-wrap: wrap; gap: .75rem;
  font-size: .8rem; color: rgba(255,255,255,.3);
}
.footer-designer a { display: inline; color: rgba(255,255,255,.5); text-decoration: underline; }
.footer-designer a:hover { color: var(--accent); }

/* =====================================================
   AUTH PAGES (LOGIN / REGISTER)
   ===================================================== */
.auth-wrapper {
  min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr;
  padding-top: 68px;
}
.auth-visual {
  background: linear-gradient(160deg, #0a2e18 0%, #1B6B3A 100%);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 3rem 2.5rem; text-align: center; position: relative; overflow: hidden;
}
.auth-visual::before {
  content: '';
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: rgba(6,214,160,.08); top: -100px; right: -100px;
}
.auth-visual-arabic {
  font-family: var(--font-arabic); font-size: 4rem; color: rgba(255,255,255,.12);
  line-height: 1.3; position: absolute; bottom: 2rem; right: 1.5rem;
}
.auth-visual h2 { color: #fff; font-size: 1.8rem; margin-bottom: .75rem; }
.auth-visual p  { color: rgba(255,255,255,.65); max-width: 320px; }
.auth-visual-features { margin-top: 2rem; display: flex; flex-direction: column; gap: .65rem; width: 100%; max-width: 300px; }
.auth-vf { display: flex; align-items: center; gap: .75rem; background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: 10px; padding: .65rem 1rem; }
.auth-vf span { color: rgba(255,255,255,.8); font-size: .875rem; }
.auth-form-side {
  display: flex; flex-direction: column; justify-content: center;
  padding: 3rem 2.5rem; background: var(--bg);
  overflow-y: auto;
}
.auth-form-inner { max-width: 420px; width: 100%; margin: 0 auto; }
.auth-logo-link { display: flex; align-items: center; gap: .6rem; margin-bottom: 2rem; color: var(--fg); font-weight: 800; }
.auth-logo-link .brand-icon { width: 34px; height: 34px; font-size: .95rem; }
.auth-title { font-size: 1.75rem; margin-bottom: .4rem; }
.auth-subtitle { color: var(--muted-fg); font-size: .925rem; margin-bottom: 2rem; }
.auth-form { display: flex; flex-direction: column; gap: 1.1rem; }
.auth-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.auth-field { display: flex; flex-direction: column; gap: .35rem; }
.auth-field label { font-size: .82rem; font-weight: 700; color: var(--fg2); }
.auth-field label .req { color: #e74c3c; }
.auth-input {
  width: 100%; padding: .75rem 1rem; border: 2px solid var(--border);
  border-radius: 10px; font-size: .9rem; font-family: var(--font-body);
  background: #fff; color: var(--fg); transition: border-color .2s, box-shadow .2s;
}
.auth-input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px rgba(27,107,58,.1); }
.auth-pw-wrap { position: relative; }
.auth-pw-wrap .auth-input { padding-right: 3rem; }
.auth-pw-eye {
  position: absolute; right: .85rem; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; font-size: 1rem; opacity: .5; transition: opacity .18s;
}
.auth-pw-eye:hover { opacity: 1; }
.auth-row-check { display: flex; align-items: center; justify-content: space-between; gap: .5rem; }
.auth-check { display: flex; align-items: center; gap: .5rem; font-size: .85rem; cursor: pointer; }
.auth-check input { accent-color: var(--primary); width: 15px; height: 15px; }
.auth-link { color: var(--primary); font-size: .85rem; font-weight: 600; }
.auth-submit { width: 100%; padding: .85rem; font-size: 1rem; font-weight: 700; margin-top: .25rem; }
.auth-switch { text-align: center; font-size: .875rem; color: var(--muted-fg); margin-top: .75rem; }
.auth-switch a { color: var(--primary); font-weight: 700; }
.auth-alert-error   { background: #fff0f0; color: #c0392b; border: 1px solid #f5c6c6; border-radius: 8px; padding: .75rem 1rem; font-size: .875rem; }
.auth-alert-success { background: #f0fff4; color: #1a7a3a; border: 1px solid #b2dfcc; border-radius: 8px; padding: .75rem 1rem; font-size: .875rem; }
.auth-divider { display: flex; align-items: center; gap: .75rem; color: var(--muted-fg); font-size: .8rem; }
.auth-divider::before, .auth-divider::after { content:''; flex:1; height:1px; background:var(--border); }
@media (max-width: 768px) {
  .auth-wrapper { grid-template-columns: 1fr; }
  .auth-visual  { display: none; }
  .auth-form-side { padding: 2rem 1.25rem; min-height: calc(100vh - 68px); }
}

/* =====================================================
   STUDENT DASHBOARD
   ===================================================== */
.dashboard-wrapper {
  display: grid; grid-template-columns: 260px 1fr;
  min-height: calc(100vh - 68px); margin-top: 68px;
  background: var(--bg);
}
.dash-sidebar {
  background: #060e09; padding: 1.5rem 1rem;
  display: flex; flex-direction: column; gap: 1rem;
  position: sticky; top: 68px; height: calc(100vh - 68px);
  overflow-y: auto;
}
.dash-user-card { text-align: center; padding: 1.25rem .5rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.dash-avatar {
  width: 60px; height: 60px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 1.6rem; font-weight: 800; font-family: var(--font-heading);
  display: flex; align-items: center; justify-content: center; margin: 0 auto .75rem;
  border: 3px solid rgba(255,255,255,.15);
}
.dash-user-name  { color: #fff; font-weight: 700; font-size: .95rem; }
.dash-user-email { font-size: .72rem; color: rgba(255,255,255,.4); margin-top: .2rem; word-break: break-all; }
.dash-badge-plan {
  display: inline-block; margin-top: .65rem; padding: .25rem .85rem;
  border-radius: 50px; font-size: .75rem; font-weight: 700;
}
.dash-badge-plan.paid { background: linear-gradient(135deg,#FFD700,#FFA500); color: #1a0e05; }
.dash-badge-plan.free { background: rgba(255,255,255,.08); color: rgba(255,255,255,.6); }
.dash-nav { display: flex; flex-direction: column; gap: .2rem; margin-top: .5rem; }
.dash-nav-link {
  display: flex; align-items: center; gap: .65rem;
  padding: .65rem .9rem; border-radius: 10px;
  color: rgba(255,255,255,.55); font-size: .875rem; font-weight: 500;
  transition: all .18s; cursor: pointer; text-decoration: none;
}
.dash-nav-link:hover, .dash-nav-link.active {
  background: var(--primary); color: #fff;
}
.dash-nav-link .nav-icon { font-size: 1rem; flex-shrink: 0; }
.dash-upgrade-box {
  background: linear-gradient(135deg, rgba(27,107,58,.4), rgba(6,214,160,.15));
  border: 1px solid rgba(6,214,160,.25); border-radius: 12px;
  padding: 1rem; text-align: center; margin-top: .5rem;
}
.dash-upgrade-box .up-title { color: var(--accent); font-weight: 700; font-size: .875rem; margin-bottom: .35rem; }
.dash-upgrade-box p { font-size: .78rem; color: rgba(255,255,255,.55); margin-bottom: .75rem; }
.dash-logout { display: flex; align-items: center; gap: .6rem; padding: .65rem .9rem; border-radius: 10px; color: rgba(255,100,100,.65); font-size: .875rem; transition: all .18s; margin-top: auto; cursor: pointer; text-decoration: none; }
.dash-logout:hover { background: rgba(255,50,50,.1); color: #ff8080; }
.dash-main { padding: 2rem 2.5rem; overflow-y: auto; }
.dash-welcome {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary));
  border-radius: var(--radius-lg); padding: 1.75rem 2rem;
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
  box-shadow: 0 8px 30px rgba(27,107,58,.25);
}
.dash-welcome h1 { color: #fff; font-size: 1.35rem; margin-bottom: .25rem; }
.dash-welcome p  { color: rgba(255,255,255,.65); font-size: .875rem; margin: 0; }
.dash-level-pill { padding: .45rem 1.1rem; border-radius: 50px; font-weight: 700; font-size: .82rem; border: 2px solid; }
.dash-section-title { font-size: 1.1rem; font-weight: 800; margin: 0 0 1.25rem; padding-bottom: .6rem; border-bottom: 2px solid var(--border); color: var(--fg); display: flex; align-items: center; gap: .5rem; }
.dash-section { display: none; }
.dash-section.active { display: block; }
.dash-stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; margin-bottom: 1.5rem; }
.dash-stat-card {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; text-align: center; box-shadow: var(--shadow);
  transition: transform .2s;
}
.dash-stat-card:hover { transform: translateY(-2px); }
.dash-stat-icon { font-size: 1.65rem; margin-bottom: .4rem; }
.dash-stat-val  { font-size: 1.6rem; font-weight: 800; color: var(--primary); font-family: var(--font-heading); line-height: 1; }
.dash-stat-lbl  { font-size: .75rem; color: var(--muted-fg); margin-top: .25rem; }
.dash-prog-card {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1.25rem; box-shadow: var(--shadow); margin-bottom: 1.5rem;
}
.dash-prog-header { display: flex; justify-content: space-between; font-weight: 700; font-size: .9rem; margin-bottom: .65rem; }
.dash-prog-bar { height: 10px; background: var(--muted); border-radius: 5px; overflow: hidden; }
.dash-prog-fill { height: 100%; background: linear-gradient(90deg, var(--primary), var(--accent)); border-radius: 5px; transition: width .8s cubic-bezier(.4,0,.2,1); }
.dash-quick-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: .85rem; margin-bottom: 1.5rem; }
.dash-quick-card {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 1rem; text-align: center; text-decoration: none; color: var(--fg);
  display: flex; flex-direction: column; align-items: center; gap: .4rem;
  transition: all .2s; position: relative; font-size: .82rem; font-weight: 600;
  box-shadow: var(--shadow);
}
.dash-quick-card:hover:not(.locked) { transform: translateY(-3px); border-color: var(--primary); box-shadow: var(--shadow-lg); }
.dash-quick-card.locked { opacity: .6; cursor: not-allowed; background: #f5f5f5; }
.dash-quick-icon  { font-size: 1.75rem; }
.dash-lock-icon   { position: absolute; top: .5rem; right: .5rem; font-size: .7rem; }
.dash-done-badge  { position: absolute; top: .5rem; right: .5rem; width: 18px; height: 18px; background: var(--primary); color: #fff; border-radius: 50%; font-size: .6rem; display: flex; align-items: center; justify-content: center; }
.dash-progress-list { display: flex; flex-direction: column; gap: .65rem; }
.dash-prog-item {
  background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--radius); padding: 1rem 1.25rem;
  display: flex; align-items: center; gap: 1rem; box-shadow: var(--shadow);
  transition: border-color .18s;
}
.dash-prog-item:hover { border-color: var(--border2); }
.dash-prog-item.locked { opacity: .65; }
.dash-prog-icon { font-size: 1.4rem; flex-shrink: 0; width: 2rem; text-align: center; }
.dash-prog-info { flex: 1; }
.dash-prog-name { font-weight: 700; font-size: .9rem; }
.dash-prog-sub  { font-size: .78rem; color: var(--muted-fg); margin-top: .2rem; }
.dash-prog-sub a { color: var(--primary); font-weight: 600; }
.status-badge { padding: .2rem .7rem; border-radius: 50px; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.sb-done    { background: #d4f0df; color: var(--primary-dark); }
.sb-pending { background: #fff3cd; color: #7a5c00; }
.sb-locked  { background: #fce4ec; color: #c62828; }
.dash-quiz-wrap { overflow-x: auto; }
.dash-quiz-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.dash-quiz-table th { background: var(--primary); color: #fff; padding: .75rem 1rem; text-align: left; font-size: .82rem; }
.dash-quiz-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); font-size: .875rem; }
.dash-quiz-table tr:last-child td { border-bottom: none; }
.grade-a { background: #d4f0df; color: #1B6B3A; border-radius: 50px; padding: .15rem .6rem; font-size: .72rem; font-weight: 700; }
.grade-b { background: #d1ecff; color: #1565c0; border-radius: 50px; padding: .15rem .6rem; font-size: .72rem; font-weight: 700; }
.grade-c { background: #fff3cd; color: #7a5c00; border-radius: 50px; padding: .15rem .6rem; font-size: .72rem; font-weight: 700; }
.grade-d { background: #fce4ec; color: #c62828; border-radius: 50px; padding: .15rem .6rem; font-size: .72rem; font-weight: 700; }
.dash-badges-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 1rem; }
.dash-badge-card {
  background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; text-align: center; box-shadow: var(--shadow); transition: transform .2s;
}
.dash-badge-card.earned { border-color: var(--secondary); background: linear-gradient(135deg,#fffbf0,#fff); }
.dash-badge-card.earned:hover { transform: translateY(-3px); }
.dash-badge-card.locked { opacity: .45; filter: grayscale(1); }
.dash-badge-icon { font-size: 2rem; margin-bottom: .5rem; }
.dash-badge-name { font-weight: 700; font-size: .875rem; margin-bottom: .2rem; }
.dash-badge-desc { font-size: .72rem; color: var(--muted-fg); }
.dash-badge-status { font-size: .72rem; font-weight: 700; margin-top: .4rem; }
.dash-empty { text-align: center; padding: 3rem 1.5rem; background: var(--surface); border-radius: var(--radius); border: 1.5px solid var(--border); }
.dash-empty .em-icon { font-size: 3rem; margin-bottom: .75rem; }
.dash-empty p { color: var(--muted-fg); margin-bottom: 1.25rem; }
.dash-account-grid { display: grid; grid-template-columns: 1fr 240px; gap: 1.5rem; }
.dash-info-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.dash-info-table th { background: var(--bg3); padding: .75rem 1rem; text-align: left; font-size: .82rem; font-weight: 700; width: 150px; }
.dash-info-table td { padding: .75rem 1rem; border-bottom: 1px solid var(--border); font-size: .875rem; }
.dash-info-table tr:last-child td, .dash-info-table tr:last-child th { border-bottom: none; }
.dash-account-actions { display: flex; flex-direction: column; gap: .75rem; }

/* Payment section in dashboard */
.pay-status-card {
  display: flex; align-items: center; gap: 1rem;
  border-radius: var(--radius-lg); padding: 1.25rem 1.5rem;
  margin-bottom: 1.75rem; border: 2px solid;
}
.pay-status-card.paid { background: linear-gradient(135deg,#f0fff4,#e8f5e9); border-color: var(--primary); }
.pay-status-card.free { background: linear-gradient(135deg,#fffbf0,#fff3e0); border-color: var(--secondary); }
.pay-status-icon { font-size: 2.25rem; flex-shrink: 0; }
.pay-status-title{ font-weight: 800; font-size: 1.1rem; }
.pay-status-desc { font-size: .85rem; color: var(--muted-fg); margin-top: .2rem; }
.pay-plans-grid  { display: grid; grid-template-columns: 1fr 1.1fr; gap: 1.5rem; }
.pay-plan { border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem; background: var(--surface); position: relative; }
.pay-plan.premium { border-color: var(--secondary); background: linear-gradient(135deg,#fffbf0,#fff); }
.pay-plan-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--secondary); color: #1a0e05; padding: .2rem 1rem; border-radius: 50px; font-size: .75rem; font-weight: 800; white-space: nowrap; }
.pay-plan-name  { font-size: 1rem; font-weight: 800; margin-bottom: .4rem; }
.pay-plan-price { font-size: 1.8rem; font-weight: 900; color: var(--primary); margin-bottom: .75rem; font-family: var(--font-heading); }
.pay-plan-price span { font-size: .9rem; font-weight: 400; color: var(--muted-fg); }
.pay-features { display: flex; flex-direction: column; gap: .35rem; margin-bottom: 1.25rem; font-size: .82rem; }
.pay-tabs { display: flex; gap: .45rem; margin-bottom: .85rem; flex-wrap: wrap; }
.pay-tab { padding: .4rem .9rem; border-radius: 50px; border: 1.5px solid var(--border); background: #fff; cursor: pointer; font-size: .8rem; font-weight: 600; color: var(--muted-fg); transition: all .18s; }
.pay-tab.active, .pay-tab:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-glow); }
.pay-tab-content { display: none; }
.pay-tab-content.active { display: block; }
.pay-current { text-align: center; padding: .65rem; background: var(--bg3); border-radius: 8px; font-weight: 700; font-size: .875rem; color: var(--muted-fg); }
.pay-table { width: 100%; border-collapse: collapse; background: var(--surface); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.pay-table th { background: var(--primary); color: #fff; padding: .65rem 1rem; text-align: left; font-size: .8rem; }
.pay-table td { padding: .65rem 1rem; border-bottom: 1px solid var(--border); font-size: .85rem; }
.pay-table tr:last-child td { border-bottom: none; }

/* Certificate */
.cert-wrap { background: var(--surface); border: 3px solid var(--secondary); border-radius: var(--radius-xl); padding: 2.5rem; text-align: center; position: relative; overflow: hidden; box-shadow: var(--shadow-xl); }
.cert-wrap::before { content: ''; position: absolute; inset: 0; background: repeating-linear-gradient(45deg,transparent,transparent 30px,rgba(27,107,58,.015) 30px,rgba(27,107,58,.015) 31px); }
.cert-arabic { font-family: var(--font-arabic); font-size: 1.75rem; color: var(--primary); margin-bottom: .25rem; position: relative; }
.cert-stars  { color: var(--secondary); font-size: 1.1rem; letter-spacing: .4rem; margin: .4rem 0; }
.cert-wrap h2 { position: relative; font-size: 1.75rem; }
.cert-name  { font-family: var(--font-heading); font-size: 1.5rem; color: var(--primary); margin: .5rem 0; position: relative; }
.cert-course{ font-style: italic; color: var(--muted-fg); position: relative; }
.cert-meta  { display: flex; gap: 1.5rem; justify-content: center; flex-wrap: wrap; font-size: .8rem; color: var(--muted-fg); margin-top: 1.25rem; position: relative; }
.cert-sig   { margin-top: 1.75rem; border-top: 2px solid var(--border); padding-top: 1rem; position: relative; }
.cert-sig-name { font-family: var(--font-heading); font-size: 1.3rem; color: var(--primary); }

/* =====================================================
   UPGRADE PAGE
   ===================================================== */
.upgrade-hero { background: linear-gradient(135deg,#0a2e18 0%,#1B6B3A 60%,#06D6A0 100%); padding: 5rem 0; text-align: center; }
.upgrade-hero h1 { color: #fff; margin-bottom: .75rem; }
.upgrade-hero p  { color: rgba(255,255,255,.72); max-width: 520px; margin: 0 auto; font-size: 1.05rem; }
.pricing-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; max-width: 820px; margin: 0 auto; }
.pricing-card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-xl); padding: 2.25rem; position: relative; box-shadow: var(--shadow); }
.pricing-card.featured { border-color: var(--secondary); background: linear-gradient(135deg,#fffbf0,#fff); box-shadow: var(--shadow-xl); }
.pricing-popular { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--secondary); color: #1a0e05; padding: .25rem 1.25rem; border-radius: 50px; font-size: .78rem; font-weight: 800; white-space: nowrap; }
.pricing-name { font-size: 1.15rem; font-weight: 800; margin-bottom: .5rem; }
.pricing-price{ font-size: 2.25rem; font-weight: 900; color: var(--primary); font-family: var(--font-heading); margin-bottom: .4rem; }
.pricing-price span { font-size: .95rem; font-weight: 400; color: var(--muted-fg); }
.pricing-desc { font-size: .875rem; color: var(--muted-fg); padding-bottom: 1.25rem; border-bottom: 1px solid var(--border); margin-bottom: 1.25rem; }
.pricing-features { display: flex; flex-direction: column; gap: .5rem; margin-bottom: 1.75rem; }
.pricing-features li { font-size: .875rem; }
.pf-yes { color: var(--fg); } .pf-no { color: var(--muted-fg); opacity: .65; }
.pricing-btn { width: 100%; text-align: center; display: block; }
.pricing-current { text-align: center; padding: .75rem; background: var(--bg3); border-radius: 8px; font-weight: 700; font-size: .875rem; color: var(--muted-fg); }
.upgrade-faq { max-width: 680px; margin: 3rem auto 0; }
.faq-item { background: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius); padding: 1.25rem; margin-bottom: .75rem; box-shadow: var(--shadow); }
.faq-q { font-weight: 700; font-size: .925rem; margin-bottom: .4rem; color: var(--fg); }
.faq-a { font-size: .875rem; color: var(--muted-fg); line-height: 1.7; }

/* =====================================================
   404 PAGE
   ===================================================== */
.page-404 { min-height: 80vh; display: flex; align-items: center; justify-content: center; text-align: center; padding: 2rem; }
.page-404 .arabic-big { font-family: var(--font-arabic); font-size: 5rem; color: var(--primary); margin-bottom: .5rem; }
.page-404 h1 { font-size: 6rem; color: var(--muted-fg); line-height: 1; }
.page-404 p  { margin: 1rem 0 2rem; }

/* =====================================================
   UTILITIES
   ===================================================== */
.text-primary { color: var(--primary); }
.text-accent  { color: var(--accent); }
.text-yellow  { color: var(--secondary-light); }
.text-muted   { color: var(--muted-fg); }
.text-white   { color: #fff; }
.text-center  { text-align: center; }
.text-arabic  { font-family: var(--font-arabic); direction: rtl; }
.bg-green     { background: var(--bg3); }
.section-bg-dark { background: linear-gradient(135deg,#0a2e18,#1B6B3A); }
.mt-1{margin-top:.5rem}.mt-2{margin-top:1rem}.mt-3{margin-top:1.5rem}.mt-4{margin-top:2rem}
.mb-1{margin-bottom:.5rem}.mb-2{margin-bottom:1rem}.mb-3{margin-bottom:1.5rem}.mb-4{margin-bottom:2rem}
.flex-center { display: flex; align-items: center; }
.gap-1 { gap: .5rem; } .gap-2 { gap: 1rem; }

/* Animations */
@keyframes pulse-dot { 0%,100%{transform:scale(1);opacity:1} 50%{transform:scale(1.5);opacity:.7} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(24px)} to{opacity:1;transform:translateY(0)} }
@keyframes shake { 0%,100%{transform:translateX(0)} 20%,60%{transform:translateX(-6px)} 40%,80%{transform:translateX(6px)} }
.anim-fade { animation: fadeInUp .7s ease both; }
.anim-delay-1 { animation-delay: .15s; }
.anim-delay-2 { animation-delay: .3s; }
.anim-delay-3 { animation-delay: .45s; }

/* =====================================================
   MOBILE RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
  .paths-grid    { grid-template-columns: repeat(2,1fr); }
  .lessons-grid  { grid-template-columns: repeat(2,1fr); }
  .teacher-grid  { grid-template-columns: 1fr; gap: 2rem; }
  .teacher-img-badge { left: auto; right: 1rem; }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .testimonials-grid { grid-template-columns: repeat(2,1fr); }
  .dash-stats-grid { grid-template-columns: repeat(2,1fr); }
  .dash-quick-grid { grid-template-columns: repeat(4,1fr); }
  .dash-badges-grid{ grid-template-columns: repeat(3,1fr); }
}
@media (max-width: 900px) {
  .dashboard-wrapper { grid-template-columns: 1fr; margin-top: 68px; }
  .dash-sidebar { position: static; height: auto; flex-direction: row; flex-wrap: wrap; gap: .5rem; padding: .75rem 1rem; }
  .dash-user-card { display: none; }
  .dash-upgrade-box { display: none; }
  .dash-nav { flex-direction: row; flex-wrap: wrap; gap: .3rem; }
  .dash-nav-link { padding: .4rem .75rem; font-size: .78rem; }
  .dash-logout { margin-top: 0; }
  .dash-main { padding: 1.25rem; }
  .pay-plans-grid { grid-template-columns: 1fr; }
  .dash-account-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .navbar-links { display: none; }
  .navbar-toggle { display: flex; align-items: center; justify-content: center; margin-left: auto; }
  .navbar-actions .btn-ghost { display: none; }
  .hero .container { grid-template-columns: 1fr; padding: 2.5rem 1.5rem; gap: 2rem; }
  .hero-image-wrap { display: none; }
  .hero-buttons .btn { flex: 1; justify-content: center; }
  .section { padding: 3rem 0; }
  .paths-grid    { grid-template-columns: 1fr; }
  .lessons-grid  { grid-template-columns: 1fr; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .footer-grid   { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
  .pricing-grid  { grid-template-columns: 1fr; max-width: 400px; }
  .cta-banner    { padding: 3rem 1rem; }
  .dash-stats-grid { grid-template-columns: repeat(2,1fr); }
  .dash-quick-grid { grid-template-columns: repeat(3,1fr); }
  .dash-badges-grid{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 500px) {
  .dash-quick-grid { grid-template-columns: repeat(2,1fr); }
  .dash-badges-grid{ grid-template-columns: repeat(2,1fr); }
  .hero-stats    { gap: 1rem; }
  .btn-lg        { padding: .8rem 1.5rem; font-size: .92rem; }
  .section-heading h2 { font-size: 1.5rem; }
}

/* Print */
@media print {
  .navbar,.dash-sidebar,.site-footer,.cta-banner { display: none !important; }
  .dashboard-wrapper { grid-template-columns: 1fr; }
  .cert-wrap { border: 3px solid #000; box-shadow: none; }
}

/* =====================================================
   INNER PAGE IMPROVEMENTS
   ===================================================== */

/* Page header banner used across subpages */
.page-header-banner {
  background: linear-gradient(135deg, var(--primary) 0%, #0d5c2f 100%);
  color: #fff;
  padding: 2.5rem 0 2rem;
  margin-bottom: 2rem;
}
.page-header-banner h1 { color: #fff; font-size: 2rem; margin-bottom: .4rem; }
.page-header-banner p  { color: rgba(255,255,255,.8); font-size: 1rem; margin: 0; }

/* Progress bar */
.progress-bar {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  padding: .75rem 0;
}
.progress-bar .container {
  display: flex; align-items: center; gap: 1rem;
}
.progress-track {
  flex: 1; height: 8px; background: var(--border);
  border-radius: 99px; overflow: hidden;
}
.progress-fill {
  height: 100%; background: var(--accent);
  border-radius: 99px; transition: width .4s ease;
}
.progress-label { font-size: .8rem; font-weight: 700; color: var(--accent); min-width: 2.5rem; }

/* Letter cards (Alphabet page) */
.letter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.letter-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.letter-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(6,214,160,.15);
}
.letter-card .arabic {
  font-family: var(--font-arabic);
  font-size: 2.8rem;
  line-height: 1.2;
  color: var(--primary);
  margin-bottom: .4rem;
}
.letter-card .name { font-weight: 700; font-size: .95rem; color: var(--fg); }
.letter-card .transliteration { font-size: .8rem; color: var(--muted-fg); margin-top: .2rem; }
.letter-card .forms {
  display: flex; justify-content: center; gap: .4rem;
  margin-top: .75rem; font-family: var(--font-arabic);
  font-size: 1rem; color: var(--muted-fg);
  flex-wrap: wrap;
}
.letter-card .forms span {
  background: rgba(6,214,160,.08);
  border: 1px solid rgba(6,214,160,.2);
  border-radius: 6px; padding: .15rem .4rem;
  color: var(--primary);
}
.letter-card.active {
  border-color: var(--primary);
  background: rgba(27,107,58,.06);
}

/* Vocabulary cards */
.vocab-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}
.vocab-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  transition: all .2s;
  cursor: pointer;
}
.vocab-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(6,214,160,.12);
}
.vocab-card .arabic {
  font-family: var(--font-arabic);
  font-size: 1.8rem;
  color: var(--primary);
  margin-bottom: .5rem;
  direction: rtl;
}
.vocab-card .english { font-weight: 700; font-size: .95rem; color: var(--fg); }
.vocab-card .transliteration { font-size: .8rem; color: var(--muted-fg); margin-top: .25rem; font-style: italic; }
.vocab-card .audio-btn {
  display: inline-flex; align-items: center; gap: .3rem;
  margin-top: .75rem; padding: .35rem .75rem;
  background: rgba(6,214,160,.1); border: 1px solid rgba(6,214,160,.25);
  border-radius: 50px; font-size: .78rem; font-weight: 600;
  color: var(--primary); cursor: pointer; transition: all .2s;
}
.vocab-card .audio-btn:hover { background: var(--accent); color: #fff; }

/* Story cards */
.story-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.story-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: all .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.story-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(6,214,160,.13);
}
.story-card img { width: 100%; height: 180px; object-fit: cover; }
.story-card-body { padding: 1.25rem; }
.story-card-body h3 { font-size: 1.05rem; margin-bottom: .4rem; color: var(--fg); }
.story-card-body p { font-size: .85rem; color: var(--muted-fg); line-height: 1.6; }
.story-card-meta {
  display: flex; gap: .5rem; align-items: center;
  margin-top: .75rem; flex-wrap: wrap;
}

/* Grammar & Quiz section tabs */
.page-tabs {
  display: flex; gap: .5rem; flex-wrap: wrap;
  border-bottom: 2px solid var(--border);
  margin-bottom: 2rem;
}
.page-tab {
  padding: .65rem 1.25rem;
  border: none; background: none; cursor: pointer;
  font-weight: 600; font-size: .9rem;
  color: var(--muted-fg); border-bottom: 3px solid transparent;
  margin-bottom: -2px; transition: all .18s;
  border-radius: 6px 6px 0 0;
}
.page-tab:hover { color: var(--primary); background: rgba(27,107,58,.05); }
.page-tab.active { color: var(--primary); border-bottom-color: var(--primary); }

/* Grammar rule cards */
.grammar-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  margin-bottom: 1.25rem;
  transition: border-color .2s;
}
.grammar-card:hover { border-color: rgba(6,214,160,.4); }
.grammar-card h3 { font-size: 1.05rem; margin-bottom: .75rem; color: var(--fg); }
.grammar-card .example {
  background: rgba(6,214,160,.07);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: .75rem 1rem;
  font-family: var(--font-arabic);
  font-size: 1.3rem;
  direction: rtl;
  color: var(--primary);
  margin: .75rem 0 .5rem;
}
.grammar-card .translation { font-size: .88rem; color: var(--muted-fg); font-style: italic; }

/* Quiz cards */
.quiz-question-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 1rem;
  padding: 1.75rem;
  margin-bottom: 1.5rem;
}
.quiz-question-card .q-text {
  font-size: 1.1rem; font-weight: 700;
  color: var(--fg); margin-bottom: 1rem;
}
.quiz-options { display: grid; gap: .65rem; }
.quiz-option {
  display: flex; align-items: center; gap: .75rem;
  padding: .8rem 1rem;
  background: var(--bg); border: 1.5px solid var(--border);
  border-radius: .75rem; cursor: pointer; transition: all .18s;
  font-size: .95rem;
}
.quiz-option:hover { border-color: var(--accent); background: rgba(6,214,160,.06); }
.quiz-option.correct { border-color: var(--accent); background: rgba(6,214,160,.12); color: var(--primary); font-weight: 700; }
.quiz-option.wrong { border-color: #e63946; background: rgba(230,57,70,.08); color: #e63946; }

/* Game cards */
.game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.game-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  text-decoration: none;
  color: inherit;
  display: block;
}
.game-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(6,214,160,.13);
}
.game-card .game-icon { font-size: 2.5rem; margin-bottom: .75rem; }
.game-card h3 { font-size: 1rem; font-weight: 700; color: var(--fg); margin-bottom: .4rem; }
.game-card p { font-size: .83rem; color: var(--muted-fg); line-height: 1.55; }

/* Video cards */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}
.video-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  transition: all .2s;
}
.video-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(6,214,160,.12);
}
.video-thumb {
  position: relative; background: #111;
  height: 170px; overflow: hidden;
}
.video-thumb img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.video-play-btn span {
  width: 50px; height: 50px; border-radius: 50%;
  background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; color: var(--primary);
  box-shadow: 0 4px 14px rgba(0,0,0,.3);
}
.video-card-body { padding: 1.1rem; }
.video-card-body h3 { font-size: .95rem; font-weight: 700; color: var(--fg); margin-bottom: .3rem; }
.video-card-meta { display: flex; gap: .5rem; align-items: center; margin-top: .6rem; flex-wrap: wrap; }

/* Section filter tabs (used on vocabulary/grammar pages) */
.filter-tabs {
  display: flex; gap: .5rem; flex-wrap: wrap;
  margin-bottom: 1.5rem;
}
.filter-tab {
  padding: .45rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: none; cursor: pointer;
  font-size: .82rem; font-weight: 600;
  color: var(--muted-fg); transition: all .18s;
}
.filter-tab:hover, .filter-tab.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

/* Responsive inner page */
@media (max-width: 768px) {
  .letter-grid { grid-template-columns: repeat(3, 1fr); gap: .75rem; }
  .vocab-grid  { grid-template-columns: repeat(2, 1fr); }
  .story-grid  { grid-template-columns: 1fr; }
  .game-grid   { grid-template-columns: repeat(2, 1fr); }
  .video-grid  { grid-template-columns: 1fr; }
}
@media (max-width: 480px) {
  .letter-grid { grid-template-columns: repeat(2, 1fr); }
  .vocab-grid  { grid-template-columns: 1fr; }
  .game-grid   { grid-template-columns: 1fr; }
}

/* =====================================================
   ALPHABET PAGE — MISSING CLASSES FIX
   ===================================================== */

.badge-primary { background: rgba(27,107,58,.12); color: var(--primary); }

/* Letter buttons grid (alphabet page) */
.letter-btn {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 1rem;
  padding: 1.1rem .75rem;
  text-align: center;
  cursor: pointer;
  transition: all .2s;
  width: 100%;
  display: flex; flex-direction: column; align-items: center; gap: .35rem;
}
.letter-btn:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(6,214,160,.15);
}
.letter-btn .ar {
  font-family: var(--font-arabic);
  font-size: 2.4rem;
  line-height: 1.2;
  color: var(--primary);
}
.letter-btn .name {
  font-size: .8rem; font-weight: 700; color: var(--muted-fg);
}

/* Letter detail panel */
.letter-detail {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 1.25rem;
  padding: 1.75rem;
  margin-bottom: 2rem;
}
.letter-detail-header {
  display: flex; justify-content: space-between;
  align-items: flex-start; gap: 1rem; margin-bottom: 1rem;
}
.letter-detail-header h3 { font-size: 1.3rem; margin: 0 0 .3rem; }
.letter-big {
  font-family: var(--font-arabic);
  font-size: 5rem;
  color: var(--primary);
  text-align: center;
  margin: 1rem 0;
  line-height: 1.2;
}
.letter-forms {
  display: grid; grid-template-columns: repeat(4,1fr); gap: .75rem;
}
.letter-form-card {
  background: var(--bg);
  border: 1.5px solid var(--border);
  border-radius: .75rem;
  padding: .85rem .5rem;
  text-align: center;
}
.form-ar {
  font-family: var(--font-arabic);
  font-size: 2rem; color: var(--primary);
  margin-bottom: .35rem; line-height: 1.2;
}
.form-label { font-size: .72rem; font-weight: 700; color: var(--muted-fg); text-transform: uppercase; letter-spacing: .04em; }

/* Audio buttons */
.audio-btn {
  background: rgba(6,214,160,.1);
  border: 1px solid rgba(6,214,160,.25);
  border-radius: 50px;
  padding: .3rem .65rem;
  font-size: .78rem; font-weight: 600;
  color: var(--primary); cursor: pointer;
  transition: all .2s;
}
.audio-btn:hover { background: var(--accent); color: #fff; border-color: var(--accent); }
.audio-btn-lg {
  background: var(--primary);
  border: none; border-radius: .75rem;
  padding: .65rem 1.1rem;
  font-size: 1.4rem; cursor: pointer;
  transition: opacity .2s;
  flex-shrink: 0;
}
.audio-btn-lg:hover { opacity: .8; }

/* Vocabulary card original classes */
.vocab-card { display: flex; flex-direction: column; gap: .25rem; }
.vocab-en { font-weight: 700; font-size: .95rem; color: var(--fg); }
.vocab-phonetic { font-size: .78rem; color: var(--muted-fg); font-style: italic; }
.vocab-ar {
  font-family: var(--font-arabic);
  font-size: 1.6rem; color: var(--primary);
  direction: rtl;
}

/* Quiz original classes */
.quiz-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
}
.quiz-question {
  font-size: 1rem; font-weight: 700;
  color: var(--fg); margin-bottom: 1rem;
}
.quiz-score {
  text-align: center;
  padding: 1.5rem;
  background: rgba(6,214,160,.08);
  border: 1.5px solid rgba(6,214,160,.2);
  border-radius: 1rem;
  font-weight: 700; font-size: 1.1rem;
  color: var(--primary); margin-top: 1.5rem;
}

@media (max-width: 600px) {
  .letter-forms { grid-template-columns: repeat(2,1fr); }
  .letter-detail-header { flex-direction: column; }
}

/* =====================================================
   ALL INNER PAGES — COMPREHENSIVE MISSING CLASSES
   ===================================================== */

/* Page header used in Games, Quizzes, Videos pages */
.quiz-page-header {
  background: linear-gradient(135deg, var(--primary) 0%, #0d5c2f 100%);
  color: #fff; padding: 2.5rem 0 2rem;
  margin-bottom: 0;
}
.quiz-page-header .container { display: flex; flex-direction: column; gap: .5rem; }
.section-padding { padding: 3rem 0; }

/* Grammar page */
.grammar-accordion {
  border: 1.5px solid var(--border);
  border-radius: 1rem;
  overflow: hidden;
  margin-bottom: 1rem;
}
.grammar-accordion-header {
  display: flex; justify-content: space-between; align-items: center;
  padding: 1.1rem 1.25rem;
  background: var(--surface); cursor: pointer;
  font-weight: 700; font-size: .95rem; color: var(--fg);
  transition: background .18s;
}
.grammar-accordion-header:hover { background: rgba(6,214,160,.06); }
.accordion-arrow { transition: transform .25s; font-size: .85rem; color: var(--muted-fg); }
.grammar-accordion.open .accordion-arrow { transform: rotate(180deg); }
.grammar-accordion-body {
  padding: 1.25rem; border-top: 1px solid var(--border);
  background: var(--bg); display: none;
}
.grammar-accordion.open .grammar-accordion-body { display: block; }
.grammar-rule {
  display: flex; gap: .75rem; align-items: flex-start;
  padding: .65rem 0; border-bottom: 1px solid var(--border);
  font-size: .9rem; color: var(--fg);
}
.grammar-rule:last-child { border-bottom: none; }
.grammar-dot { color: var(--accent); font-size: 1.1rem; flex-shrink: 0; }
.grammar-example {
  background: rgba(6,214,160,.07);
  border-left: 4px solid var(--accent);
  border-radius: 0 8px 8px 0;
  padding: .75rem 1rem;
  margin: .75rem 0;
}
.example-ar {
  font-family: var(--font-arabic);
  font-size: 1.4rem; color: var(--primary);
  direction: rtl; margin-bottom: .35rem;
}
.example-en { font-size: .85rem; color: var(--muted-fg); font-style: italic; }
.grammar-group-header {
  font-size: 1.1rem; font-weight: 800;
  color: var(--primary); margin: 2rem 0 1rem;
  padding-bottom: .5rem; border-bottom: 2px solid rgba(6,214,160,.25);
}
.topic-name { font-weight: 700; color: var(--fg); }
.topic-name-ar { font-family: var(--font-arabic); color: var(--primary); font-size: 1.1rem; direction: rtl; }

/* Games page */
.games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}
.game-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 1rem;
  padding: 1.5rem;
  cursor: pointer;
  transition: all .2s;
  text-align: center;
}
.game-card:hover {
  border-color: var(--accent);
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(6,214,160,.13);
}
.game-emoji { font-size: 2.5rem; margin-bottom: .75rem; }
.game-title { font-size: 1rem; font-weight: 700; color: var(--fg); margin-bottom: .4rem; }
.game-desc { font-size: .83rem; color: var(--muted-fg); line-height: 1.55; }

/* Flashcard */
.flashcard-scene {
  perspective: 1000px; width: 100%; max-width: 400px;
  margin: 0 auto 1.5rem; height: 220px;
}
.flashcard {
  width: 100%; height: 100%;
  position: relative; transform-style: preserve-3d;
  transition: transform .5s ease; cursor: pointer;
}
.flashcard.flipped { transform: rotateY(180deg); }
.flashcard-front, .flashcard-back {
  position: absolute; inset: 0;
  backface-visibility: hidden;
  border-radius: 1.25rem;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 2rem;
  border: 2px solid var(--border);
}
.flashcard-front { background: var(--surface); }
.flashcard-back { background: var(--primary); color: #fff; transform: rotateY(180deg); }
.flashcard-arabic { font-family: var(--font-arabic); font-size: 3.5rem; color: var(--primary); direction: rtl; }
.flashcard-back .flashcard-arabic { color: rgba(255,255,255,.9); }
.flashcard-hint { font-size: .8rem; color: var(--muted-fg); margin-top: .5rem; }
.flashcard-english { font-size: 1.5rem; font-weight: 700; }
.flashcard-phonetic { font-size: .9rem; opacity: .75; font-style: italic; }

/* Match game */
.match-game { margin: 1.5rem 0; }
.match-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.match-column { display: flex; flex-direction: column; gap: .65rem; }
.match-item {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: .75rem;
  padding: .85rem 1rem;
  text-align: center; cursor: pointer;
  transition: all .18s; font-weight: 600;
  color: var(--fg);
}
.match-item:hover { border-color: var(--accent); background: rgba(6,214,160,.06); }
.match-item.selected { border-color: var(--primary); background: rgba(27,107,58,.08); color: var(--primary); }
.match-item.matched { border-color: var(--accent); background: rgba(6,214,160,.15); color: var(--primary); opacity: .7; pointer-events: none; }
.match-item.wrong { border-color: #e63946; background: rgba(230,57,70,.08); }

/* Videos page */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.5rem;
}
.video-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 1rem;
  overflow: hidden; transition: all .2s;
  text-decoration: none; color: inherit;
}
.video-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(6,214,160,.12);
}
.video-thumbnail {
  position: relative; background: #0a1a0f;
  height: 180px; overflow: hidden;
}
.video-thumbnail img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.video-play-btn {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
}
.video-play-circle {
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,.92);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; color: var(--primary);
  box-shadow: 0 4px 16px rgba(0,0,0,.3);
  transition: transform .2s;
}
.video-card:hover .video-play-circle { transform: scale(1.1); }
.video-info { padding: 1.1rem; }
.video-title { font-size: .95rem; font-weight: 700; color: var(--fg); margin-bottom: .4rem; }
.video-meta { display: flex; gap: .5rem; align-items: center; flex-wrap: wrap; margin-top: .5rem; }
.video-duration { font-size: .78rem; color: var(--muted-fg); }
.video-filter {
  display: flex; gap: .5rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}

/* Vocabulary page specific */
.vocab-page-grid {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 2rem;
}
.vocab-sidebar {
  position: sticky; top: 80px; height: fit-content;
}
.vocab-category-list { display: flex; flex-direction: column; gap: .4rem; }
.vocab-cat-link {
  display: flex; align-items: center; gap: .65rem;
  padding: .65rem .9rem;
  border-radius: .75rem; font-weight: 600; font-size: .88rem;
  color: var(--muted-fg); text-decoration: none;
  transition: all .18s; cursor: pointer; background: none; border: none; text-align: left; width: 100%;
}
.vocab-cat-link:hover, .vocab-cat-link.active {
  background: rgba(27,107,58,.08); color: var(--primary);
}
.vocab-category-icon { font-size: 1.1rem; }
.vocab-section { margin-bottom: 3rem; }
.vocab-section-title {
  font-size: 1.2rem; font-weight: 800; color: var(--fg);
  margin-bottom: 1.25rem; padding-bottom: .65rem;
  border-bottom: 2px solid rgba(6,214,160,.2);
  display: flex; align-items: center; gap: .65rem;
}
.vocab-big-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}
.vocab-big-card {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem 1rem;
  text-align: center;
  cursor: pointer; transition: all .2s;
}
.vocab-big-card:hover {
  border-color: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(6,214,160,.12);
}
.vocab-big-card .arabic {
  font-family: var(--font-arabic);
  font-size: 1.8rem; color: var(--primary);
  direction: rtl; margin-bottom: .4rem;
}
.vocab-big-card .english { font-weight: 700; font-size: .9rem; color: var(--fg); }
.vocab-big-card .phonetic { font-size: .75rem; color: var(--muted-fg); font-style: italic; margin-top: .2rem; }

/* Story page */
.story-content {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 1.25rem;
  overflow: hidden; margin-bottom: 2rem;
}
.story-text {
  padding: 1.75rem;
  line-height: 2; font-size: 1rem;
  color: var(--fg);
}
.story-toggle {
  display: flex; gap: .5rem;
  padding: 1rem 1.75rem;
  background: var(--bg); border-top: 1px solid var(--border);
  flex-wrap: wrap;
}
.story-ar, .story-en {
  font-size: .88rem; margin-bottom: .65rem;
}
.story-ar { font-family: var(--font-arabic); direction: rtl; font-size: 1.1rem; color: var(--primary); }

/* Audio player */
.audio-player {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 1rem;
  padding: 1.25rem;
  margin-bottom: 1.5rem;
  display: flex; flex-direction: column; gap: .75rem;
}
.audio-controls { display: flex; align-items: center; gap: .75rem; }
.audio-track { flex: 1; height: 6px; background: var(--border); border-radius: 99px; overflow: hidden; cursor: pointer; }
.audio-track-bar { height: 100%; background: var(--border); border-radius: 99px; position: relative; }
.audio-track-fill { height: 100%; background: var(--accent); border-radius: 99px; width: 0%; transition: width .2s; }
.audio-buttons { display: flex; gap: .5rem; }
.audio-status { font-size: .8rem; color: var(--muted-fg); }

/* Misc badge colors */
.badge-accent  { background: rgba(6,214,160,.15); color: #028a5c; }
.badge-purple  { background: rgba(123,44,191,.12); color: #7b2cbf; }
.badge-info    { background: rgba(17,138,178,.12); color: #118ab2; }

/* Quiz category buttons */
.quiz-cat-btn {
  padding: .5rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: 50px;
  background: none; cursor: pointer;
  font-size: .83rem; font-weight: 600;
  color: var(--muted-fg); transition: all .18s;
}
.quiz-cat-btn:hover, .quiz-cat-btn.active {
  background: var(--primary); border-color: var(--primary); color: #fff;
}

@media (max-width: 900px) {
  .vocab-page-grid { grid-template-columns: 1fr; }
  .vocab-sidebar { position: static; }
  .vocab-category-list { flex-direction: row; flex-wrap: wrap; }
}
@media (max-width: 600px) {
  .match-grid { grid-template-columns: 1fr; }
  .games-grid { grid-template-columns: 1fr; }
  .video-grid { grid-template-columns: 1fr; }
  .vocab-big-grid { grid-template-columns: repeat(2,1fr); }
}
