/* =========================================================
   Giao diện người dùng — tông sáng
   Nền #f4f6fc · chữ #101a33 · nhấn gradient tím → xanh → cyan, nút nạp vàng-cam
   ========================================================= */
:root {
  --bg: #f4f6fc;
  --surface: #ffffff;
  --surface-2: #f0f3fb;
  --soft: rgba(14, 24, 52, .043);
  --soft-2: rgba(14, 24, 52, .04);
  --line: rgba(14, 24, 52, .10);
  --line-2: rgba(14, 24, 52, .18);
  --text: #101a33;
  --muted: #5a6788;
  --text-3: #8a94b0;

  --primary: #00894a;
  --game-ink: #101734;
  --game-text: #f7f8ff;
  --game-subtext: #d9def6;
  --game-lilac: #b8ffd6;
  --game-ice: #7dffbf;
  --game-amber: #ffcc89;
  --game-edge: color-mix(in srgb, var(--primary) 23%, var(--line));
  --game-glow: 0 22px 50px -31px rgba(0, 160, 90, .55);
  --primary-2: #00897b;
  --gold: #b3720a;
  --danger: #d92546;
  --success: #0f9d6e;
  --success-2: #2ee6a8;
  --warning: #c27c00;

  --grad: linear-gradient(115deg, #00f07a 0, #00dc96 45%, #00c8e6 100%);
  --grad-ink: linear-gradient(115deg, #00a352 0, #00957a 45%, #008fb0 100%);
  --on-grad: #032a1a;
  --grad-gold: linear-gradient(115deg, #ffc245 0, #ff8a3d 100%);
  --grad-gold-text: linear-gradient(115deg, #bd7a00, #d9541c);
  --grad-green: linear-gradient(135deg, #2ee6a8, #00a97a);
  --grad-violet: linear-gradient(135deg, #00e08a, #00b8d4);
  --grad-hot: linear-gradient(135deg, #ff4d6d, #ff8a3d);
  --grad-new: linear-gradient(135deg, #2ee6a8, #00d4ff);
  --grad-card: linear-gradient(180deg, #ffffff, #f0f3fb);

  --shadow: 0 18px 40px -26px rgba(20, 30, 70, .45);
  --shadow-lg: 0 30px 60px -30px rgba(20, 30, 70, .55);
  --sh-primary: 0 12px 28px -14px rgba(0, 200, 105, .95);
  --sh-gold: 0 12px 30px -14px rgba(255, 160, 60, .95);

  --radius: 18px;
  --radius-sm: 12px;
  --radius-xs: 11px;
  --container: 1280px;
  --header-h: 74px;
  --font: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 96px; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  font-family: var(--font); font-size: 15px; line-height: 1.5; color: var(--text);
  background: var(--bg); overflow-x: hidden; position: relative;
  -webkit-font-smoothing: antialiased;
}
body::before {
  content: ''; position: fixed; inset: 0; z-index: -1;
  background: linear-gradient(180deg, color-mix(in srgb, var(--bg) 24%, transparent), color-mix(in srgb, var(--bg) 53%, transparent)), url('/img/catalog-background.jpg') center top / cover no-repeat, var(--bg);
}
@media (max-width: 575.98px) {
  body::before { background-position: center, 55% top; }
}
/* Ảnh nền admin tải lên: hiển thị như trang mẫu (cố định, phủ kín, tăng sáng 1.4) */
body.has-custom-bg::before { background: linear-gradient(color-mix(in srgb, var(--bg) 60%, transparent), color-mix(in srgb, var(--bg) 78%, transparent)), var(--site-bg) center top / cover no-repeat; }
body.no-scroll { overflow: hidden; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: rgba(0, 214, 120, .22); }
:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; border-radius: 6px; }
[hidden] { display: none !important; }

#site-header { display: contents; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 15px 12px; }
.page { flex: 1 0 auto; }
.sec { padding: 41.6px 0; }
.sec--hero { padding: 25.6px 0 6.4px; }
.sec--tight { padding: 16px 0 4px; }
.sec--flush-top { padding-top: 0; }
.shell { background: color-mix(in srgb, var(--bg) 55%, transparent); }
.shell { max-width: var(--container); margin: 0 auto; padding: 16px 12px 40px; width: 100%; }
.shell > * + * { margin-top: 24px; }
.icon { width: 1.1em; height: 1.1em; flex: none; display: inline-block; vertical-align: -.18em; }
.muted { color: var(--muted); }
.dim { color: var(--text-3); }
.nowrap { white-space: nowrap; }
.mono { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; }
.text-grad { background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.text-gold { background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6.4px;
  height: 42px; padding: 0 16px; border-radius: var(--radius-xs);
  font-weight: 700; font-size: 13.5px; line-height: 1; white-space: nowrap;
  border: 1px solid transparent; position: relative; user-select: none;
  transition: transform .18s var(--ease), box-shadow .2s, filter .2s, background .2s, border-color .2s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--grad); color: var(--on-grad); box-shadow: var(--sh-primary); }
.btn--primary:hover { filter: brightness(1.06) saturate(1.1); }
.btn--gold { background: var(--grad-gold); color: #241800; box-shadow: var(--sh-gold); }
.btn--gold:hover { filter: brightness(1.04); }
.btn--ghost { background: var(--soft); border-color: var(--line-2); color: var(--text); }
.btn--ghost:hover { background: rgba(14, 24, 52, .07); border-color: rgba(0, 150, 80, .45); color: var(--primary); }
.btn--outline { background: #fff; border-color: rgba(0, 150, 80, .45); color: var(--primary); }
.btn--danger { background: rgba(217, 37, 70, .08); border-color: rgba(217, 37, 70, .35); color: var(--danger); }
.btn--green { background: var(--grad-green); color: #fff; box-shadow: 0 12px 28px -14px rgba(46, 230, 168, .9); }
.btn--sm { height: 31px; padding: 0 14px; font-size: 13px; font-weight: 600; border-radius: var(--radius-sm); }
.btn--md { height: 39px; padding: 0 12.8px; font-size: 13px; }
.btn--lg { height: 50px; padding: 0 20px; font-size: 15px; font-weight: 800; border-radius: 13px; }
.btn--block { width: 100%; }
.btn:disabled, .btn.is-disabled { opacity: .55; cursor: not-allowed; filter: grayscale(.35); box-shadow: none; transform: none; }
.btn.is-loading { color: transparent !important; pointer-events: none; }
.btn.is-loading::after { content: ''; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: spin .7s linear infinite; }
.btn--ghost.is-loading::after, .btn--gold.is-loading::after { border-color: rgba(16, 26, 51, .2); border-top-color: var(--text); }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 4.8px; min-width: 0; }
.field + .field { margin-top: 14px; }
.label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.label .req { color: var(--danger); }
.input, .select, .textarea {
  width: 100%; height: 42px; padding: 0 14.4px; min-width: 0;
  border-radius: var(--radius-xs); background: var(--soft); border: 1px solid var(--line);
  color: var(--text); font-size: 13.5px; transition: border-color .2s, box-shadow .2s, background .2s;
}
.input--lg { height: 46px; font-size: 14.5px; }
.textarea { height: auto; min-height: 96px; padding: 10px 14.4px; resize: vertical; }
.input::placeholder { color: #8a94b0; }
.input:focus, .select:focus, .textarea:focus { outline: none; background: #fff; border-color: rgba(0, 150, 80, .6); box-shadow: 0 0 0 4px rgba(0, 214, 120, .12); }
.select {
  appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6788' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; background-size: 16px;
}
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .input { padding-left: 42px; }
.input-wrap > .icon { position: absolute; left: 14px; color: var(--muted); pointer-events: none; width: 17px; height: 17px; }
.input-wrap .input-action { position: absolute; right: 5px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 8px; color: var(--muted); }
.input-wrap .input-action:hover { color: var(--primary); background: rgba(0, 214, 120, .08); }
.input-wrap.has-action .input { padding-right: 44px; }
.field.is-invalid .input { border-color: rgba(217, 37, 70, .6); box-shadow: 0 0 0 4px rgba(217, 37, 70, .08); }
.field__error { font-size: 12.5px; color: var(--danger); font-weight: 600; }
.field__error:empty { display: none; }
.form-hint { font-size: 12.5px; color: var(--muted); }
.check { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--muted); cursor: pointer; }
.check input { width: 17px; height: 17px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.form-alert { padding: 11px 14px; border-radius: var(--radius-sm); font-size: 13.5px; display: flex; gap: 10px; align-items: flex-start; font-weight: 500; }
.form-alert:empty { display: none; }
.form-alert .icon { margin-top: 2px; }
.form-alert--error { background: rgba(217, 37, 70, .07); border: 1px solid rgba(217, 37, 70, .3); color: #b01d3a; }
.form-alert--success { background: rgba(46, 230, 168, .12); border: 1px solid rgba(46, 230, 168, .45); color: #0b7a55; }

/* ---------- Top bar ---------- */
.topbar { background: linear-gradient(90deg, rgba(0, 214, 120, .16), rgba(0, 212, 255, .11)), rgba(255, 255, 255, .78); border-bottom: 1px solid var(--line); font-size: 12.8px; color: var(--muted); position: relative; z-index: 41; }
.topbar .container { padding-top: 0; padding-bottom: 0; }
.topbar__row { display: flex; align-items: center; gap: 28px; height: 46px; padding: 0 16px; }
.topbar__item { display: inline-flex; align-items: center; gap: 6.7px; white-space: nowrap; flex: none; }
.topbar__item .icon { width: 15px; height: 15px; }
.topbar__item b { color: var(--text); font-weight: 700; }
.topbar__item--promo .icon { color: var(--gold); }
.topbar__item--promo b { background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.topbar__item--auto .icon { color: var(--primary-2); }
.topbar__item--hot { margin-left: auto; }
.topbar__item--hot .icon { color: var(--success); }
.topbar__item--hot b { color: var(--success); }
.marquee { flex: 1; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); mask-image: linear-gradient(90deg, transparent, #000 5%, #000 95%, transparent); }
.marquee__track { display: inline-flex; gap: 64px; white-space: nowrap; animation: marquee var(--dur, 30s) linear infinite; will-change: transform; }
.marquee:hover .marquee__track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.topbar .marquee { color: var(--text); font-weight: 500; }

/* ---------- Header ---------- */
.header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .82); backdrop-filter: blur(18px) saturate(1.5); -webkit-backdrop-filter: blur(18px) saturate(1.5); border-bottom: 1px solid var(--line); }
.header .container { padding-top: 0; padding-bottom: 0; }
.header__inner { display: flex; align-items: center; gap: 16px; padding: 8px 0; min-height: 72px; }
.brand { display: flex; align-items: center; gap: 9px; flex: 0 1 auto; min-width: 0; }
.brand__logo { flex: none; width: 44px; height: 44px; filter: drop-shadow(0 6px 12px rgba(255, 150, 40, .35)); }
.brand__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 900; font-size: 19px; line-height: 1.05; letter-spacing: -.01em; white-space: nowrap; background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.brand__name small { display: block; font-size: 10px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); -webkit-text-fill-color: var(--muted); margin-top: 2px; }
.nav { display: none; align-items: center; gap: 2.4px; }
.nav__link { display: inline-flex; align-items: center; gap: 6.4px; height: 38px; padding: 0 11.2px; border-radius: 12px; color: var(--muted); font-weight: 600; font-size: 13px; transition: color .2s, background .2s; white-space: nowrap; }
.nav__link .icon { width: 15px; height: 15px; }
.nav__link:hover { color: var(--text); background: var(--soft); }
.nav__link.is-active { background: var(--grad); color: var(--on-grad); box-shadow: 0 10px 24px -12px rgba(0, 214, 120, .95); }
.header__right { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.btn-topup { height: 36px; padding: 0 16px; font-size: 16px; font-weight: 700; border-radius: 12px; }
.btn-topup .icon { width: 17px; height: 17px; }
.circle-btn { position: relative; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); border: 1px solid var(--line-2); color: var(--text); flex: none; transition: border-color .2s, color .2s, background .2s; }
.circle-btn:hover { border-color: rgba(0, 150, 80, .5); color: var(--primary); background: #fff; }
.circle-btn .icon { width: 18px; height: 18px; }
.circle-btn--burger { display: grid; }
.balance-pill { display: none; align-items: center; gap: 7px; height: 42px; padding: 0 14px 0 12px; border-radius: 999px; background: #fff; border: 1px solid var(--line-2); font-weight: 800; font-size: 14px; white-space: nowrap; }
.balance-pill .icon { width: 17px; height: 17px; color: var(--gold); }
.balance-pill b { background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.balance-pill:hover { border-color: rgba(255, 160, 60, .7); }
.balance-pill.is-bump { animation: bump .6s var(--ease); }
@keyframes bump { 30% { transform: scale(1.06); box-shadow: 0 0 0 6px rgba(255, 194, 69, .25); } }
.header__auth { display: none; gap: 8px; }
.header__auth .btn { height: 38px; }
.user-menu { position: relative; }
.user-menu .circle-btn { padding: 0; }
.user-menu .avatar { width: 40px; height: 40px; font-size: 15px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; color: var(--on-grad); background: var(--grad); flex: none; text-transform: uppercase; }
.avatar--lg { width: 72px; height: 72px; font-size: 28px; box-shadow: var(--sh-primary); }
.dropdown { position: absolute; right: 0; top: calc(100% + 10px); min-width: 240px; padding: 8px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: opacity .18s, transform .18s var(--ease), visibility .18s; z-index: 50; }
.user-menu.is-open .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown__head { padding: 10px 12px 12px; border-bottom: 1px solid var(--line); margin-bottom: 6px; }
.dropdown__head b { display: block; font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; }
.dropdown__head span { font-size: 13px; font-weight: 800; color: var(--gold); }
.dropdown__item { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border-radius: 10px; font-size: 13.5px; font-weight: 600; color: var(--muted); text-align: left; }
.dropdown__item:hover { background: var(--soft); color: var(--text); }
.dropdown__item .icon { width: 16px; height: 16px; }
.dropdown__item--admin { color: var(--primary); }
.dropdown__item--danger:hover { color: var(--danger); background: rgba(217, 37, 70, .06); }
.dropdown__sep { height: 1px; background: var(--line); margin: 6px 4px; }

/* Drawer (mobile) */
.drawer { position: fixed; inset: 0; z-index: 90; visibility: hidden; }
.drawer.is-open { visibility: visible; }
.drawer__backdrop { position: absolute; inset: 0; background: rgba(16, 26, 51, .45); backdrop-filter: blur(3px); opacity: 0; transition: opacity .25s; }
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel { position: absolute; top: 0; left: 0; bottom: 0; width: min(86vw, 330px); background: var(--bg); border-right: 1px solid var(--line); transform: translateX(-100%); transition: transform .3s var(--ease); display: flex; flex-direction: column; overflow-y: auto; padding: 16px; box-shadow: var(--shadow-lg); }
.drawer.is-open .drawer__panel { transform: none; }
.drawer__top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 16px; }
.drawer__user { display: flex; align-items: center; gap: 12px; padding: 14px; border-radius: 14px; background: var(--grad-card); border: 1px solid var(--line); box-shadow: var(--shadow); margin-bottom: 14px; }
.drawer__user b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drawer__user span { font-weight: 800; font-size: 14px; color: var(--gold); }
.drawer__nav { display: flex; flex-direction: column; gap: 4px; }
.drawer__nav .nav__link { height: 44px; font-size: 14px; width: 100%; }
.drawer__sep { height: 1px; background: var(--line); margin: 12px 0; }
.drawer__auth { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 8px; }

/* ---------- Section title ---------- */
.title-row { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; margin-bottom: 22.4px; }
.title-row > div { min-width: 0; }
.title-row .btn { margin-top: 22px; flex: none; }
.sec-title { display: flex; align-items: center; gap: 11.2px; font-size: 24px; font-weight: 800; letter-spacing: -.015em; line-height: 1.2; }
.sec-title a:hover { color: var(--primary); }
.icon-box { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; flex: none; background: var(--grad); color: var(--on-grad); box-shadow: 0 10px 26px -12px rgba(0, 214, 120, .95); }
.icon-box .icon { width: 17px; height: 17px; }
.sec-line { display: block; width: 64px; height: 3px; border-radius: 3px; background: var(--grad); margin-top: 8.8px; }
.sec-sub { font-size: 13.5px; color: var(--muted); margin-top: 5.6px; }

/* ---------- Card base ---------- */
.card { background: var(--grad-card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card--pad { padding: 21.6px 22.4px; }
.card__title { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 800; }
.card__title .icon { color: var(--primary); }

/* ---------- Hero ---------- */
.hero-grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.hero-grid > * { min-width: 0; }

.newsbox { padding: 16px 16px 17.6px; display: flex; flex-direction: column; min-height: 0; }
.pill-tabs { display: flex; gap: 6.4px; padding: 4.8px; border-radius: 12px; background: var(--soft); }
.pill-tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 11.2px; border-radius: 9px; font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; min-width: 0; transition: color .2s; }
.pill-tab .icon { width: 15px; height: 15px; }
.pill-tab:hover { color: var(--text); }
.pill-tab.is-active { background: var(--grad); color: var(--on-grad); box-shadow: 0 8px 20px -10px rgba(0, 214, 120, .9); }
.newsbox__body { margin-top: 12px; height: 215px; overflow-y: auto; padding-right: 5.6px; font-size: 13.6px; line-height: 1.75; scrollbar-width: thin; scrollbar-color: #00e676 transparent; }
.newsbox__body::-webkit-scrollbar { width: 5px; }
.newsbox__body::-webkit-scrollbar-thumb { background: var(--grad); border-radius: 9px; }
.recent { display: flex; flex-direction: column; gap: 8px; }
.recent li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 11px; background: var(--soft-2); border: 1px solid var(--line); font-size: 12.8px; line-height: 1.4; }
.recent .avatar { width: 30px; height: 30px; font-size: 12px; }
.recent__main { flex: 1; min-width: 0; }
.recent__main b { font-weight: 700; }
.recent__main span { display: block; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.recent__price { font-weight: 800; white-space: nowrap; background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- Highlight cards ---------- */
.hl-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.hl-card { position: relative; overflow: hidden; display: flex; align-items: center; gap: 16px; padding: 18.4px 20px 18.4px 23.2px; border-radius: var(--radius); background: var(--grad-card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .25s var(--ease), box-shadow .25s; min-width: 0; }
a.hl-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.hl-card::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--acc); }
.hl-card::after { content: ''; position: absolute; width: 160px; height: 160px; right: -44px; top: -44px; border-radius: 50%; background: radial-gradient(circle, var(--acc-glow), transparent 70%); pointer-events: none; }
.hl-card--green { --acc: var(--grad-green); --acc-glow: rgba(46, 230, 168, .24); --acc-sh: rgba(46, 230, 168, .7); }
.hl-card--violet { --acc: var(--grad-violet); --acc-glow: rgba(0, 214, 120, .22); --acc-sh: rgba(0, 214, 120, .7); }
.hl-card--gold { --acc: var(--grad-gold); --acc-glow: rgba(255, 194, 69, .28); --acc-sh: rgba(255, 160, 60, .7); }
.hl-ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; flex: none; color: #fff; background: var(--acc); box-shadow: 0 14px 30px -14px var(--acc-sh); }
.hl-ico .icon { width: 26px; height: 26px; }
.hl-body { flex: 1; min-width: 0; position: relative; z-index: 1; }
.hl-label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.hl-value { display: block; font-size: 23.2px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; margin: 2.9px 0 1.6px; overflow-wrap: anywhere; }
.hl-card--green .hl-value { color: var(--success); }
.hl-card--gold .hl-value { background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hl-note { display: block; font-size: 12.5px; color: var(--muted); }
.hl-live { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--success); margin-right: 6.4px; vertical-align: 1px; animation: live 1.8s infinite; }
@keyframes live { 0% { box-shadow: 0 0 0 0 rgba(46, 230, 168, .7); } 70% { box-shadow: 0 0 0 7px rgba(46, 230, 168, 0); } 100% { box-shadow: 0 0 0 0 rgba(46, 230, 168, 0); } }
.hl-arrow { color: var(--muted); width: 18px; height: 18px; position: relative; z-index: 1; transition: transform .2s; }
a.hl-card:hover .hl-arrow { transform: translateX(3px); color: var(--primary); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 4.5px 9.6px; border-radius: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; line-height: 1.5; white-space: nowrap; }
.badge .icon { width: 12px; height: 12px; }
.badge--hot { background: var(--grad-hot); color: #fff; }
.badge--new { background: var(--grad-new); color: #052018; }
.badge--mystery { background: var(--grad-violet); color: var(--on-grad); }
.badge--vip { background: var(--grad-gold); color: #241800; }
.badge--soft { background: var(--soft); color: var(--muted); border: 1px solid var(--line); }
.badge--sold { background: rgba(217, 37, 70, .1); color: var(--danger); border: 1px solid rgba(217, 37, 70, .35); }
.badge--ok { background: rgba(46, 230, 168, .14); color: var(--success); border: 1px solid rgba(46, 230, 168, .4); }

/* ---------- Grid of cards ---------- */
.grid-cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.grid-cards > * { min-width: 0; }

.pcard { position: relative; display: flex; flex-direction: column; height: 100%; border-radius: var(--radius); background: var(--grad-card); border: 1px solid var(--line); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; isolation: isolate; }
.pcard::before { content: ''; position: absolute; inset: -1px; border-radius: inherit; padding: 1px; background: var(--grad); -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; pointer-events: none; z-index: 3; }

.pcard__media { position: relative; display: block; overflow: hidden; background: #fff; border-radius: var(--radius) var(--radius) 0 0; aspect-ratio: 4 / 3; }
.pcard__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s var(--ease); }

.pcard__badges { position: absolute; top: 9.6px; left: 9.6px; display: flex; gap: 5px; flex-wrap: wrap; z-index: 1; }
.pcard__body { display: flex; flex-direction: column; gap: 8.8px; padding: 13.6px 14.4px 16px; flex: 1; }
.pcard__name { font-size: 14.5px; font-weight: 700; line-height: 1.35; }
.pcard__name a:hover { color: var(--primary); }
.qty { display: flex; flex-wrap: wrap; gap: 5.6px; }
.qty li { padding: 3.8px 8.8px; border-radius: 7px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); font-size: 11.5px; font-weight: 600; line-height: 1.5; white-space: nowrap; }
.qty b { color: var(--text); font-weight: 900; }
.sold-bar { height: 5px; border-radius: 99px; background: rgba(14, 24, 52, .12); overflow: hidden; }
.sold-bar span { display: block; height: 100%; border-radius: 99px; background: var(--grad-gold); }
.pcard__price-line { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.pcard__price-line b { font-size: 15px; font-weight: 800; background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pcard__foot { margin-top: auto; }

/* Acc card */
.acc-name { padding: 12px 13.6px 0; font-size: 14.5px; font-weight: 800; letter-spacing: -.01em; }
.acc-name a:hover { color: var(--primary); }
.acc-info { padding: 8px 13.6px 14px; display: flex; flex-direction: column; flex: 1; }
.attr-box { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4.8px; margin-bottom: 10px; }
.attr { display: flex; align-items: center; gap: 4.8px; min-width: 0; padding: 4.5px 8px; border-radius: 8px; background: var(--soft-2); border: 1px solid var(--line); font-size: 12px; line-height: 1.5; }
.attr--wide { grid-column: 1 / -1; }
.attr label { color: var(--muted); font-weight: 600; flex: none; }
.attr strong { color: var(--primary-2); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.price-box { display: flex; align-items: center; justify-content: center; gap: 6px 16px; flex-wrap: wrap; padding: 15.2px 17.6px; border-radius: 14px; background: linear-gradient(115deg, rgba(255, 194, 69, .14), rgba(255, 138, 61, .09)); border: 1px solid rgba(255, 180, 60, .32); margin: auto 0 14.4px; }
.cart-price { font-size: 17.3px; font-weight: 800; letter-spacing: -.02em; background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.cart-price sup { font-size: 62%; margin-left: 1px; }
.cart-price--lg { font-size: 24.8px; }
.acc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 7.2px; }
.acc-actions .btn { height: 39px; padding: 0 8px; font-size: 12.8px; min-width: 0; }

/* ---------- Steps / features ---------- */
.steps { display: grid; grid-template-columns: 1fr; gap: 16.8px; }
.step { position: relative; padding: 24px 20px 20.8px; border-radius: var(--radius); background: var(--grad-card); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; }
.step__no { position: absolute; top: 8px; right: 14.4px; font-size: 57.6px; font-weight: 800; line-height: 1; background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; opacity: .22; }
.step__ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--grad); color: var(--on-grad); box-shadow: var(--sh-primary); margin-bottom: 13.6px; }
.step__ico .icon { width: 22px; height: 22px; }
.step h3 { font-size: 16px; font-weight: 700; margin-bottom: 6.4px; }
.step p { font-size: 13.5px; line-height: 1.7; color: var(--muted); }
.step p b { color: var(--success); }
.features { display: grid; grid-template-columns: 1fr; gap: 16px; margin-top: 16px; }
.feature { display: flex; gap: 14.4px; padding: 17.6px; border-radius: 12px; background: var(--soft); border: 1px solid var(--line); }
.feature > .icon { width: 22px; height: 22px; color: var(--primary-2); margin-top: 2px; }
.feature h3 { font-size: 14.5px; font-weight: 700; margin-bottom: 4px; }
.feature p { font-size: 13px; line-height: 1.65; color: var(--muted); }

/* ---------- About (SEO) box ---------- */
.about { padding: 25.6px 24px; }
.about__content { position: relative; max-height: 240px; overflow: hidden; transition: max-height .4s var(--ease); }
.about__content::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 90px; background: linear-gradient(180deg, rgba(244, 246, 252, 0), #f2f5fc); pointer-events: none; transition: opacity .3s; }
.about.is-open .about__content { max-height: 2000px; }
.about.is-open .about__content::after { opacity: 0; }
.about h2 { font-size: clamp(22px, 3.2vw, 34px); font-weight: 600; letter-spacing: -.015em; margin-bottom: 10px; }
.about h3 { font-size: 16px; font-weight: 800; margin: 18px 0 8px; padding-left: 10px; border-left: 4px solid #00c9a7; }
.about p { font-size: 14px; line-height: 1.75; color: var(--muted); }
.about p strong { color: var(--danger); }
.about .chips-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.about .chips-links a { padding: 6px 12px; border-radius: 9px; background: var(--soft); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; }
.about .chips-links a:hover { color: var(--primary); border-color: rgba(0, 150, 80, .45); }
.about__toggle { margin-top: 17.6px; height: 40px; padding: 0 18.4px; }
.about__toggle .icon { transition: transform .25s; }
.about.is-open .about__toggle .icon { transform: rotate(180deg); }

/* ---------- FAQ ---------- */
.faq__item { border-radius: 14px; background: var(--soft); border: 1px solid var(--line); overflow: hidden; margin-bottom: 11.2px; transition: background .2s, border-color .2s; }
.faq__item.is-open { background: #fff; border-color: rgba(0, 150, 80, .3); box-shadow: var(--shadow); }
.faq__q { width: 100%; display: flex; align-items: center; gap: 12px; padding: 16px 18.4px; text-align: left; font-size: 14.5px; font-weight: 700; line-height: 1.2; }
.faq__q > span { flex: 1; min-width: 0; }
.faq__q > .icon { width: 16px; height: 16px; color: var(--muted); transition: transform .25s var(--ease); }
.faq__item.is-open .faq__q { color: var(--primary); }
.faq__item.is-open .faq__q > .icon { transform: rotate(180deg); color: var(--primary); }
.faq__a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .3s var(--ease); }
.faq__item.is-open .faq__a { grid-template-rows: 1fr; }
.faq__a > div { overflow: hidden; }
.faq__a p { padding: 0 20px 16px; color: var(--muted); font-size: 14px; line-height: 1.8; overflow-wrap: anywhere; }

/* ---------- Footer ---------- */
.footer { flex: none; margin-top: 40px; padding-top: 44.8px; background: linear-gradient(180deg, rgba(255, 255, 255, .6), rgba(240, 243, 251, .95)); border-top: 1px solid var(--line); backdrop-filter: blur(8px); }
.footer .container { padding-top: 0; padding-bottom: 0; }
.footer__grid { display: grid; grid-template-columns: 1fr; gap: 24px; }
.footer__about p { font-size: 13.4px; line-height: 1.8; color: var(--muted); margin-top: 14px; }
.footer-title { display: flex; align-items: center; gap: 8px; font-size: 14.5px; font-weight: 800; margin-bottom: 14px; }
.footer-title::before { content: ''; width: 4px; height: 16px; border-radius: 3px; background: var(--grad); }
.footer__links { display: flex; flex-direction: column; gap: 10px; }
.footer__links a { display: inline-flex; align-items: center; gap: 7.2px; font-size: 13.4px; color: var(--muted); }
.footer__links a .icon { width: 13px; height: 13px; }
.footer__links a:hover { color: var(--primary); }
.stats { display: flex; flex-direction: column; gap: 8px; }
.stats p { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 10px; background: #fff; border: 1px solid var(--line); font-size: 12.8px; color: var(--muted); }
.stats p span { font-weight: 800; background: var(--grad-gold-text); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ft-hotline { position: relative; overflow: hidden; margin: 28.8px 0 20.8px; padding: 25.6px 27.2px; border-radius: 22px; background: linear-gradient(118deg, #00a957 0, #009a7e 48%, #0087b0 100%); box-shadow: 0 26px 54px -26px rgba(0, 201, 167, .85); color: #fff; display: grid; grid-template-columns: 1fr; gap: 18px; align-items: center; }
.ft-hotline::after { content: ''; position: absolute; width: 320px; height: 320px; right: -80px; top: -160px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .25), transparent 70%); pointer-events: none; }
.ft-col { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; min-width: 0; }
.ft-ico { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: rgba(255, 255, 255, .18); border: 1px solid rgba(255, 255, 255, .3); flex: none; }
.ft-ico .icon { width: 22px; height: 22px; }
.ft-label { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; opacity: .85; }
.ft-num { font-size: 26px; font-weight: 800; letter-spacing: -.02em; line-height: 1.2; overflow-wrap: anywhere; }
.ft-col p { font-size: 13px; opacity: .92; }
.ft-col strong { font-size: 14px; }
.ft-col--btn { justify-content: flex-start; }
.social { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--muted); }
.social a { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; background: var(--soft); border: 1px solid var(--line-2); color: var(--text); }
.social a:hover { color: var(--primary); border-color: rgba(0, 150, 80, .45); }
.social .icon { width: 16px; height: 16px; }
.zalo-mark { width: 22px; height: 22px; flex: none; object-fit: contain; }
.footer__bottom { padding: 19.2px 0 24px; text-align: center; font-size: 13px; color: var(--muted); display: flex; flex-direction: column; gap: 4px; }

/* ---------- Breadcrumb ---------- */
.crumbs { display: flex; align-items: center; flex-wrap: wrap; gap: 4.8px; padding: 9.6px 15.2px; border-radius: 12px; background: var(--soft-2); border: 1px solid var(--line); font-size: 12.8px; }
.crumbs a, .crumbs span { display: inline-flex; align-items: center; gap: 5px; font-weight: 600; color: var(--muted); }
.crumbs a:hover { color: var(--primary); }
.crumbs > .icon { width: 13px; height: 13px; color: var(--text-3); }
.crumbs [aria-current] { color: var(--text); font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 60vw; display: inline-block; }
.crumbs .icon-home { width: 14px; height: 14px; }

/* ---------- Filter card ---------- */
.filter-card { padding: 16.8px 18.4px; border-radius: var(--radius); background: var(--grad-card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.filter-head { display: flex; align-items: center; gap: 8px; margin-bottom: 13.6px; font-size: 13.5px; font-weight: 700; flex-wrap: wrap; }
.filter-head > .icon { color: var(--primary); width: 15px; height: 15px; }
.filter-count { margin-left: auto; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.filter-count b { color: var(--primary); }
.filter-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10.4px; align-items: end; }
.filter-grid .field--q, .filter-grid .filter-actions { grid-column: 1 / -1; }
.filter-grid .field + .field { margin-top: 0; }
.filter-actions { display: grid; grid-template-columns: 1fr auto; gap: 8px; }

.note-box { position: relative; padding: 17.6px 20px; border-radius: var(--radius); background: #fff; border-left: 4px solid var(--success); box-shadow: var(--shadow); }
.note-box__content { position: relative; max-height: 96px; overflow: hidden; transition: max-height .35s var(--ease); }
.note-box__content::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 50px; background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff); pointer-events: none; transition: opacity .3s; }
.note-box.is-open .note-box__content { max-height: 2000px; }
.note-box.is-open .note-box__content::after, .note-box.is-short .note-box__content::after { opacity: 0; }
.note-box.is-short .note-box__toggle { display: none; }
.note-box__toggle { margin-top: 9.6px; display: inline-flex; align-items: center; gap: 5.6px; height: 32px; padding: 0 13.6px; border-radius: 9px; background: rgba(14, 24, 52, .05); border: 1px solid var(--line-2); font-size: 12.5px; font-weight: 700; }
.note-box__toggle .icon { width: 14px; height: 14px; transition: transform .25s; }
.note-box.is-open .note-box__toggle .icon { transform: rotate(180deg); }
.rich { font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.rich > * + * { margin-top: .45em; }
.rich a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.rich ul, .rich ol { padding-left: 1.3em; list-style: disc; }
.rich ol { list-style: decimal; }
.rich img { border-radius: 10px; height: auto; }

/* ---------- Pager ---------- */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 5.6px; margin: 28.8px 0 8px; }
.pager:empty { display: none; }
.pager button, .pager span { min-width: 40px; height: 40px; padding: 0 12.8px; border-radius: 11px; display: inline-grid; place-items: center; font-weight: 700; font-size: 13.4px; background: var(--soft); border: 1px solid var(--line); color: var(--muted); transition: all .2s; }
.pager button:hover:not(:disabled) { color: var(--primary); border-color: rgba(0, 150, 80, .45); }
.pager button.is-active { background: var(--grad); color: var(--on-grad); border-color: transparent; box-shadow: 0 10px 24px -12px rgba(0, 214, 120, .95); }
.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager span { background: none; border: 0; min-width: 16px; padding: 0 2px; }
.pager .icon { width: 15px; height: 15px; }

/* ---------- Mystery bag ---------- */
.mystery { display: grid; grid-template-columns: 1fr; gap: 22px; padding: 18px; border-radius: var(--radius); background: var(--grad-card); border: 1px solid var(--line); box-shadow: var(--shadow); }
.mystery__media { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 10; background: #fff; border: 1px solid var(--line); }
.mystery__media img { width: 100%; height: 100%; object-fit: cover; }
.mystery__body { display: flex; flex-direction: column; gap: 14px; justify-content: center; min-width: 0; }
.mystery__title { font-size: clamp(22px, 3vw, 28px); font-weight: 800; letter-spacing: -.02em; }
.mystery__how { display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; color: var(--muted); }
.mystery__how li { display: flex; gap: 8px; align-items: flex-start; }
.mystery__how .icon { color: var(--success); width: 16px; height: 16px; margin-top: 2px; }
.mystery .price-box { margin: 0; justify-content: space-between; }
.price-box small { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); display: block; }

/* ---------- Account detail ---------- */
.detail { display: grid; grid-template-columns: 1fr; gap: 22.4px; align-items: start; }
.detail > * { min-width: 0; }
.gal-main { position: relative; overflow: hidden; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff radial-gradient(circle at 50% 40%, rgba(0, 214, 120, .1), transparent 70%); aspect-ratio: 1.08; touch-action: pan-y; }
.gal-main img { width: 100%; height: 100%; object-fit: contain; }
.gal-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: rgba(9, 14, 28, .62); color: #fff; z-index: 1; transition: background .2s; }
.gal-nav:hover { background: rgba(9, 14, 28, .85); }
.gal-nav--prev { left: 11px; }
.gal-nav--next { right: 11px; }
.gal-count { position: absolute; right: 11px; bottom: 11px; padding: 4.5px 10.4px; border-radius: 99px; background: rgba(9, 14, 28, .66); color: #fff; font-size: 12px; font-weight: 700; }
.gal-sold { pointer-events: none; position: absolute; inset: 0; display: grid; place-items: center; background: rgba(255, 255, 255, .55); }
.gal-sold span { font-size: 28px; font-weight: 900; letter-spacing: .2em; color: var(--danger); border: 3px solid var(--danger); padding: 6px 22px; border-radius: 12px; transform: rotate(-10deg); background: rgba(255, 255, 255, .85); }
.gal-thumbs { display: flex; gap: 8px; margin-top: 10px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.gal-thumbs button { flex: none; width: 96px; height: 60px; border-radius: 10px; overflow: hidden; border: 2px solid transparent; background: #fff; opacity: .7; transition: opacity .2s, border-color .2s; }
.gal-thumbs button img { width: 100%; height: 100%; object-fit: cover; }
.gal-thumbs button:hover { opacity: 1; }
.gal-thumbs button.is-active { border-color: var(--primary); opacity: 1; }
.info-box { padding: 21.6px 22.4px; position: sticky; top: 88px; }
.pd-name { font-size: 28px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 4px; overflow-wrap: anywhere; }
.pd-code { font-size: 12.5px; font-weight: 600; color: var(--muted); margin-bottom: 14.4px; }
.pd-code a { color: var(--primary); }
.pd-code, .pd-attrs li span, .acc-name, .pcard__name, .crumbs a { overflow-wrap: anywhere; }
.pd-status { display: inline-flex; align-items: center; gap: 6.4px; padding: 5.6px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 700; margin-bottom: 16px; background: rgba(46, 230, 168, .14); color: var(--success); border: 1px solid rgba(46, 230, 168, .4); }
.pd-status--sold { background: rgba(217, 37, 70, .08); color: var(--danger); border-color: rgba(217, 37, 70, .35); }
.pd-status .icon { width: 14px; height: 14px; }
.pd-attrs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-bottom: 17.6px; }
.pd-attrs li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 9.6px 12px; border-radius: 11px; background: var(--soft-2); border: 1px solid var(--line); min-width: 0; }
.pd-attrs li.wide { grid-column: 1 / -1; }
.pd-attrs li > div { min-width: 0; }
.pd-attrs label { display: block; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.6px; }
.pd-attrs span { display: block; font-size: 15px; font-weight: 800; color: var(--primary-2); overflow-wrap: anywhere; }
.pd-attrs li > .icon { color: var(--primary-2); width: 21px; height: 21px; }
.info-box .price-box { margin: 0 0 14.4px; justify-content: space-between; padding: 15.2px 17.6px; }
.perks { display: flex; flex-direction: column; margin-top: 14px; font-size: 12.6px; line-height: 1.9; color: var(--muted); }
.perks li { display: flex; gap: 6px; align-items: flex-start; }
.perks .icon { width: 13px; height: 13px; margin-top: 5px; color: var(--success); }
.kv { width: 100%; border-collapse: collapse; font-size: 14px; }
.kv th, .kv td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.kv tr:last-child th, .kv tr:last-child td { border-bottom: 0; }
.kv th { width: 40%; color: var(--muted); font-weight: 600; }
.kv td { font-weight: 700; overflow-wrap: anywhere; }

/* ---------- Modal ---------- */
.modal { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.modal__backdrop { position: absolute; inset: 0; background: rgba(16, 26, 51, .5); backdrop-filter: blur(4px); opacity: 0; transition: opacity .25s; }
.modal__dialog { position: relative; width: 100%; max-height: 92vh; display: flex; flex-direction: column; background: var(--grad-card); border: 1px solid var(--line); border-radius: 20px 20px 0 0; box-shadow: var(--shadow-lg); transform: translateY(30px); opacity: 0; transition: transform .3s var(--ease), opacity .25s; }
.modal.is-open .modal__backdrop { opacity: 1; }
.modal.is-open .modal__dialog { transform: none; opacity: 1; }
.modal__head { display: flex; align-items: center; gap: 12px; padding: 18px 20px 0; }
.modal__title { flex: 1; font-size: 18px; font-weight: 800; min-width: 0; }
.modal__x { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--soft); border: 1px solid var(--line); color: var(--muted); flex: none; }
.modal__x:hover { color: var(--danger); }
.modal__body { padding: 16px 20px; overflow-y: auto; }
.modal__foot { display: flex; gap: 10px; padding: 0 20px 20px; }
.modal__foot .btn { flex: 1; height: 44px; }
.modal--image .modal__body { padding: 10px; }
.modal--image img { width: 100%; height: auto; border-radius: 12px; }
.summary { display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: 14px; background: #fff; border: 1px solid var(--line); margin-bottom: 14px; }
.summary img { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 9px; flex: none; }
.summary > div { min-width: 0; }
.summary b { display: block; font-size: 14.5px; overflow-wrap: anywhere; }
.summary span { font-size: 12.5px; color: var(--muted); }
.ledger { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.ledger > div { display: flex; justify-content: space-between; gap: 12px; padding: 11px 14px; font-size: 14px; }
.ledger > div + div { border-top: 1px solid var(--line); }
.ledger span { color: var(--muted); }
.ledger b { font-weight: 800; white-space: nowrap; }
.ledger .is-total { background: linear-gradient(115deg, rgba(255, 194, 69, .12), rgba(255, 138, 61, .07)); }
.ledger .neg { color: var(--danger); }
.ledger .pos { color: var(--success); }
.result-hero { text-align: center; padding: 4px 0 16px; }
.result-hero__icon { width: 64px; height: 64px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-green); color: #fff; box-shadow: 0 14px 30px -12px rgba(46, 230, 168, .8); animation: pop .5s var(--ease); }
.result-hero__icon .icon { width: 30px; height: 30px; }
.result-hero h4 { font-size: 20px; font-weight: 800; }
.result-hero p { color: var(--muted); font-size: 13.5px; margin-top: 4px; }
@keyframes pop { 0% { transform: scale(.4); opacity: 0; } 70% { transform: scale(1.1); } 100% { transform: none; opacity: 1; } }

.creds { display: flex; flex-direction: column; gap: 8px; }
.cred { display: flex; align-items: center; gap: 10px; padding: 9px 10px 9px 14px; border-radius: 12px; background: #fff; border: 1px solid var(--line); min-width: 0; }
.cred__body { flex: 1; min-width: 0; }
.cred__label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.cred__value { font-family: ui-monospace, 'SFMono-Regular', Consolas, monospace; font-size: 15px; font-weight: 700; color: var(--text); word-break: break-all; }
.cred__value.is-masked { letter-spacing: .15em; color: var(--muted); }
.cred__note { font-family: var(--font); font-weight: 500; font-size: 13.5px; word-break: normal; overflow-wrap: anywhere; white-space: pre-line; }
.cred--hl { border-color: rgba(255, 180, 60, .5); background: linear-gradient(115deg, rgba(255, 194, 69, .12), rgba(255, 138, 61, .06)); }
.cred--hl .cred__value { color: var(--gold); }
.cred__actions { display: flex; gap: 6px; flex: none; }
.icon-btn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--soft); border: 1px solid var(--line-2); color: var(--muted); flex: none; transition: all .2s; }
.icon-btn:hover { color: var(--primary); border-color: rgba(0, 150, 80, .45); background: #fff; }
.icon-btn.is-done { color: var(--success); border-color: rgba(46, 230, 168, .6); }
.icon-btn .icon { width: 16px; height: 16px; }

/* ---------- Toast ---------- */
.toasts { position: fixed; z-index: 200; left: 16px; right: 16px; top: 16px; display: flex; flex-direction: column; gap: 10px; align-items: center; pointer-events: none; }
.toast { pointer-events: auto; display: flex; gap: 10px; align-items: flex-start; width: 100%; max-width: 380px; padding: 12px 14px; border-radius: 14px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--primary); box-shadow: var(--shadow-lg); font-size: 13.5px; font-weight: 500; animation: toast-in .35s var(--ease); }
.toast--success { border-left-color: var(--success); }
.toast--error { border-left-color: var(--danger); }
.toast.is-leaving { animation: toast-out .25s ease forwards; }
.toast__icon { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex: none; color: #fff; background: var(--primary); }
.toast--success .toast__icon { background: var(--success); }
.toast--error .toast__icon { background: var(--danger); }
.toast__icon .icon { width: 13px; height: 13px; }
.toast__msg { flex: 1; min-width: 0; padding-top: 1px; overflow-wrap: anywhere; }
@keyframes toast-in { from { transform: translateY(-14px); opacity: 0; } }
@keyframes toast-out { to { transform: translateY(-10px); opacity: 0; } }

/* ---------- Skeleton ---------- */
.sk { position: relative; overflow: hidden; background: rgba(14, 24, 52, .07); border-radius: 8px; }
.sk::after { content: ''; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .75), transparent); animation: shimmer 1.3s infinite; }
@keyframes shimmer { to { transform: translateX(100%); } }
.sk-card { border-radius: var(--radius); border: 1px solid var(--line); background: var(--grad-card); box-shadow: var(--shadow); overflow: hidden; }
.sk-card .sk-media { aspect-ratio: 4 / 3; border-radius: 0; }
.sk-card .sk-body { padding: 14px; display: flex; flex-direction: column; gap: 9px; }
.sk-line { height: 12px; }
.sk-line--lg { height: 16px; width: 70%; }
.sk-line--sm { width: 45%; }
.sk-btn { height: 39px; border-radius: 11px; }
.sk-inline { display: inline-block; height: 1em; width: 80px; vertical-align: middle; border-radius: 6px; }
.sk-pill { width: 110px; height: 40px; border-radius: 999px; }

/* ---------- Empty / error states ---------- */
.state { grid-column: 1 / -1; text-align: center; padding: 40px 20px; border-radius: var(--radius); background: #fff; border: 1px dashed var(--line-2); }
.state__icon { width: 60px; height: 60px; margin: 0 auto 14px; border-radius: 18px; display: grid; place-items: center; background: var(--grad); color: var(--on-grad); box-shadow: var(--sh-primary); }
.state__icon .icon { width: 26px; height: 26px; }
.state--error .state__icon { background: var(--grad-hot); box-shadow: 0 12px 28px -14px rgba(255, 77, 109, .9); }
.state h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.state p { color: var(--muted); font-size: 13.5px; max-width: 420px; margin: 0 auto; }
.state .btn { margin-top: 18px; }

/* ---------- Tabs (generic) ---------- */
.tabs { display: flex; gap: 6.4px; padding: 4.8px; border-radius: 12px; background: var(--soft); width: 100%; }
.tab { flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6.4px; height: 40px; padding: 0 12px; border-radius: 9px; font-size: 13.5px; font-weight: 700; color: var(--muted); white-space: nowrap; min-width: 0; transition: color .2s; }
.tab .icon { width: 16px; height: 16px; }
.tab:hover { color: var(--text); }
.tab.is-active { background: var(--grad); color: var(--on-grad); box-shadow: 0 8px 20px -10px rgba(0, 214, 120, .9); }
.tab-panel { margin-top: 18px; }

/* ---------- Page heading ---------- */
.page-title { display: flex; align-items: center; gap: 11.2px; font-size: 24px; font-weight: 800; letter-spacing: -.015em; }
.page-sub { color: var(--muted); font-size: 13.5px; margin-top: 5.6px; }

/* ---------- Auth ---------- */
.auth { display: grid; grid-template-columns: 1fr; max-width: 980px; margin: 0 auto; overflow: hidden; }
.auth__art {
  --auth-focus: 74% 21%;
  display: grid; align-items: end; isolation: isolate; min-width: 0;
  min-height: clamp(150px, 44vw, 218px); padding: 18px 20px;
  background: var(--game-ink) var(--auth-image) var(--auth-focus) / cover no-repeat;
  color: var(--game-text); position: relative;
}
.auth__art--lien-quan { --auth-image: url('/img/banner-lien-quan.webp'); --auth-accent: var(--game-ice); }
.auth__art--free-fire { --auth-image: url('/img/banner-free-fire.webp'); --auth-accent: var(--game-amber); --auth-focus: 75% 16%; }
.auth__art::before {
  content: ''; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(0deg, var(--game-ink), color-mix(in srgb, var(--game-ink) 44%, transparent) 57%, transparent 87%);
}
.auth__intro { min-width: 0; max-width: 44ch; }
.auth__intro h2 {
  font-size: clamp(24px, 4.1vw, 44px); font-weight: 900; letter-spacing: -.04em; line-height: 1.12;
}
.auth__intro h2 span { color: var(--auth-accent); }
.auth__intro p, .auth__intro ul { display: none; }
@media (min-width: 768px) {
  .auth__art { min-height: 410px; padding: clamp(25px, 3.5vw, 44px); }
  .auth__art::before {
    background: linear-gradient(0deg, var(--game-ink) 1%, color-mix(in srgb, var(--game-ink) 90%, transparent) 30%, color-mix(in srgb, var(--game-ink) 37%, transparent) 63%, transparent 96%);
  }
  .auth__intro p { display: block; color: var(--game-subtext); font-size: 14px; margin-top: 9px; }
  .auth__intro ul { display: grid; gap: 9px; margin-top: 20px; }
  .auth__intro li { display: flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 600; }
  .auth__intro li .icon {
    width: 30px; height: 30px; padding: 6px; border-radius: 9px; color: var(--auth-accent);
    background: color-mix(in srgb, var(--auth-accent) 18%, transparent);
  }
}
.auth__form { padding: 26px 20px; }
.auth__form h1 { display: flex; align-items: center; gap: 11px; font-size: 24px; font-weight: 800; }
.auth__form > p { color: var(--muted); margin: 8px 0 22px; font-size: 13.5px; }
.auth__switch { text-align: center; color: var(--muted); font-size: 13.5px; margin-top: 18px; }
.auth__switch a { color: var(--primary); font-weight: 700; }
.auth__form .btn--block { margin-top: 22px; }

/* ---------- Topup ---------- */
.topup { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
.topup > * { min-width: 0; }
.option-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.option { position: relative; min-width: 0; height: 48px; padding: 0 6px; border-radius: var(--radius-xs); border: 1px solid var(--line); background: #fff; font-weight: 700; font-size: 12.5px; color: var(--muted); display: grid; place-items: center; text-align: center; overflow: hidden; text-overflow: ellipsis; transition: all .2s; }
.option:hover { border-color: rgba(0, 150, 80, .45); color: var(--text); }
.option.is-active { border-color: transparent; color: var(--primary); background: linear-gradient(#fff, #fff) padding-box, var(--grad) border-box; border: 2px solid transparent; box-shadow: 0 10px 24px -14px rgba(0, 214, 120, .9); }
.option.is-active::after { content: ''; position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; background: var(--grad); }
.option-grid--amount .option { font-size: 13.5px; }
.rate-note { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border-radius: 12px; background: linear-gradient(115deg, rgba(255, 194, 69, .14), rgba(255, 138, 61, .08)); border: 1px solid rgba(255, 180, 60, .35); font-size: 13px; color: #6b4a06; }
.rate-note .icon { color: var(--gold); margin-top: 2px; }
.receive { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: rgba(46, 230, 168, .1); border: 1px solid rgba(46, 230, 168, .4); font-size: 13.5px; color: var(--muted); }
.receive b { color: var(--success); font-size: 17px; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.form-grid .field + .field { margin-top: 0; }
.bank { display: grid; grid-template-columns: 1fr; gap: 18px; }
.qr { background: #fff; padding: 12px; border-radius: 16px; width: 100%; max-width: 260px; margin: 0 auto; border: 1px solid var(--line); box-shadow: var(--shadow); }
.qr img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.qr__fallback { aspect-ratio: 1; display: grid; place-items: center; color: var(--muted); font-size: 13px; text-align: center; padding: 10px; }
.bank__rows { display: flex; flex-direction: column; gap: 8px; }
.amount-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.price-chip { height: 32px; padding: 0 12px; border-radius: 9px; font-size: 12.5px; font-weight: 700; color: var(--muted); background: var(--soft); border: 1px solid var(--line); transition: all .2s; }
.price-chip:hover { color: var(--primary); border-color: rgba(0, 150, 80, .45); }
.price-chip.is-active { background: var(--grad); color: var(--on-grad); border-color: transparent; }

/* ---------- Tables ---------- */
.table-wrap { border-radius: var(--radius); border: 1px solid var(--line); background: #fff; box-shadow: var(--shadow); overflow: hidden; }
.table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); padding: 12px 16px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tbody tr:last-child td { border-bottom: 0; }
.table tbody tr:hover { background: rgba(0, 214, 120, .03); }
.table .num { text-align: right; white-space: nowrap; }
.status { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.status::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status--pending { background: rgba(255, 194, 69, .18); color: var(--warning); }
.status--success { background: rgba(46, 230, 168, .15); color: var(--success); }
.status--failed { background: rgba(217, 37, 70, .09); color: var(--danger); }

/* ---------- Purchases ---------- */
.purchase-list { display: grid; grid-template-columns: 1fr; gap: 16px; }
.purchase { padding: 16px; border-radius: var(--radius); background: var(--grad-card); border: 1px solid var(--line); box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.purchase__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.purchase__head > div { min-width: 0; }
.purchase__title { font-weight: 800; font-size: 15px; overflow-wrap: anywhere; }
.purchase__meta { font-size: 12px; color: var(--muted); display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 3px; font-weight: 500; }
.purchase__meta a { color: var(--primary); }

/* ---------- Profile ---------- */
.profile { display: grid; grid-template-columns: 1fr; gap: 22px; align-items: start; }
.profile > * { min-width: 0; }
.profile__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.profile__head h2 { font-size: 21px; font-weight: 800; overflow-wrap: anywhere; }
.balance-card { position: relative; overflow: hidden; padding: 20px; border-radius: var(--radius); color: #fff; margin-top: 16px; background: linear-gradient(118deg, #00a957 0, #009a7e 48%, #0087b0 100%); box-shadow: 0 26px 54px -26px rgba(0, 201, 167, .85); }
.balance-card::after { content: ''; position: absolute; width: 260px; height: 260px; right: -80px; top: -120px; border-radius: 50%; background: radial-gradient(circle, rgba(255, 255, 255, .28), transparent 70%); }
.balance-card small { font-size: 11px; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; opacity: .85; }
.balance-card__value { display: block; font-size: 30px; font-weight: 800; letter-spacing: -.02em; margin: 4px 0 14px; }
.balance-card__actions { position: relative; z-index: 1; display: flex; gap: 8px; flex-wrap: wrap; }
.balance-card .btn--ghost { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .4); color: #fff; }

/* ---------- 404 ---------- */
.nf { text-align: center; padding: 40px 16px 30px; }
.nf__code { font-size: clamp(96px, 26vw, 170px); font-weight: 900; line-height: 1; letter-spacing: -.04em; background: var(--grad-ink); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nf h1 { font-size: 24px; font-weight: 800; margin: 8px 0; }
.nf p { color: var(--muted); max-width: 440px; margin: 0 auto; font-size: 14px; }
.nf__actions { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 22px; }

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 575.98px) {
  .topbar__row { justify-content: center; gap: 12px; height: 36px; padding: 0; }
  .topbar__item--auto, .topbar__item--hot, .topbar .marquee { display: none; }
  .title-row { flex-direction: column; gap: 10px; margin-bottom: 18px; }
  .title-row .btn { margin-top: 0; }
  .sec-title { font-size: 17.6px; }
  .page-title { font-size: 19px; }
  .pcard__body { padding: 12px; }
  .qty { flex-direction: column; align-items: flex-start; }
  .acc-name { padding: 10px 11px 0; font-size: 13.5px; }
  .acc-info { padding: 7px 11px 12px; }
  .attr-box { grid-template-columns: 1fr; }
  .attr { font-size: 11.5px; }
  .price-box { padding: 10px 8px; margin-bottom: 10px; }
  .cart-price { font-size: 15.5px; }
  .acc-actions { grid-template-columns: 1fr; gap: 6px; }
  .acc-actions .btn { height: 36px; }
  .ft-num { font-size: 22px; }
  .option-grid--telco { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hide-xs { display: none; }
  .tab { font-size: 13px; padding: 0 8px; }
  .brand__name small { display: none; }
  .brand__name { font-size: 16px; }
  .brand__logo { width: 38px; height: 38px; }
  .header__inner { gap: 8.8px; min-height: 60px; }
  .circle-btn { width: 38px; height: 38px; }
  .user-menu .avatar { width: 36px; height: 36px; }
  .circle-btn--hist { display: none; }
  .header__right { gap: 6px; }
  .btn-topup { padding: 0 12px; height: 38px; }
}
@media (min-width: 576px) {
  .hl-grid { grid-template-columns: 1fr; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .form-grid--2 { grid-template-columns: 1fr 1fr; }
  .toasts { left: auto; right: 20px; align-items: flex-end; }
  .grid-cards { gap: 14px; }
}
@media (min-width: 640px) {
  .modal { align-items: center; padding: 20px; }
  .modal__dialog { border-radius: 20px; max-width: 480px; }
  .modal__dialog--lg { max-width: 640px; }
  .modal__dialog--xl { max-width: 1000px; }
  .auth__form { padding: 40px 36px; }
}
@media (min-width: 768px) {
  .grid-cards { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16.8px; }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hl-card { padding: 16px 14px 16px 18px; gap: 12px; }
  .hl-ico { width: 48px; height: 48px; }
  .hl-value { font-size: 19px; }
  .footer__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ft-hotline { grid-template-columns: 1fr 1fr auto; }
  .filter-grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; }
  .filter-grid .field--q, .filter-grid .filter-actions { grid-column: auto; }
  .mystery { grid-template-columns: 1.1fr 1fr; padding: 22px; }
  .bank { grid-template-columns: 240px 1fr; align-items: start; }
  .auth { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .purchase-list { grid-template-columns: 1fr 1fr; }
  .option-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .option-grid--amount { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .pcard__media { aspect-ratio: 5 / 4; }
  .sk-card .sk-media { aspect-ratio: 5 / 4; }
}
@media (min-width: 992px) and (max-width: 1439px) { .nav__link .icon { display: none; } .nav__link { padding: 0 9px; } }
@media (min-width: 992px) and (max-width: 1199px) {
  .balance-pill { display: none !important; }
  .header .nav { display: none !important; }
  .header .circle-btn--burger { display: grid !important; }
}
@media (min-width: 992px) {
  .grid-cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .brand { flex: none; }
  .nav { display: flex; min-width: 0; overflow: hidden; }
  .circle-btn--burger { display: none; }
  .header__inner { min-height: 86px; padding: 14px 0; }
  .brand__logo { width: 50px; height: 50px; }
  .brand__name { font-size: 21px; }
  .balance-pill { display: inline-flex; }
  .header__auth { display: flex; }
  .header__login-m { display: none; }
  .hero-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .hero-grid .newsbox { position: relative; }
  .newsbox__body { height: auto; flex: 1; min-height: 0; }
  .hero-grid > .newsbox-wrap { position: relative; }
  .hero-grid > .newsbox-wrap > .newsbox { position: absolute; inset: 0; }
  .hl-card { padding: 18.4px 20px 18.4px 23.2px; gap: 16px; }
  .hl-ico { width: 56px; height: 56px; }
  .hl-value { font-size: clamp(17px, 1.7vw, 23.2px); overflow-wrap: normal; white-space: nowrap; }
  .features { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .footer__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
  .detail { grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); }
  .topup { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); }
  .profile { grid-template-columns: 1fr 1.3fr; }
}
@media (max-width: 991.98px) {
  .info-box { position: static; }
  .newsbox__body { height: 215px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
@media (max-width: 680px) {
  .table--stack thead { display: none; }
  .table--stack, .table--stack tbody, .table--stack tr, .table--stack td { display: block; width: 100%; }
  .table--stack tr { padding: 12px 14px; border-bottom: 1px solid var(--line); }
  .table--stack tbody tr:last-child { border-bottom: 0; }
  .table--stack td { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 5px 0; border: 0; text-align: right; }
  .table--stack td::before { content: attr(data-label); font-size: 11px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); text-align: left; flex: none; }
  .table--stack td > * { min-width: 0; overflow-wrap: anywhere; }
}

/* =========================================================
   Vòng 2 — header icon, poster danh mục, bottom nav, FAB, back-to-top
   ========================================================= */
.pcard--cat .pcard__media { aspect-ratio: 300 / 239; background: #fff; }
.pcard--cat .pcard__media img { object-fit: contain; }
.pcard--cat:hover .pcard__media img { transform: scale(1.03); }
.circle-btn { position: relative; }
.badge-dot { position: absolute; top: -3px; right: -3px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--danger); color: #fff; font-size: 10px; font-weight: 700; line-height: 18px; text-align: center; box-shadow: 0 0 0 3px var(--bg); }
.badge-dot[hidden] { display: none; }
.dropdown__head span b { color: var(--gold); font-weight: 800; }
.drawer__label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 11px 6px; }
.btn-topup { display: none; }
.circle-btn--hist, .circle-btn--cart { display: none; }
.header .user-menu .circle-btn { overflow: visible; }

/* Hero banner = 1 ảnh */
.news-marquee { margin-top: 10px; padding: 7px 10px; border-radius: 10px; background: var(--soft); border: 1px solid var(--line); font-size: 12.5px; font-weight: 600; color: var(--text); }
.news-marquee .marquee__track { gap: 48px; }

/* Footer extras */
.footer__bottom .icon { width: 14px; height: 14px; vertical-align: -2px; color: var(--primary); }
.social span { font-weight: 600; }

/* Nút nổi và các kênh liên hệ */
.quick-actions {
  position: fixed; right: max(18px, env(safe-area-inset-right)); bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 61; display: grid; justify-items: end; gap: 8px;
}
.quick-action {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px;
  border: 1px solid var(--line-2); background: var(--surface); color: var(--text);
  box-shadow: 0 8px 22px -12px rgba(16, 26, 51, .58);
  transition: background .18s, color .18s, border-color .18s;
}
.quick-action .icon { width: 20px; height: 20px; grid-area: 1 / 1; }
.quick-action:hover { background: var(--surface-2); color: var(--primary); border-color: var(--game-edge); }
.contact-fab__btn { border-color: var(--primary); background: var(--primary); color: var(--surface); }
.contact-fab__btn:hover { background: color-mix(in srgb, var(--primary) 88%, var(--text)); color: var(--surface); }
.contact-fab__btn--zalo[aria-expanded="false"] { background: var(--surface); border-color: var(--line-2); }
.contact-fab__btn--zalo[aria-expanded="false"]:hover { background: var(--surface-2); border-color: var(--primary-2); }
.contact-fab__btn .zalo-mark { width: 29px; height: 29px; grid-area: 1 / 1; }
.contact-fab__btn .ic-close, .contact-fab__btn[aria-expanded="true"] .ic-open { display: none; }
.contact-fab__btn[aria-expanded="true"] .ic-close { display: block; }
.contact-fab__menu {
  position: absolute; bottom: calc(100% + 10px); right: 0; display: grid; gap: 3px;
  width: min(225px, calc(100vw - 32px)); padding: 8px; border: 1px solid var(--line-2);
  border-radius: 16px; background: var(--surface); color: var(--text); box-shadow: var(--shadow-lg);
}
.contact-fab__title { padding: 4px 8px 6px; font-size: 12px; font-weight: 800; }
.contact-fab__item { display: flex; align-items: center; gap: 9px; min-height: 42px; padding: 6px 8px; border-radius: 10px; }
.contact-fab__item:hover { background: var(--surface-2); }
.contact-fab__item > span:first-child {
  width: 28px; height: 28px; flex: none; border-radius: 8px; display: grid; place-items: center; color: var(--surface);
}
.contact-fab__item .icon { width: 15px; height: 15px; }
.contact-fab__item .zalo-mark { width: 27px; height: 27px; }
.contact-fab__label { font-size: 13px; font-weight: 650; overflow-wrap: anywhere; }

/* Bottom nav (mobile) */
.mnav { display: none; }
@media (max-width: 991.98px) {
  body { padding-bottom: 66px; }
  .mnav { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 70; background: rgba(255, 255, 255, .95); backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); border-top: 1px solid var(--line); }
  .mnav ul { display: grid; grid-template-columns: repeat(5, 1fr); height: 65px; }
  .mnav li > a, .mnav li > button { width: 100%; height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2.4px; padding: 8.8px 3.2px; font-size: 10.5px; font-weight: 600; color: var(--muted); }
  .mnav .icon { width: 21px; height: 21px; }
  .mnav .is-active { color: var(--primary-2); }
  .mnav__expand { position: absolute; left: 10px; right: 10px; bottom: 74px; padding: 12px; border-radius: 16px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
  .mnav__expand p { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 4px 6px; }
  .mnav__expand a { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; font-size: 14px; font-weight: 600; }
  .mnav__expand a:hover { background: var(--soft); color: var(--primary); }
  .mnav__expand a .icon { color: var(--primary); }
  .quick-actions { right: max(12px, env(safe-area-inset-right)); bottom: calc(77px + env(safe-area-inset-bottom)); }
  .quick-action { width: 44px; height: 44px; }
  .toasts { top: 12px; }
  .brand { margin: 0 auto; }
  .header__right { margin-left: 0; }
}
@media (min-width: 576px) {
  .btn-topup { display: inline-flex; }
  .circle-btn--cart { display: grid; }
}
@media (min-width: 992px) {
  .circle-btn--hist { display: grid; }
  .header__right { margin-left: auto; }
}
.content-page .rich { font-size: 14.5px; line-height: 1.8; color: var(--text); }
.content-page .rich h2 { font-size: 22px; font-weight: 800; margin: 4px 0 10px; }
.content-page .rich h3 { font-size: 17px; font-weight: 800; margin: 18px 0 8px; padding-left: 10px; border-left: 4px solid #00c9a7; }
.content-page .rich li + li { margin-top: 6px; }
.mystery__media { aspect-ratio: 300 / 239; }
.mystery__media img { object-fit: contain; }
/* Thanh điều hướng gọn để dành chỗ cho nội dung. */
.topbar__row { height: 36px; }
.header .container { padding-top: 3px; padding-bottom: 3px; }
@media (min-width: 992px) { .header__inner { min-height: 66px; } }
.sec--tight { padding: 24px 0 4px; }
.about__content { max-height: 340px; }
.footer__about p { font-size: 13.4px; }
.footer__bottom { padding: 19.2px 0 24px; gap: 8px; }
@media (max-width: 575.98px) {
  .topbar__row { height: 31px; }
  .header__inner { min-height: 55px; }
}
@media (min-width: 992px) {
  .footer__grid { padding-top: 24px; }
  .footer__grid > div { min-height: 261px; }
  .ft-hotline { min-height: 148px; }
}
@media (max-width: 767.98px) {
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 24px 16px; }
  .footer__grid > div:first-child, .footer__grid > div:last-child { grid-column: 1 / -1; }
  .faq__q { padding: 18px 18.4px; line-height: 1.35; }
}
.pcard:not(.pcard--cat) .pcard__media { aspect-ratio: 299 / 272; }
.note-box__content { max-height: 78px; }
@media (max-width: 575.98px) {
  .grid-cards--acc { grid-template-columns: 1fr; }
  .grid-cards--acc .pcard:not(.pcard--cat) .pcard__media { aspect-ratio: 351 / 120; background: #fff; }
  .grid-cards--acc .pcard__media img { object-fit: contain; }
  .grid-cards--acc .acc-name { font-size: 14.5px; padding: 12px 13.6px 0; }
  .grid-cards--acc .acc-info { padding: 8px 13.6px 14px; }
  .grid-cards--acc .attr-box { grid-template-columns: 1fr; gap: 0; padding: 4px 10px; border-radius: 10px; background: var(--soft-2); border: 1px solid var(--line); }
  .grid-cards--acc .attr { justify-content: space-between; background: none; border: 0; padding: 2px 0; font-size: 12px; }
  .grid-cards--acc .price-box { padding: 10px; }
  .grid-cards--acc .cart-price { font-size: 17.3px; }
  .grid-cards--acc .acc-actions { grid-template-columns: 1fr 1fr; gap: 7.2px; }
  .filter-grid { grid-template-columns: 1fr; }
  .brand__name { font-size: 14.5px; }
  .brand__logo { width: 34px; height: 34px; }
  .circle-btn { width: 36px; height: 36px; }
  .user-menu .avatar { width: 34px; height: 34px; }
  .header__right { gap: 6px; }
}
@media (min-width: 370px) and (max-width: 575.98px) { .circle-btn--cart { display: grid; } }
@media (max-width: 767.98px) {
  .footer__grid > div:first-child { min-height: 200px; }
  .footer__grid > div:nth-child(2), .footer__grid > div:nth-child(3) { min-height: 260px; }
  .ft-hotline { padding: 36px 27.2px; gap: 26px; }
  .footer__bottom { padding-bottom: 110px; }
}
@media (max-width: 991.98px) {
  .newsbox__body { height: 243px; }
}
@media (max-width: 575.98px) {
  .faq__q { padding: 22px 18.4px; }
}

/* ---------- Banner cửa hàng ---------- */
.sec--hero { padding: clamp(7px, 2vw, 23px) 0 0; }
.hero-grid { gap: clamp(14px, 2vw, 22px); }
.shop-hero {
  --hero-accent: var(--game-ice);
  --hero-ink: var(--game-ink);
  position: relative; isolation: isolate; display: grid; align-items: center; min-width: 0;
  min-height: clamp(350px, 35vw, 435px); overflow: hidden; border-radius: var(--radius);
  background: var(--hero-ink); color: var(--game-text); box-shadow: var(--game-glow);
}
.shop-hero[data-game="free-fire"] { --hero-accent: var(--game-amber); --hero-ink: #1e192a; }
.shop-hero__slides, .shop-hero__slide, .shop-hero__custom-link { position: absolute; inset: 0; }
.shop-hero__slides { z-index: -2; pointer-events: none; background: var(--hero-ink); }
.shop-hero__slide[data-game="free-fire"] { opacity: 0; transition: opacity .7s ease; }
.shop-hero__slide[data-game="free-fire"].is-active { opacity: 1; }
.shop-hero__slide img, .shop-hero__custom-link img { width: 100%; height: 100%; object-fit: cover; }
.shop-hero__slide img { object-position: 70% 21%; transform-origin: 69% 34%; }
.shop-hero__slide[data-game="free-fire"] img { object-position: 73% 15%; }
.shop-hero__slide.is-active img { animation: hero-drift 8s ease-out both; }
.shop-hero[data-rotating="false"] .shop-hero__slide img { animation-play-state: paused; }
@keyframes hero-drift {
  from { transform: scale(1); }
  to { transform: scale(1.055); }
}
.shop-hero::before {
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(90deg, var(--hero-ink) 1%, color-mix(in srgb, var(--hero-ink) 91%, transparent) 26%, color-mix(in srgb, var(--hero-ink) 46%, transparent) 53%, transparent 78%),
    linear-gradient(0deg, color-mix(in srgb, var(--hero-ink) 72%, transparent), transparent 28%);
}
.shop-hero__content { padding: clamp(25px, 4vw, 52px); min-width: 0; }
.shop-hero__brand {
  display: inline-flex; align-items: center; gap: 9px; padding: 6px 12px;
  border: 1px solid color-mix(in srgb, var(--hero-accent) 45%, transparent);
  border-radius: 999px; background: color-mix(in srgb, var(--hero-ink) 65%, transparent);
  color: var(--hero-accent); font-size: 11px; font-weight: 800; letter-spacing: .105em; text-transform: uppercase;
  max-width: 100%; overflow-wrap: anywhere;
}
.shop-hero__brand .icon { width: 16px; height: 16px; }
.shop-hero__title { margin-top: 14px; font-size: clamp(29px, 4.1vw, 54px); line-height: 1.14; font-weight: 900; letter-spacing: -.048em; }
.shop-hero__title > span { display: block; color: var(--hero-accent); }
.shop-hero__slogan { color: var(--game-subtext); margin-top: 11px; max-width: min(43ch, 76%); font-size: clamp(13px, 1.18vw, 15px); overflow-wrap: anywhere; }
.shop-hero__cta { margin-top: 19px; min-height: 44px; }
.shop-hero__cta .icon { width: 16px; height: 16px; }
.shop-hero__controls {
  position: absolute; inset: auto 16px 16px auto; padding: 4px; display: flex; align-items: center; gap: 4px;
  border: 1px solid color-mix(in srgb, var(--game-text) 24%, transparent); border-radius: 999px;
  background: color-mix(in srgb, var(--hero-ink) 90%, transparent);
}
.shop-hero__controls button {
  min-height: 42px; display: inline-flex; align-items: center; justify-content: center; padding: 0 13px;
  border-radius: 999px; color: var(--game-text); white-space: nowrap; font-size: 12px; font-weight: 700;
}
.shop-hero__controls button:hover { background: color-mix(in srgb, var(--game-text) 14%, transparent); }
.shop-hero__controls button[aria-pressed="true"] { background: var(--hero-accent); color: var(--hero-ink); }
.shop-hero__controls button:focus-visible { outline-color: var(--hero-accent); }
.shop-hero--custom { aspect-ratio: 1070 / 398; min-height: 0; }
.shop-hero--custom .shop-hero__custom-link:focus-visible { outline-offset: -4px; }
.shop-hero--custom :is(.shop-hero__slides, .shop-hero__content, .shop-hero__controls), .shop-hero--custom::before { display: none; }
.newsbox { background: var(--grad-card); border-color: var(--game-edge); }
.newsbox__body { overflow-wrap: anywhere; }
@media (min-width: 992px) {
  .hero-grid { grid-template-columns: minmax(0, 2.45fr) minmax(0, 1fr); }
}
@media (max-width: 991.98px) {
  .hero-grid .newsbox__body { height: auto; max-height: 158px; }
  .shop-hero--custom { min-height: 210px; }
}
@media (max-width: 767.98px) {
  .shop-hero { align-content: end; min-height: 438px; }
  .shop-hero__slides { bottom: 25%; }
  .shop-hero__slide img { object-position: 76% top; }
  .shop-hero__slide[data-game="free-fire"] img { object-position: 77% top; }
  .shop-hero::before { background: linear-gradient(0deg, var(--hero-ink) 23%, color-mix(in srgb, var(--hero-ink) 95%, transparent) 36%, color-mix(in srgb, var(--hero-ink) 43%, transparent) 61%, transparent 86%); }
  .shop-hero__content { padding: 20px 19px 0; }
  .shop-hero__title { margin-top: 10px; }
  .shop-hero__slogan { max-width: 100%; margin-top: 7px; }
  .shop-hero__cta { margin-top: 14px; }
  .shop-hero__controls { position: relative; inset: auto; justify-self: start; margin: 11px 18px 15px; }
  .shop-hero--custom { min-height: 0; }
}

/* ---------- Danh mục và thẻ ---------- */
.category-head {
  position: relative; padding: clamp(17px, 3vw, 33px); border-radius: var(--radius);
  border: 1px solid var(--game-edge); box-shadow: var(--game-glow);
  background: radial-gradient(ellipse at 100% 0, var(--category-tint, var(--surface-2)), transparent 72%), var(--surface);
}
.category-head[data-theme="arena"], .pcard--cat[data-theme="arena"] { --category-tint: color-mix(in srgb, var(--game-ice) 38%, var(--surface)); --category-edge: var(--primary); }
.category-head[data-theme="fire"], .pcard--cat[data-theme="fire"] { --category-tint: color-mix(in srgb, var(--game-amber) 29%, var(--surface)); --category-edge: var(--gold); }
.category-head h1 { font-size: clamp(21px, 3.2vw, 40px); overflow-wrap: anywhere; }
.category-head[data-theme="fire"] .icon-box, .category-head[data-theme="fire"] .sec-line { background: var(--grad-gold); color: var(--game-ink); }
#cat-filter:empty, #cat-notice:empty { display: none; }
#cat-content > .grid-cards > .state { grid-column: 1 / -1; }
.filter-grid { grid-template-columns: minmax(0, 1fr); }
.filter-grid > * { min-width: 0; }
.filter-dropdown { position: relative; }
.filter-dropdown:focus-within { z-index: 5; }
.filter-dropdown__trigger {
  display: flex; align-items: center; gap: 9px; min-height: 44px; width: 100%; text-align: left;
  padding: 7px 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  color: var(--text); background: var(--surface); font-size: 13.5px; font-weight: 600;
}
.filter-dropdown__trigger:hover, .filter-dropdown__trigger[aria-expanded="true"] { border-color: var(--primary); }
.filter-dropdown__trigger > .icon { color: var(--primary); }
.filter-dropdown__trigger > span { min-width: 0; overflow-wrap: anywhere; }
.filter-dropdown__chev { margin-left: auto; transition: transform .2s; }
.filter-dropdown__trigger[aria-expanded="true"] .filter-dropdown__chev { transform: rotate(180deg); }
.filter-dropdown__list {
  position: absolute; inset: calc(100% + 6px) 0 auto; z-index: 4; padding: 5px; min-width: 0;
  display: grid; border: 1px solid var(--game-edge); border-radius: var(--radius-sm);
  max-height: min(310px, 52dvh); overflow-y: auto; overscroll-behavior: contain;
  background: var(--surface); box-shadow: var(--shadow-lg);
}
.filter-dropdown__list [role="option"] {
  display: flex; align-items: center; justify-content: space-between; gap: 7px; text-align: left; min-height: 43px;
  padding: 6px 8px; border-radius: 8px; font-size: 13px; color: var(--text);
}
.filter-dropdown__list [role="option"] span { min-width: 0; overflow-wrap: anywhere; }
.filter-dropdown__list [role="option"]:is(:hover, :focus-visible, [aria-selected="true"]) { background: var(--surface-2); color: var(--primary); }
.filter-dropdown__list [role="option"]:focus-visible { outline-offset: -2px; }
.filter-dropdown__list [role="option"]:not([aria-selected="true"]) .icon { visibility: hidden; }
.filter-actions .btn { min-height: 44px; }
.pcard { border-color: var(--game-edge); background: linear-gradient(180deg, var(--surface), var(--category-tint, var(--surface-2))); }
.pcard__media, .grid-cards--acc .pcard:not(.pcard--cat) .pcard__media { background: var(--surface-2); }
#groups .title-row {
  padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 74%, transparent);
}
#groups .sec-sub { color: var(--text); }
.category-heading { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 9px; }
.pcard--cat .pcard__media { aspect-ratio: 5 / 4; }
.pcard--cat .pcard__media:has(img[src^="/img/cat/"][src$=".svg"]) { background: var(--game-ink); }
:is(.pcard__media, .mystery__media):has([data-category-poster="top"]) { aspect-ratio: 500 / 242; }
.mystery__media:has([data-category-poster="top"]) { align-self: start; }
:is(.pcard__media, .mystery__media) img[data-category-poster="top"] {
  object-fit: cover; object-position: center top; transform-origin: center top;
}
.pcard--cat .pcard__foot .btn { background: var(--surface); color: var(--text); }
.pcard--cat .pcard__foot .btn:hover { color: var(--category-edge, var(--primary)); }
.pcard .pcard__image { opacity: 0; transition: opacity .38s ease, transform .5s var(--ease); }
.pcard .pcard__image.is-loaded { opacity: 1; }
.pcard:focus-within { border-color: var(--category-edge, var(--primary)); }
.pcard:focus-within::before { opacity: 1; }
@media (hover: hover) and (pointer: fine) {
  .pcard:hover { transform: translateY(-4px); box-shadow: var(--game-glow); }
  .pcard:hover::before { opacity: 1; }
  .pcard:hover .pcard__image { transform: scale(1.035); }
}
@media (min-width: 576px) {
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 768px) {
  .filter-grid { grid-template-columns: minmax(0, 1.55fr) repeat(2, minmax(0, 1fr)) minmax(0, 1.08fr); }
}
@media (max-width: 575.98px) {
  #cat-root > * + * { margin-top: 15px; }
  .category-head .btn { margin: 0; }
  .filter-card { padding: 13px; }
  .filter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .filter-dropdown__trigger { padding-inline: 8px; gap: 5px; font-size: 12px; }
  .filter-dropdown__trigger > .icon { width: 13px; height: 13px; }
  .filter-dropdown__list { min-width: min(156px, 100%); }
  .filter-count { margin-left: 0; }
  .filter-head { display: grid; grid-template-columns: auto minmax(0, 1fr); }
  .filter-count { grid-column: 1 / -1; }
  .grid-cards--acc .pcard:not(.pcard--cat) .pcard__media { aspect-ratio: 16 / 8; }
}

/* ---------- Phóng to ảnh chi tiết ---------- */
.gal-zoom { position: absolute; inset: 0; width: 100%; height: 100%; cursor: zoom-in; }
.gal-zoom:focus-visible, .gal-nav:focus-visible { outline-offset: -4px; }
.gal-zoom__hint {
  position: absolute; left: 11px; bottom: 11px; display: flex; gap: 6px; align-items: center;
  padding: 5px 10px; color: var(--game-text); background: color-mix(in srgb, var(--game-ink) 83%, transparent);
  border-radius: 999px; font-size: 12px; font-weight: 700;
}
.gal-nav { width: 44px; height: 44px; }
.gal-count { pointer-events: none; }
.gal-thumbs button:focus-visible { outline-offset: -4px; }
.lightbox-open { overflow: hidden; }
.lightbox {
  position: fixed; inset: 0; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 60px clamp(12px, 5vw, 72px) 50px; border: 0; overflow: hidden;
  color: var(--game-text); background: var(--game-ink); touch-action: pan-y;
}
.lightbox[open] { display: grid; place-items: center; }
.lightbox::backdrop { background: var(--game-ink); }
.lightbox img { width: auto; height: auto; max-width: 100%; max-height: calc(100dvh - 110px); object-fit: contain; }
.lightbox .gal-nav, .lightbox__close { background: color-mix(in srgb, var(--game-ink) 80%, transparent); border: 1px solid var(--game-lilac); }
.lightbox .gal-nav:hover, .lightbox__close:hover { background: var(--primary); }
.lightbox__close {
  position: absolute; top: max(12px, env(safe-area-inset-top)); right: max(12px, env(safe-area-inset-right));
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
}
.lightbox .gal-count { bottom: max(12px, env(safe-area-inset-bottom)); left: 50%; right: auto; transform: translateX(-50%); }
@media (max-width: 767.98px) {
  .detail .info-box { position: static; }
}
@media (max-width: 991.98px) {
  body { padding-bottom: calc(66px + env(safe-area-inset-bottom)); }
  .mnav { padding-bottom: env(safe-area-inset-bottom); }
}
@media (prefers-reduced-motion: reduce) {
  .shop-hero__slide[data-game="free-fire"] { transition: none; }
  .shop-hero__slide.is-active img { animation: none; }
  .pcard, .pcard .pcard__image { transition: none; }
}

/* Danh mục chưa có ảnh: khối màu đen */
.img-empty { display: block; width: 100%; height: 100%; background: #000; }
.pcard__media:has(> .img-empty), .mystery__media:has(> .img-empty) { background: #000; }


/* =========================================================
   Dịch vụ chạy sự kiện Liên Quân
   ========================================================= */
.status--processing { background: rgba(37, 99, 235, .12); color: #1d5fd6; }
.status--refunded { background: rgba(100, 116, 139, .14); color: #64748b; }

/* Khối nổi bật trên trang chủ */
.ev-promo {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; grid-template-columns: auto 1fr; gap: 14px 16px; align-items: center;
  padding: 18px; border-radius: var(--radius);
  background:
    radial-gradient(420px 220px at 100% 0%, rgba(0, 240, 122, .28), transparent 70%),
    radial-gradient(360px 220px at 0% 100%, rgba(0, 200, 230, .24), transparent 70%),
    var(--game-ink);
  color: var(--game-text);
  border: 1px solid color-mix(in srgb, #00f07a 45%, transparent);
  box-shadow: 0 22px 50px -28px rgba(0, 200, 110, .75), inset 0 1px 0 rgba(255, 255, 255, .08);
  transition: transform .25s var(--ease), box-shadow .25s;
}
.ev-promo::before {
  content: ""; position: absolute; inset: 0; z-index: -1; opacity: .5;
  background-image: linear-gradient(rgba(255, 255, 255, .05) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .05) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 40%, #000);
  mask-image: linear-gradient(90deg, transparent, #000 40%, #000);
}
.ev-promo::after {
  content: ""; position: absolute; top: -40%; bottom: -40%; width: 70px; left: -120px; z-index: -1;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .16), transparent);
  transform: skewX(-18deg); animation: ev-shine 4.5s ease-in-out infinite;
}
@keyframes ev-shine { 0%, 55% { left: -120px; } 100% { left: 110%; } }
.ev-promo:hover { transform: translateY(-3px); box-shadow: 0 28px 60px -28px rgba(0, 220, 120, .9), inset 0 1px 0 rgba(255, 255, 255, .1); }
.ev-promo__ico { width: 56px; height: 56px; border-radius: 16px; display: grid; place-items: center; background: var(--grad); color: var(--on-grad); box-shadow: 0 0 0 4px rgba(0, 240, 122, .15), 0 14px 30px -12px rgba(0, 240, 122, .8); }
.ev-promo__ico .icon { width: 28px; height: 28px; }
.ev-promo__body { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ev-promo__tag { align-self: flex-start; font-size: 10.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; padding: 3px 9px; border-radius: 99px; color: var(--on-grad); background: var(--grad); }
.ev-promo__title { font-size: 19px; font-weight: 900; letter-spacing: -.015em; line-height: 1.25; }
.ev-promo__text { font-size: 13.5px; color: var(--game-subtext); }
.ev-promo__side { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ev-promo__price { display: flex; flex-direction: column; line-height: 1.15; }
.ev-promo__price small { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--game-subtext); }
.ev-promo__price b { font-size: 24px; font-weight: 900; letter-spacing: -.02em; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.ev-promo__price .sk { background: rgba(255, 255, 255, .12); }
.ev-promo__cta { height: 42px; padding: 0 18px; font-size: 14px; }
@media (min-width: 768px) {
  .ev-promo { grid-template-columns: auto 1fr auto; padding: 20px 24px; gap: 20px; }
  .ev-promo__side { grid-column: auto; flex-wrap: nowrap; gap: 20px; }
  .ev-promo__title { font-size: 22px; }
  .ev-promo__ico { width: 64px; height: 64px; border-radius: 18px; }
}

/* Trang /chay-su-kien — vùng nội dung tông tối, nhấn cam → đỏ (chỉ áp cho trang này) */
.ev-page {
  --ev-bg: #0b0c0f;
  --ev-card: #121418;
  --ev-card-2: #1a1d24;
  --ev-line: #1f2937;
  --ev-line-2: #374151;
  --ev-text: #e5e7eb;
  --ev-white: #ffffff;
  --ev-muted: #9ca3af;
  --ev-dim: #6b7280;
  --ev-orange: #fb923c;
  --ev-orange-2: #f97316;
  --ev-red: #ef4444;
  --ev-green: #34d399;
  --ev-blue: #60a5fa;
  --ev-yellow: #facc15;
  --ev-grad: linear-gradient(90deg, #dc2626 0%, #ea580c 100%);
  --ev-grad-bar: linear-gradient(90deg, #f97316, #ef4444);
  background: radial-gradient(900px 420px at 15% -10%, rgba(249, 115, 22, .10), transparent 60%), radial-gradient(700px 400px at 100% 10%, rgba(220, 38, 38, .08), transparent 60%), var(--ev-bg);
  color: var(--ev-text);
  padding: 24px 0 48px;
}
.ev-wrap { max-width: 1152px; margin: 0 auto; padding: 0 16px; display: flex; flex-direction: column; gap: 24px; }
.ev-page .crumbs { background: var(--ev-card); border-color: var(--ev-line); }
.ev-page .crumbs a, .ev-page .crumbs span { color: var(--ev-muted); }
.ev-page .crumbs a:hover { color: var(--ev-orange); }
.ev-page .crumbs [aria-current] { color: var(--ev-white); }
.ev-page .crumbs > .icon { color: var(--ev-dim); }
.ev-page .sk { background: rgba(255, 255, 255, .07); }
.ev-page .sk::after { background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08), transparent); }
.ev-page .state { background: var(--ev-card); border-color: var(--ev-line-2); }
.ev-page .state h3 { color: var(--ev-white); }
.ev-page .state p { color: var(--ev-muted); }
.ev-page .state__icon { background: var(--ev-grad); color: #fff; box-shadow: 0 12px 28px -14px rgba(234, 88, 12, .9); }
.ev-page .pager button { background: var(--ev-card-2); border-color: var(--ev-line-2); color: var(--ev-muted); }
.ev-page .pager button.is-active { background: var(--ev-grad); color: #fff; box-shadow: none; }

/* Dòng chạy đơn vừa hoàn thành */
.ev-ticker { position: relative; overflow: hidden; border-radius: 8px; border: 1px solid rgba(249, 115, 22, .3); background: linear-gradient(90deg, #0f1117, #1a1d24, #0f1117); box-shadow: 0 10px 15px -3px rgba(0, 0, 0, .3); }
.ev-ticker__label { position: absolute; left: 0; top: 0; bottom: 0; z-index: 2; display: flex; align-items: center; gap: 7px; padding: 0 14px; background: linear-gradient(90deg, #121418 70%, transparent); color: var(--ev-orange); font-size: 11.5px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; }
.ev-ticker__label .icon { width: 14px; height: 14px; animation: ev-pulse 1.6s ease-in-out infinite; }
@keyframes ev-pulse { 50% { opacity: .45; } }
.ev-ticker::after { content: ""; position: absolute; right: 0; top: 0; bottom: 0; width: 48px; z-index: 2; background: linear-gradient(270deg, #0f1117, transparent); pointer-events: none; }
.ev-ticker__viewport { overflow: hidden; padding: 12px 16px 12px 140px; }
.ev-ticker__track { display: inline-flex; gap: 0; white-space: nowrap; animation: ev-marquee var(--dur, 40s) linear infinite; will-change: transform; }
.ev-ticker:hover .ev-ticker__track { animation-play-state: paused; }
@keyframes ev-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ev-tick { display: inline-flex; align-items: center; gap: 8px; font-size: 12px; color: #d1d5db; }
.ev-tick .u { color: #22d3ee; }
.ev-tick .n { color: #c084fc; }
.ev-tick .c { font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: #f472b6; background: rgba(236, 72, 153, .1); padding: 1px 6px; border-radius: 4px; }
.ev-tick .ok { color: var(--ev-green); font-weight: 800; text-transform: uppercase; }
.ev-tick .p { color: var(--ev-yellow); font-weight: 800; }
.ev-tick .t { color: var(--ev-dim); font-size: 11px; }
.ev-tick .sep { color: #374151; margin: 0 10px; }

/* Lưới 2 cột */
.ev-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
.ev-col { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
@media (min-width: 992px) {
  .ev-layout { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
  .ev-side { position: sticky; top: 96px; }
}

/* Khung tiêu đề có góc trang trí cam */
.ev-titlebox { position: relative; display: flex; align-items: center; gap: 16px; padding: 20px; border-radius: 8px; border: 1px solid var(--ev-line); background: linear-gradient(90deg, #1a1d24, #121418); }
.ev-titlebox::before, .ev-titlebox::after { content: ""; position: absolute; width: 30px; height: 30px; pointer-events: none; }
.ev-titlebox::before { top: -2px; left: -2px; border-top: 2px solid var(--ev-orange-2); border-left: 2px solid var(--ev-orange-2); border-top-left-radius: 8px; }
.ev-titlebox::after { bottom: -2px; right: -2px; border-bottom: 2px solid var(--ev-orange-2); border-right: 2px solid var(--ev-orange-2); border-bottom-right-radius: 8px; }
.ev-titlebox__ico { width: 64px; height: 64px; flex: none; border-radius: 6px; display: grid; place-items: center; color: var(--ev-orange); background: linear-gradient(135deg, rgba(249, 115, 22, .22), rgba(239, 68, 68, .14)); border: 1px solid rgba(249, 115, 22, .5); }
.ev-titlebox__ico .icon { width: 30px; height: 30px; }
.ev-titlebox h1 { font-size: 20px; font-weight: 900; letter-spacing: .02em; text-transform: uppercase; color: var(--ev-white); line-height: 1.3; }
.ev-titlebox p { margin-top: 2px; font-size: 12px; font-weight: 500; color: var(--ev-orange); display: flex; align-items: center; gap: 5px; }
.ev-titlebox p .icon { width: 13px; height: 13px; }

/* Giới thiệu (HTML admin) — thu gọn */
.ev-intro { border-radius: 8px; border: 1px solid var(--ev-line); background: var(--ev-card); }
.ev-intro > summary { list-style: none; cursor: pointer; display: flex; align-items: center; gap: 8px; padding: 13px 18px; font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--ev-orange); }
.ev-intro > summary::-webkit-details-marker { display: none; }
.ev-intro > summary .icon { width: 15px; height: 15px; }
.ev-intro > summary .chev { margin-left: auto; transition: transform .2s; color: var(--ev-muted); }
.ev-intro[open] > summary .chev { transform: rotate(180deg); }
.ev-intro .rich { padding: 0 18px 16px; font-size: 13.5px; line-height: 1.75; color: #d1d5db; }
.ev-intro .rich a { color: var(--ev-orange); }
.ev-intro .rich b, .ev-intro .rich strong { color: var(--ev-white); }

/* Khung form các bước */
.ev-formbox { padding: 24px; border-radius: 8px; border: 1px solid var(--ev-line); background: rgba(18, 20, 24, .95); display: flex; flex-direction: column; gap: 24px; }
.ev-step__label { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ev-orange); }
.ev-step__label .req { color: var(--ev-red); }
.ev-step__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; flex-wrap: wrap; }
.ev-step__head .ev-step__label { margin: 0; }
.ev-sep { height: 1px; background: rgba(31, 41, 55, .6); border: 0; margin: 0; }

.ev-pkgs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.ev-pkg { position: relative; display: block; cursor: pointer; text-align: left; width: 100%; padding: 12px; border-radius: 12px; border: 2px solid var(--ev-line-2); background: transparent; color: inherit; transition: border-color .2s, background .2s, transform .2s, box-shadow .2s; }
.ev-pkg:hover { border-color: rgba(249, 115, 22, .5); }
.ev-pkg.is-selected { border-color: var(--ev-orange-2); background: rgba(249, 115, 22, .1); transform: scale(1.03); z-index: 1; box-shadow: 0 0 0 1px rgba(249, 115, 22, .25), 0 0 24px -6px rgba(249, 115, 22, .7); }
.ev-pkg:focus-visible { outline: 2px solid var(--ev-orange); outline-offset: 2px; }
.ev-pkg__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.ev-pkg__name { font-size: 14px; font-weight: 900; color: var(--ev-white); line-height: 1.25; overflow-wrap: anywhere; }
.ev-pkg__eta { margin-top: 2px; font-size: 10.5px; color: var(--ev-dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev-pkg__right { text-align: right; flex: none; }
.ev-pkg__price { font-size: 14px; font-weight: 900; color: var(--ev-orange); white-space: nowrap; }
.ev-pkg__unit { font-size: 10.5px; color: var(--ev-dim); white-space: nowrap; }
.ev-pkg__bar { margin-top: 8px; display: flex; align-items: center; gap: 6px; }
.ev-pkg__bar i { flex: 1; height: 4px; border-radius: 99px; background: var(--ev-line-2); overflow: hidden; display: block; }
.ev-pkg__bar i::after { content: ""; display: block; height: 100%; width: var(--w, 100%); border-radius: 99px; background: var(--ev-grad-bar); }
.ev-pkg__badge { font-size: 9.5px; font-weight: 900; color: var(--ev-orange); background: rgba(249, 115, 22, .2); padding: 2px 6px; border-radius: 4px; white-space: nowrap; }

.ev-qty { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.ev-qty__ctrl { display: flex; align-items: center; border: 1px solid var(--ev-line-2); border-radius: 4px; overflow: hidden; background: var(--ev-bg); }
.ev-qty__ctrl button { width: 46px; height: 44px; font-size: 18px; font-weight: 800; color: var(--ev-muted); transition: color .15s, background .15s; }
.ev-qty__ctrl button:hover { color: #fff; background: var(--ev-line); }
.ev-qty__ctrl input { width: 80px; height: 44px; border: 0; border-left: 1px solid var(--ev-line-2); border-right: 1px solid var(--ev-line-2); background: transparent; color: #fff; text-align: center; font-size: 18px; font-weight: 800; -moz-appearance: textfield; }
.ev-qty__ctrl input::-webkit-outer-spin-button, .ev-qty__ctrl input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ev-qty__ctrl input:focus { outline: none; background: rgba(255, 255, 255, .03); }
.ev-qty__info { font-size: 12px; color: var(--ev-muted); line-height: 1.7; }
.ev-qty__info b { color: var(--ev-orange); }
.ev-qty__info b.g { color: var(--ev-green); }

.ev-switch { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; user-select: none; }
.ev-switch > span { font-size: 10.5px; font-weight: 800; color: var(--ev-muted); text-transform: uppercase; }
.ev-switch input { position: absolute; opacity: 0; pointer-events: none; }
.ev-switch i { position: relative; width: 40px; height: 20px; border-radius: 99px; background: var(--ev-line-2); transition: background .2s; display: block; }
.ev-switch i::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .2s; }
.ev-switch input:checked + i { background: var(--ev-orange-2); }
.ev-switch input:checked + i::after { transform: translateX(20px); }
.ev-switch input:focus-visible + i { outline: 2px solid var(--ev-orange); outline-offset: 2px; }

.ev-input, .ev-textarea, .ev-page .ev-select { width: 100%; min-width: 0; padding: 10px 14px; border-radius: 4px; border: 1px solid var(--ev-line); background: var(--ev-card-2); color: #fff; font-size: 14px; transition: border-color .2s; }
.ev-input::placeholder, .ev-textarea::placeholder { color: var(--ev-dim); }
.ev-input:focus, .ev-textarea:focus { outline: none; border-color: var(--ev-orange-2); }
.ev-textarea { resize: vertical; min-height: 66px; line-height: 1.6; }
.ev-textarea--codes { min-height: 150px; font-family: ui-monospace, Consolas, monospace; }
.ev-iconinput { position: relative; }
.ev-iconinput > .icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 15px; height: 15px; color: var(--ev-dim); pointer-events: none; }
.ev-iconinput .ev-input { padding-left: 38px; }
.ev-iconinput.has-action .ev-input { padding-right: 44px; }
.ev-iconinput .input-action { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; display: grid; place-items: center; color: var(--ev-muted); border-radius: 4px; }
.ev-iconinput .input-action:hover { color: #fff; }
.ev-hint { margin-top: 8px; font-size: 11.5px; color: var(--ev-dim); display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.ev-hint b { color: var(--ev-orange); }
.ev-err { margin-top: 8px; font-size: 12.5px; font-weight: 600; color: #f87171; }
.ev-err:empty { display: none; }
.ev-field + .ev-field { margin-top: 12px; }
.ev-field > .lbl { display: block; font-size: 11px; font-weight: 700; color: var(--ev-muted); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 6px; }
.ev-logins { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-logins label { position: relative; cursor: pointer; }
.ev-logins input { position: absolute; opacity: 0; pointer-events: none; }
.ev-logins span { display: inline-flex; align-items: center; height: 34px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--ev-line-2); font-size: 12.5px; font-weight: 700; color: var(--ev-muted); }
.ev-logins input:checked + span { border-color: var(--ev-orange-2); color: var(--ev-orange); background: rgba(249, 115, 22, .1); }
.ev-logins input:focus-visible + span { outline: 2px solid var(--ev-orange); outline-offset: 2px; }
.ev-alert { display: flex; gap: 8px; align-items: flex-start; margin-top: 12px; padding: 10px 12px; border-radius: 6px; border: 1px solid rgba(250, 204, 21, .3); background: rgba(250, 204, 21, .06); font-size: 12.5px; color: #fde68a; }
.ev-alert .icon { width: 15px; height: 15px; margin-top: 2px; flex: none; color: var(--ev-yellow); }

/* Khung thanh toán */
.ev-side { display: flex; flex-direction: column; gap: 16px; }
.ev-pay { border-radius: 8px; border: 1px solid var(--ev-line); background: var(--ev-card); overflow: hidden; }
.ev-pay__head { padding: 16px 20px; border-bottom: 1px solid var(--ev-line); background: linear-gradient(90deg, #111827, #000); }
.ev-pay__head h2 { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; color: #fff; }
.ev-pay__head .icon { width: 16px; height: 16px; color: var(--ev-orange-2); }
.ev-pay__body { padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.ev-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; font-size: 14px; }
.ev-row > span:first-child { color: var(--ev-muted); flex: none; }
.ev-row > b { font-weight: 800; color: #fff; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.ev-row > b.o { color: var(--ev-orange); }
.ev-row > b.g { color: var(--ev-green); }
.ev-total { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; border-radius: 4px; border: 1px solid rgba(239, 68, 68, .2); background: rgba(239, 68, 68, .05); }
.ev-total span { font-size: 14px; font-weight: 800; color: #d1d5db; }
.ev-total b { font-size: 24px; font-weight: 900; color: var(--ev-red); font-family: ui-monospace, Consolas, monospace; white-space: nowrap; }
.ev-pay__note { text-align: center; font-size: 12px; color: var(--ev-dim); }
.ev-pay__note.warn { color: var(--ev-yellow); }
.ev-pay__note b { color: #fff; }
.ev-buy { width: 100%; height: 46px; border-radius: 4px; background: var(--ev-grad); color: #fff; font-size: 14px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; display: inline-flex; align-items: center; justify-content: center; gap: 8px; box-shadow: 0 10px 15px -3px rgba(220, 38, 38, .3), 0 4px 6px -4px rgba(0, 0, 0, .1); transition: filter .2s, transform .15s; position: relative; }
.ev-buy:hover { filter: brightness(1.1); }
.ev-buy:active { transform: translateY(1px); }
.ev-buy .icon { width: 16px; height: 16px; }
.ev-buy:disabled { opacity: .6; cursor: not-allowed; }
.ev-buy.is-loading { color: transparent; pointer-events: none; }
.ev-buy.is-loading::after { content: ""; position: absolute; width: 18px; height: 18px; border-radius: 50%; border: 2px solid rgba(255, 255, 255, .4); border-top-color: #fff; animation: spin .7s linear infinite; }
.ev-commit { display: flex; gap: 12px; padding: 16px; border-radius: 8px; border: 1px solid rgba(59, 130, 246, .2); background: rgba(23, 37, 84, .3); }
.ev-commit > .icon { width: 18px; height: 18px; color: var(--ev-blue); margin-top: 2px; flex: none; }
.ev-commit h4 { font-size: 12px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--ev-blue); }
.ev-commit p { margin-top: 3px; font-size: 11.5px; line-height: 1.6; color: var(--ev-muted); }

/* Thanh tổng tiền dính đáy (mobile) */
.ev-mbar { display: none; }
@media (max-width: 991.98px) {
  .ev-mbar { display: flex; position: fixed; left: 0; right: 0; bottom: 66px; z-index: 65; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; background: rgba(18, 20, 24, .97); border-top: 1px solid rgba(249, 115, 22, .35); backdrop-filter: blur(10px); color: #fff; transition: transform .25s; }
  .ev-mbar.is-hidden { transform: translateY(140%); }
  .ev-mbar small { display: block; font-size: 10.5px; font-weight: 700; color: var(--ev-muted); text-transform: uppercase; letter-spacing: .05em; }
  .ev-mbar b { font-size: 19px; font-weight: 900; color: var(--ev-red); font-family: ui-monospace, Consolas, monospace; white-space: nowrap; }
  .ev-mbar .ev-buy { width: auto; height: 42px; padding: 0 16px; font-size: 13px; flex: none; }
  .ev-page { padding-bottom: 90px; }
  .page-events .quick-actions { bottom: 140px; }
}

/* Đơn của bạn */
.ev-orders { display: flex; flex-direction: column; gap: 14px; }
.ev-orders__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.ev-orders__head h2 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; color: #fff; }
.ev-orders__head h2 .icon { width: 18px; height: 18px; color: var(--ev-orange-2); }
.ev-ghost { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 4px; border: 1px solid var(--ev-line-2); color: var(--ev-muted); font-size: 12.5px; font-weight: 700; }
.ev-ghost:hover { color: #fff; border-color: var(--ev-orange-2); }
.ev-ghost .icon { width: 14px; height: 14px; }
.ev-olist { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; }
@media (min-width: 768px) { .ev-olist { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.ev-order { padding: 16px; border-radius: 8px; border: 1px solid var(--ev-line); background: var(--ev-card); display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.ev-order__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; }
.ev-order__head > div { min-width: 0; }
.ev-order__title { font-size: 14.5px; font-weight: 800; color: #fff; overflow-wrap: anywhere; }
.ev-order__time { font-size: 11.5px; color: var(--ev-dim); margin-top: 2px; }
.ev-order__total { font-size: 16px; font-weight: 900; color: var(--ev-red); font-family: ui-monospace, Consolas, monospace; white-space: nowrap; }
.ev-badge { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; padding: 3px 10px; border-radius: 99px; font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .03em; }
.ev-badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.ev-badge--pending { color: var(--ev-yellow); background: rgba(250, 204, 21, .12); }
.ev-badge--processing { color: var(--ev-blue); background: rgba(96, 165, 250, .12); }
.ev-badge--done { color: var(--ev-green); background: rgba(52, 211, 153, .12); }
.ev-badge--refunded { color: #f87171; background: rgba(148, 163, 184, .14); }
.ev-order dl { margin: 0; display: flex; flex-direction: column; gap: 5px; padding: 10px 12px; border-radius: 6px; background: var(--ev-card-2); border: 1px solid var(--ev-line); }
.ev-order dl > div { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; min-width: 0; }
.ev-order dt { color: var(--ev-muted); flex: none; }
.ev-order dd { margin: 0; font-weight: 700; color: #e5e7eb; text-align: right; min-width: 0; overflow-wrap: anywhere; }
.ev-codes { display: flex; flex-wrap: wrap; gap: 4px; justify-content: flex-end; }
.ev-codes code { font-family: ui-monospace, Consolas, monospace; font-size: 11px; color: #f472b6; background: rgba(236, 72, 153, .1); padding: 1px 6px; border-radius: 4px; }
.ev-codes .more { font-size: 11px; color: var(--ev-dim); align-self: center; }
.ev-order__admin { display: flex; gap: 8px; padding: 9px 12px; border-radius: 6px; border: 1px solid rgba(249, 115, 22, .3); background: rgba(249, 115, 22, .07); font-size: 12.5px; color: #fed7aa; }
.ev-order__admin .icon { width: 15px; height: 15px; color: var(--ev-orange); flex: none; margin-top: 2px; }
.ev-order__admin b { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .05em; color: var(--ev-orange); }
.ev-order__admin p { overflow-wrap: anywhere; }

@media (max-width: 575.98px) {
  .ev-page { padding-top: 16px; }
  .ev-wrap { gap: 16px; padding: 0 12px; }
  .ev-formbox { padding: 16px; gap: 20px; }
  .ev-titlebox { padding: 14px; gap: 12px; }
  .ev-titlebox__ico { width: 52px; height: 52px; }
  .ev-titlebox h1 { font-size: 16px; }
  .ev-pkg { padding: 10px; }
  .ev-pkg__top { flex-direction: column; gap: 4px; }
  .ev-pkg__right { text-align: left; }
  .ev-pkg.is-selected { transform: none; }
  .ev-ticker__label span { display: none; }
  .ev-ticker__viewport { padding-left: 44px; }
  .ev-pay__body { padding: 16px; }
}

.mnav__expand a.is-active { color: var(--primary); background: var(--soft); }

/* Menu desktop có thêm "Chạy sự kiện LQ": tránh bị cắt khi đã đăng nhập (có pill số dư) */
@media (min-width: 992px) { .header .nav__link .icon { display: none; } .header .nav__link { padding: 0 7px; } .header__inner { gap: 12px; } }
@media (min-width: 992px) { .header__right:has(.balance-pill) .circle-btn--hist { display: none; } }

/* =========================================================
   Trang riêng /chay-su-kien (body.evs) — header/footer/nút riêng, tông tối cam–đỏ
   ========================================================= */
body.evs {
  --ev-bg: #0b0c0f; --ev-card: #121418; --ev-card-2: #1a1d24; --ev-line: #1f2937; --ev-line-2: #374151;
  --ev-text: #e5e7eb; --ev-muted: #9ca3af; --ev-dim: #6b7280; --ev-orange: #fb923c; --ev-orange-2: #f97316; --ev-red: #ef4444;
  --ev-grad: linear-gradient(90deg, #dc2626 0%, #ea580c 100%);
  background: var(--ev-bg); color: var(--ev-text); color-scheme: dark;
}
body.evs::before, body.evs.has-custom-bg::before { display: none; }
body.evs ::selection { background: rgba(249, 115, 22, .35); color: #fff; }
body.evs :focus-visible { outline-color: var(--ev-orange); }
.evs-skip { position: absolute; left: -9999px; top: 8px; z-index: 200; padding: 8px 14px; border-radius: 4px; background: var(--ev-orange-2); color: #fff; font-weight: 700; }
.evs-skip:focus { left: 8px; }
.evs .ev-page { flex: 1 0 auto; }

/* Nút chung */
.evs-btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 36px; padding: 0 16px; border-radius: 4px; font-size: 12.5px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; transition: filter .2s, border-color .2s, color .2s; }
.evs-btn .icon { width: 14px; height: 14px; }
.evs-btn--cta { background: linear-gradient(90deg, #b91c1c, #c2410c); color: #fff; box-shadow: 0 0 0 1px rgba(249, 115, 22, .35), 0 8px 20px -10px rgba(234, 88, 12, .9); }
.evs-btn--cta:hover { filter: brightness(1.12); }
.evs-btn--ghost { border: 1px solid var(--ev-line-2); color: var(--ev-muted); }
.evs-btn--ghost:hover { color: #fff; border-color: var(--ev-orange-2); }

/* Header */
.evh { position: sticky; top: 0; z-index: 50; background: rgba(18, 20, 24, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--ev-line); }
.evh::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 1px; background: linear-gradient(90deg, transparent, rgba(249, 115, 22, .6), transparent); pointer-events: none; }
.evh__inner { max-width: 1152px; margin: 0 auto; padding: 0 16px; height: 68px; display: flex; align-items: center; gap: 16px; }
.evh__logo { display: flex; align-items: center; gap: 9px; flex: none; min-width: 0; }
.evh__mark { width: 36px; height: 36px; flex: none; filter: drop-shadow(0 0 8px rgba(249, 115, 22, .55)); }
.evh__name { font-size: 18px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: linear-gradient(90deg, #fed7aa, #fb923c 45%, #ef4444); -webkit-background-clip: text; background-clip: text; color: transparent; text-shadow: 0 0 18px rgba(249, 115, 22, .35); }
.evh__nav { display: none; align-items: center; gap: 4px; margin: 0 auto; }
.evh__nav a { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 4px; border: 1px solid transparent; font-size: 12px; font-weight: 900; letter-spacing: .05em; text-transform: uppercase; color: var(--ev-muted); transition: color .2s, background .2s, border-color .2s; }
.evh__nav a .icon { width: 13px; height: 13px; }
.evh__nav a:hover { color: #fff; }
.evh__nav a.is-active { color: var(--ev-orange); background: rgba(249, 115, 22, .06); border-color: rgba(249, 115, 22, .3); }
.evh__nav a.evh__shop { font-size: 11px; color: var(--ev-dim); }
.evh__nav a.evh__shop:hover { color: var(--ev-orange); }
.evh__right { margin-left: auto; display: flex; align-items: center; gap: 8px; min-width: 0; }
.evh__bal { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 12px; border-radius: 4px; border: 1px solid rgba(249, 115, 22, .35); background: rgba(249, 115, 22, .07); color: var(--ev-orange); font-size: 13px; white-space: nowrap; }
.evh__bal .icon { width: 14px; height: 14px; }
.evh__bal b { font-weight: 900; }
.evh__user { position: relative; }
.evh__userbtn { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 10px; border-radius: 4px; border: 1px solid var(--ev-line-2); color: #fff; font-size: 13px; font-weight: 700; max-width: 180px; }
.evh__userbtn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evh__userbtn .icon { width: 14px; height: 14px; flex: none; color: var(--ev-muted); }
.evh__userbtn:hover { border-color: var(--ev-orange-2); }
.evh__menu { position: absolute; right: 0; top: calc(100% + 8px); min-width: 210px; padding: 6px; border-radius: 6px; border: 1px solid var(--ev-line-2); background: var(--ev-card); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .9); z-index: 60; }
.evh__menu a, .evh__menu button { display: flex; align-items: center; gap: 9px; width: 100%; padding: 10px 12px; border-radius: 4px; font-size: 13px; font-weight: 600; color: #d1d5db; text-align: left; }
.evh__menu a:hover, .evh__menu button:hover { background: rgba(249, 115, 22, .1); color: var(--ev-orange); }
.evh__menu .icon { width: 15px; height: 15px; }
.evh__burger { width: 40px; height: 40px; border-radius: 4px; border: 1px solid var(--ev-line-2); display: grid; place-items: center; color: #fff; flex: none; }
.evh__burger .icon { width: 20px; height: 20px; }
.evh__mnav { border-top: 1px solid var(--ev-line); background: var(--ev-card); padding: 8px 16px 14px; display: flex; flex-direction: column; gap: 2px; }
.evh__mnav[hidden] { display: none; }
.evh__mnav > a { display: flex; align-items: center; gap: 10px; padding: 12px 10px; border-radius: 4px; font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: #d1d5db; }
.evh__mnav > a .icon { width: 16px; height: 16px; color: var(--ev-orange); }
.evh__mnav > a.is-active { color: var(--ev-orange); background: rgba(249, 115, 22, .08); }
.evh__mauth { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--ev-line); }
.evh__muser { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: #d1d5db; flex: 1 1 100%; }
.evh__muser .icon { width: 15px; height: 15px; color: var(--ev-orange); }
.evh__muser b { color: var(--ev-orange); }
@media (min-width: 992px) {
  .evh__nav { display: flex; }
  .evh__burger, .evh__mnav { display: none !important; }
}
@media (max-width: 991.98px) {
  .evh__right .evh__user { display: none; }
}
@media (max-width: 575.98px) {
  .evh__inner { height: 60px; gap: 10px; padding: 0 12px; }
  .evh__name { font-size: 15px; }
  .evh__mark { width: 30px; height: 30px; }
  .evh__right .evs-btn { padding: 0 10px; font-size: 11.5px; }
  .evh__bal { padding: 0 9px; font-size: 12px; }
  .evh__bal .icon { display: none; }
}
@media (max-width: 380px) { .evh__right .evs-btn .icon { display: none; } }

/* Ô tiêu đề trang con (nạp tiền / đơn của tôi) */
.evs .ev-view { display: flex; flex-direction: column; gap: 24px; }
.evs .ev-view[hidden] { display: none; }
.evs-bal { color: #fff; }
.evs-gate { text-align: center; padding: 40px 20px; border-radius: 8px; border: 1px dashed var(--ev-line-2); background: var(--ev-card); }
.evs-gate__ico { width: 56px; height: 56px; margin: 0 auto 12px; border-radius: 50%; display: grid; place-items: center; background: rgba(249, 115, 22, .12); border: 1px solid rgba(249, 115, 22, .4); color: var(--ev-orange); }
.evs-gate__ico .icon { width: 24px; height: 24px; }
.evs-gate h3 { font-size: 17px; font-weight: 900; color: #fff; text-transform: uppercase; letter-spacing: .03em; }
.evs-gate p { margin: 6px auto 0; max-width: 380px; font-size: 13.5px; color: var(--ev-muted); }
.evs-gate__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px; margin-top: 18px; }

/* Nạp tiền */
.evt { display: grid; grid-template-columns: minmax(0, 1fr); gap: 24px; align-items: start; }
@media (min-width: 992px) { .evt__card { max-width: none; } }
.evt__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 6px; background: var(--ev-bg); border: 1px solid var(--ev-line); }
.evt__tabs button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 40px; border-radius: 4px; font-size: 12.5px; font-weight: 900; letter-spacing: .04em; text-transform: uppercase; color: var(--ev-muted); }
.evt__tabs button .icon { width: 15px; height: 15px; }
.evt__tabs button.is-active { background: var(--ev-grad); color: #fff; }
.evt__opts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.evt__opts--amount { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.evt__opts button { min-width: 0; height: 44px; padding: 0 6px; border-radius: 6px; border: 2px solid var(--ev-line-2); font-size: 12px; font-weight: 800; color: #d1d5db; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; transition: border-color .15s, background .15s, color .15s; }
.evt__opts button:hover { border-color: rgba(249, 115, 22, .5); }
.evt__opts button.is-active { border-color: var(--ev-orange-2); background: rgba(249, 115, 22, .1); color: var(--ev-orange); }
.evt__2col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 12px; margin-top: 18px; }
.evt__2col .ev-field + .ev-field { margin-top: 0; }
@media (min-width: 576px) { .evt__2col { grid-template-columns: 1fr 1fr; } }
.evt__receive { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 12px; padding: 10px 12px; border-radius: 6px; border: 1px solid rgba(52, 211, 153, .3); background: rgba(52, 211, 153, .06); font-size: 13px; color: #d1d5db; }
.evt__receive b { color: #34d399; font-size: 16px; font-weight: 900; }
.evt__ok { margin-top: 10px; font-size: 13px; font-weight: 600; color: #34d399; }
.evt__ok:empty { display: none; }
.evt__bank { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@media (min-width: 576px) { .evt__bank { grid-template-columns: 200px minmax(0, 1fr); align-items: start; } }
.evt__qr { background: #fff; padding: 10px; border-radius: 8px; width: 100%; max-width: 220px; margin: 0 auto; }
.evt__qr img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.evt__qrfb { aspect-ratio: 1; display: grid; place-items: center; text-align: center; font-size: 12.5px; color: #4b5563; padding: 8px; }
.evt__rows { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.evt__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.evt__chips button { height: 30px; padding: 0 10px; border-radius: 4px; border: 1px solid var(--ev-line-2); font-size: 12px; font-weight: 700; color: var(--ev-muted); }
.evt__chips button:hover { color: #fff; }
.evt__chips button.is-active { border-color: var(--ev-orange-2); color: var(--ev-orange); background: rgba(249, 115, 22, .1); }
.evt__hist { display: flex; flex-direction: column; gap: 12px; min-width: 0; }

/* Đơn của tôi: bộ lọc */
.evo-filter { display: flex; flex-wrap: wrap; gap: 6px; }
.evo-filter button { height: 32px; padding: 0 12px; border-radius: 99px; border: 1px solid var(--ev-line-2); font-size: 12px; font-weight: 700; color: var(--ev-muted); }
.evo-filter button:hover { color: #fff; }
.evo-filter button.is-active { border-color: var(--ev-orange-2); color: #fff; background: var(--ev-grad); }

/* Restyle phần tử dùng chung (modal, toast, bảng, ô copy) trong trang tối */
.evs .modal__backdrop { background: rgba(0, 0, 0, .75); }
.evs .modal__dialog { background: var(--ev-card); border: 1px solid var(--ev-line-2); color: var(--ev-text); box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .9), 0 0 0 1px rgba(249, 115, 22, .12); border-radius: 10px 10px 0 0; }
@media (min-width: 640px) { .evs .modal__dialog { border-radius: 10px; } }
.evs .modal__head { border-bottom: 1px solid var(--ev-line); padding-bottom: 14px; }
.evs .modal__title { color: #fff; text-transform: uppercase; letter-spacing: .04em; font-size: 16px; font-weight: 900; }
.evs .modal__x { background: transparent; border-color: var(--ev-line-2); color: var(--ev-muted); border-radius: 4px; }
.evs .modal__x:hover { color: #fff; }
.evs .modal .rich { color: #d1d5db; }
.evs .modal .rich a { color: var(--ev-orange); }
.evs .modal .rich b, .evs .modal .rich strong { color: #fff; }
.evs .modal__foot .btn { border-radius: 4px; font-weight: 900; text-transform: uppercase; letter-spacing: .03em; font-size: 12.5px; }
.evs .modal__foot .btn--primary { background: var(--ev-grad); color: #fff; box-shadow: none; }
.evs .modal__foot .btn--ghost { background: transparent; border-color: var(--ev-line-2); color: var(--ev-muted); }
.evs .modal__foot .btn--ghost:hover { color: #fff; border-color: var(--ev-orange-2); }
.evs .ledger { background: var(--ev-card-2); border-color: var(--ev-line); }
.evs .ledger > div + div { border-top-color: var(--ev-line); }
.evs .ledger span { color: var(--ev-muted); }
.evs .ledger b { color: #fff; }
.evs .ledger .text-gold { background: none; -webkit-text-fill-color: currentColor; color: var(--ev-orange); }
.evs .ledger .is-total { background: rgba(239, 68, 68, .06); }
.evs .ledger .pos { color: #34d399; }
.evs .toast { background: var(--ev-card); border-color: var(--ev-line-2); color: var(--ev-text); box-shadow: 0 20px 40px -16px rgba(0, 0, 0, .9); }
.evs .toast--info { border-left-color: var(--ev-orange-2); }
.evs .toast--info .toast__icon { background: var(--ev-orange-2); }
.evs-auth__tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 4px; border-radius: 6px; background: var(--ev-bg); border: 1px solid var(--ev-line); }
.evs-auth__tabs button { height: 38px; border-radius: 4px; font-size: 12.5px; font-weight: 900; text-transform: uppercase; letter-spacing: .04em; color: var(--ev-muted); }
.evs-auth__tabs button.is-active { background: var(--ev-grad); color: #fff; }
.evs-auth__hint { margin: 10px 0 14px; font-size: 12.5px; color: var(--ev-dim); }
.evs-auth__form .ev-buy { margin-top: 16px; }
.evs-check { display: flex; gap: 9px; align-items: flex-start; margin-top: 12px; font-size: 13px; color: var(--ev-muted); cursor: pointer; }
.evs-check input { width: 16px; height: 16px; margin-top: 2px; accent-color: var(--ev-orange-2); flex: none; }
.evs .cred { background: var(--ev-card-2); border-color: var(--ev-line); }
.evs .cred__label { color: var(--ev-dim); }
.evs .cred__value { color: #fff; }
.evs .cred--hl { border-color: rgba(249, 115, 22, .5); background: rgba(249, 115, 22, .07); }
.evs .cred--hl .cred__value { color: var(--ev-orange); }
.evs .icon-btn { background: transparent; border-color: var(--ev-line-2); color: var(--ev-muted); }
.evs .icon-btn:hover { color: var(--ev-orange); border-color: var(--ev-orange-2); background: transparent; }
.evs .table-wrap { background: var(--ev-card); border-color: var(--ev-line); box-shadow: none; }
.evs .table th { background: var(--ev-bg); color: var(--ev-dim); border-bottom-color: var(--ev-line); }
.evs .table td { border-bottom-color: var(--ev-line); color: #d1d5db; }
.evs .table tbody tr:hover { background: rgba(249, 115, 22, .04); }
.evs .table .muted { color: var(--ev-muted); }
.evs .table--stack tr { border-bottom-color: var(--ev-line); }
.evs .status--pending { background: rgba(250, 204, 21, .12); color: #facc15; }
.evs .status--success { background: rgba(52, 211, 153, .12); color: #34d399; }
.evs .status--failed { background: rgba(239, 68, 68, .12); color: #f87171; }
.evs .ev-page .ev-alert b { color: #fff; }

/* Footer riêng */
.evf { flex: none; margin-top: 8px; border-top: 1px solid var(--ev-line); background: #0f0f13; }
.evf__inner { max-width: 1152px; margin: 0 auto; padding: 32px 16px 24px; }
.evf__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 768px) { .evf__grid { grid-template-columns: 1.2fr 1fr 1fr; } }
.evf__brand { font-size: 18px; font-weight: 900; letter-spacing: .06em; text-transform: uppercase; background: linear-gradient(90deg, #fed7aa, #fb923c 45%, #ef4444); -webkit-background-clip: text; background-clip: text; color: transparent; }
.evf__about { margin-top: 10px; font-size: 13.5px; line-height: 1.75; color: var(--ev-muted); }
.evf h4 { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; margin-bottom: 14px; }
.evf__list { display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; color: var(--ev-muted); }
.evf__list li { display: flex; align-items: center; gap: 9px; min-width: 0; overflow-wrap: anywhere; }
.evf__list .icon { width: 15px; height: 15px; color: var(--ev-orange); flex: none; }
.evf__list a:hover { color: var(--ev-orange); }
.evf__shop { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 12.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--ev-orange); }
.evf__shop .icon { width: 14px; height: 14px; }
.evf__copy { margin-top: 26px; padding-top: 16px; border-top: 1px solid var(--ev-line); text-align: center; font-size: 12.5px; color: var(--ev-dim); }

/* Nút nổi riêng */
.evs-fab { position: fixed; right: 16px; bottom: 20px; z-index: 70; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.evs-fab__btn { width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #f97316, #dc2626); box-shadow: 0 12px 26px -10px rgba(234, 88, 12, .9); transition: transform .2s, filter .2s; }
.evs-fab__btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.evs-fab__btn .icon { width: 20px; height: 20px; }
.evs-fab__top { width: 42px; height: 42px; background: var(--ev-card); border: 1px solid rgba(249, 115, 22, .5); color: var(--ev-orange); box-shadow: 0 10px 20px -10px rgba(0, 0, 0, .8); }
.evs-fab__main { width: 54px; height: 54px; animation: evs-ring 2.4s ease-out infinite; }
@keyframes evs-ring { 0% { box-shadow: 0 0 0 0 rgba(249, 115, 22, .55), 0 12px 26px -10px rgba(234, 88, 12, .9); } 70% { box-shadow: 0 0 0 14px rgba(249, 115, 22, 0), 0 12px 26px -10px rgba(234, 88, 12, .9); } 100% { box-shadow: 0 0 0 0 rgba(249, 115, 22, 0), 0 12px 26px -10px rgba(234, 88, 12, .9); } }
.evs-fab__support { position: relative; display: flex; flex-direction: column; align-items: flex-end; gap: 8px; }
.evs-fab__support[hidden], .evs-fab__menu[hidden], .evs-fab__top[hidden] { display: none; }
.evs-fab__menu { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }
.evs-fab__menu a { display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 99px; background: var(--ev-card); border: 1px solid var(--ev-line-2); color: #fff; font-size: 13px; font-weight: 700; white-space: nowrap; box-shadow: 0 12px 24px -12px rgba(0, 0, 0, .9); }
.evs-fab__menu a:hover { border-color: var(--ev-orange-2); color: var(--ev-orange); }
.evs-fab__menu .icon { width: 15px; height: 15px; color: var(--ev-orange); }
@media (prefers-reduced-motion: reduce) { .evs-fab__main { animation: none; } }

/* Trang riêng không có thanh điều hướng dưới của shop */
@media (max-width: 991.98px) {
  .evs .ev-mbar { bottom: 0; padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px)); }
  .evs .ev-page { padding-bottom: 32px; }
  body.evs:has(.ev-mbar:not(.is-hidden)) .evs-fab { bottom: 84px; }
}

/* ===== Nút nổi bật "Chạy sự kiện LQ" trên header shop ===== */
.btn-event {
  position: relative; display: none; align-items: center; gap: 7px; height: 38px; padding: 0 14px 0 12px;
  border-radius: 12px; font-weight: 800; font-size: 14px; letter-spacing: .01em; white-space: nowrap; color: #fff;
  background: linear-gradient(135deg, #1a0f0a, #2b1208); border: 1px solid #f97316;
  box-shadow: 0 0 0 1px rgba(249, 115, 22, .25), 0 8px 22px -8px rgba(234, 88, 12, .9), inset 0 0 18px rgba(249, 115, 22, .25);
  overflow: hidden; isolation: isolate; transition: transform .2s var(--ease), box-shadow .2s;
  animation: btnEventGlow 2.4s ease-in-out infinite;
}
.btn-event .icon { width: 17px; height: 17px; color: #fb923c; flex: none; }
.btn-event span { background: linear-gradient(90deg, #fff7ed, #fdba74); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn-event em {
  font-style: normal; font-size: 9.5px; font-weight: 900; line-height: 1; padding: 3px 5px; border-radius: 5px; color: #fff;
  background: linear-gradient(135deg, #ef4444, #f97316); box-shadow: 0 0 10px rgba(239, 68, 68, .7);
}
.btn-event::after { /* ánh sáng quét */
  content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(110deg, transparent 30%, rgba(255, 180, 120, .35) 50%, transparent 70%);
  transform: translateX(-120%); animation: btnEventShine 3.2s ease-in-out infinite;
}
.btn-event:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(249, 115, 22, .45), 0 12px 28px -8px rgba(234, 88, 12, 1), inset 0 0 22px rgba(249, 115, 22, .35); }
@keyframes btnEventGlow { 0%, 100% { border-color: #f97316; } 50% { border-color: #fdba74; } }
@keyframes btnEventShine { 0%, 55% { transform: translateX(-120%); } 85%, 100% { transform: translateX(120%); } }
@media (min-width: 576px) { .btn-event { display: inline-flex; } }
@media (min-width: 576px) and (max-width: 767.98px) { .btn-event span { display: none; } .btn-event { padding: 0 10px; } }

/* Dải băng mobile dưới header */
.event-strip {
  display: flex; align-items: center; gap: 8px; padding: 8px 14px; font-size: 13px; color: #ffedd5; text-decoration: none;
  background: linear-gradient(90deg, #160c07, #2a1208 55%, #160c07); border-bottom: 1px solid rgba(249, 115, 22, .55);
  position: relative; overflow: hidden;
}
.event-strip .icon { width: 16px; height: 16px; color: #fb923c; flex: none; }
.event-strip span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.event-strip b { color: #fdba74; }
.event-strip em { font-style: normal; font-weight: 800; font-size: 12px; color: #fff; padding: 4px 9px; border-radius: 8px; flex: none; background: linear-gradient(135deg, #dc2626, #ea580c); }
@media (min-width: 576px) { .event-strip { display: none; } }
@media (prefers-reduced-motion: reduce) { .btn-event, .btn-event::after { animation: none; } }
.btn-event, .header__right .btn-topup { flex: none; }
/* 1200–1439px: nhường chỗ cho menu + nút sự kiện — số dư vẫn xem trong menu tài khoản */
@media (min-width: 1200px) and (max-width: 1439.98px) { .header__right .balance-pill { display: none !important; } }
/* Ô số dư cạnh header chỉ hiện khi màn rất rộng (≥1600px); số dư luôn có trong menu tài khoản */
@media (min-width: 1200px) and (max-width: 1599.98px) { .header__right .balance-pill { display: none !important; } }
/* Tablet: hiện chữ, bỏ nhãn HOT cho gọn */
@media (min-width: 576px) and (max-width: 767.98px) { .btn-event span { display: inline; } .btn-event em { display: none; } .btn-event { padding: 0 11px; font-size: 13px; } }
/* 1200–1299px: thu gọn khoảng cách menu */
@media (min-width: 1200px) and (max-width: 1299.98px) { .nav__link { padding: 0 7px; font-size: 12.5px; } .btn-event em { display: none; } }
/* Ô số dư: header giới hạn 1280px nên luôn ẩn từ 1200px (số dư có trong menu tài khoản) */
@media (min-width: 1200px) { .header__right .balance-pill { display: none !important; } }
.btn-event .be-short { display: none; }
@media (min-width: 576px) and (max-width: 767.98px) {
  .btn-event .be-full { display: none; }
  .btn-event .be-short { display: inline; }
}
@media (min-width: 576px) and (max-width: 767.98px) {
  .header .brand__name { font-size: 15px; }
  .header .brand__logo { width: 36px; height: 36px; }
  .header__right { gap: 5px; }
  .header__right .btn-topup { padding: 0 10px; font-size: 14px; }
}
/* Điện thoại: tên shop dài (TAIKHOANGAME.COM) — thu nhỏ để hiện đủ */
@media (max-width: 575.98px) {
  .header .brand__name { font-size: 13px; letter-spacing: -.02em; }
  .header .brand__name small { font-size: 8.5px; }
  .header .brand { gap: 6px; }
}
@media (max-width: 389.98px) { .header .brand__name { font-size: 12px; } }

/* ===== Logo chữ kiểu C: taikhoan + game + .com ===== */
.brand__logo { filter: drop-shadow(0 6px 12px rgba(0, 196, 140, .35)); }
.brand__name {
  background: none !important; -webkit-background-clip: border-box !important; background-clip: border-box !important;
  color: var(--text) !important; -webkit-text-fill-color: currentColor;
  font-weight: 800; letter-spacing: -.03em; line-height: 1.05;
}
.brand__name .bm-a { color: #101a33; }
.brand__name .bm-b { color: #00894a; }
.brand__name .bm-c { color: #8a94b0; font-weight: 500; }
.brand__name small { color: var(--muted) !important; -webkit-text-fill-color: currentColor; letter-spacing: .14em; font-weight: 800; margin-top: 3px; }
@media (min-width: 576px) and (max-width: 767.98px) { .header .brand__name { font-size: 14px; } .header .brand__name small { font-size: 8px; letter-spacing: .1em; } }
@media (min-width: 576px) and (max-width: 659.98px) { .header .brand__name { font-size: 12.5px; } .header .brand__logo { width: 32px; height: 32px; } }
