:root {
  /* Tông "ca đêm treo farm": nền xanh đêm, ánh lửa cam, viền băng */
  --bg: #0c1626;
  --bg-2: #0a1220;
  --surface: #14223a;
  --surface-2: #1a2b48;
  --ink: #eaf0fa;
  --muted: #98a7c2;
  --line: #243a5e;
  --accent: #ffb547;
  --accent-ink: #1b1204;
  --ice: #8fd3ff;
  --ok: #43d69c;
  --warn: #ffc35c;
  --bad: #ff6b6b;
  --ticket: #2a2414;
  --radius-lg: 14px;
  --radius-sm: 8px;
  --mono: 'Space Mono', ui-monospace, monospace;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.55 'Be Vietnam Pro', system-ui, sans-serif;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; width: 100%; max-width: 1080px; margin: 0 auto; padding: 24px 16px 64px; outline: none; }
a { color: var(--accent); }
h1, h2, h3 { line-height: 1.2; margin: 0 0 12px; }
h1 { font-size: clamp(28px, 5vw, 44px); font-weight: 800; letter-spacing: -0.02em; }
h2 { font-size: 22px; font-weight: 800; }
h3 { font-size: 17px; font-weight: 600; }
p { margin: 0 0 12px; max-width: 68ch; }
.muted { color: var(--muted); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
main:focus, main:focus-visible { outline: none; }

/* header */
.top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  max-width: 1080px; width: 100%; margin: 0 auto; padding: 16px;
}
.brand { font-weight: 800; font-size: 20px; color: var(--ink); text-decoration: none; letter-spacing: -0.02em; }
.brand::before { content: ''; display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 3px; background: var(--accent); transform: rotate(45deg); }
nav { display: flex; gap: 4px; flex-wrap: wrap; }
nav a, nav button {
  font: inherit; font-size: 15px; color: var(--ink); text-decoration: none; background: none; border: 0;
  padding: 8px 12px; border-radius: var(--radius-sm); cursor: pointer;
}
nav a:hover, nav button:hover { background: var(--surface); }
nav a[aria-current="page"] { background: var(--surface); font-weight: 600; }

/* buttons & forms */
.btn {
  font: 600 15px/1 'Be Vietnam Pro', sans-serif; display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 18px; border-radius: var(--radius-sm); border: 1px solid var(--line); background: var(--surface);
  color: var(--ink); cursor: pointer; text-decoration: none; min-height: 44px;
}
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn.small { padding: 6px 10px; min-height: 32px; font-size: 13px; }
.btn.danger { color: var(--bad); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
label { display: block; font-weight: 500; font-size: 14px; margin: 0 0 6px; }
input, textarea, select {
  width: 100%; font: inherit; color: var(--ink); background: var(--surface);
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; min-height: 44px;
}
textarea { min-height: 90px; resize: vertical; }
.field { margin-bottom: 14px; }
.form { max-width: 400px; }
.row { display: flex; gap: 12px; flex-wrap: wrap; align-items: end; }
.row > .field { flex: 1 1 160px; }
.error { color: var(--bad); font-size: 14px; min-height: 20px; }

/* shop */
.intro { display: grid; grid-template-columns: 1fr; gap: 8px; margin: 12px 0 28px; }
.intro p { font-size: 18px; color: var(--muted); }
.steps { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 8px; padding: 0; list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 8px; align-items: baseline; color: var(--muted); font-size: 15px; }
.steps li::before { content: counter(s); font: 700 13px var(--mono); color: var(--accent); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 20px; }
.chip { font: 500 14px 'Be Vietnam Pro'; border: 1px solid var(--line); background: transparent; color: var(--ink); padding: 6px 14px; border-radius: 999px; cursor: pointer; }
.chip[aria-pressed="true"] { background: var(--ink); color: var(--bg); border-color: var(--ink); }

.catalog { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.product { background: var(--surface); border-radius: var(--radius-lg); padding: 20px; display: flex; flex-direction: column; gap: 10px; border: 1px solid var(--line); }
.product .game { font-size: 14px; color: var(--muted); }
.product .desc { color: var(--muted); font-size: 15px; white-space: pre-line; }
.tags { display: flex; gap: 6px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.tags span { border: 1px solid var(--line); padding: 2px 8px; border-radius: 4px; }
.plans { display: grid; gap: 8px; margin-top: auto; }
.plan {
  display: flex; justify-content: space-between; align-items: center; gap: 12px; width: 100%;
  font: inherit; color: var(--ink); background: var(--bg); border: 1px solid transparent; border-radius: var(--radius-sm);
  padding: 10px 12px; cursor: pointer; text-align: left;
}
.plan:hover { border-color: var(--accent); }
.plan strong { font-variant-numeric: tabular-nums; }
.empty { padding: 40px 20px; text-align: center; color: var(--muted); border: 1px dashed var(--line); border-radius: var(--radius-lg); }

/* checkout */
.checkout { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: 32px; align-items: start; }
.qr { background: #fff; padding: 12px; border-radius: var(--radius-lg); border: 1px solid var(--line); }
.qr img { display: block; width: 100%; height: auto; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 16px 0; }
dl.kv dt { color: var(--muted); }
dl.kv dd { margin: 0; font-weight: 600; word-break: break-word; }
.copy { display: inline-flex; align-items: center; gap: 8px; }
.code { font-family: var(--mono); letter-spacing: .04em; }
.status { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.status::before { content: ''; width: 10px; height: 10px; border-radius: 50%; background: currentColor; }
.status.pending { color: var(--warn); }
.status.pending::before { animation: pulse 1.4s ease-in-out infinite; }
.status.paid { color: var(--ok); }
.status.expired, .status.cancelled, .status.revoked { color: var(--bad); }
@keyframes pulse { 50% { opacity: .25; } }

/* license ticket — the one memorable element */
.ticket {
  position: relative; display: grid; grid-template-columns: 1fr auto; gap: 4px 20px; align-items: center;
  background: var(--ticket); color: var(--ink); border-radius: var(--radius-lg); padding: 20px 24px 20px 28px;
  margin: 12px 0; border: 1px solid var(--line);
  -webkit-mask: radial-gradient(circle 9px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
          mask: radial-gradient(circle 9px at 0 50%, #0000 98%, #000) left / 51% 100% no-repeat,
                radial-gradient(circle 9px at 100% 50%, #0000 98%, #000) right / 51% 100% no-repeat;
}
.ticket .key { font: 700 clamp(16px, 3.6vw, 24px)/1.2 var(--mono); letter-spacing: .06em; word-break: break-all; }
.ticket .meta { grid-column: 1 / -1; font-size: 14px; color: var(--muted); display: flex; gap: 16px; flex-wrap: wrap; }
.ticket .actions { display: flex; gap: 8px; flex-wrap: wrap; grid-column: 1 / -1; margin-top: 8px; }
.ticket.reveal { animation: stamp .5s cubic-bezier(.2, 1.4, .4, 1); }
@keyframes stamp { from { transform: scale(.94) rotate(-1.5deg); opacity: 0; } }

/* tables (account, admin) */
.table-wrap { overflow-x: auto; background: var(--surface); border-radius: var(--radius-lg); border: 1px solid var(--line); }
table { border-collapse: collapse; width: 100%; font-size: 14px; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
th { font-weight: 600; color: var(--muted); }
tr:last-child td { border-bottom: 0; }
td.num { font-variant-numeric: tabular-nums; text-align: right; }
.section { margin-top: 36px; }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.tabs button { font: 500 15px 'Be Vietnam Pro'; color: var(--muted); background: none; border: 0; padding: 10px 14px; cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button[aria-selected="true"] { color: var(--ink); border-color: var(--accent); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-bottom: 24px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; }
.stat b { display: block; font-size: 22px; font-variant-numeric: tabular-nums; }
.stat span { font-size: 13px; color: var(--muted); }
details.edit { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 14px 16px; margin-bottom: 12px; }
details.edit summary { cursor: pointer; font-weight: 600; }

.foot { max-width: 1080px; width: 100%; margin: 0 auto; padding: 24px 16px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); }
#toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-sm); font-size: 14px; opacity: 0; pointer-events: none; transition: opacity .2s; max-width: calc(100% - 32px); }
#toast.show { opacity: 1; }

@media (max-width: 720px) {
  .checkout { grid-template-columns: 1fr; }
  .qr { max-width: 300px; }
  .ticket { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before { animation: none !important; transition: none !important; }
}
.brand { white-space: nowrap; }
@media (max-width: 560px) {
  .top { flex-wrap: wrap; padding-bottom: 4px; }
  nav { width: calc(100% + 16px); margin-left: -8px; flex-wrap: nowrap; overflow-x: auto; gap: 0; }
  nav a, nav button { padding: 8px; font-size: 14px; white-space: nowrap; }
}
.plan span small { display: block; font-size: 13px; color: var(--muted); }
.product.coming { border-style: dashed; }
.notify { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.notify input { flex: 1 1 180px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.methods { border: 0; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.methods legend { font-weight: 600; margin-bottom: 8px; }
.method { display: flex; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; cursor: pointer; font-weight: 500; margin: 0; }
.method:has(input:checked) { border-color: var(--accent); }
.method small { display: block; color: var(--muted); font-weight: 400; font-size: 13px; }
.method input, .check input { width: auto; min-height: 0; }
.check { display: inline-flex; gap: 6px; align-items: center; font-weight: 400; margin-right: 12px; }
.summary { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
a.plan { text-decoration: none; }
.code.big { font-size: 20px; }
.warn { color: var(--warn); font-weight: 600; }
.instructions { white-space: pre-line; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin: 12px 0; max-width: 68ch; }
.planform { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 12px; }
.redeem { margin: 8px 0 20px; max-width: 560px; }

/* ---------- trang chủ mới ---------- */
.hero {
  --hero-bg: #13213a; --hero-ink: #eef2fb; --hero-muted: #a9b4cc;
  margin: -24px calc(50% - 50vw) 0; padding: 56px max(16px, calc(50vw - 540px)) 64px;
  background: var(--hero-bg); color: var(--hero-ink);
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; align-items: center;
}
.hero h1 { font-size: clamp(32px, 5vw, 52px); color: var(--hero-ink); }
.hero p { color: var(--hero-muted); font-size: 18px; }
.hero .trust { font-size: 14px; margin-top: 14px; }
.hero .row { gap: 12px; margin-top: 8px; }
.btn.big { padding: 15px 22px; font-size: 16px; }
.btn.ghost { background: transparent; color: var(--hero-ink); border-color: #3a4a6b; }
.hero-shot { margin: 0; }
.hero-shot img { width: 100%; height: auto; display: block; border-radius: 12px; border: 1px solid #2c3a58; box-shadow: 0 24px 60px -20px #000a; }
.hero-shot figcaption { font-size: 13px; color: var(--hero-muted); margin-top: 10px; }
.hero-shot img { animation: rise .9s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes rise { from { opacity: 0; transform: translateY(18px); } }

.block { margin-top: 64px; }
.block h2 { font-size: clamp(24px, 3vw, 30px); margin-bottom: 20px; }
.small { font-size: 13px; }

.product { padding: 0; overflow: hidden; }
.product-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.product h3 a { color: inherit; text-decoration: none; }
.cover { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; background: #13213a; }
.cover-text { display: flex; align-items: flex-end; padding: 16px 20px; color: #eef2fb; font-weight: 800; font-size: 26px; letter-spacing: -0.02em;
  background: linear-gradient(135deg, #13213a 0%, #2a3d66 100%); }
.cover-link { display: block; }
.trial-tag { margin: 0; font-size: 14px; font-weight: 600; color: var(--ok); }
.row.between { justify-content: space-between; align-items: center; margin-top: auto; }
.from { color: var(--muted); }
.from b { color: var(--ink); }

.how { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; counter-reset: h; }
.how li { counter-increment: h; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.how li::before { content: counter(h); display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: #fff; font-weight: 700; margin-bottom: 10px; }
.how p, .feats p { color: var(--muted); margin: 0; }
.feats { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 24px 32px; }
.feats h3 { margin-bottom: 6px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 8px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq p { margin: 10px 0 0; color: var(--muted); }

/* trang chi tiết */
.pd { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; align-items: start; }
.main-shot { margin: 0; }
.main-shot img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--line); display: block; }
.main-shot figcaption { font-size: 14px; color: var(--muted); margin-top: 8px; }
.thumbs { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 10px; }
.thumbs button { padding: 0; border: 1px solid var(--line); border-radius: 6px; overflow: hidden; cursor: pointer; background: none; width: 96px; aspect-ratio: 16/10; }
.thumbs img { width: 100%; height: 100%; object-fit: cover; display: block; }
.video { position: relative; aspect-ratio: 16 / 9; border-radius: var(--radius-lg); overflow: hidden; background: #000; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.trialbox { background: var(--surface); border: 1px solid var(--ok); border-radius: var(--radius-lg); padding: 16px 18px; margin: 16px 0; }
.trialbox h3 { color: var(--ok); }
.featlist { padding-left: 20px; }
.featlist li { margin-bottom: 6px; }
.mediagrid { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.mediagrid figure { margin: 0; width: 160px; }
.mediagrid img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 6px; border: 1px solid var(--line); }
.mediagrid figcaption { font-size: 12px; color: var(--muted); }

@media (max-width: 860px) {
  .hero, .pd { grid-template-columns: 1fr; }
  .hero { padding-top: 36px; }
}
html, body { overflow-x: clip; }
.cover-link, .cover-link:hover { text-decoration: none; }
.pd .plan { background: var(--surface); border-color: var(--line); }
.pd-media h2, .pd-info h2 { margin-top: 28px; }
.trialbox .row + #trialkey p { margin-top: 12px; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 18px; }
.gamecard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; display: flex; flex-direction: column; }
.gamecard .video { border-radius: 0; }
.gamecard-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.gamecard-body p { color: var(--muted); margin: 0 0 6px; }
.gamecard-body .row { margin-top: auto; }
.intro { white-space: pre-line; margin-top: 14px; }
.pd-media h2.first { margin-top: 0; }

/* ================= giao diện tối + demo ================= */
body { background: var(--bg); }
.top { position: relative; z-index: 2; }
a { color: var(--ice); }
.btn.primary { color: var(--accent-ink); font-weight: 700; box-shadow: 0 6px 24px -8px #ffb54788; }
.btn.primary:hover { filter: brightness(1.07); }
input, textarea, select { background: var(--bg-2); }
.plan { background: var(--surface-2); }
.plan:hover { border-color: var(--accent); }
.chip { color: var(--ink); }
.chip[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.brand::before { background: var(--accent); box-shadow: 0 0 14px #ffb547aa; }
.ticket { color: var(--ink); border-color: #4a3d1c; }
nav a:hover, nav button:hover, nav a[aria-current="page"] { background: var(--surface-2); }
.steps li::before { color: var(--accent); }
.qr { background: #fff; }

.hero {
  --hero-bg: #0a1220; --hero-ink: #f2f6fd; --hero-muted: #b3c0d8;
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: -88px; padding-top: 140px; padding-bottom: 90px;
  background: #0a1220 url(/img/scene-frost.svg) center 70% / cover no-repeat;
}
.hero::before { content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(90deg, #0a1220f2 0%, #0a1220cc 38%, #0a122066 70%, #0a122099 100%), linear-gradient(0deg, var(--bg) 0%, transparent 30%); }
.hero h1 { font-size: clamp(36px, 5.6vw, 64px); letter-spacing: -0.03em; text-shadow: 0 2px 30px #000a; }
.hero h1 span { color: var(--accent); }
.btn.ghost { color: var(--hero-ink); border-color: #ffffff40; background: #ffffff0d; backdrop-filter: blur(4px); }

/* bảng demo */
.demo { background: #0b1424ee; border: 1px solid #2b4470; border-radius: 14px; overflow: hidden;
  box-shadow: 0 30px 80px -30px #000, 0 0 0 1px #ffffff08 inset; }
.demo-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #101d33; font-size: 13px; color: var(--muted); }
.demo-bar i { width: 10px; height: 10px; border-radius: 50%; background: #2c4268; }
.demo-bar i:first-child { background: #ff6b6b; } .demo-bar i:nth-child(2) { background: #ffc35c; } .demo-bar i:nth-child(3) { background: #43d69c; }
.demo-bar span { margin-left: 8px; color: var(--ink); font-weight: 600; }
.demo-bar em { margin-left: auto; font-style: normal; font-size: 11px; border: 1px solid #ffffff30; border-radius: 4px; padding: 1px 6px; }
.demo-body { display: grid; grid-template-columns: 1fr 190px; }
.demo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; }
.tile { position: relative; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background-size: cover; background-position: center; }
.tile::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0006 0%, transparent 35%, transparent 55%, #000c 100%); }
.tile-name { position: absolute; top: 6px; left: 8px; z-index: 2; font-size: 12px; font-weight: 700; display: flex; gap: 6px; align-items: center; }
.tile-name .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 8px var(--ok); animation: blink 2s infinite; }
.ticker { position: absolute; left: 8px; right: 8px; bottom: 6px; z-index: 2; height: 20px; overflow: hidden; font-size: 12px; }
.ticker div { animation: tick 9s infinite; animation-delay: var(--d); }
.ticker p { margin: 0; height: 20px; line-height: 20px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@keyframes tick { 0%, 28% { transform: translateY(0); } 33%, 61% { transform: translateY(-20px); } 66%, 94% { transform: translateY(-40px); } 100% { transform: translateY(-60px); } }
.tap { position: absolute; z-index: 1; width: 26px; height: 26px; margin: -13px; border-radius: 50%; border: 2px solid var(--accent); opacity: 0; animation: tap 3s infinite; animation-delay: var(--d); }
.tap.t1 { left: 72%; top: 62%; }
.tap.t2 { left: 30%; top: 44%; animation-delay: calc(var(--d) + 1.5s); }
@keyframes tap { 0% { transform: scale(.3); opacity: 0; } 10% { opacity: 1; } 40% { transform: scale(1.6); opacity: 0; } 100% { opacity: 0; } }
@keyframes blink { 50% { opacity: .35; } }
.demo-log { border-left: 1px solid #22365a; padding: 8px 10px; height: 100%; overflow: hidden; position: relative; font: 11px/1.55 var(--mono); color: #a9b9d6; }
.demo-log::after { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 30px; background: linear-gradient(#0b1424, transparent); }
.demo-log div { animation: logscroll 16s linear infinite; }
.demo-log p { margin: 0 0 6px; }
.demo-log p::before { content: '› '; color: var(--accent); }
@keyframes logscroll { from { transform: translateY(0); } to { transform: translateY(-50%); } }

/* ảnh bìa minh hoạ */
.cover-scene { background-size: cover; background-position: center; position: relative; display: flex; align-items: flex-end; padding: 16px 20px; }
.cover-scene::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, #000b 100%); }
.cover-scene span { position: relative; color: #fff; font-weight: 800; font-size: 24px; letter-spacing: -0.02em; text-shadow: 0 2px 12px #000; }
.product { background: var(--surface); transition: transform .2s, border-color .2s; }
.product:hover { transform: translateY(-3px); border-color: #3a5788; }
.product.coming { border-style: solid; }
.cover-text { display: none; }

/* biểu tượng tính năng */
.feats > div { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 20px; }
.ico { width: 34px; height: 34px; color: var(--accent); background: #ffb5471a; border-radius: 10px; padding: 7px; margin-bottom: 10px; }
.how li::before { background: var(--accent); color: var(--accent-ink); }
.gamecard { background: var(--surface); }
.shot-block .hero-shot img { border-color: var(--line); }
.faq details { background: var(--surface); }
.faq details[open] summary { color: var(--accent); }
.block h2 { letter-spacing: -0.02em; }

@media (max-width: 860px) {
  .hero { padding-top: 110px; background-position: 60% 70%; }
  .demo-body { grid-template-columns: 1fr; }
  .demo-log { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ticker div, .tap, .demo-log div, .tile-name .dot { animation: none !important; }
  .tap { display: none; }
}
.hero .demo p { font-size: inherit; margin: 0; }
.hero .demo .ticker p { color: #fff; }
.hero .demo .demo-log p { color: #a9b9d6; margin-bottom: 6px; }
.demo-log { min-height: 0; }
.demo-log > div { position: absolute; left: 10px; right: 8px; top: 8px; }
.demo-body { align-items: stretch; }
.demo-bar em { white-space: nowrap; } .demo-bar span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ================= bản 3: nền sáng xen tối, theo cách trình bày của các trang bot lớn ================= */
:root {
  --bg: #f3f6fb; --bg-2: #ffffff; --surface: #ffffff; --surface-2: #f6f8fc;
  --ink: #0f1b2e; --muted: #5a6a84; --line: #e0e6f0;
  --accent: #ffad33; --accent-ink: #1b1204; --navy: #0b1526; --navy-2: #13213a;
  --ok: #12a46b; --warn: #c27c0e; --bad: #d64545; --ticket: #fff6e3;
  color-scheme: light;
}
body { background: var(--bg); color: var(--ink); }
a { color: #1f6fd1; }
input, textarea, select { background: #fff; }
.plan { background: var(--surface-2); }
.ticket { border-color: #f1d9a8; }
.chip { background: #fff; }

/* thanh menu tối, dính trên cùng */
.top { position: sticky; top: 0; z-index: 20; max-width: none; padding: 12px max(16px, calc(50vw - 560px)); background: #0b1526f2; backdrop-filter: blur(8px); border-bottom: 1px solid #ffffff14; }
.top .brand { color: #fff; }
nav { align-items: center; }
nav a, nav button { color: #d6deec; font-size: 14px; }
nav a:hover, nav button:hover, nav a[aria-current="page"] { background: #ffffff14; color: #fff; }
.nav-sep { width: 1px; height: 20px; background: #ffffff26; margin: 0 6px; }
nav .nav-cta { color: var(--accent-ink) !important; margin-left: 6px; }
nav .nav-cta:hover { background: var(--accent); filter: brightness(1.06); }
main { padding-top: 0; }

/* phần đầu */
.hero { margin-top: 0; padding-top: 72px; padding-bottom: 84px; }
.hero .badge { display: inline-block; font-size: 13px; font-weight: 600; color: #ffd18a; border: 1px solid #ffad3366; background: #ffad331a; padding: 5px 12px; border-radius: 999px; margin-bottom: 18px; }
.hero h1 { margin-bottom: 16px; }
.hero .lead { font-size: 18px; max-width: 52ch; }
.hero-checks { list-style: none; padding: 0; margin: 22px 0 0; display: flex; gap: 8px 18px; flex-wrap: wrap; color: #cfd8e8; font-size: 14px; }
.hero-checks li, .ticks li { display: flex; gap: 8px; align-items: flex-start; }
.hero-checks svg, .ticks svg, .fit h3 svg { width: 18px; height: 18px; flex: none; color: var(--ok); margin-top: 2px; }
.hero-checks svg { color: #5fe0a8; }
.hero::before { background: linear-gradient(90deg, #0a1220f5 0%, #0a1220d9 40%, #0a122080 72%, #0a1220b3 100%); }

/* dải số liệu */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--line); border-radius: 16px;
  margin: -42px auto 0; position: relative; z-index: 3; box-shadow: 0 18px 40px -24px #0b152655; max-width: 1000px; }
.facts div { padding: 20px 22px; border-left: 1px solid var(--line); }
.facts div:first-child { border-left: 0; }
.facts b { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; color: var(--ink); }
.facts span { font-size: 14px; color: var(--muted); }

.sec-head { max-width: 640px; margin-bottom: 26px; }
.sec-head h2 { font-size: clamp(26px, 3.4vw, 36px); margin-bottom: 8px; }
.sec-head p { color: var(--muted); margin: 0; font-size: 17px; }
.block { margin-top: 88px; }

/* thẻ game */
.gamegrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.gcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; display: flex; flex-direction: column;
  transition: transform .2s, box-shadow .2s; }
.gcard:hover { transform: translateY(-4px); box-shadow: 0 22px 40px -26px #0b152680; }
.gcard-img { position: relative; display: flex; align-items: flex-end; aspect-ratio: 4 / 3; padding: 16px; background-size: cover; background-position: center; text-decoration: none; }
.gcard-img::before { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, #0000 35%, #000c); }
.gcard-img h3 { position: relative; color: #fff; font-size: 21px; margin: 0; text-shadow: 0 2px 10px #000; }
.pill { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; z-index: 1; }
.pill-live { background: #12a46b; color: #fff; }
.pill-soon { background: #ffffffe6; color: #0f1b2e; }
.gcard-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gname { font-weight: 700; margin: 0; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; font-size: 14px; color: #34445e; }
.gcard-foot { margin-top: auto; display: flex; justify-content: space-between; align-items: center; gap: 8px; padding-top: 8px; border-top: 1px solid var(--line); }
.gcard .notify { margin: 0; }

/* dải nền tối: so sánh + phù hợp/lưu ý */
.band { margin: 88px calc(50% - 50vw) 0; padding: 8px max(16px, calc(50vw - 540px)) 88px; background: var(--navy); color: #e8eef9; }
.band .block { margin-top: 72px; }
.band .sec-head p { color: #a9b6cc; }
.vs { background: var(--navy-2); border-color: #233759; }
.vs table { font-size: 15px; }
.vs th, .vs td { border-color: #233759; padding: 14px 18px; white-space: normal; }
.vs th { color: #a9b6cc; }
.vs td:first-child { font-weight: 600; color: #fff; }
.vs .muted { color: #8796b0; }
.vs .hl { color: #6ee7b0; font-weight: 600; }
.vs th.hl { color: var(--accent); }
.fitcare { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 22px; }
.fit, .care { border-radius: 14px; padding: 20px 22px; }
.fit { background: #10392d; border: 1px solid #1f6b52; }
.care { background: #3a2c10; border: 1px solid #7a5a1d; }
.fit h3, .care h3 { display: flex; gap: 8px; align-items: center; font-size: 17px; }
.fit h3 { color: #6ee7b0; } .care h3 { color: #ffc766; }
.fit ul, .care ul { margin: 10px 0 0; padding-left: 20px; color: #dbe4f2; font-size: 15px; display: grid; gap: 6px; }

/* tính năng */
.feats > div { background: #fff; }
.ico { color: #c97a00; background: #ffad3324; }

/* bảng giá */
.pricetabs { border: 0; gap: 8px; margin-bottom: 22px; }
.pricetabs button { border: 1px solid var(--line); border-radius: 999px; background: #fff; padding: 8px 16px; margin: 0; }
.pricetabs button[aria-selected="true"] { background: var(--navy); color: #fff; border-color: var(--navy); }
.pricegrid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; align-items: stretch; }
.pcard { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 26px 24px; display: flex; flex-direction: column; gap: 14px; }
.pcard h3 { font-size: 15px; color: var(--muted); font-weight: 600; margin: 0; }
.pcard .price { font-size: 34px; font-weight: 800; letter-spacing: -0.02em; }
.pcard .price small { font-size: 15px; font-weight: 500; color: var(--muted); margin-left: 4px; }
.pcard .price s { font-size: 18px; }
.pcard .btn { margin-top: auto; width: 100%; }
.pcard.pop { background: var(--navy); color: #fff; border-color: var(--navy); transform: scale(1.03); box-shadow: 0 26px 50px -28px #0b1526; }
.pcard.pop h3, .pcard.pop .price small { color: #a9b6cc; }
.pcard.pop .ticks { color: #dbe4f2; }
.pcard.pop .ticks svg { color: #6ee7b0; }
.pop-tag { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); font-size: 12px; font-weight: 800; padding: 4px 12px; border-radius: 999px; white-space: nowrap; }
.shortplans { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.shortplans .chip { text-decoration: none; }
.plan.disabled { cursor: default; opacity: .8; }

/* hướng dẫn + ảnh thật */
.how li { background: #fff; }
.shot { margin-top: 28px; }
.shot img { border-color: var(--line) !important; box-shadow: 0 30px 60px -36px #0b152699; }
.shot figcaption { color: var(--muted) !important; }
.gamecard { background: #fff; }
.faq details { background: #fff; }
.faq details[open] summary { color: #b86f00; }

/* kêu gọi cuối trang + chân trang */
.cta-band { margin: 96px calc(50% - 50vw) 0; padding: 72px 16px; text-align: center; color: #fff;
  background: #0a1220 url(/img/scene-combo.svg) center / cover; position: relative; isolation: isolate; }
.cta-band::before { content: ''; position: absolute; inset: 0; background: #0a1220c4; z-index: -1; }
.cta-band h2 { font-size: clamp(26px, 4vw, 40px); margin-bottom: 20px; }
main { padding-bottom: 0; }
.foot { max-width: none; background: var(--navy); color: #a9b6cc; border: 0; padding: 48px max(16px, calc(50vw - 540px)) 24px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.6fr; gap: 28px; }
.foot h4 { color: #fff; font-size: 14px; margin: 0 0 10px; }
.foot .brand { color: #fff; margin-bottom: 10px; display: inline-block; }
.foot button { display: block; background: none; border: 0; color: #a9b6cc; font: inherit; padding: 3px 0; cursor: pointer; }
.foot button:hover { color: #fff; }
.foot p { font-size: 14px; margin: 0; }
.foot span { display: block; padding: 3px 0; }
.foot-copy { margin-top: 28px !important; padding-top: 18px; border-top: 1px solid #ffffff14; font-size: 13px !important; }

@media (max-width: 900px) {
  .facts { grid-template-columns: 1fr 1fr; margin-top: -30px; }
  .facts div:nth-child(3) { border-left: 0; }
  .facts div:nth-child(n+3) { border-top: 1px solid var(--line); }
  .fitcare, .foot-grid { grid-template-columns: 1fr; }
  .pcard.pop { transform: none; }
  nav > button:not(.nav-cta):not(#lang):not(#logout), .nav-sep { display: none; }
  .top { flex-wrap: nowrap; }
  nav { width: auto; margin: 0; overflow: visible; }
}
.notify[hidden], [hidden] { display: none !important; }
.demo-bar span { flex: 1; min-width: 0; }
section[id], .block[id] { scroll-margin-top: 84px; }
.from, .gcard-foot .btn { white-space: nowrap; }
.gcard-foot { flex-wrap: wrap; }
@media (max-width: 560px) { nav .nav-cta { display: none; } .top { padding-left: 16px; padding-right: 16px; } }
