@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,500;9..144,600;9..144,700;9..144,800&family=Inter:wght@400;500;600;700;800&display=swap');

:root{
  --navy-950:#081428;
  --navy-900:#0c2044;
  --navy-800:#12305f;
  --navy-700:#1c4384;
  --gold:#b8902a;
  --gold-deep:#96731c;
  --gold-light:#e6c866;
  --paper:#faf8f2;
  --panel:#ffffff;
  --ink:#1b2333;
  --muted:#5c6577;
  --line:#e6e2d6;
  --line-soft:#efece2;
  --success:#1f7a4d;
  --success-bg:#e9f5ee;
  --error:#a6291f;
  --error-bg:#fbeceb;
  --accent: var(--gold);
  --accent-deep: var(--gold-deep);
  --font-head:'Fraunces', Georgia, 'Times New Roman', serif;
  --font-body:'Inter', -apple-system, 'Segoe UI', sans-serif;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(12,32,68,0.06), 0 1px 1px rgba(12,32,68,0.04);
  --shadow-md: 0 8px 24px rgba(12,32,68,0.10);
  --shadow-lg: 0 20px 50px rgba(12,32,68,0.16);
}

*,*::before,*::after{ margin:0; padding:0; box-sizing:border-box; }
html{ scroll-behavior:smooth; }
html,body{
  background:var(--paper);
  color:var(--ink);
  font-family:var(--font-body);
  min-height:100vh;
  overflow-x:hidden;
}

/* ── background network canvas ── */
#netCanvas{ position:fixed; inset:0; width:100%; height:100%; z-index:0; pointer-events:none; opacity:0.55; }

/* ── top bar (small utility strip) ── */
#topbar{
  position:relative; z-index:210;
  background:var(--navy-950); color:#cdd6e8;
  font-size:0.76rem; letter-spacing:0.3px;
  display:flex; align-items:center; justify-content:center; gap:28px;
  padding:6px 16px; flex-wrap:wrap;
}
#topbar a{ color:#cdd6e8; text-decoration:none; }
#topbar a:hover{ color:var(--gold-light); }
#topbar .tb-sep{ opacity:0.35; }

/* ── main navbar ── */
#navbar{
  position:sticky; top:0; z-index:200;
  display:flex; align-items:center; justify-content:space-between;
  gap:16px; padding:14px 28px;
  background:rgba(250,248,242,0.92);
  backdrop-filter: blur(10px);
  border-bottom:1px solid var(--line);
}
.brand{ display:flex; align-items:center; gap:10px; cursor:pointer; user-select:none; }
.brand-mark{
  width:38px; height:38px; border-radius:9px;
  background:linear-gradient(155deg,var(--navy-800),var(--navy-950));
  color:var(--gold-light); font-family:var(--font-head); font-weight:700;
  display:flex; align-items:center; justify-content:center; font-size:1.1rem;
  box-shadow: var(--shadow-sm);
}
.brand-text{ display:flex; flex-direction:column; line-height:1.1; }
.brand-text b{ font-family:var(--font-head); font-size:1.12rem; font-weight:700; color:var(--navy-950); letter-spacing:0.5px; }
.brand-text span{ font-size:0.66rem; letter-spacing:1.6px; color:var(--muted); text-transform:uppercase; }

.nav-links{ display:flex; gap:4px; flex-wrap:wrap; }
.nav-link{
  font-family:var(--font-body); font-size:0.86rem; font-weight:600;
  color:var(--navy-900); background:transparent; border:none;
  padding:9px 14px; border-radius:8px; cursor:pointer;
  transition:background 0.2s, color 0.2s;
}
.nav-link:hover{ background:var(--line-soft); color:var(--navy-950); }
.nav-link.is-cta{
  background:var(--navy-950); color:#fff;
}
.nav-link.is-cta:hover{ background:var(--navy-800); }

/* ── app shell / pages ── */
#app{ position:relative; z-index:5; min-height:100vh; display:flex; flex-direction:column; }
.page{ display:none; flex-direction:column; align-items:center; padding-bottom:110px; }
.page.active{ display:flex; animation:pageIn 0.4s ease; }
@keyframes pageIn{ from{opacity:0; transform:translateY(10px);} to{opacity:1; transform:translateY(0);} }

.container{ width:100%; max-width:1080px; padding:0 24px; margin:0 auto; }
.narrow{ max-width:720px; }

/* ── breadcrumb ── */
.crumb{
  font-size:0.8rem; font-weight:600; color:var(--muted);
  align-self:flex-start; cursor:pointer; user-select:none;
  display:flex; align-items:center; gap:6px; margin-bottom:6px;
  transition:color 0.2s;
}
.crumb:hover{ color:var(--navy-900); }

/* ── HERO ── */
.hero{
  width:100%; padding:64px 24px 44px;
  display:flex; justify-content:center;
}
.hero-inner{
  max-width:1080px; width:100%;
  display:grid; grid-template-columns:1.1fr 1fr; gap:52px; align-items:center;
}
.eyebrow{
  display:inline-flex; align-items:center; gap:8px;
  font-size:0.74rem; font-weight:700; letter-spacing:2px; text-transform:uppercase;
  color:var(--gold-deep); background:#f6ecd2; border:1px solid #e9d9a8;
  padding:6px 12px; border-radius:999px; margin-bottom:18px;
}
.hero h1{
  font-family:var(--font-head); font-weight:700;
  font-size:clamp(2.3rem, 4.6vw, 3.6rem); line-height:1.08;
  color:var(--navy-950); letter-spacing:-0.5px;
}
.hero h1 em{ font-style:normal; color:var(--gold-deep); }
.hero p.lead{
  margin-top:18px; font-size:1.05rem; line-height:1.7; color:var(--muted); max-width:52ch;
}
.hero-actions{ display:flex; gap:12px; margin-top:28px; flex-wrap:wrap; }
.badge-row{ display:flex; gap:10px; flex-wrap:wrap; margin-top:30px; }
.badge-chip{
  font-size:0.76rem; font-weight:600; color:var(--navy-800);
  background:var(--panel); border:1px solid var(--line);
  padding:7px 12px; border-radius:8px; display:flex; align-items:center; gap:6px;
  box-shadow:var(--shadow-sm);
}
.badge-chip .dot{ width:6px; height:6px; border-radius:50%; background:var(--success); }

/* ── portal cards (university selection) ── */
.portal-grid{ display:grid; grid-template-columns:1fr 1fr; gap:14px; }
.portal-card{
  position:relative; text-align:left; cursor:pointer;
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius);
  padding:20px 20px 18px; box-shadow:var(--shadow-sm);
  transition:transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.portal-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); border-color:var(--gold-light); }
.portal-card .pc-tag{
  font-size:0.66rem; font-weight:700; letter-spacing:1.5px; text-transform:uppercase;
  color:var(--gold-deep); margin-bottom:8px; display:block;
}
.portal-card .pc-tag.soon{ color:var(--muted); }
.portal-card h3{
  font-family:var(--font-head); font-size:1.28rem; font-weight:700; color:var(--navy-950);
}
.portal-card .pc-cta{
  margin-top:12px; font-size:0.8rem; font-weight:600; color:var(--navy-800);
  display:flex; align-items:center; gap:6px;
}
.portal-card .pc-cta svg{ width:14px; height:14px; transition:transform 0.2s; }
.portal-card:hover .pc-cta svg{ transform:translateX(3px); }

/* ── generic buttons ── */
.btn{
  font-family:var(--font-body); font-weight:700; font-size:0.88rem;
  border-radius:9px; padding:12px 22px; cursor:pointer;
  border:1.5px solid transparent; transition:all 0.2s ease;
  display:inline-flex; align-items:center; gap:8px; text-decoration:none;
}
.btn-primary{ background:var(--navy-950); color:#fff; box-shadow:var(--shadow-sm); }
.btn-primary:hover{ background:var(--navy-800); transform:translateY(-1px); box-shadow:var(--shadow-md); }
.btn-gold{ background:var(--gold); color:#fff; }
.btn-gold:hover{ background:var(--gold-deep); transform:translateY(-1px); }
.btn-outline{ background:var(--panel); color:var(--navy-900); border-color:var(--line); }
.btn-outline:hover{ border-color:var(--navy-800); background:var(--line-soft); }
.btn-ghost{ background:transparent; color:var(--navy-900); border-color:transparent; }
.btn-ghost:hover{ background:var(--line-soft); }
.btn-danger-outline{ background:#fff; color:var(--error); border-color:#e7bcb8; }
.btn-danger-outline:hover{ background:var(--error-bg); }
.btn:disabled{ opacity:0.55; cursor:not-allowed; transform:none !important; }
.btn-row{ display:flex; gap:10px; flex-wrap:wrap; }
.btn-block{ width:100%; justify-content:center; }

/* ── section shell used across sub-pages ── */
.section{
  width:100%; display:flex; flex-direction:column; align-items:center;
  gap:26px; padding:38px 24px 10px;
}
.section-head{ text-align:center; max-width:640px; }
.section-head .eyebrow{ margin-bottom:12px; }
.section-head h2{
  font-family:var(--font-head); font-weight:700; font-size:clamp(1.6rem,3vw,2.2rem);
  color:var(--navy-950);
}
.section-head p{ margin-top:10px; color:var(--muted); line-height:1.7; }

/* ── cards for role/action grids ── */
.action-grid{ display:flex; flex-wrap:wrap; gap:14px; justify-content:center; width:100%; max-width:820px; }
.action-card{
  flex:1 1 220px; max-width:260px; text-align:left; cursor:pointer;
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius);
  padding:22px 20px; box-shadow:var(--shadow-sm);
  transition:transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.action-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-md); border-color:var(--gold-light); }
.action-card .ac-icon{
  width:38px; height:38px; border-radius:9px; background:var(--line-soft);
  display:flex; align-items:center; justify-content:center; margin-bottom:14px; color:var(--navy-800);
}
.action-card .ac-icon svg{ width:19px; height:19px; }
.action-card h4{ font-family:var(--font-head); font-size:1.05rem; color:var(--navy-950); margin-bottom:4px; }
.action-card p{ font-size:0.82rem; color:var(--muted); line-height:1.5; }
.action-card.locked{ opacity:0.72; }
.action-card.locked .ac-icon{ color:var(--error); background:var(--error-bg); }

/* ── lock toast ── */
.lock-toast{
  display:none; align-items:center; gap:10px;
  font-size:0.85rem; font-weight:600; color:var(--error);
  background:var(--error-bg); border:1px solid #e7bcb8; border-radius:9px;
  padding:12px 18px; animation:toastIn 0.25s ease;
}
.lock-toast svg{ width:18px; height:18px; flex-shrink:0; }
@keyframes toastIn{ from{opacity:0; transform:translateY(-6px);} to{opacity:1; transform:translateY(0);} }

/* ── passcode card ── */
.passcode-card{
  display:none; flex-direction:column; gap:14px;
  width:100%; max-width:340px; background:var(--panel);
  border:1px solid var(--line); border-radius:var(--radius);
  padding:26px; box-shadow:var(--shadow-md); text-align:center;
}
.passcode-card.open{ display:flex; animation:pageIn 0.25s ease; }
.passcode-card h4{ font-family:var(--font-head); color:var(--navy-950); font-size:1.05rem; }
.passcode-card p{ font-size:0.8rem; color:var(--muted); }
.passcode-divider{ display:flex; align-items:center; gap:10px; color:var(--muted); font-size:0.72rem; text-transform:uppercase; letter-spacing:0.08em; }
.passcode-divider::before, .passcode-divider::after{ content:""; flex:1; height:1px; background:var(--line); }
.passcode-remember{ display:flex; align-items:center; gap:8px; font-size:0.8rem; color:var(--ink); cursor:pointer; text-align:left; }
.passcode-remember input{ width:15px; height:15px; flex-shrink:0; accent-color:var(--navy-700); cursor:pointer; }
.passcode-hint{ font-size:0.72rem !important; color:var(--muted); line-height:1.45; }
.btn-google{ background:var(--panel); color:var(--navy-900); border-color:var(--line); gap:9px; }
.btn-google:hover{ border-color:var(--navy-800); background:var(--line-soft); transform:translateY(-1px); }
.input, select.input, textarea.input{
  width:100%; background:var(--panel); border:1.5px solid var(--line);
  border-radius:8px; padding:11px 13px; font-family:var(--font-body);
  font-size:0.92rem; color:var(--ink); outline:none;
  transition:border-color 0.2s, box-shadow 0.2s;
}
.input:focus, select.input:focus, textarea.input:focus{
  border-color:var(--navy-700); box-shadow:0 0 0 3px rgba(28,67,132,0.12);
}
.field-error{
  display:none; font-size:0.78rem; font-weight:600; color:var(--error);
  background:var(--error-bg); border:1px solid #e7bcb8; border-radius:8px; padding:9px 12px;
}
.field-success{
  display:none; font-size:0.82rem; font-weight:600; color:var(--success);
  background:var(--success-bg); border:1px solid #bfe3cf; border-radius:8px; padding:10px 14px;
}

/* ── forms ── */
.card-panel{
  width:100%; max-width:560px; background:var(--panel);
  border:1px solid var(--line); border-radius:var(--radius);
  padding:30px 28px; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; gap:16px;
}
.card-panel h3{ font-family:var(--font-head); font-size:1.2rem; color:var(--navy-950); text-align:center; }
.card-panel .sub{ text-align:center; font-size:0.82rem; color:var(--muted); margin-top:-10px; }
.f-group{ display:flex; flex-direction:column; gap:6px; }
.f-group label{ font-size:0.78rem; font-weight:700; color:var(--navy-800); letter-spacing:0.2px; }
.f-err{ display:none; font-size:0.74rem; font-weight:600; color:var(--error); }
.f-err.show{ display:block; }
.input.invalid{ border-color:var(--error); box-shadow:0 0 0 3px rgba(166,41,31,0.1); }
.f-row2{ display:grid; grid-template-columns:1fr 1fr; gap:12px; }
.privacy-note{ font-size:0.74rem; color:var(--muted); line-height:1.6; text-align:center; border-top:1px solid var(--line); padding-top:12px; }

/* ── tabs (add-question modes) ── */
.tabs{ display:flex; gap:6px; width:100%; max-width:560px; background:var(--line-soft); padding:5px; border-radius:10px; }
.tab-btn{
  flex:1; text-align:center; font-size:0.8rem; font-weight:700; color:var(--muted);
  padding:9px 6px; border-radius:7px; cursor:pointer; transition:all 0.2s;
}
.tab-btn.active{ background:var(--panel); color:var(--navy-950); box-shadow:var(--shadow-sm); }
.tab-panel{ display:none; width:100%; max-width:560px; }
.tab-panel.active{ display:flex; flex-direction:column; gap:16px; }
.help-text{ font-size:0.82rem; color:var(--muted); line-height:1.7; }
.help-text code{ background:var(--line-soft); padding:1px 6px; border-radius:4px; font-size:0.78rem; color:var(--navy-800); }
textarea.mono{ font-family:'SFMono-Regular',Consolas,monospace; font-size:0.82rem; min-height:160px; resize:vertical; }

.review-panel{ display:none; flex-direction:column; gap:14px; border-top:1px dashed var(--line); padding-top:16px; }
.review-panel.open{ display:flex; }
.warn-text{ display:none; font-size:0.78rem; color:var(--error); font-weight:600; }
.warn-text.show{ display:block; }
.needs-confirm{ border-color:var(--error) !important; box-shadow:0 0 0 3px rgba(166,41,31,0.12) !important; }

.preview-box{
  display:none; flex-direction:column; gap:6px; max-height:260px; overflow-y:auto;
  border:1px solid var(--line); border-radius:9px; padding:12px 14px; background:var(--line-soft);
}
.preview-box.open{ display:flex; }
.prow-ok, .prow-err{ font-size:0.78rem; padding:6px 8px; border-radius:6px; }
.prow-ok{ background:var(--success-bg); color:#175c3b; border-left:3px solid var(--success); }
.prow-err{ background:var(--error-bg); color:var(--error); border-left:3px solid var(--error); }
.added-log{ display:flex; flex-direction:column; gap:6px; width:100%; max-width:560px; }
.added-log .li{ font-size:0.78rem; color:var(--muted); background:var(--panel); border:1px solid var(--line); border-radius:7px; padding:8px 12px; }

/* ── packages ── */
.pkg-category{ display:flex; flex-direction:column; align-items:center; gap:14px; width:100%; }
.pkg-category-label{ font-size:0.72rem; font-weight:700; letter-spacing:2.5px; text-transform:uppercase; color:var(--muted); }
.pkg-grid{ display:flex; flex-wrap:wrap; gap:16px; justify-content:center; max-width:900px; width:100%; }
.pkg-card{
  --tier: var(--navy-800);
  position:relative; width:200px; background:var(--panel);
  border:1.5px solid var(--line); border-top:4px solid var(--tier);
  border-radius:var(--radius); padding:24px 20px; box-shadow:var(--shadow-sm);
  display:flex; flex-direction:column; gap:12px; align-items:center; text-align:center;
  transition:transform 0.2s, box-shadow 0.2s;
}
.pkg-card:hover{ transform:translateY(-4px); box-shadow:var(--shadow-md); }
.pkg-card .pk-badge{
  position:absolute; top:-11px; left:50%; transform:translateX(-50%);
  background:var(--tier); color:#fff; font-size:0.6rem; font-weight:700;
  letter-spacing:1.5px; text-transform:uppercase; padding:4px 12px; border-radius:999px;
}
.pkg-card .pk-tier{ font-size:0.72rem; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--tier); }
.pkg-card .pk-price{ font-family:var(--font-head); font-size:1.9rem; font-weight:700; color:var(--navy-950); }
.pkg-card .pk-items{ display:flex; flex-direction:column; gap:6px; width:100%; text-align:left; }
.pkg-card .pk-item{ font-size:0.78rem; color:var(--muted); padding-left:16px; position:relative; }
.pkg-card .pk-item::before{ content:'✓'; position:absolute; left:0; color:var(--tier); font-weight:700; }
.pkg-bronze{ --tier:#a1662f; }
.pkg-silver{ --tier:#6b7385; }
.pkg-gold{ --tier:#b8902a; }
.pkg-platinum{ --tier:#1c4384; }
.pkg-session{ --tier:#0c2044; }
.pkg-session .pk-price{ font-size:1.1rem; color:var(--muted); cursor:pointer; }
.pkg-session .pk-price.revealed{ font-size:1.9rem; color:var(--navy-950); }

.course-desc-box{ display:flex; flex-direction:column; gap:12px; align-items:center; text-align:center; width:100%; max-width:560px; background:var(--panel); border:1px solid var(--line); border-radius:var(--radius); padding:20px; }
.course-desc-text{ color:var(--muted); line-height:1.6; white-space:pre-wrap; }
.course-desc-box textarea{ width:100%; }

.video-list, .folder-file-list{ display:flex; flex-direction:column; gap:14px; width:100%; max-width:560px; }
.video-item, .folder-file-item{
  display:flex; flex-direction:column; gap:8px; align-items:center; background:var(--panel);
  border:1px solid var(--line); border-radius:var(--radius); padding:16px;
}
.video-item video{ width:100%; max-width:480px; border-radius:8px; background:#000; }
.folder-file-item img{ max-width:100%; max-height:280px; border-radius:8px; }
.video-item-name{ font-size:0.8rem; color:var(--muted); word-break:break-word; }

.courses-panel{ display:none; flex-direction:column; align-items:center; gap:16px; width:100%; max-width:560px; }
.courses-panel.open{ display:flex; animation:pageIn 0.3s ease; }
.bio-info{ display:none; flex-direction:column; gap:12px; align-items:center; width:100%; }
.bio-info.open{ display:flex; }
.bio-price{ display:none; font-family:var(--font-head); font-size:1.5rem; color:var(--gold-deep); font-weight:700; }
.bio-price.show{ display:block; }

/* ── quiz ── */
.quiz-shell{ display:none; flex-direction:column; gap:16px; width:100%; max-width:640px; }
.quiz-shell.open{ display:flex; }
.quiz-card{
  background:var(--panel); border:1px solid var(--line); border-radius:var(--radius);
  padding:26px 26px; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; gap:16px;
  border-left:4px solid var(--accent);
}
.quiz-cat{ font-size:0.72rem; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--accent-deep); }
.quiz-progress{ font-size:0.72rem; color:var(--muted); }
.quiz-timer{ font-size:0.78rem; font-weight:700; color:var(--navy-800); white-space:nowrap; }

.faq-list{ display:flex; flex-direction:column; gap:14px; width:100%; max-width:640px; }
.faq-item{
  display:flex; flex-direction:column; gap:8px; background:var(--panel);
  border:1px solid var(--line); border-radius:var(--radius); padding:16px 20px;
}
.faq-q{ font-family:var(--font-head); font-weight:700; color:var(--navy-950); }
.faq-a{ font-size:0.88rem; color:var(--muted); line-height:1.6; white-space:pre-wrap; }
.quiz-q-text{ font-family:var(--font-head); font-size:1.08rem; line-height:1.55; color:var(--navy-950); }
.quiz-opts{ display:flex; flex-direction:column; gap:9px; }
.quiz-opt{
  display:flex; align-items:center; gap:12px; text-align:left;
  background:var(--paper); border:1.5px solid var(--line); border-radius:9px;
  padding:11px 14px; cursor:pointer; font-size:0.9rem; color:var(--ink);
  transition:border-color 0.2s, background 0.2s;
}
.quiz-opt:hover:not(:disabled){ border-color:var(--accent); background:#fff; }
.quiz-opt:disabled{ cursor:default; }
.opt-letter{ font-weight:800; color:var(--accent-deep); min-width:18px; }
.quiz-opt.correct{ border-color:var(--success); background:var(--success-bg); }
.quiz-opt.incorrect{ border-color:var(--error); background:var(--error-bg); }
.quiz-feedback{ display:flex; flex-direction:column; gap:12px; }
.result-tag{ font-family:var(--font-head); font-size:1rem; font-weight:700; text-align:center; letter-spacing:1px; }
.result-tag.good{ color:var(--success); }
.result-tag.bad{ color:var(--error); }
.expl-box{ background:var(--paper); border:1px solid var(--line); border-radius:9px; padding:14px 16px; }
.expl-title{ font-size:0.68rem; font-weight:700; letter-spacing:2px; text-transform:uppercase; color:var(--accent-deep); margin-bottom:6px; }
.expl-text{ font-size:0.86rem; color:var(--muted); line-height:1.7; }
.level-grid{ display:flex; flex-wrap:wrap; gap:12px; justify-content:center; }
.level-card{
  width:150px; text-align:center; padding:18px 14px; border-radius:var(--radius);
  background:var(--panel); border:1.5px solid var(--line); cursor:pointer;
  transition:transform 0.2s, box-shadow 0.2s, border-color 0.2s;
}
.level-card:hover{ transform:translateY(-3px); box-shadow:var(--shadow-md); }
.level-card .lv-name{ font-family:var(--font-head); font-weight:700; color:var(--navy-950); font-size:1rem; }
.level-card .lv-state{ font-size:0.68rem; color:var(--muted); margin-top:4px; }
.level-card.lv-locked{ opacity:0.6; }

/* ── TIER STAGE (reveal-on-completion theming for the level grid) ── */
.tier-stage{
  width:100%; display:flex; flex-direction:column; align-items:center; gap:14px;
  padding:18px; border-radius:14px; transition:background 0.6s ease, box-shadow 0.6s ease;
}
.tier-banner{ display:none; font-family:var(--font-head); font-weight:700; font-size:0.95rem; text-align:center; }
.tier-stage.reveal-tier2{
  background:linear-gradient(160deg,#fdf6e3,#f6e6b8 60%,#fdf6e3);
  box-shadow:inset 0 0 0 1.5px #e2c878;
}
.tier-stage.reveal-tier2 .tier-banner{ display:block; color:#8a6a17; }
.tier-stage.reveal-tier3{
  background:linear-gradient(160deg,#efe9fb,#d9c9f2 60%,#efe9fb);
  box-shadow:inset 0 0 0 1.5px #b79be0;
}
.tier-stage.reveal-tier3 .tier-banner{ display:block; color:#5a2ea6; }
.level-card.lv-basic{ border-style:dashed; }
.level-card .lv-skip{
  display:block; margin-top:8px; font-size:0.68rem; font-weight:700; color:var(--muted);
  text-decoration:underline;
}

/* ── LECTURER QUIZ EDITOR (Quizzes section, lecturer route only) ── */
.lecturer-toolbar{ display:flex; gap:8px; flex-wrap:wrap; justify-content:flex-end; margin-bottom:-4px; }
.lecturer-toolbar .btn{ font-size:0.74rem; padding:7px 12px; }
.edit-q-form{ display:flex; flex-direction:column; gap:12px; }

/* ── HELP POPUP (5 wrong attempts) ── */
.help-popup{
  position:fixed; left:50%; bottom:90px; transform:translateX(-50%);
  z-index:600; max-width:320px; text-align:center; cursor:pointer;
  background:var(--navy-950); color:#fff; border:1.5px solid var(--gold);
  border-radius:12px; padding:16px 20px; box-shadow:var(--shadow-lg);
  animation:pageIn 0.25s ease;
}
.help-popup .hp-title{ font-weight:700; font-size:0.9rem; line-height:1.5; }
.help-popup .hp-sub{ font-size:0.7rem; color:var(--gold-light); margin-top:6px; }

/* ── COURSE CATALOG (Search Course / Show Available Courses) ── */
.course-catalog{ width:100%; max-width:340px; display:flex; flex-direction:column; gap:8px; position:relative; }
.course-search-panel{
  display:none; flex-direction:column; gap:8px; background:var(--panel);
  border:1px solid var(--line); border-radius:9px; padding:12px; box-shadow:var(--shadow-sm);
}
.course-search-panel.open{ display:flex; }
.course-search-results{ display:flex; flex-direction:column; gap:4px; max-height:220px; overflow-y:auto; }
.course-search-results .csr-item{
  display:flex; justify-content:space-between; align-items:center; gap:8px;
  font-size:0.82rem; padding:7px 10px; border-radius:6px; cursor:pointer; color:var(--ink);
  background:var(--paper);
}
.course-search-results .csr-item:hover{ background:var(--line-soft); }
.course-search-results .csr-empty{ font-size:0.78rem; color:var(--muted); padding:4px 2px; }
.course-dropdown-wrap{ position:relative; }
.course-dropdown-panel{
  display:none; flex-direction:column; gap:2px; position:absolute; top:100%; left:0; right:0;
  margin-top:4px; background:var(--panel); border:1px solid var(--line); border-radius:9px;
  box-shadow:var(--shadow-lg); padding:8px; max-height:340px; overflow-y:auto; z-index:120;
}
.course-dropdown-wrap:hover .course-dropdown-panel,
.course-dropdown-panel.open{ display:flex; }
.course-catalog .course-lock-toast{ position:relative; z-index:130; }
.nav-research-wrap{ position:relative; }
.research-dropdown-panel{ left:auto; right:0; width:190px; }
.research-dropdown-panel .cd-leaf{ cursor:pointer; }
.cd-group{ display:flex; flex-direction:column; }
.cd-group-head{
  display:flex; justify-content:space-between; align-items:center; cursor:pointer;
  font-size:0.82rem; font-weight:700; color:var(--navy-900); padding:8px 10px; border-radius:6px;
}
.cd-group-head:hover{ background:var(--line-soft); }
.cd-group-head .cd-arrow{ font-size:0.7rem; transition:transform 0.2s; color:var(--muted); }
.cd-group.open .cd-arrow{ transform:rotate(90deg); }
.cd-children{ display:none; flex-direction:column; padding-left:14px; }
.cd-group.open .cd-children{ display:flex; }
.cd-leaf{
  display:flex; justify-content:space-between; align-items:center; gap:8px;
  font-size:0.8rem; color:var(--ink); padding:7px 10px; border-radius:6px; cursor:pointer;
}
.cd-leaf:hover{ background:var(--line-soft); color:var(--gold-deep); }

/* elite accent themes */
body.tier-elite1{ --accent:#b8902a; --accent-deep:#8a6a17; }
body.tier-elite2{ --accent:#a6291f; --accent-deep:#7d1f18; }
body.tier-elite3{ --accent:#2c5f9e; --accent-deep:#1c4384; }

/* ── tables ── */
.table-wrap{ width:100%; max-width:720px; overflow-x:auto; border-radius:var(--radius); border:1px solid var(--line); box-shadow:var(--shadow-sm); }
table.timetable{ width:100%; border-collapse:collapse; font-size:0.86rem; }
table.timetable th{
  background:var(--navy-950); color:#fff; text-align:left; padding:12px 16px;
  font-size:0.7rem; letter-spacing:1.5px; text-transform:uppercase; font-weight:700;
}
table.timetable td{ padding:11px 16px; border-top:1px solid var(--line); color:var(--ink); background:var(--panel); }
table.timetable tr:hover td{ background:var(--line-soft); }

/* ── info / content cards ── */
.info-card{
  width:100%; max-width:560px; background:var(--panel); border:1px solid var(--line);
  border-radius:var(--radius); padding:28px 30px; box-shadow:var(--shadow-sm);
  display:flex; flex-direction:column; gap:10px;
}
.info-card h3{ font-family:var(--font-head); font-size:1.1rem; color:var(--navy-950); margin-bottom:4px; }
.info-card p{ font-size:0.9rem; color:var(--muted); line-height:1.8; }
.info-card a{ color:var(--navy-800); font-weight:600; text-decoration:none; }
.info-card a:hover{ color:var(--gold-deep); }
.two-col{ display:grid; grid-template-columns:1fr 1fr; gap:18px; width:100%; max-width:820px; }

/* faculty / testimonial cards */
.grid-3{ display:flex; flex-wrap:wrap; gap:16px; justify-content:center; max-width:900px; width:100%; }
.fac-card{
  width:270px; background:var(--panel); border:1px solid var(--line); border-radius:var(--radius);
  padding:20px 22px; box-shadow:var(--shadow-sm); display:flex; flex-direction:column; gap:6px;
}
.fac-card .fc-avatar{
  width:44px; height:44px; border-radius:50%; background:linear-gradient(155deg,var(--navy-800),var(--navy-950));
  color:var(--gold-light); display:flex; align-items:center; justify-content:center;
  font-family:var(--font-head); font-weight:700; margin-bottom:8px;
}
.fac-card .fc-name{ font-family:var(--font-head); font-weight:700; color:var(--navy-950); }
.fac-card .fc-deg{ font-size:0.78rem; color:var(--muted); }
.fac-card .fc-sub{ font-size:0.72rem; letter-spacing:1px; text-transform:uppercase; color:var(--gold-deep); margin-top:6px; font-weight:700; }

.test-card{
  width:280px; background:var(--panel); border:1px solid var(--line); border-left:3px solid var(--gold);
  border-radius:var(--radius); padding:20px 22px; box-shadow:var(--shadow-sm);
}
.test-card .tc-quote{ font-size:0.86rem; color:var(--ink); line-height:1.7; font-style:italic; }
.test-card .tc-attr{ margin-top:12px; font-size:0.72rem; font-weight:700; letter-spacing:1px; text-transform:uppercase; color:var(--muted); }

/* referral */
.referral-msg{
  background:var(--paper); border:1px solid var(--line); border-radius:9px;
  padding:14px 16px; font-size:0.85rem; color:var(--ink); cursor:pointer; text-align:left;
  transition:border-color 0.2s;
}
.referral-msg:hover{ border-color:var(--gold); }
.copy-hint{ font-size:0.72rem; color:var(--muted); }

/* unavailable-section dashed card (reveals "Locked" on click) */
.dashed-card{
  width:100%; max-width:480px; text-align:center; border:1.5px dashed var(--line);
  border-radius:var(--radius); padding:30px 26px; background:var(--panel);
  display:flex; flex-direction:column; gap:8px; align-items:center; min-height:60px;
  justify-content:center;
}
.dashed-card p{ font-size:0.86rem; color:var(--muted); }

/* ── info / lock modal ── */
#modalLayer{
  display:none; position:fixed; inset:0; z-index:500;
  background:rgba(8,20,40,0.55); backdrop-filter:blur(3px);
  align-items:center; justify-content:center; padding:20px;
}
.modal-card{
  width:100%; max-width:420px; background:var(--panel); border-radius:14px;
  padding:32px 30px; box-shadow:var(--shadow-lg); text-align:center;
  display:flex; flex-direction:column; gap:14px; animation:pageIn 0.25s ease;
}
.modal-card .mc-icon{
  width:52px; height:52px; border-radius:50%; margin:0 auto;
  background:var(--line-soft); display:flex; align-items:center; justify-content:center; color:var(--navy-800);
}
.modal-card h3{ font-family:var(--font-head); font-size:1.25rem; color:var(--navy-950); }
.modal-card p{ font-size:0.88rem; color:var(--muted); line-height:1.7; }

/* ── floating WhatsApp + social footer ── */
#waFloat{ position:fixed; bottom:74px; right:20px; z-index:250; }
#waFloat a{
  display:flex; align-items:center; gap:9px; background:#1fae5c; color:#fff;
  font-size:0.8rem; font-weight:700; text-decoration:none; padding:12px 18px; border-radius:999px;
  box-shadow:0 10px 24px rgba(31,174,92,0.35); transition:transform 0.2s, box-shadow 0.2s;
}
#waFloat a:hover{ transform:translateY(-2px); box-shadow:0 14px 30px rgba(31,174,92,0.45); }
#waFloat svg{ width:19px; height:19px; }

#socialFooter{
  position:fixed; bottom:14px; left:50%; transform:translateX(-50%); z-index:250;
  display:flex; gap:10px; background:rgba(255,255,255,0.9); backdrop-filter:blur(8px);
  border:1px solid var(--line); border-radius:999px; padding:7px; box-shadow:var(--shadow-md);
}
.soc-link{
  width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  color:var(--navy-800); text-decoration:none; transition:background 0.2s, color 0.2s;
}
.soc-link:hover{ background:var(--line-soft); color:var(--gold-deep); }
.soc-link svg{ width:17px; height:17px; }

/* ── site footer ── */
#siteFooter{
  width:100%; background:var(--navy-950); color:#b9c3d9; margin-top:40px;
  padding:40px 24px 90px; display:flex; justify-content:center;
}
.footer-inner{ max-width:1080px; width:100%; display:flex; justify-content:space-between; flex-wrap:wrap; gap:24px; }
.footer-inner .fcol{ min-width:200px; }
.footer-inner h5{ color:#fff; font-family:var(--font-head); font-size:0.95rem; margin-bottom:10px; }
.footer-inner p, .footer-inner a{ font-size:0.82rem; color:#b9c3d9; line-height:2; text-decoration:none; }
.footer-inner a:hover{ color:var(--gold-light); }
.footer-bottom{ text-align:center; font-size:0.74rem; color:#8493ae; margin-top:26px; width:100%; }

/* ── MOBILE NAV (hamburger) ── */
.nav-burger{
  display:none; flex-direction:column; justify-content:center; gap:4px;
  width:38px; height:38px; border:1px solid var(--line); border-radius:8px;
  background:var(--panel); cursor:pointer; padding:0;
}
.nav-burger span{ display:block; width:18px; height:2px; background:var(--navy-900); margin:0 auto; transition:transform 0.25s, opacity 0.25s; }
.nav-burger[aria-expanded="true"] span:nth-child(1){ transform:translateY(6px) rotate(45deg); }
.nav-burger[aria-expanded="true"] span:nth-child(2){ opacity:0; }
.nav-burger[aria-expanded="true"] span:nth-child(3){ transform:translateY(-6px) rotate(-45deg); }
.mobile-nav-panel{
  display:none; flex-direction:column; gap:2px;
  position:sticky; top:0; z-index:199;
  background:var(--panel); border-bottom:1px solid var(--line);
  padding:8px 16px 14px; box-shadow:var(--shadow-md);
}
.mobile-nav-panel.open{ display:flex; }
.mobile-nav-link{
  text-align:left; font-family:var(--font-body); font-weight:600; font-size:0.92rem;
  color:var(--navy-900); background:transparent; border:none; border-radius:8px;
  padding:12px 10px; cursor:pointer;
}
.mobile-nav-link:hover, .mobile-nav-link:focus-visible{ background:var(--line-soft); }
.mobile-nav-link.is-cta{ background:var(--navy-950); color:#fff; margin-top:6px; }

/* ── REDUCED MOTION ── */
@media (prefers-reduced-motion: reduce){
  *, *::before, *::after{ animation-duration:0.001ms !important; animation-iteration-count:1 !important; transition-duration:0.001ms !important; scroll-behavior:auto !important; }
  #netCanvas{ display:none; }
}

@media (max-width: 860px){
  .hero-inner{ grid-template-columns:1fr; }
  .two-col{ grid-template-columns:1fr; }
  .nav-links{ display:none; }
  .nav-burger{ display:flex; }
  #topbar{ font-size:0.68rem; gap:14px; }
}
