/* ============================================================
   JC Cloud Technologies — School Management Platform
   Frontend Design System
   ============================================================ */

/* ── TOKENS ─────────────────────────────────────────────── */
:root {
  --ink:          #0c0c14;
  --ink-soft:     #3a3a50;
  --muted:        #6b6b80;
  --surface:      #f6f5f2;
  --surface-2:    #eeecea;
  --card:         #ffffff;
  --border:       rgba(12,12,20,.1);
  --border-heavy: rgba(12,12,20,.18);

  --accent:       #1a56db;
  --accent-dark:  #1244b0;
  --accent-light: rgba(26,86,219,.08);
  --red:          #ef4444;
  --green:        #10b981;
  --amber:        #f59e0b;
  --purple:       #8b5cf6;

  --shadow-sm:  0 1px 3px rgba(12,12,20,.08);
  --shadow-md:  0 4px 20px rgba(12,12,20,.10);
  --shadow-lg:  0 12px 48px rgba(12,12,20,.14);
  --shadow-xl:  0 24px 80px rgba(12,12,20,.18);

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  16px;
  --radius-xl:  24px;

  --font-display: 'Clash Display', 'Cabinet Grotesk', system-ui, sans-serif;
  --font-body:    'Cabinet Grotesk', system-ui, sans-serif;
}

/* ── RESET ───────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { font-family: var(--font-body); background: var(--surface); color: var(--ink); line-height: 1.6; overflow-x: hidden; }
img  { max-width: 100%; display: block; }
a    { color: inherit; text-decoration: none; }
ul   { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── CONTAINER ───────────────────────────────────────────── */
.container { max-width: 1200px; margin: 0 auto; padding: 0 40px; }
.section    { padding: 100px 0; }

/* ── TYPOGRAPHY ──────────────────────────────────────────── */
h1,h2,h3,h4,h5 { font-family: var(--font-display); font-weight: 700; line-height: 1.1; letter-spacing: -.03em; }

/* ── BUTTONS ─────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 22px; border-radius: var(--radius-md);
  font-family: var(--font-body); font-size: .9rem; font-weight: 700;
  transition: all .2s cubic-bezier(.4,0,.2,1);
  white-space: nowrap;
}
.btn-primary  { background: var(--accent); color: #fff; box-shadow: 0 2px 8px rgba(26,86,219,.3); }
.btn-primary:hover  { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(26,86,219,.35); }
.btn-outline  { background: transparent; color: var(--ink); border: 1.5px solid var(--border-heavy); }
.btn-outline:hover  { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-ghost    { background: transparent; color: var(--ink); }
.btn-ghost:hover    { background: rgba(12,12,20,.06); }
.btn-white    { background: #fff; color: var(--accent); }
.btn-white:hover    { background: rgba(255,255,255,.9); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(0,0,0,.15); }
.btn-ghost-white { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.3); }
.btn-ghost-white:hover { background: rgba(255,255,255,.1); }
.btn-lg { padding: 13px 28px; font-size: 1rem; }
.btn-sm { padding: 7px 14px; font-size: .8rem; border-radius: var(--radius-sm); }
.btn-arrow { transition: transform .2s; }
.btn-primary:hover .btn-arrow { transform: translateX(3px); }

/* ── BADGES ──────────────────────────────────────────────── */
.badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 100px; font-size: .72rem; font-weight: 700; }
.badge-green  { background: rgba(16,185,129,.12); color: #059669; }
.badge-blue   { background: rgba(26,86,219,.12);  color: #1a56db; }
.badge-amber  { background: rgba(245,158,11,.12); color: #d97706; }
.badge-red    { background: rgba(239,68,68,.12);  color: #dc2626; }

/* ── PILL ────────────────────────────────────────────────── */
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-light); border: 1px solid rgba(26,86,219,.2);
  color: var(--accent); padding: 5px 14px; border-radius: 100px;
  font-size: .82rem; font-weight: 600; letter-spacing: .2px;
  margin-bottom: 20px;
}
.pill-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); animation: blink 1.8s ease-in-out infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }

/* ── ANIMATIONS ──────────────────────────────────────────── */
.animate-fade-up { opacity: 0; transform: translateY(28px); transition: opacity .65s ease, transform .65s cubic-bezier(.22,1,.36,1); }
.animate-fade-up.visible { opacity: 1; transform: translateY(0); }
.animate-fade-right { opacity: 0; transform: translateX(40px); transition: opacity .75s ease, transform .75s cubic-bezier(.22,1,.36,1); }
.animate-fade-right.visible { opacity: 1; transform: translateX(0); }
.delay-1 { transition-delay: .1s; }
.delay-2 { transition-delay: .2s; }
.delay-3 { transition-delay: .3s; }
.delay-4 { transition-delay: .4s; }

/* ── NAVBAR ──────────────────────────────────────────────── */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(246,245,242,.88); backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow .25s;
}
.navbar.scrolled { box-shadow: var(--shadow-md); }
.nav-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 40px;
  height: 64px; display: flex; align-items: center; gap: 40px;
}
.brand { font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; letter-spacing: -.04em; }
.brand-jc   { color: var(--accent); }
.brand-tech { color: var(--accent); }
.nav-links { display: flex; gap: 28px; flex: 1; }
.nav-links a { font-size: .88rem; font-weight: 500; color: var(--ink-soft); transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-actions { display: flex; gap: 10px; }
.nav-hamburger { display: none; flex-direction: column; gap: 5px; }
.nav-hamburger span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .2s; }

/* ── HERO ────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  padding: 120px 0 80px; overflow: hidden;
}
.hero-noise {
  position: absolute; inset: 0; z-index: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
}
.hero-glow {
  position: absolute; border-radius: 50%; pointer-events: none; z-index: 0;
  filter: blur(80px); opacity: .35;
}
.hero-glow--a { width: 600px; height: 600px; top: -150px; right: -100px; background: radial-gradient(circle, rgba(26,86,219,.25) 0%, transparent 70%); }
.hero-glow--b { width: 400px; height: 400px; bottom: 0; left: 10%; background: radial-gradient(circle, rgba(139,92,246,.2) 0%, transparent 70%); }
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}
.hero-title {
  font-size: clamp(2.8rem, 5vw, 4.6rem); margin-bottom: 20px;
  letter-spacing: -.05em; line-height: 1.05;
}
.hero-title em { font-style: normal; color: var(--accent); }
.hero-desc { font-size: 1.05rem; color: var(--muted); line-height: 1.75; max-width: 500px; margin-bottom: 36px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 52px; }
.hero-stats { display: flex; align-items: center; gap: 0; border-top: 1px solid var(--border); padding-top: 32px; }
.stat { text-align: center; flex: 1; }
.stat strong { display: block; font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.04em; }
.stat span { font-size: .78rem; color: var(--muted); font-weight: 500; }
.stat-div { width: 1px; height: 36px; background: var(--border); }

/* ── HERO CARDS ──────────────────────────────────────────── */
.hero-visual { position: relative; }
.hero-card {
  background: var(--card); border-radius: var(--radius-lg);
  border: 1px solid var(--border); box-shadow: var(--shadow-xl);
}
.hero-card--main { overflow: hidden; }
.hcard-header {
  display: flex; align-items: center; gap: 7px; padding: 12px 18px;
  background: var(--ink); border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.hcard-dot { width: 11px; height: 11px; border-radius: 50%; }
.hcard-dot.red   { background: #ef4444; }
.hcard-dot.amber { background: #f59e0b; }
.hcard-dot.green { background: #10b981; }
.hcard-title { margin-left: 6px; font-size: .75rem; color: rgba(255,255,255,.45); font-weight: 600; }
.hcard-body { padding: 18px; }
.hcard-stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; margin-bottom: 16px; }
.hcard-stat { background: var(--surface); border-radius: var(--radius-sm); padding: 10px; text-align: center; }
.hcard-stat-val { font-family: var(--font-display); font-weight: 700; font-size: 1rem; }
.hcard-stat-lbl { font-size: .65rem; color: var(--muted); margin-top: 2px; }
.hcard-table-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: .78rem; font-weight: 700; }
.hcard-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--border); }
.hcard-row:last-child { border-bottom: none; }
.hcard-avatar { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.hcard-info { flex: 1; }
.hcard-info strong { display: block; font-size: .82rem; }
.hcard-info span { font-size: .72rem; color: var(--muted); }

/* Floating Cards */
.hero-card--float { position: absolute; padding: 14px 16px; }
.hero-card--admit { bottom: -20px; left: -40px; width: 200px; }
.hero-card--notif { top: 30px; right: -30px; width: 190px; background: var(--ink); color: #fff; border-color: transparent; }

/* Avatar helpers */
.av-red   { background: #ef4444; }
.av-blue  { background: #3b82f6; }
.av-amber { background: #f59e0b; }
.av-green { background: #10b981; }
.av-purple{ background: #8b5cf6; }
.av { width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .72rem; font-weight: 700; color: #fff; flex-shrink: 0; }
.av-cell { display: flex; align-items: center; gap: 8px; }

/* ── LOGOS STRIP ─────────────────────────────────────────── */
.logos-strip { padding: 40px 0; background: var(--card); border-bottom: 1px solid var(--border); }
.logos-label { text-align: center; font-size: .78rem; font-weight: 600; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; margin-bottom: 24px; }
.logos-row { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 10px 40px; }
.logo-item { font-size: .88rem; font-weight: 700; color: var(--muted); opacity: .6; }

/* ── SECTION HEADER ──────────────────────────────────────── */
.section-header { max-width: 640px; margin: 0 auto 72px; text-align: center; }
.section-kicker { display: inline-block; font-size: .75rem; font-weight: 700; letter-spacing: 2.5px; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.section-title { font-size: clamp(2rem, 3.5vw, 3rem); margin-bottom: 18px; }
.section-sub { font-size: 1rem; color: var(--muted); line-height: 1.75; }

/* ── FEATURES GRID ───────────────────────────────────────── */
.features-section { background: var(--ink); }
.features-section .section-kicker { color: #f59e0b; }
.features-section .section-title  { color: #fff; }
.features-section .section-sub    { color: rgba(255,255,255,.5); }
.features-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 2px; }
.feat-card {
  background: rgba(255,255,255,.03); border: 1px solid rgba(255,255,255,.06);
  padding: 36px 32px; transition: background .25s, transform .25s;
}
.feat-card:hover { background: rgba(255,255,255,.07); transform: translateY(-3px); }
.feat-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; margin-bottom: 20px; }
.feat-card h3 { font-family: var(--font-display); font-size: 1.05rem; font-weight: 600; color: #fff; margin-bottom: 10px; }
.feat-card p  { font-size: .88rem; color: rgba(255,255,255,.5); line-height: 1.75; margin-bottom: 16px; }
.feat-list { padding-left: 0; }
.feat-list li { font-size: .82rem; color: rgba(255,255,255,.4); padding: 3px 0 3px 16px; position: relative; }
.feat-list li::before { content: '→'; position: absolute; left: 0; color: rgba(26,86,219,.7); }

/* ── PLATFORM TABS ───────────────────────────────────────── */
.platform-section { background: var(--surface-2); }
.platform-tabs { display: flex; gap: 4px; background: rgba(12,12,20,.07); border-radius: var(--radius-md); padding: 4px; width: fit-content; margin: 0 auto 36px; }
.ptab { padding: 9px 20px; border-radius: var(--radius-sm); font-size: .86rem; font-weight: 600; color: var(--muted); transition: all .2s; }
.ptab.active { background: var(--card); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ── MOCK WINDOW ─────────────────────────────────────────── */
.ppanel { display: none; }
.ppanel.active { display: block; }
.mock-window { background: var(--card); border-radius: var(--radius-xl); border: 1px solid var(--border); box-shadow: var(--shadow-xl); overflow: hidden; }
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 18px; background: #1a1a2e; }
.mock-dot { width: 11px; height: 11px; border-radius: 50%; }
.mock-dot.r { background: #ef4444; }
.mock-dot.a { background: #f59e0b; }
.mock-dot.g { background: #10b981; }
.mock-url { margin-left: 12px; font-size: .72rem; background: rgba(255,255,255,.08); padding: 3px 12px; border-radius: 100px; color: rgba(255,255,255,.4); }
.mock-body { display: grid; grid-template-columns: 200px 1fr; min-height: 460px; }
.mock-sidebar { background: #f9f8f6; border-right: 1px solid var(--border); padding: 20px 0; }
.mock-brand { font-family: var(--font-display); font-weight: 800; font-size: 1rem; padding: 0 16px 16px; color: var(--ink); }
.mock-brand span { color: var(--accent); }
.mock-nav-label { padding: 12px 16px 4px; font-size: .65rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); opacity: .5; }
.mock-nav { padding: 8px 16px; font-size: .82rem; font-weight: 500; color: var(--muted); cursor: default; border-left: 3px solid transparent; }
.mock-nav.active { color: var(--accent); background: rgba(26,86,219,.06); border-left-color: var(--accent); font-weight: 600; }
.mock-main { padding: 24px; }
.mock-page-title { font-family: var(--font-display); font-size: 1.3rem; font-weight: 700; }
.mock-page-sub { font-size: .8rem; color: var(--muted); margin: 4px 0 20px; }
.mock-stat-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin-bottom: 20px; }
.mock-stat { background: var(--surface); border-radius: var(--radius-md); padding: 14px; border: 1px solid var(--border); }
.mock-stat-lbl { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 6px; }
.mock-stat-val { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; }
.mock-stat-trend { font-size: .72rem; font-weight: 600; margin-top: 4px; }
.mock-stat-trend.up { color: #059669; }
.mock-table-wrap { background: var(--surface); border-radius: var(--radius-md); border: 1px solid var(--border); overflow: hidden; }
.mock-table-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--border); font-size: .82rem; font-weight: 700; }
.mock-table { width: 100%; border-collapse: collapse; }
.mock-table th { padding: 8px 16px; text-align: left; font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); background: rgba(12,12,20,.02); }
.mock-table td { padding: 9px 16px; font-size: .8rem; border-top: 1px solid var(--border); }

/* ── PRICING ─────────────────────────────────────────────── */
.pricing-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; align-items: start; }
.price-card {
  background: var(--card); border-radius: var(--radius-xl);
  border: 1px solid var(--border); padding: 40px 36px;
  position: relative; transition: transform .25s, box-shadow .25s;
}
.price-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.price-card--featured {
  background: var(--ink); color: #fff;
  border-color: transparent; transform: translateY(-8px);
  box-shadow: var(--shadow-xl);
}
.price-card--featured:hover { transform: translateY(-12px); }
.price-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff;
  padding: 3px 16px; border-radius: 100px; font-size: .72rem; font-weight: 700;
  white-space: nowrap;
}
.price-plan-name { font-size: .75rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.price-card--featured .price-plan-name { color: rgba(255,255,255,.4); }
.price-amount { font-family: var(--font-display); font-size: 3.2rem; font-weight: 700; letter-spacing: -.05em; line-height: 1; margin-bottom: 8px; }
.price-amount sup { font-size: 1.5rem; vertical-align: super; }
.price-amount sub { font-size: 1rem; letter-spacing: 0; opacity: .5; }
.price-desc { font-size: .88rem; color: var(--muted); margin-bottom: 24px; line-height: 1.6; }
.price-card--featured .price-desc { color: rgba(255,255,255,.5); }
.price-divider { height: 1px; background: var(--border); margin-bottom: 24px; }
.price-card--featured .price-divider { background: rgba(255,255,255,.1); }
.price-features { display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.price-features li { display: flex; align-items: flex-start; gap: 10px; font-size: .88rem; line-height: 1.5; }
.price-features li::before { content: ''; width: 18px; height: 18px; border-radius: 50%; flex-shrink: 0; margin-top: 1px; font-size: .65rem; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.price-features li.yes::before { content: '✓'; background: rgba(16,185,129,.15); color: #059669; }
.price-features li.no { opacity: .4; }
.price-features li.no::before { content: '—'; background: rgba(12,12,20,.06); color: var(--muted); }
.price-cta { display: flex; justify-content: center; width: 100%; padding: 13px; font-size: .95rem; border-radius: var(--radius-md); }
.pricing-note { text-align: center; margin-top: 32px; font-size: .85rem; color: var(--muted); line-height: 1.8; }

/* ── TESTIMONIALS ────────────────────────────────────────── */
.testimonials-section { background: var(--surface-2); }
.testimonials-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.test-card { background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 32px; transition: transform .25s, box-shadow .25s; }
.test-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.test-stars { color: #f59e0b; font-size: 1rem; margin-bottom: 16px; letter-spacing: 2px; }
.test-card p { font-size: .92rem; color: var(--ink-soft); line-height: 1.8; margin-bottom: 24px; }
.test-author { display: flex; align-items: center; gap: 12px; }
.test-av { width: 40px; height: 40px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-weight: 700; color: #fff; flex-shrink: 0; }
.test-author strong { display: block; font-size: .9rem; }
.test-author span { font-size: .78rem; color: var(--muted); }

/* ── CTA BAND ────────────────────────────────────────────── */
.cta-band { background: var(--accent); padding: 80px 0; }
.cta-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.cta-band-text h2 { font-size: clamp(1.6rem,3vw,2.4rem); color: #fff; margin-bottom: 10px; }
.cta-band-text p  { font-size: 1rem; color: rgba(255,255,255,.75); max-width: 460px; }
.cta-band-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ── FOOTER ──────────────────────────────────────────────── */
.footer { background: var(--ink); color: rgba(255,255,255,.5); padding: 80px 0 40px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 60px; margin-bottom: 60px; }
.footer-brand-col .brand { margin-bottom: 14px; font-size: 1.2rem; }
.footer-brand-col p { font-size: .86rem; line-height: 1.75; max-width: 280px; }
.footer-contact { display: flex; flex-direction: column; gap: 6px; margin-top: 20px; font-size: .82rem; }
.footer-col h4 { font-family: var(--font-display); font-weight: 600; font-size: .88rem; color: #fff; margin-bottom: 16px; letter-spacing: .5px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .85rem; color: rgba(255,255,255,.4); transition: color .15s; }
.footer-col ul li a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.07); padding-top: 24px; display: flex; justify-content: space-between; font-size: .8rem; flex-wrap: wrap; gap: 8px; }

/* ── LOGIN PAGE ──────────────────────────────────────────── */
.login-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.login-left {
  background: var(--ink); color: #fff; padding: 60px;
  display: flex; flex-direction: column; justify-content: space-between;
}
.login-left-brand { margin-bottom: 60px; }
.login-left-tagline { font-family: var(--font-display); font-size: 2.4rem; font-weight: 700; line-height: 1.15; letter-spacing: -.04em; margin-bottom: 20px; }
.login-left-tagline span { color: var(--accent); }
.login-left-features { display: flex; flex-direction: column; gap: 14px; }
.login-feat { display: flex; align-items: center; gap: 12px; font-size: .9rem; color: rgba(255,255,255,.65); }
.login-feat-icon { width: 36px; height: 36px; border-radius: 10px; background: rgba(255,255,255,.07); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; }
.login-right { display: flex; align-items: center; justify-content: center; padding: 60px 40px; }
.login-box { width: 100%; max-width: 420px; }
.login-box-title { font-family: var(--font-display); font-size: 2rem; font-weight: 700; letter-spacing: -.04em; margin-bottom: 6px; }
.login-box-sub { color: var(--muted); font-size: .9rem; margin-bottom: 36px; }
.role-selector { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; margin-bottom: 28px; }
.role-btn {
  padding: 14px 8px; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); text-align: center; cursor: pointer;
  transition: all .2s; background: var(--surface);
}
.role-btn:hover { border-color: var(--accent); background: var(--accent-light); }
.role-btn.selected { border-color: var(--accent); background: var(--accent-light); }
.role-btn-icon { font-size: 1.6rem; margin-bottom: 6px; display: block; }
.role-btn-label { font-size: .78rem; font-weight: 700; display: block; }
.form-group { margin-bottom: 18px; }
.form-label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .5px; margin-bottom: 6px; }
.form-input, .form-select {
  width: 100%; padding: 11px 14px; border: 1.5px solid var(--border);
  border-radius: var(--radius-md); font-family: var(--font-body); font-size: .93rem;
  background: #fff; color: var(--ink); outline: none; transition: border .2s;
}
.form-input:focus, .form-select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(26,86,219,.1); }
.btn-login-submit { width: 100%; padding: 13px; font-size: 1rem; margin-top: 6px; }
.login-bottom { text-align: center; margin-top: 20px; font-size: .85rem; color: var(--muted); }
.login-bottom a { color: var(--accent); font-weight: 600; }
.form-error { background: rgba(239,68,68,.08); border: 1px solid rgba(239,68,68,.2); color: #dc2626; padding: 10px 14px; border-radius: var(--radius-sm); font-size: .85rem; margin-bottom: 16px; display: none; }
.form-error.show { display: block; }

/* ── ADMIN DASHBOARD ─────────────────────────────────────── */
.app-layout { display: flex; height: 100vh; overflow: hidden; }
.app-sidebar {
  width: 248px; background: var(--card); border-right: 1px solid var(--border);
  display: flex; flex-direction: column; flex-shrink: 0; overflow-y: auto;
}
.app-sidebar-header { padding: 20px 20px 16px; border-bottom: 1px solid var(--border); }
.app-sidebar-header .brand { font-size: 1.1rem; display: flex; align-items: center; gap: 8px; }
.sidebar-school { font-size: .75rem; color: var(--muted); margin-top: 4px; font-weight: 500; }
.sidebar-nav { flex: 1; padding: 16px 0; }
.sidebar-section-label { padding: 10px 20px 4px; font-size: .65rem; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); opacity: .5; }
.sidebar-nav-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 20px; font-size: .85rem; font-weight: 500; color: var(--muted);
  cursor: pointer; border-left: 3px solid transparent; transition: all .15s;
}
.sidebar-nav-item:hover { color: var(--ink); background: var(--surface); }
.sidebar-nav-item.active { color: var(--accent); background: var(--accent-light); border-left-color: var(--accent); font-weight: 600; }
.sidebar-footer { padding: 16px 20px; border-top: 1px solid var(--border); font-size: .8rem; color: var(--muted); }
.app-content { flex: 1; overflow-y: auto; background: var(--surface); }
.app-topbar {
  position: sticky; top: 0; z-index: 10; height: 56px;
  background: var(--card); border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 32px;
}
.app-topbar-left { font-family: var(--font-display); font-weight: 700; font-size: 1.1rem; }
.app-topbar-right { display: flex; align-items: center; gap: 16px; }
.topbar-notif { position: relative; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; border-radius: var(--radius-sm); background: var(--surface); font-size: 1rem; cursor: pointer; }
.topbar-notif-count { position: absolute; top: 3px; right: 3px; width: 14px; height: 14px; background: var(--red); border-radius: 50%; font-size: .6rem; font-weight: 700; color: #fff; display: flex; align-items: center; justify-content: center; }
.topbar-user { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: var(--radius-sm); cursor: pointer; }
.topbar-user:hover { background: var(--surface); }
.topbar-user-av { width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: .78rem; font-weight: 700; }
.topbar-user-name { font-size: .85rem; font-weight: 600; }
.topbar-exit { padding: 6px 14px; background: rgba(239,68,68,.1); color: var(--red); border-radius: var(--radius-sm); font-size: .8rem; font-weight: 700; cursor: pointer; transition: all .15s; }
.topbar-exit:hover { background: var(--red); color: #fff; }

/* ── DASHBOARD PAGES ─────────────────────────────────────── */
.page-content { padding: 28px 32px; width: 100%; box-sizing: border-box; }
.page-content.hidden { display: none; }
.page-header { margin-bottom: 24px; }
.page-header h2 { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; letter-spacing: -.04em; }
.page-header p  { color: var(--muted); font-size: .88rem; margin-top: 4px; }
.kpi-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; margin-bottom: 24px; }
.kpi-card { background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--border); padding: 22px; }
.kpi-card-icon { font-size: 1.5rem; margin-bottom: 12px; }
.kpi-card-label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-bottom: 8px; }
.kpi-card-value { font-family: var(--font-display); font-size: 2rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.kpi-card-trend { font-size: .78rem; font-weight: 600; color: var(--green); margin-top: 6px; }
.data-card { background: var(--card); border-radius: var(--radius-lg); border: 1px solid var(--border); overflow: hidden; margin-bottom: 20px; }
.data-card-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 22px; border-bottom: 1px solid var(--border); }
.data-card-header h3 { font-family: var(--font-display); font-weight: 700; font-size: .95rem; }
.data-card-body { padding: 20px 22px; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table th { padding: 10px 14px; text-align: left; font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); background: var(--surface); border-bottom: 1px solid var(--border); }
.data-table td { padding: 11px 14px; font-size: .86rem; border-bottom: 1px solid var(--border); }
.data-table tr:last-child td { border-bottom: none; }
.data-table tbody tr:hover { background: var(--surface); }

/* ── FORM GRID ───────────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-grid-3 { grid-template-columns: 1fr 1fr 1fr; }
.form-span-2 { grid-column: span 2; }

/* ── RESPONSIVE ──────────────────────────────────────────── */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2,1fr); }
  .pricing-grid  { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .price-card--featured { transform: none; }
  .footer-grid   { grid-template-columns: 1fr 1fr; gap: 40px; }
  .kpi-row       { grid-template-columns: repeat(2,1fr); }
  .hero-inner    { grid-template-columns: 1fr; gap: 60px; }
  .hero-visual   { display: none; }
}
@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .section { padding: 72px 0; }
  .nav-links, .nav-actions { display: none; }
  .nav-hamburger { display: flex; }
  .features-grid  { grid-template-columns: 1fr; }
  .mock-body      { grid-template-columns: 1fr; }
  .mock-sidebar   { display: none; }
  .testimonials-grid { grid-template-columns: 1fr; }
  .platform-tabs { flex-wrap: wrap; width: 100%; }
  .mock-stat-row { grid-template-columns: 1fr 1fr; }
  .cta-band-inner { flex-direction: column; text-align: center; }
  .login-page { grid-template-columns: 1fr; }
  .login-left { display: none; }
  .app-sidebar { display: none; }
  .kpi-row { grid-template-columns: 1fr 1fr; }
  .hero-stats { flex-wrap: wrap; gap: 20px; }
  .form-grid { grid-template-columns: 1fr; }
}
