/* ===== Tokens ===== */
:root {
  --bg: #EEF2F7;
  --bg-2: #E4E9F0;
  --ink: #0F1B2D;
  --ink-2: #33415A;
  --muted: #64748B;
  --line: rgba(15, 35, 66, .08);
  --blue-50: #EEF6FE;
  --blue-100: #DBEAFE;
  --blue-200: #BFDBFE;
  --blue-300: #93C5FD;
  --blue-400: #60A5FA;
  --blue-600: #2563EB;
  --navy: #0F2342;
  --orange: #FF8A3D;
  --orange-600: #F06A1A;
  --orange-50: #FFF4EC;
  --radius: 22px;
  --radius-sm: 14px;
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --glass-bg: rgba(255, 255, 255, .55);
  --glass-border: rgba(255, 255, 255, .75);
  --glass-shadow: inset 0 1px 0 rgba(255, 255, 255, .9), 0 12px 32px rgba(15, 35, 66, .10);
  --raise: 6px 6px 16px rgba(163, 177, 198, .55), -6px -6px 16px rgba(255, 255, 255, .95);
  --raise-sm: 3px 3px 8px rgba(163, 177, 198, .5), -3px -3px 8px rgba(255, 255, 255, .95);
  --press: inset 3px 3px 7px rgba(163, 177, 198, .55), inset -3px -3px 7px rgba(255, 255, 255, .9);
  --ease: cubic-bezier(.22, .9, .25, 1);
  --tap: 46px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.55;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
}
button { font: inherit; color: inherit; }
a { color: inherit; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 3px; border-radius: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* Nền mềm */
.bg-blobs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.bg-blobs span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; }
.bg-blobs span:nth-child(1) { width: 46vw; height: 46vw; left: -12vw; top: -14vw; background: #CFE3FA; }
.bg-blobs span:nth-child(2) { width: 34vw; height: 34vw; right: -10vw; top: 18vh; background: #FFE1CC; opacity: .45; }
.bg-blobs span:nth-child(3) { width: 40vw; height: 40vw; left: 30vw; bottom: -20vw; background: #DDE5EF; }

/* ===== Glass & raised ===== */
.glass {
  background: var(--glass-bg);
  -webkit-backdrop-filter: blur(18px) saturate(170%);
  backdrop-filter: blur(18px) saturate(170%);
  border: 1px solid var(--glass-border);
  box-shadow: var(--glass-shadow);
}
.glass-strong {
  background: linear-gradient(160deg, rgba(255,255,255,.78), rgba(255,255,255,.5));
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  backdrop-filter: blur(22px) saturate(180%);
  border: 1px solid rgba(255,255,255,.85);
  box-shadow: inset 0 1px 0 #fff, 0 24px 60px rgba(15, 35, 66, .10);
  border-radius: 28px;
}

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 18px; border-radius: 999px;
  border: 0; cursor: pointer; font-weight: 600; font-size: 15px; white-space: nowrap;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), background .2s;
}
.btn svg { width: 18px; height: 18px; }
.btn:active { transform: translateY(1px) scale(.98); }
.btn-orange {
  color: #fff;
  background: linear-gradient(180deg, #FFA562 0%, #FF8A3D 45%, #F06A1A 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), inset 0 -2px 0 rgba(160,50,0,.25), 0 8px 20px rgba(240,106,26,.35), 0 2px 0 #C9540F;
}
.btn-orange:hover { box-shadow: inset 0 1px 0 rgba(255,255,255,.6), inset 0 -2px 0 rgba(160,50,0,.25), 0 12px 26px rgba(240,106,26,.45), 0 2px 0 #C9540F; }
.btn-raised {
  background: linear-gradient(145deg, #FFFFFF, #E7ECF2);
  box-shadow: var(--raise-sm);
  color: var(--navy);
}
.btn-raised:hover { box-shadow: var(--raise); }
.btn-raised:active { box-shadow: var(--press); }
.btn-ghost { background: transparent; color: var(--ink-2); }

/* ===== Topbar ===== */
.topbar {
  position: sticky; top: 12px; z-index: 30;
  margin: 12px auto 0; width: min(1180px, calc(100% - 24px));
  display: flex; align-items: center; gap: 16px;
  padding: 8px 8px 8px 16px; border-radius: 999px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 800; letter-spacing: -.01em; }
.brand svg { width: 32px; height: 32px; }
.topnav { display: flex; gap: 4px; margin-left: auto; }
.topnav a {
  text-decoration: none; font-size: 14px; font-weight: 500; color: var(--ink-2);
  padding: 10px 14px; border-radius: 999px; transition: background .2s;
}
.topnav a:hover { background: rgba(255,255,255,.7); }

/* ===== Hero ===== */
.hero { text-align: center; padding: clamp(24px, 4vw, 44px) 20px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 14px;
  padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--ink-2);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 4px rgba(255,138,61,.2); }
h1 {
  margin: 0 auto; max-width: 22ch;
  font-size: clamp(32px, 4.6vw, 60px); line-height: 1.04; letter-spacing: -.035em; font-weight: 800;
}
h1 em { font-style: normal; color: var(--muted); font-weight: 700; }
h1 .hl {
  background: linear-gradient(90deg, var(--blue-600), #5B8DEF 55%, var(--orange));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.lead { color: var(--muted); max-width: 52ch; margin: 12px auto 0; font-size: clamp(15px, 1.6vw, 17px); }

/* ===== Vòng thẻ 3D ===== */
.stage {
  --w: clamp(140px, 13.5vw, 215px);
  position: relative;
  height: calc(var(--w) * 1.85);
  min-height: 290px;
  perspective: 2600px;
  perspective-origin: 50% 30%;
  touch-action: pan-y;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  margin-top: clamp(4px, 2vw, 18px);
}
.stage.dragging { cursor: grabbing; }
.stage::after { /* bóng đổ dưới vòng */
  content: ""; position: absolute; left: 50%; bottom: 6%;
  width: min(92vw, calc(var(--w) * 5.4)); height: calc(var(--w) * .22);
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(15,35,66,.20), rgba(15,35,66,0));
  pointer-events: none; z-index: -1;
}
.ring {
  position: absolute; left: 50%; top: 40%;
  width: 0; height: 0;
  transform-style: preserve-3d;
}
.card {
  --fade: 0;
  position: absolute;
  /* vẽ ở kích thước gấp đôi rồi scale(.5) để chữ sắc nét trong không gian 3D */
  width: calc(var(--w) * 2); aspect-ratio: 16 / 10;
  left: calc(var(--w) * -1); top: calc(var(--w) * -.625);
  border-radius: calc(var(--w) * .1);
  overflow: hidden;
  container-type: inline-size;
  background: #fff;
  box-shadow: 0 36px 80px rgba(15, 35, 66, .18), 0 4px 12px rgba(15,35,66,.08);
  cursor: pointer;
  outline: none;
}
.card::after { /* làm mờ thẻ ở phía sau, giống video */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(242,245,249,.95), rgba(230,235,242,.92));
  opacity: var(--fade);
  pointer-events: none;
}
.card:focus-visible { box-shadow: 0 0 0 3px var(--orange), 0 18px 40px rgba(15,35,66,.2); }
.card-art, .card-art svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.card-ui { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; padding: 4.5cqw 5cqw 5cqw; }
.card-nav { display: flex; align-items: center; gap: 3cqw; font-size: 3.4cqw; font-weight: 600; }
.card-nav .logo { display: flex; align-items: center; gap: 1.6cqw; font-weight: 800; }
.card-nav .logo i { width: 3.2cqw; height: 3.2cqw; border-radius: 1cqw; background: currentColor; display: block; position: relative; }
.card-nav .links { opacity: .6; display: flex; gap: 2.6cqw; margin-left: auto; }
.card-nav .pill { padding: .9cqw 2.6cqw; border-radius: 99px; font-size: 3cqw; }
.card-copy { max-width: 58%; }
.card-copy .ey { font-size: 3.1cqw; font-weight: 600; opacity: .72; margin-bottom: 1cqw; letter-spacing: .01em; }
.card-copy h3 { margin: 0; font-size: 9.6cqw; line-height: 1; letter-spacing: -.035em; font-weight: 800; }
.card-copy p { margin: 1.6cqw 0 3cqw; font-size: 3.6cqw; line-height: 1.3; opacity: .82; }
.card-copy .cta { display: inline-flex; align-items: center; gap: 1.6cqw; font-size: 3.2cqw; font-weight: 700; padding: 1.6cqw 3.4cqw; border-radius: 99px; }
.card-copy .cta i { width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: var(--orange); }
.card .num {
  position: absolute; right: 4.5cqw; bottom: 3cqw; font-size: 20cqw; font-weight: 800; line-height: .8;
  letter-spacing: -.06em; opacity: .14; pointer-events: none;
}
.t-light { color: var(--navy); }
.t-light .pill { background: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.9); }
.t-light .cta { background: var(--navy); color: #fff; }
.t-mid { color: var(--navy); }
.t-mid .pill { background: rgba(255,255,255,.6); }
.t-mid .cta { background: #fff; color: var(--navy); }
.t-dark { color: #fff; }
.t-dark .pill { background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); }
.t-dark .cta { background: #fff; color: var(--navy); }
.t-dark .num { opacity: .12; }

/* ===== Dock ===== */
.dock-wrap { display: flex; justify-content: center; padding: 0 12px; margin-top: 4px; position: relative; z-index: 5; }
.dock {
  display: flex; align-items: center; gap: 6px; padding: 7px; border-radius: 999px;
  max-width: 100%;
}
.ctrl {
  width: var(--tap); height: var(--tap); border-radius: 50%; border: 0; cursor: pointer;
  display: grid; place-items: center; color: var(--navy);
  background: linear-gradient(145deg, #FFFFFF, #E5EAF1);
  box-shadow: var(--raise-sm);
  transition: box-shadow .2s, transform .2s;
  flex: none;
}
.ctrl:hover { box-shadow: var(--raise); }
.ctrl:active { box-shadow: var(--press); transform: scale(.97); }
.ctrl svg { width: 20px; height: 20px; }
#playBtn .i-play { display: none; }
#playBtn[aria-pressed="false"] .i-play { display: block; }
#playBtn[aria-pressed="false"] .i-pause { display: none; }
.dock-sep { width: 1px; height: 26px; background: var(--line); margin: 0 4px; flex: none; }
.chips { display: flex; gap: 4px; }
.chip {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 999px; border: 0; cursor: pointer;
  background: transparent; font-weight: 600; font-size: 14px; color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 6px; transition: background .25s, color .25s, box-shadow .25s;
}
.chip b { font-weight: 800; }
.chip span { display: none; }
.chip:hover { background: rgba(255,255,255,.75); }
.chip.on {
  background: var(--navy); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.18), 0 6px 14px rgba(15,35,66,.25);
}
.chip.on span { display: inline; }
.open-current { margin-left: 4px; }
.open-current b { color: var(--orange-600); }

/* ===== Sections ===== */
.section { width: min(1180px, calc(100% - 32px)); margin: clamp(64px, 9vw, 112px) auto 0; scroll-margin-top: 96px; }
.sec-head { max-width: 640px; margin-bottom: 28px; }
.sec-head h2, .plateau h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.1; letter-spacing: -.03em; margin: 6px 0 10px; }
.sec-head p { color: var(--muted); margin: 0; }
.kicker { margin: 0; font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--blue-600); }
.kicker.orange { color: var(--orange-600); }

.stage-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.stage-card {
  position: relative; padding: 22px; border-radius: var(--radius);
  background: linear-gradient(150deg, #FBFCFE, #E9EEF4);
  box-shadow: var(--raise);
  display: flex; flex-direction: column; gap: 10px; min-height: 250px;
}
.stage-card .idx {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: var(--sc, var(--navy)); box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 14px rgba(15,35,66,.18);
}
.stage-card h3 { margin: 4px 0 0; font-size: 19px; letter-spacing: -.02em; line-height: 1.2; }
.stage-card .en { font-size: 12.5px; color: var(--muted); font-style: italic; margin: 0; }
.stage-card p { margin: 0; color: var(--ink-2); font-size: 14.5px; }
.stage-card .lv { display: flex; flex-wrap: wrap; gap: 8px; margin-top: auto; }
.lv-btn {
  min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 600; font-size: 14px;
  background: rgba(255,255,255,.75); color: var(--navy);
  box-shadow: var(--raise-sm); transition: box-shadow .2s, transform .2s;
}
.lv-btn:hover { box-shadow: var(--raise); }
.lv-btn:active { box-shadow: var(--press); }
.lv-btn b { color: var(--orange-600); margin-right: 4px; }

.plateau { display: grid; grid-template-columns: 1.05fr 1fr; gap: 36px; padding: clamp(24px, 4vw, 44px); position: relative; overflow: hidden; }
.plateau::before {
  content: ""; position: absolute; width: 380px; height: 380px; right: -120px; top: -140px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(255,138,61,.28), rgba(255,138,61,0)); pointer-events: none;
}
.plateau-copy p:last-child { color: var(--ink-2); margin: 0; }
.plateau-tips { list-style: none; counter-reset: t; margin: 0; padding: 0; display: grid; gap: 12px; position: relative; }
.plateau-tips li {
  counter-increment: t; position: relative; padding: 14px 16px 14px 58px; border-radius: 16px;
  background: rgba(255,255,255,.7); border: 1px solid rgba(255,255,255,.9); font-size: 15px; color: var(--ink-2);
}
.plateau-tips li::before {
  content: counter(t); position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: linear-gradient(180deg, #FFA562, #F06A1A); box-shadow: 0 4px 10px rgba(240,106,26,.3);
}
.plateau-tips b { color: var(--ink); }

.results { padding: clamp(20px, 3.5vw, 36px); display: grid; grid-template-columns: 300px 1fr; gap: 32px; }
.res-summary { display: flex; flex-direction: column; gap: 12px; }
.res-big {
  border-radius: 22px; padding: 22px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(150deg, #1C3A6B, #0F2342);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 16px 36px rgba(15,35,66,.25);
}
.res-big small { opacity: .7; font-size: 13px; }
.res-big strong { display: block; font-size: 44px; line-height: 1.05; letter-spacing: -.03em; margin: 6px 0 4px; }
.res-big span { font-size: 15px; opacity: .9; }
.res-big::after { content: ""; position: absolute; width: 140px; height: 140px; right: -40px; bottom: -50px; border-radius: 50%; background: radial-gradient(closest-side, rgba(255,138,61,.55), rgba(255,138,61,0)); }
.res-hint { font-size: 14px; color: var(--ink-2); margin: 0; }
.res-bars { display: grid; gap: 10px; }
.bar-row {
  display: grid; grid-template-columns: 150px 1fr 48px; align-items: center; gap: 14px;
  padding: 8px 10px; border-radius: 14px; border: 0; background: transparent; cursor: pointer; text-align: left; width: 100%;
  transition: background .2s;
}
.bar-row:hover { background: rgba(255,255,255,.7); }
.bar-row .nm { font-weight: 600; font-size: 14.5px; }
.bar-row .nm b { color: var(--muted); font-weight: 700; margin-right: 6px; }
.bar { height: 12px; border-radius: 99px; background: var(--bg-2); box-shadow: inset 1px 1px 3px rgba(15,35,66,.12); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-400), var(--blue-600)); transition: width .6s var(--ease); }
.bar-row.top .bar i { background: linear-gradient(90deg, #FFA562, var(--orange-600)); }
.bar-row .ct { font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; text-align: right; }
.res-actions { grid-column: 1 / -1; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.device { font-size: 12.5px; color: var(--muted); }

.footer {
  width: min(1180px, calc(100% - 32px)); margin: 96px auto 0; padding: 28px 0 calc(40px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); display: grid; grid-template-columns: 1.4fr 1fr; gap: 32px; font-size: 14px;
}
.footer ul { margin: 10px 0 0; padding-left: 18px; color: var(--ink-2); }
.footer li { margin: 6px 0; }
.footer a { text-decoration-color: rgba(37,99,235,.35); text-underline-offset: 3px; }
.foot-note { color: var(--muted); margin: 0; align-self: end; }

/* ===== Modal ===== */
.modal { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal[hidden] { display: none; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(15, 27, 45, .32);
  -webkit-backdrop-filter: blur(10px) saturate(120%); backdrop-filter: blur(10px) saturate(120%);
  animation: fadeIn .3s var(--ease);
}
.sheet {
  position: relative; width: min(1080px, 100%); height: min(780px, calc(100dvh - 40px));
  display: grid; grid-template-columns: 380px 1fr; grid-template-rows: 1fr auto;
  border-radius: 30px; overflow: hidden; outline: none;
  background: linear-gradient(160deg, rgba(248,250,253,.92), rgba(236,241,247,.88));
  -webkit-backdrop-filter: blur(26px) saturate(180%); backdrop-filter: blur(26px) saturate(180%);
  border: 1px solid rgba(255,255,255,.8);
  box-shadow: inset 0 1px 0 #fff, 0 40px 100px rgba(15,35,66,.35);
  animation: popIn .45s var(--ease);
}
@keyframes popIn { from { opacity: 0; transform: translateY(24px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.m-hero { position: relative; min-width: 0; grid-row: 1 / 3; padding: 22px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.m-hero.t-dark { background: linear-gradient(170deg, #142749, #0B1529); color: #fff; }
.m-hero.t-light, .m-hero.t-mid { background: linear-gradient(170deg, #F6F9FD, #E3ECF7); }
.m-art { position: relative; border-radius: 20px; overflow: hidden; aspect-ratio: 16/10; flex: none; box-shadow: 0 14px 30px rgba(15,35,66,.2); }
.m-art svg { width: 100%; height: 100%; display: block; }
.m-badge {
  position: absolute; left: 12px; top: 12px; padding: 6px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  background: rgba(255,255,255,.7); color: var(--navy);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.9);
}
.m-hero h2 { margin: 4px 0 0; font-size: clamp(30px, 3.4vw, 40px); letter-spacing: -.035em; line-height: 1; }
.m-tag { margin: 0; font-size: 16px; opacity: .75; font-weight: 500; }
.m-maps { display: grid; gap: 8px; }
.map-row { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; padding: 9px 12px; border-radius: 12px; background: rgba(255,255,255,.6); border: 1px solid rgba(255,255,255,.8); }
.t-dark .map-row { background: rgba(255,255,255,.07); border-color: rgba(255,255,255,.12); }
.map-row span { opacity: .65; }
.map-row b { text-align: right; font-weight: 600; }
.m-time { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; padding: 12px; border-radius: 14px; background: var(--orange-50); color: #8A3A08; }
.t-dark .m-time { background: rgba(255,138,61,.14); color: #FFD1B0; }
.m-time svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.meters { display: grid; gap: 10px; }
.meter { display: grid; grid-template-columns: 112px 1fr 36px; gap: 10px; align-items: center; font-size: 13px; }
.meter .tr { height: 8px; border-radius: 99px; background: rgba(15,35,66,.1); overflow: hidden; }
.t-dark .meter .tr { background: rgba(255,255,255,.12); }
.meter .tr i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--blue-400), var(--blue-600)); }
.meter.c .tr i { background: linear-gradient(90deg, #FFA562, var(--orange-600)); }
.meter em { font-style: normal; opacity: .7; text-align: right; font-variant-numeric: tabular-nums; }

.m-body { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.tabs {
  display: flex; gap: 6px; padding: 18px 22px 12px; flex: none; overflow-x: auto; scrollbar-width: none;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  min-height: 42px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer; font-weight: 600; font-size: 14.5px;
  background: transparent; color: var(--ink-2); white-space: nowrap; transition: background .2s, box-shadow .2s, color .2s;
}
.tab:hover { background: rgba(255,255,255,.7); }
.tab[aria-selected="true"] { background: linear-gradient(145deg, #fff, #EDF1F6); color: var(--navy); box-shadow: var(--raise-sm); }
.tab .badge { display: inline-block; min-width: 22px; margin-left: 6px; padding: 1px 7px; border-radius: 99px; font-size: 12px; background: var(--orange); color: #fff; }
.panels { flex: 1; overflow-y: auto; padding: 6px 22px 22px; overscroll-behavior: contain; }
.panel[hidden] { display: none; }
.panel h4 { margin: 18px 0 10px; font-size: 13px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.panel h4:first-child { margin-top: 4px; }
.essence { font-size: 16.5px; line-height: 1.65; margin: 0; color: var(--ink); }
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.list li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.72); border: 1px solid rgba(255,255,255,.9); font-size: 15px; }
.list li .ic { width: 26px; height: 26px; border-radius: 8px; flex: none; display: grid; place-items: center; }
.list li .ic svg { width: 15px; height: 15px; }
.list.signs .ic { background: var(--blue-100); color: var(--blue-600); }
.list.bad .ic { background: #FFE9DB; color: var(--orange-600); }
.list.steps { counter-reset: s; }
.list.steps .ic { background: var(--navy); color: #fff; font-weight: 800; font-size: 13px; }
.feel { display: flex; flex-wrap: wrap; gap: 8px; }
.feel span { padding: 8px 14px; border-radius: 999px; background: rgba(255,255,255,.8); box-shadow: var(--raise-sm); font-size: 14px; font-weight: 500; }
.voice {
  margin: 14px 0 0; padding: 18px 20px; border-radius: 18px; position: relative;
  background: linear-gradient(135deg, rgba(191,219,254,.55), rgba(255,255,255,.6));
  border: 1px solid rgba(255,255,255,.9); font-size: 18px; font-weight: 600; letter-spacing: -.01em;
}
.voice small { display: block; font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 4px; }
.ex-grid { display: grid; gap: 12px; }
.ex {
  display: grid; grid-template-columns: 48px 1fr; gap: 14px; align-items: start; padding: 16px; border-radius: 18px;
  background: linear-gradient(150deg, #FFFFFF, #EEF2F7); box-shadow: var(--raise-sm);
}
.ex .ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; box-shadow: inset 0 1px 0 rgba(255,255,255,.3), 0 6px 14px rgba(15,35,66,.18); }
.ex .ico svg { width: 24px; height: 24px; }
.ex h5 { margin: 2px 0 4px; font-size: 16px; }
.ex p { margin: 0; font-size: 15px; color: var(--ink-2); }

.checks { display: grid; gap: 10px; }
.check {
  display: flex; gap: 14px; align-items: center; min-height: 56px; padding: 12px 16px; border-radius: 16px; cursor: pointer;
  background: rgba(255,255,255,.75); border: 1px solid rgba(255,255,255,.95); font-size: 15px; transition: background .2s, box-shadow .2s;
}
.check:hover { background: #fff; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check .box {
  width: 28px; height: 28px; border-radius: 9px; flex: none; display: grid; place-items: center;
  background: linear-gradient(145deg, #fff, #E6EBF2); box-shadow: var(--raise-sm); transition: background .2s, box-shadow .2s;
}
.check .box svg { width: 16px; height: 16px; opacity: 0; transform: scale(.6); transition: .2s var(--ease); color: #fff; }
.check input:checked + .box { background: linear-gradient(180deg, #FFA562, #F06A1A); box-shadow: 0 4px 10px rgba(240,106,26,.35); }
.check input:checked + .box svg { opacity: 1; transform: none; }
.check input:focus-visible + .box { outline: 3px solid var(--blue-400); outline-offset: 2px; }
.check-result {
  margin-top: 14px; padding: 16px 18px; border-radius: 18px; display: flex; gap: 16px; align-items: center;
  background: linear-gradient(135deg, rgba(219,234,254,.8), rgba(255,255,255,.7)); border: 1px solid #fff;
}
.ring-mini { width: 58px; height: 58px; flex: none; }
.check-result b { display: block; font-size: 16px; }
.check-result span { font-size: 14px; color: var(--ink-2); }
.check-note { font-size: 12.5px; color: var(--muted); margin: 10px 2px 0; }

.m-actions {
  grid-column: 2; display: flex; align-items: center; gap: 10px; padding: 12px 22px calc(14px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--line); background: rgba(255,255,255,.4);
}
.m-actions .spacer { flex: 1; }
.m-close {
  position: absolute; right: 16px; top: 14px; z-index: 3;
  width: var(--tap); height: var(--tap); border-radius: 50%; border: 0; cursor: pointer; display: grid; place-items: center;
  background: rgba(255,255,255,.75); color: var(--navy);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  box-shadow: inset 0 1px 0 #fff, 0 6px 16px rgba(15,35,66,.15);
}
.m-close svg { width: 20px; height: 20px; }

/* ===== Responsive ===== */
@media (max-width: 1080px) {
  .stage-grid { grid-template-columns: repeat(2, 1fr); }
  .chip span { display: none !important; }
}
@media (max-width: 900px) {
  .topnav { display: none; }
  .topbar { justify-content: space-between; }
  .plateau { grid-template-columns: 1fr; }
  .results { grid-template-columns: 1fr; }
  .footer { grid-template-columns: 1fr; }
  /* Popup thành bottom sheet, nút thao tác trong vùng ngón cái */
  .modal { padding: 0; place-items: end center; }
  .sheet {
    grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
    width: 100%; height: 94dvh; max-height: none; border-radius: 28px 28px 0 0;
    animation: sheetUp .45s var(--ease);
  }
  .sheet::before { content: ""; position: absolute; top: 8px; left: 50%; width: 44px; height: 5px; margin-left: -22px; border-radius: 9px; background: rgba(15,35,66,.2); z-index: 4; }
  .m-hero { grid-row: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 12px; padding: 22px 16px 10px; overflow: visible; }
  .m-art { width: 132px; border-radius: 14px; }
  .m-badge { font-size: 11px; padding: 3px 8px; left: 6px; top: 6px; }
  .m-hero .m-head { flex: 1; min-width: 0; padding-right: 50px; }
  .m-hero h2 { font-size: 30px; }
  .m-tag { font-size: 14.5px; }
  .m-maps, .m-time, .meters { display: none; }
  .m-hero.expanded .m-maps, .m-hero.expanded .meters { display: grid; width: 100%; }
  .m-hero.expanded .m-time { display: flex; width: 100%; }
  .m-more { display: inline-flex !important; }
  .m-body { min-height: 0; }
  .tabs { padding: 8px 12px 10px; gap: 2px; }
  .tab { padding: 0 11px; font-size: 13.5px; }
  .panels { padding: 4px 16px 16px; }
  .m-actions { grid-column: 1; padding: 10px 16px calc(12px + env(safe-area-inset-bottom)); }
  .m-actions .btn { flex: 1; }
  .m-actions .spacer { display: none; }
  .m-close { top: 18px; right: 14px; }
  @keyframes sheetUp { from { transform: translateY(40%); opacity: .4; } to { transform: none; opacity: 1; } }
}
@media (max-width: 640px) {
  .stage { --w: clamp(140px, 40vw, 190px); height: calc(var(--w) * 1.9); min-height: 0; perspective: 1500px; }
  .stage-grid { grid-template-columns: 1fr; }
  .stage-card { min-height: 0; }
  .dock { flex-wrap: wrap; justify-content: center; border-radius: 26px; }
  .dock-sep { display: none; }
  .chips { order: 3; width: 100%; justify-content: space-between; }
  .chip { min-width: 0; flex: 0 0 40px; width: 40px; padding: 0; justify-content: center; }
  .open-current { margin-left: 0; }
  .bar-row { grid-template-columns: 110px 1fr 40px; gap: 10px; }
  .topbar .btn-orange span { display: none; }
  .topbar .btn-orange { width: var(--tap); padding: 0; }
  .dock-wrap { margin-top: 16px; }
}
.m-more { display: none; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
