/* =========================================================
   CampusLife.ng — minimal, professional, small type
   ========================================================= */
:root {
  --navy: #1e3a8a;
  --navy-d: #172e6e;
  --navy-soft: #eef2fb;
  --ink: #111827;
  --text: #1f2937;
  --muted: #6b7280;
  --faint: #9ca3af;
  --line: #e5e7eb;
  --line-2: #eef0f3;
  --bg: #ffffff;
  --bg-2: #f8f9fb;
  --ok: #15803d;
  --ok-soft: #ecfdf3;
  --bad: #b91c1c;
  --bad-soft: #fef2f2;
  --warn: #b45309;
  --gold: #b8892f;
  --radius: 10px;
  --radius-sm: 8px;
  --shadow: 0 1px 2px rgba(17, 24, 39, .04), 0 6px 20px rgba(17, 24, 39, .05);
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 14px; line-height: 1.55; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--ink); font-weight: 700; letter-spacing: -0.025em; line-height: 1.25; margin: 0 0 8px; }
h1 { font-size: 26px; letter-spacing: -0.045em; }
h2 { font-size: 19px; }
h3 { font-size: 15px; }
h4 { font-size: 13px; }
p { margin: 0 0 12px; }
.ic { flex: none; vertical-align: middle; }
.container { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }
.xs { font-size: 12px; }
.sm { font-size: 13px; }
.center { text-align: center; }
.eyebrow { display: inline-block; font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--navy); margin-bottom: 8px; }
.section { margin-top: 48px; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 16px; }
.section-head h2 { margin: 0; }
.section-head p { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.link { color: var(--navy); font-weight: 600; font-size: 13px; display: inline-flex; align-items: center; gap: 4px; }
.link:hover { text-decoration: underline; }
.hide-sm { }
.stack > * + * { margin-top: 12px; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 40px; padding: 0 16px; border-radius: var(--radius-sm); border: 1px solid transparent; font: 600 13px/1 var(--font); cursor: pointer; white-space: nowrap; transition: background .15s, border-color .15s, color .15s; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-d); }
.btn-ghost { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-ghost:hover { border-color: #cfd4dc; background: var(--bg-2); }
.btn-soft { background: var(--navy-soft); color: var(--navy); }
.btn-soft:hover { background: #e2e8f8; }
.btn-danger { background: #fff; border-color: #f3c7c7; color: var(--bad); }
.btn-sm { height: 32px; padding: 0 12px; font-size: 12.5px; }
.btn-lg { height: 46px; padding: 0 22px; font-size: 14px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; }

/* ---------- Chips / pills ---------- */
.chip { display: inline-flex; align-items: center; gap: 4px; height: 22px; padding: 0 8px; border-radius: 999px; background: var(--navy-soft); color: var(--navy); font-size: 11.5px; font-weight: 600; }
.chip-grey { background: var(--bg-2); color: var(--muted); border: 1px solid var(--line); }
.chip-ok { background: var(--ok-soft); color: var(--ok); }
.chip-bad { background: var(--bad-soft); color: var(--bad); }
.chip-gold { background: #fbf5e8; color: var(--gold); }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.94); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); }
.header-row { display: flex; align-items: center; gap: 24px; height: 60px; }
.brand { display: inline-flex; align-items: center; gap: 8px; }
.brand-mark { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 7px; background: var(--navy); color: #fff; }
.brand-name { font-weight: 800; font-size: 15px; letter-spacing: -0.035em; color: var(--ink); }
.brand-name span { color: var(--faint); font-weight: 600; }
.main-nav { display: flex; gap: 2px; flex: 1; }
.main-nav a { padding: 7px 10px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--muted); }
.main-nav a:hover { color: var(--ink); background: var(--bg-2); }
.main-nav a.active { color: var(--navy); background: var(--navy-soft); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.burger { display: none; }
.streak-pill { display: inline-flex; align-items: center; gap: 3px; font-size: 12px; font-weight: 700; color: #c2410c; background: #fff4ed; border-radius: 999px; padding: 3px 8px; }
.acct { position: relative; }
.acct summary { list-style: none; display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 13px; font-weight: 600; padding: 3px 6px 3px 3px; border-radius: 999px; border: 1px solid var(--line); }
.acct summary::-webkit-details-marker { display: none; }
.acct-menu { position: absolute; right: 0; top: calc(100% + 8px); width: 220px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 6px; }
.acct-head { padding: 8px 10px 10px; border-bottom: 1px solid var(--line-2); margin-bottom: 4px; }
.acct-head strong { display: block; font-size: 13px; color: var(--ink); }
.acct-head span { font-size: 12px; color: var(--muted); }
.acct-menu a { display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 6px; font-size: 13px; }
.acct-menu a:hover { background: var(--bg-2); }

.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: hsl(var(--h, 221) 60% 94%); color: hsl(var(--h, 221) 55% 32%); font-size: 12px; font-weight: 700; flex: none; letter-spacing: 0; }
.avatar.sm { width: 28px; height: 28px; font-size: 11px; }
.avatar.lg { width: 64px; height: 64px; font-size: 20px; }

/* ---------- Drawer ---------- */
.drawer[hidden] { display: none; }
.drawer { position: fixed; inset: 0; z-index: 100; }
.drawer-backdrop { position: absolute; inset: 0; background: rgba(17,24,39,.35); }
.drawer-panel { position: absolute; left: 0; top: 0; bottom: 0; width: 280px; max-width: 85vw; background: #fff; padding: 16px; display: flex; flex-direction: column; gap: 2px; overflow-y: auto; animation: slideIn .2s ease-out; }
@keyframes slideIn { from { transform: translateX(-100%); } to { transform: none; } }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.drawer-link { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 8px; font-size: 14px; font-weight: 500; color: var(--text); }
.drawer-link.active { background: var(--navy-soft); color: var(--navy); }
.drawer-foot { margin-top: auto; display: grid; gap: 8px; padding-top: 16px; }

/* ---------- Flash / toast ---------- */
.flash { margin-top: 16px; padding: 10px 14px; border-radius: var(--radius-sm); font-size: 13px; border: 1px solid var(--line); background: var(--bg-2); }
.flash-ok { background: var(--ok-soft); border-color: #c7ecd4; color: var(--ok); }
.flash-err { background: var(--bad-soft); border-color: #f3c7c7; color: var(--bad); }
.flash-info { background: var(--navy-soft); border-color: #d6def4; color: var(--navy); }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 13px; padding: 10px 16px; border-radius: 8px; z-index: 200; box-shadow: var(--shadow); }

/* ---------- Hero ---------- */
.hero { padding: 48px 0 8px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: center; }
.hero h1 { font-size: 38px; line-height: 1.12; margin-bottom: 14px; }
.hero h1 em { font-style: normal; color: var(--navy); }
.hero-lead { font-size: 15px; color: var(--muted); max-width: 520px; margin-bottom: 22px; }
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 28px; margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.hero-stats strong { display: block; font-size: 20px; color: var(--ink); letter-spacing: -0.03em; }
.hero-stats span { font-size: 12px; color: var(--muted); }

.today-card { border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: #fff; box-shadow: var(--shadow); }
.today-card .tc-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.today-card .tc-head span { font-size: 12px; color: var(--muted); }
.tc-mix { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; margin: 14px 0 16px; }
.tc-mix div { text-align: center; background: var(--bg-2); border-radius: 8px; padding: 8px 4px; }
.tc-mix strong { display: block; font-size: 15px; color: var(--ink); }
.tc-mix span { font-size: 10.5px; color: var(--muted); }
.verse-box { background: var(--navy-soft); border-radius: var(--radius); padding: 14px 16px; margin-top: 14px; }
.verse-box p { font-size: 13.5px; color: var(--ink); margin: 0 0 6px; line-height: 1.6; }
.verse-box cite { font-style: normal; font-size: 12px; font-weight: 600; color: var(--navy); }

/* ---------- Generic cards / grids ---------- */
.card { border: 1px solid var(--line); border-radius: var(--radius); background: #fff; padding: 18px; }
.card-flat { background: var(--bg-2); border-color: var(--line-2); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.layout-side { display: grid; grid-template-columns: 1fr 320px; gap: 24px; align-items: start; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step { padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.step .num { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--navy-soft); color: var(--navy); font-weight: 700; font-size: 12px; margin-bottom: 10px; }
.step h3 { font-size: 14px; margin-bottom: 4px; }
.step p { font-size: 13px; color: var(--muted); margin: 0; }

/* Leaderboard rows */
.board { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; }
.board-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--bg-2); }
.board-head h3 { margin: 0; font-size: 13.5px; }
.row { display: flex; align-items: center; gap: 12px; padding: 10px 16px; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.row:last-child { border-bottom: 0; }
.row:hover { background: #fcfcfd; }
.rank { width: 22px; font-weight: 700; color: var(--faint); font-size: 12.5px; text-align: center; flex: none; }
.rank.r1 { color: var(--gold); } .rank.r2 { color: #7c8594; } .rank.r3 { color: #a5683c; }
.row-main { flex: 1; min-width: 0; }
.row-main strong { display: block; color: var(--ink); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row-main span { font-size: 12px; color: var(--muted); }
.row-pts { font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.row-pts small { font-weight: 500; color: var(--muted); font-size: 11px; }
.row.me { background: var(--navy-soft); }
.bar { height: 4px; border-radius: 4px; background: var(--line-2); margin-top: 6px; overflow: hidden; }
.bar i { display: block; height: 100%; background: var(--navy); border-radius: 4px; }

/* Tabs (CSS/links) */
.tabs { display: inline-flex; gap: 2px; padding: 3px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 9px; }
.tabs a, .tabs button { padding: 6px 12px; border-radius: 6px; font: 500 12.5px var(--font); color: var(--muted); background: none; border: 0; cursor: pointer; }
.tabs a.active, .tabs button.active { background: #fff; color: var(--ink); font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.06); }

/* Question cards */
.qcard { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #fff; transition: border-color .15s, box-shadow .15s; }
.qcard:hover { border-color: #d3d8e0; box-shadow: var(--shadow); }
.qcard-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.qcard-q { font-size: 13.5px; font-weight: 600; color: var(--ink); margin: 0; flex: 1; }
.qcard-meta { display: flex; gap: 12px; font-size: 12px; color: var(--muted); }
.qcard-meta span { display: inline-flex; align-items: center; gap: 4px; }
.qcard-actions { display: flex; gap: 8px; }

/* Campus cards */
.campus-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; display: flex; flex-direction: column; transition: box-shadow .15s, border-color .15s; }
.campus-card:hover { box-shadow: var(--shadow); border-color: #d3d8e0; }
.campus-img { aspect-ratio: 16/9; background: linear-gradient(135deg, #1e3a8a, #0f1d47); position: relative; overflow: hidden; }
.campus-img img { width: 100%; height: 100%; object-fit: cover; }
.campus-img .badge { position: absolute; left: 10px; top: 10px; background: #fff; color: var(--ink); font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 6px; }
.campus-body { padding: 14px; }
.campus-body h3 { font-size: 14px; margin-bottom: 2px; }
.campus-body .meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin-top: 10px; }
.img-failed { font-size: 0; color: transparent; visibility: hidden; }

/* Feature band */
.band { background: var(--bg-2); border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line-2); padding: 40px 0; margin-top: 56px; }
.feature { display: flex; gap: 12px; }
.feature .fi { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 9px; background: #fff; border: 1px solid var(--line); color: var(--navy); flex: none; }
.feature h3 { font-size: 13.5px; margin-bottom: 2px; }
.feature p { font-size: 13px; color: var(--muted); margin: 0; }

.cta-strip { display: flex; align-items: center; justify-content: space-between; gap: 20px; background: var(--navy); color: #fff; border-radius: 14px; padding: 28px 32px; }
.cta-strip h2 { color: #fff; margin-bottom: 4px; }
.cta-strip p { color: #c7d2f0; margin: 0; font-size: 13.5px; }
.cta-strip .btn-ghost { border-color: transparent; }

/* ---------- Page header ---------- */
.page-head { padding: 32px 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 24px; }
.page-head h1 { margin-bottom: 4px; }
.page-head p { color: var(--muted); margin: 0; font-size: 13.5px; }
.page-head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }

/* ---------- Quiz ---------- */
.quiz-wrap { max-width: 640px; margin: 32px auto 0; }
.quiz-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; font-size: 12.5px; color: var(--muted); }
.quiz-progress { height: 4px; background: var(--line-2); border-radius: 4px; overflow: hidden; margin-bottom: 20px; }
.quiz-progress i { display: block; height: 100%; background: var(--navy); width: 0; transition: width .3s; }
.timer { display: inline-flex; align-items: center; gap: 5px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; }
.timer.low { color: var(--bad); }
.qbox { border: 1px solid var(--line); border-radius: 14px; padding: 24px; background: #fff; }
.qbox .qmeta { display: flex; gap: 6px; margin-bottom: 12px; }
.qbox h2 { font-size: 17px; line-height: 1.45; margin-bottom: 18px; }
.options { display: grid; gap: 8px; }
.opt { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; font: 500 14px var(--font); color: var(--text); cursor: pointer; transition: border-color .12s, background .12s; }
.opt:hover:not([disabled]) { border-color: var(--navy); background: #fafbff; }
.opt .key { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; background: var(--bg-2); border: 1px solid var(--line); font-size: 11.5px; font-weight: 700; color: var(--muted); flex: none; }
.opt.correct { border-color: var(--ok); background: var(--ok-soft); color: var(--ok); }
.opt.correct .key { background: var(--ok); color: #fff; border-color: var(--ok); }
.opt.wrong { border-color: var(--bad); background: var(--bad-soft); color: var(--bad); }
.opt.wrong .key { background: var(--bad); color: #fff; border-color: var(--bad); }
.opt[disabled] { cursor: default; }
.explain { margin-top: 14px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--bg-2); font-size: 13px; color: var(--text); display: none; }
.explain.show { display: block; }
.quiz-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 16px; }

.result-hero { text-align: center; padding: 28px 24px; border: 1px solid var(--line); border-radius: 14px; }
.score-ring { width: 120px; height: 120px; margin: 0 auto 14px; position: relative; }
.score-ring svg { transform: rotate(-90deg); }
.score-ring .val { position: absolute; inset: 0; display: grid; place-items: center; font-size: 28px; font-weight: 800; color: var(--ink); letter-spacing: -0.04em; }
.score-ring .val small { display: block; font-size: 11px; font-weight: 500; color: var(--muted); letter-spacing: 0; }
.result-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0; }
.result-stats div { background: var(--bg-2); border-radius: 8px; padding: 10px; }
.result-stats strong { display: block; font-size: 16px; color: var(--ink); }
.result-stats span { font-size: 11.5px; color: var(--muted); }
.review-item { padding: 12px 0; border-bottom: 1px solid var(--line-2); font-size: 13px; }
.review-item:last-child { border-bottom: 0; }
.review-item p { margin: 0 0 4px; font-weight: 600; color: var(--ink); }

/* Practice tiles */
.cat-tile { display: flex; flex-direction: column; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; transition: border-color .15s, box-shadow .15s; }
.cat-tile:hover { border-color: var(--navy); box-shadow: var(--shadow); }
.cat-tile .fi { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; background: var(--navy-soft); color: var(--navy); margin-bottom: 4px; }
.cat-tile h3 { margin: 0; font-size: 14px; }
.cat-tile p { margin: 0; font-size: 12.5px; color: var(--muted); }
.cat-tile .meta { font-size: 12px; color: var(--navy); font-weight: 600; margin-top: 6px; }

/* ---------- Studio ---------- */
.studio { display: grid; grid-template-columns: 340px 1fr; gap: 28px; align-items: start; }
.studio-panel { border: 1px solid var(--line); border-radius: 14px; padding: 18px; background: #fff; position: sticky; top: 76px; }
.studio-panel h3 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin: 16px 0 8px; }
.studio-panel h3:first-child { margin-top: 0; }
.tpl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.tpl { display: flex; flex-direction: column; gap: 2px; padding: 10px; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--ink); background: #fff; text-align: left; font-family: var(--font); }
.tpl small { font-weight: 400; color: var(--muted); font-size: 11px; }
.tpl.active { border-color: var(--navy); background: var(--navy-soft); }
.swatches { display: flex; gap: 6px; flex-wrap: wrap; }
.swatch { width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.swatch.active { box-shadow: 0 0 0 2px var(--navy); }
.stage { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.stage-frame { width: 100%; max-width: 340px; aspect-ratio: 9/16; border-radius: 16px; overflow: hidden; background: #0f1d47; box-shadow: 0 10px 40px rgba(17,24,39,.18); }
.stage-frame canvas { width: 100%; height: 100%; display: block; }
.stage-actions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.rec-status { font-size: 12.5px; color: var(--muted); min-height: 18px; text-align: center; }
.rec-bar { width: 100%; max-width: 340px; height: 4px; background: var(--line-2); border-radius: 4px; overflow: hidden; }
.rec-bar i { display: block; height: 100%; width: 0; background: var(--bad); }
.share-row { display: none; gap: 8px; flex-wrap: wrap; justify-content: center; }
.share-row.show { display: flex; }

/* ---------- Forms ---------- */
.form { display: grid; gap: 14px; }
.field label { display: block; font-size: 12.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.field .hint { font-size: 12px; color: var(--muted); margin-top: 4px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=search], select, textarea {
  width: 100%; height: 44px; padding: 0 12px; border: 1px solid #d6d9df; border-radius: var(--radius-sm); background: #fff;
  font: 400 16px var(--font); color: var(--ink); outline: none; transition: border-color .15s, box-shadow .15s;
}
textarea { height: auto; min-height: 96px; padding: 10px 12px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(30,58,138,.12); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-wrap { max-width: 420px; margin: 40px auto 0; }
.auth-card { border: 1px solid var(--line); border-radius: 14px; padding: 28px; }
.auth-card h1 { font-size: 22px; }
.auth-alt { text-align: center; font-size: 13px; color: var(--muted); margin-top: 16px; }
.auth-alt a { color: var(--navy); font-weight: 600; }
.demo-note { font-size: 12px; background: var(--bg-2); border-radius: 8px; padding: 10px 12px; color: var(--muted); }

/* ---------- Premium ---------- */
.pack { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 14px; padding: 20px; background: #fff; }
.pack h3 { font-size: 15px; }
.pack .price { font-size: 26px; font-weight: 800; color: var(--ink); letter-spacing: -0.04em; margin: 6px 0 4px; }
.pack p { font-size: 13px; color: var(--muted); flex: 1; }
.pack.featured { border-color: var(--navy); box-shadow: 0 0 0 1px var(--navy); }

/* ---------- Profile ---------- */
.profile-head { display: flex; gap: 16px; align-items: center; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.kpi { border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; background: #fff; }
.kpi span { font-size: 12px; color: var(--muted); display: flex; align-items: center; gap: 6px; }
.kpi strong { display: block; font-size: 22px; color: var(--ink); letter-spacing: -0.04em; margin-top: 4px; }
.kpi.dark { background: var(--navy); border-color: var(--navy); }
.kpi.dark span { color: #c7d2f0; } .kpi.dark strong { color: #fff; }

/* ---------- Tables (admin) ---------- */
.table-wrap { border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; background: #fff; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 13px; }
.tbl th { text-align: left; font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--bg-2); padding: 10px 14px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: 10px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.admin { display: grid; grid-template-columns: 220px 1fr; gap: 24px; margin-top: 24px; align-items: start; }
.admin-nav { border: 1px solid var(--line); border-radius: var(--radius); padding: 8px; position: sticky; top: 76px; background: #fff; }
.admin-nav a { display: flex; align-items: center; gap: 8px; padding: 9px 10px; border-radius: 6px; font-size: 13px; color: var(--text); }
.admin-nav a.active { background: var(--navy-soft); color: var(--navy); font-weight: 600; }
.admin-nav a .count { margin-left: auto; font-size: 11px; color: var(--muted); }

/* ---------- Prose ---------- */
.prose { max-width: 720px; font-size: 14px; }
.prose h2 { margin-top: 24px; font-size: 16px; }
.prose p, .prose li { color: var(--text); }

/* ---------- Footer ---------- */
.site-footer { margin-top: 72px; border-top: 1px solid var(--line); background: var(--bg-2); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1.3fr; gap: 32px; padding-top: 40px; padding-bottom: 32px; }
.footer-grid h4 { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 600; margin-bottom: 12px; }
.footer-grid > div > a:not(.brand) { display: block; font-size: 13px; color: var(--text); padding: 3px 0; }
.footer-grid > div > a:not(.brand):hover { color: var(--navy); }
.footer-brand p { font-size: 13px; color: var(--muted); margin: 12px 0 14px; max-width: 300px; }
.socials { display: flex; gap: 6px; }
.socials a { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--line); background: #fff; color: var(--muted); }
.socials a:hover { color: var(--navy); border-color: var(--navy); }
.subscribe { display: flex; gap: 6px; margin-bottom: 8px; }
.subscribe input { height: 36px; }
.subscribe .btn { height: 36px; }
.footer-bar { border-top: 1px solid var(--line); padding: 14px 0; font-size: 12px; color: var(--muted); }
.footer-bar-row { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.footer-bar a { margin-left: 16px; }
.footer-bar a:hover { color: var(--ink); }

.empty { text-align: center; padding: 32px 16px; color: var(--muted); font-size: 13px; border: 1px dashed var(--line); border-radius: var(--radius); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .main-nav { display: none; }
  .burger { display: inline-grid; }
  .header-row { gap: 12px; }
}
@media (max-width: 980px) {
  .hero-grid, .layout-side, .studio, .admin { grid-template-columns: 1fr; }
  .grid-4, .steps, .kpis { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .studio-panel, .admin-nav { position: static; }
  .hero h1 { font-size: 32px; }
}
@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .hero { padding-top: 28px; }
  .hero h1 { font-size: 28px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .cta-strip { flex-direction: column; align-items: flex-start; padding: 22px; }
  .section { margin-top: 36px; }
  .hide-sm { display: none !important; }
  .field-row { grid-template-columns: 1fr; }
  .qbox { padding: 18px; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .footer-bar a { margin: 0 12px 0 0; }
}
@media (max-width: 420px) {
  .steps, .kpis { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 18px; }
  .tc-mix { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .auth-card { padding: 20px; }
  .steps { grid-template-columns: 1fr; }
}
