@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/be-vietnam-pro-400-latin.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/be-vietnam-pro-400-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 400; font-display: swap; src: url("fonts/be-vietnam-pro-400-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/be-vietnam-pro-500-latin.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/be-vietnam-pro-500-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 500; font-display: swap; src: url("fonts/be-vietnam-pro-500-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/be-vietnam-pro-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/be-vietnam-pro-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/be-vietnam-pro-600-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/be-vietnam-pro-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/be-vietnam-pro-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Be Vietnam Pro"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/be-vietnam-pro-700-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-600-latin.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-600-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 600; font-display: swap; src: url("fonts/barlow-condensed-600-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700-latin.woff2") format("woff2"); unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700-latin-ext.woff2") format("woff2"); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Barlow Condensed"; font-style: normal; font-weight: 700; font-display: swap; src: url("fonts/barlow-condensed-700-vietnamese.woff2") format("woff2"); unicode-range: U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB; }

/* Mẫu Vòng Bánh Motor - "bảng thông số kỹ thuật". Mọi giá trị màu, cỡ, nhịp lấy từ token ở :root. */
:root {
  --bg: #f2f4f7;
  --card: #ffffff;
  --ink: #0a0c12;
  --ink2: #262b36;
  --mute: #596172;
  --line: #d7dce4;
  --cb: #2a35ff;
  --cbd: #1b24c9;
  --cbl: #e6e8ff;
  --yl: #ffe14d;
  --on-cb: #e1e4ff;
  --on-ink: #b7bdcb;
  --ink-line: #2b3040;
  --err: #d61f3a;
  --err-text: #b5122b;
  --err-bg: #fff5f6;
  --shadow: rgba(10, 12, 18, 0.5);
  --scrim: rgba(10, 12, 18, 0.62);
  --glass: rgba(255, 255, 255, 0.14);
  --font: 'Be Vietnam Pro', system-ui, sans-serif;
  --font-cd: 'Barlow Condensed', 'Be Vietnam Pro', sans-serif;
  --r: 10px;
  --r-sm: 8px;
  --r-xs: 4px;
  --wrap: 1240px;
  --gut: 32px;
  --offset: var(--viewer-offset, 0px);
  --pill-top: calc(var(--offset) + 14px);
  --bar-top: calc(var(--offset) + 78px);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --t-fast: 0.15s;
  --t: 0.25s;
  --t-slow: 0.45s;
}

*,
*::before,
*::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; }
html.lock { overflow: hidden; }
body { font: 400 16px/1.55 var(--font); background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
a { color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; box-shadow: 0 0 0 6px var(--yl); }
::selection { background: var(--yl); color: var(--ink); }
section, .book, #dau { scroll-margin-top: calc(var(--offset) + 70px); }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.cd, .num { font-family: var(--font-cd); font-weight: 700; }

/* ---------- Thanh điều hướng viên thuốc ---------- */
.pill { position: fixed; top: var(--pill-top); left: 0; right: 0; z-index: 40; display: flex; justify-content: center; pointer-events: none; }
.pill nav { pointer-events: auto; display: flex; align-items: center; gap: 4px; background: var(--card); border: 1px solid var(--line); border-radius: 99px; padding: 6px; box-shadow: 0 8px 24px -14px var(--shadow); transition: box-shadow var(--t), transform var(--t) var(--ease); }
.pill.is-scrolled nav { box-shadow: 0 14px 30px -14px var(--shadow); }
.pill a { padding: 8px 14px; border-radius: 99px; font-size: 14px; font-weight: 500; color: var(--ink2); text-decoration: none; transition: background var(--t-fast), color var(--t-fast), transform var(--t-fast); }
.pill a:hover { background: var(--bg); }
.pill a:active { transform: scale(0.96); }
.pill a.is-on { background: var(--cbl); color: var(--cbd); font-weight: 600; }
.pill .lg { display: flex; align-items: center; gap: 8px; font-family: var(--font-cd); font-weight: 700; font-size: 20px; letter-spacing: 0.04em; text-transform: uppercase; padding: 4px 16px 4px 14px; color: var(--ink); }
.pill .lg i { width: 10px; height: 10px; background: var(--cb); border-radius: 2px; transform: rotate(45deg); transition: transform var(--t-slow) var(--ease); }
.pill .lg:hover i { transform: rotate(225deg); }
.pill .go { background: var(--cb); color: #fff; font-weight: 600; margin-left: 6px; padding: 9px 18px; }
.pill .go:hover { background: var(--cbd); }

.prog { position: fixed; left: 0; right: 0; bottom: 0; height: 3px; z-index: 50; }
.prog i { display: block; height: 100%; width: 100%; background: var(--cb); transform: scaleX(0); transform-origin: left; }

/* ---------- Nút ---------- */
.b { position: relative; overflow: hidden; display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: var(--r-sm); background: var(--cb); color: #fff; font-weight: 600; font-size: 15px; text-decoration: none; transition: transform var(--t-fast), background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast); }
.b:hover { background: var(--cbd); transform: translateY(-1px); }
.b:active { transform: scale(0.97); }
.b.w { background: #fff; color: var(--cbd); }
.b.w:hover { background: var(--yl); color: var(--ink); }
.b.o { background: transparent; box-shadow: inset 0 0 0 1.5px #fff; color: #fff; }
.b.o:hover { background: #fff; color: var(--cbd); }
.b.k { background: var(--ink); color: #fff; }
.b.k:hover { background: var(--ink2); }
.b:disabled { opacity: 0.55; cursor: not-allowed; transform: none; }
.ripple { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: var(--glass); pointer-events: none; animation: ripple 0.6s ease-out forwards; }
@keyframes ripple { to { transform: scale(26); opacity: 0; } }

/* ---------- Hero ---------- */
.hero { background: var(--cb); color: #fff; padding: 112px 0 0; overflow: hidden; }
.hero .g { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 48px; align-items: end; }
.ey { font-family: var(--font-cd); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: 15px; color: var(--yl); }
.hero h1 { font-family: var(--font-cd); font-weight: 700; font-size: clamp(64px, 9.4vw, 148px); line-height: 1.02; text-transform: uppercase; letter-spacing: -0.01em; margin: 16px 0 22px; }
.hero h1 .ln { display: block; overflow: hidden; padding-bottom: 0.12em; margin-bottom: -0.08em; }
.hero h1 .ln > span { display: block; }
.hero h1 em { font-style: normal; color: var(--yl); }
.hero .lead { max-width: 42ch; font-size: 18px; color: var(--on-cb); margin-bottom: 28px; }
.hero .bt { display: flex; gap: 12px; flex-wrap: wrap; padding-bottom: 56px; }
.plate { align-self: end; margin-bottom: -1px; min-width: 0; }
.plate .fr { position: relative; background: #fff; border-radius: var(--r) var(--r) 0 0; padding: 14px 14px 0; color: var(--ink); }
.plate img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r-xs); background: var(--line); }
.cm { position: absolute; width: 18px; height: 18px; border: 0 solid var(--ink); }
.cm.a { top: 6px; left: 6px; border-top-width: 2px; border-left-width: 2px; }
.cm.b2 { top: 6px; right: 6px; border-top-width: 2px; border-right-width: 2px; }
.tag { position: absolute; background: var(--ink); color: #fff; padding: 3px 8px; border-radius: var(--r-xs); font-family: var(--font-cd); font-weight: 600; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
.tag.l1 { top: 34%; left: -12px; }
.tag.l1::after { content: ''; position: absolute; left: 100%; top: 50%; width: 46px; border-top: 1.5px solid var(--ink); }
.tag.l2 { bottom: 30%; right: 26px; background: var(--yl); color: var(--ink); }
.ft { display: flex; width: 100%; justify-content: space-between; align-items: flex-end; text-align: left; padding: 14px 4px 16px; transition: background var(--t-fast); }
.ft:hover b { color: var(--cbd); text-decoration: underline; }
.ft small { display: block; font-size: 12px; color: var(--mute); letter-spacing: 0.08em; text-transform: uppercase; }
.ft b { font-size: 20px; font-weight: 600; }
.ft .num { font-size: 44px; line-height: 1; color: var(--cb); }
.ft .num span { font-size: 20px; font-weight: 600; color: var(--ink2); margin-left: 4px; }

.js .hero h1 .ln > span { transform: translateY(105%); animation: rise 0.8s var(--ease) forwards; animation-delay: calc(var(--n, 0) * 0.12s + 0.1s); }
.js .hero h1 .ln:nth-child(2) > span { --n: 1; }
.js .hero h1 .ln:nth-child(3) > span { --n: 2; }
.js .hero .ey, .js .hero .lead, .js .hero .bt { opacity: 0; animation: fadeup 0.7s var(--ease) forwards; animation-delay: 0.45s; }
.js .hero .bt { animation-delay: 0.6s; }
.js .plate .fr { animation: plate 0.9s var(--ease) 0.2s both; }
@keyframes rise { to { transform: none; } }
@keyframes fadeup { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes plate { from { clip-path: inset(100% 0 0 0); } to { clip-path: inset(-30px); } }

/* ---------- Dải số và hãng ---------- */
.ticker { background: var(--ink); color: #fff; }
.ticker .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 22px 0 22px 24px; border-left: 1px solid var(--ink-line); display: flex; align-items: baseline; gap: 12px; }
.stat:first-child { border-left: 0; padding-left: 0; }
.stat .num { font-size: 44px; line-height: 1; color: var(--yl); }
.stat span { color: var(--on-ink); font-size: 14px; }
.brands { padding: 28px 0; border-bottom: 1px solid var(--line); font-family: var(--font-cd); font-weight: 600; font-size: 22px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--mute); }
.brands .wrap { display: flex; gap: 10px 28px; flex-wrap: wrap; align-items: center; }
.brands small { font-size: 13px; letter-spacing: 0.16em; color: var(--cb); }
.brands span { transition: color var(--t-fast); }
.brands span:hover { color: var(--ink); }

/* ---------- Section ---------- */
section { padding: 88px 0; }
section.flush { padding-top: 0; }
.sh { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.7fr); gap: 32px; align-items: end; margin-bottom: 36px; }
h2 { font-family: var(--font-cd); font-weight: 700; font-size: clamp(40px, 5vw, 68px); line-height: 1.08; text-transform: uppercase; }
.sh p { color: var(--mute); }
.sh .k { font-family: var(--font-cd); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: 14px; color: var(--cb); display: block; margin-bottom: 10px; }

.js [data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-reveal].is-in { opacity: 1; transform: none; }

/* ---------- Chọn loại ---------- */
.idx { border-top: 2px solid var(--ink); }
.ix { display: grid; grid-template-columns: 72px minmax(0, 1.1fr) minmax(0, 1.5fr) 90px 40px; align-items: center; gap: 16px; width: 100%; text-align: left; padding: 22px 12px; border-bottom: 1px solid var(--line); position: relative; transition: background var(--t), padding var(--t), color var(--t); }
.ix b { font-family: var(--font-cd); font-size: 44px; line-height: 1; color: var(--line); transition: color var(--t); }
.ix strong { font-size: 24px; font-weight: 600; }
.ix .hint { color: var(--mute); }
.ix em { font-style: normal; font-family: var(--font-cd); font-weight: 600; font-size: 20px; text-align: right; }
.ix i { font-style: normal; font-size: 22px; transition: transform var(--t); }
.ix:hover { background: var(--card); padding-left: 22px; }
.ix:hover b { color: var(--cb); }
.ix:hover i { transform: translateX(6px); }
.ix:active { transform: scale(0.995); }
.ix.is-on { background: var(--cb); color: #fff; padding-left: 22px; }
.ix.is-on b { color: var(--yl); }
.ix.is-on .hint { color: var(--on-cb); }
.ix.is-on i { transform: rotate(90deg); }

/* ---------- Thanh lọc ---------- */
.bar { position: sticky; top: var(--bar-top); z-index: 20; }
.tool { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; box-shadow: 0 10px 24px -20px var(--shadow); }
.tabs { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: var(--r-sm); padding: 3px; background: var(--bg); }
.tabs::before { content: ''; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc((100% - 6px) / 3); border-radius: 6px; background: var(--ink); transform: translateX(calc(var(--i, 0) * 100%)); transition: transform var(--t) var(--ease); }
.tabs button { position: relative; padding: 8px 16px; border-radius: 6px; font-weight: 600; font-size: 14px; color: var(--ink2); white-space: nowrap; transition: color var(--t); }
.tabs button[aria-selected='true'] { color: #fff; }
.tabs button[aria-selected='false']:hover { color: var(--cb); }
.selects { display: contents; }
.sel { position: relative; }
.sel-btn { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 46px; min-width: 156px; padding: 0 14px; border-radius: var(--r-sm); background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14px; text-align: left; transition: box-shadow var(--t-fast), background var(--t-fast); }
.sel-btn:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.sel-btn:active { background: var(--bg); }
.sel-btn > span { min-width: 0; }
.sel-label { display: block; font-weight: 500; font-size: 11px; color: var(--mute); line-height: 1.1; letter-spacing: 0.04em; text-transform: uppercase; }
.sel-val { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sel-btn svg { width: 14px; flex: none; transition: transform var(--t) var(--ease), color var(--t); }
.sel.is-open .sel-btn { box-shadow: inset 0 0 0 2px var(--cb); }
.sel.is-open .sel-btn svg { transform: rotate(180deg); color: var(--cb); }
.sel-list { position: absolute; top: calc(100% + 6px); left: 0; min-width: 100%; width: max-content; max-width: 320px; max-height: 320px; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--line) transparent; background: #fff; border-radius: var(--r); padding: 6px; list-style: none; z-index: 6; box-shadow: 0 0 0 1px var(--line), 0 20px 40px -18px var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity var(--t-fast), transform var(--t) var(--ease), visibility 0s var(--t); }
.sel.is-open .sel-list { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.sel-opt { display: flex; justify-content: space-between; gap: 16px; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 6px; font-size: 14px; cursor: pointer; transition: background var(--t-fast); }
.sel-opt small { color: var(--mute); font-family: var(--font-cd); font-size: 15px; font-weight: 600; }
.sel-opt.is-hi { background: var(--bg); }
.sel-opt[aria-selected='true'] { background: var(--cbl); color: var(--cbd); font-weight: 700; }
.sel-opt[aria-selected='true']::after { content: '✓'; }
.sel-opt.is-hi { outline: 2px solid var(--cb); outline-offset: -2px; }
.sel-opt[aria-disabled='true'] { opacity: 0.4; cursor: not-allowed; }
.cnt { margin-left: auto; font-family: var(--font-cd); font-weight: 600; font-size: 18px; color: var(--mute); }
.cnt b { color: var(--ink); }

.chips { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin: 14px 0 20px; min-height: 30px; }
.chip { display: inline-flex; gap: 8px; align-items: center; padding: 5px 6px 5px 12px; background: var(--cbl); color: var(--cbd); border-radius: 6px; font-size: 13px; font-weight: 600; animation: pop 0.3s var(--ease) both; transition: background var(--t-fast), color var(--t-fast); }
.chip svg { width: 20px; height: 20px; padding: 4px; border-radius: var(--r-xs); background: #fff; transition: background var(--t-fast), color var(--t-fast); }
.chip:hover svg { background: var(--cb); color: #fff; }
.chip:active { transform: scale(0.95); }
.chip-clear { background: transparent; color: var(--ink2); text-decoration: underline; padding: 5px 8px; }
@keyframes pop { from { opacity: 0; transform: scale(0.8); } to { opacity: 1; transform: none; } }

/* ---------- Bảng xe ---------- */
.head, .row { display: grid; grid-template-columns: 56px 180px minmax(0, 1.5fr) minmax(0, 2.4fr) 130px 160px; gap: 16px; }
.head { padding: 10px 16px; font-family: var(--font-cd); font-weight: 600; font-size: 14px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--mute); border-bottom: 2px solid var(--ink); }
.row { align-items: center; padding: 14px 16px; background: var(--card); border-bottom: 1px solid var(--line); min-width: 0; position: relative; transition: background var(--t), box-shadow var(--t); animation: rowin 0.5s var(--ease) both; animation-delay: calc(var(--i, 0) * 45ms); }
@keyframes rowin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.row:hover, .row.is-cur { box-shadow: inset 6px 0 0 var(--cb), 0 14px 30px -20px var(--shadow); z-index: 1; }
.row.is-cur { background: var(--cbl); }
.no { font-family: var(--font-cd); font-weight: 700; font-size: 28px; color: var(--line); transition: color var(--t); }
.row:hover .no, .row.is-cur .no { color: var(--cb); }
.th { position: relative; border-radius: 6px; overflow: hidden; aspect-ratio: 4 / 3; background: var(--line); }
.th::after { content: ''; position: absolute; inset: 0; background: var(--card); opacity: 0; animation: pulse 1.2s ease-in-out infinite; }
.th.is-ready::after { display: none; }
@keyframes pulse { 50% { opacity: 0.6; } }
.th img { width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity var(--t-slow), transform 0.5s; }
.th img.is-loaded { opacity: 1; }
.row:hover .th img { transform: scale(1.06); }
.st { position: absolute; left: 6px; top: 6px; background: var(--ink); color: #fff; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: var(--r-xs); letter-spacing: 0.04em; z-index: 1; }
.st.n { background: var(--yl); color: var(--ink); }
.nm { min-width: 0; }
.nm h3 { font-size: 19px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; margin-top: 6px; }
.code { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 600; color: var(--mute); letter-spacing: 0.04em; text-transform: uppercase; }
.code b { font-family: var(--font-cd); width: 22px; height: 22px; display: grid; place-items: center; background: var(--ink); color: #fff; border-radius: var(--r-xs); font-size: 15px; }
.sp { display: grid; grid-template-columns: 0.6fr 1.1fr 1.15fr 1fr; gap: 12px; min-width: 0; }
.sp div { min-width: 0; }
.sp dt { font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); font-weight: 500; }
.sp dd { margin: 0; font-weight: 600; font-size: 15px; overflow-wrap: anywhere; }
.pc { display: flex; flex-direction: column; min-width: 0; }
.pc b { font-family: var(--font-cd); font-weight: 700; font-size: 56px; line-height: 0.9; color: var(--cb); }
.pc span { font-size: 13px; color: var(--ink2); font-weight: 500; }
.ac { display: flex; flex-direction: column; gap: 6px; align-items: stretch; }
.ac .b { min-height: 40px; }
.lk { font-size: 13px; font-weight: 600; color: var(--ink2); text-align: center; padding: 8px 4px; border-radius: var(--r-xs); transition: color var(--t-fast); }
.lk:hover { color: var(--cb); text-decoration: underline; }
.lk:active { transform: scale(0.96); }
.more { display: flex; justify-content: space-between; align-items: center; padding: 22px 16px; color: var(--mute); font-size: 14px; flex-wrap: wrap; gap: 12px; }

/* ---------- Trạng thái rỗng ---------- */
.empty { display: flex; gap: 18px; align-items: center; padding: 40px 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); margin-top: 8px; animation: fadeup 0.45s var(--ease) both; }
.empty .z { flex: none; font-family: var(--font-cd); font-weight: 700; font-size: 72px; line-height: 1; color: transparent; -webkit-text-stroke: 2px var(--ink); }
.empty h3 { font-size: 20px; margin-bottom: 4px; }
.empty p { color: var(--mute); margin-bottom: 14px; }

/* ---------- Ngăn xem nhanh ---------- */
.scrim { position: fixed; inset: 0; z-index: 60; background: var(--scrim); opacity: 0; transition: opacity var(--t-slow); }
.scrim.is-on { opacity: 1; }
.drawer { position: fixed; inset: var(--offset) 0 0 auto; z-index: 70; width: min(480px, 100%); background: var(--ink); color: #fff; transform: translateX(100%); visibility: hidden; transition: transform var(--t-slow) var(--ease), visibility 0s var(--t-slow); }
.drawer.is-on { transform: none; visibility: visible; transition-delay: 0s; }
.dr-scroll { height: 100%; overflow-y: auto; scrollbar-width: thin; scrollbar-color: var(--ink-line) transparent; }
.dr-img { position: relative; }
.dr-img img { width: 100%; height: auto; aspect-ratio: 4 / 3; object-fit: cover; }
.dr-close { position: absolute; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: var(--r-sm); background: var(--ink); color: #fff; display: grid; place-items: center; transition: background var(--t-fast), transform var(--t-fast); }
.dr-close:hover { background: var(--cb); }
.dr-close:active { transform: scale(0.92); }
.dr-body { padding: 24px 28px 32px; }
.dr-body > * { opacity: 0; transform: translateY(12px); }
.drawer.is-on .dr-body > * { animation: fadeup 0.5s var(--ease) both; animation-delay: calc(0.18s + var(--i, 0) * 60ms); }
.dr-body .lab { font-family: var(--font-cd); font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; font-size: 14px; color: var(--yl); display: block; }
.dr-body h2 { font-size: 40px; line-height: 1; margin: 8px 0 4px; }
.dr-body .dr-price { font-family: var(--font-cd); font-weight: 700; font-size: 44px; color: var(--yl); line-height: 1.1; }
.dr-body p { color: var(--on-ink); margin-top: 8px; }
.spec-t { margin: 18px 0; }
.spec-t div { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px solid var(--ink-line); font-size: 14px; }
.spec-t dt { color: var(--on-ink); }
.spec-t dd { margin: 0; font-weight: 600; text-align: right; }
.spec-t dd.todo { color: var(--yl); }
.dr-acts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
.dr-acts .b { flex: 1; }
.dr-acts .b.o:hover { background: #fff; }

/* ---------- Đặt lịch lái thử ---------- */
.book { background: var(--cb); color: #fff; padding: 88px 0; }
.book .g { display: grid; grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr); gap: 64px; align-items: start; }
.book h2 { color: #fff; }
.book .ey { display: block; margin-bottom: 12px; }
.book-txt p { color: var(--on-cb); margin-top: 18px; max-width: 36ch; }
.note { display: inline-block; margin-top: 24px; font-size: 13px; padding: 8px 12px; border-radius: 6px; background: var(--glass); }
.picked { margin-top: 24px; max-width: 360px; }
.picked-card { display: flex; gap: 12px; align-items: center; background: #fff; color: var(--ink); border-radius: var(--r); padding: 10px; animation: pop 0.35s var(--ease) both; }
.picked-card img { width: 84px; height: auto; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 6px; }
.picked-card strong { display: block; font-size: 15px; }
.picked-card span { font-size: 13px; color: var(--mute); }
.picked p { font-size: 13px; margin: 0; }
.book-card { background: #fff; color: var(--ink); border-radius: var(--r); padding: 28px; min-width: 0; }
form { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.f { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.f.w { grid-column: 1 / -1; }
.f.w .sel-btn { width: 100%; }
.f label, .lbl { font-size: 12px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--mute); transition: color var(--t-fast); }
.f:focus-within label, .f:focus-within .lbl { color: var(--cb); }
.f input { min-height: 48px; border: 0; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); padding: 0 14px; background: #fff; font-weight: 500; transition: box-shadow var(--t-fast), background var(--t-fast); }
.f input::placeholder { color: var(--mute); opacity: 0.8; }
.f input:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.f input:focus-visible { outline: none; box-shadow: inset 0 0 0 2px var(--cb), 0 0 0 4px var(--cbl); }
.f.has-err input { box-shadow: inset 0 0 0 2px var(--err); background: var(--err-bg); }
.f.has-err .lbl, .f.has-err label { color: var(--err-text); }
.er { color: var(--err-text); font-size: 13px; font-weight: 600; min-height: 0; }
.er:empty { display: none; }
.f.shake { animation: shake 0.4s; }
@keyframes shake { 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
.days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.days.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.radio { padding: 8px 0; min-height: 44px; text-align: center; border-radius: var(--r-sm); box-shadow: inset 0 0 0 1px var(--line); font-weight: 600; font-size: 14px; transition: background var(--t-fast), color var(--t-fast), box-shadow var(--t-fast), transform var(--t-fast); }
.radio small { display: block; font-weight: 500; color: var(--mute); font-size: 12px; transition: color var(--t-fast); }
.radio:hover { box-shadow: inset 0 0 0 1px var(--ink); }
.radio:active { transform: scale(0.95); }
.radio[aria-checked='true'] { background: var(--cb); color: #fff; box-shadow: none; }
.radio[aria-checked='true'] small { color: var(--on-cb); }
.f.has-err .radio { box-shadow: inset 0 0 0 1px var(--err); }
form .b { width: 100%; min-height: 52px; font-size: 16px; }
.spin { display: none; width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid var(--glass); border-top-color: #fff; animation: spin 0.7s linear infinite; }
.b.is-busy .spin { display: inline-block; }
@keyframes spin { to { transform: rotate(360deg); } }
.done { text-align: center; padding: 24px 8px; color: var(--ink); animation: fadeup 0.5s var(--ease) both; }
.done svg { color: var(--cb); margin: 0 auto 12px; }
.done svg circle { stroke-dasharray: 152; stroke-dashoffset: 152; animation: draw 0.6s var(--ease) forwards; }
.done svg path { stroke-dasharray: 44; stroke-dashoffset: 44; animation: draw 0.5s var(--ease) 0.4s forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.done h3 { font-family: var(--font-cd); font-size: 34px; text-transform: uppercase; }
.done p { margin: 8px 0 16px; }
.done-note { color: var(--mute); font-size: 13px; }
.done:focus-visible { outline: none; box-shadow: none; }

/* ---------- Chân trang, lên đầu trang ---------- */
.foot { background: var(--ink); color: var(--on-ink); padding: 34px 0; font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 16px 40px; flex-wrap: wrap; }
.foot-in p { max-width: 62ch; }
.foot strong { color: #fff; }
.top { position: fixed; right: 18px; bottom: 18px; width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--ink); color: #fff; z-index: 30; display: grid; place-items: center; opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity var(--t), transform var(--t) var(--ease), background var(--t-fast); }
.top.is-on { opacity: 1; transform: none; pointer-events: auto; }
.top:hover { background: var(--cb); }

/* ---------- Co giãn ---------- */
@media (max-width: 1100px) {
  .head { display: none; }
  .row { grid-template-columns: 40px 140px minmax(0, 1fr) 130px; grid-template-areas: 'no th nm pc' 'no th sp ac'; }
  .row .no { grid-area: no; }
  .row .th { grid-area: th; }
  .row .nm { grid-area: nm; }
  .row .sp { grid-area: sp; grid-template-columns: 1fr 1fr; }
  .row .pc { grid-area: pc; }
  .row .ac { grid-area: ac; flex-direction: row; }
  .ix { grid-template-columns: 56px minmax(0, 1fr) 70px 30px; }
  .ix .hint { display: none; }
}
@media (max-width: 860px) {
  .hero .g, .book .g, .sh { grid-template-columns: 1fr; }
  .book .g { gap: 36px; }
  .hero { padding-top: 92px; }
  .ticker .wrap { grid-template-columns: 1fr 1fr; }
  .stat:nth-child(3) { border-left: 0; padding-left: 0; }
  .pill .nv { display: none; }
  .tag.l1 { left: 6px; }
}
@media (max-width: 640px) {
  :root { --gut: 16px; }
  section, .book { padding: 56px 0; }
  .pill nav { padding: 5px; }
  .pill .lg { padding: 4px 12px 4px 10px; font-size: 18px; }
  .row { grid-template-columns: 96px minmax(0, 1fr); grid-template-areas: 'th nm' 'th pc' 'sp sp' 'ac ac'; gap: 10px 14px; }
  .row .no { display: none; }
  .row .ac .b { flex: 1; }
  .pc b { font-size: 48px; }
  .row .sp { padding-top: 10px; border-top: 1px dashed var(--line); }
  .tool { flex-direction: column; align-items: stretch; }
  .sel, .sel-btn { width: 100%; }
  .tabs button { padding: 8px 6px; }
  .cnt { margin-left: 0; }
  .sel-list { max-width: none; width: 100%; }
  .bar { position: static; }
  .book-card { padding: 18px; }
  form { grid-template-columns: 1fr; }
  .days { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .days.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .ix { padding: 16px 8px; grid-template-columns: 44px minmax(0, 1fr) 60px 22px; }
  .ix b { font-size: 34px; }
  .ix strong { font-size: 19px; }
  .empty { flex-direction: column; align-items: flex-start; }
  .hero h1 { font-size: 68px; }
  .ft .num { font-size: 36px; }
  .dr-body { padding: 20px 18px 28px; }
}

/* ---------- Giảm chuyển động ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .hero h1 .ln > span, .js .hero .ey, .js .hero .lead, .js .hero .bt, .js [data-reveal], .dr-body > * { opacity: 1 !important; transform: none !important; }
  .th img { opacity: 1; }
  .th::after { display: none; }
  .done svg circle, .done svg path { stroke-dashoffset: 0; }
}
