/* 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: 1300px) {
  .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: 1300px) and (max-width: 1459px) {
  .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; }

/* ============================================================
   Psychometric test v2 — sections, rating scale, snappy cards
   ============================================================ */
/* Snappy transitions: 102 questions, so cards move in ≤250ms. */
.qcard.enter-next { animation: card-in-right .22s cubic-bezier(.2, .8, .2, 1) both; }
.qcard.enter-prev { animation: card-in-left .22s cubic-bezier(.2, .8, .2, 1) both; }
.qcard.leave-next { animation: card-out-left .14s ease-in both; }
.qcard.leave-prev { animation: card-out-right .14s ease-in both; }
.qcard.flip-in { animation: flip-in .25s cubic-bezier(.2, .8, .2, 1) both; }
.opt { animation-duration: .22s; }
.qcard .q-emoji { animation-duration: 4.5s; }

/* Journey with one node per section + Result. */
.quiz-top .journey { flex: 1 1 100%; height: 84px; }
.j-label { white-space: normal; width: 104px; max-height: 2.5em; overflow: hidden; }
.j-count { font-size: .68rem; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; line-height: 1.1; }
.j-node.is-current .j-count { color: var(--violet-d); }
.j-node.is-done .j-count { color: var(--green-d); }
.j-node.is-first .j-label, .j-node.is-first .j-count { transform: translateX(30%); }
.j-node.is-last .j-label { transform: translateX(-30%); }
.hud .combo[hidden] { display: none; }
@media (max-width: 560px) {
  .quiz-top .journey { height: 66px; }
  .j-node[data-i="4"] .j-label { transform: none; }
  .j-node .j-label, .j-node.is-current .j-label { display: none; } /* the section badge below names the section */
  .j-count { font-size: .6rem; margin-top: 3px; }
  .j-node.is-first .j-count { transform: none; }
}

/* Choice tiles: any number of options. */
.opt:nth-child(7) { --oc: #8B5CF6; } .opt:nth-child(8) { --oc: #0EA5E9; } .opt:nth-child(9) { --oc: #D946EF; } .opt:nth-child(10) { --oc: #84CC16; }
.opt:nth-child(7) .o-key { background: #6D28D9; } .opt:nth-child(8) .o-key { background: #0369A1; } .opt:nth-child(9) .o-key { background: #A21CAF; } .opt:nth-child(10) .o-key { background: #4D7C0F; }
.opt:nth-child(7).is-selected { background: #6D28D9; color: #fff; } .opt:nth-child(8).is-selected { background: #0369A1; color: #fff; } .opt:nth-child(9).is-selected { background: #A21CAF; color: #fff; } .opt:nth-child(10).is-selected { background: #4D7C0F; color: #fff; }
.options.is-many .opt { min-height: 58px; padding: 10px 14px; }

/* 5-point rating scale (likert), low → high. */
.likert { --gap: 10px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--gap); position: relative; padding-bottom: 16px; }
.lk { --lc: #5A4BD6; position: relative; display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 6px; min-height: 124px; padding: 14px 6px 12px; border-radius: 20px; border: 2.5px solid color-mix(in srgb, var(--lc) 30%, white); background: color-mix(in srgb, var(--lc) 7%, white); color: var(--ink); font-weight: 600; font-size: .9rem; line-height: 1.25; text-align: center; cursor: pointer; box-shadow: 0 5px 0 color-mix(in srgb, var(--lc) 28%, white); transition: transform .15s var(--ease-bounce), background .15s, border-color .15s, box-shadow .15s; overflow-wrap: anywhere; }
.lk-1 { --lc: #5B6382; } .lk-2 { --lc: #3F63C9; } .lk-3 { --lc: #5A4BD6; } .lk-4 { --lc: #9333EA; } .lk-5 { --lc: #BE185D; }
.lk-emoji { font-size: 2rem; line-height: 1; transition: transform .15s var(--ease-bounce); }
.lk-num { position: absolute; top: 6px; left: 8px; font-size: .72rem; font-weight: 800; color: var(--lc); }
.lk:hover { border-color: var(--lc); transform: translateY(-2px); }
.lk:hover .lk-emoji { transform: scale(1.12); }
.lk:active { transform: translateY(3px); box-shadow: 0 1px 0 color-mix(in srgb, var(--lc) 40%, white); }
.lk:focus-visible { outline: 3px solid var(--lc); outline-offset: 3px; }
.lk.is-selected { background: var(--lc); border-color: var(--lc); color: #fff; box-shadow: 0 2px 0 color-mix(in srgb, var(--lc) 70%, #1E1B3A), 0 14px 24px -12px var(--lc); transform: translateY(3px); }
.lk.is-selected .lk-num { color: #fff; }
.lk.is-selected .lk-emoji { transform: scale(1.18); }
.lk.is-dim { opacity: .7; }
.lk-scale { position: absolute; left: 6%; right: 6%; bottom: 0; height: 6px; border-radius: 999px; background: linear-gradient(90deg, #5B6382, #3F63C9, #5A4BD6, #9333EA, #BE185D); opacity: .55; }
@media (max-width: 559px) {
  .likert { grid-template-columns: 1fr; gap: 8px; padding-bottom: 0; padding-left: 14px; }
  .lk { flex-direction: row; min-height: 56px; padding: 8px 14px 8px 12px; text-align: left; justify-content: flex-start; gap: 12px; font-size: .98rem; border-left-width: 6px; border-left-color: var(--lc); }
  .lk-emoji { font-size: 1.6rem; }
  .lk-text { flex: 1; }
  .lk-num { position: static; order: 3; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--lc) 14%, white); flex-shrink: 0; }
  .lk.is-selected .lk-num { background: rgba(255, 255, 255, .25); }
  .lk-scale { left: 0; right: auto; top: 6px; bottom: 6px; width: 6px; height: auto; background: linear-gradient(180deg, #5B6382, #3F63C9, #5A4BD6, #9333EA, #BE185D); }
}
.qcard.is-likert .q-text { margin-bottom: 18px; }

/* Section intro + break cards. */
.sec-card { text-align: center; }
.sec-emoji { display: block; font-size: clamp(3.4rem, 12vw, 4.6rem); line-height: 1; margin-bottom: 6px; }
.sec-kicker { margin: 0; font-weight: 800; font-size: .8rem; letter-spacing: .06em; text-transform: uppercase; color: var(--violet-d); }
.sec-title { font-family: var(--font-head); font-size: clamp(1.6rem, 5.5vw, 2.2rem); margin: 2px 0 8px; }
.sec-instr { max-width: 520px; margin: 0 auto 14px; color: var(--ink-2); font-size: 1.02rem; }
.sec-facts { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 16px; }
.sec-fact { background: var(--violet-50); color: var(--violet-d); border-radius: 999px; padding: 5px 12px; font-weight: 700; font-size: .85rem; }
.sec-scale { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; max-width: 520px; margin: 0 auto 18px; }
.ss { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; color: var(--ink-2); line-height: 1.2; border-bottom: 4px solid var(--lc); padding-bottom: 6px; }
.ss b { font-size: 1.3rem; }
.ss-1 { --lc: #5B6382; } .ss-2 { --lc: #3F63C9; } .ss-3 { --lc: #5A4BD6; } .ss-4 { --lc: #9333EA; } .ss-5 { --lc: #BE185D; }
.sec-card.is-brain .sec-kicker { color: #1E40AF; }
.sec-card.is-break { background: linear-gradient(#FFFBEB, #fff) padding-box, linear-gradient(140deg, #FDE68A, #FBCFE8) border-box; }
@media (prefers-reduced-motion: reduce) { .lk, .lk-emoji { transition: none; } }

/* ============================================================
   Result: psychometric profile (v2)
   ============================================================ */
.quality-note { display: flex; gap: 12px; align-items: flex-start; background: #FEF3C7; color: #78350F; border: 2px solid #F59E0B; border-left-width: 8px; border-radius: 18px; padding: 14px 16px; }
.quality-note p { margin: 0; }
.quality-note p + p { margin-top: 6px; }
.qn-emoji { font-size: 1.8rem; line-height: 1; }
.qn-title { font-weight: 800; font-family: var(--font-head); font-size: 1.1rem; }
.because.is-evidence li { font-style: normal; }
.because.is-evidence li::before, .because.is-evidence li::after { content: none; }
.watch-outs { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.watch-outs li { background: #FFFBEB; border-left: 4px solid #D97706; border-radius: 12px; padding: 7px 12px; color: #78350F; }
.fit { margin-bottom: 14px; }
.fit-bar { display: flex; height: 14px; border-radius: 999px; background: #EFEDFB; overflow: hidden; }
.fit-seg { display: block; height: 100%; width: var(--seg); background: var(--sc); }
.fit-seg + .fit-seg { box-shadow: -2px 0 0 #fff; }
.fit-legend { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .82rem; color: var(--ink-2); }
.fit-legend li { display: inline-flex; align-items: center; gap: 5px; }
.fit-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--sc); }
.profile-card .card-title { font-size: 1.4rem; }
.holland { margin: 6px 0 18px; }
.hc-badges { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 8px; }
.hc-badge { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; padding: 12px 6px; border-radius: 22px; background: color-mix(in srgb, var(--hc) 10%, white); border: 2.5px solid var(--hc); }
.hc-badge b { font-family: var(--font-head); font-size: clamp(2.4rem, 10vw, 3.4rem); line-height: 1; color: var(--hc); }
.hc-name { font-weight: 700; font-size: .85rem; line-height: 1.25; color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .hc-badge { animation: pop-in .5s var(--ease-bounce) calc(var(--i) * 120ms) both; } }
.holland.is-flat { display: flex; gap: 12px; align-items: flex-start; background: var(--violet-50); border-radius: 18px; padding: 14px 16px; }
.hf-emoji { font-size: 2rem; line-height: 1; }
.prof-grid { display: grid; gap: 18px; margin-top: 14px; }
@media (min-width: 860px) { .prof-grid { grid-template-columns: 1fr 1fr; } }
.prof-grid > * { min-width: 0; }
.prof-block { border: 2px solid var(--line); border-radius: 20px; padding: 16px; }
.prof-h { font-size: 1.12rem; margin: 0 0 6px; }
.riasec-radar .radar { max-width: 320px; margin: 0 auto; }
.riasec-list { display: grid; gap: 10px; }
.rs-head { display: flex; align-items: center; gap: 8px; }
.rs-head b { flex: 1; font-size: .95rem; }
.rs-letter { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; background: var(--rc); color: #fff; font-weight: 800; font-family: var(--font-head); flex-shrink: 0; }
.rs-score { font-weight: 800; font-family: var(--font-head); color: var(--rc); }
.rs-track, .val-track { display: block; height: 10px; border-radius: 999px; background: #EFEDFB; overflow: hidden; margin: 5px 0 3px; }
.rs-track i, .val-track i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--rc, var(--violet)); }
.val-track i { background: linear-gradient(90deg, #F59E0B, #D97706); }
.b5 { padding: 10px 0; border-top: 1px dashed var(--line); }
.b5:first-of-type { border-top: 0; }
.b5-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.b5-pill { font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 2px 10px; background: var(--violet-50); color: var(--violet-d); }
.b5-pill.is-balanced { background: #ECFDF5; color: #065F46; }
.b5-track { position: relative; height: 10px; margin: 12px 8px 4px; border-radius: 999px; background: linear-gradient(90deg, #C7D2FE, #DDD6FE 50%, #FBCFE8); }
.b5-thumb { position: absolute; top: 50%; left: var(--v); width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 4px solid var(--violet); transform: translate(-50%, -50%); box-shadow: 0 2px 6px rgba(30, 27, 58, .25); }
.b5-ends { display: flex; justify-content: space-between; gap: 8px; font-size: .74rem; color: var(--muted); margin-bottom: 4px; }
.b5-ends small:last-child { text-align: right; }
.val-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.val-list li { display: grid; grid-template-columns: 26px minmax(0, 1fr) 90px 34px; align-items: center; gap: 8px; }
.val-rank { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: #FEF3C7; color: #92400E; font-weight: 800; font-size: .85rem; }
.val-list li:first-child .val-rank { background: #F59E0B; color: #1E1B3A; }
.val-name { font-weight: 600; font-size: .92rem; }
.val-list .val-track { margin: 0; }
.val-score { text-align: right; font-family: var(--font-head); }
.prac-list { display: grid; gap: 10px; }
.prac-card { display: flex; gap: 10px; align-items: flex-start; background: #E0F2FE; color: #0C4A6E; border-radius: 16px; padding: 12px 14px; font-size: .92rem; }
.prac-emoji { font-size: 1.4rem; line-height: 1; }
.method-note { margin: 16px 0 0; font-size: .76rem; color: var(--muted); line-height: 1.45; }
@media print {
  .quality-note { break-inside: avoid; }
  .profile-card { break-inside: auto; box-shadow: none !important; }
  .prof-grid { grid-template-columns: 1fr 1fr !important; gap: 10px; }
  .prof-block { break-inside: avoid; padding: 10px; border-radius: 12px; }
  .hc-badge { animation: none !important; }
  .riasec-radar { display: none; }
  .fit-bar, .rs-track, .val-track, .b5-track { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

.rcard-head h2 { padding-right: 44px; overflow-wrap: anywhere; }

/* ============================================================
   Figure reasoning (image questions and option tiles)
   ============================================================ */
.q-figure { margin: 0 auto 18px; display: flex; justify-content: center; }
.q-fig-btn { position: relative; display: block; padding: 10px; border: 2px solid #DCD6FF; border-radius: 20px; background: #fff; cursor: zoom-in; width: min(100%, 280px); }
.q-fig-btn img { display: block; width: 100%; height: auto; }
.q-figure.is-wide .q-fig-btn { width: 100%; max-width: 680px; }
.q-fig-btn:focus-visible, .o-zoom:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.zoom-chip { position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--violet-50); font-size: .9rem; box-shadow: var(--shadow); }
@media (min-width: 640px) { .q-fig-btn { width: min(100%, 300px); } }
.options.has-images { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .options.has-images { gap: 16px; max-width: 560px; margin: 0 auto; } }
.opt-wrap { position: relative; min-width: 0; }
.opt.has-img { flex-direction: column; align-items: stretch; gap: 8px; padding: 10px; min-height: 0; background: #fff; height: 100%; }
.o-imgtop { display: flex; align-items: center; gap: 8px; min-height: 32px; }
.opt.has-img .o-key { width: 32px; height: 32px; font-size: 1rem; }
.opt.has-img .o-vlabel { flex: 1; font-size: .78rem; font-weight: 700; color: var(--muted); line-height: 1.2; }
.opt.has-img .o-tick { width: 26px; height: 26px; }
.o-img { display: grid; place-items: center; aspect-ratio: 1; min-height: 120px; width: 100%; border-radius: 14px; background: #fff; border: 1.5px solid #ECEAF8; overflow: hidden; }
.o-img img { display: block; width: 88%; height: 88%; object-fit: contain; }
.opt.has-img.is-selected { background: color-mix(in srgb, var(--oc) 16%, white); color: var(--ink); border-width: 4px; }
.opt.has-img.is-selected .o-vlabel { color: var(--ink); }
.opt.has-img.is-selected .o-key { background: var(--oc); color: #fff; }
.opt-wrap:nth-child(1) .opt { --oc: #6254E8; } .opt-wrap:nth-child(2) .opt { --oc: #EC4899; } .opt-wrap:nth-child(3) .opt { --oc: #14B8A6; } .opt-wrap:nth-child(4) .opt { --oc: #F59E0B; }
.opt-wrap:nth-child(1) .o-key { background: #5245DB; } .opt-wrap:nth-child(2) .o-key { background: #C0177A; } .opt-wrap:nth-child(3) .o-key { background: #0F766E; } .opt-wrap:nth-child(4) .o-key { background: #B45309; }
.opt-wrap:nth-child(1) .opt.is-selected .o-key { background: #5245DB; } .opt-wrap:nth-child(2) .opt.is-selected .o-key { background: #C0177A; } .opt-wrap:nth-child(3) .opt.is-selected .o-key { background: #0F766E; } .opt-wrap:nth-child(4) .opt.is-selected .o-key { background: #B45309; }
.o-zoom { position: absolute; right: 8px; bottom: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .95); box-shadow: 0 2px 8px rgba(30, 27, 58, .25); cursor: zoom-in; font-size: .95rem; z-index: 2; }
@media (hover: hover) and (min-width: 900px) { .o-zoom { opacity: .75; } .opt-wrap:hover .o-zoom { opacity: 1; } }
.modal-zoom { max-width: 640px; }
.zoom-fig { margin: 24px 0 12px; text-align: center; }
.zoom-fig img { display: block; width: 100%; max-height: 70vh; object-fit: contain; background: #fff; border-radius: 16px; border: 2px solid #ECEAF8; padding: 8px; }
.zoom-fig figcaption { margin-top: 8px; font-size: .88rem; color: var(--muted); }
@media print { .o-zoom, .zoom-chip { display: none; } }
.o-img img { width: 96%; height: 96%; }
@media (max-width: 480px) { .opt.has-img { padding: 7px; gap: 6px; } .options.has-images { gap: 10px; } .qcard.is-brain:has(.has-images) { padding-left: 12px; padding-right: 12px; } }
.o-img { border: 0; }

/* ============================================================
   Education levels, reading passages, MBA readiness
   ============================================================ */
.level-chips .level-group { margin: 6px 0 6px; font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.level-chips .level-group:first-child { margin-top: 0; }
.tag-check.level-big span { padding: 10px 16px; border-radius: 16px; }
.tag-check.level-big b { font-size: 1.15rem; }
.stat .num.is-level { font-size: 2rem; }
.stat .lvl-name { font-weight: 700; font-size: .9rem; color: var(--ink); margin-top: 2px; }
.q-passage { text-align: left; max-width: 640px; margin: 0 auto 14px; max-height: 42vh; overflow: auto; background: #FAF9FF; border: 2px solid #E4DFFF; border-left: 6px solid var(--violet); border-radius: 16px; padding: 12px 16px; font-size: 1rem; line-height: 1.6; color: var(--ink); }
.q-passage p { margin: 0 0 8px; }
.q-passage p:last-child { margin-bottom: 0; }
.q-passage-kicker { font-weight: 800; font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--violet-d); }
.q-passage:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.q-passage + .q-text { font-size: clamp(1.15rem, 3.6vw, 1.5rem); }

.mba-card { border: 3px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(130deg, #C4B5FD, #F9A8D4, #FDE68A) border-box; }
.mba-head .card-title { font-size: 1.4rem; }
.mba-top { display: grid; gap: 18px; margin-top: 12px; align-items: center; }
@media (min-width: 760px) { .mba-top { grid-template-columns: 260px 1fr; } }
.mba-gauge { position: relative; max-width: 260px; margin: 0 auto; text-align: center; }
.mba-gauge-svg { display: block; width: 100%; height: auto; }
.mg-track { fill: none; stroke: #EFEDFB; stroke-width: 18; stroke-linecap: round; }
.mg-fill { fill: none; stroke-width: 18; stroke-linecap: round; }
.mba-score { position: absolute; left: 0; right: 0; top: 44%; display: flex; justify-content: center; align-items: baseline; gap: 2px; }
.mba-score b { font-family: var(--font-head); font-size: 3rem; line-height: 1; color: var(--mc); }
.mba-score small { font-weight: 700; color: var(--muted); }
.mba-level { display: inline-block; margin-top: 4px; padding: 3px 14px; border-radius: 999px; font-weight: 800; color: #fff; background: var(--mc); }
.mba-comps { display: grid; gap: 12px; }
.mba-comp-head { display: flex; justify-content: space-between; font-weight: 600; font-size: .95rem; }
.mba-comp-head b { font-family: var(--font-head); color: var(--mc); }
.mba-track { display: block; height: 12px; border-radius: 999px; background: #EFEDFB; overflow: hidden; margin-top: 4px; }
.mba-track i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #6254E8, #EC4899); }
.mba-message { margin: 16px 0 6px; background: var(--violet-50); border-radius: 16px; padding: 12px 14px; font-weight: 500; }
.mba-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 10px; background: #FEF3C7; color: #78350F; border: 2px solid #F59E0B; border-radius: 14px; padding: 10px 12px; }
.mba-note p { margin: 0; }
.mba-exam { background: #1E1B3A; color: #fff; font-weight: 700; letter-spacing: .03em; }
.mba-specs { display: grid; gap: 10px; }
@media (min-width: 760px) { .mba-specs { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.mba-spec { display: flex; gap: 10px; align-items: flex-start; border: 2px solid var(--line); border-radius: 18px; padding: 12px; background: #fff; }
.mba-spec-emoji { font-size: 1.8rem; line-height: 1; }
.mba-spec-head { display: flex; justify-content: space-between; gap: 6px; align-items: baseline; }
.mba-spec-score { font-family: var(--font-head); font-weight: 800; color: var(--violet-d); }
@media (prefers-reduced-motion: no-preference) { .mba-spec { animation: rise .5s var(--ease-bounce) calc(var(--i) * 120ms) both; } }
@media print { .mba-card { break-inside: avoid; } .mba-spec { animation: none !important; } }

/* ============================================================
   Live counselling: session type, length, join, chat
   ============================================================ */
.mode-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mode-card { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 14px 8px; border-radius: 20px; border: 2.5px solid var(--line); background: #fff; cursor: pointer; text-align: center; color: var(--ink); transition: transform .15s var(--ease-bounce), border-color .15s, background .15s; min-height: 118px; }
.mode-card:hover { transform: translateY(-2px); border-color: #C4B5FD; }
.mode-card .mode-emoji { font-size: 2rem; line-height: 1; }
.mode-card b { font-family: var(--font-head); font-size: 1.02rem; }
.mode-card small { font-size: .76rem; color: var(--muted); line-height: 1.25; }
.mode-card.is-active { border-color: var(--violet); background: var(--violet-50); box-shadow: 0 10px 20px -12px rgba(98, 84, 232, .8); }
.mode-card.is-active b { color: var(--violet-d); }
.mode-card:focus-visible, .dur-opt:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
.dur-toggle { display: inline-grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: 4px; padding: 4px; border-radius: 18px; background: var(--violet-50); width: 100%; max-width: 360px; }
.dur-opt { display: flex; flex-direction: column; align-items: center; gap: 1px; border: 0; border-radius: 14px; padding: 8px 10px; background: transparent; cursor: pointer; color: var(--violet-d); min-height: 52px; }
.dur-opt b { font-family: var(--font-head); font-size: 1rem; }
.dur-opt span { font-size: .82rem; font-weight: 600; }
.dur-opt.is-active { background: #fff; box-shadow: var(--shadow); color: var(--ink); }
.session-chip { font-weight: 700; }
.js-join.is-disabled { opacity: .55; filter: grayscale(.4); cursor: not-allowed; }
.meet-link a { overflow-wrap: anywhere; }

.page-chat .site-main { padding-bottom: 0; }
.chat-wrap { max-width: 760px; padding-top: 12px; padding-bottom: 12px; }
.chat-shell { display: flex; flex-direction: column; padding: 0; overflow: hidden; height: calc(100dvh - var(--header-h) - 28px); min-height: 420px; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--grad); color: #fff; }
.chat-back { color: #fff; text-decoration: none; font-size: 1.4rem; font-weight: 800; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: rgba(255, 255, 255, .18); flex-shrink: 0; }
.chat-back:hover { color: #fff; background: rgba(255, 255, 255, .3); }
.chat-avatar { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--violet-d); font-weight: 800; font-family: var(--font-head); flex-shrink: 0; }
.chat-who { flex: 1; min-width: 0; }
.chat-who h1 { color: #fff; font-size: 1.15rem; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chat-who p { margin: 2px 0 0; display: flex; flex-wrap: wrap; gap: 4px 8px; align-items: center; font-size: .8rem; }
.chat-who .session-chip { background: rgba(255, 255, 255, .92); color: var(--violet-d); font-size: .74rem; padding: 2px 8px; }
.chat-when { color: #fff; opacity: .95; }
.chat-live i { display: block; width: 10px; height: 10px; border-radius: 50%; background: #34D399; box-shadow: 0 0 0 3px rgba(255, 255, 255, .35); }
.chat-live.is-off i { background: #FCA5A5; }
.chat-banner { display: flex; gap: 8px; align-items: center; background: #FEF3C7; color: #78350F; padding: 10px 14px; font-weight: 600; font-size: .9rem; }
.chat-banner[hidden] { display: none; }
.chat-banner p { margin: 0; }
.chat-list { flex: 1; overflow-y: auto; padding: 14px 12px; display: flex; flex-direction: column; gap: 6px; background: radial-gradient(circle at 10% 0%, #F3F0FF, #fff 40%), #fff; }
.chat-empty { margin: auto; text-align: center; color: var(--muted); }
.chat-empty span { font-size: 2.6rem; }
.chat-day { text-align: center; margin: 8px 0 2px; }
.chat-day span { font-size: .74rem; font-weight: 700; color: var(--muted); background: #F1EEFB; border-radius: 999px; padding: 2px 10px; }
.msg { display: flex; flex-direction: column; max-width: 82%; }
.msg.is-me { align-self: flex-end; align-items: flex-end; }
.msg.is-other { align-self: flex-start; align-items: flex-start; }
.msg-bubble { position: relative; padding: 8px 12px 6px; border-radius: 18px; box-shadow: 0 2px 6px rgba(30, 27, 58, .08); }
.msg.is-me .msg-bubble { background: linear-gradient(135deg, #5B4BE0, #9D2BB8); color: #fff; border-bottom-right-radius: 6px; }
.msg.is-other .msg-bubble { background: #fff; border: 1.5px solid #E6E2FA; color: var(--ink); border-bottom-left-radius: 6px; }
.msg-name { display: block; font-size: .74rem; font-weight: 800; color: var(--violet-d); margin-bottom: 1px; }
.msg-body { margin: 0; overflow-wrap: anywhere; line-height: 1.45; }
.msg-time { display: block; text-align: right; font-size: .68rem; margin-top: 2px; opacity: .85; }
.msg-redacted { margin: 3px 4px 0; font-size: .72rem; color: #92400E; }
@media (prefers-reduced-motion: no-preference) { .msg { animation: rise .25s ease-out both; } }
.chat-composer { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); background: #fff; }
.chat-composer[hidden] { display: none; }
.chat-input { flex: 1; min-width: 0; resize: none; border: 2px solid var(--line); border-radius: 18px; padding: 10px 14px; font: inherit; font-size: 1rem; line-height: 1.4; max-height: 160px; }
.chat-input:focus { outline: none; border-color: var(--violet); box-shadow: 0 0 0 4px rgba(98, 84, 232, .15); }
.chat-send { min-height: 46px; padding: 10px 16px; }
.chat-send-label { display: none; }
@media (min-width: 560px) { .chat-send-label { display: inline; } }
.chat-hint { margin: 0; padding: 0 14px 8px; font-size: .72rem; color: var(--muted); background: #fff; }
@media (hover: none) { .chat-hint { display: none; } }

/* Header fits the longer "CareerMitra" brand on small phones (signed in: language + avatar + menu). */
.header-inner { min-width: 0; }
.logo { min-width: 0; flex-shrink: 1; }
.logo-text { min-width: 0; }
.logo-text small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 440px) {
  .logo { gap: 7px; }
  .logo img { width: 34px; height: 34px; }
  .logo-text { font-size: 1.28rem; }
  .logo-text small { font-size: .56rem; }
  .header-tools { gap: 6px; }
  .lang-switch { padding: 4px 4px 4px 8px; }
  .lang-switch select { max-width: 70px; font-size: .84rem; }
}
@media (max-width: 360px) { .logo-text small { display: none; } }
@media (max-width: 440px) { .header-tools .avatar { display: none !important; } }
@media (max-width: 370px) { .lang-switch > span[aria-hidden] { display: none; } }

/* MBA card shown collapsed when Management is not in the student's top fields */
.mba-optional { padding: 14px 18px; }
.mba-optional > summary { cursor: pointer; font-weight: 700; color: #6254E8; list-style-position: inside; }
.mba-optional[open] > summary { margin-bottom: 4px; }
.mba-optional .mba-card { box-shadow: none; }

/* ============================================================
   Course stages + "next step after Class 10" (result)
   ============================================================ */
.pill-stage { font-size: .74rem; font-weight: 700; }
.pill-stage.stage-after_10 { background: #FEF3C7; color: #92400E; }
.pill-stage.stage-after_12 { background: #DBEAFE; color: #1E40AF; }
.pill-stage.stage-after_diploma { background: #CCFBF1; color: #115E59; }
.pill-stage.stage-after_graduation { background: #FCE7F3; color: #9D174D; }
.pill-stage.stage-other { background: var(--violet-50); color: var(--violet-d); }
.course-link .pill-stage { padding: 1px 8px; }
.ns-card { border: 3px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(130deg, #FDE68A, #93C5FD, #F9A8D4) border-box; }
.ns-card .card-title { font-size: 1.35rem; }
.ns-group + .ns-group { margin-top: 18px; }
.ns-group-title { font-family: var(--font-head); font-weight: 700; font-size: 1.05rem; margin: 6px 0 10px; }
.ns-streams { display: grid; gap: 12px; }
@media (min-width: 760px) { .ns-streams { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } }
.ns-stream { border: 2px solid #DBEAFE; background: linear-gradient(160deg, #F0F7FF, #fff 60%); border-radius: 18px; padding: 12px 14px; }
.ns-stream h3 { font-size: 1.08rem; margin: 0 0 8px; }
.ns-field { background: #fff; border: 1.5px solid #E0E7FF; color: var(--ink); }
.ns-leads { margin: 8px 0 0; font-size: .9rem; color: var(--ink-2); }
.ns-after { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ns-course { display: flex; align-items: flex-start; gap: 12px; padding: 10px 14px; border-radius: 16px; background: #FFFBEB; border: 2px solid #FDE68A; color: var(--ink); text-decoration: none; transition: transform .15s var(--ease-bounce), border-color .15s; }
.ns-course:hover { transform: translateY(-2px); border-color: #F59E0B; color: var(--ink); }
.ns-emoji { font-size: 1.5rem; line-height: 1; }
.ns-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ns-name small { color: var(--muted); font-size: .78rem; }
.ns-arrow { font-weight: 800; color: #B45309; }
.ns-to { display: block; margin-top: 4px; font-weight: 600; color: #92400E; }
@media (prefers-reduced-motion: no-preference) { .ns-stream { animation: rise .5s var(--ease-bounce) calc(var(--i) * 100ms) both; } }
@media print { .ns-card { break-inside: avoid; } .ns-stream { animation: none !important; } }

/* ============================================================
   Career Path Guide (home teaser + /path-guide)
   ============================================================ */
/* Stage tabs */
.pg-tabs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin: 14px 0 6px; }
@media (min-width: 700px) { .pg-tabs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pg-tab { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px 8px; border-radius: 20px; border: 2.5px solid var(--line); background: #fff; color: var(--ink); cursor: pointer; font-weight: 700; font-family: var(--font-head); font-size: 1.02rem; min-height: 84px; justify-content: center; transition: transform .18s var(--ease-bounce), border-color .18s, background .18s, box-shadow .18s; }
.pg-tab-emoji { font-size: 1.8rem; line-height: 1; }
.pg-tab:hover { transform: translateY(-2px); border-color: #C4B5FD; }
.pg-tab.is-active { background: var(--grad); color: #fff; border-color: transparent; box-shadow: 0 12px 24px -12px rgba(162, 28, 175, .7); }
.pg-tab:focus-visible { outline: 3px solid var(--violet); outline-offset: 3px; }
@media (prefers-reduced-motion: no-preference) { .pg-tab { animation: pop-in .45s var(--ease-bounce) calc(var(--i) * 70ms) both; } }

/* Connectors (shared) */
svg.pg-lines { position: absolute; inset: 0; pointer-events: none; overflow: visible; z-index: 0; }
.pg-line { fill: none; stroke: var(--lc); stroke-width: 2.6; stroke-linecap: round; opacity: .75; stroke-dasharray: 1; stroke-dashoffset: 1; animation: pg-draw .8s cubic-bezier(.4, 0, .2, 1) var(--d, 0ms) forwards; }
.pg-dot { fill: #fff; stroke: var(--lc); stroke-width: 2.5; opacity: 0; animation: pg-fade .3s ease var(--d, 0ms) forwards; }
svg.pg-lines.is-static .pg-line, svg.pg-lines.is-static .pg-dot { animation: none; stroke-dashoffset: 0; opacity: .75; }
svg.pg-lines.is-static .pg-dot { opacity: 1; }
@keyframes pg-draw { to { stroke-dashoffset: 0; } }
@keyframes pg-fade { to { opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .pg-line { animation: none; stroke-dashoffset: 0; } .pg-dot { animation: none; opacity: 1; } }

/* Home teaser */
.pg-home-card { padding: 18px; background: linear-gradient(160deg, #FFFFFF, #F7F4FF); }
@media (min-width: 640px) { .pg-home-card { padding: 26px; } }
.pg-stage-lead { text-align: center; color: var(--ink-2); margin: 10px auto 4px; max-width: 640px; min-height: 1.5em; }
.pg-mini-box { margin-top: 8px; }
.pg-mini { position: relative; display: grid; gap: 30px; justify-items: center; padding: 10px 0; }
@media (min-width: 760px) { .pg-mini { grid-template-columns: minmax(0, 1fr) 190px minmax(0, 1fr); align-items: center; gap: 48px; justify-items: stretch; } }
.pg-mini-left { order: 2; }
.pg-mini-root { order: 1; }
.pg-mini-right { order: 3; }
@media (min-width: 760px) { .pg-mini-left, .pg-mini-root, .pg-mini-right { order: 0; } .pg-mini-left .pg-mini-node { text-align: right; border-left-width: 2px; border-right: 6px solid var(--c); } }
.pg-mini-root { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 22px; border-radius: 26px; background: var(--grad); color: #fff; box-shadow: 0 16px 30px -14px rgba(98, 84, 232, .9); text-align: center; }
.pg-mini-root b { font-family: var(--font-head); font-size: 1.25rem; }
.pg-root-emoji { font-size: 2.2rem; line-height: 1; }
.pg-mini-nodes { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
@media (min-width: 760px) { .pg-mini-nodes { display: grid; grid-template-columns: 1fr; gap: 10px; justify-content: stretch; } }
@media (max-width: 759px) { .pg-mini { gap: 22px; } .pg-mini-nodes + .pg-mini-nodes { margin-top: -12px; } }
.pg-mini-node { background: #fff; border: 2px solid color-mix(in srgb, var(--c) 45%, white); border-left: 6px solid var(--c); border-radius: 16px; padding: 8px 12px; font-weight: 700; font-size: .92rem; color: var(--ink); box-shadow: 0 6px 14px -10px color-mix(in srgb, var(--c) 80%, transparent); }
.pg-mini-node.kind-more { border-style: dashed; color: var(--violet-d); }
@media (prefers-reduced-motion: no-preference) {
  .pg-mini:not(.is-still) .pg-mini-root { animation: pop-in .5s var(--ease-bounce) both; }
  .pg-mini:not(.is-still) .pg-mini-node { opacity: 0; transform: scale(.6); }
  .pg-mini.is-in:not(.is-still) .pg-mini-node { animation: pg-pop .45s var(--ease-bounce) calc(350ms + var(--i) * 70ms) forwards; }
}
@keyframes pg-pop { to { opacity: 1; transform: none; } }

/* Page */
.pg-hero { background: linear-gradient(160deg, #EEEBFF, #FDF2F8 70%, #FFFBEB); padding-bottom: 20px; }
.pg-hint { margin: 10px 0 0; color: var(--muted); }
.pg-streams { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.pg-streams-label { font-weight: 700; font-size: .9rem; color: var(--ink-2); margin-right: 4px; }
.pg-stream { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .9rem; cursor: pointer; color: var(--ink); }
.pg-stream.is-active { background: var(--violet); border-color: var(--violet); color: #fff; }
.pg-stream:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.pg-page { padding-top: 20px; padding-bottom: 40px; }
.pg-tree { position: relative; }
.pg-root { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px; border-radius: 24px; background: var(--grad); color: #fff; text-align: center; box-shadow: 0 16px 30px -14px rgba(98, 84, 232, .9); }
.pg-root b { font-family: var(--font-head); font-size: 1.35rem; }
.pg-root small { opacity: .9; font-weight: 600; }
.pg-branches { position: relative; z-index: 1; list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
/* Phones: vertical timeline with a connector line and a dot per branch */
.pg-tree:not(.is-wide) .pg-root { margin-bottom: 18px; }
.pg-tree:not(.is-wide) .pg-branches { padding-left: 22px; }
.pg-tree:not(.is-wide) .pg-branches::before { content: ""; position: absolute; left: 8px; top: -18px; bottom: 20px; width: 4px; border-radius: 4px; background: linear-gradient(#6254E8, #EC4899, #F59E0B); transform-origin: top; }
.pg-tree:not(.is-wide) .pg-branch::before { content: ""; position: absolute; left: -21px; top: 26px; width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 4px solid var(--c); }
.pg-tree:not(.is-wide) .pg-branch::after { content: ""; position: absolute; left: -9px; top: 32px; width: 9px; height: 3px; background: var(--c); }
@media (prefers-reduced-motion: no-preference) {
  .pg-tree:not(.is-still):not(.is-wide) .pg-branches::before { transform: scaleY(0); transition: transform 1s cubic-bezier(.4, 0, .2, 1) .1s; }
  .pg-tree.is-in:not(.is-still):not(.is-wide) .pg-branches::before { transform: none; }
  .pg-tree:not(.is-still) .pg-branch { opacity: 0; transform: translateY(14px) scale(.98); }
  .pg-tree.is-in:not(.is-still) .pg-branch { animation: pg-pop .5s var(--ease-bounce) calc(150ms + var(--i) * 80ms) forwards; }
}
/* Desktop: horizontal tree, root on the left, SVG connectors to each branch */
.pg-tree.is-wide { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 0 70px; align-items: start; }
.pg-tree.is-wide .pg-root { position: sticky; top: calc(var(--header-h) + 20px); }
.pg-branch { position: relative; background: #fff; border-radius: 24px; padding: 16px; border: 2px solid color-mix(in srgb, var(--c) 30%, white); box-shadow: 0 12px 26px -18px color-mix(in srgb, var(--c) 90%, transparent); }
.pg-branch.is-dim { opacity: .75; }
.pg-b-head { display: flex; gap: 12px; align-items: flex-start; }
.pg-b-emoji { width: 52px; height: 52px; flex-shrink: 0; border-radius: 16px; display: grid; place-items: center; font-size: 1.7rem; background: color-mix(in srgb, var(--c) 16%, white); }
.pg-b-titles { flex: 1; min-width: 0; }
.pg-b-titles h3 { margin: 0 0 2px; font-size: 1.15rem; }
.pg-b-titles p { margin: 0; color: var(--ink-2); font-size: .9rem; }
.pg-b-dur { flex-shrink: 0; font-size: .78rem; font-weight: 700; background: color-mix(in srgb, var(--c) 14%, white); color: var(--ink); border-radius: 999px; padding: 3px 10px; }
.pg-leads-title { margin: 12px 0 6px; font-weight: 800; font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.pg-leads { display: grid; gap: 8px; }
@media (min-width: 700px) { .pg-leads { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.pg-lead { border-left: 4px solid var(--c); background: color-mix(in srgb, var(--c) 7%, white); border-radius: 12px; padding: 8px 10px; min-width: 0; }
.pg-lead-field { display: block; font-weight: 800; font-size: .88rem; margin-bottom: 6px; }
.pg-lead-courses { display: flex; flex-wrap: wrap; gap: 6px; }
.pg-chip { border: 1.5px solid #DCD6FF; background: #fff; border-radius: 999px; padding: 4px 10px; font-size: .8rem; font-weight: 600; color: var(--violet-d); cursor: pointer; text-align: left; max-width: 100%; overflow-wrap: anywhere; }
.pg-chip:hover { border-color: var(--violet); background: var(--violet-50); }
.pg-chip:focus-visible, .pg-course:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.pg-open-count { margin: 10px 0 0; font-size: .84rem; font-weight: 700; color: var(--green-d); }
.pg-open-count.is-zero { color: var(--muted); }
.pg-courses { display: grid; gap: 10px; margin-top: 12px; }
@media (min-width: 560px) { .pg-courses { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); } }
.pg-course { position: relative; display: flex; flex-direction: column; gap: 6px; text-align: left; padding: 12px 34px 12px 12px; border-radius: 16px; border: 2px solid color-mix(in srgb, var(--c) 28%, white); background: linear-gradient(160deg, color-mix(in srgb, var(--c) 8%, white), #fff); cursor: pointer; color: var(--ink); transition: transform .15s var(--ease-bounce), border-color .15s, box-shadow .15s; min-width: 0; }
.pg-course:hover { transform: translateY(-3px); border-color: var(--c); box-shadow: 0 12px 22px -14px var(--c); }
.pg-course-name { font-weight: 700; line-height: 1.3; overflow-wrap: anywhere; }
.pg-course-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pg-meta { font-size: .78rem; color: var(--ink-2); font-weight: 600; }
.pg-course-fee { font-size: .82rem; color: var(--ink-2); }
.pg-course-go { position: absolute; right: 12px; top: 50%; translate: 0 -50%; font-weight: 800; color: var(--c); }
.pg-course.is-closed { filter: grayscale(1); opacity: .62; background: #F6F5FA; }
.pg-course.is-closed:hover { opacity: .85; }
.pg-closed-badge { font-size: .74rem; font-weight: 700; color: #475569; background: #E2E8F0; border-radius: 999px; padding: 2px 8px; align-self: flex-start; }
.pg-open-badge { font-size: .74rem; font-weight: 700; color: #065F46; background: #D1FAE5; border-radius: 999px; padding: 2px 8px; align-self: flex-start; }
.pg-fee-note { margin: 16px 0 0; padding: 10px 14px; border-radius: 14px; background: #FEF3C7; color: #78350F; font-size: .88rem; }
.pg-fee-note[hidden] { display: none; }

/* Drawer */
.pg-drawer-wrap { position: fixed; inset: 0; z-index: 140; }
.pg-drawer-wrap[hidden] { display: none; }
.pg-backdrop { position: absolute; inset: 0; background: rgba(30, 27, 58, .5); opacity: 0; transition: opacity .25s; }
.pg-drawer { position: absolute; top: 0; right: 0; bottom: 0; width: min(640px, 100%); background: var(--bg); overflow-y: auto; overscroll-behavior: contain; box-shadow: -20px 0 50px -20px rgba(30, 27, 58, .5); transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.pg-drawer-wrap.is-open .pg-backdrop { opacity: 1; }
.pg-drawer-wrap.is-open .pg-drawer { transform: none; }
@media (prefers-reduced-motion: reduce) { .pg-drawer, .pg-backdrop { transition: none; } }
body.pg-drawer-open { overflow: hidden; }
.pg-d-loading { position: relative; padding: 70px 20px; }
.pg-d-head { position: relative; padding: 20px 18px 18px; color: #fff; background: linear-gradient(135deg, var(--c), color-mix(in srgb, var(--c) 55%, #1E1B3A)); }
.pg-d-close { position: absolute; top: 12px; right: 12px; width: 42px; height: 42px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); color: var(--ink); font-size: 1.1rem; cursor: pointer; z-index: 2; }
.pg-d-loading .pg-d-close { background: var(--violet-50); }
.pg-d-field { display: inline-block; font-weight: 700; font-size: .85rem; background: rgba(255, 255, 255, .2); border-radius: 999px; padding: 3px 10px; margin-right: 48px; }
.pg-d-head h2 { color: #fff; margin: 8px 48px 8px 0; font-size: clamp(1.3rem, 4.5vw, 1.8rem); overflow-wrap: anywhere; }
.pg-d-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pg-meta-w { font-size: .82rem; font-weight: 700; background: rgba(255, 255, 255, .92); color: var(--ink); border-radius: 999px; padding: 3px 10px; }
.pg-d-full { display: inline-block; margin-top: 10px; color: #fff; font-weight: 700; }
.pg-d-full:hover { color: #fff; }
.pg-d-body { padding: 16px; }
.pg-d-sec { background: #fff; border-radius: 22px; padding: 16px; box-shadow: var(--shadow); }
.pg-d-sec + .pg-d-sec { margin-top: 14px; }
.pg-d-sec h3 { font-size: 1.12rem; margin: 0 0 12px; }

/* 3-level diagram */
.pg-diagram { position: relative; display: grid; justify-items: center; gap: 34px; padding: 4px 0; }
.pg-dg-node { position: relative; z-index: 1; border-radius: 16px; padding: 8px 14px; font-weight: 700; text-align: center; background: #fff; border: 2px solid #DCD6FF; max-width: 100%; overflow-wrap: anywhere; }
.pg-dg-field { background: color-mix(in srgb, var(--c) 14%, white); border-color: var(--c); }
.pg-dg-course { background: var(--c); border-color: var(--c); color: #fff; box-shadow: 0 10px 20px -12px var(--c); }
.pg-dg-colleges { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.pg-dg-college { font-size: .82rem; font-weight: 600; padding: 6px 10px; }
.pg-dg-college.is-gov { border-color: #10B981; background: #ECFDF5; }
.pg-dg-college.is-empty { color: var(--muted); border-style: dashed; }
@media (prefers-reduced-motion: no-preference) {
  .pg-diagram .pg-dg-node { opacity: 0; transform: scale(.7); }
  .pg-diagram.is-in .pg-dg-field { animation: pg-pop .4s var(--ease-bounce) forwards; }
  .pg-diagram.is-in .pg-dg-course { animation: pg-pop .4s var(--ease-bounce) .25s forwards; }
  .pg-diagram.is-in .pg-dg-college { animation: pg-pop .4s var(--ease-bounce) .55s forwards; }
}

/* Roadmap stepper */
.pg-road { position: relative; list-style: none; margin: 0; padding: 0 0 0 4px; display: grid; gap: 14px; }
.pg-road::before { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: #EFEDFB; }
.pg-road::after { content: ""; position: absolute; left: 21px; top: 10px; bottom: 10px; width: 4px; border-radius: 4px; background: linear-gradient(#6254E8, #EC4899, #F59E0B); transform-origin: top; transform: scaleY(0); transition: transform 1.4s cubic-bezier(.4, 0, .2, 1) .2s; }
.pg-road.is-in::after { transform: none; }
.pg-step { position: relative; z-index: 1; display: flex; gap: 12px; align-items: flex-start; }
.pg-step-dot { width: 40px; height: 40px; flex-shrink: 0; border-radius: 50%; display: grid; place-items: center; font-size: 1.15rem; background: #fff; border: 3px solid #C4B5FD; box-shadow: var(--shadow); }
.pg-step-body { flex: 1; min-width: 0; padding-top: 6px; }
.pg-step-head { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; }
.pg-when { font-size: .74rem; font-weight: 700; color: #92400E; background: #FEF3C7; border-radius: 999px; padding: 2px 9px; }
.pg-step ul { margin: 6px 0 0; padding-left: 18px; color: var(--ink-2); font-size: .92rem; }
.pg-step li { margin: 2px 0; }
@media (prefers-reduced-motion: no-preference) {
  .pg-road .pg-step { opacity: 0; transform: translateX(12px); }
  .pg-road.is-in .pg-step { animation: pg-pop .45s var(--ease-bounce) calc(200ms + var(--i) * 180ms) forwards; }
}
@media (prefers-reduced-motion: reduce) { .pg-road::after { transform: none; transition: none; } }

/* Colleges, fee bars, hostel badges */
.pg-feebars { display: grid; gap: 8px; margin-bottom: 14px; }
.pg-fb-row { display: grid; grid-template-columns: minmax(0, 1fr) 2fr; gap: 4px 10px; align-items: center; font-size: .82rem; }
.pg-fb-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pg-fb-track { position: relative; height: 12px; border-radius: 999px; background: #EFEDFB; overflow: hidden; }
.pg-fb-range { position: absolute; top: 0; bottom: 0; left: var(--l); width: var(--w); border-radius: 999px; background: linear-gradient(90deg, #8B7CF6, #EC4899); }
.pg-fb-range.is-gov { background: linear-gradient(90deg, #10B981, #047857); }
.pg-fb-val { grid-column: 2; font-weight: 700; color: var(--ink-2); font-size: .76rem; }
.pg-colleges { display: grid; gap: 12px; }
.pg-college { border: 2px solid var(--line); border-radius: 18px; padding: 12px 14px; background: #fff; }
.pg-college.is-gov { border-color: #34D399; background: linear-gradient(160deg, #ECFDF5, #fff 55%); }
.pg-col-head { display: flex; justify-content: space-between; gap: 8px; align-items: flex-start; }
.pg-col-head h4 { margin: 0; font-size: 1rem; overflow-wrap: anywhere; }
.pg-type { flex-shrink: 0; font-size: .74rem; font-weight: 800; border-radius: 999px; padding: 2px 9px; background: var(--violet-50); color: var(--violet-d); }
.pg-type.type-government { background: #047857; color: #fff; }
.pg-type.type-private { background: #EEEBFF; color: #4B3DD1; }
.pg-type.type-deemed { background: #DBEAFE; color: #1E40AF; }
.pg-fees { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin: 10px 0; }
.pg-fees div { background: #FAF9FF; border-radius: 12px; padding: 6px 10px; }
.pg-fees dt { font-size: .74rem; color: var(--muted); font-weight: 600; }
.pg-fees dd { margin: 0; font-weight: 800; font-family: var(--font-head); }
.pg-hostel { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; border-radius: 14px; padding: 8px 10px; font-size: .82rem; }
.pg-hostel.st-yes { background: #ECFDF5; color: #065F46; }
.pg-hostel.st-no { background: #FEE2E2; color: #7F1D1D; }
.pg-hostel.st-unknown { background: #F1F5F9; color: #475569; }
.hb-label { font-weight: 800; }
.hb-who, .hb-fee { background: #fff; border-radius: 999px; padding: 2px 8px; font-weight: 700; }
.hb-who.is-no { color: #9CA3AF; text-decoration: line-through; }
.pg-next { display: flex; flex-wrap: wrap; gap: 8px; }
.pg-next-chip { display: inline-flex; gap: 6px; align-items: center; padding: 7px 12px; font-size: .86rem; }

/* Hostel schemes */
.pg-schemes { display: grid; gap: 14px; }
@media (min-width: 700px) { .pg-schemes:not(.pg-schemes-sm) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pg-schemes:not(.pg-schemes-sm) { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.pg-scheme { --sc: #6254E8; border-radius: 22px; padding: 16px; background: #fff; border-top: 6px solid var(--sc); box-shadow: var(--shadow); min-width: 0; }
.pg-scheme.region-maharashtra { --sc: #F97316; }
.pg-scheme.region-central { --sc: #2563EB; }
.pg-scheme-head { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 8px; }
.pg-scheme-emoji { width: 46px; height: 46px; flex-shrink: 0; border-radius: 14px; display: grid; place-items: center; font-size: 1.5rem; background: color-mix(in srgb, var(--sc) 14%, white); }
.pg-scheme h4 { margin: 4px 0 0; font-size: 1rem; overflow-wrap: anywhere; }
.pg-region { display: inline-block; font-size: .72rem; font-weight: 800; border-radius: 999px; padding: 2px 9px; color: #fff; background: var(--sc); }
.pg-scheme p { margin: 6px 0; font-size: .9rem; color: var(--ink-2); overflow-wrap: anywhere; }
.pg-scheme p b { color: var(--ink); }
@media (prefers-reduced-motion: no-preference) { .pg-hostels .pg-scheme { animation: rise .5s var(--ease-bounce) calc(var(--i) * 80ms) both; } }
.pg-tips { margin-top: 18px; background: linear-gradient(160deg, #FFFBEB, #fff); border: 2px solid #FDE68A; border-radius: 22px; padding: 16px; }
.pg-tips h3 { margin: 0 0 8px; font-size: 1.1rem; }
@media print { .pg-drawer-wrap { display: none !important; } }
.pg-drawer-wrap { z-index: 300; }
@media (max-width: 559px) {
  .pg-b-head { flex-wrap: wrap; }
  .pg-b-titles { flex-basis: calc(100% - 64px); }
  .pg-b-dur { margin-left: 64px; }
  .pg-branch { padding: 14px; }
}

/* Devanagari vowel signs (ि ी ॆ ं) rise above the letters: with gradient text (background-clip: text) anything outside the
   line box is invisible, so give the logo room above and below, or "करिअर" shows as "कारअर". */
.logo-text { line-height: 1.32; padding-top: .06em; }
.logo-text small { line-height: 1.3; margin-top: 0; }

/* ============================================================
   Institute partners — student side (/coaching, /institute, entry points)
   ============================================================ */
.in-hero { background: linear-gradient(160deg, #FFF7ED, #FDF2F8 55%, #EEEBFF); padding-bottom: 16px; }
.in-cat-tabs { display: inline-flex; gap: 6px; padding: 5px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); margin-top: 8px; }
.in-cat { border: 0; border-radius: 16px; padding: 10px 18px; font-weight: 800; font-family: var(--font-head); font-size: 1.02rem; background: transparent; color: var(--ink-2); cursor: pointer; }
.in-cat.is-active { background: var(--grad); color: #fff; box-shadow: 0 10px 20px -12px rgba(162, 28, 175, .8); }
.in-cat:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.in-page { padding-top: 18px; padding-bottom: 40px; }
.in-filters { padding: 14px; }
.in-search { display: flex; gap: 8px; }
.in-search .input { flex: 1; min-width: 0; }
.in-filter-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 12px; }
.in-filter-grid .field:first-child { grid-column: 1 / -1; }
@media (min-width: 900px) { .in-filter-grid { grid-template-columns: 2fr repeat(6, minmax(0, 1fr)); } .in-filter-grid .field:first-child { grid-column: auto; } }
.in-filter-grid .field[hidden] { display: none; }
.in-filter-grid label { font-size: .82rem; }
.in-filter-grid .input, .in-filter-grid .select { min-height: 44px; padding: 8px 10px; }
@media (max-width: 480px) { .in-hide-sm { display: none; } }
.in-count { margin: 12px 4px 8px; }
.in-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .in-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .in-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.in-skel { height: 220px; }
.in-card { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 24px; background: #fff; border: 2px solid var(--line); text-decoration: none; color: var(--ink); box-shadow: var(--shadow); overflow: hidden; transition: transform .2s var(--ease-bounce), box-shadow .2s, border-color .2s; min-width: 0; }
.in-card:hover { transform: translateY(-4px); border-color: #C4B5FD; color: var(--ink); box-shadow: var(--shadow-lg); }
.in-card.is-featured { border-color: #FCD34D; background: linear-gradient(170deg, #FFFBEB, #fff 45%); }
@media (prefers-reduced-motion: no-preference) { .in-grid .in-card { animation: rise .45s var(--ease-bounce) calc(var(--i) * 60ms) both; } }
.in-ribbon { position: absolute; top: 12px; right: -36px; transform: rotate(35deg); background: linear-gradient(90deg, #F59E0B, #EC4899); color: #fff; font-size: .72rem; font-weight: 800; padding: 3px 40px; box-shadow: 0 4px 10px -4px rgba(236, 72, 153, .8); }
.in-card-head { display: flex; gap: 12px; align-items: flex-start; padding-right: 36px; }
.in-card-titles { min-width: 0; }
.in-card-titles h3 { margin: 0; font-size: 1.1rem; overflow-wrap: anywhere; }
.in-tag { margin: 2px 0 0; font-size: .86rem; color: var(--ink-2); }
.in-logo { width: 56px; height: 56px; flex-shrink: 0; border-radius: 16px; object-fit: cover; background: #fff; border: 2px solid var(--line); }
.in-logo.is-initials { display: grid; place-items: center; background: var(--grad); color: #fff; font-weight: 800; font-family: var(--font-head); border: 0; }
.in-logo.is-lg { width: 92px; height: 92px; border-radius: 24px; border-width: 4px; border-color: #fff; box-shadow: var(--shadow-lg); }
.in-logo.is-sm { width: 44px; height: 44px; border-radius: 12px; }
.in-verified { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: #2563EB; color: #fff; font-size: .72rem; font-weight: 900; vertical-align: 2px; }
.in-verified.is-lg { width: 26px; height: 26px; font-size: .9rem; }
.in-card-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; font-size: .86rem; color: var(--ink-2); }
.in-rating { display: inline-flex; align-items: center; gap: 4px; }
.in-rating.is-new { font-weight: 700; color: var(--violet-d); }
.in-fee { margin: 0; font-weight: 700; color: #92400E; font-size: .9rem; }
.in-top-courses, .in-modes { display: flex; flex-wrap: wrap; gap: 6px; }
.in-course-chip { font-size: .76rem; background: var(--violet-50); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.in-more { font-size: .76rem; }
.in-mode { display: inline-flex; gap: 4px; align-items: center; font-size: .76rem; font-weight: 700; border-radius: 999px; padding: 3px 9px; background: #E0F2FE; color: #075985; }
.in-stars { position: relative; display: inline-block; line-height: 1; font-size: 1rem; letter-spacing: 1px; vertical-align: -1px; }
.in-stars-bg { color: #E5E7EB; }
.in-stars-fg { position: absolute; left: 0; top: 0; overflow: hidden; white-space: nowrap; color: #F59E0B; }
.in-stars.is-sm { font-size: .82rem; }
.in-stars.is-lg { font-size: 1.5rem; }
.in-near .in-grid { margin-top: 10px; }
.in-grid-3 { gap: 12px; }

/* Profile */
.in-hero-banner { position: relative; height: clamp(150px, 30vw, 300px); overflow: hidden; background: var(--grad); }
.in-hero-banner.is-gradient { background: linear-gradient(120deg, #6254E8, #A21CAF 55%, #F59E0B); }
.in-banner-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.in-banner-shade { position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(30, 27, 58, .35)); }
.in-head { margin-top: -70px; position: relative; z-index: 2; padding: 18px; }
.in-head-top { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; }
.in-head-titles { flex: 1; min-width: 200px; }
.in-head h1 { font-size: clamp(1.5rem, 5vw, 2.3rem); margin: 6px 0 2px; overflow-wrap: anywhere; }
.in-tagline { margin: 0; color: var(--ink-2); font-size: 1.02rem; }
.in-head-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 8px 0 0; color: var(--ink-2); font-size: .92rem; }
.in-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.in-actions .btn { min-height: 44px; }
.in-wa { color: #047857; }
@media (max-width: 559px) { .in-actions .btn { flex: 1 1 calc(50% - 8px); padding-left: 10px; padding-right: 10px; font-size: .92rem; } }
.in-secnav { position: sticky; top: var(--header-h); z-index: 20; background: rgba(247, 245, 255, .92); backdrop-filter: blur(10px); margin-top: 14px; border-bottom: 1px solid var(--line); }
.in-secnav .wrap { display: flex; gap: 6px; overflow-x: auto; padding-top: 8px; padding-bottom: 8px; scrollbar-width: none; }
.in-secnav a { flex-shrink: 0; text-decoration: none; font-weight: 700; font-size: .9rem; padding: 6px 12px; border-radius: 999px; color: var(--violet-d); background: #fff; border: 1.5px solid var(--line); }
.in-secnav a:hover { border-color: var(--violet); }
.in-body { padding-top: 16px; padding-bottom: 40px; display: grid; gap: 16px; }
.in-sec { scroll-margin-top: calc(var(--header-h) + 64px); }
.in-about-grid { display: grid; gap: 16px; }
@media (min-width: 860px) { .in-about-grid { grid-template-columns: 1.4fr 1fr; } }
.in-about-text { white-space: pre-line; }
.in-faculty { background: var(--violet-50); border-radius: 16px; padding: 10px 14px; margin-top: 8px; }
.in-info { margin: 0; display: grid; gap: 8px; }
.in-info div { background: #FAF9FF; border-radius: 14px; padding: 8px 12px; }
.in-info dt { font-size: .78rem; font-weight: 700; color: var(--muted); }
.in-info dd { margin: 0; font-weight: 600; overflow-wrap: anywhere; }
.in-facs { display: flex; flex-wrap: wrap; gap: 8px; }
.in-fac { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 14px; background: #fff; border: 2px solid #E0E7FF; font-weight: 700; font-size: .86rem; }
@media (prefers-reduced-motion: no-preference) { .in-fac { animation: pop-in .35s var(--ease-bounce) calc(var(--i) * 40ms) both; } }
.in-courses { display: grid; gap: 12px; }
@media (min-width: 760px) { .in-courses { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.in-ccard { display: flex; flex-direction: column; gap: 8px; padding: 14px; border-radius: 20px; border: 2px solid var(--line); background: linear-gradient(170deg, #F8F7FF, #fff 50%); min-width: 0; }
.in-ccard h3 { margin: 0; font-size: 1.08rem; overflow-wrap: anywhere; }
.in-exam { background: #FEF3C7; color: #92400E; font-size: .76rem; }
.in-cfacts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; margin: 0; }
.in-cfacts div { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 6px 10px; min-width: 0; }
.in-cfacts dt { font-size: .74rem; color: var(--muted); font-weight: 600; }
.in-cfacts dd { margin: 0; font-weight: 700; font-size: .9rem; overflow-wrap: anywhere; }
.in-cfee { display: flex; align-items: baseline; gap: 6px; }
.in-cfee b { font-family: var(--font-head); font-size: 1.5rem; color: var(--violet-d); }
.in-cfee span { color: var(--muted); font-size: .85rem; }
.in-ccard .js-enq { align-self: flex-start; }
.in-stories { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(230px, 280px); gap: 12px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; }
.in-stories:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.in-story { scroll-snap-align: start; text-align: center; padding: 16px; border-radius: 22px; background: linear-gradient(170deg, #FFFBEB, #fff 60%); border: 2px solid #FDE68A; }
@media (prefers-reduced-motion: no-preference) { .in-story { animation: rise .5s var(--ease-bounce) calc(var(--i) * 90ms) both; } }
.in-story-photo { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; margin: 0 auto 8px; display: block; border: 3px solid #fff; box-shadow: var(--shadow); }
.in-story-photo.is-initials { display: grid; place-items: center; background: var(--grad-warm); color: #1E1B3A; font-weight: 800; font-family: var(--font-head); font-size: 1.4rem; }
.in-story h4 { margin: 0; font-size: 1.05rem; }
.in-ach { margin: 4px 0; font-weight: 700; color: #92400E; font-size: .9rem; }
.in-story blockquote { margin: 8px 0 0; font-style: italic; color: var(--ink-2); font-size: .9rem; }
.in-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; }
.in-gal-item { padding: 0; border: 0; border-radius: 16px; overflow: hidden; cursor: zoom-in; aspect-ratio: 4 / 3; background: var(--violet-50); }
.in-gal-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .3s; }
.in-gal-item:hover img { transform: scale(1.05); }
.in-gal-item:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.in-lightbox { margin: 26px 0 0; text-align: center; }
.in-lightbox img { max-width: 100%; max-height: 70vh; border-radius: 16px; }
.in-lightbox figcaption { color: var(--muted); font-size: .86rem; margin-top: 6px; }
.in-rev-summary { display: grid; gap: 16px; align-items: center; }
@media (min-width: 760px) { .in-rev-summary { grid-template-columns: 170px 1fr 1fr; } }
.in-rev-big { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 12px; border-radius: 20px; background: #FFFBEB; }
.in-rev-big b { font-family: var(--font-head); font-size: 3rem; line-height: 1; color: #B45309; }
.in-rev-bars { display: grid; gap: 6px; }
.in-rev-bar { display: grid; grid-template-columns: 36px 1fr 28px; gap: 8px; align-items: center; font-size: .84rem; font-weight: 600; }
.in-rev-track { height: 10px; border-radius: 999px; background: #F3F4F6; overflow: hidden; }
.in-rev-track i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, #FBBF24, #F59E0B); }
.in-aspects { display: grid; gap: 8px; }
.in-aspect { display: flex; align-items: center; gap: 8px; justify-content: space-between; font-size: .88rem; font-weight: 600; }
.in-aspect b { font-family: var(--font-head); }
.in-reviews { display: grid; gap: 10px; }
.in-review { border: 1.5px solid var(--line); border-radius: 18px; padding: 12px 14px; background: #fff; }
.in-reply { margin-top: 8px; background: var(--violet-50); border-left: 4px solid var(--violet); border-radius: 12px; padding: 8px 12px; font-size: .9rem; }
.in-rate { margin-top: 16px; border: 2px dashed #C4B5FD; border-radius: 20px; padding: 14px; display: grid; gap: 12px; background: #FDFCFF; }
.in-rate h3 { margin: 0; font-size: 1.12rem; }
.in-rate-note { margin-top: 16px; }
/* Star input: radios in reverse order so CSS can light all stars up to the hovered one. */
.in-star-input { border: 0; margin: 0; padding: 0; display: inline-flex; flex-direction: row-reverse; justify-content: flex-end; gap: 2px; }
.in-star-input input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.in-star-input label { font-size: 2.2rem; line-height: 1; color: #E5E7EB; cursor: pointer; transition: transform .15s var(--ease-bounce), color .15s; padding: 0 2px; }
.in-star-input.is-small label { font-size: 1.4rem; }
.in-star-input label:hover, .in-star-input label:hover ~ label, .in-star-input input:checked ~ label { color: #F59E0B; }
.in-star-input label:hover { transform: scale(1.25) rotate(-8deg); }
.in-star-input input:focus-visible + label { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 6px; }
@media (prefers-reduced-motion: reduce) { .in-star-input label { transition: none; } .in-star-input label:hover { transform: none; } }
.in-aspect-input summary { cursor: pointer; font-weight: 700; color: var(--violet-d); }
.in-aspect-grid { display: grid; gap: 6px; margin-top: 8px; }
.in-aspect-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; }
.in-enq-head { display: flex; gap: 10px; align-items: center; padding-right: 40px; }
.in-enq-head h2 { font-size: 1.2rem; overflow-wrap: anywhere; }
.in-enq-done p { margin-bottom: 0; }
.in-status { font-weight: 700; }
.in-status.st-new { background: #E0F2FE; color: #075985; }
.in-status.st-contacted { background: #EEEBFF; color: #4B3DD1; }
.in-status.st-admitted { background: #D1FAE5; color: #065F46; }
.in-status.st-not_interested, .in-status.st-closed { background: #F1F5F9; color: #475569; }
.in-partner { border: 3px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(130deg, #6EE7B7, #C4B5FD) border-box; display: grid; gap: 12px; }
.in-partner h3 { font-size: 1.1rem; margin: 0; }
.in-body > * { min-width: 0; }
.in-body .card { overflow: hidden; }

/* ip-begin */
/* ---------- institute partners (/for-institutes, /institute-dashboard) ---------- */
.ip-grow { flex: 1; min-width: 0; }
.ip-block { display: block; }
.ip-center { justify-content: center; }
.ip-left { text-align: left; }
.ip-nowrap { flex-wrap: nowrap; }

/* pitch hero */
.ip-hero-wrap { padding: 24px 0 8px; }
.ip-hero { position: relative; display: grid; gap: 12px; align-items: center; background: linear-gradient(135deg, #FFFFFF 0%, #F3F0FF 55%, #FFE9F4 100%); border-radius: 32px; padding: 28px 20px; box-shadow: var(--shadow); overflow: hidden; }
.ip-hero h1 { font-size: clamp(1.9rem, 6vw, 3rem); }
.ip-hero .lead { color: var(--ink-2); font-size: 1.06rem; max-width: 560px; }
.ip-hero-text { position: relative; z-index: 1; min-width: 0; }
.ip-hero-art { position: relative; min-height: 250px; padding-top: 70px; display: flex; align-items: center; justify-content: center; } /* room for Udi's speech bubble */
.ip-mascot { position: relative; z-index: 1; }
.ip-float { position: absolute; background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .85rem; color: var(--ink); box-shadow: var(--shadow); white-space: nowrap; }
.ip-f1 { left: 0; top: 46%; }
.ip-f2 { right: 2%; top: 58%; color: var(--amber-d); }
.ip-f3 { left: 6%; bottom: 2%; color: var(--green-d); }
@media (min-width: 820px) {
  .ip-hero { grid-template-columns: 1.35fr 1fr; padding: 44px 40px; }
  .ip-hero-art { min-height: 320px; }
}
@media (prefers-reduced-motion: no-preference) {
  .ip-float { animation: ip-bob 4.5s ease-in-out infinite; }
  .ip-f2 { animation-delay: -1.5s; }
  .ip-f3 { animation-delay: -3s; }
}
@keyframes ip-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* benefits + steps */
.ip-benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .ip-benefits { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 960px) { .ip-benefits { grid-template-columns: repeat(3, 1fr); } }
.ip-benefit { background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border-top: 5px solid var(--ic, var(--violet)); min-width: 0; }
.ip-benefit h3 { margin-top: 10px; }
.ip-benefit p { color: var(--ink-2); margin: 0; font-size: .95rem; }
.ip-benefit-emoji { display: inline-flex; width: 52px; height: 52px; align-items: center; justify-content: center; font-size: 1.6rem; border-radius: 16px; background: color-mix(in srgb, var(--ic, var(--violet)) 14%, #fff); }
.ip-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
@media (min-width: 820px) { .ip-steps { grid-template-columns: repeat(3, 1fr); } }
.ip-steps li { display: flex; gap: 14px; align-items: flex-start; background: #fff; border-radius: 22px; padding: 16px; box-shadow: var(--shadow); min-width: 0; }
.ip-steps h3 { font-size: 1.1rem; margin: 2px 0 4px; }
.ip-steps p { margin: 0; font-size: .92rem; }
.ip-step-num { flex-shrink: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--grad); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 1.2rem; display: inline-flex; align-items: center; justify-content: center; }

/* registration form */
.ip-fieldset { border: 0; padding: 0; margin: 16px 0 0; min-width: 0; }
.ip-fieldset legend { padding: 0; }
.ip-cats { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 520px) { .ip-cats { grid-template-columns: 1fr 1fr; } }
.ip-cat { position: relative; display: block; }
.ip-cat input { position: absolute; opacity: 0; pointer-events: none; }
.ip-cat > span { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; align-items: center; padding: 14px 16px; border: 2px solid var(--line); border-radius: 20px; background: #fff; cursor: pointer; transition: border-color .2s, box-shadow .2s, transform .2s var(--ease-bounce); height: 100%; }
.ip-cat b { grid-row: span 2; font-size: 1.8rem; }
.ip-cat strong { font-family: var(--font-head); font-size: 1.1rem; }
.ip-cat small { color: var(--muted); font-size: .85rem; line-height: 1.35; }
.ip-cat > span:hover { border-color: var(--violet); }
.ip-cat input:checked + span { border-color: var(--violet); background: var(--violet-50); box-shadow: 0 0 0 4px rgba(98, 84, 232, .15); }
.ip-cat input:focus-visible + span { outline: 3px solid var(--amber); outline-offset: 2px; }
.ip-claim { background: #FBFAFF; border: 2px dashed #D9D3FF; border-radius: 20px; padding: 14px; }
.ip-claim-list { margin-top: 8px; }
.ip-claim-ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; max-height: 320px; overflow-y: auto; }
.ip-claim-opt { width: 100%; display: flex; align-items: center; gap: 10px; text-align: left; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 10px 12px; cursor: pointer; min-height: 48px; }
.ip-claim-opt > span:nth-child(2) { flex: 1; min-width: 0; }
.ip-claim-opt b { display: block; overflow-wrap: anywhere; }
.ip-claim-opt small { color: var(--muted); }
.ip-claim-opt:hover, .ip-claim-opt:focus-visible { border-color: var(--violet); }
.ip-claim-pick { flex-shrink: 0; font-weight: 700; font-size: .85rem; color: var(--violet-d); }
.ip-chosen { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: #fff; border: 2px solid var(--violet); border-radius: 18px; padding: 12px 14px; }
.ip-chosen-emoji { font-size: 1.8rem; }
.ip-chosen b { overflow-wrap: anywhere; }
.ip-textarea-sm { min-height: 76px; }
.ip-done .lead { color: var(--ink-2); }
.ip-done-udi { display: flex; justify-content: center; }
.ip-done:focus { outline: none; }

/* dashboard header */
.ip-dash { padding-top: 24px; }
.ip-head { background: #fff; border-radius: 30px; box-shadow: var(--shadow); overflow: hidden; }
.ip-head-banner { height: 120px; background: var(--grad) center / cover no-repeat; }
@media (min-width: 720px) { .ip-head-banner { height: 170px; } }
.ip-head-body { display: flex; flex-wrap: wrap; gap: 12px 16px; align-items: flex-start; padding: 0 18px 18px; }
.ip-head-body .ip-grow { padding-top: 10px; }
@media (min-width: 720px) { .ip-head-body { align-items: flex-end; } .ip-head-body .ip-grow { padding-top: 0; } }
.ip-head-logo { width: 84px; height: 84px; margin-top: -42px; border-radius: 24px; background: #fff; border: 4px solid #fff; box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center; font-size: 2.4rem; overflow: hidden; flex-shrink: 0; }
.ip-head-logo img { width: 100%; height: 100%; object-fit: cover; }
.ip-head-name { font-size: clamp(1.5rem, 5vw, 2.2rem); margin: 6px 0 2px; overflow-wrap: anywhere; }
.ip-head-body .ip-grow { flex-basis: 220px; }
.ip-public { flex-shrink: 0; }
.ip-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (min-width: 760px) { .ip-stats { grid-template-columns: repeat(4, 1fr); } }
.ip-stats .num small { font-size: 1.1rem; margin-left: 2px; }
.ip-count { display: inline-flex; min-width: 22px; height: 22px; padding: 0 6px; align-items: center; justify-content: center; border-radius: 999px; background: var(--pink-d); color: #fff; font-size: .75rem; font-weight: 800; }
.tab.is-active .ip-count { background: #fff; color: var(--pink-d); }
.ip-panel { padding-top: 6px; }
.ip-panel:focus { outline: none; }
.ip-panel:focus-visible { outline: 3px solid var(--amber); outline-offset: 4px; }

/* portfolio editor */
.ip-sec .card-title { margin-bottom: 12px; }
.ip-media-grid { display: grid; gap: 14px; }
@media (min-width: 760px) { .ip-media-grid { grid-template-columns: 1fr 1.4fr; } }
.ip-media { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; min-width: 0; }
.ip-media-info { flex: 1; min-width: 180px; display: flex; flex-direction: column; }
.ip-media-prev { width: 96px; height: 96px; border-radius: 22px; background: var(--violet-50); border: 2px dashed #CFC8FF; display: flex; align-items: center; justify-content: center; font-size: 2.2rem; overflow: hidden; flex-shrink: 0; }
.ip-media-prev img { width: 100%; height: 100%; object-fit: cover; }
.ip-media-banner .ip-media-prev { width: 100%; max-width: 280px; height: 96px; }
.ip-round { border-radius: 50%; }
.ip-file { position: relative; }
.ip-file input, .ip-thumb-add input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.ip-file:focus-within, .ip-thumb-add:focus-within { outline: 3px solid var(--amber); outline-offset: 2px; }
.ip-file.is-loading, .ip-thumb-add.is-loading { opacity: .6; pointer-events: none; }
.ip-file.is-loading > span::after, .ip-thumb-add.is-loading::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 6px; border: 2.5px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }
.ip-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; }
.ip-thumb { position: relative; margin: 0; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: var(--violet-50); }
.ip-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ip-thumb-x { position: absolute; top: 6px; right: 6px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(30, 27, 58, .78); color: #fff; font-size: .9rem; cursor: pointer; }
.ip-thumb-x:hover { background: var(--red-d); }
.ip-thumb-add { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; border: 2px dashed #CFC8FF; color: var(--violet-d); font-weight: 700; cursor: pointer; text-align: center; padding: 6px; }
.ip-thumb-add > span[aria-hidden] { font-size: 1.6rem; line-height: 1; }
.ip-geo { background: #FBFAFF; border-radius: 18px; padding: 12px; }
.ip-savebar { position: sticky; bottom: 12px; z-index: 6; margin-top: 16px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; justify-content: flex-end; background: rgba(255, 255, 255, .94); border-radius: 22px; padding: 10px 12px 10px 18px; box-shadow: var(--shadow-lg); }
.ip-savebar .js-dirty { color: var(--amber-d); font-weight: 600; }

/* lists / editors */
.ip-list { display: grid; gap: 14px; }
.ip-editor { border: 2px solid var(--violet); margin-bottom: 14px; }
.ip-item-title { font-size: 1.12rem; margin: 0; overflow-wrap: anywhere; }
.ip-item.is-off, .ip-story.is-off { opacity: .78; background: #FBFAFF; }
.ip-chip-exam { --chip-bg: #FEF3C7; --chip-fg: #92400E; }
.ip-fee { font-family: var(--font-head); font-size: 1.25rem; color: var(--green-d); }
.ip-static { display: flex; align-items: center; background: #FBFAFF; }
.ip-table { position: relative; } /* keeps .sr-only cells inside the scroll box */
.ip-table .tbl th[scope=row] { min-width: 200px; }
.ip-stories { display: grid; gap: 14px; }
@media (min-width: 860px) { .ip-stories { grid-template-columns: 1fr 1fr; } .ip-stories .ip-editor { grid-column: 1 / -1; } }
.ip-story-head { display: flex; gap: 12px; align-items: flex-start; flex-wrap: wrap; }
.ip-avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--grad-warm); color: #1E1B3A; font-weight: 800; display: flex; align-items: center; justify-content: center; overflow: hidden; flex-shrink: 0; }
.ip-avatar img { width: 100%; height: 100%; object-fit: cover; }
.ip-ach { color: var(--violet-d); }
.ip-quote { margin: 10px 0 0; padding: 10px 14px; border-left: 4px solid var(--pink); background: #FFF5FA; border-radius: 0 14px 14px 0; font-style: italic; color: var(--ink-2); }

/* enquiries */
.ip-filter { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-weight: 700; cursor: pointer; color: var(--ink-2); min-height: 40px; display: inline-flex; align-items: center; gap: 6px; }
.ip-filter:hover { border-color: var(--violet); }
.ip-filter.is-on { background: var(--violet); border-color: var(--violet); color: #fff; }
.ip-filter.is-on .ip-count { background: #fff; color: var(--violet-d); }
.ip-msg { margin: 8px 0 0; background: #FBFAFF; border-radius: 14px; padding: 8px 12px; overflow-wrap: anywhere; }
.ip-enq-who { margin-top: 8px; font-size: .92rem; color: var(--ink-2); }
.ip-contact { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-top: 10px; padding: 10px 12px; border-radius: 16px; background: #F0FDF4; }
.ip-contact b { overflow-wrap: anywhere; }
.ip-parent { margin-left: 4px; vertical-align: middle; }
.ip-call { flex-shrink: 0; }
.ip-status-btns { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.ip-sbtn { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 5px 12px; font-size: .86rem; font-weight: 700; color: var(--ink-2); cursor: pointer; min-height: 38px; }
.ip-sbtn:hover { border-color: var(--violet); color: var(--violet-d); }
.ip-sbtn.is-on { background: var(--violet-d); border-color: var(--violet-d); color: #fff; }
.ip-sbtn.is-loading { opacity: .6; pointer-events: none; }
.ip-note { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.ip-note .input { flex: 1 1 200px; min-width: 0; min-height: 42px; }

/* reviews */
.ip-stars { display: inline-flex; gap: 1px; font-size: 1.05rem; line-height: 1; color: #D6D3E8; }
.ip-stars .on { color: #D97706; }
.ip-rsum { display: grid; gap: 16px; }
@media (min-width: 760px) { .ip-rsum { grid-template-columns: auto 1fr 1fr; align-items: center; } }
.ip-rbig { text-align: center; }
.ip-rnum { font-family: var(--font-head); font-weight: 800; font-size: 2.8rem; line-height: 1; color: var(--ink); }
.ip-bars { display: grid; gap: 6px; }
.ip-bar { display: grid; grid-template-columns: 34px 1fr 28px; gap: 8px; align-items: center; font-size: .85rem; font-weight: 600; }
.ip-bar-t { height: 10px; border-radius: 999px; background: var(--violet-50); overflow: hidden; display: block; }
.ip-bar-t > span { display: block; height: 100%; background: var(--grad-warm); border-radius: 999px; }
.ip-bar-n { text-align: right; color: var(--muted); }
.ip-aspects { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ip-aspect { background: #FBFAFF; border-radius: 14px; padding: 8px 12px; display: flex; flex-direction: column; }
.ip-reply-shown { margin-top: 10px; padding: 10px 14px; border-radius: 14px; background: var(--violet-50); overflow-wrap: anywhere; }
.ip-reply .textarea { min-height: 70px; margin-top: 4px; }
.ip-modal-title { font-size: 1.3rem; }
@media (max-width: 759px) { .ip-savebar { margin-right: 64px; } } /* keep Save clear of the back-to-top rocket */
/* ip-end */

/* Header: the desktop menu needs more room since Coaching was added (and Hindi / Marathi labels are longer).
   The header gets a wider row, and the menu only stays inline while everything fits — never under the language picker. */
.site-header .header-inner { max-width: 1440px; }
.header-tools { flex-shrink: 0; position: relative; z-index: 1; }
@media (min-width: 1300px) {
  .main-nav .nav-auth .btn { padding-inline: 14px; }
}
/* Logged in on desktop: Dashboard and My sessions become icon buttons (labels kept for screen readers). */
@media (min-width: 1300px) {
  .main-nav .nav-auth.user-only .btn:not([href="/logout"]) { padding-inline: 12px; }
  .main-nav .nav-auth.user-only .btn:not([href="/logout"]) span[data-i18n] { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .main-nav .nav-auth.user-only .btn:not([href="/logout"]) span[aria-hidden] { font-size: 1.1rem; }
}

/* ============================================================
   Jobs & vacancies (/jobs, /job, dashboard block)
   ============================================================ */
.jb-hero { background: linear-gradient(160deg, #EFF6FF, #EEEBFF 55%, #ECFDF5); padding-bottom: 16px; }
.jb-tabs { display: inline-flex; gap: 6px; padding: 5px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); margin-top: 8px; }
.jb-tab { border: 0; border-radius: 16px; padding: 10px 18px; font-weight: 800; font-family: var(--font-head); font-size: 1.02rem; background: transparent; color: var(--ink-2); cursor: pointer; }
.jb-tab.is-active { background: var(--grad); color: #fff; box-shadow: 0 10px 20px -12px rgba(162, 28, 175, .8); }
.jb-tab:focus-visible, .jb-chip:focus-visible, .jb-save:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.jb-page { padding-top: 18px; padding-bottom: 40px; }
.jb-filters { padding: 14px; }
.jb-sectors { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 4px; scrollbar-width: thin; }
.jb-chip { --sc: #6254E8; flex-shrink: 0; border: 2px solid color-mix(in srgb, var(--sc) 30%, white); background: #fff; color: var(--ink); border-radius: 999px; padding: 7px 14px; font-weight: 700; font-size: .9rem; cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease-bounce), background .15s; }
.jb-chip:hover { transform: translateY(-2px); }
.jb-chip.is-active { background: var(--sc); border-color: var(--sc); color: #fff; }
.jb-filter-row { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 10px; align-items: end; }
@media (min-width: 860px) { .jb-filter-row { grid-template-columns: repeat(3, minmax(0, 1fr)) auto; } }
.jb-filter-row label { font-size: .82rem; }
.jb-filter-row .select { min-height: 44px; padding: 8px 10px; }
.jb-toggle { grid-column: 1 / -1; display: inline-flex; align-items: center; gap: 10px; font-weight: 700; cursor: pointer; padding: 8px 0; }
@media (min-width: 860px) { .jb-toggle { grid-column: auto; } }
.jb-toggle[hidden] { display: none; }
.jb-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.jb-switch { position: relative; width: 46px; height: 26px; border-radius: 999px; background: #D1D5DB; transition: background .2s; flex-shrink: 0; }
.jb-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s var(--ease-bounce); }
.jb-toggle input:checked + .jb-switch { background: var(--green-d); }
.jb-toggle input:checked + .jb-switch::after { transform: translateX(20px); }
.jb-toggle input:focus-visible + .jb-switch { outline: 3px solid var(--violet); outline-offset: 2px; }
.jb-grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .jb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .jb-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.jb-card { --sc: #6254E8; position: relative; display: flex; flex-direction: column; gap: 8px; padding: 16px; border-radius: 24px; background: #fff; border: 2px solid var(--line); border-top: 6px solid var(--sc); box-shadow: var(--shadow); overflow: hidden; min-width: 0; transition: transform .2s var(--ease-bounce), box-shadow .2s, opacity .3s; }
.jb-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.jb-card.is-featured { background: linear-gradient(170deg, #FFFBEB, #fff 45%); }
.jb-card.is-closed { opacity: .7; }
.jb-card.is-leaving { opacity: 0; transform: scale(.96); }
@media (prefers-reduced-motion: no-preference) { .jb-grid .jb-card { animation: rise .45s var(--ease-bounce) calc(var(--i) * 60ms) both; } }
.jb-ribbon { position: absolute; top: 14px; right: -38px; transform: rotate(35deg); background: linear-gradient(90deg, #F59E0B, #EC4899); color: #fff; font-size: .72rem; font-weight: 800; padding: 3px 42px; z-index: 1; }
.jb-card-top { display: flex; flex-wrap: wrap; gap: 6px 10px; align-items: center; padding-right: 54px; }
.jb-sector { display: inline-flex; gap: 5px; align-items: center; padding: 3px 10px; border-radius: 999px; font-weight: 800; font-size: .78rem; color: #fff; background: var(--sc); }
.jb-days { display: inline-flex; gap: 4px; align-items: center; font-weight: 800; font-size: .82rem; color: #92400E; background: #FEF3C7; border-radius: 999px; padding: 3px 10px; }
.jb-days.is-urgent { color: #fff; background: #DC2626; }
@media (prefers-reduced-motion: no-preference) { .jb-days.is-urgent { animation: jb-pulse 1.6s ease-in-out infinite; } }
@keyframes jb-pulse { 50% { box-shadow: 0 0 0 6px rgba(220, 38, 38, .18); } }
.jb-days.is-closed { color: #475569; background: #E2E8F0; }
.jb-card h3 { margin: 0; font-size: 1.12rem; line-height: 1.3; overflow-wrap: anywhere; }
.jb-card h3 a { color: var(--ink); text-decoration: none; }
.jb-card h3 a::after { content: ""; position: absolute; inset: 0; z-index: 0; }
.jb-card h3 a:hover { color: var(--violet-d); }
.jb-org { margin: 0; color: var(--ink-2); font-size: .9rem; overflow-wrap: anywhere; }
.jb-facts { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .86rem; color: var(--ink-2); }
.jb-salary { flex-basis: 100%; font-weight: 600; color: var(--ink); }
.jb-card-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; padding-top: 4px; flex-wrap: wrap; }
.jb-level { font-size: .78rem; font-weight: 700; border-radius: 999px; padding: 3px 9px; background: var(--violet-50); color: var(--violet-d); }
.jb-elig { font-size: .78rem; font-weight: 800; border-radius: 999px; padding: 3px 10px; }
.jb-elig.st-eligible { background: #D1FAE5; color: #065F46; }
.jb-elig.st-soon { background: #FEF3C7; color: #92400E; }
.jb-elig.st-not_yet { background: #E5E7EB; color: #374151; }
.jb-elig.st-age { background: #FEE2E2; color: #991B1B; }
.jb-save { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 6px; border: 2px solid #FDE68A; background: #fff; color: #92400E; border-radius: 999px; padding: 6px 12px; min-height: 40px; font-weight: 800; cursor: pointer; transition: transform .15s var(--ease-bounce), background .15s; }
.jb-save span[aria-hidden] { font-size: 1.15rem; line-height: 1; }
.jb-save:hover { transform: scale(1.05); }
.jb-save.is-saved { background: #FEF3C7; border-color: #F59E0B; }
@media (prefers-reduced-motion: no-preference) { .jb-save.is-saved span[aria-hidden] { animation: pop .4s var(--ease-bounce); } }
.jb-card.is-compact .jb-save-label { display: none; }
.jb-grid-dash { margin-top: 6px; }
@media (min-width: 1024px) { .jb-grid-dash { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* Detail */
.jb-detail-page { padding-bottom: 40px; }
.jb-head { --sc: #6254E8; position: relative; overflow: hidden; border-top: 8px solid var(--sc); background: linear-gradient(160deg, color-mix(in srgb, var(--sc) 8%, white), #fff 55%); }
.jb-head h1 { font-size: clamp(1.5rem, 5vw, 2.3rem); margin: 10px 0 4px; overflow-wrap: anywhere; padding-right: 30px; }
.jb-head .jb-org { font-size: 1rem; }
.jb-head .row { padding-right: 60px; }
.jb-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.jb-actions .jb-save { min-height: 44px; }
@media (max-width: 559px) { .jb-actions > * { flex: 1 1 100%; justify-content: center; } }
.jb-closed-note { margin: 10px 0 0; font-weight: 700; color: #475569; }
.jb-facts-grid { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); margin: 0; }
.jb-fact { background: #FAF9FF; border: 1px solid var(--line); border-radius: 16px; padding: 10px 12px; min-width: 0; }
.jb-fact dt { font-size: .78rem; font-weight: 700; color: var(--muted); }
.jb-fact dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.jb-fact dd small { display: block; font-weight: 500; color: var(--ink-2); margin-top: 2px; }
.jb-text p { margin: 0 0 8px; }
.jb-coach { display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; background: linear-gradient(130deg, #FFF7ED, #FDF2F8); }

/* Header after Jobs was added: nav icons only where there is room, and a wider row on very wide screens. */
@media (min-width: 1460px) and (max-width: 1679px) {
  .main-nav > a > span[aria-hidden] { display: none; }
  .main-nav a:not(.btn) { padding: 10px 10px; }
}
@media (min-width: 1680px) { .site-header .header-inner { max-width: 1600px; } }

/* ============================================================
   Header "More ▾" menu (Resume maker, Plans)
   ============================================================ */
.nav-more, .nav-more-menu { display: contents; }
.nav-more-btn { display: none; }
@media (min-width: 1300px) {
  .nav-more { display: block; position: relative; }
  .nav-more-btn { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border: 0; border-radius: 12px; background: transparent; color: var(--ink); font: inherit; font-weight: 600; cursor: pointer; white-space: nowrap; }
  .nav-more-btn:hover, .nav-more.is-open .nav-more-btn, .nav-more-btn.is-active { background: var(--violet-50); color: var(--violet-d); }
  .nav-more-btn:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
  .nav-more-caret { font-size: .8em; transition: transform .2s; }
  .nav-more.is-open .nav-more-caret { transform: rotate(180deg); }
  .nav-more-menu { display: none; position: absolute; top: calc(100% + 6px); left: 0; min-width: 210px; padding: 8px; border-radius: 18px; background: #fff; box-shadow: var(--shadow-lg); border: 1px solid var(--line); z-index: 60; }
  .nav-more.is-open .nav-more-menu { display: grid; gap: 2px; animation: drop .2s ease-out; }
  .nav-more-menu a:not(.btn) { display: flex; gap: 8px; align-items: center; padding: 10px 12px; }
  .nav-more-menu a > span[aria-hidden] { display: inline !important; }
}

/* ============================================================
   Resume / CV / biodata maker
   ============================================================ */
.rz-hero { background: linear-gradient(160deg, #EEEBFF, #FDF2F8 55%, #FFFBEB); padding-bottom: 16px; }
.rz-perks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.rz-perks span { background: #fff; border-radius: 999px; padding: 6px 12px; font-weight: 700; font-size: .88rem; box-shadow: var(--shadow); }
.rz-page { padding-top: 18px; padding-bottom: 40px; }
.rz-cat-tabs { display: inline-flex; gap: 6px; padding: 5px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); flex-wrap: wrap; }
.rz-cat { border: 0; border-radius: 16px; padding: 10px 16px; font-weight: 800; font-family: var(--font-head); font-size: 1rem; background: transparent; color: var(--ink-2); cursor: pointer; }
.rz-cat.is-active { background: var(--grad); color: #fff; }
.rz-cat:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.rz-tags { display: flex; gap: 8px; overflow-x: auto; padding: 12px 2px 6px; }
.rz-tags .jb-chip small { opacity: .7; font-weight: 600; }
.rz-grid { display: grid; gap: 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 6px; }
@media (min-width: 760px) { .rz-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .rz-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rz-skel { height: 320px; }
.rz-tcard { display: flex; flex-direction: column; border-radius: 20px; background: #fff; box-shadow: var(--shadow); overflow: hidden; min-width: 0; border: 2px solid transparent; transition: border-color .2s, box-shadow .2s; }
.rz-tcard:hover { border-color: #C4B5FD; box-shadow: var(--shadow-lg); }
@media (prefers-reduced-motion: no-preference) { .rz-grid .rz-tcard { animation: rise .4s var(--ease-bounce) calc(min(var(--i), 12) * 40ms) both; } }
.rz-thumb { position: relative; display: block; aspect-ratio: 420 / 594; overflow: hidden; background: #F3F4F6; }
.rz-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .45s ease; }
.rz-tcard:hover .rz-thumb img, .rz-thumb:focus-visible img { transform: scale(1.08); }
@media (prefers-reduced-motion: reduce) { .rz-thumb img { transition: none; } .rz-tcard:hover .rz-thumb img { transform: none; } }
.rz-thumb:focus-visible { outline: 3px solid var(--violet); outline-offset: -3px; }
.rz-pro { position: absolute; top: 8px; left: 8px; background: var(--grad); color: #fff; font-weight: 800; font-size: .72rem; border-radius: 999px; padding: 3px 9px; }
.rz-tbody { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.rz-tbody h3 { margin: 0; font-size: 1rem; }
.rz-tbody p { margin: 0; font-size: .8rem; color: var(--ink-2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.rz-ttags { display: flex; flex-wrap: wrap; gap: 4px; }
.rz-ttags span { font-size: .7rem; font-weight: 700; background: var(--violet-50); color: var(--violet-d); border-radius: 999px; padding: 2px 8px; }
.rz-tbody .btn { margin-top: auto; }
.rz-bio-note { grid-column: 1 / -1; }
.rz-mydocs { margin-bottom: 18px; background: #fff; border-radius: 24px; padding: 14px; box-shadow: var(--shadow); }
.rz-mydocs[hidden] { display: none; }
.rz-dstrip { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(160px, 190px); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.rz-dcard { border: 2px solid var(--line); border-radius: 16px; overflow: hidden; background: #FAF9FF; min-width: 0; }
.rz-dthumb { display: block; aspect-ratio: 420 / 300; overflow: hidden; }
.rz-dthumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.rz-dbody { padding: 8px 10px; display: grid; gap: 4px; }
.rz-dbody b { font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rz-dbody small { color: var(--muted); font-size: .74rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rz-dactions { display: flex; gap: 4px; }
.rz-icon { display: inline-grid; place-items: center; min-width: 32px; height: 32px; border-radius: 10px; border: 1.5px solid var(--line); background: #fff; cursor: pointer; text-decoration: none; font-size: .85rem; color: var(--ink); padding: 0 6px; }
.rz-icon:hover:not(:disabled) { border-color: var(--violet); background: var(--violet-50); }
.rz-icon:disabled { opacity: .35; cursor: default; }
.rz-icon.is-danger:hover { border-color: #DC2626; background: #FEE2E2; }
.rz-icon:focus-visible { outline: 3px solid var(--violet); outline-offset: 1px; }

/* Editor */
.page-resume-editor .site-footer { display: none; }
.rz-top { position: sticky; top: var(--header-h); z-index: 30; background: rgba(255, 255, 255, .95); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.rz-top-in { max-width: 1440px; margin: 0 auto; display: flex; align-items: center; gap: 10px; padding: 8px 16px; }
.rz-back { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: var(--violet-50); text-decoration: none; font-weight: 800; color: var(--violet-d); flex-shrink: 0; }
.rz-top-title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.rz-top-title b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-family: var(--font-head); }
.rz-save-state { font-size: .76rem; font-weight: 700; color: var(--muted); }
.rz-save-state.st-clean { color: var(--green-d); }
.rz-save-state.st-dirty { color: #B45309; }
.rz-save-state.st-error { color: #B91C1C; }
.rz-top-actions { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.rz-lang { display: inline-flex; align-items: center; gap: 2px; background: var(--violet-50); border-radius: 999px; padding: 2px 4px 2px 8px; }
.rz-lang select { border: 0; background: transparent; font-weight: 700; color: var(--violet-d); max-width: 82px; }
@media (max-width: 640px) { .rz-hide-sm { display: none; } .rz-top-in { gap: 6px; padding: 6px 10px; } .rz-top-actions .btn { padding: 6px 10px; } .rz-lang select { max-width: 64px; } }
.rz-mtabs { display: none; }
.rz-split { max-width: 1440px; margin: 0 auto; display: grid; gap: 16px; padding: 16px; }
@media (min-width: 960px) { .rz-split { grid-template-columns: minmax(380px, 1fr) minmax(0, 1.05fr); align-items: start; } }
@media (max-width: 959px) {
  .rz-mtabs { display: flex; gap: 6px; padding: 0 12px 8px; max-width: 1440px; margin: 0 auto; }
  .rz-mtab { flex: 1; border: 0; border-radius: 12px; padding: 8px; font-weight: 800; background: var(--violet-50); color: var(--violet-d); cursor: pointer; }
  .rz-mtab.is-active { background: var(--grad); color: #fff; }
  .rz-split[data-pane="edit"] .rz-preview-col { display: none; }
  .rz-split[data-pane="preview"] .rz-form { display: none; }
}
.rz-form { display: grid; gap: 12px; min-width: 0; }
.rz-card { background: #fff; border-radius: 20px; box-shadow: var(--shadow); padding: 14px; min-width: 0; }
.rz-card h2 { font-size: 1.1rem; margin: 0 0 10px; }
.rz-field { margin-bottom: 10px; }
.rz-field label { font-size: .82rem; }
.rz-photo-row { display: flex; gap: 12px; align-items: center; margin-bottom: 10px; }
.rz-photo { width: 76px; height: 76px; border-radius: 50%; overflow: hidden; display: grid; place-items: center; background: var(--violet-50); font-size: 1.8rem; flex-shrink: 0; border: 3px solid #fff; box-shadow: var(--shadow); }
.rz-photo img { width: 100%; height: 100%; object-fit: cover; }
.rz-photo.is-loading { opacity: .5; }
.rz-photo-actions { display: grid; gap: 6px; justify-items: start; }
.rz-photo-actions label.btn { cursor: pointer; }
.rz-sections { display: grid; gap: 10px; }
.rz-sec { padding: 0; }
.rz-sec.is-dragging { opacity: .5; }
.rz-sec.is-over { outline: 3px dashed var(--violet); outline-offset: 2px; }
.rz-sec-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px; cursor: pointer; list-style: none; font-weight: 800; }
.rz-sec-head::-webkit-details-marker { display: none; }
.rz-drag { cursor: grab; color: var(--muted); letter-spacing: -2px; user-select: none; }
.rz-sec-title { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rz-sec-tools { display: flex; gap: 4px; flex-shrink: 0; }
.rz-sec-body { padding: 0 12px 12px; display: grid; gap: 8px; }
.rz-sec[open] .rz-sec-head { border-bottom: 1px solid var(--line); margin-bottom: 10px; }
.rz-kv { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr) auto; gap: 6px; align-items: start; }
.rz-kv-label { font-weight: 700; font-size: .9rem; }
.rz-kv .input, .rz-kv .select, .rz-li .input, .rz-li .select, .rz-cell .input { min-height: 40px; padding: 7px 10px; font-size: .92rem; }
.rz-kv .textarea, .rz-cell .textarea { min-height: 64px; font-size: .92rem; padding: 7px 10px; }
@media (max-width: 480px) { .rz-kv { grid-template-columns: minmax(0, 1fr) auto; } .rz-kv-val { grid-column: 1 / 2; } .rz-kv .js-item-del { grid-row: 1; grid-column: 2; } }
.rz-rows, .rz-list, .rz-trows { display: grid; gap: 8px; }
.rz-li { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 6px; align-items: center; }
.rz-level { max-width: 110px; }
.rz-cols { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.rz-col { flex: 1 1 110px; min-height: 36px; padding: 6px 8px; font-size: .84rem; font-weight: 700; background: #FAF9FF; }
.rz-trow { border: 1.5px solid var(--line); border-radius: 14px; padding: 8px; background: #FCFBFF; }
.rz-trow-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; font-size: .84rem; }
.rz-trow-head span { display: flex; gap: 4px; }
.rz-cells { display: grid; gap: 6px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rz-cell { display: grid; gap: 2px; min-width: 0; }
.rz-cell span { font-size: .74rem; font-weight: 700; color: var(--muted); }
.rz-cell.is-long { grid-column: 1 / -1; }
.rz-add-section { border: 2px dashed #C4B5FD; }
.rz-design-head { cursor: pointer; font-weight: 800; font-family: var(--font-head); font-size: 1.1rem; }
.rz-opt-label { display: block; font-size: .8rem; font-weight: 700; color: var(--muted); margin: 10px 0 6px; }
.rz-presets { display: flex; flex-wrap: wrap; gap: 8px; }
.rz-preset { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); cursor: pointer; background: linear-gradient(135deg, var(--a) 50%, var(--b) 50%); transition: transform .15s var(--ease-bounce); }
.rz-preset:hover { transform: scale(1.12); }
.rz-preset:focus-visible { box-shadow: 0 0 0 3px var(--violet); }
.rz-colors { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; margin-top: 10px; }
.rz-color { display: flex; align-items: center; gap: 8px; font-size: .82rem; font-weight: 600; cursor: pointer; background: #FAF9FF; border-radius: 12px; padding: 6px 8px; }
.rz-color input { width: 32px; height: 32px; border: 0; padding: 0; background: none; cursor: pointer; border-radius: 8px; }
.rz-fonts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.rz-font { display: grid; gap: 2px; font-size: .8rem; font-weight: 700; color: var(--muted); }
.rz-font .select { min-height: 40px; padding: 6px 8px; font-size: .9rem; }
.rz-chips-row { margin-top: 8px; }
.rz-chips-row .chips { gap: 6px; }
.rz-chip { border: 2px solid var(--line); background: #fff; border-radius: 999px; padding: 4px 11px; font-size: .8rem; font-weight: 700; cursor: pointer; text-transform: capitalize; color: var(--ink); }
.rz-chip.is-active { background: var(--violet); border-color: var(--violet); color: #fff; }
.rz-chip:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.rz-preview-col { position: sticky; top: calc(var(--header-h) + 70px); min-width: 0; }
.rz-preview-head { display: flex; justify-content: space-between; align-items: center; font-weight: 800; margin-bottom: 8px; }
.rz-pages { font-size: .82rem; background: var(--violet-50); color: var(--violet-d); border-radius: 999px; padding: 3px 10px; }
.rz-pages.is-many { background: #FEF3C7; color: #92400E; }
.rz-preview { position: relative; background: #E5E7EB; border-radius: 18px; padding: 12px 4px; max-height: calc(100vh - var(--header-h) - 150px); overflow: auto; display: flex; justify-content: center; }
@media (max-width: 959px) { .rz-preview { max-height: none; } .rz-preview-col { position: static; } }
.rz-paper-wrap { position: relative; overflow: hidden; flex-shrink: 0; box-shadow: 0 10px 30px -10px rgba(0, 0, 0, .35); }
.rz-frame { position: absolute; top: 0; left: 0; border: 0; background: #fff; transform-origin: 0 0; }
.rz-preview-loading { position: absolute; top: 10px; right: 10px; background: #fff; border-radius: 999px; box-shadow: var(--shadow); }
.rz-preview-loading .spinner { width: 26px; height: 26px; margin: 6px; border-width: 3px; }
.rz-type-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.rz-type input { position: absolute; opacity: 0; }
.rz-type span { display: grid; gap: 2px; padding: 10px; border: 2px solid var(--line); border-radius: 14px; cursor: pointer; }
.rz-type small { color: var(--muted); font-size: .76rem; }
.rz-type input:checked + span { border-color: var(--violet); background: var(--violet-50); }
.rz-type input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.rz-picker-modal { max-width: 860px; }
.rz-picker { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 10px; max-height: 60vh; overflow: auto; padding: 4px; }
.rz-pick { border: 2px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; cursor: pointer; padding: 0; text-align: center; font-weight: 700; font-size: .8rem; }
.rz-pick img { width: 100%; aspect-ratio: 420 / 594; object-fit: cover; object-position: top; display: block; }
.rz-pick span { display: block; padding: 6px; }
.rz-pick.is-current { border-color: var(--violet); box-shadow: 0 0 0 3px var(--violet-50); }
.rz-pick:hover, .rz-pick:focus-visible { border-color: var(--violet); }
/* Homepage + dashboard entry cards */
.rz-promo { display: grid; gap: 18px; align-items: center; background: linear-gradient(130deg, #EEEBFF, #FDF2F8 60%, #FFFBEB); border-radius: 28px; padding: 22px; overflow: hidden; }
@media (min-width: 860px) { .rz-promo { grid-template-columns: 1.1fr 1fr; padding: 32px; } }
.rz-promo h2 { margin: 6px 0; }
.rz-promo-thumbs { display: flex; justify-content: center; gap: 10px; }
.rz-promo-thumbs img { width: 30%; max-width: 150px; border-radius: 12px; box-shadow: var(--shadow-lg); background: #fff; }
.rz-promo-thumbs img:nth-child(2) { transform: translateY(-14px) rotate(2deg); }
.rz-promo-thumbs img:nth-child(1) { transform: rotate(-4deg); }
.rz-promo-thumbs img:nth-child(3) { transform: rotate(4deg); }
@media (prefers-reduced-motion: no-preference) { .rz-promo-thumbs img { transition: transform .4s var(--ease-bounce); } .rz-promo:hover .rz-promo-thumbs img { transform: none; } }
.rz-dash-card { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; background: linear-gradient(130deg, #4B3DD1, #A21CAF); color: #fff; border-radius: 24px; padding: 18px; text-decoration: none; box-shadow: var(--shadow-lg); }
.rz-dash-card:hover { color: #fff; transform: translateY(-2px); }
.rz-dash-card .rz-dash-emoji { font-size: 2.6rem; line-height: 1; }
.rz-dash-card div { flex: 1; min-width: 200px; }
.rz-dash-card h2 { color: #fff; margin: 0; font-size: 1.3rem; }
.rz-dash-card p { margin: 2px 0 0; opacity: .92; }
.rz-dash-card .btn { flex-shrink: 0; }

/* Editor top bar on phones: title row, then the actions row. */
@media (max-width: 640px) {
  .rz-top-in { flex-wrap: wrap; row-gap: 6px; }
  .rz-top-title { flex: 1 1 calc(100% - 50px); }
  .rz-top-actions { flex: 1 1 100%; justify-content: space-between; }
  .rz-top-actions .js-download { flex: 1; justify-content: center; }
}

/* ======================================================================== English speaking (/english, /english-play) */
.eng-hero { position: relative; overflow: hidden; padding: 64px 0 8px; background: radial-gradient(120% 90% at 10% 0%, #E9F9F1 0%, transparent 60%), radial-gradient(90% 80% at 100% 0%, #FDE8F3 0%, transparent 60%); }
.eng-hero-in { display: flex; align-items: center; gap: 16px; }
.eng-hero-udi { flex-shrink: 0; }
.eng-hero-udi .udi { --udi-size: 92px; }
.eng-hero h1 { margin: 0 0 6px; font-size: clamp(1.7rem, 5vw, 2.8rem); line-height: 1.1; }
.eng-hero .lead { margin: 0; max-width: 620px; }
@media (min-width: 760px) { .eng-hero-udi .udi { --udi-size: 140px; } .eng-hero { padding: 76px 0 12px; } }
.eng-page { padding-top: 18px; padding-bottom: 48px; display: grid; gap: 22px; min-width: 0; }
.eng-sec-title { font-size: 1.35rem; margin: 0 0 12px; }
.eng-cefr { font-size: .7em; font-weight: 700; color: var(--violet-d); background: var(--violet-50); padding: 2px 8px; border-radius: 999px; vertical-align: middle; }

/* status cards */
.eng-status { display: grid; gap: 14px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 700px) { .eng-status { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .eng-status { grid-template-columns: 1.15fr 1fr 1fr 1.3fr; } }
.eng-st { display: flex; gap: 14px; align-items: center; padding: 18px; min-width: 0; animation: engRise .5s var(--ease-bounce) both; }
.eng-st:nth-child(2) { animation-delay: .06s; } .eng-st:nth-child(3) { animation-delay: .12s; } .eng-st:nth-child(4) { animation-delay: .18s; }
.eng-st > div { min-width: 0; flex: 1; }
.eng-st h2 { margin: 0 0 4px; font-size: 1.3rem; }
.eng-st h3 { margin: 0 0 8px; font-size: 1.05rem; }
.eng-st .eyebrow { margin-bottom: 4px; }
.eng-st-big { font-family: var(--font-head); font-weight: 700; font-size: 1.2rem; margin: 0; line-height: 1.2; }
.eng-st-skills { display: block; }
.eng-level-badge { display: grid; place-items: center; width: 72px; height: 72px; flex-shrink: 0; border-radius: 22px; font-size: 2.3rem; background: linear-gradient(140deg, #D1FAE5, #A7F3D0); box-shadow: inset 0 -4px 0 rgba(0,0,0,.08), var(--shadow); animation: engFloat 3.5s ease-in-out infinite; }
.eng-level-badge.lv-2 { background: linear-gradient(140deg, #DCFCE7, #86EFAC); }
.eng-level-badge.lv-3 { background: linear-gradient(140deg, #FEF3C7, #FCD34D); }
.eng-level-badge.lv-4 { background: linear-gradient(140deg, #E0E7FF, #C4B5FD); }
.eng-level-badge.sm { width: 48px; height: 48px; font-size: 1.6rem; border-radius: 16px; animation: none; }
.eng-next { margin-top: 6px; }
.eng-next small { color: var(--muted); }
.eng-ring { position: relative; width: 84px; height: 84px; flex-shrink: 0; display: grid; place-items: center; }
.eng-ring svg { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.eng-ring circle { fill: none; stroke: var(--violet-50); stroke-width: 4.5; }
.eng-ring .eng-ring-fill { stroke: var(--green); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p)); animation: engRing 1.1s ease-out both; }
.eng-st-xp.is-done .eng-ring-fill { stroke: var(--amber); }
.eng-ring-n { display: grid; text-align: center; line-height: 1; }
.eng-ring-n b { font-family: var(--font-head); font-size: 1.35rem; }
.eng-ring-n small { color: var(--muted); font-size: .72rem; }
.eng-ring-emoji { font-size: 1.9rem; }
.eng-flame { font-size: 2.6rem; filter: grayscale(1) opacity(.5); flex-shrink: 0; }
.eng-st-streak.is-on .eng-flame { filter: none; animation: engFlame 1.4s ease-in-out infinite; transform-origin: 50% 90%; }
.eng-skills { display: grid; gap: 10px; }
.eng-skill { animation: engRise .5s ease-out both; animation-delay: calc(var(--i) * .08s); }
.eng-skill-top { display: flex; justify-content: space-between; gap: 8px; font-size: .9rem; font-weight: 600; }
.eng-skill-track { height: 10px; border-radius: 99px; background: var(--violet-50); overflow: hidden; margin-top: 4px; }
.eng-skill-fill { display: block; height: 100%; width: var(--w); border-radius: inherit; background: var(--grad-cool); animation: engGrow 1.1s cubic-bezier(.2,.8,.2,1) both; }
.eng-skill-fill.sk-grammar { background: linear-gradient(90deg, #6254E8, #A78BFA); }
.eng-skill-fill.sk-vocabulary { background: linear-gradient(90deg, #F59E0B, #FBBF24); }
.eng-skill-fill.sk-listening { background: linear-gradient(90deg, #3B82F6, #22D3EE); }
.eng-skill-fill.sk-speaking { background: linear-gradient(90deg, #EC4899, #F472B6); }

/* CTA banners */
.eng-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px; padding: 20px 22px; border-radius: var(--radius); color: #fff; background: var(--grad); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.eng-cta.is-placement { background: linear-gradient(120deg, #047857, #0369A1 60%, #4B3DD1); }
.eng-cta::after { content: ""; position: absolute; inset: -40% -10% auto auto; width: 220px; height: 220px; border-radius: 50%; background: rgba(255,255,255,.12); animation: engFloat 6s ease-in-out infinite; pointer-events: none; }
.eng-cta > div { flex: 1 1 220px; min-width: 0; }
.eng-cta h2 { margin: 0; color: #fff; font-size: 1.35rem; }
.eng-cta p { margin: 4px 0 0; opacity: .95; }
.eng-cta .eyebrow { background: rgba(255,255,255,.2); color: #fff; }
.eng-cta-emoji { font-size: 2.6rem; animation: engFloat 3s ease-in-out infinite; }
.eng-cta .btn { position: relative; z-index: 1; }
.eng-cta-row { text-align: right; margin-top: -10px; }
.eng-retake { color: var(--muted); }

/* guest */
.eng-guest { display: grid; gap: 18px; align-items: center; }
@media (min-width: 900px) { .eng-guest { grid-template-columns: 1fr 1.2fr; } }
.eng-guest h2 { margin: 0 0 6px; }
.eng-guest-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; }
.eng-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.eng-feats li { display: grid; gap: 2px; padding: 14px; border-radius: 18px; background: var(--violet-50); animation: engPop .5s var(--ease-bounce) both; animation-delay: calc(var(--i) * .08s); min-width: 0; }
.eng-feats li span { font-size: 1.8rem; }
.eng-feats li small { color: var(--muted); line-height: 1.35; }

/* the winding path */
.eng-map { min-width: 0; }
.eng-lv { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 18px 14px 8px; margin-bottom: 18px; border: 2px solid transparent; overflow: hidden; }
.eng-lv.is-current { border-color: #A7F3D0; }
.eng-lv.is-locked { background: linear-gradient(180deg, #F4F3FA, #FBFAFF); }
.eng-lv-head { display: flex; gap: 12px; align-items: flex-start; }
.eng-lv-head h3 { margin: 0; font-size: 1.15rem; }
.eng-lv-head p { margin: 2px 0 0; }
.eng-lock-pill, .eng-you-pill { font-size: .72rem; font-weight: 700; padding: 2px 8px; border-radius: 999px; vertical-align: middle; white-space: nowrap; }
.eng-lock-pill { background: #EDEBF5; color: var(--muted); }
.eng-you-pill { background: #D1FAE5; color: var(--green-d); }
.eng-path { list-style: none; margin: 10px 0 0; padding: 22px 0 10px; position: relative; display: grid; gap: 14px; }
.eng-path-line { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.eng-path-bg { fill: none; stroke: #D9D4F5; stroke-width: 5; stroke-dasharray: 2 12; stroke-linecap: round; }
.eng-path-done { fill: none; stroke: var(--green); stroke-width: 6; stroke-linecap: round; opacity: .7; }
.eng-node { --amp: 40px; position: relative; left: calc(var(--x) * var(--amp)); display: flex; flex-direction: column; align-items: center; text-align: center; animation: engPop .55s var(--ease-bounce) both; animation-delay: calc(var(--i) * .05s); z-index: 1; }
@media (min-width: 600px) { .eng-node { --amp: 90px; } }
.eng-node-btn { position: relative; display: block; border-radius: 50%; color: inherit; text-decoration: none; transition: transform .2s var(--ease-bounce); }
.eng-node-btn:hover, .eng-node-btn:focus-visible { transform: scale(1.08) translateY(-3px); }
.eng-node-btn:focus-visible { outline: 3px solid var(--violet); outline-offset: 4px; }
.eng-ring.is-node { width: 86px; height: 86px; background: #fff; border-radius: 50%; box-shadow: 0 6px 0 #DCD6FA, var(--shadow); }
.eng-ring.is-node circle { stroke-width: 4; }
.eng-node.is-done .eng-ring.is-node { background: #ECFDF5; box-shadow: 0 6px 0 #A7F3D0, var(--shadow); }
.eng-node.is-done .eng-ring-fill { stroke: var(--green); }
.eng-node.is-started .eng-ring-fill { stroke: var(--amber); }
.eng-node.is-locked .eng-ring.is-node { background: #F1F0F7; box-shadow: 0 6px 0 #E2E0EE; }
.eng-node.is-locked .eng-node-emoji { filter: grayscale(1); opacity: .55; }
.eng-node-emoji { font-size: 2.1rem; position: relative; }
.eng-node-lock, .eng-node-crown { position: absolute; right: -4px; top: -6px; font-size: 1.15rem; background: #fff; border-radius: 50%; width: 30px; height: 30px; display: grid; place-items: center; box-shadow: var(--shadow); }
.eng-node.is-current .eng-ring.is-node { box-shadow: 0 6px 0 #C4B5FD, 0 0 0 6px rgba(98,84,232,.18), var(--shadow-lg); animation: engPulse 2s ease-in-out infinite; }
.eng-node-start { position: absolute; left: 50%; bottom: calc(100% + 4px); transform: translateX(-50%); background: var(--violet); color: #fff; font-weight: 700; font-size: .78rem; padding: 3px 10px; border-radius: 999px; white-space: nowrap; animation: engBobX 1.4s ease-in-out infinite; }
.eng-node-start::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -5px; border: 5px solid transparent; border-top-color: var(--violet); }
.eng-node-label { display: grid; gap: 1px; margin-top: 10px; max-width: 220px; padding: 4px 10px; background: rgba(255,255,255,.92); border-radius: 12px; }
.eng-node-label b { font-size: .95rem; line-height: 1.25; }
.eng-node-label small { color: var(--muted); font-size: .78rem; }
.eng-node-career { color: var(--teal-d) !important; }
.eng-node.is-shake .eng-node-btn { animation: engShake .45s ease-in-out; }

/* sprint card + badges */
.eng-bottom { display: grid; gap: 18px; min-width: 0; }
@media (min-width: 960px) { .eng-bottom { grid-template-columns: 1fr 1.6fr; align-items: start; } }
.eng-sprint-card { display: grid; gap: 12px; padding: 22px; border-radius: var(--radius); color: #fff; background: linear-gradient(135deg, #C2410C, #BE185D 60%, #6D28D9); box-shadow: var(--shadow-lg); position: relative; overflow: hidden; }
.eng-sprint-card h2 { color: #fff; margin: 0; }
.eng-sprint-card p { margin: 4px 0 0; }
.eng-sprint-card .eyebrow { background: rgba(255,255,255,.22); color: #fff; }
.eng-bolt { position: absolute; right: 10px; top: -6px; font-size: 5rem; opacity: .35; animation: engZap 2.4s ease-in-out infinite; }
.eng-best b { font-size: 1.3rem; }
.eng-sprint-card .btn { justify-self: start; }
.eng-badges-card { min-width: 0; }
.eng-badges { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.eng-badge { display: grid; justify-items: center; align-content: start; text-align: center; gap: 2px; padding: 12px 8px; border-radius: 18px; background: #F4F3FA; animation: engPop .45s var(--ease-bounce) both; animation-delay: calc(var(--i) * .04s); min-width: 0; }
.eng-badge b { font-size: .85rem; line-height: 1.2; }
.eng-badge small { font-size: .72rem; color: var(--muted); line-height: 1.3; }
.eng-badge-medal { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; font-size: 1.7rem; background: #E7E5F2; filter: grayscale(1); opacity: .6; }
.eng-badge.is-earned { background: linear-gradient(160deg, #FFF7E0, #FFE4F1); }
.eng-badge.is-earned .eng-badge-medal { filter: none; opacity: 1; background: radial-gradient(circle at 35% 30%, #FFF, #FDE68A 60%, #F59E0B); box-shadow: 0 4px 0 #D97706, 0 6px 14px rgba(245,158,11,.4); }
.eng-badge.is-new .eng-badge-medal { animation: engMedal 1s var(--ease-bounce) both; animation-delay: calc(.3s + var(--i) * .15s); }

/* home promo + dashboard card */
.eng-promo { display: grid; gap: 18px; align-items: center; padding: 24px; border-radius: 30px; background: linear-gradient(135deg, #ECFDF5 0%, #EEF2FF 55%, #FDF2F8 100%); box-shadow: var(--shadow); overflow: hidden; }
@media (min-width: 820px) { .eng-promo { grid-template-columns: auto 1fr; padding: 32px 40px; } }
.eng-promo-udi { display: grid; place-items: center; min-height: 120px; }
.eng-promo-udi .udi { --udi-size: 120px; }
@media (min-width: 820px) { .eng-promo-udi .udi { --udi-size: 170px; } }
.eng-promo-emoji { font-size: 4rem; }
.eng-promo h2 { margin: 0 0 6px; }
.eng-promo-levels { display: flex; gap: 8px; margin: 6px 0 10px; font-size: 1.6rem; }
.eng-promo-levels span { animation: engBob 2s ease-in-out infinite; }
.eng-promo-levels span:nth-child(2) { animation-delay: .2s; } .eng-promo-levels span:nth-child(3) { animation-delay: .4s; } .eng-promo-levels span:nth-child(4) { animation-delay: .6s; }
.eng-dash { border-radius: 28px; color: #fff; background: linear-gradient(120deg, #047857 0%, #0369A1 50%, #4B3DD1 100%); box-shadow: var(--shadow-lg); overflow: hidden; }
.eng-dash-in { display: flex; flex-wrap: wrap; gap: 18px; align-items: center; padding: 22px; }
.eng-dash .eng-ring { width: 96px; height: 96px; background: rgba(255,255,255,.95); border-radius: 50%; }
.eng-dash .eng-ring-emoji { font-size: 2.3rem; }
.eng-dash-text { flex: 1 1 240px; min-width: 0; }
.eng-dash h2 { color: #fff; margin: 0 0 6px; }
.eng-dash .eyebrow { background: rgba(255,255,255,.2); color: #fff; }
.eng-dash-stats { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 12px; }
.eng-dash-stats span { background: rgba(255,255,255,.18); padding: 3px 10px; border-radius: 999px; font-size: .88rem; font-weight: 600; }
.eng-dash-cta { display: flex; flex-wrap: wrap; gap: 10px; }
.btn-ghost-white { background: rgba(255,255,255,.16); color: #fff; border: 2px solid rgba(255,255,255,.55); }
.btn-ghost-white:hover { background: rgba(255,255,255,.28); color: #fff; }

/* ---------- player ---------- */
.page-english-play .site-footer { display: none; }
.page-english-play .site-main { padding-bottom: 0; }
.ep { width: 100%; max-width: 760px; margin: 0 auto; padding: 10px 16px 170px; min-height: calc(100vh - var(--header-h)); display: flex; flex-direction: column; min-width: 0; }
.ep-top { position: sticky; top: var(--header-h); z-index: 20; display: flex; align-items: center; gap: 10px; padding: 10px 0; background: var(--bg); }
.ep-close { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; font-size: 1.1rem; color: var(--muted); text-decoration: none; flex-shrink: 0; }
.ep-close:hover, .ep-close:focus-visible { background: var(--violet-50); color: var(--ink); }
.ep-progress { flex: 1; height: 16px; border-radius: 99px; background: #E6E2FA; overflow: hidden; min-width: 0; }
.ep-bar { display: block; height: 100%; width: 0; border-radius: inherit; background: linear-gradient(90deg, #10B981, #34D399); box-shadow: inset 0 -4px 0 rgba(0,0,0,.08); transition: width .45s var(--ease-bounce); }
.is-sprinting .ep-bar { background: linear-gradient(90deg, #F59E0B, #EC4899); transition: width .1s linear; }
.ep-xp { position: relative; font-weight: 700; font-family: var(--font-head); font-size: 1.05rem; color: var(--amber-d); white-space: nowrap; }
.ep-xp.is-bump { animation: engPop .45s var(--ease-bounce); }
.ep-xp-fly { position: absolute; right: 0; top: 100%; color: var(--amber-d); font-weight: 800; animation: engFly 1.1s ease-out forwards; pointer-events: none; }
.ep-stage { flex: 1; min-width: 0; }
.ep-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px 18px; animation: engSlide .4s cubic-bezier(.2,.8,.2,1) both; min-width: 0; }
.ep-meta { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-bottom: 8px; }
.ep-chip { font-size: .8rem; font-weight: 700; padding: 3px 10px; border-radius: 999px; background: var(--violet-50); color: var(--violet-d); }
.ep-chip.sk-vocabulary { background: #FEF3C7; color: var(--amber-d); }
.ep-chip.sk-listening { background: #DBEAFE; color: var(--sky-d); }
.ep-chip.sk-speaking { background: #FCE7F3; color: var(--pink-d); }
.ep-count { color: var(--muted); font-size: .85rem; font-weight: 600; }
.ep-prompt { font-size: 1.15rem; margin: 0 0 12px; line-height: 1.35; outline: none; }
.ep-prompt.small { font-size: .95rem; color: var(--muted); font-weight: 600; }
.ep-q { font-size: clamp(1.2rem, 4.5vw, 1.55rem); font-weight: 600; font-family: var(--font-head); line-height: 1.35; margin: 8px 0 16px; overflow-wrap: anywhere; }
.ep-blank { display: inline-block; min-width: 3.2em; border-bottom: 3px dashed var(--violet); color: transparent; line-height: 1; }
.ep-hint { background: #FFFBEB; border-radius: 12px; padding: 8px 12px; color: var(--amber-d); font-weight: 600; }
.ep-opts { display: grid; gap: 10px; }
@media (min-width: 640px) { .ep-opts.is-row { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); } }
.ep-opt { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 58px; padding: 12px 16px; text-align: left; font: inherit; font-size: 1.08rem; font-weight: 600; color: var(--ink); background: #fff; border: 2px solid #E2DDF7; border-bottom-width: 5px; border-radius: 18px; cursor: pointer; transition: transform .15s var(--ease-bounce), border-color .15s, background .15s; animation: engRise .35s ease-out both; animation-delay: calc(var(--i) * .05s); overflow-wrap: anywhere; }
.ep-opt kbd { flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; border: 2px solid #E2DDF7; font: 700 .85rem var(--font-body); color: var(--muted); background: #fff; }
.ep-opt:hover:not(:disabled) { border-color: var(--violet); transform: translateY(-2px); background: #FAF9FF; }
.ep-opt:active:not(:disabled) { transform: translateY(2px); border-bottom-width: 3px; }
.ep-opt:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.ep-opt:disabled { cursor: default; }
.ep-opt.is-picked { border-color: var(--violet); background: var(--violet-50); }
.ep-opt.is-right { border-color: var(--green); background: #ECFDF5; color: var(--green-d); animation: engPop .45s var(--ease-bounce); }
.ep-opt.is-right kbd { border-color: var(--green); color: var(--green-d); }
.ep-opt.is-wrong { border-color: var(--red); background: #FEF2F2; color: var(--red-d); animation: engShake .4s ease-in-out; }
.ep-type { display: grid; gap: 10px; justify-items: stretch; }
.ep-input { font-size: 1.3rem; font-weight: 600; text-align: center; letter-spacing: .06em; min-height: 58px; }
.ep-input.is-right { border-color: var(--green); background: #ECFDF5; }
.ep-input.is-wrong { border-color: var(--red); background: #FEF2F2; animation: engShake .4s; }
.ep-tts { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 12px; align-items: center; }
.ep-say { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 10px 18px; border-radius: 16px; border: 0; font: inherit; font-weight: 700; cursor: pointer; color: #fff; background: var(--sky-d); box-shadow: inset 0 -4px 0 rgba(0,0,0,.15); transition: transform .15s var(--ease-bounce); }
.ep-tts.is-big .ep-say:not(.ep-slow) { font-size: 1.15rem; min-height: 60px; padding: 12px 24px; }
.ep-say:hover { transform: translateY(-2px); }
.ep-say:active { transform: translateY(2px); }
.ep-say:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.ep-slow { background: #fff; color: var(--sky-d); border: 2px solid #BFDBFE; box-shadow: inset 0 -3px 0 #BFDBFE; }
.ep-note { color: var(--muted); width: 100%; margin: 0; }
.ep-reveal { margin: 8px 0; }
.ep-reveal summary { cursor: pointer; font-weight: 600; color: var(--violet-d); }
.ep-read { margin: 6px 0 14px; padding: 16px 18px; border-radius: 18px; background: #F5F3FF; border-left: 5px solid var(--violet); font-size: clamp(1.15rem, 4vw, 1.4rem); font-weight: 600; line-height: 1.45; overflow-wrap: anywhere; }
.ep-read.is-twister { background: #FFF7ED; border-color: var(--amber); }
.ep-scene { background: #F0F9FF; border-radius: 14px; padding: 10px 14px; font-weight: 500; }
.ep-bot { display: flex; gap: 10px; align-items: flex-end; margin: 10px 0 14px; }
.ep-bot .udi { --udi-size: 64px; }
.ep-bot-bubble { position: relative; flex: 1; min-width: 0; background: #EEF2FF; border-radius: 18px 18px 18px 4px; padding: 12px 14px 4px; animation: engPop .4s var(--ease-bounce) both; }
.ep-bot-bubble p { margin: 0 0 4px; font-weight: 600; font-size: 1.1rem; }
.ep-say-it p { margin: 14px 0 0; font-weight: 700; }
.ep-hints { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-wrap: wrap; gap: 8px; }
.ep-hints li { background: #ECFDF5; color: var(--green-d); padding: 6px 12px; border-radius: 999px; font-weight: 600; font-size: .92rem; animation: engPop .4s var(--ease-bounce) both; animation-delay: calc(var(--i) * .06s); }

/* sentence builder */
.ep-sb { display: grid; gap: 14px; }
.ep-sb-line { min-height: 74px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px; border-radius: 18px; border: 2px dashed #CFC8FF; background: #FAF9FF; transition: border-color .2s, background .2s; }
.ep-sb-line.is-over, .ep-sb-bank.is-over { border-color: var(--violet); background: var(--violet-50); }
.ep-sb-line.is-full { border-style: solid; }
.ep-sb-line.is-right { border-color: var(--green); background: #ECFDF5; }
.ep-sb-line.is-wrong { border-color: var(--red); background: #FEF2F2; animation: engShake .4s; }
.ep-sb-ph { color: var(--muted); font-size: .92rem; }
.ep-sb-bank { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; min-height: 56px; padding: 6px; border-radius: 18px; border: 2px solid transparent; }
.ep-tok { min-height: 48px; padding: 8px 16px; font: inherit; font-size: 1.08rem; font-weight: 600; border-radius: 14px; border: 2px solid #E2DDF7; border-bottom-width: 4px; background: #fff; color: var(--ink); cursor: grab; animation: engPop .35s var(--ease-bounce) both; animation-delay: calc(var(--i, 0) * .04s); touch-action: manipulation; }
.ep-tok:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.ep-tok.is-drag { opacity: .4; }
.ep-tok.is-bump { animation: engPop .3s var(--ease-bounce); }
.ep-sb-line .ep-tok { border-color: #C4B5FD; }
.ep-tok:disabled { cursor: default; color: var(--ink); }

/* word match */
.ep-wm { position: relative; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 36px; margin-bottom: 8px; }
@media (min-width: 640px) { .ep-wm { gap: 12px 80px; } }
.ep-wm-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; z-index: 0; }
.ep-wm-lines path { fill: none; stroke-width: 4; stroke-linecap: round; opacity: .85; }
.ep-wm-lines path.is-new { stroke-dasharray: 400; stroke-dashoffset: 400; animation: engDraw .45s ease-out forwards; }
.ep-wm-col { display: grid; gap: 10px; position: relative; z-index: 1; min-width: 0; }
.ep-wm-item { --pc: #E2DDF7; display: grid; align-content: center; gap: 2px; min-height: 54px; padding: 8px 10px; font: inherit; font-weight: 600; text-align: center; border-radius: 16px; border: 2px solid #E2DDF7; border-bottom-width: 4px; background: #fff; color: var(--ink); cursor: pointer; transition: transform .15s var(--ease-bounce), border-color .15s; overflow-wrap: anywhere; }
.ep-wm-item small { font-weight: 500; color: var(--muted); font-size: .78rem; }
.ep-wm-item:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }
.ep-wm-item.is-sel { border-color: var(--violet); background: var(--violet-50); transform: scale(1.04); }
.ep-wm-item.is-paired { border-color: var(--pc); box-shadow: inset 0 0 0 2px var(--pc); background: #fff; }
.ep-wm-item.is-bump { animation: engPop .35s var(--ease-bounce); }
.ep-wm-item.is-right { border-color: var(--green); background: #ECFDF5; box-shadow: none; }
.ep-wm-item.is-wrong { border-color: var(--red); background: #FEF2F2; box-shadow: none; }
.ep-wm-item:disabled { cursor: default; color: var(--ink); }
.ep-card > .btn-lg, .ep-sb .btn-lg { width: 100%; }

/* speaking */
.ep-speak { margin-top: 10px; display: grid; gap: 10px; justify-items: center; text-align: center; }
.ep-privacy, .ep-nospeech { display: flex; gap: 12px; text-align: left; padding: 14px 16px; border-radius: 18px; background: #F0F9FF; border: 2px solid #BAE6FD; animation: engPop .4s var(--ease-bounce) both; width: 100%; }
.ep-nospeech { background: #FFFBEB; border-color: #FDE68A; }
.ep-privacy > span, .ep-nospeech > span { font-size: 1.6rem; }
.ep-privacy p, .ep-nospeech p { margin: 4px 0 8px; font-size: .93rem; }
.ep-mic-wrap { display: grid; justify-items: center; gap: 6px; }
.ep-mic { position: relative; width: 96px; height: 96px; border-radius: 50%; border: 0; cursor: pointer; background: var(--grad); color: #fff; font-size: 2.4rem; box-shadow: inset 0 -6px 0 rgba(0,0,0,.18), var(--shadow-lg); transition: transform .15s var(--ease-bounce); }
.ep-mic:hover { transform: scale(1.05); }
.ep-mic:focus-visible { outline: 4px solid var(--violet); outline-offset: 4px; }
.ep-mic:disabled { opacity: .45; cursor: default; transform: none; }
.ep-mic-ring { position: absolute; inset: -8px; border-radius: 50%; border: 4px solid rgba(236,72,153,.45); opacity: 0; }
.ep-mic.is-rec { background: linear-gradient(135deg, #DC2626, #DB2777); }
.ep-mic.is-rec .ep-mic-ring { animation: engRipple 1.2s ease-out infinite; }
.ep-mic.is-rec .ep-mic-ico { animation: engBob .8s ease-in-out infinite; display: inline-block; }
.ep-mic-label { margin: 0; font-weight: 700; }
.ep-tries { margin: 0; font-size: .85rem; color: var(--muted); }
.ep-timer { position: relative; width: 92px; height: 92px; display: grid; place-items: center; align-content: center; line-height: 1.1; }
.ep-timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ep-timer circle { fill: none; stroke: #E6E2FA; stroke-width: 4; }
.ep-timer .ep-timer-fill { stroke: var(--amber); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p)); transition: stroke-dashoffset .25s linear; }
.ep-timer.is-done .ep-timer-fill { stroke: var(--green); }
.ep-timer span { font: 800 1.3rem var(--font-head); }
.ep-timer small { font-size: .62rem; color: var(--muted); max-width: 70px; }
.ep-caption { min-height: 1.6em; max-width: 100%; font-size: 1.05rem; overflow-wrap: anywhere; }
.ep-cap-label { color: var(--muted); font-size: .85rem; font-weight: 600; }
.ep-cap-warn { color: var(--amber-d); font-weight: 600; }
.ep-recorded { font-weight: 700; color: var(--green-d); margin: 0; }
.ep-score { display: flex; gap: 14px; align-items: center; text-align: left; animation: engPop .45s var(--ease-bounce) both; }
.ep-score-ring { width: 78px; height: 78px; border-radius: 50%; flex-shrink: 0; display: grid; place-items: center; align-content: center; line-height: 1; background: radial-gradient(closest-side, #fff 76%, transparent 78%), conic-gradient(var(--green) calc(var(--p) * 1%), #E6E2FA 0); }
.ep-score-ring b { font: 800 1.5rem var(--font-head); }
.ep-score-ring small { font-size: .7rem; color: var(--muted); }
.ep-tip { margin: 4px 0 0; color: var(--ink-2); }
.ep-words { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 4px 0 0; }
.ep-w { display: inline-block; padding: 3px 9px; border-radius: 10px; font-weight: 600; animation: engPop .35s var(--ease-bounce) both; animation-delay: calc(var(--i, 0) * .04s); }
.ep-w.is-ok { background: #D1FAE5; color: var(--green-d); }
.ep-w.is-missed { background: #FEE2E2; color: var(--red-d); text-decoration: underline wavy; }
.ep-w.is-extra { background: #EEEDF3; color: #5F5A75; }
.ep-legend { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin: 0; }
.ep-legend .ep-w { animation: none; font-size: .78rem; }
.ep-kw { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; text-align: left; }
.ep-kw li.is-found { color: var(--green-d); font-weight: 600; }
.ep-speak-actions { display: flex; gap: 10px; justify-content: center; }

/* feedback footer */
.ep-foot { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; transform: translateY(110%); visibility: hidden; transition: transform .3s var(--ease-bounce), visibility 0s .3s; }
.ep-foot.is-shown { transform: none; visibility: visible; transition: transform .3s var(--ease-bounce); }
.ep-fb { max-width: 760px; margin: 0 auto; padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); display: grid; gap: 6px; }
.ep-foot.is-ok { background: #D1FAE5; box-shadow: 0 -8px 24px rgba(16,185,129,.25); }
.ep-foot.is-bad { background: #FEE2E2; box-shadow: 0 -8px 24px rgba(239,68,68,.22); }
.ep-foot.is-skip { background: #fff; box-shadow: 0 -8px 24px rgba(30,27,58,.12); }
.ep-fb-head { display: flex; align-items: center; gap: 10px; font-size: 1.15rem; }
.ep-fb-head b { flex: 1; min-width: 0; }
.ep-foot.is-ok .ep-fb-head b { color: var(--green-d); }
.ep-foot.is-bad .ep-fb-head b { color: var(--red-d); }
.ep-fb-icon { font-size: 1.8rem; animation: engPop .5s var(--ease-bounce) both; }
.ep-xp-pop { font-weight: 800; color: var(--amber-d); background: #fff; border-radius: 999px; padding: 2px 12px; animation: engPop .5s var(--ease-bounce) .1s both; white-space: nowrap; }
.ep-expected, .ep-expl { margin: 0; overflow-wrap: anywhere; }
.ep-fb-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.ep-fb-actions .btn { flex: 1 1 160px; }
.ep-continue { color: #fff; background: var(--green-d); box-shadow: inset 0 -4px 0 rgba(0,0,0,.18); }
.ep-foot.is-bad .ep-continue { background: var(--red-d); }
.ep-foot.is-skip .ep-continue { background: var(--violet-d); }
.ep-continue:hover, .ep-continue:focus { color: #fff; filter: brightness(1.08); }

/* screens */
.ep-screen { padding: 18px 4px; animation: engSlide .45s cubic-bezier(.2,.8,.2,1) both; min-width: 0; }
.ep-screen.is-center { text-align: center; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 10px; }
.ep-screen h1, .ep-screen h2 { margin: 0; outline: none; }
.ep-screen .lead { max-width: 560px; margin: 0; }
.ep-hero-udi { padding-top: 48px; }
.ep-hero-udi .udi { --udi-size: 110px; }
.ep-facts { list-style: none; margin: 4px 0 10px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ep-facts li { background: #fff; box-shadow: var(--shadow); padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: .92rem; }
.ep-dots { display: flex; gap: 8px; }
.ep-dots i { width: 12px; height: 12px; border-radius: 50%; background: var(--violet); animation: engBob .9s ease-in-out infinite; }
.ep-dots i:nth-child(2) { animation-delay: .15s; } .ep-dots i:nth-child(3) { animation-delay: .3s; }
.ep-unit-emoji { font-size: 4.5rem; animation: engPop .6s var(--ease-bounce) both; }
.ep-career { background: #ECFEFF; color: var(--teal-d); border-radius: 12px; padding: 6px 12px; font-weight: 600; margin: 0; }
.ep-level-pop span { display: grid; place-items: center; width: 130px; height: 130px; border-radius: 40px; font-size: 4.4rem; background: linear-gradient(140deg, #D1FAE5, #A7F3D0 50%, #C4B5FD); box-shadow: var(--shadow-lg); animation: engLevel 1s var(--ease-bounce) both; }
.ep-level-name { font-size: clamp(1.8rem, 6vw, 2.6rem); }
.ep-result-card { width: 100%; max-width: 520px; text-align: left; }
.ep-xp-earned { font-weight: 700; color: var(--amber-d); margin: 0; }
.ep-actions { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-top: 8px; }
.ep-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 10px; width: 100%; max-width: 620px; }
.ep-stat { display: grid; gap: 2px; padding: 14px 10px; border-radius: 20px; background: #fff; box-shadow: var(--shadow); animation: engPop .5s var(--ease-bounce) both; animation-delay: calc(.2s + var(--i) * .12s); }
.ep-stat { min-width: 0; }
.ep-stat b { font: 800 1.7rem var(--font-head); color: var(--violet-d); line-height: 1.1; }
.ep-stat span { font-weight: 600; font-size: .9rem; }
.ep-stat small { color: var(--muted); font-size: .78rem; }
.ep-stat.is-flame b { color: #C2410C; }
.ep-goal { width: 100%; max-width: 520px; display: grid; gap: 4px; font-weight: 600; }
.ep-goal.is-done { color: var(--amber-d); }
.ep-levelup { display: flex; gap: 12px; align-items: center; text-align: left; padding: 12px 18px; border-radius: 20px; color: #fff; background: var(--grad); box-shadow: var(--shadow-lg); animation: engLevel .9s var(--ease-bounce) both; }
.ep-levelup b { font-size: 1.2rem; } .ep-levelup p { margin: 0; }
.ep-levelup-emoji { font-size: 2.6rem; }
.ep-new-badges { width: 100%; max-width: 620px; }
.ep-new-badges h3 { margin: 6px 0 8px; }
.ep-review { width: 100%; max-width: 620px; text-align: left; margin-top: 10px; background: #fff; border-radius: 18px; padding: 10px 14px; box-shadow: var(--shadow); }
.ep-review summary { cursor: pointer; font-weight: 700; }
.ep-review ol { padding-left: 20px; margin: 8px 0 0; display: grid; gap: 6px; }
.ep-review li small { display: block; color: var(--green-d); }
.ep-sprint-bolt { font-size: 4.5rem; animation: engZap 1.6s ease-in-out infinite; }
.ep-count-big { display: grid; place-items: center; min-height: 50vh; }
.ep-count-big span { font: 800 8rem/1 var(--font-head); color: #DB2777; display: inline-block; animation: engCount .7s ease-out both; }
.ep-sprint { display: grid; gap: 12px; }
.ep-sp-head { display: flex; align-items: center; gap: 14px; }
.ep-sp-timer { position: relative; width: 86px; height: 86px; display: grid; place-items: center; flex-shrink: 0; }
.ep-sp-timer svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.ep-sp-timer circle { fill: none; stroke: #E6E2FA; stroke-width: 4.5; }
.ep-sp-timer .ep-timer-fill { stroke: var(--amber); stroke-linecap: round; stroke-dasharray: 100; stroke-dashoffset: calc(100 - var(--p)); transition: stroke-dashoffset .1s linear; }
.ep-sp-timer b { font: 800 2rem var(--font-head); }
.ep-sp-timer.is-low .ep-timer-fill { stroke: var(--red); }
.ep-sp-timer.is-low b { color: var(--red-d); animation: engPulse .6s ease-in-out infinite; }
.ep-sp-score { display: grid; line-height: 1.1; }
.ep-sp-score b { font: 800 1.8rem var(--font-head); color: var(--violet-d); }
.ep-sp-score span { color: var(--muted); font-size: .85rem; }
.ep-combo { margin-left: auto; font: 800 1.5rem var(--font-head); color: #C2410C; min-width: 70px; text-align: right; }
.ep-combo.is-on { text-shadow: 0 2px 10px rgba(234,88,12,.35); }
.ep-combo.is-bump { animation: engCombo .5s var(--ease-bounce); }
.ep-sp-card { animation: engSlide .2s ease-out both; }
.ep-sp-card .ep-opt { animation: none; }
.ep-sp-final b { display: block; font: 800 5rem/1 var(--font-head); color: #DB2777; }
.ep-sp-final span { font-weight: 700; color: var(--muted); }
.ep-newbest { background: #FEF3C7; color: var(--amber-d); font-weight: 800; padding: 4px 14px; border-radius: 999px; animation: engPop .6s var(--ease-bounce) both; }
@media (max-width: 420px) { .ep-mic { width: 84px; height: 84px; } .ep-card { padding: 16px 14px; } .ep-opt { font-size: 1rem; } }

@keyframes engRise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes engSlide { from { opacity: 0; transform: translateX(26px); } to { opacity: 1; transform: none; } }
@keyframes engPop { 0% { transform: scale(.6); opacity: 0; } 70% { transform: scale(1.08); opacity: 1; } 100% { transform: scale(1); } }
@keyframes engFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes engBob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@keyframes engBobX { 0%, 100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, -4px); } }
@keyframes engFlame { 0%, 100% { transform: scale(1) rotate(-3deg); } 50% { transform: scale(1.12) rotate(3deg); } }
@keyframes engGrow { from { width: 0; } }
@keyframes engRing { from { stroke-dashoffset: 100; } }
@keyframes engPulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes engShake { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes engZap { 0%, 100% { transform: rotate(-8deg) scale(1); } 50% { transform: rotate(8deg) scale(1.1); } }
@keyframes engMedal { 0% { transform: scale(0) rotate(-180deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes engFly { 0% { opacity: 1; transform: translateY(0); } 100% { opacity: 0; transform: translateY(-34px); } }
@keyframes engRipple { 0% { opacity: .9; transform: scale(.9); } 100% { opacity: 0; transform: scale(1.45); } }
@keyframes engDraw { to { stroke-dashoffset: 0; } }
@keyframes engLevel { 0% { transform: scale(0) rotate(-20deg); } 60% { transform: scale(1.15) rotate(6deg); } 100% { transform: scale(1) rotate(0); } }
@keyframes engCount { 0% { transform: scale(2); opacity: 0; } 40% { transform: scale(1); opacity: 1; } 100% { transform: scale(.9); opacity: .6; } }
@keyframes engCombo { 0% { transform: scale(1); } 40% { transform: scale(1.5) rotate(-6deg); } 100% { transform: scale(1); } }
@media (prefers-reduced-motion: reduce) {
  .eng-node, .eng-st, .eng-feats li, .eng-badge, .eng-skill, .ep-opt, .ep-card, .ep-screen, .ep-w, .ep-stat, .ep-hints li, .ep-tok { animation: none !important; }
  .eng-skill-fill, .eng-ring-fill, .eng-level-badge, .eng-cta::after, .eng-cta-emoji, .eng-bolt, .eng-promo-levels span, .eng-node-start, .eng-node.is-current .eng-ring.is-node, .eng-flame { animation: none !important; }
  .ep-foot { transition: none; }
  .ep-wm-lines path.is-new { stroke-dasharray: none; stroke-dashoffset: 0; animation: none; }
}
.eng-ring[style*="--p:0\""] .eng-ring-fill, .eng-ring[style$="--p:0"] .eng-ring-fill { opacity: 0; }
@media (min-width: 960px) { .eng-node { --amp: 170px; } .eng-path { gap: 4px; } }
