/* ═══════════════════════════════════════════════════════════════
   LEENA ACADEMY — Main CSS
   Design: Clean modern, soft emerald accent, beautiful typography
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  /* Brand colors — light, fresh, NOT dark */
  --g1: #059669;   /* emerald-600 */
  --g2: #10b981;   /* emerald-500 — primary */
  --g3: #34d399;   /* emerald-400 */
  --g4: #d1fae5;   /* emerald-100 */
  --g5: #ecfdf5;   /* emerald-50 */

  /* Gold accent */
  --gold: #f59e0b;

  /* Neutrals */
  --ink:    #0f172a;
  --ink2:   #334155;
  --sub:    #64748b;
  --muted:  #94a3b8;
  --border: #e2e8f0;
  --bg:     #f8fafc;
  --white:  #ffffff;

  /* Shadows */
  --sh-sm:  0 1px 3px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.04);
  --sh-md:  0 4px 16px rgba(0,0,0,.08), 0 2px 6px rgba(0,0,0,.04);
  --sh-lg:  0 12px 40px rgba(0,0,0,.10), 0 4px 12px rgba(0,0,0,.06);
  --sh-xl:  0 24px 64px rgba(0,0,0,.12);

  /* Radii */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-xl: 28px;

  /* Typography */
  --font-body: 'Cairo', sans-serif;
  --font-num:  'Inter', sans-serif;
}

/* ── Reset ──────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }
textarea, input, select { font-family: inherit; }

/* ── Container ──────────────────────────────────────────────── */
.container { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ── Typography ─────────────────────────────────────────────── */
h1,h2,h3,h4 { line-height: 1.25; font-weight: 800; color: var(--ink); }

/* ── Sections ───────────────────────────────────────────────── */
.section { padding: 80px 0; }
.section-alt { background: var(--bg); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(22px, 3vw, 36px); margin-bottom: 10px; }
.section-head p { color: var(--sub); font-size: 15px; max-width: 520px; margin: 0 auto; }

/* ── Section Badge ──────────────────────────────────────────── */
.sec-badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 14px; border-radius: 99px;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  margin-bottom: 14px;
}
.sec-badge-g { background: var(--g4); color: var(--g1); }
.sec-badge-y { background: #fef3c7; color: #92400e; }
.sec-badge-b { background: #dbeafe; color: #1d4ed8; }

/* ── ════ NAVBAR ════ ─────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 0; gap: 20px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.nav-logo img { height: 36px; object-fit: contain; }
.nav-logo-text { font-size: 18px; font-weight: 900; color: var(--g1); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 7px 14px; border-radius: var(--r-sm);
  font-size: 14px; font-weight: 600; color: var(--ink2);
  transition: all .15s;
}
.nav-links a:hover, .nav-links a.on { background: var(--g5); color: var(--g1); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-btn-login {
  padding: 8px 18px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 700;
  border: 1.5px solid var(--border); color: var(--ink2);
  transition: all .15s;
}
.nav-btn-login:hover { border-color: var(--g2); color: var(--g1); }
.nav-btn-start {
  padding: 8px 18px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 700;
  background: var(--g2); color: #fff;
  transition: all .15s;
}
.nav-btn-start:hover { background: var(--g1); transform: translateY(-1px); }
.nav-lang {
  padding: 6px 10px; border-radius: var(--r-sm); border: 1px solid var(--border);
  font-size: 12px; font-weight: 700; color: var(--sub); cursor: pointer;
  background: var(--white); transition: all .15s;
}
.nav-lang:hover { border-color: var(--g2); color: var(--g1); }

/* ── ════ HERO v3 ════ ───────────────────────────────────── */
.hero-v3 {
  background: linear-gradient(160deg, #f0fdf4 0%, #ffffff 50%, #f8fafc 100%);
  padding: 100px 0 80px;
  overflow: hidden;
  position: relative;
}
.hero-v3::before {
  content: '';
  position: absolute;
  top: -200px; right: -200px;
  width: 600px; height: 600px;
  background: radial-gradient(circle, rgba(16,185,129,.12) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}
.hero-v3-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero-v3-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--g5); border: 1px solid var(--g4);
  padding: 6px 16px; border-radius: 99px;
  font-size: 12px; font-weight: 700; color: var(--g1);
  margin-bottom: 22px;
}
.hero-v3-badge span { width: 6px; height: 6px; background: var(--g2); border-radius: 50%; animation: pulse 2s infinite; }
@keyframes pulse { 0%,100%{opacity:1}50%{opacity:.4} }
.hero-v3-h1 {
  font-size: clamp(30px, 4.5vw, 56px);
  font-weight: 900;
  line-height: 1.18;
  margin-bottom: 18px;
  color: var(--ink);
}
.hero-v3-h1 em { font-style: normal; color: var(--g1); }
.hero-v3-p { font-size: 16px; color: var(--sub); line-height: 1.8; margin-bottom: 32px; max-width: 440px; }
.hero-v3-btns { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px; border-radius: var(--r-md);
  background: var(--g1); color: #fff;
  font-size: 15px; font-weight: 700;
  box-shadow: 0 4px 20px rgba(16,185,129,.35);
  transition: all .2s;
}
.hero-btn-primary:hover { background: #047857; transform: translateY(-2px); box-shadow: 0 8px 28px rgba(16,185,129,.4); }
.hero-btn-wa {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--r-md);
  background: #fff; color: #1a1a1a;
  border: 1.5px solid var(--border);
  font-size: 15px; font-weight: 700;
  transition: all .2s;
}
.hero-btn-wa:hover { border-color: #25D366; color: #25D366; transform: translateY(-2px); box-shadow: var(--sh-md); }

/* Hero image area */
.hero-v3-visual { position: relative; }
.hero-v3-img-frame {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-xl);
}
.hero-v3-img { width: 100%; aspect-ratio: 4/3; object-fit: cover; }
/* Decorative ring */
.hero-v3-ring {
  position: absolute;
  inset: -20px;
  border: 2px dashed rgba(16,185,129,.2);
  border-radius: 40px;
  pointer-events: none;
}
/* Floating cards on image */
.hero-float {
  position: absolute;
  background: #fff;
  border-radius: var(--r-md);
  padding: 12px 16px;
  box-shadow: var(--sh-lg);
  display: flex; align-items: center; gap: 10px;
  animation: floatY 4s ease-in-out infinite;
}
.hero-float-1 { top: 24px; left: -24px; animation-delay: 0s; }
.hero-float-2 { bottom: 32px; right: -24px; animation-delay: 2s; }
@keyframes floatY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.hero-float-icon {
  width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; font-size: 18px;
  flex-shrink: 0;
}
.hero-float-text-top { font-size: 10px; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.hero-float-text-val { font-size: 14px; font-weight: 800; color: var(--ink); }

/* Trust strip */
.trust-strip {
  border-top: 1px solid var(--border);
  padding: 20px 0;
  margin-top: 60px;
  display: flex; align-items: center; gap: 20px; flex-wrap: wrap;
}
.trust-label { font-size: 11px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: .06em; flex-shrink: 0; }
.trust-flags { display: flex; gap: 20px; flex-wrap: wrap; }
.trust-flags span { font-size: 13px; color: var(--sub); font-weight: 500; display: flex; align-items: center; gap: 5px; }

/* ── ════ ICON CARDS (like screenshot) ════ ──────────────── */
.icon-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 28px 24px;
  transition: all .25s;
  position: relative;
  overflow: hidden;
}
.icon-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--r-lg);
  box-shadow: inset 0 0 0 1.5px var(--g4);
  opacity: 0;
  transition: opacity .2s;
}
.icon-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.icon-card:hover::after { opacity: 1; }

/* Icon box — matches the screenshot style */
.ic-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.ic-icon-emerald { background: var(--g4); color: var(--g1); }
.ic-icon-blue    { background: #dbeafe; color: #2563eb; }
.ic-icon-amber   { background: #fef3c7; color: #d97706; }
.ic-icon-rose    { background: #ffe4e6; color: #e11d48; }
.ic-icon-violet  { background: #ede9fe; color: #7c3aed; }
.ic-icon-cyan    { background: #cffafe; color: #0891b2; }

.ic-title { font-size: 15px; font-weight: 800; color: var(--ink); margin-bottom: 6px; }
.ic-desc  { font-size: 13px; color: var(--sub); line-height: 1.65; }

/* Contact info card style (like screenshot) */
.ci-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 22px 24px;
  display: flex; align-items: center; gap: 18px;
  transition: all .2s;
  box-shadow: var(--sh-sm);
}
.ci-card:hover { box-shadow: var(--sh-md); transform: translateY(-2px); }
.ci-card-icon {
  width: 56px; height: 56px; border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 24px; flex-shrink: 0;
}
.ci-card-label { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-bottom: 4px; }
.ci-card-value { font-size: 15px; font-weight: 800; color: var(--ink); }
.ci-card-value a { color: var(--g1); }

/* ── ════ FEATURES GRID ════ ─────────────────────────────── */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

/* ── ════ PLANS / PRICING ════ ───────────────────────────── */
.plans-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  margin-top: 32px;
}
.plan-card {
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: var(--r-xl);
  padding: 28px 24px;
  display: flex; flex-direction: column;
  position: relative;
  transition: all .25s;
  box-shadow: var(--sh-sm);
}
.plan-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.plan-card.pop {
  border-color: var(--g2);
  box-shadow: 0 0 0 3px var(--g4), var(--sh-lg);
}
.plan-pop-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--g1); color: #fff;
  font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
  padding: 4px 14px; border-radius: 99px;
  white-space: nowrap;
}
.plan-sess { font-size: 32px; font-weight: 900; color: var(--ink); }
.plan-sess span { font-size: 14px; font-weight: 600; color: var(--sub); }
.plan-meta { font-size: 12px; color: var(--muted); margin: 4px 0 16px; }
.plan-box { margin-bottom: 16px; padding: 16px; background: var(--bg); border-radius: var(--r-md); }
.plan-price { display: flex; align-items: baseline; gap: 2px; }
.plan-curr { font-size: 18px; font-weight: 700; color: var(--g1); }
.plan-num  { font-size: 36px; font-weight: 900; color: var(--ink); font-family: var(--font-num); }
.plan-cycle { font-size: 12px; color: var(--sub); margin-top: 2px; }
.plan-per-s { font-size: 12px; color: var(--muted); margin-top: 2px; }
.plan-trial {
  display: inline-block; margin-top: 8px;
  background: #fef3c7; color: #92400e;
  font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 99px;
}
.plan-feats { list-style: none; margin-bottom: 20px; flex: 1; }
.plan-feats li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); padding: 5px 0; }
.pf-ck { color: var(--g1); font-weight: 800; flex-shrink: 0; }
.btn-plan {
  display: block; text-align: center; width: 100%;
  padding: 13px; border-radius: var(--r-md);
  font-size: 14px; font-weight: 700;
  background: var(--g1); color: #fff;
  transition: all .2s; margin-top: auto;
}
.btn-plan:hover { background: #047857; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(16,185,129,.3); }
.plan-card.pop .btn-plan { box-shadow: 0 4px 16px rgba(16,185,129,.35); }

/* Duration tabs */
.dur-tabs-wrap { text-align: center; margin-bottom: 8px; }
.dur-tabs {
  display: inline-flex; gap: 4px;
  background: var(--bg); border: 1px solid var(--border);
  padding: 4px; border-radius: var(--r-md);
}
.dur-tab {
  padding: 8px 20px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 700;
  border: none; background: transparent; cursor: pointer;
  color: var(--sub); transition: all .15s;
}
.dur-tab.on { background: #fff; color: var(--g1); box-shadow: var(--sh-sm); }
.dur-panel { display: none; }
.dur-panel.on { display: block; }

/* ── ════ REVIEWS ════ ───────────────────────────────────── */
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.rv {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 24px;
  box-shadow: var(--sh-sm); transition: all .2s;
}
.rv:hover { box-shadow: var(--sh-md); transform: translateY(-3px); }
.rv-stars { color: #f59e0b; font-size: 15px; margin-bottom: 12px; letter-spacing: 2px; }
.rv-text { font-size: 14px; color: var(--ink2); line-height: 1.75; margin-bottom: 16px; font-style: italic; }
.rv-auth { display: flex; align-items: center; gap: 10px; }
.rv-av {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--g1), var(--g3));
  color: #fff; font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.rv-name  { font-size: 14px; font-weight: 700; }
.rv-title { font-size: 12px; color: var(--muted); }

/* ── ════ FAQ ════ ───────────────────────────────────────── */
.faq-wrap { max-width: 720px; margin: 0 auto; }
.faq-item {
  border: 1px solid var(--border); border-radius: var(--r-md);
  margin-bottom: 10px; overflow: hidden;
  transition: all .2s;
}
.faq-item:hover { border-color: var(--g3); box-shadow: var(--sh-sm); }
.faq-q {
  padding: 18px 20px; font-weight: 700; font-size: 14px;
  cursor: pointer; display: flex; justify-content: space-between; align-items: center;
  background: #fff; user-select: none;
}
.faq-icon {
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--g4); color: var(--g1);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; font-weight: 700; flex-shrink: 0;
  transition: all .25s;
}
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, padding .2s;
  font-size: 13px; color: var(--sub); line-height: 1.8;
  padding: 0 20px; background: var(--bg);
}
.faq-item.open .faq-a  { max-height: 300px; padding: 16px 20px; }
.faq-item.open .faq-icon { background: var(--g1); color: #fff; transform: rotate(45deg); }

/* ── ════ CTA SECTION ════ ───────────────────────────────── */
.cta-sec {
  background: linear-gradient(135deg, var(--g1) 0%, #047857 100%);
  color: #fff; text-align: center;
}
.cta-sec h2 { color: #fff; font-size: clamp(22px, 3vw, 36px); margin-bottom: 10px; }
.cta-sec p  { color: rgba(255,255,255,.8); margin-bottom: 28px; font-size: 15px; }
.cta-btns { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }
.btn-cta-main {
  padding: 14px 32px; border-radius: var(--r-md);
  background: #fff; color: var(--g1);
  font-size: 15px; font-weight: 800;
  transition: all .2s;
}
.btn-cta-main:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,.2); }
.btn-cta-wa {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: var(--r-md);
  background: rgba(255,255,255,.15); border: 1.5px solid rgba(255,255,255,.3);
  color: #fff; font-size: 15px; font-weight: 700;
  transition: all .2s;
}
.btn-cta-wa:hover { background: rgba(255,255,255,.25); transform: translateY(-2px); }
.btn-wa-green {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--r-md);
  background: #25D366; color: #fff;
  font-size: 14px; font-weight: 700;
  transition: all .2s; box-shadow: 0 4px 16px rgba(37,211,102,.35);
}
.btn-wa-green:hover { background: #22c55e; transform: translateY(-2px); }

/* ── ════ HOW IT WORKS / STEPS ════ ─────────────────────── */
.steps-row { display: flex; align-items: center; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 32px; }
.step {
  flex: 1; min-width: 180px; max-width: 240px;
  text-align: center; padding: 28px 20px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--sh-sm);
}
.step h3 { font-size: 15px; margin-bottom: 8px; }
.step p   { font-size: 13px; color: var(--sub); line-height: 1.6; }
.step-num {
  width: 48px; height: 48px; border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 900; color: #fff;
  margin: 0 auto 14px;
}
.sn1 { background: var(--g1); }
.sn2 { background: #f59e0b; }
.sn3 { background: #3b82f6; }
.step-arr { font-size: 20px; color: var(--muted); flex-shrink: 0; }

/* ── ════ COURSES ════ ───────────────────────────────────── */
.courses-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 20px; }
.course-card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden; transition: all .25s; box-shadow: var(--sh-sm); }
.course-card:hover { transform: translateY(-4px); box-shadow: var(--sh-lg); }
.cc-img { width: 100%; height: 180px; object-fit: cover; }
.cc-img-ph { width: 100%; height: 180px; background: linear-gradient(135deg, var(--g4), #dbeafe); }
.cc-body { padding: 20px; }
.cc-row { display: flex; gap: 6px; margin-bottom: 10px; }
.cc-tag { font-size: 10px; font-weight: 700; padding: 3px 10px; border-radius: 99px; text-transform: uppercase; letter-spacing: .05em; }
.cc-tag-g { background: var(--g4); color: var(--g1); }
.cc-tag-y { background: #fef3c7; color: #92400e; }
.cc-title { font-size: 15px; font-weight: 800; margin-bottom: 6px; }
.cc-desc  { font-size: 13px; color: var(--sub); margin-bottom: 14px; line-height: 1.6; }
.cc-meta  { font-size: 12px; color: var(--muted); margin-bottom: 14px; }
.btn-cc {
  display: inline-block; padding: 8px 18px; border-radius: var(--r-sm);
  background: var(--g1); color: #fff; font-size: 13px; font-weight: 700;
  transition: all .15s;
}
.btn-cc:hover { background: #047857; }
.btn-cc-soon {
  display: inline-block; padding: 8px 18px; border-radius: var(--r-sm);
  background: var(--bg); color: var(--muted); font-size: 13px; font-weight: 600;
}

/* ── ════ AUTH PAGES ════ ────────────────────────────────── */
.auth-page {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(160deg, var(--g5) 0%, #f8fafc 100%);
  padding: 40px 20px;
}
.auth-card {
  background: #fff; border-radius: var(--r-xl);
  padding: 40px; width: 100%; max-width: 440px;
  box-shadow: var(--sh-xl);
}
.btn-auth {
  display: block; width: 100%; padding: 14px;
  background: var(--g1); color: #fff; border: none;
  border-radius: var(--r-md); font-size: 16px; font-weight: 700;
  cursor: pointer; transition: all .2s;
}
.btn-auth:hover { background: #047857; transform: translateY(-1px); box-shadow: 0 4px 16px rgba(16,185,129,.35); }

/* Form utils */
.fg { margin-bottom: 14px; }
.fg label { display: block; font-size: 12px; font-weight: 700; color: var(--ink2); margin-bottom: 5px; }
.fg input, .fg select, .fg textarea {
  width: 100%; padding: 11px 13px;
  border: 1.5px solid var(--border); border-radius: var(--r-sm);
  font-size: 14px; color: var(--ink); background: #fff;
  transition: all .15s;
}
.fg input:focus, .fg select:focus, .fg textarea:focus {
  outline: none; border-color: var(--g2);
  box-shadow: 0 0 0 3px rgba(16,185,129,.1);
}
.fg-hint { font-size: 11px; color: var(--muted); margin-top: 4px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }

/* ── ════ SUBSCRIBE PAGE ════ ────────────────────────────── */
.sub-layout { display: grid; grid-template-columns: 1fr 380px; gap: 32px; align-items: start; }
.sub-card { background: #fff; border-radius: var(--r-xl); overflow: hidden; box-shadow: var(--sh-sm); border: 1px solid var(--border); }
.sub-card-head { padding: 20px 24px; background: linear-gradient(135deg, var(--g1), #047857); color: #fff; }
.sub-card-head h2 { font-size: 16px; font-weight: 800; color: #fff; margin-bottom: 2px; }
.sub-card-head p  { font-size: 12px; opacity: .8; }
.sub-card-body { padding: 20px 24px; }
.plans-radio { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.plan-radio-opt { position: relative; }
.plan-radio-opt input { position: absolute; opacity: 0; }
.plan-radio-lbl {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 14px 10px; border-radius: var(--r-md);
  border: 2px solid var(--border); cursor: pointer;
  transition: all .15s; text-align: center; background: #fff;
}
.plan-radio-opt input:checked + .plan-radio-lbl { border-color: var(--g2); background: var(--g5); }
.plan-radio-opt.pop .plan-radio-lbl { border-color: var(--g3); }
.coupon-row { display: flex; gap: 8px; }
.coupon-row input { flex: 1; }
.sub-summary {
  background: #fff; border-radius: var(--r-xl);
  border: 1px solid var(--border); position: sticky; top: 80px;
  box-shadow: var(--sh-sm); overflow: hidden;
}
.sub-summary-head { padding: 20px 24px; background: var(--g5); border-bottom: 1px solid var(--g4); }
.sub-summary-head h3 { font-size: 15px; font-weight: 800; color: var(--g1); margin-bottom: 2px; }
.sub-summary-head p  { font-size: 12px; color: var(--sub); }
.sub-summary-body { padding: 20px 24px; }
.sum-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--bg); font-size: 13px; }
.sum-lbl { color: var(--sub); }
.sum-val { font-weight: 700; }
.sum-total { display: flex; justify-content: space-between; align-items: center; padding: 14px 0 0; font-size: 16px; margin-top: 4px; }
.sum-total-lbl { font-weight: 800; color: var(--ink); }
.sum-total-val { font-weight: 900; color: var(--g1); font-size: 24px; }
.sub-features { display: flex; flex-direction: column; gap: 6px; }
.sub-feat { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink2); }
.sub-feat-ck { color: var(--g1); font-weight: 800; }

/* ── ════ DASHBOARD ════ ─────────────────────────────────── */
.dash { display: flex; min-height: 100vh; }
.dash-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

/* Sidebar */
.sidebar {
  width: 240px; flex-shrink: 0;
  display: flex; flex-direction: column;
  padding: 0 0 20px;
  border-left: 1px solid rgba(255,255,255,.1); /* RTL */
}
[dir="ltr"] .sidebar { border-left: none; border-right: 1px solid rgba(255,255,255,.1); }
.sidebar-logo { padding: 20px 20px 16px; border-bottom: 1px solid rgba(255,255,255,.08); margin-bottom: 8px; }
.sidebar-logo a { display: flex; align-items: center; gap: 8px; text-decoration: none; }
.sidebar-logo img { height: 28px; }
.sidebar-logo-text { font-size: 14px; font-weight: 800; color: rgba(255,255,255,.9); }
.sidebar nav { padding: 0 12px; flex: 1; overflow-y: auto; }
.sidebar-section { font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.35); padding: 14px 8px 6px; }
.sidebar a {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 10px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 600; color: rgba(255,255,255,.7);
  transition: all .15s; margin-bottom: 1px; position: relative;
}
.sidebar a:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.95); }
.sidebar a.on  { background: rgba(255,255,255,.14); color: #fff; }
.si-badge {
  margin-right: auto; background: #ef4444; color: #fff;
  font-size: 9px; font-weight: 800; padding: 1px 6px; border-radius: 99px;
  min-width: 18px; text-align: center;
}
/* Sidebar themes */
.sidebar-student { background: #14532d; }
.sidebar-teacher { background: #1e3a5f; }
.sidebar-admin   { background: #1e1b4b; }

/* Topbar */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 24px; background: #fff;
  border-bottom: 1px solid var(--border); gap: 12px;
}
.topbar-title { font-size: 18px; font-weight: 800; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }

/* Page area */
.page { padding: 24px; flex: 1; }

/* Bottom nav (mobile) */
.bottom-nav {
  display: none; position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--border);
  padding: 8px 0; z-index: 50;
}
.bottom-nav-inner { display: flex; justify-content: space-around; }
.bottom-nav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 10px; font-weight: 600; color: var(--sub); padding: 4px 12px; }
.bottom-nav a.on { color: var(--g1); }

/* ── ════ CARDS & TABLES ════ ────────────────────────────── */
.card { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); box-shadow: var(--sh-sm); }
.card-head { padding: 16px 20px; border-bottom: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; }
.card-title { font-size: 15px; font-weight: 800; }
.card-body { padding: 20px; }
.tbl-wrap { overflow-x: auto; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { padding: 12px 16px; text-align: right; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg); border-bottom: 1px solid var(--border); }
[dir="ltr"] .tbl th { text-align: left; }
.tbl td { padding: 12px 16px; border-bottom: 1px solid var(--border); color: var(--ink2); }
.tbl tr:last-child td { border-bottom: none; }
.tbl tr:hover td { background: var(--g5); }
.text-center { text-align: center !important; }

/* Stats */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 16px; }
.stat { background: #fff; border: 1px solid var(--border); border-radius: var(--r-lg); padding: 20px; text-align: center; box-shadow: var(--sh-sm); }
.stat-val { font-size: 28px; font-weight: 900; color: var(--ink); font-family: var(--font-num); }
.stat-lbl { font-size: 12px; color: var(--muted); font-weight: 600; margin-top: 4px; }

/* Badges */
.bdg { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 99px; font-size: 11px; font-weight: 700; }
.bdg-g  { background: #dcfce7; color: #166534; }
.bdg-b  { background: #dbeafe; color: #1e40af; }
.bdg-y  { background: #fef9c3; color: #854d0e; }
.bdg-r  { background: #fee2e2; color: #991b1b; }
.bdg-gr { background: var(--bg); color: var(--muted); }
.bdg-p  { background: #ede9fe; color: #5b21b6; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 8px 16px; border-radius: var(--r-sm);
  font-size: 13px; font-weight: 700; border: 1.5px solid var(--border);
  background: #fff; color: var(--ink2); cursor: pointer;
  transition: all .15s; font-family: inherit;
}
.btn:hover { border-color: var(--border); box-shadow: var(--sh-sm); }
.btn-acc { background: var(--g1); color: #fff; border-color: var(--g1); }
.btn-acc:hover { background: #047857; border-color: #047857; }
.btn-del { background: #fef2f2; color: #dc2626; border-color: #fecaca; }
.btn-del:hover { background: #dc2626; color: #fff; border-color: #dc2626; }
.btn-zoom { background: #2563eb; color: #fff; border-color: #2563eb; }
.btn-zoom:hover { background: #1d4ed8; }
.btn-sm { padding: 5px 10px; font-size: 11px; }

/* Avatars */
.av {
  width: 36px; height: 36px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 800; flex-shrink: 0; color: #fff;
}
.av-g { background: linear-gradient(135deg, #059669, #10b981); }
.av-b { background: linear-gradient(135deg, #1d4ed8, #3b82f6); }
.av-p { background: linear-gradient(135deg, #7c3aed, #8b5cf6); }

/* Flash messages */
.flash { padding: 12px 16px; border-radius: var(--r-sm); margin-bottom: 16px; font-size: 13px; font-weight: 600; }
.flash-ok  { background: #dcfce7; color: #166534; border: 1px solid #bbf7d0; }
.flash-err { background: #fee2e2; color: #991b1b; border: 1px solid #fecaca; }

/* Modals */
.modal-bg { display:none; position:fixed; inset:0; background:rgba(0,0,0,.5); z-index:200; align-items:center; justify-content:center; padding:20px; }
.modal-bg.open { display:flex; }
.modal { background:#fff; border-radius:var(--r-xl); width:100%; box-shadow:var(--sh-xl); max-height:90vh; overflow-y:auto; }
.modal-head { padding:18px 20px; border-bottom:1px solid var(--border); display:flex; align-items:center; justify-content:space-between; }
.modal-title { font-size:16px; font-weight:800; }
.modal-close { width:30px; height:30px; border-radius:50%; border:none; background:var(--bg); cursor:pointer; font-size:16px; display:flex; align-items:center; justify-content:center; color:var(--sub); transition:all .15s; }
.modal-close:hover { background:var(--border); color:var(--ink); }
.modal-body { padding:20px; }
.modal-foot { padding:16px 20px; border-top:1px solid var(--border); display:flex; gap:10px; justify-content:flex-end; }

/* Chat */
.chat-layout { display:grid; grid-template-columns:280px 1fr; gap:0; border:1px solid var(--border); border-radius:var(--r-xl); overflow:hidden; height:calc(100vh - 180px); background:#fff; box-shadow:var(--sh-sm); }
.chat-contacts { border-left:1px solid var(--border); overflow-y:auto; }
[dir="ltr"] .chat-contacts { border-left:none; border-right:1px solid var(--border); }
.chat-contacts-head { padding:14px 16px; font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.06em; color:var(--muted); background:var(--bg); border-bottom:1px solid var(--border); }
.chat-contact { display:flex; align-items:center; gap:12px; padding:14px 16px; border-bottom:1px solid var(--border); transition:background .1s; cursor:pointer; }
.chat-contact:hover { background:var(--g5); }
.chat-contact.on { background:var(--g5); }
.chat-area { display:flex; flex-direction:column; }
.chat-head { padding:14px 16px; border-bottom:1px solid var(--border); display:flex; align-items:center; gap:12px; }
.chat-msgs { flex:1; overflow-y:auto; padding:16px; display:flex; flex-direction:column; gap:10px; background:var(--bg); }
.chat-input-row { padding:12px 16px; border-top:1px solid var(--border); display:flex; gap:8px; }
.chat-input-row textarea { flex:1; padding:10px 13px; border:1.5px solid var(--border); border-radius:var(--r-md); font-size:13px; resize:none; min-height:44px; max-height:120px; transition:border-color .15s; }
.chat-input-row textarea:focus { outline:none; border-color:var(--g2); }
.chat-send-btn { padding:10px 20px; background:var(--g1); color:#fff; border:none; border-radius:var(--r-md); font-size:13px; font-weight:700; cursor:pointer; transition:all .15s; white-space:nowrap; }
.chat-send-btn:hover { background:#047857; }
.msg-wrap { display:flex; flex-direction:column; }
.msg-wrap.me { align-items:flex-end; }
.msg-wrap.them { align-items:flex-start; }
.msg-bubble { max-width:72%; padding:10px 14px; border-radius:16px; font-size:13px; line-height:1.6; word-break:break-word; }
.msg-wrap.me .msg-bubble { background:var(--g1); color:#fff; border-bottom-left-radius:4px; }
[dir="ltr"] .msg-wrap.me .msg-bubble { border-bottom-left-radius:16px; border-bottom-right-radius:4px; }
.msg-wrap.them .msg-bubble { background:#fff; color:var(--ink); border:1px solid var(--border); border-bottom-right-radius:4px; }
[dir="ltr"] .msg-wrap.them .msg-bubble { border-bottom-right-radius:16px; border-bottom-left-radius:4px; }
.msg-time { font-size:10px; color:var(--muted); margin-top:3px; }

/* Pagination */
.pag-a { display:inline-flex; align-items:center; justify-content:center; width:32px; height:32px; border-radius:var(--r-sm); border:1px solid var(--border); font-size:13px; font-weight:600; color:var(--sub); transition:all .15s; }
.pag-a:hover, .pag-a.on { background:var(--g1); color:#fff; border-color:var(--g1); }

/* Utils */
.bold { font-weight: 700; }
.sm   { font-size: 13px; }
.muted { color: var(--muted); }
.text-acc { color: var(--g1); }
.mb3 { margin-bottom: 12px; }
.mb4 { margin-bottom: 16px; }
.mt-2 { margin-top: 8px; }
.mt-4 { margin-top: 16px; }
.wrap { flex-wrap: wrap; }
.flex { display: flex; }
.items-c { align-items: center; }
.justify-between { justify-content: space-between; }
.gap2 { gap: 8px; }
.gap3 { gap: 12px; }

/* Page hero (inner pages) */
.page-hero { background: linear-gradient(160deg, var(--g5) 0%, #fff 100%); padding: 60px 0; text-align: center; border-bottom: 1px solid var(--border); }
.page-hero h1 { font-size: clamp(24px, 4vw, 42px); margin-bottom: 10px; }
.page-hero p  { color: var(--sub); font-size: 15px; max-width: 500px; margin: 0 auto; }

/* Register card */
.reg-card { background:#fff; border-radius:var(--r-xl); padding:36px; width:100%; max-width:560px; box-shadow:var(--sh-xl); }
.section-label { font-size:11px; font-weight:800; text-transform:uppercase; letter-spacing:.08em; color:var(--g1); padding:14px 0 8px; border-bottom:1px solid var(--g4); margin-bottom:14px; }

/* Dash-specific */
.c-acc { --c-acc:var(--g1); --c-acc-bg:var(--g5); --c-acc-l:var(--g4); }
.c-acc-bg { background: var(--g5); }
.c-sub { color: var(--sub); }
.c-bd  { border-color: var(--border); }

/* Dashboard CSS vars (used in PHP) */
.dash { --c-acc: var(--g1); --c-acc-bg: var(--g5); --c-acc-l: var(--g4); --c-bd: var(--border); --c-sub: var(--sub); }

/* Responsive */
@media (max-width: 900px) {
  .sub-layout { grid-template-columns: 1fr; }
  .sub-summary { position: static; }
  .hero-v3-inner { grid-template-columns: 1fr; gap: 40px; text-align: center; }
  .hero-v3-p { margin-inline: auto; }
  .hero-v3-btns { justify-content: center; }
  .hero-float-1 { left: 0; }
  .hero-float-2 { right: 0; }
  .chat-layout { grid-template-columns: 1fr; height: auto; }
  .chat-contacts { border-left: none; border-bottom: 1px solid var(--border); max-height: 200px; }
}
@media (max-width: 768px) {
  .section { padding: 56px 0; }
  .sidebar { display: none; }
  .bottom-nav { display: block; }
  .page { padding: 16px 16px 80px; }
  .grid2, .grid3 { grid-template-columns: 1fr; }
  .steps-row { flex-direction: column; align-items: stretch; }
  .step-arr { transform: rotate(90deg); text-align: center; }
  .tbl th, .tbl td { padding: 10px 12px; }
  .nav-links { display: none; }
  .trust-strip { flex-direction: column; gap: 10px; }
}
@media (max-width: 480px) {
  .plans-grid { grid-template-columns: 1fr; }
  .plans-radio { grid-template-columns: 1fr 1fr; }
  .reg-card { padding: 24px 18px; }
  .hero-v3 { padding: 70px 0 50px; }
}
