/* ==========================================================================
   PingSell – giao diện
   ========================================================================== */
:root {
  --ink: #0b1d3a;
  --ink-2: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --surface: #f5f8fc;
  --surface-2: #eaf2fc;
  --primary: #0070d1;
  --primary-600: #005fb3;
  --primary-50: #eaf3fd;
  --price: #e0301e;
  --ok: #0f8a5f;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .06), 0 1px 3px rgba(15, 23, 42, .04);
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 24px 60px -20px rgba(11, 29, 58, .35);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --header-h: 68px;
  --card: #ffffff;
  --header-bg: rgba(255, 255, 255, .92);
  --row-hover: #fafcff;
  --hero-bg: radial-gradient(1000px 500px at 85% 40%, #d7e9fb 0%, transparent 60%), linear-gradient(180deg, #f2f7fd 0%, #eaf2fc 100%);
  --page-hero-bg: linear-gradient(180deg, #f2f7fd, #ffffff);
  --tip-bg: #fff8e6;
  --tip-ink: #7a5a00;
  --digital-bg: #f1f0fb;
  --digital-ink: #5b4bc4;
  --dot: rgba(11, 29, 58, .2);
  --chip-active: #0b1d3a;
  --chip-active-ink: #ffffff;
  color-scheme: light;
}

/* Chế độ tối */
:root[data-theme="dark"] {
  --ink: #e8eef8;
  --ink-2: #c2cee0;
  --muted: #8b9cb6;
  --line: #22324a;
  --bg: #0a1322;
  --surface: #0e1a2c;
  --surface-2: #15253d;
  --card: #111e32;
  --primary: #2f8fff;
  --primary-600: #1b7cf0;
  --primary-50: rgba(47, 143, 255, .14);
  --price: #ff6a55;
  --ok: #34c88f;
  --header-bg: rgba(10, 19, 34, .88);
  --row-hover: #14233a;
  --hero-bg: radial-gradient(1000px 500px at 85% 40%, rgba(47, 143, 255, .22) 0%, transparent 60%), linear-gradient(180deg, #0c1a30 0%, #0a1322 100%);
  --page-hero-bg: linear-gradient(180deg, #0e1c33, #0a1322);
  --tip-bg: rgba(255, 196, 0, .1);
  --tip-ink: #f3d27a;
  --digital-bg: rgba(140, 120, 255, .16);
  --digital-ink: #b7a8ff;
  --dot: rgba(255, 255, 255, .25);
  --chip-active: #2f8fff;
  --chip-active-ink: #ffffff;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .4);
  --shadow: 0 12px 32px -12px rgba(0, 0, 0, .6);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink-2); background: var(--bg); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--primary); text-decoration: none; }
a:hover { color: var(--primary-600); }
h1, h2, h3, h4 { color: var(--ink); line-height: 1.2; margin: 0; letter-spacing: -.02em; }
p { margin: 0; }
button { font: inherit; }
:focus-visible { outline: 3px solid rgba(0, 112, 209, .45); outline-offset: 2px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.i { width: 20px; height: 20px; flex-shrink: 0; }
.muted { color: var(--muted); font-size: .92rem; }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 12px; border: 1.5px solid transparent; font-weight: 600; font-size: .95rem; line-height: 1; white-space: nowrap; cursor: pointer; transition: background .15s, color .15s, border-color .15s, box-shadow .15s, transform .15s; }
.btn .i { width: 18px; height: 18px; }
.btn.sm { height: 38px; padding: 0 14px; font-size: .88rem; border-radius: 10px; }
.btn.lg { height: 52px; padding: 0 24px; font-size: 1rem; }
.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 6px 16px -6px rgba(0, 112, 209, .6); }
.btn.primary:hover { background: var(--primary-600); color: #fff; transform: translateY(-1px); }
.btn.outline { background: var(--card); color: var(--ink); border-color: var(--line); }
.btn.outline:hover { border-color: var(--primary); color: var(--primary); }
.btn.ghost { background: transparent; color: var(--ink); border-color: rgba(11, 29, 58, .18); }
.btn.ghost:hover { background: rgba(255, 255, 255, .6); color: var(--ink); }
.btn.light { background: #fff; color: #0b1d3a; }
.btn.light:hover { color: #0070d1; }
.btn.ghost-light { background: rgba(255, 255, 255, .08); color: #fff; border-color: rgba(255, 255, 255, .3); }
.btn.ghost-light:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.btn.icon-only { width: 46px; padding: 0; }

/* ---------- Header ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--header-bg); backdrop-filter: saturate(180%) blur(12px); -webkit-backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.header-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: var(--header-h); }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.25rem; color: var(--ink); letter-spacing: -.02em; flex-shrink: 0; }
.logo:hover { color: var(--ink); }
.logo img { border-radius: 10px; }
.logo em { font-style: normal; color: var(--primary); }
.logo.light { color: #fff; }
.logo.light em { color: #5fb0ff; }
.main-nav { display: flex; gap: 4px; }
.main-nav a { padding: 8px 12px; border-radius: 8px; color: var(--ink-2); font-weight: 500; font-size: .95rem; }
.main-nav a:hover, .main-nav a[aria-current="page"] { color: var(--primary); background: var(--primary-50); }
.header-cta { display: flex; align-items: center; gap: 8px; }
.menu-toggle { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); align-items: center; justify-content: center; cursor: pointer; }

/* ---------- Sections ---------- */
.section { padding: 88px 0; }
.section.alt { background: var(--surface); }
.section.tight { padding: 40px 0; }
.section.top-tight { padding-top: 32px; }
.section-head { max-width: 680px; margin-bottom: 40px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.row { max-width: none; display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; }
.section-head h2 { font-size: clamp(1.6rem, 3.2vw, 2.25rem); font-weight: 800; }
.section-head p { margin-top: 12px; color: var(--muted); font-size: 1.02rem; }
.eyebrow { display: inline-block; margin-bottom: 10px; color: var(--primary); font-weight: 700; font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; }
.eyebrow.light { color: #8cc8ff; }

/* ---------- Banner thương hiệu ---------- */
.brand-banner { background: #05080f; }
.brand-banner img { display: block; width: 100%; max-width: 1440px; height: auto; margin: 0 auto; }

/* ---------- Hero slider ---------- */
.hero { position: relative; background: var(--hero-bg); overflow: hidden; }
.slides { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.slides::-webkit-scrollbar { display: none; }
.slide { flex: 0 0 100%; scroll-snap-align: start; }
.slide-inner { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 32px; min-height: 520px; padding-top: 40px; padding-bottom: 120px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; background: var(--card); color: var(--primary); font-weight: 600; font-size: .85rem; box-shadow: var(--shadow-sm); }
.pill .i { width: 16px; height: 16px; }
.slide-text h1, .slide-text h2 { margin: 18px 0 16px; font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; }
.hl { background: linear-gradient(90deg, #0070d1, #2a8cff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.slide-text p { max-width: 480px; font-size: 1.05rem; color: var(--ink-2); }
.slide-price { display: flex; align-items: baseline; gap: 10px; margin-top: 22px; }
.slide-price span { color: var(--muted); font-weight: 500; }
.slide-price strong { font-size: 2rem; font-weight: 800; color: var(--price); letter-spacing: -.02em; }
.slide-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.slide-media { position: relative; display: flex; justify-content: center; align-items: center; }
.slide-media::before { content: ""; position: absolute; width: 78%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, #ffffff 0%, rgba(255, 255, 255, 0) 70%); }
.slide-media img { position: relative; width: 100%; max-width: 400px; height: auto; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.slide-media.covers { gap: 14px; }
.slide-media.covers::before { display: none; }
.slide-media.covers img { width: 23%; max-width: 140px; height: auto; aspect-ratio: 3/4; object-fit: cover; mix-blend-mode: normal; border-radius: 12px; box-shadow: var(--shadow-lg); }
.slide-media.covers img:nth-child(odd) { transform: translateY(-18px) rotate(-3deg); }
.slide-media.covers img:nth-child(even) { transform: translateY(18px) rotate(3deg); }
.slider-ui { position: absolute; left: 0; right: 0; bottom: 70px; display: flex; align-items: center; justify-content: space-between; pointer-events: none; }
.slider-ui > * { pointer-events: auto; }
.dots { display: flex; gap: 8px; }
.dots button { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: var(--dot); cursor: pointer; transition: width .25s, background .25s; }
.dots button[aria-current="true"] { width: 32px; background: var(--primary); }
.arrows { display: flex; gap: 8px; }
.slide-nav { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: var(--shadow-sm); transition: color .15s, border-color .15s; }
.slide-nav:hover { color: var(--primary); border-color: var(--primary); }

/* ---------- Trust bar ---------- */
.trust { position: relative; z-index: 2; list-style: none; margin: -44px 0 0; padding: 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; background: var(--card); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }
.trust li { display: flex; align-items: center; gap: 14px; }
.trust li + li { border-left: 1px solid var(--line); padding-left: 16px; }
.trust-ic { width: 46px; height: 46px; border-radius: 12px; background: var(--primary-50); color: var(--primary); display: grid; place-items: center; flex-shrink: 0; }
.trust-ic .i { width: 22px; height: 22px; }
.trust strong { display: block; color: var(--ink); font-size: .98rem; }
.trust span { color: var(--muted); font-size: .85rem; }

/* ---------- Product lines ---------- */
.lines { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.line { position: relative; display: flex; flex-direction: column; padding: 20px; border: 1px solid var(--line); border-radius: 20px; background: var(--card); transition: box-shadow .2s, transform .2s, border-color .2s; }
.line:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.line.featured { border: 2px solid var(--primary); box-shadow: 0 16px 40px -20px rgba(0, 112, 209, .5); }
.line-media { border-radius: 14px; background: linear-gradient(180deg, #f2f7fd, #e6effa); aspect-ratio: 4/3; display: grid; place-items: center; overflow: hidden; }
.line-media img { width: 100%; height: 100%; padding: 6%; object-fit: contain; mix-blend-mode: multiply; }
.line-tag { position: absolute; top: 32px; left: 32px; padding: 4px 10px; border-radius: 999px; background: var(--card); color: var(--primary); font-size: .78rem; font-weight: 700; box-shadow: var(--shadow-sm); }
.line.featured .line-tag { background: var(--primary); color: #fff; }
.line h3 { margin-top: 20px; font-size: 1.4rem; font-weight: 800; }
.line > p { margin-top: 6px; color: var(--muted); font-size: .95rem; }
.variants { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.variants li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; background: var(--surface); font-size: .92rem; }
.variants .i { width: 18px; height: 18px; color: var(--primary); }
.variants b { color: var(--ink); }
.line-foot { margin-top: auto; padding-top: 20px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; }
.line-foot small { display: block; color: var(--muted); font-size: .8rem; }
.line-foot strong { font-size: 1.3rem; font-weight: 800; color: var(--price); letter-spacing: -.01em; }

/* ---------- Compare table ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: 20px; background: var(--card); box-shadow: var(--shadow-sm); }
.compare { width: 100%; min-width: 820px; border-collapse: collapse; font-size: .93rem; }
.compare th, .compare td { padding: 14px 16px; text-align: center; border-bottom: 1px solid var(--line); }
.compare tbody tr:last-child th, .compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover td, .compare tbody tr:hover th { background: var(--row-hover); }
.compare thead th { padding-top: 20px; vertical-align: bottom; background: var(--card); }
.compare thead img { width: 64px; height: 64px; object-fit: contain; margin: 0 auto 8px; mix-blend-mode: multiply; }
.compare thead b { display: block; color: var(--ink); font-size: 1rem; }
.compare thead small { color: var(--muted); font-weight: 500; }
.compare th.col-hl { background: var(--primary-50); border-radius: 12px 12px 0 0; }
.compare tbody th { text-align: left; color: var(--ink); font-weight: 600; white-space: nowrap; position: sticky; left: 0; background: var(--card); z-index: 1; }
.compare td.yes, .compare td.no { white-space: nowrap; }
.compare td.yes .i, .compare td.no .i { width: 16px; height: 16px; vertical-align: -3px; margin-right: 4px; }
.compare td.yes { color: var(--ok); font-weight: 600; }
.compare td.no { color: #94a3b8; }
.compare td b { color: var(--ink); }
.compare .price-row td { color: var(--price); font-weight: 800; font-size: 1rem; }
.tip { display: flex; gap: 10px; align-items: flex-start; margin-top: 20px; padding: 14px 16px; border-radius: 12px; background: var(--tip-bg); color: var(--tip-ink); font-size: .93rem; }
.tip .i { color: #d49b00; margin-top: 2px; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.chip { height: 38px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-weight: 600; font-size: .88rem; cursor: pointer; transition: all .15s; }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.active { background: var(--chip-active); border-color: var(--chip-active); color: var(--chip-active-ink); }
.filters + .filters { margin-top: 10px; }
.filter-label { flex-shrink: 0; min-width: 64px; color: var(--muted); font-size: .85rem; font-weight: 600; }

/* ---------- Product cards ---------- */
.products { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 20px; }
@media (min-width: 1140px) { .products { grid-template-columns: repeat(5, 1fr); gap: 16px; } .product-body { padding: 14px 14px 16px; } }
.product { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 18px; background: var(--card); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.product:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.product[hidden] { display: none; }
.product-media { position: relative; aspect-ratio: 1; background: linear-gradient(180deg, #f5f8fc, #eaf1fa); display: grid; place-items: center; }
.product-media img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; transition: transform .3s; }
.product:hover .product-media img { transform: scale(1.04); }
.stock { position: absolute; z-index: 2; top: 12px; left: 12px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: var(--card); color: var(--ok); font-size: .76rem; font-weight: 700; box-shadow: var(--shadow-sm); }
.stock::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.product-body { display: flex; flex-direction: column; flex: 1; padding: 16px 18px 18px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-tag { display: inline-flex; align-items: center; gap: 4px; padding: 3px 8px; border-radius: 6px; background: var(--surface); color: var(--ink-2); font-size: .76rem; font-weight: 600; }
.chip-tag .i { width: 14px; height: 14px; }
.chip-tag.disc { background: var(--primary-50); color: var(--primary); }
.chip-tag.digital { background: var(--digital-bg); color: var(--digital-ink); }
.product h3 { margin-top: 12px; font-size: 1.12rem; font-weight: 700; }
.product-note { margin-top: 4px; color: var(--muted); font-size: .88rem; }
.product-price { margin-top: 12px; color: var(--price); font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; }
.product-price.sm { font-size: 1.1rem; margin-top: 6px; }
.perks { list-style: none; margin: 12px 0 0; padding: 12px 0 0; border-top: 1px dashed var(--line); display: grid; gap: 6px; font-size: .86rem; }
.perks li { display: flex; align-items: center; gap: 8px; }
.perks .i { width: 16px; height: 16px; color: var(--ok); }
.product-actions { display: flex; gap: 8px; margin-top: auto; padding-top: 16px; }
.product-actions .btn.primary { flex: 1; }
.more { margin-top: 28px; text-align: center; color: var(--muted); }
.more a { font-weight: 600; }

/* Ảnh dự phòng khi chưa có ảnh */
.thumb { position: relative; }
.thumb::before { content: attr(data-label); position: absolute; inset: 0; display: grid; place-items: center; padding: 16px; text-align: center; color: var(--muted); font-weight: 700; }
.thumb img { position: relative; z-index: 1; }
.thumb:has(img)::before { content: none; }

/* ---------- Game band ---------- */
.game-band { position: relative; display: grid; grid-template-columns: 1fr 1.1fr; align-items: center; gap: 24px; padding: 44px 48px; border-radius: 24px; background: radial-gradient(600px 300px at 90% 0%, rgba(42, 140, 255, .35), transparent 60%), linear-gradient(120deg, #0b1d3a 0%, #0f2f5e 100%); color: #cbd8ea; overflow: hidden; }
.game-band:hover { color: #cbd8ea; }
.game-band h2 { color: #fff; font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; }
.game-band p { margin: 12px 0 22px; max-width: 420px; }
.game-band-covers { display: flex; justify-content: flex-end; gap: 12px; }
.game-band-covers img { width: 19%; aspect-ratio: 3/4; object-fit: cover; border-radius: 12px; box-shadow: 0 16px 30px -10px rgba(0, 0, 0, .6); transition: transform .3s; }
.game-band-covers img:nth-child(odd) { transform: translateY(-10px); }
.game-band-covers img:nth-child(even) { transform: translateY(10px); }
.game-band:hover .game-band-covers img { transform: translateY(0); }

/* ---------- Features ---------- */
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feature { padding: 26px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.f-ic { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: linear-gradient(135deg, #0b1d3a, #0070d1); color: #fff; margin-bottom: 18px; }
.f-ic .i { width: 24px; height: 24px; }
.feature h3 { font-size: 1.1rem; font-weight: 700; }
.feature p { margin-top: 8px; color: var(--muted); font-size: .94rem; }

/* ---------- Steps ---------- */
.buy-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.steps li { position: relative; display: flex; gap: 18px; padding-bottom: 28px; }
.steps li:not(:last-child)::after { content: ""; position: absolute; left: 21px; top: 48px; bottom: 4px; width: 2px; background: var(--line); }
.step-n { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; background: var(--primary-50); color: var(--primary); font-weight: 800; font-size: 1.1rem; border: 2px solid var(--card); box-shadow: 0 0 0 2px var(--primary-50); }
.steps h3 { font-size: 1.1rem; font-weight: 700; margin-top: 8px; }
.steps p { margin-top: 4px; color: var(--muted); }
.checklist-card { padding: 28px; border-radius: 20px; background: var(--surface); border: 1px solid var(--line); }
.checklist-card h3 { display: flex; align-items: center; gap: 10px; font-size: 1.1rem; font-weight: 700; }
.checklist-card h3 .i { color: var(--primary); }
.checklist { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 12px; }
.checklist li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--card); font-weight: 500; color: var(--ink); }
.checklist .i { width: 18px; height: 18px; color: #fff; background: var(--ok); border-radius: 50%; padding: 3px; }

/* ---------- Policies ---------- */
.policies { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.policy { padding: 26px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.policy h3 { display: flex; align-items: center; gap: 12px; font-size: 1.1rem; font-weight: 700; }
.p-ic { width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); flex-shrink: 0; }
.policy ul { margin: 16px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.policy li { position: relative; padding-left: 18px; font-size: .95rem; }
.policy li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--primary); }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; grid-template-columns: 1fr 1.6fr; gap: 48px; align-items: start; }
.faq-grid .section-head { position: sticky; top: calc(var(--header-h) + 24px); }
.faq-grid .section-head .btn { margin-top: 24px; }
.faq { display: grid; gap: 12px; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--card); transition: border-color .2s, box-shadow .2s; }
.faq details[open] { border-color: #bcd8f5; box-shadow: var(--shadow-sm); }
.faq summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 20px; font-weight: 600; color: var(--ink); cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--primary); transition: transform .2s; }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { padding: 0 20px 18px; color: var(--ink-2); }

/* ---------- CTA band ---------- */
.cta-band { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: center; padding: 48px; border-radius: 24px; background: radial-gradient(500px 300px at 0% 100%, rgba(42, 140, 255, .35), transparent 60%), linear-gradient(120deg, #0070d1, #0b3c7a); color: #dbeafe; }
.cta-band h2 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
.cta-band p { margin-top: 10px; }
.cta-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.contact-list { list-style: none; margin: 0; padding: 24px; display: grid; gap: 18px; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); }
.contact-list li { display: flex; gap: 14px; align-items: flex-start; color: #fff; font-weight: 500; }
.contact-list .i { margin-top: 3px; color: #9fd0ff; }
.contact-list small { display: block; color: #a8c6ea; font-weight: 400; font-size: .8rem; }
.contact-list a { color: #fff; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 48px; background: #071327; color: #94a3b8; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.3fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-brand p { margin-top: 16px; max-width: 340px; }
.site-footer h4 { color: #fff; font-size: .95rem; margin-bottom: 14px; }
.site-footer a { display: block; color: #94a3b8; padding: 4px 0; }
.site-footer a:hover { color: #fff; }
.site-footer .footer-brand a.logo { display: inline-flex; padding: 0; color: #fff; }
.site-footer p { display: flex; gap: 10px; align-items: flex-start; }
.footer-grid > div:last-child p { margin-bottom: 10px; }
.site-footer p .i { width: 18px; height: 18px; margin-top: 2px; color: #5fb0ff; }
.site-footer p a { display: inline; padding: 0; }
.socials { display: flex; gap: 8px; margin-top: 8px; }
.socials a { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border-radius: 10px; background: rgba(255, 255, 255, .06); color: #cbd5e1; }
.socials a:hover { background: var(--primary); color: #fff; }
.footer-bottom { padding-top: 20px; padding-bottom: 28px; border-top: 1px solid rgba(255, 255, 255, .08); font-size: .82rem; color: #64748b; }

/* ---------- Floating contact ---------- */
.float-contact { position: fixed; right: 20px; bottom: 24px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.float-contact a { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .4); transition: transform .15s; }
.float-contact a:hover { transform: scale(1.08); color: #fff; }
.float-contact .i { width: 26px; height: 26px; }
.fc-msg { background: linear-gradient(135deg, #0084ff, #a033ff); }
.fc-zalo { background: #0068ff; }
.mobile-bar { display: none; }

/* ---------- Trang game ---------- */
.page-hero { padding: 40px 0 28px; background: var(--page-hero-bg); }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 800; margin-top: 14px; }
.page-hero p { margin-top: 10px; max-width: 620px; color: var(--muted); font-size: 1.05rem; }
.page-hero b { color: var(--ink); }
.breadcrumb { display: flex; align-items: center; gap: 6px; font-size: .88rem; color: var(--muted); }
.breadcrumb .i { width: 14px; height: 14px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 14px; }
.search { position: relative; flex: 1 1 280px; }
.search .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); }
.search input, .toolbar select { width: 100%; height: 48px; padding: 0 16px 0 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); font: inherit; color: var(--ink); }
.toolbar select { width: auto; min-width: 200px; padding-left: 14px; }
.search input:focus, .toolbar select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }
.count { margin-left: auto; color: var(--muted); font-size: .9rem; }
.games { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 20px; margin-top: 24px; }
.game { display: flex; flex-direction: column; border-radius: 16px; background: var(--card); border: 1px solid var(--line); overflow: hidden; transition: box-shadow .2s, transform .2s; }
.game:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.game-cover { aspect-ratio: 3/4; background: linear-gradient(135deg, #0b1d3a, #0070d1); overflow: hidden; }
.game-cover::before { color: #fff; font-size: 1.15rem; }
.game-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.game:hover .game-cover img { transform: scale(1.05); }
.platforms { position: absolute; z-index: 2; left: 10px; bottom: 10px; display: flex; gap: 4px; }
.pf { padding: 2px 7px; border-radius: 6px; font-size: .72rem; font-weight: 700; background: rgba(255, 255, 255, .92); color: #0b1d3a; }
.pf.ps5 { background: var(--primary); color: #fff; }
.hot { position: absolute; z-index: 2; top: 10px; right: 10px; padding: 3px 8px; border-radius: 6px; background: var(--price); color: #fff; font-size: .7rem; font-weight: 800; letter-spacing: .05em; }
.game-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.game-body h3 { font-size: 1rem; font-weight: 700; }
.game-body .meta { margin-top: 4px; color: var(--primary); font-size: .8rem; font-weight: 600; }
.game-body .note { margin-top: 8px; color: var(--muted); font-size: .86rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.game-body .btn { margin-top: auto; }
.game-body > :nth-last-child(2) { margin-bottom: 14px; }

/* ---------- Trang quản trị ---------- */
.admin-page { padding: 40px 0 64px; background: var(--surface); min-height: 70vh; }
.admin-page h2 { font-size: 1.8rem; font-weight: 800; }
.howto { margin: 12px 0 28px; padding-left: 20px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 18px; padding: 24px; }
.card h3 { font-size: 1.15rem; font-weight: 700; }
.admin { display: grid; gap: 24px; grid-template-columns: minmax(300px, 1fr) 1.4fr; align-items: start; }
.admin form label { display: block; margin: 14px 0; font-size: .88rem; font-weight: 600; color: var(--ink); }
.admin form input:not([type=checkbox]), .admin form textarea { display: block; width: 100%; margin-top: 6px; font: inherit; font-weight: 400; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); }
.admin form input:focus, .admin form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }
.admin form label.inline { display: inline-flex; gap: 6px; align-items: center; margin-right: 16px; font-weight: 500; }
.admin fieldset { border: 0; padding: 0; margin: 14px 0; }
.admin legend { font-size: .88rem; font-weight: 600; color: var(--ink); padding: 0; margin-bottom: 4px; }
.admin form > div:last-child { display: flex; gap: 8px; margin-top: 16px; }
.admin-actions { display: flex; flex-wrap: wrap; gap: 8px; }
#status { margin: 12px 0; }
.admin-table { min-width: 0; }
.admin-table th, .admin-table td { text-align: left; }
.admin-table tbody th, .admin-table tbody td { position: static; }
.row-actions { white-space: nowrap; text-align: right !important; }
.row-actions button { font-size: .82rem; padding: 5px 10px; margin: 2px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink); cursor: pointer; }
.row-actions button:hover { border-color: var(--primary); color: var(--primary); }
.cover-find { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: -4px 0 12px; }
.cover-preview { display: block; width: 120px; aspect-ratio: 3/4; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); margin-bottom: 12px; }
.cover-preview[hidden] { display: none; }
code { background: var(--surface-2); padding: 1px 6px; border-radius: 6px; font-size: .9em; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .main-nav a { padding: 8px 8px; font-size: .9rem; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 960px) {
  .menu-toggle { display: inline-flex; }
  .main-nav { position: fixed; top: var(--header-h); left: 0; right: 0; flex-direction: column; gap: 0; padding: 8px 16px 20px; background: var(--card); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); transform: translateY(-8px); opacity: 0; visibility: hidden; transition: all .2s; }
  .main-nav a { padding: 14px 12px; font-size: 1rem; border-bottom: 1px solid var(--line); border-radius: 0; }
  .main-nav a:last-child { border-bottom: 0; }
  .menu-open .main-nav { transform: none; opacity: 1; visibility: visible; }
  .trust { grid-template-columns: repeat(2, 1fr); }
  .trust li + li { border-left: 0; padding-left: 0; }
  .lines { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; }
  .features { grid-template-columns: repeat(2, 1fr); }
  .buy-grid, .faq-grid, .cta-band, .game-band { grid-template-columns: 1fr; }
  .faq-grid .section-head { position: static; }
  .game-band-covers { justify-content: flex-start; }
}

@media (max-width: 720px) {
  :root { --header-h: 60px; }
  body { padding-bottom: 68px; }
  .container { padding: 0 16px; }
  .section { padding: 56px 0; }
  .section-head { margin-bottom: 28px; }
  .header-cta .btn span { display: none; }
  .header-cta .btn { width: 42px; padding: 0; }
  .logo { font-size: 1.12rem; }
  .logo img { width: 32px; height: 32px; }

  .slide-inner { grid-template-columns: 1fr; gap: 8px; min-height: 0; padding-top: 20px; padding-bottom: 92px; }
  .slide-media { order: -1; }
  .slide-media img { max-width: 230px; }
  .slide-media.covers { padding: 18px 0 8px; }
  .slide-media.covers img { max-width: 84px; }
  .slide-text h1, .slide-text h2 { margin: 14px 0 10px; }
  .slide-text p { font-size: .97rem; }
  .slide-price { margin-top: 14px; }
  .slide-price strong { font-size: 1.6rem; }
  .slide-cta { margin-top: 18px; }
  .slide-cta .btn { flex: 1; }
  .slider-ui { bottom: 56px; }
  .arrows { display: none; }
  .dots { margin: 0 auto; }

  .trust { margin-top: -36px; padding: 16px; gap: 14px; grid-template-columns: 1fr 1fr; }
  .trust li { gap: 10px; }
  .trust-ic { width: 38px; height: 38px; }
  .trust strong { font-size: .86rem; }
  .trust span { font-size: .76rem; }

  .section-head.row { align-items: flex-start; }
  .filters { flex-wrap: nowrap; overflow-x: auto; margin: 0 -16px; padding: 0 16px 4px; scrollbar-width: none; }
  .filters::-webkit-scrollbar { display: none; }
  .chip { flex-shrink: 0; }
  .products { grid-template-columns: 1fr 1fr; gap: 12px; }
  .product-body { padding: 12px; }
  .product h3 { font-size: .98rem; }
  .product-note, .perks, .chips .chip-tag:nth-child(3) { display: none; }
  .product-price { font-size: 1.15rem; margin-top: 6px; }
  .product-actions { padding-top: 12px; }
  .product-actions .btn { height: 40px; font-size: .85rem; padding: 0 10px; }
  .product-actions .btn.icon-only { width: 40px; }

  .game-band { padding: 28px 22px; }
  .game-band-covers img { width: 30%; }
  .game-band-covers img:nth-child(n+4) { display: none; }
  .features { grid-template-columns: 1fr; gap: 12px; }
  .feature { display: grid; grid-template-columns: 48px 1fr; column-gap: 16px; padding: 18px; }
  .f-ic { width: 48px; height: 48px; margin: 0; grid-row: span 2; }
  .feature p { margin-top: 2px; }
  .policies { grid-template-columns: 1fr; }
  .cta-band { padding: 28px 22px; gap: 24px; }
  .cta-actions .btn { flex: 1 1 100%; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }

  .float-contact { display: none; }
  .mobile-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; display: grid; grid-template-columns: repeat(3, 1fr); background: var(--card); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px -10px rgba(15, 23, 42, .25); padding-bottom: env(safe-area-inset-bottom); }
  .mobile-bar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; height: 62px; color: var(--ink-2); font-size: .76rem; font-weight: 600; }
  .mobile-bar a.hl { background: var(--primary); color: #fff; }
  .mobile-bar .i { width: 22px; height: 22px; }

  .games { grid-template-columns: 1fr 1fr; gap: 12px; }
  .game-body { padding: 12px; }
  .game-body .note { display: none; }
  .toolbar select { flex: 1 1 100%; }
  .count { flex-basis: 100%; margin: 4px 0 0; }
  .admin { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* Ảnh máy luôn nằm gọn trong khung, không phụ thuộc chiều cao lưới */
.line-media { position: relative; }
.line-media img, .product-media.thumb img { position: absolute; inset: 0; margin: auto; width: 100%; height: 100%; padding: 7%; object-fit: contain; }

/* Ảnh máy nền trong suốt: ở chế độ tối khung ảnh dùng nền tối, máy nổi bằng bóng đổ */
:root[data-theme="dark"] .line-media,
:root[data-theme="dark"] .product-media,
:root[data-theme="dark"] .pick-img { background: radial-gradient(circle at 50% 38%, #1e3a63 0%, #12233f 55%, #0d1a30 100%); }
:root[data-theme="dark"] .line-media img,
:root[data-theme="dark"] .product-media img,
:root[data-theme="dark"] .pick-img img,
:root[data-theme="dark"] .compare thead img,
:root[data-theme="dark"] .slide-media:not(.covers) img { mix-blend-mode: normal; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .55)); }
:root[data-theme="dark"] .slide-media::before { background: radial-gradient(circle, rgba(47, 143, 255, .28) 0%, rgba(47, 143, 255, 0) 70%); }
:root[data-theme="dark"] .product.is-sold .product-media img { filter: grayscale(.6) drop-shadow(0 14px 22px rgba(0, 0, 0, .55)); }
:root[data-theme="dark"] .btn.ghost { color: var(--ink); border-color: rgba(255, 255, 255, .22); }
:root[data-theme="dark"] .btn.ghost:hover { background: rgba(255, 255, 255, .06); }
:root[data-theme="dark"] .f-ic { background: linear-gradient(135deg, #1b4a8a, #2f8fff); }
:root[data-theme="dark"] .faq details[open] { border-color: #2a4a75; }
:root[data-theme="dark"] .site-footer { background: #060e1a; }
:root[data-theme="dark"] .logo img { box-shadow: 0 0 0 1px rgba(255, 255, 255, .12); }

/* Nút đổi giao diện sáng/tối */
.theme-toggle { width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; transition: color .15s, border-color .15s; }
.theme-toggle:hover { color: var(--primary); border-color: var(--primary); }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }

/* Popup chọn máy */
.picker { width: min(640px, calc(100% - 32px)); max-height: calc(100% - 32px); padding: 0; border: 0; border-radius: 24px; background: var(--card); color: var(--ink-2); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .45); }
.picker::backdrop { background: rgba(7, 19, 39, .55); backdrop-filter: blur(4px); }
.picker[open] { animation: picker-in .25s ease-out; }
@keyframes picker-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
.picker-inner { position: relative; padding: 32px; }
.picker-close { position: absolute; top: 16px; right: 16px; width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--surface); color: var(--ink); display: grid; place-items: center; cursor: pointer; }
.picker-close:hover { color: var(--primary); }
.picker h2 { font-size: clamp(1.4rem, 3.4vw, 1.75rem); font-weight: 800; padding-right: 40px; }
.picker-sub { margin-top: 6px; color: var(--muted); }
.picker-options { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin-top: 22px; }
.pick { position: relative; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 12px 12px 16px; border: 1.5px solid var(--line); border-radius: 16px; background: var(--card); color: var(--ink-2); text-align: center; cursor: pointer; transition: border-color .15s, box-shadow .15s, transform .15s; }
.pick:hover, .pick:focus-visible { border-color: var(--primary); box-shadow: 0 12px 28px -14px rgba(0, 112, 209, .55); transform: translateY(-2px); }
.pick-img { width: 100%; aspect-ratio: 1; border-radius: 12px; background: linear-gradient(180deg, #f2f7fd, #e3edf9); display: grid; place-items: center; margin-bottom: 10px; }
.pick-img img { width: 86%; height: 86%; object-fit: contain; mix-blend-mode: multiply; }
.pick b { color: var(--ink); font-size: 1.05rem; }
.pick small { color: var(--muted); font-size: .8rem; }
.pick strong { margin-top: 4px; color: var(--price); font-size: .98rem; }
.pick-tag { position: absolute; top: 18px; left: 50%; transform: translateX(-50%); padding: 2px 10px; border-radius: 999px; background: var(--primary); color: #fff; font-size: .72rem; font-weight: 700; white-space: nowrap; }
.picker-alt { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.picker-alt .btn { flex: 1 1 200px; height: auto; min-height: 46px; padding-top: 10px; padding-bottom: 10px; white-space: normal; line-height: 1.3; text-align: center; }
.picker-contact { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.picker-contact h3 { color: var(--ink); font-size: 1rem; font-weight: 700; }
.picker-contact-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 10px; }
.picker-contact .tc { height: 44px; padding: 0 12px 0 7px; background: var(--surface); border-color: var(--line); color: var(--ink); min-width: 0; }
.picker-contact .tc:hover { color: var(--ink); }
.picker-contact .tc-text { display: inline; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker-contact .tc-ic { flex: none; width: 30px; height: 30px; }
.picker-contact .tc-ic .i { width: 16px; height: 16px; }
.picker-addr { margin-top: 10px; color: var(--muted); font-size: .9rem; }
.picker-skip { display: block; margin: 16px auto 0; padding: 6px 10px; border: 0; background: none; color: var(--muted); font-size: .9rem; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.picker-skip:hover { color: var(--ink); }
.product.picked { animation: picked 1.6s ease-out; }
@keyframes picked { 0%, 40% { box-shadow: 0 0 0 3px var(--primary); } 100% { box-shadow: 0 0 0 0 transparent; } }

@media (max-width: 720px) {
  .header-cta { gap: 6px; }
  .theme-toggle { width: 40px; height: 40px; }
  .picker-inner { padding: 24px 18px 20px; }
  .picker-options { grid-template-columns: 1fr; gap: 10px; }
  .picker-contact { margin-top: 16px; padding-top: 14px; }
  .picker-contact .tc { flex-direction: column; justify-content: center; gap: 4px; height: auto; padding: 8px 4px; border-radius: 14px; font-size: .78rem; }
  .picker-contact .tc-ic { width: 26px; height: 26px; }
  .picker-contact .tc-ic .i { width: 14px; height: 14px; }
  .pick { flex-direction: row; text-align: left; gap: 0 14px; padding: 10px; display: grid; grid-template-columns: 72px 1fr; align-items: center; }
  .pick-img { grid-row: span 4; width: 72px; margin: 0; }
  .pick-tag { position: static; transform: none; justify-self: start; grid-column: 2; margin-bottom: 2px; }
  .pick strong { margin-top: 0; }
}

/* ---------- Thẻ máy: trạng thái, giảm giá ---------- */
.stock.coming { color: #b7791f; }
.stock.coming::before { background: #e0a100; }
.stock.sold { color: var(--muted); }
.stock.sold::before { background: var(--muted); }
.product.is-sold .product-media img { filter: grayscale(.6); opacity: .7; }
.discount { position: absolute; z-index: 2; top: 12px; right: 12px; padding: 4px 8px; border-radius: 8px; background: var(--price); color: #fff; font-size: .78rem; font-weight: 800; }
.product-price s { margin-left: 6px; color: var(--muted); font-size: .9rem; font-weight: 500; }
.old-price { color: var(--muted); font-size: .9rem; font-weight: 500; letter-spacing: 0; }
.slide-price .old-price { font-size: 1.05rem; }
.compare .old-price { display: block; font-size: .8rem; }
.pick .old-price { display: block; font-size: .78rem; }
.empty { padding: 40px 16px; text-align: center; color: var(--muted); grid-column: 1 / -1; }

/* ==========================================================================
   Trang quản trị
   ========================================================================== */
.header-inner.wide { max-width: none; }
.admin-label { margin-left: 4px; padding: 2px 8px; border-radius: 6px; background: var(--primary-50); color: var(--primary); font-size: .72rem; font-weight: 700; letter-spacing: 0; }
.admin-page { padding: 0; background: var(--surface); min-height: calc(100vh - var(--header-h)); }
.rot90 { transform: rotate(90deg); }

.login { display: grid; place-items: center; min-height: calc(100vh - var(--header-h)); padding: 24px 16px; }
.login-card { width: min(400px, 100%); padding: 36px 32px; border-radius: 24px; background: var(--card); border: 1px solid var(--line); box-shadow: var(--shadow); text-align: center; }
.login-card img { margin: 0 auto 16px; border-radius: 14px; }
.login-card h1 { font-size: 1.5rem; font-weight: 800; }
.login-card label { display: block; margin: 24px 0 6px; text-align: left; font-weight: 600; font-size: .9rem; color: var(--ink); }
.login-card input { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
.login-card input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }
.login-card .btn { width: 100%; margin-top: 8px; }
.form-err { min-height: 1.2em; margin: 8px 0 0; color: var(--price); font-size: .88rem; text-align: left; }

.admin-app { display: grid; grid-template-columns: 240px 1fr; min-height: calc(100vh - var(--header-h)); }
.admin-side { position: sticky; top: var(--header-h); align-self: start; height: calc(100vh - var(--header-h)); overflow-y: auto; padding: 20px 12px; background: var(--card); border-right: 1px solid var(--line); }
#admin-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-group { margin: 16px 12px 6px; color: var(--muted); font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.nav-group:first-child { margin-top: 0; }
#admin-nav button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 10px; background: none; color: var(--ink-2); font-weight: 500; text-align: left; cursor: pointer; }
#admin-nav button:hover { background: var(--surface); color: var(--ink); }
#admin-nav button.active { background: var(--primary-50); color: var(--primary); font-weight: 600; }
#admin-nav .i { width: 18px; height: 18px; }
.nav-count { margin-left: auto; min-width: 24px; padding: 1px 7px; border-radius: 999px; background: var(--surface); color: var(--muted); font-size: .75rem; text-align: center; }
#admin-nav button.active .nav-count { background: var(--card); color: var(--primary); }

.admin-main { min-width: 0; padding: 28px 32px 64px; }
.notice { display: flex; gap: 10px; align-items: flex-start; margin-bottom: 20px; padding: 14px 16px; border-radius: 12px; background: var(--tip-bg); color: var(--tip-ink); font-size: .92rem; }
.notice .i { margin-top: 2px; }
.admin-top { position: sticky; top: var(--header-h); z-index: 5; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin: -28px -32px 20px; padding: 20px 32px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.admin-top h1 { font-size: 1.6rem; font-weight: 800; }
.admin-top p { margin-top: 2px; max-width: 640px; }
.admin-top-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-top-actions .btn:disabled { opacity: .5; cursor: default; transform: none; box-shadow: none; }
.save-state { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; }
.save-state::before { content: ""; width: 8px; height: 8px; border-radius: 50%; }
.save-state.clean { color: var(--ok); }
.save-state.clean::before { background: var(--ok); }
.save-state.dirty { color: #c27c00; }
.save-state.dirty::before { background: #e0a100; }

.stat-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.stat { display: flex; align-items: baseline; gap: 8px; padding: 12px 16px; border-radius: 12px; background: var(--card); border: 1px solid var(--line); font-size: .88rem; color: var(--muted); }
.stat b { font-size: 1.3rem; color: var(--ink); }
.stat.ok b { color: var(--ok); }
.stat.warn b { color: #c27c00; }
.list-toolbar { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.list-toolbar .search { flex: 1 1 260px; }
.list-toolbar .search input { width: 100%; height: 46px; padding: 0 14px 0 44px; border-radius: 12px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
.list-toolbar .search input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }
.list { display: grid; gap: 8px; }
.list-row { display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 14px; padding: 10px 12px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.list-row:not(:has(.row-thumb, .row-icon)) { grid-template-columns: 1fr auto auto; }
.list-row:hover { border-color: #bcd3ee; }
.list-row.is-hidden { opacity: .6; }
.row-thumb { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, #f2f7fd, #e3edf9); display: grid; place-items: center; color: var(--muted); }
.list.tall .row-thumb { height: 72px; }
.row-thumb img { width: 100%; height: 100%; object-fit: contain; }
.list.tall .row-thumb img { object-fit: cover; }
.row-icon { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }
.row-main { min-width: 0; padding: 0; border: 0; background: none; text-align: left; cursor: pointer; color: inherit; }
.row-main b { display: block; color: var(--ink); font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-main small { display: block; color: var(--muted); font-size: .84rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row-badges { display: flex; gap: 6px; flex-wrap: wrap; justify-content: flex-end; }
.badge { padding: 2px 8px; border-radius: 6px; font-size: .74rem; font-weight: 700; white-space: nowrap; background: var(--surface); color: var(--muted); }
.badge.ok { background: rgba(15, 138, 95, .12); color: var(--ok); }
.badge.warn { background: rgba(224, 161, 0, .15); color: #b07000; }
.badge.info { background: var(--primary-50); color: var(--primary); }
.badge.hot { background: rgba(224, 48, 30, .12); color: var(--price); }
.row-acts { display: flex; gap: 4px; }
.row-acts button { display: inline-flex; align-items: center; justify-content: center; min-width: 34px; height: 34px; padding: 0 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--card); color: var(--ink-2); font-size: .82rem; font-weight: 600; cursor: pointer; }
.row-acts button .i { width: 16px; height: 16px; }
.row-acts button:hover:not(:disabled) { border-color: var(--primary); color: var(--primary); }
.row-acts button:disabled { opacity: .35; cursor: default; }
.row-acts button.danger:hover { border-color: var(--price); color: var(--price); }

.panel { padding: 24px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); }
.panel.narrow { max-width: 460px; }
.panel h3 { font-size: 1.15rem; margin-bottom: 8px; }
.panel-foot { margin-top: 20px; display: flex; justify-content: flex-end; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.field { grid-column: 1 / -1; display: flex; flex-direction: column; gap: 6px; }
.field.half { grid-column: span 1; }
.field label, .field .lab { font-size: .86rem; font-weight: 600; color: var(--ink); }
.field label i { color: var(--price); font-style: normal; }
.field input[type=text], .field input[type=number], .field input[type=password], .field select, .field textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
.field textarea { resize: vertical; min-height: 84px; line-height: 1.5; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }
.field .help { color: var(--muted); font-size: .8rem; }
.money-hint { color: var(--price) !important; font-weight: 600; }
.field.is-check { justify-content: center; }
.check { display: inline-flex !important; align-items: center; gap: 8px; font-weight: 500 !important; cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--primary); }
.checks { display: flex; gap: 18px; padding: 8px 0; }
.icon-pick { display: flex; gap: 10px; align-items: center; }
.icon-prev { width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--primary-50); color: var(--primary); }
.img-field { display: flex; gap: 14px; align-items: flex-start; }
.img-prev { width: 104px; height: 104px; flex-shrink: 0; border-radius: 12px; overflow: hidden; display: grid; place-items: center; background: linear-gradient(180deg, #f2f7fd, #e3edf9); color: #9fb2c9; border: 1px solid var(--line); }
.img-prev img { width: 100%; height: 100%; object-fit: contain; }
.img-ctrl { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.img-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.img-btns label.btn { cursor: pointer; font-weight: 600 !important; color: var(--ink); font-size: .88rem; }

.editor { width: min(720px, calc(100% - 24px)); max-height: calc(100% - 24px); padding: 0; border: 0; border-radius: 22px; background: var(--card); color: var(--ink-2); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .45); }
.editor::backdrop { background: rgba(7, 19, 39, .55); backdrop-filter: blur(3px); }
.editor[open] { animation: picker-in .2s ease-out; }
.editor form { display: flex; flex-direction: column; max-height: calc(100vh - 24px); }
.editor-head { display: flex; align-items: center; justify-content: space-between; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.editor-head h2 { font-size: 1.25rem; font-weight: 800; }
.editor-head .picker-close { position: static; }
.editor-body { padding: 20px 24px; overflow-y: auto; }
.editor .form-err { padding: 0 24px; margin: 0; }
.editor-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--line); }

.toast { position: fixed; left: 50%; bottom: 28px; z-index: 100; transform: translateX(-50%); max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 12px; background: #0b1d3a; color: #fff; font-weight: 500; font-size: .92rem; box-shadow: var(--shadow-lg); animation: picker-in .2s ease-out; }
.toast.err { background: #b42318; }

@media (max-width: 900px) {
  .admin-app { grid-template-columns: 1fr; }
  .admin-side { position: sticky; top: var(--header-h); z-index: 6; height: auto; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--line); overflow-x: auto; }
  #admin-nav { flex-direction: row; gap: 4px; }
  #admin-nav button { width: auto; white-space: nowrap; padding: 8px 12px; }
  .nav-group { display: none; }
  .admin-main { padding: 20px 16px 96px; }
  .admin-top { position: static; margin: -20px -16px 16px; padding: 16px; }
  .list-row { grid-template-columns: auto 1fr; }
  .list-row:not(:has(.row-thumb, .row-icon)) { grid-template-columns: 1fr; }
  .row-badges, .row-acts { grid-column: 1 / -1; justify-content: flex-start; flex-wrap: wrap; }
}
@media (max-width: 720px) {
  .admin-page ~ * .mobile-bar, .admin-page .mobile-bar { display: none; }
  body:has(.admin-page) { padding-bottom: 0; }
  .form-grid { grid-template-columns: 1fr; }
  .field.half { grid-column: 1 / -1; }
  .img-field { flex-direction: column; }
  .admin-label { display: none; }
  .header-cta .btn.sm { height: 38px; padding: 0 10px; font-size: .82rem; }
}
.link-btn { display: inline-flex; align-items: center; gap: 4px; padding: 0; border: 0; background: none; color: var(--primary); font-weight: 600; cursor: pointer; }
.link-btn .i { width: 16px; height: 16px; }
.link-btn:hover { text-decoration: underline; text-underline-offset: 3px; }
.game-type { align-self: flex-start; margin-bottom: 6px; padding: 2px 8px; border-radius: 6px; background: var(--primary-50); color: var(--primary); font-size: .74rem; font-weight: 700; }
.row-acts button { gap: 4px; }
.product h3 a, .game-body h3 a { color: inherit; }
.product h3 a:hover, .game-body h3 a:hover { color: var(--primary); }

/* ==========================================================================
   Nâng cấp giao diện: header tối nổi bật, hiệu ứng chuyển động
   ========================================================================== */

/* Dải cam kết trên cùng */

/* Header tối kiểu gaming, giống nhau ở cả hai giao diện cho hợp với logo */
.site-header { background: linear-gradient(180deg, rgba(10, 21, 40, .97), rgba(6, 13, 26, .97)); border-bottom: 0; color-scheme: dark; }
.site-header::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: linear-gradient(90deg, transparent, rgba(47, 143, 255, .7) 25%, rgba(56, 189, 248, .95) 50%, rgba(47, 143, 255, .7) 75%, transparent); }
.site-header::before { content: ""; position: absolute; z-index: 1; left: 0; bottom: 0; height: 2px; width: calc(var(--progress, 0) * 100%); background: linear-gradient(90deg, #2f8fff, #38bdf8); box-shadow: 0 0 10px rgba(56, 189, 248, .9); }
.site-header.scrolled { box-shadow: 0 12px 32px -12px rgba(0, 0, 0, .65); }
.site-header .logo { color: #fff; }
.site-header .logo:hover { color: #fff; }
.site-header .logo em { color: #38bdf8; }
.site-header .logo img { box-shadow: 0 0 0 1px rgba(56, 189, 248, .35), 0 0 18px rgba(47, 143, 255, .45); transition: transform .3s; }
.site-header .logo:hover img { transform: rotate(-6deg) scale(1.06); }
.main-nav a { position: relative; color: rgba(226, 236, 250, .78); font-weight: 600; transition: color .2s; }
.main-nav a::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 1px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #2f8fff, #38bdf8); box-shadow: 0 0 8px rgba(56, 189, 248, .9); transform: scaleX(0); transition: transform .25s ease; }
.main-nav a:hover, .main-nav a.active, .main-nav a[aria-current="page"] { color: #fff; background: none; }
.main-nav a:hover::after, .main-nav a.active::after, .main-nav a[aria-current="page"]::after { transform: scaleX(1); }
.site-header .theme-toggle, .site-header .menu-toggle { background: rgba(255, 255, 255, .06); border-color: rgba(255, 255, 255, .14); color: #e2ecfa; }
.site-header .theme-toggle:hover, .site-header .menu-toggle:hover { color: #38bdf8; border-color: #38bdf8; }
.site-header .admin-label { background: rgba(56, 189, 248, .15); color: #7dd3fc; }
@media (max-width: 960px) {
  .main-nav { position: absolute; top: 100%; background: #0a1424; border-bottom-color: rgba(255, 255, 255, .08); }
  .main-nav a { border-bottom-color: rgba(255, 255, 255, .08); }
  .main-nav a::after { display: none; }
  .main-nav a.active, .main-nav a[aria-current="page"] { color: #38bdf8; }
}
@media (max-width: 720px) {
}

/* Nút chính: nền chuyển màu, vệt sáng lướt qua khi rê chuột */
.btn { position: relative; overflow: hidden; isolation: isolate; }
.btn.primary { background: linear-gradient(135deg, #1a8cff 0%, #0062d6 100%); box-shadow: 0 8px 20px -8px rgba(0, 112, 209, .75); }
.btn.primary:hover { background: linear-gradient(135deg, #3399ff 0%, #0070e0 100%); box-shadow: 0 12px 28px -8px rgba(47, 143, 255, .9); }
.btn.primary::after { content: ""; position: absolute; z-index: -1; top: 0; left: -80%; width: 50%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .4), transparent); transform: skewX(-20deg); transition: left .6s ease; }
.btn.primary:hover::after { left: 130%; }

/* Tiêu đề nhỏ của mục có gạch dẫn */
.eyebrow::before { content: ""; display: inline-block; width: 22px; height: 2px; margin-right: 8px; border-radius: 2px; background: currentColor; vertical-align: middle; }

/* Banner hiện mượt khi tải trang */
.brand-banner img { animation: banner-in 1s ease both; }
@keyframes banner-in { from { opacity: 0; transform: scale(1.015); } }

/* Máy trên banner trượt nổi nhẹ */
.slide-media:not(.covers) img { animation: float 6s ease-in-out infinite; }
.slide-media:not(.covers)::before { animation: glow 6s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-12px); } }
@keyframes glow { 50% { transform: scale(1.08); opacity: .75; } }

/* Thẻ nổi lên, viền sáng khi rê chuột */
.product, .line, .game, .feature { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s; }
.product:hover, .line:hover, .game:hover, .feature:hover { transform: translateY(-6px); border-color: rgba(47, 143, 255, .45); box-shadow: 0 24px 44px -22px rgba(0, 98, 214, .5); }
.game-cover { overflow: hidden; }
.game-cover img { transition: transform .5s ease; }
.game:hover .game-cover img { transform: scale(1.06); }
.f-ic { transition: transform .35s; }
.feature:hover .f-ic { transform: rotate(-8deg) scale(1.08); }

/* Nút Zalo nổi có vòng sóng thu hút */
.fc-zalo { position: relative; }
.fc-zalo::before { content: ""; position: absolute; inset: 0; border-radius: inherit; animation: ring 2.4s ease-out infinite; }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(0, 112, 255, .55); } 70%, 100% { box-shadow: 0 0 0 16px rgba(0, 112, 255, 0); } }

/* Hiện dần khi cuộn tới (lớp do site.js gắn) */
.rv { opacity: 0; transform: translateY(26px); transition: opacity .7s ease var(--rv-delay, 0ms), transform .7s cubic-bezier(.2, .7, .2, 1) var(--rv-delay, 0ms); }
.rv.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  .brand-banner img, .slide-media img, .slide-media::before, .fc-zalo::before { animation: none !important; }
}

/* ---------- Thẻ máy dạng ngang: ảnh trái, thông tin phải, gọn khi ít máy ---------- */
.products { grid-template-columns: repeat(auto-fill, minmax(min(100%, 360px), 1fr)); gap: 16px; }
.product { display: grid; grid-template-columns: 150px 1fr; }
.product-media { aspect-ratio: auto; min-height: 100%; }
.product-media.thumb img { padding: 10%; }
.product-body { min-width: 0; padding: 14px 16px 16px; }
.product h3 { margin-top: 8px; font-size: 1.05rem; }
.product-note { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; font-size: .84rem; }
.product-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0 8px; margin-top: 8px; font-size: 1.3rem; }
.product-price s { margin-left: 0; font-size: .85rem; }
.perks { margin-top: 8px; padding-top: 8px; gap: 2px; color: var(--muted); font-size: .78rem; }
.perks .i { width: 14px; height: 14px; }
.perks li { display: block; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.perks li .i { margin-right: 6px; vertical-align: -2px; }
.product-actions { padding-top: 12px; }
.product-actions .btn { height: 40px; font-size: .88rem; }
.product-actions .btn.icon-only { width: 40px; }
.stock { top: 8px; left: 8px; padding: 3px 8px; font-size: .7rem; }
.discount { top: auto; right: auto; bottom: 8px; left: 8px; }
@media (max-width: 720px) {
  .products { grid-template-columns: 1fr; gap: 12px; }
  .product { grid-template-columns: 120px 1fr; }
  .product-body { padding: 12px; }
  .product-note { display: -webkit-box; }
  .chips .chip-tag:nth-child(3) { display: inline-flex; }
}

/* ---------- Khung lọc game: tìm kiếm + các hàng lọc có nhãn, thẳng cột ---------- */
.filter-panel { margin-bottom: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--card); box-shadow: var(--shadow-sm); overflow: hidden; }
.filter-top { display: flex; align-items: center; gap: 16px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.filter-panel .search { flex: 1 1 auto; }
.filter-panel .search input { height: 44px; border-color: transparent; background: var(--surface); }
.filter-panel .count { flex-shrink: 0; margin: 0; padding: 4px 12px; border-radius: 999px; background: var(--primary-50); color: var(--primary); font-size: .82rem; font-weight: 700; white-space: nowrap; }
.filter-row { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 16px; }
.filter-row + .filter-row { border-top: 1px dashed var(--line); }
.filter-row .filter-label { min-width: 0; color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.filter-chips::-webkit-scrollbar { display: none; }
.filter-panel .chip { flex-shrink: 0; height: 34px; padding: 0 14px; border-color: transparent; background: var(--surface); font-size: .85rem; }
.filter-panel .chip:hover { border-color: transparent; background: var(--primary-50); color: var(--primary); }
.filter-panel .chip.active { background: var(--primary); color: #fff; box-shadow: 0 6px 14px -6px rgba(0, 112, 209, .7); }
@media (max-width: 720px) {
  .filter-top { padding: 10px 12px; gap: 10px; }
  .filter-row { grid-template-columns: minmax(0, 1fr); gap: 6px; padding: 10px 12px; }
  .filter-chips { flex-wrap: nowrap; padding-right: 32px; overflow-x: auto; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 32px), transparent); }
}

/* ---------- Trang chi tiết game ---------- */
.game-cover { display: block; color: inherit; }
.gd-hero { padding-bottom: 48px; }
.gd { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 48px; align-items: start; margin-top: 24px; }
.gd-cover { position: relative; aspect-ratio: 3/4; border-radius: 20px; overflow: hidden; background: linear-gradient(135deg, #0b1d3a, #0070d1); box-shadow: 0 30px 60px -24px rgba(0, 40, 100, .55), 0 0 0 1px rgba(255, 255, 255, .06); }
.gd-cover::before { color: #fff; font-size: 1.3rem; }
.gd-cover img { width: 100%; height: 100%; object-fit: cover; }
.gd-cover .platforms { left: 14px; bottom: 14px; }
.gd-cover .pf { padding: 4px 10px; font-size: .8rem; }
.gd-info { padding-top: 8px; }
.gd-tags { display: flex; flex-wrap: wrap; gap: 8px; min-height: 4px; }
.gd-tags .hot { position: static; }
.gd-tags .game-type { margin: 0; }
.gd-info h1 { margin-top: 12px; font-size: clamp(2rem, 4.5vw, 3rem); letter-spacing: -.03em; line-height: 1.1; }
.page-hero .gd-lead { max-width: 640px; margin-top: 14px; color: var(--ink-2); font-size: 1.12rem; }
.gd-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 1px; margin: 26px 0 0; border: 1px solid var(--line); border-radius: 16px; background: var(--line); overflow: hidden; max-width: 640px; }
.gd-meta div { padding: 14px 16px; background: var(--card); }
.gd-meta dt { color: var(--muted); font-size: .74rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.gd-meta dd { margin: 4px 0 0; color: var(--ink); font-weight: 700; }
.page-hero .gd-perk { display: flex; align-items: center; gap: 10px; max-width: 640px; margin-top: 18px; padding: 12px 16px; border-radius: 14px; background: var(--primary-50); color: var(--ink-2); font-size: .95rem; }
.gd-perk .i { flex-shrink: 0; width: 22px; height: 22px; color: var(--primary); }
.gd-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }

.gd-body { display: grid; gap: 40px; max-width: 820px; }
.gd-article { color: var(--ink-2); font-size: 1.05rem; line-height: 1.8; }
.gd-article > * + * { margin-top: 16px; }
.gd-article h2 { margin-top: 36px; color: var(--ink); font-size: 1.45rem; font-weight: 800; letter-spacing: -.02em; line-height: 1.3; }
.gd-article h2:first-child { margin-top: 0; }
.gd-article h2::before { content: ""; display: block; width: 36px; height: 3px; margin-bottom: 12px; border-radius: 3px; background: linear-gradient(90deg, #2f8fff, #38bdf8); }
.gd-article ul { padding-left: 0; list-style: none; display: grid; gap: 10px; }
.gd-article li { position: relative; padding-left: 26px; }
.gd-article li::before { content: ""; position: absolute; left: 4px; top: .7em; width: 8px; height: 8px; border-radius: 50%; background: var(--primary); box-shadow: 0 0 0 4px var(--primary-50); }
.gd-article b { color: var(--ink); }
.gd-trailer h2 { margin-bottom: 14px; font-size: 1.45rem; font-weight: 800; }
.gd-video { position: relative; aspect-ratio: 16/9; border-radius: 18px; overflow: hidden; background: #000; box-shadow: var(--shadow-lg); }
.gd-video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
@media (max-width: 760px) {
  .gd { grid-template-columns: 1fr; gap: 24px; }
  .gd-cover { max-width: 260px; }
  .gd-cta .btn { flex: 1 1 160px; }
}

/* ---------- Chuyển trang mượt (View Transitions giữa các trang) ---------- */
@view-transition { navigation: auto; }
.topbar { view-transition-name: topbar; }
.site-header { view-transition-name: site-header; }
.mobile-bar { view-transition-name: mobile-bar; }
.gd-cover { view-transition-name: game-cover; }
/* Trang mới mờ dần hiện lên phủ trang cũ: không chớp nền, không chồng hình */
::view-transition-old(root) { animation: none; }
::view-transition-new(root) { animation: vt-fade-in .32s cubic-bezier(.2, 0, 0, 1) both; }
@keyframes vt-fade-in { from { opacity: 0; } }
/* Ảnh bìa: chỉ dùng ảnh của trang mới, bay từ vị trí thẻ tới vị trí lớn, góc bo giữ nguyên suốt đường bay */
::view-transition-group(game-cover) { animation-duration: .5s; animation-timing-function: cubic-bezier(.3, .7, .1, 1); }
::view-transition-image-pair(game-cover) { border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(0, 40, 100, .55); }
::view-transition-old(game-cover) { display: none; }
::view-transition-new(game-cover) { height: 100%; object-fit: cover; animation: none; }
@keyframes vt-fade-out { to { opacity: 0; } }
::view-transition-group(mobile-bar) { animation: none; }
::view-transition-group(topbar), ::view-transition-group(site-header) { animation-duration: .5s; animation-timing-function: cubic-bezier(.3, .7, .1, 1); }
@keyframes vt-out { to { opacity: 0; transform: translateY(-14px) scale(.99); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(20px); } }
/* Trình duyệt chưa hỗ trợ: nội dung trang mới hiện mờ dần */
@supports not (view-transition-name: none) {
  main { animation: vt-in .45s cubic-bezier(0, 0, .2, 1) both; }
}
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* Trang chi tiết game: thông tin trượt vào lần lượt khi ảnh bìa vừa hạ cánh */
.gd-info > *, .gd-body { animation: gd-in .55s cubic-bezier(.2, .7, .2, 1) both; }
.gd-info > :nth-child(1) { animation-delay: .22s; }
.gd-info > :nth-child(2) { animation-delay: .28s; }
.gd-info > :nth-child(3) { animation-delay: .34s; }
.gd-info > :nth-child(4) { animation-delay: .40s; }
.gd-info > :nth-child(5) { animation-delay: .46s; }
.gd-info > :nth-child(6) { animation-delay: .52s; }
.gd-body { animation-delay: .5s; }
@keyframes gd-in { from { opacity: 0; transform: translateY(16px); } }
@media (prefers-reduced-motion: reduce) { .gd-info > *, .gd-body { animation: none; } }

/* ---------- Dải trên cùng: cam kết + liên hệ nhanh nổi bật ---------- */
.topbar { background: linear-gradient(90deg, #040914, #071327 50%, #040914); color: #9fb3cf; font-size: .82rem; font-weight: 500; border-bottom: 1px solid rgba(255, 255, 255, .06); }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 44px; white-space: nowrap; }
.topbar-promise { display: flex; gap: 22px; min-width: 0; overflow: hidden; }
.topbar-promise span { display: inline-flex; align-items: center; gap: 6px; }
.topbar-promise .i { width: 14px; height: 14px; color: #38bdf8; }
.topbar-contact { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.tc-label { margin-right: 4px; color: #7f93b0; font-size: .74rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.tc { --c: #2f8fff; display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 12px 0 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); color: #e8eef8; font-weight: 600; transition: background .2s, border-color .2s, box-shadow .2s, transform .2s; }
.tc:hover { color: #fff; background: color-mix(in srgb, var(--c) 22%, transparent); border-color: var(--c); box-shadow: 0 0 16px -2px color-mix(in srgb, var(--c) 70%, transparent); transform: translateY(-1px); }
.tc-ic { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--c); color: #fff; }
.tc-ic .i { width: 14px; height: 14px; }
.tc-phone { --c: #16a34a; }
.tc-zalo { --c: #0068ff; }
.tc-msg { --c: #a334fa; }
.tc-msg .tc-ic { background: linear-gradient(135deg, #0099ff, #a033ff 60%, #ff5280); }
.tc-fb { --c: #1877f2; }
.tc-tele { --c: #229ed9; }
.tc-yt { --c: #ff0033; }
@media (max-width: 1500px) {
  .topbar-promise span:nth-child(3) { display: none; }
}
@media (max-width: 1080px) {
  .topbar-promise { display: none; }
  .topbar-contact { margin: 0 auto; }
}
@media (max-width: 720px) {
  .topbar-inner { height: 46px; }
  .tc-label, .tc-text { display: none; }
  .tc-phone .tc-text { display: inline; }
  .topbar-contact { gap: 8px; }
  .tc { padding: 0 4px; }
  .tc-phone { padding-right: 12px; }
  .tc-ic { width: 30px; height: 30px; }
  .tc-ic .i { width: 16px; height: 16px; }
  .tc { height: 38px; }
}
@media (max-width: 520px) {
  .tc-phone .tc-text { display: none; }
  .tc-phone { padding-right: 4px; }
  .topbar-contact { gap: 6px; }
}

/* Nhãn máy + loại: hàng chip ngay dưới ảnh bìa, ảnh để sạch */
.g-chips { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 8px; }
.gc { display: inline-flex; align-items: center; height: 22px; padding: 0 8px; border-radius: 6px; font-size: .7rem; font-weight: 800; letter-spacing: .03em; line-height: 1; white-space: nowrap; }
.gc-ps5 { background: var(--primary); color: #fff; }
.gc-ps4 { background: var(--surface-2); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.gc-type { background: rgba(249, 115, 22, .12); color: #c2410c; }
:root[data-theme="dark"] .gc-type { background: rgba(249, 115, 22, .16); color: #fdba74; }
.g-chips.lg { margin: 0; gap: 6px; }
.g-chips.lg .gc { height: 28px; padding: 0 12px; font-size: .8rem; border-radius: 8px; }
.gd-tags { align-items: center; }
.game-cover .hot { top: 8px; right: 8px; padding: 2px 7px; font-size: .65rem; }

/* ---------- Dải game trượt ngang ở trang chủ ---------- */
.gs-nav { display: flex; align-items: center; gap: 8px; }
.game-slider { display: grid; grid-auto-flow: column; grid-auto-columns: 210px; gap: 16px; margin: 0 -20px; padding: 10px 20px 20px; overflow-x: auto; scroll-snap-type: x mandatory; scroll-padding: 0 20px; scrollbar-width: none; -webkit-mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent); mask-image: linear-gradient(90deg, transparent, #000 20px, #000 calc(100% - 20px), transparent); }
.game-slider::-webkit-scrollbar { display: none; }
.game-slider .game { scroll-snap-align: start; }
@media (max-width: 720px) {
  .game-slider { grid-auto-columns: 46%; gap: 12px; margin: 0 -16px; padding: 8px 16px 16px; scroll-padding: 0 16px; }
  .gs-nav .slide-nav { display: none; }
}

/* ---------- Trang quản trị: Truyền thông ---------- */
.mk-note { margin-bottom: 16px; padding: 14px 18px; background: var(--tip-bg); border-color: transparent; color: var(--tip-ink); font-size: .9rem; }
.mk-bar { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px; margin-bottom: 16px; }
.mk-pick { flex: 1 1 320px; }
.mk-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; }
.mk-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; background: var(--card); overflow: hidden; }
.mk-card.is-done { border-color: rgba(15, 138, 95, .45); }
.mk-card header { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.mk-card header b { margin-right: auto; color: var(--ink); font-size: .92rem; }
.mk-body { display: grid; grid-template-columns: 110px 1fr; gap: 12px; padding: 12px 14px; }
.mk-body img, .mk-noimg { width: 110px; aspect-ratio: 1; border-radius: 10px; object-fit: cover; background: var(--surface); }
.mk-noimg { display: grid; place-items: center; color: var(--muted); font-size: .75rem; text-align: center; }
.mk-body textarea, .mk-variant textarea { width: 100%; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: inherit; font-size: .86rem; line-height: 1.5; resize: vertical; }
.mk-card footer { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: auto; padding: 0 14px 14px; }
.mk-variants { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 16px; }
.mk-variant { padding: 16px; }
.mk-variant-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.mk-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px; margin-bottom: 16px; }
.mk-cols + .panel, #mk-settings + .panel { margin-top: 16px; }
.mk-help { margin-top: 14px; font-size: .86rem; color: var(--ink-2); }
.mk-help summary { cursor: pointer; color: var(--primary); font-weight: 600; }
.mk-help ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; }
.mk-help code { padding: 1px 5px; border-radius: 4px; background: var(--surface); font-size: .82em; }
.field input[type=file], .field input[type=datetime-local] { width: 100%; padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: var(--ink); font: inherit; }
.mk-progress { height: 8px; margin-top: 16px; border-radius: 99px; background: var(--surface); overflow: hidden; }
.mk-progress span { display: block; width: 0; height: 100%; background: linear-gradient(90deg, #2f8fff, #38bdf8); transition: width .2s; }
.mk-history { display: grid; gap: 6px; }
.mk-h-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: .88rem; }
.mk-h-title { flex: 1 1 240px; min-width: 0; color: var(--ink); }
.mk-h-title small { display: block; color: var(--price); }
@media (max-width: 560px) {
  .mk-body { grid-template-columns: 1fr; }
  .mk-body img, .mk-noimg { width: 100%; max-height: 220px; }
}

/* ---------- Hiệu ứng dùng chung toàn web ---------- */
/* Thẻ bật lên khi lọc / dựng lại danh sách */
.pop { animation: pop-in .42s cubic-bezier(.2, .7, .2, 1) var(--pop-delay, 0ms) both; }
@keyframes pop-in { from { opacity: 0; transform: translateY(14px) scale(.97); } }
/* Hỏi đáp: câu trả lời trượt xuống khi mở */
.faq details[open] > :not(summary) { animation: faq-open .32s ease both; }
@keyframes faq-open { from { opacity: 0; transform: translateY(-6px); } }
.faq details { transition: border-color .25s, box-shadow .25s; }
.faq details:hover { border-color: rgba(47, 143, 255, .45); }
/* Các thẻ còn lại cũng nổi lên khi rê chuột */
.policy, .checklist-card { transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .35s, border-color .35s; }
.policy:hover, .checklist-card:hover { transform: translateY(-4px); border-color: rgba(47, 143, 255, .45); box-shadow: 0 22px 40px -22px rgba(0, 98, 214, .45); }
.btn.outline:hover, .btn.light:hover, .btn.ghost-light:hover { transform: translateY(-1px); }
.steps li .step-n { transition: transform .3s, box-shadow .3s; }
.steps li:hover .step-n { transform: scale(1.08); box-shadow: 0 0 0 6px var(--primary-50); }
/* Trang quản trị: chuyển mục */
.view-in { animation: gd-in .35s cubic-bezier(.2, .7, .2, 1) both; }
/* Đổi sáng/tối: vòng tròn loang ra từ nút bấm */
html.theme-vt .topbar, html.theme-vt .site-header, html.theme-vt .mobile-bar, html.theme-vt .gd-cover { view-transition-name: none !important; }
html.theme-vt::view-transition-old(root) { animation: none; }
html.theme-vt::view-transition-new(root) { animation: theme-reveal .6s cubic-bezier(.4, 0, .2, 1) both; }
@keyframes theme-reveal { from { clip-path: circle(0 at var(--tx, 50%) var(--ty, 0)); } to { clip-path: circle(150vmax at var(--tx, 50%) var(--ty, 0)); } }
@media (prefers-reduced-motion: reduce) {
  .pop, .view-in, .faq details[open] > :not(summary) { animation: none !important; }
}

/* Khối tiêu đề trang con (Game, chi tiết game): bớt khoảng trống phía trên và giữa tiêu đề với nội dung */
.page-hero { padding: 20px 0 8px; }
.page-hero h1 { margin-top: 8px; }
.section.top-tight { padding-top: 16px; }
.gd-hero { padding-bottom: 32px; }
.gd { margin-top: 16px; }

/* Thu gọn khoảng trống giữa các khối (trang chủ và các trang con) */
.section { padding: 56px 0; }
.section.tight { padding: 28px 0; }
.section-head { margin-bottom: 24px; }
.slide-inner { min-height: 440px; padding-top: 28px; padding-bottom: 96px; }
@media (max-width: 720px) {
  .section { padding: 40px 0; }
  .section.tight { padding: 20px 0; }
  .section-head { margin-bottom: 20px; }
  .slide-inner { padding-bottom: 84px; }
}
.section.top-tight { padding-top: 16px; }

/* ==========================================================================
   Rà soát giao diện: độ tương phản chữ (WCAG AA 4.5:1) và khoảng trống
   ========================================================================== */
:root {
  --muted: #566377;          /* xám chữ phụ đậm hơn để đọc rõ trên nền sáng */
  --ok: #0b7a53;
  --primary-ink: #005fb3;    /* chữ xanh đặt trên nền xanh nhạt */
  --solid-blue: #0068c9;     /* nền xanh đặc có chữ trắng */
  --badge-red: #d2341f;      /* nền đỏ của nhãn HOT, giảm giá */
}
:root[data-theme="dark"] {
  --muted: #9aa9c0;
  --ok: #3dd598;
  --primary-ink: #7ab8ff;
  --solid-blue: #1a66d6;
  --chip-active: #1a66d6;
}
/* Chữ xanh trên nền xanh nhạt */
.chip-tag.disc, .filter-panel .count, #count, .badge.info, .game-type { color: var(--primary-ink); }
/* Nền xanh đặc có chữ trắng */
.chip.active, .filter-panel .chip.active, .gc-ps5, .pf.ps5, .mk-tab.active { background: var(--solid-blue); border-color: var(--solid-blue); }
.chip small { opacity: 1; color: var(--muted); }
.chip.active small { color: rgba(255, 255, 255, .9); }
/* Nhãn HOT, giảm giá: đỏ đậm hơn để chữ trắng đọc rõ */
.hot, .discount { background: var(--badge-red); }
/* Bảng so sánh: ô "Không" */
.compare .no, .compare .no span { color: var(--muted); }
/* Chân trang tối: chữ xám sáng hơn */
.footer-bottom p, .site-footer p { color: #9aa9c0; }
/* Nhãn trạng thái trong trang quản trị */
.badge.ok { color: #0a6b48; }
.badge.warn { color: #7d4e00; }
:root[data-theme="dark"] .badge.ok { color: #4ade9a; }
:root[data-theme="dark"] .badge.warn { color: #f3c25a; }

/* Khoảng trống: gọn hơn nữa */
.section { padding: 40px 0; }
.section.tight { padding: 24px 0; }
.section-head { margin-bottom: 20px; }
.more { margin-top: 16px; }
.game-slider { padding-bottom: 12px; }
@media (max-width: 720px) {
  .section { padding: 32px 0; }
  .section.tight { padding: 16px 0; }
}
.section.top-tight { padding-top: 16px; }

/* Thanh liên hệ dưới đáy điện thoại: tự co khi có kênh bị ẩn */
@media (max-width: 720px) {
  .mobile-bar { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 1fr; }
  /* Dải cam kết: biểu tượng trên, chữ dưới cho khỏi bị bóp */
  .trust { grid-template-columns: 1fr 1fr; gap: 14px 12px; padding: 16px; }
  .trust li { flex-direction: column; align-items: flex-start; gap: 8px; }
  .trust li + li { border-left: 0; padding-left: 0; }
  .trust-ic { width: 38px; height: 38px; }
  .trust strong { font-size: .92rem; }
  .trust span { font-size: .8rem; }
}

/* Trang chính sách quyền riêng tư */
.legal { color: var(--ink-2); line-height: 1.7; }
.legal > * { max-width: 760px; }
.legal h2 { margin-top: 28px; color: var(--ink); font-size: 1.2rem; font-weight: 700; }
.legal h2:first-child { margin-top: 0; }
.legal p, .legal ul { margin-top: 10px; }
.legal ul { padding-left: 22px; }
.legal li + li { margin-top: 6px; }
.legal b { color: var(--ink); }
.legal a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom p { display: block; }
.footer-bottom a { white-space: nowrap; color: inherit; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Icon liên hệ kiểu ứng dụng macOS: ô vuông bo góc mềm, nền màu hãng, logo trắng ---------- */
.tc-ic, .float-contact a, .socials a {
  --app: linear-gradient(180deg, #4ba3ff, #0a6cff);
  background: var(--app); color: #fff; border-radius: 26%;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), inset 0 -1px 0 rgba(0, 0, 0, .12), 0 1px 2px rgba(0, 0, 0, .25);
  --zalo-bubble: #fff; --zalo-text: #0068ff;
}
.float-contact a { border-radius: 24%; box-shadow: inset 0 1px 0 rgba(255, 255, 255, .35), 0 10px 24px -8px rgba(0, 0, 0, .45); }
.tc-phone .tc-ic, .socials a[data-link="tel"] { --app: linear-gradient(180deg, #65f27c, #12b83a); }
.tc-zalo .tc-ic, .fc-zalo, .socials a[data-link="zalo"] { --app: linear-gradient(180deg, #2f8bff, #0057e6); }
.tc-msg .tc-ic, .fc-msg, .socials a[data-link="messenger"] { --app: radial-gradient(circle at 20% 100%, #0099ff 0%, #a033ff 60%, #ff5280 92%, #ff7061 100%); }
.tc-tele .tc-ic, .socials a[data-link="telegram"] { --app: linear-gradient(180deg, #41bcf2, #1d93d2); }
.tc-fb .tc-ic, .socials a[data-link="facebook"] { --app: linear-gradient(180deg, #18acfe, #0163e0); }
.tc-yt .tc-ic, .socials a[data-link="youtube"] { --app: #fff; color: #ff0033; }
.tc-yt .tc-ic .i, .socials a[data-link="youtube"] .i { transform: scale(1.15); }
.socials a { width: 38px; height: 38px; }
.socials a .i { width: 22px; height: 22px; }
.socials a:hover { background: var(--app); color: #fff; transform: translateY(-2px); filter: brightness(1.08); }
.socials a[data-link="youtube"]:hover { color: #ff0033; }
.tc-ic .i { width: 16px; height: 16px; }
.float-contact .i { width: 30px; height: 30px; }

/* Chat nhanh góc phải dưới: đủ các kênh, Zalo nổi bật nhất ở dưới cùng */
.float-contact { gap: 8px; align-items: center; }
.float-contact a { width: 44px; height: 44px; }
.float-contact .i { width: 24px; height: 24px; }
.float-contact .fc-zalo { width: 58px; height: 58px; margin-top: 4px; }
.float-contact .fc-zalo .i { width: 34px; height: 34px; }
.float-contact .fc-tel { --app: linear-gradient(180deg, #65f27c, #12b83a); }
.float-contact .fc-zalo { --app: linear-gradient(180deg, #2f8bff, #0057e6); }
.float-contact .fc-msg { --app: radial-gradient(circle at 20% 100%, #0099ff 0%, #a033ff 60%, #ff5280 92%, #ff7061 100%); }
.float-contact .fc-tele { --app: linear-gradient(180deg, #41bcf2, #1d93d2); }
.float-contact .fc-fb { --app: linear-gradient(180deg, #18acfe, #0163e0); }
.float-contact .fc-yt { --app: #fff; color: #ff0033; }
.float-contact .fc-yt:hover { color: #ff0033; }

/* Nhãn "Thuyết minh" nổi bật trên poster game */
.voice-badge { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 8px; background: linear-gradient(90deg, #ff3d00, #ff8a00); color: #fff; text-transform: uppercase; letter-spacing: .06em; line-height: 1; box-shadow: 0 -6px 18px -6px rgba(255, 80, 0, .7); text-shadow: 0 1px 2px rgba(0, 0, 0, .35); }
.voice-badge svg { width: 16px; height: 16px; flex: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .3)); }
.voice-badge b { font-size: .82rem; font-weight: 900; }
.voice-badge small { font-size: .62rem; font-weight: 700; opacity: .92; }
.gd-cover { position: relative; }
.gd-cover .voice-badge { padding: 11px 10px; gap: 8px; }
.gd-cover .voice-badge svg { width: 20px; height: 20px; }
.gd-cover .voice-badge b { font-size: 1.05rem; }
.gd-cover .voice-badge small { font-size: .75rem; }
.gc-voice { gap: 4px; background: linear-gradient(90deg, #ff3d00, #ff8a00); color: #fff; }
.gc-voice svg { width: 12px; height: 12px; }
:root[data-theme="dark"] .gc-voice { background: linear-gradient(90deg, #ff3d00, #ff8a00); color: #fff; }
.voice-badge b, .voice-badge small { white-space: nowrap; }
.game-cover .voice-badge { padding: 8px 6px; }
.game-cover .voice-badge b { font-size: .9rem; }
.game-cover .voice-badge small { display: none; }

/* ---------- Trang đích cho quảng cáo (mua-ps5.html) ---------- */
.lp-hero { padding: 56px 0 64px; background: var(--hero-bg); }
.lp-hero-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; gap: 40px; }
.lp-hero h1 { font-size: clamp(1.9rem, 4.2vw, 3rem); font-weight: 800; }
.lp-hero h1 em { display: block; color: var(--primary); font-style: normal; }
.lp-lead { margin: 16px 0 0; max-width: 34em; color: var(--ink-2); font-size: 1.08rem; line-height: 1.6; }
.lp-from { margin: 18px 0 0; color: var(--ink-2); font-size: 1rem; }
.lp-from strong { margin-left: 6px; color: var(--price); font-size: 1.9rem; font-weight: 800; letter-spacing: -.02em; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.lp-trust { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.lp-trust li { display: flex; align-items: flex-start; gap: 10px; }
.lp-trust li > .i { flex-shrink: 0; width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--card); color: var(--primary); box-shadow: var(--shadow-sm); }
.lp-trust b { display: block; color: var(--ink); font-size: .95rem; }
.lp-trust span { color: var(--muted); font-size: .85rem; }
.lp-hero-media img { display: block; width: 100%; max-width: 480px; height: auto; margin: 0 auto; filter: drop-shadow(0 30px 40px rgba(11, 29, 58, .25)); }
.lp .section { padding: 64px 0; }
.lp-footer { padding-top: 8px; }
@media (max-width: 860px) {
  .lp-hero { padding: 28px 0 40px; }
  .lp-hero-grid { grid-template-columns: 1fr; gap: 16px; }
  .lp-hero-media { order: -1; }
  .lp-hero-media img { max-width: 260px; }
  .lp-cta .btn { flex: 1 1 100%; justify-content: center; }
  .lp .section { padding: 44px 0; }
}

/* Địa chỉ nhiều chi nhánh (mỗi dòng một chi nhánh trong "Thông tin shop") */
[data-text="address"] { white-space: pre-line; }

/* PingSell: chống tràn ngang do carousel/animation */
html,body{overflow-x:clip}
