/* ============================================================
   EduPredict — Student Dropout Prediction UI
   Redesigned shell: CSS-grid app layout, zero horizontal scroll.
   ============================================================ */

/* ===== Design tokens ===== */
:root {
  --primary: #2563EB;
  --primary-dark: #1D4ED8;
  --primary-soft: #EFF4FF;
  --secondary: #0F172A;
  --sidebar: #0B1220;
  --success: #16A34A;
  --warning: #D97706;
  --danger: #DC2626;

  --bg: #F4F6FB;
  --card: #FFFFFF;
  --border: #E6EAF2;
  --text: #0F172A;
  --muted: #6B7689;
  --muted-soft: #94A1B5;

  --radius: 16px;
  --radius-sm: 12px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .04), 0 6px 20px rgba(15, 23, 42, .05);
  --shadow-hover: 0 6px 14px rgba(15, 23, 42, .08), 0 18px 44px rgba(15, 23, 42, .10);

  --sidebar-w: 260px;
  --content-max: 1320px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; max-width: 100%; overflow-x: hidden; }

body {
  font-family: 'Poppins', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  height: 100vh;
  overflow: hidden;
}

/* Fixed-height app shell: the page itself never scrolls — only the sidebar
   and the main panel scroll INTERNALLY. This keeps the sidebar height locked
   to the viewport so it can never mismatch / overflow against the content.
   The 1fr column gets min-width:0 so canvases/tables shrink, not the page. */
.app-shell {
  height: 100vh;
  overflow: hidden;
  display: grid;
  grid-template-columns: var(--sidebar-w) minmax(0, 1fr);
}
[hidden] { display: none !important; }

/* ===== Sidebar ===== */
.sidebar {
  grid-column: 1;
  background: var(--sidebar);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 26px 16px;
  height: 100vh;            /* matches the shell; scrolls internally if tall */
  overflow-y: auto;
  transition: transform .28s cubic-bezier(.4, 0, .2, 1);
  z-index: 50;
}
.brand { display: flex; align-items: center; gap: 12px; padding: 4px 10px 30px; }
.brand-logo {
  width: 42px; height: 42px; border-radius: 12px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 22px;
  background: linear-gradient(135deg, var(--primary), #6366F1);
  box-shadow: 0 6px 16px rgba(37, 99, 235, .45);
}
.brand-text { font-weight: 700; font-size: 19px; letter-spacing: .2px; }

.nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.nav-label {
  font-size: 11px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--muted-soft); padding: 6px 14px 8px; font-weight: 600;
}
.nav-item {
  display: flex; align-items: center; gap: 13px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  color: #C5CDDD; font-weight: 500; cursor: pointer;
  transition: background .18s ease, color .18s ease; font-size: 14.5px;
  user-select: none;
}
.nav-item .ic { font-size: 16px; width: 20px; text-align: center; flex-shrink: 0; }
.nav-item:hover { background: rgba(255, 255, 255, .07); color: #fff; }
.nav-item.active {
  background: var(--primary); color: #fff;
  box-shadow: 0 8px 20px rgba(37, 99, 235, .42);
}
.sidebar-foot { padding-top: 14px; border-top: 1px solid rgba(255, 255, 255, .08); }
.model-chip {
  font-size: 12.5px; color: #B7C0D2;
  background: rgba(255, 255, 255, .05); padding: 11px 13px; border-radius: var(--radius-sm);
}
.model-chip strong { color: #fff; }

/* ===== Main column ===== */
/* Its own scroll container: topbar stays pinned, only the views scroll. */
.main { grid-column: 2; min-width: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; }

.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(244, 246, 251, .82); backdrop-filter: blur(10px);
  display: flex; align-items: center; gap: 14px;
  padding: 16px 32px; border-bottom: 1px solid var(--border);
}
.hamburger {
  display: none; background: var(--card); border: 1px solid var(--border);
  width: 40px; height: 40px; border-radius: 10px; font-size: 18px; cursor: pointer;
  align-items: center; justify-content: center;
}
.page-title { font-weight: 600; font-size: 21px; flex: 1; min-width: 0; }
.top-actions { display: flex; align-items: center; gap: 16px; flex-shrink: 0; }
.bell { font-size: 18px; cursor: pointer; opacity: .8; }
.avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #6366F1); color: #fff;
  font-weight: 600; display: grid; place-items: center; font-size: 14px;
}

/* ===== Views ===== */
.view { display: none; padding: 28px 32px 40px; max-width: var(--content-max); width: 100%; margin: 0 auto; }
.view.active { display: block; animation: fade .35s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

/* ===== Cards ===== */
.card {
  background: var(--card); border: 1px solid var(--border);
  border-radius: var(--radius); box-shadow: var(--shadow);
  padding: 22px; min-width: 0;
  transition: transform .22s ease, box-shadow .22s ease;
}
.card h3 { font-size: 15.5px; font-weight: 600; margin-bottom: 16px; }

/* ===== KPI ===== */
.kpi-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; margin-bottom: 22px; }
.kpi { position: relative; overflow: hidden; }
.kpi::before {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: var(--primary);
}
.kpi.is-danger::before { background: var(--danger); }
.kpi.is-warn::before { background: var(--warning); }
.kpi.is-ok::before { background: var(--success); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.kpi-label { color: var(--muted); font-size: 13.5px; font-weight: 500; }
.kpi-ic {
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  font-size: 18px; background: var(--primary-soft); flex-shrink: 0;
}
.kpi.is-danger .kpi-ic { background: #FEECEC; }
.kpi.is-warn .kpi-ic { background: #FEF3E2; }
.kpi.is-ok .kpi-ic { background: #E7F7ED; }
.kpi-value { font-size: 32px; font-weight: 700; margin: 10px 0 4px; line-height: 1.1; }
.kpi-value.danger { color: var(--danger); }
.kpi-value.warn { color: var(--warning); }
.kpi-foot { color: var(--muted-soft); font-size: 12px; }

/* ===== Charts ===== */
.chart-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.chart-card { min-width: 0; }
.chart-card.wide { grid-column: 1 / -1; }
/* Fixed-height relative wrapper keeps Chart.js from ever pushing layout wider. */
.canvas-wrap { position: relative; height: 280px; width: 100%; }
.canvas-wrap canvas { position: absolute; inset: 0; }
.chart-card.wide .canvas-wrap { height: 340px; }

/* ===== Prediction ===== */
.predict-layout { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.muted { color: var(--muted); font-size: 13.5px; margin-bottom: 18px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 15px; }
.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.field input, .field select {
  height: 44px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 14px; font-family: inherit; font-size: 14px; background: #fff; color: var(--text);
  width: 100%; transition: border .18s ease, box-shadow .18s ease;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .14);
}
.btn-field { grid-column: 1 / -1; margin-top: 4px; }

/* ===== Buttons ===== */
.btn {
  border: none; cursor: pointer; font-family: inherit; font-weight: 600;
  border-radius: var(--radius-sm); padding: 12px 20px; font-size: 14px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  transition: transform .14s ease, box-shadow .2s ease, background .18s ease, color .18s ease;
}
.btn.primary { background: var(--primary); color: #fff; width: 100%; }
.btn.primary:hover { background: var(--primary-dark); box-shadow: 0 8px 22px rgba(37, 99, 235, .38); }
.btn.primary:active { transform: scale(.99); }
.btn.secondary { background: #fff; color: var(--primary); border: 1.5px solid var(--border); }
.btn.secondary:hover:not(:disabled) { border-color: var(--primary); background: var(--primary-soft); }
.btn.danger { background: #fff; color: var(--danger); border: 1.5px solid var(--border); }
.btn.danger:hover:not(:disabled) { border-color: var(--danger); background: #FEF2F2; }
.btn:disabled { opacity: .6; cursor: not-allowed; }

/* ===== Students toolbar ===== */
.table-toolbar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.table-toolbar .btn { padding: 9px 15px; font-size: 13.5px; }
.table-toolbar .danger { margin-left: auto; }
@media (max-width: 560px) {
  .table-toolbar .btn { flex: 1 1 calc(50% - 10px); }
  .table-toolbar .danger { margin-left: 0; }
}

/* ===== Result card ===== */
.result-card { display: flex; flex-direction: column; align-items: center; justify-content: center; }
.result-empty { text-align: center; color: var(--muted); padding: 24px 8px; }
.big-emoji { font-size: 46px; margin-bottom: 12px; opacity: .9; }
.result-content { width: 100%; text-align: center; }
.gauge-wrap { position: relative; width: 168px; height: 168px; margin: 4px auto 18px; }
.gauge { transform: rotate(-90deg); width: 168px; height: 168px; }
.gauge-bg { fill: none; stroke: var(--border); stroke-width: 11; }
.gauge-fg {
  fill: none; stroke: var(--primary); stroke-width: 11; stroke-linecap: round;
  stroke-dasharray: 327; stroke-dashoffset: 327;
  transition: stroke-dashoffset 1s cubic-bezier(.4, 0, .2, 1), stroke .4s ease;
}
.gauge-label { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.gauge-label span { font-size: 32px; font-weight: 700; }
.gauge-label small { color: var(--muted); font-size: 12px; }
.result-title { font-size: 19px; font-weight: 600; margin-bottom: 10px; }
.factors { text-align: left; margin-top: 22px; }
.factors h4 { font-size: 13.5px; margin-bottom: 10px; }
.factors ul { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.factors li {
  background: var(--bg); border: 1px solid var(--border); border-radius: 10px;
  padding: 10px 14px; font-size: 13px; font-weight: 500;
}

/* ===== Badges ===== */
.badge { display: inline-block; padding: 5px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap; }
.badge.low { background: #DCFCE7; color: #15803D; }
.badge.medium { background: #FEF3C7; color: #B45309; }
.badge.high { background: #FEE2E2; color: var(--danger); }

/* ===== Table ===== */
.table-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 16px; flex-wrap: wrap; }
.search {
  height: 42px; border: 1px solid var(--border); border-radius: var(--radius-sm);
  padding: 0 16px; font-family: inherit; font-size: 14px; min-width: 240px; background: #fff;
}
.search:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.table-scroll { overflow-x: auto; border-radius: var(--radius-sm); border: 1px solid var(--border); -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
thead th {
  position: sticky; top: 0; background: var(--secondary); color: #fff;
  text-align: left; padding: 13px 16px; font-weight: 600; font-size: 12.5px; white-space: nowrap;
}
tbody td { padding: 12px 16px; border-bottom: 1px solid var(--border); white-space: nowrap; }
tbody tr:last-child td { border-bottom: none; }
tbody tr:nth-child(even) { background: #FAFBFE; }
tbody tr:hover { background: var(--primary-soft); }
.pagination { display: flex; align-items: center; justify-content: center; gap: 18px; margin-top: 18px; }
.pagination .btn { padding: 8px 18px; }
#pageInfo { color: var(--muted); font-weight: 500; font-size: 13.5px; }

/* ===== Toast ===== */
.toast {
  position: fixed; bottom: 24px; right: 24px; background: var(--secondary);
  color: #fff; padding: 13px 20px; border-radius: var(--radius-sm); box-shadow: var(--shadow-hover);
  opacity: 0; transform: translateY(20px); transition: all .3s ease; pointer-events: none; z-index: 100;
  font-size: 14px; max-width: calc(100vw - 48px);
}
.toast.show { opacity: 1; transform: none; }

/* ===== Spinner ===== */
.spinner {
  width: 16px; height: 16px; border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff; border-radius: 50%; display: inline-block;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ===== Sidebar backdrop (mobile) ===== */
.sidebar-overlay {
  display: none; position: fixed; inset: 0;
  background: rgba(11, 18, 32, .55); backdrop-filter: blur(2px);
  z-index: 45; opacity: 0; transition: opacity .25s ease;
}
.sidebar-overlay.show { display: block; opacity: 1; }
@media (min-width: 769px) { .sidebar-overlay { display: none !important; } }

/* Desktop-only hover lift on cards (kept off touch to avoid sticky hover). */
@media (hover: hover) and (pointer: fine) {
  .card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
}

/* ===== How It Works (visualizer) ===== */
.viz-intro { margin-bottom: 20px; }
.viz-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 20px; align-items: start; }
.viz-stage { min-height: 420px; }

/* Pipeline progress chips */
.viz-steps { display: flex; flex-wrap: nowrap; gap: 6px; margin-bottom: 14px; }
.vstep {
  flex: 1 1 0; min-width: 86px; text-align: center; font-size: 12.5px; font-weight: 600;
  padding: 9px 8px; border-radius: var(--radius-sm); background: var(--primary-soft);
  color: var(--muted); border: 1.5px solid transparent; transition: all .35s ease; opacity: .55;
}
.vstep.active { opacity: 1; color: var(--primary); border-color: var(--primary); background: #fff; }
.vstep.done { opacity: 1; color: var(--secondary); background: #ECFDF5; }

.viz-panel { animation: fade .45s ease; margin-bottom: 8px; }
.viz-panel h4 { font-size: 15px; margin-bottom: 10px; }
.viz-result { margin-top: 12px; font-size: 14px; color: var(--muted); }
.viz-result strong { color: var(--secondary); font-size: 17px; }

/* Feature chips (compact context bar, always visible) */
#vizFeatures { margin-bottom: 14px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
#vizFeatures h4 { font-size: 12.5px; color: var(--muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.feat-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.feat-chip {
  font-size: 12.5px; padding: 7px 12px; border-radius: 999px; background: var(--primary-soft);
  color: var(--secondary); border: 1px solid var(--border); opacity: 0; transform: scale(.8);
  animation: chipIn .35s forwards;
}
.feat-chip b { color: var(--primary); }
@keyframes chipIn { to { opacity: 1; transform: scale(1); } }

/* Forest grid */
.forest-grid {
  display: grid; grid-template-columns: repeat(14, 1fr); gap: 6px; margin-bottom: 18px;
}
.tree-cell {
  aspect-ratio: 1; border-radius: 7px; background: #E2E8F0; display: flex;
  align-items: center; justify-content: center; font-size: 13px; color: #fff;
  opacity: 0; transform: scale(.3) rotate(-25deg); transition: background .3s ease;
}
.tree-cell.show { animation: treePop .32s forwards; }
.tree-cell.continue { background: var(--success, #22C55E); }
.tree-cell.dropout { background: var(--danger); }
@keyframes treePop { to { opacity: 1; transform: scale(1) rotate(0); } }

/* Vote bars */
.vote-bars { display: flex; flex-direction: column; gap: 10px; }
.vote-row { display: flex; align-items: center; gap: 10px; }
.vote-tag { font-size: 12px; font-weight: 600; width: 66px; text-align: right; }
.vote-tag.continue { color: #15803D; }
.vote-tag.dropout { color: var(--danger); }
.vote-track { flex: 1; height: 16px; background: #EEF2F7; border-radius: 999px; overflow: hidden; }
.vote-fill { height: 100%; width: 0; border-radius: 999px; transition: width .25s ease; }
.vote-fill.continue { background: #22C55E; }
.vote-fill.dropout { background: var(--danger); }
.vote-num { width: 34px; font-weight: 700; font-size: 14px; }

/* Verdict compare */
.verdict-compare { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.verdict-mini { border: 1.5px solid var(--border); border-radius: var(--radius-sm); padding: 16px; text-align: center; }
.verdict-mini.primary-pick { border-color: var(--primary); background: var(--primary-soft); }
.vm-label { font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 6px; }
.vm-prob { font-size: 28px; font-weight: 700; color: var(--secondary); }
.pick-tag { font-size: 10px; background: var(--primary); color: #fff; padding: 2px 7px; border-radius: 999px; vertical-align: middle; }

/* ===== Responsive ===== */
@media (max-width: 1024px) {
  .kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .predict-layout { grid-template-columns: 1fr; }
  .viz-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .app-shell { grid-template-columns: 1fr; }    /* sidebar leaves the flow */
  .sidebar {
    position: fixed; left: 0; top: 0; width: var(--sidebar-w);
    transform: translateX(-100%);
    box-shadow: 0 0 50px rgba(0, 0, 0, .4);
  }
  .sidebar.open { transform: none; }
  .main { grid-column: 1; }
  .hamburger { display: inline-flex; }
  .chart-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }

  .topbar { padding: 13px 16px; gap: 12px; }
  .page-title { font-size: 19px; }
  .view { padding: 20px 16px 32px; }
  .card { padding: 18px; }

  .table-head { flex-direction: column; align-items: stretch; }
  .search { min-width: 0; width: 100%; }

  /* Stop iOS Safari from auto-zooming on focus. */
  .field input, .field select, .search { font-size: 16px; }

  /* Visualizer: keep the form 2-up so it doesn't become a tall column. */
  #vizForm.form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
  #vizForm .field label { font-size: 11.5px; }
  #vizForm .field input, #vizForm .field select { height: 42px; padding: 0 10px; }
  .viz-stage { min-height: 0; }
  .viz-steps .vstep { padding: 7px 4px; }
}

@media (max-width: 480px) {
  .kpi-grid { grid-template-columns: 1fr; gap: 14px; }
  .kpi-value { font-size: 28px; }
  .page-title { font-size: 17px; }
  .bell { display: none; }
  .view { padding: 16px 12px 28px; }
  .canvas-wrap { height: 240px; }
  .gauge-wrap, .gauge { width: 150px; height: 150px; }
  .forest-grid { grid-template-columns: repeat(10, 1fr); }
  .vstep { min-width: 70px; font-size: 11.5px; }
}

/* ============================================================
   Login / role selection
   ============================================================ */
.auth-screen {
  position: fixed; inset: 0; z-index: 200;
  display: grid; place-items: center; padding: 24px;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(99, 102, 241, .35), transparent 60%),
    radial-gradient(900px 500px at -10% 110%, rgba(37, 99, 235, .30), transparent 55%),
    var(--sidebar);
  overflow-y: auto;
}
.auth-card {
  width: 100%; max-width: 440px; background: var(--card);
  border-radius: var(--radius-lg); box-shadow: 0 24px 70px rgba(0, 0, 0, .45);
  padding: 30px; animation: fade .4s ease;
}
.auth-brand { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.auth-title { font-weight: 700; font-size: 22px; line-height: 1.1; }
.auth-sub { font-size: 12.5px; color: var(--muted); }
.auth-step { display: flex; flex-direction: column; gap: 14px; }
.auth-lead { font-size: 15px; font-weight: 600; color: var(--secondary); }
.auth-step .field { gap: 7px; }
.auth-step .btn.primary { margin-top: 4px; }
.auth-back {
  background: none; border: none; color: var(--muted); cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 500; padding: 4px;
}
.auth-back:hover { color: var(--primary); }
.auth-hint { font-size: 12px; color: var(--muted-soft); text-align: center; margin-top: 2px; }
.auth-hint code { background: var(--bg); padding: 2px 6px; border-radius: 6px; color: var(--secondary); }
.auth-err {
  background: #FEF2F2; color: var(--danger); border: 1px solid #FECACA;
  border-radius: var(--radius-sm); padding: 10px 13px; font-size: 13px; font-weight: 500;
}

.role-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.role-card {
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  text-align: left; cursor: pointer; font-family: inherit;
  border: 1.5px solid var(--border); border-radius: var(--radius); padding: 18px 16px;
  background: #fff; transition: border .18s ease, box-shadow .2s ease, transform .14s ease;
}
.role-card:hover { border-color: var(--primary); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.role-ic { font-size: 28px; }
.role-name { font-weight: 700; font-size: 16px; color: var(--secondary); }
.role-desc { font-size: 12px; color: var(--muted); line-height: 1.4; }
@media (max-width: 420px) { .role-grid { grid-template-columns: 1fr; } }

/* ============================================================
   Shared topbar controls (role pill + logout)
   ============================================================ */
.role-pill {
  font-size: 12.5px; font-weight: 600; color: var(--primary);
  background: var(--primary-soft); padding: 6px 12px; border-radius: 999px; white-space: nowrap;
}
.logout-btn { padding: 8px 16px; font-size: 13px; }
.field label .opt { color: var(--muted-soft); font-weight: 400; font-size: 11px; }

/* ============================================================
   Student app
   ============================================================ */
.student-app { height: 100vh; overflow-y: auto; background: var(--bg); }
.student-topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(244, 246, 251, .85); backdrop-filter: blur(10px);
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 32px; border-bottom: 1px solid var(--border);
}
.student-topbar .brand { padding: 0; }
.student-topbar .brand-text { color: var(--secondary); }
.student-main { max-width: var(--content-max); margin: 0 auto; padding: 28px 32px 48px; }

.student-hero { display: flex; align-items: center; gap: 20px; margin-bottom: 22px; }
.stu-avatar {
  width: 64px; height: 64px; border-radius: 18px; flex-shrink: 0;
  display: grid; place-items: center; font-size: 26px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--primary), #6366F1);
  box-shadow: 0 8px 20px rgba(37, 99, 235, .4);
}
.stu-id { flex: 1; min-width: 0; }
.stu-id h2 { font-size: 22px; font-weight: 700; }
.stu-risk { text-align: center; flex-shrink: 0; }
.stu-risk .badge { font-size: 14px; padding: 7px 16px; }
.stu-risk-label { font-size: 11.5px; color: var(--muted); margin-top: 6px; }
.student-kpis { margin-bottom: 22px; }

.student-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; }

.prog-row { margin-bottom: 18px; }
.prog-row:last-child { margin-bottom: 0; }
.prog-head { display: flex; justify-content: space-between; font-size: 13.5px; margin-bottom: 7px; }
.prog-head b { color: var(--secondary); }
.prog-track { height: 12px; background: #EEF2F7; border-radius: 999px; overflow: hidden; }
.prog-fill {
  height: 100%; width: 0; border-radius: 999px; background: var(--primary);
  transition: width .8s cubic-bezier(.4, 0, .2, 1);
}
.prog-fill.ok { background: linear-gradient(90deg, var(--success), #22C55E); }
.prog-sub { font-size: 12px; color: var(--muted); margin-top: 6px; }

.detail-list { list-style: none; display: flex; flex-direction: column; }
.detail-list li {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 11px 2px; border-bottom: 1px solid var(--border); font-size: 13.5px;
}
.detail-list li:last-child { border-bottom: none; }
.detail-list .dl-key { color: var(--muted); }
.detail-list .dl-val { font-weight: 600; color: var(--secondary); text-align: right; }

@media (max-width: 900px) { .student-grid { grid-template-columns: 1fr; } }
@media (max-width: 768px) {
  .student-topbar { padding: 13px 16px; }
  .student-main { padding: 20px 16px 36px; }
  .student-hero { flex-wrap: wrap; }
}

/* ============================================================
   AI study-helper chatbot
   ============================================================ */
.chat-fab {
  position: fixed; bottom: 24px; right: 24px; z-index: 120;
  width: 60px; height: 60px; border-radius: 50%; border: none; cursor: pointer;
  background: linear-gradient(135deg, var(--primary), #6366F1); color: #fff;
  box-shadow: 0 10px 28px rgba(37, 99, 235, .5); font-size: 26px;
  display: grid; place-items: center; transition: transform .18s ease, box-shadow .2s ease;
}
.chat-fab:hover { transform: translateY(-2px) scale(1.05); box-shadow: var(--shadow-hover); }
.chat-fab.active { transform: scale(.9); opacity: .92; }

.chat-window {
  position: fixed; bottom: 96px; right: 24px; z-index: 120;
  width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100vh - 140px));
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28); display: flex; flex-direction: column;
  overflow: hidden; animation: fade .25s ease;
}
.chat-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 16px; color: #fff;
  background: linear-gradient(135deg, var(--primary), #6366F1);
}
.chat-title { font-weight: 600; font-size: 15px; display: flex; align-items: center; gap: 8px; }
.chat-dot { width: 9px; height: 9px; border-radius: 50%; background: #4ADE80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .3); }
.chat-close { background: none; border: none; color: #fff; font-size: 16px; cursor: pointer; opacity: .9; }
.chat-close:hover { opacity: 1; }

.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.chat-msg {
  max-width: 85%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5;
  white-space: pre-wrap; word-wrap: break-word;
}
.chat-msg.bot { background: #fff; border: 1px solid var(--border); border-bottom-left-radius: 4px; align-self: flex-start; }
.chat-msg.user { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.chat-msg.typing { color: var(--muted); font-style: italic; }

.chat-input { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--border); background: var(--card); }
.chat-input input {
  flex: 1; height: 42px; border: 1px solid var(--border); border-radius: 999px;
  padding: 0 16px; font-family: inherit; font-size: 14px; background: #fff; color: var(--text);
}
.chat-input input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(37, 99, 235, .14); }
.chat-send {
  width: 42px; height: 42px; flex-shrink: 0; border: none; border-radius: 50%; cursor: pointer;
  background: var(--primary); color: #fff; font-size: 15px; display: grid; place-items: center;
  transition: background .18s ease;
}
.chat-send:hover { background: var(--primary-dark); }
.chat-send:disabled { opacity: .5; cursor: not-allowed; }

@media (max-width: 768px) {
  .chat-fab { bottom: 18px; right: 18px; }
  .chat-window { bottom: 86px; right: 12px; left: 12px; width: auto; height: min(70vh, 520px); }
}

/* ============================================================
   MARKETING LANDING PAGE  —  dark / premium
   ============================================================ */
:root {
  --lp-bg: #070B16;
  --lp-bg2: #0B1220;
  --lp-card: #101A2E;
  --lp-card2: #0E1728;
  --lp-border: rgba(255,255,255,.09);
  --lp-border-2: rgba(255,255,255,.14);
  --lp-text: #EAF0FB;
  --lp-muted: #93A1BC;
  --lp-accent: #3B82F6;
  --lp-accent2: #6366F1;
  --lp-cyan: #22D3EE;
}

/* Own fixed, independently-scrolling dark surface (body is locked to 100vh) */
.landing {
  position: fixed; inset: 0; z-index: 150;
  overflow-y: auto; overflow-x: hidden;
  background: var(--lp-bg);
  color: var(--lp-text);
  scroll-behavior: smooth;
}
.landing .landing-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(900px 520px at 82% -8%, rgba(59,130,246,.28), transparent 60%),
    radial-gradient(760px 480px at 6% 6%, rgba(99,102,241,.22), transparent 55%),
    radial-gradient(700px 700px at 60% 120%, rgba(34,211,238,.10), transparent 60%);
}
.landing > *:not(.landing-bg) { position: relative; z-index: 1; }
.landing a { text-decoration: none; color: inherit; }

/* ---- Landing button variants ---- */
.landing .btn { width: auto; }
.btn.glow {
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent2));
  color: #fff; box-shadow: 0 10px 30px rgba(59,130,246,.45);
}
.btn.glow:hover { box-shadow: 0 14px 40px rgba(59,130,246,.62); transform: translateY(-2px); }
.btn.glow:active { transform: translateY(0); }
.btn.ghost-light {
  background: rgba(255,255,255,.05); color: var(--lp-text);
  border: 1.5px solid var(--lp-border-2);
}
.btn.ghost-light:hover { background: rgba(255,255,255,.11); border-color: rgba(255,255,255,.28); }
.btn.lg { padding: 15px 26px; font-size: 15px; }

/* ---- Nav ---- */
.lp-nav {
  position: sticky; top: 0; z-index: 40;
  display: flex; align-items: center; gap: 20px;
  padding: 15px clamp(18px, 5vw, 60px);
  background: rgba(7,11,22,.72); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--lp-border);
}
.lp-brand { display: flex; align-items: center; gap: 11px; margin-right: auto; }
.lp-brand-text { font-weight: 700; font-size: 19px; letter-spacing: .2px; }
.lp-links { display: flex; gap: 26px; }
.lp-links a { color: var(--lp-muted); font-weight: 500; font-size: 14.5px; transition: color .18s; }
.lp-links a:hover { color: #fff; }
.lp-nav-actions { display: flex; gap: 10px; margin-left: 8px; }
.lp-burger {
  display: none; background: rgba(255,255,255,.06); border: 1px solid var(--lp-border-2);
  color: #fff; width: 42px; height: 42px; border-radius: 11px; font-size: 18px; cursor: pointer;
}

/* ---- Hero ---- */
.lp-hero {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center;
  max-width: 1200px; margin: 0 auto; padding: clamp(48px, 8vw, 96px) clamp(18px,5vw,60px) 40px;
}
.lp-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(59,130,246,.12); border: 1px solid rgba(59,130,246,.3);
  color: #BFD4FF; font-size: 13px; font-weight: 500;
  padding: 7px 14px; border-radius: 999px; margin-bottom: 22px;
}
.lp-pill-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--lp-cyan); box-shadow: 0 0 10px var(--lp-cyan); animation: lp-pulse 1.8s infinite; }
@keyframes lp-pulse { 0%,100%{opacity:1} 50%{opacity:.35} }
.lp-title { font-size: clamp(34px, 5.2vw, 58px); line-height: 1.05; font-weight: 700; letter-spacing: -.5px; }
.lp-grad {
  background: linear-gradient(100deg, #60A5FA, #818CF8 55%, #22D3EE);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lp-lead { color: var(--lp-muted); font-size: clamp(15px,1.6vw,18px); line-height: 1.6; margin: 22px 0 30px; max-width: 540px; }
.lp-cta-row { display: flex; flex-wrap: wrap; gap: 14px; }
.lp-cta-row.center { justify-content: center; }
.lp-trust { display: flex; align-items: center; gap: 22px; margin-top: 40px; }
.lp-trust-item { display: flex; flex-direction: column; }
.lp-trust-item b { font-size: 22px; font-weight: 700; }
.lp-trust-item span { font-size: 12.5px; color: var(--lp-muted); }
.lp-trust-sep { width: 1px; height: 34px; background: var(--lp-border-2); }

/* ---- Hero visual / mockup ---- */
.lp-hero-visual { position: relative; display: grid; place-items: center; min-height: 380px; }
.lp-glow-orb {
  position: absolute; width: 340px; height: 340px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,.5), transparent 65%);
  filter: blur(30px); z-index: 0;
}
.lp-mock {
  position: relative; z-index: 1; width: min(420px, 100%);
  background: linear-gradient(180deg, var(--lp-card), var(--lp-card2));
  border: 1px solid var(--lp-border-2); border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.5); overflow: hidden;
  animation: lp-float 5s ease-in-out infinite;
}
@keyframes lp-float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-10px)} }
.lp-mock-top { display: flex; align-items: center; gap: 7px; padding: 13px 16px; border-bottom: 1px solid var(--lp-border); }
.lp-dot { width: 11px; height: 11px; border-radius: 50%; }
.lp-dot.r{background:#F87171}.lp-dot.y{background:#FBBF24}.lp-dot.g{background:#34D399}
.lp-mock-title { margin-left: 8px; font-size: 13px; color: var(--lp-muted); font-weight: 500; }
.lp-mock-body { padding: 18px; display: flex; flex-direction: column; gap: 16px; }
.lp-mock-kpis { display: grid; grid-template-columns: repeat(3,1fr); gap: 10px; }
.lp-mk { background: rgba(255,255,255,.04); border: 1px solid var(--lp-border); border-radius: 12px; padding: 12px; }
.lp-mk-l { display: block; font-size: 11px; color: var(--lp-muted); }
.lp-mk-v { font-size: 20px; font-weight: 700; }
.lp-mk.danger .lp-mk-v { color: #F87171; }
.lp-mk.warn .lp-mk-v { color: #FBBF24; }
.lp-mock-chart { display: flex; align-items: flex-end; gap: 9px; height: 96px; padding: 8px 4px 0; }
.lp-bar { flex: 1; height: var(--h); border-radius: 6px 6px 0 0; background: linear-gradient(180deg, #60A5FA, #3B82F6); opacity: .85; animation: lp-grow 1s ease both; }
.lp-bar.hot { background: linear-gradient(180deg, #A78BFA, #6366F1); box-shadow: 0 0 18px rgba(129,140,248,.6); opacity: 1; }
@keyframes lp-grow { from{height:0} }
.lp-mock-gauge { display: flex; align-items: center; gap: 14px; background: rgba(255,255,255,.03); border: 1px solid var(--lp-border); border-radius: 12px; padding: 12px 14px; }
.lp-gauge-ring {
  width: 58px; height: 58px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center;
  font-size: 14px; font-weight: 700;
  background: conic-gradient(#6366F1 0 94%, rgba(255,255,255,.08) 94% 100%);
  position: relative;
}
.lp-gauge-ring::after { content:""; position:absolute; inset:6px; border-radius:50%; background: var(--lp-card); }
.lp-gauge-ring span { position: relative; z-index: 1; }
.lp-gauge-meta b { display: block; font-size: 14px; color: #F87171; }
.lp-gauge-meta small { color: var(--lp-muted); font-size: 12px; }
.lp-float-card {
  position: absolute; z-index: 2; font-size: 12.5px; font-weight: 600; color: #DCE6FA;
  background: rgba(16,26,46,.9); border: 1px solid var(--lp-border-2); backdrop-filter: blur(6px);
  padding: 9px 13px; border-radius: 11px; box-shadow: 0 10px 30px rgba(0,0,0,.4);
}
.lp-float-card.a { top: 14%; right: -2%; animation: lp-float 6s ease-in-out infinite; }
.lp-float-card.b { bottom: 12%; left: -4%; animation: lp-float 5.5s ease-in-out infinite reverse; }

/* ---- Strip ---- */
.lp-strip {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 14px;
  padding: 22px; border-top: 1px solid var(--lp-border); border-bottom: 1px solid var(--lp-border);
  color: var(--lp-muted); font-size: 14px;
}
.lp-strip b { color: #D5DEEE; font-weight: 600; }
.lp-strip i { color: var(--lp-border-2); font-style: normal; }

/* ---- Stats band ---- */
.lp-stats {
  display: grid; grid-template-columns: repeat(4,1fr); gap: 20px;
  max-width: 1100px; margin: 56px auto; padding: 0 clamp(18px,5vw,60px);
}
.lp-stat { text-align: center; }
.lp-stat b { display: block; font-size: clamp(30px,4vw,44px); font-weight: 700; background: linear-gradient(120deg,#60A5FA,#818CF8); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-stat span { color: var(--lp-muted); font-size: 13.5px; }

/* ---- Generic section ---- */
.lp-section { max-width: 1160px; margin: 0 auto; padding: clamp(56px,8vw,96px) clamp(18px,5vw,60px); }
.lp-section.alt { max-width: none; background: rgba(255,255,255,.02); border-top: 1px solid var(--lp-border); border-bottom: 1px solid var(--lp-border); }
.lp-section.alt > * { max-width: 1160px; margin-left: auto; margin-right: auto; }
.lp-head { text-align: center; max-width: 660px; margin: 0 auto 46px; }
.lp-eyebrow { color: var(--lp-cyan); font-weight: 600; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.lp-head h2 { font-size: clamp(26px,3.6vw,40px); font-weight: 700; letter-spacing: -.4px; margin: 12px 0 14px; }
.lp-head p { color: var(--lp-muted); font-size: 16px; line-height: 1.6; }

/* ---- Features ---- */
.lp-feat-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 20px; }
.lp-feat {
  background: linear-gradient(180deg, var(--lp-card), var(--lp-card2));
  border: 1px solid var(--lp-border); border-radius: 18px; padding: 26px 22px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.lp-feat:hover { transform: translateY(-4px); border-color: rgba(59,130,246,.5); box-shadow: 0 20px 50px rgba(0,0,0,.4); }
.lp-feat-ic {
  width: 50px; height: 50px; border-radius: 14px; display: grid; place-items: center; font-size: 24px;
  background: linear-gradient(135deg, rgba(59,130,246,.22), rgba(99,102,241,.22));
  border: 1px solid rgba(99,102,241,.35); margin-bottom: 16px;
}
.lp-feat h3 { font-size: 17px; font-weight: 600; margin-bottom: 8px; }
.lp-feat p { color: var(--lp-muted); font-size: 14px; line-height: 1.6; }

/* ---- Steps ---- */
.lp-steps { display: flex; align-items: flex-start; gap: 8px; }
.lp-step { flex: 1; text-align: center; padding: 0 12px; }
.lp-step-n {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 50%; display: grid; place-items: center;
  font-size: 20px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent2));
  box-shadow: 0 10px 26px rgba(59,130,246,.5);
}
.lp-step h3 { font-size: 18px; margin-bottom: 8px; }
.lp-step p { color: var(--lp-muted); font-size: 14px; line-height: 1.6; }
.lp-step-line { flex: 0 0 60px; height: 2px; margin-top: 26px; background: linear-gradient(90deg, var(--lp-accent), transparent); }

/* ---- Impact ---- */
.lp-impact { display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center; }
.lp-impact-copy h2 { font-size: clamp(26px,3.4vw,38px); margin: 12px 0 16px; letter-spacing: -.4px; }
.lp-impact-copy p { color: var(--lp-muted); font-size: 16px; line-height: 1.65; margin-bottom: 20px; }
.lp-check { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 26px; }
.lp-check li { position: relative; padding-left: 32px; color: #CFDAEC; font-size: 15px; }
.lp-check li::before {
  content: "✓"; position: absolute; left: 0; top: -1px;
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, #22C55E, #16A34A);
}
.lp-impact-stats { display: flex; flex-direction: column; gap: 16px; }
.lp-impact-card {
  background: linear-gradient(180deg, var(--lp-card), var(--lp-card2));
  border: 1px solid var(--lp-border); border-radius: 16px; padding: 22px 24px;
  display: flex; align-items: baseline; gap: 16px;
}
.lp-impact-card b { font-size: 34px; font-weight: 700; color: #60A5FA; min-width: 96px; }
.lp-impact-card span { color: var(--lp-muted); font-size: 14px; line-height: 1.5; }

/* ---- Pricing ---- */
.lp-price-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 22px; align-items: stretch; }
.lp-price {
  position: relative; display: flex; flex-direction: column;
  background: linear-gradient(180deg, var(--lp-card), var(--lp-card2));
  border: 1px solid var(--lp-border); border-radius: 20px; padding: 30px 26px;
}
.lp-price.featured { border-color: rgba(99,102,241,.6); box-shadow: 0 24px 60px rgba(59,130,246,.28); transform: translateY(-8px); }
.lp-price-tag {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--lp-accent), var(--lp-accent2)); color: #fff;
  font-size: 12px; font-weight: 600; padding: 5px 14px; border-radius: 999px; white-space: nowrap;
}
.lp-price h3 { font-size: 18px; font-weight: 600; }
.lp-price-amt { font-size: 40px; font-weight: 700; margin: 10px 0 2px; }
.lp-price-amt small { font-size: 15px; font-weight: 500; color: var(--lp-muted); }
.lp-price-sub { color: var(--lp-muted); font-size: 13.5px; margin-bottom: 20px; }
.lp-price ul { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-bottom: 24px; flex: 1; }
.lp-price li { position: relative; padding-left: 26px; font-size: 14px; color: #CFDAEC; }
.lp-price li::before { content: "✓"; position: absolute; left: 0; color: var(--lp-cyan); font-weight: 700; }
.lp-price .btn { width: 100%; }

/* ---- Final CTA ---- */
.lp-cta { padding: clamp(48px,7vw,90px) clamp(18px,5vw,60px); }
.lp-cta-inner {
  max-width: 900px; margin: 0 auto; text-align: center; padding: clamp(40px,6vw,64px) 32px;
  border-radius: 28px; border: 1px solid rgba(99,102,241,.4);
  background:
    radial-gradient(600px 300px at 50% -20%, rgba(59,130,246,.35), transparent 60%),
    linear-gradient(180deg, var(--lp-card), var(--lp-card2));
  box-shadow: 0 30px 80px rgba(0,0,0,.45);
}
.lp-cta-inner h2 { font-size: clamp(26px,3.6vw,40px); letter-spacing: -.4px; }
.lp-cta-inner p { color: var(--lp-muted); font-size: 16px; margin: 12px 0 26px; }

/* ---- Footer ---- */
.lp-footer {
  border-top: 1px solid var(--lp-border);
  display: grid; grid-template-columns: 1.4fr 2fr; gap: 40px;
  max-width: 1160px; margin: 0 auto; padding: 48px clamp(18px,5vw,60px) 20px;
}
.lp-foot-brand { display: flex; align-items: center; gap: 12px; }
.lp-foot-brand b { display: block; font-size: 16px; }
.lp-foot-brand small { color: var(--lp-muted); font-size: 13px; }
.lp-foot-cols { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.lp-foot-cols h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--lp-muted); margin-bottom: 12px; }
.lp-foot-cols a { display: block; color: #C3CEE2; font-size: 14px; margin-bottom: 9px; cursor: pointer; transition: color .16s; }
.lp-foot-cols a:hover { color: #fff; }
.lp-foot-bar { grid-column: 1 / -1; border-top: 1px solid var(--lp-border); padding-top: 18px; color: var(--lp-muted); font-size: 13px; text-align: center; }

/* Back-to-home on the auth screen */
.auth-home {
  position: fixed; top: 22px; left: 22px; z-index: 210;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.18);
  color: #fff; font-family: inherit; font-weight: 500; font-size: 13.5px;
  padding: 9px 15px; border-radius: 10px; cursor: pointer; transition: background .18s;
}
.auth-home:hover { background: rgba(255,255,255,.16); }

/* ---- Landing responsive ---- */
@media (max-width: 940px) {
  .lp-hero { grid-template-columns: 1fr; gap: 34px; }
  .lp-hero-visual { order: -1; min-height: 320px; }
  .lp-impact { grid-template-columns: 1fr; gap: 30px; }
  .lp-feat-grid, .lp-price-grid { grid-template-columns: repeat(2,1fr); }
  .lp-stats { grid-template-columns: repeat(2,1fr); gap: 28px; }
  .lp-steps { flex-direction: column; align-items: stretch; gap: 26px; }
  .lp-step-line { display: none; }
  .lp-price.featured { transform: none; }
  .lp-footer { grid-template-columns: 1fr; gap: 30px; }
}
@media (max-width: 720px) {
  .lp-links, .lp-nav-actions { display: none; }
  .lp-burger { display: grid; place-items: center; margin-left: auto; }
  .lp-nav.open .lp-links {
    display: flex; flex-direction: column; gap: 16px;
    position: absolute; top: 100%; left: 0; right: 0;
    background: rgba(7,11,22,.97); border-bottom: 1px solid var(--lp-border); padding: 20px clamp(18px,5vw,60px);
  }
  .lp-nav.open .lp-nav-actions {
    display: flex; position: absolute; top: 100%; left: 0; right: 0; margin-top: 132px;
    padding: 0 clamp(18px,5vw,60px) 20px; background: rgba(7,11,22,.97);
  }
  .lp-nav.open .lp-nav-actions .btn { flex: 1; }
}
@media (max-width: 480px) {
  .lp-feat-grid, .lp-price-grid, .lp-stats { grid-template-columns: 1fr; }
  .lp-trust { flex-wrap: wrap; gap: 16px; }
  .lp-foot-cols { grid-template-columns: 1fr; }
}
