/* ===================== LênLive – trang giới thiệu ===================== */
:root {
  --bg: #07060f; --bg2: #0d0a1c; --ink: #f4f1ff; --mute: #a9a3c7; --line: rgba(255,255,255,.09);
  --gold: #ffd36b; --gold2: #ffb238; --pink: #ff4fa3; --vio: #8b5cf6; --cyan: #3de1ff;
  --g-nova: linear-gradient(100deg, #ffe08a 0%, #ffb238 22%, #ff4fa3 52%, #a46bff 78%, #3de1ff 100%);
  --r: 22px; --wrap: 1200px; --ease: cubic-bezier(.2,.8,.2,1);
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.6 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.wrap { width: min(var(--wrap), calc(100% - 40px)); margin-inline: auto; }
::selection { background: rgba(255,79,163,.45); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 8px; }
.grad { background: var(--g-nova); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 6s linear infinite; }
@keyframes shimmer { to { background-position: 200% center; } }

/* ---------- lớp hiệu ứng chung ---------- */
.progress { position: fixed; inset: 0 0 auto; height: 3px; z-index: 60; pointer-events: none; }
.progress i { display: block; height: 100%; width: 100%; transform-origin: 0 50%; transform: scaleX(var(--p, 0)); background: var(--g-nova); box-shadow: 0 0 12px rgba(255,79,163,.8); }
.cursor-glow { position: fixed; left: 0; top: 0; width: 520px; height: 520px; margin: -260px 0 0 -260px; border-radius: 50%; pointer-events: none; z-index: 1; background: radial-gradient(circle, rgba(139,92,246,.16), rgba(255,79,163,.06) 40%, transparent 70%); transform: translate3d(var(--mx, -999px), var(--my, -999px), 0); transition: opacity .4s; mix-blend-mode: screen; }
.fx-layer { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 70; }
@media (hover: none) { .cursor-glow { display: none; } }

/* ---------- nút ---------- */
.btn { --h: 48px; position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: var(--h); padding: 0 22px; border-radius: 999px; font-weight: 700; letter-spacing: .1px; white-space: nowrap; transition: transform .25s var(--ease), box-shadow .25s, background .25s, border-color .25s; will-change: transform; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.btn-ghost svg { fill: currentColor; stroke: none; }
.btn-sm { --h: 40px; padding: 0 16px; font-size: 14.5px; }
.btn-lg { --h: 58px; padding: 0 28px; font-size: 17px; }
.btn-gold { color: #1b0f00; background: linear-gradient(180deg, #ffe7a3, #ffc04a 55%, #ff9f1c); box-shadow: 0 10px 30px -8px rgba(255,170,40,.65), inset 0 1px 0 rgba(255,255,255,.7), inset 0 -2px 0 rgba(150,70,0,.35); overflow: hidden; }
.btn-gold::after { content: ''; position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.75) 50%, transparent 65%); transform: translateX(-120%); animation: sheen 3.6s ease-in-out infinite; }
@keyframes sheen { 60%, 100% { transform: translateX(120%); } }
.btn-gold:hover { box-shadow: 0 16px 44px -8px rgba(255,170,40,.85), 0 0 0 6px rgba(255,200,80,.12), inset 0 1px 0 rgba(255,255,255,.7); }
.btn-ghost { color: var(--ink); background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.16); backdrop-filter: blur(8px); }
.btn-ghost:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.3); }

/* ---------- điều hướng ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; padding: 14px 0; transition: padding .3s, background .3s, border-color .3s; border-bottom: 1px solid transparent; }
.nav.small { padding: 8px 0; background: rgba(9,7,20,.72); backdrop-filter: blur(16px) saturate(1.4); border-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 16px; }
.nav-in > * { flex: none; } /* không phần nào bị bóp méo (logo co lại, chữ menu rớt dòng) */
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 900; font-size: 22px; letter-spacing: -.4px; }
.logo-mark { width: 38px; height: 38px; filter: drop-shadow(0 4px 14px rgba(255,79,163,.45)); transition: transform .6s var(--ease); }
.logo:hover .logo-mark { transform: translateY(-2px) rotate(-6deg) scale(1.06); }
.logo-txt b { font-weight: 900; }
.logo-txt em { font-style: normal; background: linear-gradient(90deg, #ffe08a, #ffb238); -webkit-background-clip: text; background-clip: text; color: transparent; }
.menu { display: flex; gap: 2px; margin-left: auto; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); }
.menu a { padding: 7px 12px; border-radius: 999px; font-size: 14.5px; font-weight: 600; color: var(--mute); white-space: nowrap; transition: color .2s, background .2s; }
@media (max-width: 1279px) { .menu a { padding: 7px 10px; } }
.menu a:hover, .menu a.on { color: var(--ink); background: rgba(255,255,255,.08); }
.burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--line); position: relative; }
.burger i { position: absolute; left: 12px; right: 12px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .3s, opacity .3s; }
.burger i:nth-child(1) { top: 15px; } .burger i:nth-child(2) { top: 21px; } .burger i:nth-child(3) { top: 27px; }
.nav.open .burger i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav.open .burger i:nth-child(2) { opacity: 0; }
.nav.open .burger i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------- HERO ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; padding: 120px 0 80px; overflow: hidden; isolation: isolate; }
.nova { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.aurora { position: absolute; inset: -20% -10% auto; height: 120%; z-index: -2; filter: blur(70px); opacity: .75; pointer-events: none; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: drift 18s ease-in-out infinite alternate; }
.aurora i:nth-child(1) { width: 55vw; height: 55vw; left: -10vw; top: -10vw; background: radial-gradient(circle, rgba(139,92,246,.55), transparent 65%); }
.aurora i:nth-child(2) { width: 45vw; height: 45vw; right: -8vw; top: 0; background: radial-gradient(circle, rgba(255,79,163,.45), transparent 65%); animation-duration: 22s; animation-delay: -6s; }
.aurora i:nth-child(3) { width: 40vw; height: 40vw; left: 30vw; top: 30vh; background: radial-gradient(circle, rgba(255,190,70,.28), transparent 65%); animation-duration: 26s; animation-delay: -12s; }
@keyframes drift { to { transform: translate3d(6vw, 5vh, 0) scale(1.15); } }
.hero-floor { position: absolute; left: -20%; right: -20%; bottom: -10%; height: 46%; z-index: -1; background-image: linear-gradient(rgba(139,92,246,.35) 1px, transparent 1px), linear-gradient(90deg, rgba(139,92,246,.35) 1px, transparent 1px); background-size: 64px 64px; transform: perspective(600px) rotateX(62deg); transform-origin: 50% 0; mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 60%, transparent); animation: floor 8s linear infinite; opacity: .55; }
@keyframes floor { to { background-position: 0 64px; } }
.hero-in { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.pill { display: inline-flex; align-items: center; gap: 10px; padding: 7px 14px 7px 10px; border-radius: 999px; font-size: 14px; font-weight: 600; color: #ffe9b8; background: linear-gradient(90deg, rgba(255,211,107,.14), rgba(255,79,163,.1)); border: 1px solid rgba(255,211,107,.3); transition: transform .3s var(--ease), border-color .3s; }
.pill:hover { transform: translateY(-2px); border-color: rgba(255,211,107,.6); }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: #ff4f7a; box-shadow: 0 0 0 0 rgba(255,79,122,.7); animation: ping 1.6s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 10px rgba(255,79,122,0); } 100% { box-shadow: 0 0 0 0 rgba(255,79,122,0); } }
.pill .arr { transition: transform .3s; } .pill:hover .arr { transform: translateX(4px); }
.hero h1 { margin: 22px 0 18px; font-size: clamp(40px, 5.3vw, 76px); line-height: 1.04; font-weight: 900; letter-spacing: -2.4px; }
.rot { position: relative; display: block; white-space: nowrap; perspective: 600px; }
.rot-w { display: inline-block; background: var(--g-nova); background-size: 200% auto; -webkit-background-clip: text; background-clip: text; color: transparent; animation: shimmer 5s linear infinite; padding-bottom: .06em; }
.rot-w.out { animation: shimmer 5s linear infinite, wordOut .45s var(--ease) forwards; }
.rot-w.in { animation: shimmer 5s linear infinite, wordIn .6s var(--ease) both; }
@keyframes wordOut { to { opacity: 0; transform: translateY(-.4em) rotateX(60deg); filter: blur(8px); } }
@keyframes wordIn { from { opacity: 0; transform: translateY(.45em) rotateX(-60deg); filter: blur(8px); } }
.lead { max-width: 560px; font-size: clamp(17px, 1.5vw, 20px); color: #cfc9ea; }
.lead b { color: #fff; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.cta-row.center { justify-content: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 10px 26px; margin: 34px 0 0; padding: 0; list-style: none; color: var(--mute); font-size: 15px; }
.hero-trust b { color: var(--ink); font-weight: 800; }
.hero-trust li { display: flex; align-items: center; gap: 6px; }
.hero-trust li + li::before { content: ''; width: 4px; height: 4px; border-radius: 50%; background: rgba(255,255,255,.25); margin-right: 14px; }

/* điện thoại */
.hero-stage { position: relative; display: grid; grid-template-columns: auto auto; align-items: center; justify-content: center; column-gap: 26px; perspective: 1400px; }
.hero-stage .phone { grid-column: 1; grid-row: 1; }
.hero-stage .gift-dock { grid-column: 2; grid-row: 1; }
.hero-stage .scene-tabs { grid-column: 1 / -1; grid-row: 2; justify-self: center; }
.hero-stage .hero-note { grid-column: 1 / -1; grid-row: 3; justify-self: center; }
.phone { position: relative; width: min(360px, 80vw); border-radius: 44px; padding: 10px; background: linear-gradient(145deg, #3a3550, #121019 40%, #2b2640); box-shadow: 0 0 0 1px rgba(255,255,255,.12), 0 50px 120px -30px rgba(139,92,246,.6), 0 30px 80px -20px rgba(255,79,163,.45), inset 0 0 0 2px rgba(0,0,0,.6); transform: rotateY(calc(var(--ry, -10) * 1deg)) rotateX(calc(var(--rx, 4) * 1deg)); transform-style: preserve-3d; transition: transform .5s var(--ease); z-index: 2; }
.phone::before { content: ''; position: absolute; inset: -40px; z-index: -1; border-radius: 80px; background: conic-gradient(from var(--a, 0deg), #ffd36b, #ff4fa3, #8b5cf6, #3de1ff, #ffd36b); filter: blur(40px); opacity: .45; animation: spinA 8s linear infinite; }
@property --a { syntax: '<angle>'; initial-value: 0deg; inherits: false; }
@keyframes spinA { to { --a: 360deg; } }
.phone-notch { position: absolute; top: 17px; left: 50%; width: 74px; height: 19px; margin-left: -37px; border-radius: 20px; background: #000; z-index: 5; box-shadow: 0 0 0 1px rgba(255,255,255,.06); }
.phone-screen { position: relative; aspect-ratio: 9 / 16; border-radius: 35px; overflow: hidden; background: #000; }
.phone-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s, filter .45s; }
.phone-video.swap { opacity: 0; filter: blur(10px); }
.tk-top { position: absolute; inset: 34px 10px auto; display: flex; justify-content: space-between; align-items: flex-start; z-index: 3; font-size: 11px; }
.tk-host { display: flex; align-items: center; gap: 6px; padding: 3px 4px 3px 3px; border-radius: 99px; background: rgba(0,0,0,.42); backdrop-filter: blur(6px); }
.tk-host b { display: block; font-size: 11px; line-height: 1.15; white-space: nowrap; }
.tk-top * { white-space: nowrap; }
.tk-host small { display: block; font-size: 9.5px; opacity: .85; }
.tk-av { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-weight: 900; color: #1b0f00; background: linear-gradient(135deg, #ffe08a, #ff9f1c); flex: none; }
.tk-follow { padding: 3px 8px; border-radius: 99px; background: #ff2f6d; font-weight: 700; font-size: 10px; }
.tk-right { display: flex; gap: 5px; }
.tk-live { padding: 2px 7px; border-radius: 5px; background: linear-gradient(90deg, #ff2f6d, #ff5f40); font-weight: 900; font-size: 10px; letter-spacing: .4px; }
.tk-view { padding: 2px 7px; border-radius: 5px; background: rgba(0,0,0,.45); }
.tk-chat { position: absolute; left: 10px; right: 30%; bottom: 50px; height: 21%; display: flex; flex-direction: column; justify-content: flex-end; gap: 4px; z-index: 3; mask-image: linear-gradient(to bottom, transparent, #000 35%); overflow: hidden; }
.tk-chat p { margin: 0; align-self: flex-start; max-width: 100%; padding: 3px 9px; border-radius: 11px; font-size: 10.5px; line-height: 1.3; background: rgba(0,0,0,.5); animation: chatIn .45s var(--ease) both; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tk-chat p b { color: #ffd36b; margin-right: 4px; font-weight: 700; }
@keyframes chatIn { from { opacity: 0; transform: translateY(14px) scale(.96); } }
.tk-bottom { position: absolute; left: 10px; right: 10px; bottom: 12px; display: flex; gap: 6px; z-index: 3; }
.tk-input { flex: 1; padding: 7px 12px; border-radius: 99px; background: rgba(255,255,255,.14); font-size: 11.5px; color: rgba(255,255,255,.75); }
.tk-ic { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: rgba(255,255,255,.14); font-size: 14px; }
.tk-hearts { position: absolute; right: 8px; bottom: 50px; width: 60px; height: 60%; z-index: 3; pointer-events: none; }
.tk-hearts span { position: absolute; bottom: 0; right: 14px; font-size: 22px; animation: heartUp 2.6s ease-out forwards; }
@keyframes heartUp { 0% { opacity: 0; transform: translate(0, 0) scale(.4); } 12% { opacity: 1; transform: translate(0, -20px) scale(1); } 100% { opacity: 0; transform: translate(var(--hx, -20px), -300px) scale(1.15) rotate(var(--hr, -20deg)); } }
.tk-gift-banner { position: absolute; left: 8px; top: 58%; z-index: 4; display: flex; flex-direction: column; gap: 8px; }
.tk-gift-banner .gb { display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 99px; background: linear-gradient(90deg, rgba(255,79,163,.92), rgba(139,92,246,.75) 70%, transparent); font-size: 11px; line-height: 1.2; animation: gbIn 3.4s var(--ease) forwards; box-shadow: 0 6px 20px rgba(255,79,163,.35); }
.gb .gb-av { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #fff3; font-weight: 800; }
.gb b { display: block; font-size: 11.5px; } .gb small { display: block; opacity: .9; }
.gb .gb-ic { font-size: 26px; animation: giftPop .6s .1s var(--ease) both; }
.gb .gb-x { font-weight: 900; font-size: 18px; font-style: italic; color: #ffe08a; text-shadow: 0 2px 0 #b3006b; }
@keyframes gbIn { 0% { opacity: 0; transform: translateX(-110%); } 12%, 82% { opacity: 1; transform: none; } 100% { opacity: 0; transform: translateX(-30px); } }
@keyframes giftPop { from { transform: scale(0) rotate(-40deg); } }
.scene-tabs { display: flex; gap: 6px; margin-top: 22px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); backdrop-filter: blur(8px); z-index: 3; flex-wrap: wrap; justify-content: center; }
.scene-tabs button { padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--mute); transition: all .25s; }
.scene-tabs button.on { color: #1b0f00; background: linear-gradient(180deg, #ffe7a3, #ffc04a); box-shadow: 0 6px 18px -6px rgba(255,180,50,.8); }
.gift-dock { position: relative; display: grid; gap: 10px; z-index: 4; }
.gift-dock p { margin: 0 0 2px; font-size: 12px; color: var(--mute); text-align: center; }
.gift-dock button { display: flex; align-items: center; gap: 8px; width: 132px; padding: 8px 10px; border-radius: 16px; text-align: left; background: rgba(20,15,40,.72); border: 1px solid rgba(255,255,255,.12); backdrop-filter: blur(10px); transition: transform .2s var(--ease), border-color .2s, background .2s; }
.gift-dock button:hover { border-color: rgba(255,211,107,.6); background: rgba(40,28,70,.85); }
.gift-dock button:active { transform: scale(.94); }
.gift-dock button span { font-size: 26px; filter: drop-shadow(0 4px 8px rgba(255,79,163,.4)); }
.gift-dock small { font-size: 12.5px; font-weight: 700; line-height: 1.2; }
.gift-dock em { display: block; font-style: normal; font-weight: 600; font-size: 11px; color: var(--gold); }
.hero-note { margin: 12px 0 0; font-size: 12.5px; color: rgba(169,163,199,.75); }
@keyframes bob { 50% { transform: translateY(-8px); } }
.gift-dock button { animation: bob 4s ease-in-out infinite; }
.gift-dock button:nth-of-type(2) { animation-delay: -1s; } .gift-dock button:nth-of-type(3) { animation-delay: -2s; } .gift-dock button:nth-of-type(4) { animation-delay: -3s; }
.scroll-hint { position: absolute; left: 50%; bottom: 22px; width: 26px; height: 42px; margin-left: -13px; border-radius: 20px; border: 2px solid rgba(255,255,255,.3); }
.scroll-hint i { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: #fff; animation: wheel 1.8s infinite; }
@keyframes wheel { 60% { transform: translateY(12px); opacity: 0; } 61% { transform: none; opacity: 0; } 100% { opacity: 1; } }

/* ---------- dải chữ chạy ---------- */
.ribbons { position: relative; padding: 40px 0; overflow: hidden; z-index: 2; }
.ribbon { overflow: hidden; padding: 14px 0; white-space: nowrap; }
.ribbon.r1 { transform: rotate(-2deg); background: var(--g-nova); color: #170b20; font-weight: 900; box-shadow: 0 10px 40px rgba(255,79,163,.3); }
.ribbon.r2 { transform: rotate(1.5deg) translateY(-10px); background: #110c22; border-block: 1px solid rgba(255,255,255,.1); color: #e8e3ff; font-weight: 700; }
.track { display: inline-flex; gap: 48px; padding-right: 48px; animation: marq 32s linear infinite; font-size: clamp(16px, 1.7vw, 22px); }
.r2 .track { animation-direction: reverse; animation-duration: 40s; }
@keyframes marq { to { transform: translateX(-50%); } }

/* ---------- số liệu ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; padding: 40px 0 10px; }
.stat { padding: 26px 24px; border-radius: var(--r); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid var(--line); }
.stat b { display: block; font-size: clamp(40px, 5vw, 64px); line-height: 1; font-weight: 900; letter-spacing: -2px; background: linear-gradient(180deg, #fff, #c9b8ff); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat span { display: block; margin-top: 10px; color: var(--mute); font-size: 15px; }

/* ---------- section chung ---------- */
.sec { position: relative; padding: 120px 0; scroll-margin-top: 40px; }
h1, h2, h3, .lead, .sec-head p { text-wrap: balance; }
section[id], .final { scroll-margin-top: 60px; }
.sec-dark { background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(139,92,246,.14), transparent 70%), var(--bg2); border-block: 1px solid var(--line); }
.sec-head { max-width: 760px; margin: 0 auto 52px; text-align: center; }
.sec-head.left { margin: 0; text-align: left; }
.kicker { display: inline-block; margin-bottom: 14px; padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 800; letter-spacing: 1.2px; text-transform: uppercase; color: var(--gold); background: rgba(255,211,107,.1); border: 1px solid rgba(255,211,107,.22); }
.sec h2 { margin: 0; font-size: clamp(34px, 4.6vw, 60px); line-height: 1.06; font-weight: 900; letter-spacing: -1.6px; }
.sec-head p { margin: 18px auto 0; color: var(--mute); font-size: 18px; max-width: 640px; }
.sec-head.left p { margin-left: 0; }

/* ---------- lưới game ---------- */
.chips { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 34px; }
.chips button { padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--mute); background: rgba(255,255,255,.04); border: 1px solid var(--line); transition: all .25s; }
.chips button i { font-style: normal; margin-left: 4px; padding: 1px 7px; border-radius: 99px; background: rgba(255,255,255,.1); font-size: 12px; }
.chips button:hover { color: var(--ink); border-color: rgba(255,255,255,.25); }
.chips button.on { color: #1b0f00; background: linear-gradient(180deg, #ffe7a3, #ffc04a); border-color: transparent; }
.chips button.on i { background: rgba(0,0,0,.12); }
.games { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.gcard { --gx: 50%; --gy: 50%; position: relative; border-radius: 26px; padding: 1px; background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.03)); transition: transform .5s var(--ease), opacity .4s, filter .4s; transform-style: preserve-3d; cursor: pointer; }
.gcard::before { content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; background: radial-gradient(260px circle at var(--gx) var(--gy), rgba(255,211,107,.95), rgba(255,79,163,.6) 35%, transparent 60%); -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor; mask-composite: exclude; opacity: 0; transition: opacity .3s; }
.gcard:hover::before { opacity: 1; }
.gcard.hide { display: none; }
.g-in { position: relative; height: 100%; border-radius: 25px; overflow: hidden; background: #0f0b1f; }
.g-media { position: relative; aspect-ratio: 4 / 5; overflow: hidden; background: #000; }
.g-media img, .g-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; transition: transform 1.2s var(--ease), opacity .5s; }
.g-media video { opacity: 0; }
.gcard.play .g-media video { opacity: 1; }
.gcard:hover .g-media img, .gcard:hover .g-media video { transform: scale(1.06); }
.g-media::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(15,11,31,.95)); pointer-events: none; }
.g-badges { position: absolute; left: 14px; top: 14px; display: flex; gap: 6px; z-index: 2; flex-wrap: wrap; }
.g-badges span { padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 800; background: rgba(0,0,0,.55); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.15); }
.g-badges .hot { background: linear-gradient(90deg, #ff4f7a, #ff9f1c); border: 0; }
.g-play { position: absolute; right: 14px; top: 14px; z-index: 2; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: rgba(0,0,0,.5); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.2); transition: transform .3s, background .3s; }
.g-play svg { width: 16px; fill: #fff; margin-left: 2px; }
.gcard:hover .g-play { transform: scale(1.12); background: var(--pink); }
.g-body { position: relative; padding: 2px 20px 22px; margin-top: -54px; z-index: 2; }
.g-body h3 { margin: 0; font-size: 23px; font-weight: 900; letter-spacing: -.5px; display: flex; align-items: center; gap: 8px; }
.g-body p { margin: 8px 0 14px; color: var(--mute); font-size: 15px; line-height: 1.5; min-height: 4.5em; }
.g-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.g-tags span { padding: 4px 10px; border-radius: 99px; font-size: 12.5px; font-weight: 700; color: #e6dcff; background: rgba(139,92,246,.16); border: 1px solid rgba(139,92,246,.3); }

/* ---------- bento ---------- */
.bento { display: grid; grid-template-columns: repeat(6, 1fr); gap: 18px; }
.card { --gx: 50%; --gy: 50%; position: relative; padding: 28px; border-radius: var(--r); background: radial-gradient(400px circle at var(--gx) var(--gy), rgba(139,92,246,.13), transparent 60%), linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)); border: 1px solid var(--line); overflow: hidden; transition: border-color .3s, transform .4s var(--ease); }
.card:hover { border-color: rgba(255,255,255,.2); transform: translateY(-4px); }
.card h3 { margin: 14px 0 8px; font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.card p { margin: 0; color: var(--mute); font-size: 15.5px; }
.card p b { color: var(--ink); }
.b-ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; font-size: 26px; background: linear-gradient(135deg, rgba(255,211,107,.18), rgba(255,79,163,.14)); border: 1px solid rgba(255,211,107,.25); }
.b-mc { grid-column: span 4; grid-row: span 2; background: radial-gradient(500px circle at var(--gx) var(--gy), rgba(255,79,163,.16), transparent 60%), linear-gradient(160deg, rgba(139,92,246,.2), rgba(255,79,163,.06) 60%, rgba(255,255,255,.02)); }
.b-voice, .b-ai { grid-column: span 2; }
.b-music, .b-tpl, .b-gift { grid-column: span 2; }
.b-go { grid-column: span 3; } .b-sim, .b-light { grid-column: span 3; }
.b-sim { grid-column: span 2; } .b-light { grid-column: span 1; }
.b-go { grid-column: span 3; }
.mc-box { margin-top: 26px; padding: 22px; border-radius: 18px; background: rgba(0,0,0,.35); border: 1px solid rgba(255,255,255,.1); }
.wave { display: flex; align-items: center; justify-content: center; gap: 5px; height: 64px; }
.wave i { flex: 1 1 0; max-width: 8px; height: 20%; border-radius: 4px; background: linear-gradient(180deg, #ffe08a, #ff4fa3); animation: wave 1.1s ease-in-out infinite; }
.wave i:nth-child(odd) { animation-duration: .8s; } .wave i:nth-child(3n) { animation-duration: 1.4s; } .wave i:nth-child(4n) { animation-delay: -.4s; } .wave i:nth-child(5n) { animation-delay: -.7s; }
@keyframes wave { 50% { height: 100%; } }
.mc-line { margin: 16px 0 0 !important; font-size: clamp(17px, 1.6vw, 21px) !important; line-height: 1.45; color: #fff !important; font-weight: 600; min-height: 3em; transition: opacity .4s, transform .4s; }
.mc-line.fade { opacity: 0; transform: translateY(8px); }
.bubble-flow { position: relative; height: 96px; margin-top: 18px; overflow: hidden; mask-image: linear-gradient(transparent, #000 30%, #000 70%, transparent); }
.bubble-flow span { position: absolute; left: 0; padding: 6px 12px; border-radius: 14px; background: rgba(255,255,255,.08); font-size: 13.5px; white-space: nowrap; animation: flowUp 6s linear infinite; }
.bubble-flow span:nth-child(2) { animation-delay: -2s; } .bubble-flow span:nth-child(3) { animation-delay: -4s; }
@keyframes flowUp { from { transform: translateY(110px); } to { transform: translateY(-40px); } }
.typing { display: grid; gap: 8px; margin-top: 18px; font-size: 13.5px; }
.typing .q { justify-self: end; padding: 6px 12px; border-radius: 14px 14px 4px 14px; background: rgba(255,255,255,.08); }
.typing .a { padding: 8px 12px; border-radius: 14px 14px 14px 4px; background: linear-gradient(135deg, rgba(139,92,246,.35), rgba(255,79,163,.25)); min-height: 2.6em; }
.typing .a::after { content: '▍'; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.eq { display: flex; align-items: flex-end; gap: 4px; height: 56px; margin-top: 18px; }
.eq i { flex: 1; border-radius: 3px 3px 0 0; background: linear-gradient(180deg, #3de1ff, #8b5cf6); animation: eq 1s ease-in-out infinite alternate; height: 30%; }
.eq i:nth-child(2n) { animation-duration: .7s; } .eq i:nth-child(3n) { animation-duration: 1.3s; animation-delay: -.3s; } .eq i:nth-child(5n) { animation-duration: .55s; }
@keyframes eq { to { height: 100%; } }
.mini-roll { margin: 18px -28px -28px; height: 150px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 15%, #000 85%, transparent); }
.mr-track { display: flex; gap: 8px; animation: marq 30s linear infinite; width: max-content; padding: 0 8px; }
.mr-track img { width: 84px; height: 150px; object-fit: cover; border-radius: 10px; }
.map { list-style: none; margin: 18px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.map li { display: flex; justify-content: space-between; gap: 8px; padding: 7px 12px; border-radius: 12px; background: rgba(255,255,255,.05); }
.map b { color: var(--gold); }
.devices { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.devices span { padding: 7px 12px; border-radius: 12px; background: rgba(255,255,255,.06); border: 1px solid var(--line); font-size: 14px; font-weight: 600; }

/* ---------- trước / sau ---------- */
.ba-wrap { display: grid; grid-template-columns: .9fr 1.1fr; gap: 60px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 34px; color: #ddd7f5; }
.ticks li::before { content: '✓'; position: absolute; left: 0; top: 1px; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 13px; font-weight: 900; color: #1b0f00; background: linear-gradient(180deg, #ffe7a3, #ffc04a); }
.ba { --p: 50%; position: relative; justify-self: center; width: min(400px, 100%); aspect-ratio: 9 / 16; border-radius: 30px; overflow: hidden; border: 1px solid rgba(255,255,255,.15); box-shadow: 0 40px 100px -30px rgba(139,92,246,.6); user-select: none; touch-action: pan-y; cursor: ew-resize; }
.ba-after img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ba-before { position: absolute; inset: 0; clip-path: inset(0 calc(100% - var(--p)) 0 0); background: #0b0a10; }
.empty-live { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 18px; background: radial-gradient(circle at 50% 40%, #1a1824, #0b0a10 70%); }
.el-top { display: flex; align-items: center; gap: 8px; font-size: 12.5px; }
.el-top .tk-av { background: #444; color: #ccc; }
.el-top .el-v { margin-left: auto; padding: 2px 8px; border-radius: 5px; background: rgba(255,255,255,.08); }
.el-mid { flex: 1; display: grid; place-content: center; justify-items: center; color: #6c6880; text-align: center; }
.el-mid span { font-size: 54px; filter: grayscale(1); opacity: .5; }
.el-mid p { margin: 8px 0 0; font-size: 15px; }
.el-chat { display: grid; gap: 4px; font-size: 12px; color: #8d89a3; }
.el-chat span { justify-self: start; padding: 4px 9px; border-radius: 10px; background: rgba(255,255,255,.05); }
.ba-handle { position: absolute; top: 0; bottom: 0; left: var(--p); width: 3px; margin-left: -1.5px; background: #fff; box-shadow: 0 0 20px rgba(255,211,107,.9); z-index: 3; }
.ba-handle span { position: absolute; top: 50%; left: 50%; display: grid; place-items: center; width: 50px; height: 50px; margin: -25px 0 0 -25px; border-radius: 50%; font-weight: 900; color: #1b0f00; background: linear-gradient(180deg, #ffe7a3, #ffc04a); box-shadow: 0 8px 26px rgba(255,170,40,.7); }
.ba-tag { position: absolute; top: 60px; padding: 5px 11px; border-radius: 99px; font-size: 12.5px; font-weight: 800; z-index: 2; background: rgba(0,0,0,.6); backdrop-filter: blur(6px); }
.ba-tag.l { left: 14px; } .ba-tag.r { right: 14px; background: linear-gradient(90deg, #ff4fa3, #8b5cf6); }

/* ---------- tường mẫu ---------- */
.gallery-sec { overflow: hidden; }
.wall { display: grid; gap: 18px; perspective: 1400px; padding: 10px 0 20px; }
.wall { transform: rotateX(10deg); transform-origin: 50% 0; }
.wall-row { display: flex; gap: 18px; width: max-content; animation: marq 80s linear infinite; }
.wall-row.rev { animation-direction: reverse; animation-duration: 70s; margin-left: -120px; }
.wall:hover .wall-row { animation-play-state: paused; }
.tpl { position: relative; margin: 0; width: 200px; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; flex: none; border: 1px solid rgba(255,255,255,.12); transition: transform .45s var(--ease), box-shadow .45s; background: #111; }
.tpl img { width: 100%; height: 100%; object-fit: cover; }
.tpl span { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 12px 12px; font-size: 13.5px; font-weight: 800; background: linear-gradient(transparent, rgba(0,0,0,.85)); }
.tpl:hover { transform: translateY(-10px) scale(1.06); box-shadow: 0 26px 60px -12px rgba(255,79,163,.55); z-index: 2; }

/* ---------- các bước ---------- */
.steps { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; list-style: none; padding: 0; margin: 0; }
.steps-line { position: absolute; left: 6%; right: 6%; top: 64px; width: 88%; height: 20px; z-index: -1; overflow: visible; }
.steps-line path { fill: none; stroke: #8b5cf6; stroke-width: 2; stroke-dasharray: 6 8; opacity: .7; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -28; } }
.step { position: relative; padding: 26px 24px; border-radius: var(--r); background: linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.015)); border: 1px solid var(--line); }
.step .n { position: absolute; right: 18px; top: 10px; font-size: 54px; font-weight: 900; line-height: 1; color: rgba(255,255,255,.06); }
.s-ic { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 20px; font-size: 30px; background: radial-gradient(circle at 30% 20%, rgba(255,211,107,.35), rgba(139,92,246,.25)); border: 1px solid rgba(255,211,107,.3); box-shadow: 0 10px 30px -10px rgba(255,170,40,.5); }
.step h3 { margin: 18px 0 6px; font-size: 21px; font-weight: 800; }
.step p { margin: 0; color: var(--mute); font-size: 15.5px; }

/* ---------- bảng giá ---------- */
.bill { position: relative; display: inline-flex; margin-top: 26px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.05); border: 1px solid var(--line); }
.bill button { position: relative; z-index: 1; padding: 10px 20px; border-radius: 999px; font-weight: 800; font-size: 15px; color: var(--mute); transition: color .3s; }
.bill button.on { color: #1b0f00; }
.bill em { font-style: normal; font-size: 11.5px; margin-left: 4px; padding: 2px 7px; border-radius: 99px; background: rgba(61,225,255,.18); color: #9df0ff; }
.bill button.on em { background: rgba(0,0,0,.14); color: #1b0f00; }
.bill-pill { position: absolute; top: 5px; bottom: 5px; left: 5px; border-radius: 999px; background: linear-gradient(180deg, #ffe7a3, #ffc04a); transition: transform .45s var(--ease), width .45s var(--ease); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border-radius: 28px; background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02)); border: 1px solid var(--line); transition: transform .4s var(--ease), border-color .3s; }
.plan:hover { transform: translateY(-6px); border-color: rgba(255,255,255,.22); }
.plan.hot { background: linear-gradient(180deg, #1e1440, #140d2b); border: 0; transform: translateY(-14px); box-shadow: 0 40px 90px -30px rgba(255,79,163,.55); }
.plan.hot::before { content: ''; position: absolute; inset: -2px; z-index: -1; border-radius: 30px; background: conic-gradient(from var(--a, 0deg), #ffd36b, #ff4fa3, #8b5cf6, #3de1ff, #ffd36b); animation: spinA 5s linear infinite; }
.plan.hot::after { content: ''; position: absolute; inset: 0; z-index: -1; border-radius: 28px; background: linear-gradient(180deg, #1e1440, #140d2b); }
.plan.hot:hover { transform: translateY(-20px); }
.p-hot { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 6px 14px; border-radius: 99px; font-size: 12.5px; font-weight: 900; color: #1b0f00; background: linear-gradient(180deg, #ffe7a3, #ffc04a); white-space: nowrap; box-shadow: 0 8px 20px -6px rgba(255,170,40,.8); }
.plan h3 { margin: 0; font-size: 24px; font-weight: 900; }
.plan .p-note { margin: 4px 0 20px; color: var(--mute); font-size: 15px; }
.p-price { display: flex; align-items: baseline; gap: 6px; min-height: 62px; }
.p-price { flex-wrap: nowrap; }
.p-price b { font-size: clamp(32px, 3vw, 42px); font-weight: 900; letter-spacing: -1.4px; line-height: 1; white-space: nowrap; }
.p-price small { color: var(--mute); font-weight: 600; white-space: nowrap; }
.p-sub { margin: 4px 0 22px; font-size: 13.5px; color: var(--gold); min-height: 1.4em; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; align-content: start; gap: 10px; flex: 1; }
.plan li { position: relative; padding-left: 28px; font-size: 15px; color: #e0dbf6; }
.plan li::before { content: ''; position: absolute; left: 0; top: 3px; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(180deg, #ffe7a3, #ffc04a); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 100 20 10 10 0 000-20zm-1.5 14.2L4.3 10l1.4-1.4 2.8 2.8 5.8-5.8 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M10 0a10 10 0 100 20 10 10 0 000-20zm-1.5 14.2L4.3 10l1.4-1.4 2.8 2.8 5.8-5.8 1.4 1.4z'/%3E%3C/svg%3E") center / contain no-repeat; }
.plan li.off { color: #6f6a88; text-decoration: line-through; }
.plan li.off::before { background: #4a4560; }
.plan .btn { width: 100%; }
.plans-note { margin: 34px 0 0; text-align: center; color: var(--mute); }
.plans-note a { color: var(--gold); font-weight: 700; border-bottom: 1px dashed currentColor; }

/* ---------- hỏi đáp ---------- */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 60px; align-items: start; }
.faq-wrap .btn { margin-top: 26px; }
.faq { display: grid; gap: 12px; }
.faq details { border-radius: 18px; background: rgba(255,255,255,.04); border: 1px solid var(--line); transition: border-color .3s, background .3s; }
.faq details[open] { background: rgba(139,92,246,.08); border-color: rgba(139,92,246,.35); }
.faq summary { position: relative; padding: 20px 60px 20px 22px; font-weight: 700; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 18px; top: 50%; display: grid; place-items: center; width: 30px; height: 30px; margin-top: -15px; border-radius: 10px; font-size: 20px; background: rgba(255,255,255,.08); transition: transform .35s var(--ease), background .3s; }
.faq details[open] summary::after { transform: rotate(135deg); background: var(--pink); }
.faq details > div { overflow: hidden; }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--mute); }

/* ---------- kêu gọi cuối ---------- */
.final { position: relative; padding: 150px 0; text-align: center; overflow: hidden; isolation: isolate; background: radial-gradient(ellipse 70% 80% at 50% 100%, rgba(255,79,163,.28), transparent 70%), radial-gradient(ellipse 60% 60% at 50% 0%, rgba(139,92,246,.25), transparent 70%), var(--bg); }
.fireworks { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; }
.final h2 { margin: 0; font-size: clamp(40px, 6.4vw, 92px); line-height: 1.02; font-weight: 900; letter-spacing: -2.5px; }
.final p { margin: 22px auto 0; max-width: 560px; color: #d3cdee; font-size: 19px; }

/* ---------- chân trang ---------- */
.foot { padding: 70px 0 30px; background: #05040b; border-top: 1px solid var(--line); }
.foot-in { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
.foot-brand p { color: var(--mute); max-width: 420px; font-size: 15px; }
.foot-brand .contact a { color: var(--gold); font-weight: 700; }
.foot-col { display: grid; align-content: start; gap: 10px; }
.foot-col h4 { margin: 0 0 6px; font-size: 13px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--mute); }
.foot-col a { color: #d8d3ef; font-size: 15px; transition: color .2s; }
.foot-col a:hover { color: var(--gold); }
.foot-legal { margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }
.foot-legal p { margin: 0; color: #6f6a88; font-size: 13px; }

/* ---------- nút Zalo nổi ---------- */
.zalo-float { position: fixed; right: 20px; bottom: 20px; z-index: 55; display: grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; font-weight: 900; font-size: 14px; color: #fff; background: linear-gradient(135deg, #2f8cff, #0068ff); box-shadow: 0 12px 30px -6px rgba(0,104,255,.7); transition: transform .3s var(--ease); }
.zalo-float::before, .zalo-float::after { content: ''; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(47,140,255,.6); animation: ring 2.4s ease-out infinite; }
.zalo-float::after { animation-delay: 1.2s; }
@keyframes ring { to { transform: scale(1.8); opacity: 0; } }
.zalo-float:hover { transform: scale(1.08) rotate(-6deg); }

/* ---------- cửa sổ chi tiết game ---------- */
.modal { width: min(980px, calc(100% - 28px)); max-height: calc(100% - 28px); padding: 0; border: 0; border-radius: 28px; background: #100c22; color: var(--ink); box-shadow: 0 50px 140px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.12); overflow: hidden; }
.modal::backdrop { background: rgba(5,3,12,.72); backdrop-filter: blur(10px); }
.modal[open] { animation: modalIn .5s var(--ease); }
@keyframes modalIn { from { opacity: 0; transform: translateY(30px) scale(.94); } }
.modal-in { display: grid; grid-template-columns: 360px 1fr; max-height: calc(100vh - 28px); }
.gm-media { position: relative; background: #000; aspect-ratio: 9 / 16; max-height: calc(100vh - 28px); }
.gm-media video { width: 100%; height: 100%; object-fit: cover; }
.gm-body { padding: 40px 36px; overflow: auto; }
.gm-tag { display: inline-block; padding: 5px 12px; border-radius: 99px; font-size: 13px; font-weight: 800; color: var(--gold); background: rgba(255,211,107,.1); border: 1px solid rgba(255,211,107,.25); }
.gm-body h3 { margin: 14px 0 10px; font-size: clamp(30px, 3.4vw, 42px); font-weight: 900; letter-spacing: -1px; line-height: 1.08; }
.gm-desc { color: #d6d0ef; font-size: 16.5px; }
.gm-points { list-style: none; padding: 0; margin: 20px 0 28px; display: grid; gap: 10px; }
.gm-points li { display: flex; gap: 12px; padding: 12px 14px; border-radius: 14px; background: rgba(255,255,255,.04); border: 1px solid var(--line); font-size: 15px; }
.gm-points li b { flex: none; font-size: 20px; }
.modal-x { position: absolute; right: 16px; top: 16px; z-index: 3; width: 42px; height: 42px; border-radius: 50%; font-size: 18px; background: rgba(0,0,0,.5); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(6px); transition: transform .3s, background .3s; }
.modal-x:hover { transform: rotate(90deg); background: var(--pink); }

/* ---------- xuất hiện khi cuộn ---------- */
.reveal { opacity: 0; transform: translateY(34px); filter: blur(6px); transition: opacity .9s var(--ease), transform .9s var(--ease), filter .9s var(--ease); }
.reveal.in { opacity: 1; transform: none; filter: none; }
.d1 { transition-delay: .08s; } .d2 { transition-delay: .16s; } .d3 { transition-delay: .24s; } .d4 { transition-delay: .32s; }

/* ---------- màn hình vừa / nhỏ ---------- */
@media (max-width: 1080px) {
  .hero-in { grid-template-columns: 1fr; text-align: center; }
  .hero-copy { display: grid; justify-items: center; }
  .lead { margin-inline: auto; }
  .cta-row, .hero-trust { justify-content: center; }
  .hero-stage { margin-top: 30px; }
  .games { grid-template-columns: repeat(2, 1fr); }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .bento > .card { grid-column: span 1 !important; grid-row: auto !important; }
  .bento > .b-mc, .bento > .b-go { grid-column: span 2 !important; }
  .ba-wrap, .faq-wrap { grid-template-columns: 1fr; gap: 40px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .steps-line { display: none; }
  .plans { grid-template-columns: 1fr; max-width: 520px; margin-inline: auto; }
  .plan.hot { transform: none; } .plan.hot:hover { transform: translateY(-6px); }
  .stats { grid-template-columns: repeat(2, 1fr); }
}
/* máy tính bảng / laptop nhỏ: menu gom vào nút ☰, thả xuống bên phải */
@media (max-width: 1180px) {
  .menu { position: fixed; inset: 64px 12px auto auto; width: min(360px, calc(100vw - 24px)); flex-direction: column; padding: 10px; border-radius: 20px; background: rgba(12,9,26,.96); backdrop-filter: blur(16px); box-shadow: 0 30px 80px -20px rgba(0,0,0,.8); transform: translateY(-14px); opacity: 0; pointer-events: none; transition: all .3s var(--ease); }
  .menu a { padding: 14px 16px; font-size: 17px; }
  .nav.open .menu { transform: none; opacity: 1; pointer-events: auto; }
  .burger { display: block; }
}
@media (max-width: 860px) {
  .modal-in { grid-template-columns: 1fr; overflow: auto; }
  .gm-media { aspect-ratio: auto; height: 62vh; max-height: none; }
  .gm-body { padding: 26px 22px 30px; overflow: visible; }
}
@media (max-width: 640px) {
  .hero-in { display: flex; flex-direction: column; align-items: center; gap: 0; }
  .hero-copy { display: contents; }
  .hero .pill { order: 1; font-size: 12.5px; }
  .hero h1 { order: 2; font-size: clamp(32px, 9.6vw, 44px); letter-spacing: -1.2px; margin: 16px 0 18px; }
  .hero-stage { order: 3; margin-top: 0; grid-template-columns: 1fr; width: 100%; }
  .hero .lead { order: 4; margin-top: 26px; }
  .hero .cta-row { order: 5; }
  .hero-trust { order: 6; }
  .scene-tabs { gap: 2px; padding: 4px; flex-wrap: nowrap; }
  .scene-tabs button { padding: 6px 9px; font-size: 12.5px; white-space: nowrap; }
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero { padding: 96px 0 70px; }
  .hero h1 { letter-spacing: -1.4px; }
  .nav .btn-sm { display: none; }
  .phone { width: min(320px, 82vw); border-radius: 38px; padding: 8px; }
  .phone-screen { border-radius: 31px; }
  .hero-stage .phone { justify-self: center; }
  .hero-stage .gift-dock { grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 16px; width: 100%; grid-column: 1; grid-row: 3; }
  .hero-stage .hero-note { grid-row: 4; text-align: center; }
  .gift-dock button { animation: none; }
  .gift-dock p { grid-column: 1 / -1; }
  .gift-dock button { width: auto; flex-direction: column; text-align: center; gap: 2px; padding: 8px 4px; }
  .gift-dock small { font-size: 11.5px; }
  .games { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento > .card, .bento > .b-mc, .bento > .b-go { grid-column: auto !important; }
  .steps { grid-template-columns: 1fr; }
  .stats { gap: 12px; }
  .stat { padding: 20px 16px; }
  .sec { padding: 84px 0; }
  .tpl { width: 150px; }
  .scroll-hint { display: none; }
  .final { padding: 110px 0; }
  .foot-in { grid-template-columns: 1fr 1fr; }
  .foot-brand { grid-column: 1 / -1; }
  .zalo-float { width: 56px; height: 56px; right: 14px; bottom: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001s !important; animation-iteration-count: 1 !important; transition-duration: .001s !important; }
  .reveal { opacity: 1; transform: none; filter: none; }
}

/* ---------- đăng nhập + ghi chú thanh toán (bản web) ---------- */
.nav-login { font-weight: 700; font-size: 14.5px; color: var(--mute); padding: 8px 6px; transition: color .2s; white-space: nowrap; }
.nav-login:hover { color: var(--ink); }
.bill { flex-wrap: wrap; justify-content: center; }
.bill-note { margin: 14px auto 0; color: var(--mute); font-size: 15px; text-align: center; max-width: 560px; }
.bill-note b { color: var(--gold); }
@media (max-width: 640px) { .nav-login { display: none; } .bill button { padding: 8px 12px; font-size: 13.5px; } }

.g-link { color: inherit; }
.g-link:hover { color: var(--gold); }
.bill-note a b { color: var(--gold); }
.gm-cta { display: flex; gap: 10px; flex-wrap: wrap; }

/* ===================== tìm kiếm nhanh (thanh đầu trang) ===================== */
.srch-btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 16px 0 12px; border-radius: 999px; color: var(--mute); background: rgba(255,255,255,.05); border: 1px solid var(--line); font-size: 14px; font-weight: 600; transition: color .2s, background .2s, border-color .2s, transform .2s var(--ease); }
.srch-btn:hover { color: var(--ink); background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.24); }
.srch-btn:active { transform: scale(.94); }
.srch-btn svg, .srch-bar svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; flex: none; }
.srch-btn kbd, .srch kbd { font: 700 11px/1 'Be Vietnam Pro', system-ui, sans-serif; padding: 3px 6px; border-radius: 6px; color: var(--mute); background: rgba(255,255,255,.07); border: 1px solid var(--line); }
.srch-btn-t, .srch-btn kbd { display: none; }
@media (min-width: 1280px) { .srch-btn-t { display: inline; } .srch-btn { min-width: 150px; } }
@media (max-width: 1180px) { .srch-btn { margin-left: auto; width: 44px; height: 44px; padding: 0; justify-content: center; border-radius: 12px; color: var(--ink); } }
@media (max-width: 860px) { .nav-in { gap: 10px; } }
.srch-lock, .srch-lock body { overflow: hidden; }
.srch { position: fixed; inset: 0; z-index: 200; display: grid; justify-items: center; align-items: start; padding: clamp(12px, 10vh, 110px) 14px 14px; }
.srch[hidden] { display: none; }
.srch-bg { position: absolute; inset: 0; background: rgba(5,4,12,.55); backdrop-filter: blur(0) saturate(1); transition: background .3s, backdrop-filter .3s; opacity: 0; }
.srch.on .srch-bg { opacity: 1; background: rgba(5,4,12,.72); backdrop-filter: blur(10px) saturate(1.2); transition: opacity .25s, backdrop-filter .35s; }
.srch-panel { position: relative; width: min(680px, 100%); max-height: min(78vh, 680px); display: flex; flex-direction: column; border-radius: 24px; overflow: hidden; background: linear-gradient(180deg, #171230, #0e0b1f); border: 1px solid rgba(255,255,255,.14); box-shadow: 0 40px 120px -20px rgba(0,0,0,.85), 0 0 0 1px rgba(255,211,107,.06), 0 0 90px -30px rgba(255,79,163,.55); transform: translateY(-18px) scale(.97); opacity: 0; transition: transform .38s var(--ease), opacity .25s; }
.srch.on .srch-panel { transform: none; opacity: 1; }
.srch-panel::before { content: ''; position: absolute; inset: 0 0 auto; height: 2px; background: var(--g-nova); background-size: 200% auto; animation: shimmer 3s linear infinite; }
.srch-bar { display: flex; align-items: center; gap: 12px; padding: 16px 16px 14px 20px; border-bottom: 1px solid var(--line); color: var(--gold); }
.srch-in { flex: 1; min-width: 0; border: 0; outline: 0; background: none; color: var(--ink); font: 600 18px/1.4 'Be Vietnam Pro', system-ui, sans-serif; }
.srch-in::placeholder { color: #6f698f; font-weight: 500; }
.srch-in::-webkit-search-cancel-button { display: none; }
.srch-x { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 8px; border-radius: 10px; color: var(--mute); }
.srch-x:hover { background: rgba(255,255,255,.07); color: var(--ink); }
.srch-x-ic { display: none; font-size: 18px; }
.srch-body { overflow-y: auto; padding: 8px 10px 12px; overscroll-behavior: contain; }
.srch-h { margin: 10px 10px 6px; font-size: 12px; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--dim); }
.srch-chips { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 8px 6px; }
.srch-chips button { padding: 8px 14px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--ink); background: rgba(255,255,255,.06); border: 1px solid var(--line); transition: background .2s, border-color .2s, transform .2s var(--ease); }
.srch-chips button:hover { background: rgba(255,211,107,.12); border-color: rgba(255,211,107,.45); transform: translateY(-2px); }
.srch-item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 10px; border-radius: 14px; color: var(--ink); animation: srchIn .32s var(--ease) both; transition: background .15s; }
@keyframes srchIn { from { opacity: 0; transform: translateY(8px); } }
.srch-item.on { background: linear-gradient(90deg, rgba(255,211,107,.14), rgba(255,79,163,.07)); box-shadow: inset 2px 0 0 var(--gold); }
.srch-thumb { width: 44px; height: 44px; border-radius: 11px; object-fit: cover; background: #0d0a1c; border: 1px solid var(--line); }
.srch-thumb.ic { display: grid; place-items: center; font-size: 20px; background: rgba(255,255,255,.05); }
.srch-txt { display: grid; min-width: 0; }
.srch-txt b { font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srch-txt mark { background: none; color: var(--gold); text-decoration: underline; text-decoration-color: rgba(255,211,107,.5); text-underline-offset: 3px; }
.srch-txt small { font-size: 13px; color: var(--mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srch-txt em { font-style: normal; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 6px; margin-right: 4px; background: rgba(139,92,246,.2); color: #d9caff; }
.t-game .srch-txt em { background: rgba(255,211,107,.16); color: var(--gold); }
.t-page .srch-txt em { background: rgba(61,225,255,.12); color: #a8f0ff; }
.srch-go { color: var(--dim); opacity: 0; transition: opacity .15s; font-size: 16px; }
.srch-item.on .srch-go { opacity: 1; color: var(--gold); }
.srch-empty { text-align: center; padding: 30px 16px 26px; color: var(--mute); display: grid; gap: 6px; justify-items: center; }
.srch-empty .e { font-size: 40px; }
.srch-empty b { color: var(--ink); font-size: 16px; }
.srch-empty p { margin: 0; }
.srch-all { color: var(--gold); font-weight: 700; margin-top: 6px; }
.srch-foot { display: flex; gap: 16px; justify-content: flex-end; padding: 10px 16px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--dim); }
.srch-foot span { display: inline-flex; align-items: center; gap: 4px; }
@media (max-width: 640px) {
  .srch { padding: 0; align-items: stretch; }
  .srch-panel { width: 100%; max-height: none; height: 100%; border-radius: 0; border: 0; transform: translateY(-24px); }
  .srch-bar { padding: calc(10px + env(safe-area-inset-top)) 12px 10px 16px; }
  .srch-in { font-size: 17px; }
  .srch-x kbd { display: none; }
  .srch-x-ic { display: inline; }
  .srch-x { width: 40px; justify-content: center; }
  .srch-foot { display: none; }
  .srch-body { flex: 1; padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}
@media (prefers-reduced-motion: reduce) { .srch-panel, .srch-bg, .srch-item { transition: none; animation: none; } }

/* ===================== khách đã đăng nhập / chưa đăng nhập ===================== */
.authed .guest-only { display: none !important; }
html:not(.authed) .auth-only { display: none !important; }
.nav-acc { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px 0 4px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--ink); background: rgba(255,255,255,.05); border: 1px solid var(--line); transition: background .2s, border-color .2s; white-space: nowrap; }
.nav-acc:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.24); }
.nav-av { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; font-weight: 900; color: #1b0f00; background: linear-gradient(135deg, #ffe08a, #ff9f1c); }
.nav-name { max-width: 96px; overflow: hidden; text-overflow: ellipsis; }
.menu-auth { display: none !important; }
/* điện thoại: nút Đăng nhập / Dùng thử / Mở kênh live trên thanh bị ẩn → đưa vào menu ☰ */
@media (max-width: 640px) {
  .nav-name { display: none; } .nav-acc { padding: 0 4px; width: 42px; justify-content: center; }
  .menu-auth { display: block !important; }
  .authed .menu-auth.guest-only, html:not(.authed) .menu-auth.auth-only { display: none !important; }
  .menu-cta { color: #1b0f00 !important; background: linear-gradient(180deg, #ffe7a3, #ffb238) !important; text-align: center; margin-top: 6px; }
}
@media (max-width: 640px) { .nav .btn-sm.auth-only { display: none; } }
