/* YAF Academy prototype.  Dark navy base from the brand, electric blue and
   green accents, one vivid gradient per package.  Mobile first: the app is a
   single column that sits centred on wider screens. */

:root {
  --bg: #050b1a;
  --bg-2: #0a1530;
  --surface: rgba(255, 255, 255, .05);
  --surface-2: rgba(255, 255, 255, .085);
  --surface-solid: #0e1a36;
  --line: rgba(255, 255, 255, .09);
  --ink: #eef3ff;
  --ink-dim: #9aa9cc;
  --ink-faint: #64749a;
  --blue: #2f6fed;
  --blue-bright: #5b9bff;
  --green: #22c97a;
  --lime: #5dff8f;
  --pink: #ff4d8d;
  --orange: #ff8a3d;
  --violet: #8b5cf6;
  --yellow: #ffd23f;
  --red: #ff5d6c;
  --g-brand: linear-gradient(135deg, #2f6fed 0%, #22c97a 100%);
  --g-go: linear-gradient(135deg, #22c97a 0%, #5dff8f 100%);
  --g-mint: linear-gradient(135deg, #0fbf7f 0%, #10a6b8 100%);
  --g-violet: linear-gradient(135deg, #6d4aff 0%, #c04bff 100%);
  --g-sunset: linear-gradient(135deg, #ff7a3d 0%, #ff3d81 100%);
  --g-ocean: linear-gradient(135deg, #2f6fed 0%, #16c6dc 100%);
  --r-xl: 28px;
  --r-lg: 22px;
  --r-md: 16px;
  --r-sm: 12px;
  --shadow: 0 18px 50px rgba(0, 0, 0, .45);
  --shell: 480px;
  --nav-h: 74px;
  --font-head: "Poppins", "Segoe UI", system-ui, sans-serif;
  --font-body: "Inter", "Segoe UI", system-ui, sans-serif;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font: 400 15px/1.55 var(--font-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(60vmax 45vmax at 0% 0%, rgba(47, 111, 237, .28), transparent 60%),
    radial-gradient(50vmax 40vmax at 100% 100%, rgba(34, 201, 122, .18), transparent 60%),
    linear-gradient(180deg, var(--bg), var(--bg-2) 60%, var(--bg));
}
a { color: var(--blue-bright); text-decoration: none; }
img, video { max-width: 100%; display: block; }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 28px; font-weight: 800; }
h2 { font-size: 21px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
h4 { font-size: 15px; font-weight: 600; }
p { margin: 0; }
small, .small { font-size: 13px; }
.dim { color: var(--ink-dim); }
.faint { color: var(--ink-faint); }
.center { text-align: center; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ------------------------------------------------------------ shell -------- */
.shell {
  max-width: var(--shell);
  margin: 0 auto;
  min-height: 100vh;
  padding: 0 18px calc(var(--nav-h) + 28px);
  position: relative;
}
.shell.no-nav { padding-bottom: 32px; }
@media (min-width: 560px) {
  .shell { border-left: 1px solid var(--line); border-right: 1px solid var(--line); background: rgba(5, 11, 26, .35); }
}

.topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 0 14px;
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, rgba(5, 11, 26, .96) 70%, rgba(5, 11, 26, 0));
  backdrop-filter: blur(6px);
}
.topbar .title { flex: 1; min-width: 0; }
.topbar .title h1 { font-size: 22px; }
.topbar .title p { font-size: 13px; color: var(--ink-dim); }
.back {
  width: 40px; height: 40px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  flex: none;
}
.back svg { width: 20px; height: 20px; }
.avatar {
  width: 44px; height: 44px; border-radius: 16px; flex: none;
  display: grid; place-items: center;
  font: 700 15px var(--font-head);
  background: var(--g-brand);
  color: #fff;
  box-shadow: 0 6px 20px rgba(47, 111, 237, .4);
}
.avatar.lg { width: 76px; height: 76px; border-radius: 26px; font-size: 26px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font: 600 13px var(--font-head);
  white-space: nowrap;
}
.chip.fire { color: #ffb86b; }
.chip.xp { color: var(--lime); }
.chip.trial { background: rgba(255, 210, 63, .12); border-color: rgba(255, 210, 63, .35); color: var(--yellow); }

/* ------------------------------------------------------------ bottom nav --- */
.nav {
  position: fixed;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(100%, var(--shell));
  height: var(--nav-h);
  padding: 8px 10px calc(8px + env(safe-area-inset-bottom));
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  background: rgba(8, 16, 36, .88);
  backdrop-filter: blur(18px);
  border-top: 1px solid var(--line);
  z-index: 50;
}
.nav a {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  color: var(--ink-faint);
  font: 600 11px var(--font-head);
  border-radius: 16px;
  transition: color .2s, background .2s;
}
.nav a svg { width: 23px; height: 23px; }
.nav a.on { color: var(--ink); background: var(--surface); }
.nav a.on svg { color: var(--lime); }

/* ------------------------------------------------------------ cards ------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
}
.card + .card, .stack > * + * { margin-top: 14px; }
.card.tight { padding: 14px; }
.card.solid { background: var(--surface-solid); }
.card.glow { position: relative; overflow: hidden; }
.card.glow::after {
  content: ""; position: absolute; width: 220px; height: 220px; right: -80px; top: -90px;
  background: radial-gradient(circle, rgba(93, 255, 143, .22), transparent 65%);
  pointer-events: none;
}
.section { margin-top: 26px; }
.section-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 12px; }
.section-head a { font: 600 13px var(--font-head); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.row { display: flex; align-items: center; gap: 12px; }
.row.wrap { flex-wrap: wrap; gap: 8px; }
.row.between { justify-content: space-between; }
.grow { flex: 1; min-width: 0; }
.eyebrow { font: 700 11px var(--font-head); letter-spacing: .14em; text-transform: uppercase; color: var(--blue-bright); }

.theme-mint { background: var(--g-mint); }
.theme-violet { background: var(--g-violet); }
.theme-sunset { background: var(--g-sunset); }
.theme-ocean { background: var(--g-ocean); }
.text-mint { color: #3ee6b0; }
.text-violet { color: #b99bff; }
.text-sunset { color: #ff8f7a; }
.text-ocean { color: #5fd3ff; }

/* ------------------------------------------------------------ buttons ----- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 50px;
  padding: 0 22px;
  border-radius: 16px;
  border: 0;
  font: 700 15px var(--font-head);
  cursor: pointer;
  color: #04120b;
  background: var(--g-go);
  box-shadow: 0 10px 28px rgba(34, 201, 122, .32);
  transition: transform .12s ease, filter .2s;
  text-align: center;
}
.btn:active { transform: scale(.97); }
.btn:hover { filter: brightness(1.06); }
.btn.block { display: flex; width: 100%; }
.btn.blue { background: var(--g-brand); color: #fff; box-shadow: 0 10px 28px rgba(47, 111, 237, .35); }
.btn.ghost { background: var(--surface); color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.small { min-height: 38px; padding: 0 14px; font-size: 13px; border-radius: 12px; }
.btn.danger { background: rgba(255, 93, 108, .12); color: var(--red); border: 1px solid rgba(255, 93, 108, .3); box-shadow: none; }
.btn[disabled] { opacity: .45; pointer-events: none; }
.linkish { background: none; border: 0; color: var(--blue-bright); font: 600 14px var(--font-head); cursor: pointer; padding: 0; }
form.inline { display: inline; }

/* ------------------------------------------------------------ bars + rings - */
.bar { height: 9px; border-radius: 99px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: inherit; background: var(--g-go); transition: width .6s ease; }
.bar.blue > span { background: var(--g-brand); }
.bar.warn > span { background: linear-gradient(90deg, var(--orange), var(--red)); }
.bar.thin { height: 6px; }
.ring { position: relative; display: grid; place-items: center; flex: none; }
.ring svg { transform: rotate(-90deg); }
.ring .ring-track { stroke: rgba(255, 255, 255, .09); }
.ring .ring-val { stroke: url(#ringGrad); stroke-linecap: round; transition: stroke-dasharray .8s ease; }
.ring .ring-label { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.ring .ring-label b { font: 800 28px var(--font-head); display: block; line-height: 1; }
.ring .ring-label span { font-size: 11px; color: var(--ink-dim); }

/* ------------------------------------------------------------ home -------- */
.hello h1 { font-size: 24px; }
.health { display: flex; gap: 18px; align-items: center; }
.health-parts { flex: 1; display: grid; gap: 7px; }
.health-parts .hp { display: grid; grid-template-columns: 22px 1fr 30px; align-items: center; gap: 8px; font-size: 12px; color: var(--ink-dim); }
.health-parts .hp b { color: var(--ink); text-align: right; font-weight: 600; }
.move {
  border-radius: var(--r-lg);
  padding: 20px;
  background: var(--g-brand);
  position: relative;
  overflow: hidden;
  box-shadow: 0 18px 44px rgba(47, 111, 237, .35);
}
.move::after {
  content: ""; position: absolute; right: -40px; bottom: -60px; width: 200px; height: 200px;
  border-radius: 50%; background: rgba(255, 255, 255, .12);
}
.move .eyebrow { color: rgba(255, 255, 255, .8); }
.move h3 { font-size: 19px; margin: 6px 0 4px; padding-right: 48px; }
.move .eyebrow { padding-right: 48px; }
.move p { color: rgba(255, 255, 255, .85); }
.move .btn { margin-top: 14px; background: #fff; color: #0b1838; box-shadow: none; position: relative; z-index: 1; }
.move .big-emoji { position: absolute; right: 16px; top: 14px; font-size: 40px; z-index: 1; }
.snap { display: block; color: var(--ink); padding: 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.snap .k { font-size: 12px; color: var(--ink-dim); display: flex; align-items: center; gap: 6px; }
.snap .v { font: 700 19px var(--font-head); margin: 4px 0 8px; }
.journey { display: flex; gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; scrollbar-width: none; }
.journey::-webkit-scrollbar { display: none; }
.journey a {
  scroll-snap-align: start; flex: 0 0 150px; padding: 14px; border-radius: var(--r-md);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
.journey .n { font: 700 11px var(--font-head); color: var(--ink-faint); }
.journey .e { font-size: 28px; margin: 6px 0; }
.journey h4 { font-size: 14px; min-height: 36px; }
.journey .done-tag { color: var(--lime); font: 600 12px var(--font-head); }

.myth { text-align: center; }
.myth .statement { font: 700 18px var(--font-head); margin: 10px 0 16px; }
.myth .choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.myth .verdict { margin-top: 14px; padding: 14px; border-radius: var(--r-md); background: var(--surface-2); text-align: left; }
.myth .verdict b { font-family: var(--font-head); }
.myth .verdict.right b { color: var(--lime); }
.myth .verdict.wrong b { color: var(--orange); }

/* ------------------------------------------------------------ learn ------- */
.pkg {
  display: block; position: relative; overflow: hidden;
  border-radius: var(--r-xl); padding: 22px; color: #fff; min-height: 150px;
  box-shadow: var(--shadow);
}
.pkg + .pkg { margin-top: 14px; }
.pkg .e { font-size: 44px; position: absolute; right: 18px; top: 14px; filter: drop-shadow(0 6px 12px rgba(0, 0, 0, .25)); }
.pkg .num { font: 800 12px var(--font-head); letter-spacing: .14em; opacity: .8; }
.pkg h2 { font-size: 26px; font-weight: 800; margin: 4px 0 6px; max-width: 75%; }
.pkg p { opacity: .9; max-width: 82%; }
.pkg .meta { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.pkg .meta span { background: rgba(0, 0, 0, .2); padding: 5px 10px; border-radius: 99px; font: 600 12px var(--font-head); }
.pkg::after {
  content: ""; position: absolute; width: 180px; height: 180px; border-radius: 50%;
  right: -60px; bottom: -80px; background: rgba(255, 255, 255, .14);
}
.hero-pkg { border-radius: 0 0 var(--r-xl) var(--r-xl); margin: 0 -18px; padding: 70px 22px 26px; }

.course {
  display: flex; gap: 14px; align-items: center;
  padding: 14px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
.course + .course { margin-top: 10px; }
.course .ce { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; font-size: 28px; flex: none; }
.course h4 { font-size: 15px; }
.course .sub { font-size: 12px; color: var(--ink-dim); margin-top: 2px; }
.course .bar { margin-top: 8px; }
.course.soon { opacity: .55; }
.tag {
  display: inline-block; padding: 2px 8px; border-radius: 99px;
  font: 700 10px var(--font-head); letter-spacing: .06em; text-transform: uppercase;
}
.tag.free { background: rgba(93, 255, 143, .14); color: var(--lime); }
.tag.builder { background: rgba(255, 210, 63, .14); color: var(--yellow); }
.tag.soon { background: rgba(255, 255, 255, .1); color: var(--ink-dim); }
.tag.done { background: rgba(93, 255, 143, .14); color: var(--lime); }
.tag.draft { background: rgba(255, 138, 61, .15); color: var(--orange); }

.video-wrap { border-radius: var(--r-lg); overflow: hidden; background: #000; border: 1px solid var(--line); }
.video-wrap video { width: 100%; }

.module { margin-top: 18px; }
.module-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.module-head .mn {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center;
  font: 800 13px var(--font-head); background: var(--surface-2);
}
.step {
  display: flex; align-items: center; gap: 12px; padding: 13px 14px;
  border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); color: var(--ink);
}
.step + .step { margin-top: 8px; }
.step .dot {
  width: 30px; height: 30px; border-radius: 50%; flex: none; display: grid; place-items: center;
  border: 2px solid var(--line); font-size: 14px;
}
.step.done .dot { background: var(--green); border-color: var(--green); color: #04120b; }
.step.quiz .dot { border-color: var(--yellow); }
.step.passed .dot { background: var(--yellow); border-color: var(--yellow); color: #231a00; }
.step .meta { font-size: 12px; color: var(--ink-dim); }
.lock-card { text-align: center; padding: 26px 20px; border-radius: var(--r-lg); background: linear-gradient(160deg, rgba(255, 210, 63, .14), rgba(255, 77, 141, .1)); border: 1px solid rgba(255, 210, 63, .25); }
.lock-card .e { font-size: 40px; }

/* ------------------------------------------------------------ lesson player */
.player { position: fixed; inset: 0; display: flex; flex-direction: column; max-width: var(--shell); margin: 0 auto; padding: 14px 18px calc(18px + env(safe-area-inset-bottom)); }
.player-top { display: flex; align-items: center; gap: 12px; }
.segments { flex: 1; display: flex; gap: 5px; }
.segments i { flex: 1; height: 5px; border-radius: 9px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.segments i.on { background: var(--lime); }
.close {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); flex: none;
}
.close svg { width: 18px; height: 18px; }
.player-title { margin: 14px 0 0; font: 600 12px var(--font-head); color: var(--ink-dim); letter-spacing: .04em; }
.screens { flex: 1; position: relative; margin: 10px 0 14px; overflow: hidden; }
.screen {
  position: absolute; inset: 0; overflow-y: auto; padding: 8px 2px 10px;
  opacity: 0; transform: translateX(40px); pointer-events: none;
  transition: opacity .35s ease, transform .35s ease;
  display: flex; flex-direction: column; justify-content: center;
}
.screen.on { opacity: 1; transform: none; pointer-events: auto; }
.screen.prev { transform: translateX(-40px); }
.screen h2 { font-size: 26px; font-weight: 800; margin-bottom: 14px; }
.screen p.body { font-size: 17px; line-height: 1.6; color: #d7e0f5; }
.screen .stat-val {
  font: 800 52px/1 var(--font-head); letter-spacing: -.02em;
  background: var(--g-go); -webkit-background-clip: text; background-clip: text; color: transparent;
  margin-bottom: 10px;
}
.screen .stat-label { font: 700 19px var(--font-head); margin-bottom: 14px; }
.screen .li { display: flex; gap: 14px; padding: 13px 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.screen .li + .li { margin-top: 9px; }
.screen .li .e { font-size: 24px; width: 30px; text-align: center; flex: none; }
.screen .li h4 { margin-bottom: 2px; }
.screen .li p { font-size: 14px; color: var(--ink-dim); }
.screen .list-note { margin-top: 12px; font-size: 14px; color: var(--ink-dim); }
.tipbox { border-radius: var(--r-lg); padding: 22px; background: linear-gradient(150deg, rgba(255, 210, 63, .16), rgba(255, 138, 61, .08)); border: 1px solid rgba(255, 210, 63, .28); }
.tipbox .eyebrow { color: var(--yellow); }
.tipbox h2 { margin: 8px 0 10px; }
.choice {
  display: block; width: 100%; text-align: left; margin-top: 10px; padding: 15px 16px;
  border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line);
  color: var(--ink); font: 600 15px var(--font-body); cursor: pointer; transition: border-color .2s, background .2s;
}
.choice:hover { border-color: rgba(255, 255, 255, .25); }
.choice.good { border-color: var(--green); background: rgba(34, 201, 122, .14); }
.choice.bad { border-color: var(--orange); background: rgba(255, 138, 61, .1); }
.choice .fb { display: none; font-weight: 400; font-size: 14px; color: var(--ink-dim); margin-top: 6px; }
.choice.good .fb, .choice.bad .fb { display: block; }
.infographic img { border-radius: var(--r-md); border: 1px solid var(--line); cursor: zoom-in; }
.infographic .cap { margin-top: 10px; font-size: 13px; color: var(--ink-dim); text-align: center; }
.action-box { border-radius: var(--r-lg); padding: 22px; background: var(--g-brand); }
.action-box .eyebrow { color: rgba(255, 255, 255, .8); }
.action-box h2 { margin: 8px 0 0; font-size: 22px; }
.player-nav { display: grid; grid-template-columns: 56px 1fr; gap: 10px; }
.player-nav .btn.ghost { padding: 0; }
.zoom { position: fixed; inset: 0; z-index: 200; background: rgba(0, 0, 0, .92); display: grid; place-items: center; padding: 12px; overflow: auto; }
.zoom img { max-width: none; width: 100%; max-width: 1100px; }

/* ------------------------------------------------------------ quiz -------- */
.q-count { font: 700 13px var(--font-head); color: var(--ink-dim); }
.q-prompt { font: 700 22px/1.3 var(--font-head); margin: 10px 0 18px; }
.opt {
  display: flex; align-items: center; gap: 12px; width: 100%; text-align: left;
  padding: 15px 16px; margin-top: 10px; border-radius: var(--r-md);
  background: var(--surface); border: 1.5px solid var(--line); color: var(--ink);
  font: 600 15px var(--font-body); cursor: pointer; transition: all .2s;
}
.opt .letter {
  width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none;
  background: var(--surface-2); font: 800 13px var(--font-head);
}
.opt.correct { border-color: var(--green); background: rgba(34, 201, 122, .15); }
.opt.correct .letter { background: var(--green); color: #04120b; }
.opt.wrong { border-color: var(--red); background: rgba(255, 93, 108, .12); animation: shake .35s; }
.opt.wrong .letter { background: var(--red); color: #fff; }
.opt:disabled { cursor: default; }
.explain { margin-top: 14px; padding: 14px 16px; border-radius: var(--r-md); background: var(--surface-2); font-size: 14px; }
.explain b { font-family: var(--font-head); }
@keyframes shake { 0%, 100% { transform: none; } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
.result { text-align: center; padding-top: 30px; }
.result .big { font-size: 72px; }
.result .score { font: 800 46px var(--font-head); margin: 8px 0; }
.cert-card { border-radius: var(--r-lg); padding: 20px; background: linear-gradient(150deg, rgba(255, 210, 63, .18), rgba(93, 255, 143, .12)); border: 1px solid rgba(255, 210, 63, .35); text-align: left; }

/* ------------------------------------------------------------ money ------- */
.balance { text-align: center; padding: 24px 18px; }
.balance .amt { font: 800 40px var(--font-head); letter-spacing: -.02em; margin: 4px 0; }
.balance .amt.neg { color: var(--orange); }
.line-row { display: grid; grid-template-columns: 36px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.line-row:last-child { border-bottom: 0; }
.line-row .e { font-size: 22px; text-align: center; }
.line-row .amts { text-align: right; font: 600 14px var(--font-head); }
.line-row .amts small { display: block; font: 400 12px var(--font-body); color: var(--ink-dim); }
.line-row .over { color: var(--orange); }
.method { font-size: 11px; color: var(--ink-faint); }
.txn { display: grid; grid-template-columns: 40px 1fr auto auto; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.txn:last-child { border-bottom: 0; }
.txn .e { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; background: var(--surface-2); font-size: 18px; }
.txn .amt { font: 700 14px var(--font-head); }
.txn .x { background: none; border: 0; color: var(--ink-faint); cursor: pointer; font-size: 18px; padding: 4px; }
.goal { padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.goal + .goal { margin-top: 12px; }
.goal .ge { font-size: 30px; }
.goal .amts { font: 700 15px var(--font-head); }
.fab {
  position: fixed; right: max(18px, calc(50% - var(--shell) / 2 + 18px)); bottom: calc(var(--nav-h) + 16px);
  width: 58px; height: 58px; border-radius: 20px; display: grid; place-items: center; z-index: 40;
  background: var(--g-go); color: #04120b; box-shadow: 0 12px 30px rgba(34, 201, 122, .45);
}
.fab svg { width: 26px; height: 26px; }
.quick-cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.quick-cats label { cursor: pointer; }
.quick-cats input { position: absolute; opacity: 0; }
.quick-cats span {
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 10px 4px;
  border-radius: var(--r-md); background: var(--surface); border: 1.5px solid var(--line);
  font-size: 11px; text-align: center; color: var(--ink-dim); line-height: 1.2;
}
.quick-cats span b { font-size: 22px; }
.quick-cats input:checked + span { border-color: var(--lime); background: rgba(93, 255, 143, .1); color: var(--ink); }
.amount-input { text-align: center; }
.amount-input input { font: 800 44px var(--font-head); text-align: center; background: none; border: 0; color: var(--ink); width: 100%; outline: none; }
.budget-row { display: grid; grid-template-columns: 30px 1fr 110px; gap: 10px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.budget-row .opts { grid-column: 2 / 4; display: flex; gap: 8px; align-items: center; }
.budget-row select { padding: 7px 10px; font-size: 13px; }

/* ------------------------------------------------------------ credit ------ */
.gauge { position: relative; width: 250px; margin: 6px auto 0; }
.gauge svg { width: 100%; overflow: visible; }
.gauge .g-track { stroke: rgba(255, 255, 255, .09); }
.gauge .g-val { stroke: url(#gaugeGrad); stroke-linecap: round; }
.gauge .g-num { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; }
.gauge .g-num b { font: 800 54px/1 var(--font-head); display: block; }
.gauge .g-num span { font: 700 14px var(--font-head); color: var(--lime); }
.factor { display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); }
.factor:last-child { border-bottom: 0; }
.factor .e { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 13px; background: var(--surface-2); font-size: 18px; }
.factor .lvl { font: 700 12px var(--font-head); padding: 4px 10px; border-radius: 99px; }
.lvl.high { background: rgba(93, 255, 143, .14); color: var(--lime); }
.lvl.med { background: rgba(255, 210, 63, .14); color: var(--yellow); }
.spark { width: 100%; height: 70px; }
.spark polyline { fill: none; stroke: url(#sparkGrad); stroke-width: 3; stroke-linecap: round; stroke-linejoin: round; }
.spark circle { fill: var(--lime); }

/* ------------------------------------------------------------ vault ------- */
.vault-hero { text-align: center; padding: 30px 10px 10px; }
.vault-hero .lock {
  width: 86px; height: 86px; border-radius: 30px; margin: 0 auto 16px; display: grid; place-items: center;
  font-size: 40px; background: var(--g-violet); box-shadow: 0 16px 40px rgba(139, 92, 246, .45);
}
.pin-dots { display: flex; justify-content: center; gap: 16px; margin: 22px 0; }
.pin-dots i { width: 16px; height: 16px; border-radius: 50%; border: 2px solid var(--ink-faint); transition: all .15s; }
.pin-dots i.on { background: var(--lime); border-color: var(--lime); transform: scale(1.1); }
.pinpad { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 290px; margin: 0 auto; }
.pinpad button {
  height: 64px; border-radius: 20px; border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); font: 700 24px var(--font-head); cursor: pointer;
}
.pinpad button:active { background: var(--surface-2); transform: scale(.96); }
.pinpad .ghost-key { background: none; border: 0; font-size: 15px; color: var(--ink-dim); }
.sect {
  display: flex; flex-direction: column; gap: 6px; padding: 16px; border-radius: var(--r-lg);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink); min-height: 128px;
}
.sect .e { font-size: 28px; }
.sect h4 { font-size: 14px; }
.sect .cnt { font: 600 12px var(--font-head); color: var(--ink-faint); margin-top: auto; }
.sect.has .cnt { color: var(--lime); }
.vitem { padding: 16px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.vitem + .vitem { margin-top: 10px; }
.vitem dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 10px 0 0; font-size: 13px; }
.vitem dt { color: var(--ink-faint); }
.vitem dd { margin: 0; }
.notice { display: flex; gap: 10px; padding: 12px 14px; border-radius: var(--r-md); font-size: 13px; background: rgba(91, 155, 255, .1); border: 1px solid rgba(91, 155, 255, .25); color: #c8d8ff; }
.notice.warn { background: rgba(255, 138, 61, .1); border-color: rgba(255, 138, 61, .3); color: #ffd2b5; }

/* ------------------------------------------------------------ forms ------- */
label.f { display: block; font: 600 13px var(--font-head); color: var(--ink-dim); margin: 14px 0 6px; }
input[type=text], input[type=email], input[type=password], input[type=number], input[type=tel], select, textarea {
  width: 100%; padding: 13px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .06); border: 1.5px solid var(--line); color: var(--ink);
  font: 500 15px var(--font-body); outline: none; transition: border-color .2s;
}
input:focus, select:focus, textarea:focus { border-color: var(--blue-bright); }
select option { background: var(--surface-solid); }
textarea { min-height: 90px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--ink-dim); margin-top: 14px; }
.check input { margin-top: 3px; accent-color: var(--green); width: 18px; height: 18px; flex: none; }
.money-input { position: relative; }
.money-input::before { content: "R"; position: absolute; left: 13px; top: 50%; transform: translateY(-50%); color: var(--ink-faint); font-weight: 600; }
.money-input input { padding-left: 28px; }

/* ------------------------------------------------------------ toasts ------ */
.toasts { position: fixed; top: 14px; left: 50%; transform: translateX(-50%); width: min(92vw, 440px); z-index: 300; display: grid; gap: 8px; }
.toast {
  padding: 13px 16px; border-radius: 16px; font: 600 14px var(--font-head);
  background: rgba(14, 26, 54, .96); border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: toastIn .4s ease both, toastOut .4s ease 3.6s forwards;
}
.toast.xp { background: linear-gradient(135deg, rgba(34, 201, 122, .95), rgba(16, 166, 184, .95)); color: #02150c; border: 0; }
.toast.level { background: linear-gradient(135deg, #ffd23f, #ff8a3d); color: #2a1600; border: 0; }
.toast.error { border-color: rgba(255, 93, 108, .5); color: #ffc2c8; }
.toast.success { border-color: rgba(93, 255, 143, .4); }
@keyframes toastIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-14px); visibility: hidden; } }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 250; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 9px; height: 14px; border-radius: 2px; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(720deg); } }

/* ------------------------------------------------------------ me ---------- */
.profile { text-align: center; padding: 10px 0 4px; }
.profile h1 { margin-top: 12px; font-size: 24px; }
.level-card { border-radius: var(--r-lg); padding: 18px; background: var(--g-violet); box-shadow: 0 16px 40px rgba(139, 92, 246, .35); }
.level-card .bar { background: rgba(255, 255, 255, .25); margin-top: 10px; }
.level-card .bar > span { background: #fff; }
.badges { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.badge { text-align: center; font-size: 11px; color: var(--ink-dim); line-height: 1.25; }
.badge .b {
  width: 58px; height: 58px; margin: 0 auto 6px; border-radius: 20px; display: grid; place-items: center;
  font-size: 26px; background: var(--surface-2); border: 1px solid var(--line);
}
.badge.off .b { filter: grayscale(1); opacity: .35; }
.badge.on .b { background: linear-gradient(150deg, rgba(255, 210, 63, .25), rgba(93, 255, 143, .18)); border-color: rgba(255, 210, 63, .4); }
.menu a, .menu button {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 15px 4px;
  border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--ink);
  font: 600 15px var(--font-head); text-align: left; cursor: pointer;
}
.menu a:last-child { border-bottom: 0; }
.menu .mi { width: 38px; height: 38px; border-radius: 13px; display: grid; place-items: center; font-size: 18px; background: var(--surface-2); }
.menu .chev { margin-left: auto; color: var(--ink-faint); }

/* ------------------------------------------------------------ plans ------- */
.plan { border-radius: var(--r-xl); padding: 22px; background: var(--surface); border: 1.5px solid var(--line); position: relative; }
.plan + .plan { margin-top: 14px; }
.plan.pop { border-color: transparent; background: linear-gradient(var(--surface-solid), var(--surface-solid)) padding-box, var(--g-brand) border-box; border: 2px solid transparent; }
.plan .ribbon { position: absolute; top: -12px; right: 18px; padding: 5px 12px; border-radius: 99px; background: var(--g-go); color: #04120b; font: 800 11px var(--font-head); letter-spacing: .06em; }
.plan .price { font: 800 36px var(--font-head); margin: 8px 0 2px; }
.plan .price small { font-size: 14px; color: var(--ink-dim); font-weight: 600; }
.plan ul { list-style: none; padding: 0; margin: 14px 0 18px; display: grid; gap: 8px; }
.plan li { display: flex; gap: 10px; font-size: 14px; }
.plan li::before { content: "✓"; color: var(--lime); font-weight: 800; }
.plan.current { border-color: var(--lime); }

/* ------------------------------------------------------------ shop -------- */
.product { display: flex; gap: 14px; padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); align-items: center; }
.product + .product { margin-top: 10px; }
.product .cover { width: 66px; height: 84px; border-radius: 14px; display: grid; place-items: center; font-size: 30px; flex: none; box-shadow: 0 8px 20px rgba(0, 0, 0, .3); }
.product .price { font: 800 16px var(--font-head); }

/* ------------------------------------------------------------ tools ------- */
.tool-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; margin-bottom: 14px; }
.tool-tabs button {
  flex: none; padding: 9px 14px; border-radius: 99px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-dim); font: 600 13px var(--font-head); cursor: pointer;
}
.tool-tabs button.on { background: var(--g-brand); color: #fff; border-color: transparent; }
.slider-row { margin-top: 16px; }
.slider-row .row b { font-family: var(--font-head); }
input[type=range] { width: 100%; accent-color: var(--green); height: 28px; }
.big-out { font: 800 38px var(--font-head); letter-spacing: -.02em; background: var(--g-go); -webkit-background-clip: text; background-clip: text; color: transparent; }
.chart { width: 100%; height: 160px; margin-top: 10px; }
.chart .area { fill: url(#areaGrad); }
.chart .line { fill: none; stroke: var(--lime); stroke-width: 2.5; }
.chart .paid { fill: none; stroke: var(--blue-bright); stroke-width: 2; stroke-dasharray: 5 5; }
.legend { display: flex; gap: 16px; font-size: 12px; color: var(--ink-dim); margin-top: 6px; }
.legend i { display: inline-block; width: 12px; height: 3px; margin-right: 6px; vertical-align: middle; }
.legend .l1 { background: var(--lime); }
.legend .l2 { background: var(--blue-bright); }
.calc-table { width: 100%; border-collapse: collapse; font-size: 14px; margin-top: 12px; }
.calc-table td { padding: 8px 0; border-bottom: 1px solid var(--line); }
.calc-table td:last-child { text-align: right; font: 600 14px var(--font-head); }
.calc-table tr.total td { border-bottom: 0; font-weight: 700; font-size: 16px; color: var(--lime); }

/* ------------------------------------------------------------ landing ----- */
.land { max-width: 1100px; margin: 0 auto; padding: 0 20px; }
.land-nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0; }
.land-nav .mark { width: 86px; }
.land-nav nav { display: flex; gap: 10px; align-items: center; }
.land-hero { display: grid; gap: 40px; align-items: center; padding: 40px 0 60px; }
@media (min-width: 900px) { .land-hero { grid-template-columns: 1.1fr .9fr; padding-top: 60px; } }
.land-hero h1 { font-size: clamp(38px, 7vw, 64px); line-height: 1.04; font-weight: 800; letter-spacing: -.03em; }
.land-hero h1 em { font-style: normal; background: var(--g-go); -webkit-background-clip: text; background-clip: text; color: transparent; }
.land-hero .lead { font-size: 18px; color: var(--ink-dim); margin: 18px 0 26px; max-width: 520px; }
.land-hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.land-hero .proof { margin-top: 22px; display: flex; gap: 18px; flex-wrap: wrap; color: var(--ink-dim); font-size: 13px; }
.land-hero .proof b { color: var(--ink); font-family: var(--font-head); }
.phone {
  width: 300px; max-width: 100%; margin: 0 auto; border-radius: 44px; padding: 12px;
  background: linear-gradient(160deg, #1b2a52, #0a142c); box-shadow: 0 40px 90px rgba(0, 0, 0, .6), 0 0 0 1px rgba(255, 255, 255, .08);
  transform: rotate(-3deg);
}
.phone-screen { border-radius: 34px; overflow: hidden; background: var(--bg); padding: 22px 16px 18px; }
.phone-screen .move { padding: 16px; }
.phone-screen .move h3 { font-size: 16px; }
.land-section { padding: 50px 0; }
.land-section > h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; text-align: center; letter-spacing: -.02em; }
.land-section > p.sub { text-align: center; color: var(--ink-dim); margin: 10px auto 30px; max-width: 560px; }
.pkg-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .pkg-grid { grid-template-columns: 1fr 1fr; } .pkg-grid .pkg + .pkg { margin-top: 0; } }
.feat-grid { display: grid; gap: 14px; }
@media (min-width: 720px) { .feat-grid { grid-template-columns: repeat(3, 1fr); } }
.feat { padding: 22px; border-radius: var(--r-lg); background: var(--surface); border: 1px solid var(--line); }
.feat .fe { width: 52px; height: 52px; border-radius: 17px; display: grid; place-items: center; font-size: 26px; margin-bottom: 14px; }
.feat p { color: var(--ink-dim); margin-top: 6px; font-size: 14px; }
.plans-row { display: grid; gap: 14px; }
@media (min-width: 900px) { .plans-row { grid-template-columns: repeat(3, 1fr); align-items: start; } .plans-row .plan + .plan { margin-top: 0; } }
.land-foot { border-top: 1px solid var(--line); padding: 30px 0 50px; color: var(--ink-faint); font-size: 13px; text-align: center; }
.land-foot p + p { margin-top: 6px; }
.logo-full { width: 220px; margin: 0 auto; }
.proto-bar { background: rgba(255, 210, 63, .1); color: var(--yellow); text-align: center; font: 600 12px var(--font-head); padding: 7px 12px; border-bottom: 1px solid rgba(255, 210, 63, .2); }

/* ------------------------------------------------------------ auth -------- */
.auth { padding-top: 30px; }
.auth .logo-full { width: 170px; margin-bottom: 20px; }
.persona {
  display: flex; gap: 14px; align-items: center; width: 100%; text-align: left;
  padding: 14px; border-radius: var(--r-lg); background: var(--surface); border: 1.5px solid var(--line);
  color: var(--ink); cursor: pointer; transition: border-color .2s, transform .1s;
}
.persona:hover { border-color: var(--blue-bright); }
.persona:active { transform: scale(.98); }
.persona + .persona, form + form .persona { margin-top: 10px; }
.persona p { font-size: 13px; color: var(--ink-dim); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--ink-faint); font-size: 12px; margin: 26px 0 8px; }
.divider::before, .divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.stages { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.stages label { cursor: pointer; }
.stages input { position: absolute; opacity: 0; }
.stages span {
  display: flex; flex-direction: column; gap: 6px; padding: 16px 14px; border-radius: var(--r-lg);
  background: var(--surface); border: 1.5px solid var(--line); font: 600 14px var(--font-head); min-height: 96px;
}
.stages span b { font-size: 28px; }
.stages input:checked + span { border-color: var(--lime); background: rgba(93, 255, 143, .09); }

/* ------------------------------------------------------------ admin ------- */
.admin { max-width: 980px; margin: 0 auto; padding: 0 20px 60px; }
.admin-top { display: flex; align-items: center; gap: 14px; padding: 18px 0; border-bottom: 1px solid var(--line); margin-bottom: 22px; flex-wrap: wrap; }
.admin-top .mark { width: 70px; }
.admin-top nav { display: flex; gap: 6px; flex-wrap: wrap; margin-left: auto; }
.admin-top nav a { padding: 8px 12px; border-radius: 10px; color: var(--ink-dim); font: 600 13px var(--font-head); }
.admin-top nav a.on, .admin-top nav a:hover { background: var(--surface); color: var(--ink); }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.kpi { padding: 16px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.kpi b { display: block; font: 800 28px var(--font-head); }
.kpi span { font-size: 12px; color: var(--ink-dim); }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { text-align: left; font: 600 12px var(--font-head); color: var(--ink-faint); text-transform: uppercase; letter-spacing: .06em; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td { padding: 11px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr:hover td { background: rgba(255, 255, 255, .02); }
.admin-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .admin-grid { grid-template-columns: 1.4fr 1fr; } }
.screen-edit { padding: 14px; border-radius: var(--r-md); background: var(--surface); border: 1px solid var(--line); }
.screen-edit + .screen-edit { margin-top: 10px; }
.screen-edit .k { font: 700 11px var(--font-head); letter-spacing: .1em; text-transform: uppercase; color: var(--blue-bright); }
.form-row { display: grid; gap: 12px; }
@media (min-width: 700px) { .form-row.two { grid-template-columns: 1fr 1fr; } .form-row.three { grid-template-columns: repeat(3, 1fr); } }
.opt-edit { display: grid; grid-template-columns: 26px 1fr; gap: 8px; align-items: center; margin-top: 8px; }
.opt-edit input[type=radio] { accent-color: var(--green); width: 18px; height: 18px; }

/* Bar widths as classes, so templates never need an inline style (CSP). */
.w-0 { width: 0%; }
.w-1 { width: 1%; }
.w-2 { width: 2%; }
.w-3 { width: 3%; }
.w-4 { width: 4%; }
.w-5 { width: 5%; }
.w-6 { width: 6%; }
.w-7 { width: 7%; }
.w-8 { width: 8%; }
.w-9 { width: 9%; }
.w-10 { width: 10%; }
.w-11 { width: 11%; }
.w-12 { width: 12%; }
.w-13 { width: 13%; }
.w-14 { width: 14%; }
.w-15 { width: 15%; }
.w-16 { width: 16%; }
.w-17 { width: 17%; }
.w-18 { width: 18%; }
.w-19 { width: 19%; }
.w-20 { width: 20%; }
.w-21 { width: 21%; }
.w-22 { width: 22%; }
.w-23 { width: 23%; }
.w-24 { width: 24%; }
.w-25 { width: 25%; }
.w-26 { width: 26%; }
.w-27 { width: 27%; }
.w-28 { width: 28%; }
.w-29 { width: 29%; }
.w-30 { width: 30%; }
.w-31 { width: 31%; }
.w-32 { width: 32%; }
.w-33 { width: 33%; }
.w-34 { width: 34%; }
.w-35 { width: 35%; }
.w-36 { width: 36%; }
.w-37 { width: 37%; }
.w-38 { width: 38%; }
.w-39 { width: 39%; }
.w-40 { width: 40%; }
.w-41 { width: 41%; }
.w-42 { width: 42%; }
.w-43 { width: 43%; }
.w-44 { width: 44%; }
.w-45 { width: 45%; }
.w-46 { width: 46%; }
.w-47 { width: 47%; }
.w-48 { width: 48%; }
.w-49 { width: 49%; }
.w-50 { width: 50%; }
.w-51 { width: 51%; }
.w-52 { width: 52%; }
.w-53 { width: 53%; }
.w-54 { width: 54%; }
.w-55 { width: 55%; }
.w-56 { width: 56%; }
.w-57 { width: 57%; }
.w-58 { width: 58%; }
.w-59 { width: 59%; }
.w-60 { width: 60%; }
.w-61 { width: 61%; }
.w-62 { width: 62%; }
.w-63 { width: 63%; }
.w-64 { width: 64%; }
.w-65 { width: 65%; }
.w-66 { width: 66%; }
.w-67 { width: 67%; }
.w-68 { width: 68%; }
.w-69 { width: 69%; }
.w-70 { width: 70%; }
.w-71 { width: 71%; }
.w-72 { width: 72%; }
.w-73 { width: 73%; }
.w-74 { width: 74%; }
.w-75 { width: 75%; }
.w-76 { width: 76%; }
.w-77 { width: 77%; }
.w-78 { width: 78%; }
.w-79 { width: 79%; }
.w-80 { width: 80%; }
.w-81 { width: 81%; }
.w-82 { width: 82%; }
.w-83 { width: 83%; }
.w-84 { width: 84%; }
.w-85 { width: 85%; }
.w-86 { width: 86%; }
.w-87 { width: 87%; }
.w-88 { width: 88%; }
.w-89 { width: 89%; }
.w-90 { width: 90%; }
.w-91 { width: 91%; }
.w-92 { width: 92%; }
.w-93 { width: 93%; }
.w-94 { width: 94%; }
.w-95 { width: 95%; }
.w-96 { width: 96%; }
.w-97 { width: 97%; }
.w-98 { width: 98%; }
.w-99 { width: 99%; }
.w-100 { width: 100%; }

.section-tight { margin-top: 8px; }
.ce-lg { width: 76px; height: 76px; border-radius: 24px; display: grid; place-items: center; font-size: 38px; margin: 4px 0 14px; box-shadow: var(--shadow); }
.ce-sm { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; font-size: 24px; background: var(--surface-2); flex: none; }
.center-block { margin: 0 auto; }
