/* =============================================================================
   ZZ DIRIKU™ v3.0 — Components
   ============================================================================= */

/* --- App bar -----------------------------------------------------------------*/
.appbar {
  position: sticky; top: 0; z-index: 30;
  background: var(--surface);
  color: var(--navy-900);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.appbar__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: var(--space-3); min-height: var(--header-h);
}
.appbar .status { color: var(--text-soft); }
.appbar__right { display: flex; align-items: center; gap: var(--space-3); flex: none; }
.lang-switch { display: inline-flex; align-items: center; gap: 4px; border: 1px solid var(--border); border-radius: var(--radius-pill); padding: 2px 6px 2px 9px; background: var(--surface); }
.lang-switch__icon { font-size: 0.85rem; line-height: 1; }
.lang-switch__select { border: 0; background: transparent; font-size: var(--fs-sm); font-weight: 600; color: var(--navy-900); padding: 2px 2px; cursor: pointer; max-width: 7.5rem; }
.lang-switch__select:focus-visible { outline: 2px solid var(--ring); border-radius: 4px; }
@media (max-width: 600px) { .appbar .status { display: none; } .lang-switch__select { max-width: 5.5rem; } }
.brand { display: inline-flex; align-items: center; gap: var(--space-2); color: var(--navy-900); }
.brand:hover { text-decoration: none; }
.brand__logo { height: 42px; width: auto; display: block; flex: none; }
.brand__word { font-family: var(--font-serif); font-weight: 700; font-size: var(--fs-lg); line-height: 1.05; color: var(--navy-900); letter-spacing: 0.01em; }
.brand__word b { color: var(--teal-600); font-weight: 700; }
.brand__word small { display: none; font-family: var(--font-sans); font-size: 0.6rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-muted); margin-top: 2px; }
@media (min-width: 600px) { .brand__word small { display: block; } }

/* Prototype nav (lets us reach every stub route) */
.nav {
  display: flex; gap: var(--space-2); overflow-x: auto; padding-block: var(--space-2);
  scrollbar-width: none; -ms-overflow-style: none;
  /* petunjuk scroll — pudar tepi supaya user tahu ada lagi tab di kanan (Dina G8) */
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
  mask-image: linear-gradient(90deg, transparent 0, #000 14px, #000 calc(100% - 14px), transparent 100%);
}
.nav::-webkit-scrollbar { display: none; }
.nav__link {
  flex: none; display: inline-flex; align-items: center; min-height: 44px;
  color: var(--text-soft); font-size: var(--fs-sm); font-weight: 600;
  padding: var(--space-2) var(--space-3); border-radius: var(--radius-pill);
  border: 1px solid transparent; white-space: nowrap; transition: var(--transition);
}
.nav__link:hover { color: var(--navy-900); background: var(--surface-alt); text-decoration: none; }
.nav__link[aria-current="page"] {
  /* Ceria: active = cyan/biru ARAH (bukan gold) — logik nav tak disentuh */
  color: var(--navy-900); background: var(--bright-sky, #DFF5FF); border-color: var(--arah-blue);
  box-shadow: 0 2px 10px rgba(31, 168, 224, .25);
}
.appbar__nav-wrap { border-top: 1px solid var(--border); }

/* Hamburger toggle — desktop shows the inline nav, so it's hidden there. */
.nav-toggle {
  display: none; flex-direction: column; justify-content: center; gap: 4px;
  width: 42px; height: 38px; padding: 9px; cursor: pointer; flex: none;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-sm);
}
.nav-toggle:hover { background: var(--surface-alt); }
.nav-toggle__bar { display: block; height: 2px; width: 100%; background: var(--navy-800); border-radius: 2px; transition: var(--transition); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* Below this width the row would overflow → collapse the nav behind the hamburger. */
@media (max-width: 820px) {
  .nav-toggle { display: inline-flex; }
  .appbar__nav-wrap { display: none; }
  .appbar.is-nav-open .appbar__nav-wrap { display: block; }
  .appbar.is-nav-open .nav { flex-direction: column; overflow: visible; gap: 2px; padding-block: var(--space-2); }
  .appbar.is-nav-open .nav__link { display: block; border-radius: var(--radius-sm); }
}

/* --- Page header (internal dev block: Page name / Description) ---------------*/
.page-head {
  background: var(--surface-alt);
  border: 1px solid var(--cream-300);
  border-radius: var(--radius);
  padding: var(--space-3) var(--space-4);
  margin-block: var(--space-5) var(--space-5);
  display: grid; gap: var(--space-1);
}
.page-head__tag {
  align-self: start; font-family: var(--font-mono); font-size: 0.625rem; font-weight: 700;
  letter-spacing: 0.1em; color: var(--teal-600); background: var(--surface);
  border: 1px dashed var(--teal-500); border-radius: var(--radius-sm);
  padding: 2px 7px; text-transform: uppercase;
}
.page-head__row { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: baseline; }
.page-head__label { font-family: var(--font-mono); font-size: var(--fs-xs); color: var(--text-muted); min-width: 84px; }
.page-head__name { font-weight: 700; color: var(--navy-900); }
.page-head__desc { color: var(--text-soft); font-size: var(--fs-sm); }

/* --- Buttons -----------------------------------------------------------------*/
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  font-weight: 700; font-size: var(--fs-base); line-height: 1; cursor: pointer;
  padding: 0.85rem 1.4rem; border-radius: var(--radius-pill); border: 1px solid transparent;
  transition: var(--transition); text-decoration: none; min-height: 48px;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--gold-500); color: var(--navy-900); box-shadow: var(--shadow-gold); }
.btn--primary:hover { background: var(--gold-400); box-shadow: 0 8px 24px rgba(214, 158, 35, 0.38); }
.btn--navy { background: var(--navy-800); color: var(--cream-50); }
.btn--navy:hover { background: var(--navy-700); }
.btn--ghost { background: transparent; color: var(--navy-800); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--surface-alt); }
.btn--block { width: 100%; }
.btn[disabled], .btn[aria-disabled="true"] { opacity: 0.55; cursor: not-allowed; transform: none; }

/* --- Form controls -----------------------------------------------------------*/
label { display: block; font-weight: 600; color: var(--text-soft); }
.input {
  display: block; width: 100%; margin-top: var(--space-2);
  padding: 0.7rem 0.85rem; font-size: var(--fs-base);
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  transition: var(--transition);
}
.input:focus { outline: none; border-color: var(--teal-500); box-shadow: 0 0 0 3px var(--ring); }
.input:disabled { background: var(--grey-50); color: var(--grey-400); cursor: not-allowed; }
input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--teal-500); margin-top: 2px; flex: none; }
code { font-family: var(--font-mono); font-size: 0.85em; background: var(--surface-alt); padding: 1px 5px; border-radius: 5px; }

/* --- Cards -------------------------------------------------------------------*/
.card {
  background: var(--surface-raised); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: var(--space-5); box-shadow: var(--shadow-sm);
  transition: transform .18s var(--ease-out), box-shadow .18s;
}
/* Hanya card boleh-klik yang mengangkat — card statik kekal tenang (Dina G2). */
a > .card:hover, .card--interactive:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.card--pad-lg { padding: var(--space-6); }
.card__title { font-size: var(--fs-lg); font-weight: 700; }
.card__icon {
  width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center;
  background: var(--surface-alt); color: var(--teal-600); font-size: var(--fs-xl);
  margin-bottom: var(--space-3); box-shadow: var(--shadow-xs);
}

/* --- Chips / badges ----------------------------------------------------------*/
.chip {
  display: inline-flex; align-items: center; gap: var(--space-1); font-size: var(--fs-xs); font-weight: 700;
  padding: 4px 10px; border-radius: var(--radius-pill); background: var(--surface-alt); color: var(--text-soft);
  border: 1px solid var(--border); box-shadow: var(--shadow-xs);
}
.chip--teal { background: var(--success-100); color: var(--teal-600); border-color: transparent; }
.chip--gold { background: var(--warn-100); color: var(--gold-ink); border-color: transparent; }
.chip--navy { background: var(--navy-800); color: var(--cream-50); border-color: transparent; }
.chip--stub { background: transparent; color: var(--text-muted); border: 1px dashed var(--border-strong); }

/* --- Hero --------------------------------------------------------------------*/
.hero {
  background: linear-gradient(165deg, var(--navy-900) 0%, var(--navy-800) 55%, var(--navy-700) 100%);
  color: var(--cream-50); border-radius: var(--radius-lg); padding: var(--space-7) var(--space-6);
  position: relative; overflow: hidden; box-shadow: var(--shadow-lg);
}
/* Dua cincin sepusat = kompas jadi motif latar (bukan bulatan rawak) — Dina L1 */
.hero::after {
  content: ""; position: absolute; right: -70px; top: -70px; width: 260px; height: 260px;
  border-radius: 50%; border: 2px solid var(--teal-500); opacity: 0.30; pointer-events: none;
}
.hero::before {
  content: ""; position: absolute; right: -20px; top: -20px; width: 160px; height: 160px;
  border-radius: 50%; border: 1px solid var(--gold-500); opacity: 0.24; pointer-events: none;
}
.hero h1 {
  color: var(--cream-50); font-family: var(--font-serif); letter-spacing: var(--tracking-tight);
  font-size: clamp(2.25rem, 6vw, 3.25rem);
}
.hero .lead { color: var(--grey-200); }
.hero__emblem { display: inline-block; width: 60px; height: 60px; margin-bottom: var(--space-3); }
/* Ayat literal "benda ni apa" — lebih terang dari lead supaya mak ayah/cold reader faham fungsi dulu */
.hero__subhead { color: var(--cream-100); font-size: var(--fs-lg); font-weight: 500; max-width: 48ch; margin: 0 0 var(--space-2); line-height: var(--lh-snug); }
.hero__meta { display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-3); align-items: center; margin: var(--space-4) 0 0; }
.hero__free { color: var(--grey-200); font-size: var(--fs-sm); font-weight: 600; }
.hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-5); }

/* --- Score bar (visual stub only — no scoring) -------------------------------*/
.bar { display: grid; grid-template-columns: 28px 1fr 42px; gap: var(--space-3); align-items: center; }
.bar__label { font-weight: 700; color: var(--navy-800); }
.bar__track { height: 10px; background: var(--grey-100); border-radius: var(--radius-pill); overflow: hidden; }
/* display:block WAJIB — .bar__fill ialah <span>; tanpa ni lebar/tinggi diabaikan dan
   bar nampak kosong (pepijat lama laporan + snapshot, dibaiki Sprint 2). */
.bar__fill { display: block; height: 100%; background: linear-gradient(90deg, var(--teal-500), var(--teal-400)); border-radius: inherit; }
.bar__val { font-size: var(--fs-sm); color: var(--text-muted); text-align: right; font-variant-numeric: tabular-nums; }

/* --- Scale preview (0–4, display only) --------------------------------------*/
.scale { display: flex; gap: var(--space-2); flex-wrap: wrap; }
.scale__btn {
  flex: 1 1 auto; min-width: 56px; text-align: center; padding: var(--space-3) var(--space-2);
  border: 1px solid var(--border-strong); border-radius: var(--radius); background: var(--surface);
  font-size: var(--fs-xs); color: var(--text-soft); cursor: default;
}
.scale__btn b { display: block; font-size: var(--fs-lg); color: var(--navy-800); }

/* --- Locked (paid) overlay ---------------------------------------------------*/
.locked { position: relative; border: 1px dashed var(--border-strong); border-radius: var(--radius); padding: var(--space-5); background: var(--grey-50); }
.locked__badge { position: absolute; top: var(--space-3); right: var(--space-3); }
.locked__blur { filter: blur(3px); opacity: 0.6; user-select: none; pointer-events: none; }

/* --- Notice / disclaimer -----------------------------------------------------*/
.notice {
  border-left: 4px solid var(--gold-500); background: var(--warn-100);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius-sm); color: var(--grey-700);
  font-size: var(--fs-sm);
}
.notice--teal { border-left-color: var(--teal-500); background: var(--success-100); }
.notice--amber { border-left-color: var(--gold-500); background: var(--warn-100); }
.form-note--warn { color: var(--gold-ink); font-weight: 700; }

/* --- Progressive checkpoint reveal (Increment 4) ---------------------------*/
.reveal {
  background: linear-gradient(135deg, var(--teal-600, #1f6f66), var(--teal-500, #2c8a7e));
  color: #fff; border-radius: var(--radius-md, 12px); padding: var(--space-6, 24px) var(--space-5, 20px);
  text-align: center; box-shadow: 0 10px 30px rgba(31, 111, 102, .25);
}
.reveal__tag { font-size: var(--fs-xs, 11px); text-transform: uppercase; letter-spacing: .1em; color: var(--gold-300, #e7c778); font-weight: 700; }
.reveal__head { color: #fff; margin: var(--space-2, 8px) 0; font-size: var(--fs-xl, 22px); line-height: 1.25; }
.reveal__bar { background: rgba(255, 255, 255, .22); margin: var(--space-4, 16px) auto; max-width: 320px; }
.reveal__bar .bar__fill { background: var(--gold-400, #e7c778); }
.reveal__blurb { color: #eafaf6; font-size: var(--fs-sm, 14px); margin: var(--space-3, 12px) auto 0; max-width: 460px; }
.reveal__next { color: #cdeee8; font-size: var(--fs-xs, 12px); margin-top: var(--space-3, 12px); }
.reveal-unlocked { margin-top: var(--space-4, 16px); }
.reveal-sec { background: var(--surface, #fff); border: 1px solid var(--border, #e4ddcd); border-left: 4px solid var(--teal-500, #2c8a7e); border-radius: var(--radius-sm, 8px); padding: var(--space-4, 16px); }
.reveal-sec + .reveal-sec { margin-top: var(--space-3, 12px); }
.reveal-sec__title { color: var(--navy-800, #243b6b); font-size: var(--fs-md, 16px); margin: 0 0 var(--space-2, 8px); }
.reveal-sec__lead { color: var(--text-muted, #6b7280); font-size: var(--fs-sm, 14px); margin: 0 0 var(--space-3, 12px); }

/* --- Footer + ethical disclaimer (every page) -------------------------------*/
.footer { background: var(--navy-900); color: var(--grey-300); margin-top: var(--space-7); }
.footer__inner { padding-block: var(--space-6); display: grid; gap: var(--space-4); }
.disclaimer {
  border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius);
  padding: var(--space-4); background: rgba(255, 255, 255, 0.03);
}
.disclaimer h4 { color: var(--gold-400); font-size: var(--fs-sm); text-transform: uppercase; letter-spacing: 0.1em; }
.disclaimer p { color: var(--grey-300); font-size: var(--fs-sm); margin-top: var(--space-2); }
.disclaimer strong { color: var(--cream-50); }
.footer__meta { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: space-between; align-items: center; font-size: var(--fs-xs); color: var(--grey-400); }

/* --- Server status dot -------------------------------------------------------*/
.status { display: inline-flex; align-items: center; gap: var(--space-2); font-size: var(--fs-xs); color: var(--grey-400); }
.status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--grey-400); }
.status__dot--ok { background: #41C786; box-shadow: 0 0 0 3px rgba(65, 199, 134, 0.18); }
.status__dot--down { background: var(--danger-500); }

/* --- Result snapshot (Phase 6) ----------------------------------------------*/
.snap-arche {
  border: 1px solid var(--gold-500);
  background: linear-gradient(180deg, var(--warn-100) 0%, var(--surface) 60%);
}
.snap-arche h2 { color: var(--navy-900); }
.sbar { display: grid; gap: 6px; }
.sbar + .sbar { margin-top: var(--space-3); }
.sbar__top { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); }
.sbar__label { font-weight: 600; color: var(--navy-800); }
.sbar__val { color: var(--text-muted); font-variant-numeric: tabular-nums; font-size: var(--fs-sm); flex: none; }

/* --- Full report (Phase 7A) -------------------------------------------------*/
.rcard { background: var(--surface-alt); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); }
.rcard + .rcard { margin-top: var(--space-3); }
.rcard h4 { font-size: var(--fs-sm); color: var(--navy-800); margin-bottom: var(--space-2); }
.rcard p { margin: 0; }
.rcard__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); margin-bottom: .3rem; }
.rcard--interp { border-left: 3px solid var(--teal-500); }
.rlist { margin: 0; padding-left: 1.1rem; color: var(--text-soft); }
.rlist li + li { margin-top: .25rem; }
.rchips { display: flex; gap: .4rem; flex-wrap: wrap; }
.kv { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.kv td { padding: .25rem .6rem .25rem 0; vertical-align: top; }
.kv td:first-child { color: var(--text-muted); white-space: nowrap; }
.rsec__head { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); }
.report-section { scroll-margin-top: 130px; }
.report-toc { display: grid; gap: .3rem; }
.toc__item { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); padding: .5rem .7rem; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--navy-800); font-weight: 600; font-size: var(--fs-sm); }
.toc__item:hover { background: var(--surface-alt); text-decoration: none; }

/* --- Action plan card (Phase 7B, Section 10) --------------------------------*/
.raction { border-left: 3px solid var(--gold-500); }
.raction__why { color: var(--text-soft); margin-bottom: var(--space-2); }
.raction__row { display: grid; grid-template-columns: 8.5rem 1fr; gap: .4rem var(--space-3); padding: .35rem 0; border-top: 1px dashed var(--border); }
.raction__row p { color: var(--text-soft); font-size: var(--fs-sm); }
.raction__k { font-size: var(--fs-xs); font-weight: 700; color: var(--navy-800); text-transform: uppercase; letter-spacing: .03em; }
.raction .chip--stub { margin-top: var(--space-2); }
@media (max-width: 520px) { .raction__row { grid-template-columns: 1fr; gap: .1rem; } }

/* --- Plan cards / unlock panel (Phase 9A) -----------------------------------*/
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: var(--space-3); }
.plan-card { display: flex; flex-direction: column; gap: var(--space-2); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-3) var(--space-4); background: var(--surface); }
.plan-card--free { background: var(--surface-alt); opacity: .85; }
.plan-card__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2); }
.plan-card__name { font-weight: 700; color: var(--navy-900); }
.plan-card__price { font-weight: 800; color: var(--teal-600); white-space: nowrap; }
.plan-card__features { margin: 0; padding-left: 1.1rem; font-size: var(--fs-sm); color: var(--text-soft); flex: 1 1 auto; }
.plan-card__features li { margin: .15rem 0; }
.plan-card__cta { margin-top: auto; }
.plan-card__cta .btn { width: 100%; }

/* --- Student Success Map (Phase 7C) -----------------------------------------*/
.success-map { background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 60%, var(--teal-700, #1f6f66) 130%); color: #fff; border: 0; }
.success-map h3 { color: #fff; }
.success-map__head { display: flex; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); }
.success-map__badge { font-size: 1.4rem; }
.success-map .text-muted, .success-map .text-sm { color: rgba(255, 255, 255, .82); }
.success-map__formula { background: rgba(231, 199, 120, .14); border: 1px solid rgba(231, 199, 120, .4); border-radius: var(--radius-sm); padding: var(--space-3) var(--space-4); margin-top: var(--space-3); }
.success-map__formula .success-map__v { font-size: var(--fs-base); }
.success-map__grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-top: var(--space-3); }
@media (max-width: 560px) { .success-map__grid { grid-template-columns: 1fr; } }
.success-map__row { display: flex; gap: var(--space-2); align-items: flex-start; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius-sm); padding: var(--space-3); }
.success-map__icon { font-size: 1.1rem; line-height: 1.2; flex: none; }
.success-map__k { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--gold-soft, #E7C778); font-weight: 700; margin-bottom: 2px; }
.success-map__v { font-size: var(--fs-sm); color: #fff; }
.success-map--locked { background: var(--surface-alt); color: var(--text); border: 1px dashed var(--border-strong, var(--border)); }
.success-map--locked h3 { color: var(--navy-900); }
.success-map--locked .text-sm, .success-map--locked .text-muted { color: var(--text-soft); }
.success-map--locked .success-map__badge { filter: grayscale(.3); }

/* --- Assessment engine (Phase 4) --------------------------------------------*/
.mode-card {
  display: flex; flex-direction: column; gap: 2px; text-align: left; cursor: pointer;
  padding: var(--space-4); border: 2px solid var(--border); border-radius: var(--radius);
  background: var(--surface); transition: var(--transition);
}
.mode-card:hover { border-color: var(--border-strong); }
.mode-card.is-selected { border-color: var(--teal-500); background: var(--success-100); box-shadow: 0 0 0 3px var(--ring-soft); }
.mode-card__label { font-weight: 700; color: var(--navy-900); font-size: var(--fs-lg); }
.mode-card__items { font-size: var(--fs-sm); color: var(--teal-600); font-weight: 700; }
.mode-card__note { font-size: var(--fs-xs); color: var(--text-muted); }

.run-head {
  position: sticky; top: var(--header-h); z-index: 10; background: var(--bg);
  padding: var(--space-3) 0; margin-bottom: var(--space-4); border-bottom: 1px solid var(--border);
}
.run-head__row { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); margin-bottom: var(--space-2); }

.q-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: var(--space-4); transition: box-shadow .2s, border-color .2s; }
.q-item + .q-item { margin-top: var(--space-3); }
.q-item--todo { border-color: var(--gold-500, #c8911c); box-shadow: 0 0 0 2px var(--warn-100, #fdf3da); }
/* one-at-a-time solo item — focused, roomy, centred */
.q-solo { padding: var(--space-6, 28px) var(--space-5, 20px); animation: qSoloIn .18s ease-out; }
/* two classes = beats the single-class .q-item__text rule below (which sets margin:…0…) so margin-inline:auto actually centres the block */
.q-item__text.q-solo__text { font-size: var(--fs-xl, 22px); line-height: var(--lh-snug, 1.3); text-align: center; margin: 0 auto var(--space-3, 12px); max-width: 34ch; }
.q-solo__eg { text-align: center; color: var(--text-muted, #6b7280); font-size: var(--fs-sm, 14px); margin: 0 auto var(--space-4, 16px); max-width: 36ch; font-style: italic; }
@keyframes qSoloIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.q-item__n { font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.04em; color: var(--text-muted); text-transform: uppercase; }
.q-item__text { color: var(--navy-900); font-weight: 600; font-size: var(--fs-lg); margin: var(--space-2) 0 var(--space-4); line-height: var(--lh-snug); }

/* auto columns = one equal 1fr per option, so 3 (Junior) or 5 (senior) buttons both fill the row */
.q-scale { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: var(--space-2); }
.q-opt {
  display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; text-align: center;
  padding: var(--space-3) var(--space-1); min-height: 64px; border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--text-soft); transition: var(--transition);
}
.q-opt b { font-size: var(--fs-lg); color: var(--navy-800); }
.q-opt span { font-size: 0.62rem; line-height: 1.15; color: var(--text-muted); }
.q-opt:hover { border-color: var(--teal-500); background: var(--surface-alt); }
.q-opt.is-on { border-color: var(--teal-600); background: var(--teal-600); box-shadow: 0 0 0 3px var(--ring-soft); }
.q-opt.is-on b, .q-opt.is-on span { color: var(--cream-50); }

.run-nav { display: flex; justify-content: space-between; gap: var(--space-3); margin-top: var(--space-5); }
.run-nav .btn { min-width: 44%; }

.payload-preview {
  margin-top: var(--space-3); padding: var(--space-3); background: var(--navy-900); color: #cfe3e1;
  border-radius: var(--radius-sm); overflow: auto; max-height: 360px; font-family: var(--font-mono);
  font-size: var(--fs-xs); line-height: 1.5; white-space: pre;
}

/* endpoint anchors under the scale — hidden on desktop (each button is labelled),
   shown on mobile where the per-button labels are dropped for space. */
.q-anchor { display: none; }
@media (max-width: 460px) {
  .q-opt span { display: none; }       /* numbers only on small screens… */
  .q-opt { min-height: 52px; }
  .q-anchor { display: flex; justify-content: space-between; margin-top: 6px; padding: 0 2px; font-size: 0.7rem; color: var(--text-muted); }
  .q-anchor span:last-child { text-align: right; }
}

/* --- Simple admin table stub -------------------------------------------------*/
.table { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.table th, .table td { text-align: left; padding: var(--space-3); border-bottom: 1px solid var(--border); }
.table th { color: var(--text-muted); font-weight: 700; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: 0.06em; }
.table tr:last-child td { border-bottom: none; }
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); }

/* --- Layout utilities (kill inline-style drift; same visual result) ----------*/
.row-between { display: flex; justify-content: space-between; align-items: center; gap: var(--space-2); flex-wrap: wrap; }
.row-wrap    { display: flex; gap: var(--space-2); flex-wrap: wrap; align-items: center; }
.row-center  { display: flex; gap: var(--space-2); flex-wrap: wrap; justify-content: center; }
.row-start   { display: flex; gap: var(--space-2); align-items: flex-start; }
.mt-xs { margin-top: var(--space-1); }
.mt-sm { margin-top: var(--space-2); }
.my-sm { margin-block: var(--space-2); }
.m-0   { margin: 0; }
.summary-toggle { cursor: pointer; font-weight: 700; color: var(--navy-800); }
.is-hidden { display: none; }

/* number/emoji display + compact select (raise utility coverage) */
.stat-num  { font-size: var(--fs-2xl); font-weight: 800; color: var(--navy-900); line-height: 1; }
.emoji-xl  { font-size: var(--fs-3xl); line-height: 1; }
.select-sm { max-width: 18rem; padding: var(--space-2); }


/* =============================================================================
   --- Simulator --- Simulator Hidup DIRIKU (FUN, interaktif, budak sekolah)
   Bebas main (tiada kumpul data). A=gold, B=sky sentiasa. A11y: fill terang =
   teks GELAP; makna tak ikut warna sahaja (icon+label); sasaran sentuh >=44px.
   ============================================================================= */
.sim { color: var(--cream-50); }
.sim-section { scroll-margin-top: 80px; }
.sim-section + .sim-section { margin-top: var(--space-7); }
.sim-h { color: var(--cream-50); font-size: var(--fs-2xl); line-height: var(--lh-tight); margin: 0 0 var(--space-2); }
.sim-sub { color: var(--grey-200); font-size: var(--fs-base); margin: 0; }
.sim-eyebrow { color: var(--gold-400); text-transform: uppercase; letter-spacing: .12em; font-size: var(--fs-xs); font-weight: 800; }
.sim [hidden] { display: none !important; }

/* Backdrop wrap — deep navy + soft stars (page bebas main) */
.sim-wrap {
  background: var(--sim-bg); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-5);
  position: relative; overflow: hidden;
}
.sim-wrap::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(1.5px 1.5px at 12% 18%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 76% 12%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 44% 34%, #cfe6ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 88% 46%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 24% 62%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 64% 78%, #cfe6ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 8% 88%, #fff 50%, transparent 51%);
}
.sim-wrap > * { position: relative; }

/* Hero + stepper */
.sim-hero { text-align: center; display: grid; gap: var(--space-4); justify-items: center; }
.sim-hero .sim-h { font-size: var(--fs-3xl); }
.sim-hero__intro { color: var(--grey-200); max-width: 44rem; margin: 0 auto; line-height: var(--lh-base); }
/* Stage trail (Adventure Arena) — 4 label sebenar ikut setStep() sedia ada.
   Presentation-only: markup+CSS je berubah, panggilan setStep(n) TAK disentuh. */
.sim-stepper { display: flex; align-items: flex-start; gap: 2px; justify-content: center; margin-top: var(--space-4); flex-wrap: wrap; }
.sim-dot {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 92px; padding-top: 2px; background: none; border: 0;
}
.sim-dot::before { content: ""; position: absolute; top: 15px; left: -50%; width: 100%; height: 2px;
  background: var(--sim-track); z-index: 0; }
.sim-dot:first-child::before { display: none; }
.sim-dot.is-on::before { background: var(--gold-400); }
.sim-dot__ic { position: relative; z-index: 1; display: grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--cosmic-surface, #0C1D3D); border: 1.5px solid rgba(255, 255, 255, .35);
  font-size: 1rem; font-style: normal; transition: background var(--transition), border-color var(--transition), transform var(--transition); }
.sim-dot.is-on .sim-dot__ic { background: var(--gold-400); border-color: var(--gold-400); transform: scale(1.08); box-shadow: 0 0 0 4px rgba(230, 178, 62, .18); }
.sim-dot__t { font-style: normal; font-size: 10px; font-weight: 700; text-align: center; line-height: 1.25;
  color: var(--ink-dark-mute, #A1B0CC); }
.sim-dot.is-on .sim-dot__t { color: var(--ink-dark, #E7EDF7); }
@media (max-width: 480px) { .sim-dot__t { display: none; } .sim-dot { width: auto; } }
@media (prefers-reduced-motion: reduce) { .sim-dot__ic { transition: none; } }

/* Maskot ARAH — panah menegak, inline SVG */
.arah { display: inline-block; width: 96px; height: 96px; animation: arahFloat 3s ease-in-out infinite; }
.arah--lg { width: 132px; height: 132px; }
.arah--win { animation: arahFloat 3s ease-in-out infinite, arahWin .5s ease-out; }
.arah--win .arah__body { filter: drop-shadow(0 0 12px var(--gold-400)); }
@keyframes arahFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes arahWin { 0% { transform: scale(1); } 60% { transform: scale(1.12); } 100% { transform: scale(1); } }
.arah-say {
  background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .16);
  border-radius: var(--radius); padding: var(--space-3) var(--space-4); color: var(--cream-50);
  max-width: 30rem; margin-inline: auto; line-height: var(--lh-snug);
}

/* Slots (2 kerjaya terpilih) */
.sim-slots { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); margin-bottom: var(--space-4); }
.sim-slot {
  border-radius: var(--radius); padding: var(--space-4) var(--space-3); min-height: 88px;
  display: grid; gap: 4px; place-content: center; text-align: center;
  border: 2px dashed var(--sim-track); background: rgba(255, 255, 255, .04); color: var(--grey-200);
}
.sim-slot__tag { font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.sim-slot--A { border-color: rgba(214, 158, 35, .5); }
.sim-slot--A .sim-slot__tag { color: var(--gold-400); }
.sim-slot--B { border-color: rgba(79, 195, 232, .5); }
.sim-slot--B .sim-slot__tag { color: var(--sim-pop-sky); }
.sim-slot.is-filled { border-style: solid; background: rgba(255, 255, 255, .08); color: var(--cream-50); }
.sim-slot__name { font-weight: 800; font-size: var(--fs-lg); }
.sim-slot__icon { font-size: 1.6rem; line-height: 1; }
.sim-slot__clear {
  margin-top: 4px; background: none; border: none; color: var(--text-muted); font-size: var(--fs-xs);
  text-decoration: underline; cursor: pointer; min-height: 44px;
}

/* Grid kad kerjaya (horizontal-scroll OK pada mobile) */
.sim-cards {
  display: grid; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr);
  gap: var(--space-3); overflow-x: auto; padding: var(--space-1) 2px var(--space-3);
  scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch;
}
@media (min-width: 720px) {
  .sim-cards { grid-auto-flow: row; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); grid-auto-columns: auto; overflow: visible; }
}
.sim-card {
  scroll-snap-align: start; text-align: left; cursor: pointer; min-height: 44px;
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius);
  padding: var(--space-3); display: grid; gap: 6px; color: var(--navy-900);
  transition: border-color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.sim-card:hover { border-color: var(--border-strong); transform: translateY(-2px); }
.sim-card:focus-visible { outline: 3px solid var(--sim-pop-sky); outline-offset: 2px; }
.sim-card[aria-pressed="true"] { border-color: var(--gold-500); box-shadow: var(--sim-gold-glow); }
.sim-card[aria-pressed="true"][data-col="B"] { border-color: var(--sim-careerB); box-shadow: 0 0 0 4px rgba(79, 195, 232, .35); }
.sim-card[disabled] { opacity: .45; cursor: not-allowed; }
.sim-card__icon { font-size: 1.8rem; line-height: 1; }
.sim-card__name { font-weight: 800; color: var(--navy-900); line-height: var(--lh-tight); }
.sim-card__blurb { font-size: var(--fs-xs); color: var(--text-muted); line-height: var(--lh-snug); }
.sim-card .chip { align-self: start; }

/* Banding — stack ikut baris-metrik, header lajur sticky */
.sim-compare { background: rgba(255, 255, 255, .04); border: 1px solid var(--sim-track); border-radius: var(--radius); overflow: hidden; }
.sim-cmp-head {
  position: sticky; top: 0; z-index: 2; display: grid; grid-template-columns: 1fr 1fr;
  background: var(--sim-bg); border-bottom: 1px solid var(--sim-track);
}
.sim-cmp-head__col { padding: var(--space-3); text-align: center; font-weight: 800; display: grid; gap: 2px; justify-items: center; }
.sim-cmp-head__col--A { color: var(--gold-400); }
.sim-cmp-head__col--B { color: var(--sim-pop-sky); }
.sim-cmp-head__icon { font-size: 1.5rem; }
.sim-cmp-row { padding: var(--space-3) var(--space-4); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.sim-cmp-row:last-child { border-bottom: none; }
.sim-cmp-row__label { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .06em; color: var(--grey-300); font-weight: 700; margin-bottom: var(--space-2); text-align: center; }
.sim-cmp-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-3); align-items: center; }
.sim-money { font-size: var(--fs-xl); font-weight: 800; font-variant-numeric: tabular-nums; text-align: center; line-height: 1.1; }
.sim-money--A { color: var(--gold-400); }
.sim-money--B { color: var(--sim-pop-sky); }
.sim-cmp-arche { text-align: center; }

/* Bar tahun (CSS transition fill) */
.sim-yearbar { display: grid; gap: 6px; }
.sim-yearbar__track { height: 14px; background: var(--sim-track); border-radius: var(--radius-pill); overflow: hidden; }
.sim-yearbar__fill { height: 100%; width: 0; border-radius: inherit; transition: width 1100ms cubic-bezier(.17,.67,.3,1.3); }
.sim-yearbar__fill--A { background: linear-gradient(90deg, var(--gold-600), var(--gold-400)); }
.sim-yearbar__fill--B { background: linear-gradient(90deg, #2f93b8, var(--sim-pop-sky)); }
.sim-yearbar__cap { font-size: var(--fs-xs); color: var(--grey-300); text-align: center; }

/* Matlamat (5 kad) */
.sim-goals { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: var(--space-3); }
.sim-goal {
  cursor: pointer; min-height: 88px; border-radius: var(--radius); border: 2px solid var(--sim-track);
  background: rgba(255, 255, 255, .05); color: var(--cream-50); padding: var(--space-3); text-align: center;
  display: grid; gap: 6px; place-content: center; transition: border-color var(--transition), background var(--transition), transform var(--transition);
}
.sim-goal:hover { transform: translateY(-2px); border-color: rgba(255, 255, 255, .4); }
.sim-goal:focus-visible { outline: 3px solid var(--sim-pop-sky); outline-offset: 2px; }
.sim-goal[aria-pressed="true"] { border-color: var(--sim-pop-lime); background: rgba(139, 212, 80, .14); box-shadow: var(--sim-lime-glow); }
.sim-goal__icon { font-size: 1.8rem; line-height: 1; }
.sim-goal__name { font-weight: 800; font-size: var(--fs-sm); }

/* Tangga aspirasi — 4 anak tangga bawah->atas */
.sim-ladder { display: flex; flex-direction: column-reverse; gap: var(--space-2); max-width: 34rem; margin-inline: auto; }
.sim-rung {
  position: relative; border-radius: var(--radius); padding: var(--space-3) var(--space-4);
  background: rgba(255, 255, 255, .06); border: 1px solid var(--sim-track); color: var(--grey-200);
  display: flex; align-items: center; gap: var(--space-3); min-height: 56px;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition), transform var(--transition);
}
.sim-rung__icon { font-size: 1.3rem; flex: none; width: 1.6rem; text-align: center; }
.sim-rung__label { font-weight: 700; line-height: var(--lh-snug); }
.sim-rung__markers { margin-left: auto; display: flex; gap: 6px; flex: none; }
.sim-rung__mk { width: 14px; height: 14px; border-radius: 50%; border: 2px solid; opacity: 0; transform: scale(.4); transition: opacity var(--transition), transform var(--transition); }
.sim-rung__mk--A { border-color: var(--gold-400); background: var(--gold-400); }
.sim-rung__mk--B { border-color: var(--sim-pop-sky); background: var(--sim-pop-sky); }
.sim-rung__mk.is-on { opacity: 1; transform: scale(1); }
/* achieved: BLOCK lime + teks GELAP (a11y) + icon (makna != warna sahaja) */
.sim-rung.is-lit { background: var(--sim-pop-lime); color: var(--navy-900); box-shadow: var(--sim-lime-glow); }
.sim-rung.is-lit .sim-rung__label { color: var(--navy-900); }
.sim-rung.is-lit .sim-rung__icon { color: var(--navy-900); }

/* Roda Kehidupan */
.sim-wheel-wrap { display: grid; gap: var(--space-4); justify-items: center; }
.sim-wheel-stage { position: relative; width: min(300px, 80vw); aspect-ratio: 1; }
.sim-wheel { width: 100%; height: 100%; transition: transform 3s cubic-bezier(.17,.67,.3,1.3); transform-origin: 50% 50%; }
.sim-wheel-pointer { position: absolute; top: -6px; left: 50%; transform: translateX(-50%); font-size: 1.8rem; color: var(--gold-400); filter: drop-shadow(0 2px 3px rgba(0,0,0,.4)); z-index: 2; }
.sim-wheel-hub { position: absolute; inset: 0; margin: auto; width: 54px; height: 54px; border-radius: 50%; background: var(--navy-900); border: 3px solid var(--gold-400); display: grid; place-items: center; color: var(--gold-400); font-size: 1.4rem; }
.sim-event {
  background: var(--surface); color: var(--navy-900); border-radius: var(--radius); padding: var(--space-4);
  border-left: 4px solid var(--gold-500); max-width: 30rem; text-align: center; box-shadow: var(--shadow);
}
.sim-event__icon { font-size: 1.8rem; }
.sim-event__text { font-weight: 700; margin: var(--space-2) 0 0; }

/* Penutup */
.sim-outro { text-align: center; display: grid; gap: var(--space-4); justify-items: center; }
.sim-ethics { border-top: 1px solid var(--sim-track); margin-top: var(--space-6); padding-top: var(--space-4); }
.sim-ethics p { color: var(--grey-300); font-size: var(--fs-sm); max-width: 42rem; margin: 0 auto; }
.sim-ethics p + p { margin-top: var(--space-2); }
.sim-ethics strong { color: var(--cream-50); }

/* CTA simulator (btn--ghost atas latar gelap untuk kontras) */
.sim .btn--ghost { border-color: rgba(255, 255, 255, .35); color: var(--cream-50); }
.sim .btn--ghost:hover { background: rgba(255, 255, 255, .1); }

/* --- PART A: banner arketaip sebenar (ADA asesmen) ------------------------- */
.sim-arche-banner {
  display: flex; align-items: center; gap: var(--space-3);
  max-width: 44rem; margin: 0 auto var(--space-4);
  padding: var(--space-3) var(--space-4); border-radius: var(--radius);
  background: linear-gradient(100deg, rgba(230, 178, 62, .18), rgba(230, 178, 62, .06));
  border: 1px solid rgba(230, 178, 62, .5); box-shadow: var(--sim-gold-glow);
}
.sim-arche-banner__star { font-size: 1.5rem; color: var(--gold-400); flex: none; line-height: 1; }
.sim-arche-banner__text { margin: 0; color: var(--cream-50); line-height: var(--lh-snug); }
.sim-arche-banner__text strong { color: var(--gold-400); }

/* PART A: CTA halus (TIADA asesmen) — tak memaksa, cuma jemput */
.sim-arche-cta { text-align: center; max-width: 44rem; margin: 0 auto var(--space-4); }
.sim-arche-cta__text { margin: 0; color: var(--grey-200); font-size: var(--fs-sm); }
.sim-arche-cta__link {
  color: var(--sim-pop-sky); font-weight: 800; text-decoration: none;
  padding: 2px 6px; border-radius: var(--radius-sm); min-height: 24px;
}
.sim-arche-cta__link:hover, .sim-arche-cta__link:focus-visible { text-decoration: underline; }

/* PART A: badge "padan arketaip" + glow emas pada kad kerjaya padan */
.sim-card.is-match { border-color: var(--gold-500); box-shadow: var(--sim-gold-glow); }
.sim-card.is-match[aria-pressed="true"][data-col="B"] { box-shadow: 0 0 0 4px rgba(79, 195, 232, .35); }
.sim-card__match {
  align-self: start; display: inline-flex; align-items: center; gap: 4px;
  font-size: var(--fs-xs); font-weight: 800; color: var(--navy-900);
  background: var(--gold-400); border-radius: var(--radius-pill);
  padding: 2px 8px; line-height: 1.3;
}

/* --- PART B: animasi gaji tumbuh tahun-demi-tahun ------------------------- */
.sim-cmp-row--grow { display: grid; gap: var(--space-2); }
.sim-grow-yearline {
  display: flex; justify-content: space-between; max-width: 100%;
  font-size: var(--fs-xs); color: var(--grey-300); padding: 0 2px;
}
.sim-grow {
  display: grid; gap: 6px; justify-items: center; text-align: center;
  padding: var(--space-2); border-radius: var(--radius);
  background: rgba(255, 255, 255, .03);
}
.sim-grow__avatar {
  font-size: 1.7rem; line-height: 1; will-change: transform;
  transition: transform 420ms cubic-bezier(.17,.67,.3,1.3);
}
.sim-grow__bar {
  width: 100%; height: 12px; background: var(--sim-track);
  border-radius: var(--radius-pill); overflow: hidden;
}
.sim-grow__fill {
  display: block; height: 100%; width: 0; border-radius: inherit;
  transition: width 120ms linear;
}
.sim-grow__fill--A { background: linear-gradient(90deg, var(--gold-600), var(--gold-400)); }
.sim-grow__fill--B { background: linear-gradient(90deg, #2f93b8, var(--sim-pop-sky)); }
.sim-grow__rm { font-size: var(--fs-lg); font-weight: 800; font-variant-numeric: tabular-nums; }
.sim-grow--A .sim-grow__rm { color: var(--gold-400); }
.sim-grow--B .sim-grow__rm { color: var(--sim-pop-sky); }
.sim-grow__tier { font-size: var(--fs-xs); color: var(--grey-200); font-weight: 700; min-height: 1.2em; }
.sim-grow.is-playing { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12) inset; }
.sim-grow-ctl { display: flex; justify-content: center; margin-top: var(--space-1); }
.sim-grow-btn { font-size: var(--fs-sm); padding: var(--space-2) var(--space-4); min-height: 40px; }

/* WAJIB: hormati reduced-motion */
@media (prefers-reduced-motion: reduce) {
  .arah, .arah--win { animation: none !important; }
  * { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* =============================================================================
   --- Kad Arketaip --- (page /kad: REVEAL / GALLERY / PREVIEW)
   Kad SVG 1080×1350 (4:5) dijana dalam JS. Skim warna per QUADRANT via [data-q].
   ============================================================================= */
.kad-wrap { display: block; }

/* quadrant accent tokens (selari dengan QUAD dalam kad.js) */
[data-q="Q1"] { --kad-accent: #E6B23E; }  /* gold */
[data-q="Q2"] { --kad-accent: #34A79E; }  /* teal */
[data-q="Q3"] { --kad-accent: #FF7A59; }  /* coral */
[data-q="Q4"] { --kad-accent: #4FC3E8; }  /* sky */

/* --- Single kad (REVEAL / PREVIEW / modal) --- */
.kad-single { display: grid; grid-template-columns: minmax(0, 420px) minmax(0, 1fr); gap: var(--space-6); align-items: center; }
.kad-eyebrow {
  text-align: center; font-size: var(--fs-sm); font-weight: 700; letter-spacing: .06em;
  text-transform: uppercase; color: var(--kad-accent, var(--gold-ink)); margin: 0;
}
.kad-h1 { text-align: center; font-family: var(--font-serif); font-size: var(--fs-2xl); margin: var(--space-1) 0; }

/* host = perspective wrapper untuk flip 3D */
.kad-host {
  width: 100%; max-width: 360px; aspect-ratio: 1080 / 1350;
  perspective: 1400px; margin-inline: auto;
}
.kad-in { animation: kad-scalein 460ms cubic-bezier(.17,.67,.3,1.3) both; }
@keyframes kad-scalein { from { opacity: 0; transform: scale(.9); } to { opacity: 1; transform: none; } }

.kad-flipper {
  position: relative; width: 100%; height: 100%;
  transform-style: preserve-3d; transition: transform 700ms cubic-bezier(.4,0,.2,1);
  cursor: pointer; border-radius: var(--radius-lg);
}
.kad-flipper.is-flipped { transform: rotateY(180deg); }
.kad-flipper.no-anim { transition: none; }

.kad-face {
  position: absolute; inset: 0; -webkit-backface-visibility: hidden; backface-visibility: hidden;
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg);
}
.kad-face--front { background: #0B1A38; }                    /* IDENTITI (SVG) — tampak dulu */
.kad-face--back { transform: rotateY(180deg);                /* TAKLIMAT (HTML) */
  background: linear-gradient(160deg, #0B1A38, #11244B); border: 2px solid var(--kad-accent, var(--gold-500));
  display: flex; flex-direction: column; padding: 26px 24px; overflow-y: auto; }
.kad-svgwrap { width: 100%; height: 100%; }
.kad-svgwrap svg { display: block; width: 100%; height: 100%; }

/* shine sweep selepas kad muncul */
.kad-flipper.is-shined .kad-face--front::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.42) 48%, transparent 66%);
  transform: translateX(-120%); animation: kad-shine 900ms ease-out forwards;
}
@keyframes kad-shine { to { transform: translateX(120%); } }

/* --- Butang aksi + toast --- */
.kad-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; }
.kad-act { min-height: 44px; }
.kad-toast {
  text-align: center; font-size: var(--fs-sm); font-weight: 600; color: #147347;
  background: var(--success-100); border-radius: var(--radius-pill);
  padding: var(--space-2) var(--space-4); margin: 0; max-width: 100%;
  overflow-wrap: anywhere;
}
.kad-cta-row { display: flex; flex-direction: column; align-items: center; gap: var(--space-2); }
.kad-gallery-link, .kad-cta-link { font-weight: 700; font-size: var(--fs-sm); }
.kad-cta-link { color: var(--teal-600); }

/* --- Gallery grid --- */
.kad-gallery-wrap { display: block; }
.kad-gallery-head { text-align: center; margin-bottom: var(--space-5); }
.kad-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: var(--space-3);
}
.kad-mini {
  display: flex; flex-direction: column; align-items: center; gap: 6px; text-align: center;
  padding: var(--space-4) var(--space-3); min-height: 160px; cursor: pointer;
  background: linear-gradient(165deg, #0B1A38, #11244B); color: var(--cream-100);
  border: 1px solid var(--kad-accent, var(--gold-500)); border-radius: var(--radius);
  border-top-width: 4px; transition: transform var(--transition), box-shadow var(--transition);
}
.kad-mini:hover, .kad-mini:focus-visible {
  transform: translateY(-4px); box-shadow: var(--shadow-lg); outline: none;
}
.kad-mini:focus-visible { box-shadow: 0 0 0 3px var(--ring), var(--shadow-lg); }
.kad-mini__emblem {
  font-family: var(--font-serif); font-size: 2.1rem; font-weight: 700; line-height: 1;
  color: var(--kad-accent, var(--gold-500));
  width: 2em; height: 2em; display: grid; place-items: center;
  border: 2px solid var(--kad-accent, var(--gold-500)); border-radius: 50%;
}
.kad-mini__en { font-family: var(--font-serif); font-weight: 700; font-size: var(--fs-base); line-height: 1.15; }
.kad-mini__bm { font-size: var(--fs-xs); color: var(--kad-accent, var(--gold-400)); font-style: italic; }
.kad-mini__chip {
  margin-top: 2px; font-size: 0.66rem; font-weight: 700; letter-spacing: .02em;
  color: var(--cream-300); border: 1px solid rgba(255,255,255,.22);
  border-radius: var(--radius-pill); padding: 1px 8px;
}

/* --- Banner CTA asesmen --- */
.kad-banner {
  margin-top: var(--space-6); display: flex; flex-wrap: wrap; gap: var(--space-3);
  align-items: center; justify-content: center; text-align: center;
  background: linear-gradient(160deg, #0B1A38, #11244B); color: var(--cream-100);
  border-radius: var(--radius-lg); padding: var(--space-5);
}
.kad-banner__text { margin: 0; font-family: var(--font-serif); font-size: var(--fs-xl); }
.kad-banner__text strong { color: var(--gold-400); }

/* --- Modal kad penuh --- */
.kad-noscroll { overflow: hidden; }
.kad-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; }
.kad-modal[hidden] { display: none; }
.kad-modal__backdrop { position: absolute; inset: 0; background: var(--overlay); backdrop-filter: blur(2px); }
.kad-modal__panel {
  position: relative; z-index: 1; width: min(92vw, 420px); max-height: 92vh; overflow-y: auto;
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-lg);
  padding: var(--space-5); animation: kad-modalin 240ms ease both;
}
@keyframes kad-modalin { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.kad-modal__close {
  position: absolute; top: 10px; right: 10px; z-index: 2;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--border);
  background: var(--surface); color: var(--text); font-size: 1.1rem; cursor: pointer; line-height: 1;
}
.kad-modal__close:hover { background: var(--surface-alt); }
.kad-single--modal .kad-host { max-width: 320px; }

@media (max-width: 480px) {
  .kad-grid { grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); }
  .kad-host { max-width: 300px; }
}

/* reduced-motion: matikan flip/shine/scale — kad terus tunjuk depan */
@media (prefers-reduced-motion: reduce) {
  .kad-flipper { transition: none !important; }
  .kad-in { animation: none !important; }
  .kad-flipper.is-shined .kad-face--front::after { animation: none !important; display: none; }
  .kad-modal__panel { animation: none !important; }
}

/* =============================================================================
   --- Career Discovery (/kerjaya) — Wave 2 -----------------------------------
   Reuse .sim-card .kad-modal .chip .btn. Tema page neutral/light supaya katalog
   246 kerjaya senang dibaca; hero navy gradient selaras universe ZZ. Token sahaja.
   ETIKA: badge fit% HANYA pada kad padanan (.is-match). Mod browse tiada skor.
   ============================================================================= */
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.krj { display: block; }
.krj-section { margin-top: var(--space-7); scroll-margin-top: 80px; }
.krj-h2 { font-size: var(--fs-2xl); line-height: var(--lh-tight); color: var(--navy-900); margin: 0 0 var(--space-1); }
.krj-sub { color: var(--text-soft); font-size: var(--fs-base); margin: 0 0 var(--space-3); }

/* HERO — navy gradient + ARAH (selaras junior-cover/hero) */
.krj-hero {
  background: linear-gradient(160deg, var(--navy-900), var(--navy-700) 72%, var(--teal-600));
  color: var(--cream-50); border-radius: var(--radius-lg); padding: var(--space-6);
  text-align: center; display: grid; justify-items: center; gap: var(--space-2);
}
.krj-hero .arah { width: 84px; height: 84px; }
.krj-eyebrow { color: var(--gold-400); text-transform: uppercase; letter-spacing: .12em; font-size: var(--fs-xs); font-weight: 800; }
.krj-h1 { font-family: var(--font-serif); font-size: var(--fs-3xl); line-height: var(--lh-tight); color: var(--cream-50); margin: 0; }
.krj-arah-say { color: var(--grey-200); font-size: var(--fs-base); max-width: 40rem; margin: 0; line-height: var(--lh-snug); }

/* CTA halus ke asesmen (mod browse) */
.krj-cta { text-align: center; background: var(--surface-alt); border-radius: var(--radius); padding: var(--space-3) var(--space-4); margin-bottom: var(--space-4); }
.krj-cta__text { margin: 0; color: var(--text-soft); font-size: var(--fs-sm); font-weight: 600; }
.krj-cta__link { color: var(--gold-ink); font-weight: 800; text-decoration: none; padding: 0 var(--space-1); display: inline-flex; align-items: center; min-height: 44px; }
.krj-cta__link:hover, .krj-cta__link:focus-visible { text-decoration: underline; }

/* Search */
.krj-search { margin-bottom: var(--space-3); }
.krj-search__input {
  width: 100%; padding: 0.7rem 0.9rem; font-size: var(--fs-base);
  border: 2px solid var(--border); border-radius: var(--radius-pill);
  background: var(--surface); color: var(--navy-900);
  transition: border-color var(--transition), box-shadow var(--transition);
}
.krj-search__input:focus-visible { outline: none; border-color: var(--gold-500); box-shadow: var(--sim-gold-glow); }
.krj-search__input::placeholder { color: var(--text-muted); }

/* Baris filter chip */
.krj-filters { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; margin-bottom: var(--space-4); }
.krj-filtergroup { display: inline-flex; flex-wrap: wrap; gap: var(--space-1); }
.krj-chip {
  min-height: 44px; padding: 0.35rem 0.8rem; cursor: pointer;
  font-size: var(--fs-sm); font-weight: 700; color: var(--text-soft);
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--radius-pill);
  transition: var(--transition);
}
.krj-chip:hover { border-color: var(--border-strong); color: var(--navy-900); }
.krj-chip:focus-visible { outline: 3px solid var(--sim-pop-sky); outline-offset: 2px; }
.krj-chip.is-on { background: var(--navy-800); color: var(--cream-50); border-color: var(--navy-800); }
.krj-chip--match { color: var(--gold-ink); border-color: var(--gold-500); }
.krj-chip--match.is-on { background: var(--gold-500); color: var(--navy-900); border-color: var(--gold-500); }

/* Grid kad — responsif, mobile dulu */
.krj-grid {
  display: grid; gap: var(--space-3);
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr));
}

/* KAD KERJAYA — base reuse .sim-card; kerjaya-specific layout di atasnya */
.krj-card { position: relative; gap: var(--space-2); }
.krj-card__name { font-weight: 800; color: var(--navy-900); font-size: var(--fs-base); line-height: var(--lh-tight); }
.krj-card__meta { display: inline-flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.krj-card__holland { letter-spacing: .06em; }
.krj-card__salary { font-size: var(--fs-sm); color: var(--text-soft); font-variant-numeric: tabular-nums; }

/* ===== Perjalanan DIRIKU (Journey Home) — peta laluan berpandu premium ===== */
.journey {
  background: linear-gradient(165deg, var(--navy-900), var(--navy-800) 65%, var(--navy-700));
  border-radius: var(--radius-lg); padding: 22px 16px 24px; color: var(--cream-50);
}
.journey__head { display: flex; align-items: center; gap: 12px; }
.journey__emblem { width: 34px; height: 34px; flex: none; }
.journey__headtxt { flex: 1; min-width: 0; }
.journey__title { font-weight: 700; font-size: var(--fs-base); }
.journey__bar { height: 7px; background: rgba(255,255,255,.14); border-radius: 5px; margin-top: 6px; overflow: hidden; }
.journey__bar i { display: block; height: 100%; background: var(--gold-500); border-radius: 5px; transition: width .6s cubic-bezier(.17,.67,.3,1.3); }
.journey__count { font-size: var(--fs-sm); color: var(--grey-300); flex: none; }
.journey__guide { display: flex; gap: 10px; align-items: flex-start; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 11px 13px; margin: 14px 0 4px; }
.journey__guide-emblem { width: 26px; height: 26px; flex: none; margin-top: 2px; }
.journey__guide p { margin: 0; font-size: var(--fs-sm); line-height: 1.5; color: var(--cream-100); }
.journey__guide b { color: var(--gold-400); font-weight: 600; }
.journey__map { position: relative; width: 100%; max-width: 430px; margin: 10px auto 0; aspect-ratio: 360 / 540; }
.journey__svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.jseg { fill: none; stroke-width: 6; stroke-linecap: round; }
.jseg--done { stroke: var(--teal-500); stroke-dasharray: 600; stroke-dashoffset: 600; animation: jdraw .9s ease forwards; }
.jseg--todo { stroke: rgba(255,255,255,.16); stroke-dasharray: 2 14; }
/* ARAH walker — emote berjalan ikut laluan (vibe game journey) */
.journey__walker { position: absolute; left: 22.2%; top: 11.1%; width: 36px; height: 36px; transform: translate(-50%, -116%); z-index: 4; pointer-events: none; }
.journey__walker-emb { display: block; width: 100%; height: 100%; background: var(--gold-500); border: 2px solid var(--cream-50); border-radius: 50%; padding: 5px; box-shadow: 0 4px 12px rgba(0,0,0,.32); animation: jbob 1s ease-in-out infinite; }
@keyframes jdraw { from { stroke-dashoffset: 600; } to { stroke-dashoffset: 0; } }
@keyframes jbob { 0%, 100% { transform: translateY(0) rotate(-5deg); } 50% { transform: translateY(-5px) rotate(5deg); } }
.jn { position: absolute; transform: translate(-50%,-50%); display: flex; flex-direction: column; align-items: center; gap: 5px; width: 104px; background: none; border: 0; padding: 0; cursor: pointer; color: inherit; }
.jn__dot { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; font-size: 23px; border: 2px solid transparent; transition: transform var(--transition); }
.jn:hover .jn__dot { transform: scale(1.06); }
.jn:focus-visible { outline: none; }
.jn:focus-visible .jn__dot { outline: 3px solid var(--ring-on-dark); outline-offset: 3px; }
.jn__lbl { font-size: 12px; font-weight: 600; line-height: 1.2; text-align: center; color: var(--cream-100); }
.jn__here { font-size: 10px; background: var(--gold-500); color: var(--navy-900); border-radius: 999px; padding: 1px 9px; font-weight: 600; }
.jn--done .jn__dot { background: var(--teal-500); color: #fff; }
.jn--current .jn__dot { width: 60px; height: 60px; font-size: 28px; background: var(--gold-500); color: var(--navy-900); border-color: #fff; animation: jpulse 2s ease-in-out infinite; }
.jn--open .jn__dot { background: var(--navy-600); color: var(--cream-50); border-color: var(--teal-500); }
.jn--open .jn__lbl { color: var(--grey-300); }
.jn--locked .jn__dot { background: var(--navy-700); color: var(--grey-400); }
.jn--locked .jn__lbl { color: var(--grey-400); }
.journey__cta { display: block; width: 100%; max-width: 430px; margin: 8px auto 0; }
.journey__foot { max-width: 430px; margin: 12px auto 0; font-size: var(--fs-xs); color: var(--grey-300); text-align: center; line-height: 1.5; }
@keyframes jpulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) {
  .jn--current .jn__dot { animation: none; }
  .journey__bar i { transition: none; }
  .jn:hover .jn__dot { transform: none; }
  .jseg--done { stroke-dashoffset: 0; animation: none; }
  .journey__walker-emb { animation: none; }
}

/* ===== Simulator VS Arena — dimensi banding (piece #2) ===== */
.sim-dim { display: flex; align-items: center; gap: 8px; }
.sim-dim__bar { flex: 1; height: 10px; background: rgba(255,255,255,.12); border-radius: 6px; overflow: hidden; }
.sim-dim__bar i { display: block; height: 100%; border-radius: 6px; transition: width .6s cubic-bezier(.17,.67,.3,1.3); }
.sim-dim__fill--A { background: var(--sim-careerA); }
.sim-dim__fill--B { background: var(--sim-careerB); }
.sim-dim span { font-size: var(--fs-sm); font-weight: 700; min-width: 46px; text-align: right; font-variant-numeric: tabular-nums; }
.sim-cmp-txt { font-size: var(--fs-sm); line-height: 1.45; }
.sim-cmp-first { margin-top: var(--space-4); padding-top: var(--space-4); border-top: 1px solid rgba(255,255,255,.16); }
.sim-cmp-first__h { font-size: var(--fs-lg); color: var(--gold-400); margin: 0 0 var(--space-3); text-align: center; }
.sim-first b { display: block; font-size: var(--fs-base); margin-bottom: 4px; }
.sim-first p { font-size: var(--fs-sm); line-height: 1.5; margin: 0 0 10px; }
.sim-first .sim-save { width: 100%; }
@media (prefers-reduced-motion: reduce) { .sim-dim__bar i { transition: none; } }

/* ===== Snapshot Reveal (Navigator flagship) — momen premium ===== */
.snap-reveal { display: flex; flex-direction: column; gap: var(--space-5); }
.snap-hero { text-align: center; background: linear-gradient(165deg, var(--navy-900), var(--navy-800) 70%, var(--navy-700)); color: var(--cream-50); border-radius: var(--radius-lg); padding: 30px 20px 26px; }
.snap-hero__emblem { display: inline-block; width: 64px; height: 64px; }
.snap-hero .eyebrow { display: block; color: var(--gold-400); margin-top: 8px; }
.snap-hero__pre { color: var(--grey-300); margin: 12px 0 2px; font-size: var(--fs-sm); }
.snap-hero__name { font-family: var(--font-serif); font-size: var(--fs-3xl); line-height: 1.1; margin: 0; color: var(--cream-50); }
.snap-hero__bm { color: var(--gold-400); font-weight: 500; margin: 4px 0 0; }
.snap-hero__tag { font-style: italic; color: var(--cream-100); margin: 12px auto 14px; max-width: 36ch; line-height: 1.5; }
.snap-divider { text-align: center; color: var(--text-muted); margin: 4px 0; font-size: var(--fs-base); font-weight: 500; }
.snap-cta .btn { width: 100%; font-size: var(--fs-lg); padding: 16px; }
.reveal-item { opacity: 0; transform: translateY(18px); animation: snapReveal .55s cubic-bezier(.17,.67,.3,1.3) forwards; animation-delay: var(--rd, 0s); }
@keyframes snapReveal { to { opacity: 1; transform: none; } }
.snap-reveal--done .reveal-item { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal-item { opacity: 1; transform: none; animation: none; } }
.krj-card__arrow { color: var(--text-muted); padding: 0 2px; }
.krj-card__reason { font-size: var(--fs-xs); color: var(--text-muted); line-height: var(--lh-snug); }
/* Badge fit% + band — HANYA pada kad padanan */
.krj-card.is-match { border-color: var(--gold-500); box-shadow: var(--sim-gold-glow); }
.krj-card__fit {
  align-self: flex-start; font-size: var(--fs-xs); font-weight: 800;
  color: var(--navy-900); background: var(--gold-400);
  padding: 2px 8px; border-radius: var(--radius-pill);
}
.krj-card__bandlbl { font-size: var(--fs-xs); font-weight: 700; color: var(--gold-ink); }

.krj-count { text-align: center; color: var(--text-muted); font-size: var(--fs-sm); margin-top: var(--space-3); }

/* DETAIL modal (reuse .kad-modal shell) */
.krj-detail { display: grid; gap: var(--space-2); }
.krj-detail__eyebrow { display: flex; }
.krj-detail__title { font-family: var(--font-serif); font-size: var(--fs-xl); color: var(--navy-900); margin: 0; line-height: var(--lh-tight); }
.krj-detail__en { color: var(--text-muted); font-size: var(--fs-sm); margin: 0; }
.krj-detail__say { color: var(--text-soft); font-size: var(--fs-sm); font-style: italic; margin: var(--space-1) 0 var(--space-2); }
.krj-detail__block { display: grid; gap: 4px; padding-top: var(--space-2); border-top: 1px solid var(--border); }
.krj-detail__label { font-size: var(--fs-xs); font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--text-muted); }
.krj-detail__val { margin: 0; color: var(--grey-700); font-size: var(--fs-sm); line-height: var(--lh-snug); }
/* Tangga gaji 5-tier */
.krj-ladder { list-style: none; margin: 4px 0 0; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.krj-ladder__rung {
  display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-2);
  padding: 0.5rem 0.7rem; border-radius: var(--radius-sm);
  background: var(--surface-alt); border-left: 3px solid var(--gold-400);
}
.krj-ladder__tier { font-weight: 700; color: var(--navy-900); font-size: var(--fs-sm); }
.krj-ladder__tier small { font-weight: 500; color: var(--text-muted); }
.krj-ladder__rm { font-weight: 800; color: var(--teal-600); font-variant-numeric: tabular-nums; white-space: nowrap; }
.krj-detail__cta { display: grid; gap: var(--space-2); margin-top: var(--space-3); }

/* ============================================================================
   GALAKSI KERJAYA — game layer (Teka / Matchmaker / Kad / Realiti Gaji)
   Mobile-first, premium tapi tak gelap. Tier-theme via [data-tier].
   ========================================================================== */
.g-root { --g-accent: var(--teal-500); --g-accent2: var(--gold-500); --g-head: var(--navy-800);
  --g-ink: var(--navy-900); --g-muted: var(--grey-500); --g-line: var(--grey-200); --g-surface: var(--cream-50);
  display: block; }
.g-root[data-tier="explorer"]  { --g-accent: #E0723C; --g-accent2: #E6B23E; --g-head: #4A3F8C; }
.g-root[data-tier="discoverer"]{ --g-accent: var(--teal-500); --g-accent2: var(--gold-500); --g-head: var(--navy-700); }
.g-root[data-tier="navigator"] { --g-accent: #1FA8E0; --g-accent2: var(--gold-500); --g-head: var(--navy-900); }

.g-h1 { font-size: 1.55rem; margin: 0; color: var(--g-ink); }
.g-h2 { font-size: 1.05rem; margin: 1.1rem 0 .5rem; color: var(--g-ink); }
.g-sub { color: var(--g-muted); margin: .2rem 0 0; line-height: 1.5; }
.g-back { display: inline-block; font-size: .85rem; color: var(--g-muted); text-decoration: none; margin-bottom: .6rem; }
.g-back:hover { color: var(--g-accent); }
.g-fineprint { font-size: .78rem; color: var(--g-muted); line-height: 1.55; margin-top: .8rem; }
.g-fineprint a { color: var(--g-accent); }

/* ARAH guide bubble */
.g-arah { display: flex; align-items: center; gap: .7rem; background: var(--surface-navy); color: var(--cream-50);
  border-radius: var(--radius-lg); padding: .8rem 1rem; margin: .8rem 0; }
.g-arah__face { width: 40px; height: 40px; flex: none; }
.g-arah__msg { margin: 0; font-size: .9rem; line-height: 1.45; }
.g-arah-host { width: 58px; height: 58px; flex: none; }

/* hub */
.g-hub-head { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }
.g-hub-head > div:nth-child(2) { flex: 1; min-width: 140px; }
.g-tierpick { display: flex; gap: .3rem; }
.g-tierbtn { background: var(--g-surface); border: 1px solid var(--g-line); border-radius: var(--radius-pill);
  padding: .4rem .7rem; font-size: .78rem; font-weight: 600; color: var(--g-muted); cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; }
.g-tierbtn[aria-pressed="true"] { background: var(--g-accent); color: #fff; border-color: var(--g-accent); }
.g-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: .5rem; margin: .9rem 0; }
.g-stat { background: var(--g-surface); border: 1px solid var(--g-line); border-radius: var(--radius); padding: .7rem .4rem; text-align: center; }
.g-stat__n { display: block; font-size: 1.25rem; font-weight: 800; color: var(--g-ink); font-variant-numeric: tabular-nums; }
.g-stat__n small { font-size: .7rem; color: var(--g-muted); font-weight: 600; }
.g-stat__l { font-size: .68rem; color: var(--g-muted); }
.g-archnote { font-size: .82rem; color: var(--g-muted); background: var(--cream-200); border-radius: var(--radius); padding: .6rem .8rem; line-height: 1.5; }
.g-archnote a { color: var(--g-accent); font-weight: 600; }
.g-portals { display: grid; gap: .55rem; }
.g-portal { display: flex; align-items: center; gap: .8rem; background: var(--g-surface); border: 1px solid var(--g-line);
  border-radius: var(--radius); padding: .85rem 1rem; text-decoration: none; color: var(--g-ink); transition: var(--transition); border-left: 4px solid var(--g-accent); }
.g-portal:hover { box-shadow: var(--shadow); transform: translateY(-1px); }
.g-portal__emoji { font-size: 1.7rem; flex: none; }
.g-portal__body { flex: 1; display: flex; flex-direction: column; }
.g-portal__body b { font-size: .98rem; }
.g-portal__body span { font-size: .78rem; color: var(--g-muted); line-height: 1.4; }
.g-portal__go { font-size: 1.2rem; color: var(--g-accent); font-weight: 800; }
.g-portal.is-soon { opacity: .72; border-left-color: var(--g-line); }
.g-portal__soon { font-size: .68rem; background: var(--cream-200); color: var(--g-muted); padding: .2rem .5rem; border-radius: var(--radius-pill); }
.g-badges { display: grid; grid-template-columns: repeat(auto-fit, minmax(88px, 1fr)); gap: .5rem; }
.g-badge { text-align: center; background: var(--g-surface); border: 1px solid var(--g-line); border-radius: var(--radius); padding: .6rem .3rem; opacity: .5; }
.g-badge.is-got { opacity: 1; border-color: var(--g-accent2); }
.g-badge span { font-size: 1.5rem; display: block; }
.g-badge small { font-size: .66rem; color: var(--g-muted); line-height: 1.2; display: block; margin-top: .2rem; }
.g-reset { background: none; border: none; color: var(--danger-600); text-decoration: underline; cursor: pointer; font-size: .78rem; padding: .4rem .2rem; min-height: 44px; }

/* shared game pieces */
.g-game-head { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; }
.g-round { font-size: .8rem; color: var(--g-muted); font-weight: 600; }
.g-banner { font-size: .82rem; color: var(--g-ink); background: var(--warn-100); border: 1px solid #EBD9A8; border-radius: var(--radius); padding: .7rem .9rem; margin: .6rem 0; line-height: 1.5; }
.g-pill { display: inline-block; background: var(--cream-200); color: var(--g-muted); border-radius: var(--radius-pill); padding: .25rem .7rem; font-size: .72rem; }
.g-clues { display: grid; gap: .4rem; margin-bottom: .7rem; }
.g-clue { background: var(--g-surface); border-left: 4px solid var(--g-accent2); border-radius: 0 var(--radius) var(--radius) 0; padding: .7rem .9rem; font-size: .9rem; line-height: 1.45; animation: gSlide .3s ease; }
@keyframes gSlide { from { opacity: 0; transform: translateX(-6px); } to { opacity: 1; transform: none; } }
.g-opts { display: grid; gap: .5rem; }
.g-opt { background: var(--g-surface); border: 1px solid var(--g-line); border-radius: var(--radius); padding: .85rem 1rem; font-size: .95rem; font-weight: 600; color: var(--g-ink); text-align: left; cursor: pointer; min-height: 48px; transition: var(--transition); }
.g-opt:hover:not(:disabled) { border-color: var(--g-accent); }
.g-opt.is-ok { background: var(--success-100); border-color: var(--success-500); }
.g-opt.is-no { background: var(--danger-100); border-color: var(--danger-500); opacity: .8; }
.g-opt:disabled { cursor: default; }

.g-reveal, .g-card3d { background: var(--g-surface); border: 1px solid var(--g-accent2); border-radius: var(--radius-lg); padding: 1rem 1.1rem; margin-top: .7rem; animation: gPop .35s ease; }
@keyframes gPop { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
.g-reveal__top { display: flex; align-items: center; gap: .6rem; margin-bottom: .4rem; }
.g-reveal__emoji { font-size: 2rem; }
.g-reveal__nm { font-size: 1.15rem; font-weight: 800; color: var(--g-ink); }
.g-reveal__en { font-size: .8rem; color: var(--g-muted); }
.g-reveal__desc { font-size: .9rem; color: var(--g-ink); line-height: 1.5; margin: .3rem 0 .6rem; }
.g-tags { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .5rem; }
.g-chip { font-size: .72rem; background: var(--cream-200); color: var(--navy-800); border-radius: var(--radius-pill); padding: .25rem .65rem; }
.g-chip--ind { background: #DCEFEC; color: var(--teal-600); }
.g-kv { font-size: .85rem; color: var(--g-ink); line-height: 1.55; margin: .25rem 0; }
.g-kv b { color: var(--g-muted); font-weight: 700; }
.g-mr { display: grid; gap: .4rem; margin: .6rem 0; }
.g-mr__myth, .g-mr__real { font-size: .82rem; padding: .55rem .75rem; border-radius: var(--radius-sm); line-height: 1.45; }
.g-mr__myth { background: var(--danger-100); }
.g-mr__real { background: var(--success-100); }
.g-fresh { font-size: .85rem; color: var(--g-accent2); font-weight: 700; margin: .4rem 0; }
.g-actions { display: flex; gap: .5rem; flex-wrap: wrap; margin: .6rem 0 .3rem; }
.g-btn { background: var(--g-surface); border: 1px solid var(--g-line); border-radius: var(--radius); padding: .75rem 1rem; font-size: .9rem; font-weight: 600; color: var(--g-ink); cursor: pointer; min-height: 46px; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; transition: var(--transition); }
.g-btn:hover { border-color: var(--g-accent); }
.g-btn--cta { background: var(--g-accent); color: #fff; border-color: var(--g-accent); width: 100%; margin-top: .5rem; }
.g-btn--save { border-color: var(--g-accent2); }
.g-btn--no { color: var(--danger-500); }
.g-sims { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .5rem; }
.g-simchip { background: var(--cream-200); border: 1px solid var(--g-line); border-radius: var(--radius-pill); padding: .4rem .8rem; font-size: .8rem; cursor: pointer; color: var(--g-ink); min-height: 44px; display: inline-flex; align-items: center; }
.g-simchip.is-seen { opacity: .6; }
.g-done { text-align: center; padding: 1rem 0; }
.g-done__big { font-size: 2.5rem; }
.g-newbadge { font-size: .85rem; color: var(--g-accent2); font-weight: 700; margin: .5rem 0; }

/* Kad grid */
.g-filters { display: flex; gap: .35rem; overflow-x: auto; padding-bottom: .4rem; margin: .6rem 0; -webkit-overflow-scrolling: touch; }
.g-filter { flex: none; background: var(--g-surface); border: 1px solid var(--g-line); border-radius: var(--radius-pill); padding: .4rem .8rem; font-size: .78rem; font-weight: 600; color: var(--g-muted); cursor: pointer; white-space: nowrap; min-height: 44px; display: inline-flex; align-items: center; }
.g-filter.is-on { background: var(--g-accent); color: #fff; border-color: var(--g-accent); }
.g-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem; }
.g-kad { background: var(--g-surface); border: 1px solid var(--g-line); border-radius: var(--radius); padding: .7rem .4rem; text-align: center; cursor: pointer; min-height: 92px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; transition: var(--transition); }
.g-kad:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
.g-kad.is-got { border-color: var(--g-accent2); }
.g-kad__emoji { font-size: 1.6rem; }
.g-kad__nm { font-size: .72rem; font-weight: 700; color: var(--g-ink); line-height: 1.2; }
.g-kad__arch { font-size: .62rem; color: var(--g-muted); }
.g-kad__hint { font-size: .6rem; color: var(--g-muted); }

/* Matchmaker swipe */
.g-swipe { background: var(--g-surface); border: 1px solid var(--g-accent2); border-radius: var(--radius-lg); padding: 1.1rem; text-align: center; animation: gPop .35s ease; }
.g-swipe__emoji { font-size: 2.4rem; }
.g-swipe__desc { font-size: .9rem; color: var(--g-muted); line-height: 1.5; margin: .5rem 0; }
.g-why { text-align: left; font-size: .82rem; color: var(--g-ink); background: var(--cream-200); border-radius: var(--radius-sm); padding: .6rem .8rem; margin: .5rem 0; line-height: 1.5; }
.g-why p { margin: .2rem 0; }
.g-swrow { display: flex; gap: .4rem; }
.g-swrow .g-btn { flex: 1; }
.g-savedlist { display: grid; gap: .4rem; margin: .6rem 0; }
.g-savedlist div { font-size: .88rem; background: var(--g-surface); border: 1px solid var(--g-line); border-radius: var(--radius-sm); padding: .55rem .8rem; }

/* Realiti Gaji */
.g-field { display: block; margin: .5rem 0; }
.g-field span { display: block; font-size: .82rem; color: var(--g-muted); margin-bottom: .25rem; }
.g-select { width: 100%; padding: .65rem .7rem; border: 1px solid var(--g-line); border-radius: var(--radius-sm); background: var(--g-surface); font-size: .9rem; color: var(--g-ink); min-height: 44px; }
.g-grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .3rem .7rem; }
.g-budget { margin: .6rem 0; }
.g-brow { display: flex; justify-content: space-between; font-size: .88rem; padding: .35rem 0; border-bottom: 1px dashed var(--g-line); }
.g-brow b { font-variant-numeric: tabular-nums; }
.g-brow--event b { color: var(--g-accent); }
.g-brow--total { border-bottom: none; border-top: 2px solid var(--g-ink); font-size: 1rem; font-weight: 800; padding-top: .5rem; }
.g-verdict { border-radius: var(--radius); padding: .8rem 1rem; font-size: .9rem; line-height: 1.5; margin: .4rem 0; }
.g-verdict--tight { background: var(--warn-100); }
.g-verdict--ok { background: var(--success-100); }

/* Pathway preview */
.g-pathpreview { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin: 1rem 0; }
.g-pathstep { background: var(--g-surface); border: 1px solid var(--g-line); border-radius: var(--radius-pill); padding: .5rem .85rem; font-size: .82rem; font-weight: 600; color: var(--g-ink); }
.g-pathstep--goal { background: var(--g-accent); color: #fff; border-color: var(--g-accent); }
.g-patharrow { color: var(--g-muted); font-weight: 800; }

/* --- Mitos vs Realiti — kad selak (Game G) ------------------------------------*/
.g-flipcard { perspective: 1200px; margin: .9rem 0 .4rem; cursor: pointer; min-height: 200px; }
.g-flipcard__inner { position: relative; width: 100%; min-height: 200px; transition: transform .55s cubic-bezier(.4,.1,.2,1); transform-style: preserve-3d; }
.g-flipcard.is-flipped .g-flipcard__inner { transform: rotateY(180deg); }
.g-flipcard__face { position: absolute; inset: 0; backface-visibility: hidden; border-radius: var(--radius-lg);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .6rem; padding: 1.4rem 1.2rem; text-align: center;
  box-shadow: var(--shadow-sm); }
.g-flipcard__face--front { background: var(--g-surface); border: 2px dashed var(--g-line); }
.g-flipcard__face--back { background: var(--g-accent); color: #fff; transform: rotateY(180deg); border: 2px solid var(--g-accent); }
.g-flipcard__tag { font-size: .68rem; font-weight: 800; letter-spacing: .12em; background: rgba(0,0,0,.08); color: var(--g-muted); border-radius: var(--radius-pill); padding: .2rem .7rem; }
.g-flipcard__tag--real { background: rgba(255,255,255,.22); color: #fff; }
.g-flipcard__txt { font-size: 1.02rem; font-weight: 600; line-height: 1.5; margin: 0; }
.g-flipcard__hint { font-size: .76rem; color: var(--g-muted); }
.g-flipcard__src { font-size: .78rem; opacity: .85; }

/* --- Laluan Masa Depan — LEGO-style builder (Game F) --------------------------*/
.g-legorow { margin: 1rem 0; }
.g-legorow__t { font-weight: 800; font-size: .92rem; color: var(--g-ink); margin-bottom: .5rem; }
.g-legochoices { display: flex; flex-wrap: wrap; gap: .5rem; }
.g-lego { background: var(--g-surface); border: 2px solid var(--g-line); border-radius: var(--radius); padding: .6rem 1rem;
  font-size: .86rem; font-weight: 600; color: var(--g-ink); cursor: pointer; min-height: 44px; transition: var(--transition); }
.g-lego:hover { border-color: var(--g-accent); }
.g-lego.is-on { background: var(--g-accent); border-color: var(--g-accent); color: #fff; }
.g-routecard { background: var(--g-surface); border: 1px solid var(--g-accent2); border-radius: var(--radius-lg); padding: 1.1rem; margin-top: 1rem; animation: gPop .35s ease; }
.g-routecard__title { font-weight: 800; font-size: 1.02rem; color: var(--g-ink); margin-bottom: .3rem; }

/* toast (game layer) */
.g-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(12px); background: var(--navy-800); color: var(--cream-50); font-size: .85rem; font-weight: 600; padding: .6rem 1.1rem; border-radius: var(--radius-pill); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 60; box-shadow: var(--shadow-lg); }
.g-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

@media (prefers-reduced-motion: reduce) {
  .g-clue, .g-reveal, .g-card3d, .g-swipe, .g-routecard { animation: none !important; }
  .g-portal:hover, .g-kad:hover, .g-lego:hover { transform: none; }
  .g-toast { transition: opacity .2s; }
  .g-flipcard__inner { transition: none; }
}

/* =============================================================================
   === CERIA Fasa 6 — jambatan mini-game (.g-*) (Dina audit 2026-07-02) =======
   Sub-page misi (teka/match/kad/gaji/laluan/mitos) naik ke bahasa Ceria
   TANPA rewrite markup. Sekali gus baiki AA: putih atas #E0723C/#1FA8E0 gagal
   4.5:1 → accent jadi ocean-press (lulus by design). Hub g2 dikecualikan di
   mana perlu (:not(.g2)).
   ============================================================================= */
/* 6.1 — Re-point tema: accent biru ARAH; tier flavour → accent2 (bukan fill berteks) */
.g-root, .g-root[data-tier="explorer"], .g-root[data-tier="discoverer"], .g-root[data-tier="navigator"] {
  --g-accent: var(--ocean-press, #1876C9);
  --g-head: var(--navy-900);
  --g-line: #CFEAFB;
}
.g-root[data-tier="explorer"]   { --g-accent2: var(--coral-energy, #FF7A8A); }
.g-root[data-tier="discoverer"] { --g-accent2: var(--teal-action, #1EC8B0); }
.g-root[data-tier="navigator"]  { --g-accent2: var(--violet-spark, #7C5CFF); }

/* 6.2 — Sticker-card depth (rim sky + shadow biru lembut, hover lift) */
.g-root .g-opt, .g-root .g-kad, .g-root .g-swipe,
.g-root .g-reveal, .g-root .g-card3d, .g-root .g-routecard,
.g-root .g-portal, .g-root .g-savedlist div {
  border-color: #CFEAFB; border-radius: 18px;
  box-shadow: 0 8px 20px -8px rgba(11, 31, 74, .16);
}
.g-root .g-opt:hover:not(:disabled), .g-root .g-kad:hover {
  border-color: var(--arah-blue); box-shadow: 0 14px 28px -10px rgba(11, 31, 74, .26);
  transform: translateY(-2px);
}

/* 6.3 — Bubble ARAH putih (identiti sama dgn landing .lbubble / hub .g2-bubble) */
.g-root .g-arah {
  background: #fff; color: var(--navy-900);
  border: 1px solid #CFEAFB; border-radius: 16px 16px 16px 4px;
  box-shadow: 0 8px 20px rgba(21, 119, 176, .15);
}
.g-root .g-arah__msg { color: var(--navy-900); }

/* 6.4 — CTA gradient biru ARAH (padan landing btn--primary) */
.g-root .g-btn--cta {
  background: linear-gradient(135deg, var(--ocean-press), var(--arah-blue) 135%);
  border: 0; border-radius: var(--radius-pill);
  box-shadow: 0 10px 22px -8px rgba(31, 168, 224, .5); font-weight: 800; color: #fff;
}
.g-root .g-btn--cta:hover { background: linear-gradient(135deg, #1568B4, var(--arah-blue) 150%); }

/* 6.5 — State selected = sky tint + teks navy (AA kekal utk SEMUA tier) */
.g-root .g-tierbtn[aria-pressed="true"], .g-root .g-filter.is-on, .g-root .g-lego.is-on {
  background: var(--bright-sky, #DFF5FF); color: var(--navy-900);
  border-color: var(--arah-blue);
}
.g-root .g-pathstep--goal { background: var(--ocean-press); border-color: var(--ocean-press); color: #fff; }

/* 6.6 — Sisa tint cream lama → tint langit; clue = spark kuning (border sahaja) */
.g-root .g-pill, .g-root .g-chip, .g-root .g-simchip,
.g-root .g-why, .g-root .g-archnote, .g-root .g-portal__soon, .g-root .g-flipcard__tag {
  background: var(--soft-sky-mist, #EAF7FF); color: var(--navy-800);
}
.g-root .g-clue { border-left-color: var(--sunny-spark, #FFD84D); box-shadow: 0 4px 12px -6px rgba(11,31,74,.12); }

/* 6.7 — Tipografi + back-link jadi chip */
.g-root .g-h1 { font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2rem); letter-spacing: -.015em; }
.g-root .g-back {
  display: inline-flex; align-items: center; gap: 4px; min-height: 36px;
  background: #fff; border: 1px solid #CFEAFB; border-radius: var(--radius-pill);
  padding: 4px 14px; font-weight: 700; color: var(--navy-800);
  box-shadow: 0 4px 12px -4px rgba(21, 119, 176, .18);
}
.g-root .g-back:hover { background: var(--soft-sky-mist); color: var(--navy-900); text-decoration: none; }

/* 6.8 — Lebar fokus utk SUB-PAGE game sahaja (hub g2 kekal lebar penuh) */
.g-root:not(.g2) { max-width: 46rem; margin-inline: auto; }

/* 6.9 — IZZAT AA/focus fixes */
/* CTA dunia: aksen-atas-tint gagal AA semua 5 dunia (2.16–3.20) → teks navy.
   .g2 prefix = specificity menang atas rule asal yang duduk kemudian dalam fail. */
.g2 .g2-world__cta { color: var(--navy-900); }
/* Tag REALITI: putih-atas-white-wash gagal → wash navy gelap (putih ≥5:1 atas ocean-press+wash) */
.g-root .g-flipcard__tag--real { background: rgba(11, 31, 74, .35); color: #fff; }
/* Aksen sebagai TEKS atas cream/sky → versi ink (lulus 4.5+) */
.g-root .g-newbadge { color: var(--arah-blue-deep); }
.g-root .g-fresh { color: var(--gold-ink); }
.g-root .g-fineprint a, .g-root .g-archnote a { color: var(--arah-blue-deep); }
/* Flipcard sebagai BUTTON (keyboard fix) — reset gaya button default */
button.g-flipcard { display: block; width: 100%; background: transparent; border: 0; padding: 0;
  font: inherit; color: inherit; text-align: inherit; }
/* Ring fokus solid & jelas untuk semua kawalan game (ring global alpha .40 = 1.6:1 lemah) */
.g-root .g-opt:focus-visible, .g-root .g-btn:focus-visible, .g-root .g-lego:focus-visible,
.g-root .g-filter:focus-visible, .g-root .g-tierbtn:focus-visible, .g-root .g-kad:focus-visible,
.g-root .g-back:focus-visible, button.g-flipcard:focus-visible, .g2-tierbtn:focus-visible {
  outline: 3px solid var(--arah-blue-deep); outline-offset: 2px; box-shadow: none;
}

@media (prefers-reduced-motion: reduce) {
  .g-root .g-opt:hover:not(:disabled), .g-root .g-kad:hover { transform: none; }
}

/* =============================================================================
   --- Asesmen UX premium (Navigator flagship) — RASA perjalanan, bukan borang ---
   Presentation-only: tiada logik/skor disentuh. 3 bahagian:
   (1) transisi soalan berarah  (2) progress journey + titik milestone fasa
   (3) butang skala tactile. Token sahaja (tiada hex baru di luar fallback).
   ============================================================================= */

/* (1) Transisi soalan — maju masuk dari kanan, undur masuk dari kiri → rasa bergerak.
   Override animasi qSoloIn asas; kalau JS gagal letak kelas, qSoloIn jadi fallback. */
.q-solo--fwd  { animation: qSlideFwd .34s cubic-bezier(.2,.7,.2,1) both; }
.q-solo--back { animation: qSlideBack .34s cubic-bezier(.2,.7,.2,1) both; }
@keyframes qSlideFwd  { from { opacity: 0; transform: translateX(26px) scale(.99); } to { opacity: 1; transform: none; } }
@keyframes qSlideBack { from { opacity: 0; transform: translateX(-26px) scale(.99); } to { opacity: 1; transform: none; } }

/* (2) Progress journey — bar lebih tinggi, bulat, gradient + kilauan halus bergerak.
   Skop ketat (.run-bar / #run-fill) supaya bar lain (snapshot dsb) tak terkesan. */
.run-bar { height: 10px; border-radius: var(--radius-pill, 999px); overflow: hidden; background: var(--surface-alt, #eef1f4); }
#run-fill { position: relative; border-radius: var(--radius-pill, 999px); transition: width .55s cubic-bezier(.4,0,.2,1); background: linear-gradient(90deg, var(--teal-600), var(--teal-500) 55%, var(--arah-cyan, #2dd4bf)); }
#run-fill::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: translateX(-100%); animation: runSheen 2.2s ease-in-out infinite; }
@keyframes runSheen { 0% { transform: translateX(-100%); } 60%,100% { transform: translateX(220%); } }

/* Titik milestone fasa — bar = jarak dalam fasa ini; titik = seluruh perjalanan. */
.run-dots { display: flex; gap: 6px; margin-top: 8px; }
.run-dot  { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 3px; min-width: 0; }
.run-dot i { width: 100%; height: 4px; border-radius: var(--radius-pill, 999px); background: var(--border); transition: background .3s, box-shadow .3s; }
.run-dot b { font-size: .6rem; font-weight: 700; letter-spacing: .02em; color: var(--text-muted); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; transition: color .3s; }
.run-dot.is-done i { background: var(--teal-500); }
.run-dot.is-done b { color: var(--teal-600); }
.run-dot.is-active i { background: var(--gold-400); box-shadow: 0 0 0 2px var(--warn-100, #fdf3da); animation: runDotPulse 1.6s ease-in-out infinite; }
.run-dot.is-active b { color: var(--navy-900); }
@keyframes runDotPulse { 0%,100% { box-shadow: 0 0 0 2px var(--warn-100, #fdf3da); } 50% { box-shadow: 0 0 0 5px rgba(200,145,28,.18); } }

/* (3) Butang skala tactile — angkat masa hover, tenggelam masa tekan, "pop" bila pilih. */
.q-opt { transition: transform .12s cubic-bezier(.2,.7,.2,1), border-color .15s, background .15s, box-shadow .15s; will-change: transform; }
.q-opt:hover { transform: translateY(-2px); }
.q-opt:active { transform: scale(.95); }
.q-opt.is-on { transform: translateY(-2px); animation: qOptPop .26s cubic-bezier(.2,.7,.2,1); }
@keyframes qOptPop { 0% { transform: scale(.9); } 55% { transform: scale(1.07) translateY(-2px); } 100% { transform: translateY(-2px); } }

@media (max-width: 460px) {
  .run-dot b { display: none; }   /* segmen je di telefon, jimat ruang */
  .run-dots { gap: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  .q-solo--fwd, .q-solo--back, .q-opt.is-on { animation: none; }
  #run-fill::after, .run-dot.is-active i { animation: none; }
  .q-opt:hover, .q-opt:active, .q-opt.is-on { transform: none; }
  #run-fill { transition: none; }
}

/* =============================================================================
   --- Teroka Kerjaya — rasa perjalanan berpandu (sambungan Snapshot Reveal) ---
   Presentation-only: matcher server (RATIFIED) tak disentuh. Token sahaja.
   ============================================================================= */

/* Continuity badge dalam hero — cermin profil pelajar dari snapshot (data, bukan dakwaan). */
.krj-yours { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; justify-content: center; margin-top: var(--space-2); }
.krj-yours__lbl { color: var(--grey-300); font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }

/* Kad muncul berperingkat — rasa "dijumpai", selaras momen Snapshot Reveal. */
.krj-grid--reveal .krj-card { animation: krjCardIn .5s cubic-bezier(.17,.67,.3,1.2) both; }
@keyframes krjCardIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.krj-grid--reveal .krj-card:nth-child(1) { animation-delay: .02s; }
.krj-grid--reveal .krj-card:nth-child(2) { animation-delay: .08s; }
.krj-grid--reveal .krj-card:nth-child(3) { animation-delay: .14s; }
.krj-grid--reveal .krj-card:nth-child(4) { animation-delay: .20s; }
.krj-grid--reveal .krj-card:nth-child(5) { animation-delay: .26s; }
.krj-grid--reveal .krj-card:nth-child(6) { animation-delay: .32s; }
.krj-grid--reveal .krj-card:nth-child(7) { animation-delay: .38s; }
.krj-grid--reveal .krj-card:nth-child(n+8) { animation-delay: .42s; }

/* Kad tactile — angkat masa hover, tenggelam masa tekan (selaras butang asesmen). */
.krj-card { transition: transform .14s cubic-bezier(.2,.7,.2,1), box-shadow .18s, border-color .18s; }
.krj-card:hover { transform: translateY(-3px); }
.krj-card:active { transform: translateY(-1px) scale(.99); }

/* #1 Padanan teratas — destinasi jelas: span penuh + aksen emas + reben mahkota. */
.krj-card.is-top { grid-column: 1 / -1; background: linear-gradient(150deg, var(--gold-50, #fdf6e3), var(--surface) 72%); border-color: var(--gold-500); box-shadow: var(--sim-gold-glow); }
.krj-card.is-top .krj-card__name { font-size: var(--fs-lg); }
.krj-card__top { align-self: flex-start; font-size: var(--fs-xs); font-weight: 800; color: var(--navy-900); background: var(--gold-400); padding: 3px 10px; border-radius: var(--radius-pill); }

@media (prefers-reduced-motion: reduce) {
  .krj-grid--reveal .krj-card { animation: none; }
  .krj-card:hover, .krj-card:active { transform: none; }
}

/* =============================================================================
   --- Pelan Saya (laporan interaktif) — akordion seksyen + checklist 7/30/90 ---
   Presentation-only: card() export & content server tak diubah. Token sahaja.
   ============================================================================= */

/* Akordion: head jadi butang toggle penuh-lebar */
.rsec__toggle { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: var(--space-2);
  background: none; border: 0; padding: 0; cursor: pointer; text-align: left; color: inherit; font: inherit; }
.rsec__title { font-family: var(--font-serif); font-size: var(--fs-lg); font-weight: 700; color: var(--navy-900); line-height: var(--lh-tight); }
.rsec__right { display: inline-flex; align-items: center; gap: var(--space-2); flex-shrink: 0; }
.rsec__chev { transition: transform .3s ease; color: var(--text-muted); font-size: .8em; }
.report-section.is-collapsed .rsec__chev { transform: rotate(-90deg); }

/* Collapse halus guna grid-rows 0fr↔1fr (robust utk kandungan tinggi berubah). */
.rsec__body { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .35s ease; }
.report-section.is-collapsed .rsec__body { grid-template-rows: 0fr; }
.rsec__inner { overflow: hidden; min-height: 0; padding-top: var(--space-2); }

/* Bar kemajuan pelan tindakan */
.plan-progress { background: var(--surface-alt); border-radius: var(--radius); padding: var(--space-3); margin-bottom: var(--space-3); }
.plan-progress__top { display: flex; justify-content: space-between; align-items: center; font-weight: 700; color: var(--navy-900); font-size: var(--fs-sm); margin-bottom: var(--space-2); }
.plan-progress__txt { color: var(--teal-600); font-variant-numeric: tabular-nums; }
.plan-progress .bar__fill { background: linear-gradient(90deg, var(--teal-600), var(--teal-500)); transition: width .45s cubic-bezier(.4,0,.2,1); }

/* Toggle "Tandakan dah mula" — checklist tactile */
.raction__check { display: inline-flex; align-items: center; gap: .5rem; margin-top: var(--space-2);
  padding: .45rem .8rem; cursor: pointer; font-size: var(--fs-sm); font-weight: 700;
  color: var(--text-soft); background: var(--surface); border: 2px solid var(--border-strong); border-radius: var(--radius-pill);
  transition: transform .12s, background .15s, border-color .15s, color .15s; }
.raction__check:hover { border-color: var(--teal-500); }
.raction__check:active { transform: scale(.96); }
.raction__check.is-done { background: var(--teal-500); border-color: var(--teal-600); color: var(--cream-50); }
.raction__box { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px;
  border: 2px solid currentColor; border-radius: 5px; font-size: 12px; font-weight: 900; line-height: 1; }

@media print {
  .report-section.is-collapsed .rsec__body { grid-template-rows: 1fr; }
  .rsec__chev, #toc-all { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rsec__body, .rsec__chev, .plan-progress .bar__fill, .raction__check { transition: none; }
}

/* =============================================================================
   --- Pelan Saya (Seksyen 10) — mission roadmap cinematic skin ---
   Permukaan laporan kekal IVORY; hanya hero band Pelan Saya yang navy.
   Emas = arah · teal = kemajuan. Kemajuan hanya dari checklist sebenar (x/3).
   ============================================================================= */
.plan-hero { position: relative; overflow: hidden; border-radius: var(--radius);
  background: linear-gradient(155deg, var(--navy-900) 0%, var(--navy-800) 62%, #123a52 132%);
  color: var(--ink-dark, #E7EDF7); padding: var(--space-5); margin-bottom: var(--space-4);
  box-shadow: var(--shadow-2, 0 12px 34px rgba(11,26,56,.20)); }
.plan-hero__glow { position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(440px 220px at 84% -14%, rgba(95,208,245,.20), transparent 70%); }
.plan-hero__body { position: relative; }
.plan-hero__eyebrow { margin: 0 0 6px; font-size: var(--fs-xs); font-weight: 800;
  letter-spacing: .16em; color: var(--gold-soft, #E7C778); }
.plan-hero__title { margin: 0 0 6px; font-family: var(--font-serif, Georgia, 'Times New Roman', serif);
  font-size: var(--fs-xl); line-height: 1.2; color: #fff; }
.plan-hero__sub { margin: 0 0 var(--space-4); max-width: 54ch; font-size: var(--fs-sm); color: rgba(255,255,255,.86); }
.plan-hero__ptop { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.plan-hero__pk { font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .08em; color: rgba(255,255,255,.72); }
.plan-hero__pv { font-weight: 800; font-variant-numeric: tabular-nums; color: var(--teal-300, #7fe3d6); }
.plan-hero__track { height: 9px; border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; }
.plan-hero__fill { display: block; height: 100%; width: 0; border-radius: 99px;
  background: linear-gradient(90deg, var(--teal-500), var(--teal-400, #46c9bb));
  transition: width .5s var(--ease-out, cubic-bezier(.4,0,.2,1)); }
.plan-hero__dots { display: flex; gap: 8px; margin-top: 10px; }
.plan-hero__dot { width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.20); border: 1px solid rgba(255,255,255,.32); }
.plan-hero__dot.is-done { background: var(--teal-400, #46c9bb); border-color: var(--teal-300, #7fe3d6);
  box-shadow: 0 0 0 3px rgba(70,201,187,.22); }
/* Locked variant — struktur roadmap sahaja, bukan content peribadi */
.plan-hero__steps { display: flex; flex-wrap: wrap; gap: 8px; margin: 2px 0 0; }
.plan-hero__stepchip { font-size: var(--fs-xs); font-weight: 700; color: rgba(255,255,255,.86);
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16); border-radius: 99px; padding: 5px 12px; }
.plan-hero__lock { display: inline-flex; align-items: center; gap: .4rem; margin-top: var(--space-3);
  font-size: var(--fs-sm); font-weight: 600; color: #fff;
  background: rgba(231,199,120,.16); border: 1px solid rgba(231,199,120,.42); border-radius: 99px; padding: 6px 14px; }

/* Next Best Action — kad menonjol (emas = arah) */
.plan-nba { position: relative; border: 1px solid var(--border); border-left: 4px solid var(--gold-500);
  background: linear-gradient(180deg, var(--surface, #fff), var(--surface-alt, #faf7f0));
  border-radius: var(--radius); padding: var(--space-4) var(--space-5); margin-bottom: var(--space-4);
  box-shadow: var(--shadow-1, 0 4px 14px rgba(11,26,56,.08)); }
.plan-nba__eyebrow { margin: 0 0 4px; font-size: var(--fs-xs); font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase; color: var(--gold-ink, #8A6410); }
.plan-nba__title { display: flex; align-items: center; gap: .55rem; margin: 0 0 4px;
  font-family: var(--font-serif, Georgia, serif); font-size: var(--fs-lg); font-weight: 700; color: var(--navy-900); }
.plan-nba__step { flex: none; width: 26px; height: 26px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--gold-500); color: var(--navy-900);
  font-family: var(--font-sans); font-size: var(--fs-sm); font-weight: 800; }
.plan-nba__task { margin: 0 0 6px; font-size: var(--fs-sm); color: var(--text-soft); }
.plan-nba__hint { margin: 0 0 var(--space-3); font-size: var(--fs-sm); font-style: italic; color: var(--text); }
.plan-nba--done { display: flex; gap: var(--space-3); align-items: flex-start; border-left-color: var(--teal-600); }
.plan-nba--done .plan-nba__ic { flex: none; width: 34px; height: 34px; display: inline-flex; align-items: center;
  justify-content: center; border-radius: 50%; background: var(--teal-500); color: #fff; font-weight: 800; }
.plan-nba__done { margin: 2px 0 0; font-size: var(--fs-sm); color: var(--text-soft); }

/* Mission ribbon pada setiap kad langkah (teal = kemajuan) */
.raction.mroute, .raction { }
.mroute__ribbon { display: inline-flex; align-items: center; gap: .5rem; margin-bottom: var(--space-2);
  padding: 4px 12px 4px 4px; border-radius: 99px; background: var(--surface-alt, #faf7f0); border: 1px solid var(--border); }
.mroute__n { flex: none; width: 22px; height: 22px; display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--navy-900); color: #fff; font-size: var(--fs-xs); font-weight: 800; }
.mroute__ic { font-size: 1rem; line-height: 1; }
.mroute__name { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--navy-800); }

/* Refleksi = "guided growth", bukan homework */
.raction__row--reflect { border-top: 1px solid var(--teal-200, #cdeae6); border-radius: var(--radius-sm);
  background: linear-gradient(180deg, rgba(52,167,158,.07), transparent); padding: .5rem .65rem; margin-top: .35rem; }
.raction__row--reflect .raction__k { color: var(--teal-700, #1f6f66); }

/* Kilau ringkas bila NBA arah ke kad langkah */
.raction.is-flash { animation: ractionFlash 1.1s var(--ease-out, ease); }
@keyframes ractionFlash { 0% { box-shadow: 0 0 0 0 rgba(230,178,62,.55); } 100% { box-shadow: 0 0 0 8px rgba(230,178,62,0); } }

@media (max-width: 520px) {
  .plan-hero { padding: var(--space-4); }
  .plan-nba__title { font-size: var(--fs-base); }
}
@media print {
  /* Jimat dakwat + kekal boleh baca: band navy → jalur cerah bertepi */
  .plan-hero, .plan-hero--locked { background: none !important; color: var(--navy-900) !important;
    border: 1px solid var(--navy-800); box-shadow: none; }
  .plan-hero__glow { display: none; }
  .plan-hero__title, .plan-hero__pv { color: var(--navy-900) !important; }
  .plan-hero__eyebrow { color: var(--navy-800) !important; }
  .plan-hero__sub, .plan-hero__pk { color: #333 !important; }
  .plan-hero__track { background: #e5e7eb; }
  .plan-hero__stepchip, .plan-hero__lock { color: var(--navy-900) !important; border-color: var(--navy-800); background: none; }
  .plan-nba__go { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .plan-hero__fill { transition: none; }
  .raction.is-flash { animation: none; }
}

/* =============================================================================
   --- REPORT FINAL (Sprint 2 S10) — lapisan polish v2-v7 dirata jadi SATU blok ---
   Nilai = keputusan AKHIR cascade v2..v7 (rupa yang Bos dah terima, tiada beza
   visual). Token --report-* kini dalam tokens.css (.mode-reflect, #report-root).
   Skop #report-root kekal → Simulator/Kad/landing tak tersentuh.
   ============================================================================= */
body:has(#report-root) { background: #F1F3F7; }
body:has(#report-root) .page-head { display: none; }   /* dev chrome, prod tak nampak */
/* Dev chrome (dev-only; prod tak nampak) — global, bukan khusus laporan */
.page-head {
  background: transparent; border: 1px dashed var(--border);
  padding: var(--space-2) var(--space-3); margin-block: var(--space-3); opacity: .5; box-shadow: none;
}

/* 1 · Kad + seksyen akordion — putih premium, tepi biru-kelabu, bayang berlapis */
#report-root .card,
#report-root .report-section {
  background: var(--report-card);
  border: 1px solid #E4E9F1;
  box-shadow: 0 1px 2px rgba(16,32,64,.04), 0 8px 24px rgba(16,32,64,.07), 0 24px 48px -24px rgba(16,32,64,.10);
}
#report-root .report-section { border-radius: 18px; }
#report-root .report-section + .report-section { margin-top: 24px; }
#report-root .rsec__title { font-size: var(--fs-xl); color: var(--report-ink); font-family: var(--font-serif, Georgia, serif); letter-spacing: -.01em; }
#report-root .lead { font-size: 1rem; line-height: 1.6; color: var(--report-muted); max-width: 60ch; margin: .35rem 0 1rem; }

/* 2 · Sub-kad — biru-putih sangat halus */
#report-root .rcard {
  background: var(--report-subtle);
  border: 1px solid var(--report-border-soft);
  border-radius: 12px;
  padding: 1.25rem;
}
#report-root .rcard + .rcard { margin-top: 1rem; }
#report-root .rcard h4 { font-size: .9375rem; font-weight: 700; letter-spacing: .01em; color: var(--report-ink); }
#report-root .rcard--interp { border-left: 3px solid var(--report-teal); background: var(--report-blue-wash); }
/* Profil Khusus (kad berpill skor) — baris putih bersih + rel navy nipis */
#report-root .rcard:has(.rcard__head .chip--gold) {
  background: var(--report-card);
  border: 1px solid var(--report-border);
  border-left: 3px solid var(--report-navy-2, #13264D);
  border-radius: 0 12px 12px 0;
  box-shadow: 0 1px 2px rgba(7,26,51,.05);
  padding: 1.25rem;
}
#report-root .rcard:has(.rcard__head .chip--gold) > p { font-size: .9375rem; color: var(--report-muted); }
#report-root .rcard:has(.rcard__head .chip--gold) .rlist { margin-top: .6rem; }
#report-root .rcard:has(.rcard__head .chip--gold) .rlist li { margin-bottom: .35rem; line-height: 1.55; }
#report-root .rcard:has(.rcard__head .chip--gold) .rlist li::marker { color: var(--report-teal); }
#report-root .rcard__head strong { color: var(--report-ink); font-size: 1.0625rem; }

/* Chip = tag premium (uppercase micro-tracking); pill skor kekal tanpa uppercase */
#report-root .chip { text-transform: uppercase; letter-spacing: .04em; font-size: 11px; padding: 4px 11px; line-height: 1.5; }
#report-root .chip--gold {
  background: var(--report-subtle); color: var(--report-ink); font-variant-numeric: tabular-nums;
  border: 1px solid var(--report-border); box-shadow: none; font-weight: 800;
}
#report-root .chip--teal { color: #0F6E56; font-weight: 800; }
#report-root .chip--stub { color: var(--report-muted); border-color: var(--report-border-strong); }
#report-root .rcard__head .chip--gold { text-transform: none; letter-spacing: 0; background: #fff; }

/* Bar — track halus, isi teal lembut */
#report-root .bar__track,
#report-root .sbar .bar__track { height: 8px; background: #EAF0F7; border-radius: 999px; }
#report-root .bar__fill { background: linear-gradient(90deg, #178C7B, #4FD0C4); }  /* Izzat: pangkal ~3.3:1 vs track */
#report-root .bar__label { font-weight: 600; color: var(--report-ink); }
#report-root .sbar__label { color: var(--report-ink); }
#report-root .sbar__val, #report-root .bar__val { color: var(--report-muted); }

/* 3 · Kad tindakan (Pelan Saya) — hampir putih + rel navy slate */
#report-root .raction,
#report-root .raction.mroute {
  background: var(--report-card-warm);
  border: 1px solid var(--report-border);
  border-left: 3px solid var(--report-navy-2, #13264D);
  border-radius: 0 12px 12px 0;
  box-shadow: 0 1px 2px rgba(7,26,51,.04);
}
#report-root .raction { padding: 1.25rem; }
#report-root .raction__row { border-top: 1px solid var(--report-border-soft); }
#report-root .raction__k { color: var(--report-ink); }
#report-root .raction__row p, #report-root .raction__why { color: var(--report-muted); }
#report-root .raction__row--reflect {
  border-top: 1px solid #CFE9E4;
  border-left: 3px solid var(--report-teal);
  background: linear-gradient(180deg, rgba(29,175,154,.06), transparent);
  border-radius: 8px;
  padding: .6rem .75rem;
  margin-top: .5rem;
}
#report-root .raction__row--reflect .raction__k { color: #176B65; }   /* teal GELAP (AA atas wash) */
#report-root .mroute__ribbon { background: #F4F8FC; border-color: var(--report-border-soft); padding: 3px 11px 3px 3px; gap: .4rem; }
#report-root .mroute__n { width: 20px; height: 20px; }
#report-root .mroute__ic { font-size: .9rem; }
#report-root .mroute__name { color: var(--report-ink); font-size: 11px; letter-spacing: .06em; }

/* Checklist — butang premium (bukan checkbox borang) */
#report-root .raction__check {
  border: 1px solid var(--report-border-strong);
  background: linear-gradient(180deg, #FFFFFF, #F5F9FD);
  color: var(--report-muted); box-shadow: 0 1px 2px rgba(7,26,51,.05);
}
#report-root .raction__check:hover { border-color: var(--report-teal); }
#report-root .raction__check.is-done {
  background: linear-gradient(180deg, #0F857A, #0A6157);   /* Izzat: AA — putih atas ni 4.51–7.34:1 */
  border-color: #095049; color: #fff; box-shadow: 0 2px 10px rgba(15,133,122,.30);
}
#report-root .raction__check:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

/* 4 · Hero Pelan (navy) + Next Best Action */
#report-root .plan-hero { box-shadow: 0 12px 30px rgba(7,26,51,.16); }
#report-root .plan-hero::after {
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; z-index: 1;
  background: linear-gradient(180deg, var(--report-champagne-line), var(--report-teal));
}
#report-root .plan-hero__eyebrow { color: var(--report-muted-on-dark); }
#report-root .plan-nba { background: linear-gradient(180deg, #FFFFFF, var(--report-ivory-soft)); border-left: 4px solid var(--report-navy-2, #13264D); }
#report-root .plan-nba__eyebrow { color: #0F6E56; }
#report-root .plan-nba__step { background: var(--report-navy, #0B1A38); color: #fff; }

/* 5 · Nota, locked, TOC */
#report-root .notice { background: var(--report-blue-wash); border-left-color: var(--report-teal); color: var(--report-ink); }
#report-root .notice--teal { background: #E4F5F0; border-left-color: var(--report-teal); }
#report-root .notice:has(a[href^="/dev/"]) {   /* dev-only → baris kaki halus */
  opacity: .4; font-size: 12px; padding: 6px 12px;
  background: transparent; border-left-color: var(--report-border-strong);
}
#report-root .locked { background: var(--report-subtle); border: 1px dashed var(--report-border-strong); }
#report-root .toc__item { border-color: var(--report-border); color: var(--report-ink); }
#report-root .toc__item:hover { background: var(--report-subtle); }

/* Butang primary → navy (bukan emas kuning) */
#report-root .btn--primary { background: var(--report-navy-2, #13264D); color: #fff; box-shadow: 0 8px 20px rgba(11,26,56,.20); }
#report-root .btn--primary:hover { background: var(--report-navy, #0B1A38); }

/* 6 · Peta Kejayaan = kad HERO navy cinematic. Teks ivory/muted; champagne HANYA
   rel/hairline. Teaser terkunci kekal kad terang. */
#report-root .success-map:not(.success-map--locked) {
  background:
    radial-gradient(120% 80% at 78% -10%, rgba(23,156,148,.22), transparent 60%),
    radial-gradient(90% 60% at 12% 110%, rgba(95,180,245,.14), transparent 55%),
    linear-gradient(155deg, #0A1730 0%, #10234A 58%, #123A52 132%);
  border: 0;
  box-shadow: 0 20px 48px rgba(7,20,45,.34), inset 0 1px 0 rgba(255,255,255,.06);
  color: #fff;
  padding: var(--space-6);
  margin-block: 8px 44px;
}
#report-root .success-map:not(.success-map--locked) h3 { color: var(--report-ivory-on-dark); }
#report-root .success-map:not(.success-map--locked) .success-map__head h3 {
  font-family: var(--font-serif, Georgia, serif); font-size: var(--fs-xl); font-weight: 700; letter-spacing: .01em;
}
#report-root .success-map:not(.success-map--locked) .success-map__badge {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; flex: none; border-radius: 50%;
  background: rgba(255,255,255,.06); border: 1px solid var(--report-champagne-line); color: var(--report-ivory-on-dark);
  font-size: 1rem; line-height: 1; box-shadow: 0 2px 8px rgba(0,0,0,.18);
}
#report-root .success-map:not(.success-map--locked) .success-map__k { color: var(--report-muted-on-dark); }
#report-root .success-map:not(.success-map--locked) .success-map__v { color: var(--report-ivory-on-dark); }
#report-root .success-map:not(.success-map--locked) .text-sm,
#report-root .success-map:not(.success-map--locked) .text-muted { color: var(--report-muted-on-dark); }
#report-root .success-map:not(.success-map--locked) .success-map__formula {
  background: linear-gradient(160deg, rgba(255,255,255,.10), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.16);
  border-left: 3px solid var(--report-champagne-line);
  border-radius: 14px; padding: var(--space-4) var(--space-5);
  box-shadow: 0 12px 30px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.08);
  margin-top: var(--space-4);
}
#report-root .success-map:not(.success-map--locked) .success-map__formula .success-map__k { color: var(--report-muted-on-dark); }
#report-root .success-map:not(.success-map--locked) .success-map__formula .success-map__v { font-size: 1.0625rem; line-height: 1.6; }
#report-root .success-map:not(.success-map--locked) .success-map__grid { gap: var(--space-3); margin-top: var(--space-4); }
#report-root .success-map:not(.success-map--locked) .success-map__row {
  background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.10); border-radius: 12px; padding: var(--space-4);
}
#report-root .success-map--locked { background: var(--report-card); border: 1px dashed var(--report-border-strong); box-shadow: 0 1px 2px rgba(7,26,51,.05); }

/* 7 · Hero laporan (Sprint 2 S3) — pulau gelap bertema arketaip: --arc-deep +
   emblem/watak + nama arketaip + keluarga. Tanpa data-archetype → navy lalai. */
#report-root .report-hero {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--space-5); align-items: center;
  padding: var(--space-6); margin-bottom: 44px; border: 0; border-radius: 24px;
  color: #fff; text-align: left;
  background: var(--arc-deep);
  background: linear-gradient(160deg, var(--arc-deep) 0%, color-mix(in srgb, var(--arc-deep) 86%, var(--arc)) 100%);
  box-shadow: 0 20px 48px rgba(7,20,45,.28);
}
#report-root .report-hero::before,
#report-root .report-hero::after { content: ""; position: absolute; border-radius: 50%; pointer-events: none; z-index: -1; border: 2px solid var(--arc-soft); }
#report-root .report-hero::before { right: -90px; top: -90px; width: 300px; height: 300px; opacity: .16; }
#report-root .report-hero::after { right: -24px; top: -24px; width: 170px; height: 170px; opacity: .12; border-width: 1px; }
#report-root .report-hero__art { width: 128px; height: 128px; filter: drop-shadow(0 12px 22px rgba(0,0,0,.30)); }
#report-root .report-hero__art .arc-emblem, #report-root .report-hero__art img { width: 100%; height: 100%; }
#report-root .report-hero__body { min-width: 0; }
#report-root .report-hero__eyebrow {
  margin: 0 0 .45rem; font-size: 12px; font-weight: 800; letter-spacing: .2em;
  text-transform: uppercase; color: var(--arc-soft);
}
#report-root .report-hero__title {
  margin: 0 0 .35rem; font-family: var(--font-serif, Georgia, serif);
  font-size: clamp(2rem, 5.2vw, 2.75rem); line-height: 1.05; letter-spacing: -.015em; color: #fff;
}
#report-root .report-hero__sub { margin: 0 0 .85rem; font-size: 1rem; font-weight: 600; color: var(--arc-soft); }
#report-root .report-hero__lead { margin: 0 0 1.25rem; max-width: 58ch; font-size: .9375rem; line-height: 1.6; color: rgba(255,255,255,.88); }
#report-root .report-hero__lead strong { color: #fff; }
#report-root .report-hero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); }
#report-root .report-hero__cta .btn { border-radius: 12px; min-height: 48px; padding: .8rem 1.4rem; }
#report-root .report-hero__pdf { background: #fff; color: var(--arc-deep); border-color: #fff; box-shadow: 0 8px 20px rgba(0,0,0,.24); }
#report-root .report-hero__pdf:hover { background: var(--arc-tint); }
#report-root .report-hero__print { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
#report-root .report-hero__print:hover { background: rgba(255,255,255,.10); }
#report-root .report-hero__note { margin: .75rem 0 0; font-size: .875rem; line-height: 1.5; color: rgba(255,255,255,.84); }
#report-root .unlock-card__note { font-size: .875rem; }
#report-root .report-hero__mark { width: 100%; height: 100%; }
#report-root .report-hero :focus-visible { outline-color: var(--ring-on-dark); }
@media (max-width: 640px) {
  #report-root .report-hero { grid-template-columns: 1fr; gap: var(--space-4); padding: var(--space-5); border-radius: 20px; }
  #report-root .report-hero__art { width: 88px; height: 88px; }
  #report-root .report-hero__cta .btn { flex: 1 1 100%; }
}

/* 8 · Print — mesra cetak, tiada halaman gelap, jimat dakwat */
@media print {
  body:has(#report-root) { background: #fff; }
  #report-root .card, #report-root .report-section { box-shadow: none; border-color: #d8dee7; }
  #report-root .plan-hero::after { display: none; }
  #report-root .chip--gold { border-color: #cfd6e0; }
  #report-root .report-hero { background: #fff; color: var(--report-ink); border: 1px solid #d8dee7; box-shadow: none; }
  #report-root .report-hero::before, #report-root .report-hero::after { display: none; }
  #report-root .report-hero__title { color: var(--report-ink); }
  #report-root .report-hero__eyebrow, #report-root .report-hero__sub { color: var(--arc-deep); }
  #report-root .report-hero__lead, #report-root .report-hero__note, #report-root .report-hero__lead strong { color: var(--report-ink); }
  #report-root .report-hero__cta, .page-head { display: none; }
  /* Peta Kejayaan navy → jalur cerah bertepi navy (terbaca + jimat dakwat) */
  #report-root .success-map:not(.success-map--locked) { background: #fff; color: var(--report-ink); border: 1px solid #0B1A38; box-shadow: none; }
  #report-root .success-map:not(.success-map--locked) h3,
  #report-root .success-map:not(.success-map--locked) .success-map__v,
  #report-root .success-map:not(.success-map--locked) .text-sm,
  #report-root .success-map:not(.success-map--locked) .text-muted { color: var(--report-ink) !important; }
  #report-root .success-map:not(.success-map--locked) .success-map__k { color: #8A6410 !important; }
  #report-root .success-map:not(.success-map--locked) .success-map__row { background: #f4f6fa; border-color: #d8dee7; }
}

/* =============================================================================
   === CERIA REMAJA PREMIUM — Fasa 1 (primitives) + Fasa 2 (Landing) ==========
   Mode EXPLORE: terang, mesra remaja, mascot ARAH. Scoped #landing-root +
   body:has(#landing-root). Kuning = spark/fill SAHAJA (bukan teks). AA dijaga.
   ============================================================================= */
body:has(#landing-root) {
  background: linear-gradient(180deg, var(--soft-sky-mist) 0%, #FDFEFF 46%, var(--cream-100) 100%);
}
/* Mode EXPLORE shell — page teroka lain kongsi langit yang sama (Fasa 4-5).
   Simulator island gelap DUDUK atas langit cerah = "portal ke angkasa" (v2.1 kekal). */
body:has(.sim-wrap), body:has(.g-root), body:has(.krj), body:has(.kad-wrap) {
  background: linear-gradient(180deg, var(--soft-sky-mist) 0%, #FDFEFF 52%, var(--cream-100) 100%);
}
/* Mode DISCOVER shell — Cermin Diri & Snapshot: langit LEBIH lembut (guided, tenang) */
body:has(.as-hero), body:has(.rev-stage), body:has(.discover-snap) {
  background: linear-gradient(180deg, #F2FAFF 0%, #FEFEFD 40%, var(--cream-100) 100%);
}

/* --- Intro reveal (sekali per sesi; reduced-motion langkau terus) --- */
.lintro { position: fixed; inset: 0; z-index: 999; display: grid; place-items: center;
  background: linear-gradient(160deg, var(--soft-sky-mist), var(--bright-sky));
  animation: lIntroOut .45s ease 1s forwards; }
.lintro svg { width: 96px; height: 96px; animation: lIntroPop .7s var(--ease-spring, cubic-bezier(.34,1.56,.64,1)); }
.lintro__word { margin-top: 10px; font-weight: 800; letter-spacing: .18em; color: var(--navy-900); font-size: var(--fs-sm); animation: lIntroPop .7s .12s both var(--ease-spring, cubic-bezier(.34,1.56,.64,1)); }
@keyframes lIntroPop { from { transform: scale(.55); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes lIntroOut { to { opacity: 0; visibility: hidden; } }

/* --- HERO --- */
#landing-root .lhero { position: relative; overflow: hidden; border-radius: 28px;
  background:
    radial-gradient(560px 340px at 84% 8%, rgba(95,208,245,.38), transparent 62%),
    radial-gradient(420px 300px at 4% 96%, rgba(124,92,255,.13), transparent 60%),
    linear-gradient(165deg, #F4FBFF 0%, var(--bright-sky) 55%, #C9EAFF 100%);
  border: 1px solid #CFEAFB; box-shadow: 0 26px 60px -20px rgba(21,119,176,.28);
  padding: clamp(24px, 5vw, 54px); }
#landing-root .lhero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: var(--space-6); align-items: center; }
#landing-root .lhero__badge { display: inline-flex; align-items: center; gap: .45rem;
  background: #fff; border: 1px solid #CFEAFB; border-radius: var(--radius-pill);
  padding: 7px 14px; font-size: var(--fs-xs); font-weight: 700; color: var(--navy-800);
  box-shadow: 0 4px 14px rgba(21,119,176,.12); margin-bottom: var(--space-4); }
#landing-root .lhero__title { font-family: var(--font-sans); font-weight: 800;
  font-size: clamp(2.1rem, 5.4vw, 3.4rem); line-height: 1.08; letter-spacing: -.02em;
  color: var(--navy-900); margin: 0 0 var(--space-3); }
#landing-root .lhero__title em { font-style: normal; color: var(--ocean-press);
  border-bottom: 6px solid rgba(255,216,77,.9); border-radius: 2px; }
#landing-root .lhero__sub { max-width: 46ch; font-size: var(--fs-lg); line-height: 1.6; color: var(--grey-700); margin: 0 0 var(--space-4); }
#landing-root .lchips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: var(--space-5); }
#landing-root .lchip { display: inline-flex; align-items: center; gap: .4rem;
  background: #fff; border: 1px solid #CFEAFB; border-radius: var(--radius-pill);
  padding: 6px 13px; font-size: var(--fs-xs); font-weight: 700; color: var(--navy-800); }
#landing-root .lchip i { font-style: normal; color: var(--teal-600); }
#landing-root .lhero__cta { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; }
#landing-root .btn--primary { background: linear-gradient(135deg, var(--ocean-press), var(--arah-blue) 135%);
  color: #fff; border: 0; box-shadow: 0 12px 26px -8px rgba(31,168,224,.55); }
#landing-root .btn--primary:hover { background: linear-gradient(135deg, #1568B4, var(--arah-blue) 150%); box-shadow: 0 16px 32px -8px rgba(31,168,224,.6); }
#landing-root .btn--ghost { background: #fff; color: var(--navy-900); border: 1px solid #CFEAFB; box-shadow: 0 4px 14px rgba(21,119,176,.10); }
#landing-root .btn--ghost:hover { background: var(--soft-sky-mist); }
#landing-root .lhero__free { font-size: var(--fs-sm); font-weight: 600; color: var(--grey-700); margin-top: var(--space-3); }

/* Hero art — slot ARAH (placeholder jenama; art penuh datang kemudian) */
#landing-root .lhero__art { position: relative; display: grid; place-items: center; min-height: 300px; }
#landing-root .arah-orb { position: relative; width: min(300px, 78%); aspect-ratio: 1;
  border-radius: 50%; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 42%, rgba(255,255,255,.9), rgba(95,208,245,.35) 55%, rgba(31,168,224,.12) 75%, transparent 78%); }
#landing-root .arah-orb::before, #landing-root .arah-orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; pointer-events: none; }
#landing-root .arah-orb::before { border: 2px solid rgba(31,168,224,.35); }
#landing-root .arah-orb::after { inset: -20px; border: 1.5px dashed rgba(124,92,255,.3); }
#landing-root .arah-orb svg { width: 56%; height: auto; filter: drop-shadow(0 14px 26px rgba(21,119,176,.35)); animation: lFloat 4.5s ease-in-out infinite; }
#landing-root .arah-bot { position: absolute; left: 4%; bottom: 6%; width: 74px; height: 74px; animation: lFloat 3.6s ease-in-out .6s infinite; filter: drop-shadow(0 8px 16px rgba(11,31,74,.25)); }
#landing-root .lbubble { position: absolute; right: 0; top: 2%; max-width: 220px;
  background: #fff; border: 1px solid #CFEAFB; border-radius: 16px 16px 16px 4px;
  padding: 12px 14px; font-size: var(--fs-sm); line-height: 1.5; color: var(--navy-900);
  box-shadow: 0 10px 26px rgba(21,119,176,.18); }
#landing-root .lbubble b { display: block; font-size: var(--fs-xs); letter-spacing: .06em; color: var(--arah-blue-deep); margin-bottom: 2px; }
#landing-root .lspark { position: absolute; font-size: 1rem; color: var(--arah-blue); opacity: .7; animation: lTwinkle 2.6s ease-in-out infinite; pointer-events: none; }
#landing-root .lspark--gold { color: #C79A2B; }
@keyframes lFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes lTwinkle { 0%, 100% { opacity: .25; transform: scale(.85); } 50% { opacity: .9; transform: scale(1.1); } }

/* Float pills bawah hero */
#landing-root .lhero__floats { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: var(--space-6); }
#landing-root .lfloatpill { display: inline-flex; align-items: center; gap: .5rem;
  background: #fff; border: 2px solid #fff; border-radius: var(--radius-pill);
  padding: 9px 18px; font-size: var(--fs-sm); font-weight: 700; color: var(--navy-900);
  box-shadow: 0 10px 22px -6px rgba(11,31,74,.18); }
#landing-root .lfloatpill:nth-child(1) { transform: rotate(-1.6deg); animation: lFloat 5s ease-in-out infinite; }
#landing-root .lfloatpill:nth-child(2) { transform: rotate(1.2deg); animation: lFloat 5.6s ease-in-out .4s infinite; }
#landing-root .lfloatpill:nth-child(3) { transform: rotate(-1deg); animation: lFloat 5.2s ease-in-out .8s infinite; }

/* --- Section heads --- */
#landing-root .lsec { margin-top: clamp(40px, 7vw, 64px); }
#landing-root .lsec__h2 { text-align: center; font-weight: 800; font-size: clamp(1.5rem, 3.4vw, 2.1rem); letter-spacing: -.01em; color: var(--navy-900); margin: 0 0 6px; }
#landing-root .lsec__h2 em { font-style: normal; color: var(--ocean-press); }
#landing-root .lsec__sub { text-align: center; color: var(--grey-700); margin: 0 0 var(--space-6); }

/* --- Portal cards (6 pintu) — sticker premium: tint + rim putih tebal + tilt --- */
#landing-root .lportals { display: grid; grid-template-columns: repeat(auto-fit, minmax(215px, 1fr)); gap: 18px; }
#landing-root .lportal { --lp-a: var(--arah-blue); --lp-bg: linear-gradient(170deg, #E8F7FF, #C9EAFF);
  position: relative; display: flex; flex-direction: column; gap: 8px; min-height: 190px;
  border-radius: 22px; border: 3px solid #fff; background: var(--lp-bg);
  box-shadow: 0 12px 28px -10px rgba(11,31,74,.22); padding: 20px 18px 16px;
  color: var(--navy-900); text-decoration: none;
  transition: transform .22s var(--ease-out), box-shadow .22s; }
#landing-root .lportal:nth-child(odd) { transform: rotate(-1.1deg); }
#landing-root .lportal:nth-child(even) { transform: rotate(1.1deg); }
#landing-root .lportal:hover { transform: translateY(-7px) rotate(0deg); box-shadow: 0 22px 40px -12px rgba(11,31,74,.3); text-decoration: none; }
#landing-root .lportal:focus-visible { outline: 3px solid var(--arah-blue-deep); outline-offset: 3px; }
#landing-root .lportal__icon { width: 52px; height: 52px; display: grid; place-items: center;
  background: #fff; border-radius: 16px; font-size: 1.6rem; box-shadow: 0 6px 14px rgba(11,31,74,.15); }
#landing-root .lportal__t { font-size: var(--fs-lg); font-weight: 800; line-height: 1.2; }
#landing-root .lportal__d { font-size: var(--fs-sm); line-height: 1.5; color: var(--grey-700); flex: 1; }
#landing-root .lportal__go { align-self: flex-end; width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 50%; background: var(--lp-a); color: #fff; font-weight: 800; }
#landing-root .lportal--kad { --lp-a: var(--violet-spark); --lp-bg: linear-gradient(170deg, #F1EDFF, #DCD2FF); }
#landing-root .lportal--gal { --lp-a: #5B54E8; --lp-bg: linear-gradient(170deg, #ECEBFF, #CFCDFC); }
#landing-root .lportal--ker { --lp-a: #E85D75; --lp-bg: linear-gradient(170deg, #FFEFF1, #FFD3DA); }
#landing-root .lportal--cer { --lp-a: #B8841E; --lp-bg: linear-gradient(170deg, #FFF7E0, #FFE9A8); }
#landing-root .lportal--pel { --lp-a: #12907F; --lp-bg: linear-gradient(170deg, #E4FBF4, #BFF2E4); }

/* --- 5 langkah bersama ARAH --- */
#landing-root .lsteps { border-radius: 26px; background: #fff; border: 1px solid #D9EEFB;
  box-shadow: 0 16px 36px -14px rgba(21,119,176,.2); padding: clamp(22px, 4vw, 36px); }
#landing-root .lsteps__row { display: grid; grid-template-columns: 86px 1fr; gap: var(--space-5); align-items: center; }
#landing-root .lsteps__bot { width: 86px; height: 86px; animation: lFloat 4s ease-in-out infinite; }
#landing-root .lsteps__list { display: flex; gap: 6px; justify-content: space-between; flex-wrap: wrap; }
#landing-root .lstep { position: relative; flex: 1 1 110px; min-width: 110px; text-align: center; padding-top: 4px; }
#landing-root .lstep + .lstep::before { content: ""; position: absolute; top: 22px; left: calc(-50% + 24px); width: calc(100% - 48px);
  border-top: 2px dashed #BFDDF2; }
#landing-root .lstep__n { position: relative; z-index: 1; width: 40px; height: 40px; margin: 0 auto 8px; display: grid; place-items: center;
  border-radius: 50%; color: #fff; font-weight: 800; background: var(--ls-c, var(--arah-blue)); box-shadow: 0 6px 14px rgba(11,31,74,.2); }
#landing-root .lstep:nth-child(1) { --ls-c: #1876C9; }
#landing-root .lstep:nth-child(2) { --ls-c: #12907F; }
#landing-root .lstep:nth-child(3) { --ls-c: #6A48F2; }
#landing-root .lstep:nth-child(4) { --ls-c: #D13B56; }
#landing-root .lstep:nth-child(5) { --ls-c: #27793B; }  /* AA: putih atas ni ≥4.5 */
#landing-root .lstep__t { font-weight: 800; font-size: var(--fs-sm); color: var(--navy-900); }
#landing-root .lstep__b { font-size: var(--fs-xs); color: var(--grey-700); line-height: 1.45; margin-top: 2px; }

/* --- Trust ibu bapa & sekolah --- */
#landing-root .ltrust { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
#landing-root .ltrust__card { background: #fff; border: 1px solid #D9EEFB; border-radius: 18px; padding: 18px;
  box-shadow: 0 8px 20px -8px rgba(21,119,176,.16); }
#landing-root .ltrust__ic { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px;
  background: var(--soft-sky-mist); font-size: 1.25rem; margin-bottom: 10px; }
#landing-root .ltrust__t { font-weight: 800; color: var(--navy-900); font-size: var(--fs-sm); margin-bottom: 3px; }
#landing-root .ltrust__b { font-size: var(--fs-xs); line-height: 1.5; color: var(--grey-700); }

/* --- Final CTA band --- */
#landing-root .lfinal { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-4);
  border-radius: 26px; padding: clamp(24px, 4.5vw, 40px);
  background: radial-gradient(420px 240px at 88% -20%, rgba(95,208,245,.35), transparent 60%),
    linear-gradient(135deg, #1876C9, #6A48F2);
  color: #fff; box-shadow: 0 22px 48px -16px rgba(26,66,158,.45); }
#landing-root .lfinal__h { font-weight: 800; font-size: clamp(1.25rem, 2.6vw, 1.7rem); margin: 0 0 4px; }
#landing-root .lfinal__s { margin: 0; color: #EAF7FF; font-size: var(--fs-base); }
#landing-root .btn--sunny { background: var(--sunny-spark); color: var(--navy-900); border: 0;
  box-shadow: 0 12px 26px -8px rgba(255,216,77,.55); font-weight: 800; }
#landing-root .btn--sunny:hover { background: #FFE070; }
#landing-root .lfinal__bot { width: 72px; height: 72px; flex: none; animation: lFloat 3.8s ease-in-out infinite; }

/* --- Responsive --- */
@media (max-width: 860px) {
  #landing-root .lhero__grid { grid-template-columns: 1fr; }
  #landing-root .lhero__art { min-height: 250px; order: -1; }
  #landing-root .lbubble { position: static; margin: 0 auto var(--space-3); }
  #landing-root .lsteps__row { grid-template-columns: 1fr; }
  #landing-root .lsteps__bot { margin-inline: auto; }
  #landing-root .lstep + .lstep::before { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .lintro { animation-duration: .01s; animation-delay: .3s; }
  .lintro svg, .lintro__word { animation: none; }
  #landing-root .arah-orb svg, #landing-root .arah-bot, #landing-root .lfloatpill,
  #landing-root .lsteps__bot, #landing-root .lfinal__bot, #landing-root .lspark { animation: none; }
  #landing-root .lportal, #landing-root .lportal:hover { transform: none; transition: none; }
}

/* =============================================================================
   === GALAKSI KERJAYA — Adventure Hub (Ceria Remaja Premium, Fasa 4) =========
   "Peta Misi Masa Depan". TIADA XP/streak/lencana kunci — jejak aksi sebenar.
   ============================================================================= */
.g2 .lspark { position: absolute; font-size: 1rem; color: var(--arah-blue); opacity: .7; animation: lTwinkle 2.6s ease-in-out infinite; pointer-events: none; }
.g2 .lspark--gold { color: #C79A2B; }

.g2-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-4);
  align-items: center; border-radius: 26px; border: 1px solid #CFEAFB; padding: clamp(20px, 4vw, 34px);
  background: radial-gradient(420px 260px at 88% 0%, rgba(95,208,245,.35), transparent 62%),
    linear-gradient(165deg, #F4FBFF, var(--bright-sky) 60%, #C9EAFF);
  box-shadow: 0 20px 46px -18px rgba(21,119,176,.28); }
.g2-hero__bot { width: 72px; flex: none; animation: lFloat 4s ease-in-out infinite; }
.g2-h1 { font-weight: 800; font-size: clamp(1.6rem, 3.6vw, 2.2rem); letter-spacing: -.015em; color: var(--navy-900); margin: 0 0 4px; }
.g2-sub { margin: 0 0 10px; max-width: 52ch; color: var(--grey-700); font-size: var(--fs-base); line-height: 1.55; }
.g2-bubble { display: inline-block; background: #fff; border: 1px solid #CFEAFB; border-radius: 14px 14px 14px 4px;
  padding: 9px 13px; font-size: var(--fs-sm); color: var(--navy-900); box-shadow: 0 8px 20px rgba(21,119,176,.15); }
.g2-bubble b { display: block; font-size: 10px; letter-spacing: .08em; color: var(--arah-blue-deep); text-transform: uppercase; }
.g2-tierpick { display: flex; flex-direction: column; gap: 6px; }
.g2-tierbtn { border: 1px solid #CFEAFB; background: #fff; border-radius: var(--radius-pill); padding: 5px 13px;
  font-size: var(--fs-xs); font-weight: 700; color: var(--grey-700); cursor: pointer; }
.g2-tierbtn[aria-pressed="true"] { background: var(--bright-sky); border-color: var(--arah-blue); color: var(--navy-900); }

/* Jejak Kompas — stamp aksi sebenar */
.g2-trail { display: flex; flex-wrap: wrap; gap: 10px; margin-top: var(--space-4); }
.g2-stamp { display: inline-flex; align-items: center; gap: .45rem; background: #fff; border: 2px dashed #BFDDF2;
  border-radius: var(--radius-pill); padding: 8px 16px; font-size: var(--fs-sm); color: var(--navy-900); font-weight: 600;
  box-shadow: 0 6px 16px -6px rgba(11,31,74,.15); }
.g2-trail--empty { align-items: center; gap: 10px; background: #fff; border: 2px dashed #BFDDF2; border-radius: 18px;
  padding: 12px 16px; color: var(--grey-700); font-size: var(--fs-sm); display: flex; }
.g2-trail-bot { width: 40px; flex: none; }
.g2-note { margin: var(--space-3) 0 0; font-size: var(--fs-sm); color: var(--grey-700); }

.g2-h2 { font-weight: 800; font-size: clamp(1.2rem, 2.6vw, 1.5rem); color: var(--navy-900); margin: clamp(26px, 5vw, 40px) 0 2px; }
.g2-h2sub { margin: 0 0 var(--space-4); color: var(--grey-700); font-size: var(--fs-sm); }

/* Dunia — portal berwarna (sticker premium) */
.g2-worlds { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 14px; }
.g2-world { display: flex; flex-direction: column; gap: 6px; border-radius: 20px; border: 3px solid #fff;
  background: var(--gw-bg); padding: 16px 15px; text-decoration: none; color: var(--navy-900);
  box-shadow: 0 10px 24px -10px rgba(11,31,74,.22); transition: transform .22s var(--ease-out), box-shadow .22s; }
.g2-world:nth-child(odd) { transform: rotate(-1deg); }
.g2-world:nth-child(even) { transform: rotate(1deg); }
.g2-world:hover { transform: translateY(-6px) rotate(0); box-shadow: 0 20px 36px -12px rgba(11,31,74,.3); text-decoration: none; }
.g2-world:focus-visible { outline: 3px solid var(--arah-blue-deep); outline-offset: 3px; }
.g2-world__ic { width: 46px; height: 46px; display: grid; place-items: center; background: #fff; border-radius: 14px;
  font-size: 1.4rem; box-shadow: 0 5px 12px rgba(11,31,74,.15); }
.g2-world__t { font-size: var(--fs-base); font-weight: 800; line-height: 1.25; }
.g2-world__cta { font-size: var(--fs-xs); font-weight: 700; color: var(--gw-acc); }

/* Papan Misi — tile pengembaraan */
.g2-missions { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 14px; }
.g2-mission { display: flex; align-items: flex-start; gap: 12px; border-radius: 18px; border: 2px solid #fff;
  background: #fff; padding: 15px 16px; text-decoration: none; color: var(--navy-900);
  border-left: 5px solid var(--gm-acc); box-shadow: 0 10px 24px -10px rgba(11,31,74,.18);
  transition: transform .2s var(--ease-out), box-shadow .2s; }
a.g2-mission:hover { transform: translateY(-5px); box-shadow: 0 18px 32px -12px rgba(11,31,74,.28); text-decoration: none; }
.g2-mission:focus-visible { outline: 3px solid var(--arah-blue-deep); outline-offset: 3px; }
.g2-mission__ic { width: 44px; height: 44px; flex: none; display: grid; place-items: center; border-radius: 13px;
  background: color-mix(in srgb, var(--gm-acc) 12%, #fff); font-size: 1.3rem; }
.g2-mission__body { flex: 1; min-width: 0; }
.g2-mission__body b { display: block; font-size: var(--fs-base); font-weight: 800; margin-bottom: 2px; }
.g2-mission__body span { font-size: var(--fs-xs); color: var(--grey-700); line-height: 1.45; }
.g2-mission__go { align-self: center; width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  border-radius: 50%; background: var(--gm-acc); color: #fff; font-weight: 800; }
.g2-mission.is-done { border-color: #BFEFE1; background: #F3FEFA; }
.g2-mission__done { flex: none; align-self: center; font-size: var(--fs-xs); font-weight: 800; color: #0F6E56;
  background: #DDF6F1; border-radius: var(--radius-pill); padding: 4px 10px; }
.g2-mission--soon { opacity: .78; background: #FBFDFF; border-style: dashed; border-color: #CFE0EF; }
.g2-mission__soon { align-self: center; flex: none; font-size: var(--fs-xs); font-weight: 700; color: var(--grey-700);
  background: var(--grey-100); border-radius: var(--radius-pill); padding: 4px 11px; }

/* Jambatan ke Cermin Diri */
.g2-bridge { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: clamp(24px, 4vw, 36px);
  border-radius: 20px; border: 1px solid #CFEAFB; background: linear-gradient(135deg, #F4FBFF, var(--bright-sky));
  padding: 16px 20px; box-shadow: 0 12px 28px -12px rgba(21,119,176,.25); }
.g2-bridge__bot { width: 46px; flex: none; animation: lFloat 3.6s ease-in-out infinite; }
.g2-bridge p { flex: 1; min-width: 220px; margin: 0; color: var(--navy-900); font-size: var(--fs-base); }
.g2-bridge .btn--primary { background: linear-gradient(135deg, var(--ocean-press), var(--arah-blue) 135%); color: #fff; border: 0;
  box-shadow: 0 10px 22px -8px rgba(31,168,224,.5); }

.g2-fineprint { margin-top: clamp(24px, 4vw, 36px); font-size: var(--fs-xs); color: var(--grey-700); }
.g2-reset { margin-left: 10px; border: 1px solid var(--border-strong); background: transparent; border-radius: var(--radius-pill);
  padding: 3px 11px; font-size: var(--fs-xs); color: var(--grey-700); cursor: pointer; }
.g2-reset:hover { background: var(--grey-50); }

@media (max-width: 760px) {
  .g2-hero { grid-template-columns: 1fr; text-align: left; }
  .g2-hero__bot { width: 58px; }
  .g2-tierpick { flex-direction: row; flex-wrap: wrap; }
}
@media (prefers-reduced-motion: reduce) {
  .g2 .lspark, .g2-hero__bot, .g2-bridge__bot { animation: none; }
  .g2-world, .g2-world:hover, a.g2-mission, a.g2-mission:hover { transform: none; transition: none; }
}

/* =============================================================================
   --- Intro Asesmen — pintu masuk perjalanan (bukan borang) ---
   Nota: intro kini TIER-FIRST (#tier-cards + #mode-zone); dropdown #form-select
   lama dah bersara. Blok gaya tier di bawah, label "TIER-FIRST INTRO".
   ============================================================================= */
.as-hero { text-align: center; background: linear-gradient(160deg, var(--navy-900), var(--navy-800) 70%, var(--teal-600)); color: var(--cream-50); border-radius: var(--radius-lg); padding: var(--space-6) var(--space-5); display: grid; justify-items: center; gap: var(--space-2); margin-bottom: var(--space-4); }
.as-hero__emblem { display: inline-block; width: 60px; height: 60px; }
.as-hero .eyebrow { color: var(--gold-400); }
.as-hero__title { font-family: var(--font-serif); font-size: var(--fs-3xl); line-height: var(--lh-tight); color: var(--cream-50); margin: 0; }
.as-hero__lead { color: var(--grey-200); max-width: 44ch; margin: 0; line-height: var(--lh-snug); }
.as-section-h { font-size: var(--fs-lg); color: var(--navy-900); margin: 0; }

/* Strip "Perjalanan kamu" — 4 langkah, sama bahasa visual dengan run-page dots */
.as-journey { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-2); }
.as-step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 3px; padding: var(--space-4) var(--space-1) var(--space-3); background: var(--surface-alt); border-radius: var(--radius); }
.as-step__n { position: absolute; top: 6px; left: 9px; font-size: var(--fs-xs); font-weight: 800; color: var(--text-muted); }
.as-step__ic { font-size: 1.5rem; line-height: 1; }
.as-step__t { font-weight: 800; color: var(--navy-900); font-size: var(--fs-sm); }
.as-step__d { font-size: var(--fs-xs); color: var(--text-muted); line-height: 1.25; }
@media (max-width: 520px) { .as-journey { grid-template-columns: repeat(2, 1fr); } }

.as-howto[open] { padding-bottom: var(--space-1); }
.as-howto .scale { margin-top: var(--space-2); }
.as-perks { margin: 0; }
.as-start { font-size: var(--fs-lg); padding: 14px 28px; }

/* --- TIER-FIRST INTRO --------------------------------------------------------
   Step 1: kad kohort (radiogroup) + detail chips; Step 2: zon sesi adaptif.
   Mode DISCOVER (lembut) — guna token sedia ada sahaja, tiada warna baru.      */
.tier-grid { display: grid; gap: var(--space-3); grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr)); }
.tier-card {
  position: relative; display: flex; flex-direction: column; gap: 2px; text-align: left; cursor: pointer;
  min-height: 44px; padding: var(--space-4); border: 2px solid var(--border); border-radius: var(--radius);
  background: var(--surface); transition: var(--transition);
}
.tier-card:hover { border-color: var(--border-strong); }
.tier-card:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }
.tier-card.is-selected { border-color: var(--teal-500); background: var(--success-100); box-shadow: 0 0 0 3px var(--ring-soft); }
.tier-card__check { position: absolute; top: var(--space-2); right: var(--space-3); font-weight: 800; color: var(--teal-600); opacity: 0; transition: var(--transition); }
.tier-card.is-selected .tier-card__check { opacity: 1; }
.tier-card__ic { font-size: 1.35rem; line-height: 1; }
.tier-card__label { font-weight: 700; color: var(--navy-900); font-size: var(--fs-base); }
.tier-card__sub { font-size: var(--fs-xs); color: var(--text-muted); }
/* "Akan datang" — tier dewasa dilumpuhkan (tiada instrumen 18+ lagi). Tak boleh pilih. */
.tier-card--soon { cursor: not-allowed; opacity: .55; }
.tier-card--soon:hover { border-color: var(--border); }
.tier-card--soon .tier-card__sub { font-weight: 700; color: var(--gold-ink); }

/* Detail chips ("Tingkatan berapa?") — asas .krj-chip; sub-selection bawah grid */
.tier-detail { margin-top: var(--space-3); display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; }
.tier-detail__label { font-size: var(--fs-sm); font-weight: 700; color: var(--text-soft); }
.tier-detail__chips { display: inline-flex; flex-wrap: wrap; gap: var(--space-2); }
.tier-chip.is-on { background: var(--teal-600); color: var(--cream-50); border-color: var(--teal-600); }
.tier-chip:focus-visible { outline: 3px solid var(--ring); outline-offset: 2px; }

/* Step 2 — placeholder (belum pilih tier) & kad tunggal (lower/primary) */
.mode-card--placeholder { border-style: dashed; cursor: default; background: var(--surface-alt); }
.mode-card--placeholder:hover { border-color: var(--border); }
.mode-card--single { cursor: default; }
.mode-card--single:hover { border-color: var(--teal-500); }
.mode-card__check { font-weight: 800; color: var(--teal-600); opacity: 0; }
.mode-card.is-selected .mode-card__check { opacity: 1; }
.mode-card__foot { font-size: var(--fs-xs); color: var(--text-muted); margin: var(--space-2) 0 0; }

/* Butang Mula redup bila belum ada tier (masih clickable → trigger warning) */
.as-start[aria-disabled="true"] { opacity: .55; }

/* =============================================================================
   --- Nav 2-Zon (Teroka Percuma / Kenali Diri) — kejelasan premium ---
   Presentation sahaja. Zon MAIN = teal (terbuka, main-bebas); Zon DIRI = emas
   (dipercayai, dilindungi 🔒). Desktop = dropdown mega-menu; mobile = grouped.
   ============================================================================= */
.navzone { position: relative; flex: none; }
.navzone__head {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; cursor: pointer;
  background: none; border: 1px solid transparent; border-radius: var(--radius-pill);
  font: inherit; font-weight: 700; font-size: var(--fs-sm); color: var(--text-soft);
  padding: var(--space-2) var(--space-3); white-space: nowrap; transition: var(--transition);
}
.navzone__head:hover { color: var(--navy-900); background: var(--surface-alt); }
.navzone__lock { font-size: .82em; }
.navzone__caret { font-size: .7em; transition: transform .2s var(--ease-out); }
.navzone.is-open .navzone__caret { transform: rotate(180deg); }
.navzone--play .navzone__head { color: var(--teal-600); }
.navzone--play .navzone__head:hover, .navzone--play.is-open .navzone__head { background: var(--success-100); border-color: var(--teal-500); color: var(--teal-600); }
.navzone--know .navzone__head { color: var(--gold-ink); }
.navzone--know .navzone__head:hover, .navzone--know.is-open .navzone__head { background: var(--warn-100); border-color: var(--gold-500); color: var(--gold-ink); }
.navzone__items { display: flex; flex-direction: column; }

@media (min-width: 821px) {
  .nav { overflow: visible; -webkit-mask-image: none; mask-image: none; }  /* elak clip dropdown */
  .navzone__items {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 244px; gap: 2px; display: none;
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
    box-shadow: var(--shadow); padding: 6px; z-index: 60;
  }
  .navzone.is-open .navzone__items { display: flex; animation: navPop .18s var(--ease-out); }
  .navzone--play .navzone__items { border-top: 3px solid var(--teal-500); }
  .navzone--know .navzone__items { border-top: 3px solid var(--gold-500); }
  .navzone__items .nav__link { border-radius: var(--radius-sm); padding: 10px 12px; white-space: nowrap; }
}
@keyframes navPop { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (max-width: 820px) {
  .appbar.is-nav-open .navzone { position: static; width: 100%; }
  .appbar.is-nav-open .navzone__head { width: 100%; justify-content: flex-start; border-radius: var(--radius-sm);
    text-transform: uppercase; letter-spacing: .06em; font-size: var(--fs-xs); background: none; }
  .appbar.is-nav-open .navzone--play .navzone__head { color: var(--teal-600); }
  .appbar.is-nav-open .navzone--know .navzone__head { color: var(--gold-ink); }
  .appbar.is-nav-open .navzone__caret { display: none; }
  .appbar.is-nav-open .navzone__items { display: flex; padding-left: 12px; margin: 2px 0 8px 12px; gap: 2px; border-left: 2px solid var(--border); }
  .appbar.is-nav-open .navzone--play .navzone__items { border-left-color: var(--teal-500); }
  .appbar.is-nav-open .navzone--know .navzone__items { border-left-color: var(--gold-500); }
  .appbar.is-nav-open .navzone__items .nav__link { display: block; }
}
@media (prefers-reduced-motion: reduce) { .navzone.is-open .navzone__items { animation: none; } .navzone__caret { transition: none; } }

/* =============================================================================
   --- Simulator: Orbit 5-Dunia (cinematic rebuild — dark island sedia ada) ---
   Presentation-only. Guna token cosmic/world; label jujur (tiada % reka).
   ============================================================================= */
.sim-worlds-sec { scroll-margin-top: 80px; }
.sim-orbit-stage { position: relative; aspect-ratio: 1/1; max-width: 460px; margin: var(--space-3) auto 0; }
.sim-orbit-core { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle at 40% 34%, var(--cosmic-core), #0b1c3d 70%); display: grid; place-items: center;
  box-shadow: 0 0 30px rgba(95,208,245,.4), inset 0 0 20px rgba(95,208,245,.3); animation: simCore 4s ease-in-out infinite; }
.sim-orbit-core .arah { width: 46px; height: 46px; }
@keyframes simCore { 0%,100% { box-shadow: 0 0 26px rgba(95,208,245,.38), inset 0 0 18px rgba(95,208,245,.28); } 50% { box-shadow: 0 0 46px rgba(95,208,245,.62), inset 0 0 24px rgba(95,208,245,.45); } }
.sim-orbit-rotor { position: absolute; inset: 0; transform-origin: 50% 50%; animation: simOrbit 140s linear infinite; }
.sim-orbit-stage:hover .sim-orbit-rotor { animation-play-state: paused; }
.sim-world { position: absolute; transform: translate(-50%,-50%); width: 124px; cursor: pointer; background: none; border: 0; padding: 0; z-index: 2; }
.sim-world__inner { display: block; text-align: center; animation: simOrbitRev 140s linear infinite; transform-origin: 50% 50%; transition: transform .25s var(--ease-out); }
.sim-orbit-stage:hover .sim-world__inner { animation-play-state: paused; }
.sim-world:hover .sim-world__inner, .sim-world.is-sel .sim-world__inner { transform: scale(1.09); }
.sim-world__orb { width: 58px; height: 58px; margin: 0 auto 7px; border-radius: 50%; display: grid; place-items: center; font-size: 24px;
  background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.2), rgba(10,20,44,.96) 66%);
  border: 1px solid var(--line-dark-2); box-shadow: 0 6px 18px rgba(0,0,0,.4); transition: .25s var(--ease-out); }
.sim-world:hover .sim-world__orb { border-color: var(--wacc); box-shadow: 0 0 24px -4px var(--wacc); }
.sim-world.is-near .sim-world__orb { box-shadow: 0 0 20px -5px var(--wacc); }
.sim-world.is-sel .sim-world__orb { border-color: var(--wacc); box-shadow: 0 0 0 3px rgba(255,255,255,.14), 0 0 30px -2px var(--wacc); }
.sim-world__name { font-size: .74rem; font-weight: 700; color: var(--ink-dark); line-height: 1.2; }
.sim-world__sub { font-size: .66rem; font-weight: 700; color: var(--ink-dark-mute); display: block; margin-top: 1px; }
.sim-world.is-near .sim-world__sub { color: var(--gold-400); }
.sim-world:focus-visible { outline: none; }
.sim-world:focus-visible .sim-world__orb { outline: 3px solid var(--ring-on-dark); outline-offset: 3px; }
.sim-orbit-note { text-align: center; color: var(--ink-dark-mute); font-size: var(--fs-xs); margin-top: var(--space-3); }
.sim-world-filter { display: flex; align-items: center; gap: var(--space-2); flex-wrap: wrap; margin-bottom: var(--space-3); }
.sim-world-clear { background: none; border: 1px solid var(--line-dark-2); color: var(--ink-dark-soft); border-radius: var(--radius-pill); padding: 5px 12px; font: inherit; font-size: var(--fs-xs); font-weight: 700; cursor: pointer; min-height: 40px; }
.sim-world-clear:hover { background: var(--glass-d2); }
@keyframes simOrbit { to { transform: rotate(360deg); } }
@keyframes simOrbitRev { to { transform: rotate(-360deg); } }
@media (max-width: 640px) {
  .sim-orbit-rotor, .sim-world__inner { animation: none; }
  .sim-orbit-stage { max-width: 340px; }
  .sim-world { width: 96px; }
  .sim-world__name { font-size: .66rem; }
}
@media (prefers-reduced-motion: reduce) {
  .sim-orbit-rotor, .sim-world__inner, .sim-orbit-core { animation: none; }
}

/* --- Simulator v2: panel dunia + beam sambungan + reveal kad berperingkat --- */
.sim-orbit-beam { width: 3px; height: 0; margin: 8px auto 0; border-radius: 2px; background: var(--wacc, transparent); opacity: 0; transition: height .3s var(--ease-out), opacity .3s; }
.sim-orbit-beam.is-on { height: 30px; opacity: .9; box-shadow: 0 0 14px var(--wacc); }
.sim-world-panel { display: flex; align-items: center; gap: 12px; padding: 12px 15px; border-radius: var(--radius);
  background: linear-gradient(120deg, rgba(255,255,255,.06), rgba(255,255,255,.015)); border: 1px solid var(--line-dark-2); border-left: 3px solid var(--wacc); animation: navPop .3s var(--ease-out); }
.sim-world-panel__orb { width: 44px; height: 44px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 22px;
  background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.2), rgba(10,20,44,.9) 66%); border: 1px solid var(--wacc); box-shadow: 0 0 18px -6px var(--wacc); }
.sim-world-panel__body { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.sim-world-panel__body b { color: var(--ink-dark); font-size: var(--fs-base); line-height: 1.2; }
.sim-world-panel__sub { color: var(--wacc); font-size: var(--fs-xs); font-weight: 700; }
.sim-cards--reveal .sim-card { animation: simCardPop .45s var(--ease-out) both; }
@keyframes simCardPop { from { opacity: 0; transform: translateY(12px) scale(.98); } to { opacity: 1; transform: none; } }
.sim-cards--reveal .sim-card:nth-child(1){animation-delay:.02s}
.sim-cards--reveal .sim-card:nth-child(2){animation-delay:.06s}
.sim-cards--reveal .sim-card:nth-child(3){animation-delay:.10s}
.sim-cards--reveal .sim-card:nth-child(4){animation-delay:.14s}
.sim-cards--reveal .sim-card:nth-child(5){animation-delay:.18s}
.sim-cards--reveal .sim-card:nth-child(6){animation-delay:.22s}
.sim-cards--reveal .sim-card:nth-child(n+7){animation-delay:.26s}
@media (prefers-reduced-motion: reduce) {
  .sim-orbit-beam { transition: none; }
  .sim-world-panel { animation: none; }
  .sim-cards--reveal .sim-card { animation: none; }
}

/* --- Simulator v2.1 polish: hero, orbit premium, briefing panel, mobile carousel --- */
.sim-hero { position: relative; overflow: hidden; }
.sim-hero > * { position: relative; z-index: 1; }
.sim-hero__stars { position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(1.4px 1.4px at 20% 30%, #fff, transparent), radial-gradient(1.4px 1.4px at 72% 60%, #cfe6ff, transparent), radial-gradient(1px 1px at 45% 82%, #fff, transparent), radial-gradient(1px 1px at 85% 24%, #ffe3ab, transparent), radial-gradient(1.4px 1.4px at 58% 12%, #fff, transparent); background-repeat: no-repeat; }
.sim-hero::after { content: ""; position: absolute; z-index: 0; left: 50%; top: -34%; width: 520px; height: 520px; transform: translateX(-50%); pointer-events: none;
  background: radial-gradient(circle, rgba(95,208,245,.15), transparent 62%); }
.sim-hero__title { font-family: var(--font-serif); letter-spacing: -.01em; }
.sim-hero__intro { color: var(--ink-dark-soft); font-style: italic; max-width: 46ch; margin-inline: auto; }
.sim-hero__arah { filter: drop-shadow(0 0 16px rgba(95,208,245,.4)); }

.sim-orbit-stage::before { content: ""; position: absolute; inset: 6%; z-index: 0; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(95,208,245,.10), transparent 62%); }
.sim-world.is-sel .sim-world__name { color: #fff; }
.sim-orbit-beam.is-on { animation: simBeam 1.8s ease-in-out infinite; }
@keyframes simBeam { 0%,100% { opacity: .55; } 50% { opacity: 1; } }

.sim-brief { border-radius: var(--radius-lg); border: 1px solid var(--line-dark-2); border-left: 3px solid var(--wacc);
  background: linear-gradient(150deg, rgba(255,255,255,.07), rgba(255,255,255,.02)); padding: 16px 18px; animation: navPop .3s var(--ease-out); }
.sim-brief__head { display: flex; align-items: center; gap: 12px; }
.sim-brief__orb { width: 46px; height: 46px; flex: none; border-radius: 50%; display: grid; place-items: center; font-size: 23px;
  background: radial-gradient(circle at 34% 30%, rgba(255,255,255,.2), rgba(10,20,44,.9) 66%); border: 1px solid var(--wacc); box-shadow: 0 0 20px -6px var(--wacc); }
.sim-brief__title { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.sim-brief__eyebrow { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--wacc); }
.sim-brief__title b { color: var(--ink-dark); font-size: var(--fs-lg); font-family: var(--font-serif); line-height: 1.15; }
.sim-brief__tag { flex: none; font-size: var(--fs-xs); font-weight: 800; color: var(--navy-900); background: var(--wacc); padding: 4px 11px; border-radius: var(--radius-pill); white-space: nowrap; }
.sim-brief__desc { color: var(--ink-dark-soft); font-size: var(--fs-sm); margin: 11px 0 12px; }
.sim-brief__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.sim-brief__count { color: var(--ink-dark-mute); font-size: var(--fs-xs); font-weight: 700; }

#sim-cards .sim-card { transition: transform .16s var(--ease-out), border-color .16s, box-shadow .16s; }
#sim-cards .sim-card:hover { transform: translateY(-3px); }
#sim-cards .sim-card__name { font-weight: 800; }

/* Mobile: carousel fallback (bukan orbit berpusing) */
@media (max-width: 640px) {
  .sim-orbit-stage { aspect-ratio: auto; max-width: 100%; margin-top: 4px; }
  .sim-orbit-rings, .sim-orbit-core, .sim-orbit-stage::before { display: none; }
  .sim-orbit-rotor { position: static; display: flex; gap: 10px; overflow-x: auto; padding: 6px 2px 10px; animation: none;
    scroll-snap-type: x proximity; scrollbar-width: none;
    -webkit-mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); mask-image: linear-gradient(90deg, transparent, #000 16px, #000 calc(100% - 16px), transparent); }
  .sim-orbit-rotor::-webkit-scrollbar { display: none; }
  .sim-world { position: static; transform: none; width: auto; flex: none; min-width: 116px; scroll-snap-align: start;
    background: var(--glass-d); border: 1px solid var(--line-dark-2); border-radius: var(--radius); padding: 12px 10px; }
  .sim-world__inner { animation: none !important; transform: none !important; }
  .sim-world.is-sel { border-color: var(--wacc); box-shadow: 0 0 0 2px rgba(255,255,255,.10), 0 0 20px -6px var(--wacc); }
  .sim-world__orb { width: 42px; height: 42px; margin-bottom: 5px; }
  .sim-world__name { font-size: .68rem; }
}

@media (prefers-reduced-motion: reduce) {
  .sim-orbit-beam.is-on { animation: none; }
  .sim-brief { animation: none; }
  .sim-hero__arah { filter: none; }
  #sim-cards .sim-card:hover { transform: none; }
}

/* =============================================================================
   --- Kad Identiti Cinematic — dark island (kad hero) + ivory control panel ---
   Presentation-only. SVG kad kekal hex-literal (export PNG tak terjejas).
   ============================================================================= */
.kad-island { position: relative; padding: 26px 22px 20px; border-radius: var(--radius-lg); overflow: hidden;
  background: radial-gradient(520px 340px at 50% 6%, rgba(95,208,245,.14), transparent 60%),
    radial-gradient(420px 300px at 82% 100%, rgba(214,158,35,.10), transparent 60%),
    linear-gradient(160deg, var(--cosmic-core), var(--cosmic-bg) 55%, #060f24);
  box-shadow: var(--shadow-lg); display: flex; flex-direction: column; align-items: center; gap: 16px; }
.kad-island::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(1.4px 1.4px at 20% 26%, #fff, transparent), radial-gradient(1.3px 1.3px at 72% 62%, #cfe6ff, transparent), radial-gradient(1px 1px at 44% 82%, #fff, transparent), radial-gradient(1px 1px at 86% 22%, #ffe3ab, transparent), radial-gradient(1.3px 1.3px at 56% 12%, #fff, transparent); background-repeat: no-repeat; }
.kad-island > * { position: relative; z-index: 1; }
.kad-island .kad-host { position: relative; }
.kad-island .kad-host::before { content: ""; position: absolute; inset: -9px; border-radius: calc(var(--radius-lg) + 7px); z-index: 0; pointer-events: none;
  background: linear-gradient(130deg, var(--arah-cyan), var(--gold-400), var(--teal-400), var(--arah-cyan)); background-size: 300% 300%;
  filter: blur(11px); opacity: .3; animation: kadAura 7s linear infinite; }
@keyframes kadAura { to { background-position: 300% 0; } }
.kad-island--modal .kad-host { max-width: 300px; }

.kad-flip { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; cursor: pointer;
  background: var(--glass-d2); color: var(--ink-dark); border: 1px solid var(--line-dark-2); border-radius: var(--radius-pill);
  font: inherit; font-weight: 700; font-size: var(--fs-sm); padding: 8px 18px; transition: var(--transition); }
.kad-flip:hover { background: rgba(255,255,255,.14); }
.kad-flip:focus-visible { outline: 3px solid var(--ring-on-dark); outline-offset: 2px; }
/* Hint flip di sudut kad (DOM overlay — tak dieksport ke PNG) */
.kad-fliptag { position: absolute; right: 12px; bottom: 12px; z-index: 2; pointer-events: none;
  font-size: var(--fs-xs); font-weight: 700; color: var(--ink-dark); background: rgba(11,26,56,.55);
  border: 1px solid var(--line-dark-2); border-radius: var(--radius-pill); padding: 4px 11px; -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }

.kad-side { display: flex; flex-direction: column; gap: var(--space-2); }
.kad-side .kad-eyebrow { text-align: left; }
.kad-side__title { font-family: var(--font-serif); font-size: var(--fs-2xl); line-height: var(--lh-tight); color: var(--navy-900); margin: 2px 0 0; }
.kad-side__bm { color: var(--gold-ink); font-style: italic; font-weight: 600; margin: 0 0 var(--space-2); }
.kad-side__note { color: var(--text-soft); font-size: var(--fs-sm); margin: 0 0 var(--space-2); }
.kad-side .kad-actions { justify-content: flex-start; }
.kad-side .kad-cta-row { align-items: flex-start; }
.kad-privacy { color: var(--text-muted); font-size: var(--fs-xs); margin-top: var(--space-2); border-top: 1px solid var(--hairline); padding-top: var(--space-2); }
.kad-modal-actions { margin-top: var(--space-3); }

/* Back = taklimat misi (atas navy) */
.kad-brief { color: var(--ink-dark); display: flex; flex-direction: column; gap: 11px; width: 100%; }
.kad-brief__eyebrow { font-size: var(--fs-xs); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--kad-accent, var(--gold-400)); }
.kad-brief__lead { font-family: var(--font-serif); font-style: italic; color: var(--cream-100); font-size: var(--fs-base); margin: 0; }
.kad-brief__block { background: rgba(255,255,255,.05); border: 1px solid var(--line-dark); border-left: 3px solid var(--kad-accent, var(--gold-400)); border-radius: var(--radius-sm); padding: 10px 13px; }
.kad-brief__block h4 { font-size: var(--fs-xs); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-dark-mute); margin: 0 0 4px; }
.kad-brief__block p { color: var(--ink-dark-soft); font-size: var(--fs-sm); margin: 0; line-height: var(--lh-snug); }
.kad-brief__note { color: var(--ink-dark-mute); font-size: var(--fs-xs); margin-top: auto; padding-top: 8px; }

/* Gallery mini premium (aksen ikut quadrant) */
.kad-mini { transition: transform .16s var(--ease-out), box-shadow .18s, border-color .18s; }
.kad-mini:hover { transform: translateY(-3px); }
.kad-mini[data-q] { border-top: 3px solid var(--kad-accent); }

@media (max-width: 760px) {
  .kad-single { grid-template-columns: 1fr; gap: var(--space-4); }
  .kad-side { align-items: center; text-align: center; }
  .kad-side .kad-eyebrow, .kad-side__title, .kad-side__bm, .kad-side__note { text-align: center; }
  .kad-side .kad-actions, .kad-side .kad-cta-row { justify-content: center; align-items: center; }
  .kad-privacy { text-align: center; }
}
@media (prefers-reduced-motion: reduce) { .kad-island .kad-host::before { animation: none; } }

/* =============================================================================
   --- SPRINT 1 "Tutup Pintu" (2026-11-09) ---
   Pintu seterusnya · Wipe peranti kongsi · Kad Laporan Penuh (kod akses, tiada
   harga) · Pratonton Pelan terkunci · Empty state Pelan · Banner kualiti jawapan.
   Token sedia ada SAHAJA (tiada warna baru), tap target ≥44px, fokus nampak.
   ============================================================================= */
.next-doors { display: grid; gap: var(--space-4); }
.next-doors__title { margin: 0; text-align: center; color: var(--navy-800); font-size: var(--fs-xl); }
.next-doors__grid { display: grid; grid-template-columns: 1fr; gap: var(--space-3); }
@media (min-width: 640px) { .next-doors__grid { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
.next-door {
  display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: 44px; padding: var(--space-4);
  background: var(--surface-raised); border: 1px solid var(--border); border-top: 4px solid var(--teal-500);
  border-radius: var(--radius); box-shadow: var(--shadow-sm); color: var(--navy-800); text-decoration: none;
  transition: transform var(--transition-tactile), box-shadow var(--transition-tactile);
}
.next-door:nth-child(2) { border-top-color: var(--ocean-press); }
.next-door:nth-child(3) { border-top-color: var(--future-blue); }
.next-door:hover { transform: translateY(-3px); box-shadow: var(--shadow); text-decoration: none; }
.next-door:focus-visible { outline: 3px solid var(--ocean-press); outline-offset: 2px; }
.next-door__ic { font-size: 1.5rem; line-height: 1; }
.next-door__name { font-weight: 700; line-height: var(--lh-snug); }
.next-door__name::after { content: ' →'; color: var(--ocean-press); }
.next-door__hint { font-size: var(--fs-xs); color: var(--text-muted); line-height: var(--lh-snug); }

/* Wipe peranti kongsi — tenang, bukan amaran merah; confirm di JS */
.wipe-panel {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3);
  padding: var(--space-4); border: 1px dashed var(--border-strong); border-radius: var(--radius); background: var(--surface-alt);
}
.wipe-panel__hint { margin: 0; flex: 1 1 260px; font-size: var(--fs-sm); color: var(--text-soft); }
.wipe-panel__btn { flex: 0 1 auto; white-space: normal; text-align: center; line-height: 1.25; }

/* Kad Laporan Penuh — SATU kad, input kod jadi tumpuan */
.unlock-card { display: grid; gap: var(--space-3); border-top: 4px solid var(--navy-800); }
.unlock-card__head { display: flex; gap: var(--space-3); align-items: center; }
.unlock-card__ic {
  flex: none; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%;
  background: var(--surface-alt); font-size: 1.4rem; box-shadow: var(--shadow-xs);
}
.unlock-card__now { margin: 0; font-size: var(--fs-xs); font-weight: 700; color: var(--teal-600); }
.unlock-card__title { margin: 0; font-family: var(--font-serif); font-size: var(--fs-2xl); line-height: var(--lh-tight); color: var(--navy-900); }
.unlock-card__body { margin: 0; color: var(--text-soft); }
.unlock-card__form { display: grid; gap: var(--space-2); padding: var(--space-4); background: var(--surface-alt); border-radius: var(--radius); }
.unlock-card__label { font-weight: 700; color: var(--navy-900); }
.unlock-card__row { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.unlock-card__row .input { margin-top: 0; flex: 1 1 220px; min-width: 0; min-height: 48px; font-family: var(--font-mono); letter-spacing: .03em; }
.unlock-card__row .input:not(:placeholder-shown) { text-transform: uppercase; } /* server normalise huruf besar */
.unlock-card__row .btn { flex: 0 0 auto; }
.unlock-card__msg { font-size: var(--fs-sm); color: var(--text-soft); min-height: 1.25em; }
.unlock-card__msg:empty { min-height: 0; }
.unlock-card__wa { justify-self: start; }
.unlock-card__note { margin: 0; font-size: var(--fs-xs); color: var(--text-muted); }
.unlock-card__dev { display: flex; flex-wrap: wrap; gap: var(--space-2); align-items: center; padding-top: var(--space-3); border-top: 1px dashed var(--border-strong); }

/* Pratonton Pelan terkunci (guna .plan-hero--locked sedia ada) */
.plan-preview { display: grid; gap: var(--space-3); }
.plan-preview .plan-hero { margin-bottom: 0; }
.plan-preview .plan-hero__lock { border-radius: var(--radius); align-items: flex-start; } /* ayat panjang → wrap, bukan kapsul */

/* Empty state Pelan Saya */
.plan-empty { display: grid; justify-items: center; gap: var(--space-3); text-align: center; padding: var(--space-6) var(--space-5); }
.plan-empty__ic { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--surface-alt); font-size: 1.8rem; }
.plan-empty__title { margin: 0; font-family: var(--font-serif); color: var(--navy-900); }
.plan-empty__body { margin: 0; max-width: 46ch; color: var(--text-soft); }

/* Banner kualiti jawapan (responseQuality SEMAK) */
.rq-banner { text-align: left; }
.rq-banner a { font-weight: 700; white-space: nowrap; }

@media (max-width: 520px) {
  .wipe-panel__btn, .unlock-card__row .btn, .unlock-card__wa { width: 100%; }
  .unlock-card__title { font-size: var(--fs-xl); }
}
@media (prefers-reduced-motion: reduce) {
  .next-door { transition: none; }
  .next-door:hover { transform: none; }
}
@media print {
  .next-doors, .wipe-panel, .unlock-card, .plan-preview, .rq-banner a { display: none !important; }
}

/* =============================================================================
   --- SPRINT 2 LAPORAN (2026-11-09, Lia-A) ---
   S3 tema arketaip dalam laporan app · emblem arketaip · senarai bab percuma ·
   S1.D tema Snapshot · S10 REFLECT SURFACE · S5 Kad Hadiah Junior · S6 Discoverer.
   Warna identiti HANYA dari token --arc* / --sem-* (tokens.css lalai + override
   /styles/archetype-themes.css ikut [data-archetype]). Tiada hex palet di sini.
   ============================================================================= */

/* --- Emblem arketaip (fallback watak; bentuk = keluarga) ---------------------*/
.arc-emblem { display: block; width: 100%; height: 100%; overflow: visible; }
.arc-emblem__shape { fill: var(--arc-tint); stroke: var(--arc); stroke-width: 4; stroke-linejoin: round; }
.arc-emblem__ch { fill: var(--arc-deep); font-family: var(--font-sans); font-weight: 900; font-size: 52px; }
.arc-emblem--dark .arc-emblem__shape { fill: var(--arc); stroke: var(--arc-soft); }
.arc-emblem--dark .arc-emblem__ch { fill: #fff; }

/* --- Laporan: nombor bab (kedudukan paparan) + TOC ----------------------------*/
#report-root .rsec__title { display: inline-flex; align-items: center; gap: .65rem; min-width: 0; }
#report-root .rsec__n {
  flex: none; display: inline-grid; place-items: center; min-width: 30px; height: 30px; padding: 0 6px;
  border-radius: 9px; background: var(--arc-deep); color: #fff;
  font-family: var(--font-sans); font-size: .8125rem; font-weight: 800; letter-spacing: 0; line-height: 1;
}
#report-root .rsec__toggle { min-height: 44px; }
#report-root .report-toc__h { font-size: var(--fs-xl); }
#report-root .toc__t { min-width: 0; }
#report-root .toc__n { color: var(--arc); font-weight: 800; font-variant-numeric: tabular-nums; }
#report-root .toc__item { min-height: 44px; }
#report-root .toc__item--locked { color: var(--report-muted); }
#report-root .kv td { overflow-wrap: anywhere; }
@media (max-width: 520px) {
  #report-root .kv td:first-child { white-space: normal; }
  #report-root .rsec__right .chip { display: none; }      /* ruang tajuk di telefon; status ada dalam TOC */
  #report-root .toc__item { align-items: flex-start; }
}

/* --- Laporan percuma: bab terkunci = SATU senarai tajuk (tiada blur palsu) -----*/
#report-root .report-locked { display: grid; gap: var(--space-3); border-top: 4px solid var(--arc); }
#report-root .report-locked__eyebrow { margin: 0; font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--arc); }
#report-root .report-locked__title { margin: 0; font-family: var(--font-serif); font-size: var(--fs-xl); color: var(--report-ink); }
#report-root .report-locked__sub { margin: 0; font-size: var(--fs-sm); color: var(--report-muted); }
#report-root .report-locked__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 720px) { #report-root .report-locked__list { grid-template-columns: 1fr 1fr; } }
#report-root .report-locked__item {
  display: flex; align-items: center; gap: .6rem; min-width: 0; padding: .55rem .75rem;
  border: 1px solid var(--report-border); border-radius: 10px; background: var(--report-subtle);
  color: var(--report-ink); font-size: var(--fs-sm); font-weight: 600; line-height: 1.35; scroll-margin-top: 130px;
}
#report-root .report-locked__n {
  flex: none; display: inline-grid; place-items: center; min-width: 26px; height: 26px; border-radius: 8px;
  background: var(--arc-tint); color: var(--arc-deep); font-size: .75rem; font-weight: 800;
}

/* --- Laporan: lapisan tema arketaip (hanya bila data-archetype ada) -----------
   Tinggi = semantik kekuatan · Sederhana = --arc · Rendah = --sem-low (label teks
   kekal di setiap bar/pill → maksud tak bergantung pada warna). */
#report-root[data-archetype] .sbar--hi .bar__fill { background: var(--sem-strength); }
#report-root[data-archetype] .sbar--md .bar__fill { background: var(--arc); }
#report-root[data-archetype] .sbar--lo .bar__fill { background: var(--sem-low); }
#report-root[data-archetype] .sbar--nv .bar__fill { background: var(--arc-deep); }
#report-root[data-archetype] .lvl-hi { background: var(--sem-strength-bg); color: var(--sem-strength-ink); border-color: transparent; }
#report-root[data-archetype] .lvl-md { background: var(--arc-tint); color: var(--arc); border-color: var(--arc-soft); }
#report-root[data-archetype] .lvl-lo { background: var(--sem-low-bg); color: var(--sem-low-ink); border: 1px solid transparent; }
#report-root[data-archetype] .rcard--interp {
  background: var(--report-card); border: 1px solid var(--report-border); border-left: 3px solid var(--arc); border-radius: 0 12px 12px 0;
}
#report-root[data-archetype] .rcard--interp:has(.lvl-hi) { border-left-color: var(--sem-strength); }
#report-root[data-archetype] .rcard--interp:has(.lvl-lo) { border-left-color: var(--sem-low); }
#report-root[data-archetype] .rcard:has(.rcard__head .chip--gold) { border-left-color: var(--arc); }
#report-root[data-archetype] .raction,
#report-root[data-archetype] .raction.mroute { border-left-color: var(--arc); }
#report-root[data-archetype] .plan-nba { border-left-color: var(--arc); }
#report-root[data-archetype] .plan-nba__step,
#report-root[data-archetype] .mroute__n { background: var(--arc-deep); color: #fff; }
#report-root[data-archetype] .btn--navy,
#report-root[data-archetype] .btn--primary { background: var(--arc-deep); color: #fff; }
#report-root[data-archetype] .btn--navy:hover,
#report-root[data-archetype] .btn--primary:hover { background: var(--arc-deep); background: color-mix(in srgb, var(--arc-deep) 80%, var(--arc)); }
#report-root[data-archetype] .toc__item:hover { background: var(--arc-tint); }
#report-root[data-archetype] .unlock-card { border-top-color: var(--arc-deep); }
#report-root[data-archetype] .success-map:not(.success-map--locked) {
  background: var(--arc-deep);
  background:
    radial-gradient(120% 80% at 80% -10%, color-mix(in srgb, var(--arc) 34%, transparent), transparent 60%),
    linear-gradient(155deg, var(--arc-deep) 0%, color-mix(in srgb, var(--arc-deep) 80%, var(--arc)) 130%);
}
#report-root[data-archetype] .success-map:not(.success-map--locked) .success-map__formula { border-left-color: var(--arc-soft); }
#report-root[data-archetype] .success-map:not(.success-map--locked) .success-map__badge { border-color: var(--arc-soft); }
#report-root[data-archetype] .plan-hero {
  background: var(--arc-deep);
  background: linear-gradient(155deg, var(--arc-deep) 0%, color-mix(in srgb, var(--arc-deep) 78%, var(--arc)) 130%);
}
#report-root[data-archetype] .plan-hero::after { background: linear-gradient(180deg, var(--arc-soft), var(--sem-strength)); }
@media print {
  #report-root[data-archetype] .success-map:not(.success-map--locked) { background: #fff; }
  #report-root[data-archetype] .plan-hero { background: none !important; }
}

/* --- Snapshot (result.js): tema arketaip pada hero + keluarga + ARAH komponen --*/
#snap-reveal[data-archetype] .snap-hero {
  background: var(--arc-deep);
  /* pusat = 30% --arc: teks emas/cyan/kelabu hero kekal ≥4.5:1 walau di titik paling cerah (16 palet diuji) */
  background: radial-gradient(130% 95% at 50% -12%, color-mix(in srgb, var(--arc) 30%, var(--arc-deep)) 0%, var(--arc-deep) 56%, var(--arc-deep) 100%);
  border-color: color-mix(in srgb, var(--arc-soft) 40%, transparent);
}
#snap-reveal[data-archetype] .dsc-strength-card { border-top-color: var(--arc); }
.snap-hero__family {
  display: inline-flex; align-items: center; gap: .5rem; margin: 10px auto 0; padding: 6px 14px;
  border-radius: 999px; background: rgba(255,255,255,.10); border: 1px solid rgba(255,255,255,.24);
  color: #fff; font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
}
.snap-hero__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--arc-soft); box-shadow: 0 0 0 3px rgba(255,255,255,.14); }
.discover-snap .snap-hero__emblem .arah { display: block; width: 100%; height: 100%; animation: none; }
.discover-snap .dsc-arah .arah-bubble { display: flex; align-items: flex-start; gap: 10px; margin: 0; }
.discover-snap .dsc-arah .arah-bubble__ava {
  flex: none; display: inline-flex; width: 44px; height: 44px; padding: 7px; animation: none;
  background: #fff; border: 2px solid var(--bright-sky); border-radius: 50%; box-shadow: var(--shadow-sm);
}
.discover-snap .dsc-arah .arah-bubble__msg {
  position: relative; margin: 4px 0 0; max-width: 42ch; padding: 10px 14px;
  background: #fff; border: 1px solid var(--grey-200); border-radius: 16px; border-top-left-radius: 5px;
  color: var(--navy-800); font-weight: 600; font-size: var(--fs-sm); line-height: var(--lh-snug); box-shadow: var(--shadow-sm);
}
.discover-snap .dsc-arah .arah-bubble__msg::before {
  content: ''; position: absolute; left: -5px; top: 14px; width: 10px; height: 10px; transform: rotate(45deg);
  background: #fff; border-left: 1px solid var(--grey-200); border-bottom: 1px solid var(--grey-200);
}

/* --- REFLECT SURFACE (S10 langkah 2) — permukaan matang ibu bapa / keluarga ----
   Token sahaja (tokens.css .mode-reflect). Lantai teks 14px / lh 1.6 (S7.4). */
.mode-reflect:not(#report-root) {
  background: var(--report-bg); border: 1px solid var(--report-border); border-radius: 24px;
  padding: var(--space-5); color: var(--report-ink);
}
.mode-reflect:not(#report-root) p,
.mode-reflect:not(#report-root) li,
.mode-reflect:not(#report-root) dd { font-size: .875rem; line-height: 1.6; color: var(--report-ink); }
.mode-reflect:not(#report-root) .notice { background: var(--report-blue-wash); border-left-color: var(--report-teal); color: var(--report-ink); }
.mode-reflect:not(#report-root) .vcard { background: var(--report-card); border-color: var(--report-border-soft); }
.mode-reflect:not(#report-root) .vlead { color: var(--report-muted); }

/* --- Kad kandungan paparan Junior/Discoverer (dikongsi) -----------------------*/
.vcard { display: grid; gap: 8px; min-width: 0; padding: 14px 16px; border-radius: 14px; background: var(--grey-50); border: 1px solid var(--grey-100); overflow-wrap: anywhere; }
.vcard p { margin: 0; color: var(--text-soft); line-height: 1.6; }
.vcard__h { margin: 0; font-size: .9375rem; font-weight: 700; line-height: 1.35; color: var(--navy-900); }
.vlead { margin: 0; font-size: .9375rem; line-height: 1.6; color: var(--text-soft); }
.vlist { margin: 0; padding-left: 1.15rem; color: var(--text-soft); line-height: 1.55; }
.vlist li + li { margin-top: .3rem; }
.vkv { margin: 0; display: grid; gap: 8px; }
.vkv__row { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 4px 12px; }
.vkv dt { color: var(--text-muted); font-size: .875rem; font-weight: 600; }
.vkv dd { margin: 0; color: var(--navy-900); font-size: .875rem; font-weight: 700; }
@media (max-width: 520px) { .vkv__row { grid-template-columns: 1fr; } }
.vbar + .vbar { margin-top: 10px; }
.vbar__top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.vbar__label { min-width: 0; font-weight: 600; font-size: .9375rem; color: var(--navy-900); }
.vbar__lvl { flex: none; font-size: .75rem; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--grey-700); }
.vbar__track { height: 10px; margin-top: 6px; border-radius: 999px; background: #E3E9F1; overflow: hidden; }
.vbar__fill { display: block; height: 100%; border-radius: inherit; background: var(--navy-700); }
.vbar__fill--hi { background: var(--teal-600); }
.vbar__fill--md { background: var(--ocean-press); }
.vbar__fill--lo { background: var(--sem-low); }
.vbar__plain { margin: 0; font-weight: 600; color: var(--navy-900); }

/* --- S5 JUNIOR "KAD HADIAH" (Tahun 4-6) — Mode Explore langit ----------------*/
body:has(.jr) { background: linear-gradient(180deg, var(--soft-sky-mist) 0%, #FDFEFF 52%, var(--cream-100) 100%); }
.jr { display: grid; gap: var(--space-5); max-width: 44rem; margin-inline: auto; }
.jr-hero {
  position: relative; overflow: hidden; isolation: isolate; text-align: center;
  padding: 26px 18px 24px; border-radius: 28px; border: 3px solid #fff;
  background: linear-gradient(180deg, var(--soft-sky-mist) 0%, var(--bright-sky) 100%);
  box-shadow: 0 2px 4px rgba(11,26,56,.05), 0 16px 36px rgba(21,119,176,.14);
}
.jr-hero::before {   /* spark dekoratif (kuning = spark SAHAJA) */
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(5px 5px at 12% 16%, var(--sunny-spark), transparent 70%),
    radial-gradient(4px 4px at 88% 12%, var(--sunny-spark), transparent 70%),
    radial-gradient(3.5px 3.5px at 82% 64%, var(--future-blue), transparent 70%),
    radial-gradient(4px 4px at 14% 72%, var(--violet-spark), transparent 70%),
    radial-gradient(3px 3px at 54% 6%, var(--coral-energy), transparent 70%),
    radial-gradient(3px 3px at 30% 40%, #fff, transparent 70%);
}
.jr-hero__guide { display: flex; justify-content: center; margin-bottom: 14px; }
.jr-hero .arah-bubble { display: inline-flex; align-items: center; gap: 10px; max-width: 100%; text-align: left; }
.jr-hero .arah-bubble__ava { flex: none; display: block; width: 64px; height: 64px; animation: none; }
.jr-hero .arah-bubble__msg {
  margin: 0; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: #fff;
  color: var(--navy-900); font-weight: 700; font-size: .9375rem; line-height: 1.4; box-shadow: var(--shadow-sm);
}
.jr-badges { display: flex; justify-content: center; align-items: flex-start; margin: 4px auto 12px; }
.jr-badge {
  --rot: -1.5deg;
  position: relative; display: grid; justify-items: center; gap: 2px; max-width: 300px; padding: 16px 20px 14px;
  background: #fff; border: 3px solid #fff; border-radius: 22px;
  box-shadow: 0 0 0 2px var(--bright-sky), 0 12px 26px rgba(21,119,176,.18), 0 2px 4px rgba(11,26,56,.08);
  transform: rotate(var(--rot)); animation: jrPop .55s var(--ease-spring) both;
}
.jr-badges--2 .jr-badge { flex: 1 1 0; min-width: 0; max-width: 200px; padding: 14px 12px 12px; }
.jr-badges--2 .jr-badge__kicker { letter-spacing: .06em; }
.jr-badges--2 .jr-badge + .jr-badge { --rot: 2deg; margin-left: -12px; margin-top: 16px; animation-delay: .12s; }
.jr-badge__emoji { font-size: 2.4rem; line-height: 1; }
.jr-badge__kicker { margin-top: 6px; font-size: .75rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--ocean-press); }
.jr-badge__name { font-size: 1.375rem; font-weight: 900; line-height: 1.15; letter-spacing: .02em; text-transform: uppercase; color: var(--navy-900); }
.jr-badges--2 .jr-badge__name { font-size: 1.125rem; }
.jr-badge__desc { margin: 6px 0 0; font-size: .875rem; line-height: 1.45; color: var(--grey-700); }
.jr-hero__desc { margin: 0 auto 10px; max-width: 36ch; font-size: .9375rem; line-height: 1.5; color: var(--grey-700); }
.jr-hero__who { margin: 4px 0 0; font-family: var(--font-sans); font-size: 1rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--navy-800); }
.jr-hero__tier { margin: 2px 0 0; font-size: .8125rem; color: var(--grey-700); }
.jr-hero__remind { margin: 12px auto 0; max-width: 38ch; font-size: .875rem; line-height: 1.5; color: var(--grey-700); }
/* transform SAHAJA (tiada opacity): kalau animasi terhenti (tab latar / pelayar perlahan), lencana tetap nampak penuh */
@keyframes jrPop { 0% { transform: scale(.88) rotate(-5deg); } 100% { transform: rotate(var(--rot)); } }

.jr-h2 { margin: 0 0 10px; font-family: var(--font-sans); font-size: 1.0625rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--navy-900); }
.jr-greats { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.jr-great {
  display: inline-flex; align-items: center; gap: 8px; min-height: 44px; max-width: 100%; padding: 8px 16px;
  border-radius: 999px; background: var(--bright-sky); border: 2px solid #fff; box-shadow: var(--shadow-xs);
  color: var(--navy-900); font-size: .9375rem; font-weight: 700; line-height: 1.3;
}
.jr-great__ic { font-size: 1.15rem; line-height: 1; }
.jr-mission {
  display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px;
  background: #fff; border: 1px solid var(--grey-100); border-left: 4px solid var(--ocean-press); border-radius: 18px; box-shadow: var(--shadow-sm);
}
.jr-mission__ic { flex: none; font-size: 1.6rem; line-height: 1; }
.jr-mission__h { margin: 0 0 4px; font-family: var(--font-sans); font-size: .8125rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--ocean-press); }
.jr-mission__text { margin: 0; color: var(--navy-900); font-weight: 600; line-height: 1.5; }
.jr-mission__note { margin: 6px 0 0; font-size: .8125rem; color: var(--grey-700); }
.jr-show-row { display: grid; justify-items: center; gap: 6px; text-align: center; }
.jr-show { background: var(--ocean-press); color: #fff; min-height: 48px; padding: .85rem 1.7rem; box-shadow: 0 8px 20px rgba(24,118,201,.30); }
.jr-show:hover { background: #1467B0; }
.jr-show__hint { margin: 0; font-size: .8125rem; color: var(--grey-700); }

.jr-parent__h, .dc-family__h { margin: 0; font-family: var(--font-serif); font-size: var(--fs-xl); line-height: 1.25; color: var(--report-ink); }
.jr-parent__lead, .dc-family__lead { margin: 4px 0 12px !important; color: var(--report-muted) !important; }
.jr-accs { display: grid; gap: 10px; margin-top: 14px; }
.jr-acc { background: var(--report-card); border: 1px solid var(--report-border); border-radius: 14px; overflow: hidden; }
.jr-acc__h { margin: 0; font-size: inherit; }
.jr-acc__head, .dc-sec__head {
  width: 100%; display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px;
  background: none; border: 0; cursor: pointer; text-align: left; font: inherit; font-weight: 700; color: inherit;
}
.jr-acc__head { justify-content: space-between; font-size: 1rem; color: var(--report-ink); }
.jr-acc__head:hover { background: var(--report-subtle); }
.jr-acc__chev, .dc-sec__chev { flex: none; color: var(--text-muted); transition: transform var(--dur) var(--ease-out); }
.jr-acc.is-open .jr-acc__chev, .dc-sec.is-open .dc-sec__chev { transform: rotate(180deg); }
.jr-acc__body { display: grid; gap: 10px; padding: 0 16px 16px; }
.jr-acc__body[hidden], .dc-sec__body[hidden] { display: none; }

/* --- S6 DISCOVERER (Tingkatan 1-3) — pulau navy + akordion bernombor ----------*/
body:has(.dc) { background: linear-gradient(180deg, var(--soft-sky-mist) 0%, #FDFEFF 46%, var(--cream-100) 100%); }
.dc { display: grid; gap: var(--space-5); max-width: 48rem; margin-inline: auto; }
.dc-hero__island {
  position: relative; overflow: hidden; isolation: isolate; padding: 24px 20px 22px; border-radius: 28px; color: #fff;
  background: linear-gradient(160deg, var(--navy-900) 0%, var(--navy-700) 100%); box-shadow: var(--shadow-lg);
}
.dc-hero__island::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: radial-gradient(420px 260px at 88% -12%, rgba(95,208,245,.28), transparent 70%);
}
.dc-hero .arah-bubble { display: flex; align-items: center; gap: 12px; margin: 0 0 16px; }
.dc-hero .arah-bubble__ava { flex: none; display: block; width: 72px; height: 72px; animation: none; }
.dc-hero .arah-bubble__msg {
  margin: 0; max-width: 34ch; padding: 10px 14px; border-radius: 18px 18px 18px 6px; background: #fff;
  color: var(--navy-900); font-weight: 700; font-size: .9375rem; line-height: 1.4; box-shadow: 0 6px 18px rgba(0,0,0,.25);
}
.dc-hero__eyebrow { margin: 0; font-size: .75rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--arah-cyan); }
.dc-hero__name { margin: 4px 0 12px; font-family: var(--font-serif); font-size: clamp(1.9rem, 6.4vw, 2.5rem); line-height: 1.1; color: #fff; overflow-wrap: anywhere; }
.dc-hero__k { margin: 12px 0 6px; font-size: .75rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-dark-soft); }
.dc-chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.dc-chip {
  display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.30); color: #fff; font-size: .875rem; font-weight: 700;
}
.dc-chips--types .dc-chip { background: #fff; border: 2px solid #fff; color: var(--navy-900); }
.dc-hero__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.dc-hero__go { background: #fff; color: var(--navy-900); }
.dc-hero__go:hover { background: var(--bright-sky); }
.dc-hero__print { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.dc-hero__print:hover { background: rgba(255,255,255,.10); }
.dc-hero :focus-visible { outline-color: var(--ring-on-dark); }
.dc-toc__top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; }
.dc-toc__h { margin: 0; font-size: var(--fs-xl); }
.dc-toc__h:focus:not(:focus-visible) { outline: none; }
.dc-toc__list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 6px; }
@media (min-width: 560px) { .dc-toc__list { grid-template-columns: 1fr 1fr; } }
@media (min-width: 820px) { .dc-toc__list { grid-template-columns: repeat(3, 1fr); } }
.dc-toc__item {
  width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 8px 12px;
  border: 1px solid var(--grey-200); border-radius: 12px; background: #fff; cursor: pointer; text-align: left;
  font: inherit; font-size: .875rem; font-weight: 600; line-height: 1.3; color: var(--navy-900);
}
.dc-toc__item:hover { background: var(--soft-sky-mist); }
.dc-toc__n, .dc-sec__n {
  flex: none; display: inline-grid; place-items: center; min-width: 28px; height: 28px; border-radius: 9px;
  background: var(--navy-800); color: #fff; font-size: .8125rem; font-weight: 800; line-height: 1;
}
.dc-secs { display: grid; gap: 10px; }
.dc-sec { background: #fff; border: 1px solid var(--grey-100); border-radius: 18px; box-shadow: var(--shadow-sm); overflow: hidden; scroll-margin-top: 110px; }
.dc-sec__h { margin: 0; font-size: inherit; }
.dc-sec__head { min-height: 56px; font-size: 1.0625rem; color: var(--navy-900); }
.dc-sec__head:hover { background: var(--grey-50); }
.dc-sec__t { flex: 1 1 auto; min-width: 0; }
.dc-sec__body { display: grid; gap: 10px; padding: 0 16px 16px; }
.dc-family { position: relative; margin-top: var(--space-6); }
.dc-family::before { content: ""; position: absolute; left: 12%; right: 12%; top: calc(-1 * var(--space-5)); height: 1px; background: var(--grey-200); }
.dc-family__sec { display: grid; gap: 10px; margin-top: 16px; }
.dc-family__t { margin: 0; font-size: 1.0625rem; color: var(--report-ink); }

@media (min-width: 640px) {
  .jr-hero { padding: 32px 28px 28px; }
  .dc-hero__island { padding: 30px 30px 28px; }
  .dc-hero .arah-bubble__ava { width: 96px; height: 96px; }
}
@media (prefers-reduced-motion: reduce) {
  .jr-badge { animation: none; }
  .jr-acc__chev, .dc-sec__chev { transition: none; }
}
@media print {
  body:has(.jr), body:has(.dc) { background: #fff; }
  .jr-show-row, .dc-hero__cta, .dc-toc__all, .jr-acc__chev, .dc-sec__chev { display: none !important; }
  .jr-acc__body[hidden], .dc-sec__body[hidden] { display: grid !important; }
  .jr-parent, .dc-family { break-before: page; }
  .jr-hero, .jr-badge, .jr-mission, .dc-sec { box-shadow: none; }
  .jr-badge { animation: none; }
  .dc-hero__island { background: #fff !important; color: var(--navy-900); border: 1px solid #ccc; box-shadow: none; }
  .dc-hero__island::before { display: none; }
  .dc-hero__name, .dc-hero__eyebrow, .dc-hero__k { color: var(--navy-900); }
  .dc-chip { color: var(--navy-900); border-color: #bbb; background: #fff; }
  .dc-family::before { display: none; }
  .jr-acc, .dc-sec, .vcard { break-inside: avoid; }
}

/* =============================================================================
   --- MOD DEWASA (Fasa 1 T) — laporan app + snapshot (Lia-A) ---
   Token warna datang dari body[data-cohort="adult"] (fasa1.css, Lia-B). Di sini
   KURANGKAN hiasan sahaja pada akar [data-cohort="adult"]: tiada ikon/emoji chrome,
   tiada kilauan/spark, tiada animasi spring. Palet arketaip laporan TAK berubah.
   ============================================================================= */
#report-root[data-cohort="adult"] .mroute__ic,
#report-root[data-cohort="adult"] .unlock-card__ic,
#report-root[data-cohort="adult"] .plan-hero__lock > [aria-hidden="true"],
#report-root[data-cohort="adult"] .success-map__badge,
#report-root[data-cohort="adult"] .plan-hero__glow { display: none; }
#report-root[data-cohort="adult"] .raction.is-flash { animation: none; }
#snap-reveal[data-cohort="adult"] .snap-hero::before,
#snap-reveal[data-cohort="adult"] .snap-hero::after { display: none; }
#snap-reveal[data-cohort="adult"] .reveal-item { opacity: 1; transform: none; animation: none; }
#snap-reveal[data-cohort="adult"] .dsc-chip {
  background: var(--adult-tag-bg, #EEF1F6); border-color: #C7D3E2; color: var(--adult-tag-ink, #1A3160);
}
#snap-reveal[data-cohort="adult"] .dsc-chip::before { display: none; }
#snap-reveal[data-cohort="adult"] .dsc-strength-card { border-top-width: 3px; }
