/* ── RESET & BASE ────────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: 'DM Sans', sans-serif; overflow-x: hidden; }
a { text-decoration: none; }
img { max-width: 100%; }

/* ── CSS VARIABLES ───────────────────────────────────────────────────────── */
:root {
  /* Shared */
  --radius-pill: 999px;
  /* Clay */
  --clay-shadow: 16px 16px 32px rgba(160,150,180,.2),-10px -10px 24px rgba(255,255,255,.92),inset 6px 6px 12px rgba(139,92,246,.03),inset -6px -6px 12px rgba(255,255,255,1);
  --clay-btn-shadow: 12px 12px 24px rgba(139,92,246,.3),-8px -8px 16px rgba(255,255,255,.4),inset 4px 4px 8px rgba(255,255,255,.4),inset -4px -4px 8px rgba(0,0,0,.1);
  --clay-press: inset 10px 10px 20px #d9d4e3, inset -10px -10px 20px #fff;
  /* Material You */
  --md-bg: #FFFBFE;
  --md-surf: #F3EDF7;
  --md-surf-low: #E7E0EC;
  --md-pri: #6750A4;
  --md-on-pri: #FFFFFF;
  --md-sec: #E8DEF8;
  --md-on-sec: #1D192B;
  --md-ter: #7D5260;
  --md-out: #79747E;
  --md-fg: #1C1B1F;
  --md-muted: #49454F;
  /* Hand drawn */
  --hd-bg: #fdfbf7;
  --hd-border: #2d2d2d;
  --hd-accent: #ff4d4d;
  --hd-blue: #2d5da1;
  --hd-muted: #e5e0d8;
  --hd-shadow: 5px 5px 0px #2d2d2d;
  --hd-shadow-hover: 8px 8px 0px #2d2d2d;
}

/* ── ANIMATIONS ──────────────────────────────────────────────────────────── */
@keyframes floatA { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(-22px) rotate(2deg)} }
@keyframes floatB { 0%,100%{transform:translateY(0) rotate(0deg)} 50%{transform:translateY(16px) rotate(-2deg)} }
@keyframes bounceY { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-14px)} }
@keyframes fadeUp { from{opacity:0;transform:translateY(28px)} to{opacity:1;transform:translateY(0)} }
@keyframes fadeDown { from{opacity:0;transform:translateY(-20px)} to{opacity:1;transform:translateY(0)} }
@keyframes popIn { from{opacity:0;transform:scale(0.85)} to{opacity:1;transform:scale(1)} }
@keyframes breathe { 0%,100%{transform:scale(1)} 50%{transform:scale(1.025)} }
@keyframes marquee { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }
@keyframes slideInRight { from{opacity:0;transform:translateX(60px)} to{opacity:1;transform:translateX(0)} }
@keyframes spin { to{transform:rotate(360deg)} }
@keyframes wobble { 0%,100%{transform:rotate(-1deg)} 50%{transform:rotate(1deg)} }

/* Intersection observer fade-in */
.fade-in-section { opacity:0; transform:translateY(30px); transition:opacity .7s ease, transform .7s ease; }
.fade-in-section.visible { opacity:1; transform:translateY(0); }
.fade-left { opacity:0; transform:translateX(-36px); transition:opacity .7s ease, transform .7s ease; }
.fade-left.visible { opacity:1; transform:translateX(0); }
.fade-right { opacity:0; transform:translateX(36px); transition:opacity .7s ease, transform .7s ease; }
.fade-right.visible { opacity:1; transform:translateX(0); }

/* ── TOAST ───────────────────────────────────────────────────────────────── */
#toast {
  position:fixed; top:20px; right:20px; z-index:9999;
  background:linear-gradient(135deg,#10B981,#059669); color:#fff;
  padding:13px 20px; border-radius:16px;
  box-shadow:0 8px 28px rgba(0,0,0,.22);
  display:flex; align-items:center; gap:10px;
  font-family:'DM Sans',sans-serif; font-size:14px; font-weight:600;
  max-width:340px; animation:slideInRight .3s ease;
  opacity:0; pointer-events:none; transition:opacity .3s;
}
#toast.show { opacity:1; pointer-events:all; }

/* ── MODAL OVERLAY ───────────────────────────────────────────────────────── */
.modal-overlay {
  position:fixed; inset:0; background:rgba(0,0,0,.55);
  z-index:1000; display:none; align-items:center; justify-content:center;
  padding:16px; backdrop-filter:blur(6px);
}
.modal-overlay.open { display:flex; }
.modal-box {
  background:#fff; border-radius:40px; padding:36px;
  max-width:560px; width:100%; max-height:90vh; overflow-y:auto;
  position:relative; box-shadow:0 24px 64px rgba(0,0,0,.2);
  animation:popIn .25s ease;
}
.modal-box.wide { max-width:660px; }
.modal-close {
  position:absolute; top:14px; right:14px;
  background:rgba(124,58,237,.1); border:none; border-radius:50%;
  width:34px; height:34px; cursor:pointer; font-size:16px; color:#7C3AED;
  display:flex; align-items:center; justify-content:center;
}

/* ── ROLE SELECTION PAGE ─────────────────────────────────────────────────── */
.role-page {
  min-height:100vh;
  background:linear-gradient(135deg,#0F0A2E 0%,#1a1060 60%,#0F0A2E 100%);
  display:flex; flex-direction:column; align-items:center;
  justify-content:center; padding:32px 24px; position:relative; overflow:hidden;
}
.role-orb {
  position:absolute; border-radius:50%;
  filter:blur(55px); opacity:.65; pointer-events:none;
}
.role-grid { display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:22px; max-width:880px; width:100%; }
.role-card {
  border-radius:24px; padding:28px 24px; cursor:pointer;
  transition:all .22s ease; position:relative; overflow:hidden;
}
.role-card:hover { transform:translateY(-8px); }
.role-card-tag {
  position:absolute; top:12px; right:12px;
  padding:3px 10px; border-radius:999px;
  font-size:11px; font-weight:700; font-family:'Space Grotesk',sans-serif; color:#fff;
}
.role-emoji { font-size:48px; margin-bottom:14px; display:block; }
.role-title { font-size:20px; font-weight:800; margin-bottom:4px; }
.role-sub { font-size:12px; font-weight:700; margin-bottom:8px; }
.role-desc { font-size:13px; line-height:1.6; margin-bottom:18px; }
.role-enter { display:flex; align-items:center; gap:7px; font-weight:700; font-size:14px; font-family:'Space Grotesk',sans-serif; }

/* STUDENT role card */
.role-card.student {
  background:#fdfbf7;
  border:2.5px solid #2d2d2d;
  border-radius:255px 15px 225px 15px / 15px 225px 15px 255px;
  box-shadow:5px 5px 0px rgba(0,0,0,.2);
  transform:rotate(.8deg);
}
.role-card.student:hover { transform:rotate(0deg) translateY(-8px); box-shadow:8px 8px 0px #2d2d2d; }
.role-card.student .role-title { font-family:'Kalam',cursive; color:#2d2d2d; }
.role-card.student .role-sub { color:#ff4d4d; font-family:'Patrick Hand',cursive; }
.role-card.student .role-desc { font-family:'Patrick Hand',cursive; color:#555; }
.role-card.student .role-enter { color:#ff4d4d; }
.role-card.student .role-card-tag { background:#ff4d4d; }

/* PARENT role card */
.role-card.parent {
  background:linear-gradient(145deg,#F4F1FA,#ede8f7);
  border:2px solid rgba(124,58,237,.3);
  border-radius:32px;
  box-shadow:var(--clay-shadow);
  transform:rotate(-.5deg);
}
.role-card.parent:hover { transform:rotate(0deg) translateY(-8px); }
.role-card.parent .role-title { font-family:'Nunito',sans-serif; color:#332F3A; }
.role-card.parent .role-sub { color:#7C3AED; }
.role-card.parent .role-desc { color:#635F69; }
.role-card.parent .role-enter { color:#7C3AED; }
.role-card.parent .role-card-tag { background:#7C3AED; }

/* SCHOOL role card */
.role-card.school {
  background:#FFFBFE;
  border:1.5px solid rgba(103,80,164,.2);
  border-radius:24px;
  box-shadow:0 4px 16px rgba(103,80,164,.15);
  transform:rotate(.5deg);
}
.role-card.school:hover { transform:rotate(0deg) translateY(-8px); box-shadow:0 8px 24px rgba(103,80,164,.22); }
.role-card.school .role-title { font-family:Roboto,sans-serif; color:#1C1B1F; }
.role-card.school .role-sub { color:#6750A4; font-family:Roboto,sans-serif; font-weight:500; }
.role-card.school .role-desc { color:#49454F; font-family:Roboto,sans-serif; }
.role-card.school .role-enter { color:#6750A4; }
.role-card.school .role-card-tag { background:#6750A4; }

/* ── HAND-DRAWN (STUDENT) STYLES ─────────────────────────────────────────── */
.hd-body {
  font-family:'Patrick Hand',cursive;
  background:var(--hd-bg);
  background-image:radial-gradient(#e5e0d8 1px, transparent 1px);
  background-size:24px 24px;
  min-height:100vh;
}

/* Hand-drawn nav */
.hd-nav {
  position:sticky; top:0; z-index:200;
  background:rgba(253,251,247,.96);
  backdrop-filter:blur(10px);
  border-bottom:3px solid var(--hd-border);
  padding:12px 24px;
  display:flex; align-items:center; justify-content:space-between;
  transition:box-shadow .2s;
}
.hd-nav.scrolled { box-shadow:4px 4px 0px rgba(0,0,0,.1); }

/* Hand-drawn buttons */
.hd-btn {
  background:var(--hd-accent); color:#fff;
  border:3px solid var(--hd-border);
  border-radius:255px 15px 225px 15px / 15px 225px 15px 255px;
  padding:11px 26px; font-size:15px;
  font-family:'Kalam',cursive; font-weight:700;
  cursor:pointer; box-shadow:var(--hd-shadow);
  transition:all .15s; display:inline-block;
}
.hd-btn:hover { transform:translate(2px,2px); box-shadow:2px 2px 0px var(--hd-border); color:#fff; }
.hd-btn:active { transform:translate(4px,4px); box-shadow:none; }
.hd-btn.outline {
  background:transparent; color:var(--hd-border);
  border:2px dashed var(--hd-border);
}
.hd-btn.outline:hover { background:var(--hd-muted); }
.hd-btn.white { background:#fff; color:var(--hd-accent); border:4px solid var(--hd-border); }

/* Hand-drawn cards */
.hd-card {
  background:#fff; border:3px solid var(--hd-border);
  box-shadow:var(--hd-shadow); padding:24px;
  transition:all .2s;
}
.hd-card:hover { transform:rotate(0deg) translateY(-8px) !important; box-shadow:var(--hd-shadow-hover); }
.hd-card-1 { border-radius:255px 15px 225px 15px / 15px 225px 15px 255px; transform:rotate(.7deg); }
.hd-card-2 { border-radius:15px 255px 15px 225px / 225px 15px 255px 15px; transform:rotate(-.7deg); }
.hd-card-3 { border-radius:225px 15px 255px 15px / 15px 255px 15px 225px; transform:rotate(.4deg); }

/* Hand-drawn inputs */
.hd-input {
  width:100%; background:#fff;
  border:2px solid var(--hd-border);
  border-radius:255px 15px 225px 15px / 15px 225px 15px 255px;
  padding:10px 16px;
  font-family:'Patrick Hand',cursive; font-size:14px; color:#2d2d2d;
  outline:none; transition:border-color .2s;
}
.hd-input:focus { border-color:var(--hd-accent); }

/* Hand-drawn badge/pill */
.hd-badge {
  background:#fff9c4; border:2px solid var(--hd-border);
  border-radius:255px 15px 225px 15px / 15px 225px 15px 255px;
  padding:4px 14px; font-size:12px; font-weight:700;
  box-shadow:2px 2px 0px var(--hd-border);
  font-family:'Patrick Hand',cursive;
  display:inline-block;
}

/* Story chapter sections */
.hd-chapter {
  min-height:55vh; display:flex; flex-direction:column;
  align-items:center; justify-content:center;
  padding:72px 24px; border-top:3px solid var(--hd-border);
  border-bottom:3px solid var(--hd-border); text-align:center;
}
.hd-chapter-title { font-family:'Kalam',cursive; font-weight:700; font-size:clamp(24px,4vw,46px); margin-bottom:18px; line-height:1.2; }
.hd-chapter-text {
  background:#fff; border:3px solid var(--hd-border);
  padding:26px 30px; box-shadow:6px 6px 0px var(--hd-border);
  text-align:left; max-width:740px; margin:0 auto;
}
.hd-chapter-text p { font-size:clamp(15px,2vw,19px); line-height:1.8; color:#2d2d2d; }

/* Progress bar */
.hd-progress { height:7px; background:var(--hd-muted); border-radius:999px; border:2px solid var(--hd-border); overflow:hidden; margin-bottom:20px; }
.hd-progress-fill { height:100%; background:var(--hd-accent); border-radius:999px; transition:width .4s; }

/* FAQ hand-drawn */
.hd-faq-item { border:3px solid var(--hd-border); margin-bottom:10px; overflow:hidden; background:#fff; transition:box-shadow .18s; }
.hd-faq-item.open { box-shadow:6px 6px 0px var(--hd-border); }
.hd-faq-btn { width:100%; background:none; border:none; padding:16px 22px; text-align:left; cursor:pointer; display:flex; justify-content:space-between; align-items:center; }
.hd-faq-btn span:first-child { font-family:'Kalam',cursive; font-size:16px; font-weight:700; color:#2d2d2d; }
.hd-faq-arrow { font-size:17px; transition:transform .2s; }
.hd-faq-item.open .hd-faq-arrow { transform:rotate(180deg); }
.hd-faq-body { display:none; padding:0 22px 16px; font-family:'Patrick Hand',cursive; font-size:14px; color:#555; line-height:1.7; border-top:2px dashed var(--hd-muted); }
.hd-faq-item.open .hd-faq-body { display:block; }

/* ── CLAYMORPHISM (PARENT) STYLES ─────────────────────────────────────────── */
.clay-body { font-family:'DM Sans',sans-serif; background:#F4F1FA; min-height:100vh; overflow-x:hidden; }

/* Clay blobs (fixed background) */
.clay-blobs { position:fixed; inset:0; pointer-events:none; z-index:0; overflow:hidden; }
.clay-blob {
  position:absolute; border-radius:50%;
  filter:blur(64px); animation:floatA 11s ease-in-out infinite;
}
.clay-blob-2 { animation:floatB 13s 2s ease-in-out infinite; }
.clay-blob-3 { animation:floatA 9s 4s ease-in-out infinite; }

/* Clay nav */
.clay-nav {
  position:sticky; top:0; z-index:400;
  background:rgba(244,241,250,.75);
  backdrop-filter:blur(20px);
  border-bottom:1px solid transparent;
  padding:0 26px; height:70px;
  display:flex; align-items:center; justify-content:space-between;
  transition:all .3s;
}
.clay-nav.scrolled {
  background:rgba(244,241,250,.96);
  border-bottom-color:rgba(124,58,237,.13);
  box-shadow:0 2px 16px rgba(124,58,237,.07);
}

/* Clay buttons */
.clay-btn-pri {
  height:52px; padding:0 32px; border-radius:var(--radius-pill);
  background:linear-gradient(135deg,#A78BFA,#7C3AED); color:#fff;
  border:none; font-family:'Nunito',sans-serif; font-weight:800; font-size:15px;
  cursor:pointer; box-shadow:var(--clay-btn-shadow); transition:all .2s;
  display:inline-flex; align-items:center; justify-content:center;
}
.clay-btn-pri:hover { transform:translateY(-3px); box-shadow:14px 14px 28px rgba(139,92,246,.35),-10px -10px 20px rgba(255,255,255,.5); }
.clay-btn-pri:active { transform:translateY(0); box-shadow:var(--clay-press); }

.clay-btn-coral {
  height:52px; padding:0 32px; border-radius:var(--radius-pill);
  background:linear-gradient(135deg,#fda4af,#f43f5e); color:#fff;
  border:none; font-family:'Nunito',sans-serif; font-weight:800; font-size:15px;
  cursor:pointer; box-shadow:12px 12px 24px rgba(244,63,94,.28),-8px -8px 16px rgba(255,255,255,.4);
  transition:all .2s; display:inline-flex; align-items:center; justify-content:center;
}
.clay-btn-coral:hover { transform:translateY(-3px); }

.clay-btn-outline {
  height:44px; padding:0 20px; border-radius:var(--radius-pill);
  background:transparent; color:#7C3AED;
  border:2px solid rgba(124,58,237,.25);
  font-family:'DM Sans',sans-serif; font-weight:700; font-size:13px;
  cursor:pointer; transition:all .2s;
}
.clay-btn-outline:hover { background:rgba(124,58,237,.07); }

/* Clay cards */
.clay-card {
  background:#fff; border-radius:32px;
  box-shadow:var(--clay-shadow);
  transition:all .4s;
}
.clay-card:hover { transform:translateY(-6px); box-shadow:20px 20px 40px rgba(160,150,180,.24),-12px -12px 28px rgba(255,255,255,1); }

/* Clay inputs */
.clay-input {
  width:100%; height:50px; border-radius:18px;
  border:none; background:#EFEBF5;
  box-shadow:var(--clay-press);
  padding:0 14px; font-family:'DM Sans',sans-serif;
  font-size:14px; color:#332F3A; outline:none;
}
.clay-select {
  width:100%; height:50px; border-radius:18px;
  border:none; background:#EFEBF5;
  box-shadow:var(--clay-press);
  padding:0 14px; font-family:'DM Sans',sans-serif;
  font-size:14px; color:#332F3A; outline:none;
  appearance:none; cursor:pointer;
}
.clay-textarea {
  width:100%; border-radius:18px;
  border:none; background:#EFEBF5;
  box-shadow:var(--clay-press);
  padding:12px 14px; font-family:'DM Sans',sans-serif;
  font-size:14px; color:#332F3A; outline:none;
  resize:vertical;
}

/* Clay FAQ */
.clay-faq-item { background:#fff; border-radius:22px; margin-bottom:10px; overflow:hidden; box-shadow:0 2px 8px rgba(103,80,164,.06); transition:box-shadow .3s; }
.clay-faq-item.open { box-shadow:var(--clay-shadow); }
.clay-faq-btn { width:100%; background:none; border:none; padding:17px 22px; text-align:left; cursor:pointer; display:flex; justify-content:space-between; align-items:center; }
.clay-faq-btn span:first-child { font-family:'Nunito',sans-serif; font-size:15px; font-weight:800; color:#332F3A; }
.clay-faq-arrow { width:27px; height:27px; border-radius:999px; background:rgba(124,58,237,.1); display:flex; align-items:center; justify-content:center; font-size:12px; color:#7C3AED; transition:all .2s; flex-shrink:0; }
.clay-faq-item.open .clay-faq-arrow { background:linear-gradient(135deg,#A78BFA,#7C3AED); color:#fff; transform:rotate(180deg); }
.clay-faq-body { display:none; padding:0 22px 16px; font-size:13px; color:#635F69; line-height:1.7; border-top:1px solid rgba(124,58,237,.07); }
.clay-faq-item.open .clay-faq-body { display:block; }

/* Clay stat orbs */
.clay-orb {
  background:#fff; border-radius:999px; padding:22px 28px;
  box-shadow:var(--clay-shadow); text-align:center; min-width:130px;
  animation:breathe 6s ease-in-out infinite;
}

/* ── MATERIAL YOU (SCHOOL) STYLES ─────────────────────────────────────────── */
.md-body { font-family:Roboto,sans-serif; background:var(--md-bg); min-height:100vh; overflow-x:hidden; }

/* MD3 App Bar */
.md-nav {
  position:sticky; top:0; z-index:400;
  background:var(--md-bg);
  backdrop-filter:blur(16px);
  border-bottom:1px solid transparent;
  padding:0 24px; height:64px;
  display:flex; align-items:center; justify-content:space-between;
  transition:all .3s;
}
.md-nav.scrolled {
  background:rgba(255,251,254,.95);
  border-bottom-color:var(--md-surf-low);
  box-shadow:0 2px 8px rgba(103,80,164,.08);
}

/* MD3 Buttons */
.md-btn-fill {
  height:48px; padding:0 28px; border-radius:var(--radius-pill);
  background:var(--md-pri); color:var(--md-on-pri);
  border:none; font-family:Roboto,sans-serif; font-weight:500; font-size:15px;
  cursor:pointer; box-shadow:0 4px 12px rgba(103,80,164,.3);
  transition:all .25s cubic-bezier(.2,0,0,1);
  display:inline-flex; align-items:center; justify-content:center;
  letter-spacing:.01em;
}
.md-btn-fill:hover { transform:translateY(-2px); box-shadow:0 6px 20px rgba(103,80,164,.4); }
.md-btn-fill:active { transform:scale(.96); }

.md-btn-tonal {
  height:48px; padding:0 28px; border-radius:var(--radius-pill);
  background:var(--md-sec); color:var(--md-on-sec);
  border:none; font-family:Roboto,sans-serif; font-weight:500; font-size:15px;
  cursor:pointer; transition:all .25s cubic-bezier(.2,0,0,1);
  display:inline-flex; align-items:center; justify-content:center;
}
.md-btn-tonal:hover { background:#d4c8f4; }
.md-btn-tonal:active { transform:scale(.96); }

.md-btn-outline {
  height:44px; padding:0 20px; border-radius:var(--radius-pill);
  background:transparent; color:var(--md-pri);
  border:1px solid var(--md-out);
  font-family:Roboto,sans-serif; font-weight:500; font-size:14px;
  cursor:pointer; transition:all .25s;
}
.md-btn-outline:hover { background:rgba(103,80,164,.07); }

/* MD3 Cards */
.md-card {
  background:var(--md-surf); border-radius:24px;
  box-shadow:0 2px 6px rgba(103,80,164,.08);
  transition:all .3s;
}
.md-card:hover { transform:scale(1.02); box-shadow:0 8px 20px rgba(103,80,164,.14); }

/* MD3 Inputs */
.md-input {
  width:100%; height:56px;
  border-radius:12px 12px 0 0;
  border:none; border-bottom:2px solid var(--md-out);
  background:var(--md-surf-low);
  padding:0 16px; font-family:Roboto,sans-serif;
  font-size:15px; color:var(--md-fg); outline:none;
  transition:border-color .2s;
}
.md-input:focus { border-bottom-color:var(--md-pri); }
.md-select {
  width:100%; height:56px;
  border-radius:12px 12px 0 0;
  border:none; border-bottom:2px solid var(--md-out);
  background:var(--md-surf-low);
  padding:0 16px; font-family:Roboto,sans-serif;
  font-size:15px; color:var(--md-fg); outline:none;
  appearance:none; cursor:pointer; transition:border-color .2s;
}
.md-select:focus { border-bottom-color:var(--md-pri); }
.md-textarea {
  width:100%; border-radius:12px 12px 0 0;
  border:none; border-bottom:2px solid var(--md-out);
  background:var(--md-surf-low);
  padding:14px 16px; font-family:Roboto,sans-serif;
  font-size:15px; color:var(--md-fg); outline:none;
  resize:vertical; transition:border-color .2s;
}
.md-textarea:focus { border-bottom-color:var(--md-pri); }

/* MD3 FAQ */
.md-faq-item { background:var(--md-bg); border-radius:24px; margin-bottom:9px; overflow:hidden; box-shadow:0 1px 4px rgba(103,80,164,.06); transition:box-shadow .3s; }
.md-faq-item.open { box-shadow:0 4px 16px rgba(103,80,164,.14); }
.md-faq-btn { width:100%; background:none; border:none; padding:17px 22px; text-align:left; cursor:pointer; display:flex; justify-content:space-between; align-items:center; transition:background .2s; }
.md-faq-btn:hover { background:rgba(103,80,164,.05); }
.md-faq-btn span:first-child { font-family:Roboto,sans-serif; font-size:15px; font-weight:500; color:var(--md-fg); padding-right:14px; }
.md-faq-arrow { width:30px; height:30px; border-radius:999px; background:var(--md-sec); display:flex; align-items:center; justify-content:center; font-size:13px; color:var(--md-on-sec); transition:all .25s; flex-shrink:0; }
.md-faq-item.open .md-faq-arrow { background:var(--md-pri); color:var(--md-on-pri); transform:rotate(180deg); }
.md-faq-body { display:none; padding:0 22px 16px; font-size:13px; color:var(--md-muted); line-height:1.7; border-top:1px solid var(--md-surf); }
.md-faq-item.open .md-faq-body { display:block; }

/* ── ADMIN PANEL STYLES ───────────────────────────────────────────────────── */
.admin-layout { display:flex; height:100vh; background:var(--md-bg); font-family:Roboto,sans-serif; overflow:hidden; }
.admin-sidebar { width:252px; background:var(--md-surf); display:flex; flex-direction:column; height:100%; overflow-y:auto; flex-shrink:0; }
.admin-main { flex:1; overflow:auto; display:flex; flex-direction:column; }
.admin-topbar { background:var(--md-bg); border-bottom:1px solid var(--md-surf-low); padding:0 24px; height:60px; display:flex; align-items:center; justify-content:space-between; position:sticky; top:0; z-index:10; box-shadow:0 1px 4px rgba(103,80,164,.06); }
.admin-content { padding:26px; flex:1; }

/* Admin nav items */
.admin-nav-item {
  width:100%; display:flex; align-items:center; gap:11px;
  padding:11px 14px; border-radius:999px;
  background:transparent; border:none; color:var(--md-muted);
  cursor:pointer; font-family:Roboto,sans-serif; font-size:14px; font-weight:400;
  text-align:left; transition:all .15s; margin-bottom:2px; text-decoration:none;
}
.admin-nav-item:hover { background:rgba(103,80,164,.08); color:var(--md-pri); }
.admin-nav-item.active { background:var(--md-sec); color:var(--md-pri); font-weight:500; }
.admin-nav-item .nav-badge { margin-left:auto; background:var(--md-ter); color:#fff; border-radius:999px; font-size:10px; font-weight:700; padding:1px 6px; }

/* Admin table */
.admin-table { width:100%; border-collapse:collapse; }
.admin-table th { background:var(--md-pri); color:#fff; padding:11px 15px; text-align:left; font-family:Roboto,sans-serif; font-size:12px; font-weight:500; letter-spacing:.04em; white-space:nowrap; }
.admin-table th:first-child { border-radius:12px 0 0 0; }
.admin-table th:last-child { border-radius:0 12px 0 0; }
.admin-table td { padding:11px 15px; font-family:Roboto,sans-serif; font-size:13px; color:var(--md-fg); border-bottom:1px solid var(--md-surf); white-space:nowrap; max-width:160px; overflow:hidden; text-overflow:ellipsis; }
.admin-table tr:hover td { background:var(--md-surf); }
.admin-table-wrap { background:var(--md-bg); border-radius:24px; overflow:auto; box-shadow:0 2px 8px rgba(103,80,164,.08); }

/* Admin stat cards */
.admin-stat-card { background:var(--md-surf); border-radius:24px; padding:20px; box-shadow:0 2px 8px rgba(103,80,164,.08); transition:all .3s; cursor:default; }
.admin-stat-card:hover { transform:scale(1.025); box-shadow:0 6px 18px rgba(103,80,164,.14); }
.admin-stat-num { font-family:Roboto,sans-serif; font-size:32px; font-weight:700; line-height:1; }
.admin-stat-label { font-size:12px; color:var(--md-muted); margin-top:5px; font-weight:500; }

/* Status badges */
.status-badge { padding:2px 9px; border-radius:999px; font-size:11px; font-weight:700; font-family:Roboto,sans-serif; }
.status-new { background:rgba(99,102,241,.12); color:#4338CA; }
.status-pending { background:rgba(245,158,11,.12); color:#92400E; }
.status-ok { background:rgba(16,185,129,.12); color:#065f46; }
.status-err { background:rgba(244,63,94,.12); color:#9f1239; }
.status-info { background:rgba(59,130,246,.12); color:#1e40af; }

/* ── SHARED UTILITIES ─────────────────────────────────────────────────────── */
.container { max-width:1180px; margin:0 auto; padding:0 24px; }
.container-sm { max-width:760px; margin:0 auto; padding:0 24px; }
.text-center { text-align:center; }
.grid-2 { display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:20px; }
.grid-3 { display:grid; grid-template-columns:repeat(auto-fit,minmax(290px,1fr)); gap:24px; }
.grid-auto { display:grid; grid-template-columns:repeat(auto-fit,minmax(235px,1fr)); gap:18px; }
.flex { display:flex; }
.flex-center { display:flex; align-items:center; justify-content:center; }
.flex-between { display:flex; align-items:center; justify-content:space-between; }
.flex-wrap { flex-wrap:wrap; }
.gap-8 { gap:8px; }
.gap-10 { gap:10px; }
.gap-12 { gap:12px; }
.gap-14 { gap:14px; }
.gap-16 { gap:16px; }
.gap-20 { gap:20px; }
.gap-24 { gap:24px; }
.mb-8 { margin-bottom:8px; }
.mb-12 { margin-bottom:12px; }
.mb-16 { margin-bottom:16px; }
.mb-20 { margin-bottom:20px; }
.mb-24 { margin-bottom:24px; }
.mb-32 { margin-bottom:32px; }
.mb-40 { margin-bottom:40px; }
.mt-8 { margin-top:8px; }
.mt-16 { margin-top:16px; }
.mt-24 { margin-top:24px; }
.py-16 { padding:16px 0; }
.py-24 { padding:24px 0; }
.sec-pad { padding:72px 24px; }
.w-full { width:100%; }
.hidden { display:none; }
.relative { position:relative; }
.overflow-hidden { overflow:hidden; }

/* Form label */
.form-label { display:block; font-size:13px; font-weight:700; margin-bottom:6px; }
.form-group { margin-bottom:16px; }

/* Carousel */
.carousel-outer { overflow:hidden; }
.carousel-track { display:flex; gap:20px; animation:marquee 32s linear infinite; width:max-content; }
.carousel-track:hover { animation-play-state:paused; }
.carousel-card { min-width:300px; padding:22px; border-radius:18px; flex-shrink:0; }

/* WhatsApp FAB */
.wa-fab {
  position:fixed; bottom:22px; right:22px; z-index:700;
  width:54px; height:54px; border-radius:18px;
  background:linear-gradient(135deg,#25D366,#128C7E);
  display:flex; align-items:center; justify-content:center;
  font-size:24px; text-decoration:none;
  box-shadow:0 6px 20px rgba(37,211,102,.4);
  transition:all .2s;
}
.wa-fab:hover { transform:translateY(-3px); box-shadow:0 10px 28px rgba(37,211,102,.5); }

/* Back to top */
.back-top {
  position:fixed; bottom:88px; right:22px; z-index:700;
  width:46px; height:46px; border-radius:14px;
  background:#fff; border:none; cursor:pointer; font-size:18px;
  box-shadow:0 2px 12px rgba(0,0,0,.12); transition:all .2s;
  display:none; align-items:center; justify-content:center;
}
.back-top.show { display:flex; }
.back-top:hover { transform:translateY(-2px); }

/* Stars */
.stars { color:#F59E0B; letter-spacing:2px; }

/* Expert avatar */
.expert-avatar {
  width:50px; height:50px; border-radius:18px;
  display:flex; align-items:center; justify-content:center;
  color:#fff; font-weight:900; font-size:17px; flex-shrink:0;
}

/* Chip */
.chip {
  display:inline-flex; align-items:center;
  padding:3px 10px; border-radius:999px;
  font-size:11px; font-family:'Space Grotesk',sans-serif; font-weight:700;
  background:rgba(124,58,237,.1); color:#7C3AED;
  border:1px solid rgba(124,58,237,.2);
}

/* ── RESPONSIVE ──────────────────────────────────────────────────────────── */
@media (max-width:768px) {
  .grid-2, .grid-3, .grid-auto { grid-template-columns:1fr; }
  .sec-pad { padding:48px 16px; }
  .container { padding:0 16px; }
  .hide-mobile { display:none !important; }
  .admin-layout { flex-direction:column; }
  .admin-sidebar { width:100%; height:auto; flex-direction:row; overflow-x:auto; overflow-y:hidden; }
  .admin-sidebar nav { display:flex; flex-direction:row; padding:8px; }
  .admin-nav-item { border-radius:12px; white-space:nowrap; flex-shrink:0; }
  .admin-main { height:calc(100vh - 120px); }
  .modal-box { padding:24px; border-radius:24px; }
  .clay-nav, .hd-nav, .md-nav { padding:0 16px; }
  .role-grid { grid-template-columns:1fr; }
  .role-card.student, .role-card.parent, .role-card.school { transform:none; }
}
