/* =========================================================
   GAMELIVE — giao diện chính
   Màu: đen, tím neon, xanh dương. Font: Chakra Petch + Be Vietnam Pro
   ========================================================= */
:root {
  --bg: #030712;
  --bg-2: #060d1c;
  --panel: rgba(12, 22, 46, .55);
  --panel-solid: #0a1428;
  --panel-2: rgba(18, 36, 72, .5);
  --line: rgba(59, 130, 246, .18);
  --line-2: rgba(120, 140, 255, .14);
  --text: #eaf2ff;
  --muted: #93a4c4;
  --dim: #64759a;
  --purple: #3b82f6;
  --violet: #2563eb;
  --blue: #3b82f6;
  --cyan: #22d3ee;
  --pink: #ec4899;
  --ok: #22c55e;
  --warn: #f59e0b;
  --err: #f43f5e;
  --grad: linear-gradient(120deg, #3b82f6 0%, #0ea5e9 45%, #22d3ee 100%);
  --grad-soft: linear-gradient(120deg, rgba(59, 130, 246, .18), rgba(34, 211, 238, .12));
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 20px 60px -20px rgba(0, 0, 0, .8);
  --glow: 0 0 0 1px rgba(59, 130, 246, .35), 0 10px 40px -10px rgba(59, 130, 246, .55);
  --font-head: 'Chakra Petch', 'Segoe UI', system-ui, sans-serif;
  --font: 'Be Vietnam Pro', 'Segoe UI', system-ui, sans-serif;
  --wrap: 1240px;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font); font-size: 16px; line-height: 1.65;
  -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img, video { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 .5em; letter-spacing: .01em; }
p { margin: 0 0 1em; }
::selection { background: rgba(59, 130, 246, .45); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
.icon { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.icon.fill { fill: currentColor; stroke: none; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--muted); }
.dim { color: var(--dim); }
.center { text-align: center; }
.nowrap { white-space: nowrap; }
.mono { font-family: 'Consolas', 'SFMono-Regular', monospace; letter-spacing: .04em; }

/* ---------- Nền động ---------- */
.bg-fx { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bg-fx::before {
  content: ''; position: absolute; inset: -20%;
  background:
    radial-gradient(40% 35% at 15% 10%, rgba(37, 99, 235, .28), transparent 70%),
    radial-gradient(35% 30% at 90% 15%, rgba(59, 130, 246, .22), transparent 70%),
    radial-gradient(45% 40% at 60% 100%, rgba(59, 130, 246, .16), transparent 70%);
  animation: bgdrift 22s ease-in-out infinite alternate;
}
.bg-fx::after {
  content: ''; position: absolute; inset: 0; opacity: .5;
  background-image: linear-gradient(rgba(59, 130, 246, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(59, 130, 246, .06) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 0%, #000 0%, transparent 75%);
}
@keyframes bgdrift { to { transform: translate3d(3%, 4%, 0) scale(1.08); } }

/* ---------- Chuyển trang mượt ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-out .22s ease both; }
::view-transition-new(root) { animation: vt-in .38s cubic-bezier(.2, .8, .2, 1) both; }
.site-header { view-transition-name: header; }
@keyframes vt-out { to { opacity: 0; transform: translateY(-8px); filter: blur(4px); } }
@keyframes vt-in { from { opacity: 0; transform: translateY(14px); filter: blur(6px); } }
main { animation: page-in .5s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes page-in { from { opacity: 0; transform: translateY(10px); } }

/* ---------- Nút ---------- */
.btn {
  --b: var(--purple);
  position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: .82em 1.5em;
  border-radius: 12px; border: 1px solid rgba(255, 255, 255, .12); background: rgba(255, 255, 255, .04);
  font-family: var(--font-head); font-weight: 700; font-size: .95rem; letter-spacing: .06em; text-transform: uppercase;
  cursor: pointer; transition: transform .2s, box-shadow .25s, background .25s, border-color .25s; white-space: nowrap; isolation: isolate;
}
.btn:hover { transform: translateY(-2px); border-color: rgba(59, 130, 246, .6); box-shadow: 0 10px 30px -10px rgba(59, 130, 246, .6); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primary {
  border: 0; color: #fff; background: var(--grad); background-size: 200% 100%;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .15) inset, 0 12px 40px -10px rgba(37, 99, 235, .9), 0 0 24px -4px rgba(34, 211, 238, .45);
  animation: gradmove 6s ease infinite;
}
.btn-primary::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: -1; opacity: 0; transition: opacity .3s;
  background: var(--grad); filter: blur(18px);
}
.btn-primary:hover::after { opacity: .9; }
.btn-primary:hover { box-shadow: 0 0 0 1px rgba(255, 255, 255, .25) inset, 0 16px 50px -10px rgba(37, 99, 235, 1); }
.btn-buy { background: linear-gradient(120deg, #f43f5e, #d946ef 50%, #3b82f6); background-size: 200% 100%; animation: gradmove 5s ease infinite; border: 0; color: #fff; box-shadow: 0 12px 40px -12px rgba(236, 72, 153, .9); }
.btn-buy:hover { box-shadow: 0 16px 50px -10px rgba(236, 72, 153, 1); }
.btn-ghost { background: transparent; }
.btn-sm { padding: .55em 1em; font-size: .8rem; border-radius: 10px; }
.btn-lg { padding: 1em 1.9em; font-size: 1.02rem; }
.btn-block { width: 100%; }
.btn-danger { border-color: rgba(244, 63, 94, .45); color: #fda4af; }
.btn-danger:hover { border-color: var(--err); box-shadow: 0 10px 30px -10px rgba(244, 63, 94, .6); }
.btn[disabled] { opacity: .5; pointer-events: none; }
@keyframes gradmove { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

.chip {
  display: inline-flex; align-items: center; gap: .4em; padding: .3em .8em; border-radius: 999px; font-size: .78rem; font-weight: 600;
  background: rgba(59, 130, 246, .12); border: 1px solid rgba(59, 130, 246, .3); color: #bfdbfe; letter-spacing: .02em;
}
.chip.blue { background: rgba(59, 130, 246, .12); border-color: rgba(59, 130, 246, .35); color: #93c5fd; }
.chip.cyan { background: rgba(34, 211, 238, .1); border-color: rgba(34, 211, 238, .35); color: #67e8f9; }
.chip.ok { background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .4); color: #86efac; }
.chip.warn { background: rgba(245, 158, 11, .12); border-color: rgba(245, 158, 11, .4); color: #fcd34d; }
.chip.err { background: rgba(244, 63, 94, .12); border-color: rgba(244, 63, 94, .4); color: #fda4af; }
.chip.hot { background: linear-gradient(120deg, #f43f5e, #d946ef); border: 0; color: #fff; }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #f43f5e; box-shadow: 0 0 0 0 rgba(244, 63, 94, .7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(244, 63, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(244, 63, 94, 0); } }

/* ---------- Đầu trang ---------- */
.site-header { position: sticky; top: 0; z-index: 50; transition: background .3s, border-color .3s, backdrop-filter .3s; border-bottom: 1px solid transparent; }
.site-header.scrolled { background: rgba(4, 8, 18, .72); backdrop-filter: blur(16px) saturate(1.4); -webkit-backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.nav { display: flex; align-items: center; gap: 28px; height: 74px; }
.logo { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 1.32rem; letter-spacing: .08em; }
.logo-mark { width: 38px; height: 38px; filter: drop-shadow(0 0 10px rgba(59, 130, 246, .7)); transition: transform .5s; }
.logo:hover .logo-mark { transform: rotate(-12deg) scale(1.06); }
.logo b { font-weight: 700; }
.logo .shop { font-size: .62em; padding: .15em .45em; border-radius: 6px; background: var(--grad); color: #fff; margin-left: 2px; letter-spacing: .12em; }
.nav-links { display: flex; gap: 4px; margin-left: 12px; }
.nav-links a { position: relative; white-space: nowrap; padding: 8px 14px; border-radius: 10px; font-weight: 500; font-size: .95rem; color: var(--muted); transition: color .2s, background .2s; }
.nav-links a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.nav-links a.active { color: #fff; }
.nav-links a.active::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--grad); box-shadow: 0 0 10px var(--purple); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.nav-user { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); font-size: .9rem; font-weight: 600; transition: border-color .2s; }
.nav-user:hover { border-color: var(--purple); }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--grad); font-family: var(--font-head); font-weight: 700; font-size: .85rem; color: #fff; flex: none; }
@media (max-width: 640px) { .admin-btn span { display: none; } }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); cursor: pointer; place-items: center; }
.mobile-menu { display: none; }

/* ---------- Banner trang chủ ---------- */
.hero { position: relative; padding: 40px 0 70px; min-height: min(860px, calc(100vh - 74px)); display: flex; align-items: center; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px; align-items: center; }
.hero-kicker { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 12px; border-radius: 999px; background: rgba(244, 63, 94, .08); border: 1px solid rgba(244, 63, 94, .3); font-size: .85rem; font-weight: 600; color: #fecdd3; margin-bottom: 26px; }
.hero h1 { font-size: clamp(2.2rem, 4.3vw, 4rem); font-weight: 700; letter-spacing: -.01em; margin-bottom: 22px; text-transform: uppercase; }
.hero h1 .line2 { display: block; }
.hero-sub { font-size: clamp(1.02rem, 1.4vw, 1.18rem); color: var(--muted); max-width: 560px; margin-bottom: 34px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 46px; }
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; border: 1px solid var(--line); border-radius: var(--radius); background: rgba(6, 12, 26, .5); backdrop-filter: blur(8px); overflow: hidden; }
.hero-stats div { padding: 16px 18px; border-right: 1px solid var(--line); }
.hero-stats div:last-child { border-right: 0; }
.hero-stats b { display: block; font-family: var(--font-head); font-size: 1.45rem; line-height: 1.2; }
.hero-stats span { font-size: .78rem; color: var(--muted); }
.hero-visual { position: relative; aspect-ratio: 1 / 1.02; width: 100%; }
.hero-visual canvas { position: absolute; inset: -6%; width: 112% !important; height: 112% !important; -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%); mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 70%, transparent 100%); }
.hero-fallback { position: absolute; inset: 0; display: grid; place-items: center; transition: opacity .8s; }
.hero-visual.ready .hero-fallback { opacity: 0; pointer-events: none; }
.phone-2d { height: 78%; aspect-ratio: 9/18; border-radius: 34px; border: 2px solid rgba(59, 130, 246, .7); background: linear-gradient(160deg, #0c2048, #040a18); box-shadow: 0 0 60px rgba(59, 130, 246, .45), inset 0 0 40px rgba(34, 211, 238, .15); transform: perspective(900px) rotateY(-16deg) rotateX(6deg); animation: float 6s ease-in-out infinite; }
@keyframes float { 50% { transform: perspective(900px) rotateY(-12deg) rotateX(4deg) translateY(-14px); } }
.hero-orb { position: absolute; width: 70%; aspect-ratio: 1; left: 15%; top: 12%; border-radius: 50%; background: radial-gradient(circle, rgba(37, 99, 235, .5), rgba(59, 130, 246, .15) 50%, transparent 70%); filter: blur(30px); z-index: -1; animation: orb 8s ease-in-out infinite alternate; }
@keyframes orb { to { transform: scale(1.15) translate(4%, -3%); } }
.scroll-hint { position: absolute; bottom: 18px; left: 50%; transform: translateX(-50%); font-size: .72rem; letter-spacing: .3em; color: var(--dim); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.scroll-hint i { width: 22px; height: 34px; border: 2px solid var(--dim); border-radius: 12px; position: relative; }
.scroll-hint i::after { content: ''; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px; border-radius: 2px; background: var(--purple); animation: wheel 1.8s infinite; }
@keyframes wheel { 60% { transform: translateY(9px); opacity: 0; } 100% { opacity: 0; } }

/* Dải chạy chữ */
.marquee { border-block: 1px solid var(--line); background: rgba(6, 12, 26, .6); overflow: hidden; padding: 16px 0; }
.marquee-track { display: flex; gap: 56px; width: max-content; animation: marquee 32s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 12px; font-family: var(--font-head); font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); font-size: .9rem; white-space: nowrap; }
.marquee span .icon { color: var(--purple); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Khối nội dung ---------- */
.section { padding: 100px 0; position: relative; }
.section-sm { padding: 64px 0; }
.sec-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 44px; flex-wrap: wrap; }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-size: .82rem; font-weight: 700; letter-spacing: .28em; text-transform: uppercase; color: var(--cyan); margin-bottom: 12px; }
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--grad); box-shadow: 0 0 8px var(--cyan); }
.sec-head.center .eyebrow::after { content: ''; width: 26px; height: 2px; background: var(--grad); box-shadow: 0 0 8px var(--cyan); }
.sec-title { font-size: clamp(1.8rem, 3.6vw, 2.9rem); text-transform: uppercase; margin: 0; }
.sec-desc { color: var(--muted); max-width: 620px; margin: 14px 0 0; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
.panel-pad { padding: 28px; }
.glow-border { position: relative; }
.glow-border::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); opacity: .55; pointer-events: none;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude;
}

/* Hiện dần khi cuộn */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s cubic-bezier(.2, .8, .2, 1), transform .8s cubic-bezier(.2, .8, .2, 1); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Video giới thiệu ---------- */
.video-frame { position: relative; border-radius: 24px; padding: 10px; background: linear-gradient(140deg, rgba(59, 130, 246, .5), rgba(59, 130, 246, .2) 40%, rgba(34, 211, 238, .5)); box-shadow: 0 30px 90px -30px rgba(37, 99, 235, .8); }
.video-inner { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #000; }
.video-inner iframe, .video-inner video { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; object-fit: cover; }
.video-corner { position: absolute; width: 34px; height: 34px; border: 3px solid var(--cyan); filter: drop-shadow(0 0 6px var(--cyan)); }
.video-corner.tl { top: -6px; left: -6px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; }
.video-corner.tr { top: -6px; right: -6px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.video-corner.bl { bottom: -6px; left: -6px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; }
.video-corner.br { bottom: -6px; right: -6px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
/* Màn hình LIVE minh họa khi chưa có video */
.showcase { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr minmax(180px, 30%); background: #040a16; }
.showcase-stage { position: relative; overflow: hidden; }
.showcase-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transform: scale(1.12); transition: opacity 1.2s, transform 7s linear; }
.showcase-stage img.on { opacity: 1; transform: scale(1); }
.showcase-stage::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, #040a16), linear-gradient(0deg, rgba(4, 8, 16, .85), transparent 40%); }
.showcase-top { position: absolute; top: 16px; left: 16px; z-index: 2; display: flex; gap: 8px; }
.showcase-top .badge-live { display: inline-flex; align-items: center; gap: 6px; background: #f43f5e; color: #fff; font-weight: 800; font-size: .72rem; padding: 4px 10px; border-radius: 6px; letter-spacing: .1em; }
.showcase-top .viewers { background: rgba(0, 0, 0, .55); font-size: .74rem; padding: 4px 10px; border-radius: 6px; }
.showcase-title { position: absolute; left: 22px; bottom: 20px; z-index: 2; }
.showcase-title b { display: block; font-family: var(--font-head); font-size: clamp(1.1rem, 2.6vw, 2rem); text-transform: uppercase; }
.showcase-title span { color: var(--muted); font-size: .85rem; }
.showcase-chat { position: relative; padding: 14px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden; border-left: 1px solid var(--line); mask-image: linear-gradient(transparent, #000 30%); }
.chat-msg { display: flex; gap: 8px; align-items: flex-start; font-size: .78rem; line-height: 1.35; padding: 7px 9px; border-radius: 10px; background: rgba(255, 255, 255, .05); animation: chat-in .45s cubic-bezier(.2, .8, .2, 1) both; }
.chat-msg .who { font-weight: 700; color: #93c5fd; }
.chat-msg.gift { background: linear-gradient(90deg, rgba(236, 72, 153, .25), rgba(59, 130, 246, .15)); border: 1px solid rgba(236, 72, 153, .4); }
.chat-msg.like .who { color: #fda4af; }
.chat-msg .em { font-size: 1rem; line-height: 1; }
@keyframes chat-in { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.float-hearts { position: absolute; right: 30%; bottom: 0; width: 60px; height: 70%; pointer-events: none; z-index: 3; }
.float-hearts i { position: absolute; bottom: 0; font-style: normal; font-size: 22px; animation: heart-up 3s ease-out forwards; }
@keyframes heart-up { 0% { transform: translate(0, 0) scale(.5); opacity: 0; } 15% { opacity: 1; } 100% { transform: translate(var(--x, 0), -100%) scale(1.2); opacity: 0; } }

/* ---------- Thẻ game 3D ---------- */
.game-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 26px; }
.gcard-wrap { perspective: 1000px; }
.gcard {
  --rx: 0deg; --ry: 0deg; --mx: 50%; --my: 50%; --accent: var(--purple);
  position: relative; display: flex; flex-direction: column; height: 100%; border-radius: 20px; background: linear-gradient(165deg, rgba(16, 30, 64, .85), rgba(6, 12, 26, .92));
  border: 1px solid var(--line); transform-style: preserve-3d; transform: rotateX(var(--rx)) rotateY(var(--ry));
  transition: transform .5s cubic-bezier(.2, .8, .2, 1), box-shadow .4s, border-color .4s; will-change: transform;
}
.gcard.tilting { transition: transform .08s linear, box-shadow .4s, border-color .4s; }
.gcard:hover { border-color: color-mix(in srgb, var(--accent) 70%, transparent); box-shadow: 0 30px 70px -25px color-mix(in srgb, var(--accent) 80%, transparent), 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent); }
.gcard-glare { position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 5; opacity: 0; transition: opacity .3s; background: radial-gradient(circle at var(--mx) var(--my), rgba(255, 255, 255, .18), transparent 45%); mix-blend-mode: overlay; }
.gcard:hover .gcard-glare { opacity: 1; }
.gcard-media { position: relative; aspect-ratio: 16 / 10; border-radius: 20px 20px 0 0; overflow: hidden; transform: translateZ(20px); }
.gcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s cubic-bezier(.2, .8, .2, 1); }
.gcard:hover .gcard-media img { transform: scale(1.08); }
.gcard-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, rgba(6, 12, 26, .95), transparent 55%); }
.gcard-badges { position: absolute; top: 12px; left: 12px; right: 12px; display: flex; gap: 6px; flex-wrap: wrap; z-index: 2; }
.gcard-badges .chip { backdrop-filter: blur(6px); background: rgba(6, 12, 26, .6); }
.gcard-badges .chip.hot { background: linear-gradient(120deg, #f43f5e, #d946ef); }
.gcard-play { position: absolute; z-index: 2; right: 14px; bottom: 14px; width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .25); transform: scale(.8); opacity: 0; transition: .35s; }
.gcard:hover .gcard-play { transform: scale(1); opacity: 1; }
.gcard-body { padding: 4px 20px 20px; display: flex; flex-direction: column; flex: 1; transform: translateZ(36px); }
.gcard-genres { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); font-weight: 700; margin: -6px 0 6px; position: relative; z-index: 2; }
.gcard h3 { font-size: 1.32rem; margin: 0 0 8px; text-transform: uppercase; }
.gcard h3 a::after { content: ''; position: absolute; inset: 0; z-index: 1; }
.gcard p { color: var(--muted); font-size: .9rem; margin: 0 0 14px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcard-feats { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 16px; }
.gcard-feats span { font-size: .72rem; padding: 3px 8px; border-radius: 6px; background: rgba(255, 255, 255, .05); color: var(--muted); display: inline-flex; gap: 4px; align-items: center; }
.gcard-price { margin-top: auto; display: flex; justify-content: space-between; align-items: flex-end; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line); }
.gcard-price small { display: block; font-size: .72rem; color: var(--dim); text-transform: uppercase; letter-spacing: .08em; }
.gcard-price b { font-family: var(--font-head); font-size: 1.2rem; }
.gcard-price .life b { color: #7dd3fc; }
.gcard-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; position: relative; z-index: 2; }
.gcard-actions .btn { padding: .7em .6em; font-size: .78rem; }

/* Danh sách game mới */
.new-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.new-item { display: grid; grid-template-columns: 180px 1fr; gap: 18px; padding: 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: transform .3s, border-color .3s, background .3s; position: relative; }
.new-item:hover { transform: translateX(6px); border-color: rgba(34, 211, 238, .5); background: rgba(18, 36, 72, .6); }
.new-item img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; }
.new-item h3 { font-size: 1.1rem; margin: 4px 0 6px; text-transform: uppercase; }
.new-item p { font-size: .86rem; color: var(--muted); margin: 0 0 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.new-item .meta { display: flex; gap: 10px; align-items: center; font-size: .78rem; color: var(--dim); flex-wrap: wrap; }

/* Lợi ích */
.benefits { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.benefit { padding: 30px 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); position: relative; overflow: hidden; transition: transform .35s, border-color .35s; }
.benefit::before { content: ''; position: absolute; width: 220px; height: 220px; right: -90px; top: -90px; border-radius: 50%; background: radial-gradient(circle, var(--c, rgba(59, 130, 246, .35)), transparent 70%); transition: transform .6s; }
.benefit:hover { transform: translateY(-6px); border-color: rgba(59, 130, 246, .5); }
.benefit:hover::before { transform: scale(1.4); }
.benefit-icon { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; margin-bottom: 20px; background: var(--grad-soft); border: 1px solid var(--line); font-size: 1.5rem; color: #dbeafe; position: relative; }
.benefit-icon .icon { width: 28px; height: 28px; }
.benefit h3 { font-size: 1.15rem; margin-bottom: 8px; text-transform: uppercase; }
.benefit p { color: var(--muted); font-size: .92rem; margin: 0; position: relative; }

/* Quy trình */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: st; position: relative; }
.step { position: relative; padding: 30px 26px 26px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); counter-increment: st; }
.step::before { content: counter(st, decimal-leading-zero); position: absolute; top: 18px; right: 22px; font-family: var(--font-head); font-size: 3.2rem; font-weight: 700; line-height: 1; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .35; }
.step-dot { width: 14px; height: 14px; border-radius: 50%; background: var(--grad); box-shadow: 0 0 0 5px rgba(59, 130, 246, .15), 0 0 18px var(--purple); margin-bottom: 18px; }
.step h3 { font-size: 1.1rem; text-transform: uppercase; margin-bottom: 8px; padding-right: 60px; }
.step p { margin: 0; color: var(--muted); font-size: .92rem; }

/* Đánh giá */
.reviews { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.review { padding: 28px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 18px; }
.stars { color: #fbbf24; letter-spacing: 2px; font-size: 1rem; }
.review blockquote { margin: 0; font-size: 1rem; color: #dbe7ff; flex: 1; }
.review-who { display: flex; align-items: center; gap: 12px; }
.review-who .avatar { width: 44px; height: 44px; font-size: 1rem; }
.review-who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.review-who b { display: block; }
.review-who span { font-size: .82rem; color: var(--muted); }

/* Dải kêu gọi */
.cta-band { position: relative; overflow: hidden; border-radius: 28px; padding: 64px 48px; text-align: center; background: radial-gradient(80% 140% at 50% 0%, rgba(37, 99, 235, .55), transparent 60%), linear-gradient(140deg, #0b1a3d, #0a1030); border: 1px solid rgba(59, 130, 246, .35); }
.cta-band::after { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px); background-size: 40px 40px; mask-image: radial-gradient(ellipse at center, #000, transparent 70%); pointer-events: none; }
.cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.8rem); text-transform: uppercase; }
.cta-band p { color: #c5d4ee; max-width: 620px; margin: 0 auto 28px; }
.cta-band .btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; position: relative; z-index: 1; }

/* ---------- Đầu trang con ---------- */
.page-hero { padding: 56px 0 34px; position: relative; }
.page-hero h1 { font-size: clamp(2rem, 4.4vw, 3.4rem); text-transform: uppercase; margin-bottom: 10px; }
.page-hero p { color: var(--muted); max-width: 680px; margin: 0; }
.crumbs { display: flex; gap: 8px; align-items: center; font-size: .85rem; color: var(--dim); margin-bottom: 14px; flex-wrap: wrap; }
.crumbs a:hover { color: var(--cyan); }

/* Bộ lọc kho game */
.filters { display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-bottom: 30px; padding: 12px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); position: sticky; top: 84px; z-index: 10; backdrop-filter: blur(14px); }
.filter-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.filter-tabs a { padding: 8px 16px; border-radius: 10px; font-size: .9rem; font-weight: 600; color: var(--muted); border: 1px solid transparent; display: inline-flex; gap: 6px; align-items: center; transition: .2s; }
.filter-tabs a small { font-size: .72rem; padding: 0 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); }
.filter-tabs a:hover { color: var(--text); background: rgba(255, 255, 255, .04); }
.filter-tabs a.on { color: #fff; background: var(--grad-soft); border-color: rgba(59, 130, 246, .5); box-shadow: 0 0 20px -6px rgba(59, 130, 246, .7); }
.filter-tools { display: flex; gap: 8px; }
.search-box { position: relative; }
.search-box .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--dim); }
.search-box input { padding-left: 38px !important; width: 220px; }
.empty { text-align: center; padding: 70px 20px; border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }
.empty .icon { width: 46px; height: 46px; color: var(--purple); margin-bottom: 12px; }

/* ---------- Chi tiết game ---------- */
.game-hero { position: relative; padding: 36px 0 50px; overflow: hidden; }
.game-hero-bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(50px) saturate(1.4); opacity: .32; z-index: -1; transform: scale(1.1); }
.game-hero-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(0deg, var(--bg), transparent 60%); }
.game-layout { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; }
.game-title { font-size: clamp(2rem, 4.6vw, 3.6rem); text-transform: uppercase; margin-bottom: 12px; }
.game-tagline { font-size: 1.12rem; color: #cddaf2; margin-bottom: 18px; }
.media-main { position: relative; aspect-ratio: 16/9; border-radius: var(--radius); overflow: hidden; background: #000; border: 1px solid var(--line); box-shadow: var(--shadow); }
.media-main > * { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; }
.media-thumbs { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
.media-thumbs button { flex: none; width: 120px; aspect-ratio: 16/10; border-radius: 10px; overflow: hidden; border: 2px solid transparent; padding: 0; cursor: pointer; background: #000; position: relative; opacity: .65; transition: .2s; }
.media-thumbs button.on, .media-thumbs button:hover { border-color: var(--purple); opacity: 1; }
.media-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.media-thumbs .vid-ico { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(0, 0, 0, .35); }
.buy-box { position: sticky; top: 94px; padding: 24px; border-radius: 22px; background: linear-gradient(170deg, rgba(16, 34, 80, .9), rgba(8, 14, 32, .95)); border: 1px solid rgba(59, 130, 246, .35); box-shadow: 0 30px 80px -30px rgba(37, 99, 235, .7); }
.buy-box h3 { font-size: .9rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 14px; }
.plans { display: grid; gap: 10px; margin-bottom: 18px; }
.plan-opt { position: relative; display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line); background: rgba(255, 255, 255, .02); cursor: pointer; transition: .2s; }
.plan-opt:hover { border-color: rgba(59, 130, 246, .5); }
.plan-opt input { position: absolute; opacity: 0; }
.plan-opt .radio { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--dim); flex: none; display: grid; place-items: center; transition: .2s; }
.plan-opt .radio::after { content: ''; width: 10px; height: 10px; border-radius: 50%; background: var(--grad); transform: scale(0); transition: .2s; }
.plan-opt:has(input:checked) { border-color: var(--purple); background: rgba(59, 130, 246, .1); box-shadow: 0 0 0 1px var(--purple), 0 0 30px -10px var(--purple); }
.plan-opt:has(input:checked) .radio { border-color: var(--purple); }
.plan-opt:has(input:checked) .radio::after { transform: scale(1); }
.plan-opt:has(input:focus-visible) { outline: 2px solid var(--cyan); outline-offset: 2px; }
.plan-name { flex: 1; }
.plan-name b { display: block; font-size: .95rem; }
.plan-name small { color: var(--dim); font-size: .78rem; }
.plan-price { font-family: var(--font-head); font-weight: 700; font-size: 1.1rem; text-align: right; }
.plan-price small { display: block; font-family: var(--font); font-weight: 500; font-size: .72rem; color: var(--ok); }
.plan-tag { position: absolute; top: -9px; right: 14px; font-size: .64rem; font-weight: 800; padding: 2px 8px; border-radius: 6px; background: linear-gradient(120deg, #f43f5e, #d946ef); letter-spacing: .08em; text-transform: uppercase; }
.buy-note { display: grid; gap: 8px; margin-top: 18px; font-size: .84rem; color: var(--muted); }
.buy-note div { display: flex; gap: 8px; align-items: center; }
.buy-note .icon { color: var(--ok); }
.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 26px; overflow-x: auto; scrollbar-width: none; }
.tabs button { background: none; border: 0; padding: 14px 18px; cursor: pointer; font-family: var(--font-head); font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); position: relative; white-space: nowrap; font-size: .92rem; }
.tabs button.on { color: #fff; }
.tabs button.on::after { content: ''; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 2px; background: var(--grad); box-shadow: 0 0 10px var(--purple); }
.tab-pane { display: none; animation: page-in .4s both; }
.tab-pane.on { display: block; }
.prose p { color: #cfdcf2; }
.interact-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.interact { display: flex; gap: 14px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--panel); border: 1px solid var(--line); }
.interact-ico { width: 40px; height: 40px; border-radius: 12px; flex: none; display: grid; place-items: center; font-size: 1.15rem; background: rgba(59, 130, 246, .14); }
.interact-ico.gift { background: rgba(236, 72, 153, .16); }
.interact-ico.like { background: rgba(244, 63, 94, .16); }
.interact-ico.join { background: rgba(34, 211, 238, .14); }
.interact b { display: block; font-size: .95rem; }
.interact span { font-size: .86rem; color: var(--muted); }
.check-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.check-list li { display: flex; gap: 10px; align-items: flex-start; }
.check-list .icon { color: var(--cyan); margin-top: .2em; }
.spec-table { width: 100%; border-collapse: collapse; }
.spec-table td { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: .93rem; }
.spec-table td:first-child { color: var(--muted); width: 44%; }
.mobile-buy { display: none; }

/* ---------- Bảng giá ---------- */
.plan-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-bottom: 70px; }
.plan-card { padding: 30px 24px; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); position: relative; display: flex; flex-direction: column; transition: transform .3s; }
.plan-card:hover { transform: translateY(-6px); }
.plan-card.best { background: linear-gradient(170deg, rgba(30, 58, 138, .55), rgba(10, 18, 40, .9)); border-color: rgba(59, 130, 246, .6); box-shadow: 0 30px 80px -30px rgba(59, 130, 246, .8); }
.plan-card h3 { font-size: 1.25rem; text-transform: uppercase; margin-bottom: 4px; }
.plan-card .from { font-size: .82rem; color: var(--muted); margin-bottom: 18px; }
.plan-card .big { font-family: var(--font-head); font-size: 2rem; font-weight: 700; line-height: 1; margin-bottom: 4px; }
.plan-card ul { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 10px; font-size: .9rem; color: #cfdcf2; }
.plan-card li { display: flex; gap: 8px; }
.plan-card li .icon { color: var(--ok); margin-top: .2em; }
.price-table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.price-table { width: 100%; border-collapse: collapse; min-width: 760px; }
.price-table th, .price-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line); }
.price-table th { font-family: var(--font-head); font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); background: rgba(255, 255, 255, .02); }
.price-table tbody tr { transition: background .2s; }
.price-table tbody tr:hover { background: rgba(59, 130, 246, .06); }
.price-table td.p { font-family: var(--font-head); font-weight: 600; font-size: 1.02rem; white-space: nowrap; }
.price-table .g { display: flex; align-items: center; gap: 12px; }
.price-table .g img { width: 72px; aspect-ratio: 16/10; object-fit: cover; border-radius: 8px; }
.price-table .g b { display: block; }

/* ---------- Hướng dẫn ---------- */
.timeline { position: relative; display: grid; gap: 26px; max-width: 880px; margin: 0 auto; }
.timeline::before { content: ''; position: absolute; left: 31px; top: 10px; bottom: 10px; width: 2px; background: linear-gradient(var(--purple), var(--blue), var(--cyan)); opacity: .5; }
.tl-item { display: grid; grid-template-columns: 64px 1fr; gap: 22px; align-items: start; }
.tl-num { width: 64px; height: 64px; border-radius: 18px; display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 1.4rem; background: var(--panel-solid); border: 1px solid rgba(59, 130, 246, .5); box-shadow: 0 0 30px -8px var(--purple); position: relative; z-index: 1; }
.tl-body { padding: 22px 24px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.tl-body h3 { font-size: 1.15rem; text-transform: uppercase; }
.tl-body p { margin: 0; color: var(--muted); white-space: pre-line; }

/* ---------- Hỏi đáp ---------- */
.faq-list { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; }
.faq { border-radius: 16px; background: var(--panel); border: 1px solid var(--line); transition: border-color .3s; }
.faq[open] { border-color: rgba(59, 130, 246, .55); box-shadow: 0 0 40px -16px var(--purple); }
.faq summary { list-style: none; cursor: pointer; padding: 20px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-weight: 600; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { width: 30px; height: 30px; flex: none; border-radius: 10px; display: grid; place-items: center; background: rgba(59, 130, 246, .14); transition: transform .3s; }
.faq[open] summary .pm { transform: rotate(45deg); background: var(--grad); }
.faq .ans { padding: 0 24px 22px; color: var(--muted); white-space: pre-line; }

/* ---------- Biểu mẫu ---------- */
.form-grid { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label.field { display: grid; gap: 7px; font-size: .88rem; font-weight: 600; color: #cfdcf2; }
label.field small { font-weight: 400; color: var(--dim); }
.input, input[type=text].input, textarea.input, select.input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(59, 130, 246, .25); background: rgba(4, 8, 16, .7); color: var(--text);
  transition: border-color .2s, box-shadow .2s; font-size: .95rem;
}
.input:focus { outline: none; border-color: var(--purple); box-shadow: 0 0 0 4px rgba(59, 130, 246, .18); }
textarea.input { min-height: 120px; resize: vertical; line-height: 1.55; }
select.input { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%23a39fc8' stroke-width='2' fill='none'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
select.input option { background: #0a1428; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: .9rem; color: var(--muted); cursor: pointer; }
.check input { width: 18px; height: 18px; accent-color: var(--purple); margin-top: 2px; flex: none; }
.hp { position: absolute; left: -9999px; }
.flash { display: flex; gap: 10px; align-items: center; padding: 14px 18px; border-radius: 14px; margin-bottom: 20px; font-size: .94rem; animation: page-in .4s both; }
.flash.ok { background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .4); color: #bbf7d0; }
.flash.err { background: rgba(244, 63, 94, .1); border: 1px solid rgba(244, 63, 94, .45); color: #fecdd3; }
.toast-wrap { position: fixed; z-index: 100; top: 86px; right: 20px; display: grid; gap: 10px; max-width: min(420px, calc(100vw - 40px)); }
.toast-wrap .flash { margin: 0; box-shadow: var(--shadow); backdrop-filter: blur(12px); background-color: rgba(6, 12, 26, .9); }

/* Đăng nhập / đăng ký */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; max-width: 1040px; margin: 40px auto 80px; border-radius: 26px; overflow: hidden; border: 1px solid var(--line); background: var(--panel); box-shadow: var(--shadow); }
.auth-art { position: relative; padding: 48px 40px; background: radial-gradient(90% 70% at 20% 10%, rgba(37, 99, 235, .6), transparent 60%), radial-gradient(70% 60% at 90% 90%, rgba(34, 211, 238, .35), transparent 60%), #06102a; display: flex; flex-direction: column; justify-content: flex-end; min-height: 520px; overflow: hidden; }
.auth-art h2 { font-size: 2rem; text-transform: uppercase; position: relative; }
.auth-art p { color: #c5d4ee; position: relative; }
.auth-art .ring { position: absolute; border-radius: 50%; border: 1px solid rgba(59, 130, 246, .45); top: 50%; left: 50%; transform: translate(-50%, -70%); animation: spin 30s linear infinite; }
.auth-art .ring.r1 { width: 300px; height: 300px; border-style: dashed; }
.auth-art .ring.r2 { width: 200px; height: 200px; border-color: rgba(34, 211, 238, .5); animation-direction: reverse; animation-duration: 20s; }
.auth-art .core { position: absolute; width: 90px; height: 90px; top: 50%; left: 50%; transform: translate(-50%, -125%); filter: drop-shadow(0 0 30px var(--purple)); }
@keyframes spin { to { transform: translate(-50%, -70%) rotate(360deg); } }
.auth-form { padding: 48px 44px; }
.auth-form h1 { font-size: 1.8rem; text-transform: uppercase; }
.auth-switch { margin-top: 22px; text-align: center; color: var(--muted); font-size: .92rem; }
.auth-switch a { color: var(--cyan); font-weight: 600; }

/* ---------- Tài khoản ---------- */
.acc-layout { display: grid; grid-template-columns: 260px 1fr; gap: 28px; align-items: start; padding-bottom: 80px; }
.acc-nav { position: sticky; top: 94px; padding: 14px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); display: grid; gap: 4px; }
.acc-nav .who { display: flex; gap: 12px; align-items: center; padding: 10px 10px 16px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.acc-nav .who .avatar { width: 44px; height: 44px; font-size: 1.1rem; }
.acc-nav .who b { display: block; line-height: 1.3; }
.acc-nav .who span { font-size: .8rem; color: var(--dim); word-break: break-all; }
.acc-nav a, .acc-nav button { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 10px; color: var(--muted); font-weight: 500; font-size: .94rem; background: none; border: 0; cursor: pointer; text-align: left; width: 100%; transition: .2s; }
.acc-nav a:hover, .acc-nav button:hover { background: rgba(255, 255, 255, .04); color: var(--text); }
.acc-nav a.on { background: var(--grad-soft); color: #fff; box-shadow: inset 2px 0 0 var(--purple); }
.stat-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 26px; }
.stat-card { padding: 20px 22px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); }
.stat-card span { font-size: .82rem; color: var(--muted); display: flex; gap: 8px; align-items: center; }
.stat-card b { display: block; font-family: var(--font-head); font-size: 1.8rem; margin-top: 4px; line-height: 1.2; }
.lic-list { display: grid; gap: 16px; }
.lic { display: grid; grid-template-columns: 150px 1fr auto; gap: 20px; padding: 16px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); align-items: center; }
.lic img { width: 100%; aspect-ratio: 16/10; object-fit: cover; border-radius: 12px; }
.lic h3 { font-size: 1.1rem; margin: 0 0 6px; text-transform: uppercase; }
.lic-key { display: inline-flex; align-items: center; gap: 8px; padding: 6px 8px 6px 12px; border-radius: 10px; background: rgba(4, 8, 16, .8); border: 1px dashed rgba(59, 130, 246, .5); font-size: .92rem; margin: 6px 0; }
.copy-btn { border: 0; background: rgba(59, 130, 246, .2); color: #dbeafe; width: 30px; height: 30px; border-radius: 8px; cursor: pointer; display: grid; place-items: center; transition: .2s; }
.copy-btn:hover { background: var(--purple); color: #fff; }
.copy-btn.done { background: var(--ok); color: #fff; }
.lic-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: .84rem; color: var(--muted); }
.lic-actions { display: grid; gap: 8px; }
.progress { height: 6px; border-radius: 6px; background: rgba(255, 255, 255, .06); overflow: hidden; margin-top: 8px; max-width: 320px; }
.progress i { display: block; height: 100%; background: var(--grad); border-radius: inherit; }
.table-wrap { overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); background: var(--panel); }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th, .table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table th { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--dim); font-weight: 700; background: rgba(255, 255, 255, .02); white-space: nowrap; }
.table tbody tr:hover { background: rgba(59, 130, 246, .05); }
.table tr:last-child td { border-bottom: 0; }
.table a.link { color: var(--cyan); font-weight: 600; }

/* Thanh toán */
.pay-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 24px; align-items: start; }
.qr-box { text-align: center; padding: 26px; }
.qr-box img { width: min(320px, 100%); margin: 0 auto 14px; border-radius: 16px; background: #fff; padding: 8px; box-shadow: 0 0 0 4px rgba(59, 130, 246, .4), 0 20px 60px -20px var(--purple); }
.pay-info { display: grid; gap: 2px; }
.pay-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.pay-row span { color: var(--muted); font-size: .9rem; }
.pay-row b { display: flex; align-items: center; gap: 8px; text-align: right; }
.pay-row b.amt { font-family: var(--font-head); font-size: 1.4rem; color: #7dd3fc; }
.status-big { display: flex; gap: 14px; align-items: center; padding: 18px 20px; border-radius: 16px; margin-bottom: 22px; }
.status-big.pending { background: rgba(245, 158, 11, .08); border: 1px solid rgba(245, 158, 11, .35); }
.status-big.paid { background: rgba(34, 197, 94, .08); border: 1px solid rgba(34, 197, 94, .4); }
.status-big.cancelled { background: rgba(244, 63, 94, .08); border: 1px solid rgba(244, 63, 94, .35); }
.spinner { width: 22px; height: 22px; border-radius: 50%; border: 3px solid rgba(245, 158, 11, .3); border-top-color: var(--warn); animation: rot 1s linear infinite; flex: none; }
@keyframes rot { to { transform: rotate(360deg); } }

/* ---------- Liên hệ ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.3fr; gap: 26px; align-items: start; }
.contact-cards { display: grid; gap: 14px; }
.contact-card { display: flex; gap: 16px; align-items: center; padding: 18px 20px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); transition: .25s; }
a.contact-card:hover { border-color: var(--cyan); transform: translateX(4px); }
.contact-card .ci { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-soft); border: 1px solid var(--line); flex: none; }
.contact-card .ci .icon { width: 22px; height: 22px; color: #dbeafe; }
.contact-card small { display: block; color: var(--dim); font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; }

/* ---------- Chân trang ---------- */
.site-footer { margin-top: 60px; border-top: 1px solid var(--line); background: linear-gradient(180deg, rgba(6, 12, 26, .4), #02050c); position: relative; }
.site-footer::before { content: ''; position: absolute; top: -1px; left: 10%; right: 10%; height: 1px; background: var(--grad); box-shadow: 0 0 20px var(--purple); }
.foot-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 40px; padding: 64px 0 40px; }
.foot-grid h4 { font-size: .85rem; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid ul a { color: #cbd8ef; font-size: .93rem; transition: color .2s; }
.foot-grid ul a:hover { color: var(--cyan); }
.foot-about { color: var(--muted); font-size: .92rem; margin: 16px 0 20px; max-width: 340px; }
.socials { display: flex; gap: 10px; }
.socials a { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; border: 1px solid var(--line); background: rgba(255, 255, 255, .03); transition: .2s; }
.socials a:hover { border-color: var(--purple); background: rgba(59, 130, 246, .15); transform: translateY(-3px); }
.foot-contact li { display: flex; gap: 10px; color: #cbd8ef; font-size: .92rem; }
.foot-contact .icon { color: var(--purple); margin-top: .25em; }
.foot-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 22px 0 30px; border-top: 1px solid rgba(255, 255, 255, .05); font-size: .84rem; color: var(--dim); }

/* Nút lên đầu trang */
.to-top { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 46px; height: 46px; border-radius: 14px; border: 1px solid var(--line); background: rgba(6, 12, 26, .8); backdrop-filter: blur(10px); cursor: pointer; display: grid; place-items: center; opacity: 0; transform: translateY(20px); transition: .3s; pointer-events: none; }
.to-top.show { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { border-color: var(--purple); }

.page-error { text-align: center; padding: 120px 0; }
.page-error .code { font-family: var(--font-head); font-size: clamp(4rem, 14vw, 9rem); font-weight: 700; line-height: 1; }

/* =========================== Điện thoại & máy tính bảng =========================== */
@media (max-width: 1180px) {
  .nav { gap: 14px; }
  .nav-links { margin-left: 0; }
  .nav-links a { padding: 8px 10px; font-size: .9rem; }
}
@media (max-width: 1100px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 20px; min-height: 0; }
  .hero-visual { max-width: 520px; margin: 0 auto; order: -1; aspect-ratio: 1 / .82; }
  .hero-text { text-align: center; }
  .hero-sub { margin-inline: auto; }
  .hero-cta { justify-content: center; }
  .scroll-hint { display: none; }
  .benefits, .reviews, .steps { grid-template-columns: repeat(2, 1fr); }
  .plan-cards { grid-template-columns: repeat(2, 1fr); }
  .game-layout { grid-template-columns: 1fr; }
  .buy-box { position: static; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .new-list { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .nav-links, .nav-right .hide-m { display: none; }
  .burger { display: grid; }
  .mobile-menu { display: block; position: fixed; inset: 74px 0 0; z-index: 49; background: rgba(3, 7, 18, .97); backdrop-filter: blur(16px); padding: 20px 24px 40px; transform: translateY(-10px); opacity: 0; pointer-events: none; transition: .3s; overflow-y: auto; }
  .mobile-menu.open { transform: none; opacity: 1; pointer-events: auto; }
  .mobile-menu a { display: flex; align-items: center; gap: 14px; padding: 16px 6px; border-bottom: 1px solid var(--line); font-family: var(--font-head); font-size: 1.15rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
  .mobile-menu a.active { color: var(--cyan); }
  .mobile-menu .btns { display: grid; gap: 12px; margin-top: 24px; }
  body.menu-open { overflow: hidden; }
  .acc-layout { grid-template-columns: 1fr; }
  .acc-nav { position: static; grid-template-columns: repeat(2, 1fr); }
  .acc-nav .who { grid-column: 1 / -1; }
  .pay-grid, .contact-grid, .auth-wrap { grid-template-columns: 1fr; }
  .auth-art { min-height: 220px; padding: 30px; }
  .auth-art .ring, .auth-art .core { display: none; }
  .lic { grid-template-columns: 110px 1fr; }
  .lic-actions { grid-column: 1 / -1; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); }
  .interact-list { grid-template-columns: 1fr; }
  .mobile-buy { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); gap: 12px; align-items: center; background: rgba(5, 10, 22, .94); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
  .mobile-buy .p { flex: 1; line-height: 1.2; }
  .mobile-buy .p small { color: var(--dim); font-size: .74rem; display: block; }
  .mobile-buy .p b { font-family: var(--font-head); font-size: 1.15rem; }
  body.has-mobile-buy .to-top { bottom: 90px; }
  body.has-mobile-buy .site-footer { padding-bottom: 80px; }
  .filters { position: static; }
  .showcase { grid-template-columns: 1fr; }
  .showcase-chat { position: absolute; right: 0; bottom: 0; top: 30%; width: 52%; border: 0; background: linear-gradient(90deg, transparent, rgba(4, 8, 16, .7)); }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 70px 0; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); }
  .hero-stats div:nth-child(2) { border-right: 0; }
  .hero-stats div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .hero-cta .btn { flex: 1 1 100%; }
  .benefits, .reviews, .steps, .plan-cards, .stat-cards { grid-template-columns: 1fr; }
  .game-grid { grid-template-columns: 1fr; }
  .new-item { grid-template-columns: 120px 1fr; gap: 12px; }
  .foot-grid { grid-template-columns: 1fr; gap: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .cta-band { padding: 44px 22px; border-radius: 22px; }
  .filter-tools, .search-box, .search-box input { width: 100%; }
  .auth-form { padding: 32px 22px; }
  .panel-pad { padding: 20px; }
  .lic { grid-template-columns: 1fr; }
  .lic img { max-height: 160px; }
  .timeline::before { left: 23px; }
  .tl-item { grid-template-columns: 48px 1fr; gap: 14px; }
  .tl-num { width: 48px; height: 48px; font-size: 1.1rem; border-radius: 14px; }
  .logo { font-size: 1.1rem; }
  .logo-mark { width: 32px; height: 32px; }
  .media-thumbs button { width: 92px; }
  .acc-nav { grid-template-columns: 1fr 1fr; }
  .toast-wrap { right: 16px; left: 16px; max-width: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
