/* ================================================================
   LUNOX ACADEMY - Main Stylesheet
   Fun, colourful, child-friendly but polished
   ================================================================ */

/* ── Reset & Variables ─────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --orange:  #FF6B35;
  --yellow:  #FFD23F;
  --purple:  #6C63FF;
  --blue:    #3B82F6;
  --green:   #22C55E;
  --red:     #EF4444;
  --ink:     #1E1B4B;
  --ink-light: #4C4A7E;
  --link-text: #6C63FF;
  --bg:      #FDFAF5;
  --bg2:     #F3F0FF;
  --white:   #FFFFFF;
  --border:  #E8E4FF;
  --shadow:  0 8px 32px rgba(108,99,255,.12);
  --shadow-sm: 0 2px 8px rgba(30,27,75,.08);
  --radius:  1.25rem;
  --radius-lg: 2rem;
  --radius-xl: 2.5rem;
  --font: 'Nunito', 'Segoe UI', sans-serif;
}

html { font-size: 16px; scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ── Typography ─────────────────────────────────────────────────── */
h1,h2,h3,h4 { font-weight: 900; line-height: 1.1; }
a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: none; }
p { color: var(--ink-light); }

.container .text-link{ color: var(--link-text); transition: color .2s; }
.container .text-link:hover { color: var(--orange); text-decoration: none; }

/* ── Utilities ──────────────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }
.text-center { text-align: center; }
.flex { display: flex; } 
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }
.flex { display: flex; }
.items-center { align-items: center; }
.gap-2 { gap: .5rem; }
.gap-4 { gap: 1rem; }
.mt-4 { margin-top: 1rem; }
.mb-4 { margin-bottom: 2rem; }
.mb-3 { margin-bottom: 1.25rem; }
.mb-2 { margin-bottom: .5rem; }
.hidden { display: none !important; }
.d-none { display: none !important; }
.d-md-inline { display: none; }

.p-2 { padding: .5rem; }
.py-2{ padding-top: .5rem; padding-bottom: .5rem; }

.bg-primary { background-color: var(--orange); }
.bg-blue { background-color: var(--blue); }
.bg-success { background-color: var(--green); }

/* ── Buttons ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  padding: .75rem 1.75rem; border-radius: var(--radius); font-family: var(--font);
  font-size: .95rem; font-weight: 800; border: none; cursor: pointer;
  transition: transform .15s, box-shadow .15s; text-decoration: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.btn:active { transform: translateY(0); }

.btn-primary  { background: var(--orange); color: #fff; box-shadow: 0 4px 16px rgba(255,107,53,.3); }
.btn-purple   { background: var(--purple); color: #fff; box-shadow: 0 4px 16px rgba(108,99,255,.3); }
.btn-green    { background: var(--green);  color: #fff; }
.btn-outline  { background: transparent; border: 2px solid var(--border); color: var(--ink); }
.btn-outline:hover { border-color: var(--purple); color: var(--purple); }
.btn-ghost    { background: transparent; color: var(--purple); padding: .5rem 1rem; }
.btn-sm       { padding: .45rem 1rem; font-size: .8rem; }
.btn-lg       { padding: 1rem 2.5rem; font-size: 1.1rem; }
.btn-block    { width: 100%; }
.btn-danger   { background: var(--red); color: #fff; }

.d-none { display: none !important; }
.d-md-inline { display: inline !important; }
/* ── Forms ──────────────────────────────────────────────────────── */
.form-group { margin-bottom: 1.25rem; }
label { display: block; font-weight: 800; font-size: .8rem; text-transform: uppercase;
        letter-spacing: .06em; margin-bottom: .4rem; color: var(--ink); }
.input-wrap { position: relative; }
.input-wrap .icon { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%);
                    font-size: 1.1rem; pointer-events: none; }
.input {
  width: 100%; padding: .8rem 1rem; border-radius: var(--radius);
  border: 2px solid var(--border); background: var(--white);
  font-family: var(--font); font-size: .95rem; font-weight: 700;
  color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(108,99,255,.12); }
.input.has-icon { padding-left: 2.8rem; }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%236C63FF' viewBox='0 0 16 16'%3E%3Cpath d='M7.247 11.14 2.451 5.658C1.885 5.013 2.345 4 3.204 4h9.592a1 1 0 0 1 .753 1.659l-4.796 5.48a1 1 0 0 1-1.506 0z'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 1rem center; }
textarea.input { min-height: 100px; resize: vertical; }
.field-hint { font-size: .75rem; color: #888; margin-top: .3rem; font-weight: 700; }

/* ── Cards ──────────────────────────────────────────────────────── */
.card {
  background: var(--white); border-radius: var(--radius-lg);
  border: 2px solid var(--border); padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.card-fun {
  background: var(--white); border-radius: var(--radius-xl);
  border: 3px solid var(--border); padding: 2rem;
  box-shadow: var(--shadow);
}

.border-bottom{
  border-bottom: 2px solid var(--border); 
  padding-bottom: 1.5rem; margin-bottom: 1.5rem;
} 
.border-light{
  border-color: var(--border);
}
/* ── Alerts ─────────────────────────────────────────────────────── */
.alert { padding: 1rem 1.25rem; border-radius: var(--radius); font-weight: 700; margin-bottom: 1rem; }
.alert-error   { background: #FEF2F2; border: 2px solid #FECACA; color: #DC2626; }
.alert-success { background: #F0FDF4; border: 2px solid #BBF7D0; color: #16A34A; }
.alert-info    { background: var(--bg2); border: 2px solid var(--border); color: var(--purple); }
.alert-warn    { background: #FFFBEB; border: 2px solid #FDE68A; color: #92400E; }

/* ── Status badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex; align-items: center; gap: .3rem;
  padding: .25rem .75rem; border-radius: 999px; font-size: .7rem;
  font-weight: 900; text-transform: uppercase; letter-spacing: .06em;
}
.badge-green  { background: #DCFCE7; color: #15803D; }
.badge-yellow { background: #FEF9C3; color: #A16207; }
.badge-red    { background: #FEE2E2; color: #B91C1C; }
.badge-purple { background: var(--bg2); color: var(--purple); }
.badge-blue   { background: #DBEAFE; color: #1D4ED8; }

/* ── Public nav ─────────────────────────────────────────────────── */
.pub-nav {
  position: fixed; top: 0; width: 100%; z-index: 100;
  background: rgba(253,250,245,.85); backdrop-filter: blur(12px);
  border-bottom: 2px solid #F3F0FF; padding: 1rem 0;
}
.pub-nav .container { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: top; gap: .6rem; text-decoration: none; }
.brand-icon { 
  display: flex; align-items: center; justify-content: center; height: 30px; width: 30px;
}
.brand-icon.footer-logo{ width: 100px; height: 100px; object-fit: contain; }
.brand-name { font-weight: 900;}
.brand-name em { color: var(--orange);  }
.pub-nav-links { display: flex; align-items: center; gap: 2rem; }
.pub-nav-links a { font-weight: 800; color: var(--ink); font-size: .9rem; transition: color .2s; }
.pub-nav-links a:hover { color: var(--orange); text-decoration: none; }

/* ── Hero ───────────────────────────────────────────────────────── */
.hero { padding: 8rem 0 5rem; overflow: hidden; min-height: 100vh; align-content: center; }
.hero .container { display: flex; align-items: center; gap: 4rem; align-self: center;}
.hero-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 4rem; align-items: center; }
.hero-badge {
  display: inline-block; padding: .4rem 1rem; border-radius: 999px;
  background: #FFE8E0; color: var(--orange); font-size: .75rem;
  font-weight: 900; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 1.5rem;
}
.hero h1 { font-size: clamp(2rem, 6vw, 4rem); margin-bottom: 1.25rem; color: var(--ink); }
.hero h1 em { color: var(--orange); font-style: italic; display: block; }
.hero-sub { font-size: 1.15rem; color: var(--ink-light); margin-bottom: 2rem; line-height: 1.7; font-weight: 600; }
.hero-cta { display: flex; gap: 1rem; flex-wrap: wrap; }

.hero-visual { position: relative; }
.hero-img-box {
  aspect-ratio: 1;  
  transform: rotate(3deg); 
}
.hero-img-box img { width: 100%; height: 100%; object-fit: cover; opacity: .85;  }
.hero-float-card {
  position: absolute; bottom: -2rem; left: 0;
  background: rgba(253,250,245,.95); padding: 1.25rem 1.5rem; border-radius: 1.5rem;
  box-shadow: 0 20px 50px rgba(30,27,75,.12); transform: rotate(-3deg);
  border: 2px solid var(--border);
}
.hero-float-card .big { font-size: 1.2rem; font-weight: 900; line-height: 1; }
.hero-float-card p { font-size: .8rem; font-weight: 700; color: #888; margin-top: .2rem; }
.hero-float-card.float-right{
  position: absolute; 
  bottom: -3rem;
  left: 43%;
  transform: rotate(2.3deg); 
  background: rgba(255, 239, 215, 0.85);
}

/* ── Section shared ─────────────────────────────────────────────── */
.section { padding: 5rem 0; }
.section-title { font-size: clamp(2rem, 4vw, 3rem); margin-bottom: .75rem; }
.section-sub { color: var(--ink-light); font-size: 1.05rem; font-weight: 600; max-width: 560px; }
.section-head { text-align: center; margin-bottom: 3.5rem; }
.section-head .section-sub { margin: .75rem auto 0; }

/* ── Why cards ──────────────────────────────────────────────────── */
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; }
.why-card {
  padding: 2rem; border: 1px solid var(--border);
  background: var(--white); text-align: center; transition: transform .2s;
} 
.why-icon { width: 3rem; height: 3rem; border-radius: 1rem; display: flex; align-items: center;
             justify-content: center; font-size: 1.4rem; margin: 0 auto 1rem; }
.why-card h3 { font-size: 1.1rem; margin-bottom: .5rem; }
.why-card p  { font-size: .9rem; }

/* ── Curriculum weeks ───────────────────────────────────────────── */
.weeks-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
.week-card {
  background: var(--white); border-radius: var(--radius-xl);
  padding: 2rem; border: 3px solid var(--border); position: relative; overflow: hidden;
  transition: transform .2s; cursor: default;
}
.week-card:hover { transform: translateY(-6px); }
.week-pill {
  display: inline-block; padding: .25rem .9rem; border-radius: 999px;
  color: #fff; font-size: .7rem; font-weight: 900; text-transform: uppercase;
  letter-spacing: .06em; margin-bottom: 1.25rem;
}
.week-card h3 { font-size: 1.2rem; margin-bottom: .6rem; }
.week-card p  { font-size: .85rem; }
.week-num {
  position: absolute; right: 1rem; top: .75rem; font-size: 4rem; font-weight: 900;
  color: var(--border); line-height: 1; pointer-events: none;
}

/* ── Stats strip ─────────────────────────────────────────────────── */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin: 3rem 0; }
.stat-item { text-align: center; }
.stat-num  { font-size: 2.5rem; font-weight: 900; color: var(--orange); line-height: 1; }
.stat-lbl  { font-size: .8rem; font-weight: 700; color: var(--ink-light); text-transform: uppercase; letter-spacing: .05em; }

/* ── CTA section ─────────────────────────────────────────────────── */
.cta-box {
  background: var(--ink); border-radius: var(--radius-xl); padding: 4rem;
  display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; align-items: center;
  position: relative; overflow: hidden;
}
.cta-box::before {
  content: '🚀'; position: absolute; right: 2rem; top: -1rem; font-size: 8rem; opacity: .05; pointer-events: none;
}
.cta-box h2 { font-size: 2.5rem; color: #fff; margin-bottom: .75rem; }
.cta-box p  { color: rgba(255,255,255,.7); font-size: 1rem; font-weight: 600; margin-bottom: 2rem; }
.contact-card {
  background: var(--white); border-radius: var(--radius-lg); padding: 2rem;
  box-shadow: 0 30px 60px rgba(0,0,0,.25);
}
.contact-card h3 { font-size: 1.1rem; margin-bottom: 1.25rem; }
.contact-item { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.25rem; }
.contact-icon {
  width: 3rem; height: 3rem; border-radius: 1rem; display: flex; align-items: center;
  justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.contact-item .lbl { font-size: .65rem; font-weight: 900; text-transform: uppercase; color: #888; }
.contact-item .val { font-weight: 900; font-size: 1rem;  }

/* ── FAQ ─────────────────────────────────────────────────────────── */
.faq-list { display: flex; flex-direction: column; gap: 1rem; }
details.faq {
  border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 1.5rem;
  transition: background .2s;
}
details.faq[open] { background: var(--bg2); border-color: var(--purple); }
details.faq summary {
  font-weight: 900; font-size: 1rem; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary .arrow { transition: transform .2s; font-size: 1.2rem; }
details.faq[open] summary .arrow { transform: rotate(180deg); }
details.faq p { margin-top: 1rem; font-size: .95rem; }

/* ── Footer ──────────────────────────────────────────────────────── */
.footer { background: var(--ink); color: rgba(255,255,255,.6); padding: 4rem 0 2rem; }
.footer-grid { display: grid; grid-template-columns: 2.5fr 1fr 1fr 1fr; gap: 2.5rem; margin-bottom: 3rem; }
.footer h4 { color: #fff; font-size: .75rem; font-weight: 900; text-transform: uppercase;
              letter-spacing: .1em; margin-bottom: 1.25rem; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: .75rem; }
.footer ul a { color: rgba(255,255,255,.6); font-weight: 700; font-size: .9rem; transition: color .2s; }
.footer ul a:hover { color: var(--orange); text-decoration: none; }
.footer .brand-name { font-size: 1.2rem;}
.footer-brand p { font-size: .9rem; color: var(--white); font-weight: 600; margin-top: .75rem; line-height: 1.6; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); padding-top: 1.5rem;
                  text-align: center; font-size: .8rem; font-weight: 700; }
.social-row { display: flex; gap: .75rem; margin-top: 1rem; flex-wrap: wrap; }
.social-row a {
  display: flex; align-items: center; justify-content: center;
  width: 2.2rem; height: 2.2rem; border-radius: .6rem;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.7);
  font-size: .9rem; transition: background .2s;
}
.social-row a:hover { background: var(--orange); color: #fff; text-decoration: none; }

.enrolment-grid{
  display:grid;grid-template-columns:1fr 1fr;gap:1rem
} 
/* ── Dashboard layout ────────────────────────────────────────────── */
.dashboard-body { background: var(--bg2); }
.topbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--white); border-bottom: 3px solid var(--yellow);
  padding: .9rem 1.5rem; display: flex; align-items: center; justify-content: space-between;
  box-shadow: 0 2px 12px rgba(30,27,75,.06);
}
.topbar-brand { display: flex; align-items: center; gap: .6rem; text-decoration: none; }
.topbar-brand .brand-icon { width: 2.25rem; height: 2.25rem; border-radius: .6rem; }
.topbar-brand .brand-name { font-size: 1.3rem; }
.topbar-right { display: flex; align-items: center; gap: 1rem; }
.user-chip { display: flex; align-items: center; gap: .6rem; background: var(--bg2);
              padding: .4rem .9rem .4rem .4rem; border-radius: 999px; border: 2px solid var(--border); }
.user-avatar { width: 2rem; height: 2rem; border-radius: 50%; background: var(--purple);
               color: #fff; display: flex; align-items: center; justify-content: center;
               font-weight: 900; font-size: .8rem; }
.user-name { font-weight: 800; font-size: .85rem; }

.status-badge { padding: .3rem .85rem; border-radius: 999px; font-size: .7rem; font-weight: 900; text-transform: uppercase; }
.status-paid   { background: #DCFCE7; color: #15803D; }
.status-unpaid { background: #FEF9C3; color: #A16207; }

.dashboard-shell { display: flex; min-height: calc(100vh - 64px); }
.sidebar {
  width: 240px; flex-shrink: 0; background: var(--white);
  border-right: 2px solid var(--border); padding: 1.5rem 1rem;
  display: flex; flex-direction: column;
}
.sidebar-nav { display: flex; flex-direction: column; gap: .4rem; flex: 1; }
.nav-link {
  display: flex; align-items: center; gap: .75rem; padding: .75rem 1rem;
  border-radius: var(--radius); font-weight: 800; font-size: .85rem;
  color: var(--ink-light); transition: background .15s, color .15s; text-decoration: none;
}
.nav-link:hover  { background: var(--bg2); color: var(--purple); text-decoration: none; }
.nav-link.active { background: var(--purple); color: #fff; box-shadow: 0 4px 16px rgba(108,99,255,.25); }
.nav-icon { font-size: 1.1rem; width: 1.4rem; text-align: center; }
.sidebar-footer { padding-top: 1rem; border-top: 2px solid var(--border); }
.logout-btn {
  display: flex; align-items: center; gap: .6rem; width: 100%; padding: .7rem 1rem;
  background: none; border: none; cursor: pointer; font-family: var(--font);
  font-weight: 900; font-size: .85rem; color: var(--red);
  border-radius: var(--radius); transition: background .15s;
}
.logout-btn:hover { background: #FEE2E2; }
.dash-main { flex: 1; padding: 2rem 2.5rem; overflow-y: auto; }

/* ── Dashboard page headers ──────────────────────────────────────── */
.page-header { margin-bottom: 2rem; }
.page-header h1 { font-size: 2rem; color: var(--ink); }
.page-header p  { color: var(--ink-light); font-weight: 600; }
.page-header-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; }

/* ── Stat cards ──────────────────────────────────────────────────── */
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; margin-bottom: 2rem; }
.stat-card { background: var(--white); border-radius: var(--radius-lg); padding: 1.5rem;
              border: 2px solid var(--border); display: flex; align-items: center; gap: 1rem; }
.stat-card-icon { width: 3rem; height: 3rem; border-radius: 1rem; display: flex;
                   align-items: center; justify-content: center; font-size: 1.4rem; flex-shrink: 0; }
.stat-card-lbl { font-size: .75rem; font-weight: 700; text-transform: uppercase; color: #888; margin-bottom: .2rem; }
.stat-card-val { font-size: 1.75rem; font-weight: 900; color: var(--ink); line-height: 1; }

/* ── Data tables ─────────────────────────────────────────────────── */
.table-wrap { overflow-x: auto; border-radius: var(--radius-lg); border: 2px solid var(--border); background: var(--white); }
table { width: 100%; border-collapse: collapse; }
thead { background: var(--bg2); }
th { padding: .9rem 1.25rem; text-align: left; font-size: .75rem; font-weight: 900;
     text-transform: uppercase; letter-spacing: .06em; color: var(--ink-light); white-space: nowrap; }
td { padding: .9rem 1.25rem; border-top: 1px solid var(--border); font-weight: 700; font-size: .9rem; }
tr:hover td { background: var(--bg2); }
.td-actions { display: flex; gap: .5rem; }

/* ── Modals ──────────────────────────────────────────────────────── */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 200;
  background: rgba(30,27,75,.4); backdrop-filter: blur(4px);
  align-items: center; justify-content: center; padding: 1.5rem;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--white); border-radius: var(--radius-xl); padding: 2rem;
  max-width: 500px; width: 100%; box-shadow: 0 30px 80px rgba(30,27,75,.2);
  animation: slideUp .25s ease;
}
.modal h2 { font-size: 1.4rem; margin-bottom: 1.5rem; }
.modal-close { float: right; background: var(--bg2); border: none; cursor: pointer;
                border-radius: .5rem; padding: .3rem .6rem; font-size: 1.1rem; }
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ── Adventure map ───────────────────────────────────────────────── */
.map-hero-card {
  background: var(--white); border-radius: var(--radius-xl); padding: 2rem;
  border: 3px solid var(--border); display: flex; align-items: center; gap: 2rem; flex-wrap: wrap;
  margin-bottom: 3rem; box-shadow: var(--shadow);
}
.map-avatar {
  width: 5.5rem; height: 5.5rem; border-radius: 1.75rem; background: var(--purple);
  display: flex; align-items: center; justify-content: center; color: #fff;
  font-size: 2.5rem; font-weight: 900; flex-shrink: 0; transform: rotate(2deg);
  box-shadow: 0 8px 24px rgba(108,99,255,.3);
}
.map-hero-info { flex: 1; }
.map-hero-info .eyebrow { font-size: .7rem; font-weight: 900; text-transform: uppercase;
                            letter-spacing: .1em; color: var(--orange); margin-bottom: .3rem; }
.map-hero-info h2 { font-size: 1.8rem; font-style: italic; margin-bottom: .75rem; }
.map-pills { display: flex; gap: .75rem; flex-wrap: wrap; }
.map-pill { display: flex; align-items: center; gap: .4rem; padding: .4rem 1rem; border-radius: 999px;
             font-size: .75rem; font-weight: 900; border: 2px solid; }
.map-pill.purple { background: var(--bg2); border-color: var(--purple); color: var(--purple); }
.map-pill.green  { background: #F0FDF4; border-color: #86EFAC; color: #15803D; }
.lock-notice {
  background: #FFFBEB; border: 2px solid #FDE68A; border-radius: var(--radius-lg);
  padding: 1.25rem; text-align: center; min-width: 180px;
}
.lock-notice p { font-size: .8rem; font-weight: 800; color: #92400E; margin-bottom: .75rem; }

.week-section { margin-bottom: 4rem; }
.week-header { display: flex; align-items: center; gap: 1rem; margin-bottom: 2rem; }
.week-label { background: var(--orange); color: #fff; padding: .4rem 1.5rem; border-radius: 1rem;
               font-weight: 900; font-style: italic; transform: rotate(-1.5deg); white-space: nowrap;
               box-shadow: 0 4px 12px rgba(255,107,53,.3); }
.week-divider { flex: 1; height: 2px; background: var(--border); }
.week-theme { color: var(--ink-light); font-weight: 800; font-style: italic; white-space: nowrap; }
.sessions-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; }
@media (max-width: 900px) { .sessions-row { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .sessions-row { grid-template-columns: repeat(2, 1fr); } }

.session-node { display: flex; flex-direction: column; align-items: center; text-align: center; cursor: pointer; }
.session-node .node-circle {
  width: 5.5rem; height: 5.5rem; border-radius: 50%; border: 5px solid var(--white);
  box-shadow: 0 6px 20px rgba(30,27,75,.12); margin-bottom: .75rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 900; transition: transform .2s;
  position: relative;
}
.session-node:hover .node-circle { transform: translateY(-6px) rotate(3deg); }
.node-completed { background: var(--green); color: #fff; border-color: #86EFAC; }
.node-locked    { background: #E5E7EB; color: #9CA3AF; border-color: #fff; }
.node-current   { background: var(--white); border-color: var(--purple); color: var(--yellow);
                   box-shadow: 0 6px 24px rgba(108,99,255,.25), 0 0 0 6px rgba(108,99,255,.08); }
.node-upcoming  { background: var(--white); border-color: var(--border); color: var(--ink-light); }
.start-bubble {
  position: absolute; top: -2.5rem; background: var(--purple); color: #fff;
  padding: .2rem .7rem; border-radius: 999px; font-size: .6rem; font-weight: 900;
  white-space: nowrap; animation: bounce 1.5s infinite;
  box-shadow: 0 2px 8px rgba(108,99,255,.4);
}
@keyframes bounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
.session-node .node-title  { font-size: .8rem; font-weight: 900; color: var(--ink); line-height: 1.2; }
.session-node .node-day    { font-size: .65rem; font-weight: 800; text-transform: uppercase; color: #aaa; margin-top: .2rem; }

/* ── Classroom ────────────────────────────────────────────────────── */
.classroom-grid { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; }
.video-card { background: var(--white); border-radius: var(--radius-xl); overflow: hidden; border: 2px solid var(--border); }
.live-bar { background: var(--red); color: #fff; padding: .6rem 1.25rem; display: flex; align-items: center; justify-content: space-between; }
.live-dot { display: flex; align-items: center; gap: .5rem; font-size: .8rem; font-weight: 900; text-transform: uppercase; }
.live-dot::before { content: ''; width: .5rem; height: .5rem; background: #fff; border-radius: 50%; animation: pulse 1.2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .4; } }
.video-placeholder { aspect-ratio: 16/9; background: #111827; display: flex; align-items: flex-end; justify-content: center; position: relative; }
.video-center { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); text-align: center; }
.video-center .vid-icon { font-size: 4rem; opacity: .3; }
.video-center p { color: rgba(255,255,255,.4); font-weight: 700; font-size: .9rem; margin-top: .5rem; }
.video-overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 50%); padding: 1.5rem; display: flex; flex-direction: column; justify-content: flex-end; }
.video-overlay h3 { color: #fff; font-size: 1.4rem; }
.video-overlay p  { color: rgba(255,255,255,.7); font-size: .85rem; }
.video-footer { padding: 1.25rem; display: flex; align-items: center; justify-content: space-between; border-top: 2px solid var(--border); flex-wrap: wrap; gap: .75rem; }
.attendees { display: flex; }
.attendees .av { width: 2rem; height: 2rem; border-radius: 50%; border: 2px solid var(--white); background: var(--purple); display: flex; align-items: center; justify-content: center; font-size: .65rem; font-weight: 900; color: #fff; margin-left: -.6rem; }
.attendees .av:first-child { margin-left: 0; }

.recordings-card { background: var(--white); border-radius: var(--radius-xl); padding: 1.5rem; border: 2px solid var(--border); }
.recordings-card h3 { font-size: 1.1rem; margin-bottom: 1.25rem; }
.rec-item { display: flex; gap: .75rem; align-items: center; padding: .75rem; border-radius: var(--radius); cursor: pointer; transition: background .15s; }
.rec-item:hover { background: var(--bg2); }
.rec-thumb { width: 4.5rem; height: 3rem; background: var(--border); border-radius: .6rem; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0; }
.rec-title { font-size: .85rem; font-weight: 800; }
.rec-meta  { font-size: .7rem; font-weight: 700; color: #aaa; text-transform: uppercase; }
.empty-msg { text-align: center; color: #aaa; font-style: italic; padding: 2rem 0; font-size: .9rem; }

/* ── Scheme of work ──────────────────────────────────────────────── */
.sow-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.sow-week { background: var(--white); border-radius: var(--radius-xl); padding: 2rem; border: 2px solid var(--border); }
.sow-week-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; }
.sow-num { width: 3rem; height: 3rem; border-radius: 1rem; background: var(--purple); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 900; font-size: 1.2rem; flex-shrink: 0; }
.sow-week-head h3 { font-size: 1.1rem; }
.sow-week-head p  { font-size: .75rem; font-weight: 700; color: var(--purple); text-transform: uppercase; }
.sow-session { display: flex; gap: .75rem; padding: .75rem; border-radius: var(--radius); background: var(--bg2); margin-bottom: .6rem; }
.sow-session-num { font-weight: 900; color: var(--purple); font-size: .85rem; width: 1.75rem; flex-shrink: 0; }
.sow-session-title { font-size: .85rem; font-weight: 800; }
.sow-session-desc  { font-size: .75rem; color: var(--ink-light); }
.sow-star { margin-left: auto; color: var(--yellow); font-size: .9rem; }

/* ── Profile page ────────────────────────────────────────────────── */
.profile-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 1.5rem; }
.profile-avatar-card { background: var(--white); border-radius: var(--radius-xl); padding: 2.5rem; text-align: center; border: 2px solid var(--border); }
.profile-big-avatar { width: 7rem; height: 7rem; border-radius: 50%; background: var(--purple); color: #fff; font-size: 3rem; font-weight: 900; display: flex; align-items: center; justify-content: center; margin: 0 auto 1rem; box-shadow: 0 8px 24px rgba(108,99,255,.3); }
.profile-name { font-size: 1.4rem; font-weight: 900; }
.profile-username { color: #aaa; font-weight: 700; margin-bottom: 1.5rem; }
.profile-info-card { background: var(--white); border-radius: var(--radius-xl); padding: 2rem; border: 2px solid var(--border); }
.profile-section-title { font-size: 1rem; font-weight: 900; border-bottom: 2px solid var(--border); padding-bottom: .5rem; margin-bottom: 1.25rem; }
.profile-item { display: flex; align-items: center; gap: .75rem; margin-bottom: 1rem; }
.profile-item-icon { width: 2.5rem; height: 2.5rem; border-radius: .75rem; background: var(--bg2); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.profile-item-lbl { font-size: .7rem; font-weight: 700; text-transform: uppercase; color: #aaa; }
.profile-item-val { font-weight: 800; }
.progress-bar-wrap { background: var(--border); height: .5rem; border-radius: 999px; overflow: hidden; margin-top: .4rem; }
.progress-bar { background: var(--purple); height: 100%; border-radius: 999px; }

/* ── Admin Overview ──────────────────────────────────────────────── */
.charts-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 1.5rem; }
.chart-card { background: var(--white); border-radius: var(--radius-xl); padding: 1.75rem; border: 2px solid var(--border); }
.chart-card h3 { font-size: 1.1rem; margin-bottom: 1.25rem; }
.quick-action-btn { display: flex; align-items: center; gap: 1rem; padding: 1rem; border-radius: var(--radius); border: 2px solid var(--border); background: var(--white); cursor: pointer; transition: background .15s; font-family: var(--font); width: 100%; margin-bottom: .75rem; }
.quick-action-btn:hover { background: var(--bg2); border-color: var(--purple); }
.qa-icon { width: 2.5rem; height: 2.5rem; border-radius: .75rem; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; flex-shrink: 0; }
.qa-title { font-weight: 900; font-size: .9rem; color: var(--ink); }
.qa-sub   { font-size: .75rem; font-weight: 600; color: #aaa; }

/* ── Login & public forms ────────────────────────────────────────── */
.auth-page { min-height: 100vh; background: var(--bg2); display: flex; align-items: center; justify-content: center; padding: 2rem; }
.auth-card { max-width: 440px; width: 100%; background: var(--white); border-radius: var(--radius-xl); padding: 2.5rem; border: 2px solid var(--border); box-shadow: var(--shadow); }
.auth-icon { width: 4rem; height: 4rem; border-radius: 1.25rem; background: var(--bg2); display: flex; align-items: center; justify-content: center; font-size: 1.8rem; margin: 0 auto 1.25rem; }
.auth-card h1 { font-size: 1.75rem; text-align: center; margin-bottom: .4rem; }
.auth-card .sub { text-align: center; color: var(--ink-light); font-weight: 600; font-size: .95rem; }

/* ── 404 page ────────────────────────────────────────── */
.page-404-card{
  background: var(--white); border-radius: var(--radius-xl); padding: 2rem; border: 2px solid var(--border); text-align: center;
} 
.auth-card h1 { font-size: 1.75rem; text-align: center; margin-bottom: .4rem; }
.auth-card .sub { text-align: center; color: var(--ink-light); font-weight: 600; font-size: .95rem; }

/* ── Legal pages ─────────────────────────────────────────────────── */
.app-page{ padding: 7rem 1.5rem 4rem; min-height: 100vh;  }
.legal-page { padding: 7rem 1.5rem 4rem; min-height: 100vh; }
.legal-card { background: var(--white); border-radius: var(--radius-xl); padding: 3.5rem; border: 2px solid var(--border); box-shadow: var(--shadow-sm); }
.legal-card h1 { font-size: 2.5rem; margin-bottom: 2rem; }
.legal-section { margin-bottom: 2rem; }
.legal-section h2 { font-size: 1.2rem; color: var(--ink); margin-bottom: .6rem; }
.legal-section p  { font-size: .95rem; line-height: 1.8; }
.legal-updated { font-size: .8rem; font-weight: 700; color: #aaa; margin-bottom: 2rem; }
.back-link { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; color: var(--orange); text-decoration: none; margin-bottom: 2rem; font-size: .85rem; }
.back-link:hover { text-decoration: underline; }

/* ── Enrolment & Payment ─────────────────────────────────────────── */
.enrol-page { padding: 4rem 1.5rem; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.success-icon { width: 5rem; height: 5rem; border-radius: 50%; background: #DCFCE7; display: flex; align-items: center; justify-content: center; font-size: 2.5rem; margin: 0 auto 1.5rem; }
.student-code-box { background: var(--bg2); border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 1.25rem 1.5rem; display: flex; align-items: center; justify-content: space-between; margin: 1.5rem 0; }
.code-val { font-size: 1.6rem; font-weight: 900; letter-spacing: .08em; color: var(--ink); }

.hide-show-password{
  position:absolute;right:1rem;top:50%;transform:translateY(-50%);background:none;border:none;cursor:pointer;font-size:1.1rem
}

/* ── Responsive ──────────────────────────────────────────────────── */
@media (max-width: 1024px) {
  .weeks-grid { grid-template-columns: repeat(2, 1fr); }
  .stats-grid  { grid-template-columns: repeat(2, 1fr); }
  .charts-grid { grid-template-columns: 1fr; }
  .classroom-grid { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .sow-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .hero-grid  { grid-template-columns: 1fr; }
  .why-grid   { grid-template-columns: 1fr; }
  .weeks-grid { grid-template-columns: 1fr; }
  .cta-box    { grid-template-columns: 1fr; padding: 2rem .3rem; }
  .cta-content { padding: 0 2rem;}
  .footer-grid { grid-template-columns: 1fr; }
  .d-md-inline { display: none !important; }
  .min-grid{display: grid; grid-template-columns: 1fr 2fr; }
  .pub-nav-links { display: none; }
  .stats-strip   { grid-template-columns: repeat(2, 1fr); }
  .stats-grid    { grid-template-columns: 1fr 1fr; }
  .sidebar { width: 100%; height: auto; flex-direction: row; flex-wrap: wrap; }
  .sidebar-nav { flex-direction: row; flex: 1; overflow-x: auto; padding-bottom: .25rem; }
  .dashboard-shell { flex-direction: column; }
  .dash-main { padding: 1.25rem; }
  .enrolment-grid{ grid-template-columns:1fr; gap: 0; }
}