@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=DM+Sans:wght@300;400;500;600&display=swap');

/* ══════════════════════════════════════════════
   TOKENS
══════════════════════════════════════════════ */
:root {
  --purple:      #6b53a3;
  --purple-l:    #8b6fc7;
  --purple-d:    #4a3878;
  --purple-glow: rgba(107,83,163,.2);
  --black:       #000;
  --d1:          #0a0a0a;
  --d2:          #111;
  --d3:          #1a1a1a;
  --white:       #fff;
  --soft:        #c8c8c8;
  --muted:       #777;
  --red:         #ff3532;
  --green:       #14a800;
  --gold:        #FFD700;
  --bkash:       #E2136E;
  --nagad:       #F6921E;
  --display:     'Syne', sans-serif;
  --body:        'DM Sans', sans-serif;
  --ease:        cubic-bezier(.16,1,.3,1);
  --nav-h:       68px;
  --sb-w:        260px;
}

/* ══════════════════════════════════════════════
   RESET
══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--body); font-size: 15px; line-height: 1.65; color: var(--soft); background: var(--black); overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; font: inherit; color: inherit; }
input, select, textarea { font: inherit; }

/* ══════════════════════════════════════════════
   TYPOGRAPHY
══════════════════════════════════════════════ */
h1,h2,h3,h4 { font-family: var(--display); font-weight: 700; line-height: 1.1; color: var(--white); letter-spacing: -.025em; }
.eyebrow { font-size: 11px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--purple-l); display: inline-flex; align-items: center; gap: 8px; }
.eyebrow::before { content: ''; display: inline-block; width: 20px; height: 1px; background: var(--purple-l); }

/* ══════════════════════════════════════════════
   LAYOUT
══════════════════════════════════════════════ */
.wrap { max-width: 1380px; margin: 0 auto; padding: 0 60px; }
.sec  { padding: 80px 0; position: relative; }
.sec--dark { background: var(--d2); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; }
.flex   { display: flex; align-items: center; }
.gap-8  { gap: 8px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }
.gap-24 { gap: 24px; }
.ml-auto { margin-left: auto; }
.tc { text-align: center; }
.mb-8  { margin-bottom: 8px; }
.mb-12 { margin-bottom: 12px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.mb-32 { margin-bottom: 32px; }
.mb-40 { margin-bottom: 40px; }
.mb-48 { margin-bottom: 48px; }

/* ══════════════════════════════════════════════
   BUTTONS
══════════════════════════════════════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--body); font-weight: 600; font-size: 14px;
  padding: 12px 24px; border-radius: 8px; border: 1.5px solid transparent;
  transition: all .25s var(--ease); white-space: nowrap; cursor: pointer;
  position: relative; overflow: hidden;
}
.btn:active { transform: scale(.98); }
.btn-primary   { background: var(--purple); color: var(--white); border-color: var(--purple); }
.btn-primary:hover { background: var(--purple-l); border-color: var(--purple-l); transform: translateY(-2px); box-shadow: 0 8px 28px var(--purple-glow); }
.btn-red       { background: var(--red); color: var(--white); border-color: var(--red); }
.btn-red:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,53,50,.35); }
.btn-green     { background: var(--green); color: var(--white); border-color: var(--green); }
.btn-green:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(20,168,0,.3); }
.btn-outline   { background: transparent; color: var(--white); border-color: rgba(139,111,199,.4); }
.btn-outline:hover { border-color: var(--purple-l); background: rgba(107,83,163,.1); }
.btn-ghost     { background: rgba(255,255,255,.04); color: var(--soft); border-color: rgba(255,255,255,.08); }
.btn-ghost:hover { background: rgba(255,255,255,.08); color: var(--white); }
.btn-sm  { padding: 8px 18px; font-size: 13px; border-radius: 7px; }
.btn-lg  { padding: 16px 36px; font-size: 16px; border-radius: 10px; }
.btn-full { width: 100%; justify-content: center; }
.btn-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.btn-row--c { justify-content: center; }

/* ══════════════════════════════════════════════
   NAV (public — academy nav)
══════════════════════════════════════════════ */
.acad-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: var(--nav-h);
  background: rgba(0,0,0,.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,.04);
  transition: all .35s var(--ease);
}
.acad-nav.sc { background: rgba(0,0,0,.96); border-bottom-color: rgba(107,83,163,.2); }
.acad-nav__in {
  display: flex; align-items: center; gap: 24px;
  height: 100%; max-width: 1380px; margin: 0 auto; padding: 0 60px;
}
.acad-nav__logo { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-size: 19px; font-weight: 800; color: var(--white); letter-spacing: -.04em; flex-shrink: 0; }
.acad-nav__mark { width: 36px; height: 36px; background: var(--purple); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 15px; font-weight: 800; color: var(--white); }
.acad-nav__logo em { color: var(--purple-l); font-style: normal; font-weight: 400; }
.acad-nav__sub { font-size: 11px; color: var(--purple-l); font-family: var(--body); font-weight: 600; letter-spacing: .08em; }
.acad-nav__back { font-size: 13px; color: var(--purple-l); display: flex; align-items: center; gap: 6px; transition: gap .2s; }
.acad-nav__back:hover { gap: 10px; }
.acad-nav__spacer { flex: 1; }
.acad-nav__actions { display: flex; align-items: center; gap: 10px; }
.acad-nav__hbg { display: none; flex-direction: column; gap: 5px; padding: 8px; }
.acad-nav__hbg span { display: block; width: 22px; height: 2px; background: var(--white); border-radius: 2px; transition: all .3s; }
/* Mobile nav drawer */
.acad-nav__mob {
  display: none; flex-direction: column;
  position: fixed; top: var(--nav-h); left: 0; right: 0; z-index: 999;
  background: rgba(0,0,0,.97); backdrop-filter: blur(20px);
  padding: 20px 24px 28px; gap: 4px;
  border-bottom: 1px solid rgba(107,83,163,.18);
}
.acad-nav__mob.open { display: flex; }
.acad-nav__mob a { font-size: 16px; color: var(--soft); padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.04); }
.acad-nav__mob a:hover { color: var(--white); }
.acad-nav__mob-btns { display: flex; flex-direction: column; gap: 10px; margin-top: 16px; }

/* ══════════════════════════════════════════════
   CARDS — General
══════════════════════════════════════════════ */
.card {
  background: var(--d3); border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px; padding: 24px;
  transition: all .35s var(--ease); position: relative; overflow: hidden;
}
.card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(107,83,163,.5), transparent);
  opacity: 0; transition: opacity .3s;
}
.card:hover { border-color: rgba(107,83,163,.28); transform: translateY(-3px); }
.card:hover::before { opacity: 1; }

/* ══════════════════════════════════════════════
   COURSE CARD
══════════════════════════════════════════════ */
.course-card {
  background: var(--d3); border: 1px solid rgba(255,255,255,.06);
  border-radius: 18px; overflow: hidden;
  transition: all .35s var(--ease); display: flex; flex-direction: column;
}
.course-card:hover { border-color: rgba(107,83,163,.3); transform: translateY(-5px); box-shadow: 0 20px 56px rgba(0,0,0,.45); }
.course-card__thumb {
  height: 148px; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center; font-size: 52px;
}
.course-card__thumb::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.5) 0%, transparent 60%); }
.course-card__badges { position: absolute; top: 10px; left: 10px; right: 10px; display: flex; justify-content: space-between; align-items: flex-start; z-index: 1; }
.course-card__body { padding: 18px; flex: 1; display: flex; flex-direction: column; }
.course-card__cat { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 6px; }
.course-card__title { font-family: var(--display); font-size: 14px; font-weight: 700; color: var(--white); line-height: 1.35; margin-bottom: 10px; flex: 1; }
.course-card__meta { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.course-card__stars { color: var(--gold); font-size: 12px; }
.course-card__divider { height: 1px; background: rgba(107,83,163,.15); margin-bottom: 12px; }
.course-card__footer { display: flex; align-items: center; justify-content: space-between; }
.course-card__price { font-family: var(--display); font-size: 17px; font-weight: 800; color: var(--purple-l); }

/* Pill badges */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  font-size: 10px; font-weight: 600; padding: 3px 10px; border-radius: 100px;
  white-space: nowrap;
}
.badge--red    { background: rgba(255,53,50,.15); border: 1px solid rgba(255,53,50,.4); color: var(--red); }
.badge--purple { background: rgba(107,83,163,.2); border: 1px solid rgba(107,83,163,.4); color: var(--purple-l); }
.badge--green  { background: rgba(20,168,0,.15); border: 1px solid rgba(20,168,0,.4); color: var(--green); }
.badge--gold   { background: rgba(255,215,0,.15); border: 1px solid rgba(255,215,0,.35); color: var(--gold); }
.badge--muted  { background: rgba(119,119,119,.12); border: 1px solid rgba(119,119,119,.25); color: var(--muted); }

/* ══════════════════════════════════════════════
   FILTER TABS
══════════════════════════════════════════════ */
.filter-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-tab {
  padding: 8px 18px; border-radius: 100px; font-size: 13px; font-weight: 500;
  cursor: pointer; border: 1px solid rgba(107,83,163,.28); color: var(--soft);
  background: transparent; font-family: var(--body); transition: all .2s;
}
.filter-tab:hover, .filter-tab.active { background: var(--purple); border-color: var(--purple); color: var(--white); }

/* ══════════════════════════════════════════════
   LEADERBOARD TABLE
══════════════════════════════════════════════ */
.lb-table { width: 100%; border-collapse: collapse; }
.lb-table thead tr { background: rgba(107,83,163,.12); }
.lb-table th { padding: 12px 16px; text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.lb-table td { padding: 12px 16px; font-size: 13px; color: var(--soft); border-top: 1px solid rgba(255,255,255,.04); }
.lb-table tr.lb-gold td   { background: rgba(255,215,0,.04); }
.lb-table tr.lb-silver td { background: rgba(192,192,192,.03); }
.lb-table tr.lb-bronze td { background: rgba(205,127,50,.03); }
.lb-table tr.lb-me td     { background: rgba(107,83,163,.12); }
.lb-table .lb-rank  { font-family: var(--display); font-weight: 800; font-size: 14px; }
.lb-table .lb-score { font-family: var(--display); font-weight: 700; color: var(--purple-l); }
.lb-wrap { background: var(--d3); border: 1px solid rgba(107,83,163,.18); border-radius: 14px; overflow: hidden; }

/* ══════════════════════════════════════════════
   FORM ELEMENTS
══════════════════════════════════════════════ */
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 7px; }
.form-label--focus { color: var(--purple-l); }
.form-input, .form-select, .form-textarea {
  width: 100%; background: rgba(255,255,255,.04);
  border: 1.5px solid rgba(107,83,163,.22);
  border-radius: 9px; color: var(--white); font-size: 15px; padding: 13px 16px;
  transition: all .2s; appearance: none;
}
.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none; border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(107,83,163,.14);
  background: rgba(107,83,163,.05);
}
.form-input--error { border-color: rgba(255,53,50,.6); }
.form-input--error:focus { box-shadow: 0 0 0 3px rgba(255,53,50,.12); }
.form-input::placeholder, .form-textarea::placeholder { color: rgba(119,119,119,.5); }
.form-textarea { min-height: 100px; resize: vertical; }
.form-select option { background: var(--d2); }
.form-hint { font-size: 12px; color: var(--muted); margin-top: 5px; }
.form-error { font-size: 12px; color: var(--red); margin-top: 5px; display: none; }
.form-error.show { display: block; }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* Password field wrapper */
.input-wrap { position: relative; }
.input-wrap .form-input { padding-right: 48px; }
.input-wrap__btn { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); font-size: 16px; cursor: pointer; opacity: .6; transition: opacity .2s; background: none; border: none; color: var(--muted); }
.input-wrap__btn:hover { opacity: 1; }
/* Password strength */
.pw-strength { margin-top: 8px; }
.pw-strength__track { height: 5px; background: var(--d2); border-radius: 3px; overflow: hidden; margin-bottom: 5px; }
.pw-strength__fill { height: 100%; border-radius: 3px; transition: width .4s var(--ease), background .4s; width: 0; }
.pw-strength__fill.weak   { background: var(--red); width: 33%; }
.pw-strength__fill.medium { background: #f59e0b; width: 66%; }
.pw-strength__fill.strong { background: var(--green); width: 100%; }
.pw-strength__label { font-size: 11px; color: var(--muted); }
/* Checkbox */
.form-check { display: flex; align-items: flex-start; gap: 10px; cursor: pointer; }
.form-check input[type="checkbox"] { width: 17px; height: 17px; accent-color: var(--purple); cursor: pointer; flex-shrink: 0; margin-top: 2px; }
.form-check__label { font-size: 13px; color: var(--muted); line-height: 1.5; }
.form-check__label a { color: var(--purple-l); }

/* ══════════════════════════════════════════════
   AUTH PAGES LAYOUT
══════════════════════════════════════════════ */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 520px 1fr; }
.auth-left {
  background: rgba(107,83,163,.05);
  border-right: 1px solid rgba(107,83,163,.18);
  padding: 56px 52px; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.auth-left__glow { position: absolute; right: -100px; top: 100px; width: 400px; height: 400px; background: radial-gradient(circle,rgba(107,83,163,.12) 0%,transparent 70%); pointer-events: none; }
.auth-right { padding: 56px 60px; display: flex; flex-direction: column; justify-content: center; overflow-y: auto; }
.auth-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 48px; }
.auth-logo__mark { width: 42px; height: 42px; background: var(--purple); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 18px; font-weight: 800; color: var(--white); }
.auth-logo__text { font-family: var(--display); font-size: 20px; font-weight: 800; color: var(--white); letter-spacing: -.04em; }
.auth-logo__sub { font-size: 12px; color: var(--purple-l); font-weight: 600; letter-spacing: .06em; display: block; margin-top: 1px; }
.auth-headline { font-size: clamp(40px,5vw,64px); font-weight: 800; color: var(--white); letter-spacing: -.04em; line-height: .95; margin-bottom: 24px; }
.auth-sub { font-size: 15px; color: var(--muted); line-height: 1.7; max-width: 380px; margin-bottom: 36px; }
.auth-benefits { display: flex; flex-direction: column; gap: 12px; margin-bottom: 40px; }
.auth-benefit {
  display: flex; align-items: center; gap: 12px;
  background: rgba(107,83,163,.1); border: 1px solid rgba(107,83,163,.25);
  border-radius: 10px; padding: 12px 16px; font-size: 13px; color: var(--soft);
}
.auth-benefit__icon { font-size: 18px; flex-shrink: 0; }
.auth-testi { background: var(--d3); border: 1px solid rgba(107,83,163,.2); border-radius: 14px; padding: 20px; margin-top: auto; }
.auth-testi__quote { font-size: 13px; color: var(--soft); line-height: 1.65; font-style: italic; margin-bottom: 14px; }
.auth-testi__author { display: flex; align-items: center; gap: 10px; }
.auth-testi__av { width: 32px; height: 32px; border-radius: 50%; background: var(--purple); display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 700; color: var(--white); font-family: var(--display); flex-shrink: 0; }
.auth-testi__name { font-size: 13px; font-weight: 600; color: var(--white); }
.auth-testi__role { font-size: 11px; color: var(--muted); }
/* Right side form area */
.auth-form-wrap { max-width: 540px; width: 100%; }
.auth-form-title { font-size: 28px; font-weight: 700; color: var(--white); margin-bottom: 6px; letter-spacing: -.02em; }
.auth-form-sub { font-size: 14px; color: var(--muted); margin-bottom: 32px; }
/* Divider */
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 24px 0; }
.auth-divider__line { flex: 1; height: 1px; background: rgba(255,255,255,.08); }
.auth-divider__text { font-size: 12px; color: var(--muted); white-space: nowrap; }
/* Social auth */
.social-btn {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 9px; padding: 12px 20px; font-size: 14px; color: var(--soft);
  cursor: pointer; transition: all .2s; font-family: var(--body); font-weight: 500;
  flex: 1;
}
.social-btn:hover { background: rgba(255,255,255,.07); color: var(--white); border-color: rgba(255,255,255,.18); }
.social-row { display: flex; gap: 12px; }
/* Switch link */
.auth-switch { font-size: 13px; color: var(--muted); margin-top: 24px; text-align: center; }
.auth-switch a { color: var(--purple-l); font-weight: 600; }
.auth-switch a:hover { text-decoration: underline; }

/* ══════════════════════════════════════════════
   DASHBOARD LAYOUT
══════════════════════════════════════════════ */
.dashboard { display: flex; min-height: 100vh; }
/* Sidebar */
.sidebar {
  width: var(--sb-w); flex-shrink: 0;
  background: var(--d2); border-right: 1px solid rgba(107,83,163,.18);
  position: sticky; top: 0; height: 100vh; overflow-y: auto;
  display: flex; flex-direction: column; padding: 0; z-index: 100;
}
.sidebar__logo { padding: 24px 22px 20px; border-bottom: 1px solid rgba(107,83,163,.18); display: flex; align-items: center; gap: 10px; }
.sidebar__logo-mark { width: 34px; height: 34px; background: var(--purple); border-radius: 8px; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 14px; font-weight: 800; color: var(--white); flex-shrink: 0; }
.sidebar__logo-text { font-family: var(--display); font-size: 16px; font-weight: 800; color: var(--white); letter-spacing: -.03em; }
.sidebar__logo-sub { font-size: 10px; color: var(--purple-l); font-weight: 600; letter-spacing: .06em; }
/* User block */
.sidebar__user { padding: 20px 22px; border-bottom: 1px solid rgba(107,83,163,.12); display: flex; align-items: center; gap: 12px; }
.sidebar__av { width: 46px; height: 46px; border-radius: 50%; background: var(--purple); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 14px; font-weight: 800; color: var(--white); flex-shrink: 0; position: relative; }
.sidebar__av-status { position: absolute; bottom: 1px; right: 1px; width: 10px; height: 10px; border-radius: 50%; background: var(--green); border: 2px solid var(--d2); }
.sidebar__user-name { font-size: 13px; font-weight: 600; color: var(--white); }
.sidebar__user-email { font-size: 11px; color: var(--muted); margin-top: 1px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 140px; }
/* Nav */
.sidebar__nav { padding: 16px 12px; flex: 1; }
.sidebar__nav-item {
  display: flex; align-items: center; gap: 11px;
  padding: 11px 12px; border-radius: 9px; font-size: 13px;
  font-weight: 500; color: var(--muted); cursor: pointer;
  transition: all .2s; margin-bottom: 3px; position: relative;
}
.sidebar__nav-item:hover { background: rgba(255,255,255,.04); color: var(--soft); }
.sidebar__nav-item.active { background: rgba(107,83,163,.16); color: var(--white); font-weight: 600; }
.sidebar__nav-item.active::before { content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 3px; background: var(--purple-l); border-radius: 2px; }
.sidebar__nav-icon { font-size: 16px; flex-shrink: 0; }
.sidebar__nav-badge { margin-left: auto; min-width: 20px; height: 20px; background: var(--red); border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; color: var(--white); padding: 0 5px; }
/* Progress widget */
.sidebar__prog { margin: 0 12px 16px; background: var(--d3); border: 1px solid rgba(107,83,163,.18); border-radius: 12px; padding: 16px; }
.sidebar__prog-title { font-size: 12px; font-weight: 600; color: var(--white); margin-bottom: 8px; }
.sidebar__prog-bar { height: 5px; background: rgba(255,255,255,.06); border-radius: 3px; overflow: hidden; margin-bottom: 6px; }
.sidebar__prog-fill { height: 100%; background: var(--purple); border-radius: 3px; transition: width .6s var(--ease); }
.sidebar__prog-pct { font-size: 11px; color: var(--purple-l); font-weight: 600; margin-bottom: 8px; }
.sidebar__prog-stats { display: flex; flex-direction: column; gap: 3px; }
.sidebar__prog-stat { font-size: 11px; color: var(--muted); }
.sidebar__prog-stat strong { color: var(--soft); }
/* Sidebar bottom */
.sidebar__bottom { padding: 12px; border-top: 1px solid rgba(107,83,163,.12); }
.sidebar__signout { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px; font-size: 13px; color: var(--muted); cursor: pointer; transition: all .2s; }
.sidebar__signout:hover { color: var(--red); background: rgba(255,53,50,.06); }
/* Sidebar CTA (for empty state) */
.sidebar__cta { margin: 0 12px 16px; background: rgba(255,53,50,.07); border: 1px solid rgba(255,53,50,.25); border-radius: 12px; padding: 16px; }
.sidebar__cta-title { font-size: 13px; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.sidebar__cta-sub { font-size: 12px; color: var(--muted); line-height: 1.5; margin-bottom: 12px; }
/* Dashboard main */
.db-main { flex: 1; overflow-x: hidden; }
/* Topbar */
.db-topbar {
  height: 64px; background: var(--d2);
  border-bottom: 1px solid rgba(107,83,163,.18);
  display: flex; align-items: center;
  padding: 0 32px; gap: 16px; position: sticky; top: 0; z-index: 50;
}
.db-topbar__title { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--white); }
.db-topbar__sub { font-size: 13px; color: var(--muted); }
.db-topbar__bell { position: relative; cursor: pointer; }
.db-topbar__bell-btn { width: 38px; height: 38px; background: var(--d3); border: 1px solid rgba(107,83,163,.2); border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 17px; transition: background .2s; }
.db-topbar__bell-btn:hover { background: rgba(107,83,163,.15); }
.db-topbar__bell-count { position: absolute; top: -4px; right: -4px; min-width: 18px; height: 18px; background: var(--red); border-radius: 9px; font-size: 10px; font-weight: 700; color: var(--white); display: flex; align-items: center; justify-content: center; padding: 0 4px; }
/* Dashboard inner */
.db-inner { padding: 32px; }
/* Stat cards row */
.db-stats { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 32px; }
.db-stat { background: var(--d3); border: 1px solid rgba(255,255,255,.06); border-radius: 14px; padding: 20px 20px 16px; transition: border-color .3s; }
.db-stat:hover { border-color: rgba(107,83,163,.25); }
.db-stat__icon { width: 38px; height: 38px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 18px; margin-bottom: 12px; }
.db-stat__val { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--white); letter-spacing: -.02em; line-height: 1; }
.db-stat__lbl { font-size: 12px; color: var(--muted); margin-top: 4px; }
/* Two-col layout */
.db-cols { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
/* Enrolled course row */
.enrolled-card {
  background: var(--d3); border: 1px solid rgba(255,255,255,.06);
  border-radius: 16px; overflow: hidden; display: flex;
  transition: border-color .3s;
}
.enrolled-card:hover { border-color: rgba(107,83,163,.28); }
.enrolled-card__thumb { width: 180px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 48px; position: relative; }
.enrolled-card__body { flex: 1; padding: 18px 20px; display: flex; flex-direction: column; }
.enrolled-card__cat { font-size: 10px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--red); margin-bottom: 5px; }
.enrolled-card__title { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 12px; line-height: 1.35; }
.enrolled-card__progress-label { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
.enrolled-card__progress-label span { font-size: 11px; color: var(--muted); }
.enrolled-card__progress-label strong { font-size: 11px; font-weight: 600; }
.progress-bar { height: 5px; background: rgba(255,255,255,.06); border-radius: 3px; overflow: hidden; }
.progress-bar__fill { height: 100%; border-radius: 3px; transition: width .6s var(--ease); }
.progress-bar__fill--purple { background: var(--purple); }
.progress-bar__fill--green  { background: var(--green); }
.progress-bar__fill--muted  { background: var(--muted); opacity: .4; }
.enrolled-card__actions { display: flex; align-items: center; gap: 10px; margin-top: 12px; }
/* Notification card */
.notif-card {
  background: var(--d3); border: 1px solid rgba(255,255,255,.06);
  border-radius: 13px; padding: 14px 16px;
  display: flex; gap: 12px; position: relative; transition: border-color .3s;
}
.notif-card.unread { border-color: rgba(107,83,163,.25); }
.notif-card.unread::after { content: ''; position: absolute; top: 12px; right: 12px; width: 8px; height: 8px; border-radius: 50%; }
.notif-card.unread.n-purple::after { background: var(--purple-l); }
.notif-card.unread.n-red::after    { background: var(--red); }
.notif-card.unread.n-green::after  { background: var(--green); }
.notif-card.unread.n-gold::after   { background: var(--gold); }
.notif-card__icon { width: 38px; height: 38px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 17px; flex-shrink: 0; }
.notif-card__title { font-size: 13px; font-weight: 600; color: var(--white); margin-bottom: 3px; }
.notif-card__body  { font-size: 12px; color: var(--muted); line-height: 1.55; }
.notif-card__time  { font-size: 11px; color: var(--muted); opacity: .6; margin-top: 6px; }
.notif-card__cta   { font-size: 11px; font-weight: 600; color: var(--purple-l); margin-top: 5px; display: inline-block; }
/* Notification panel header */
.notif-header { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.notif-header__title { font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--white); }
.notif-header__mark { font-size: 12px; color: var(--purple-l); margin-left: auto; cursor: pointer; }
/* Leaderboard widget */
.lb-widget { background: var(--d3); border: 1px solid rgba(107,83,163,.18); border-radius: 14px; overflow: hidden; }
.lb-widget__header { padding: 14px 16px 10px; border-bottom: 1px solid rgba(107,83,163,.12); display: flex; align-items: center; justify-content: space-between; }
.lb-widget__title { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--white); }
.lb-widget__more { font-size: 12px; color: var(--purple-l); }
/* Empty state */
.empty-state { text-align: center; padding: 48px 32px; }
.empty-state__icon { font-size: 56px; margin-bottom: 16px; opacity: .35; }
.empty-state__title { font-family: var(--display); font-size: 20px; font-weight: 700; color: var(--white); margin-bottom: 10px; }
.empty-state__sub { font-size: 14px; color: var(--muted); line-height: 1.65; max-width: 400px; margin: 0 auto 28px; }
.empty-state-card { background: var(--d3); border: 1px solid rgba(107,83,163,.2); border-radius: 20px; }
/* How it works */
.how-step { background: var(--d3); border: 1px solid rgba(107,83,163,.18); border-radius: 14px; padding: 22px; }
.how-step__num { width: 34px; height: 34px; background: var(--purple); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 15px; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.how-step__icon { font-size: 22px; margin-bottom: 8px; }
.how-step__title { font-family: var(--display); font-size: 15px; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.how-step__body  { font-size: 13px; color: var(--muted); line-height: 1.6; }
/* Notif explain callout */
.notif-explain { background: rgba(107,83,163,.08); border: 1px solid rgba(107,83,163,.25); border-radius: 11px; padding: 14px 16px; display: flex; gap: 10px; margin-bottom: 12px; }
.notif-explain__icon { font-size: 16px; flex-shrink: 0; margin-top: 1px; }
.notif-explain__title { font-size: 12px; font-weight: 600; color: var(--purple-l); margin-bottom: 3px; }
.notif-explain__body  { font-size: 11px; color: var(--muted); line-height: 1.55; }

/* ══════════════════════════════════════════════
   COURSE DETAIL PAGE
══════════════════════════════════════════════ */
.detail-hero { padding-top: var(--nav-h); background: var(--d2); }
.detail-hero__inner { display: grid; grid-template-columns: 1fr 1fr; min-height: 280px; }
.detail-hero__thumb { background: #1a0a2e; display: flex; align-items: center; justify-content: center; font-size: 80px; opacity: .8; }
.detail-hero__info { padding: 40px 48px; }
.detail-hero__crumb { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.detail-hero__crumb a { color: var(--purple-l); }
.detail-hero__cat { font-size: 10px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--red); margin-bottom: 10px; }
.detail-hero__title { font-size: clamp(26px,3.5vw,42px); font-weight: 800; color: var(--white); letter-spacing: -.025em; line-height: 1.1; margin-bottom: 16px; }
.detail-hero__meta { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.detail-hero__ins { display: inline-flex; align-items: center; gap: 8px; background: var(--d3); border: 1px solid rgba(107,83,163,.2); border-radius: 100px; padding: 5px 12px 5px 5px; }
.detail-hero__ins-av { width: 24px; height: 24px; border-radius: 50%; background: var(--purple); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: var(--white); font-family: var(--display); }
.detail-hero__ins-name { font-size: 12px; color: var(--soft); font-weight: 500; }
/* Detail body layout */
.detail-body { display: grid; grid-template-columns: 1fr 420px; gap: 32px; padding: 40px 0; align-items: start; }
.detail-sticky { position: sticky; top: calc(var(--nav-h) + 20px); }
/* Price card */
.price-card { background: var(--d3); border: 1px solid rgba(107,83,163,.28); border-radius: 20px; overflow: hidden; }
.price-card__thumb { height: 120px; display: flex; align-items: center; justify-content: center; font-size: 52px; }
.price-card__body { padding: 24px; }
.price-card__price { font-family: var(--display); font-size: 36px; font-weight: 800; color: var(--purple-l); letter-spacing: -.02em; line-height: 1; }
.price-card__note  { font-size: 12px; color: var(--muted); margin-top: 4px; margin-bottom: 16px; }
.price-card__div   { height: 1px; background: rgba(107,83,163,.18); margin: 16px 0; }
.payment-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.payment-badge { padding: 5px 12px; border-radius: 7px; font-size: 11px; font-weight: 600; border: 1px solid; }
.payment-badge--bkash  { background: rgba(226,19,110,.15); border-color: rgba(226,19,110,.4); color: #f06aa8; }
.payment-badge--nagad  { background: rgba(246,146,30,.12); border-color: rgba(246,146,30,.4); color: #f9b86a; }
.payment-badge--rocket { background: rgba(139,31,169,.15); border-color: rgba(139,31,169,.4); color: #c77dff; }
.payment-badge--visa   { background: rgba(37,59,128,.15); border-color: rgba(37,59,128,.5); color: #7ba3ff; }
.price-card__signin { font-size: 13px; color: var(--muted); margin-top: 12px; text-align: center; }
.price-card__signin a { color: var(--purple-l); }
.price-card__includes { margin-top: 16px; }
.price-card__includes-title { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); margin-bottom: 10px; }
.price-card__include { font-size: 13px; color: var(--soft); padding: 4px 0; display: flex; align-items: center; gap: 8px; }
.price-card__include::before { content: '✓'; color: var(--green); font-weight: 700; flex-shrink: 0; }
/* WYL (what you'll learn) */
.wyl { background: var(--d3); border: 1px solid rgba(107,83,163,.18); border-radius: 16px; padding: 28px; margin-bottom: 28px; }
.wyl__title { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--white); margin-bottom: 20px; }
.wyl__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.wyl__item { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--soft); line-height: 1.5; }
.wyl__item::before { content: '✓'; color: var(--green); font-weight: 700; margin-top: 1px; flex-shrink: 0; }
/* Highlights grid */
.hl-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-bottom: 28px; }
.hl-item { background: var(--d3); border: 1px solid rgba(107,83,163,.14); border-radius: 12px; padding: 14px 16px; }
.hl-item__icon { font-size: 20px; margin-bottom: 6px; }
.hl-item__label { font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .05em; text-transform: uppercase; margin-bottom: 2px; }
.hl-item__value { font-size: 13px; color: var(--soft); font-weight: 500; }
/* Curriculum */
.curriculum { margin-bottom: 32px; }
.curriculum__header { margin-bottom: 16px; }
.curriculum__title { font-family: var(--display); font-size: 19px; font-weight: 700; color: var(--white); }
.curriculum__sub { font-size: 13px; color: var(--muted); margin-top: 4px; }
.module-item { border-bottom: 1px solid rgba(255,255,255,.04); }
.module-item__header {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 0; cursor: pointer;
}
.module-item__num { font-size: 11px; font-weight: 700; color: var(--purple-l); background: rgba(107,83,163,.12); border-radius: 5px; padding: 2px 8px; flex-shrink: 0; }
.module-item__name { font-size: 14px; font-weight: 600; color: var(--white); flex: 1; }
.module-item__count { font-size: 12px; color: var(--muted); white-space: nowrap; }
.module-item__lock { font-size: 14px; margin-left: 8px; }
.module-item__lessons { padding: 0 0 14px 0; display: none; }
.module-item.open .module-item__lessons { display: block; }
.module-item:not(.module-item--locked) .module-item__header { cursor: pointer; }
.module-item__lesson { display: flex; align-items: center; gap: 10px; padding: 7px 0; font-size: 13px; color: var(--soft); border-top: 1px solid rgba(255,255,255,.03); }
.module-item__lesson::before { content: '▸'; color: var(--purple-l); flex-shrink: 0; }
.module-item--locked .module-item__name { color: var(--muted); }
.module-item--locked .module-item__header { cursor: default; }
/* Instructor card */
.instructor-card { background: var(--d3); border: 1px solid rgba(107,83,163,.18); border-radius: 16px; padding: 24px; margin-bottom: 28px; display: flex; gap: 16px; }
.instructor-card__av { width: 64px; height: 64px; border-radius: 50%; background: var(--purple); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 20px; font-weight: 800; color: var(--white); flex-shrink: 0; }
.instructor-card__name { font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 3px; }
.instructor-card__role { font-size: 13px; color: var(--purple-l); margin-bottom: 8px; }
.instructor-card__bio  { font-size: 13px; color: var(--muted); line-height: 1.6; }
.instructor-card__stars { font-size: 13px; margin-top: 8px; color: var(--gold); }
/* Reviews */
.review-card { background: var(--d3); border: 1px solid rgba(255,255,255,.05); border-radius: 14px; padding: 20px; margin-bottom: 14px; }
.review-card__header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-card__av { width: 40px; height: 40px; border-radius: 50%; background: var(--purple); display: flex; align-items: center; justify-content: center; font-family: var(--display); font-size: 13px; font-weight: 800; color: var(--white); flex-shrink: 0; }
.review-card__name { font-size: 14px; font-weight: 600; color: var(--white); }
.review-card__meta { font-size: 12px; color: var(--muted); }
.review-card__stars { color: var(--gold); font-size: 13px; margin-left: auto; }
.review-card__text { font-size: 13px; color: var(--soft); line-height: 1.7; }

/* ══════════════════════════════════════════════
   HERO (catalog page)
══════════════════════════════════════════════ */
.catalog-hero {
  padding: calc(var(--nav-h) + 52px) 0 40px;
  background: var(--d2); position: relative; overflow: hidden;
  text-align: center;
}
.catalog-hero__glow1 { position: absolute; left: 50%; top: 0; transform: translateX(-50%); width: 700px; height: 400px; background: radial-gradient(ellipse, rgba(255,53,50,.05) 0%, transparent 70%); pointer-events: none; }
.catalog-hero__glow2 { position: absolute; left: 50%; top: 50px; transform: translateX(-50%); width: 600px; height: 300px; background: radial-gradient(ellipse, rgba(107,83,163,.08) 0%, transparent 70%); pointer-events: none; }
.catalog-hero__badge { display: inline-flex; align-items: center; gap: 8px; background: var(--red); border-radius: 100px; padding: 5px 16px; margin-bottom: 20px; font-size: 12px; font-weight: 600; color: var(--white); }
.catalog-hero__title { font-size: clamp(40px,6vw,72px); font-weight: 800; color: var(--white); letter-spacing: -.04em; line-height: .95; margin-bottom: 18px; }
.catalog-hero__sub { font-size: 17px; color: var(--muted); line-height: 1.7; max-width: 600px; margin: 0 auto 32px; }
.catalog-hero__stats { display: flex; align-items: center; justify-content: center; gap: 32px; flex-wrap: wrap; }
.catalog-hero__stat { text-align: center; }
.catalog-hero__stat-val { font-family: var(--display); font-size: 24px; font-weight: 800; color: var(--purple-l); letter-spacing: -.02em; }
.catalog-hero__stat-lbl { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ══════════════════════════════════════════════
   LEADERBOARD TEASER (catalog)
══════════════════════════════════════════════ */
.lb-teaser { display: grid; grid-template-columns: 1fr 380px; gap: 24px; align-items: start; }
.lb-teaser__lock { background: rgba(0,0,0,.7); border-radius: 0 0 14px 14px; padding: 14px 16px; display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--muted); }
.lb-cta-card { background: var(--d3); border: 1px solid rgba(107,83,163,.25); border-radius: 14px; padding: 24px; }
.lb-cta-card__title { font-family: var(--display); font-size: 17px; font-weight: 700; color: var(--white); margin-bottom: 8px; }
.lb-cta-card__sub { font-size: 13px; color: var(--muted); line-height: 1.6; margin-bottom: 20px; }

/* ══════════════════════════════════════════════
   CTA BANNER
══════════════════════════════════════════════ */
.cta-banner { background: rgba(107,83,163,.07); border: 1px solid rgba(107,83,163,.22); border-radius: 20px; padding: 40px 48px; display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.cta-banner::before { content: ''; position: absolute; left: 0; top: 0; width: 400px; height: 100%; background: radial-gradient(ellipse at left, rgba(255,53,50,.05) 0%, transparent 70%); pointer-events: none; }
.cta-banner__title { font-family: var(--display); font-size: 26px; font-weight: 800; color: var(--white); margin-bottom: 6px; }
.cta-banner__sub   { font-size: 14px; color: var(--muted); }
.cta-banner__actions { display: flex; gap: 12px; flex-shrink: 0; }

/* ══════════════════════════════════════════════
   REVEAL ANIMATIONS
══════════════════════════════════════════════ */
.rv { opacity: 0; transform: translateY(22px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.rv.vis { opacity: 1; transform: none; }
.rv-d1 { transition-delay: .1s; } .rv-d2 { transition-delay: .2s; } .rv-d3 { transition-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } }

/* ══════════════════════════════════════════════
   FOOTER (shared)
══════════════════════════════════════════════ */
.footer { background: var(--black); border-top: 1px solid rgba(107,83,163,.12); padding: 60px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 48px; padding-bottom: 48px; }
.footer__logo { font-family: var(--display); font-size: 20px; font-weight: 800; color: var(--white); margin-bottom: 10px; }
.footer__desc { font-size: 13px; color: var(--muted); line-height: 1.7; margin-bottom: 12px; }
.footer__col-title { font-size: 11px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--white); margin-bottom: 16px; }
.footer__col a { display: block; font-size: 13px; color: var(--muted); margin-bottom: 10px; transition: color .2s; }
.footer__col a:hover { color: var(--white); }
.footer__bottom { border-top: 1px solid rgba(255,255,255,.04); padding: 20px 0; display: flex; align-items: center; justify-content: space-between; }
.footer__copy { font-size: 12px; color: var(--muted); }

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (max-width: 1100px) {
  .wrap { padding: 0 40px; }
  .acad-nav__in { padding: 0 40px; }
  .db-cols { grid-template-columns: 1fr; }
  .lb-teaser { grid-template-columns: 1fr; }
  .detail-body { grid-template-columns: 1fr 360px; }
  .detail-sticky { position: static; }
}
@media (max-width: 900px) {
  .wrap { padding: 0 24px; }
  .acad-nav__in { padding: 0 24px; }
  .acad-nav__actions { display: none; }
  .acad-nav__hbg { display: flex; }
  .auth-page { grid-template-columns: 1fr; }
  .auth-left { display: none; }
  .auth-right { padding: 40px 24px; }
  .grid-3 { grid-template-columns: repeat(2,1fr); }
  .db-stats { grid-template-columns: repeat(2,1fr); }
  .detail-body { grid-template-columns: 1fr; }
  .detail-hero__inner { grid-template-columns: 1fr; }
  .detail-hero__thumb { height: 200px; }
  .wyl__grid { grid-template-columns: 1fr; }
  .hl-grid { grid-template-columns: repeat(2,1fr); }
  .enrolled-card__thumb { width: 120px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
  .cta-banner { flex-direction: column; text-align: center; }
  .cta-banner__actions { flex-direction: column; width: 100%; }
}
@media (max-width: 600px) {
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .db-stats { grid-template-columns: 1fr 1fr; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .footer__grid { grid-template-columns: 1fr; }
  .footer__bottom { flex-direction: column; gap: 6px; text-align: center; }
  .social-row { flex-direction: column; }
  .sidebar { width: 100%; height: auto; position: static; }
  .dashboard { flex-direction: column; }
}
