/* ═══════════════════════════════════════════════════
   লক্ষ্য GPA 5 — Premium App-Like Design System v6
   Mobile-First | Dark Luxury | Neon Accents
   ═══════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Hind+Siliguri:wght@300;400;500;600;700&family=Inter:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@400;600&display=swap');
@import url('https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.0/css/all.min.css');

:root {
  /* Brand */
  --primary:        #F97316;
  --primary-dark:   #C2410C;
  --primary-glow:   rgba(249,115,22,.25);
  --secondary:      #10B981;
  --secondary-glow: rgba(16,185,129,.2);
  --accent:         #8B5CF6;
  --accent-glow:    rgba(139,92,246,.2);
  --gold:           #F59E0B;
  --danger:         #EF4444;
  --info:           #3B82F6;

  /* App Dark BG */
  --bg-base:        #080B12;
  --bg-surface:     #0F1420;
  --bg-card:        #141927;
  --bg-card2:       #1A2035;
  --bg-input:       #1E2540;
  --bg-elevated:    #202840;

  /* Text */
  --text-white:     #FFFFFF;
  --text-primary:   #F0F4FF;
  --text-secondary: #8E9DC0;
  --text-muted:     #4A5580;

  /* Borders */
  --border:         rgba(255,255,255,.07);
  --border-active:  rgba(249,115,22,.4);
  --border-glow:    rgba(249,115,22,.2);

  /* Light mode (admin) */
  --white:          #FFFFFF;
  --bg-light:       #F4F6FB;
  --bg-card-light:  #FFFFFF;
  --border-light:   #E2E8F0;
  --text-dark:      #0F172A;
  --slate:          #475569;
  --muted:          #94A3B8;

  /* Shadows */
  --shadow-sm:   0 2px 12px rgba(0,0,0,.3);
  --shadow-md:   0 8px 32px rgba(0,0,0,.5);
  --shadow-lg:   0 20px 60px rgba(0,0,0,.6);
  --shadow-glow: 0 0 40px rgba(249,115,22,.25);
  --shadow-card: 0 1px 3px rgba(0,0,0,.4), 0 8px 24px rgba(0,0,0,.2);

  /* Shape */
  --radius-xs:   6px;
  --radius-sm:   10px;
  --radius:      14px;
  --radius-lg:   20px;
  --radius-xl:   28px;
  --radius-full: 9999px;

  /* Nav */
  --navbar-h:    64px;
  --bottom-nav-h: 72px;

  /* Type */
  --font-bn:      'Hind Siliguri', sans-serif;
  --font-display: 'Inter', sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --ease: cubic-bezier(.4,0,.2,1);
  --transition: all .2s var(--ease);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-bn);
  background: var(--bg-base);
  color: var(--text-primary);
  line-height: 1.65;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

body.light-mode {
  background: var(--bg-light);
  color: var(--text-dark);
}

/* ══ SCROLLBAR ══════════════════════════════════ */
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(249,115,22,.3); border-radius: 2px; }

/* ══ TYPOGRAPHY ══════════════════════════════════ */
h1,h2,h3,h4,h5 {
  font-family: var(--font-display);
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: -.02em;
}
h1 { font-size: clamp(1.8rem,5vw,3.2rem); }
h2 { font-size: clamp(1.4rem,3.5vw,2.2rem); }
h3 { font-size: 1.15rem; }
p  { color: var(--text-secondary); line-height: 1.7; }
a  { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }

.text-gradient {
  background: linear-gradient(135deg, var(--primary) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.text-gradient-green {
  background: linear-gradient(135deg, var(--secondary), #34D399);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ══ LAYOUT ══════════════════════════════════════ */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 540px;  margin: 0 auto; padding: 0 20px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ══ NAVBAR ══════════════════════════════════════ */
.navbar {
  background: rgba(8,11,18,.85);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 1000;
  height: var(--navbar-h);
}
.navbar-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 100%; gap: 16px;
}
.navbar-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display);
  font-weight: 900; font-size: 1.15rem; color: var(--text-white);
  white-space: nowrap; letter-spacing: -.03em;
}
.brand-logo {
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 1rem; font-weight: 900; color: white;
  box-shadow: 0 0 20px rgba(249,115,22,.4);
  flex-shrink: 0;
}
.navbar-nav { display: flex; align-items: center; gap: 2px; list-style: none; }
.navbar-nav a {
  padding: 7px 13px; border-radius: var(--radius-sm);
  font-weight: 600; color: var(--text-secondary); font-size: .86rem;
  transition: var(--transition); letter-spacing: -.01em;
}
.navbar-nav a:hover, .navbar-nav a.active {
  color: var(--primary); background: rgba(249,115,22,.1);
}
.nav-btn {
  padding: 8px 18px; border-radius: var(--radius-full);
  font-weight: 700; font-size: .84rem;
  border: none; cursor: pointer;
  font-family: var(--font-bn);
  transition: var(--transition);
  display: inline-flex; align-items: center; gap: 6px;
}
.nav-btn-outline {
  background: transparent;
  border: 1.5px solid var(--border);
  color: var(--text-primary);
}
.nav-btn-outline:hover { border-color: var(--primary); color: var(--primary); }
.nav-btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  box-shadow: 0 4px 16px rgba(249,115,22,.4);
}
.nav-btn-primary:hover { transform: translateY(-1px); box-shadow: 0 6px 24px rgba(249,115,22,.5); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; cursor: pointer; padding: 6px;
}
.hamburger span {
  width: 22px; height: 2px; background: var(--text-primary);
  border-radius: 2px; transition: var(--transition);
  display: block;
}
/* Admin/dashboard pages: show hamburger at 900px */
.dash-topbar .hamburger { display: flex; }
body.light-mode .dash-topbar .hamburger span { background: var(--slate); }
/* Public navbar: show hamburger at 768px */
@media(max-width:768px) {
  .hamburger { display: flex; }
  .navbar-nav { display: none; }
  .navbar-nav.open {
    display: flex; flex-direction: column;
    position: absolute; top: var(--navbar-h); left: 0; right: 0;
    background: rgba(8,11,18,.97); backdrop-filter: blur(20px);
    border-bottom: 1px solid var(--border);
    padding: 12px; gap: 2px; z-index: 999;
  }
  .navbar-nav.open a { width: 100%; border-radius: var(--radius-sm); padding: 10px 14px; }
}

/* ══ HERO ════════════════════════════════════════ */
.hero {
  background: var(--bg-base);
  position: relative; overflow: hidden;
  padding: 80px 0 70px;
}
.hero::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 70% 55% at 50% -10%, rgba(249,115,22,.18) 0%, transparent 65%),
    radial-gradient(ellipse 40% 35% at 85% 50%, rgba(139,92,246,.12) 0%, transparent 60%),
    radial-gradient(ellipse 40% 35% at 10% 60%, rgba(16,185,129,.08) 0%, transparent 60%);
  pointer-events: none;
}
.hero-stars {
  position: absolute; inset: 0; pointer-events: none;
  background-image:
    radial-gradient(1.5px 1.5px at 15% 25%, rgba(255,255,255,.55) 0%, transparent 100%),
    radial-gradient(1px 1px at 35% 65%, rgba(255,255,255,.35) 0%, transparent 100%),
    radial-gradient(1px 1px at 55% 15%, rgba(255,255,255,.45) 0%, transparent 100%),
    radial-gradient(1.5px 1.5px at 75% 55%, rgba(255,255,255,.3) 0%, transparent 100%),
    radial-gradient(1px 1px at 88% 20%, rgba(249,115,22,.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 8% 75%, rgba(139,92,246,.5) 0%, transparent 100%),
    radial-gradient(1px 1px at 50% 80%, rgba(255,255,255,.25) 0%, transparent 100%);
}
.hero-content { position: relative; z-index: 1; text-align: center; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(249,115,22,.12); border: 1px solid rgba(249,115,22,.35);
  color: var(--primary); padding: 7px 18px; border-radius: var(--radius-full);
  font-size: .8rem; font-weight: 700; margin-bottom: 28px;
  letter-spacing: .04em; text-transform: uppercase;
}
.hero h1 { color: var(--text-white); margin-bottom: 18px; }
.hero p { font-size: 1.05rem; color: var(--text-secondary); max-width: 560px; margin: 0 auto 36px; }
.hero-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; }

/* ══ BUTTONS ══════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-full);
  font-weight: 700; font-size: .88rem; border: none; cursor: pointer;
  font-family: var(--font-bn); transition: var(--transition);
  text-decoration: none; white-space: nowrap; letter-spacing: -.01em;
  position: relative; overflow: hidden;
}
.btn::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background .15s;
}
.btn:hover::after { background: rgba(255,255,255,.08); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white; box-shadow: 0 4px 20px rgba(249,115,22,.4);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(249,115,22,.55); color: white; }
.btn-secondary {
  background: linear-gradient(135deg, var(--secondary), #059669);
  color: white; box-shadow: 0 4px 20px rgba(16,185,129,.35);
}
.btn-secondary:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(16,185,129,.5); color: white; }
.btn-outline {
  background: transparent; border: 1.5px solid var(--border); color: var(--text-primary);
}
.btn-outline:hover { border-color: var(--primary); color: var(--primary); background: rgba(249,115,22,.06); }
.btn-sm { padding: 7px 16px; font-size: .8rem; }
.btn-lg { padding: 15px 34px; font-size: 1rem; }
.btn-danger { background: var(--danger); color: white; box-shadow: 0 4px 16px rgba(239,68,68,.3); }
.btn-danger:hover { background: #DC2626; color: white; transform: translateY(-1px); }
.btn-success { background: var(--secondary); color: white; }
.btn-success:hover { background: #059669; color: white; transform: translateY(-1px); }
.btn-warning { background: linear-gradient(135deg, var(--gold), #D97706); color: #0F1420; font-weight: 800; }
.btn-warning:hover { transform: translateY(-1px); color: #0F1420; }
.btn-ghost { background: rgba(255,255,255,.06); color: var(--text-primary); border: 1px solid var(--border); }
.btn-ghost:hover { background: rgba(255,255,255,.1); color: white; }
body.light-mode .btn-ghost { background: #F1F5F9; color: var(--slate); border: 1px solid var(--border-light); }
body.light-mode .btn-ghost:hover { background: #E2E8F0; color: var(--text-dark); }

/* ══ CATEGORY CARDS ══════════════════════════════ */
.category-section { padding: 60px 0; }
.section-title { text-align: center; margin-bottom: 40px; }
.section-title h2 { color: var(--text-white); margin-bottom: 8px; }
.section-title p { color: var(--text-secondary); font-size: .95rem; }

.category-grid {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
}
.category-card {
  background: var(--bg-card2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 14px; width: 130px;
  text-align: center; cursor: pointer;
  transition: var(--transition); text-decoration: none;
  position: relative; overflow: hidden;
}
.category-card::before {
  content: ''; position: absolute; inset: 0;
  opacity: 0; transition: var(--transition);
  border-radius: inherit;
}
.category-card:hover {
  border-color: var(--border-active);
  transform: translateY(-5px);
  box-shadow: 0 12px 40px rgba(249,115,22,.2);
}
.category-card.active { border-color: var(--primary); }
.category-card .cat-icon {
  width: 52px; height: 52px; border-radius: 13px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.35rem; margin: 0 auto 10px;
}
.cat-icon.blue  { background: linear-gradient(135deg,#3B82F6,#1D4ED8); box-shadow: 0 6px 16px rgba(59,130,246,.35); }
.cat-icon.green { background: linear-gradient(135deg,var(--secondary),#059669); box-shadow: 0 6px 16px rgba(16,185,129,.35); }
.cat-icon.orange{ background: linear-gradient(135deg,var(--primary),var(--primary-dark)); box-shadow: 0 6px 16px rgba(249,115,22,.35); }
.cat-icon.purple{ background: linear-gradient(135deg,var(--accent),#7C3AED); box-shadow: 0 6px 16px rgba(139,92,246,.35); }
.cat-icon.gold  { background: linear-gradient(135deg,var(--gold),#D97706); box-shadow: 0 6px 16px rgba(245,158,11,.35); }
.cat-icon.red   { background: linear-gradient(135deg,var(--danger),#B91C1C); box-shadow: 0 6px 16px rgba(239,68,68,.35); }
.category-card .cat-label {
  font-size: .78rem; font-weight: 700; color: var(--text-primary);
}
.cat-badge {
  position: absolute; top: 8px; right: 8px;
  background: var(--danger); color: white;
  font-size: .62rem; font-weight: 800;
  padding: 2px 6px; border-radius: var(--radius-full);
}

/* ══ COURSE CARDS ════════════════════════════════ */
.courses-section { padding: 60px 0; }
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
}
.course-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: var(--transition);
  text-decoration: none;
  display: flex; flex-direction: column;
  position: relative;
}
.course-card::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  opacity: 0; transition: var(--transition);
}
.course-card:hover {
  border-color: rgba(249,115,22,.3);
  transform: translateY(-6px);
  box-shadow: 0 20px 50px rgba(0,0,0,.5), 0 0 0 1px rgba(249,115,22,.15);
}
.course-card:hover::before { opacity: 1; }
.course-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: var(--bg-card2);
}
.course-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s var(--ease); }
.course-card:hover .course-thumb img { transform: scale(1.06); }
.course-thumb-placeholder {
  width: 100%; height: 100%;
  background: linear-gradient(135deg, var(--bg-card2), var(--bg-elevated));
  display: flex; align-items: center; justify-content: center;
  font-size: 2.5rem;
}
.play-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,.55);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.play-overlay i { font-size: 2rem; color: white; filter: drop-shadow(0 0 12px rgba(249,115,22,.8)); }
.course-card:hover .play-overlay { opacity: 1; }
.course-level-badge {
  position: absolute; bottom: 8px; left: 8px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: .68rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-ssc { background: rgba(16,185,129,.85); color: white; }
.badge-hsc { background: rgba(249,115,22,.85); color: white; }
.badge-jsc { background: rgba(139,92,246,.85); color: white; }
.course-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.course-instructor {
  font-size: .73rem; color: var(--text-muted); font-weight: 600;
  margin-bottom: 6px; text-transform: uppercase; letter-spacing: .04em;
}
.course-title {
  font-size: .95rem; font-weight: 700; color: var(--text-primary);
  margin-bottom: 10px; line-height: 1.4; letter-spacing: -.01em;
}
.course-meta {
  display: flex; align-items: center; gap: 12px;
  font-size: .76rem; color: var(--text-muted);
  margin-top: auto; padding-top: 10px;
  border-top: 1px solid var(--border);
}
.course-meta span { display: flex; align-items: center; gap: 4px; }
.course-meta i { color: var(--primary); }
.course-price {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 12px; padding-top: 12px;
  border-top: 1px solid var(--border);
}
.price-tag {
  font-family: var(--font-display); font-weight: 900;
  font-size: 1.15rem; color: var(--text-white); letter-spacing: -.02em;
}
.price-tag .currency { font-size: .7rem; font-weight: 600; color: var(--text-muted); margin-right: 2px; }
.price-free { color: var(--secondary); font-size: 1rem; font-weight: 800; }
.price-old { font-size: .75rem; color: var(--text-muted); text-decoration: line-through; margin-left: 6px; }

/* ══ ALERTS ══════════════════════════════════════ */
.alert {
  padding: 13px 16px; border-radius: var(--radius); margin-bottom: 16px;
  font-size: .88rem; display: flex; align-items: flex-start; gap: 10px;
  border: 1px solid transparent; line-height: 1.5;
}
.alert-danger {
  background: rgba(239,68,68,.08); border-color: rgba(239,68,68,.2);
  color: #FCA5A5;
}
.alert-success {
  background: rgba(16,185,129,.08); border-color: rgba(16,185,129,.2);
  color: #6EE7B7;
}
.alert-info {
  background: rgba(59,130,246,.08); border-color: rgba(59,130,246,.2);
  color: #93C5FD;
}
.alert-warning {
  background: rgba(245,158,11,.08); border-color: rgba(245,158,11,.2);
  color: #FCD34D;
}

/* ══ FORMS ═══════════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-label {
  display: block; margin-bottom: 7px;
  font-size: .82rem; font-weight: 700;
  color: var(--text-secondary); letter-spacing: .03em;
  text-transform: uppercase;
}
.form-control {
  width: 100%; padding: 11px 14px;
  background: var(--bg-input);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-primary); font-family: var(--font-bn);
  font-size: .92rem; transition: var(--transition);
  outline: none;
}
.form-control:focus {
  border-color: var(--primary);
  background: rgba(30,37,64,.8);
  box-shadow: 0 0 0 3px rgba(249,115,22,.12);
}
.form-control::placeholder { color: var(--text-muted); }
select.form-control { cursor: pointer; }
.form-control.light-mode,
body.light-mode .form-control {
  background: var(--white); border-color: var(--border-light);
  color: var(--text-dark);
}
.form-control.light-mode:focus,
body.light-mode .form-control:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249,115,22,.1); }
body.light-mode .form-control::placeholder { color: var(--muted); }

/* ══ CARDS ═══════════════════════════════════════ */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

/* Light mode overrides card to white */
body.light-mode .card {
  background: #ffffff;
  border: 1px solid rgba(0,0,0,.07);
  box-shadow: 0 1px 4px rgba(0,0,0,.04), 0 4px 16px rgba(0,0,0,.05);
}
.card-header {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
}
body.light-mode .card-header { border-bottom: 1px solid var(--border-light); }
.card-header h3 { font-size: .95rem; margin: 0; color: var(--text-white); }
body.light-mode .card-header h3 { color: var(--text-dark); }
.card-body { padding: 20px; }

/* Light cards (for admin/dash) */
.card-light {
  background: var(--bg-card-light);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
}
.card-light .card-header {
  background: var(--bg-card-light);
  border-bottom: 1px solid var(--border-light);
}
.card-light .card-header h3 { color: var(--text-dark); }

/* ══ BADGE ═══════════════════════════════════════ */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 3px 10px; border-radius: var(--radius-full);
  font-size: .7rem; font-weight: 800; letter-spacing: .04em;
  text-transform: uppercase;
}
.badge-primary { background: rgba(249,115,22,.15); color: var(--primary); border: 1px solid rgba(249,115,22,.25); }
.badge-success { background: rgba(16,185,129,.12); color: var(--secondary); border: 1px solid rgba(16,185,129,.25); }
.badge-danger  { background: rgba(239,68,68,.12); color: var(--danger); border: 1px solid rgba(239,68,68,.25); }
.badge-warning { background: rgba(245,158,11,.12); color: var(--gold); border: 1px solid rgba(245,158,11,.25); }
.badge-info    { background: rgba(59,130,246,.12); color: var(--info); border: 1px solid rgba(59,130,246,.25); }
.badge-dark    { background: var(--bg-elevated); color: var(--text-secondary); border: 1px solid var(--border); }
/* Payment/status badges used across admin + student pages */
.badge-approved { background: rgba(16,185,129,.12); color: #059669; border: 1px solid rgba(16,185,129,.25); }
.badge-pending  { background: rgba(245,158,11,.12); color: #D97706; border: 1px solid rgba(245,158,11,.25); }
.badge-rejected { background: rgba(239,68,68,.12);  color: var(--danger); border: 1px solid rgba(239,68,68,.25); }
.badge-ssc-b    { background: rgba(59,130,246,.12); color: var(--info); border: 1px solid rgba(59,130,246,.25); }

/* ══ MODAL ═══════════════════════════════════════ */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0,0,0,.55); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal-box {
  background: white; border-radius: var(--radius-lg);
  padding: 28px; width: 100%; max-width: 480px;
  box-shadow: 0 24px 80px rgba(0,0,0,.25);
  animation: modalIn .2s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(16px) scale(.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* ══ TABLE ═══════════════════════════════════════ */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th {
  font-size: .7rem; font-weight: 800; letter-spacing: .07em;
  text-transform: uppercase; padding: 12px 16px;
  color: var(--muted); white-space: nowrap;
  background: #F8FAFC;
}
body.light-mode th { background: #F8FAFC; color: #64748B; border-bottom: 2px solid #E2E8F0; }
td { padding: 13px 16px; font-size: .85rem; vertical-align: middle; color: var(--text-dark); }
thead th { border-bottom: 1px solid var(--border-light); }
tbody tr { border-bottom: 1px solid rgba(0,0,0,.04); transition: background .12s; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: rgba(249,115,22,.035); }

/* ══ SECTION TABS ════════════════════════════════ */
.section-tabs {
  display: flex; gap: 6px; margin-bottom: 28px;
  flex-wrap: wrap; justify-content: center;
}
.section-tab {
  padding: 8px 18px; border-radius: var(--radius-full);
  border: 1.5px solid var(--border);
  background: transparent; cursor: pointer;
  font-family: var(--font-bn); font-weight: 700;
  color: var(--text-secondary); font-size: .84rem;
  transition: var(--transition);
}
.section-tab.active {
  background: var(--primary); border-color: var(--primary);
  color: white; box-shadow: 0 4px 16px rgba(249,115,22,.4);
}
.section-tab:hover:not(.active) { border-color: var(--primary); color: var(--primary); }
.course-section { display: none; }
.course-section.active { display: block; }

/* ══ TESTIMONIALS ════════════════════════════════ */
.testimonial-card {
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px;
  transition: var(--transition);
}
.testimonial-card:hover { border-color: rgba(249,115,22,.2); transform: translateY(-3px); }
.testimonial-card .stars { color: var(--gold); font-size: .82rem; margin-bottom: 10px; letter-spacing: 2px; }
.testimonial-card .text { color: var(--text-secondary); font-size: .87rem; line-height: 1.7; margin-bottom: 14px; }
.testimonial-card .author { display: flex; align-items: center; gap: 10px; }
.testimonial-card .author-name { font-weight: 700; color: var(--text-primary); font-size: .86rem; }
.testimonial-card .author-info { font-size: .73rem; color: var(--text-muted); }

/* ══ STATS BANNER ════════════════════════════════ */
.stats-banner {
  background: linear-gradient(135deg, rgba(249,115,22,.9), rgba(194,65,12,.95));
  padding: 60px 0; text-align: center;
  position: relative; overflow: hidden;
}
.stats-banner::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.stats-banner-grid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 24px;
  position: relative; z-index: 1;
}
@media(max-width:600px) { .stats-banner-grid { grid-template-columns: repeat(2,1fr); } }
.stat-item .num {
  font-family: var(--font-display); font-weight: 900;
  font-size: 2.4rem; color: white; letter-spacing: -.03em;
}
.stat-item .lbl { font-size: .82rem; color: rgba(255,255,255,.8); font-weight: 600; margin-top: 4px; }

/* ══ WHY US ══════════════════════════════════════ */
.why-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 18px;
}
@media(max-width:768px) { .why-grid { grid-template-columns: repeat(2,1fr); } }
@media(max-width:480px) { .why-grid { grid-template-columns: 1fr; } }
.why-card {
  background: var(--bg-card2); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; text-align: center;
  transition: var(--transition); position: relative; overflow: hidden;
}
.why-card::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transform: scaleX(0); transition: transform .3s var(--ease);
  transform-origin: center;
}
.why-card:hover { border-color: rgba(249,115,22,.2); transform: translateY(-4px); }
.why-card:hover::after { transform: scaleX(1); }
.why-icon {
  width: 56px; height: 56px; border-radius: 14px; margin: 0 auto 14px;
  display: flex; align-items: center; justify-content: center; font-size: 1.5rem;
}
.why-card h4 { color: var(--text-primary); font-size: .95rem; margin-bottom: 7px; }
.why-card p  { font-size: .81rem; color: var(--text-secondary); }

/* ══ AUTH PAGES ══════════════════════════════════ */
.auth-page {
  min-height: 100vh;
  background: var(--bg-base);
  display: flex; align-items: center; justify-content: center;
  padding: 40px 16px;
  position: relative; overflow: hidden;
}
.auth-page::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 50% 0%, rgba(249,115,22,.14) 0%, transparent 65%),
    radial-gradient(ellipse 40% 40% at 90% 90%, rgba(139,92,246,.1) 0%, transparent 60%);
}
.auth-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl); padding: 36px 32px;
  width: 100%; max-width: 420px;
  box-shadow: 0 32px 80px rgba(0,0,0,.6);
  position: relative; z-index: 1;
}
.auth-logo {
  width: 58px; height: 58px; border-radius: 16px;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem; font-weight: 900; color: white;
  margin: 0 auto 18px; box-shadow: 0 8px 24px rgba(249,115,22,.4);
}
.pass-wrap { position: relative; }
.pass-toggle {
  position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
  background: none; border: none; cursor: pointer; color: var(--text-muted);
  font-size: .9rem; padding: 4px; transition: var(--transition);
}
.pass-toggle:hover { color: var(--primary); }

/* ══ DASHBOARD LAYOUT ════════════════════════════ */
.dash-layout {
  display: flex; min-height: 100vh;
  background: #F0F2F8;
}

/* ══ SIDEBAR — Dark Premium ═══════════════════════ */
.sidebar {
  width: 232px; flex-shrink: 0;
  background: #13172A;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto; z-index: 100;
  transition: var(--transition);
  box-shadow: 4px 0 24px rgba(0,0,0,.18);
}
.sidebar::-webkit-scrollbar { width: 3px; }
.sidebar::-webkit-scrollbar-thumb { background: rgba(255,255,255,.1); }
.sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 18px 16px; border-bottom: 1px solid rgba(255,255,255,.07);
  font-family: var(--font-display); font-weight: 900; font-size: 1rem;
  color: #fff; letter-spacing: -.02em;
}
.sidebar-section {
  padding: 16px 14px 5px; font-size: .6rem; font-weight: 800;
  color: rgba(255,255,255,.25); letter-spacing: .12em; text-transform: uppercase;
}
.sidebar-link {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 10px; border-radius: var(--radius-sm);
  margin: 1px 8px; text-decoration: none;
  color: rgba(255,255,255,.5); font-size: .82rem; font-weight: 600;
  transition: var(--transition);
}
.sidebar-link:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.85); }
.sidebar-link.active {
  background: linear-gradient(135deg, rgba(249,115,22,.25), rgba(249,115,22,.1));
  color: var(--primary);
  border: 1px solid rgba(249,115,22,.2);
}
.sidebar-link i { width: 17px; text-align: center; font-size: .87rem; }
.sidebar-badge {
  margin-left: auto; background: var(--danger);
  color: white; font-size: .6rem; font-weight: 800;
  padding: 2px 7px; border-radius: var(--radius-full);
  animation: pulse-badge 2s infinite;
}
@keyframes pulse-badge {
  0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.4); }
  50% { box-shadow: 0 0 0 4px rgba(239,68,68,0); }
}

/* ══ DASHBOARD CONTENT ═══════════════════════════ */
.dash-content {
  flex: 1; min-width: 0; padding: 0;
  background: #F0F2F8;
}
.dash-topbar {
  background: white; border-bottom: 1px solid var(--border-light);
  padding: 14px 22px; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
}
.page-content { padding: 22px; }

@media(max-width:900px) {
  .sidebar {
    position: fixed; left: -240px; top: 0; bottom: 0;
    z-index: 200; box-shadow: var(--shadow-lg);
  }
  .sidebar.open { left: 0; }
  .dash-content { width: 100%; }
}

/* ══ STAT CARDS (DASHBOARD) ══════════════════════ */
.stat-card {
  background: white; border: 1px solid rgba(0,0,0,.06);
  border-radius: var(--radius-lg); padding: 18px 20px;
  display: flex; align-items: center; gap: 14px;
  box-shadow: 0 1px 4px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.06);
  transition: var(--transition);
  position: relative; overflow: hidden;
}
.stat-card::after {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; opacity: 0; transition: opacity .2s;
}
.stat-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,.1); transform: translateY(-2px); }
.stat-card:hover::after { opacity: 1; }
.stat-icon {
  width: 50px; height: 50px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.2rem; flex-shrink: 0;
}
.stat-icon.orange { background: linear-gradient(135deg,rgba(249,115,22,.18),rgba(249,115,22,.06)); color: var(--primary); }
.stat-icon.orange + div .stat-value { color: var(--primary); }
.stat-card:has(.stat-icon.orange)::after { background: linear-gradient(90deg,var(--primary),var(--gold)); }
.stat-icon.green  { background: linear-gradient(135deg,rgba(16,185,129,.18),rgba(16,185,129,.06)); color: var(--secondary); }
.stat-card:has(.stat-icon.green)::after  { background: linear-gradient(90deg,var(--secondary),#34D399); }
.stat-icon.purple { background: linear-gradient(135deg,rgba(139,92,246,.18),rgba(139,92,246,.06)); color: var(--accent); }
.stat-card:has(.stat-icon.purple)::after { background: linear-gradient(90deg,var(--accent),#A78BFA); }
.stat-icon.blue   { background: linear-gradient(135deg,rgba(59,130,246,.18),rgba(59,130,246,.06)); color: var(--info); }
.stat-card:has(.stat-icon.blue)::after   { background: linear-gradient(90deg,var(--info),#60A5FA); }
.stat-icon.gold   { background: linear-gradient(135deg,rgba(245,158,11,.18),rgba(245,158,11,.06)); color: var(--gold); }
.stat-card:has(.stat-icon.gold)::after   { background: linear-gradient(90deg,var(--gold),#FCD34D); }
.stat-icon.red    { background: linear-gradient(135deg,rgba(239,68,68,.18),rgba(239,68,68,.06)); color: var(--danger); }
.stat-card:has(.stat-icon.red)::after    { background: linear-gradient(90deg,var(--danger),#F87171); }
.stat-icon.yellow { background: linear-gradient(135deg,rgba(234,179,8,.18),rgba(234,179,8,.06)); color: #CA8A04; }
.stat-value { font-family: var(--font-display); font-size: 1.55rem; font-weight: 900; color: var(--text-dark); letter-spacing: -.03em; line-height: 1.1; }
.stat-label { font-size: .72rem; color: var(--muted); font-weight: 600; margin-top: 2px; }
.stat-info .num { font-family: var(--font-display); font-size: 1.5rem; font-weight: 900; color: var(--text-dark); letter-spacing: -.03em; }
.stat-info .lbl { font-size: .73rem; color: var(--muted); font-weight: 600; }

/* ══ PROGRESS BARS ═══════════════════════════════ */
.progress-bar-wrap {
  background: var(--bg-light); border-radius: var(--radius-full); height: 7px;
  overflow: hidden; border: 1px solid var(--border-light);
}
.progress-bar-fill {
  height: 100%; border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--primary), var(--gold));
  transition: width .7s var(--ease);
}

/* ══ WELCOME BANNER ══════════════════════════════ */
.welcome-banner {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  border-radius: var(--radius-lg); padding: 20px 22px;
  color: white; margin-bottom: 22px;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
  position: relative; overflow: hidden;
}
.welcome-banner::before {
  content: '🎯';
  position: absolute; right: 20px; top: 50%; transform: translateY(-50%);
  font-size: 4rem; opacity: .15; pointer-events: none;
}
.course-progress-card {
  background: white; border: 1px solid var(--border-light);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-card); transition: var(--transition);
}
.course-progress-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-2px); }

/* ══ REFERRAL ════════════════════════════════════ */
.referral-code-box {
  background: linear-gradient(135deg, var(--primary), var(--gold));
  border-radius: var(--radius-lg); padding: 28px; text-align: center;
  margin-bottom: 20px; position: relative; overflow: hidden;
  box-shadow: 0 12px 40px rgba(249,115,22,.35);
}
.referral-code-box::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='40' height='40' viewBox='0 0 40 40' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='%23ffffff' fill-opacity='0.07'%3E%3Cpath d='M20 0L0 20h40L20 0zM0 20l20 20 20-20H0z'/%3E%3C/g%3E%3C/svg%3E");
}
.referral-code-box .code {
  font-family: var(--font-display); font-weight: 900;
  font-size: 2rem; color: white; letter-spacing: .18em;
  margin: 8px 0; text-shadow: 0 2px 12px rgba(0,0,0,.25);
  position: relative; z-index: 1;
}
.referral-link-box {
  background: var(--bg-light); border-radius: var(--radius-sm);
  padding: 10px 14px; font-size: .77rem; color: var(--slate);
  word-break: break-all; border: 1px solid var(--border-light);
  margin-bottom: 12px; font-family: var(--font-mono);
}

/* ══ AVATAR ══════════════════════════════════════ */
.avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--gold));
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 800; color: white; flex-shrink: 0;
}
.avatar-sm { width: 28px; height: 28px; font-size: .65rem; }
.avatar-lg { width: 48px; height: 48px; font-size: 1.1rem; }

/* ══ LEADERBOARD ══════════════════════════════════ */
.leaderboard-item {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-bottom: 1px solid var(--border-light);
}
.rank-badge {
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: .78rem; flex-shrink: 0;
}
.rank-1 { background: linear-gradient(135deg,#F59E0B,#D97706); color: white; box-shadow: 0 4px 12px rgba(245,158,11,.4); }
.rank-2 { background: linear-gradient(135deg,#94A3B8,#64748B); color: white; }
.rank-3 { background: linear-gradient(135deg,#CD7C2F,#A85E1E); color: white; }
.rank-other { background: var(--bg-light); color: var(--slate); border: 1px solid var(--border-light); }

/* ══ AI CHAT ══════════════════════════════════════ */
.chat-container {
  display: flex; flex-direction: column; height: 65vh;
  background: var(--bg-light); border-radius: var(--radius-lg);
  border: 1px solid var(--border-light); overflow: hidden;
  box-shadow: var(--shadow-card);
}
.chat-messages {
  flex: 1; overflow-y: auto; padding: 18px; display: flex;
  flex-direction: column; gap: 12px;
}
.chat-bubble {
  max-width: 76%; padding: 11px 15px; border-radius: var(--radius);
  font-size: .88rem; line-height: 1.65;
}
.bubble-user {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white; align-self: flex-end; border-bottom-right-radius: 4px;
  box-shadow: 0 4px 12px rgba(249,115,22,.25);
}
.bubble-ai {
  background: white; color: var(--text-dark);
  border: 1px solid var(--border-light);
  align-self: flex-start; border-bottom-left-radius: 4px;
  box-shadow: var(--shadow-sm);
}
.chat-input-row {
  display: flex; gap: 10px; padding: 12px;
  border-top: 1px solid var(--border-light); background: white;
}
.chat-input {
  flex: 1; padding: 10px 16px; border-radius: var(--radius-full);
  border: 1.5px solid var(--border-light); font-family: var(--font-bn);
  font-size: .88rem; outline: none; transition: var(--transition);
}
.chat-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(249,115,22,.1); }

/* ══ COURSE DETAIL / LEARN ════════════════════════ */
.learn-layout {
  display: flex; height: calc(100vh - var(--navbar-h));
}
.chapter-panel {
  width: 300px; flex-shrink: 0;
  background: var(--bg-card);
  border-right: 1px solid var(--border);
  overflow-y: auto; display: flex; flex-direction: column;
}
.chapter-panel-header {
  padding: 16px; border-bottom: 1px solid var(--border);
  font-weight: 700; color: var(--text-white); font-size: .9rem;
  position: sticky; top: 0; background: var(--bg-card); z-index: 10;
}
.chapter-item {
  padding: 12px 16px; border-bottom: 1px solid var(--border);
  cursor: pointer; transition: var(--transition);
}
.chapter-item:hover { background: var(--bg-card2); }
.chapter-item.active { background: rgba(249,115,22,.1); border-left: 3px solid var(--primary); }
.chapter-title { font-size: .82rem; font-weight: 700; color: var(--text-primary); margin-bottom: 3px; }
.lesson-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 16px 9px 28px; cursor: pointer;
  font-size: .8rem; color: var(--text-secondary);
  transition: var(--transition);
}
.lesson-item:hover { background: var(--bg-card2); color: var(--text-primary); }
.lesson-item.active { color: var(--primary); background: rgba(249,115,22,.06); }
.lesson-item.done { color: var(--secondary); }
.lesson-item i { font-size: .75rem; flex-shrink: 0; }
.video-area {
  flex: 1; background: #000; display: flex; flex-direction: column;
  overflow: hidden;
}

/* ══ PAYMENT PAGE ════════════════════════════════ */
.payment-card {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.payment-card-header {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  padding: 24px; text-align: center;
}

/* ══ SPINNER ══════════════════════════════════════ */
.spinner {
  width: 26px; height: 26px;
  border: 3px solid var(--border);
  border-top-color: var(--primary); border-radius: 50%;
  animation: spin .7s linear infinite; display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ══ FOOTER ══════════════════════════════════════ */
.footer {
  background: #06080F; border-top: 1px solid var(--border);
  padding: 52px 0 28px;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px;
  margin-bottom: 36px;
}
@media(max-width:768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { color: var(--text-secondary); font-size: .86rem; line-height: 1.8; }
.footer-brand .logo { font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; margin-bottom: 12px; color: var(--text-white); letter-spacing: -.02em; }
.footer-title { font-family: var(--font-display); font-weight: 700; color: var(--text-white); font-size: .86rem; margin-bottom: 14px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.footer-links a { color: var(--text-muted); font-size: .81rem; transition: var(--transition); }
.footer-links a:hover { color: var(--primary); }
.footer-bottom {
  border-top: 1px solid var(--border); padding-top: 22px;
  text-align: center; font-size: .76rem; color: var(--text-muted);
}

/* ══ FEATURE STRIP ════════════════════════════════ */
.feature-strip {
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 0;
}
.feature-items {
  display: flex; justify-content: center; gap: 36px; flex-wrap: wrap;
}
.feature-item {
  display: flex; align-items: center; gap: 9px;
  font-size: .84rem; color: var(--text-secondary); font-weight: 600;
}
.feature-item i { color: var(--primary); font-size: 1rem; }

/* ══ ADMIN PAGES ══════════════════════════════════ */
.admin-layout { display: flex; min-height: 100vh; background: var(--bg-light); }
.admin-sidebar {
  width: 240px; flex-shrink: 0;
  background: #1A1F2E;
  display: flex; flex-direction: column;
  position: sticky; top: 0; height: 100vh;
  overflow-y: auto;
}
.admin-sidebar-brand {
  display: flex; align-items: center; gap: 10px;
  padding: 20px 18px; border-bottom: 1px solid rgba(255,255,255,.08);
  font-family: var(--font-display); font-weight: 900; font-size: 1rem;
  color: white; letter-spacing: -.02em;
}
.admin-sidebar-section {
  padding: 14px 14px 5px; font-size: .62rem; font-weight: 800;
  color: rgba(255,255,255,.3); letter-spacing: .1em; text-transform: uppercase;
}
.admin-sidebar-link {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  margin: 1px 8px; text-decoration: none;
  color: rgba(255,255,255,.5); font-size: .83rem; font-weight: 600;
  transition: var(--transition);
}
.admin-sidebar-link:hover { background: rgba(255,255,255,.06); color: rgba(255,255,255,.8); }
.admin-sidebar-link.active {
  background: rgba(249,115,22,.2); color: var(--primary);
}
.admin-sidebar-link i { width: 17px; text-align: center; font-size: .88rem; }
.admin-content { flex: 1; min-width: 0; background: var(--bg-light); }
.admin-topbar {
  background: white; border-bottom: 1px solid var(--border-light);
  padding: 14px 24px; display: flex; align-items: center;
  justify-content: space-between; position: sticky; top: 0; z-index: 50;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.admin-page-content { padding: 24px; }

/* ══ MISC UTILITIES ══════════════════════════════ */
.divider { height: 1px; background: var(--border); margin: 24px 0; }
.divider-light { height: 1px; background: var(--border-light); margin: 20px 0; }
.text-center { text-align: center; }
.text-right  { text-align: right; }
.mt-4  { margin-top: 16px; }
.mt-6  { margin-top: 24px; }
.mb-4  { margin-bottom: 16px; }
.mb-6  { margin-bottom: 24px; }
.gap-2 { gap: 8px; }
.d-flex { display: flex; }
.align-center { align-items: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.w-100 { width: 100%; }

/* ══ MOBILE BOTTOM NAV — DISABLED ═══════════════ */
.mobile-bottom-nav { display: none !important; }

/* ══ GLASS CARD ══════════════════════════════════ */
.glass-card {
  background: rgba(20,25,39,.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.08);
  border-radius: var(--radius-lg);
}

/* ══ CHIP / TAG ══════════════════════════════════ */
.chip {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 12px; border-radius: var(--radius-full);
  font-size: .74rem; font-weight: 700;
  background: var(--bg-card2); border: 1px solid var(--border);
  color: var(--text-secondary);
}

/* ══ RESPONSIVE ══════════════════════════════════ */
@media(max-width:768px) {
  .hero { padding: 60px 0 50px; }
  .stats-banner { padding: 44px 0; }
  .courses-section, .category-section { padding: 44px 0; }
}
@media(max-width:600px) {
  .courses-grid { grid-template-columns: 1fr 1fr; }
  h1 { font-size: 1.7rem; }
  h2 { font-size: 1.3rem; }
  .btn { padding: 10px 18px; font-size: .84rem; }
  .auth-card { padding: 28px 20px; }
}
@media(max-width:420px) {
  .courses-grid { grid-template-columns: 1fr; }
  .category-card { width: 110px; padding: 14px 10px; }
}

/* ══ ANIMATIONS ══════════════════════════════════ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes fadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 20px rgba(249,115,22,.25); }
  50%       { box-shadow: 0 0 40px rgba(249,115,22,.5); }
}
.animate-fade-up { animation: fadeInUp .4s var(--ease) both; }
.animate-fade    { animation: fadeIn .3s var(--ease) both; }

/* ══ INPUT GROUP ══════════════════════════════════ */
.input-icon-wrap { position: relative; }
.input-icon-wrap .form-control { padding-left: 40px; }
.input-icon-wrap .inp-icon {
  position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
  color: var(--text-muted); font-size: .88rem; pointer-events: none;
}

/* ══ OVERLAY BACKDROP ════════════════════════════ */
.overlay-backdrop {
  position: fixed; inset: 0; background: rgba(0,0,0,.6);
  backdrop-filter: blur(3px);
  z-index: 150; opacity: 0; pointer-events: none;
  transition: opacity .2s;
}
.overlay-backdrop.show { opacity: 1; pointer-events: all; }

/* ══ SECTION DIVIDERS ════════════════════════════ */
.section-eyebrow {
  display: inline-block;
  font-size: .72rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--primary);
  margin-bottom: 10px;
}

/* ══ NOTIFICATION DOT ════════════════════════════ */
.notif-dot {
  position: relative;
}
.notif-dot::after {
  content: '';
  position: absolute; top: -2px; right: -2px;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--danger); border: 2px solid var(--bg-base);
}

/* ══ EXTRA UTILITY ════════════════════════════════ */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.stat-value {
  font-family: var(--font-display); font-size: 1.4rem; font-weight: 900;
  color: var(--text-dark); letter-spacing: -.03em; line-height: 1.1;
}
.stat-label { font-size: .71rem; color: var(--muted); font-weight: 600; margin-top: 2px; }
.stat-icon.yellow { background: linear-gradient(135deg,rgba(245,158,11,.15),rgba(245,158,11,.05)); color: var(--gold); }

/* ══ COURSE DETAIL ════════════════════════════════ */
.course-detail-hero {
  background: linear-gradient(135deg, var(--bg-surface), var(--bg-card));
  border-bottom: 1px solid var(--border);
  padding: 40px 0;
}
.course-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }

/* ══ PAYMENT STEPS ════════════════════════════════ */
.payment-steps {
  display: flex; gap: 0; margin-bottom: 28px;
}
.payment-step {
  flex: 1; text-align: center; padding: 12px;
  font-size: .76rem; font-weight: 700; color: var(--muted);
  border-bottom: 2px solid var(--border-light);
  transition: var(--transition);
}
.payment-step.active { color: var(--primary); border-bottom-color: var(--primary); }
.payment-step.done   { color: var(--secondary); border-bottom-color: var(--secondary); }

/* ══ HOVER LIFT ══════════════════════════════════ */
.hover-lift { transition: var(--transition); }
.hover-lift:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }

/* ══ SECTION PADDING ══════════════════════════════ */
.section-py { padding: 56px 0; }
.section-py-sm { padding: 36px 0; }

/* ══ BACKWARD COMPAT (old variable aliases) ══════ */
:root {
  --bg-dark:     var(--bg-base);
  --bg-card:     var(--bg-card);
  --bg-card2:    var(--bg-card2);
  --border-dark: var(--border);
  --text-muted:  var(--text-muted);
  --shadow-glow: var(--shadow-glow);
  --font-bn:     'Hind Siliguri', sans-serif;
  --font-display:'Inter', sans-serif;
}

/* ═══════════════════════════════════════════════════
   MOBILE FIX — Complete Responsive Overrides
   ═══════════════════════════════════════════════════ */

/* Fix payment layout on mobile */
@media(max-width:700px) {
  .payment-layout { grid-template-columns: 1fr !important; }
  .pay-page { padding: 20px 12px !important; }
}

/* Fix dashboard grid */
@media(max-width:900px) {
  .course-layout { grid-template-columns: 1fr !important; }
  .dash-content { width: 100%; }
}

/* Fix admin sidebar on mobile */
@media(max-width:900px) {
  .sidebar {
    position: fixed !important;
    left: -260px !important;
    width: 240px !important;
    height: 100vh !important;
    top: 0 !important;
    z-index: 500 !important;
    transition: left .3s ease !important;
    box-shadow: var(--shadow-md);
  }
  .sidebar.open { left: 0 !important; }
  .page-content { padding: 16px !important; }
  .dash-topbar { padding: 12px 16px !important; }
}

/* Fix stats grid mobile */
@media(max-width:600px) {
  .stats-grid { grid-template-columns: 1fr 1fr !important; }
  .stat-card { padding: 14px !important; gap: 10px !important; }
  .stat-value { font-size: 1.2rem !important; }
  .page-content { padding: 12px !important; }
}

/* Fix footer grid */
@media(max-width:600px) {
  .footer-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
  .stats-banner-grid { grid-template-columns: 1fr 1fr !important; }
}

/* Fix category grid */
@media(max-width:480px) {
  .category-grid { gap: 10px !important; }
  .category-card { width: 110px !important; padding: 14px 10px !important; }
}

/* Fix hero on mobile */
@media(max-width:600px) {
  .hero { padding: 60px 0 40px !important; }
  .hero-actions { flex-direction: column; align-items: center; }
  .hero-actions .btn { width: 100%; max-width: 280px; justify-content: center; }
}

/* Fix course grid */
@media(max-width:480px) {
  .courses-grid { grid-template-columns: 1fr !important; }
}

/* Fix dashboard 2-col layout */
@media(max-width:768px) {
  div[style*="grid-template-columns:2fr 1fr"],
  div[style*="grid-template-columns: 2fr 1fr"],
  div[style*="grid-template-columns:1fr 2fr"],
  div[style*="grid-template-columns: 1fr 2fr"] {
    grid-template-columns: 1fr !important;
  }
  div[style*="grid-template-columns:1fr 1fr"],
  div[style*="grid-template-columns: 1fr 1fr"] {
    grid-template-columns: 1fr !important;
  }
}

/* Fix table overflow */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { min-width: 500px; }

/* Fix learn page on mobile */
@media(max-width:768px) {
  .learn-layout { flex-direction: column !important; height: auto !important; }
  .video-main { height: auto !important; }
  .video-container { max-height: 56vw !important; aspect-ratio: 16/9 !important; }
  .lesson-sidebar { width: 100% !important; max-height: 350px !important; border-left: none !important; border-top: 1px solid var(--border-light) !important; }
}

/* Fix navbar on mobile */
@media(max-width:600px) {
  .navbar-inner { padding: 0 12px !important; }
  .brand-logo + * { display: none; }
  .navbar-brand span { display: none; }
}

/* Ensure buttons don't overflow */
.btn { white-space: nowrap; }
@media(max-width:400px) {
  .btn { font-size: .8rem !important; padding: 8px 14px !important; }
}

/* Fix admin dashboard grids */
@media(max-width:900px) {
  .stats-grid { grid-template-columns: repeat(2,1fr) !important; }
}
@media(max-width:500px) {
  .stats-grid { grid-template-columns: 1fr !important; }
}

/* Fix why-grid */
@media(max-width:500px) {
  .why-grid { grid-template-columns: 1fr !important; }
}

/* Sidebar overlay */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.5); z-index: 499;
}
.sidebar-overlay.open { display: block; }
