/* Nhận diện theo landing Peugeot 408 Sport Edition: nền xanh navy, nút vuông chữ in hoa, nhấn xanh lá #bdd631 */
:root {
  --bg: #081c32; --bg2: #0c2a4a; --panel: #0d2540; --line: rgba(255, 255, 255, .16); --text: #fff; --dim: #a9b7c6;
  --acc: #bdd631; --acc-ink: #000; --blue: #119dd4; --ok: #2fbf71; --err: #ff6b6b;
  --bar-h: 64px; --top-h: 64px;
  --font: 'PeugeotNew', 'Barlow', 'Segoe UI', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-weight: 400; overflow: hidden; }
button { font: inherit; color: inherit; cursor: pointer; border-radius: 0; }
.top { position: fixed; inset: 0 0 auto 0; height: var(--top-h); display: flex; align-items: center; gap: 14px; padding: 0 max(14px, 2vw); z-index: 20; background: linear-gradient(180deg, rgba(8, 28, 50, .95), rgba(8, 28, 50, 0)); }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; min-width: 0; }
.brand img { height: 38px; width: auto; display: block; }
.brand .bn { font-weight: 700; letter-spacing: .22em; font-size: 20px; }
.brand small { color: var(--dim); font-size: 12px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.spacer { flex: 1; }
.hotline { display: flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.hotline svg { width: 18px; height: 18px; stroke: var(--acc); fill: none; stroke-width: 2; }
.hotline b { color: var(--acc); }
.icon-btn { width: 40px; height: 40px; border: 1px solid var(--line); background: rgba(8, 28, 50, .6); display: grid; place-items: center; border-radius: 0; }
.icon-btn:hover { border-color: var(--acc); }
.icon-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.stage { position: fixed; inset: var(--top-h) 0 var(--bar-h) 0; display: grid; place-items: center; background: radial-gradient(ellipse at 50% 35%, rgba(17, 157, 212, .16) 0%, transparent 60%), linear-gradient(180deg, var(--bg) 0%, var(--bg2) 55%, var(--bg) 100%); }
#book { margin: auto; }
.pg { background: #0a0a0c; overflow: hidden; position: relative; }
.pg canvas { width: 100%; height: 100%; display: block; }
.pg.hard { box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.hs { position: absolute; width: 34px; height: 34px; margin: -17px 0 0 -17px; border: 0; padding: 0; background: none; z-index: 5; }
.hs i { position: absolute; inset: 9px; border-radius: 50%; background: var(--acc); box-shadow: 0 0 0 3px rgba(255, 255, 255, .95); }
.hs::before, .hs::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--acc); animation: ping 2s ease-out infinite; }
.hs::after { animation-delay: 1s; }
@keyframes ping { from { transform: scale(.5); opacity: .9; } to { transform: scale(1.5); opacity: 0; } }
.nav { position: fixed; top: 50%; z-index: 15; transform: translateY(-50%); }
.nav.l { left: 14px; } .nav.r { right: 14px; }
.nav[disabled] { opacity: .25; pointer-events: none; }
.count { position: fixed; bottom: calc(var(--bar-h) + 10px); left: 50%; transform: translateX(-50%); z-index: 15; font-size: 13px; color: var(--dim); background: rgba(8, 28, 50, .85); padding: 4px 12px; letter-spacing: .06em; }
.hint { position: fixed; bottom: calc(var(--bar-h) + 44px); left: 50%; transform: translateX(-50%); z-index: 15; background: var(--acc); color: var(--acc-ink); font-weight: 700; padding: 8px 16px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; transition: opacity .5s; white-space: nowrap; }
.hint.off { opacity: 0; pointer-events: none; }
.cta-bar { overflow-x: auto; position: fixed; inset: auto 0 0 0; height: var(--bar-h); display: flex; gap: 8px; align-items: center; justify-content: center; padding: 0 12px; background: var(--bg); border-top: 1px solid rgba(189, 214, 49, .45); z-index: 20; }
.btn { border: 1px solid var(--acc); background: transparent; border-radius: 0; padding: 13px 20px; font-weight: 700; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; text-decoration: none; color: var(--text); display: inline-flex; align-items: center; gap: 8px; white-space: nowrap; transition: background .2s, color .2s; }
.btn:hover { background: rgba(189, 214, 49, .14); }
.btn.primary { background: var(--acc); border-color: var(--acc); color: var(--acc-ink); }
.btn.primary:hover { background: #cde04a; }
.btn.gold { border-color: #c8a16e; color: #ffdea4; }
.btn.gold:hover { background: rgba(200, 161, 110, .15); }
.btn[disabled] { opacity: .5; pointer-events: none; }
.sheet-wrap { position: fixed; inset: 0; background: rgba(4, 14, 26, .7); z-index: 40; display: none; align-items: flex-end; justify-content: center; }
.sheet-wrap.on { display: flex; }
.sheet { width: min(480px, 100%); background: var(--panel); border-top: 3px solid var(--acc); padding: 22px; max-height: 92vh; overflow: auto; animation: up .25s ease; }
@keyframes up { from { transform: translateY(30px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (min-width: 700px) { .sheet-wrap { align-items: center; } }
.sheet h2 { font-size: 24px; margin: 0 0 8px; font-weight: 700; text-transform: uppercase; letter-spacing: .02em; padding-right: 44px; }
.sheet p { color: #d3dce6; margin: 0 0 14px; line-height: 1.55; }
.sheet img { width: 100%; background: #000; margin-bottom: 12px; display: block; }
.row { display: flex; flex-wrap: wrap; gap: 8px; }
.x { float: right; }
label { display: block; font-size: 12px; color: var(--dim); margin: 12px 0 5px; letter-spacing: .06em; text-transform: uppercase; }
input, select, textarea { width: 100%; padding: 12px; border: 1px solid var(--line); border-radius: 0; background: rgba(4, 14, 26, .6); color: var(--text); font: inherit; font-size: 16px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acc); }
.err { color: var(--err); font-size: 13px; min-height: 18px; margin-top: 6px; }
.hp { position: absolute; left: -9999px; }
.ok-ico { width: 56px; height: 56px; border-radius: 50%; background: var(--acc); display: grid; place-items: center; margin: 4px auto 12px; }
.ok-ico svg { width: 28px; height: 28px; stroke: #000; stroke-width: 3; fill: none; }
.info-list { display: grid; gap: 0; margin: 0 0 14px; }
.info-list a { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-weight: 700; font-size: 14px; text-transform: uppercase; letter-spacing: .03em; }
.info-list a span { color: var(--acc); }
.info-list a:hover { color: var(--acc); }
.small { font-size: 12px; color: var(--dim); line-height: 1.5; }
.toast { position: fixed; left: 50%; bottom: calc(var(--bar-h) + 14px); transform: translate(-50%, 20px); z-index: 30; background: var(--panel); border: 1px solid var(--acc); padding: 12px 14px; display: none; gap: 12px; align-items: center; max-width: min(520px, 94vw); box-shadow: 0 10px 40px rgba(0, 0, 0, .5); }
.toast.on { display: flex; animation: up .3s ease forwards; }
.toast span { font-size: 15px; line-height: 1.35; }
.loading { position: fixed; inset: 0; display: grid; place-items: center; z-index: 50; background: var(--bg); color: var(--dim); letter-spacing: .25em; font-size: 14px; font-weight: 700; transition: opacity .4s; text-align: center; }
.loading img { height: 64px; margin: 0 auto 16px; display: block; opacity: .9; }
.loading.off { opacity: 0; pointer-events: none; }
@media (max-width: 640px) {
  .brand small { display: none; }
  .brand img { height: 32px; }
  .hotline span { display: none; }
  .nav { display: none; }
  .btn { padding: 11px 12px; font-size: 12px; }
}

/* Tom Select theo nhận diện: nền navy, viền mảnh, nhấn xanh lá */
.ts-wrapper { width: 100%; }
.ts-wrapper.single .ts-control, .ts-control { background: rgba(4, 14, 26, .6); border: 1px solid var(--line); border-radius: 0; box-shadow: none; color: var(--text); padding: 11px 12px; font: inherit; font-size: 16px; min-height: 46px; }
.ts-control > input, .ts-control .item { color: var(--text) !important; font: inherit; }
.ts-wrapper.focus .ts-control { border-color: var(--acc); box-shadow: none; }
.ts-wrapper.single .ts-control::after { border-color: var(--dim) transparent transparent transparent; }
.ts-dropdown { z-index: 120; background: #0d2540; color: var(--text); border: 1px solid var(--acc); border-radius: 0; box-shadow: 0 12px 32px rgba(0, 0, 0, .5); font-family: var(--font); }
.ts-dropdown .option { padding: 10px 12px; font-size: 15px; }
.ts-dropdown .active { background: rgba(189, 214, 49, .16); color: var(--text); }
.ts-dropdown .option:hover { background: rgba(189, 214, 49, .12); }
.ts-dropdown .no-results { padding: 10px 12px; color: var(--dim); }
.ts-dropdown .optgroup-header { background: #0d2540; color: var(--acc); }
.ts-dropdown-content { max-height: 260px; }
.ts-wrapper.single.input-active .ts-control, .ts-wrapper.focus .ts-control, .ts-wrapper.single.dropdown-active .ts-control { background: rgba(4, 14, 26, .9); }
.ts-control input::placeholder, .ts-wrapper .ts-control .item { color: var(--text); }
.ts-control input { color: var(--text); }
