/* CodeKids — playful, chunky, mobile-first */
:root {
  --ink: #1f1b3a;
  --ink-2: #5a5577;
  --ink-3: #8e89a8;
  --bg: #fdf8f0;
  --card: #ffffff;
  --line: #ece5d8;
  --primary: #6c4cf5;
  --primary-d: #4f32d6;
  --primary-l: #efeaff;
  --sun: #ffc93c;
  --sun-d: #e0a800;
  --mint: #2ec4b6;
  --mint-d: #1f9e92;
  --mint-l: #dff7f4;
  --coral: #ff6b6b;
  --coral-l: #ffe7e7;
  --orange: #ff8a3d;
  --radius: 20px;
  --radius-s: 14px;
  --shadow: 0 2px 0 rgba(31, 27, 58, 0.06), 0 8px 24px rgba(31, 27, 58, 0.06);
  --tabbar-h: 68px;
  --top-h: 60px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  font-family: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  color: var(--ink);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { font-size: 17px; line-height: 1.55; background: var(--bg); }
h1, h2, h3, h4 { font-family: 'Baloo 2', 'Nunito', sans-serif; line-height: 1.15; margin: 0 0 0.4em; letter-spacing: -0.01em; }
h1 { font-size: clamp(2rem, 7vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 5vw, 2.1rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--primary); font-weight: 700; text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--sun); outline-offset: 2px; border-radius: 8px; }
.sr-icon { width: 16px; height: 16px; vertical-align: -3px; display: inline-block; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Layout ---------- */
#app { min-height: calc(100vh - var(--top-h)); padding-bottom: calc(var(--tabbar-h) + var(--safe-b) + 24px); outline: none; }
.wrap { width: 100%; max-width: 1080px; margin: 0 auto; padding: 0 18px; }
.narrow { max-width: 520px; }
.section { padding: 36px 0; }
.stack > * + * { margin-top: 14px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); }
.muted { color: var(--ink-2); }
.small { font-size: 0.9rem; }
.center { text-align: center; }

/* ---------- Top bar ---------- */
.topbar { position: sticky; top: 0; z-index: 30; height: var(--top-h); background: rgba(253, 248, 240, 0.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.logo { display: flex; align-items: center; gap: 8px; font-family: 'Baloo 2', sans-serif; font-weight: 800; font-size: 1.45rem; color: var(--ink); text-decoration: none !important; }
.logo svg { width: 34px; height: 34px; }
.logo b { color: var(--primary); }
.topnav { display: none; gap: 4px; }
.topnav a { padding: 8px 14px; border-radius: 999px; color: var(--ink-2); }
.topnav a.active, .topnav a:hover { background: var(--primary-l); color: var(--primary); text-decoration: none; }

/* ---------- Bottom tab bar (mobile) ---------- */
.tabbar { position: fixed; z-index: 30; left: 0; right: 0; bottom: 0; height: calc(var(--tabbar-h) + var(--safe-b)); padding-bottom: var(--safe-b); background: #fff; border-top: 1px solid var(--line); display: flex; box-shadow: 0 -6px 20px rgba(31, 27, 58, 0.05); }
.tabbar:empty { display: none; }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; color: var(--ink-3); font-size: 0.78rem; font-weight: 800; text-decoration: none; }
.tabbar a svg { width: 26px; height: 26px; }
.tabbar a.active { color: var(--primary); }
.tabbar a.active svg { transform: translateY(-1px); }
@media (min-width: 860px) {
  .tabbar { display: none; }
  .topnav { display: flex; }
  #app { padding-bottom: 48px; }
}

/* ---------- Buttons ---------- */
.btn { --b: var(--primary); --bd: var(--primary-d); --t: #fff; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--b); color: var(--t); font-weight: 800; font-size: 1.02rem; cursor: pointer; box-shadow: 0 4px 0 var(--bd); transition: transform 0.08s, box-shadow 0.08s, filter 0.15s; text-decoration: none !important; white-space: nowrap; -webkit-tap-highlight-color: transparent; user-select: none; }
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--bd); }
.btn[disabled] { opacity: 0.55; pointer-events: none; }
.btn svg { width: 20px; height: 20px; flex: none; }
.btn.sun { --b: var(--sun); --bd: var(--sun-d); --t: var(--ink); }
.btn.mint { --b: var(--mint); --bd: var(--mint-d); }
.btn.coral { --b: var(--coral); --bd: #d94c4c; }
.btn.ghost { --b: #fff; --bd: var(--line); --t: var(--ink); border: 2px solid var(--line); }
.btn.paypal { --b: #ffc439; --bd: #d9a52c; --t: #003087; }
.btn.small { min-height: 40px; padding: 0 16px; font-size: 0.92rem; box-shadow: 0 3px 0 var(--bd); }
.btn.block { width: 100%; }
.btn.icon { width: 44px; min-height: 44px; padding: 0; }
.linkbtn { background: none; border: 0; padding: 6px 4px; color: var(--primary); font-weight: 800; cursor: pointer; }
.linkbtn.danger { color: var(--coral); }

/* ---------- Cards ---------- */
.card { background: var(--card); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid #f1ebe0; }
.card.flat { box-shadow: none; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 0.78rem; font-weight: 800; background: var(--primary-l); color: var(--primary); white-space: nowrap; }
.pill.free { background: var(--mint-l); color: var(--mint-d); }
.pill.sun { background: #fff4d1; color: #8a6400; }
.pill.coral { background: var(--coral-l); color: #c43c3c; }
.pill.grey { background: #f1eee8; color: var(--ink-2); }

/* ---------- Forms ---------- */
label { display: block; font-weight: 800; font-size: 0.95rem; margin-bottom: 6px; }
.field { margin-bottom: 16px; }
.hint { font-size: 0.85rem; color: var(--ink-3); margin-top: 4px; font-weight: 600; }
input[type='text'], input[type='email'], input[type='password'], input[type='number'], input[type='url'], input[type='search'], select, textarea {
  width: 100%; min-height: 50px; padding: 12px 16px; border: 2px solid var(--line); border-radius: var(--radius-s); background: #fff; font-size: 1rem; transition: border-color 0.15s, box-shadow 0.15s;
}
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-l); }
.error { background: var(--coral-l); color: #b23636; padding: 12px 14px; border-radius: var(--radius-s); font-weight: 700; margin-bottom: 14px; }
.error:empty { display: none; }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-weight: 700; margin: 0; }
.switch input { appearance: none; width: 50px; height: 30px; border-radius: 999px; background: #ddd6ca; position: relative; cursor: pointer; transition: background 0.2s; margin: 0; flex: none; }
.switch input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2); transition: transform 0.2s; }
.switch input:checked { background: var(--mint); }
.switch input:checked::after { transform: translateX(20px); }

/* ---------- Landing ---------- */
.hero { padding: 28px 0 20px; position: relative; overflow: hidden; }
.hero .wrap { display: grid; gap: 24px; align-items: center; }
.hero h1 span { color: var(--primary); position: relative; white-space: nowrap; }
.hero h1 span::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0.08em; height: 0.28em; background: var(--sun); z-index: -1; border-radius: 6px; opacity: 0.8; }
.hero p.lead { font-size: 1.15rem; color: var(--ink-2); max-width: 34em; }
.hero .ctas { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.hero .ctas .btn { flex: 1 1 160px; }
.hero-art { width: 100%; max-width: 440px; margin: 0 auto; }
@media (min-width: 860px) { .hero { padding: 64px 0 40px; } .hero .wrap { grid-template-columns: 1.1fr 0.9fr; } }
.trust { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 18px; color: var(--ink-2); font-weight: 700; font-size: 0.95rem; }
.trust span { display: inline-flex; align-items: center; gap: 6px; }
.steps { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); counter-reset: s; }
.step { position: relative; padding-top: 26px; }
.step .num { position: absolute; top: -16px; left: 18px; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-family: 'Baloo 2'; font-weight: 800; font-size: 1.3rem; color: #fff; transform: rotate(-6deg); }
.prog-card { position: relative; overflow: hidden; display: flex; flex-direction: column; gap: 10px; color: var(--ink); text-decoration: none !important; transition: transform 0.15s; }
.prog-card:hover { transform: translateY(-3px); }
.prog-card .badge { width: 62px; height: 62px; border-radius: 18px; display: grid; place-items: center; font-size: 2rem; }
.prog-card .meta { color: var(--ink-2); font-size: 0.9rem; font-weight: 700; }
.prog-card .stripe { position: absolute; inset: 0 0 auto 0; height: 6px; }
.free-list a { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius-s); background: #fff; border: 2px solid var(--line); color: var(--ink); text-decoration: none !important; }
.free-list a:hover { border-color: var(--mint); }
.free-list .play { width: 44px; height: 44px; flex: none; border-radius: 50%; background: var(--mint); color: #fff; display: grid; place-items: center; }
.pricing { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); max-width: 760px; margin: 0 auto; }
.price-card { position: relative; text-align: center; padding: 28px 22px; border: 3px solid transparent; }
.price-card.best { border-color: var(--sun); }
.price-card .tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--sun); color: var(--ink); padding: 3px 14px; border-radius: 999px; font-weight: 800; font-size: 0.85rem; white-space: nowrap; }
.price-card .amount { font-family: 'Baloo 2'; font-size: 3.2rem; font-weight: 800; line-height: 1; margin: 6px 0; }
.price-card .amount small { font-size: 1rem; color: var(--ink-2); font-family: 'Nunito'; font-weight: 700; }
.price-card ul { list-style: none; padding: 0; margin: 16px 0 20px; text-align: left; }
.price-card li { padding: 6px 0 6px 30px; position: relative; font-weight: 600; }
.price-card li::before { content: ''; position: absolute; left: 0; top: 9px; width: 20px; height: 20px; border-radius: 50%; background: var(--mint-l) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231f9e92' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 12 4 4 8-8'/%3E%3C/svg%3E") center/14px no-repeat; }
.faq details { background: #fff; border-radius: var(--radius-s); padding: 4px 18px; border: 2px solid var(--line); margin-bottom: 10px; }
.faq summary { cursor: pointer; font-weight: 800; padding: 12px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::after { content: '+'; font-size: 1.4rem; line-height: 1; color: var(--primary); }
.faq details[open] summary::after { content: '–'; }
.footer { padding: 30px 0 10px; color: var(--ink-3); font-size: 0.9rem; text-align: center; }

/* ---------- Auth ---------- */
.auth { padding: 30px 0; }
.auth .card { padding: 26px 22px; }
.auth .mascot { width: 84px; height: 84px; margin: 0 auto 8px; }

/* ---------- Member area ---------- */
.page-head { padding: 22px 0 6px; }
.hello { display: flex; align-items: center; gap: 14px; }
.hello .avatar { width: 54px; height: 54px; border-radius: 18px; background: var(--sun); display: grid; place-items: center; font-family: 'Baloo 2'; font-size: 1.6rem; font-weight: 800; flex: none; }
.banner { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 16px 18px; border-radius: var(--radius); background: linear-gradient(120deg, var(--primary), #8d6bff); color: #fff; box-shadow: var(--shadow); }
.banner p { margin: 0; opacity: 0.92; }
.banner.warn { background: linear-gradient(120deg, #ff8a3d, #ffb03d); }
.resume { display: flex; gap: 14px; align-items: center; padding: 16px; color: var(--ink); text-decoration: none !important; border: 3px solid var(--sun); }
.resume .play { width: 56px; height: 56px; flex: none; border-radius: 50%; background: var(--sun); display: grid; place-items: center; box-shadow: 0 4px 0 var(--sun-d); }
.resume .play svg { width: 26px; height: 26px; }
.bar { height: 12px; border-radius: 999px; background: #f1ece2; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: inherit; background: var(--mint); transition: width 0.5s; }
.prog-head { border-radius: 0 0 28px 28px; color: #fff; padding: 22px 0 26px; margin-bottom: 8px; }
.prog-head .wrap > a { color: #fff; opacity: 0.9; }
.prog-head .bar { background: rgba(255, 255, 255, 0.3); }
.prog-head .bar > i { background: #fff; }
.course { padding: 0; overflow: hidden; }
.course-h { padding: 16px 18px 8px; }
.lesson-row { display: flex; align-items: center; gap: 12px; padding: 12px 18px; min-height: 64px; border-top: 1px solid #f3eee6; color: var(--ink); text-decoration: none !important; }
.lesson-row:hover { background: #fcfaf6; }
.lesson-row .st { width: 38px; height: 38px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--primary-l); color: var(--primary); }
.lesson-row .st svg { width: 18px; height: 18px; }
.lesson-row.done .st { background: var(--mint); color: #fff; }
.lesson-row.locked .st { background: #f1eee8; color: var(--ink-3); }
.lesson-row.current { background: #fffaea; }
.lesson-row .t { flex: 1; min-width: 0; font-weight: 700; }
.lesson-row .t small { display: block; color: var(--ink-3); font-weight: 600; }

/* ---------- Lesson player ---------- */
.lesson-layout { display: grid; gap: 18px; padding-top: 14px; }
@media (min-width: 980px) { .lesson-layout { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; } .lesson-side { position: sticky; top: calc(var(--top-h) + 14px); } }
.player { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #120f26; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.player iframe, .player video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
@media (max-width: 600px) { .player-bleed { margin: 0 -18px; } .player-bleed .player { border-radius: 0; } }
.player .locked, .player .empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; color: #fff; padding: 20px; background: radial-gradient(circle at 30% 20%, #3b2c86, #120f26); }
.player .locked svg { width: 54px; height: 54px; margin: 0 auto 8px; color: var(--sun); }
.lesson-title { margin-top: 6px; }
.crumbs { font-size: 0.9rem; font-weight: 700; color: var(--ink-3); display: flex; gap: 6px; flex-wrap: wrap; }
.crumbs a { color: var(--ink-2); }
.actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.actions .btn { width: 100%; padding: 0 12px; }
.actions .full { grid-column: 1 / -1; }
.restart { display: flex; gap: 8px; flex-wrap: wrap; }
.restart .btn { flex: 1 1 auto; }
.materials a { display: flex; gap: 12px; align-items: center; padding: 10px 12px; border-radius: var(--radius-s); border: 2px solid var(--line); color: var(--ink); text-decoration: none !important; background: #fff; }
.materials a + a { margin-top: 8px; }
.materials a:hover { border-color: var(--primary); }
.materials .ic { width: 42px; height: 42px; flex: none; border-radius: 12px; display: grid; place-items: center; font-size: 0.72rem; font-weight: 900; color: #fff; text-transform: uppercase; overflow: hidden; }
.materials .ic img { width: 100%; height: 100%; object-fit: cover; }
.prose { white-space: pre-line; }
.done-flag { display: inline-flex; align-items: center; gap: 6px; color: var(--mint-d); font-weight: 800; }

/* ---------- Account ---------- */
.status { display: flex; gap: 14px; align-items: center; }
.status .dot { width: 50px; height: 50px; border-radius: 16px; display: grid; place-items: center; flex: none; }
.status .dot svg { width: 26px; height: 26px; }
.plan-pick { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.plan-opt { position: relative; cursor: pointer; margin: 0; }
.plan-opt input { position: absolute; opacity: 0; }
.plan-opt .box { display: block; height: 100%; padding: 16px 12px; border-radius: var(--radius-s); border: 3px solid var(--line); background: #fff; text-align: center; transition: border-color 0.15s, transform 0.1s; }
.plan-opt input:checked + .box { border-color: var(--primary); background: var(--primary-l); }
.plan-opt input:focus-visible + .box { outline: 3px solid var(--sun); }
.plan-opt .amt { display: block; font-family: 'Baloo 2'; font-size: 2rem; font-weight: 800; line-height: 1.1; }
.plan-opt .per { display: block; font-size: 0.85rem; color: var(--ink-2); font-weight: 700; }
.plan-opt .save { position: absolute; top: -10px; right: -4px; }
.pay-buttons { display: grid; gap: 10px; margin-top: 14px; }
table.list { width: 100%; border-collapse: collapse; font-size: 0.95rem; }
table.list td, table.list th { text-align: left; padding: 10px 6px; border-bottom: 1px solid #f1ece2; }
table.list th { color: var(--ink-3); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; }

/* ---------- Admin ---------- */
.tabs { display: flex; gap: 6px; background: #f1ece2; padding: 5px; border-radius: 999px; width: fit-content; max-width: 100%; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 18px; border-radius: 999px; font-weight: 800; color: var(--ink-2); cursor: pointer; white-space: nowrap; min-height: 44px; }
.tabs button.active { background: #fff; color: var(--primary); box-shadow: var(--shadow); }
.adm-prog { padding: 0; overflow: hidden; }
.adm-prog > .head { display: flex; gap: 12px; align-items: center; padding: 14px 16px; cursor: pointer; }
.adm-prog > .head .badge { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; flex: none; }
.adm-prog > .head .grow { flex: 1; min-width: 0; }
.adm-prog > .body { border-top: 1px solid #f1ece2; padding: 12px 16px 16px; background: #fdfbf7; }
.adm-course { background: #fff; border: 2px solid var(--line); border-radius: var(--radius-s); margin-bottom: 12px; }
.adm-course > .head { display: flex; gap: 8px; align-items: center; padding: 10px 12px; }
.adm-course > .head .grow { flex: 1; min-width: 0; font-weight: 800; }
.adm-lesson { display: flex; gap: 8px; align-items: center; padding: 10px 12px; border-top: 1px solid #f3eee6; flex-wrap: wrap; }
.adm-lesson .grow { flex: 1 1 160px; min-width: 0; }
.adm-lesson .grow small { display: block; color: var(--ink-3); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tools { display: flex; gap: 2px; align-items: center; }
.tool { width: 38px; height: 38px; border-radius: 10px; border: 0; background: transparent; color: var(--ink-2); display: grid; place-items: center; cursor: pointer; }
.tool:hover { background: #f1ece2; color: var(--ink); }
.tool.danger:hover { background: var(--coral-l); color: var(--coral); }
.tool svg { width: 18px; height: 18px; }
.tool[disabled] { opacity: 0.25; pointer-events: none; }
.add-row { display: flex; gap: 8px; padding: 10px 12px; border-top: 1px dashed var(--line); }
.member { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.member .grow { flex: 1 1 200px; min-width: 0; }
.upload-bar { height: 8px; border-radius: 999px; background: #eee; overflow: hidden; margin-top: 8px; display: none; }
.upload-bar.on { display: block; }
.upload-bar i { display: block; height: 100%; width: 0; background: var(--primary); transition: width 0.2s; }
.mat-item { display: flex; gap: 10px; align-items: center; padding: 8px 0; border-bottom: 1px solid #f1ece2; }
.mat-item .grow { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Modal (bottom sheet on mobile) ---------- */
.modal-bg { position: fixed; inset: 0; z-index: 50; background: rgba(31, 27, 58, 0.45); display: flex; align-items: flex-end; justify-content: center; animation: fade 0.15s; }
.modal { background: #fff; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto; border-radius: 26px 26px 0 0; padding: 22px 20px calc(22px + var(--safe-b)); animation: up 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2); }
.modal .grab { width: 44px; height: 5px; border-radius: 9px; background: #e2dccf; margin: -8px auto 14px; }
@media (min-width: 640px) { .modal-bg { align-items: center; } .modal { border-radius: 26px; } .modal .grab { display: none; } }
@keyframes up { from { transform: translateY(40px); opacity: 0; } }
@keyframes fade { from { opacity: 0; } }

/* ---------- Toast & loader ---------- */
#toast { position: fixed; z-index: 60; left: 50%; bottom: calc(var(--tabbar-h) + var(--safe-b) + 14px); transform: translate(-50%, 20px); background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; opacity: 0; pointer-events: none; transition: all 0.25s; max-width: calc(100% - 32px); text-align: center; }
#toast.show { opacity: 1; transform: translate(-50%, 0); }
#toast.err { background: #c43c3c; }
.loader { display: flex; gap: 8px; justify-content: center; padding: 80px 0; }
.loader span { width: 14px; height: 14px; border-radius: 50%; background: var(--primary); animation: bounce 0.9s infinite ease-in-out; }
.loader span:nth-child(2) { background: var(--sun); animation-delay: 0.15s; }
.loader span:nth-child(3) { background: var(--mint); animation-delay: 0.3s; }
@keyframes bounce { 0%, 80%, 100% { transform: scale(0.6); opacity: 0.6; } 40% { transform: scale(1); opacity: 1; } }

/* ---------- Celebration ---------- */
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; overflow: hidden; }
.confetti i { position: absolute; top: -20px; width: 10px; height: 16px; border-radius: 3px; animation: drop 1.6s ease-in forwards; }
@keyframes drop { to { transform: translateY(105vh) rotate(720deg); } }
.cheer { text-align: center; }
.cheer .big { font-size: 4rem; line-height: 1; margin-bottom: 6px; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.trust svg { width: 20px; height: 20px; flex: none; color: var(--primary); }
.pill svg { width: 14px; height: 14px; }
