/* Udaan website — colourful, playful, accessible. Mobile-first. */
:root {
  --bg: #F7F5FF;
  --surface: #FFFFFF;
  --ink: #1E1B3A;
  --ink-2: #4A4670;
  --muted: #5F5A86;
  --line: #E6E2FA;
  --violet: #6254E8;
  --violet-d: #4B3DD1;
  --violet-50: #EEEBFF;
  --pink: #EC4899;
  --pink-d: #BE185D;
  --amber: #F59E0B;
  --amber-d: #B45309;
  --teal: #14B8A6;
  --teal-d: #0F766E;
  --sky: #3B82F6;
  --sky-d: #1D4ED8;
  --green: #10B981;
  --green-d: #047857;
  --red: #EF4444;
  --red-d: #B91C1C;
  --grad: linear-gradient(120deg, #6254E8 0%, #A21CAF 55%, #DB2777 100%);
  --grad-warm: linear-gradient(120deg, #F59E0B, #EC4899);
  --grad-cool: linear-gradient(120deg, #3B82F6, #14B8A6);
  --radius: 24px;
  --radius-sm: 14px;
  --shadow: 0 10px 30px -12px rgba(98, 84, 232, .28), 0 2px 6px rgba(30, 27, 58, .05);
  --shadow-lg: 0 24px 50px -18px rgba(98, 84, 232, .42), 0 4px 12px rgba(30, 27, 58, .06);
  --font-head: "Baloo 2", "Noto Sans Devanagari", system-ui, sans-serif;
  --font-body: "Poppins", "Noto Sans Devanagari", system-ui, -apple-system, "Segoe UI", sans-serif;
  --ease-bounce: cubic-bezier(.34, 1.56, .64, 1);
  --header-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--ink);
  font-family: var(--font-body); font-size: 16px; line-height: 1.6;
  overflow-x: hidden;
}
html[lang="hi"] body, html[lang="mr"] body { line-height: 1.7; }
img, svg { max-width: 100%; }
a { color: var(--violet-d); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--pink-d); }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.2; margin: 0 0 .4em; color: var(--ink); letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.5rem, 4vw, 2.2rem); font-weight: 800; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 8px; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip-link:focus { top: 12px; color: #fff; }
[hidden] { display: none !important; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 16px; }
.wrap-narrow { max-width: 760px; }
.site-main { flex: 1; position: relative; z-index: 1; padding-bottom: 56px; }
.section { padding: 40px 0; }
.section-head { text-align: center; max-width: 680px; margin: 0 auto 28px; }
.section-head p { color: var(--muted); }
.eyebrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .85rem; color: var(--violet-d); background: var(--violet-50); padding: 4px 12px; border-radius: 999px; margin-bottom: 10px; }

.grid { display: grid; gap: 16px; }
.grid-2, .grid-3, .grid-4 { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } .grid-4 { grid-template-columns: repeat(4, 1fr); } .grid { gap: 20px; } }
.grid > *, .grid-2 > *, .grid-3 > *, .grid-4 > *, .dash-hero > *, .filters > * { min-width: 0; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row-between { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.stack > * + * { margin-top: 12px; }

/* ---------- background blobs ---------- */
.blobs { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.blob { position: absolute; width: 46vmax; height: 46vmax; border-radius: 50%; filter: blur(70px); opacity: .32; animation: blob-drift 22s ease-in-out infinite alternate; }
.b1 { background: #C4B5FD; top: -18vmax; left: -12vmax; }
.b2 { background: #FBCFE8; top: 10vh; right: -20vmax; animation-delay: -6s; }
.b3 { background: #A7F3D0; bottom: -22vmax; left: 10vw; animation-delay: -12s; opacity: .26; }
.b4 { background: #FDE68A; bottom: -10vmax; right: -8vmax; animation-delay: -3s; opacity: .26; width: 30vmax; height: 30vmax; }
@keyframes blob-drift { 0% { transform: translate(0, 0) scale(1); } 50% { transform: translate(4vw, 3vh) scale(1.08); } 100% { transform: translate(-3vw, 6vh) scale(.95); } }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(255, 255, 255, .78); backdrop-filter: saturate(1.6) blur(14px); -webkit-backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid rgba(230, 226, 250, .8); }
.header-inner { display: flex; align-items: center; gap: 12px; min-height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.logo img { transition: transform .4s var(--ease-bounce); }
.logo:hover img { transform: rotate(-12deg) scale(1.08); }
.logo-text { font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; line-height: 1; display: flex; flex-direction: column; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.logo-text small { font-family: var(--font-body); font-size: .62rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); -webkit-text-fill-color: var(--muted); margin-top: 3px; }
.main-nav { display: none; }
.header-tools { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.lang-switch { display: inline-flex; align-items: center; gap: 4px; background: var(--violet-50); border-radius: 999px; padding: 4px 6px 4px 10px; }
.lang-switch select { border: 0; background: transparent; font-weight: 600; font-size: .9rem; padding: 4px 2px; cursor: pointer; color: var(--violet-d); max-width: 96px; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--grad-warm); color: #fff; display: grid; place-items: center; text-decoration: none; font-weight: 800; font-family: var(--font-head); font-size: 1.15rem; box-shadow: var(--shadow); transition: transform .3s var(--ease-bounce); }
.avatar:hover { color: #fff; transform: scale(1.1) rotate(6deg); }
.avatar-initial { color: #1E1B3A; }
.menu-toggle { width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--violet-50); cursor: pointer; display: grid; place-items: center; }
.menu-toggle .bars, .menu-toggle .bars::before, .menu-toggle .bars::after { display: block; width: 20px; height: 2.5px; border-radius: 2px; background: var(--violet-d); position: relative; transition: transform .25s, opacity .25s; }
.menu-toggle .bars::before, .menu-toggle .bars::after { content: ""; position: absolute; left: 0; }
.menu-toggle .bars::before { top: -7px; } .menu-toggle .bars::after { top: 7px; }
.nav-open .menu-toggle .bars { background: transparent; }
.nav-open .menu-toggle .bars::before { transform: translateY(7px) rotate(45deg); }
.nav-open .menu-toggle .bars::after { transform: translateY(-7px) rotate(-45deg); }
.nav-open .main-nav { display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; background: #fff; padding: 12px 16px 20px; gap: 4px; box-shadow: var(--shadow-lg); border-radius: 0 0 24px 24px; animation: drop .25s ease-out; }
.main-nav a:not(.btn) { padding: 10px 14px; border-radius: 12px; text-decoration: none; color: var(--ink); font-weight: 600; transition: background .2s, color .2s; }
.main-nav a:not(.btn):hover, .main-nav a.is-active { background: var(--violet-50); color: var(--violet-d); }
.nav-auth { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 8px; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
@media (min-width: 1160px) {
  .main-nav { display: flex; align-items: center; gap: 2px; margin-left: 14px; flex: 1; min-width: 0; }
  .main-nav a { white-space: nowrap; }
  .main-nav .nav-auth { margin: 0 0 0 auto; flex-wrap: nowrap; }
  .menu-toggle { display: none; }
  .header-tools { margin-left: 8px; }
}
@media (min-width: 1160px) and (max-width: 1320px) {
  .main-nav > a > span[aria-hidden] { display: none; }
  .main-nav a:not(.btn) { padding: 10px 10px; }
}
.page-test .site-header.is-compact .main-nav { display: none; }
.page-test .site-header.is-compact .menu-toggle { display: none; }

/* ---------- footer ---------- */
.site-footer { position: relative; z-index: 1; background: #1E1B3A; color: #E9E7FB; padding: 40px 0 20px; margin-top: auto; border-radius: 32px 32px 0 0; }
.site-footer .muted { color: #B9B5DA; }
.footer-grid { display: grid; gap: 24px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-content: flex-start; }
.footer-links a { color: #E9E7FB; text-decoration: none; font-weight: 500; }
.footer-links a:hover { color: #FDE68A; }
.footer-disclaimer { font-size: .85rem; color: #CFCBEF; background: rgba(255, 255, 255, .06); border-radius: 16px; padding: 12px 14px; margin: 0; }
.logo-footer .logo-text { background: linear-gradient(120deg, #C4B5FD, #F9A8D4, #FDE68A); -webkit-background-clip: text; background-clip: text; }
.footer-bottom { margin-top: 24px; font-size: .85rem; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.2fr 1fr 1.3fr; } }

/* ---------- buttons ---------- */
.btn { --bc: var(--violet); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 22px; border-radius: 999px; border: 2px solid transparent; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer; transition: transform .18s var(--ease-bounce), box-shadow .2s, background .2s, color .2s; user-select: none; line-height: 1.2; text-align: center; }
.btn:active { transform: scale(.95); }
.btn[disabled], .btn.is-loading { opacity: .65; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 10px 24px -10px rgba(162, 28, 175, .7); background-size: 160% 100%; background-position: 0 0; }
.btn-primary:hover { color: #fff; background-position: 100% 0; transform: translateY(-2px); box-shadow: 0 14px 30px -10px rgba(162, 28, 175, .75); }
.btn-warm { background: var(--grad-warm); color: #1E1B3A; box-shadow: 0 10px 24px -10px rgba(236, 72, 153, .6); }
.btn-warm:hover { color: #1E1B3A; transform: translateY(-2px); }
.btn-ghost { background: #fff; color: var(--violet-d); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--violet); color: var(--violet-d); transform: translateY(-1px); }
.btn-soft { background: var(--violet-50); color: var(--violet-d); }
.btn-soft:hover { background: #E2DDFF; color: var(--violet-d); }
.btn-danger { background: #FEE2E2; color: var(--red-d); }
.btn-danger:hover { background: #FECACA; color: var(--red-d); }
.btn-white { background: #fff; color: var(--violet-d); box-shadow: var(--shadow); }
.btn-sm { min-height: 36px; padding: 6px 14px; font-size: .9rem; }
.btn-lg { min-height: 58px; padding: 14px 32px; font-size: 1.15rem; }
.btn-xl { min-height: 68px; padding: 16px 40px; font-size: 1.3rem; font-family: var(--font-head); }
.btn-block { width: 100%; }
.btn.is-loading::after { content: ""; width: 16px; height: 16px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.link-btn { background: none; border: 0; padding: 0; color: var(--violet-d); font-weight: 600; text-decoration: underline; cursor: pointer; }

/* ---------- cards ---------- */
.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; position: relative; }
.card-pad-lg { padding: 28px; }
@media (min-width: 640px) { .card { padding: 24px; } .card-pad-lg { padding: 36px; } }
.card-lift { transition: transform .3s var(--ease-bounce), box-shadow .3s; }
.card-lift:hover { transform: translateY(-6px) rotate(-.4deg); box-shadow: var(--shadow-lg); }
a.card { display: block; text-decoration: none; color: inherit; }
.card-title { font-family: var(--font-head); font-size: 1.25rem; font-weight: 700; margin: 0 0 4px; }
.card-accent { border-top: 6px solid var(--c, var(--violet)); }
.panel-soft { background: var(--violet-50); border-radius: var(--radius-sm); padding: 14px 16px; }

/* ---------- chips / pills / badges ---------- */
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--chip-bg, var(--violet-50)); color: var(--chip-fg, var(--violet-d)); border: 0; line-height: 1.3; }
.chip-field { background: color-mix(in srgb, var(--c, #6254E8) 14%, white); color: var(--ink); border: 1.5px solid color-mix(in srgb, var(--c, #6254E8) 45%, white); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; }
.pill-green { background: #D1FAE5; color: #065F46; }
.pill-amber { background: #FEF3C7; color: #92400E; }
.pill-red { background: #FEE2E2; color: #991B1B; }
.pill-violet { background: var(--violet-50); color: var(--violet-d); }
.pill-sky { background: #DBEAFE; color: #1E40AF; }
.pill-grey { background: #EDEBF5; color: #4A4670; }
.badge-unverified { display: inline-flex; align-items: center; gap: 4px; font-size: .78rem; font-weight: 600; color: #92400E; background: #FEF3C7; border-radius: 10px; padding: 3px 9px; }
.tag-check { display: inline-flex; }
.tag-check input { position: absolute; opacity: 0; pointer-events: none; }
.tag-check span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; background: #fff; border: 2px solid var(--line); font-weight: 600; cursor: pointer; transition: all .2s var(--ease-bounce); user-select: none; }
.tag-check span:hover { border-color: var(--violet); transform: translateY(-2px); }
.tag-check input:checked + span { background: var(--violet); border-color: var(--violet); color: #fff; animation: pop .35s var(--ease-bounce); }
.tag-check input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }

/* ---------- forms ---------- */
.form-grid { display: grid; gap: 16px; }
@media (min-width: 640px) { .form-grid.two { grid-template-columns: 1fr 1fr; } }
.field label, .field .label { display: block; font-weight: 600; margin-bottom: 6px; font-size: .95rem; }
.field .hint { font-size: .82rem; color: var(--muted); margin-top: 4px; }
.input, .select, .textarea, input[type=text].input, input[type=email].input {
  width: 100%; min-height: 50px; border-radius: 16px; border: 2px solid var(--line); background: #fff; padding: 10px 14px; font-size: 1rem; transition: border-color .2s, box-shadow .2s;
}
.textarea { min-height: 110px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(98, 84, 232, .15); }
.field.has-error .input, .field.has-error .select, .field.has-error .textarea { border-color: var(--red); background: #FFF7F7; }
.field-error { color: var(--red-d); font-size: .85rem; font-weight: 600; margin-top: 4px; }
.form-error { background: #FEE2E2; color: #991B1B; padding: 12px 14px; border-radius: 14px; font-weight: 600; }
.form-ok { background: #D1FAE5; color: #065F46; padding: 12px 14px; border-radius: 14px; font-weight: 600; }
.input-row { display: flex; gap: 8px; }
.input-row .input { flex: 1; min-width: 0; }
.check-line { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.check-line input { width: 20px; height: 20px; margin-top: 3px; accent-color: var(--violet); flex-shrink: 0; }

/* ---------- toasts ---------- */
.toasts { position: fixed; z-index: 200; left: 50%; bottom: 20px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; width: calc(100% - 32px); max-width: 420px; pointer-events: none; }
.toast { background: #1E1B3A; color: #fff; padding: 12px 18px; border-radius: 18px; font-weight: 600; box-shadow: var(--shadow-lg); animation: toast-in .45s var(--ease-bounce); pointer-events: auto; display: flex; gap: 10px; align-items: center; }
.toast.is-error { background: #991B1B; }
.toast.is-success { background: #065F46; }
.toast.is-fun { background: var(--grad); font-family: var(--font-head); font-size: 1.15rem; }
.toast.is-leaving { animation: toast-out .3s ease-in forwards; }
@keyframes toast-in { from { opacity: 0; transform: translateY(20px) scale(.9); } to { opacity: 1; transform: none; } }
@keyframes toast-out { to { opacity: 0; transform: translateY(12px) scale(.95); } }

/* ---------- modal ---------- */
.modal-backdrop { position: fixed; inset: 0; z-index: 150; background: rgba(30, 27, 58, .55); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 16px; animation: fade-in .2s ease-out; }
.modal { background: #fff; border-radius: 28px; width: 100%; max-width: 460px; max-height: calc(100vh - 32px); overflow: auto; padding: 28px 24px; box-shadow: var(--shadow-lg); animation: pop-in .4s var(--ease-bounce); position: relative; }
.modal-close { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--violet-50); cursor: pointer; font-size: 1.2rem; color: var(--violet-d); }
.modal-emoji { font-size: 3.4rem; text-align: center; line-height: 1; margin-bottom: 8px; animation: float 3s ease-in-out infinite; }
@keyframes fade-in { from { opacity: 0; } }
@keyframes pop-in { from { opacity: 0; transform: scale(.85) translateY(20px); } }

/* ---------- skeleton & loaders ---------- */
.skeleton { position: relative; overflow: hidden; background: #ECE8FB; border-radius: 16px; min-height: 18px; }
.skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); animation: shimmer 1.3s infinite; }
.skel-card { height: 180px; border-radius: var(--radius); }
.skel-line { height: 16px; margin: 10px 0; }
.skel-line.w60 { width: 60%; } .skel-line.w40 { width: 40%; }
@keyframes shimmer { to { transform: translateX(100%); } }
.spinner { width: 42px; height: 42px; border-radius: 50%; border: 4px solid var(--violet-50); border-top-color: var(--violet); animation: spin .8s linear infinite; margin: 24px auto; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 36px 16px; color: var(--muted); }
.empty .big-emoji { font-size: 3rem; display: block; margin-bottom: 8px; animation: float 3.5s ease-in-out infinite; }

/* ---------- animations ---------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes float-r { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-16px) rotate(10deg); } }
@keyframes pop { 0% { transform: scale(1); } 40% { transform: scale(1.12); } 100% { transform: scale(1); } }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 20% { transform: rotate(-8deg); } 40% { transform: rotate(7deg); } 60% { transform: rotate(-4deg); } 80% { transform: rotate(3deg); } }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 75% { transform: translateX(6px); } }
@keyframes gradient-pan { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
.anim-rise { animation: rise .6s var(--ease-bounce) both; }
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s var(--ease-bounce); }
.reveal.is-visible { opacity: 1; transform: none; }
.wiggle-hover:hover { animation: wiggle .6s ease; }
.shake { animation: shake .35s ease 2; }

/* ---------- hero ---------- */
.hero { position: relative; overflow: hidden; margin: 16px 16px 0; border-radius: 32px; color: #fff; background: linear-gradient(125deg, #6254E8, #A21CAF, #DB2777, #F59E0B, #6254E8); background-size: 300% 300%; animation: gradient-pan 18s ease infinite; padding: 56px 0 72px; }
@media (min-width: 1212px) { .hero { margin: 16px auto 0; max-width: 1180px; } }
.hero h1 { color: #fff; text-shadow: 0 4px 24px rgba(30, 27, 58, .25); }
.hero .lead { font-size: clamp(1.05rem, 2.4vw, 1.3rem); max-width: 620px; color: #fff; opacity: .97; }
.hero-content { position: relative; z-index: 2; max-width: 720px; }
.hero .eyebrow { background: rgba(255, 255, 255, .2); color: #fff; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 20px; }
.hero-cta .btn-white { color: #4B3DD1; }
.hero-cta .btn-outline { background: rgba(255, 255, 255, .14); color: #fff; border-color: rgba(255, 255, 255, .6); }
.hero-cta .btn-outline:hover { background: rgba(255, 255, 255, .24); color: #fff; }
.hero-floaters { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.floater { position: absolute; font-size: clamp(1.8rem, 5vw, 3.2rem); animation: float-r 6s ease-in-out infinite; filter: drop-shadow(0 8px 14px rgba(30, 27, 58, .25)); will-change: transform; }
.floater .p { display: inline-block; transition: transform .2s linear; }
@media (max-width: 720px) { .floater { opacity: .28; font-size: 1.6rem; } .floater:nth-of-type(n+6) { display: none; } }
.shape { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .16); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 26px; }
.hero-stat { background: rgba(255, 255, 255, .17); border: 1px solid rgba(255, 255, 255, .3); border-radius: 18px; padding: 8px 14px; font-weight: 600; font-size: .92rem; }

/* page hero (inner pages) */
.page-hero { padding: 32px 0 10px; }
.page-hero h1 { font-size: clamp(1.8rem, 5vw, 2.8rem); }
.page-hero .lead { color: var(--muted); font-size: 1.08rem; max-width: 680px; }
.color-hero { margin: 16px 16px 0; border-radius: 32px; padding: 36px 0 40px; color: var(--hero-fg, #fff); background: linear-gradient(130deg, var(--c, #6254E8), color-mix(in srgb, var(--c, #6254E8) 55%, #1E1B3A)); position: relative; overflow: hidden; }
@media (min-width: 1212px) { .color-hero { margin: 16px auto 0; max-width: 1180px; } }
.color-hero h1, .color-hero p, .color-hero a { color: #fff; }
.color-hero .hero-emoji { font-size: clamp(3rem, 9vw, 5rem); line-height: 1; display: inline-block; animation: float 4s ease-in-out infinite; }
.color-hero::after { content: ""; position: absolute; width: 340px; height: 340px; right: -90px; top: -120px; border-radius: 50%; background: rgba(255, 255, 255, .14); }
.breadcrumbs { font-size: .9rem; margin-bottom: 10px; display: flex; flex-wrap: wrap; gap: 6px; opacity: .95; }
.breadcrumbs a { font-weight: 600; }

/* ---------- field cards ---------- */
.fcard { --c: #6254E8; position: relative; overflow: hidden; border-radius: 26px; background: #fff; padding: 22px; box-shadow: 0 12px 30px -16px color-mix(in srgb, var(--c) 70%, transparent); text-decoration: none; color: var(--ink); display: flex; flex-direction: column; gap: 6px; transition: transform .35s var(--ease-bounce), box-shadow .3s; border: 2px solid color-mix(in srgb, var(--c) 18%, white); }
.fcard::before { content: ""; position: absolute; width: 160px; height: 160px; border-radius: 50%; right: -50px; top: -60px; background: color-mix(in srgb, var(--c) 16%, white); transition: transform .5s var(--ease-bounce); }
.fcard:hover { transform: translateY(-8px) scale(1.015); box-shadow: 0 22px 40px -16px color-mix(in srgb, var(--c) 80%, transparent); color: var(--ink); }
.fcard:hover::before { transform: scale(1.35); }
.fcard:hover .femoji { animation: wiggle .7s ease; }
.femoji { font-size: 2.6rem; line-height: 1; position: relative; display: inline-block; width: 64px; height: 64px; display: grid; place-items: center; border-radius: 20px; background: color-mix(in srgb, var(--c) 20%, white); }
.fcard h3 { margin: 8px 0 0; position: relative; }
.fcard p { color: var(--ink-2); font-size: .93rem; margin: 0; position: relative; }
.fcard .fmeta { margin-top: auto; padding-top: 10px; font-weight: 700; color: color-mix(in srgb, var(--c) 70%, #1E1B3A); font-size: .9rem; position: relative; }
.fcard-strip { height: 6px; background: var(--c); position: absolute; left: 0; right: 0; bottom: 0; }

/* ---------- how it works ---------- */
.steps { counter-reset: step; }
.step { text-align: center; padding: 26px 20px; }
.step-emoji { font-size: 2.6rem; width: 80px; height: 80px; margin: 0 auto 10px; border-radius: 26px; display: grid; place-items: center; background: var(--sc, var(--violet-50)); animation: float 5s ease-in-out infinite; }
.step:nth-child(2) .step-emoji { animation-delay: -1.2s; }
.step:nth-child(3) .step-emoji { animation-delay: -2.4s; }
.step:nth-child(4) .step-emoji { animation-delay: -3.6s; }
.step-num { display: inline-block; font-weight: 800; color: var(--violet-d); font-family: var(--font-head); }

/* ---------- pricing ---------- */
.price { font-family: var(--font-head); font-weight: 800; font-size: 2.4rem; line-height: 1; color: var(--ink); }
.price small { font-size: 1rem; color: var(--muted); font-weight: 600; }
.price-old { text-decoration: line-through; color: var(--muted); font-weight: 600; margin-right: 6px; }
.plan-card { display: flex; flex-direction: column; gap: 10px; border: 3px solid transparent; transition: transform .3s var(--ease-bounce), border-color .2s, box-shadow .3s; }
.plan-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.plan-card.is-featured { border-color: var(--violet); }
.plan-card .ribbon { position: absolute; top: -14px; right: 18px; background: var(--grad-warm); color: #1E1B3A; font-weight: 800; font-size: .8rem; padding: 4px 12px; border-radius: 999px; }
.plan-perks { list-style: none; padding: 0; margin: 0; }
.plan-perks li { padding: 4px 0 4px 28px; position: relative; }
.plan-perks li::before { content: "✔"; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%; background: #D1FAE5; color: #047857; font-size: .72rem; display: grid; place-items: center; font-weight: 800; }

/* ---------- mentor cards ---------- */
.mcard { display: flex; flex-direction: column; gap: 10px; }
.mhead { display: flex; gap: 14px; align-items: center; }
.mphoto { width: 64px; height: 64px; border-radius: 22px; object-fit: cover; flex-shrink: 0; display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 1.6rem; color: #fff; background: var(--grad); }
.mphoto.lg { width: 96px; height: 96px; border-radius: 30px; font-size: 2.4rem; }
.mname { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; line-height: 1.2; margin: 0; }
.mheadline { color: var(--muted); font-size: .92rem; margin: 0; }
.mprice { font-weight: 800; color: var(--violet-d); }

/* ---------- dashboard ---------- */
.dash-hero { display: grid; gap: 16px; }
@media (min-width: 900px) { .dash-hero { grid-template-columns: 1.4fr 1fr; } }
.greet { background: var(--grad); color: #fff; border-radius: 30px; padding: 28px; position: relative; overflow: hidden; }
.greet h1 { color: #fff; font-size: clamp(1.7rem, 5vw, 2.5rem); }
.greet p { color: #fff; }
.greet .big-emoji { position: absolute; right: 18px; bottom: 6px; font-size: 5rem; opacity: .9; animation: float 4s ease-in-out infinite; }
.stat-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.stat { background: #fff; border-radius: 22px; padding: 16px; box-shadow: var(--shadow); }
.stat .num { font-family: var(--font-head); font-weight: 800; font-size: 2rem; line-height: 1.1; color: var(--sc, var(--violet-d)); }
.stat .lbl { font-size: .85rem; color: var(--muted); font-weight: 600; }
.banner { display: flex; gap: 14px; align-items: flex-start; border-radius: 20px; padding: 16px 18px; background: #FEF3C7; color: #78350F; }
.banner .b-emoji { font-size: 1.8rem; line-height: 1; }
.banner.is-info { background: #DBEAFE; color: #1E3A8A; }
.banner.is-ok { background: #D1FAE5; color: #064E3B; }
.banner.is-error { background: #FEE2E2; color: #7F1D1D; }
.banner p { margin: 0; }
.list-item { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px dashed var(--line); }
.list-item:last-child { border-bottom: 0; }
.quick-links { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .quick-links { grid-template-columns: repeat(4, 1fr); } }
.qlink { background: #fff; border-radius: 22px; padding: 18px 12px; text-align: center; text-decoration: none; color: var(--ink); font-weight: 700; box-shadow: var(--shadow); transition: transform .3s var(--ease-bounce); }
.qlink span { display: block; font-size: 2rem; margin-bottom: 4px; }
.qlink:hover { transform: translateY(-5px) rotate(-1deg); color: var(--violet-d); }

/* ---------- multi-step register ---------- */
.stepper { display: flex; gap: 8px; margin-bottom: 22px; }
.stepper .dot { flex: 1; height: 8px; border-radius: 8px; background: var(--line); position: relative; overflow: hidden; }
.stepper .dot::after { content: ""; position: absolute; inset: 0; background: var(--grad); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-bounce); }
.stepper .dot.done::after, .stepper .dot.active::after { transform: scaleX(1); }
.form-step { animation: step-in .45s var(--ease-bounce); }
@keyframes step-in { from { opacity: 0; transform: translateX(30px); } to { opacity: 1; transform: none; } }
.auth-shell { max-width: 560px; margin: 28px auto 0; }
.auth-emoji { font-size: 3rem; line-height: 1; display: inline-block; animation: float 4s ease-in-out infinite; }
.form-nav { display: flex; gap: 10px; justify-content: space-between; margin-top: 22px; }

/* ---------- tabs ---------- */
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; scrollbar-width: thin; position: sticky; top: var(--header-h); z-index: 5; background: linear-gradient(var(--bg) 80%, transparent); }
.tab { flex-shrink: 0; border: 0; background: #fff; border-radius: 999px; padding: 9px 16px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow); color: var(--ink-2); text-decoration: none; transition: all .2s; }
.tab:hover { color: var(--violet-d); }
.tab.is-active { background: var(--violet); color: #fff; }
.course-section { scroll-margin-top: calc(var(--header-h) + 70px); }

/* ---------- timeline ---------- */
.timeline { list-style: none; padding: 0; margin: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 21px; top: 8px; bottom: 8px; width: 4px; border-radius: 4px; background: linear-gradient(var(--violet), var(--pink), var(--amber)); }
.timeline li { position: relative; padding: 4px 0 18px 60px; opacity: 0; transform: translateX(-16px); transition: opacity .5s, transform .5s var(--ease-bounce); }
.timeline.is-visible li { opacity: 1; transform: none; }
.timeline li .tnum { position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 16px; background: #fff; border: 3px solid var(--violet); display: grid; place-items: center; font-weight: 800; font-family: var(--font-head); color: var(--violet-d); box-shadow: var(--shadow); }
.timeline li .tbody { background: #fff; border-radius: 16px; padding: 12px 16px; box-shadow: var(--shadow); }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border-radius: 20px; background: #fff; box-shadow: var(--shadow); -webkit-overflow-scrolling: touch; }
table.tbl { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .93rem; }
.tbl th, .tbl td { text-align: left; padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl thead th { background: var(--violet-50); color: var(--violet-d); font-weight: 700; font-family: var(--font-head); font-size: 1rem; }
.tbl tbody tr:hover { background: #FBFAFF; }
.tbl .best { background: #D1FAE5; color: #065F46; font-weight: 700; border-radius: 8px; padding: 2px 8px; display: inline-block; }
.compare-tbl th[scope=row] { background: #FBFAFF; width: 160px; color: var(--ink-2); }

/* ---------- colleges ---------- */
.filters { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .filters { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .filters { grid-template-columns: 2fr repeat(4, 1fr); } }
.ccard { display: flex; flex-direction: column; gap: 8px; }
.ccard h3 { margin: 0; font-size: 1.15rem; }
.ccard h3 a { color: var(--ink); text-decoration: none; }
.ccard h3 a:hover { color: var(--violet-d); }
.ccard .meta { display: flex; flex-wrap: wrap; gap: 6px 12px; color: var(--muted); font-size: .88rem; }
.ccard .fee { font-weight: 700; color: var(--green-d); }
.ccard .compare-check { margin-top: auto; padding-top: 8px; display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.compare-tray { position: fixed; z-index: 60; left: 50%; bottom: 14px; transform: translate(-50%, 140%); width: calc(100% - 32px); max-width: 760px; background: #1E1B3A; color: #fff; border-radius: 24px; padding: 12px 14px; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; box-shadow: var(--shadow-lg); transition: transform .45s var(--ease-bounce), visibility 0s .45s; visibility: hidden; }
.compare-tray.is-open { transform: translate(-50%, 0); visibility: visible; transition: transform .45s var(--ease-bounce); }
.compare-tray .tray-items { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; min-width: 0; }
.compare-tray .tray-chip { background: rgba(255, 255, 255, .14); border-radius: 999px; padding: 4px 6px 4px 12px; font-size: .82rem; display: inline-flex; gap: 6px; align-items: center; max-width: 220px; }
.compare-tray .tray-chip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.compare-tray .tray-chip button { border: 0; background: rgba(255, 255, 255, .2); color: #fff; border-radius: 50%; width: 22px; height: 22px; cursor: pointer; flex-shrink: 0; }
.has-tray .site-main { padding-bottom: 140px; }

/* ---------- course cards ---------- */
.course-card { display: flex; flex-direction: column; gap: 8px; border-left: 6px solid var(--c, var(--violet)); }
.course-card h3 { margin: 0; font-size: 1.12rem; }
.course-card .fee { font-weight: 700; color: var(--green-d); }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; font-size: .93rem; }
.kv dt { color: var(--muted); font-weight: 600; }
.kv dd { margin: 0; }
ul.clean { list-style: none; padding: 0; margin: 0; }
ul.ticks { list-style: none; padding: 0; margin: 0; }
ul.ticks li { padding: 5px 0 5px 30px; position: relative; }
ul.ticks li::before { content: "✨"; position: absolute; left: 0; top: 4px; }

/* ---------- slot picker ---------- */
.day-chips, .time-chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 10px; }
.time-chips { flex-wrap: wrap; overflow: visible; }
.day-chip { flex-shrink: 0; border: 2px solid var(--line); background: #fff; border-radius: 18px; padding: 8px 12px; text-align: center; cursor: pointer; min-width: 72px; transition: all .2s var(--ease-bounce); }
.day-chip b { display: block; font-family: var(--font-head); font-size: 1.3rem; line-height: 1.1; }
.day-chip small { color: var(--muted); font-weight: 600; }
.day-chip:hover { transform: translateY(-3px); border-color: var(--violet); }
.day-chip.is-active { background: var(--violet); border-color: var(--violet); color: #fff; }
.day-chip.is-active small { color: #E9E5FF; }
.time-chip { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 16px; font-weight: 700; cursor: pointer; transition: all .2s var(--ease-bounce); }
.time-chip:hover { border-color: var(--pink); transform: translateY(-2px); }
.time-chip.is-active { background: var(--pink-d); border-color: var(--pink-d); color: #fff; animation: pop .35s var(--ease-bounce); }

/* ---------- availability editor ---------- */
.avail-row { display: grid; grid-template-columns: 1fr 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.avail-day { border-radius: 20px; background: #fff; padding: 14px; box-shadow: var(--shadow); }
.avail-day h4 { margin: 0 0 8px; display: flex; justify-content: space-between; align-items: center; }
.icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 0; background: #FEE2E2; color: var(--red-d); cursor: pointer; font-size: 1rem; }

/* ---------- consent page ---------- */
.consent-card { max-width: 640px; margin: 28px auto 0; text-align: center; }
.consent-card ul { text-align: left; }
.big-emoji { font-size: 4rem; line-height: 1; display: inline-block; }
.bounce-in { animation: pop-in .6s var(--ease-bounce) both; }

/* ============================================================
   TEST (quiz) — the star of the show
   ============================================================ */
.page-test .site-main { padding-bottom: 24px; display: flex; flex-direction: column; }
.quiz-shell { width: 100%; max-width: 860px; margin: 0 auto; padding: 14px 16px 24px; flex: 1; display: flex; flex-direction: column; }
.quiz-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.track { position: relative; flex: 1; height: 18px; border-radius: 999px; background: #fff; box-shadow: inset 0 2px 6px rgba(98, 84, 232, .15); }
.track-fill { position: absolute; inset: 0 auto 0 0; border-radius: 999px; background: linear-gradient(90deg, #14B8A6, #6254E8, #EC4899, #F59E0B); background-size: 200% 100%; animation: gradient-pan 6s linear infinite; transition: width .6s var(--ease-bounce); width: 0; }
.track-rocket { position: absolute; top: 50%; left: 0; transform: translate(-50%, -55%) rotate(45deg); font-size: 1.9rem; transition: left .6s var(--ease-bounce); filter: drop-shadow(0 4px 6px rgba(30, 27, 58, .3)); }
.track-rocket::after { content: ""; position: absolute; }
.track-goal { position: absolute; right: -6px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; }
.track-stars { position: absolute; inset: 0; pointer-events: none; }
.xp { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 999px; padding: 4px 12px 4px 4px; box-shadow: var(--shadow); font-weight: 700; flex-shrink: 0; }
.xp .lvl { background: var(--grad-warm); color: #1E1B3A; border-radius: 999px; padding: 2px 10px; font-family: var(--font-head); font-weight: 800; }
.xp .xp-num { font-size: .9rem; color: var(--violet-d); min-width: 52px; }
.xp.bump { animation: pop .4s var(--ease-bounce); }
.quiz-meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; flex-wrap: wrap; }
.cat-badge { display: inline-flex; align-items: center; gap: 6px; padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: .9rem; background: var(--cb, var(--violet-50)); color: var(--cf, var(--violet-d)); animation: pop .4s var(--ease-bounce); }
.q-count { font-weight: 700; color: var(--muted); font-size: .92rem; }
.stage { position: relative; perspective: 1400px; flex: 1; }
.qcard { background: #fff; border-radius: 32px; padding: 26px 18px 22px; box-shadow: var(--shadow-lg); position: relative; overflow: hidden; transform-origin: center; }
@media (min-width: 640px) { .qcard { padding: 34px 32px 30px; } }
.qcard::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 8px; background: var(--qc, var(--grad)); }
.qcard.enter-next { animation: card-in-right .55s var(--ease-bounce) both; }
.qcard.enter-prev { animation: card-in-left .55s var(--ease-bounce) both; }
.qcard.leave-next { animation: card-out-left .32s ease-in both; }
.qcard.leave-prev { animation: card-out-right .32s ease-in both; }
.qcard.flip-in { animation: flip-in .7s var(--ease-bounce) both; }
@keyframes card-in-right { from { opacity: 0; transform: translateX(60px) rotate(3deg) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes card-in-left { from { opacity: 0; transform: translateX(-60px) rotate(-3deg) scale(.96); } to { opacity: 1; transform: none; } }
@keyframes card-out-left { to { opacity: 0; transform: translateX(-70px) rotate(-4deg) scale(.95); } }
@keyframes card-out-right { to { opacity: 0; transform: translateX(70px) rotate(4deg) scale(.95); } }
@keyframes flip-in { from { opacity: 0; transform: rotateY(-90deg); } to { opacity: 1; transform: none; } }
.q-emoji { font-size: clamp(3.2rem, 11vw, 4.6rem); line-height: 1; text-align: center; display: block; margin: 0 auto 10px; animation: float 3.6s ease-in-out infinite; }
.q-text { font-family: var(--font-head); font-weight: 700; font-size: clamp(1.3rem, 4.2vw, 1.9rem); text-align: center; line-height: 1.3; margin: 0 auto 22px; max-width: 640px; }
.options { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 600px) { .options { grid-template-columns: 1fr 1fr; gap: 14px; } }
.opt { --oc: #6254E8; position: relative; display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; min-height: 72px; padding: 14px 16px; border-radius: 22px; border: 3px solid color-mix(in srgb, var(--oc) 30%, white); background: color-mix(in srgb, var(--oc) 8%, white); cursor: pointer; font-weight: 600; font-size: 1.02rem; line-height: 1.35; transition: transform .25s var(--ease-bounce), box-shadow .25s, border-color .2s, background .2s; overflow: visible; color: var(--ink); }
.opt:nth-child(1) { --oc: #6254E8; } .opt:nth-child(2) { --oc: #EC4899; } .opt:nth-child(3) { --oc: #14B8A6; } .opt:nth-child(4) { --oc: #F59E0B; } .opt:nth-child(5) { --oc: #3B82F6; } .opt:nth-child(6) { --oc: #10B981; }
.opt:hover { transform: translateY(-4px) scale(1.02); box-shadow: 0 14px 24px -12px color-mix(in srgb, var(--oc) 80%, transparent); border-color: var(--oc); animation: opt-bounce .5s var(--ease-bounce); }
@keyframes opt-bounce { 0% { transform: translateY(0); } 40% { transform: translateY(-7px) scale(1.03); } 100% { transform: translateY(-4px) scale(1.02); } }
.opt:active { transform: scale(.97); }
.opt .o-key { width: 32px; height: 32px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; font-weight: 800; font-size: .9rem; background: #fff; color: var(--ink-2); border: 2px solid color-mix(in srgb, var(--oc) 35%, white); }
.opt .o-emoji { font-size: 1.9rem; line-height: 1; flex-shrink: 0; }
.opt .o-text { flex: 1; }
.opt .o-tick { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: transparent; font-weight: 900; flex-shrink: 0; transform: scale(0); transition: transform .35s var(--ease-bounce); }
.opt.is-selected { background: var(--oc); border-color: var(--oc); color: #1E1B3A; animation: opt-pop .5s var(--ease-bounce); box-shadow: 0 16px 30px -12px color-mix(in srgb, var(--oc) 90%, transparent); }
.opt.is-selected:nth-child(1), .opt.is-selected:nth-child(2), .opt.is-selected:nth-child(5) { color: #fff; }
.opt:nth-child(1).is-selected { background: #5245DB; } .opt:nth-child(2).is-selected { background: #C0177A; } .opt:nth-child(5).is-selected { background: #1D5FD8; }
.opt.is-selected .o-key { background: rgba(255, 255, 255, .9); color: var(--ink); }
.opt.is-selected .o-tick { transform: scale(1); color: var(--green-d); }
.opt.is-dim { opacity: .62; }
@keyframes opt-pop { 0% { transform: scale(1); } 35% { transform: scale(1.07) rotate(-1deg); } 70% { transform: scale(.98); } 100% { transform: scale(1); } }
.sparkle { position: absolute; pointer-events: none; font-size: 1.1rem; animation: sparkle .8s ease-out forwards; z-index: 3; }
@keyframes sparkle { 0% { opacity: 1; transform: translate(0, 0) scale(.4); } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(1.2) rotate(40deg); } }
.quiz-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; gap: 10px; }
.kbd-hint { font-size: .8rem; color: var(--muted); text-align: center; margin-top: 12px; }
.kbd-hint kbd { background: #fff; border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 6px; padding: 0 6px; font-family: inherit; font-weight: 700; }
@media (hover: none) { .kbd-hint { display: none; } }
.quiz-intro, .quiz-panel { text-align: center; max-width: 620px; margin: 20px auto 0; }
.quiz-intro .big-emoji { font-size: 5rem; animation: float 3s ease-in-out infinite; }
.rules { display: grid; gap: 10px; text-align: left; margin: 18px 0 24px; }
.rule { display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 18px; padding: 12px 16px; box-shadow: var(--shadow); font-weight: 600; }
.rule span:first-child { font-size: 1.6rem; }
.levelup { position: fixed; inset: 0; z-index: 120; display: grid; place-items: center; padding: 16px; background: radial-gradient(circle at 50% 40%, rgba(98, 84, 232, .92), rgba(30, 27, 58, .96)); color: #fff; animation: fade-in .3s; text-align: center; }
.levelup-inner { max-width: 560px; }
.levelup h2 { color: #fff; font-size: clamp(2rem, 7vw, 3.2rem); animation: pop-in .7s var(--ease-bounce) both; }
.levelup .trophy { font-size: 5.5rem; display: inline-block; animation: wiggle 1.2s ease .3s 2, float 3s ease-in-out 1.5s infinite; }
.levelup .ff-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 20px 0 28px; }
.levelup .ff { background: #fff; color: var(--ink); border-radius: 22px; padding: 14px 18px; font-weight: 700; font-family: var(--font-head); font-size: 1.15rem; display: inline-flex; gap: 8px; align-items: center; border-bottom: 6px solid var(--c); animation: rise .6s var(--ease-bounce) both; }
.levelup .ff:nth-child(2) { animation-delay: .15s; } .levelup .ff:nth-child(3) { animation-delay: .3s; }
.levelup p { color: #fff; }
.calc { text-align: center; padding: 50px 0; }
.calc .orbit { width: 150px; height: 150px; margin: 0 auto 24px; position: relative; }
.calc .orbit .core { position: absolute; inset: 38px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 2.6rem; animation: pop 1.2s ease-in-out infinite; }
.calc .orbit .sat { position: absolute; inset: 0; animation: spin 2.2s linear infinite; }
.calc .orbit .sat span { position: absolute; font-size: 1.6rem; }
.calc .orbit .sat span:nth-child(1) { top: -6px; left: 50%; transform: translateX(-50%); }
.calc .orbit .sat span:nth-child(2) { bottom: -6px; left: 50%; transform: translateX(-50%); }
.calc .orbit .sat span:nth-child(3) { left: -6px; top: 50%; transform: translateY(-50%); }
.calc .orbit .sat span:nth-child(4) { right: -6px; top: 50%; transform: translateY(-50%); }
.calc-msg { font-family: var(--font-head); font-size: 1.5rem; font-weight: 700; min-height: 2.4em; }
.confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 300; width: 100%; height: 100%; }

/* ============================================================
   RESULT
   ============================================================ */
.result-hero { text-align: center; padding: 34px 0 10px; }
.result-hero .big-emoji { font-size: 4.4rem; animation: float 3.5s ease-in-out infinite; }
.result-hero h1 { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.top-fields { display: grid; gap: 20px; }
.rcard { --c: #6254E8; position: relative; overflow: hidden; border-radius: 30px; background: #fff; box-shadow: 0 22px 46px -20px color-mix(in srgb, var(--c) 75%, transparent); opacity: 0; transform: translateY(40px) scale(.96); transition: opacity .7s ease, transform .8s var(--ease-bounce); }
.rcard.is-shown { opacity: 1; transform: none; }
.rcard-head { background: linear-gradient(125deg, var(--c), color-mix(in srgb, var(--c) 55%, #1E1B3A)); color: #fff; padding: 22px 20px; display: flex; gap: 16px; align-items: center; position: relative; }
.rcard-head::after { content: ""; position: absolute; right: -40px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .13); }
.rank { position: absolute; top: 12px; right: 16px; background: rgba(255, 255, 255, .22); color: #fff; font-weight: 800; border-radius: 999px; padding: 2px 12px; font-size: .85rem; z-index: 1; }
.rcard-emoji { font-size: 3.4rem; width: 84px; height: 84px; flex-shrink: 0; border-radius: 26px; background: rgba(255, 255, 255, .95); display: grid; place-items: center; position: relative; z-index: 1; }
.rcard-head h2 { color: #fff; margin: 0; font-size: clamp(1.4rem, 4.5vw, 2rem); position: relative; z-index: 1; }
.match { font-family: var(--font-head); font-weight: 800; font-size: clamp(2rem, 7vw, 2.8rem); line-height: 1; position: relative; z-index: 1; }
.match small { font-size: .9rem; font-weight: 600; opacity: .95; margin-left: 4px; }
.rcard-body { padding: 20px; display: grid; gap: 18px; }
@media (min-width: 800px) { .rcard-body { grid-template-columns: 1.15fr 1fr; padding: 24px 28px; } }
.because { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.because li { background: color-mix(in srgb, var(--c) 9%, white); border-left: 4px solid var(--c); border-radius: 12px; padding: 8px 12px; font-style: italic; }
.because li::before { content: "“"; font-weight: 800; margin-right: 2px; } .because li::after { content: "”"; font-weight: 800; }
.mini-title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; margin: 0 0 8px; color: var(--ink); }
.course-links { display: grid; gap: 8px; }
.course-link { display: flex; justify-content: space-between; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 14px; background: #FAF9FF; border: 2px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; transition: all .2s var(--ease-bounce); }
.course-link:hover { border-color: var(--c); transform: translateX(4px); color: var(--ink); }
.course-link small { color: var(--muted); font-weight: 500; white-space: nowrap; }
.bars { display: grid; gap: 14px; }
.bar-row { display: grid; grid-template-columns: minmax(110px, 190px) 1fr 52px; gap: 10px; align-items: center; }
.bar-label { font-weight: 600; font-size: .95rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-track { height: 22px; background: #EFEDFB; border-radius: 999px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: var(--c); width: 0; transition: width 1.4s var(--ease-bounce); background-image: linear-gradient(90deg, rgba(255, 255, 255, .0), rgba(255, 255, 255, .35)); }
.bar-pct { font-weight: 800; text-align: right; font-family: var(--font-head); font-size: 1.05rem; }
@media (max-width: 480px) { .bar-row { grid-template-columns: 1fr 48px; } .bar-label { grid-column: 1 / -1; } }
.reason-ring { width: 120px; height: 120px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(var(--teal) calc(var(--p, 0) * 1%), #E6E2FA 0); margin: 0 auto 10px; transition: --p 1s; }
.reason-ring b { width: 92px; height: 92px; border-radius: 50%; background: #fff; display: grid; place-items: center; font-family: var(--font-head); font-size: 1.5rem; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.share-link-box { display: flex; gap: 8px; margin-top: 10px; }
.share-link-box input { flex: 1; min-width: 0; }
.print-only { display: none; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal, .rcard, .timeline li { opacity: 1; transform: none; }
  .blob { animation: none; }
}

/* ============================================================
   PRINT — clean colourful A4 report ("Save as PDF")
   ============================================================ */
@media print {
  @page { size: A4; margin: 12mm; }
  * { -webkit-print-color-adjust: exact !important; print-color-adjust: exact !important; animation: none !important; transition: none !important; }
  html, body { background: #fff !important; font-size: 11pt; }
  .blobs, .site-header, .site-footer, .toasts, .no-print, .result-actions, .compare-tray, .skip-link, .modal-backdrop, .confetti-canvas { display: none !important; }
  .print-only { display: block !important; }
  .reveal, .timeline li { opacity: 1 !important; transform: none !important; }
  .site-main { padding: 0 !important; }
  .wrap { max-width: none; padding: 0; }
  .card, .rcard, .stat { box-shadow: none !important; border: 1px solid #E6E2FA; }
  .rcard { opacity: 1 !important; transform: none !important; break-inside: avoid; page-break-inside: avoid; margin-bottom: 10px; border-radius: 16px; }
  .rcard-head { padding: 12px 16px; }
  .rcard-emoji { width: 56px; height: 56px; font-size: 2.2rem; border-radius: 16px; }
  .rcard-body { grid-template-columns: 1.15fr 1fr !important; padding: 12px 16px; gap: 10px; font-size: 10pt; }
  .top-fields { gap: 10px; }
  .result-hero { padding: 0 0 6px; }
  .result-hero .big-emoji { display: none; }
  .result-hero h1 { font-size: 20pt; color: #4B3DD1 !important; -webkit-text-fill-color: #4B3DD1; background: none; }
  .bar-fill { transition: none !important; }
  .bar-track { height: 12px; }
  .bars { gap: 6px; }
  .section { padding: 10px 0; }
  .print-break { break-before: page; }
  .print-header { display: flex !important; align-items: center; gap: 10px; border-bottom: 3px solid #6254E8; padding-bottom: 6px; margin-bottom: 10px; }
  .print-header img { width: 34px; height: 34px; }
  .print-header b { font-family: var(--font-head); font-size: 18pt; color: #4B3DD1; }
  a { color: inherit; text-decoration: none; }
  h2 { font-size: 15pt; }
}

/* Brain Power aptitude profile */
.skill-list { display: grid; gap: 12px; margin-top: 14px; }
.skill-head { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; align-items: center; }
.skill-level { font-size: .8rem; font-weight: 700; padding: 2px 10px; border-radius: 999px; color: #1E1B3A; background: color-mix(in srgb, var(--lc) 22%, #fff); border: 1.5px solid var(--lc); }
.skill-track { height: 10px; border-radius: 999px; background: #E6E2FA; overflow: hidden; margin: 6px 0 4px; }
.skill-track i { display: block; height: 100%; width: 0; border-radius: inherit; animation: skill-grow 1.1s cubic-bezier(.2,.8,.2,1) .3s forwards; }
@keyframes skill-grow { to { width: var(--w); } }
@media (prefers-reduced-motion: reduce) { .skill-track i { animation: none; width: var(--w); } }
@media print { .skill-track i { animation: none !important; width: var(--w) !important; -webkit-print-color-adjust: exact; print-color-adjust: exact; } }

/* =====================================================================
   v2 — "Udi" refresh: living background, mascot, 3D cards, micro-interactions
   (animate transform/opacity only; everything static under reduced motion)
   ===================================================================== */
:root {
  --grad-sky: linear-gradient(160deg, #1E1B4B 0%, #312E81 42%, #5B21B6 78%, #9D174D 100%);
  --grad-btn: linear-gradient(120deg, #6254E8 0%, #8B3FE0 45%, #DB2777 100%);
}

/* ---------- living background ---------- */
.blob { filter: none; opacity: .55; background: radial-gradient(closest-side, var(--bc), transparent) !important; animation: aurora 26s ease-in-out infinite alternate; will-change: transform; }
.b1 { --bc: rgba(167, 139, 250, .75); }
.b2 { --bc: rgba(244, 114, 182, .55); }
.b3 { --bc: rgba(45, 212, 191, .45); }
.b4 { --bc: rgba(251, 191, 36, .45); }
@keyframes aurora {
  0% { transform: translate3d(0, 0, 0) scale(1) rotate(0deg); }
  33% { transform: translate3d(6vw, 4vh, 0) scale(1.12) rotate(20deg); }
  66% { transform: translate3d(-4vw, 8vh, 0) scale(.92) rotate(-10deg); }
  100% { transform: translate3d(3vw, -3vh, 0) scale(1.05) rotate(8deg); }
}
.stars { position: absolute; inset: 0; }
.star { position: absolute; width: var(--s); height: var(--s); border-radius: 50%; background: #fff; box-shadow: 0 0 6px 1px rgba(167, 139, 250, .9); opacity: 0; animation: twinkle var(--d) ease-in-out var(--dl) infinite; }
.star.star-x { background: #FDE68A; box-shadow: 0 0 8px 2px rgba(251, 191, 36, .7); }
@keyframes twinkle { 0%, 100% { opacity: 0; transform: translateY(0) scale(.6); } 50% { opacity: .85; transform: translateY(-18px) scale(1); } }
html.is-paused *, html.is-paused *::before, html.is-paused *::after { animation-play-state: paused !important; }

/* ---------- page transitions ---------- */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  ::view-transition-old(root) { animation: vt-out .22s ease both; }
  ::view-transition-new(root) { animation: vt-in .34s cubic-bezier(.2, .8, .2, 1) both; }
  .site-header { view-transition-name: site-header; }
  @supports not (view-transition-name: none) { .site-main { animation: vt-in .4s ease both; } }
}
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); } }

/* ---------- scroll progress + rocket ---------- */
.scroll-prog { position: fixed; top: 0; left: 0; right: 0; height: 4px; z-index: 70; pointer-events: none; }
.scroll-prog i { display: block; height: 100%; background: linear-gradient(90deg, #6254E8, #EC4899, #F59E0B); transform-origin: 0 50%; transform: scaleX(0); border-radius: 0 4px 4px 0; }
.to-top { position: fixed; right: 16px; bottom: 18px; z-index: 55; width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff; background: var(--grad-btn); box-shadow: var(--shadow-lg); cursor: pointer; display: grid; place-items: center; font-size: 1.55rem; animation: pop-in .45s var(--ease-bounce); transition: transform .25s var(--ease-bounce); }
.to-top:hover { transform: translateY(-4px); }
.to-top-r { display: inline-block; transform: rotate(-45deg); }
.to-top:hover .to-top-r { animation: rocket-rumble .25s linear infinite; }
.to-top-flame { position: absolute; left: 50%; top: 66%; width: 16px; height: 22px; margin-left: -8px; border-radius: 50% 50% 50% 50% / 30% 30% 70% 70%; background: radial-gradient(circle at 50% 30%, #FEF3C7, #F59E0B 55%, rgba(239, 68, 68, 0)); opacity: 0; }
.to-top.is-launch { background: transparent; border-color: transparent; box-shadow: none; animation: none; }
.to-top.is-launch .to-top-r, .to-top.is-launch .to-top-flame { animation: rocket-launch .9s cubic-bezier(.5, 0, .9, .4) forwards; }
.to-top.is-launch .to-top-flame { opacity: 1; }
@keyframes rocket-rumble { 0%, 100% { translate: 0 0; } 50% { translate: 1px -1px; } }
@keyframes rocket-launch { 0% { translate: 0 0; } 20% { translate: 0 6px; } 100% { translate: 0 -110vh; } }
.has-tray .to-top { bottom: 100px; }

/* ---------- focus ---------- */
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; animation: focus-pop .35s var(--ease-bounce); }
@keyframes focus-pop { from { outline-offset: 9px; outline-color: rgba(245, 158, 11, 0); } }

/* ---------- buttons ---------- */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn-primary { background: var(--grad-btn); background-size: 180% 100%; }
.btn-primary, .btn-warm, .btn-white { box-shadow: 0 10px 22px -10px rgba(98, 84, 232, .65), inset 0 -3px 0 rgba(30, 27, 58, .14); }
.btn-primary:hover, .btn-warm:hover, .btn-white:hover { transform: translateY(-3px); }
.btn:active { transform: scale(.93, .9) !important; transition-duration: .08s; }
.btn-primary::before, .btn-warm::before, .btn-white::before, .shine-auto::before {
  content: ""; position: absolute; top: -10%; left: -50%; width: 38%; height: 120%; z-index: -1; pointer-events: none;
  background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  transform: skewX(-20deg) translateX(0); opacity: 0;
}
.btn-white::before { background: linear-gradient(100deg, rgba(196, 181, 253, 0), rgba(196, 181, 253, .6), rgba(196, 181, 253, 0)); }
.btn-primary:hover::before, .btn-warm:hover::before, .btn-white:hover::before { animation: shine-sweep .8s ease-out; }
.shine-auto::before { animation: shine-sweep 1s ease-in-out 1.4s 3; }
.shine-auto:hover::before { animation: shine-sweep .8s ease-out; }
@keyframes shine-sweep { 0% { opacity: 1; transform: skewX(-20deg) translateX(0); } 100% { opacity: 1; transform: skewX(-20deg) translateX(480%); } }
.ripple { position: absolute; border-radius: 50%; background: currentColor; opacity: .22; transform: scale(0); animation: ripple .6s ease-out forwards; pointer-events: none; z-index: -1; }
.btn-primary .ripple, .btn-danger .ripple { background: #fff; opacity: .35; }
@keyframes ripple { to { transform: scale(1); opacity: 0; } }
.qlink, .tab, .day-chip, .time-chip { position: relative; overflow: hidden; isolation: isolate; }
.magnetic { transition: translate .25s cubic-bezier(.2, .8, .2, 1), transform .18s var(--ease-bounce), box-shadow .2s; }

/* ---------- cards: 3D tilt + shine + gradient borders ---------- */
.fcard, .card-lift, .plan-card, .qlink, .tilt { --rx: 0deg; --ry: 0deg; }
.is-tilting { transform: perspective(900px) rotateX(var(--rx)) rotateY(var(--ry)) translateY(-6px) !important; transition: transform .12s linear, box-shadow .3s !important; }
.fcard::after, .card-lift::after, .plan-card::after, .qlink::after, .tilt::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 2;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 0%), rgba(255, 255, 255, .5), rgba(255, 255, 255, 0) 45%);
  opacity: 0; transition: opacity .3s;
}
.is-tilting::after { opacity: 1; }
.card-lift:not(.course-card), .tilt { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, #E6E2FA, #E6E2FA) border-box; }
.card-lift:not(.course-card):hover, .tilt:hover, .gborder { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, var(--c, #6254E8), #EC4899, #F59E0B) border-box; }
.gborder { border: 2px solid transparent; }
.card-lift { overflow: hidden; }
.card-lift:hover { box-shadow: 0 26px 46px -20px color-mix(in srgb, var(--c, #6254E8) 70%, transparent), 0 4px 12px rgba(30, 27, 58, .06); }
.shine { position: absolute; top: 0; left: -60%; width: 45%; height: 100%; pointer-events: none; z-index: 2; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .6), rgba(255, 255, 255, 0)); transform: skewX(-18deg); opacity: 0; }
.fcard:hover .shine, .card-lift:hover .shine { animation: shine-sweep .9s ease-out; }
.fcard { background: linear-gradient(160deg, #fff 55%, color-mix(in srgb, var(--c) 9%, white)) padding-box, linear-gradient(140deg, color-mix(in srgb, var(--c) 55%, white), color-mix(in srgb, var(--c) 12%, white) 60%) border-box; border-color: transparent; }
.fcard .femoji { transition: transform .4s var(--ease-bounce); box-shadow: inset 0 -4px 0 color-mix(in srgb, var(--c) 25%, white); }
.fcard:hover .femoji { transform: scale(1.1) rotate(-6deg); animation: none; }
.fcard .fmeta { transition: transform .3s var(--ease-bounce); }
.fcard:hover .fmeta { transform: translateX(6px); }
.reveal { transform: translateY(28px) scale(.97); }
.reveal.is-visible { transform: none; }

/* ---------- toasts / skeleton ---------- */
.toast { border: 2px solid rgba(255, 255, 255, .25); }
.toast.is-fun { background: var(--grad-btn); animation: toast-in-fun .6s var(--ease-bounce); }
@keyframes toast-in-fun { 0% { opacity: 0; transform: translateY(40px) scale(.6) rotate(-6deg); } 60% { opacity: 1; transform: translateY(-6px) scale(1.06) rotate(2deg); } 100% { transform: none; } }
.skeleton { background: linear-gradient(110deg, #ECE8FB, #F3E8FF); }

/* ---------- header polish ---------- */
.main-nav a:not(.btn) { position: relative; }
@media (min-width: 1160px) {
  .main-nav a:not(.btn)::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; border-radius: 3px; background: var(--grad-btn); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease-bounce); }
  .main-nav a:not(.btn):hover::after, .main-nav a.is-active::after { transform: scaleX(1); }
}
.avatar-initial.is-emoji { font-size: 1.45rem; line-height: 1; }

/* ---------- page hero banners (inner pages) ---------- */
.page-hero { padding: 16px 0 8px; }
.page-hero > .wrap, .page-hero:not(:has(> .wrap)) {
  position: relative; overflow: hidden; border-radius: 32px; padding: 28px 20px 26px; border: 2px solid #fff; box-shadow: var(--shadow);
  background:
    radial-gradient(circle at 88% 18%, rgba(236, 72, 153, .22), rgba(236, 72, 153, 0) 42%),
    radial-gradient(circle at 6% 100%, rgba(20, 184, 166, .2), rgba(20, 184, 166, 0) 45%),
    linear-gradient(135deg, #EEEBFF 0%, #F8E9FB 55%, #FEF3DA 100%);
}
.page-hero > .wrap { width: calc(100% - 32px); max-width: 1148px; }
.page-hero:not(:has(> .wrap)) { margin-top: 16px; }
@media (min-width: 640px) { .page-hero > .wrap, .page-hero:not(:has(> .wrap)) { padding: 36px 40px 32px; } }
.page-hero > .wrap > *:not(.ph-float), .page-hero > *:not(.ph-float):not(.wrap) { position: relative; z-index: 1; }
.page-hero .eyebrow { background: #fff; box-shadow: 0 4px 12px -6px rgba(98, 84, 232, .5); }
.page-hero h1 { background: linear-gradient(100deg, #1E1B3A 20%, #4B3DD1 60%, #A21CAF); -webkit-background-clip: text; background-clip: text; color: transparent; padding-bottom: .06em; }
.page-hero .lead { color: var(--ink-2); }
.ph-float { position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.ph-f { position: absolute; font-size: 2.6rem; line-height: 1; animation: float-r 7s ease-in-out infinite; filter: drop-shadow(0 8px 10px rgba(98, 84, 232, .25)); }
.ph-f1 { right: 5%; top: 18%; font-size: 3.6rem; }
.ph-f2 { right: 18%; bottom: 12%; animation-delay: -2s; font-size: 1.6rem; }
.ph-f3 { right: 26%; top: 12%; animation-delay: -4s; font-size: 1.3rem; }
.ph-f4 { right: 12%; bottom: 48%; animation-delay: -1s; font-size: 1.2rem; }
@media (max-width: 860px) {
  .ph-f { opacity: .28; }
  .ph-f1 { font-size: 2.4rem; right: 3%; top: 8%; }
  .ph-f3, .ph-f4 { display: none; }
}

/* ---------- landing hero: night sky ---------- */
.hero.hero-sky { margin: 0; max-width: none; border-radius: 0; padding: 22px 0 130px; animation: none; background: var(--grad-sky); color: #fff; isolation: isolate; }
.hero-aurora { position: absolute; inset: 0; overflow: hidden; z-index: -1; }
.au { position: absolute; border-radius: 50%; will-change: transform; animation: aurora 20s ease-in-out infinite alternate; }
.au1 { width: 70vmax; height: 40vmax; left: -20vmax; top: -18vmax; background: radial-gradient(closest-side, rgba(124, 108, 245, .7), rgba(124, 108, 245, 0)); }
.au2 { width: 60vmax; height: 36vmax; right: -24vmax; top: 6vh; background: radial-gradient(closest-side, rgba(236, 72, 153, .55), rgba(236, 72, 153, 0)); animation-delay: -7s; }
.au3 { width: 50vmax; height: 30vmax; left: 20vw; bottom: -18vmax; background: radial-gradient(closest-side, rgba(20, 184, 166, .45), rgba(20, 184, 166, 0)); animation-delay: -13s; }
.hero-stars { position: absolute; inset: 0; z-index: -1;
  background-image:
    radial-gradient(1.6px 1.6px at 20px 30px, #fff, rgba(255, 255, 255, 0)),
    radial-gradient(1.2px 1.2px at 140px 80px, #FDE68A, rgba(255, 255, 255, 0)),
    radial-gradient(1.4px 1.4px at 90px 160px, #fff, rgba(255, 255, 255, 0)),
    radial-gradient(1px 1px at 190px 120px, #C4B5FD, rgba(255, 255, 255, 0)),
    radial-gradient(1.8px 1.8px at 60px 210px, #fff, rgba(255, 255, 255, 0));
  background-size: 230px 240px; animation: twinkle-bg 5s ease-in-out infinite alternate; }
@keyframes twinkle-bg { from { opacity: .45; } to { opacity: 1; } }
.hero-grid { display: grid; gap: 4px; align-items: center; position: relative; z-index: 2; }
.hero-sky .hero-content { max-width: 640px; }
.hero-stage { position: relative; height: 262px; order: -1; display: grid; place-items: end center; padding-bottom: 50px; }
.hero-stage .orbit { top: calc(50% + 14px); }
@media (max-width: 959px) { .hero-stage { margin-bottom: 26px; } }
@media (min-width: 960px) {
  .hero.hero-sky { padding: 40px 0 150px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; gap: 24px; }
  .hero-stage { order: 0; height: 470px; place-items: center; padding-bottom: 0; }
  .hero-stage .orbit { top: 50%; }
}
.hero-sky .eyebrow { background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .28); color: #fff; }
.grad-headline { filter: drop-shadow(0 6px 20px rgba(0, 0, 0, .25)); margin-bottom: .2em; }
.hero.hero-sky h1 { text-shadow: none; }
.grad-headline span { background: linear-gradient(90deg, #FFFFFF 0%, #E9D5FF 22%, #FBCFE8 45%, #FDE68A 62%, #A7F3D0 80%, #FFFFFF 100%); background-size: 220% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: text-pan 8s linear infinite; padding-bottom: .08em; }
@keyframes text-pan { to { background-position: -220% 0; } }
.rotator { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.25rem, 3.6vw, 1.85rem); line-height: 1.3; margin: 0 0 12px; color: #E9E5FF; min-height: 1.3em; }
.rot-word-box { white-space: nowrap; }
.rot-word { color: #FDE68A; text-shadow: 0 0 18px rgba(253, 230, 138, .45); }
.rot-caret { display: inline-block; width: 3px; height: 1em; margin-left: 3px; vertical-align: -.12em; background: #FDE68A; border-radius: 2px; animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hero-sky .lead { color: #EDEBFF; }
.hero-sky .hero-stat { background: rgba(255, 255, 255, .1); border-color: rgba(255, 255, 255, .22); }
.hero-sky .btn-outline { background: rgba(255, 255, 255, .1); color: #fff; border-color: rgba(255, 255, 255, .55); }
.hero-sky .btn-outline:hover { background: rgba(255, 255, 255, .2); color: #fff; }
.hero-sky .btn-white { color: #4B3DD1; box-shadow: 0 0 0 6px rgba(255, 255, 255, .12), 0 16px 34px -10px rgba(0, 0, 0, .45); }
/* orbit of career icons */
.orbit { --d: 232px; position: absolute; left: 50%; top: 50%; width: var(--d); height: var(--d); margin: calc(var(--d) / -2) 0 0 calc(var(--d) / -2); border-radius: 50%; border: 2px dashed rgba(255, 255, 255, .16); }
.orbit-in { --d: 160px; }
@media (min-width: 960px) { .orbit { --d: 430px; } .orbit-in { --d: 300px; } }
.orbit-spin { position: absolute; inset: 0; animation: spin 46s linear infinite; }
.orbit-in .orbit-spin { animation-duration: 30s; animation-direction: reverse; }
.orb { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px; transform: rotate(var(--a)) translateX(calc(var(--d) / 2)) rotate(calc(-1 * var(--a))); }
.orb i { font-style: normal; display: grid; place-items: center; width: 100%; height: 100%; border-radius: 50%; font-size: 1.45rem; background: rgba(255, 255, 255, .13); border: 1.5px solid rgba(255, 255, 255, .28); box-shadow: 0 8px 20px -8px rgba(0, 0, 0, .4); animation: spin 46s linear infinite reverse; }
.orbit-in .orb i { animation-duration: 30s; animation-direction: normal; }
@media (min-width: 960px) { .orb { width: 60px; height: 60px; margin: -30px; } .orb i { font-size: 1.9rem; } }
.hero-udi { position: relative; z-index: 2; }
.hero-udi::before { content: ""; position: absolute; left: 50%; top: 55%; width: 130%; height: 100%; transform: translate(-50%, -50%); border-radius: 50%; background: radial-gradient(closest-side, rgba(236, 72, 153, .45), rgba(124, 108, 245, .2) 60%, rgba(124, 108, 245, 0)); z-index: -1; }
.hero-udi .p { display: block; transition: transform .2s linear; }
.udi.udi-hero { --udi-size: 128px; }
@media (min-width: 960px) { .udi.udi-hero { --udi-size: 230px; } }
/* waves */
.wave { position: absolute; left: 0; width: 100%; display: block; pointer-events: none; }
.wave-bottom { bottom: -1px; height: 70px; fill: var(--bg); z-index: 1; }
@media (min-width: 960px) { .wave-bottom { height: 96px; } }
.band { position: relative; margin: 70px 0; background: linear-gradient(180deg, #EEEBFF, #FDF2F8); padding: 30px 0 34px; }
.band .wave-top { bottom: calc(100% - 1px); height: 60px; fill: #EEEBFF; }
.band .wave-bot { top: calc(100% - 1px); height: 60px; fill: #FDF2F8; }
/* stats strip */
.stats-strip { position: relative; z-index: 3; margin-top: -84px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 900px) { .stats-grid { grid-template-columns: repeat(4, 1fr); gap: 18px; } }
.stat-tile { background: #fff; border-radius: 24px; padding: 16px 12px; text-align: center; box-shadow: var(--shadow-lg); display: flex; flex-direction: column; align-items: center; gap: 2px; border-bottom: 5px solid var(--sc); min-width: 0; }
.stat-tile .st-emoji { font-size: 1.8rem; line-height: 1; animation: float 4s ease-in-out infinite; }
.stat-tile:nth-child(2) .st-emoji { animation-delay: -1s; } .stat-tile:nth-child(3) .st-emoji { animation-delay: -2s; } .stat-tile:nth-child(4) .st-emoji { animation-delay: -3s; }
.stat-tile b { font-family: var(--font-head); font-weight: 800; font-size: clamp(1.9rem, 5vw, 2.6rem); line-height: 1.1; color: color-mix(in srgb, var(--sc) 70%, #1E1B3A); font-variant-numeric: tabular-nums; }
.stat-tile span:last-child { font-weight: 600; color: var(--muted); font-size: .9rem; overflow-wrap: anywhere; }
.step { overflow: hidden; }
.step-num { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; background: var(--grad-btn); color: #fff; margin-bottom: 6px; box-shadow: 0 6px 14px -6px rgba(98, 84, 232, .7); }
.schools-card.tilt, .schools-card.tilt:hover { background: linear-gradient(135deg, #FFF7E6, #FDEBF4) padding-box, linear-gradient(120deg, #F59E0B, #EC4899) border-box; }

/* ============================================================
   Udi the mascot
   ============================================================ */
.udi { --udi-size: 120px; position: relative; display: inline-block; width: var(--udi-size); height: calc(var(--udi-size) * 1.065); pointer-events: none; flex-shrink: 0; vertical-align: bottom; }
.udi-fig { position: relative; width: 100%; height: 100%; }
.udi-svg { display: block; width: 100%; height: 100%; overflow: visible; }
.udi-svg g, .udi-svg path, .udi-svg ellipse { transform-box: fill-box; }
.udi-body-g { transform-origin: 50% 100%; animation: udi-bob 3.2s ease-in-out infinite; }
.udi-shadow { transform-origin: 50% 50%; animation: udi-shadow 3.2s ease-in-out infinite; }
.udi-wing-l { transform-origin: 100% 65%; animation: wing-l 1.3s ease-in-out infinite alternate; }
.udi-wing-r { transform-origin: 0% 65%; animation: wing-r 1.3s ease-in-out infinite alternate; }
.udi-eyes { transform-origin: 50% 50%; animation: udi-blink 4.8s infinite; }
.udi-pupils { transition: transform .35s var(--ease-bounce); }
.udi-antenna { transform-origin: 0% 100%; animation: antenna 2.6s ease-in-out infinite alternate; }
.udi-star { transform-origin: 50% 50%; animation: star-twinkle 2.2s ease-in-out infinite; }
.udi-mouth-open { opacity: 0; transition: opacity .2s; }
.udi-mouth { transition: opacity .2s; }
.udi-q { opacity: 0; transform: scale(.3) translateY(10px); transform-origin: 50% 100%; transition: opacity .3s, transform .4s var(--ease-bounce); }
@keyframes udi-bob { 0%, 100% { transform: translateY(0) scaleY(1); } 50% { transform: translateY(-5%) scaleY(1.02); } }
@keyframes udi-shadow { 0%, 100% { transform: scale(1); opacity: .16; } 50% { transform: scale(.78); opacity: .09; } }
@keyframes wing-l { from { transform: rotate(6deg); } to { transform: rotate(-14deg); } }
@keyframes wing-r { from { transform: rotate(-6deg); } to { transform: rotate(14deg); } }
@keyframes udi-blink { 0%, 44%, 49%, 100% { transform: scaleY(1); } 46.5% { transform: scaleY(.1); } }
@keyframes antenna { from { transform: rotate(-7deg); } to { transform: rotate(7deg); } }
@keyframes star-twinkle { 0%, 100% { transform: scale(1) rotate(0); } 50% { transform: scale(1.25) rotate(25deg); } }
.mood-happy .udi-fig { animation: udi-hop .65s var(--ease-bounce); }
.mood-happy .udi-mouth, .mood-cheer .udi-mouth, .mood-wave .udi-mouth { opacity: 0; }
.mood-happy .udi-mouth-open, .mood-cheer .udi-mouth-open, .mood-wave .udi-mouth-open { opacity: 1; }
.mood-happy .udi-wing-l, .mood-cheer .udi-wing-l, .mood-happy .udi-wing-r, .mood-cheer .udi-wing-r { animation-duration: .16s; }
.mood-happy .udi-eyes, .mood-cheer .udi-eyes { animation: none; transform: scaleY(.8); }
.mood-thinking .udi-pupils { transform: translate(-1.5px, -4.5px); }
.mood-thinking .udi-q { opacity: 1; transform: none; animation: q-bob 1.6s ease-in-out .4s infinite; }
.mood-thinking .udi-body-g { animation: udi-ponder 3.6s ease-in-out infinite; }
.mood-thinking .udi-wing-l, .mood-thinking .udi-wing-r { animation-duration: 2.4s; }
.mood-cheer .udi-fig { animation: udi-spin-jump 1.1s var(--ease-bounce); }
.mood-wave .udi-wing-r { animation: wing-wave .42s ease-in-out infinite alternate; }
.mood-wave .udi-body-g { animation: udi-sway 1.4s ease-in-out infinite alternate; }
@keyframes udi-hop { 0% { transform: translateY(0) scale(1, 1); } 25% { transform: translateY(2%) scale(1.08, .9); } 55% { transform: translateY(-22%) scale(.95, 1.06); } 80% { transform: translateY(0) scale(1.05, .95); } 100% { transform: none; } }
@keyframes udi-spin-jump { 0% { transform: none; } 20% { transform: translateY(4%) scale(1.1, .88); } 60% { transform: translateY(-30%) rotate(360deg); } 85% { transform: translateY(0) scale(1.06, .94) rotate(360deg); } 100% { transform: rotate(360deg); } }
@keyframes wing-wave { from { transform: rotate(-8deg); } to { transform: rotate(-52deg); } }
@keyframes udi-sway { from { transform: rotate(-4deg); } to { transform: rotate(4deg); } }
@keyframes udi-ponder { 0%, 100% { transform: rotate(-5deg) translateY(0); } 50% { transform: rotate(-3deg) translateY(-3%); } }
@keyframes q-bob { 0%, 100% { transform: translateY(0) rotate(-6deg); } 50% { transform: translateY(-4px) rotate(6deg); } }
.udi-bubble { position: absolute; bottom: calc(100% + 4px); left: 50%; width: max-content; max-width: 210px; translate: -50% 0; background: #fff; color: var(--ink); font-family: var(--font-head); font-weight: 700; font-size: .98rem; line-height: 1.3; text-align: center; padding: 8px 14px; border-radius: 18px; box-shadow: 0 12px 26px -10px rgba(30, 27, 58, .35); border: 2px solid #EDE9FE; z-index: 4; }
.udi-bubble::after { content: ""; position: absolute; left: 50%; top: 100%; width: 12px; height: 12px; margin: -6px 0 0 -6px; background: #fff; border-right: 2px solid #EDE9FE; border-bottom: 2px solid #EDE9FE; transform: rotate(45deg); }
.udi-bubble.is-pop { animation: bubble-pop .45s var(--ease-bounce); }
@keyframes bubble-pop { from { opacity: 0; scale: .4; } to { opacity: 1; scale: 1; } }
.udi-hero .udi-bubble { font-size: 1.05rem; max-width: 240px; }
@media (max-width: 959px) {
  .udi-hero .udi-bubble { font-size: .88rem; max-width: 230px; padding: 6px 12px; }
}

/* ============================================================
   TEST v2
   ============================================================ */
.page-test .site-main { overflow-x: clip; }
.quiz-shell { max-width: 900px; }
.quiz-top { flex-wrap: wrap; gap: 10px 14px; margin-bottom: 14px; }
.journey { position: relative; flex: 1 1 420px; min-width: 0; height: 74px; }
.j-track { position: absolute; left: 22px; right: 22px; top: 17px; height: 10px; border-radius: 999px; background: #fff; box-shadow: inset 0 2px 5px rgba(98, 84, 232, .18); overflow: hidden; }
.j-fill { position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, #EC4899, #6254E8 33%, #3B82F6 55%, #14B8A6 75%, #F59E0B); transform-origin: 0 50%; transform: scaleX(0); transition: transform .7s var(--ease-bounce); }
.j-node { position: absolute; top: 2px; left: calc(22px + (100% - 44px) * var(--f, 0)); width: 0; display: flex; flex-direction: column; align-items: center; }
.j-dot { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 1.2rem; background: #fff; border: 3px solid #E6E2FA; box-shadow: var(--shadow); filter: grayscale(.9); opacity: .8; transition: transform .4s var(--ease-bounce), border-color .3s, filter .3s, opacity .3s; position: relative; z-index: 1; }
.j-label { margin-top: 3px; font-size: .72rem; font-weight: 700; color: var(--muted); white-space: nowrap; line-height: 1.2; text-align: center; }
.j-node.is-reached .j-dot { filter: none; opacity: 1; border-color: #C4B5FD; }
.j-node.is-current .j-dot { border-color: var(--violet); transform: scale(1.15); animation: node-pulse 1.8s ease-out infinite; }
.j-node.is-current .j-label { color: var(--violet-d); }
.j-node.is-done .j-dot { border-color: var(--green); background: #ECFDF5; }
.j-node.is-done .j-dot::after { content: "✓"; position: absolute; right: -5px; bottom: -5px; width: 18px; height: 18px; border-radius: 50%; background: var(--green-d); color: #fff; font-size: .7rem; font-weight: 900; display: grid; place-items: center; animation: pop-in .4s var(--ease-bounce); }
@keyframes node-pulse { 0% { box-shadow: 0 0 0 0 rgba(98, 84, 232, .5); } 100% { box-shadow: 0 0 0 14px rgba(98, 84, 232, 0); } }
.j-mover-track { position: absolute; left: 22px; right: 22px; top: 22px; height: 0; pointer-events: none; z-index: 2; }
.j-mover { position: absolute; left: 0; top: 0; width: 100%; height: 0; transition: transform .7s var(--ease-bounce); }
.j-rocket { position: absolute; left: 0; top: 0; font-size: 1.45rem; line-height: 1; transform: translate(-50%, -105%) rotate(45deg); filter: drop-shadow(0 4px 5px rgba(30, 27, 58, .35)); animation: rocket-float 1.4s ease-in-out infinite; }
@keyframes rocket-float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -3px; } }
@media (max-width: 560px) {
  .journey { height: 70px; }
  .j-track, .j-mover-track { left: 17px; right: 17px; }
  .j-node { left: calc(17px + (100% - 34px) * var(--f, 0)); }
  .j-dot { width: 34px; height: 34px; font-size: 1rem; }
  .j-track { top: 14px; height: 8px; }
  .j-mover-track { top: 18px; }
  .j-dot { width: 30px; height: 30px; font-size: .9rem; border-width: 2.5px; }
  .j-label { font-size: .6rem; width: 70px; white-space: normal; }
  .j-node[data-i="0"] .j-label { transform: translateX(30%); }
  .j-node[data-i="4"] .j-label { transform: translateX(-30%); }
}
.hud { display: flex; align-items: center; gap: 8px; flex-shrink: 0; margin-left: auto; }
.combo { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 999px; padding: 4px 10px 4px 8px; box-shadow: var(--shadow); font-weight: 800; font-family: var(--font-head); color: #B45309; min-height: 36px; }
.combo-flame { display: inline-block; font-size: 1.1rem; filter: grayscale(1); opacity: .5; transition: filter .3s, opacity .3s; }
.combo.is-hot .combo-flame, .combo:has(.combo-meter i.on) .combo-flame { filter: none; opacity: 1; animation: flame .6s ease-in-out infinite alternate; }
@keyframes flame { from { transform: scale(1) rotate(-5deg); } to { transform: scale(1.18) rotate(5deg); } }
.combo-n { min-width: 26px; font-variant-numeric: tabular-nums; }
.combo-meter { display: inline-flex; gap: 3px; }
.combo-meter i { width: 7px; height: 16px; border-radius: 4px; background: #F1EEFB; transition: background .25s, transform .3s var(--ease-bounce); }
.combo-meter i.on { background: linear-gradient(#F59E0B, #EC4899); transform: scaleY(1.12); }
.combo.bump, .xp.bump { animation: pop .45s var(--ease-bounce); }
.sound-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; background: #fff; box-shadow: var(--shadow); font-size: 1.1rem; cursor: pointer; display: grid; place-items: center; transition: transform .2s var(--ease-bounce); position: relative; overflow: hidden; }
.sound-btn:hover { transform: scale(1.1) rotate(-6deg); }
.sound-btn.bump { animation: pop .4s var(--ease-bounce); }
.sound-btn-lg { width: 64px; height: 64px; font-size: 1.5rem; }
@media (max-width: 560px) { .hud { width: 100%; justify-content: center; } }

.stage { perspective: 1400px; }
.quiz-udi-slot { position: absolute; z-index: 5; top: -12px; right: 2px; pointer-events: none; }
.udi.quiz-udi { --udi-size: 66px; }
.quiz-udi .udi-bubble { left: auto; right: calc(100% - 4px); bottom: auto; top: 4px; translate: 0 0; font-size: .85rem; max-width: 170px; text-align: right; padding: 6px 11px; }
.quiz-udi .udi-bubble::after { left: calc(100% - 5px); top: 50%; transform: rotate(-45deg); }
@media (min-width: 1180px) {
  .quiz-udi-slot { right: calc(100% + 30px); top: 50px; }
  .udi.quiz-udi { --udi-size: 140px; }
  .quiz-udi .udi-bubble { right: auto; left: 50%; bottom: calc(100% + 4px); top: auto; translate: -50% 0; text-align: center; font-size: .95rem; }
  .quiz-udi .udi-bubble::after { left: 50%; top: 100%; transform: rotate(45deg); }
}
.qcard { border: 3px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(140deg, #E9E5FF, #FCE7F3) border-box; }
.qcard.is-brain { background: radial-gradient(circle at 100% 0%, #E0ECFF, #fff 40%) padding-box, linear-gradient(140deg, #93C5FD, #C4B5FD, #F9A8D4) border-box; }
.qcard.is-brain::before { background: linear-gradient(90deg, #3B82F6, #6254E8, #EC4899); }
.cat-badge.is-brain { animation: pop .4s var(--ease-bounce), brain-glow 2s ease-out .4s infinite; }
@keyframes brain-glow { from { box-shadow: 0 0 0 0 rgba(59, 130, 246, .5); } to { box-shadow: 0 0 0 10px rgba(59, 130, 246, 0); } }
.q-text { padding: 0 40px; overflow-wrap: anywhere; }
@media (min-width: 1180px) { .q-text { padding: 0; } }
/* option tiles: 3D press + letter badges */
.opt { border-width: 2.5px; box-shadow: 0 6px 0 color-mix(in srgb, var(--oc) 35%, white), 0 10px 18px -12px color-mix(in srgb, var(--oc) 70%, transparent); animation: opt-in .5s var(--ease-bounce) var(--d, 0ms) backwards; margin-bottom: 6px; }
@keyframes opt-in { from { opacity: 0; transform: translateY(16px) scale(.96); } }
.opt:hover { animation: none; transform: translateY(-3px); box-shadow: 0 9px 0 color-mix(in srgb, var(--oc) 45%, white), 0 16px 24px -12px color-mix(in srgb, var(--oc) 80%, transparent); }
.opt:active { transform: translateY(5px) scale(.99); box-shadow: 0 1px 0 color-mix(in srgb, var(--oc) 45%, white); transition-duration: .06s; }
.opt .o-key { width: 36px; height: 36px; border-radius: 12px; color: #fff; border: 0; font-family: var(--font-head); font-size: 1.1rem; box-shadow: inset 0 -3px 0 rgba(0, 0, 0, .2); }
.opt:nth-child(1) .o-key { background: #5245DB; } .opt:nth-child(2) .o-key { background: #C0177A; } .opt:nth-child(3) .o-key { background: #0F766E; } .opt:nth-child(4) .o-key { background: #B45309; } .opt:nth-child(5) .o-key { background: #1D5FD8; } .opt:nth-child(6) .o-key { background: #047857; }
.opt.is-selected .o-key { background: #fff; color: var(--ink); }
.opt.is-selected { box-shadow: 0 3px 0 color-mix(in srgb, var(--oc) 60%, #1E1B3A), 0 18px 30px -12px color-mix(in srgb, var(--oc) 90%, transparent); transform: translateY(3px); }
.opt-burst { position: absolute; left: 50%; top: 50%; width: 110px; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; border: 4px solid var(--oc); opacity: .8; transform: scale(.2); animation: burst .65s ease-out forwards; pointer-events: none; }
@keyframes burst { to { transform: scale(1.4); opacity: 0; } }
.xp-float { position: absolute; right: 14px; top: -8px; font-family: var(--font-head); font-weight: 800; font-size: 1.05rem; color: #92400E; background: #FEF3C7; border: 2px solid #FDE68A; border-radius: 999px; padding: 0 10px; pointer-events: none; animation: xp-float 1.1s ease-out forwards; z-index: 4; }
@keyframes xp-float { 0% { opacity: 0; transform: translateY(6px) scale(.6); } 20% { opacity: 1; transform: translateY(-8px) scale(1.1); } 100% { opacity: 0; transform: translateY(-46px) scale(1); } }
.quiz-intro .intro-udi { min-height: 150px; display: flex; justify-content: center; align-items: flex-end; padding-top: 46px; }
.intro-title { font-size: clamp(1.9rem, 6vw, 2.8rem); }
.intro-actions { display: flex; gap: 12px; align-items: center; justify-content: center; flex-wrap: wrap; }
.journey-preview { list-style: none; padding: 0; margin: 16px 0 4px; display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; }
.journey-preview li { display: flex; align-items: center; gap: 6px; font-weight: 700; font-size: .85rem; background: #fff; border-radius: 999px; padding: 4px 12px 4px 4px; box-shadow: var(--shadow); animation: rise .5s var(--ease-bounce) calc(var(--i) * 120ms) backwards; }
.jp-dot { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-50); }
/* overlays: brain power splash + level 2 unlock */
.levelup { overflow: hidden; }
.levelup.is-brain { background: radial-gradient(circle at 50% 35%, rgba(37, 99, 235, .95), rgba(30, 27, 75, .97)); }
.levelup.is-leaving { animation: fade-out .28s ease forwards; }
@keyframes fade-out { to { opacity: 0; } }
.lu-rays { position: absolute; left: 50%; top: 34%; width: 160vmax; height: 160vmax; margin: -80vmax 0 0 -80vmax; background: repeating-conic-gradient(from 0deg, rgba(255, 255, 255, .07) 0 8deg, rgba(255, 255, 255, 0) 8deg 20deg); animation: spin 40s linear infinite; pointer-events: none; }
.levelup-inner { position: relative; z-index: 1; max-height: 100%; overflow-y: auto; padding: 8px; }
.lu-kicker { display: inline-block; background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .35); border-radius: 999px; padding: 4px 14px; font-weight: 700; margin: 6px 0 8px; }
.bp-art { position: relative; height: 170px; max-width: 360px; margin: 0 auto; display: flex; justify-content: center; align-items: flex-end; }
.bp-puzzle { position: absolute; font-size: 2.4rem; animation: float-r 4s ease-in-out infinite; }
.bp-puzzle.p1 { left: 4%; top: 10%; } .bp-puzzle.p2 { right: 6%; top: 4%; animation-delay: -1s; } .bp-puzzle.p3 { left: 16%; bottom: 0; animation-delay: -2s; font-size: 1.8rem; } .bp-puzzle.p4 { right: 16%; bottom: 8px; animation-delay: -3s; font-size: 1.8rem; }
.unlock { position: relative; display: flex; justify-content: center; align-items: center; height: 170px; max-width: 420px; margin: 0 auto; }
.unlock-badge { position: relative; width: 132px; height: 132px; display: grid; place-items: center; animation: badge-unlock 1.4s var(--ease-bounce) both; filter: drop-shadow(0 12px 22px rgba(0, 0, 0, .35)); }
.unlock-badge::before, .unlock-badge::after { content: ""; position: absolute; clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); }
.unlock-badge::before { inset: 0; background: linear-gradient(150deg, #FDE68A, #F59E0B 55%, #EC4899); }
.unlock-badge::after { inset: 9px; background: linear-gradient(150deg, #6254E8, #A21CAF); }
.unlock-badge > * { position: absolute; z-index: 1; line-height: 1; }
.ub-num { font-family: var(--font-head); font-size: 3.6rem; color: #fff; opacity: 0; animation: ub-num .5s var(--ease-bounce) 1.05s forwards; }
.ub-lock, .ub-open { font-size: 2.8rem; }
.ub-lock { animation: lock-shake .95s ease both; }
.ub-open { opacity: 0; animation: lock-open 1s ease .8s both; }
@keyframes badge-unlock { 0% { transform: scale(.2) rotate(-30deg); opacity: 0; } 40% { transform: scale(1.05) rotate(4deg); opacity: 1; } 55% { transform: scale(.94) rotate(-3deg); } 72% { transform: scale(1.2); } 100% { transform: scale(1); } }
@keyframes lock-shake { 0%, 30% { transform: rotate(0); opacity: 1; } 40% { transform: rotate(-16deg); } 50% { transform: rotate(14deg); } 60% { transform: rotate(-10deg); } 72% { transform: rotate(6deg); opacity: 1; } 88%, 100% { transform: scale(1.6); opacity: 0; } }
@keyframes lock-open { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; transform: scale(1.2) translate(-12px, -18px); } 100% { opacity: 0; transform: scale(.9) translate(-60px, -50px) rotate(-20deg); } }
@keyframes ub-num { from { opacity: 0; transform: scale(.3); } to { opacity: 1; transform: none; } }
.lu-udi { position: absolute; right: 0; bottom: 0; }
.lu-udi .udi-bubble { font-size: .85rem; max-width: 130px; left: auto; right: 10px; translate: 0 0; }
.lu-udi .udi-bubble::after { left: auto; right: 26px; }
.levelup .ff { box-shadow: 0 10px 24px -10px rgba(0, 0, 0, .5); }
/* calculating */
.orbit-calc { width: 190px; height: 190px; margin: 0 auto 18px; position: relative; display: grid; place-items: center; }
.orbit-calc .sat { position: absolute; inset: 0; animation: spin 2.4s linear infinite; }
.orbit-calc .sat span { position: absolute; font-size: 1.6rem; line-height: 1; }
.orbit-calc .sat span:nth-child(1) { top: -6px; left: calc(50% - .5em); }
.orbit-calc .sat span:nth-child(2) { bottom: -6px; left: calc(50% - .5em); }
.orbit-calc .sat span:nth-child(3) { left: -6px; top: calc(50% - .5em); }
.orbit-calc .sat span:nth-child(4) { right: -6px; top: calc(50% - .5em); }
.calc-bar { width: min(320px, 80%); height: 12px; margin: 6px auto 0; border-radius: 999px; background: #fff; box-shadow: inset 0 2px 5px rgba(98, 84, 232, .2); overflow: hidden; }
.calc-bar i { display: block; height: 100%; background: linear-gradient(90deg, #14B8A6, #6254E8, #EC4899, #F59E0B); transform-origin: 0 50%; animation: calc-fill 3.3s ease-in-out forwards; }
@keyframes calc-fill { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ---------- exam-style glyph visuals (mirror images) ---------- */
.q-visual { display: flex; align-items: stretch; justify-content: center; margin: -4px auto 22px; max-width: 560px; padding-top: 14px; }
.q-visual-box { flex: 1; min-width: 0; container-type: inline-size; background: #fff; border: 2.5px solid #1E1B3A; border-right: 0; border-radius: 16px 0 0 16px; padding: 14px 10px; display: flex; align-items: center; justify-content: center; box-shadow: 0 10px 22px -14px rgba(30, 27, 58, .5); }
.mirror-strip { position: relative; width: 28px; flex-shrink: 0; border-radius: 0 12px 12px 0; background: linear-gradient(90deg, #A5B4FC, #E0F2FE 35%, #FFFFFF 50%, #BAE6FD 70%, #818CF8); border: 2.5px solid #1E1B3A; }
.mirror-glass { position: absolute; top: 6px; bottom: 6px; left: 50%; border-left: 2px dashed rgba(30, 27, 58, .6); }
.mirror-emoji { position: absolute; top: -20px; left: 50%; translate: -50% 0; font-size: 1.3rem; line-height: 1; }
.glyphs { --gmax: 34px; display: block; width: 100%; text-align: center; line-height: 1; font-family: ui-monospace, "Roboto Mono", "Cascadia Mono", Consolas, "Courier New", monospace; font-weight: 800; color: #111827; font-size: min(var(--gmax), calc(100cqw / (var(--n) * .82))); }
.glyphs-sm { --gmax: 25px; }
.g-row { display: inline-flex; flex-wrap: nowrap; white-space: nowrap; }
.g-cell { display: inline-flex; justify-content: center; align-items: center; width: .76em; height: 1.2em; }
.g-cell > span { display: inline-block; }
.g-mirror_h { transform: scaleX(-1); }
.g-mirror_v { transform: scaleY(-1); }
.g-flip > span { transform: scaleX(-1); }
.o-vwrap { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.o-vlabel { font-size: .85rem; font-weight: 700; }
.o-visual { display: block; container-type: inline-size; background: #fff; border: 2px solid #1E1B3A; border-radius: 12px; padding: 8px 4px; }
.opt.is-selected .o-visual { box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); }

/* ============================================================
   RESULT v2
   ============================================================ */
.reveal-overlay { position: fixed; inset: 0; z-index: 140; display: grid; place-items: center; text-align: center; padding: 16px; color: #fff; background: radial-gradient(circle at 50% 40%, rgba(98, 84, 232, .94), rgba(30, 27, 58, .97)); animation: fade-in .3s; overflow: hidden; }
.reveal-overlay.is-leaving { animation: fade-out .45s ease forwards; }
.reveal-overlay > div:not(.lu-rays) { position: relative; z-index: 1; }
.reveal-overlay h2 { color: #fff; font-size: clamp(1.5rem, 5vw, 2.3rem); margin-top: 14px; }
.ro-udi { min-height: 150px; display: flex; justify-content: center; align-items: flex-end; }
.drum { display: flex; justify-content: center; gap: 10px; margin: 14px 0 18px; }
.drum i { width: 14px; height: 14px; border-radius: 50%; background: #FDE68A; animation: drum .5s ease-in-out infinite alternate; }
.drum i:nth-child(2) { animation-delay: .12s; background: #F9A8D4; } .drum i:nth-child(3) { animation-delay: .24s; background: #A7F3D0; } .drum i:nth-child(4) { animation-delay: .36s; background: #C4B5FD; }
@keyframes drum { from { transform: translateY(0) scale(1); } to { transform: translateY(-14px) scale(1.2); } }
.btn.reveal-skip { background: rgba(255, 255, 255, .15); color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn.reveal-skip:hover { color: #fff; background: rgba(255, 255, 255, .25); }
.result-hero .rh-udi { display: flex; justify-content: center; min-height: 128px; align-items: flex-end; padding-top: 34px; }
.result-hero .rh-udi .udi-bubble { white-space: normal; }
.top-fields { perspective: 1600px; gap: 30px; padding-top: 10px; }
.rcard { padding: 4px; background: #fff; isolation: isolate; transform: rotateY(80deg) translateY(30px) scale(.9); transition: opacity .5s ease, transform 1s var(--ease-bounce); overflow: visible; }
.rcard.is-shown { transform: none; }
.rcard-holo { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; z-index: -1; }
.rcard-holo::before { content: ""; position: absolute; left: 50%; top: 50%; width: 160%; aspect-ratio: 1; translate: -50% -50%; background: conic-gradient(from 0deg, var(--c), #EC4899, #F59E0B, #14B8A6, #3B82F6, #A78BFA, var(--c)); animation: spin 7s linear infinite; }
.rcard-inner { position: relative; border-radius: 26px; overflow: hidden; background: #fff; }
.rcard-head { overflow: hidden; }
.rcard-head::before { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; z-index: 2; pointer-events: none; background: linear-gradient(100deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .45), rgba(255, 255, 255, 0)); transform: skewX(-20deg); opacity: 0; }
.rcard.is-shown .rcard-head::before { animation: shine-sweep 1.2s ease-out .6s, shine-sweep 1.6s ease-in-out 6s infinite; }
.rcard.is-first { box-shadow: 0 30px 60px -22px color-mix(in srgb, var(--c) 85%, transparent); }
.crown { position: absolute; left: 62px; top: -26px; font-size: 2.3rem; line-height: 1; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .3)); z-index: 3; transform: rotate(-14deg); }
.rcard.is-shown .crown { animation: crown-drop .8s var(--ease-bounce) .9s both; }
@keyframes crown-drop { from { opacity: 0; transform: translateY(-30px) rotate(-40deg) scale(.4); } to { opacity: 1; transform: rotate(-14deg); } }
.top-pill { display: inline-flex; align-items: center; gap: 4px; background: #FDE68A; color: #78350F; font-weight: 800; font-size: .8rem; padding: 2px 10px; border-radius: 999px; margin-bottom: 4px; position: relative; z-index: 1; }
.rank { background: rgba(255, 255, 255, .25); border: 1px solid rgba(255, 255, 255, .4); }
.badges-section { margin-top: 28px; }
.badges-section .card-title { margin-bottom: 0; }
.badge-row { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
@media (max-width: 420px) { .badge-row { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.bcoin { position: relative; background: #fff; border-radius: 22px; padding: 16px 10px 14px; text-align: center; box-shadow: var(--shadow); display: flex; flex-direction: column; align-items: center; gap: 4px; border-bottom: 5px solid var(--bc); animation: coin-pop .7s var(--ease-bounce) calc(.5s + var(--i) * .16s) backwards; min-width: 0; }
.bcoin-medal { width: 72px; height: 72px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; background: radial-gradient(circle at 35% 30%, #fff, color-mix(in srgb, var(--bc) 22%, white) 60%, color-mix(in srgb, var(--bc) 45%, white)); border: 4px solid color-mix(in srgb, var(--bc) 60%, white); box-shadow: 0 8px 18px -8px var(--bc); position: relative; overflow: hidden; }
.bcoin-medal::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, rgba(255, 255, 255, 0) 30%, rgba(255, 255, 255, .85) 50%, rgba(255, 255, 255, 0) 70%); transform: translateX(-120%); animation: medal-shine 3.4s ease-in-out calc(1.6s + var(--i) * .2s) infinite; }
@keyframes medal-shine { 0% { transform: translateX(-120%); } 35%, 100% { transform: translateX(120%); } }
.bcoin:hover .bcoin-medal span { display: inline-block; animation: wiggle .6s ease; }
.bcoin-label { font-family: var(--font-head); font-size: 1.05rem; line-height: 1.2; overflow-wrap: anywhere; }
.bcoin-why { color: var(--muted); font-size: .78rem; line-height: 1.3; overflow-wrap: anywhere; }
.bcoin-x { color: var(--violet-d); font-size: .9rem; }
@keyframes coin-pop { 0% { opacity: 0; transform: scale(.3) rotate(-25deg); } 70% { opacity: 1; transform: scale(1.08) rotate(4deg); } 100% { transform: none; } }
.brain-top { display: grid; gap: 4px; align-items: center; grid-template-columns: 1fr; margin-top: 6px; }
.brain-top .reason-ring { margin-bottom: 0; }
.radar { margin: 0 auto; max-width: 380px; width: 100%; }
.radar svg { width: 100%; height: auto; display: block; overflow: visible; }
.rd-grid { fill: none; stroke: #E6E2FA; stroke-width: 1.5; }
.rd-axis { stroke: #E6E2FA; stroke-width: 1.5; }
.rd-shape { stroke: #6254E8; stroke-width: 2.5; stroke-linejoin: round; }
.rd-shape-g { transform-box: view-box; transform-origin: 190px 150px; animation: radar-grow 1.2s var(--ease-bounce) .5s backwards; }
@keyframes radar-grow { from { transform: scale(0) rotate(-40deg); opacity: 0; } }
.rd-dot { stroke: #fff; stroke-width: 2; }
.rd-label { font-family: var(--font-body); font-size: 12.5px; font-weight: 600; fill: #1E1B3A; }
.rd-pct { font-family: var(--font-head); font-weight: 800; fill: #4B3DD1; }

/* ============================================================
   DASHBOARD v2
   ============================================================ */
.greet { min-height: 260px; padding-right: 170px; background: var(--grad-sky); isolation: isolate; }
.greet::before { content: ""; position: absolute; inset: 0; z-index: -1; background: radial-gradient(circle at 85% 85%, rgba(236, 72, 153, .5), rgba(236, 72, 153, 0) 45%), radial-gradient(circle at 10% 0%, rgba(124, 108, 245, .6), rgba(124, 108, 245, 0) 50%); }
.greet-udi { position: absolute; right: 18px; bottom: 12px; }
.greet-udi .udi-bubble { left: auto; right: -6px; translate: 0 0; font-size: .85rem; max-width: 150px; }
.greet-udi .udi-bubble::after { left: auto; right: 46px; }
@media (max-width: 560px) {
  .greet { padding-right: 24px; padding-bottom: 150px; }
  .greet-udi { right: auto; left: 22px; }
  .greet-udi .udi-bubble { right: auto; left: calc(100% + 6px); bottom: 40%; }
  .greet-udi .udi-bubble::after { left: -1px; right: auto; top: 50%; transform: rotate(135deg); }
}
.greet-top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.avatar-pick { width: 64px; height: 64px; flex-shrink: 0; border-radius: 22px; border: 3px solid rgba(255, 255, 255, .6); background: rgba(255, 255, 255, .16); font-size: 2.1rem; display: grid; place-items: center; cursor: pointer; position: relative; transition: transform .3s var(--ease-bounce); color: #fff; font-family: var(--font-head); font-weight: 800; line-height: 1; }
.avatar-pick:hover { transform: scale(1.08) rotate(-5deg); }
.ap-edit { position: absolute; right: -7px; bottom: -7px; width: 26px; height: 26px; border-radius: 50%; background: #FDE68A; font-size: .8rem; display: grid; place-items: center; border: 2px solid #fff; }
.avatar-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 12px; }
@media (min-width: 420px) { .avatar-grid { grid-template-columns: repeat(5, 1fr); } }
.avatar-opt { aspect-ratio: 1; border-radius: 18px; border: 3px solid var(--line); background: #FBFAFF; font-size: 1.9rem; cursor: pointer; transition: transform .25s var(--ease-bounce), border-color .2s; }
.avatar-opt:hover { transform: translateY(-3px) scale(1.06); border-color: var(--violet); }
.avatar-opt[aria-pressed="true"] { border-color: var(--violet); background: var(--violet-50); animation: pop .4s var(--ease-bounce); }
.stat { position: relative; overflow: hidden; }
.stat-ring { display: flex; align-items: center; gap: 12px; }
.ring { width: 66px; height: 66px; flex-shrink: 0; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring .rg-bg { fill: none; stroke: #EEEBFF; stroke-width: 5; }
.ring .rg-fg { fill: none; stroke-width: 5; stroke-linecap: round; stroke-dasharray: 100 100; transition: stroke-dashoffset 1.4s var(--ease-bounce); }
.ring b { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-head); font-size: 1.5rem; color: var(--violet-d); }
.dash-badges .badge-row { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }
.qlink { --qc: #6254E8; background: linear-gradient(160deg, #fff 40%, color-mix(in srgb, var(--qc) 16%, white)); border: 2px solid color-mix(in srgb, var(--qc) 25%, white); }
.qlink span { width: 60px; height: 60px; margin: 0 auto 8px; border-radius: 20px; display: grid; place-items: center; background: color-mix(in srgb, var(--qc) 18%, white); transition: transform .4s var(--ease-bounce); }
.qlink:hover span { transform: translateY(-4px) rotate(-8deg) scale(1.1); }
.qlink:nth-child(1) { --qc: #6254E8; } .qlink:nth-child(2) { --qc: #14B8A6; } .qlink:nth-child(3) { --qc: #EC4899; } .qlink:nth-child(4) { --qc: #F59E0B; }

/* ---------- misc pages ---------- */
.auth-shell > .card, .consent-card.card { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(130deg, #C4B5FD, #F9A8D4, #FDE68A) border-box; }
.color-hero { isolation: isolate; }
.list-item { transition: transform .25s var(--ease-bounce); }
.list-item:hover { transform: translateX(4px); }
.plan-card.is-featured { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(130deg, #6254E8, #EC4899, #F59E0B) border-box; }

/* ---------- reduced motion (v2) ---------- */
@media (prefers-reduced-motion: reduce) {
  .blob, .au, .star, .hero-stars, .orbit-spin, .orb i, .udi *, .udi-fig, .lu-rays, .rcard-holo::before, .grad-headline span, .rot-caret { animation: none !important; }
  .star { opacity: .5; }
  .rcard { transform: none; opacity: 1; }
  .is-tilting { transform: none !important; }
  .opt, .bcoin, .rd-shape-g, .journey-preview li, .crown { animation: none !important; }
  .ub-lock, .ub-open { display: none; }
  .ub-num { opacity: 1; animation: none; }
  .scroll-prog { display: none; }
}

/* ---------- print (v2) ---------- */
@media print {
  .scroll-prog, .to-top, .reveal-overlay, .udi, .rh-udi, .sound-btn, .ph-float, .crown, .rcard-holo { display: none !important; }
  .rcard { padding: 0 !important; transform: none !important; opacity: 1 !important; border: 1px solid #E6E2FA; }
  .rcard-head::before { display: none !important; }
  .rcard-inner { border-radius: 16px; }
  .top-fields { padding-top: 0; gap: 10px; }
  .bcoin { animation: none !important; opacity: 1 !important; transform: none !important; box-shadow: none !important; border: 1px solid #E6E2FA; border-bottom: 4px solid var(--bc); padding: 8px; }
  .bcoin-medal { width: 48px; height: 48px; font-size: 1.5rem; box-shadow: none; }
  .bcoin-medal::after { display: none; }
  .badge-row { grid-template-columns: repeat(4, 1fr); gap: 8px; }
  .badges-section { break-inside: avoid; }
  .rd-shape-g { animation: none !important; transform: none !important; opacity: 1 !important; }
  .radar { max-width: 300px; }
}
.levelup.is-level2 { background: radial-gradient(circle at 50% 38%, #7C6CF5, #3B2A9E 45%, #1E1B3A); }
.levelup.is-brain { background: radial-gradient(circle at 50% 38%, #3B82F6, #1E3A8A 50%, #1E1B4B); }
.reveal-overlay { background: radial-gradient(circle at 50% 40%, #6254E8, #2E1F7A 50%, #1E1B3A); }

/* journey label edges (desktop) + SWOT round */
@media (min-width: 561px) {
  .j-node[data-i="0"] .j-label { transform: translateX(28%); }
  .j-node[data-i="4"] .j-label { transform: translateX(-28%); }
}
.cat-badge.is-swot { border: 2px solid #FDA4AF; }

/* ============================================================
   Streams (class 11–12)
   ============================================================ */
.stream-chips { gap: 10px; }
.stream-chip span { border-color: color-mix(in srgb, var(--sc) 35%, white); background: color-mix(in srgb, var(--sc) 7%, white); padding: 10px 16px; animation: rise .45s var(--ease-bounce) calc(var(--i, 0) * 60ms) backwards; }
.stream-chip span b { font-size: 1.2rem; line-height: 1; }
.stream-chip span:hover { border-color: var(--sc); }
.stream-chip input:checked + span { background: color-mix(in srgb, var(--sc) 82%, #1E1B3A); border-color: color-mix(in srgb, var(--sc) 82%, #1E1B3A); color: #fff; box-shadow: 0 10px 20px -10px var(--sc); }
.stream-field { background: linear-gradient(135deg, #EEEBFF, #FDF2F8); border-radius: 20px; padding: 14px; border: 2px dashed #C4B5FD; }
.stream-field.is-pop { animation: pop-in .5s var(--ease-bounce); }
.field.has-error .stream-chips span { border-color: var(--red); }
.req-star { color: var(--red-d); }
.banner.is-stream { background: linear-gradient(135deg, #EEEBFF, #FCE7F3); color: #3B2A9E; border: 2px solid #C4B5FD; }
.stat-edit { position: absolute; top: 10px; right: 10px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: var(--violet-50); cursor: pointer; font-size: .9rem; z-index: 3; transition: transform .25s var(--ease-bounce); }
.stat-edit:hover { transform: scale(1.12) rotate(-10deg); }
.stream-tag { display: inline-flex; margin-top: 6px; font-size: .78rem; font-weight: 700; background: #FEF3C7; color: #92400E; border-radius: 999px; padding: 2px 10px; }

/* ---------- result: eligibility ---------- */
.cl-main { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.cl-chips { display: flex; flex-wrap: wrap; gap: 4px; }
.cchip { display: inline-flex; align-items: center; gap: 3px; font-size: .72rem; font-weight: 700; border-radius: 999px; padding: 1px 8px; background: #EDEBF5; color: #4A4670; }
.cchip.is-ok { background: #D1FAE5; color: #065F46; }
.cchip.is-after10 { background: #FEF3C7; color: #92400E; }
.elig-tip { display: inline-flex; gap: 6px; align-items: flex-start; background: #FEF3C7; color: #78350F; border-radius: 14px; padding: 8px 12px; font-weight: 600; font-size: .92rem; margin: 0 0 12px; }
.elig-msg { display: flex; gap: 8px; align-items: flex-start; background: #DBEAFE; color: #1E3A8A; border-radius: 14px; padding: 10px 12px; margin: 0 0 12px; font-size: .92rem; }
.elig-msg.is-limited { background: #FEF3C7; color: #78350F; }
.elig-msg p { margin: 0; }
.notes-card { border: 2px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(130deg, #FCD34D, #F9A8D4) border-box; }
.notes-head { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.notes-emoji { font-size: 2.2rem; line-height: 1; animation: float 4s ease-in-out infinite; }
.notes-list { display: grid; gap: 12px; }
@media (min-width: 760px) { .notes-list { grid-template-columns: repeat(2, 1fr); } }
.note-item { border-radius: 20px; padding: 14px 16px; background: #FFFBEB; border: 2px solid #FDE68A; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.note-item.is-not_eligible { background: #FFF1F2; border-color: #FECDD3; }
.note-top { display: flex; gap: 10px; align-items: center; width: 100%; }
.note-emoji { font-size: 1.8rem; width: 48px; height: 48px; border-radius: 16px; background: #fff; display: grid; place-items: center; flex-shrink: 0; box-shadow: var(--shadow); }
.note-name { display: flex; flex-direction: column; flex: 1; min-width: 0; line-height: 1.3; }
.note-name b { font-family: var(--font-head); font-size: 1.08rem; }
.note-match { font-size: .82rem; color: var(--muted); font-weight: 600; }
.note-msg { margin: 0; font-size: .92rem; }

/* ---------- result: SWOT ---------- */
.swot-grid { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 8px; }
@media (min-width: 720px) { .swot-grid { grid-template-columns: 1fr 1fr; } }
.swot-q { --q: #10B981; --qbg: #ECFDF5; --qfg: #065F46; position: relative; border-radius: 22px; padding: 16px; background: var(--qbg); border: 2px solid color-mix(in srgb, var(--q) 35%, white); overflow: hidden; }
.swot-q::before { content: ""; position: absolute; right: -40px; top: -40px; width: 130px; height: 130px; border-radius: 50%; background: color-mix(in srgb, var(--q) 14%, transparent); }
.swot-card.is-visible .swot-q { animation: swot-in .7s var(--ease-bounce) calc(var(--qi) * 130ms) backwards; }
@keyframes swot-in { from { opacity: 0; transform: scale(.85) translateY(20px); } }
.swot-s { --q: #10B981; --qbg: #ECFDF5; --qfg: #065F46; }
.swot-w { --q: #F59E0B; --qbg: #FFFBEB; --qfg: #92400E; }
.swot-o { --q: #3B82F6; --qbg: #EFF6FF; --qfg: #1E40AF; }
.swot-t { --q: #EC4899; --qbg: #FFF1F2; --qfg: #9F1239; }
.swot-title { position: relative; display: flex; align-items: center; gap: 8px; font-size: 1.15rem; color: var(--qfg); margin: 0 0 10px; }
.swot-letter { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--q) 85%, #1E1B3A); color: #fff; font-size: 1.05rem; }
.swot-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; position: relative; }
.swot-list li { display: flex; gap: 10px; align-items: flex-start; background: rgba(255, 255, 255, .8); border-radius: 14px; padding: 8px 10px; font-size: .93rem; line-height: 1.4; }
.swot-emoji { font-size: 1.25rem; line-height: 1.2; flex-shrink: 0; }
.swot-text { font-weight: 600; }
.src-tag { display: inline-block; font-size: .68rem; font-weight: 700; border-radius: 999px; padding: 0 7px; vertical-align: 1px; white-space: nowrap; }
.src-you { background: #EEEBFF; color: #4B3DD1; }
.src-test { background: #CCFBF1; color: #115E59; }
.src-data { background: #FEF3C7; color: #92400E; }
.swot-tip { display: block; margin-top: 3px; font-size: .82rem; color: var(--ink-2); }
@media (prefers-reduced-motion: reduce) { .swot-card .swot-q, .notes-emoji, .stream-chip span { animation: none !important; } }
@media print {
  .swot-grid { grid-template-columns: 1fr 1fr !important; gap: 8px; }
  .swot-q { padding: 10px; border-radius: 12px; break-inside: avoid; }
  .swot-q::before { display: none; }
  .swot-list li { padding: 3px 4px; font-size: 9pt; background: transparent; }
  .swot-card, .notes-card { break-inside: avoid; }
  .notes-list { grid-template-columns: 1fr 1fr !important; }
  .notes-emoji { display: none; }
}

/* .wrap.section keeps its side gutters (dashboard, mentor dashboard) */
.wrap.section { padding-left: 16px; padding-right: 16px; }
@media print { .bar-fill { width: var(--w, 0) !important; } }
@media (prefers-reduced-motion: reduce) { .bar-fill { width: var(--w, 0); } }

/* ============================================================
   Parent approval (mobile OTP) — ui.js parentApproval()
   ============================================================ */
.pa { text-align: left; }
.pa > * + * { margin-top: 14px; }
.pa-card { max-width: 620px; margin-left: auto; margin-right: auto; }
.pa-head { display: flex; align-items: center; gap: 12px; }
.pa-udi { flex-shrink: 0; width: 84px; display: grid; place-items: center; }
.pa-udi .udi { --udi-size: 84px; }
.pa-bubble { position: relative; flex: 1; min-width: 0; background: var(--violet-50); border-radius: 20px; padding: 12px 14px; }
.pa-bubble::before { content: ""; position: absolute; left: -8px; top: 50%; width: 16px; height: 16px; margin-top: -8px; background: var(--violet-50); transform: rotate(45deg); border-radius: 3px; }
.pa-bubble p { margin: 0; color: var(--ink); }
.pa-title { font-size: clamp(1.25rem, 4.6vw, 1.6rem); margin: 0 0 4px; }
.pa-scope { display: flex; gap: 12px; align-items: flex-start; border: 2px solid var(--line); border-radius: 18px; padding: 12px 14px; }
.pa-scope p { margin: 0; }
.pa-scope-emoji { font-size: 1.7rem; line-height: 1; }
.pa-kicker { font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--violet-d); margin: 0 0 2px; }
.pa-purpose { font-weight: 600; }
.pa-collect { border-radius: 16px; background: #FAF9FF; border: 1px solid var(--line); padding: 10px 14px; }
.pa-collect summary { cursor: pointer; font-weight: 700; font-family: var(--font-head); font-size: 1.02rem; min-height: 32px; display: flex; align-items: center; gap: 6px; }
.pa-collect ul.ticks li { padding-top: 3px; padding-bottom: 3px; }
.pa-otp { border-radius: 22px; background: linear-gradient(160deg, #FFFFFF, #F4F1FF); border: 2px solid #DCD6FF; padding: 16px 14px; text-align: center; }
.pa-otp > * + * { margin-top: 12px; }
.pa-label { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; margin: 0; }
.otp-boxes { display: grid; grid-template-columns: repeat(6, minmax(0, 52px)); justify-content: center; gap: 8px; }
.otp-box { width: 100%; height: 58px; min-width: 0; text-align: center; font-size: 1.6rem; font-weight: 700; font-family: var(--font-head); color: var(--ink); background: #fff; border: 2px solid #C9C2F5; border-radius: 14px; padding: 0; caret-color: var(--violet); transition: border-color .15s, box-shadow .15s, transform .15s var(--ease-bounce); }
.otp-box:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(98, 84, 232, .2); }
.otp-box.is-filled { border-color: var(--violet); background: var(--violet-50); }
.otp-box:disabled { background: #F1F0F6; border-color: #D8D5E6; color: #6B6890; }
.otp-boxes.is-error .otp-box { border-color: var(--red-d); }
@media (prefers-reduced-motion: no-preference) { .otp-box.is-filled { animation: pop .25s var(--ease-bounce); } }
@media (max-width: 380px) { .otp-boxes { gap: 5px; } .otp-box { height: 50px; font-size: 1.35rem; border-radius: 12px; } }
.pa-timer { margin: 0; font-size: .92rem; color: var(--ink-2); min-height: 1.4em; }
.pa-timer.is-over { color: var(--red-d); font-weight: 600; }
.pa-flash { display: flex; gap: 10px; align-items: flex-start; text-align: left; border-radius: 14px; padding: 10px 12px; font-weight: 600; }
.pa-flash p { margin: 0; }
.pa-flash.is-error { background: #FEE2E2; color: #7F1D1D; }
.pa-flash.is-warn { background: #FEF3C7; color: #78350F; }
.pa-devbox { display: flex; gap: 10px; align-items: flex-start; text-align: left; border: 2px dashed #B45309; background: #FFFBEB; color: #78350F; border-radius: 16px; padding: 10px 12px; font-size: .92rem; }
.pa-dev-emoji { font-size: 1.4rem; line-height: 1; }
.pa-devcode { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 1.25rem; letter-spacing: .18em; color: #451A03; background: #FDE68A; border-radius: 8px; padding: 0 6px; white-space: nowrap; }
.pa-resend { margin: 0; font-size: .92rem; color: var(--ink-2); display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 4px 8px; }
.pa-resend .link-btn { min-height: 36px; }
.link-btn:disabled { color: #6B6890; text-decoration: none; cursor: not-allowed; }
.pa-safe { margin: 0; }
.pa-alt { margin: 0; color: var(--ink-2); }
.pa-alt .link-btn { min-height: 32px; }
.pa-devlink { margin: 4px 0 0; font-size: .75rem; text-align: center; }
.pa-devlink a { color: var(--muted); }
.pa-wait { background: #FEF3C7; color: #78350F; border-radius: 16px; padding: 12px 14px; }
.pa-phone { border: 2px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 12px; }
.pa-phone .field { margin: 0; }
.phone-row { display: flex; align-items: stretch; }
.phone-prefix { display: inline-flex; align-items: center; padding: 0 12px; border: 2px solid var(--line); border-right: 0; border-radius: 16px 0 0 16px; background: var(--violet-50); color: var(--violet-d); font-weight: 700; flex-shrink: 0; }
.phone-row .input { border-radius: 0 16px 16px 0; flex: 1; min-width: 0; letter-spacing: .04em; }
.field.has-error .phone-prefix { border-color: var(--red-d); }
.pa-done { text-align: center; padding: 8px 0; }
.pa-done .pa-udi { width: auto; margin: 0 auto; }
.pa-done .pa-udi .udi { --udi-size: 132px; }
.pa-done .pa-title { font-size: clamp(1.6rem, 6vw, 2.2rem); margin-top: 8px; }
.pa-done .pa-title:focus { outline: none; }
.pa .spinner { margin: 32px auto; }
.modal .pa { padding-top: 6px; }
.modal .pa-head { padding-right: 34px; }
@media (max-width: 420px) {
  .pa-head .pa-udi { width: 64px; }
  .pa-head .pa-udi .udi { --udi-size: 64px; }
  .pa-bubble { padding: 10px 12px; }
  .pa-otp { padding: 14px 10px; }
}
.pa-bubble, .pa-alt, .pa-wait { overflow-wrap: anywhere; }
