/* ==========================================================================
   COACH SIR — Global Design System
   Sri Parmeshwar Education Private Limited · coachsir.in
   --------------------------------------------------------------------------
   Load order:  bootstrap.min.css  →  bootstrap-icons  →  style.css
   Page-specific files (dashboard.css, quiz.css) must build on these tokens,
   never redefine them.

   CONTENTS
   01. Design tokens
   02. Bootstrap token bridge
   03. Base & typography
   04. Layout helpers
   05. Buttons
   06. Badges (access + practice levels)
   07. Cards (base, course, quiz, practice-level, feature, stat, result)
   08. Forms (inputs, mobile, password, select, OTP, checkbox)
   09. Alerts & toasts
   10. Modal
   11. Progress
   12. Tabs, accordion, breadcrumbs, pagination
   13. Learning cycle
   14. Header / navbar
   15. Footer
   16. Utilities & accessibility
   ========================================================================== */

/* 01. DESIGN TOKENS ======================================================= */
:root {
  /* Brand */
  --primary:        #2E3BD1;   /* Coach Sir Indigo */
  --primary-dark:   #1C258F;
  --primary-light:  #EEF0FF;
  --primary-100:    #DDE1FF;
  --primary-rgb:    46, 59, 209;
  --accent:         #F2A516;   /* Coach Sir Gold (from logo) */
  --accent-dark:    #B77600;
  --accent-light:   #FFF5DF;
  --ink:            #0B1020;   /* Logo black — footer, CBT chrome */

  /* Text & surfaces */
  --text-dark:      #111729;
  --text-body:      #2F3850;
  --text-muted:     #5E6781;
  --background:     #F6F7FB;
  --surface:        #FFFFFF;
  --surface-2:      #F1F3F9;
  --border:         #E3E6EF;
  --border-strong:  #CBD1E1;

  /* Feedback */
  --success:        #15803D;
  --success-light:  #E7F6EC;
  --warning:        #B45309;
  --warning-light:  #FEF3E2;
  --danger:         #C62828;
  --danger-light:   #FDECEC;
  --info:           var(--primary);
  --info-light:     var(--primary-light);

  /* Practice levels — one hue, rising intensity, gold at the top */
  --lvl-basic-bg:        #EEF0FF;  --lvl-basic-fg:        #2E3BD1;
  --lvl-advance-bg:      #D6DBFF;  --lvl-advance-fg:      #1C258F;
  --lvl-competitive-bg:  #1C258F;  --lvl-competitive-fg:  #FFFFFF;
  --lvl-challenger-bg:   #0B1020;  --lvl-challenger-fg:   #F5B73A;

  /* Typography */
  --font-sans: "Plus Jakarta Sans", "Noto Sans Devanagari", system-ui, -apple-system,
               "Segoe UI", Roboto, sans-serif;
  --font-hi:   "Noto Sans Devanagari", "Plus Jakarta Sans", sans-serif;
  --fs-display: clamp(2.25rem, 1.6rem + 2.8vw, 3.5rem);
  --fs-h1:  clamp(2rem, 1.55rem + 1.9vw, 2.875rem);
  --fs-h2:  clamp(1.625rem, 1.35rem + 1.2vw, 2.25rem);
  --fs-h3:  clamp(1.25rem, 1.15rem + .45vw, 1.5rem);
  --fs-h4:  1.125rem;
  --fs-body: 1rem;
  --fs-lead: 1.125rem;
  --fs-small: .875rem;
  --fs-xs: .75rem;

  /* Shape & depth */
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;
  --shadow-xs: 0 1px 2px rgba(17, 23, 41, .06);
  --shadow-sm: 0 1px 3px rgba(17, 23, 41, .06), 0 1px 2px rgba(17, 23, 41, .04);
  --shadow:    0 6px 20px -6px rgba(17, 23, 41, .12), 0 2px 6px rgba(17, 23, 41, .05);
  --shadow-lg: 0 24px 48px -16px rgba(28, 37, 143, .22);
  --ring: 0 0 0 .25rem rgba(var(--primary-rgb), .22);

  /* Spacing & motion */
  --space-section: clamp(3.5rem, 2.5rem + 4vw, 6rem);
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --dur: .18s;
}

/* 02. BOOTSTRAP TOKEN BRIDGE ============================================== */
:root {
  --bs-primary: var(--primary);
  --bs-primary-rgb: var(--primary-rgb);
  --bs-body-font-family: var(--font-sans);
  --bs-body-color: var(--text-body);
  --bs-body-bg: var(--background);
  --bs-emphasis-color: var(--text-dark);
  --bs-secondary-color: var(--text-muted);
  --bs-border-color: var(--border);
  --bs-border-radius: var(--radius);
  --bs-border-radius-sm: var(--radius-sm);
  --bs-border-radius-lg: var(--radius-lg);
  --bs-link-color: var(--primary);
  --bs-link-color-rgb: var(--primary-rgb);
  --bs-link-hover-color: var(--primary-dark);
  --bs-focus-ring-color: rgba(var(--primary-rgb), .25);
}

/* 03. BASE & TYPOGRAPHY =================================================== */
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}
body {
  font-family: var(--font-sans);
  font-size: var(--fs-body);
  line-height: 1.65;
  color: var(--text-body);
  background: var(--background);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6, .h1, .h2, .h3, .h4 {
  color: var(--text-dark);
  font-weight: 800;
  letter-spacing: -.02em;
  line-height: 1.2;
  margin-bottom: .6em;
}
h1, .h1 { font-size: var(--fs-h1); }
h2, .h2 { font-size: var(--fs-h2); }
h3, .h3 { font-size: var(--fs-h3); font-weight: 700; letter-spacing: -.01em; }
h4, .h4 { font-size: var(--fs-h4); font-weight: 700; letter-spacing: -.005em; }
.display-title { font-size: var(--fs-display); font-weight: 800; letter-spacing: -.03em; line-height: 1.1; color: var(--text-dark); }
.lead { font-size: var(--fs-lead); color: var(--text-muted); font-weight: 400; line-height: 1.7; }
small, .text-small { font-size: var(--fs-small); }
.text-xs { font-size: var(--fs-xs); }
.text-muted, .text-secondary { color: var(--text-muted) !important; }
.text-dark-ink { color: var(--text-dark) !important; }
.text-primary { color: var(--primary) !important; }
.text-accent { color: var(--accent-dark) !important; }
.hi, [lang="hi"] { font-family: var(--font-hi); letter-spacing: 0; line-height: 1.8; }
h1 .hi, h2 .hi, h3 .hi, .hi.h2, .hi.h3 { line-height: 1.45; }

/* Overline / eyebrow label */
.eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--primary); margin-bottom: .75rem;
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--accent); }
.label, .form-label {
  font-size: var(--fs-small); font-weight: 600; color: var(--text-dark); margin-bottom: .4rem;
}
.highlight { color: var(--primary); position: relative; white-space: nowrap; }
.highlight::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .06em; height: .22em;
  background: var(--accent); opacity: .35; border-radius: 4px; z-index: -1;
}
a { color: var(--primary); text-decoration: none; transition: color var(--dur) var(--ease); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; }
::selection { background: var(--primary-100); color: var(--primary-dark); }

/* 04. LAYOUT HELPERS ====================================================== */
.section { padding-block: var(--space-section); }
.section-sm { padding-block: calc(var(--space-section) * .6); }
.section-surface { background: var(--surface); }
.section-tint { background: linear-gradient(180deg, var(--primary-light) 0%, var(--background) 100%); }
.section-head { max-width: 680px; margin-bottom: 2.5rem; }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.container-narrow { max-width: 880px; }
.divider { height: 1px; background: var(--border); border: 0; margin: 2rem 0; opacity: 1; }
.icon-tile {
  width: 48px; height: 48px; flex: 0 0 48px;
  display: inline-grid; place-items: center;
  border-radius: var(--radius); background: var(--primary-light); color: var(--primary);
  font-size: 1.35rem;
}
.icon-tile.sm { width: 36px; height: 36px; flex-basis: 36px; font-size: 1.05rem; border-radius: 10px; }
.icon-tile.accent { background: var(--accent-light); color: var(--accent-dark); }
.icon-tile.ink { background: var(--ink); color: var(--accent); }
.icon-tile.success { background: var(--success-light); color: var(--success); }

/* 05. BUTTONS ============================================================= */
.btn {
  --bs-btn-padding-x: 1.25rem;
  --bs-btn-padding-y: .7rem;
  --bs-btn-font-size: .9375rem;
  --bs-btn-font-weight: 600;
  --bs-btn-border-radius: var(--radius);
  --bs-btn-focus-box-shadow: var(--ring);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  letter-spacing: -.005em; line-height: 1.3; min-height: 44px; /* touch target */
  transition: background-color var(--dur) var(--ease), border-color var(--dur) var(--ease),
              color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn .bi { font-size: 1.05em; line-height: 1; }
.btn-sm { --bs-btn-padding-x: .85rem; --bs-btn-padding-y: .4rem; --bs-btn-font-size: .8125rem; --bs-btn-border-radius: 10px; min-height: 36px; }
.btn-lg { --bs-btn-padding-x: 1.75rem; --bs-btn-padding-y: .95rem; --bs-btn-font-size: 1.0625rem; --bs-btn-border-radius: 14px; min-height: 54px; }

.btn-primary {
  --bs-btn-bg: var(--primary); --bs-btn-border-color: var(--primary); --bs-btn-color: #fff;
  --bs-btn-hover-bg: var(--primary-dark); --bs-btn-hover-border-color: var(--primary-dark); --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: var(--primary-dark); --bs-btn-active-border-color: var(--primary-dark);
  --bs-btn-disabled-bg: #A9B0EC; --bs-btn-disabled-border-color: #A9B0EC;
  box-shadow: 0 6px 16px -6px rgba(var(--primary-rgb), .55);
}
.btn-primary:disabled, .btn-primary.disabled { box-shadow: none; }
.btn-primary:hover { box-shadow: 0 10px 22px -8px rgba(var(--primary-rgb), .6); }
.btn-secondary {
  --bs-btn-bg: var(--primary-light); --bs-btn-border-color: var(--primary-light); --bs-btn-color: var(--primary);
  --bs-btn-hover-bg: var(--primary-100); --bs-btn-hover-border-color: var(--primary-100); --bs-btn-hover-color: var(--primary-dark);
  --bs-btn-active-bg: var(--primary-100); --bs-btn-active-border-color: var(--primary-100); --bs-btn-active-color: var(--primary-dark);
  --bs-btn-disabled-bg: var(--surface-2); --bs-btn-disabled-border-color: var(--surface-2); --bs-btn-disabled-color: var(--text-muted);
}
.btn-outline-primary {
  --bs-btn-color: var(--primary); --bs-btn-border-color: var(--border-strong); --bs-btn-bg: var(--surface);
  --bs-btn-hover-bg: var(--surface); --bs-btn-hover-color: var(--primary-dark); --bs-btn-hover-border-color: var(--primary);
  --bs-btn-active-bg: var(--primary-light); --bs-btn-active-color: var(--primary-dark); --bs-btn-active-border-color: var(--primary);
}
.btn-accent {
  --bs-btn-bg: var(--accent); --bs-btn-border-color: var(--accent); --bs-btn-color: var(--ink);
  --bs-btn-hover-bg: #E09500; --bs-btn-hover-border-color: #E09500; --bs-btn-hover-color: var(--ink);
  --bs-btn-active-bg: #E09500; --bs-btn-active-border-color: #E09500; --bs-btn-active-color: var(--ink);
  font-weight: 700;
}
.btn-success {
  --bs-btn-bg: var(--success); --bs-btn-border-color: var(--success);
  --bs-btn-hover-bg: #116632; --bs-btn-hover-border-color: #116632;
  --bs-btn-active-bg: #116632; --bs-btn-active-border-color: #116632;
}
.btn-danger {
  --bs-btn-bg: var(--danger); --bs-btn-border-color: var(--danger);
  --bs-btn-hover-bg: #A31F1F; --bs-btn-hover-border-color: #A31F1F;
  --bs-btn-active-bg: #A31F1F; --bs-btn-active-border-color: #A31F1F;
}
.btn-ghost {
  --bs-btn-color: var(--text-dark); --bs-btn-bg: transparent; --bs-btn-border-color: transparent;
  --bs-btn-hover-bg: var(--surface-2); --bs-btn-hover-color: var(--primary); --bs-btn-hover-border-color: transparent;
  --bs-btn-active-bg: var(--surface-2); --bs-btn-active-border-color: transparent;
}
.btn-light-on-dark {
  --bs-btn-color: #fff; --bs-btn-bg: rgba(255,255,255,.08); --bs-btn-border-color: rgba(255,255,255,.22);
  --bs-btn-hover-bg: rgba(255,255,255,.16); --bs-btn-hover-color: #fff; --bs-btn-hover-border-color: rgba(255,255,255,.4);
}
.btn-link-arrow { font-weight: 600; display: inline-flex; align-items: center; gap: .35rem; }
.btn-link-arrow .bi { transition: transform var(--dur) var(--ease); }
.btn-link-arrow:hover .bi { transform: translateX(3px); }
.btn.is-loading { pointer-events: none; opacity: .85; }
.btn.is-loading::before {
  content: ""; width: 1em; height: 1em; border-radius: 50%;
  border: 2px solid currentColor; border-right-color: transparent;
  animation: cs-spin .7s linear infinite;
}
@keyframes cs-spin { to { transform: rotate(360deg); } }

/* 06. BADGES ============================================================== */
.badge {
  --bs-badge-font-weight: 700; --bs-badge-font-size: .6875rem; --bs-badge-padding-x: .6rem; --bs-badge-padding-y: .38rem;
  --bs-badge-border-radius: 6px;
  letter-spacing: .06em; text-transform: uppercase; display: inline-flex; align-items: center; gap: .35rem; line-height: 1;
}
.badge-soft    { background: var(--surface-2); color: var(--text-muted); }
.badge-primary { background: var(--primary-light); color: var(--primary); }
.badge-free    { background: var(--success-light); color: var(--success); }
.badge-paid    { background: var(--accent-light); color: var(--accent-dark); }
.badge-new     { background: var(--ink); color: var(--accent); }

/* Practice level badge: <span class="badge badge-level level-basic"><span class="level-bars"><i></i><i></i><i></i><i></i></span>Basic</span> */
.badge-level { border: 1px solid transparent; }
.level-bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 10px; }
.level-bars i { display: block; width: 3px; border-radius: 1px; background: currentColor; opacity: .28; }
.level-bars i:nth-child(1) { height: 4px; } .level-bars i:nth-child(2) { height: 6px; }
.level-bars i:nth-child(3) { height: 8px; } .level-bars i:nth-child(4) { height: 10px; }
.level-basic       { background: var(--lvl-basic-bg);       color: var(--lvl-basic-fg); border-color: #D9DDFB; }
.level-advance     { background: var(--lvl-advance-bg);     color: var(--lvl-advance-fg); }
.level-competitive { background: var(--lvl-competitive-bg); color: var(--lvl-competitive-fg); }
.level-challenger  { background: var(--lvl-challenger-bg);  color: var(--lvl-challenger-fg); }
.level-basic .level-bars i:nth-child(-n+1),
.level-advance .level-bars i:nth-child(-n+2),
.level-competitive .level-bars i:nth-child(-n+3),
.level-challenger .level-bars i { opacity: 1; }

/* Meta chip (class / subject labels on cards) */
.meta-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted);
}
.meta-chip + .meta-chip { margin-left: .45rem; }
.meta-chip + .meta-chip::before { content: "•"; margin-right: .15rem; color: var(--border-strong); }

/* 07. CARDS =============================================================== */
.cs-card {
  position: relative; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 1.5rem; box-shadow: var(--shadow-xs);
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease), border-color var(--dur) var(--ease);
  height: 100%; display: flex; flex-direction: column;
}
.cs-card.is-interactive:hover, .cs-card.is-interactive:focus-within {
  box-shadow: var(--shadow); border-color: var(--primary-100); transform: translateY(-2px);
}
.cs-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: .75rem; margin-bottom: .9rem; }
.cs-card-title { font-size: 1.125rem; font-weight: 700; color: var(--text-dark); margin: 0 0 .25rem; letter-spacing: -.01em; line-height: 1.35; }
.cs-card-sub { font-size: var(--fs-small); color: var(--text-muted); margin: 0; }
.cs-card-foot { margin-top: auto; padding-top: 1.25rem; display: flex; align-items: center; justify-content: space-between; gap: .75rem; flex-wrap: wrap; }
.cs-card-stats { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1rem 0 0; padding: 0; list-style: none; font-size: var(--fs-small); color: var(--text-muted); }
.cs-card-stats li { display: inline-flex; align-items: center; gap: .4rem; }
.cs-card-stats .bi { color: var(--primary); }

/* Course card: thumbnail band + body */
.course-card { padding: 0; overflow: hidden; }
.course-card .course-thumb {
  position: relative; aspect-ratio: 16 / 7; display: grid; place-items: center;
  background: radial-gradient(120% 140% at 100% 0%, var(--primary) 0%, var(--primary-dark) 55%, var(--ink) 100%);
  color: #fff; font-size: 2.25rem;
}
.course-card .course-thumb .badge { position: absolute; top: .85rem; left: .85rem; }
.course-card .course-body { padding: 1.25rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }

/* Quiz card: left level stripe */
.quiz-card { padding-left: calc(1.5rem + 4px); }
.quiz-card::before {
  content: ""; position: absolute; left: 0; top: 1.25rem; bottom: 1.25rem; width: 4px; border-radius: 0 4px 4px 0;
  background: var(--primary);
}
.quiz-card[data-level="basic"]::before       { background: #8C95F0; }
.quiz-card[data-level="advance"]::before     { background: var(--primary); }
.quiz-card[data-level="competitive"]::before { background: var(--primary-dark); }
.quiz-card[data-level="challenger"]::before  { background: var(--accent); }
.lock-note { font-size: var(--fs-xs); color: var(--text-muted); display: inline-flex; gap: .3rem; align-items: center; }

/* Practice-level card: the four-step progression */
.level-card { overflow: hidden; }
.level-card .level-step { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.level-card .level-name { font-size: 1.375rem; font-weight: 800; margin: .35rem 0 .15rem; color: inherit; }
.level-card .level-tagline { font-weight: 600; font-size: var(--fs-small); margin-bottom: .75rem; }
.level-card .level-meter { display: flex; gap: 4px; margin-top: auto; padding-top: 1.25rem; }
.level-card .level-meter span { flex: 1; height: 6px; border-radius: 3px; background: var(--border); }
.level-card.level-basic       { background: var(--surface); color: var(--text-dark); border-color: var(--border); }
.level-card.level-basic .level-tagline { color: var(--primary); }
.level-card.level-basic .level-meter span:nth-child(-n+1) { background: #8C95F0; }
.level-card.level-advance     { background: var(--primary-light); color: var(--text-dark); border-color: var(--primary-100); }
.level-card.level-advance .level-tagline { color: var(--primary-dark); }
.level-card.level-advance .level-meter span:nth-child(-n+2) { background: var(--primary); }
.level-card.level-competitive { background: var(--primary-dark); color: #fff; border-color: var(--primary-dark); }
.level-card.level-competitive p, .level-card.level-competitive .level-step { color: rgba(255,255,255,.75); }
.level-card.level-competitive .level-tagline { color: #C9CEFF; }
.level-card.level-competitive .level-meter span { background: rgba(255,255,255,.18); }
.level-card.level-competitive .level-meter span:nth-child(-n+3) { background: #fff; }
.level-card.level-challenger  {
  background: radial-gradient(130% 120% at 100% 0%, #26306E 0%, var(--ink) 60%); color: #fff; border-color: var(--ink);
}
.level-card.level-challenger p, .level-card.level-challenger .level-step { color: rgba(255,255,255,.72); }
.level-card.level-challenger .level-tagline { color: var(--accent); }
.level-card.level-challenger .level-meter span { background: var(--accent); }

/* Feature card */
.feature-card .icon-tile { margin-bottom: 1.1rem; }
.feature-card h3 { font-size: 1.0625rem; margin-bottom: .4rem; }
.feature-card p { font-size: .9375rem; color: var(--text-muted); margin: 0; }

/* Statistics card (dashboard metrics; show real values or an empty state) */
.stat-card { flex-direction: row; align-items: center; gap: 1rem; padding: 1.25rem; }
.stat-card .stat-value { font-size: 1.625rem; font-weight: 800; color: var(--text-dark); line-height: 1.1; letter-spacing: -.02em; }
.stat-card .stat-label { font-size: var(--fs-small); color: var(--text-muted); }
.stat-card .stat-value.is-empty { color: var(--border-strong); }

/* Result card */
.result-card { align-items: center; text-align: center; }
.score-ring {
  --value: 0; --size: 132px; --track: var(--primary-light); --fill: var(--primary);
  width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center;
  background: conic-gradient(var(--fill) calc(var(--value) * 1%), var(--track) 0);
  margin: .5rem auto 1rem;
}
.score-ring > div {
  width: calc(var(--size) - 22px); height: calc(var(--size) - 22px); border-radius: 50%; background: var(--surface);
  display: grid; place-items: center; align-content: center;
}
.score-ring strong { font-size: 1.75rem; font-weight: 800; color: var(--text-dark); line-height: 1; }
.score-ring span { font-size: var(--fs-xs); color: var(--text-muted); margin-top: .2rem; }
.result-breakdown { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; width: 100%; margin-top: .5rem; }
.result-breakdown div { background: var(--surface-2); border-radius: var(--radius); padding: .6rem .4rem; }
.result-breakdown strong { display: block; font-size: 1.125rem; color: var(--text-dark); }
.result-breakdown small { color: var(--text-muted); font-size: var(--fs-xs); }
.result-breakdown .is-correct strong { color: var(--success); }
.result-breakdown .is-wrong strong { color: var(--danger); }

/* Empty state (never fake numbers) */
.empty-state { text-align: center; padding: 2.5rem 1.5rem; border: 1.5px dashed var(--border-strong); border-radius: var(--radius-lg); background: var(--surface); }
.empty-state .icon-tile { margin-bottom: 1rem; }
.empty-state h3 { font-size: 1.0625rem; }
.empty-state p { color: var(--text-muted); font-size: .9375rem; max-width: 380px; margin: 0 auto 1.25rem; }

/* 08. FORMS =============================================================== */
.form-control, .form-select {
  min-height: 48px; padding: .7rem 1rem; font-size: 1rem; color: var(--text-dark);
  background-color: var(--surface); border: 1.5px solid var(--border); border-radius: var(--radius);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.form-control::placeholder { color: #98A0B6; }
.form-control:hover, .form-select:hover { border-color: var(--border-strong); }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: var(--ring); }
.form-control:disabled, .form-select:disabled { background: var(--surface-2); color: var(--text-muted); }
.form-select { padding-right: 2.5rem; background-position: right 1rem center; }
.form-text { font-size: var(--fs-small); color: var(--text-muted); margin-top: .4rem; }
.form-control.is-invalid, .was-validated .form-control:invalid,
.form-select.is-invalid, .was-validated .form-select:invalid { border-color: var(--danger); }
.form-control.is-valid, .was-validated .form-control:valid { border-color: var(--success); }
.invalid-feedback { color: var(--danger); font-size: var(--fs-small); font-weight: 500; }
.invalid-feedback::before { content: "\F333"; font-family: "bootstrap-icons"; margin-right: .35rem; vertical-align: -.1em; }
.required::after { content: " *"; color: var(--danger); }

/* Input with icon / prefix */
.input-icon { position: relative; }
.input-icon > .bi { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--text-muted); pointer-events: none; font-size: 1.05rem; }
.input-icon > .form-control { padding-left: 2.75rem; }
.input-group > .input-group-text {
  background: var(--surface-2); border: 1.5px solid var(--border); color: var(--text-dark); font-weight: 600;
  border-radius: var(--radius); padding-inline: 1rem;
}
.input-group > :not(:first-child):not(.dropdown-menu) { margin-left: -1.5px; }
.input-group:focus-within > .input-group-text { border-color: var(--primary); }
.mobile-input .input-group-text { gap: .4rem; font-size: .9375rem; }

/* Password with reveal toggle */
.password-field { position: relative; }
.password-field .form-control { padding-right: 3.25rem; }
.password-toggle {
  position: absolute; right: .35rem; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border: 0; background: transparent; color: var(--text-muted);
  border-radius: var(--radius-sm); display: grid; place-items: center;
}
.password-toggle:hover { color: var(--primary); background: var(--surface-2); }

/* OTP boxes: <div class="otp-group" data-otp-length="6"> <input class="otp-input"> × 6 */
.otp-group { display: flex; gap: .5rem; justify-content: flex-start; }
.otp-input {
  width: 52px; height: 58px; padding: 0; text-align: center;
  font-size: 1.5rem; font-weight: 700; color: var(--text-dark); font-variant-numeric: tabular-nums;
  border: 1.5px solid var(--border); border-radius: var(--radius); background: var(--surface);
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background var(--dur);
}
.otp-input:focus { outline: 0; border-color: var(--primary); box-shadow: var(--ring); }
.otp-input.is-filled { border-color: var(--primary-100); background: var(--primary-light); }
.otp-group.is-verified .otp-input { border-color: var(--success); background: var(--success-light); color: var(--success); }
.otp-group.is-invalid .otp-input { border-color: var(--danger); background: var(--danger-light); }
.otp-meta { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; font-size: var(--fs-small); margin-top: .85rem; color: var(--text-muted); }
.otp-meta button { border: 0; background: none; padding: 0; font-weight: 600; color: var(--primary); }
.otp-meta button:disabled { color: var(--text-muted); cursor: not-allowed; }
.verified-pill { display: inline-flex; align-items: center; gap: .35rem; color: var(--success); font-weight: 600; font-size: var(--fs-small); }
@media (max-width: 400px) {
  .otp-group { gap: .35rem; }
  .otp-input { width: calc((100vw - 5.5rem) / 6); height: 50px; font-size: 1.25rem; }
}

/* Checkbox / radio / switch */
.form-check { padding-left: 2em; min-height: 1.6rem; }
.form-check .form-check-input { width: 1.2em; height: 1.2em; margin-top: .2em; margin-left: -2em; border: 1.5px solid var(--border-strong); }
.form-check-input:checked { background-color: var(--primary); border-color: var(--primary); }
.form-check-input:focus { border-color: var(--primary); box-shadow: var(--ring); }
.form-check-input[type="checkbox"] { border-radius: 5px; }
.form-check-label { font-size: .9375rem; color: var(--text-body); }
.form-switch { padding-left: 3.1em; }
.form-switch .form-check-input { width: 2.4em; margin-left: -3.1em; border-radius: 2em; }

/* Selectable option tile (class / board pickers, future MCQ reuse) */
.option-tile { position: relative; display: block; cursor: pointer; }
.option-tile input { position: absolute; opacity: 0; pointer-events: none; }
.option-tile span {
  display: flex; align-items: center; gap: .75rem; padding: .8rem 1rem; border: 1.5px solid var(--border);
  border-radius: var(--radius); background: var(--surface); font-weight: 600; color: var(--text-dark);
  transition: border-color var(--dur), background var(--dur), box-shadow var(--dur);
}
.option-tile span::before {
  content: ""; width: 18px; height: 18px; flex: 0 0 18px; border-radius: 50%; border: 1.5px solid var(--border-strong); background: #fff;
  transition: border var(--dur);
}
.option-tile:hover span { border-color: var(--border-strong); }
.option-tile input:checked + span { border-color: var(--primary); background: var(--primary-light); }
.option-tile input:checked + span::before { border: 5px solid var(--primary); }
.option-tile input:focus-visible + span { box-shadow: var(--ring); }

/* Auth-style form panel */
.form-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: clamp(1.25rem, 1rem + 1.5vw, 2rem); box-shadow: var(--shadow-sm); }

/* 09. ALERTS & TOASTS ===================================================== */
.alert {
  --bs-alert-border-radius: var(--radius); --bs-alert-padding-x: 1rem; --bs-alert-padding-y: .9rem;
  display: flex; gap: .75rem; align-items: flex-start; border-width: 1px; font-size: .9375rem;
}
.alert > .bi { font-size: 1.15rem; line-height: 1.4; flex-shrink: 0; }
.alert-title { font-weight: 700; margin-bottom: .1rem; color: inherit; }
.alert p { margin: 0; }
.alert-info    { --bs-alert-bg: var(--primary-light); --bs-alert-color: var(--primary-dark); --bs-alert-border-color: var(--primary-100); }
.alert-success { --bs-alert-bg: var(--success-light); --bs-alert-color: #0F5A2B; --bs-alert-border-color: #C6E8D1; }
.alert-warning { --bs-alert-bg: var(--warning-light); --bs-alert-color: #7A3A06; --bs-alert-border-color: #F8DDB5; }
.alert-danger  { --bs-alert-bg: var(--danger-light);  --bs-alert-color: #8E1C1C; --bs-alert-border-color: #F6CACA; }
.alert-dismissible .btn-close { padding: 1.05rem 1rem; }

.toast-container { z-index: 1090; }
.cs-toast {
  --bs-toast-max-width: 380px; --bs-toast-border-radius: var(--radius);
  background: var(--ink); color: #fff; border: 0; box-shadow: var(--shadow-lg);
}
.cs-toast .toast-body { display: flex; gap: .75rem; align-items: center; padding: .85rem 1rem; font-size: .9375rem; }
.cs-toast .toast-body > .bi { font-size: 1.15rem; }
.cs-toast[data-type="success"] .toast-body > .bi { color: #4ADE80; }
.cs-toast[data-type="danger"]  .toast-body > .bi { color: #F87171; }
.cs-toast[data-type="warning"] .toast-body > .bi { color: var(--accent); }
.cs-toast[data-type="info"]    .toast-body > .bi { color: #A5B4FC; }
.cs-toast .btn-close { filter: invert(1) grayscale(1) brightness(2); opacity: .6; margin-left: auto; }

/* 10. MODAL =============================================================== */
.modal { --bs-modal-border-radius: var(--radius-xl); --bs-modal-border-width: 0; --bs-modal-padding: 1.75rem; }
.modal-content { box-shadow: var(--shadow-lg); }
.modal-header { border: 0; padding: 1.5rem 1.75rem 0; }
.modal-footer { border: 0; padding: 0 1.75rem 1.75rem; gap: .5rem; }
.modal-footer > * { margin: 0; }
.modal-backdrop { --bs-backdrop-bg: #0B1020; --bs-backdrop-opacity: .55; }
.modal-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; font-size: 1.6rem; margin-bottom: 1rem; background: var(--primary-light); color: var(--primary); }
.modal-title { font-weight: 800; font-size: 1.375rem; letter-spacing: -.02em; }

/* 11. PROGRESS ============================================================ */
.progress { --bs-progress-height: 8px; --bs-progress-bg: var(--surface-2); --bs-progress-border-radius: var(--radius-pill); --bs-progress-bar-bg: var(--primary); }
.progress.progress-lg { --bs-progress-height: 12px; }
.progress-bar.bg-accent { background-color: var(--accent) !important; }
.progress-bar.bg-success { background-color: var(--success) !important; }
.progress-labelled { display: flex; justify-content: space-between; font-size: var(--fs-small); margin-bottom: .45rem; }
.progress-labelled strong { color: var(--text-dark); }
.step-progress { display: flex; gap: .4rem; }
.step-progress span { flex: 1; height: 4px; border-radius: 2px; background: var(--border); }
.step-progress span.is-done { background: var(--primary); }
.step-progress span.is-current { background: linear-gradient(90deg, var(--primary) 50%, var(--border) 50%); }

/* 12. TABS · ACCORDION · BREADCRUMBS · PAGINATION ======================== */
.nav-tabs-cs { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .3rem; background: var(--surface-2); border-radius: var(--radius); border: 0; }
.nav-tabs-cs .nav-link {
  border: 0; border-radius: 9px; padding: .55rem 1rem; font-weight: 600; font-size: .9375rem; color: var(--text-muted); background: transparent;
}
.nav-tabs-cs .nav-link:hover { color: var(--text-dark); }
.nav-tabs-cs .nav-link.active { background: var(--surface); color: var(--primary); box-shadow: var(--shadow-sm); }
.tab-content-cs { padding-top: 1.25rem; }
.nav-underline-cs { border-bottom: 1px solid var(--border); gap: 1.5rem; }
.nav-underline-cs .nav-link { padding: .75rem 0; color: var(--text-muted); font-weight: 600; border-bottom: 2px solid transparent; }
.nav-underline-cs .nav-link.active { color: var(--primary); border-bottom-color: var(--primary); }

.accordion {
  --bs-accordion-border-color: var(--border); --bs-accordion-border-radius: var(--radius-lg); --bs-accordion-inner-border-radius: calc(var(--radius-lg) - 1px);
  --bs-accordion-btn-padding-y: 1.1rem; --bs-accordion-btn-padding-x: 1.25rem; --bs-accordion-body-padding-x: 1.25rem;
  --bs-accordion-active-bg: var(--surface); --bs-accordion-active-color: var(--primary); --bs-accordion-btn-focus-box-shadow: var(--ring);
}
.accordion-button { font-weight: 700; color: var(--text-dark); font-size: 1rem; }
.accordion-body { color: var(--text-muted); padding-top: 0; }
.accordion-button:not(.collapsed) { box-shadow: none; }

.breadcrumb { --bs-breadcrumb-divider: "›"; --bs-breadcrumb-divider-color: var(--border-strong); --bs-breadcrumb-item-active-color: var(--text-dark); font-size: var(--fs-small); font-weight: 500; margin: 0; }
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb-item.active { font-weight: 600; }

.pagination { --bs-pagination-border-radius: 10px; --bs-pagination-color: var(--text-dark); --bs-pagination-border-color: var(--border); --bs-pagination-hover-bg: var(--primary-light); --bs-pagination-hover-color: var(--primary); --bs-pagination-hover-border-color: var(--primary-100); --bs-pagination-active-bg: var(--primary); --bs-pagination-active-border-color: var(--primary); --bs-pagination-focus-box-shadow: var(--ring); --bs-pagination-disabled-color: #A8AFC3; gap: .35rem; }
.pagination .page-link { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 10px !important; font-weight: 600; font-size: .9375rem; margin: 0 !important; }

/* 13. LEARNING CYCLE ====================================================== */
.cycle { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: .75rem; counter-reset: cycle; }
.cycle li {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 1.1rem .75rem; text-align: center; counter-increment: cycle;
}
.cycle li .icon-tile { margin-bottom: .6rem; }
.cycle li strong { display: block; color: var(--text-dark); font-size: .9375rem; }
.cycle li small { color: var(--text-muted); font-size: var(--fs-xs); }
.cycle li:not(:last-child)::after {
  content: "\F285"; font-family: "bootstrap-icons"; position: absolute; right: -.62rem; top: 50%; transform: translateY(-50%);
  width: 20px; height: 20px; display: grid; place-items: center; border-radius: 50%; font-size: .7rem;
  background: var(--primary); color: #fff; z-index: 1; box-shadow: 0 0 0 3px var(--background);
}
.cycle li:last-child { background: var(--ink); border-color: var(--ink); }
.cycle li:last-child strong { color: #fff; }
.cycle li:last-child small { color: rgba(255,255,255,.65); }
@media (max-width: 991.98px) {
  .cycle { grid-template-columns: repeat(3, 1fr); row-gap: 1rem; }
  .cycle li:nth-child(3)::after { display: none; }
}
@media (max-width: 575.98px) {
  .cycle { grid-template-columns: 1fr 1fr; }
  .cycle li:nth-child(3)::after { display: grid; }
  .cycle li:nth-child(2n)::after { display: none; }
}

/* 14. HEADER / NAVBAR ===================================================== */
.site-header {
  position: sticky; top: 0; z-index: 1030;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(160%) blur(10px); -webkit-backdrop-filter: saturate(160%) blur(10px);
  border-bottom: 1px solid transparent; transition: border-color var(--dur), box-shadow var(--dur);
}
.site-header.is-scrolled { border-bottom-color: var(--border); box-shadow: 0 4px 18px -12px rgba(17, 23, 41, .25); }
.site-header .navbar { min-height: var(--header-h); padding-block: .5rem; }
.brand { display: inline-flex; align-items: center; gap: .65rem; text-decoration: none; }
.brand-mark { width: 44px; height: 44px; border-radius: 12px; overflow: hidden; flex: 0 0 44px; background: var(--ink); box-shadow: var(--shadow-sm); }
.brand-mark img { width: 100%; height: 100%; object-fit: cover; display: block; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-name { font-weight: 800; font-size: 1.15rem; letter-spacing: .04em; color: var(--text-dark); }
.brand-tag { white-space: nowrap; font-size: .625rem; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); margin-top: .2rem; }
.site-header .nav-link {
  white-space: nowrap; font-weight: 600; font-size: .9375rem; color: var(--text-body); padding: .5rem .8rem !important; border-radius: 10px;
}
.site-header .nav-link:hover { color: var(--primary); background: var(--primary-light); }
.site-header .nav-link.active { color: var(--primary); }
.site-header .nav-auth .nav-link { color: var(--text-dark); }
.navbar-toggler { border: 1px solid var(--border); border-radius: 10px; width: 44px; height: 44px; padding: 0; display: grid; place-items: center; font-size: 1.5rem; color: var(--text-dark); }
.navbar-toggler:focus { box-shadow: var(--ring); }
.site-header .btn { white-space: nowrap; }
@media (min-width: 1200px) and (max-width: 1399.98px) {
  .site-header .brand-tag { display: none; }
  .site-header .nav-link { padding: .5rem .6rem !important; font-size: .9rem; }
  .site-header .nav-link.active::after { left: .6rem !important; right: .6rem !important; }
}
@media (min-width: 1200px) {
  .site-header .nav-link.active { position: relative; }
  .site-header .nav-link.active::after { content: ""; position: absolute; left: .8rem; right: .8rem; bottom: .15rem; height: 2px; border-radius: 2px; background: var(--accent); }
}
@media (max-width: 1199.98px) {
  .site-header .navbar-collapse { max-height: calc(100vh - var(--header-h)); overflow-y: auto; padding: .75rem 0 1.25rem; border-top: 1px solid var(--border); margin-top: .5rem; }
  .site-header .nav-link { padding: .75rem .9rem !important; }
  .site-header .nav-cta { display: grid !important; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: .75rem; }
  .site-header .nav-cta .btn-start { grid-column: 1 / -1; }
}
@media (max-width: 399.98px) { .brand-tag { display: none; } }

/* 15. FOOTER ============================================================== */
.site-footer { background: var(--ink); color: rgba(255, 255, 255, .68); padding-top: clamp(3rem, 2.5rem + 2vw, 4.5rem); font-size: .9375rem; }
.site-footer .brand-name { color: #fff; }
.site-footer .brand-mark { box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.site-footer .brand-tag { color: var(--accent); }
.footer-about { max-width: 320px; margin-top: 1rem; }
.footer-about .hi { color: rgba(255,255,255,.85); font-size: .9375rem; }
.footer-title { color: #fff; font-size: .8125rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: .55rem; }
.footer-links a { color: rgba(255, 255, 255, .68); }
.footer-links a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); margin-top: 3rem; padding-block: 1.5rem; font-size: var(--fs-small); display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem; }
.footer-bottom .domain { color: rgba(255,255,255,.85); font-weight: 600; }

/* 16. UTILITIES & ACCESSIBILITY =========================================== */
:focus-visible { outline: 3px solid rgba(var(--primary-rgb), .45); outline-offset: 2px; border-radius: 6px; }
.btn:focus-visible, .form-control:focus-visible, .form-select:focus-visible { outline: 0; }
.skip-link { position: absolute; left: 1rem; top: -100px; z-index: 2000; background: var(--ink); color: #fff; padding: .75rem 1rem; border-radius: var(--radius); font-weight: 600; }
.skip-link:focus { top: 1rem; color: #fff; }
.bg-surface { background: var(--surface) !important; }
.bg-ink { background: var(--ink) !important; color: #fff; }
.bg-primary-light { background: var(--primary-light) !important; }
.rounded-cs { border-radius: var(--radius-lg) !important; }
.fw-800 { font-weight: 800 !important; }
.gap-cs { gap: 1.5rem; }
.tabular { font-variant-numeric: tabular-nums; }
.disclaimer { font-size: var(--fs-xs); color: var(--text-muted); display: flex; gap: .4rem; align-items: flex-start; }
.disclaimer .bi { margin-top: .1rem; }

/* ==========================================================================
   17. PAGE SECTIONS (Phase 2+) — shared by all public pages
   ========================================================================== */

/* Hero */
.hero {
  position: relative; overflow: hidden;
  padding-block: clamp(2.5rem, 1.5rem + 4vw, 5rem) clamp(3rem, 2rem + 4vw, 5.5rem);
  background:
    radial-gradient(60% 70% at 100% 0%, rgba(var(--primary-rgb), .10) 0%, transparent 70%),
    radial-gradient(40% 50% at 0% 100%, rgba(242, 165, 22, .08) 0%, transparent 70%),
    var(--surface);
  border-bottom: 1px solid var(--border);
}
.hero::before { /* faint grid */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(var(--border) 1px, transparent 1px), linear-gradient(90deg, var(--border) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 60% at 70% 30%, #000 0%, transparent 75%);
  -webkit-mask-image: radial-gradient(70% 60% at 70% 30%, #000 0%, transparent 75%);
}
.hero > .container { position: relative; }
.hero h1 { font-size: clamp(2.125rem, 1.6rem + 2.1vw, 3.25rem); letter-spacing: -.03em; line-height: 1.08; margin-bottom: 1.1rem; }
.hero .lead { max-width: 560px; margin-bottom: 1.75rem; }
.hero-pill {
  display: inline-flex; align-items: center; gap: .5rem; padding: .35rem .85rem .35rem .4rem; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--border); font-size: var(--fs-small); font-weight: 600; color: var(--text-dark);
  box-shadow: var(--shadow-xs); margin-bottom: 1.25rem;
}
.hero-pill .badge { border-radius: var(--radius-pill); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-notes { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; margin: 1.5rem 0 0; padding: 0; list-style: none; font-size: var(--fs-small); color: var(--text-muted); }
.hero-notes li { display: inline-flex; align-items: center; gap: .4rem; }
.hero-notes .bi { color: var(--success); }
@media (max-width: 575.98px) { .hero-actions .btn { flex: 1 1 100%; } }

/* CBT mock window (marketing visual — not the real engine) */
.cbt-mock {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg); overflow: hidden; font-size: .875rem; max-width: 560px; margin-inline: auto;
}
.cbt-mock-bar { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 1rem; background: var(--ink); color: #fff; }
.cbt-mock-bar .brand-mark { width: 28px; height: 28px; flex-basis: 28px; border-radius: 8px; box-shadow: 0 0 0 1px rgba(255,255,255,.14); }
.cbt-mock-bar .cbt-mock-test { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.cbt-mock-bar .cbt-mock-test span { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cbt-timer { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .65rem; border-radius: 8px; background: rgba(242,165,22,.14); color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.cbt-mock-body { display: grid; grid-template-columns: 1fr 150px; }
.cbt-mock-q { padding: 1.1rem 1.1rem 1rem; border-right: 1px solid var(--border); }
.cbt-mock-q .q-meta { display: flex; justify-content: space-between; font-size: var(--fs-xs); font-weight: 700; color: var(--text-muted); letter-spacing: .04em; margin-bottom: .6rem; }
.cbt-mock-q .q-text { font-weight: 700; color: var(--text-dark); font-size: 1rem; margin-bottom: .85rem; }
.cbt-mock-opt { display: flex; align-items: center; gap: .6rem; padding: .55rem .7rem; border: 1.5px solid var(--border); border-radius: 10px; margin-bottom: .45rem; color: var(--text-dark); font-weight: 500; }
.cbt-mock-opt b { width: 24px; height: 24px; flex: 0 0 24px; border-radius: 50%; display: grid; place-items: center; font-size: .75rem; background: var(--surface-2); color: var(--text-muted); }
.cbt-mock-opt.is-selected { border-color: var(--primary); background: var(--primary-light); }
.cbt-mock-opt.is-selected b { background: var(--primary); color: #fff; }
.cbt-mock-actions { display: flex; gap: .4rem; flex-wrap: wrap; margin-top: .85rem; }
.cbt-mock-actions span { padding: .4rem .65rem; border-radius: 8px; font-size: .75rem; font-weight: 600; border: 1px solid var(--border); color: var(--text-dark); background: var(--surface); }
.cbt-mock-actions span.is-primary { background: var(--success); border-color: var(--success); color: #fff; }
.cbt-mock-actions span.is-review { border-color: #C9B8F5; color: #5B3CC4; }
.cbt-mock-palette { padding: 1rem .85rem; background: var(--surface-2); }
.cbt-mock-palette p { font-size: .6875rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); margin-bottom: .6rem; }
.cbt-mock-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.cbt-mock-grid span { aspect-ratio: 1; border-radius: 6px; display: grid; place-items: center; font-size: .6875rem; font-weight: 700; background: var(--surface); border: 1px solid var(--border); color: var(--text-muted); }
.cbt-mock-progress { margin-top: .9rem; }
.cbt-mock-progress .progress { --bs-progress-height: 6px; }
.cbt-mock-progress small { display: block; margin-top: .35rem; font-size: .6875rem; color: var(--text-muted); }
.cbt-mock-float {
  position: absolute; display: inline-flex; align-items: center; gap: .5rem; padding: .55rem .8rem; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow); font-size: .8125rem; font-weight: 600; color: var(--text-dark);
}
.hero-visual { position: relative; padding: 1rem 0 2.5rem; }
.hero-visual .cbt-mock-float.f1 { left: 4%; bottom: 0; }
.hero-visual .cbt-mock-float.f2 { right: 4%; bottom: 0; }
@media (max-width: 575.98px) {
  .cbt-mock-body { grid-template-columns: 1fr; }
  .cbt-mock-q { border-right: 0; border-bottom: 1px solid var(--border); }
  .cbt-mock-grid { grid-template-columns: repeat(8, 1fr); }
  .hero-visual .cbt-mock-float { display: none; }
}

/* Palette states — shared by the mock and the real CBT engine */
.qs-not-visited  { background: var(--surface) !important; border-color: var(--border) !important; color: var(--text-muted) !important; }
.qs-not-answered { background: var(--danger-light) !important; border-color: #F2B8B8 !important; color: var(--danger) !important; }
.qs-answered     { background: var(--success) !important; border-color: var(--success) !important; color: #fff !important; }
.qs-marked       { background: #6D4ED8 !important; border-color: #6D4ED8 !important; color: #fff !important; }
.qs-answered-marked { background: #6D4ED8 !important; border-color: #6D4ED8 !important; color: #fff !important; position: relative; }
.qs-answered-marked::after { content: ""; position: absolute; right: 3px; bottom: 3px; width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 1.5px #6D4ED8; }
.qs-current { outline: 2px solid var(--primary); outline-offset: 2px; }

/* Value strip */
.value-strip { background: var(--surface); border-bottom: 1px solid var(--border); }
.value-strip ul { list-style: none; margin: 0; padding: 1.25rem 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
.value-strip li { display: flex; align-items: center; gap: .75rem; font-weight: 700; color: var(--text-dark); font-size: .9375rem; line-height: 1.3; }
.value-strip li small { display: block; font-weight: 500; color: var(--text-muted); font-size: var(--fs-xs); }
@media (max-width: 991.98px) { .value-strip ul { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .value-strip ul { grid-template-columns: 1fr 1fr; } .value-strip li:last-child { grid-column: 1 / -1; } }

/* Check list */
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .7rem; }
.check-list li { display: flex; gap: .65rem; align-items: flex-start; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; color: var(--success); font-size: 1.1rem; line-height: 1.45; }
.check-list.on-dark li { color: rgba(255,255,255,.85); }
.check-list.on-dark li::before { color: var(--accent); }

/* Subject tile */
.subject-tile {
  display: flex; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); color: var(--text-dark); height: 100%;
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.subject-tile:hover { border-color: var(--primary-100); box-shadow: var(--shadow); transform: translateY(-2px); color: var(--text-dark); }
.subject-tile strong { display: block; font-size: 1rem; }
.subject-tile small { color: var(--text-muted); font-size: var(--fs-small); }
.subject-tile .bi-arrow-right { margin-left: auto; color: var(--text-muted); transition: transform var(--dur), color var(--dur); }
.subject-tile:hover .bi-arrow-right { transform: translateX(3px); color: var(--primary); }

/* Exam category card */
.exam-card { gap: .25rem; }
.exam-card .exam-kicker { font-size: var(--fs-xs); font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-muted); }
.exam-card h3 { font-size: 1.25rem; margin: .35rem 0 .5rem; }
.exam-card .chip-row { display: flex; flex-wrap: wrap; gap: .4rem; margin: .5rem 0 0; padding: 0; list-style: none; }
.chip { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .7rem; border-radius: var(--radius-pill); background: var(--surface-2); color: var(--text-dark); font-size: .8125rem; font-weight: 600; border: 1px solid transparent; }
.chip.is-primary { background: var(--primary-light); color: var(--primary-dark); }
.chip.on-dark { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.14); }
button.chip { cursor: pointer; border-color: var(--border); background: var(--surface); }
button.chip:hover { border-color: var(--primary-100); color: var(--primary); }
button.chip[aria-pressed="true"] { background: var(--primary); border-color: var(--primary); color: #fff; }

/* Flow chips: Question → Options → Timer ... */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; list-style: none; padding: 0; margin: 0; }
.flow li { display: inline-flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .875rem; color: var(--text-dark); }
.flow li:not(:last-child)::after { content: "\F138"; font-family: "bootstrap-icons"; color: var(--accent-dark); font-size: .8rem; }
.flow li span { padding: .35rem .75rem; border-radius: var(--radius-pill); background: var(--surface); border: 1px solid var(--border); }
.flow.on-dark li { color: #fff; }
.flow.on-dark li span { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.14); }

/* Numbered steps (How it works) */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); gap: .75rem; counter-reset: step; }
.steps li { position: relative; counter-increment: step; padding-top: 3.25rem; text-align: center; }
.steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center;
  background: var(--surface); border: 1.5px solid var(--primary-100); color: var(--primary); font-weight: 800; font-size: .9375rem; z-index: 1;
}
.steps li:not(:last-child)::after { content: ""; position: absolute; top: 22px; left: calc(50% + 26px); right: calc(-50% + 26px); height: 2px; background: repeating-linear-gradient(90deg, var(--primary-100) 0 6px, transparent 6px 10px); }
.steps li:last-child::before { background: var(--primary); border-color: var(--primary); color: #fff; }
.steps strong { display: block; color: var(--text-dark); font-size: .9375rem; line-height: 1.3; }
.steps small { display: block; color: var(--text-muted); font-size: var(--fs-xs); margin-top: .25rem; line-height: 1.45; }
@media (max-width: 991.98px) {
  .steps { grid-template-columns: 1fr; gap: 0; max-width: 520px; }
  .steps li { text-align: left; padding: 0 0 1.5rem 4rem; min-height: 44px; }
  .steps li::before { left: 0; transform: none; }
  .steps li:not(:last-child)::after { top: 48px; bottom: 4px; left: 21px; right: auto; width: 2px; height: auto; background: repeating-linear-gradient(180deg, var(--primary-100) 0 6px, transparent 6px 10px); }
  .steps li strong { padding-top: .6rem; }
}

/* Dark band (faculty, CTA) */
.band-ink { background: var(--ink); color: rgba(255,255,255,.75); position: relative; overflow: hidden; }
.band-ink h2, .band-ink h3 { color: #fff; }
.band-ink .eyebrow { color: var(--accent); }
.band-ink .lead { color: rgba(255,255,255,.72); }
.band-ink::after {
  content: ""; position: absolute; width: 520px; height: 520px; right: -160px; top: -200px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(46,59,209,.5), transparent); pointer-events: none;
}
.band-ink > .container { position: relative; z-index: 1; }
.band-ink .cs-card { color: var(--text-body); }
.city-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .75rem; }
.city-card { padding: 1.1rem 1.25rem; border-radius: var(--radius-lg); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.1); }
.city-card strong { display: block; color: #fff; font-size: 1.125rem; }
.city-card small { color: rgba(255,255,255,.6); }
.city-card .bi { color: var(--accent); font-size: 1.25rem; display: block; margin-bottom: .5rem; }
.quote-hi { font-family: var(--font-hi); font-size: clamp(1.25rem, 1.1rem + .6vw, 1.6rem); font-weight: 600; color: #fff; line-height: 1.6; border-left: 3px solid var(--accent); padding-left: 1rem; margin: 1.5rem 0; }

.cta-band {
  border-radius: var(--radius-xl); padding: clamp(2rem, 1.5rem + 3vw, 3.5rem);
  background: radial-gradient(90% 120% at 100% 0%, #3845E0 0%, var(--primary-dark) 55%, var(--ink) 100%); color: rgba(255,255,255,.8);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; position: relative; overflow: hidden;
}
.cta-band h2 { color: #fff; margin-bottom: .5rem; }
.cta-band .hero-actions { justify-content: flex-end; }
@media (max-width: 767.98px) { .cta-band { grid-template-columns: 1fr; } .cta-band .hero-actions { justify-content: flex-start; } }

/* Inner page hero */
.page-hero { background: var(--surface); border-bottom: 1px solid var(--border); padding-block: 2rem clamp(2rem, 1.5rem + 2vw, 3rem); position: relative; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; right: -120px; top: -140px; width: 380px; height: 380px; border-radius: 50%; background: radial-gradient(closest-side, rgba(var(--primary-rgb), .1), transparent); pointer-events: none; }
.page-hero .breadcrumb { margin-bottom: 1.25rem; }
.page-hero h1 { margin-bottom: .6rem; }
.page-hero .lead { max-width: 720px; margin: 0; }

/* Long-form text */
.prose { max-width: 760px; color: var(--text-body); }
.prose h2 { font-size: 1.375rem; margin-top: 2.25rem; }
.prose h3 { font-size: 1.125rem; margin-top: 1.5rem; }
.prose p, .prose li { line-height: 1.8; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: .35rem; }
.toc-card { position: sticky; top: calc(var(--header-h) + 1.5rem); }
.toc-card a { display: block; padding: .35rem 0; color: var(--text-muted); font-size: var(--fs-small); font-weight: 500; }
.toc-card a:hover { color: var(--primary); }

/* Split media blocks (About) */
.split-visual { border-radius: var(--radius-xl); background: var(--primary-light); padding: 1.75rem; border: 1px solid var(--primary-100); }
.number-kicker { font-size: .8125rem; font-weight: 800; color: var(--accent-dark); letter-spacing: .08em; }

/* Filter bar (quizzes / courses) */
.filter-panel { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem; }
.filter-panel .form-label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.filter-panel .form-select { min-height: 44px; padding-block: .55rem; }
.chip-scroll { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
.results-bar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: .75rem; margin: 1.5rem 0 1rem; }
.results-bar p { margin: 0; color: var(--text-muted); font-size: var(--fs-small); }
.results-bar strong { color: var(--text-dark); }
.skeleton { border-radius: var(--radius-lg); background: linear-gradient(90deg, var(--surface-2) 25%, #E9ECF4 37%, var(--surface-2) 63%); background-size: 400% 100%; animation: cs-shimmer 1.3s ease infinite; min-height: 220px; }
@keyframes cs-shimmer { 0% { background-position: 100% 50%; } 100% { background-position: 0 50%; } }

/* Module list (course details) */
.module-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .75rem; }
.module-item { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); }
.module-item .num { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-light); color: var(--primary); font-weight: 800; font-size: .875rem; }
.module-item .grow { flex: 1; min-width: 0; }
.module-item strong { display: block; color: var(--text-dark); }
.module-item small { color: var(--text-muted); }
@media (max-width: 575.98px) { .module-item { flex-wrap: wrap; } .module-item .btn { width: 100%; } }

/* Auth pages */
.auth-page { min-height: calc(100vh - var(--header-h)); display: grid; grid-template-columns: 1fr 1fr; }
.auth-aside { background: var(--ink); color: rgba(255,255,255,.75); padding: clamp(2rem, 1rem + 4vw, 4rem); display: flex; flex-direction: column; justify-content: center; position: relative; overflow: hidden; }
.auth-aside h2 { color: #fff; }
.auth-aside::after { content: ""; position: absolute; width: 480px; height: 480px; left: -160px; bottom: -220px; border-radius: 50%; background: radial-gradient(closest-side, rgba(46,59,209,.55), transparent); }
.auth-aside > * { position: relative; z-index: 1; }
.auth-main { display: flex; align-items: center; justify-content: center; padding: clamp(1.5rem, 1rem + 3vw, 3.5rem) 1rem; }
.auth-card { width: 100%; max-width: 460px; }
.auth-card h1 { font-size: clamp(1.625rem, 1.4rem + 1vw, 2rem); margin-bottom: .35rem; }
.auth-step[hidden] { display: none !important; }
.auth-switch { text-align: center; font-size: .9375rem; color: var(--text-muted); margin-top: 1.5rem; }
.dev-note { font-size: var(--fs-xs); color: var(--warning); background: var(--warning-light); border-radius: var(--radius-sm); padding: .5rem .75rem; margin-top: 1rem; display: flex; gap: .4rem; }
@media (max-width: 991.98px) { .auth-page { grid-template-columns: 1fr; } .auth-aside { display: none; } }

/* Logged-in header chip */
.avatar { width: 36px; height: 36px; flex: 0 0 36px; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: #fff; font-weight: 700; font-size: .875rem; }
.avatar.lg { width: 64px; height: 64px; flex-basis: 64px; font-size: 1.5rem; }
.nav-user { display: inline-flex; align-items: center; gap: .5rem; padding: .25rem .5rem .25rem .25rem; border-radius: var(--radius-pill); border: 1px solid var(--border); background: var(--surface); color: var(--text-dark); font-weight: 600; font-size: .875rem; }

/* Locked content placeholder */
.locked-box { text-align: center; padding: 2rem 1.5rem; border-radius: var(--radius-lg); background: var(--surface-2); border: 1px dashed var(--border-strong); }
.locked-box .bi { font-size: 1.75rem; color: var(--text-muted); }

/* Protected pages: hide shell until the (UX-only) auth check passes */
body[data-protected="true"]:not(.is-authed) .app-shell { visibility: hidden; }
@media (min-width: 992px) {
  .cycle.cycle-3 { grid-template-columns: repeat(3, 1fr); row-gap: 1rem; }
  .cycle.cycle-3 li:nth-child(3)::after { display: none; }
}
/* Keep large gutters from overflowing the container on small screens */
@media (max-width: 991.98px) { .g-5, .gx-5 { --bs-gutter-x: 1.5rem; } }
.chip-scroll > * { flex: 0 0 auto; white-space: nowrap; }
h5, .h5 { font-size: 1.0625rem; font-weight: 700; color: var(--text-dark); letter-spacing: -.005em; }

/* ==========================================================================
   18. PHOTOGRAPHY & HAND-MADE ACCENTS
   Real photos + small hand-drawn marks so pages feel human, not templated.
   ========================================================================== */
.hero { background: radial-gradient(55% 60% at 85% 35%, #FFF3DA 0%, transparent 70%), radial-gradient(45% 55% at 0% 100%, var(--primary-light) 0%, transparent 70%), #FFFCF7; }
.hero::before { display: none; }

/* Hand-drawn underline */
.hand-underline { position: relative; display: inline-block; color: var(--primary); white-space: nowrap; }
.hand-underline .scribble { position: absolute; left: -2%; bottom: -.18em; width: 104%; height: .32em; color: var(--accent); overflow: visible; }

/* Hero photo composition */
.hero-photo { position: relative; max-width: 500px; margin: 0 auto; padding: 1.5rem 1.5rem 2.5rem; }
.hero-photo::before { /* gold block offset behind the arch */
  content: ""; position: absolute; inset: 3.5rem 0 1rem 3.5rem; border-radius: 220px 220px 32px 32px; background: var(--accent); transform: rotate(3deg);
}
.hero-photo::after { /* dot grid graphic */
  content: ""; position: absolute; left: -.5rem; bottom: 1rem; width: 120px; height: 120px; opacity: .55;
  background-image: radial-gradient(var(--primary) 1.6px, transparent 1.7px); background-size: 14px 14px;
}
.photo-arch { position: relative; z-index: 1; margin: 0; aspect-ratio: 4 / 5; border-radius: 220px 220px 32px 32px; overflow: hidden; background: var(--primary-dark); box-shadow: 0 30px 60px -25px rgba(11, 16, 32, .45); }
.photo-arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; display: block; }
.photo-chip {
  position: absolute; z-index: 2; display: flex; align-items: center; gap: .65rem; padding: .65rem .9rem .65rem .65rem; border-radius: 16px;
  background: #fff; box-shadow: 0 14px 34px -12px rgba(11, 16, 32, .28); font-size: .8125rem; line-height: 1.25; color: var(--text-dark);
}
.photo-chip strong { display: block; font-size: .875rem; }
.photo-chip small { color: var(--text-muted); font-size: .75rem; }
.photo-chip.chip-top { left: -1rem; top: 60%; transform: rotate(-2deg); }
.photo-chip.chip-bottom { right: -.5rem; bottom: 1rem; }
.mini-levels { display: inline-flex; align-items: flex-end; gap: 3px; height: 26px; padding: 5px 7px; border-radius: 10px; background: var(--ink); }
.mini-levels i { width: 4px; border-radius: 2px; background: var(--accent); }
.mini-levels i:nth-child(1) { height: 5px; } .mini-levels i:nth-child(2) { height: 9px; } .mini-levels i:nth-child(3) { height: 13px; } .mini-levels i:nth-child(4) { height: 16px; }
.sticky-note {
  position: absolute; z-index: 2; right: -.75rem; top: 1.25rem; margin: 0; padding: .7rem .9rem .8rem; width: 150px;
  background: #FFE9A8; color: #4A3200; font-weight: 700; font-size: .9375rem; line-height: 1.45; transform: rotate(5deg);
  box-shadow: 0 10px 18px -10px rgba(74, 50, 0, .5); border-radius: 2px;
}
.sticky-note::before { content: ""; position: absolute; top: -9px; left: 50%; width: 56px; height: 18px; transform: translateX(-50%) rotate(-4deg); background: rgba(255,255,255,.65); box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.doodle { position: absolute; z-index: 0; pointer-events: none; }
.doodle-math { left: -3.25rem; top: 1rem; width: 120px; fill: var(--primary); opacity: .35; font: italic 700 17px "Plus Jakarta Sans", serif; transform: rotate(-8deg); }
.doodle-star { right: 2.5rem; bottom: -.25rem; width: 30px; fill: var(--accent); }
@media (max-width: 575.98px) {
  .hero-photo { padding: 1rem .5rem 2rem; max-width: 360px; }
  .photo-chip.chip-top { left: -.25rem; }
  .photo-chip.chip-bottom { right: -.25rem; }
  .sticky-note { right: -.25rem; width: 128px; font-size: .8125rem; }
  .doodle-math { display: none; }
}

/* Plain photo card */
.photo-card { margin: 0; border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 3 / 2; background: var(--surface-2); position: relative; }
.photo-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-card figcaption { position: absolute; left: .75rem; bottom: .75rem; padding: .35rem .7rem; border-radius: var(--radius-pill); background: rgba(11,16,32,.72); color: #fff; font-size: .75rem; font-weight: 600; }

/* CBT showcase inside the dark band */
.cbt-showcase .cbt-mock { max-width: none; box-shadow: 0 30px 70px -20px rgba(0,0,0,.6); }
.cbt-showcase .cbt-mock { color: var(--text-body); }

/* Dark band with a photo behind */
.band-photo { background: linear-gradient(100deg, rgba(11,16,32,.97) 0%, rgba(11,16,32,.9) 45%, rgba(28,37,143,.72) 100%), var(--band-img) center / cover no-repeat, var(--ink); }
.band-photo::after { display: none; }

/* CTA with a photo */
.cta-band.has-photo { grid-template-columns: 180px 1.4fr 1fr; padding-block: 2rem; }
.cta-photo { width: 180px; height: 220px; object-fit: cover; border-radius: 110px 110px 20px 20px; box-shadow: 0 0 0 6px rgba(255,255,255,.12); background: var(--primary-dark); }
@media (max-width: 991.98px) { .cta-band.has-photo { grid-template-columns: 1fr; } .cta-photo { width: 140px; height: 170px; } }

/* Auth aside with photo */
.auth-aside.has-photo { background: linear-gradient(180deg, rgba(11,16,32,.55) 0%, rgba(11,16,32,.92) 60%, var(--ink) 100%), var(--aside-img) center 20% / cover no-repeat, var(--ink); justify-content: flex-end; }
.auth-aside.has-photo::after { display: none; }

/* Photo header for exam cards */
.card-photo { margin: -1.5rem -1.5rem 1.25rem; height: 170px; overflow: hidden; border-radius: var(--radius-lg) var(--radius-lg) 0 0; background: var(--surface-2); }
.card-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.auth-aside .eyebrow { color: var(--accent); }
.card-photo img { object-position: 50% 35%; }
.d-contents { display: contents; }
