/* ===== Shared (admin + shop) ===== */
:root { --brand: #3b2bb8; --brand2: #6f42c1; }
.price { color: #d63384; font-weight: 700; }
.old-price { text-decoration: line-through; color: #999; font-size: .85em; }
.delivered { white-space: pre-wrap; font-family: Consolas, monospace; background: #0b0d14; color: #9ef09e; padding: .75rem; border-radius: .6rem; word-break: break-all; border: 1px solid rgba(158,240,158,.15); }
.stat-card .bi { font-size: 1.8rem; }
.table td, .table th { vertical-align: middle; }
.text-mono { font-family: Consolas, monospace; }
.steps { counter-reset: step; list-style: none; padding-left: 0; }
.steps li { counter-increment: step; position: relative; padding: .7rem .8rem .7rem 3.2rem; margin-bottom: .55rem; background: #fff; border-radius: .7rem; }
.steps li::before { content: counter(step); position: absolute; left: .8rem; top: .6rem; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--brand2); color: #fff; text-align: center; line-height: 1.8rem; font-weight: 700; }
.feature-list li { padding: .3rem 0; }

/* Admin */
body.admin { background: #f5f6fb; }
.admin-side { width: 240px; flex: 0 0 240px; min-height: calc(100vh - 56px); }
.admin-side .list-group-item { background: transparent; color: #ddd; border-color: #333; }
.admin-side .list-group-item.active, .admin-side .list-group-item:hover { background: #2d2d3a; color: #fff; }
.admin-main { min-width: 0; flex: 1 1 0; }
.gallery-edit-img { background: #f3f4f8; border: 1px solid #dee2e6; border-radius: .5rem; min-height: 130px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.gallery-edit-img img { max-width: 100%; max-height: 240px; object-fit: contain; }
@media (min-width: 992px) { .admin-side { position: sticky; top: 56px; height: calc(100vh - 56px); overflow-y: auto; } }


/* ===== Shop theme =====
   Dark (default) and light share every rule below; only the tokens change.
   <html data-theme="dark|light" data-bs-theme="..."> is set before paint by the inline script in _Layout. */
.site {
    --bg: #070912; --bg-2: #0b0f1d;
    --nav-bg: rgba(8, 11, 22, .8); --side-bg: rgba(10, 13, 26, .55); --topbar-bg: rgba(5, 7, 14, .88);
    --surface: rgba(20, 25, 45, .82); --surface-2: rgba(255, 255, 255, .04); --surface-3: rgba(255, 255, 255, .075);
    --surface-strong: rgba(22, 27, 49, .97); --input-bg: rgba(8, 11, 22, .65); --input-bg-focus: rgba(8, 11, 22, .9);
    --line: rgba(148, 163, 255, .14); --line-strong: rgba(148, 163, 255, .27);
    --text: #e6e9fb; --text-2: #c9cff0; --text-strong: #fff; --muted: #959ec4; --placeholder: #6b7399;
    --accent: #8b5cf6; --accent-text: #c4b5fd; --link: #93c5fd; --link-hover: #c4b5fd; --icon: #a5b4fc;
    --hover-bg: rgba(139, 92, 246, .13); --active-bg: rgba(139, 92, 246, .2); --active-line: rgba(139, 92, 246, .4);
    --shadow: 0 10px 30px rgba(0, 0, 0, .28); --shadow-lg: 0 24px 60px rgba(0, 0, 0, .45); --glow: 0 8px 24px rgba(99, 102, 241, .34);
    --ok: #6ee7b7; --ok-bg: rgba(16, 185, 129, .12); --ok-line: rgba(52, 211, 153, .35);
    --warn: #fde68a; --warn-bg: rgba(245, 158, 11, .12); --warn-line: rgba(251, 191, 36, .35);
    --bad: #fecaca; --bad-bg: rgba(239, 68, 68, .12); --bad-line: rgba(248, 113, 113, .38); --red: #f87171;
    --info: #bfdbfe; --info-bg: rgba(59, 130, 246, .12); --info-line: rgba(96, 165, 250, .35);
    --gold: #fbbf24; --gold-text: #fde68a;
    --violet: #8b5cf6; --blue: #3b82f6; --cyan: #22d3ee; --pink: #f472b6; --green: #34d399;
    --grad: linear-gradient(120deg, #8b5cf6 0%, #3b82f6 50%, #22d3ee 100%);
    --grad-warm: linear-gradient(120deg, #f472b6 0%, #fb923c 55%, #fbbf24 100%);
    --grad-price: var(--grad-warm);
    --hero-bg: radial-gradient(700px 300px at 85% 20%, rgba(34, 211, 238, .18), transparent 60%), radial-gradient(600px 320px at 10% 100%, rgba(244, 114, 182, .16), transparent 60%), linear-gradient(135deg, rgba(76, 29, 149, .55), rgba(17, 24, 59, .82));
    --orb-core: radial-gradient(circle at 35% 30%, #2a2f55, #0b0e1d 70%);
    --code-bg: #0b0d14;
    --radius: 1rem; --radius-sm: .7rem;
    --bs-body-bg: var(--bg); --bs-body-color: var(--text); --bs-secondary-color: var(--muted); --bs-emphasis-color: var(--text-strong);
    --bs-heading-color: var(--text-strong); --bs-border-color: var(--line); --bs-border-color-translucent: var(--line);
    --bs-link-color: var(--link); --bs-link-hover-color: var(--link-hover);
    --bs-link-color-rgb: 147, 197, 253; --bs-link-hover-color-rgb: 196, 181, 253;
    --bs-card-bg: var(--surface); --bs-tertiary-bg: var(--surface-2); --bs-secondary-bg: var(--surface-3);
    font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", sans-serif;
    background: var(--bg); color: var(--text); min-height: 100vh; position: relative; overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
}
html[data-theme="light"] .site {
    --bg: #f3f5fb; --bg-2: #fff;
    --nav-bg: rgba(255, 255, 255, .86); --side-bg: #fff; --topbar-bg: #eceff7;
    --surface: #fff; --surface-2: #f5f6fb; --surface-3: #eceff7;
    --surface-strong: #fff; --input-bg: #fff; --input-bg-focus: #fff;
    --line: #e3e6ef; --line-strong: #d0d6e5;
    --text: #1c2236; --text-2: #3a4159; --text-strong: #0e1325; --muted: #66708a; --placeholder: #9aa1b5;
    --accent-text: #6d28d9; --link: #4f46e5; --link-hover: #6d28d9; --icon: #6d5ce7;
    --hover-bg: rgba(109, 40, 217, .06); --active-bg: rgba(109, 40, 217, .09); --active-line: rgba(109, 40, 217, .3);
    --shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 8px 24px rgba(16, 24, 40, .06); --shadow-lg: 0 18px 50px rgba(30, 27, 75, .13); --glow: 0 6px 18px rgba(99, 102, 241, .28);
    --ok: #047857; --ok-bg: #ecfdf5; --ok-line: #a7f3d0;
    --warn: #92400e; --warn-bg: #fffbeb; --warn-line: #fcd34d;
    --bad: #b91c1c; --bad-bg: #fef2f2; --bad-line: #fecaca; --red: #dc2626;
    --info: #1d4ed8; --info-bg: #eff6ff; --info-line: #bfdbfe;
    --gold: #f59e0b; --gold-text: #b45309;
    --grad-price: linear-gradient(120deg, #db2777 0%, #ea580c 100%);
    --hero-bg: radial-gradient(700px 300px at 88% 10%, rgba(34, 211, 238, .2), transparent 60%), radial-gradient(600px 320px at 5% 100%, rgba(244, 114, 182, .16), transparent 60%), linear-gradient(135deg, #ede9fe 0%, #e0e7ff 55%, #ecfeff 100%);
    --orb-core: radial-gradient(circle at 35% 30%, #fff, #eef0ff 70%);
    --bs-link-color-rgb: 79, 70, 229; --bs-link-hover-color-rgb: 109, 40, 217;
}
.site ::selection { background: rgba(139, 92, 246, .4); }
.site a { text-underline-offset: .18em; }

/* Animated aurora background */
.site .aurora { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; background:
    radial-gradient(1200px 600px at 10% -10%, rgba(139,92,246,.18), transparent 60%),
    radial-gradient(900px 500px at 110% 10%, rgba(34,211,238,.12), transparent 60%),
    linear-gradient(180deg, #070912 0%, #090c18 100%); }
.site .aurora span { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .42; }
.site .aurora span:nth-child(1) { width: 520px; height: 520px; background: #6d28d9; top: -140px; left: -120px; }
.site .aurora span:nth-child(2) { width: 460px; height: 460px; background: #0891b2; top: 30%; right: -160px; opacity: .3; }
.site .aurora span:nth-child(3) { width: 380px; height: 380px; background: #db2777; bottom: -160px; left: 30%; opacity: .2; }
.site .aurora { contain: strict; transform: translateZ(0); }
.site .aurora::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px); background-size: 28px 28px; mask-image: linear-gradient(180deg, rgba(0,0,0,.7), transparent 70%); }
html[data-theme="light"] .site .aurora { background: radial-gradient(1100px 520px at 0% -10%, rgba(139,92,246,.1), transparent 60%), radial-gradient(900px 500px at 110% 0%, rgba(34,211,238,.1), transparent 60%), linear-gradient(180deg, #f6f7fc 0%, #f1f3fa 100%); }
html[data-theme="light"] .site .aurora span { opacity: .1; }
html[data-theme="light"] .site .aurora::after { background-image: radial-gradient(rgba(30,27,75,.06) 1px, transparent 1px); }
@keyframes drift { 0% { transform: translate(0,0) scale(1); } 50% { transform: translate(60px,40px) scale(1.12); } 100% { transform: translate(-40px,80px) scale(.95); } }
@media (prefers-reduced-motion: reduce) { .site .aurora span, .site .shine, .site .hero-title .grad-text, .site .float, .contact-toggle { animation: none !important; } }

/* Typography */
.site h1, .site h2, .site h3, .site h4, .site h5, .site h6 { color: var(--text-strong); letter-spacing: -.015em; }
.site .text-secondary { color: var(--muted) !important; }
.site .text-light { color: var(--text-strong) !important; }
.site .text-body-emphasis { color: var(--text-strong) !important; }
.site .grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site .grad-warm { background: var(--grad-warm); -webkit-background-clip: text; background-clip: text; color: transparent; }
.site .section-title { display: flex; align-items: center; gap: .65rem; font-weight: 800; font-size: 1.3rem; margin: 0 0 1.1rem; }
.site .section-title .ico { width: 2.2rem; height: 2.2rem; border-radius: .7rem; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.05rem; box-shadow: var(--glow); flex: 0 0 auto; }
.site .section-title small { font-weight: 500; font-size: .85rem; color: var(--muted); margin-left: auto; }
.site .section-title small a { text-decoration: none; }

/* Top bar, navbar, dropdowns */
.site .announce { background: var(--grad-warm); color: #1a1205; font-weight: 600; }
.site .topbar { font-size: .8rem; color: var(--muted); background: var(--topbar-bg); border-bottom: 1px solid var(--line); padding: .2rem 0; position: relative; z-index: 1031; }
.site .topbar-btn { background: none; border: 1px solid transparent; color: var(--text-2); border-radius: .5rem; padding: .15rem .55rem; font-size: .8rem; }
.site .topbar-btn:hover, .site .topbar-btn[aria-expanded="true"] { border-color: var(--line-strong); color: var(--text-strong); background: var(--surface-2); }
.site .topbar .dropdown-menu { min-width: 9rem; font-size: .88rem; }
.site .nav-glass { background: var(--nav-bg); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-bottom: 1px solid var(--line); }
.site .navbar-brand { font-weight: 800; letter-spacing: -.02em; display: flex; align-items: center; gap: .5rem; color: var(--text-strong); }
.site .brand-mark { width: 2.1rem; height: 2.1rem; border-radius: .7rem; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: 0 0 22px rgba(139,92,246,.5); }
.site .nav-glass .nav-link { color: var(--text-2); border-radius: .6rem; padding: .45rem .6rem !important; font-weight: 500; white-space: nowrap; font-size: .93rem; }
.site .nav-glass .nav-link:hover, .site .nav-glass .nav-link.show { color: var(--text-strong); background: var(--hover-bg); }
.site .nav-glass .btn { white-space: nowrap; }
.site .dropdown-menu { --bs-dropdown-link-color: var(--text-2); background: var(--surface-strong); border: 1px solid var(--line-strong); border-radius: .9rem; box-shadow: var(--shadow-lg); padding: .4rem; }
.site .dropdown-item { border-radius: .55rem; color: var(--text-2); padding: .45rem .7rem; }
.site .dropdown-item .bi { color: var(--icon); width: 1.2rem; display: inline-block; }
.site .dropdown-item:hover, .site .dropdown-item:focus { background: var(--hover-bg); color: var(--text-strong); }
.site .dropdown-item.text-danger, .site .dropdown-item.text-danger .bi { color: var(--red) !important; }
.site .dropdown-divider { border-color: var(--line); }
.site .search-pill { position: relative; }
.site .search-pill .bi { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.site .search-pill input { padding-left: 2.25rem; padding-right: 2.2rem; border-radius: 999px; min-width: 190px; background-color: var(--surface-2); }
.site .search-pill kbd { position: absolute; right: .6rem; top: 50%; transform: translateY(-50%); font-size: .7rem; padding: .05rem .4rem; border-radius: .35rem; background: var(--surface-3); color: var(--muted); border: 1px solid var(--line); box-shadow: none; }
.site .search-pill input:focus ~ kbd { display: none; }
.site .wallet-chip { background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); border-radius: 999px; padding: .1rem .55rem; font-size: .78rem; font-weight: 700; }
.site .cart-dot { position: absolute; top: .1rem; right: .05rem; min-width: 1.15rem; height: 1.15rem; border-radius: 999px; background: var(--grad-warm); color: #1a1205; font-size: .7rem; font-weight: 800; display: grid; place-items: center; padding: 0 .25rem; }
.site .theme-toggle { border: 0; background: none; }
.site .theme-toggle .bi { font-size: 1.15rem; }
.site .theme-toggle .ico-sun { color: #fbbf24; }
.site .theme-toggle .ico-moon { color: #6d5ce7; display: none; }
html[data-theme="light"] .site .theme-toggle .ico-sun { display: none; }
html[data-theme="light"] .site .theme-toggle .ico-moon { display: inline-block; }

/* Buttons */
.site .btn { border-radius: .75rem; font-weight: 600; transition: transform .15s, box-shadow .2s, filter .2s, background .2s, border-color .2s, color .2s; }
.site .btn-glow, .site .btn-danger, .site .btn-primary { background: var(--grad); border: 0; color: #fff; box-shadow: var(--glow); position: relative; overflow: hidden; }
.site .btn-glow:hover, .site .btn-danger:hover, .site .btn-primary:hover { color: #fff; filter: brightness(1.1); box-shadow: 0 10px 30px rgba(99,102,241,.5); transform: translateY(-1px); }
.site .btn-glow:active, .site .btn-primary:active { transform: none; filter: brightness(.95); }
.site .btn-warm, .site .btn-warning { background: var(--grad-warm); border: 0; color: #1a1205; box-shadow: 0 8px 24px rgba(251,146,60,.3); }
.site .btn-warm:hover, .site .btn-warning:hover { color: #1a1205; filter: brightness(1.06); transform: translateY(-1px); }
.site .btn-ghost, .site .btn-outline-primary, .site .btn-outline-secondary, .site .btn-outline-light { background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text-2); }
.site .btn-ghost:hover, .site .btn-outline-primary:hover, .site .btn-outline-secondary:hover, .site .btn-outline-light:hover { background: var(--active-bg); border-color: var(--active-line); color: var(--text-strong); }
.site .btn-secondary:disabled, .site .btn-secondary.disabled { background: var(--surface-3); border-color: var(--line); color: var(--muted); }
.site .btn-link { color: var(--link); }
.site .shine::after { content: ""; position: absolute; top: 0; left: 0; width: 40%; height: 100%; background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent); transform: translateX(-150%) skewX(-20deg); animation: shine 3.8s ease-in-out infinite; will-change: transform; pointer-events: none; }
@keyframes shine { 0%, 60% { transform: translateX(-150%) skewX(-20deg); } 100% { transform: translateX(330%) skewX(-20deg); } }

/* Surfaces */
.site .card, .site .glass { --bs-card-cap-bg: var(--surface-2); --bs-card-border-color: var(--line); background: var(--surface); border: 1px solid var(--line) !important; border-radius: var(--radius); color: var(--text); }
.site .card.shadow-sm, .site .shadow-sm { box-shadow: var(--shadow) !important; }
.site .list-group { --bs-list-group-bg: var(--surface); --bs-list-group-color: var(--text-2); --bs-list-group-border-color: var(--line);
    --bs-list-group-action-color: var(--text-2); --bs-list-group-action-hover-color: var(--text-strong); --bs-list-group-action-hover-bg: var(--hover-bg);
    --bs-list-group-action-active-bg: var(--active-bg); --bs-list-group-action-active-color: var(--text-strong);
    --bs-list-group-active-bg: var(--active-bg); --bs-list-group-active-color: var(--accent-text); --bs-list-group-active-border-color: var(--line); border-radius: var(--radius); }
.site .card .list-group-item { background: transparent; }
.site .list-group-item .bi { color: var(--icon); margin-right: .2rem; }
.site .list-group-item.active { font-weight: 600; box-shadow: inset 3px 0 0 var(--accent); }
.site .list-group-item.active .bi { color: var(--accent-text); }
.site .form-control, .site .form-select { background-color: var(--input-bg); border: 1px solid var(--line-strong); color: var(--text-strong); border-radius: .75rem; }
.site .form-control:focus, .site .form-select:focus { background-color: var(--input-bg-focus); border-color: #8b5cf6; box-shadow: 0 0 0 .22rem rgba(139,92,246,.22); color: var(--text-strong); }
.site .form-control::placeholder { color: var(--placeholder); }
.site .form-control:disabled, .site .form-control[readonly] { background-color: var(--surface-2); }
.site .form-text { color: var(--muted); }
.site .input-group-text { background: var(--surface-3); border-color: var(--line-strong); color: var(--text-2); border-radius: .75rem; }
.site .form-check-input { background-color: var(--input-bg); border-color: var(--line-strong); }
.site .form-check-input:checked { background-color: var(--accent); border-color: var(--accent); }
.site .table { --bs-table-bg: transparent; --bs-table-color: var(--text); --bs-table-border-color: var(--line); --bs-table-striped-bg: var(--surface-2); --bs-table-striped-color: var(--text); --bs-table-hover-bg: var(--hover-bg); --bs-table-hover-color: var(--text-strong); }
.site .table > thead th { color: var(--muted); font-weight: 600; font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; border-bottom-color: var(--line-strong); }
.site .alert { border-radius: .9rem; border: 1px solid; }
.site .alert-success { background: var(--ok-bg); border-color: var(--ok-line); color: var(--ok); }
.site .alert-danger { background: var(--bad-bg); border-color: var(--bad-line); color: var(--bad); }
.site .alert-warning { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.site .alert-info, .site .alert-secondary { background: var(--info-bg); border-color: var(--info-line); color: var(--info); }
.site .alert a { color: inherit; font-weight: 600; }
.site .breadcrumb { --bs-breadcrumb-divider-color: var(--muted); --bs-breadcrumb-item-active-color: var(--muted); font-size: .88rem; }
.site .breadcrumb a { text-decoration: none; }
.site .badge.bg-light { background: var(--surface-3) !important; color: var(--text-2) !important; border: 1px solid var(--line); }
.site .nav-tabs { border: 0; gap: .35rem; }
.site .nav-tabs .nav-link { border: 1px solid var(--line); border-radius: .75rem; color: var(--muted); background: var(--surface-2); }
.site .nav-tabs .nav-link:hover { color: var(--text-strong); border-color: var(--line-strong); }
.site .nav-tabs .nav-link.active { background: var(--grad); color: #fff; border-color: transparent; }
.site .tab-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.site .steps li { background: var(--surface-2); border: 1px solid var(--line); }
.site .steps li::before { background: var(--grad); }
.site .price { background: var(--grad-price); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 800; }
.site .old-price { color: var(--placeholder); }
.site hr { border-color: var(--line); opacity: 1; }
.site .border, .site .border-bottom, .site .border-top { border-color: var(--line) !important; }
.site .pagination { --bs-pagination-bg: var(--surface); --bs-pagination-border-color: var(--line); --bs-pagination-color: var(--text-2); --bs-pagination-hover-bg: var(--hover-bg); --bs-pagination-hover-color: var(--text-strong); --bs-pagination-hover-border-color: var(--line-strong); --bs-pagination-active-bg: #6d28d9; --bs-pagination-active-border-color: #6d28d9; --bs-pagination-disabled-bg: var(--surface-2); --bs-pagination-disabled-color: var(--muted); --bs-pagination-disabled-border-color: var(--line); }
.site .progress { background: var(--surface-3); }
.site .delivered { background: var(--code-bg); }
.site .stat-card .card-body { position: relative; }
.site .stat-card .bi { font-size: 1.5rem; width: 2.6rem; height: 2.6rem; border-radius: .8rem; display: grid; place-items: center; background: var(--surface-3); margin-bottom: .5rem; }

/* Hero */
.site .hero { position: relative; border-radius: 1.5rem; padding: clamp(1.5rem, 3.5vw, 3rem); overflow: hidden; border: 1px solid var(--line-strong); background: var(--hero-bg); box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255,255,255,.08); }
.site .hero::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: .5; pointer-events: none; }
.site .hero-kicker { display: inline-flex; align-items: center; gap: .45rem; padding: .3rem .8rem; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--line-strong); font-size: .82rem; color: var(--text-2); }
html[data-theme="light"] .site .hero-kicker { background: rgba(255,255,255,.75); }
.site .hero-kicker .dot { width: .5rem; height: .5rem; border-radius: 50%; background: var(--green); box-shadow: 0 0 10px var(--green); }
.site .hero-title { font-size: clamp(1.9rem, 1.1rem + 2.1vw, 2.85rem); font-weight: 800; line-height: 1.12; margin: 1rem 0 .8rem; text-wrap: balance; }
.site .hero-title .grad-text { display: inline-block; text-wrap: balance; }
@keyframes flow { to { background-position: 200% center; } }
.site .hero-lead { color: var(--text-2); font-size: 1.05rem; max-width: 38rem; }
.site .hero-stats { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1.5rem; }
.site .hero-stats div { padding: .5rem .85rem; border-radius: .85rem; background: var(--surface-2); border: 1px solid var(--line); font-size: .8rem; color: var(--muted); min-width: 5.5rem; }
html[data-theme="light"] .site .hero-stats div { background: rgba(255,255,255,.7); }
.site .hero-stats b { display: block; color: var(--text-strong); font-size: 1.1rem; }
.site .hero-search { position: relative; max-width: 30rem; margin-top: 1.1rem; }
.site .hero-search .bi { position: absolute; left: 1rem; top: 50%; transform: translateY(-50%); color: var(--muted); }
.site .hero-search input { height: 3rem; padding-left: 2.6rem; padding-right: 6.2rem; border-radius: 999px; }
.site .hero-search button { position: absolute; right: .3rem; top: .3rem; bottom: .3rem; border-radius: 999px; padding: 0 1.1rem; }
.site .hero-art { position: relative; height: 290px; }
.site .float { position: absolute; border-radius: 1.1rem; padding: .8rem .95rem; background: var(--surface-strong); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); animation: bob 6s ease-in-out infinite; will-change: transform; display: flex; z-index: 2; align-items: center; gap: .7rem; white-space: nowrap; color: var(--text-strong); font-weight: 600; font-size: .92rem; }
.site .float .bi { font-size: 1.5rem; }
.site .float small { display: block; color: var(--muted); font-size: .74rem; font-weight: 400; }
.site .float:nth-child(1) { top: 6%; left: 4%; }
.site .float:nth-child(2) { top: 40%; right: 0; animation-delay: -2s; }
.site .float:nth-child(3) { bottom: 4%; left: 12%; animation-delay: -4s; }
.site .orb { position: absolute; top: 50%; left: 50%; width: 180px; height: 180px; transform: translate(-50%,-50%); border-radius: 50%; background: conic-gradient(from 0deg, #8b5cf6, #3b82f6, #22d3ee, #f472b6, #8b5cf6); opacity: .85; animation: spin 14s linear infinite; will-change: transform; box-shadow: 0 0 60px rgba(139,92,246,.45); }
.site .orb::after { content: ""; position: absolute; inset: 14px; border-radius: 50%; background: var(--orb-core); }
.site .orb-icon { position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%); font-size: 3.2rem; color: var(--text-strong); z-index: 1; text-shadow: 0 0 30px rgba(139,92,246,.8); }
html[data-theme="light"] .site .orb-icon { color: #6d28d9; text-shadow: none; }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Category / service tiles */
.site .cat-tile { display: flex; flex-direction: column; align-items: center; gap: .6rem; padding: 1.15rem .8rem; text-align: center; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text-strong); text-decoration: none; transition: transform .2s, border-color .2s, box-shadow .2s; height: 100%; box-shadow: var(--shadow); }
.site .cat-tile:hover { transform: translateY(-4px); border-color: hsla(var(--h), 90%, 60%, .55); box-shadow: 0 16px 40px hsla(var(--h), 90%, 50%, .22); color: var(--text-strong); }
.site .cat-tile .ico { width: 3.2rem; height: 3.2rem; border-radius: 1rem; display: grid; place-items: center; font-size: 1.5rem; color: #fff;
    background: linear-gradient(135deg, hsl(var(--h), 85%, 60%), hsl(calc(var(--h) + 40), 85%, 55%)); box-shadow: 0 10px 24px hsla(var(--h), 90%, 55%, .35); }
.site .cat-tile span { font-weight: 700; font-size: .95rem; }
.site .cat-tile small { color: var(--muted); font-size: .76rem; }

/* Product card */
.site .product-card { height: 100%; overflow: hidden; transition: transform .22s, box-shadow .22s, border-color .22s; position: relative; }
.site .product-card:hover { transform: translateY(-5px); border-color: var(--active-line) !important; box-shadow: 0 22px 50px rgba(76,29,149,.3) !important; }
html[data-theme="light"] .site .product-card:hover { box-shadow: 0 18px 40px rgba(76,29,149,.14) !important; }
.site .product-card .thumb { height: 160px; display: grid; place-items: center; position: relative; overflow: hidden;
    background: radial-gradient(circle at 30% 20%, hsla(var(--h), 90%, 65%, .55), transparent 55%), linear-gradient(135deg, hsl(var(--h), 70%, 22%), hsl(calc(var(--h) + 50), 70%, 14%)); }
html[data-theme="light"] .site .product-card .thumb { background: radial-gradient(circle at 30% 20%, hsla(var(--h), 95%, 75%, .55), transparent 60%), linear-gradient(135deg, hsl(var(--h), 80%, 90%), hsl(calc(var(--h) + 50), 80%, 84%)); }
.site .product-card .thumb > .bi { font-size: 3.3rem; color: #fff; filter: drop-shadow(0 6px 20px hsla(var(--h), 90%, 60%, .8)); transition: transform .3s; }
html[data-theme="light"] .site .product-card .thumb > .bi { color: hsl(var(--h), 65%, 42%); filter: drop-shadow(0 6px 14px hsla(var(--h), 90%, 50%, .3)); }
.site .product-card:hover .thumb > .bi { transform: scale(1.12) rotate(-4deg); }
.site .product-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.site .product-card:hover .thumb img { transform: scale(1.06); }
.site .product-card .ribbon { position: absolute; top: .7rem; left: .7rem; z-index: 1; padding: .2rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 700; background: rgba(9,12,24,.72); border: 1px solid rgba(148,163,255,.28); color: #e5e7ff; backdrop-filter: blur(6px); }
.site .product-card .hot { left: auto; right: .7rem; background: var(--grad-warm); color: #1a1205; border: 0; }
.site .product-card .card-title { color: var(--text-strong); }
.site .product-card .card-body { padding: 1rem 1.05rem 1.05rem; }
.site .product-card.static { height: auto; }
.site .product-card.static:hover { transform: none; border-color: var(--line) !important; box-shadow: var(--shadow) !important; }
.site .product-card.static:hover .thumb > .bi { transform: none; }
.site .product-card .buy-hint { font-size: .8rem; color: var(--accent-text); opacity: 0; transform: translateX(-4px); transition: .2s; }
.site .product-card:hover .buy-hint { opacity: 1; transform: none; }
@media (hover: none) { .site .product-card .buy-hint { opacity: 1; transform: none; } }
.site .page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.3rem 1.5rem; margin-bottom: 1.5rem; border-radius: var(--radius); border: 1px solid var(--line-strong);
    background: radial-gradient(500px 200px at 90% 0%, hsla(var(--h), 90%, 60%, .2), transparent 70%), var(--surface); box-shadow: var(--shadow); }
.site .page-head .ico { width: 3rem; height: 3rem; border-radius: .9rem; display: grid; place-items: center; font-size: 1.4rem; color: #fff; background: linear-gradient(135deg, hsl(var(--h), 85%, 60%), hsl(calc(var(--h) + 40), 85%, 55%)); box-shadow: 0 10px 26px hsla(var(--h), 90%, 55%, .35); }

/* Feature tiles, news */
.site .perk { display: flex; gap: .9rem; padding: 1.1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); height: 100%; box-shadow: var(--shadow); }
.site .perk .ico { flex: 0 0 auto; width: 2.8rem; height: 2.8rem; border-radius: .9rem; display: grid; place-items: center; font-size: 1.3rem; color: #fff; background: linear-gradient(135deg, hsl(var(--h), 85%, 58%), hsl(calc(var(--h) + 35), 85%, 52%)); }
.site .perk b { color: var(--text-strong); display: block; margin-bottom: .15rem; }
.site .perk span { color: var(--muted); font-size: .88rem; }
.site .news-item { display: block; padding: 1rem 1.1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); transition: border-color .2s, transform .2s; box-shadow: var(--shadow); }
.site .news-item:hover { border-color: var(--active-line); transform: translateY(-2px); color: var(--text); }
.site .news-item .news-title { color: var(--text-strong); font-weight: 700; }

/* Recently viewed (filled by site.js from localStorage) */
.site .recent-row { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(220px, 1fr); gap: .8rem; overflow-x: auto; padding-bottom: .4rem; scrollbar-width: thin; }
.site .recent-item { display: flex; align-items: center; gap: .7rem; padding: .6rem; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); min-width: 0; box-shadow: var(--shadow); transition: border-color .2s; }
.site .recent-item:hover { border-color: var(--active-line); color: var(--text); }
.site .recent-item .ri-img { width: 3.2rem; height: 3.2rem; border-radius: .6rem; flex: 0 0 auto; background: var(--surface-3) center/cover no-repeat; display: grid; place-items: center; color: var(--icon); font-size: 1.3rem; }
.site .recent-item b { display: block; font-size: .88rem; color: var(--text-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site .recent-item small { font-size: .8rem; }

/* Product page */
.site .variant-option label { background: var(--surface-2) !important; border: 1px solid var(--line-strong) !important; color: var(--text); border-radius: .9rem; transition: .15s; }
.site .variant-option label:hover { border-color: var(--active-line) !important; }
.site .variant-option input:checked + label { border-color: #8b5cf6 !important; background: var(--active-bg) !important; box-shadow: 0 0 0 1px #8b5cf6, 0 10px 30px rgba(139,92,246,.2); }
.site .variant-option input:disabled + label { opacity: .45; }
.site .product-hero-img { border-radius: var(--radius) var(--radius) 0 0; max-height: 340px; object-fit: cover; object-position: top; }
.site .buy-box { border: 1px solid var(--active-line) !important; box-shadow: var(--shadow-lg) !important; }

/* Flash sale */
.site .product-card .ribbon.sale { background: linear-gradient(120deg, #ef4444, #f97316); color: #fff; animation: pulse 1.6s ease-in-out infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 0 rgba(239,68,68,.5); } 50% { box-shadow: 0 0 0 6px rgba(239,68,68,0); } }
.site .sale-timer { position: absolute; left: .7rem; bottom: .7rem; z-index: 1; padding: .2rem .55rem; border-radius: .6rem; background: rgba(9,12,24,.8); border: 1px solid rgba(248,113,113,.5); color: #fecaca; font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.site .flash-bar { padding: .6rem .8rem; border-radius: .8rem; background: var(--bad-bg); border: 1px solid var(--bad-line); color: var(--bad); }
.site .flash-bar .bi, .site .flash-clock .bi { color: #fb923c; }
.site .countdown { font-variant-numeric: tabular-nums; font-weight: 800; color: var(--text-strong); }
.site .flash-clock { color: var(--bad) !important; font-weight: 600 !important; }
.site .sale-badge { background: linear-gradient(120deg, #ef4444, #f97316); color: #fff; font-weight: 800; }
.site .flash-section { padding: 1.2rem; border-radius: 1.4rem; border: 1px solid var(--bad-line); background: radial-gradient(600px 200px at 10% 0%, rgba(239,68,68,.14), transparent 70%), var(--surface-2); }

/* Top-up bonus tiers */
.site .bonus-chip { border: 1px dashed var(--warn-line); background: var(--warn-bg); color: var(--warn); border-radius: .7rem; padding: .3rem .65rem; font-size: .82rem; }
.site .bonus-chip:hover { filter: brightness(1.08); }
.site .bonus-chip b { color: var(--gold-text); }

/* Notifications */
.site .bell-menu { width: 330px; max-width: 92vw; }
.site .bell-item { display: flex; gap: .6rem; align-items: flex-start; white-space: normal; }
.site .bell-item .bi { color: var(--accent-text); margin-top: .15rem; }
.site .bell-item.unread { background: var(--active-bg); }
.site .notice-row { display: flex; gap: .8rem; align-items: center; padding: .8rem 1rem; border-radius: .9rem; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.site .notice-row:hover { border-color: var(--active-line); color: var(--text); }
.site .notice-row.unread { border-color: var(--active-line); background: var(--active-bg); }
.site .notice-row .ico { width: 2.3rem; height: 2.3rem; border-radius: .7rem; display: grid; place-items: center; background: var(--grad); color: #fff; flex: 0 0 auto; }

/* Floating contact, back to top, recent-sale toast */
.contact-float { position: fixed; right: 1rem; bottom: 1rem; z-index: 1036; display: flex; flex-direction: column; align-items: flex-end; gap: .5rem; }
.contact-float .contact-list { display: none; flex-direction: column; gap: .45rem; }
.contact-float.open .contact-list { display: flex; }
.contact-float .contact-list a { display: flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border-radius: 999px; color: #fff; text-decoration: none; font-weight: 600; box-shadow: 0 10px 25px rgba(0,0,0,.3); font-size: .9rem; }
.contact-float .c-zalo { background: #0068ff; } .contact-float .c-zalo b { font-size: .8rem; background: #fff; color: #0068ff; border-radius: .4rem; padding: 0 .3rem; }
.contact-float .c-msg { background: linear-gradient(120deg, #00b2ff, #a033ff); } .contact-float .c-tg { background: #229ed9; } .contact-float .c-call { background: #16a34a; }
.contact-toggle { width: 3.3rem; height: 3.3rem; border-radius: 50%; border: 0; color: #fff; font-size: 1.45rem; background: linear-gradient(120deg, #8b5cf6, #3b82f6, #22d3ee); box-shadow: 0 12px 30px rgba(59,130,246,.45); animation: ring 4s ease-in-out infinite; }
@keyframes ring { 0%, 90%, 100% { transform: rotate(0); } 92% { transform: rotate(-12deg); } 94% { transform: rotate(12deg); } 96% { transform: rotate(-8deg); } }
.to-top { position: fixed; right: 1.35rem; bottom: 5.2rem; z-index: 1035; width: 2.6rem; height: 2.6rem; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--surface-strong); color: var(--text-strong); box-shadow: var(--shadow); display: grid; place-items: center; opacity: 0; pointer-events: none; transform: translateY(10px); transition: opacity .25s, transform .25s; }
.to-top.show { opacity: 1; pointer-events: auto; transform: none; }
.to-top:hover { border-color: var(--active-line); }
body:not(:has(.contact-float)) .to-top { bottom: 1.2rem; }
.sale-toast { position: fixed; left: 1rem; bottom: 1rem; z-index: 1034; transform: translateY(140%); opacity: 0; transition: transform .45s cubic-bezier(.2,.9,.3,1.2), opacity .3s; max-width: min(340px, calc(100vw - 6rem)); }
.sale-toast.in { transform: none; opacity: 1; }
.sale-toast .toast-card { display: flex; gap: .7rem; align-items: center; padding: .7rem .9rem; border-radius: 1rem; background: var(--surface-strong); border: 1px solid var(--active-line); color: var(--text); text-decoration: none; box-shadow: var(--shadow-lg); font-size: .86rem; }
.sale-toast .toast-card b { color: var(--text-strong); }
.sale-toast .toast-card .ico { width: 2.4rem; height: 2.4rem; border-radius: .8rem; display: grid; place-items: center; background: linear-gradient(120deg, #22c55e, #16a34a); color: #fff; flex: 0 0 auto; }
.sale-toast .toast-card small { color: var(--muted); }

/* Mobile bottom navigation */
.site .bottom-nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1038; display: grid; grid-template-columns: repeat(5, 1fr); align-items: end; padding: .3rem .4rem calc(.3rem + env(safe-area-inset-bottom)); background: var(--nav-bg); backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%); border-top: 1px solid var(--line); }
.site .bottom-nav a, .site .bottom-nav button { display: flex; flex-direction: column; align-items: center; gap: .1rem; padding: .3rem 0; border: 0; background: none; color: var(--muted); text-decoration: none; font-size: .68rem; font-weight: 600; position: relative; }
.site .bottom-nav .bi { font-size: 1.25rem; line-height: 1.2; }
.site .bottom-nav .active { color: var(--accent-text); }
.site .bottom-nav .bn-main .bn-ico { width: 2.9rem; height: 2.9rem; margin-top: -1.2rem; border-radius: 50%; display: grid; place-items: center; background: var(--grad); color: #fff; box-shadow: var(--glow); border: 3px solid var(--bg); }
.site .bottom-nav .bn-main { color: var(--text-strong); }
.site .bottom-nav .cart-dot { top: 0; right: calc(50% - 1.3rem); }
@media (max-width: 991.98px) {
    body.site { padding-bottom: calc(4rem + env(safe-area-inset-bottom)); }
    .contact-float { bottom: calc(4.6rem + env(safe-area-inset-bottom)); right: .8rem; }
    .contact-toggle { width: 2.9rem; height: 2.9rem; font-size: 1.25rem; }
    .to-top { bottom: calc(8.3rem + env(safe-area-inset-bottom)); right: 1rem; }
    .sale-toast { bottom: calc(4.6rem + env(safe-area-inset-bottom)); }
}

/* Download page */
.site .download-card { border-color: hsla(var(--h), 90%, 60%, .45) !important; background: radial-gradient(500px 220px at 90% 0%, hsla(var(--h), 90%, 55%, .16), transparent 70%), var(--surface); }
.site .dl-ico { width: 3.4rem; height: 3.4rem; border-radius: 1rem; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: linear-gradient(135deg, hsl(var(--h), 85%, 58%), hsl(calc(var(--h) + 40), 85%, 52%)); }
.site .changelog { padding: .8rem 1rem; border-radius: .8rem; background: var(--surface-2); border: 1px solid var(--line); font-size: .9rem; }
.site .old-release { padding: .6rem 0; border-bottom: 1px solid var(--line); }
.site .md-img { display: block; max-width: 100%; border-radius: .8rem; border: 1px solid var(--line-strong); margin: .6rem 0 1rem; }
.site .guide-body h4 { margin-top: 1.2rem; }

/* Product feature gallery */
.site .nav-tabs .nav-jump { color: var(--gold-text); border-color: var(--warn-line); }
.site .gallery-wrap { scroll-margin-top: 80px; }
.site .gallery-wrap .feature-shot { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); padding: 1.2rem; gap: 1.6rem; }
.site .gallery-wrap .feature-shot .shot, .site .gallery-wrap .feature-shot .shot img { max-height: 520px; }
.site .gallery-wrap .feature-shot .shot img { object-fit: contain; background: #f0f0f0; }
.site .gallery-wrap .feature-shot h4 { font-size: 1.15rem; }
.site .gallery-wrap .feature-shot .feature-list li { font-size: .95rem; padding: .35rem 0; }
.site .gallery-groups { position: sticky; top: 64px; z-index: 5; padding: .5rem 0; display: flex; flex-wrap: wrap; gap: .45rem; background: linear-gradient(180deg, var(--bg) 70%, transparent); }
.site .gallery-chip { padding: .3rem .8rem; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text-2); font-size: .82rem; text-decoration: none; }
.site .gallery-chip:hover { background: var(--grad); color: #fff; border-color: transparent; }
.site .gallery-group { font-size: 1.05rem; font-weight: 800; margin: 1.6rem 0 .8rem; padding-left: .7rem; border-left: 3px solid #8b5cf6; scroll-margin-top: 90px; }
.site .feature-shot { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 1.1rem; align-items: start; padding: 1rem; margin-bottom: .9rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.site .feature-shot .shot { position: relative; display: block; border-radius: .8rem; overflow: hidden; background: #f0f0f0; border: 1px solid var(--line-strong); max-height: 360px; }
.site .feature-shot .shot img { width: 100%; display: block; object-fit: cover; object-position: top; max-height: 360px; transition: transform .3s; }
.site .feature-shot .shot:hover img { transform: scale(1.03); }
.site .feature-shot .shot span { position: absolute; right: .5rem; bottom: .5rem; width: 2rem; height: 2rem; border-radius: .6rem; display: grid; place-items: center; background: rgba(9,12,24,.75); color: #fff; }
.site .feature-shot h4 { font-size: 1rem; font-weight: 700; margin-bottom: .55rem; }
.site .feature-shot .feature-list li { display: flex; gap: .45rem; font-size: .9rem; color: var(--text-2); }
.site .feature-shot .feature-list .bi { color: #34d399; margin-top: .15rem; }
@media (max-width: 767.98px) { .site .feature-shot { grid-template-columns: 1fr; } }
.site .feature-shot.no-image, .site .gallery-wrap .feature-shot.no-image { grid-template-columns: 1fr; }
.lightbox { position: fixed; inset: 0; z-index: 2000; background: rgba(3,5,12,.88); backdrop-filter: blur(6px); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 1rem; cursor: zoom-out; }
.lightbox img { max-width: min(96vw, 1100px); max-height: 84vh; min-width: min(92vw, 760px); object-fit: contain; border-radius: .8rem; box-shadow: 0 30px 80px rgba(0,0,0,.6); background: #f0f0f0; }
.lightbox .cap { color: #e8ebff; margin-top: .8rem; font-weight: 600; text-align: center; }
.lightbox .close { position: absolute; top: 1rem; right: 1.2rem; color: #fff; font-size: 1.8rem; background: none; border: 0; }

/* Footer */
.site .footer { margin-top: 4rem; border-top: 1px solid var(--line); background: linear-gradient(180deg, transparent, var(--bg-2)); color: var(--text); }
html[data-theme="dark"] .site .footer { background: linear-gradient(180deg, rgba(9,12,24,.4), rgba(5,7,14,.95)); }
.site .footer a { color: var(--text-2); text-decoration: none; }
.site .footer a:hover { color: var(--text-strong); }
.site .footer h6 { color: var(--text-strong); font-weight: 700; margin-bottom: .8rem; }
.site .footer li { margin-bottom: .35rem; }
.site .social { display: flex; gap: .5rem; }
.site .social a { width: 2.3rem; height: 2.3rem; border-radius: .7rem; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--line); }
.site .social a:hover { background: var(--grad); border-color: transparent; color: #fff; }

/* Google Translate: no banner, no hover tooltips, page not pushed down */
body.site { top: 0 !important; }
.skiptranslate iframe, .goog-te-banner-frame, #goog-gt-tt, .goog-te-balloon-frame, .VIpgJd-ZVi9od-ORHb-OEVmcd { display: none !important; }
.goog-text-highlight { background: none !important; box-shadow: none !important; }

/* Buff MXH */
.site .buff-side { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: .6rem; box-shadow: var(--shadow); }
@media (min-width: 1200px) { .site .buff-side { position: sticky; top: 76px; max-height: calc(100vh - 92px); overflow-y: auto; } }
.site .buff-side-toggle { border: 1px solid var(--line-strong); color: var(--text-strong); }
.site .buff-side .side-link { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; border-radius: .7rem; color: var(--text-2); text-decoration: none; font-weight: 500; }
.site .buff-side .side-link:hover, .site .buff-side .side-link.active { background: var(--active-bg); color: var(--text-strong); }
.site .buff-side .side-head { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); padding: .8rem .75rem .35rem; }
.site .buff-side .side-platform { display: flex; align-items: center; gap: .6rem; padding: .55rem .75rem; border-radius: .7rem; color: var(--text-2); text-decoration: none; font-weight: 500; }
.site .buff-side .side-platform > .bi:first-child { font-size: 1.05rem; color: var(--icon); }
.site .buff-side .side-platform:hover { background: var(--hover-bg); color: var(--text-strong); }
.site .buff-side .side-platform.open { background: var(--active-bg); color: var(--text-strong); }
.site .buff-side .side-platform .caret { font-size: .75rem; transition: transform .2s; }
.site .buff-side .side-platform[aria-expanded="true"] .caret { transform: rotate(180deg); }
.site .buff-side .side-cats { list-style: none; margin: .2rem 0 .4rem; padding: 0 0 0 1.1rem; }
.site .buff-side .side-cats a { display: block; position: relative; padding: .38rem .6rem .38rem 1rem; color: var(--muted); font-size: .88rem; text-decoration: none; border-radius: .5rem; }
.site .buff-side .side-cats a::before { content: ""; position: absolute; left: .2rem; top: .9em; width: .3rem; height: .3rem; border-radius: 50%; background: currentColor; opacity: .6; }
.site .buff-side .side-cats a:hover { color: var(--text-strong); background: var(--surface-2); }
.site .buff-side .side-cats a.active { color: var(--accent-text); font-weight: 600; }
.site .buff-title { font-size: 1.35rem; font-weight: 700; }
.site .buff-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; }
.site .buff-tabs a { text-align: center; padding: .65rem; border-radius: .7rem; border: 1px solid var(--line-strong); color: var(--text-2); text-decoration: none; font-weight: 600; background: var(--surface-2); }
.site .buff-tabs a.active { background: var(--grad); border-color: transparent; color: #fff; box-shadow: var(--glow); }
.site .multi-chip { cursor: pointer; padding: .2rem .65rem; border-radius: .5rem; font-size: .82rem; border: 1px solid var(--ok-line); background: var(--ok-bg); color: var(--ok); }
.site .btn-check:checked + .multi-chip { background: #10b981; border-color: #10b981; color: #04120c; font-weight: 600; }
.site .sv-list { display: flex; flex-direction: column; gap: .35rem; }
.site .sv-item { padding: .3rem 0; }
.site .sv-item .sv-radio { float: left; margin: .3rem .6rem 0 0; cursor: pointer; }
.site .sv-label { display: block; overflow: hidden; cursor: pointer; font-weight: 500; line-height: 1.9; color: var(--text); }
.site .sv-radio:checked + .sv-label { color: var(--text-strong); }
.site .sv-price { display: inline-block; padding: 0 .5rem; margin: 0 .15rem; border-radius: .4rem; font-size: .78rem; line-height: 1.6; color: var(--ok); background: var(--ok-bg); border: 1px solid var(--ok-line); white-space: nowrap; }
.site .sv-ok { color: var(--muted); }
.site .sv-badge { display: inline-block; padding: 0 .55rem; margin-left: .2rem; border-radius: .4rem; font-size: .78rem; line-height: 1.6; font-weight: 700; color: var(--red); background: var(--bad-bg); border: 1px solid var(--bad-line); white-space: nowrap; }
.site .sv-info { display: none; clear: both; margin: .5rem 0 .3rem; padding: .7rem .9rem; border-radius: .7rem; font-size: .88rem; color: var(--warn); background: var(--warn-bg); border: 1px solid var(--warn-line); }
.site .sv-radio:checked ~ .sv-info { display: block; }
.site .sv-desc { white-space: pre-line; color: var(--warn); }
.site .buff-total { padding: .8rem 1rem; border-radius: .9rem; background: var(--active-bg); border: 1px solid var(--active-line); }
.site .buff-info-title { color: var(--icon); font-weight: 700; }
.site .buff-notice-title { color: var(--link); font-weight: 700; font-size: 1.05rem; }
.site .buff-notice p { color: var(--red); font-weight: 600; margin-bottom: .9rem; line-height: 1.5; }
@media (min-width: 1400px) { .site .buff-info { position: sticky; top: 76px; } }
.site .api-doc pre { background: var(--code-bg); border: 1px solid var(--line); border-radius: .7rem; padding: .8rem; color: #c7d2fe; font-size: .82rem; white-space: pre-wrap; word-break: break-word; }
.site .api-doc table td, .site .api-doc table th { font-size: .88rem; }
.site .buff-ico { width: 2.3rem; height: 2.3rem; flex: 0 0 2.3rem; border-radius: .7rem; display: grid; place-items: center; background: var(--grad); color: #fff; font-size: 1.1rem; }
.site .buff-progress { height: .45rem; background: var(--surface-3); }
.site .buff-progress .progress-bar { background: var(--grad); }
.site .min-w-0 { min-width: 0; }
.site .nav-buff, .site .nav-glass .nav-link.nav-buff { color: var(--gold-text); }
.site .nav-glass .nav-link.nav-buff .bi { color: var(--gold); }

/* Reveal on scroll (progressive: content is visible without JS) */
/* Only sections below the fold fade in; what is on screen at load is shown at once. */
.site .reveal.pre { opacity: 0; transform: translateY(12px); }
.site .reveal.in { transition: opacity .35s ease, transform .35s ease; }
@media (prefers-reduced-motion: reduce) { .site .reveal.pre { opacity: 1; transform: none; } .site .reveal.in { transition: none; } }

/* Click feedback: a thin bar at the top while the next page loads. */
.nav-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; z-index: 2000; pointer-events: none;
  background: linear-gradient(90deg, #7c5cff, #22d3ee); box-shadow: 0 0 8px rgba(124,92,255,.6); opacity: 0;
  transition: width 8s cubic-bezier(.1,.7,.2,1), opacity .2s; }
.nav-progress.go { width: 92%; opacity: 1; }

/* Smooth page-to-page change (Chrome/Edge): no white flash between pages. */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .12s; }

/* App shell: top bar (brand, search, account) + left sidebar */
.site .top-search { flex: 1 1 auto; max-width: 460px; }
.site .top-search input { width: 100%; min-width: 0; }
.site .nav-user { max-width: 8rem; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; }
.site .side-toggle { background: none; border: 1px solid var(--line-strong); color: var(--text-strong); border-radius: .6rem; width: 2.4rem; height: 2.3rem; font-size: 1.35rem; display: grid; place-items: center; padding: 0; }
.site .shell { display: flex; align-items: flex-start; position: relative; }
.site .shell-main { flex: 1 1 auto; min-width: 0; padding-left: 1rem; padding-right: 1rem; }
.site .shell-inner { max-width: 1320px; margin: 0 auto; }
.site .sidenav { --bs-offcanvas-width: 280px; --bs-offcanvas-bg: var(--surface-strong); --bs-offcanvas-color: var(--text); --bs-offcanvas-border-color: var(--line); }
html[data-theme="light"] .site .sidenav { --bs-offcanvas-bg: #fff; }
.site .side-inner { display: flex; flex-direction: column; gap: 2px; width: 100%; }
.site .side-label { font-size: .68rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); margin: 1.1rem .75rem .35rem; }
.site .side-link { position: relative; display: flex; align-items: center; gap: .7rem; padding: .52rem .75rem; border-radius: .65rem; color: var(--text-2); text-decoration: none; font-weight: 500; font-size: .92rem; cursor: pointer; list-style: none; border: 1px solid transparent; transition: background .15s, color .15s; }
.site .side-link::-webkit-details-marker { display: none; }
.site .side-link > .bi:first-child { width: 1.2rem; text-align: center; color: var(--icon); font-size: 1.02rem; }
.site .side-link span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.site .side-link:hover { color: var(--text-strong); background: var(--hover-bg); }
.site .side-link.active { color: var(--text-strong); background: var(--active-bg); font-weight: 600; }
.site .side-link.active::before { content: ""; position: absolute; left: -.7rem; top: .45rem; bottom: .45rem; width: 3px; border-radius: 0 3px 3px 0; background: var(--grad); }
.site .side-link.active > .bi:first-child { color: var(--accent-text); }
.site .side-link.nav-buff { color: var(--gold-text); }
.site .side-link.nav-buff > .bi:first-child { color: var(--gold); }
.site .side-caret { font-size: .72rem; color: var(--muted); transition: transform .2s; }
.site .side-group[open] > summary .side-caret { transform: rotate(180deg); }
.site .side-sub { display: flex; flex-direction: column; margin: 2px 0 6px 1.35rem; padding-left: .8rem; border-left: 1px solid var(--line); }
.site .side-sub a { color: var(--muted); text-decoration: none; font-size: .86rem; padding: .34rem .6rem; border-radius: .5rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.site .side-sub a:hover { color: var(--text-strong); background: var(--hover-bg); }
.site .side-sub a.active { color: var(--accent-text); background: var(--active-bg); font-weight: 600; }
.site .side-sub a.side-all { color: var(--link); font-size: .82rem; }
.site .side-foot { margin-top: 1.2rem; padding: .9rem; border-radius: var(--radius-sm); background: var(--surface-2); border: 1px solid var(--line); font-size: .82rem; color: var(--muted); }
.site .side-foot b { color: var(--text-strong); }
@media (min-width: 992px) {
    .site .sidenav { flex: 0 0 248px; width: 248px; position: sticky; top: 57px; height: calc(100vh - 57px); overflow-y: auto; border-right: 1px solid var(--line); background: var(--side-bg) !important; scrollbar-width: thin; scrollbar-color: var(--line-strong) transparent; }
    .site .sidenav .offcanvas-body { padding: .9rem .7rem 2rem; }
    .site .shell-main { padding-left: 1.75rem; padding-right: 1.75rem; }
}
@media (max-width: 991.98px) { .site .sidenav .offcanvas-body { padding-top: .25rem; } }
@media (max-width: 1199.98px) { .site .search-pill input { min-width: 0; width: 100%; } .site .hero-art { display: none; } }
@media (max-width: 575.98px) { .site .hero { border-radius: 1.1rem; } .site .hero .btn-lg { flex: 1 1 100%; } .site .hero-title { font-size: 1.75rem; } .site .shell-main { padding-left: .75rem; padding-right: .75rem; } .site .section-title { font-size: 1.15rem; } }

/* ===== Tài khoản MMO (AI & APP / Cloud) + Mail/OTP ===== */
.site .app-ico { --h: 260; position: relative; flex: 0 0 auto; width: 2.6rem; height: 2.6rem; border-radius: .75rem; display: inline-grid; place-items: center; overflow: hidden;
    background: linear-gradient(135deg, hsl(var(--h), 75%, 58%), hsl(calc(var(--h) + 40), 75%, 48%)); color: #fff; box-shadow: 0 4px 12px hsla(var(--h), 70%, 40%, .25); vertical-align: middle; }
.site .app-ico b { font-size: .85rem; font-weight: 800; letter-spacing: .02em; }
.site .app-ico img { position: absolute; inset: 0; width: 100%; height: 100%; padding: 18%; object-fit: contain; background: #fff; }
.site .app-ico.lg { width: 3.4rem; height: 3.4rem; border-radius: 1rem; }
.site .app-ico.lg b { font-size: 1.1rem; }
.site .app-ico.sm { width: 2.2rem; height: 2.2rem; border-radius: .65rem; }
.site .app-ico.xs { width: 1.5rem; height: 1.5rem; border-radius: .45rem; box-shadow: none; }
.site .app-ico.xs b { font-size: .58rem; }
.site .app-ico.xxs { width: 1.15rem; height: 1.15rem; border-radius: .35rem; box-shadow: none; }
.site .app-ico.xxs b { font-size: .48rem; }
.site .app-ico.xs img, .site .app-ico.xxs img { padding: 12%; }

.site .kho-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.1rem 1.3rem; margin-bottom: 1.1rem; border-radius: var(--radius); border: 1px solid var(--line-strong); background: radial-gradient(500px 200px at 90% 0%, rgba(139,92,246,.16), transparent 70%), var(--surface); box-shadow: var(--shadow); }
.site .kho-head-ico { --h: 265; width: 3.2rem; height: 3.2rem; border-radius: 1rem; display: grid; place-items: center; font-size: 1.45rem; color: #fff; flex: 0 0 auto; background: linear-gradient(135deg, hsl(var(--h), 85%, 60%), hsl(calc(var(--h) + 40), 85%, 55%)); box-shadow: 0 10px 24px hsla(var(--h), 90%, 55%, .3); }
.site .seg { display: inline-flex; padding: .25rem; border-radius: .85rem; background: var(--surface-2); border: 1px solid var(--line); gap: .2rem; }
.site .seg a { padding: .4rem .85rem; border-radius: .65rem; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .88rem; white-space: nowrap; }
.site .seg a:hover { color: var(--text-strong); background: var(--hover-bg); }
.site .seg a.active { background: var(--grad); color: #fff; box-shadow: var(--glow); }
.site .kho-search { position: relative; display: flex; gap: .5rem; align-items: center; }
.site .kho-search > .bi { position: absolute; left: 1rem; color: var(--muted); }
.site .kho-search input { height: 2.9rem; padding-left: 2.6rem; border-radius: 999px; }

.site .app-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: .8rem; }
.site .app-tile { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .45rem; padding: 1.1rem .7rem .95rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--text); box-shadow: var(--shadow); transition: transform .18s, border-color .18s, box-shadow .18s; }
.site .app-tile:hover { transform: translateY(-3px); border-color: var(--active-line); color: var(--text); box-shadow: 0 14px 34px rgba(76,29,149,.18); }
.site .app-tile .app-name { font-weight: 700; color: var(--text-strong); line-height: 1.25; }
.site .app-tile .app-sub { font-size: .76rem; color: var(--muted); }
.site .app-tile .app-sub b { color: var(--text-2); font-weight: 700; }
.site .app-tile .app-flag { position: absolute; top: .55rem; right: .6rem; font-size: .8rem; color: var(--gold); }
.site .app-strip { display: flex; gap: .45rem; overflow-x: auto; padding-bottom: .35rem; scrollbar-width: thin; }
.site .app-strip a { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .7rem .3rem .35rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); color: var(--text-2); text-decoration: none; font-size: .84rem; font-weight: 600; white-space: nowrap; }
.site .app-strip a:hover { border-color: var(--active-line); color: var(--text-strong); }
.site .app-strip a.active { background: var(--active-bg); border-color: var(--active-line); color: var(--text-strong); }
.site .app-hero { display: flex; align-items: center; gap: 1rem; padding: 1rem 1.1rem; margin-bottom: .9rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }

.site .kho-list { display: flex; flex-direction: column; gap: .6rem; }
.site .kho-row { display: flex; align-items: center; gap: .9rem; padding: .85rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); transition: border-color .15s; }
.site .kho-row:hover { border-color: var(--active-line); }
.site .kho-info { flex: 1 1 auto; min-width: 0; }
.site .kho-name { font-weight: 700; color: var(--text-strong); line-height: 1.35; word-break: break-word; }
.site .kho-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .6rem; margin-top: .25rem; font-size: .78rem; color: var(--muted); }
.site .kho-meta a { color: var(--link); text-decoration: none; font-weight: 600; }
.site .kho-tag { display: inline-flex; align-items: center; gap: .25rem; padding: .05rem .5rem; border-radius: 999px; font-weight: 600; border: 1px solid; }
.site .kho-tag.ok { color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.site .kho-tag.info { color: var(--info); background: var(--info-bg); border-color: var(--info-line); }
.site .kho-desc { margin-top: .35rem; font-size: .82rem; color: var(--text-2); white-space: pre-line; }
.site .kho-buy { flex: 0 0 auto; display: flex; flex-direction: column; align-items: flex-end; gap: .4rem; min-width: 170px; }
.site .kho-price { font-size: 1.15rem; font-weight: 800; background: var(--grad-price); -webkit-background-clip: text; background-clip: text; color: transparent; white-space: nowrap; }
.site .kho-form { display: flex; gap: .35rem; }
.site .kho-form input { width: 4.2rem; }
@media (max-width: 575.98px) {
    .site .kho-row { flex-wrap: wrap; }
    .site .kho-buy { flex: 1 1 100%; flex-direction: row; align-items: center; justify-content: space-between; min-width: 0; }
    .site .app-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
    .site .kho-head { padding: .9rem 1rem; }
}

.site .side-count { margin-left: auto; font-size: .7rem; color: var(--muted); padding: 0 .35rem; }
.site .side-sub a.side-app { display: flex; align-items: center; gap: .5rem; }
.site .side-sub a.side-app span { min-width: 0; overflow: hidden; text-overflow: ellipsis; }

.site .chip { display: inline-flex; align-items: center; gap: .4rem; padding: .38rem .8rem; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-strong); color: var(--text-2); text-decoration: none; font-weight: 600; font-size: .86rem; white-space: nowrap; }
.site .chip small { color: var(--muted); font-weight: 500; }
.site .chip:hover { border-color: var(--active-line); color: var(--text-strong); }
.site .chip.active { background: var(--active-bg); border-color: var(--active-line); color: var(--text-strong); box-shadow: inset 0 0 0 1px var(--active-line); }
.site .svc-chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.site .svc-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: .7rem; }
.site .svc-card { display: flex; align-items: center; gap: .8rem; padding: .85rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.site .svc-card b { color: var(--text-strong); }
.site .rent-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: .7rem; }
.site .rent-card { padding: .9rem 1rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 90px; }
.site .rent-card.waiting { border-color: var(--warn-line); }
.site .rent-card:target { box-shadow: 0 0 0 2px var(--accent), var(--shadow); }
.site .rent-line { display: flex; align-items: center; gap: .5rem; padding: .3rem 0; }
.site .rent-line .lbl { width: 2.6rem; flex: 0 0 auto; font-size: .78rem; color: var(--muted); }
.site .rent-line code { flex: 1 1 auto; min-width: 0; padding: .3rem .55rem; border-radius: .5rem; background: var(--surface-2); border: 1px solid var(--line); color: var(--text-strong); font-size: .86rem; word-break: break-all; }
.site .rent-line code.rent-code { font-size: 1.15rem; font-weight: 800; letter-spacing: .08em; color: var(--ok); background: var(--ok-bg); border-color: var(--ok-line); }
.site .rent-wait { font-size: .85rem; color: var(--warn); }
.site .rent-wait .dots::after { content: "⏳"; display: inline-block; animation: bob 1.4s ease-in-out infinite; }

/* Mail / OTP steps + free mail */
.site .step-card { padding: 1rem 1.1rem; margin-bottom: .9rem; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); scroll-margin-top: 80px; }
.site .step-title { font-weight: 700; color: var(--text-strong); margin-bottom: .7rem; }
.site .step-no { display: inline-grid; place-items: center; width: 1.5rem; height: 1.5rem; margin-right: .35rem; border-radius: 50%; background: var(--grad); color: #fff; font-size: .78rem; font-weight: 800; }
.site .svc-filter { max-width: 240px; }
.site .svc-pick-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: .5rem; max-height: 430px; overflow-y: auto; padding: 2px; scrollbar-width: thin; }
.site .svc-pick { display: flex; align-items: center; gap: .6rem; padding: .5rem .65rem; border-radius: .8rem; background: var(--surface-2); border: 1px solid var(--line); color: var(--text); text-decoration: none; min-width: 0; transition: border-color .15s, background .15s; }
.site .svc-pick b { color: var(--text-strong); font-size: .88rem; }
.site .svc-pick small { color: var(--muted); font-size: .75rem; }
.site .svc-pick:hover { border-color: var(--active-line); color: var(--text); }
.site .svc-pick.active { background: var(--active-bg); border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.site .svc-grid { max-height: 620px; overflow-y: auto; padding: 2px; scrollbar-width: thin; }
.site .side-badge { margin-left: auto; font-size: .6rem; font-weight: 800; letter-spacing: .04em; padding: .05rem .4rem; border-radius: 999px; background: var(--ok-bg); color: var(--ok); border: 1px solid var(--ok-line); }
.site .fm-boxes { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: .8rem; }
.site .fm-boxes .chip { max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.site .fm-x { margin-left: .3rem; padding: 0 .3rem; border-radius: 50%; color: var(--muted); font-weight: 700; }
.site .fm-x:hover { background: var(--bad-bg); color: var(--red); }
.site .fm-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 330px), 1fr)); gap: .75rem; }
.site .fm-box { display: flex; flex-direction: column; gap: .45rem; padding: .7rem; border-radius: .9rem; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.site .fm-box.has-new { border-color: var(--ok-line); box-shadow: 0 0 0 1px var(--ok-line); }
.site .fm-box-head { display: flex; align-items: center; gap: .3rem; }
.site .fm-addr { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding: .3rem .55rem; border-radius: .5rem; background: var(--surface); border: 1px solid var(--line); color: var(--text-strong); font-size: .86rem; }
.site .fm-box-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .76rem; color: var(--muted); }
.site .fm-tag { padding: .1rem .45rem; border-radius: 999px; background: var(--active-bg, rgba(124,92,255,.15)); color: var(--text-strong); font-weight: 600; }
.site .fm-box .fm-list { max-height: 300px; }
.site .fm-box .fm-msg { background: var(--surface); padding: .5rem .65rem; }
.site .fm-msg.fresh { border-color: var(--ok-line); }
.site .fm-list { display: flex; flex-direction: column; gap: .45rem; max-height: 480px; overflow-y: auto; }
.site .fm-msg { display: flex; align-items: center; gap: .7rem; padding: .65rem .8rem; border-radius: .8rem; background: var(--surface-2); border: 1px solid var(--line); cursor: pointer; }
.site .fm-msg:hover { border-color: var(--active-line); }
.site .fm-msg b { color: var(--text-strong); }
.site .fm-prev { color: var(--text-2); }
.site .fm-code { flex: 0 0 auto; font-weight: 800; letter-spacing: .05em; }
.site .fm-view { position: fixed; inset: 0; z-index: 1060; background: rgba(3,5,12,.6); backdrop-filter: blur(4px); display: grid; place-items: center; padding: 1rem; }
.site .fm-view-card { width: min(720px, 100%); max-height: 86vh; overflow: auto; padding: 1.1rem 1.2rem; border-radius: var(--radius); background: var(--surface-strong); border: 1px solid var(--line-strong); box-shadow: var(--shadow-lg); }
.site .fm-text { white-space: pre-wrap; word-break: break-word; font-family: inherit; font-size: .9rem; color: var(--text); margin: .6rem 0 0; }

/* Performance: phones and "reduce motion" get no decorative animation, and off-screen sections skip rendering. */
@media (hover: none), (prefers-reduced-motion: reduce) {
    .site .aurora span { display: none; }
    .site .shine::after, .site .float, .site .orb, .contact-toggle, .site .product-card .ribbon.sale { animation: none !important; }
    .site .nav-glass, .site .bottom-nav { backdrop-filter: none; -webkit-backdrop-filter: none; background: var(--surface-strong); }
}
.site .footer, .site .feature-shot, .site .kho-row, .site .app-tile { content-visibility: auto; contain-intrinsic-size: auto 120px; }
.site .footer { contain-intrinsic-size: auto 360px; }

/* Free tools: 2FA codes */
.site .tf-bar { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; }
.site .tf-bar span { display: block; height: 100%; background: var(--grad); transition: width .9s linear; }
.site .tf-list { display: flex; flex-direction: column; gap: .5rem; max-height: 560px; overflow-y: auto; }
.site .tf-row { display: flex; align-items: center; gap: .8rem; padding: .6rem .8rem; border-radius: .8rem; background: var(--surface-2); border: 1px solid var(--line); }
.site .tf-code { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 1.25rem; font-weight: 800; letter-spacing: .08em; min-width: 7.5rem; }

/* Site dialog (replaces browser confirm/alert) */
.nc-modal { position: fixed; inset: 0; z-index: 2100; display: grid; place-items: center; padding: 1rem; background: rgba(3,5,12,.62); }
.nc-card { width: min(420px, 100%); padding: 1.2rem 1.25rem 1rem; border-radius: 1.1rem; background: var(--surface-strong, #121729); border: 1px solid var(--line-strong, rgba(255,255,255,.12)); box-shadow: 0 24px 60px rgba(0,0,0,.45); color: var(--text, #e8ebf5); }
.nc-title { font-weight: 800; font-size: 1.05rem; margin-bottom: .35rem; }
.nc-text { color: var(--text-2, #c3c8d8); white-space: pre-line; margin-bottom: .9rem; }
.nc-qty { margin-bottom: .9rem; }
.nc-qty label { display: block; font-size: .8rem; color: var(--muted, #8a91a8); margin-bottom: .3rem; }
.nc-qty-box { display: flex; align-items: stretch; gap: .35rem; }
.nc-qty-box input { flex: 1 1 auto; min-width: 0; text-align: center; font-weight: 700; font-size: 1.05rem; border-radius: .6rem; border: 1px solid var(--line, rgba(255,255,255,.1)); background: var(--surface-2, rgba(255,255,255,.04)); color: inherit; padding: .4rem; }
.nc-qty-box button { width: 2.6rem; border-radius: .6rem; border: 1px solid var(--line, rgba(255,255,255,.1)); background: var(--surface-2, rgba(255,255,255,.04)); color: inherit; font-size: 1.2rem; font-weight: 700; }
.nc-total { margin-top: .45rem; font-weight: 700; color: var(--ok, #6ee7b7); }
.nc-actions { display: flex; justify-content: flex-end; gap: .5rem; }

/* AWS proxy: API rows */
.site .aws-acc-head, .site .aws-acc-row { display: grid; grid-template-columns: 1.6rem minmax(0, 1fr) minmax(0, 1.3fr) auto; gap: .4rem; align-items: center; }
.site .aws-acc-head { padding: 0 0 .25rem; }
.site .aws-acc-rows { display: flex; flex-direction: column; gap: .35rem; max-height: 320px; overflow-y: auto; }
.site .aws-acc-no { font-size: .78rem; color: var(--muted); text-align: center; }
.site .aws-acc-st { min-width: 1.8rem; text-align: center; font-size: .75rem; font-weight: 700; border-radius: .5rem; padding: .1rem .3rem; }
.site .aws-acc-st.ok { background: var(--ok-bg); color: var(--ok); }
.site .aws-acc-st.bad { background: var(--bad-bg); color: var(--red); }
.site .aws-acc-st.wait { color: var(--muted); }
@media (max-width: 575px) { .site .aws-acc-head { display: none; } .site .aws-acc-row { grid-template-columns: 1.4rem minmax(0, 1fr) auto; } .site .aws-acc-row input[data-k=s] { grid-column: 2; } }

.nc-modal.d-none { display: none; }

/* Topbar ticker (Admin → Cài đặt → Dòng chữ chạy) */
.site .ticker { flex: 1 1 auto; min-width: 0; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.site .ticker-track { display: inline-flex; white-space: nowrap; animation: ticker var(--ticker-time, 40s) linear infinite; will-change: transform; }
.site .ticker:hover .ticker-track { animation-play-state: paused; }
.site .ticker-group { display: inline-flex; }
.site .ticker-item { padding: 0 1.4rem 0 0; color: var(--text-2); }
.site .ticker-item::after { content: "•"; margin-left: 1.4rem; color: var(--muted); opacity: .6; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .site .ticker-track { animation: none; } .site .ticker { overflow-x: auto; } }

/* Chat Online (visitor) */
.contact-float .c-chat { display: flex; align-items: center; gap: .5rem; padding: .45rem .8rem; border-radius: 999px; border: 0; color: #fff; font-weight: 600; font-size: .9rem; background: linear-gradient(120deg, #8b5cf6, #ec4899); box-shadow: 0 10px 25px rgba(0,0,0,.3); position: relative; }
.contact-float .c-badge, .contact-toggle .c-badge { min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 999px; background: #ef4444; color: #fff; font-size: .7rem; line-height: 1.15rem; text-align: center; }
.contact-toggle { position: relative; }
.contact-toggle .c-badge { position: absolute; top: -.2rem; right: -.2rem; box-shadow: 0 0 0 2px var(--bg, #070912); }
.chat-box { position: fixed; right: 1rem; bottom: 5rem; z-index: 1040; width: min(360px, calc(100vw - 1.5rem)); height: min(520px, calc(100vh - 7rem)); display: flex; flex-direction: column; border-radius: 1.1rem; overflow: hidden;
  background: var(--surface-strong, #121729); border: 1px solid var(--line-strong, rgba(255,255,255,.12)); box-shadow: 0 24px 60px rgba(0,0,0,.45); color: var(--text, #e8ebf5); }
.chat-box.d-none { display: none; }
.chat-head { display: flex; align-items: center; gap: .6rem; padding: .7rem .8rem; background: linear-gradient(120deg, #7c3aed, #2563eb); color: #fff; }
.chat-head b { display: block; font-size: .95rem; }
.chat-head small { display: block; font-size: .74rem; opacity: .85; }
.chat-head small.on::before { content: ""; display: inline-block; width: .45rem; height: .45rem; border-radius: 50%; background: #4ade80; margin-right: .3rem; vertical-align: middle; }
.chat-avatar { width: 2.2rem; height: 2.2rem; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.18); font-size: 1.1rem; flex: 0 0 auto; }
.chat-x { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1rem; opacity: .85; }
.chat-body { flex: 1 1 auto; overflow-y: auto; padding: .8rem; display: flex; flex-direction: column; gap: .45rem; }
.chat-msg { display: flex; }
.chat-msg.me { justify-content: flex-end; }
.chat-bubble { max-width: 82%; padding: .45rem .7rem; border-radius: 1rem; background: var(--surface-2, rgba(255,255,255,.06)); border: 1px solid var(--line, rgba(255,255,255,.08)); }
.chat-msg.me .chat-bubble { background: linear-gradient(120deg, #7c3aed, #2563eb); color: #fff; border-color: transparent; border-bottom-right-radius: .3rem; }
.chat-msg.them .chat-bubble { border-bottom-left-radius: .3rem; }
.chat-text { white-space: pre-wrap; word-break: break-word; font-size: .9rem; }
.chat-who { display: block; font-size: .7rem; font-weight: 700; color: var(--muted, #8a91a8); }
.chat-time { display: block; font-size: .66rem; opacity: .6; text-align: right; margin-top: .1rem; }
.chat-intro { display: grid; grid-template-columns: 1fr 1fr; gap: .35rem; padding: .5rem .6rem 0; border-top: 1px solid var(--line, rgba(255,255,255,.08)); }
.chat-intro.d-none { display: none; }
.chat-form { display: flex; align-items: flex-end; gap: .4rem; padding: .55rem .6rem; border-top: 1px solid var(--line, rgba(255,255,255,.08)); }
.chat-form textarea { flex: 1 1 auto; min-width: 0; resize: none; border-radius: .8rem; border: 1px solid var(--line, rgba(255,255,255,.1)); background: var(--surface-2, rgba(255,255,255,.04)); color: inherit; padding: .45rem .65rem; font-size: .9rem; max-height: 120px; }
.chat-form button { width: 2.4rem; height: 2.4rem; border-radius: 50%; border: 0; color: #fff; background: linear-gradient(120deg, #7c3aed, #2563eb); flex: 0 0 auto; }
@media (max-width: 991.98px) { .chat-box { bottom: calc(8.6rem + env(safe-area-inset-bottom)); right: .6rem; } }

.sale-toast .toast-qty { color: var(--ok, #22c55e); }
.sale-toast .toast-prod { max-width: 15rem; color: var(--text-2); }
.contact-float.chat-on .contact-list { display: none; }

/* Pinned ticker bar: the top bar (ticker + language/currency) stays on screen, the navbar sticks right under it */
.site { --tb: 32px; }
.site .topbar { position: sticky; top: 0; z-index: 1032; height: var(--tb); padding: 0; display: flex; align-items: center; }
.site .topbar > .container { height: 100%; }
.site .nav-glass.sticky-top { top: var(--tb); }
.site .gallery-groups { top: calc(64px + var(--tb)); }
@media (min-width: 1200px) { .site .buff-side { top: calc(76px + var(--tb)); max-height: calc(100vh - 92px - var(--tb)); } }
@media (min-width: 1400px) { .site .buff-info { top: calc(76px + var(--tb)); } }
@media (min-width: 992px) { .site .sidenav { top: calc(57px + var(--tb)); height: calc(100vh - 57px - var(--tb)); } }

/* Proxy shop API (/proxy-api) */
.site .px-cats { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .6rem; }
.site .px-cat { display: flex; align-items: center; gap: .7rem; text-align: left; padding: .75rem .9rem; border-radius: 1rem; background: var(--surface); border: 1px solid var(--line-strong); color: var(--text-2); min-width: 0; }
.site .px-cat > i { font-size: 1.35rem; width: 2.4rem; height: 2.4rem; border-radius: .8rem; display: grid; place-items: center; background: var(--surface-2); flex: 0 0 auto; }
.site .px-cat:hover { border-color: var(--active-line); color: var(--text-strong); }
.site .px-cat.active { border-color: transparent; background: var(--grad); color: #fff; box-shadow: var(--glow); }
.site .px-cat.active > i { background: rgba(255, 255, 255, .2); }
.site .px-cat.active small { color: rgba(255, 255, 255, .85) !important; }
.site #px-servers .chip.active { background: var(--grad); color: #fff; border-color: transparent; }
.site .px-sum { display: grid; grid-template-columns: auto 1fr; gap: .35rem 1rem; font-size: .9rem; }
.site .px-sum dt { color: var(--muted); font-weight: 500; }
.site .px-sum dd { margin: 0; text-align: right; font-weight: 600; color: var(--text-strong); min-width: 0; overflow-wrap: anywhere; }
.site .px-total { display: flex; justify-content: space-between; align-items: baseline; padding: .7rem .9rem; border-radius: .9rem; background: var(--surface-2); border: 1px solid var(--line); }
.site .px-total b { font-size: 1.35rem; }
.site .px-orders { display: grid; gap: .6rem; }
.site .px-order { padding: .7rem .85rem; border-radius: .9rem; border: 1px solid var(--line); background: var(--surface); }

/* Tăng tương tác MXH: several links at once (+ / ×), auto ID */
.site .link-rows { display: grid; gap: .45rem; }
.site .link-row { display: grid; grid-template-columns: 1.6rem 1fr auto auto; gap: .35rem; align-items: start; }
.site .link-no { font-size: .8rem; color: var(--muted); text-align: center; padding-top: .55rem; }
.site .link-cell { min-width: 0; }
.site .link-hint { margin-top: .2rem; overflow-wrap: anywhere; }
.site .link-hint:empty { display: none; }
.site .link-btn { padding: .375rem .6rem; }

/* Thuê VPS */
.site .vps-table tbody tr { cursor: pointer; }
.site .vps-login { display: flex; flex-wrap: wrap; gap: .4rem 1.2rem; font-size: .9rem; padding: .5rem .7rem; border-radius: .7rem; background: var(--surface-2); border: 1px solid var(--line); }
.site .vps-login b { color: var(--text-strong); overflow-wrap: anywhere; }
