/* Gara Tốt — than chì, cam dầu nhớt, giấy kem; chất liệu lệnh sửa chữa giấy than & tem kiểm định */
:root {
  --paper: #F2ECE1; --paper-2: #E8E0D1; --card: #FBF8F2; --raise: #FFFFFF;
  --ink: #1E1D1B; --ink-2: #534E46; --ink-3: #6B655B; --line: rgba(30, 29, 27, .1); --line-2: rgba(30, 29, 27, .18);
  --oil: #E8701F; --oil-ink: #1E1D1B; --oil-deep: #A84A0C; --oil-wash: rgba(232, 112, 31, .12);
  --carbon: #2E4374; --ok: #2F6B45; --ok-wash: rgba(47, 107, 69, .12); --warn: #8E5A00; --warn-wash: rgba(201, 138, 20, .16); --bad: #B3261E; --bad-wash: rgba(179, 38, 30, .1);
  --graphite: #1E1D1B; --graphite-2: #2A2825; --cream: #F2ECE1;
  --f-d: 'Bricolage Grotesque', 'Be Vietnam Pro', system-ui, sans-serif; --f-b: 'Be Vietnam Pro', system-ui, sans-serif; --f-m: 'JetBrains Mono', ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1); --spring: cubic-bezier(.34, 1.4, .5, 1);
  --r: 10px; --r-lg: 14px; --sb: 264px;
  color-scheme: light;
}
[data-theme="dark"] {
  --paper: #161513; --paper-2: #0F0E0D; --card: #201F1C; --raise: #282623;
  --ink: #F0E9DC; --ink-2: #BDB5A7; --ink-3: #A0988A; --line: rgba(240, 233, 220, .09); --line-2: rgba(240, 233, 220, .18);
  --oil: #F07A2C; --oil-deep: #F5A066; --oil-wash: rgba(240, 122, 44, .16);
  --carbon: #A4B6E2; --ok: #74C48F; --ok-wash: rgba(116, 196, 143, .14); --warn: #E6B657; --warn-wash: rgba(230, 182, 87, .14); --bad: #F2867C; --bad-wash: rgba(242, 134, 124, .13);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 16px/1.6 var(--f-b); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
body.locked { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
h1, h2, h3, h4 { margin: 0; font-family: var(--f-d); font-weight: 700; letter-spacing: -.015em; line-height: 1.12; }
p { margin: 0; }
.mono { font-family: var(--f-m); letter-spacing: .02em; }
.num { font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.muted { color: var(--ink-3); }
.small { font-size: 13px; }
.pad { padding: 8px 0; }
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 16px; top: -60px; z-index: 999; background: var(--oil); color: var(--oil-ink); padding: 10px 16px; border-radius: 8px; font-weight: 600; transition: top .2s; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--oil); outline-offset: 2px; border-radius: 6px; }
.ic { width: 20px; height: 20px; flex: none; }
[hidden] { display: none !important; }
.mobile-only { display: none !important; }

/* ---------- nút ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 0; font-weight: 600; font-size: 15px; text-decoration: none; white-space: nowrap; transition: transform .18s var(--ease), background .2s, box-shadow .2s, color .2s; }
.btn:active, .btn.press { transform: scale(.97); }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.btn .ic { width: 18px; height: 18px; }
.btn-oil { background: var(--oil); color: var(--oil-ink); }
.btn-oil:hover:not([disabled]) { background: #F5852F; box-shadow: 0 6px 18px -8px rgba(232, 112, 31, .8); }
.btn-line { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line-2); }
.btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn-ghost { background: var(--paper-2); color: var(--ink); }
.btn-ghost:hover:not([disabled]) { background: var(--line-2); }
.btn-bad { background: var(--bad); color: #fff; }
.btn-lg { min-height: 54px; padding: 0 26px; font-size: 16px; }
.btn.sm { min-height: 40px; padding: 0 14px; font-size: 14px; }
.btn.wide { width: 100%; }
.icon-btn { display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 999px; border: 0; background: transparent; color: inherit; transition: background .2s, transform .18s var(--ease); }
.icon-btn:hover { background: var(--line); }
.icon-btn.press { transform: scale(.92); }
.icon-btn[aria-pressed="true"] { background: var(--oil-wash); color: var(--oil-deep); }
.icon-btn.sm { width: 40px; height: 40px; }
.lang-tag { font: 700 13px var(--f-m); }
.link { display: inline-flex; align-items: center; gap: 6px; color: var(--oil-deep); font-weight: 600; font-size: 14px; text-decoration: none; min-height: 44px; }
.link .ic { width: 16px; height: 16px; transition: transform .2s var(--ease); }
.link:hover .ic { transform: translateX(3px); }

/* ---------- thương hiệu ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand-mark svg { width: 34px; height: 34px; display: block; }
.brand-word { font: 800 19px/1 var(--f-d); letter-spacing: .04em; }

/* ---------- biển số ---------- */
.plate { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; background: #F8F6F0; color: #141414; border: 2px solid #141414; border-radius: 5px; padding: 3px 10px; font: 700 17px/1.1 var(--f-m); letter-spacing: .03em; box-shadow: inset 0 0 0 2px #F8F6F0, inset 0 0 0 3px rgba(20, 20, 20, .35); white-space: nowrap; }
.plate.sm { font-size: 14px; padding: 2px 8px; border-width: 1.5px; }
.plate.lg { font-size: 24px; padding: 6px 14px; }
.plate-bike.lg span, .plate-bike span { display: block; }

/* ---------- thẻ giấy than ---------- */
.ticket-paper { background: var(--card); background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(46, 67, 116, .07) 31px 32px); position: relative; }
.ticket { position: relative; background: #F7F1E6; color: #1E1D1B; border-radius: 4px; padding: 22px 22px 18px; width: 320px; font-size: 14px; box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .7), 0 2px 0 rgba(0, 0, 0, .06);
  -webkit-mask: radial-gradient(circle 5px at 10px 0, transparent 98%, #000) -10px 0 / 20px 100% repeat-x; mask: radial-gradient(circle 5px at 10px 0, transparent 98%, #000) -10px 0 / 20px 100% repeat-x;
  background-image: repeating-linear-gradient(180deg, transparent 0 27px, rgba(46, 67, 116, .1) 27px 28px); }
.ticket header { display: flex; justify-content: space-between; font-size: 12.5px; color: #2E4374; letter-spacing: .1em; padding-bottom: 12px; border-bottom: 1px dashed rgba(46, 67, 116, .4); margin-bottom: 14px; }
.ticket .t-no { color: #B3261E; font-weight: 700; }
.ticket .plate { margin-bottom: 8px; }
.t-model { color: #4A4640; font-size: 14px; margin-bottom: 10px; }
.t-lines { list-style: none; padding: 0; margin: 0 0 14px; font-family: var(--f-m); font-size: 13px; color: #2E4374; }
.t-lines li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; }
.t-lines li.ok span::before { content: '✓ '; color: #2F6B45; font-weight: 700; }
.t-lines li.later { text-decoration: line-through; opacity: .6; }
.ticket footer { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; }
.dot-live { width: 9px; height: 9px; border-radius: 50%; background: var(--oil); box-shadow: 0 0 0 0 rgba(232, 112, 31, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 9px rgba(232, 112, 31, 0); } 100% { box-shadow: 0 0 0 0 rgba(232, 112, 31, 0); } }
.stamp { position: absolute; right: 18px; top: 58px; transform: rotate(-11deg); border: 2.5px solid #B8461A; color: #B8461A; border-radius: 6px; padding: 5px 10px 4px; text-align: center; font: 800 16px/1 var(--f-d); letter-spacing: .12em; mix-blend-mode: multiply; opacity: .88; box-shadow: inset 0 0 0 2px #F7F1E6, inset 0 0 0 3.5px #B8461A;
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='60'%3E%3Cfilter id='n'%3E%3CfeTurbulence baseFrequency='.8' numOctaves='2'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -2.2 1.7'/%3E%3C/filter%3E%3Crect width='120' height='60' filter='url(%23n)'/%3E%3C/svg%3E"); }
.stamp small { display: block; font: 600 10.5px/1.4 var(--f-m); letter-spacing: .08em; margin-top: 3px; }
.stamp.sm { position: static; display: inline-block; font-size: 14px; }

/* =================================================================== LANDING */
.lp { background: var(--graphite); color: var(--cream); }
.lp-nav { position: fixed; inset: 0 0 auto; z-index: 50; display: flex; align-items: center; gap: 24px; padding: 14px clamp(16px, 4vw, 48px); color: #F2ECE1; transition: background .35s var(--ease), backdrop-filter .35s, padding .35s var(--ease); }
.lp-nav.solid { background: rgba(22, 21, 19, .86); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding-top: 8px; padding-bottom: 8px; }
.lp-links { display: flex; gap: 4px; margin-left: auto; }
.lp-links a { text-decoration: none; padding: 10px 14px; border-radius: 999px; font-size: 15px; font-weight: 500; opacity: .86; transition: opacity .2s, background .2s; }
.lp-links a:hover { opacity: 1; background: rgba(242, 236, 225, .1); }
.lp-tools { display: flex; align-items: center; gap: 4px; }
.lp-nav .icon-btn:hover { background: rgba(242, 236, 225, .12); }
.lp-nav .btn-oil { margin-left: 8px; }
.wrap { width: min(1240px, 100% - clamp(32px, 8vw, 96px)); margin-inline: auto; }
.eyebrow { font: 600 13px/1.4 var(--f-m); letter-spacing: .14em; text-transform: uppercase; color: var(--oil); margin-bottom: 18px; }

/* hero */
.hero { position: relative; min-height: 100svh; display: grid; overflow: hidden; isolation: isolate; }
.hero-media { position: absolute; inset: 0; z-index: -2; overflow: hidden; }
.hero-img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; transform: scale(1.08); transform-origin: 50% 40%; animation: kb 18s var(--ease) both; will-change: transform; }
@keyframes kb { from { transform: scale(1.16); filter: brightness(.6); } to { transform: scale(1.08); filter: brightness(1); } }
.hero-shade { position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 17, 15, .55) 0%, rgba(18, 17, 15, .15) 30%, rgba(18, 17, 15, .35) 55%, rgba(18, 17, 15, .92) 100%), linear-gradient(90deg, rgba(18, 17, 15, .6), transparent 60%); }
.hero::after { content: ''; position: absolute; inset: 0; z-index: -1; opacity: .16; filter: url(#grain); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1fr auto; grid-template-rows: 1fr auto auto; gap: 0 48px; padding: 120px clamp(16px, 4vw, 48px) 56px; align-self: end; }
.hero-kicker { grid-column: 1; grid-row: 1; align-self: end; font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: #F2ECE1; opacity: .85; margin-bottom: 20px; }
.hero-h { grid-column: 1; grid-row: 2; font: 800 clamp(56px, 11.5vw, 184px)/.88 var(--f-d); letter-spacing: -.045em; color: #F7F1E6; }
.hero-h .line { display: block; overflow: hidden; padding-bottom: .06em; }
.hero-h .line > * { display: inline-block; }
.hero-h em { font-style: normal; color: var(--oil); }
.hero-foot { grid-column: 1; grid-row: 3; display: flex; align-items: flex-end; gap: 40px; margin-top: 36px; flex-wrap: wrap; }
.hero-sub { max-width: 520px; font-size: 18px; line-height: 1.55; color: rgba(247, 241, 230, .88); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.btn-line.btn-lg, .lp .btn-line { color: inherit; box-shadow: inset 0 0 0 1.5px rgba(242, 236, 225, .4); }
.lp .btn-line:hover { box-shadow: inset 0 0 0 1.5px #F2ECE1; }
.hero-ticket { grid-column: 2; grid-row: 1 / 4; align-self: end; transform: rotate(-3deg); transition: transform .5s var(--ease); margin-bottom: 8px; }
.hero-scroll { position: absolute; right: clamp(16px, 4vw, 48px); top: 120px; writing-mode: vertical-rl; font-size: 12px; letter-spacing: .2em; text-transform: uppercase; text-decoration: none; color: rgba(242, 236, 225, .7); display: flex; align-items: center; gap: 12px; }
.hero-scroll i { width: 1px; height: 56px; background: rgba(242, 236, 225, .5); position: relative; overflow: hidden; }
.hero-scroll i::after { content: ''; position: absolute; inset: 0; background: var(--oil); animation: drip 2.2s var(--ease) infinite; }
@keyframes drip { from { transform: translateY(-100%); } to { transform: translateY(100%); } }
/* intro */
.hero-h .line > *, .hero-kicker, .hero-foot, .hero-ticket { opacity: 0; }
.lp-ready .hero-h .line > * { animation: lineUp .9s var(--ease) both; }
.lp-ready .hero-h .line:nth-child(2) > * { animation-delay: .1s; }
.lp-ready .hero-h .line:nth-child(2) > em { animation-delay: .18s; }
.lp-ready .hero-kicker { animation: fadeUp .7s .05s var(--ease) both; }
.lp-ready .hero-foot { animation: fadeUp .8s .35s var(--ease) both; }
.lp-ready .hero-ticket { animation: ticketIn 1s .5s var(--spring) both; }
@keyframes lineUp { from { opacity: 0; transform: translateY(105%); } to { opacity: 1; transform: none; } }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes ticketIn { from { opacity: 0; transform: translateY(60px) rotate(4deg); } to { opacity: 1; transform: rotate(-3deg); } }

/* manifesto */
.manifesto { background: var(--paper); color: var(--ink); padding: clamp(96px, 14vw, 180px) 0 clamp(72px, 9vw, 120px); }
.big-statement { font: 700 clamp(30px, 4.6vw, 64px)/1.12 var(--f-d); letter-spacing: -.025em; max-width: 1100px; }
.big-statement .w { color: var(--line-2); transition: color .45s var(--ease); }
.big-statement .w.lit { color: var(--ink); }
.counters { display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; margin-top: clamp(64px, 8vw, 112px); }
.ctr { padding-top: 22px; border-top: 2px solid var(--ink); }
.ctr .num { display: block; text-align: left; font: 800 clamp(48px, 6vw, 88px)/1 var(--f-d); letter-spacing: -.04em; margin-bottom: 14px; }
.ctr:first-child .num { color: var(--oil-deep); }
.ctr p { color: var(--ink-2); max-width: 300px; font-size: 16px; }
.client-line { margin-top: 56px; font-size: 13.5px; color: var(--ink-3); }

/* story */
.story { height: 420vh; background: var(--graphite); position: relative; }
.story-pin { position: sticky; top: 0; height: 100vh; display: grid; grid-template-columns: minmax(300px, 420px) 1fr; gap: clamp(32px, 5vw, 80px); align-items: center; padding: 80px clamp(16px, 4vw, 48px) 40px; overflow: hidden; }
.story-copy { position: relative; padding-left: 28px; }
.story-bar { position: absolute; left: 0; top: 46px; bottom: 0; width: 2px; background: rgba(242, 236, 225, .12); }
.story-bar i { position: absolute; inset: 0; background: var(--oil); transform-origin: top; transform: scaleY(0); }
.chapters { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.chap { padding: 14px 0; cursor: pointer; opacity: .38; transition: opacity .45s var(--ease); }
.chap.is-on { opacity: 1; }
.chap-n { font-size: 13px; color: var(--oil); }
.chap h3 { font-size: clamp(22px, 2.2vw, 30px); margin: 4px 0 0; }
.chap p { max-height: 0; overflow: hidden; color: rgba(242, 236, 225, .78); font-size: 16px; transition: max-height .6s var(--ease), margin .6s var(--ease); }
.chap.is-on p { max-height: 160px; margin-top: 10px; }
.story-stage { position: relative; height: min(72vh, 640px); }
.device .screen { position: relative; overflow: hidden; background: #0f0f0e; }
.device .sc { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top left; clip-path: inset(0 0 100% 0); transition: clip-path .8s var(--ease), transform .8s var(--ease); transform: scale(1.04); }
.device .sc.is-on { clip-path: inset(0 0 0 0); transform: none; z-index: 2; }
.laptop { position: absolute; left: 0; top: 4%; width: 88%; }
.laptop .screen { aspect-ratio: 16 / 10; border: 12px solid #0d0d0c; border-bottom-width: 16px; border-radius: 16px 16px 0 0; box-shadow: 0 0 0 1px #3a3833; }
.laptop .base { height: 16px; margin: 0 -6%; background: linear-gradient(#4a4741, #2a2825); border-radius: 0 0 14px 14px; position: relative; }
.laptop .base::after { content: ''; position: absolute; left: 42%; right: 42%; top: 0; height: 6px; background: #1e1d1b; border-radius: 0 0 8px 8px; }
.phone { position: absolute; right: 0; bottom: 0; width: 25%; min-width: 150px; }
.phone .screen { aspect-ratio: 390 / 844; border: 8px solid #0d0d0c; border-radius: 34px; box-shadow: 0 0 0 1.5px #44413b, 0 40px 80px -30px rgba(0, 0, 0, .8); }
.phone .screen::before { content: ''; position: absolute; top: 8px; left: 50%; width: 32%; height: 16px; transform: translateX(-50%); background: #0d0d0c; border-radius: 12px; z-index: 5; }
.phone.floating { position: absolute; right: 6%; bottom: -10%; width: 26%; min-width: 140px; }
.phone.floating .screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }

/* 3D section */
.lift-sec { background: var(--paper); color: var(--ink); padding: clamp(96px, 12vw, 160px) 0; }
.lift-grid { display: grid; grid-template-columns: minmax(300px, 440px) 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.h-xl { font: 800 clamp(40px, 5.4vw, 76px)/1 var(--f-d); letter-spacing: -.035em; }
.h-lg { font: 800 clamp(34px, 4vw, 56px)/1.02 var(--f-d); letter-spacing: -.03em; margin-bottom: 20px; }
.h-xxl { font: 800 clamp(48px, 8vw, 128px)/.92 var(--f-d); letter-spacing: -.045em; }
.lede { font-size: 18px; color: var(--ink-2); margin-top: 20px; max-width: 520px; }
.lift-copy .seg { margin: 28px 0 16px; }
.job-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.job-list button { width: 100%; display: flex; align-items: center; gap: 14px; min-height: 56px; padding: 8px 16px 8px 10px; border: 0; background: transparent; border-radius: 10px; text-align: left; transition: background .2s; }
.job-list button:hover { background: var(--paper-2); }
.jb-c { width: 26px; height: 26px; border-radius: 6px; display: grid; place-items: center; box-shadow: inset 0 0 0 1.5px var(--line-2); transition: background .2s, box-shadow .2s; }
.jb-c .ic { width: 16px; height: 16px; opacity: 0; transform: scale(.5); transition: opacity .2s, transform .3s var(--spring); }
[aria-pressed="true"] .jb-c { background: var(--oil); box-shadow: none; color: var(--oil-ink); }
[aria-pressed="true"] .jb-c .ic { opacity: 1; transform: none; }
.jb-n { flex: 1; font-weight: 600; font-size: 15.5px; }
.jb-n small { display: block; font-weight: 400; color: var(--ink-3); font-size: 13px; }
.lift-stage { position: relative; }
.lift-canvas { position: relative; aspect-ratio: 4 / 3; border-radius: var(--r-lg); overflow: hidden; background: radial-gradient(120% 90% at 50% 20%, #4a4640, #22201d 70%); }
.lift-canvas canvas { position: absolute; inset: 0; display: block; cursor: grab; }
.lift-canvas .poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .8s var(--ease); }
.lift-canvas .poster img { width: 100%; height: 100%; object-fit: cover; }
.lift-canvas.live .poster { opacity: 0; pointer-events: none; }
.lift-canvas.sm { aspect-ratio: 16 / 10; margin-bottom: 20px; }
.lift-hint { margin-top: 14px; font-size: 13px; color: var(--ink-3); }

/* spread */
.spread { background: var(--paper); color: var(--ink); padding-bottom: clamp(80px, 10vw, 140px); }
.spread-a, .spread-b { display: grid; gap: clamp(32px, 5vw, 80px); align-items: center; padding: clamp(48px, 6vw, 80px) 0; }
.spread-a { grid-template-columns: 1.15fr 1fr; }
.spread-b { grid-template-columns: 1fr 1.35fr; }
.spread figure { margin: 0; position: relative; overflow: hidden; border-radius: 6px; }
.spread figure.tall { aspect-ratio: 4 / 4.6; }
.spread figure.wide { aspect-ratio: 16 / 11; overflow: visible; }
.spread figure.wide > img { border-radius: 6px; }
.spread figure > img.para { width: 100%; height: 100%; object-fit: cover; transform: scale(1.12); }
.spread figure.wide > img.para { transform: none; }
.spread-copy p { font-size: 17px; color: var(--ink-2); max-width: 500px; }
.spread-copy .btn { margin-top: 28px; }
.mini-shot { margin-top: 32px !important; border-radius: 10px !important; box-shadow: 0 30px 60px -40px rgba(0, 0, 0, .55), 0 0 0 1px var(--line); max-width: 520px; }
.strip { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 12px; padding: 0 12px; }
.strip img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 4px; }
.rv.reveal-clip { clip-path: inset(12% 0 12% 0); transition: clip-path 1.1s var(--ease); }
.rv.reveal-clip.in { clip-path: inset(0 0 0 0); }
.rv:not(.reveal-clip) { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.rv.in:not(.reveal-clip) { opacity: 1; transform: none; }
.plans .plan.rv:nth-child(2) { transition-delay: .08s; }
.plans .plan.rv:nth-child(3) { transition-delay: .16s; }
.counters .ctr.rv:nth-child(2) { transition-delay: .08s; }
.counters .ctr.rv:nth-child(3) { transition-delay: .16s; }

/* voices */
.voices { background: var(--graphite); color: var(--cream); padding: clamp(96px, 12vw, 160px) 0; }
.quote-main { margin: 0; }
.quote-main p { font: 700 clamp(28px, 3.8vw, 54px)/1.16 var(--f-d); letter-spacing: -.022em; max-width: 1080px; text-indent: -.4em; }
.quote-main footer { display: flex; align-items: center; gap: 16px; margin-top: 36px; }
.quote-main footer img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.quote-main footer span { display: grid; font-size: 15px; color: rgba(242, 236, 225, .72); }
.quote-main footer b { color: #F2ECE1; font-size: 17px; }
.quote-row { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 80px; padding-top: 40px; border-top: 1px solid rgba(242, 236, 225, .16); }
.quote-row blockquote { margin: 0; }
.quote-row p { font-size: 20px; line-height: 1.5; }
.quote-row footer { margin-top: 18px; display: grid; font-size: 14px; color: rgba(242, 236, 225, .7); }
.quote-row footer b { color: #F2ECE1; font-size: 16px; }

/* pricing */
.pricing { background: var(--paper); color: var(--ink); padding: clamp(96px, 12vw, 160px) 0; }
.price-head { display: grid; grid-template-columns: 1.2fr 1fr; gap: 24px 64px; align-items: end; margin-bottom: 64px; }
.price-head .eyebrow { grid-column: 1 / -1; margin: 0; }
.price-head .lede { margin: 0; }
.plans { display: grid; grid-template-columns: 1fr 1.08fr 1fr; gap: 20px; align-items: stretch; }
.plan { position: relative; background: var(--card); border-radius: 8px; padding: 32px 28px 28px; display: flex; flex-direction: column; background-image: repeating-linear-gradient(180deg, transparent 0 31px, rgba(46, 67, 116, .06) 31px 32px); }
.plan h3 { font-size: 22px; }
.price { margin: 18px 0 24px; padding-bottom: 22px; border-bottom: 1.5px dashed var(--line-2); }
.price b { display: block; font: 800 clamp(38px, 3.4vw, 50px)/1 var(--f-d); letter-spacing: -.03em; }
.price span { font-size: 14.5px; color: var(--ink-3); }
.plan ul { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 12px; flex: 1; }
.plan li { padding-left: 26px; position: relative; font-size: 15.5px; }
.plan li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--oil-deep); border-bottom: 2px solid var(--oil-deep); transform: rotate(-45deg); }
.plan-hot { background: var(--graphite); color: var(--cream); background-image: none; transform: translateY(-16px); }
.plan-hot .price span { color: rgba(242, 236, 225, .7); }
.plan-hot .price { border-color: rgba(242, 236, 225, .22); }
.plan-hot li::before { border-color: var(--oil); }
.plan .tag { position: absolute; top: -14px; right: 24px; background: var(--oil); color: var(--oil-ink); padding: 6px 12px; border-radius: 4px; font-size: 12.5px; font-weight: 700; transform: rotate(2deg); }

/* CTA cuối */
.cta-final { position: relative; overflow: hidden; padding: clamp(120px, 16vw, 220px) 0; color: #F7F1E6; isolation: isolate; }
.cta-img { position: absolute; inset: -10% 0; width: 100%; height: 120%; object-fit: cover; z-index: -2; filter: brightness(.42) saturate(.8); }
.cta-final::before { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 17, 15, .85), rgba(18, 17, 15, .2)); }
.cta-final .hero-cta { margin-top: 40px; }

/* footer */
.lp-foot { background: #121110; color: rgba(242, 236, 225, .78); padding: 72px 0 48px; font-size: 15px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr .8fr .9fr 1.4fr; gap: 40px; }
.lp-foot .brand { color: #F2ECE1; }
.foot-tag { margin-top: 14px; max-width: 260px; }
.lp-foot h4 { font: 600 13px var(--f-m); letter-spacing: .12em; text-transform: uppercase; color: #F2ECE1; margin-bottom: 14px; }
.lp-foot nav { display: grid; align-content: start; }
.lp-foot nav a { text-decoration: none; padding: 7px 0; min-height: 40px; }
.lp-foot nav a:hover { color: var(--oil); }
.concept-note p + p { margin-top: 10px; }
.concept-note a { color: #F2ECE1; }

/* ================================================================= APP */
.app { display: grid; grid-template-columns: var(--sb) 1fr; min-height: 100vh; }
.sb { position: sticky; top: 0; height: 100vh; overflow-y: auto; padding: 20px 16px; display: flex; flex-direction: column; gap: 8px; background: var(--paper-2); }
.sb .brand { padding: 0 8px 8px; }
.branch-sw { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--paper); padding: 4px; border-radius: 12px; margin: 4px 0 12px; }
.branch-sw button { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 44px; border: 0; border-radius: 9px; background: transparent; font-size: 14px; font-weight: 600; color: var(--ink-2); transition: background .25s var(--ease), color .2s; }
.branch-sw button .ic { width: 16px; height: 16px; }
.branch-sw button[aria-checked="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.nav-g { margin-top: 8px; }
.nav-h { font: 600 12.5px var(--f-m); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); padding: 8px 12px; }
.nav-i { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 12px; border-radius: 10px; text-decoration: none; font-weight: 500; font-size: 15.5px; color: var(--ink-2); position: relative; transition: background .2s, color .2s; }
.nav-i:hover { background: var(--line); color: var(--ink); }
.nav-i.on { background: var(--card); color: var(--ink); font-weight: 600; }
.nav-i.on::before { content: ''; position: absolute; left: -16px; top: 12px; bottom: 12px; width: 4px; border-radius: 0 3px 3px 0; background: var(--oil); }
.nav-i.on .ic { color: var(--oil-deep); }
.sb-foot { margin-top: auto; display: grid; gap: 14px; padding-top: 16px; }
.sb-card { display: grid; grid-template-columns: 56px 1fr; gap: 12px; align-items: center; text-decoration: none; padding: 10px; border-radius: 12px; background: var(--card); transition: transform .2s var(--ease); }
.sb-card:hover { transform: translateY(-2px); }
.sb-card .ph { width: 56px; height: 56px; border-radius: 8px; }
.sb-card b { display: block; font-size: 14px; line-height: 1.3; }
.sb-card small { display: block; font-size: 13px; color: var(--ink-3); line-height: 1.35; margin-top: 2px; }
.sb-addr { font-size: 13px; color: var(--ink-3); padding: 0 8px; line-height: 1.5; }
.col { min-width: 0; display: flex; flex-direction: column; }
.tb { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 16px; padding: 12px clamp(16px, 3vw, 40px); background: color-mix(in srgb, var(--paper) 88%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.search-btn { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px 0 14px; border: 0; border-radius: 999px; background: var(--card); color: var(--ink-3); width: min(420px, 100%); font-size: 15px; transition: box-shadow .2s; }
.search-btn:hover { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.search-btn span { flex: 1; text-align: left; }
kbd { font: 600 12.5px var(--f-m); padding: 3px 7px; border-radius: 6px; background: var(--paper-2); color: var(--ink-2); }
.tb-tools { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.me { display: flex; align-items: center; gap: 10px; margin-left: 10px; }
.me-t { display: grid; line-height: 1.25; }
.me-t b { font-size: 14px; }
.me-t small { font-size: 13px; color: var(--ink-3); }
.main { padding: 8px clamp(16px, 3vw, 40px) 64px; outline: none; }
.view { max-width: 1240px; margin: 0 auto; }
.rise { animation: rise .6s var(--ease) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.v-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin: 24px 0 28px; }
.v-head h1 { font-size: clamp(30px, 3vw, 40px); letter-spacing: -.025em; }
.v-sub { color: var(--ink-3); margin-top: 6px; font-size: 15.5px; }
.v-act { display: flex; gap: 10px; flex-wrap: wrap; }
.card { background: var(--card); border-radius: var(--r-lg); padding: 28px; }
.c-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.c-head h2 { font-size: 20px; letter-spacing: -.01em; }
.k-label { font: 600 13px var(--f-m); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.k-big { font: 800 clamp(48px, 5vw, 64px)/1 var(--f-d); letter-spacing: -.04em; margin: 12px 0 8px; }
.k-big small { font-size: 22px; letter-spacing: 0; color: var(--ink-3); font-weight: 600; }
.k-mid { font: 800 clamp(32px, 3vw, 42px)/1.05 var(--f-d); letter-spacing: -.03em; margin: 10px 0 6px; }
.k-note { color: var(--ink-3); font-size: 14.5px; }
.k-big.low, .p-stock.low, small.low, span.low { color: var(--warn); }
.k-big.out, .p-stock.out, small.out, span.out { color: var(--bad); }

/* ảnh cắt cúp */
.ph { display: block; position: relative; overflow: hidden; background: var(--paper-2); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.th { width: 64px; height: 64px; border-radius: 10px; flex: none; }
.th.sm { width: 56px; height: 56px; }
.av { --c: #6B5B95; display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--c); color: #fff; font: 700 13.5px var(--f-b); flex: none; letter-spacing: .02em; }
.av.sm { width: 32px; height: 32px; font-size: 12.5px; }
.av-empty { background: var(--paper-2); color: var(--ink-3); }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 600; white-space: nowrap; background: var(--paper-2); color: var(--ink-2); }
.pill::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.st-repair { background: var(--oil-wash); color: var(--oil-deep); }
.st-approval { background: var(--warn-wash); color: var(--warn); }
.st-parts { background: var(--bad-wash); color: var(--bad); }
.st-done { background: var(--ok-wash); color: var(--ok); }
.st-quote { color: var(--carbon); background: rgba(46, 67, 116, .1); }
[data-theme="dark"] .st-quote { background: rgba(164, 182, 226, .14); }

/* skeleton */
.sk { border-radius: 12px; background: var(--paper-2); position: relative; overflow: hidden; }
.sk::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: shimmer 1.2s infinite; }
[data-theme="dark"] .sk::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .06), transparent); }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-title { height: 44px; width: 320px; margin: 28px 0 28px; }
.sk-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 24px; }
.sk-block { height: 200px; }
.sk-block.tall { height: 320px; margin-bottom: 24px; }
.sk-row { height: 76px; margin-bottom: 12px; }

/* trang Hôm nay */
.band { position: relative; height: 230px; border-radius: 18px; overflow: hidden; margin: 20px 0 24px; color: #F7F1E6; isolation: isolate; }
.band-ph { position: absolute; inset: 0; z-index: -2; }
.band-ph img { object-position: 50% 60% !important; }
.band::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 17, 15, .82), rgba(18, 17, 15, .1) 70%); }
.band-t { position: absolute; left: 32px; bottom: 28px; right: 32px; }
.band-t .mono { font-size: 13px; letter-spacing: .1em; text-transform: uppercase; opacity: .9; }
.band-t h1 { font-size: clamp(32px, 3.6vw, 46px); margin: 6px 0; letter-spacing: -.03em; }
.band-t p:last-child { opacity: .85; font-size: 15px; }
.home-grid { display: grid; grid-template-columns: 1.15fr 1fr 1fr; grid-template-areas: "focal bays bays" "rev stock remind"; gap: 24px; }
.home-grid .focal { grid-area: focal; }
.focal { background: var(--graphite); color: var(--cream); }
.focal .k-label { color: rgba(242, 236, 225, .7); }
.focal .k-big { font-size: clamp(64px, 7vw, 96px); color: var(--oil); }
.k-split { list-style: none; padding: 0; margin: 12px 0 24px; display: flex; gap: 24px; flex-wrap: wrap; font-size: 14.5px; color: rgba(242, 236, 225, .76); }
.k-split b { display: block; font: 700 22px var(--f-d); color: #F2ECE1; }
.next-act { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 12px; background: rgba(242, 236, 225, .08); text-decoration: none; transition: background .2s; }
.next-act:hover { background: rgba(242, 236, 225, .14); }
.next-act > span:nth-child(2) { flex: 1; display: grid; }
.next-act small { color: rgba(242, 236, 225, .7); font-size: 13.5px; }
.na-ic { width: 40px; height: 40px; border-radius: 10px; background: var(--oil); color: var(--oil-ink); display: grid; place-items: center; }
.bays { grid-area: bays; }
.bay-mini { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.bay-mini li { display: flex; align-items: center; gap: 14px; min-height: 60px; padding: 6px 0; }
.bay-mini li + li { box-shadow: 0 -1px 0 var(--line); }
.bm-n { flex: 1; display: grid; line-height: 1.3; }
.bm-n small { color: var(--ink-3); font-size: 13.5px; }
.bm-o { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 6px; border-radius: 8px; }
.bm-o:hover { background: var(--paper-2); }
.bm-free { color: var(--ink-3); font-size: 14px; padding: 6px 12px; border-radius: 999px; box-shadow: inset 0 0 0 1.5px var(--line-2); }
.rev { grid-area: rev; display: flex; flex-direction: column; }
.spark { width: 100%; height: auto; margin: 16px 0 4px; }
.spark rect { fill: var(--paper-2); }
[data-theme="dark"] .spark rect { fill: #3a3833; }
.spark rect.today { fill: var(--oil); }
.spark text { font: 500 12px var(--f-m); fill: var(--ink-3); }
.stock { grid-area: stock; }
.remind { grid-area: remind; display: flex; flex-direction: column; align-items: flex-start; }
.remind .btn { margin-top: auto; }
.faces { display: flex; margin: 8px 0 20px; }
.faces .av { box-shadow: 0 0 0 3px var(--card); margin-right: -8px; }
.mini-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; }
.mini-list a { display: flex; align-items: center; gap: 14px; text-decoration: none; padding: 8px; margin: 0 -8px; border-radius: 10px; transition: background .2s; }
.mini-list a:hover { background: var(--paper-2); }
.mini-list a > span:last-child { display: grid; line-height: 1.35; }
.mini-list b { font-size: 15px; font-weight: 600; }
.mini-list small { font-size: 13.5px; color: var(--ink-3); }

/* toolbar & chip */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 24px; }
.tool-r { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chips.scroll-x { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; padding: 2px; }
.chip { display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 0 14px; border-radius: 999px; border: 0; background: var(--card); font-size: 14.5px; font-weight: 500; color: var(--ink-2); white-space: nowrap; transition: background .2s, color .2s, transform .15s var(--ease); }
.chip:hover { color: var(--ink); background: var(--raise); }
.chip.press { transform: scale(.96); }
.chip .ic { width: 16px; height: 16px; }
.chip[aria-selected="true"], .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.cnt { font: 600 12.5px var(--f-m); opacity: .7; }
.search { display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 14px; background: var(--card); border-radius: 999px; color: var(--ink-3); }
.search input { border: 0; background: transparent; outline: none; min-width: 180px; font-size: 15px; color: var(--ink); min-height: 42px; }
.search:focus-within { box-shadow: 0 0 0 3px var(--oil-wash), inset 0 0 0 1.5px var(--oil); }
.search.wide { margin: 16px 0; }
.search.wide input { width: 100%; }
.sel select, .kv select, .field select { min-height: 44px; border-radius: 10px; border: 0; background: var(--card); padding: 0 36px 0 14px; font-size: 15px; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23857F74' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 10px center; background-size: 18px; }
.kv select { background-color: var(--paper-2); width: 100%; }
.seg { display: inline-flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--paper-2); }
.seg button, .seg a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 9px; background: transparent; font-weight: 600; font-size: 15px; color: var(--ink-2); text-decoration: none; transition: background .25s var(--ease), color .2s; }
.seg [aria-selected="true"], .seg [aria-checked="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .1); }
.seg.big button { min-height: 52px; padding: 0 22px; font-size: 16px; }
.seg legend { padding: 0; }
fieldset.seg { border: 0; margin: 0; }

/* danh sách lệnh */
.o-list { display: grid; gap: 8px; }
.o-row { display: grid; grid-template-columns: 64px 1fr auto 44px 140px; gap: 20px; align-items: center; padding: 14px 20px 14px 14px; min-height: 92px; background: var(--card); border-radius: 14px; text-decoration: none; transition: background .2s, transform .25s var(--ease); animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 40ms); }
.o-row:hover { background: var(--raise); transform: translateX(4px); }
.o-main { display: grid; gap: 2px; min-width: 0; }
.o-top { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.o-no { font-size: 13px; color: var(--ink-3); }
.o-main b { font-size: 16px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.o-main small { color: var(--ink-3); font-size: 14px; }
.o-st { display: grid; justify-items: start; gap: 6px; }
.o-st small { font-size: 13.5px; color: var(--ink-3); }
small.late, .late { color: var(--bad) !important; }
.o-sum { font: 700 18px var(--f-d); }
.more-btn { justify-self: center; margin-top: 12px; }
.empty { text-align: center; padding: 40px 20px 48px; display: grid; justify-items: center; gap: 10px; }
.empty-ph { width: min(360px, 100%); aspect-ratio: 16 / 9; border-radius: 14px; margin-bottom: 12px; }
.empty h3 { font-size: 22px; }
.empty p { color: var(--ink-3); max-width: 420px; }
.empty .btn { margin-top: 10px; }
.empty.sm { padding: 24px 0; }
.empty.sm .empty-ph { width: 220px; }

/* tiếp nhận */
.intake { border-radius: 18px; padding: clamp(24px, 3vw, 40px); display: grid; gap: 28px; max-width: 980px; }
.in-plate label, .field label, .in-sym legend, .in-ph legend { display: block; font-weight: 600; font-size: 15px; margin-bottom: 8px; }
.in-ph legend small, .in-sym legend small { font-weight: 400; color: var(--ink-3); }
.plate-in { display: inline-flex; background: #F8F6F0; border: 3px solid #141414; border-radius: 8px; padding: 4px; box-shadow: inset 0 0 0 2px #F8F6F0, inset 0 0 0 3.5px rgba(20, 20, 20, .35); }
.plate-in input { border: 0; background: transparent; color: #141414; font: 700 clamp(28px, 4vw, 40px)/1.1 var(--f-m); letter-spacing: .05em; width: 13ch; text-transform: uppercase; padding: 6px 12px; outline: none; }
.plate-in input::placeholder { color: rgba(20, 20, 20, .25); }
.plate-in:focus-within { box-shadow: 0 0 0 4px var(--oil-wash), 0 0 0 2px var(--oil); }
.in-plate.err .plate-in { border-color: var(--bad); }
.hint { margin-top: 10px; font-size: 14.5px; color: var(--ink-3); min-height: 22px; }
.known { display: inline-flex; align-items: center; gap: 4px; color: var(--ok); font-weight: 600; }
.known .ic { width: 16px; height: 16px; }
.in-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.field input, .field textarea, .in-sym textarea, .field select { width: 100%; min-height: 48px; border: 0; border-radius: 10px; background: var(--paper-2); padding: 12px 14px; font-size: 16px; outline: none; transition: box-shadow .2s; }
.field input:focus, .field textarea:focus, .in-sym textarea:focus, .field select:focus { box-shadow: 0 0 0 3px var(--oil-wash), inset 0 0 0 1.5px var(--oil); }
.field.err input, .field.err textarea { box-shadow: inset 0 0 0 1.5px var(--bad); background: var(--bad-wash); }
.f-err { color: var(--bad); font-size: 14px; margin-top: 6px; font-weight: 500; }
.in-sym, .in-ph { border: 0; padding: 0; margin: 0; }
.in-sym .chips { margin-bottom: 14px; }
.in-sym .chip { background: var(--paper-2); }
.in-sym .chip[aria-pressed="true"] { background: var(--ink); color: var(--paper); }
.in-sym textarea { resize: vertical; }
.ph-slots { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.ph-slot { position: relative; aspect-ratio: 4 / 3; border-radius: 12px; overflow: hidden; cursor: pointer; background: var(--paper-2); display: grid; place-items: center; outline-offset: 2px; transition: transform .2s var(--ease); }
.ph-slot:hover { transform: translateY(-2px); }
.ph-slot:focus-within { outline: 3px solid var(--oil); }
.ph-slot .ph { position: absolute; inset: 0; }
.ps-empty { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 50%; box-shadow: inset 0 0 0 1.5px var(--line-2); color: var(--ink-3); }
.ps-l { position: absolute; left: 10px; bottom: 8px; font-size: 13px; font-weight: 600; color: var(--ink-2); background: var(--card); padding: 2px 8px; border-radius: 6px; }
.in-foot { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 8px; }

/* chi tiết lệnh */
.back { display: inline-flex; align-items: center; gap: 8px; margin-top: 20px; min-height: 44px; text-decoration: none; color: var(--ink-3); font-weight: 500; }
.back:hover { color: var(--ink); }
.od-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin: 8px 0 24px; }
.od-id { display: flex; gap: 20px; align-items: center; }
.od-id .mono { font-size: 13px; color: var(--carbon); letter-spacing: .1em; }
.od-id h1 { font-size: clamp(28px, 3vw, 38px); margin: 4px 0; }
.stepper { list-style: none; padding: 0; margin: 0 0 28px; display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.stepper li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--ink-3); padding-top: 12px; position: relative; font-weight: 500; }
.stepper li::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; border-radius: 2px; background: var(--paper-2); }
.stepper li.done::before { background: var(--ink); }
.stepper li.cur::before { background: linear-gradient(90deg, var(--oil) 55%, var(--paper-2) 55%); }
.stepper li.cur { color: var(--ink); font-weight: 600; }
.sd { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); font: 700 13px var(--f-m); flex: none; }
.sd .ic { width: 15px; height: 15px; }
.done .sd { background: var(--ink); color: var(--paper); }
.cur .sd { background: var(--oil); color: var(--oil-ink); }
.od-grid { display: grid; grid-template-columns: 1.25fr 1fr; gap: 24px; align-items: start; }
.od-left, .od-right { display: grid; gap: 24px; min-width: 0; }
.lift-card { border-radius: 18px; overflow: hidden; position: relative; background: #22201d; }
.lift-card .lift-canvas { border-radius: 0; aspect-ratio: 16 / 9; }
.lift-legend { position: absolute; left: 16px; bottom: 14px; pointer-events: none; }
.lift-legend p { font-size: 12.5px; color: rgba(242, 236, 225, .8); background: rgba(18, 17, 15, .55); padding: 6px 10px; border-radius: 6px; }
.it-g + .it-g { margin-top: 20px; }
.it-h { font: 600 13px var(--f-m); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.it-g ul { list-style: none; padding: 0; margin: 0; }
.it-row { display: grid; grid-template-columns: 56px 1fr auto 120px 40px; gap: 14px; align-items: center; min-height: 72px; padding: 8px; margin: 0 -8px; border-radius: 12px; transition: background .2s; outline-offset: -2px; }
.it-row:hover, .it-row.hl, .it-row:focus-within { background: var(--paper-2); }
.it-row.flash { animation: flash .9s var(--ease); }
@keyframes flash { 30% { background: var(--oil-wash); } }
.it-row.later { opacity: .6; }
.it-row.later b { text-decoration: line-through; }
.it-n { display: grid; min-width: 0; line-height: 1.35; }
.it-n b { font-weight: 600; font-size: 15.5px; }
.it-n small { color: var(--ink-3); font-size: 13.5px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.zone-dot { width: 56px; height: 56px; border-radius: 10px; display: grid; place-items: center; background: var(--oil-wash); color: var(--oil-deep); }
.it-p { font-weight: 600; }
.ok-tag { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; font-size: 13px; }
.ok-tag .ic { width: 14px; height: 14px; }
.ok-tag.yes { color: var(--ok); }
.ok-tag.no { color: var(--ink-3); }
.ok-tag.wait { color: var(--warn); }
.qty { display: inline-flex; align-items: center; gap: 2px; background: var(--paper); border-radius: 999px; padding: 2px; }
.qty button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: transparent; display: grid; place-items: center; }
.qty button:hover { background: var(--line); }
.qty button .ic { width: 16px; height: 16px; }
.qty b { min-width: 22px; text-align: center; font: 700 15px var(--f-m); }
.qty.ro { background: none; color: var(--ink-3); font: 500 14px var(--f-m); }
.totals { margin: 24px 0 0; padding-top: 16px; box-shadow: 0 -1.5px 0 var(--line-2); display: grid; gap: 8px; }
.totals div { display: flex; justify-content: space-between; gap: 16px; font-size: 15.5px; }
.totals dt { color: var(--ink-2); }
.totals dd { margin: 0; }
.totals .grand { padding-top: 10px; align-items: baseline; }
.totals .grand dt { font-weight: 700; color: var(--ink); }
.totals .grand dd { font: 800 32px var(--f-d); letter-spacing: -.02em; }
.od-info { border-radius: 18px; }
.gallery { display: grid; gap: 10px; margin-bottom: 20px; }
.g-main { aspect-ratio: 16 / 10; border-radius: 12px; }
.g-th { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.g-th .ph { aspect-ratio: 4 / 3; border-radius: 10px; }
.kv { margin: 0 0 16px; display: grid; gap: 16px; }
.kv > div { display: grid; grid-template-columns: 128px 1fr; gap: 12px; align-items: center; }
.kv dt { color: var(--ink-3); font-size: 14.5px; }
.kv dd { margin: 0; font-size: 15.5px; }
.tagx { display: inline-block; padding: 4px 10px; margin: 2px 6px 2px 0; border-radius: 6px; background: var(--paper-2); font-size: 14px; }
.tl { list-style: none; padding: 0; margin: 0; }
.tl li { display: grid; grid-template-columns: 20px 1fr; gap: 14px; padding-bottom: 22px; position: relative; }
.tl li::before { content: ''; position: absolute; left: 6px; top: 20px; bottom: 0; width: 2px; background: var(--paper-2); }
.tl li:last-child::before { display: none; }
.tl-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--paper-2); margin-top: 5px; box-shadow: inset 0 0 0 3px var(--card); }
.tl li.now .tl-dot { background: var(--oil); box-shadow: 0 0 0 5px var(--oil-wash); }
.tl-t { font-size: 13px; color: var(--ink-3); }
.tl li p:not(.tl-t) { font-size: 15.5px; }
.tl-ph { margin-top: 10px; width: min(280px, 100%); aspect-ratio: 16 / 10; border-radius: 10px; }

/* bảng xưởng */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 16px; overflow-x: auto; padding-bottom: 16px; scroll-snap-type: x proximity; }
.col-b { background: var(--paper-2); border-radius: 16px; padding: 12px; min-height: 520px; display: flex; flex-direction: column; scroll-snap-align: start; transition: background .2s, box-shadow .2s; }
.col-b.over { background: var(--oil-wash); box-shadow: inset 0 0 0 2px var(--oil); }
.col-b.nope { box-shadow: inset 0 0 0 2px var(--bad); background: var(--bad-wash); }
.col-b header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 8px 8px 14px; }
.cb-n { display: grid; line-height: 1.3; }
.cb-n b { font: 700 17px var(--f-d); }
.cb-n small { font-size: 13px; color: var(--ink-3); }
.cb-c { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%; background: var(--card); font-size: 14px; }
.k-done header .cb-n b::before { content: '● '; color: var(--ok); }
.drop { display: grid; gap: 12px; align-content: start; flex: 1; }
.drop-empty { border: 2px dashed var(--line-2); border-radius: 12px; padding: 28px 16px; text-align: center; color: var(--ink-3); font-size: 14.5px; }
.bcard { background: var(--card); border-radius: 12px; overflow: hidden; cursor: grab; transition: transform .25s var(--ease), box-shadow .25s, opacity .2s; }
.bcard:hover { transform: translateY(-2px); box-shadow: 0 12px 24px -16px rgba(0, 0, 0, .35); }
.bcard.dragging { opacity: .4; transform: scale(.97); }
.bcard.landed { animation: land .55s var(--spring); }
@keyframes land { from { transform: scale(.9); opacity: .4; } }
.bc-ph { height: 92px; }
.bc-b { padding: 14px; display: grid; gap: 8px; justify-items: start; }
.bc-top { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.bc-m { font-weight: 600; font-size: 15px; line-height: 1.3; }
.bc-eta { width: 100%; display: grid; gap: 6px; margin-top: 2px; }
.bc-eta small { font-size: 13px; color: var(--ink-3); }
.bar { display: block; height: 6px; border-radius: 3px; background: var(--paper-2); overflow: hidden; width: 100%; }
.bar i { display: block; height: 100%; border-radius: 3px; background: var(--ink-2); transition: width .8s var(--ease); }
.bar i.late, .bar i.out { background: var(--bad); }
.bar i.low { background: var(--warn); }
.bar i.ok { background: var(--ok); }
.bc-act { display: flex; gap: 6px; width: 100%; }
.bc-act .btn { flex: 1; }
.move-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.move-list button { width: 100%; text-align: left; min-height: 56px; padding: 8px 16px; border: 0; border-radius: 12px; background: var(--paper-2); display: grid; }
.move-list button:hover:not([disabled]) { background: var(--oil-wash); }
.move-list button[disabled] { opacity: .45; cursor: not-allowed; }
.move-list small { color: var(--ink-3); font-size: 13.5px; }

/* kho */
.kho-hero { position: relative; height: 200px; border-radius: 18px; overflow: hidden; margin-bottom: 24px; color: #F7F1E6; isolation: isolate; }
.kh-ph { position: absolute; inset: 0; z-index: -2; }
.kho-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(18, 17, 15, .86) 10%, rgba(18, 17, 15, .1) 75%); }
.kh-t { position: absolute; left: 32px; bottom: 28px; max-width: 420px; }
.kh-t .k-big { color: var(--oil); margin: 0 0 6px; }
.p-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 20px; }
.p-card { position: relative; display: flex; flex-direction: column; background: var(--card); border-radius: 14px; overflow: hidden; text-decoration: none; transition: transform .35s var(--ease), box-shadow .3s; animation: rise .5s var(--ease) both; animation-delay: calc(var(--i) * 50ms); will-change: transform; }
.p-card:hover { box-shadow: 0 20px 40px -24px rgba(0, 0, 0, .4); }
.p-ph { aspect-ratio: 4 / 3; }
.p-b { padding: 18px 20px 20px; display: grid; gap: 10px; }
.p-b b { font-weight: 600; font-size: 16px; line-height: 1.3; }
.p-row { display: flex; justify-content: space-between; align-items: baseline; }
.p-stock strong { font: 800 28px var(--f-d); }
.p-stock { color: var(--ink-2); font-size: 14px; }
.p-b small { font-size: 13.5px; color: var(--ink-3); }
.shine { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(circle at var(--sx, 50%) 0%, rgba(255, 255, 255, .28), transparent 45%); opacity: 0; transition: opacity .3s; }
.p-card:hover .shine { opacity: 1; }
.po-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.po { display: grid; grid-template-columns: auto 1fr auto auto; gap: 20px; align-items: center; padding: 18px 20px; }
.po-ph { display: flex; }
.po-ph .th { margin-right: -16px; box-shadow: 0 0 0 3px var(--card); }
.po-b { display: grid; gap: 2px; padding-left: 16px; }
.po-b .mono { font-size: 13px; color: var(--ink-3); }
.po-b small { color: var(--ink-3); font-size: 14px; }
.po-draft + .po-draft { margin-top: 24px; }
.po-draft h3 { font-size: 18px; }
.po-draft ul { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 10px; }
.po-draft li { display: grid; grid-template-columns: 64px 1fr 96px; gap: 14px; align-items: center; }
.qty-in input { width: 100%; min-height: 44px; border: 0; border-radius: 10px; background: var(--paper-2); text-align: center; font: 700 16px var(--f-m); }
.pp { display: grid; gap: 20px; }
.pp-ph { aspect-ratio: 4 / 3; border-radius: 14px; }
.pp-label { font-size: 13px; color: var(--oil-deep); margin-top: -10px; }
.pp-stock .k-big { margin: 6px 0; }
.adj { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.adj input { width: 72px; min-height: 44px; border: 0; border-radius: 10px; background: var(--paper-2); text-align: center; font: 700 16px var(--f-m); }
.adj select { min-height: 44px; border: 0; border-radius: 10px; background: var(--paper-2); padding: 0 10px; }

/* nhắc */
.nh-top { display: grid; grid-template-columns: 320px 1fr; gap: 24px; margin-bottom: 24px; }
.nh-ph { border-radius: 18px; min-height: 180px; }
.focal-sm { background: var(--graphite); color: var(--cream); }
.focal-sm .k-label { color: rgba(242, 236, 225, .7); }
.focal-sm .k-big { color: var(--oil); }
.focal-sm .muted { color: rgba(242, 236, 225, .7); }
.rm-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 8px; }
.rm { display: grid; grid-template-columns: 64px 1fr 260px auto; gap: 20px; align-items: center; background: var(--card); border-radius: 14px; padding: 14px 20px 14px 14px; min-height: 92px; }
.rm-km { display: grid; gap: 8px; }
.rm-km small { font-size: 13.5px; color: var(--ink-3); }
.rm-act { display: flex; gap: 8px; align-items: center; justify-content: flex-end; flex-wrap: wrap; }

/* thu tiền */
.tabs-pr { margin-bottom: 24px; }
.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; align-items: start; }
.pay-grid > *, .rep-grid > * { min-width: 0; }
.pay-grid .focal { grid-row: span 1; }
.pay-grid .focal .k-big { font-size: clamp(40px, 4vw, 56px); }
.pay-grid .focal .muted { color: rgba(242, 236, 225, .7); }
.pay-list { list-style: none; padding: 0; margin: 0; display: grid; }
.pay-list li { display: grid; grid-template-columns: 64px 1fr auto auto; gap: 16px; align-items: center; min-height: 84px; padding: 10px 0; }
.pay-list li + li { box-shadow: 0 -1px 0 var(--line); }
.receipt { border-radius: 12px; padding: 20px 22px; margin-bottom: 20px; }
.receipt .mono { font-size: 13px; color: var(--carbon); margin-bottom: 10px; }
.receipt ul { list-style: none; padding: 0; margin: 0 0 12px; font-size: 15px; }
.receipt li, .r-l, .r-total { display: flex; justify-content: space-between; gap: 12px; padding: 4px 0; }
.r-total { padding-top: 12px; margin-top: 6px; box-shadow: 0 -1.5px 0 var(--line-2); font-weight: 700; }
.r-total b { font: 800 26px var(--f-d); }
#payBox { margin-top: 20px; display: grid; gap: 14px; }
.change { font-size: 16px; }
.change b { font: 700 22px var(--f-d); }
.change b.bad { color: var(--bad); font-size: 16px; }
.qr-wrap { display: grid; grid-template-columns: 160px 1fr; gap: 20px; align-items: center; }
.qr { width: 160px; height: 160px; background: #fff; color: #141414; border-radius: 10px; padding: 6px; }
.num.big { font: 800 26px var(--f-d); text-align: left; }
.invoice { padding: 32px; border-radius: 10px; font-size: 15px; }
.invoice header { display: flex; justify-content: space-between; gap: 16px; padding-bottom: 18px; box-shadow: 0 1.5px 0 var(--line-2); flex-wrap: wrap; }
.invoice .brand-word { font-size: 22px; }
.inv-no { text-align: right; }
.inv-no .mono { font-size: 12.5px; color: var(--carbon); letter-spacing: .12em; }
.inv-no .big { font-size: 22px; color: var(--bad); font-weight: 700; }
.inv-meta { padding: 16px 0; display: grid; gap: 6px; }
.invoice table { width: 100%; border-collapse: collapse; }
.invoice th { text-align: left; font: 600 12.5px var(--f-m); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 8px 0; }
.invoice td { padding: 10px 0; box-shadow: 0 -1px 0 var(--line); }
.invoice footer { margin-top: 20px; display: flex; justify-content: space-between; align-items: center; gap: 20px; font-size: 14px; color: var(--ink-2); }

/* báo cáo */
.rep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.rep-main { grid-column: 1 / -1; }
.bars { width: 100%; height: auto; margin-top: 20px; }
.bars rect { fill: var(--paper-2); transition: fill .2s; }
[data-theme="dark"] .bars rect { fill: #3a3833; }
.bars rect:hover { fill: var(--ink-3); }
.bars rect.best { fill: var(--oil); }
.bars rect.today { fill: var(--ink-2); }
.bars text { font: 500 13px var(--f-m); fill: var(--ink-3); }
.bars .lbl-strong { fill: var(--ink); font-weight: 700; font-size: 14px; }
.split-bar { display: flex; height: 64px; border-radius: 10px; overflow: hidden; margin: 18px 0 14px; gap: 3px; }
.split-bar span { display: flex; flex-direction: column; justify-content: center; padding: 0 14px; font: 700 18px var(--f-d); min-width: 90px; }
.split-bar span b { font: 600 12.5px var(--f-m); letter-spacing: .08em; text-transform: uppercase; opacity: .8; }
.split-bar span:first-child { background: var(--oil); color: var(--oil-ink); }
.split-bar span:last-child { background: var(--graphite); color: var(--cream); }
[data-theme="dark"] .split-bar span:last-child { background: #3a3833; }
.hbars { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.hbars li { display: grid; grid-template-columns: minmax(140px, 1.2fr) 1fr 60px; gap: 14px; align-items: center; font-size: 15px; }
.hbars.techs li { grid-template-columns: 40px minmax(120px, 1fr) 1fr 64px; }
.hbars.techs span:nth-child(2) { display: grid; line-height: 1.3; }
.hbars small { color: var(--ink-3); font-size: 13px; }
.hb { height: 10px; border-radius: 5px; background: var(--paper-2); overflow: hidden; }
.hb i { display: block; height: 100%; background: var(--ink-2); border-radius: 5px; }
.hbars li:first-child .hb i { background: var(--oil); }

/* ================ modal, toast, palette */
#layer { position: relative; z-index: 100; }
.modal-wrap { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 20px; }
.modal-bg { position: absolute; inset: 0; background: rgba(18, 17, 15, .5); opacity: 0; transition: opacity .3s var(--ease); }
.modal { position: relative; width: min(560px, 100%); max-height: calc(100vh - 40px); overflow: auto; background: var(--card); border-radius: 18px; padding: 8px 28px 0; box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .5); opacity: 0; transform: translateY(20px) scale(.98); transition: opacity .3s var(--ease), transform .4s var(--ease); outline: none; display: flex; flex-direction: column; }
.modal-wrap.in .modal-bg { opacity: 1; }
.modal-wrap.in .modal { opacity: 1; transform: none; }
.modal-wrap.out .modal { opacity: 0; transform: translateY(12px) scale(.98); }
.m-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 0 12px; position: sticky; top: 0; background: var(--card); z-index: 2; }
.m-head h2 { font-size: 22px; }
.m-body { padding: 8px 0 24px; flex: 1; }
.m-foot { position: sticky; bottom: 0; display: flex; justify-content: flex-end; gap: 10px; padding: 16px 0 20px; background: var(--card); box-shadow: 0 -1px 0 var(--line); }
.is-side { place-items: stretch end; padding: 0; }
.is-side .modal { width: min(480px, 100%); max-height: 100vh; height: 100vh; border-radius: 18px 0 0 18px; transform: translateX(40px); }
.is-side.in .modal { transform: none; }
.is-confirm .modal { width: min(440px, 100%); }
.confirm-msg { font-size: 16px; color: var(--ink-2); }
.is-pal { place-items: start center; padding-top: 12vh; }
.is-pal .modal { width: min(620px, 100%); padding: 0; }
.is-pal .m-body { padding: 0; }
.pal-in { display: flex; align-items: center; gap: 12px; padding: 18px 22px; box-shadow: 0 1px 0 var(--line); color: var(--ink-3); }
.pal-in input { flex: 1; border: 0; background: transparent; outline: none; font-size: 18px; color: var(--ink); min-height: 32px; }
.pal-res { list-style: none; padding: 8px; margin: 0; max-height: 52vh; overflow: auto; }
.pal-res li[role="option"] { display: flex; align-items: center; gap: 14px; padding: 10px 14px; min-height: 56px; border-radius: 10px; cursor: pointer; color: var(--ink-2); }
.pal-res li[aria-selected="true"] { background: var(--oil-wash); color: var(--ink); }
.pal-res li span { display: grid; }
.pal-res b { font-weight: 600; color: var(--ink); }
.pal-res small { font-size: 13.5px; color: var(--ink-3); }
.pal-empty { padding: 24px; text-align: center; color: var(--ink-3); }
.pick-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.pick-list button { width: 100%; display: grid; grid-template-columns: 56px 1fr auto 20px; gap: 14px; align-items: center; text-align: left; min-height: 72px; padding: 8px; border: 0; border-radius: 12px; background: transparent; transition: background .2s; }
.pick-list button:hover { background: var(--paper-2); }
.pick-list button.added { background: var(--ok-wash); }
.pick-list .th { width: 56px; height: 56px; }
.pick-list .dim { opacity: .6; }
.more-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.more-list a { display: grid; text-decoration: none; border-radius: 14px; overflow: hidden; background: var(--paper-2); }
.more-ph { aspect-ratio: 16 / 9; }
.more-list span:last-child { display: flex; align-items: center; gap: 8px; padding: 12px; font-weight: 600; font-size: 15px; }
.ph-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.ph-pick button { padding: 0; border: 0; border-radius: 10px; overflow: hidden; aspect-ratio: 1; background: none; box-shadow: inset 0 0 0 0 var(--oil); position: relative; }
.ph-pick .ph { width: 100%; height: 100%; }
.ph-pick button[aria-pressed="true"]::after { content: ''; position: absolute; inset: 0; border-radius: 10px; box-shadow: inset 0 0 0 4px var(--oil); }
.lbl { font-weight: 600; margin: 16px 0 8px; }
/* zalo giả */
.is-phone .modal { width: min(420px, 100%); background: var(--paper-2); }
.is-phone .m-head { background: var(--paper-2); }
.zphone { background: #E7ECF3; border-radius: 22px; overflow: hidden; color: #1b2430; }
.z-top { display: flex; align-items: center; gap: 12px; background: #0068FF; color: #fff; padding: 14px 16px; }
.z-top span:last-child { display: grid; line-height: 1.3; }
.z-top small { opacity: .85; font-size: 13px; }
.z-av { width: 40px; height: 40px; border-radius: 50%; background: #E8701F; color: #1E1D1B; display: grid; place-items: center; font: 800 14px var(--f-d); }
.z-chat { padding: 16px; display: grid; gap: 12px; }
.z-time { text-align: center; font-size: 13px; color: #5b6676; }
.z-msg { background: #fff; padding: 12px 14px; border-radius: 4px 16px 16px 16px; max-width: 92%; font-size: 15px; }
.z-card { background: #fff; border-radius: 14px; overflow: hidden; }
.z-ph { aspect-ratio: 16 / 8; }
.z-card-b { padding: 14px 16px 16px; }
.z-card-b .mono { font-size: 13px; color: #5b6676; margin-bottom: 8px; }
.z-items { list-style: none; padding: 0; margin: 0 0 14px; }
.z-items label { display: grid; grid-template-columns: 24px 1fr auto; gap: 10px; align-items: center; min-height: 48px; font-size: 15px; cursor: pointer; }
.z-items li + li { border-top: 1px solid #edf0f4; }
.z-items input { width: 20px; height: 20px; accent-color: #0068FF; }
.z-note { font-size: 13px; color: #5b6676; margin-top: 10px; }
.dots { display: inline-flex; gap: 4px; }
.dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: dot 1s infinite; }
.dots i:nth-child(2) { animation-delay: .15s; }
.dots i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 50% { opacity: .25; transform: translateY(-3px); } }
.is-sheet .modal { width: min(560px, 100%); }
.is-invoice .modal { width: min(640px, 100%); }

#toasts { position: fixed; z-index: 200; left: 50%; bottom: 24px; transform: translateX(-50%); display: grid; gap: 8px; justify-items: center; pointer-events: none; width: min(520px, calc(100% - 32px)); }
.toast { pointer-events: auto; display: flex; align-items: center; gap: 12px; background: var(--graphite); color: #F2ECE1; padding: 12px 14px 12px 16px; border-radius: 14px; font-size: 15px; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); opacity: 0; transform: translateY(16px) scale(.97); transition: opacity .3s var(--ease), transform .45s var(--spring); max-width: 100%; }
[data-theme="dark"] .toast { background: #F2ECE1; color: #1E1D1B; }
.toast.in { opacity: 1; transform: none; }
.toast.out { opacity: 0; transform: translateY(8px); }
.t-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--oil); color: #1E1D1B; display: grid; place-items: center; flex: none; }
.t-ic .ic { width: 16px; height: 16px; }
.t-bad .t-ic { background: var(--bad); color: #fff; }
.t-warn .t-ic { background: #E6B657; }
.t-msg { flex: 1; }
.t-undo { border: 0; background: transparent; color: var(--oil); font-weight: 700; min-height: 40px; padding: 0 8px; }

/* ================= TRA CỨU */
.track { min-height: 100vh; background: var(--paper); }
.tr-nav { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px clamp(16px, 4vw, 48px); background: color-mix(in srgb, var(--paper) 90%, transparent); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.tr-shop { display: grid; line-height: 1.2; }
.tr-shop small { font-size: 13px; color: var(--ink-3); }
.tr-hero { position: relative; min-height: 420px; display: grid; align-items: end; overflow: hidden; isolation: isolate; color: #F7F1E6; }
.tr-bg { position: absolute; inset: 0; z-index: -2; }
.tr-hero::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(18, 17, 15, .2), rgba(18, 17, 15, .85)); }
.tr-form { width: min(1100px, 100% - 32px); margin: 0 auto; padding: 64px 0 48px; }
.tr-form h1 { font: 800 clamp(36px, 5vw, 68px)/1 var(--f-d); letter-spacing: -.035em; }
.tr-form > p { margin: 14px 0 24px; font-size: 17px; opacity: .88; }
.tr-in { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.tr-demo { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 18px; font-size: 14px; }
.tr-demo a { font: 600 14px var(--f-m); padding: 8px 12px; border-radius: 999px; background: rgba(242, 236, 225, .14); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.tr-demo a:hover { background: rgba(242, 236, 225, .26); }
.tr-wrap { width: min(1100px, 100% - 32px); margin: 32px auto 0; }
.tr-card { display: grid; grid-template-columns: 1fr 1.1fr; background: var(--card); border-radius: 18px; overflow: hidden; margin-bottom: 24px; }
.tr-ph { min-height: 320px; }
.tr-b { padding: 32px; display: grid; gap: 12px; align-content: start; justify-items: start; }
.tr-b .mono { color: var(--ink-3); font-size: 13.5px; }
.tr-b h2 { font-size: clamp(26px, 2.8vw, 36px); letter-spacing: -.02em; }
.tr-eta { display: flex; gap: 8px; align-items: center; color: var(--oil-deep); font-weight: 600; }
.tr-steps { list-style: none; padding: 0; margin: 8px 0 8px; display: grid; gap: 4px; width: 100%; }
.tr-steps li { display: flex; align-items: center; gap: 12px; color: var(--ink-3); font-size: 15px; min-height: 34px; }
.tr-steps li span { width: 14px; height: 14px; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--line-2); flex: none; }
.tr-steps li.done { color: var(--ink-2); }
.tr-steps li.done span { background: var(--ink); box-shadow: none; }
.tr-steps li.cur { color: var(--ink); font-weight: 700; }
.tr-steps li.cur span { background: var(--oil); box-shadow: 0 0 0 5px var(--oil-wash); }
.tr-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: start; }
.tr-grid .tr-shop { grid-column: 2; display: grid; gap: 12px; justify-items: start; }
.tr-shop h2 { font-size: 20px; }
.tr-shop p { display: flex; gap: 8px; align-items: center; color: var(--ink-2); }
.tr-items { list-style: none; padding: 0; margin: 0; }
.tr-items li { display: flex; justify-content: space-between; gap: 12px; align-items: center; min-height: 60px; padding: 8px; margin: 0 -8px; border-radius: 10px; }
.tr-items li:hover, .tr-items li:focus { background: var(--paper-2); outline: none; }
.tr-items li span { display: grid; }
.tr-items small { color: var(--ink-3); font-size: 13.5px; }
.tr-items li.later { opacity: .55; }
.tr-total { display: flex; justify-content: space-between; padding-top: 14px; margin-top: 8px; box-shadow: 0 -1.5px 0 var(--line-2); font-weight: 700; }
.tr-total b { font: 800 26px var(--f-d); }
.tr-foot { width: min(1100px, 100% - 32px); margin: 64px auto 0; padding: 32px 0 48px; box-shadow: 0 -1px 0 var(--line); color: var(--ink-3); font-size: 14.5px; display: grid; gap: 8px; }

/* ================= in ấn */
@media print {
  body.printing > *:not(#layer) { display: none !important; }
  body.printing .modal-bg, body.printing .m-head, body.printing .m-foot { display: none !important; }
  body.printing .modal-wrap { position: static; padding: 0; }
  body.printing .modal { box-shadow: none; max-height: none; width: 100%; padding: 0; }
  body.printing .invoice { background: #fff; color: #000; }
}

/* ================= responsive */
@media (max-width: 1180px) {
  .home-grid { grid-template-columns: 1fr 1fr; grid-template-areas: "focal bays" "rev stock" "remind remind"; }
  .od-grid { grid-template-columns: 1fr; }
  .o-row { grid-template-columns: 64px 1fr auto 120px; }
  .o-tech { display: none; }
  .rm { grid-template-columns: 64px 1fr 220px; }
  .rm-act { grid-column: 2 / -1; justify-content: flex-start; }
}
@media (max-width: 1020px) {
  .app { grid-template-columns: 1fr; }
  .sb { display: none; }
  .tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(5, 1fr); background: color-mix(in srgb, var(--card) 94%, transparent); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); box-shadow: 0 -1px 0 var(--line); }
  .tabbar a, .tabbar button { display: grid; justify-items: center; gap: 2px; min-height: 54px; padding-top: 6px; border: 0; background: transparent; text-decoration: none; font-size: 12.5px; font-weight: 600; color: var(--ink-3); border-radius: 12px; }
  .tabbar .on { color: var(--ink); }
  .tabbar .on .ic { color: var(--oil-deep); }
  .tabbar .ic { width: 22px; height: 22px; }
  .main { padding-bottom: 110px; }
  #toasts { bottom: 92px; }
  .mobile-only { display: inline-flex !important; }
  .search-btn, .me-t { display: none; }
  .tb { gap: 8px; }
  .tb-br .chip { background: var(--card); }
  .lp-links { display: none; }
  .story-pin { grid-template-columns: 1fr; grid-template-rows: auto 1fr; padding-top: 76px; gap: 20px; align-content: start; }
  .chap:not(.is-on) { display: none; }
  .story-bar { display: none; }
  .story-copy { padding-left: 0; }
  .story-stage { height: auto; min-height: 0; }
  .laptop { position: relative; width: 92%; }
  .phone { width: 28%; bottom: -12%; }
  .lift-grid, .spread-a, .spread-b, .price-head { grid-template-columns: 1fr; }
  .plans { grid-template-columns: 1fr; max-width: 520px; }
  .plan-hot { transform: none; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-ticket { grid-column: 1; grid-row: auto; justify-self: end; margin-top: 32px; width: 290px; }
  .tr-card, .tr-grid { grid-template-columns: 1fr; }
  .tr-grid .tr-shop { grid-column: auto; }
  .pay-grid { grid-template-columns: 1fr; }
}
@media (hover: hover) and (min-width: 1021px) { .tabbar { display: none; } }
@media (min-width: 1021px) { .tabbar { display: none; } }
@media (max-width: 720px) {
  body { font-size: 15.5px; }
  .lp-nav .btn-oil { display: none; }
  .lp-nav [data-act="calm"] { display: none; }
  .hero-grid { padding: 96px 20px 40px; }
  .hero-h { font-size: clamp(54px, 17vw, 84px); }
  .hero-sub { font-size: 16.5px; }
  .hero-ticket { display: none; }
  .hero-scroll { display: none; }
  .counters { grid-template-columns: 1fr; gap: 28px; }
  .quote-row { grid-template-columns: 1fr; gap: 32px; margin-top: 56px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip img:first-child { grid-column: 1 / -1; }
  .foot-grid { grid-template-columns: 1fr; }
  .phone.floating { width: 34%; right: 4%; }
  .story { height: 400vh; }
  .chap h3 { font-size: 24px; }
  .home-grid { grid-template-columns: 1fr; grid-template-areas: "focal" "bays" "rev" "stock" "remind"; }
  .band { height: 200px; margin-top: 12px; }
  .band-t { left: 20px; right: 20px; bottom: 20px; }
  .card { padding: 22px; }
  .v-head { margin: 16px 0 20px; }
  .o-row { grid-template-columns: 56px 1fr auto; gap: 14px; padding: 12px; }
  .o-row .th { width: 56px; height: 56px; }
  .o-st { grid-column: 2; grid-row: 2; display: flex; align-items: center; }
  .o-sum { grid-column: 3; grid-row: 1; font-size: 15px; align-self: start; }
  .toolbar, .tool-r { align-items: stretch; }
  .tool-r { width: 100%; }
  .search { flex: 1; }
  .search input { min-width: 0; width: 100%; }
  .in-grid { grid-template-columns: 1fr; }
  .ph-slots { grid-template-columns: 1fr 1fr; }
  .stepper { grid-template-columns: repeat(5, 1fr); gap: 4px; }
  .stepper li > span:last-child { display: none; }
  .stepper li.cur > span:last-child { display: inline; position: absolute; top: 46px; left: 0; white-space: nowrap; }
  .stepper { margin-bottom: 48px; }
  .od-id { flex-direction: column; align-items: flex-start; gap: 12px; }
  .v-act { width: 100%; }
  .v-act .btn { flex: 1; }
  .it-row { grid-template-columns: 48px 1fr auto; gap: 10px; }
  .it-row .th, .it-row .zone-dot { width: 48px; height: 48px; }
  .it-row .qty { grid-column: 2; grid-row: 2; justify-self: start; }
  .it-row .it-p { grid-column: 3; grid-row: 1; }
  .it-row [data-del] { grid-column: 3; grid-row: 2; justify-self: end; }
  .kv > div { grid-template-columns: 1fr; gap: 4px; }
  .board { grid-auto-columns: 84%; }
  .col-b { min-height: 420px; }
  .p-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .p-b { padding: 14px; }
  .p-b b { font-size: 14.5px; }
  .p-stock strong { font-size: 22px; }
  .p-row { flex-direction: column; gap: 2px; }
  .p-row .num { text-align: left; font-size: 14px; }
  .kho-hero { height: 170px; }
  .kh-t { left: 20px; bottom: 20px; }
  .nh-top { grid-template-columns: 1fr; }
  .nh-ph { display: none; }
  .rm { grid-template-columns: 56px 1fr; gap: 12px; padding: 12px; }
  .rm .th { width: 56px; height: 56px; }
  .rm-km, .rm-act { grid-column: 1 / -1; }
  .pay-list li { grid-template-columns: 56px 1fr auto; }
  .pay-list li .th { width: 56px; height: 56px; }
  .pay-list li > :last-child { grid-column: 2 / -1; justify-self: start; }
  .rep-grid { grid-template-columns: 1fr; }
  .hbars li { grid-template-columns: 1fr 60px; }
  .hbars li .hb { grid-column: 1 / -1; grid-row: 2; }
  .hbars.techs li { grid-template-columns: 40px 1fr 64px; }
  .hbars.techs .hb { grid-column: 2 / -1; }
  .po { grid-template-columns: 1fr auto; }
  .po-ph { display: none; }
  .po-b { padding: 0; }
  .po > :last-child { grid-column: 1 / -1; justify-self: start; }
  .modal-wrap { padding: 0; place-items: end stretch; }
  .modal { width: 100% !important; border-radius: 20px 20px 0 0; max-height: 92vh; padding: 4px 20px 0; transform: translateY(40px); }
  .is-side .modal { height: auto; max-height: 92vh; border-radius: 20px 20px 0 0; }
  .is-pal { place-items: start stretch; padding: 0; }
  .is-pal .modal { border-radius: 0 0 20px 20px; }
  .qr-wrap { grid-template-columns: 1fr; justify-items: start; }
  .tr-ph { min-height: 220px; }
  .tr-b { padding: 22px; }
  .plate-in input { width: 10ch; }
  .tr-in .btn { width: 100%; }
  .sk-grid { grid-template-columns: 1fr; }
  .sk-block { height: 140px; }
  .more-list { grid-template-columns: 1fr 1fr; }
  .me { display: none; }
}

/* ================= giảm chuyển động */
.calm *, .calm *::before, .calm *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-delay: 0s !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
}
.calm .hero-img { transform: scale(1.04) !important; }
.calm .big-statement .w { color: var(--ink); }
@media (max-width: 720px) {
  .tr-nav .btn { display: none; }
  .tr-in { flex-direction: column; align-items: stretch; }
  .tr-in .plate-in { display: flex; }
  .tr-in .plate-in input, .in-plate .plate-in input { width: 100%; min-width: 0; }
  .in-plate .plate-in { display: flex; }
  .bay-mini .pill { display: none; }
  .bay-mini li { gap: 10px; }
  .bm-n { min-width: 0; }
  .bm-n b, .bm-n small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
@media (max-width: 720px) { .tool-r .search { flex-basis: 100%; } .tool-r .chips { width: 100%; } }
.spread .btn-line, .pricing .plan:not(.plan-hot) .btn-line, .lift-sec .btn-line { box-shadow: inset 0 0 0 1.5px var(--line-2); }
.spread .btn-line:hover, .pricing .plan:not(.plan-hot) .btn-line:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
