:root {
  --bg: #07080f;
  --bg2: #0b0d18;
  --surface: #101324;
  --surface-2: #161a2e;
  --ink: #eef1fb;
  --muted: #8b92ac;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .14);
  --brand: #7c5cff;
  --brand-2: #22d3ee;
  --accent: #ff3d71;
  --gold: #ffb020;
  --green: #22c55e;
  --radius: 16px;
  --glow: 0 0 0 1px rgba(124, 92, 255, .35), 0 10px 40px rgba(124, 92, 255, .25);
  --shadow: 0 16px 40px rgba(0, 0, 0, .45);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 80% -10%, rgba(124, 92, 255, .18), transparent 60%),
    radial-gradient(700px 500px at 0% 10%, rgba(34, 211, 238, .12), transparent 55%),
    linear-gradient(rgba(255, 255, 255, .025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .025) 1px, transparent 1px);
  background-size: auto, auto, 44px 44px, 44px 44px;
  color: var(--ink);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
.ic { width: 20px; height: 20px; flex-shrink: 0; }
#fireflies { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 9; pointer-events: none; }

/* Page transition loader (khối lập phương xoay) */
.pageloader { position: fixed; inset: 0; z-index: 9999; background: radial-gradient(circle at 50% 42%, #11131f, #04050a 70%); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; perspective: 600px; transition: opacity .5s ease, visibility .5s; }
.pageloader.is-hidden { opacity: 0; visibility: hidden; pointer-events: none; }
.pageloader.is-hidden .cube, .pageloader.is-hidden .pageloader__txt { animation: none; }
.pageloader .cube { width: 56px; height: 56px; position: relative; transform-style: preserve-3d; animation: cubeSpin 3s infinite ease-in-out; }
.pageloader .cube span { position: absolute; width: 56px; height: 56px; border: 1.5px solid rgba(124, 92, 255, .75); background: rgba(124, 92, 255, .05); box-shadow: 0 0 16px rgba(124, 92, 255, .25) inset; }
.pageloader .cube span:nth-child(1) { transform: translateZ(28px); }
.pageloader .cube span:nth-child(2) { transform: rotateY(180deg) translateZ(28px); }
.pageloader .cube span:nth-child(3) { transform: rotateY(90deg) translateZ(28px); }
.pageloader .cube span:nth-child(4) { transform: rotateY(-90deg) translateZ(28px); }
.pageloader .cube span:nth-child(5) { transform: rotateX(90deg) translateZ(28px); }
.pageloader .cube span:nth-child(6) { transform: rotateX(-90deg) translateZ(28px); }
@keyframes cubeSpin { 0% { transform: rotateX(-25deg) rotateY(0); } 100% { transform: rotateX(-25deg) rotateY(360deg); } }
.pageloader__txt { color: var(--brand-2); font-size: 12px; font-weight: 700; letter-spacing: 4px; text-transform: uppercase; animation: plPulse 1.5s infinite; }
@keyframes plPulse { 0%, 100% { opacity: .35; } 50% { opacity: 1; } }

/* Content fade-in mỗi trang */
main { animation: pageIn .5s ease both; }
@keyframes pageIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.tab-anim { animation: tabIn .4s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes tabIn { from { opacity: 0; transform: translateY(8px) scale(.995); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { main, .tab-anim { animation: none; } .pageloader .cube { animation: none; } }

.container { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container--narrow { max-width: 800px; }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 10px 18px; border-radius: 12px; font-weight: 600; font-size: 14px; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 18px; height: 18px; }
.btn--primary { background: linear-gradient(135deg, var(--brand), #5b8bff); color: #fff; box-shadow: 0 8px 24px rgba(124, 92, 255, .4); }
.btn--primary:hover { box-shadow: 0 12px 30px rgba(124, 92, 255, .55); }
.btn--ghost { background: rgba(255, 255, 255, .06); color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { background: rgba(255, 255, 255, .1); }

/* Announcement */
.announce { background: linear-gradient(90deg, #1a1040, #2a1a5e, #102a4d); color: #dfe2ff; font-size: 13px; border-bottom: 1px solid var(--line); }
.announce__inner { display: flex; justify-content: center; gap: 18px; padding: 9px 20px; flex-wrap: wrap; align-items: center; }
.announce b { color: var(--gold); }
.announce__timer { font-variant-numeric: tabular-nums; opacity: .92; }

/* Header */
.header { position: sticky; top: 0; z-index: 50; background: rgba(8, 9, 18, .8); backdrop-filter: saturate(160%) blur(14px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.header.is-scrolled { box-shadow: 0 10px 30px rgba(0, 0, 0, .5); }
.header__inner { display: flex; align-items: center; gap: 20px; height: 70px; }

.logo { display: flex; align-items: center; gap: 9px; font-size: 21px; font-weight: 800; letter-spacing: -.5px; }
.logo__mark { width: 34px; height: 34px; flex-shrink: 0; }
.logo__text b { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }

.search { flex: 1; max-width: 460px; display: flex; align-items: center; gap: 8px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 12px; padding: 4px 4px 4px 14px; transition: border-color .2s, box-shadow .2s; }
.search:focus-within { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124, 92, 255, .2); }
.search > .ic { color: var(--muted); }
.search input { flex: 1; border: none; background: none; outline: none; font-size: 14px; color: var(--ink); }
.search input::placeholder { color: var(--muted); }
.search__btn { width: 38px; height: 38px; border-radius: 9px; background: linear-gradient(135deg, var(--brand), #5b8bff); color: #fff; display: grid; place-items: center; }

.nav { display: flex; gap: 4px; }
.nav a { padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); transition: .2s; }
.nav a:hover { color: #fff; background: rgba(255, 255, 255, .06); }

.header__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang-switch { display: inline-flex; gap: 2px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 10px; padding: 3px; flex-shrink: 0; }
.lang-btn { width: 30px; height: 26px; border-radius: 7px; display: grid; place-items: center; opacity: .45; transition: opacity .2s, background .2s; }
.lang-btn:hover { opacity: .8; }
.lang-btn.is-active { opacity: 1; background: rgba(255, 255, 255, .12); }
.lang-btn .flag { width: 22px; height: 15px; border-radius: 2px; display: block; box-shadow: 0 0 0 1px rgba(0, 0, 0, .2); }
.icon-btn { position: relative; width: 42px; height: 42px; border-radius: 12px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); display: grid; place-items: center; transition: .2s; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.badge { position: absolute; top: -5px; right: -5px; min-width: 18px; height: 18px; padding: 0 5px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; border-radius: 9px; display: grid; place-items: center; border: 2px solid var(--bg); }
.hamburger { display: none; }
.auth-area { display: flex; align-items: center; gap: 8px; }
.user-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 12px; background: rgba(124, 92, 255, .14); border: 1px solid rgba(124, 92, 255, .3); color: var(--brand-2); font-weight: 700; font-size: 14px; }
.user-chip .ic { width: 18px; height: 18px; }
.auth-tabs { display: flex; gap: 6px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); border-radius: 12px; padding: 5px; margin-bottom: 18px; }
.auth-tab { flex: 1; padding: 9px; border-radius: 9px; font-weight: 700; font-size: 14px; color: var(--muted); transition: .2s; }
.auth-tab.is-active { background: linear-gradient(135deg, var(--brand), #5b8bff); color: #fff; }

/* Hero */
.hero { padding: 26px 0; }
.hero__grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
.carousel { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); }
.carousel__track { display: flex; transition: transform .5s cubic-bezier(.22, .61, .36, 1); }
.slide { min-width: 100%; height: 340px; padding: 44px; display: flex; flex-direction: column; justify-content: center; color: #fff; position: relative; overflow: hidden; }
.slide::before { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(0, 0, 0, .65), transparent 70%); z-index: 1; }
/* Ảnh banner tự upload: lớp phủ nhẹ phía chữ để đọc rõ, ảnh vẫn hiện đầy đủ */
.slide--img::before { background: linear-gradient(90deg, rgba(0, 0, 0, .8), rgba(0, 0, 0, .35) 55%, rgba(0, 0, 0, .12)); }
.slide__art { position: absolute; right: -10px; bottom: -10px; width: 230px; height: 230px; opacity: .14; z-index: 0; transform: rotate(-12deg); }
.slide > * { position: relative; z-index: 2; }
.slide__tag { display: inline-block; width: fit-content; background: rgba(255, 255, 255, .16); padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .5px; margin-bottom: 14px; border: 1px solid rgba(255, 255, 255, .2); }
.slide__title { font-size: 38px; font-weight: 900; line-height: 1.1; max-width: 62%; letter-spacing: -1px; text-shadow: 0 4px 24px rgba(0, 0, 0, .5); }
.slide__sub { margin-top: 10px; font-size: 16px; opacity: .92; max-width: 55%; }
.slide__price { margin-top: 18px; display: flex; align-items: baseline; gap: 12px; }
.slide__price b { font-size: 30px; font-weight: 900; }
.slide__price s { opacity: .6; font-size: 17px; }
.slide__btn { margin-top: 22px; align-self: flex-start; }
.carousel__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; background: rgba(0, 0, 0, .5); border: 1px solid rgba(255, 255, 255, .2); color: #fff; display: grid; place-items: center; z-index: 3; transition: .2s; backdrop-filter: blur(4px); }
.carousel__nav:hover { background: rgba(0, 0, 0, .75); }
.carousel__nav--prev { left: 16px; }
.carousel__nav--next { right: 16px; }
.carousel__dots { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; z-index: 3; }
.carousel__dots button { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .4); transition: .2s; }
.carousel__dots button.is-active { width: 26px; border-radius: 5px; background: #fff; }

.hero__side { display: flex; flex-direction: column; gap: 14px; }
.side-card { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: transform .2s, border-color .2s; }
.side-card:hover { transform: translateY(-3px); border-color: var(--line-2); }
.side-card__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; flex-shrink: 0; background: rgba(124, 92, 255, .15); color: var(--brand); }
.side-card__icon .ic { width: 24px; height: 24px; }
.side-card--hot .side-card__icon { background: rgba(255, 61, 113, .15); color: var(--accent); }
.side-card__title { font-weight: 800; font-size: 15px; }
.side-card__sub { font-size: 13px; color: var(--muted); }
.side-card__sub b { color: var(--brand-2); }

/* Trust */
.trust { padding: 8px 0 16px; }
.trust__grid { display: grid; grid-template-columns: minmax(0, 640px); justify-content: center; gap: 14px; }
.trust__card { display: grid; grid-template-columns: 1fr 1fr; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .2s; }
.trust__card:hover { border-color: rgba(124, 92, 255, .4); }
.trust__item { display: flex; align-items: center; gap: 12px; padding: 18px; }
.trust__card .trust__item + .trust__item { border-left: 1px solid var(--line); }
.trust__icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; flex-shrink: 0; background: linear-gradient(135deg, rgba(124, 92, 255, .2), rgba(34, 211, 238, .15)); color: var(--brand-2); }
.trust__icon .ic { width: 21px; height: 21px; }
.trust__title { font-weight: 700; font-size: 14.5px; line-height: 1.25; }
.trust__sub { font-size: 12px; color: var(--muted); line-height: 1.3; }

/* Section */
.section { padding: 46px 0; }
.section__head { text-align: center; margin-bottom: 30px; }
.section__title { font-size: 30px; font-weight: 900; letter-spacing: -.8px; }
.section__title b { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section__desc { color: var(--muted); margin-top: 8px; }

/* Payment */
.pay__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; max-width: 560px; margin: 0 auto; }
.pay-card { display: flex; flex-direction: column; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px 14px; transition: transform .2s, border-color .2s, box-shadow .2s; font-weight: 700; font-size: 14px; color: var(--ink); }
.pay-card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: var(--glow); }
.pay-card__icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); color: var(--brand-2); }
.pay-card__icon .ic { width: 22px; height: 22px; }
.pay-card small { font-weight: 500; color: var(--muted); font-size: 11.5px; }

/* Filters */
.filters { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.chip { padding: 9px 18px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--muted); transition: .2s; }
.chip:hover { border-color: var(--brand); color: #fff; }
.chip.is-active { background: linear-gradient(135deg, var(--brand), #5b8bff); color: #fff; border-color: transparent; box-shadow: 0 8px 20px rgba(124, 92, 255, .4); }

/* Game grid */
.game-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.game { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform .2s, border-color .2s, box-shadow .2s; display: flex; flex-direction: column; cursor: pointer; }
.game:hover { transform: translateY(-6px); border-color: var(--brand); box-shadow: var(--glow); }
.game__cover { height: 150px; position: relative; display: grid; place-items: center; overflow: hidden; }
.game__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(7, 8, 15, .85)); z-index: 2; }
.game__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.game__ph { z-index: 0; color: rgba(255, 255, 255, .4); }
.game__ph .ic { width: 48px; height: 48px; }
.game__discount { position: absolute; top: 10px; left: 10px; background: var(--accent); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 9px; border-radius: 8px; z-index: 3; box-shadow: 0 4px 12px rgba(255, 61, 113, .5); }
.game__platform { position: absolute; top: 10px; right: 10px; background: rgba(0, 0, 0, .72); color: #fff; font-size: 11px; font-weight: 600; padding: 4px 9px; border-radius: 8px; z-index: 3; border: 1px solid rgba(255, 255, 255, .12); }
.game__body { padding: 14px; display: flex; flex-direction: column; flex: 1; }
.game__cat { font-size: 11px; font-weight: 700; color: var(--brand-2); text-transform: uppercase; letter-spacing: .5px; }
.game__title { font-weight: 800; font-size: 15px; margin: 3px 0 6px; line-height: 1.3; }
.game__rating { font-size: 12px; color: var(--muted); margin-bottom: 10px; display: flex; align-items: center; gap: 5px; }
.game__rating .ic { width: 14px; height: 14px; color: var(--gold); fill: var(--gold); }
.game__rating b { color: var(--ink); }
.game__foot { margin-top: auto; display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; }
.game__price b { font-size: 18px; font-weight: 900; color: #fff; }
.game__price s { display: block; font-size: 12px; color: var(--muted); }
.game__buy { background: rgba(124, 92, 255, .15); color: var(--brand); font-weight: 700; font-size: 13px; padding: 9px 14px; border-radius: 10px; transition: .2s; white-space: nowrap; border: 1px solid rgba(124, 92, 255, .3); }
.game__buy:hover { background: var(--brand); color: #fff; }
.games__empty { text-align: center; padding: 50px; color: var(--muted); font-size: 17px; grid-column: 1/-1; }
.game__stock { display: flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; color: var(--green); margin-bottom: 10px; }
.game__stock .ic { width: 14px; height: 14px; }
.game__stock.is-out { color: var(--accent); }
.game__sold { position: absolute; inset: 0; z-index: 4; display: grid; place-items: center; background: rgba(7, 8, 15, .72); color: #fff; font-weight: 900; letter-spacing: 2px; font-size: 16px; }
.game__buy.is-disabled { background: rgba(255, 255, 255, .05); color: var(--muted); border-color: var(--line); cursor: not-allowed; }
.meta--stock { color: var(--green); display: inline-flex; align-items: center; gap: 5px; }
.meta--out { color: var(--accent); display: inline-flex; align-items: center; gap: 5px; }
.meta--stock .ic, .meta--out .ic { width: 14px; height: 14px; }

/* Ranking + Feed */
.section--alt { background: rgba(255, 255, 255, .015); border-block: 1px solid var(--line); }
.ranking__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.panel__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.panel__head h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.panel__head h3 .ic { color: var(--gold); }
.panel__tag { font-size: 12px; font-weight: 700; color: var(--muted); background: rgba(255, 255, 255, .05); padding: 4px 10px; border-radius: 999px; }
.panel__tag--live { color: var(--green); background: rgba(34, 197, 94, .12); display: inline-flex; align-items: center; gap: 6px; }
.panel__tag--live i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: pulse 1.4s infinite; }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .25; } }
.ranking__list { list-style: none; padding: 8px; }
.ranking__list li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; transition: background .2s; }
.ranking__list li:hover { background: rgba(255, 255, 255, .04); }
.rank__num { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; font-weight: 800; font-size: 13px; background: rgba(255, 255, 255, .06); color: var(--muted); flex-shrink: 0; }
.rank__num--1 { background: linear-gradient(135deg, #fde68a, #f59e0b); color: #3a2400; }
.rank__num--2 { background: linear-gradient(135deg, #e5e7eb, #9ca3af); color: #1f2430; }
.rank__num--3 { background: linear-gradient(135deg, #fcd9b6, #d97706); color: #3a2400; }
.rank__num .ic { width: 16px; height: 16px; fill: currentColor; }
.rank__name { font-weight: 700; font-size: 14px; flex: 1; }
.rank__amt { font-weight: 800; color: var(--brand-2); font-size: 14px; }
.feed { list-style: none; padding: 8px; max-height: 360px; overflow: hidden; }
.feed li { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; animation: slideIn .4s ease; }
.feed li:nth-child(odd) { background: rgba(255, 255, 255, .03); }
@keyframes slideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }
.feed__avatar { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; flex-shrink: 0; }
.feed__text { flex: 1; font-size: 13px; line-height: 1.4; }
.feed__text b { color: #fff; }
.feed__game { color: var(--brand-2); font-weight: 700; }
.feed__time { font-size: 11px; color: var(--muted); white-space: nowrap; }
.rank-empty { display: flex; align-items: center; gap: 10px; padding: 28px 16px; color: var(--muted); font-size: 14px; justify-content: center; text-align: center; }
.rank-empty .ic { width: 20px; height: 20px; color: var(--line-2); }

/* Why */
.why__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why__card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 22px; text-align: center; transition: transform .2s, border-color .2s; }
.why__card:hover { transform: translateY(-5px); border-color: var(--brand); }
.why__card .why__ic { width: 56px; height: 56px; margin: 0 auto; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, rgba(124, 92, 255, .2), rgba(34, 211, 238, .15)); color: var(--brand-2); }
.why__card .why__ic .ic { width: 28px; height: 28px; }
.why__card h4 { margin: 14px 0 8px; font-size: 17px; }
.why__card p { font-size: 14px; color: var(--muted); }

/* FAQ */
.faq { display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.faq__item.is-open { border-color: var(--brand); }
.faq__q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; font-weight: 700; font-size: 15px; text-align: left; }
.faq__q .ic { color: var(--brand); transition: transform .25s; }
.faq__item.is-open .faq__q .ic { transform: rotate(180deg); }
.faq__a { max-height: 0; overflow: hidden; transition: max-height .3s ease; color: var(--muted); font-size: 14px; }
.faq__a p { padding: 0 20px 18px; }

/* Footer */
.footer { background: #05060c; border-top: 1px solid var(--line); padding: 50px 0 0; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 30px; }
.footer h5 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer__grid > div a { display: flex; align-items: center; gap: 8px; padding: 5px 0; font-size: 14px; color: var(--muted); transition: color .2s; }
.footer__grid > div > a.logo { color: #fff; padding: 0; margin-bottom: 12px; }
.footer__grid a:hover { color: #fff; }
.footer__grid a .ic { width: 16px; height: 16px; }
.footer__about { font-size: 14px; color: var(--muted); margin: 6px 0 16px; max-width: 320px; }
.footer__social { display: flex; gap: 10px; }
.footer__grid .footer__social a { width: 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .06); display: grid; place-items: center; gap: 0; padding: 0; transition: .2s; }
.footer__grid .footer__social a:hover { background: var(--brand); color: #fff; }
.footer__social a .ic { width: 18px; height: 18px; }
.footer__bottom { margin-top: 40px; border-top: 1px solid var(--line); padding: 20px 0 84px; font-size: 13px; color: var(--muted); text-align: center; }

/* Floats */
.floats { position: fixed; right: 18px; bottom: 88px; display: flex; flex-direction: column; gap: 12px; z-index: 60; }
.float { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: var(--shadow); transition: transform .2s; }
.float .ic { width: 24px; height: 24px; }
.float:hover { transform: scale(1.1); }
.float--zalo { background: #0068ff; }
.float--tele { background: #229ed9; }
.float--support { background: linear-gradient(135deg, var(--brand), #5b8bff); }
.float--top { background: rgba(255, 255, 255, .12); border: 1px solid var(--line); opacity: 0; pointer-events: none; transition: opacity .3s, transform .2s; }
.float--top.is-visible { opacity: 1; pointer-events: auto; }
.float--ai { background: linear-gradient(135deg, #7c5cff, #b14bff); box-shadow: 0 0 0 3px rgba(124, 92, 255, .25), var(--shadow); }
.float--ai .ic { width: 26px; height: 26px; }
.float__txt { font-weight: 900; font-size: 16px; letter-spacing: -.5px; }
/* hover label */
.float { position: relative; }
.float__label { position: absolute; right: calc(100% + 12px); top: 50%; transform: translate(8px, -50%); background: var(--surface-2); border: 1px solid var(--line-2); color: var(--ink); font-size: 13px; font-weight: 700; padding: 7px 12px; border-radius: 10px; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; box-shadow: var(--shadow); }
.float:hover .float__label { opacity: 1; transform: translate(0, -50%); }
.float__badge { position: absolute; top: -3px; right: -3px; background: var(--gold); color: #1a1206; font-size: 9px; font-weight: 900; padding: 1px 5px; border-radius: 999px; border: 2px solid var(--bg); letter-spacing: .3px; }
/* support group (Zalo/Telegram ẩn cho tới khi bấm Hỗ trợ) */
.float-group { display: flex; flex-direction: column; gap: 12px; align-items: center; }
.float-sub { display: none; }
.float-group.is-open .float-sub { display: grid; animation: floatIn .25s ease; }
@keyframes floatIn { from { opacity: 0; transform: scale(.5) translateY(14px); } to { opacity: 1; transform: none; } }
.float-group.is-open .float--support { transform: rotate(360deg); transition: transform .35s; }
.float-group.is-open .float--support { box-shadow: 0 0 0 3px rgba(124, 92, 255, .3), var(--shadow); }

/* AI chatbot panel */
.aichat { position: fixed; right: 18px; bottom: 24px; width: 360px; max-width: calc(100vw - 32px); height: 480px; max-height: 72vh; background: var(--bg2); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); z-index: 80; display: none; flex-direction: column; overflow: hidden; animation: pop .25s ease; }
.aichat.is-open { display: flex; }
.aichat__head { display: flex; align-items: center; justify-content: space-between; padding: 14px 16px; background: linear-gradient(135deg, var(--brand), #5b8bff); color: #fff; }
.aichat__title { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 15px; }
.aichat__title .ic { width: 20px; height: 20px; }
.aichat__actions { display: flex; gap: 6px; }
.aichat__close { width: 32px; height: 32px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: rgba(255, 255, 255, .15); }
.aichat__close .ic { width: 17px; height: 17px; }
.aichat__close:hover { background: rgba(255, 255, 255, .28); }
.aichat__body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; background: var(--bg); }
.aimsg { max-width: 82%; padding: 10px 13px; border-radius: 14px; font-size: 14px; line-height: 1.5; word-wrap: break-word; }
.aimsg--bot { align-self: flex-start; background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.aimsg--user { align-self: flex-end; background: linear-gradient(135deg, var(--brand), #5b8bff); color: #fff; border-bottom-right-radius: 4px; }
.aimsg--typing { display: flex; gap: 4px; }
.aimsg--typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.aimsg--typing span:nth-child(2) { animation-delay: .2s; }
.aimsg--typing span:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 60%, 100% { opacity: .25; } 30% { opacity: 1; } }
.aichat__chips { display: flex; flex-wrap: wrap; gap: 7px; padding: 0 12px 4px; }
.aichat__chips:empty { display: none; }
.aichip { font-size: 12.5px; font-weight: 600; color: var(--brand-2); background: rgba(124, 92, 255, .12); border: 1px solid rgba(124, 92, 255, .3); padding: 7px 11px; border-radius: 999px; transition: .2s; }
.aichip:hover { background: var(--brand); color: #fff; border-color: transparent; }
.aichat__form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); }
.aichat__form input { flex: 1; padding: 11px 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-size: 14px; outline: none; }
.aichat__form input:focus { border-color: var(--brand); }
.aichat__send { width: 44px; flex-shrink: 0; border-radius: 12px; background: linear-gradient(135deg, var(--brand), #5b8bff); color: #fff; display: grid; place-items: center; }
.aichat__send .ic { width: 20px; height: 20px; }

/* Bottom mobile nav */
.botnav { display: none; position: fixed; bottom: 0; left: 0; right: 0; z-index: 70; background: rgba(8, 9, 18, .95); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 8px 6px calc(8px + env(safe-area-inset-bottom)); }
.botnav__inner { display: flex; justify-content: space-around; align-items: center; }
.botnav a { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); flex: 1; padding: 5px 0; border-radius: 12px; transition: color .2s, background .2s; }
.botnav a .ic { width: 22px; height: 22px; }
.botnav a.is-active { color: var(--brand); background: rgba(124, 92, 255, .12); }
/* nút giữa "Đơn hàng" nổi bật, gradient có màu */
.botnav a.botnav--mid { position: relative; flex: 0 0 auto; min-width: 62px; background: none; }
.botnav a.botnav--mid .botnav__bubble { width: 50px; height: 50px; margin-top: -24px; margin-bottom: 1px; border-radius: 16px; display: grid; place-items: center; background: linear-gradient(135deg, #7c5cff 0%, #5b8bff 55%, #22d3ee 100%); box-shadow: 0 7px 18px rgba(124, 92, 255, .55); border: 4px solid var(--bg); }
.botnav a.botnav--mid .botnav__bubble .ic { width: 24px; height: 24px; color: #fff; }
.botnav a.botnav--mid.is-active { color: var(--brand-2); background: none; }
.botnav a.botnav--mid.is-active .botnav__bubble { box-shadow: 0 7px 22px rgba(34, 211, 238, .65); }

/* Toast */
.toast { position: fixed; bottom: 100px; left: 50%; transform: translate(-50%, 24px); opacity: 0; visibility: hidden; background: var(--surface-2); border: 1px solid var(--line-2); color: #fff; padding: 13px 22px; border-radius: 12px; font-size: 14px; font-weight: 600; box-shadow: var(--shadow); z-index: 100; transition: transform .35s cubic-bezier(.22, .61, .36, 1), opacity .3s, visibility .3s; }
.toast.is-show { transform: translate(-50%, 0); opacity: 1; visibility: visible; }

/* Backdrop */
.backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, .65); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 90; }
.backdrop.is-show { opacity: 1; pointer-events: auto; }

/* Cart drawer */
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: 400px; max-width: 92vw; background: var(--bg2); border-left: 1px solid var(--line); z-index: 95; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .35s cubic-bezier(.22, .61, .36, 1); }
.drawer.is-open { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 20px; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 17px; display: flex; align-items: center; gap: 8px; }
.drawer__close { width: 36px; height: 36px; border-radius: 10px; background: rgba(255, 255, 255, .06); display: grid; place-items: center; transition: .2s; }
.drawer__close:hover { background: rgba(255, 255, 255, .12); }
.drawer__body { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.drawer__empty { text-align: center; color: var(--muted); padding: 60px 20px; }
.drawer__empty .ic { width: 50px; height: 50px; margin: 0 auto 12px; color: var(--line-2); }
.cart-item { display: flex; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.cart-item__cover { width: 64px; height: 64px; border-radius: 10px; flex-shrink: 0; overflow: hidden; position: relative; display: grid; place-items: center; }
.cart-item__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cart-item__info { flex: 1; min-width: 0; }
.cart-item__title { font-weight: 700; font-size: 14px; line-height: 1.3; }
.cart-item__price { color: var(--brand-2); font-weight: 800; font-size: 14px; margin-top: 2px; }
.cart-item__ctrl { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 9px; overflow: hidden; }
.qty button { width: 26px; height: 26px; display: grid; place-items: center; background: rgba(255, 255, 255, .05); }
.qty button:hover { background: var(--brand); color: #fff; }
.qty button .ic { width: 14px; height: 14px; }
.qty span { width: 30px; text-align: center; font-weight: 700; font-size: 13px; }
.cart-item__remove { margin-left: auto; color: var(--accent); font-size: 12px; font-weight: 600; }
.cart-item__remove:hover { text-decoration: underline; }
.drawer__foot { padding: 18px 20px; border-top: 1px solid var(--line); }
.drawer__total { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.drawer__total b { font-size: 22px; font-weight: 900; color: var(--brand-2); }
.drawer__checkout { width: 100%; padding: 13px; font-size: 15px; }

/* Modals */
.modal { position: fixed; inset: 0; z-index: 96; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal.is-open { display: flex; }
.modal__panel { background: var(--bg2); border: 1px solid var(--line); border-radius: 20px; width: 100%; max-width: 480px; max-height: 90vh; overflow-y: auto; box-shadow: var(--shadow); animation: pop .3s ease; }
.modal__panel--detail { max-width: 720px; }
@keyframes pop { from { opacity: 0; transform: scale(.94) translateY(10px); } to { opacity: 1; transform: none; } }
.detail__banner { position: relative; height: 260px; border-radius: 20px 20px 0 0; overflow: hidden; display: grid; place-items: center; }
.detail__banner img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.detail__banner::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(11, 13, 24, .9)); }
.detail__close { position: absolute; top: 14px; right: 14px; width: 38px; height: 38px; border-radius: 50%; background: rgba(0, 0, 0, .55); display: grid; place-items: center; z-index: 3; backdrop-filter: blur(4px); border: 1px solid rgba(255, 255, 255, .15); }
.detail__discount { position: absolute; top: 14px; left: 14px; background: var(--accent); color: #fff; font-weight: 800; padding: 5px 12px; border-radius: 9px; z-index: 3; }
.detail__body { padding: 24px; }
.detail__cat { color: var(--brand-2); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.detail__title { font-size: 26px; font-weight: 900; letter-spacing: -.5px; margin: 4px 0 8px; }
.detail__meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.detail__meta span { background: rgba(255, 255, 255, .05); border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; }
.detail__desc { color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.detail__features { list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 20px; }
.detail__features li { font-size: 13px; display: flex; align-items: center; gap: 8px; }
.detail__features li .ic { width: 16px; height: 16px; color: var(--green); }
.detail__buybar { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.detail__price b { font-size: 26px; font-weight: 900; color: #fff; }
.detail__price s { display: block; font-size: 14px; color: var(--muted); }
.detail__buybar .btn { flex: 1; padding: 13px; font-size: 15px; }

/* Checkout */
.checkout__head { padding: 22px 24px 0; }
.checkout__head h3 { font-size: 22px; font-weight: 900; }
.checkout__head p { color: var(--muted); font-size: 14px; }
.checkout__body { padding: 18px 24px 24px; }
.checkout__list { display: flex; flex-direction: column; gap: 4px; margin-bottom: 16px; max-height: 180px; overflow-y: auto; }
.checkout__row { display: flex; justify-content: space-between; font-size: 14px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.checkout__row b { font-weight: 700; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 700; font-size: 13px; margin-bottom: 7px; }
.field input { width: 100%; padding: 12px 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 11px; font-size: 14px; font-family: inherit; color: var(--ink); outline: none; transition: border-color .2s, box-shadow .2s; }
.field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124, 92, 255, .2); }
.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pay-opt { display: flex; align-items: center; gap: 8px; border: 1px solid var(--line); border-radius: 11px; padding: 11px; font-size: 13px; font-weight: 600; transition: .2s; color: var(--ink); }
.pay-opt .ic { width: 18px; height: 18px; color: var(--muted); }
.pay-opt:hover { border-color: var(--brand); }
.pay-opt.is-sel { border-color: var(--brand); background: rgba(124, 92, 255, .12); color: var(--brand-2); }
.pay-opt.is-sel .ic { color: var(--brand-2); }
.checkout__total { display: flex; justify-content: space-between; align-items: baseline; margin: 18px 0; font-size: 15px; }
.checkout__total b { font-size: 24px; font-weight: 900; color: var(--brand-2); }
.checkout__pay { width: 100%; padding: 14px; font-size: 16px; }
.checkout__success { text-align: center; padding: 50px 30px; }
.checkout__success .tick { width: 76px; height: 76px; border-radius: 50%; background: rgba(34, 197, 94, .15); color: var(--green); display: grid; place-items: center; margin: 0 auto 18px; animation: pop .4s ease; }
.checkout__success .tick .ic { width: 40px; height: 40px; stroke-width: 3; }
.checkout__success h3 { font-size: 22px; font-weight: 900; }
.checkout__success p { color: var(--muted); margin-top: 6px; }
.checkout__success p b { color: var(--ink); }
.checkout__success .code { display: inline-block; margin-top: 14px; background: rgba(124, 92, 255, .1); border: 1px dashed var(--brand); padding: 8px 18px; border-radius: 10px; font-weight: 800; color: var(--brand-2); letter-spacing: 1px; }
.pay-prod { display: flex; align-items: center; gap: 12px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 14px; padding: 12px; margin-bottom: 14px; }
.pay-prod__cover { width: 60px; height: 60px; border-radius: 10px; overflow: hidden; position: relative; flex-shrink: 0; }
.pay-prod__cover img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pay-prod__name { font-weight: 700; font-size: 14px; }
.pay-prod__price { color: var(--brand-2); font-weight: 800; font-size: 14px; margin-top: 2px; }
.pay-hint { font-size: 12px; color: var(--muted); margin-top: 12px; text-align: center; line-height: 1.5; }
.pay-status { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 13px; color: var(--gold); background: rgba(255, 176, 32, .1); border: 1px solid rgba(255, 176, 32, .3); border-radius: 11px; padding: 11px 14px; line-height: 1.5; }
.pay-status__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--gold); animation: pulse 1.2s infinite; flex-shrink: 0; }
.pay-status .ic { width: 16px; height: 16px; flex-shrink: 0; }
.pay-status--ok { color: #4ade80; background: rgba(34, 197, 94, .12); border-color: rgba(34, 197, 94, .4); }
.pay-status--expired { color: var(--accent); background: rgba(255, 61, 113, .12); border-color: rgba(255, 61, 113, .4); }
.pay-status--expired .pay-status__dot { display: none; }
.coupon { display: flex; gap: 8px; }
.coupon input { flex: 1; }
.coupon .btn { white-space: nowrap; }
.key-box { margin-top: 20px; text-align: left; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 12px; padding: 14px; }
.key-box__title { display: flex; align-items: center; gap: 7px; font-weight: 700; font-size: 13px; color: var(--brand-2); margin-bottom: 10px; }
.key-box__title .ic { width: 16px; height: 16px; }
.key-line { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); font-size: 12.5px; }
.key-line:last-child { border-bottom: none; }
.key-line span { color: var(--muted); }
.key-line code { font-family: ui-monospace, monospace; font-weight: 700; color: #fff; background: rgba(124, 92, 255, .15); padding: 3px 9px; border-radius: 7px; letter-spacing: .5px; font-size: 12px; }
.keycopy { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; font-weight: 700; color: var(--brand-2); background: rgba(124, 92, 255, .12); border: 1px solid rgba(124, 92, 255, .3); padding: 4px 9px; border-radius: 8px; transition: .2s; white-space: nowrap; }
.keycopy .ic { width: 13px; height: 13px; }
.keycopy:hover { background: var(--brand); color: #fff; }

/* Responsive */
@media (max-width: 980px) {
  .hero__grid { grid-template-columns: 1fr; }
  .hero__side { flex-direction: row; }
  .side-card { flex: 1; }
  .pay__grid, .why__grid { grid-template-columns: repeat(2, 1fr); }
  .trust__grid { grid-template-columns: 1fr; gap: 12px; }
  .trust__item { padding: 14px; gap: 11px; }
  .trust__icon { width: 36px; height: 36px; }
  .trust__icon .ic { width: 19px; height: 19px; }
  .trust__title { font-size: 13.5px; }
  .game-grid { grid-template-columns: repeat(3, 1fr); }
  .ranking__grid, .footer__grid { grid-template-columns: 1fr; }
  .slide__title, .slide__sub { max-width: 80%; }
}
@media (max-width: 720px) {
  .nav, .search, .hide-sm { display: none; }
  .hamburger { display: grid; }
  .nav.is-open { display: flex; position: absolute; top: 70px; left: 0; right: 0; flex-direction: column; background: var(--bg2); padding: 12px; border-bottom: 1px solid var(--line); }
  .game-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__side { flex-direction: column; }
  .slide { padding: 28px; height: 300px; }
  .slide__title { font-size: 28px; max-width: 100%; }
  .slide__sub { max-width: 100%; }
  .section__title { font-size: 24px; }
  .botnav { display: block; }
  /* Nút nổi & chat ngồi trên bottom-nav, không bị che/đè */
  .floats { right: 14px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 72; }
  .aichat { right: 10px; left: auto; bottom: calc(70px + env(safe-area-inset-bottom)); width: 86vw; max-width: 350px; height: 64vh; max-height: 490px; border-radius: 15px; }
  .aichat__head { padding: 10px 13px; }
  .aichat__title { font-size: 14px; }
  .aichat__body { padding: 11px; gap: 8px; }
  .aichat__form { padding: 9px 10px; }
  .aichat__form input { padding: 9px 12px; font-size: 16px; }
  .toast { bottom: calc(82px + env(safe-area-inset-bottom)); }
  .detail__features { grid-template-columns: 1fr; }
  /* Footer chừa chỗ cho bottom-nav */
  .footer { padding-bottom: calc(78px + env(safe-area-inset-bottom)); }
  .modal { padding: 12px; align-items: flex-end; }
  .modal__panel { max-height: 86vh; }
  .drawer { width: 100%; max-width: 100%; }
}
@media (max-width: 480px) {
  .pay__grid, .why__grid { grid-template-columns: 1fr; }
  .trust__card { grid-template-columns: 1fr; }
  .trust__card .trust__item + .trust__item { border-left: none; border-top: 1px solid var(--line); }
  .game__cover { height: 130px; }
}

/* ============== v1.3 multi-page additions ============== */
.nav a.is-cur, .dropdown__btn.is-cur { color: #fff; }
.nav a.is-cur::after { content: ""; display: block; height: 2px; border-radius: 2px; margin-top: 4px; background: linear-gradient(90deg, var(--brand), var(--brand-2)); }

/* Dropdowns */
.dropdown { position: relative; }
.dropdown__btn { display: inline-flex; align-items: center; gap: 5px; padding: 8px 14px; border-radius: 10px; font-weight: 600; font-size: 14px; color: var(--muted); transition: .2s; }
.dropdown__btn:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.dropdown__btn .ic { width: 16px; height: 16px; }
.dropdown__menu { position: absolute; top: calc(100% + 10px); left: 0; min-width: 210px; background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 8px; box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(-8px); transition: .2s; z-index: 60; }
.dropdown.is-open .dropdown__menu { opacity: 1; visibility: visible; transform: none; }
.dropdown__menu a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); transition: .15s; }
.dropdown__menu a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.dropdown__menu a .ic { width: 18px; height: 18px; color: var(--brand-2); }

/* User dropdown */
.dropdown--user { margin-left: 4px; }
.avatar-btn { display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); transition: .2s; }
.avatar-btn:hover { background: rgba(255, 255, 255, .1); }
.avatar-btn .ic { width: 16px; height: 16px; color: var(--muted); }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); flex-shrink: 0; }
.avatar--lg { width: 44px; height: 44px; font-size: 18px; }
.dropdown__menu--user { right: 0; left: auto; min-width: 260px; }
.umenu__head { display: flex; align-items: center; gap: 12px; padding: 10px 12px 14px; }
.umenu__name { font-weight: 800; }
.umenu__bal { color: var(--brand-2); font-weight: 800; font-size: 14px; }
.umenu__sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* Reusable game card (reference style) */
.gcard-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.gcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; cursor: pointer; transition: transform .2s, border-color .2s, box-shadow .2s; }
.gcard:hover { transform: translateY(-6px); border-color: var(--brand); box-shadow: var(--glow); }
.gcard__cover { height: 150px; position: relative; overflow: hidden; }
.gcard__cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 50%, rgba(7, 8, 15, .8)); z-index: 1; }
.gcard__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.gcard__badge { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgba(34, 197, 94, .9); color: #04210f; font-size: 10px; font-weight: 800; letter-spacing: .5px; padding: 4px 9px; border-radius: 7px; }
.gcard__badge--out { background: rgba(255, 61, 113, .9); color: #fff; }
.gcard__plats { position: absolute; left: 10px; bottom: 10px; z-index: 2; display: flex; gap: 6px; }
.gcard__plats span { background: rgba(0, 0, 0, .68); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font-size: 10px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.gcard__body { padding: 14px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.gcard__title { font-weight: 800; font-size: 15px; line-height: 1.3; }
.gcard__price { font-size: 15px; }
.gcard__price b { color: #fff; font-weight: 900; }
.gcard__range { color: var(--muted); font-weight: 600; font-size: 13px; }
.gcard__buy { margin-top: auto; display: flex; align-items: center; justify-content: center; gap: 7px; padding: 11px; border-radius: 11px; background: rgba(124, 92, 255, .15); border: 1px solid rgba(124, 92, 255, .3); color: var(--brand-2); font-weight: 700; font-size: 14px; transition: .2s; }
.gcard__buy .ic { width: 16px; height: 16px; }
.gcard__buy:hover { background: var(--brand); color: #fff; }
.gcard__buy.is-disabled { background: rgba(255, 255, 255, .04); border-color: var(--line); color: var(--muted); cursor: not-allowed; }

/* Home category blocks */
.cat-block { margin-bottom: 34px; }
.cat-block__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.cat-block__title { display: flex; align-items: center; gap: 12px; }
.cat-block__title .ic { width: 26px; height: 26px; color: var(--brand-2); }
.cat-block__title h3 { font-size: 19px; font-weight: 800; }
.cat-block__title span { font-size: 13px; color: var(--muted); }
.cat-block__more { display: inline-flex; align-items: center; gap: 5px; color: var(--brand-2); font-weight: 700; font-size: 14px; padding: 7px 12px; border-radius: 10px; transition: .2s; }
.cat-block__more .ic { width: 16px; height: 16px; }
.cat-block__more:hover { background: rgba(124, 92, 255, .12); }

/* Generic page wrapper */
.page { padding: 30px 20px 70px; }
.crumb { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.crumb a { color: var(--brand-2); }
.crumb span { margin: 0 6px; }
.page__head { margin-bottom: 22px; }
.page__head--row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page__title { font-size: 28px; font-weight: 900; letter-spacing: -.6px; display: inline-flex; align-items: center; gap: 10px; }
.page__title .ic { width: 28px; height: 28px; color: var(--brand-2); }
.page__title b { background: linear-gradient(90deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.page__sub { color: var(--muted); margin-top: 6px; font-size: 14px; }
.page__count { color: var(--muted); font-weight: 600; }
.page__empty { text-align: center; padding: 50px 20px; color: var(--muted); }
.page__empty .ic { width: 46px; height: 46px; color: var(--line-2); margin: 0 auto 12px; }
.page__empty--big { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 70px 20px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.page__empty--big .btn { margin-top: 12px; }

/* Category layout */
.cat-layout { display: grid; grid-template-columns: 250px 1fr; gap: 24px; align-items: start; }
.cat-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 90px; }
.cat-side__box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.cat-side__box h4 { font-size: 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 12px; }
.cat-side__box h4 .ic { width: 18px; height: 18px; color: var(--brand-2); }
.cat-filter { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.cat-filter__btn { width: 100%; display: flex; align-items: center; justify-content: space-between; padding: 10px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--muted); transition: .15s; }
.cat-filter__btn:hover { background: rgba(255, 255, 255, .05); color: #fff; }
.cat-filter__btn.is-active { background: linear-gradient(135deg, rgba(124, 92, 255, .25), rgba(34, 211, 238, .12)); color: #fff; }
.cat-filter__num { font-size: 12px; font-weight: 800; background: rgba(255, 255, 255, .08); padding: 2px 9px; border-radius: 999px; }
.cat-filter__btn.is-active .cat-filter__num { background: rgba(124, 92, 255, .4); color: #fff; }

/* Balance card + deposit */
.balance-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 22px; text-align: right; }
.balance-card span { display: block; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .5px; }
.balance-card b { font-size: 24px; font-weight: 900; color: var(--brand-2); }
.dep-tabs { display: flex; gap: 10px; margin-bottom: 22px; flex-wrap: wrap; }
.dep-tab { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--muted); transition: .2s; }
.dep-tab .ic { width: 18px; height: 18px; }
.dep-tab:hover { border-color: var(--brand); color: #fff; }
.dep-tab.is-active { background: linear-gradient(135deg, var(--brand), #5b8bff); color: #fff; border-color: transparent; }
.dep-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; align-items: start; }
.dep-col { display: flex; flex-direction: column; gap: 18px; }
.dep-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.dep-box h4 { font-size: 14px; display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.dep-box h4 .ic { width: 18px; height: 18px; color: var(--brand-2); }
.amount-grid, .bank-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.amount-btn, .bank-btn { padding: 13px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line); font-weight: 700; font-size: 14px; color: var(--ink); transition: .2s; }
.amount-btn:hover, .bank-btn:hover { border-color: var(--brand); }
.amount-btn.is-sel, .bank-btn.is-sel { border-color: var(--brand); background: rgba(124, 92, 255, .14); color: var(--brand-2); }
.dep-label { display: block; font-size: 12px; font-weight: 700; color: var(--muted); margin: 14px 0 7px; }
.dep-input { width: 100%; padding: 12px 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 11px; font-size: 14px; color: var(--ink); font-family: inherit; outline: none; }
.dep-input:focus { border-color: var(--brand); }
.dep-min { display: flex; align-items: center; gap: 8px; margin-top: 12px; padding: 10px 13px; border-radius: 11px; font-size: 12.5px; line-height: 1.5; color: #e9d9b0; background: rgba(255, 176, 32, .08); border: 1px solid rgba(255, 176, 32, .3); }
.dep-min .ic { width: 16px; height: 16px; flex-shrink: 0; color: var(--gold); }
.dep-min b { color: #fff; }
.dep-action { width: 100%; padding: 14px; font-size: 15px; }
.rate-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 12px; padding: 10px 13px; border-radius: 11px; background: linear-gradient(135deg, rgba(124, 92, 255, .14), rgba(34, 211, 238, .1)); border: 1px solid var(--line); font-size: 13px; color: var(--ink); }
.rate-bar .ic { width: 17px; height: 17px; color: var(--brand-2); flex-shrink: 0; }
.rate-bar small { font-size: 11px; }
.dep-info__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.dep-info__head h4 { margin: 0; }
.online { color: var(--green); font-size: 11px; font-weight: 800; background: rgba(34, 197, 94, .12); padding: 3px 9px; border-radius: 999px; }
.dep-qr { display: grid; place-items: center; min-height: 190px; background: rgba(255, 255, 255, .03); border: 1px dashed var(--line-2); border-radius: 14px; margin-bottom: 16px; }
.dep-qr img { border-radius: 10px; }
.dep-qr__ph { text-align: center; color: var(--muted); padding: 20px; }
.dep-qr__ph .ic { width: 44px; height: 44px; margin: 0 auto 10px; opacity: .5; }
.dep-fields { display: flex; flex-direction: column; gap: 8px; }
.dep-field { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 11px; font-size: 13px; }
.dep-field span { color: var(--muted); }
.dep-field b { font-weight: 700; text-align: right; }
.dep-field--hl { border-color: rgba(255, 176, 32, .4); background: rgba(255, 176, 32, .08); }
.dep-field--hl b { color: var(--gold); }
.dep-note { margin-top: 14px; display: flex; gap: 8px; font-size: 12.5px; color: #fca5a5; background: rgba(255, 61, 113, .08); border: 1px solid rgba(255, 61, 113, .25); border-radius: 11px; padding: 12px; line-height: 1.5; }
.dep-note .ic { width: 16px; height: 16px; flex-shrink: 0; }
.dep-list { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.dep-list li { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--muted); }
.dep-list li .ic { width: 16px; height: 16px; color: var(--green); }

/* plain tables / pills */
.ptbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.ptbl th { text-align: left; padding: 12px 16px; color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .4px; border-bottom: 1px solid var(--line); }
.ptbl td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.ptbl tr:last-child td { border-bottom: none; }
.ptbl .hl { color: var(--green); font-weight: 800; }
.panel__pad { padding: 18px 20px 20px; }
.muted-p { color: var(--muted); font-size: 14px; margin-bottom: 14px; }
.pill { font-size: 12px; font-weight: 700; padding: 4px 11px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.pill .ic { width: 14px; height: 14px; }
.pill--ok { background: rgba(34, 197, 94, .14); color: #4ade80; }
.pill--wait { background: rgba(255, 176, 32, .14); color: var(--gold); }
.pill--bad { background: rgba(255, 61, 113, .14); color: var(--accent); }

/* Orders */
.ord-search { display: flex; gap: 10px; margin-bottom: 16px; }
.ord-search input { flex: 1; padding: 13px 16px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-size: 14px; outline: none; }
.ord-search input:focus { border-color: var(--brand); }
.ord-tabs { display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap; }
.ord-tab { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--muted); transition: .2s; }
.ord-tab.is-active { background: linear-gradient(135deg, var(--brand), #5b8bff); color: #fff; border-color: transparent; }
.ord-card { background: var(--surface); border: 1px solid var(--line); border-radius: 13px; padding: 11px 12px; margin-bottom: 9px; }
.ord-card__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.ord-card__code { font-weight: 800; font-size: 13px; }
.ord-card__date { color: var(--muted); font-size: 11px; margin-left: 8px; }
.ord-card__items { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 12.5px; color: var(--ink); margin-bottom: 7px; }
.ord-card__items b { color: var(--brand-2); }
.ord-card__keys { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 10px; padding: 3px 11px; margin-bottom: 7px; }
/* Đơn acc thu gọn: thanh tóm tắt + Xem Thêm / Tải Về */
.ord-accs { margin-bottom: 8px; }
.ord-accbar { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: rgba(124, 92, 255, .07); border: 1px solid rgba(124, 92, 255, .22); border-radius: 11px; padding: 9px 12px; }
.ord-accbar__n { font-size: 13px; font-weight: 700; color: #cbb9ff; display: inline-flex; align-items: center; gap: 7px; }
.ord-accbar__n .ic { width: 16px; height: 16px; }
.ord-accbar__btns { display: flex; gap: 8px; flex-wrap: wrap; }
.ord-accbtn { margin-top: 0; padding: 7px 13px; font-size: 12.5px; }
.ord-accbtn .ic { width: 14px; height: 14px; }
.ord-accbox { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 10px; padding: 3px 11px; margin-top: 8px; }
.ord-card__foot { display: flex; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 7px; }
.ord-card__method { color: var(--muted); font-size: 11.5px; display: inline-flex; align-items: center; gap: 5px; }
.ord-card__method .ic { width: 14px; height: 14px; }
.ord-card__total { font-weight: 900; font-size: 14.5px; color: var(--brand-2); }

/* Account */
.acc-grid { display: grid; grid-template-columns: 320px 1fr; gap: 22px; align-items: start; }
.acc-col { display: flex; flex-direction: column; }
.acc-profile { padding: 26px; text-align: center; }
.acc-avatar { width: 84px; height: 84px; border-radius: 50%; margin: 0 auto 14px; display: grid; place-items: center; font-size: 34px; font-weight: 800; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.acc-name { font-size: 20px; font-weight: 800; }
.acc-email { color: var(--muted); font-size: 14px; margin-top: 2px; }
.acc-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 20px; }
.acc-stats div { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 12px; padding: 12px 6px; }
.acc-stats b { display: block; font-size: 15px; font-weight: 900; color: var(--brand-2); }
.acc-stats span { font-size: 11px; color: var(--muted); }
.api-row { display: flex; gap: 8px; }
.api-row input { flex: 1; }
.api-doc { margin-top: 16px; display: flex; flex-direction: column; gap: 8px; }

/* Footer bottom row + version */
.footer__bottom-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ver-badge { display: inline-block; background: rgba(124, 92, 255, .15); color: var(--brand-2); font-weight: 700; padding: 2px 10px; border-radius: 999px; font-size: 12px; margin-left: 6px; }
.footer__legal a { color: var(--muted); transition: color .2s; }
.footer__legal a:hover { color: var(--brand-2); }

/* Legal page */
.legal-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 24px; }
.legal-nav a { padding: 9px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; font-size: 14px; color: var(--muted); transition: .2s; }
.legal-nav a:hover { border-color: var(--brand); color: #fff; }
.legal section { scroll-margin-top: 90px; margin-bottom: 30px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 26px; }
.legal h2 { font-size: 20px; font-weight: 800; margin-bottom: 12px; }
.legal p { color: var(--muted); margin-bottom: 12px; line-height: 1.7; }
.legal ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.legal li { position: relative; padding-left: 24px; color: var(--ink); font-size: 14.5px; line-height: 1.6; }
.legal li::before { content: ""; position: absolute; left: 4px; top: 9px; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); }
.legal li b { color: var(--brand-2); }

@media (max-width: 980px) {
  .gcard-grid { grid-template-columns: repeat(3, 1fr); }
  .dep-grid, .acc-grid { grid-template-columns: 1fr; }
  .cat-layout { grid-template-columns: 1fr; }
  .cat-side { position: static; flex-direction: row; flex-wrap: wrap; }
  .cat-side__box { flex: 1; min-width: 220px; }
}
@media (max-width: 720px) {
  .gcard-grid { grid-template-columns: repeat(2, 1fr); }
  .dropdown__menu { position: fixed; left: 12px; right: 12px; min-width: 0; }
  .dropdown__menu--user { left: auto; right: 12px; width: 280px; }
}
@media (max-width: 480px) { .gcard-grid { grid-template-columns: 1fr 1fr; } .amount-grid { grid-template-columns: 1fr 1fr; } }

/* ============== Free Key page ============== */
.nav-free { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 14px; color: #fff; background: linear-gradient(135deg, #7c5cff, #5b21d6); text-shadow: 0 1px 2px rgba(0, 0, 0, .28); box-shadow: 0 6px 16px rgba(124, 92, 255, .35); transition: .2s; }
.nav-free .ic { width: 16px; height: 16px; }
.nav-free:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(124, 92, 255, .5); }

.fk-wrap { max-width: 760px; margin: 0 auto; }
.fk-steps { display: flex; flex-direction: column; gap: 14px; }
.fk-step { display: flex; align-items: center; gap: 16px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; transition: border-color .2s; }
.fk-step.done { border-color: rgba(34, 197, 94, .5); background: rgba(34, 197, 94, .05); }
.fk-step__no { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 17px; background: rgba(124, 92, 255, .15); color: var(--brand-2); flex-shrink: 0; }
.fk-step.done .fk-step__no { background: rgba(34, 197, 94, .18); color: #4ade80; }
.fk-step__no .ic { width: 22px; height: 22px; }
.fk-step__info { flex: 1; min-width: 0; }
.fk-step__info h4 { font-size: 15px; }
.fk-step__info p { color: var(--muted); font-size: 13px; margin-top: 2px; }
.fk-step__btn { flex-shrink: 0; }
.fk-code { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.fk-code code { font-family: ui-monospace, monospace; font-weight: 800; letter-spacing: 1px; color: var(--gold); background: rgba(255, 176, 32, .12); border: 1px dashed rgba(255, 176, 32, .5); padding: 7px 14px; border-radius: 9px; }
/* Thẻ server cấp key */
.fk-srv { display: flex; align-items: center; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px 18px; margin-top: 12px; }
.fk-srv__icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #16a34a, #22d3ee); flex-shrink: 0; }
.fk-srv__info { flex: 1; min-width: 0; text-align: left; }
.fk-srv__name { font-weight: 800; }
.fk-srv__desc { font-size: 12.5px; color: var(--muted); }
.fk-srv__badge { font-size: 12px; font-weight: 700; color: #f6cf63; background: rgba(255, 176, 32, .12); border: 1px solid rgba(255, 176, 32, .3); padding: 5px 11px; border-radius: 999px; white-space: nowrap; flex-shrink: 0; }
.fk-srv__act { flex-shrink: 0; margin-top: 0; }
@media (max-width: 560px) {
  /* Mobile: icon + tên ở hàng trên, badge "đã kích hoạt" ở giữa, nút CHỌN full-width ở dưới */
  .fk-srv { flex-wrap: wrap; gap: 10px 14px; }
  .fk-srv__info { flex: 1 1 calc(100% - 60px); }
  .fk-srv__badge { order: 3; flex-basis: 100%; text-align: center; }
  .fk-srv__act { order: 4; flex-basis: 100%; width: 100%; justify-content: center; }
}
.fk-action { margin-top: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; text-align: center; }
.fk-note { font-size: 13px; color: var(--muted); line-height: 1.6; text-align: left; background: rgba(124, 92, 255, .07); border: 1px solid rgba(124, 92, 255, .2); border-radius: 12px; padding: 12px 14px; margin-bottom: 14px; }
.fk-note .ic { width: 18px; height: 18px; color: var(--brand-2); display: inline-block; vertical-align: -3px; margin-right: 6px; }
.fk-namelabel { display: block; font-size: 13px; font-weight: 700; color: var(--muted); margin-bottom: 8px; text-align: left; }
.fk-nameinput { width: 100%; padding: 13px 16px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 12px; color: var(--ink); font-size: 15px; font-family: inherit; outline: none; margin-bottom: 14px; text-align: center; }
.fk-nameinput:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(124, 92, 255, .2); }
.fk-stock { font-size: 14px; color: var(--ink); margin-bottom: 14px; display: inline-flex; align-items: center; gap: 7px; }
.fk-stock .ic { width: 18px; height: 18px; color: var(--gold); }
.fk-stock b { color: #4ade80; }
.fk-verify { width: 100%; max-width: 360px; padding: 14px; font-size: 16px; }
.fk-key { margin-top: 22px; background: linear-gradient(135deg, rgba(34, 197, 94, .1), rgba(34, 211, 238, .08)); border: 1px solid rgba(34, 197, 94, .4); border-radius: var(--radius); padding: 30px; text-align: center; animation: pop .35s ease; }
.fk-key__tick { width: 64px; height: 64px; border-radius: 50%; background: rgba(34, 197, 94, .18); color: #4ade80; display: grid; place-items: center; margin: 0 auto 14px; }
.fk-key__tick .ic { width: 34px; height: 34px; stroke-width: 3; }
.fk-key h3 { font-size: 20px; }
.fk-key p { color: var(--muted); margin-top: 6px; }
.fk-key__code { display: flex; align-items: center; justify-content: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.fk-key__code code { font-family: ui-monospace, monospace; font-weight: 800; font-size: 17px; letter-spacing: 1px; color: #fff; background: rgba(0, 0, 0, .35); border: 1px solid var(--line-2); padding: 12px 18px; border-radius: 11px; }
.fk-key__note { font-size: 12px; }
.fk-key--empty { color: var(--gold); font-weight: 700; display: flex; align-items: center; justify-content: center; gap: 8px; }
@media (max-width: 560px) {
  /* Card từng bước: số + tiêu đề ở hàng trên (đủ rộng để chữ không rớt dọc), nút xuống full-width hàng dưới */
  .fk-step { flex-wrap: wrap; row-gap: 12px; align-items: flex-start; }
  .fk-step__info { flex: 1 1 calc(100% - 56px); }
  .fk-step > :not(.fk-step__no):not(.fk-step__info) { flex-basis: 100%; width: 100%; }
  .fk-step > div { justify-content: center; }
  .fk-step__btn { width: 100%; justify-content: center; }
}

/* ============== Product reviews ============== */
.reviews { margin-top: 24px; border-top: 1px solid var(--line); padding-top: 20px; }
.reviews__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.reviews__head h3 { font-size: 16px; display: flex; align-items: center; gap: 8px; }
.reviews__head h3 .ic { width: 18px; height: 18px; color: var(--gold); }
.reviews__avg { font-size: 13px; color: var(--muted); }
.reviews__avg b { color: var(--gold); font-size: 16px; }
.review-form { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 14px; padding: 14px; margin-bottom: 16px; }
.star-pick { display: flex; gap: 4px; margin-bottom: 10px; }
.star-btn { font-size: 26px; line-height: 1; color: rgba(255, 255, 255, .2); transition: .15s; }
.star-btn.on { color: var(--gold); }
.star-btn:hover { transform: scale(1.15); }
.review-form textarea { width: 100%; min-height: 64px; resize: vertical; padding: 11px 14px; background: rgba(255, 255, 255, .05); border: 1px solid var(--line); border-radius: 11px; color: var(--ink); font-family: inherit; font-size: 14px; outline: none; margin-bottom: 10px; }
.review-form textarea:focus { border-color: var(--brand); }
.reviews__login { color: var(--muted); font-size: 14px; display: flex; align-items: center; gap: 7px; margin-bottom: 8px; }
.reviews__login .ic { width: 18px; height: 18px; }
.linkbtn { color: var(--brand-2); font-weight: 700; text-decoration: underline; }
.reviews__list { display: flex; flex-direction: column; gap: 12px; }
.reviews__empty { color: var(--muted); font-size: 14px; }
.review { background: rgba(255, 255, 255, .03); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; }
.review__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.review__name { font-weight: 700; font-size: 14px; }
.review__stars { color: var(--gold); font-size: 14px; letter-spacing: 1px; }
.review__text { font-size: 14px; color: var(--ink); margin: 6px 0 4px; line-height: 1.5; }
.review__date { font-size: 11px; color: var(--muted); }

/* Package picker */
.pkg-pick { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.pkg-opt { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: rgba(255, 255, 255, .03); color: var(--ink); font-weight: 600; font-size: 14px; transition: .2s; }
.pkg-opt:hover { border-color: var(--brand); }
.pkg-opt.is-sel { border-color: var(--brand); background: rgba(124, 92, 255, .12); }
.pkg-opt b { color: var(--brand-2); font-weight: 800; }
.pkg-opt > span { display: flex; flex-direction: column; gap: 2px; }
.pkg-stock { font-size: 11px; font-weight: 600; color: var(--green); }
.pkg-opt.is-out { opacity: .5; cursor: not-allowed; }
.pkg-opt.is-out:hover { border-color: var(--line); }
.pkg-opt.is-out .pkg-stock { color: var(--accent); }

/* Kênh cộng tác viên (CTV) */
.page__sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.ctv-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin: 18px 0 8px; }
.ctv-stat { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; text-align: center; }
.ctv-stat b { display: block; font-size: 26px; font-weight: 900; }
.ctv-stat span { font-size: 13px; color: var(--muted); }
.ctv-h { font-size: 17px; margin: 24px 0 12px; }
.ctv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.ctv-card { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.ctv-card__name { font-weight: 800; font-size: 15px; }
.ctv-card__pkg { display: inline-block; width: fit-content; font-size: 12px; font-weight: 700; color: var(--brand-2); background: rgba(34, 211, 238, .12); padding: 3px 9px; border-radius: 999px; }
.ctv-card__pay { font-size: 12.5px; font-weight: 700; color: var(--green); }
.ctv-card__nums { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin: 4px 0 8px; }
.ctv-card__nums b { color: var(--ink); }
.ctv-sell { width: 100%; }
.ctv-sell.is-disabled { opacity: .5; pointer-events: none; }
.ctv-issued { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; background: rgba(34, 197, 94, .1); border: 1px solid rgba(34, 197, 94, .4); color: #4ade80; border-radius: 12px; padding: 13px 16px; margin: 16px 0; font-size: 14px; }
.okey { font-family: ui-monospace, monospace; font-weight: 700; color: #fff; background: rgba(124, 92, 255, .18); padding: 3px 9px; border-radius: 7px; letter-spacing: .5px; }
.ctv-plus { font-weight: 800; color: var(--green); background: rgba(34, 197, 94, .15); padding: 3px 10px; border-radius: 999px; }
.ctv-minus { font-weight: 800; color: var(--accent); background: rgba(255, 61, 113, .15); padding: 3px 10px; border-radius: 999px; }
.ctv-card__pay { color: var(--brand-2); }
@media (max-width: 600px) { .ctv-stats { grid-template-columns: 1fr; } }

/* Intro popup */
.intro-pop { max-width: 460px; text-align: center; padding: 36px 30px 30px; position: relative; }
.intro-pop__icon { width: 64px; height: 64px; border-radius: 18px; margin: 0 auto 16px; display: grid; place-items: center; background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.intro-pop__icon .ic { width: 32px; height: 32px; }
.intro-pop h3 { font-size: 22px; font-weight: 900; }
.intro-pop p { color: var(--muted); margin: 10px 0 20px; line-height: 1.6; }
.intro-pop .btn { width: 100%; padding: 13px; }

/* Tắt hiệu ứng hover bị "dính" khi chạm trên mobile (chỉ giữ hover cho chuột thật trên PC).
   Chạm vào card sẽ KHÔNG còn nháy viền/sáng. Sự kiện click & nút :active vẫn hoạt động bình thường. */
@media (hover: none) {
  .gcard:hover, .game:hover, .side-card:hover, .pay-card:hover,
  .why__card:hover, .trust__card:hover, .nav-free:hover {
    transform: none;
    border-color: var(--line);
    box-shadow: none;
  }
  .gcard__buy:hover { background: rgba(124, 92, 255, .15); color: var(--brand-2); }
  .game__buy:hover { background: rgba(124, 92, 255, .15); color: var(--brand-2); }
  .chip:hover, .cat-filter__btn:hover, .amount-btn:hover, .bank-btn:hover,
  .pay-opt:hover, .pkg-opt:hover, .dep-tab:hover, .cat-block__more:hover {
    border-color: var(--line);
    background: var(--surface);
    color: var(--ink);
  }
}

/* iOS Safari tự PHÓNG TO trang khi chạm vào ô nhập có cỡ chữ < 16px.
   Ép mọi ô nhập trên mobile = 16px để KHÔNG bị zoom khi gõ (chat AI, tìm kiếm, nạp tiền, đăng nhập...). */
@media (max-width: 600px) {
  input:not([type="checkbox"]):not([type="radio"]):not([type="range"]),
  textarea, select { font-size: 16px !important; }
}
