/* =========================================================
   LearnWise – design system on top of Bootstrap 5.3
   ========================================================= */
:root {
  --lw-primary: #5b5bd6;
  --lw-primary-600: #4a48c4;
  --lw-primary-50: #eeeefd;
  --lw-ink: #141a33;
  --lw-muted: #6b7290;
  --lw-line: #e8eaf3;
  --lw-bg: #f4f6fb;
  --lw-card: #ffffff;
  --lw-success: #16a34a;
  --lw-success-50: #e8f8ee;
  --lw-warning: #d97706;
  --lw-warning-50: #fff5e0;
  --lw-danger: #e11d48;
  --lw-danger-50: #ffe9ee;
  --lw-info: #0891b2;
  --lw-radius: 16px;
  --lw-shadow: 0 1px 2px rgba(20, 26, 51, .04), 0 6px 24px rgba(20, 26, 51, .05);
  --lw-grad: linear-gradient(120deg, #4f46e5 0%, #2563eb 50%, #06b6d4 100%);
  --sidebar-w: 264px;

  --bs-primary: var(--lw-primary);
  --bs-primary-rgb: 91, 91, 214;
  --bs-body-font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-color: var(--lw-ink);
  --bs-body-bg: var(--lw-bg);
  --bs-border-color: var(--lw-line);
  --bs-secondary-color: var(--lw-muted);
  --bs-link-color: var(--lw-primary);
  --bs-link-color-rgb: 91, 91, 214;
  --bs-link-hover-color: var(--lw-primary-600);
}

body { background: var(--lw-bg); color: var(--lw-ink); -webkit-font-smoothing: antialiased; }
a { text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; letter-spacing: -.01em; }
.min-w-0 { min-width: 0; }
.text-secondary { color: var(--lw-muted) !important; }
.fw-800 { font-weight: 800; }

/* ---------- Buttons & forms ---------- */
.btn { border-radius: 10px; font-weight: 600; padding: .55rem 1.1rem; }
.btn-sm { padding: .35rem .8rem; border-radius: 8px; }
.btn-lg { padding: .8rem 1.5rem; border-radius: 12px; }
.btn-primary { --bs-btn-bg: var(--lw-primary); --bs-btn-border-color: var(--lw-primary); --bs-btn-hover-bg: var(--lw-primary-600); --bs-btn-hover-border-color: var(--lw-primary-600); --bs-btn-active-bg: var(--lw-primary-600); --bs-btn-disabled-bg: var(--lw-primary); --bs-btn-disabled-border-color: var(--lw-primary); box-shadow: 0 6px 16px rgba(91, 91, 214, .25); }
.btn-soft { background: var(--lw-primary-50); color: var(--lw-primary); border: 0; }
.btn-soft:hover { background: #e1e1fb; color: var(--lw-primary-600); }
.btn-light { --bs-btn-bg: #fff; --bs-btn-border-color: var(--lw-line); --bs-btn-hover-bg: #f7f8fc; --bs-btn-hover-border-color: #d9dcea; }
.btn-outline-danger { --bs-btn-color: var(--lw-danger); --bs-btn-border-color: #f5c2cf; }
.form-control, .form-select { border-radius: 10px; border-color: #dfe2ee; padding: .6rem .85rem; }
.form-control:focus, .form-select:focus, .form-check-input:focus { border-color: #a5a5f0; box-shadow: 0 0 0 .25rem rgba(91, 91, 214, .15); }
.form-label { font-weight: 600; font-size: .875rem; margin-bottom: .35rem; }
.form-check-input:checked { background-color: var(--lw-primary); border-color: var(--lw-primary); }
.input-icon { position: relative; }
.input-icon > i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--lw-muted); }
.input-icon > .form-control { padding-left: 2.5rem; }
.alert { border: 0; border-radius: 12px; }

/* ---------- Brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; color: var(--lw-ink); letter-spacing: -.02em; }
.brand-mark { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; color: #fff; background: var(--lw-grad); font-size: 1.1rem; }

/* ---------- Cards ---------- */
.card-x { background: var(--lw-card); border: 1px solid var(--lw-line); border-radius: var(--lw-radius); box-shadow: var(--lw-shadow); padding: 1.35rem; }
.card-x.p-0 { padding: 0; }
.card-title-x { display: flex; align-items: center; gap: .55rem; font-weight: 700; font-size: 1.02rem; margin-bottom: 1rem; }
.card-title-x::before { content: ''; width: 4px; height: 18px; border-radius: 4px; background: var(--lw-primary); }
.card-title-x.plain::before { display: none; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem; margin-bottom: 1rem; }
.card-head .card-title-x { margin-bottom: 0; }

/* ---------- App shell ---------- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar { width: var(--sidebar-w); background: #fff; border-right: 1px solid var(--lw-line); display: flex; flex-direction: column; }
@media (min-width: 992px) {
  .sidebar { position: fixed; inset: 0 auto 0 0; z-index: 1030; }
  .app-main { margin-left: var(--sidebar-w); }
}
.sidebar.offcanvas-lg { --bs-offcanvas-width: var(--sidebar-w); }
.sidebar-head { display: flex; align-items: center; justify-content: space-between; padding: 1.25rem 1.25rem 1rem; }
.sidebar-body { flex: 1; overflow-y: auto; padding: 0 .9rem 1rem; }
.area-badge { display: inline-flex; gap: .4rem; align-items: center; font-size: .75rem; font-weight: 700; color: var(--lw-primary); background: var(--lw-primary-50); border-radius: 999px; padding: .3rem .7rem; margin: 0 .4rem .5rem; }
.nav-group { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9aa0b8; padding: 1rem .6rem .45rem; }
.side-nav { display: flex; flex-direction: column; gap: 2px; }
.side-nav a { display: flex; align-items: center; gap: .75rem; padding: .62rem .8rem; border-radius: 10px; color: #4a5070; font-weight: 600; font-size: .92rem; transition: background .15s, color .15s; }
.side-nav a i { font-size: 1.1rem; width: 20px; text-align: center; }
.side-nav a:hover { background: #f5f6fb; color: var(--lw-ink); }
.side-nav a.active { background: var(--lw-primary-50); color: var(--lw-primary); box-shadow: inset 3px 0 0 var(--lw-primary); }
.sidebar-foot { display: flex; align-items: center; gap: .7rem; padding: 1rem 1.1rem; border-top: 1px solid var(--lw-line); }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 1020; display: flex; align-items: center; gap: .75rem; padding: .85rem 1.75rem; background: rgba(244, 246, 251, .85); backdrop-filter: blur(10px); border-bottom: 1px solid var(--lw-line); }
.topbar-title { font-weight: 700; font-size: 1.05rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.content { padding: 1.75rem; flex: 1; width: 100%; max-width: 1400px; }
.app-footer { padding: 1rem 1.75rem 1.5rem; color: var(--lw-muted); font-size: .8rem; }
.icon-btn { width: 38px; height: 38px; display: inline-grid; place-items: center; border-radius: 10px; border: 1px solid var(--lw-line); background: #fff; color: var(--lw-ink); font-size: 1.2rem; flex-shrink: 0; }
.icon-btn:hover { background: #f7f8fc; color: var(--lw-primary); }
.avatar { width: 38px; height: 38px; border-radius: 50%; display: inline-grid; place-items: center; font-weight: 700; font-size: .85rem; color: #fff; background: var(--lw-grad); flex-shrink: 0; }
.avatar.sm { width: 32px; height: 32px; font-size: .75rem; }
.avatar-btn { border: 0; background: none; padding: 0; border-radius: 50%; }
@media (max-width: 575.98px) {
  .content { padding: 1rem; }
  .topbar { padding: .7rem 1rem; }
  .card-x { padding: 1.1rem; }
}

/* ---------- Page heading ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.page-head h1 { font-size: 1.6rem; margin: 0; }
.page-head p { margin: .25rem 0 0; color: var(--lw-muted); }
.eyebrow { display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lw-primary); }

/* ---------- Hero banner (student) ---------- */
.hero-banner { position: relative; overflow: hidden; border-radius: 20px; padding: 1.75rem 2rem; color: #fff; background: var(--lw-grad); box-shadow: 0 16px 40px rgba(37, 99, 235, .25); margin-bottom: 1.5rem; }
.hero-banner::after { content: ''; position: absolute; right: -60px; top: -80px; width: 280px; height: 280px; border-radius: 50%; background: rgba(255, 255, 255, .1); }
.hero-banner::before { content: ''; position: absolute; right: 120px; bottom: -120px; width: 220px; height: 220px; border-radius: 50%; background: rgba(255, 255, 255, .07); }
.hero-banner h1 { font-size: 1.65rem; margin-bottom: .25rem; }
.hero-banner p { opacity: .85; margin: 0; }
.hero-banner > * { position: relative; z-index: 1; }
.streak-pill { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1.1rem; border-radius: 999px; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); font-weight: 600; white-space: nowrap; }
.streak-pill b { color: #fde047; }

/* ---------- Stat cards ---------- */
.stat { background: #fff; border: 1px solid var(--lw-line); border-radius: var(--lw-radius); padding: 1.15rem 1.25rem; box-shadow: var(--lw-shadow); height: 100%; }
.stat-label { font-size: .72rem; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--lw-muted); }
.stat-value { font-size: 1.75rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: .35rem 0 .2rem; }
.stat-note { font-size: .8rem; color: var(--lw-success); font-weight: 600; }
.stat-note.muted { color: var(--lw-muted); font-weight: 500; }
.stat-icon { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; font-size: 1.25rem; background: var(--lw-primary-50); color: var(--lw-primary); }

/* Solid colour tiles (admin, Edumin style) */
.tile { position: relative; overflow: hidden; border-radius: var(--lw-radius); padding: 1.25rem; color: #fff; height: 100%; box-shadow: var(--lw-shadow); display: flex; gap: 1rem; align-items: center; }
.tile::after { content: ''; position: absolute; right: -30px; top: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.tile .tile-icon { width: 54px; height: 54px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; background: #fff; font-size: 1.4rem; }
.tile .tile-label { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; opacity: .9; }
.tile .tile-value { font-size: 1.7rem; font-weight: 800; line-height: 1.15; }
.tile .tile-bar { height: 4px; background: rgba(255, 255, 255, .3); border-radius: 4px; margin: .45rem 0 .35rem; }
.tile .tile-bar span { display: block; height: 100%; border-radius: 4px; background: #fff; }
.tile .tile-note { font-size: .75rem; opacity: .9; }
.tile.indigo { background: linear-gradient(135deg, #6366f1, #4f46e5); } .tile.indigo .tile-icon { color: #4f46e5; }
.tile.amber  { background: linear-gradient(135deg, #fbbf24, #f59e0b); } .tile.amber .tile-icon { color: #d97706; }
.tile.violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); } .tile.violet .tile-icon { color: #6d28d9; }
.tile.rose   { background: linear-gradient(135deg, #fb7185, #e11d48); } .tile.rose .tile-icon { color: #e11d48; }

/* ---------- Progress bars ---------- */
.bar { height: 8px; background: #edf0f7; border-radius: 99px; overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #06b6d4, #2563eb); transition: width .6s ease; }
.bar.lg { height: 14px; }
.bar.success > span { background: linear-gradient(90deg, #4ade80, #16a34a); }
.bar.primary > span { background: linear-gradient(90deg, #818cf8, #4f46e5); }
.bar.warning > span { background: linear-gradient(90deg, #fcd34d, #f59e0b); }
.bar.danger > span  { background: linear-gradient(90deg, #fda4af, #e11d48); }
.target-wrap { position: relative; }
.target-line { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--lw-success); border-radius: 2px; }
.target-line::before { content: ''; position: absolute; top: -4px; left: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--lw-success); }
.scale { display: flex; justify-content: space-between; font-size: .7rem; color: #9aa0b8; margin-top: .3rem; }
.perf-row + .perf-row { margin-top: 1.1rem; }
.perf-row .top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .45rem; font-weight: 600; font-size: .92rem; }

/* ---------- Badges ---------- */
.chip { display: inline-flex; align-items: center; gap: .3rem; padding: .25rem .65rem; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.chip-success { background: var(--lw-success-50); color: var(--lw-success); }
.chip-primary { background: var(--lw-primary-50); color: var(--lw-primary); }
.chip-warning { background: var(--lw-warning-50); color: var(--lw-warning); }
.chip-danger  { background: var(--lw-danger-50); color: var(--lw-danger); }
.chip-muted   { background: #f0f2f8; color: var(--lw-muted); }
.text-success-x { color: var(--lw-success) !important; } .text-primary-x { color: var(--lw-primary) !important; }
.text-warning-x { color: var(--lw-warning) !important; } .text-danger-x { color: var(--lw-danger) !important; }

/* ---------- Strengths & focus areas ---------- */
.panel-strength { background: linear-gradient(160deg, #fffbea, #fff7d6); border: 1px solid #fde68a; }
.panel-focus { background: linear-gradient(160deg, #f5f6ff, #eef2ff); border: 1px solid #dfe3fb; }
.panel-head { display: flex; align-items: center; gap: .6rem; font-weight: 700; margin-bottom: .25rem; }
.panel-head .ico { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #fff; }
.mini-card { background: #fff; border: 1px solid rgba(20, 26, 51, .07); border-radius: 12px; padding: .8rem 1rem; display: flex; align-items: center; gap: .8rem; }
.mini-card + .mini-card { margin-top: .6rem; }
.mini-card .grow { flex: 1; min-width: 0; }

/* ---------- Tables ---------- */
.table-x { margin: 0; --bs-table-bg: transparent; }
.table-x thead th { font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--lw-muted); border-bottom: 1px solid var(--lw-line); padding: .8rem 1rem; white-space: nowrap; background: #fafbfe; }
.table-x td { padding: .85rem 1rem; vertical-align: middle; border-color: var(--lw-line); }
.table-x tbody tr:hover td { background: #fafbff; }
.table-x tbody tr:last-child td { border-bottom: 0; }
.card-x.p-0 .table-responsive { border-radius: var(--lw-radius); }
.toolbar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: center; padding: 1rem 1.1rem; border-bottom: 1px solid var(--lw-line); }

/* ---------- Subject / chapter cards ---------- */
.subject-tabs { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; margin-bottom: 1.25rem; scrollbar-width: thin; }
.subject-tabs a { display: inline-flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px; background: #fff; border: 1px solid var(--lw-line); color: #4a5070; font-weight: 600; white-space: nowrap; font-size: .9rem; }
.subject-tabs a.active { background: var(--lw-ink); color: #fff; border-color: var(--lw-ink); }
.chapter-card { background: #fff; border: 1px solid var(--lw-line); border-radius: var(--lw-radius); padding: 1.25rem; height: 100%; display: flex; flex-direction: column; box-shadow: var(--lw-shadow); transition: transform .15s, box-shadow .15s; }
.chapter-card:hover { transform: translateY(-2px); box-shadow: 0 12px 30px rgba(20, 26, 51, .08); }
.chapter-card .subj { font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; }
.chapter-card h5 { font-size: 1.05rem; margin: .4rem 0 .35rem; }
.chapter-card .meta { display: flex; gap: 1rem; font-size: .8rem; color: var(--lw-muted); margin: .75rem 0; }
.subject-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; color: #fff; flex-shrink: 0; }

/* ---------- Quiz ---------- */
.quiz-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.5rem; align-items: start; }
@media (max-width: 991.98px) { .quiz-layout { grid-template-columns: 1fr; } .quiz-side { order: -1; } }
.quiz-side { position: sticky; top: 84px; }
.timer { display: flex; align-items: center; gap: .6rem; font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1.5rem; }
.timer.over { color: var(--lw-danger); }
.palette { display: grid; grid-template-columns: repeat(5, 1fr); gap: .45rem; }
.palette button { aspect-ratio: 1; border-radius: 10px; border: 1px solid var(--lw-line); background: #fff; font-weight: 700; font-size: .85rem; color: #4a5070; }
.palette button.answered { background: var(--lw-success-50); border-color: #a7e3bd; color: var(--lw-success); }
.palette button.flagged { background: var(--lw-warning-50); border-color: #fcd9a0; color: var(--lw-warning); }
.palette button.current { outline: 2px solid var(--lw-primary); outline-offset: 1px; }
.legend { display: flex; flex-wrap: wrap; gap: .8rem; font-size: .75rem; color: var(--lw-muted); }
.legend span::before { content: ''; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: .35rem; vertical-align: -1px; border: 1px solid var(--lw-line); }
.legend .l-ans::before { background: var(--lw-success-50); border-color: #a7e3bd; }
.legend .l-flag::before { background: var(--lw-warning-50); border-color: #fcd9a0; }
.q-card { background: #fff; border: 1px solid var(--lw-line); border-radius: var(--lw-radius); padding: 1.75rem; box-shadow: var(--lw-shadow); }
.js .q-card { display: none; }
.js .q-card.show { display: block; animation: fadeUp .25s ease; }
.no-js-gap .q-card + .q-card { margin-top: 1rem; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.q-num { font-size: .8rem; font-weight: 700; color: var(--lw-primary); letter-spacing: .05em; text-transform: uppercase; }
.q-text { font-size: 1.2rem; font-weight: 700; margin: .6rem 0 1.25rem; line-height: 1.45; }
.option { display: flex; align-items: center; gap: .85rem; padding: .9rem 1rem; border: 1.5px solid var(--lw-line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background .15s; font-weight: 500; }
.option + .option { margin-top: .65rem; }
.option:hover { border-color: #c7c8f3; background: #fafaff; }
.option input { position: absolute; opacity: 0; pointer-events: none; }
.option .letter { width: 32px; height: 32px; flex-shrink: 0; border-radius: 9px; display: grid; place-items: center; font-weight: 700; background: #f2f3f9; color: #4a5070; font-size: .85rem; }
.option:has(input:checked) { border-color: var(--lw-primary); background: var(--lw-primary-50); }
.option:has(input:checked) .letter { background: var(--lw-primary); color: #fff; }
.option:has(input:focus-visible) { box-shadow: 0 0 0 .25rem rgba(91, 91, 214, .2); }
.quiz-progress { height: 6px; }

/* ---------- Result ---------- */
.score-ring { --p: 0; --c: var(--lw-primary); width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--c) calc(var(--p) * 1%), #edf0f7 0); margin: 0 auto; }
.score-ring > div { width: 136px; height: 136px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; }
.score-ring b { font-size: 2.1rem; font-weight: 800; display: block; line-height: 1; }
.review-item { border-radius: 14px; padding: 1.25rem; border: 1px solid var(--lw-line); background: #fff; margin-bottom: 1rem; }
.review-item.correct { background: #f3fbf6; border-color: #cdeedb; }
.review-item.wrong { background: #fff6f7; border-color: #f8d4dc; }
.review-item.skipped { background: #fffaf0; border-color: #fbe3b5; }
.review-opt { display: flex; align-items: center; gap: .7rem; padding: .6rem .85rem; border-radius: 10px; border: 1px solid var(--lw-line); background: #fff; font-size: .93rem; }
.review-opt + .review-opt { margin-top: .45rem; }
.review-opt.is-correct { border-color: #86d9a6; background: #ecfaf1; color: #0f6f35; font-weight: 600; }
.review-opt.is-wrong { border-color: #f4a7b8; background: #fff0f3; color: #a3133b; font-weight: 600; }
.review-opt i { font-size: 1.05rem; }
.explain { margin-top: .85rem; padding: .75rem .9rem; border-radius: 10px; background: rgba(255, 255, 255, .8); border: 1px dashed #d6d9e8; font-size: .9rem; }
.filter-pills .btn { border-radius: 999px; }

/* ---------- Pagination ---------- */
.pagination { --bs-pagination-border-radius: 10px; --bs-pagination-color: var(--lw-ink); --bs-pagination-active-bg: var(--lw-primary); --bs-pagination-active-border-color: var(--lw-primary); --bs-pagination-border-color: var(--lw-line); gap: .3rem; }
.pagination .page-link { border-radius: 10px !important; min-width: 38px; text-align: center; font-weight: 600; }

/* ---------- Empty states ---------- */
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--lw-muted); }
.empty i { font-size: 2.4rem; display: block; margin-bottom: .6rem; color: #c3c7da; }

/* ---------- Public pages ---------- */
.public-nav { background: rgba(255, 255, 255, .9); backdrop-filter: blur(10px); border-bottom: 1px solid var(--lw-line); padding: .8rem 0; }
.public-nav .nav-link { font-weight: 600; color: #4a5070; }
.public-nav .nav-link:hover { color: var(--lw-primary); }
.landing-hero { position: relative; overflow: hidden; padding: 5rem 0 4rem; background: radial-gradient(900px 400px at 85% 10%, #e0e7ff 0, transparent 60%), radial-gradient(700px 400px at 0% 90%, #cffafe 0, transparent 60%), #f8f9ff; }
.landing-hero h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); font-weight: 800; letter-spacing: -.035em; line-height: 1.08; }
.grad-text { background: var(--lw-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-mock { background: #fff; border-radius: 22px; padding: 1.25rem; box-shadow: 0 30px 60px rgba(20, 26, 51, .12); border: 1px solid var(--lw-line); }
.hero-mock .mock-banner { border-radius: 14px; background: var(--lw-grad); color: #fff; padding: 1rem 1.1rem; }
.floating-badge { position: absolute; background: #fff; border-radius: 14px; padding: .7rem .9rem; box-shadow: 0 16px 40px rgba(20, 26, 51, .14); display: flex; gap: .6rem; align-items: center; font-size: .85rem; font-weight: 600; }
.section { padding: 4.5rem 0; }
.section-title { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.025em; }
.feature { background: #fff; border: 1px solid var(--lw-line); border-radius: 18px; padding: 1.5rem; height: 100%; transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: 0 18px 40px rgba(20, 26, 51, .08); }
.feature-icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; margin-bottom: 1rem; }
.step-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--lw-grad); margin-bottom: 1rem; }
.cta { border-radius: 24px; background: var(--lw-grad); color: #fff; padding: 3rem 2rem; text-align: center; }
.public-footer { padding: 2rem 0; border-top: 1px solid var(--lw-line); background: #fff; }

/* Auth pages */
.auth-wrap { min-height: calc(100vh - 140px); display: grid; place-items: center; padding: 2.5rem 1rem; background: radial-gradient(700px 400px at 100% 0, #e0e7ff 0, transparent 60%), radial-gradient(600px 400px at 0 100%, #cffafe 0, transparent 60%), var(--lw-bg); }
.auth-card { width: 100%; max-width: 940px; display: grid; grid-template-columns: 1fr 1.1fr; background: #fff; border-radius: 24px; overflow: hidden; box-shadow: 0 30px 70px rgba(20, 26, 51, .12); border: 1px solid var(--lw-line); }
.auth-side { background: var(--lw-grad); color: #fff; padding: 2.5rem; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ''; position: absolute; width: 260px; height: 260px; border-radius: 50%; background: rgba(255, 255, 255, .1); right: -80px; bottom: -80px; }
.auth-side li { margin-bottom: .7rem; }
.auth-form { padding: 2.5rem; }
@media (max-width: 767.98px) { .auth-card { grid-template-columns: 1fr; } .auth-side { display: none; } .auth-form { padding: 1.75rem; } }
.demo-box { background: var(--lw-primary-50); border-radius: 12px; padding: .75rem 1rem; font-size: .83rem; }
.demo-box code { color: var(--lw-primary-600); }

/* ---------- Print (performance report for parents) ---------- */
@media print {
  .sidebar, .topbar, .app-footer, .no-print, .btn { display: none !important; }
  .app-main { margin: 0 !important; }
  .content { padding: 0 !important; max-width: none; }
  body { background: #fff; }
  .card-x, .stat { box-shadow: none !important; break-inside: avoid; }
  .print-only { display: block !important; }
}
.print-only { display: none; }
