/* ============================================
   💎 CYGNUS STORE – Premium Light & Dark Theme System
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Anuphan:wght@400;500;600;700&family=Noto+Sans+Thai:wght@400;500;600;700&family=Outfit:wght@400;500;600;700&display=swap');

/* ── DEFAULT DARK THEME VARIABLES (Progame / RENX) ── */
:root {
    --primary: #ed2052;
    --primary-rgb: 237, 32, 82;
    --secondary: #9f1239;
    --secondary-rgb: 159, 18, 57;
    
    --bg-body: #000000;
    --bg-card: #101013;
    --bg-card-alt: #141416;
    --bg-nav: rgba(0, 0, 0, 0.78);
    --text-main: rgba(255, 255, 255, 0.95);
    --text-heading: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.55);
    --border: rgba(255, 255, 255, 0.055);
    --border-light: rgba(255, 255, 255, 0.08);
    --card-shadow: none;
    --glass-bg: rgba(16, 16, 19, 0.92);
    --store-max: 1152px;
}

/* ลากเลือกข้อความ: ตัวอักษรและยอดเงินอ่านชัด ไม่ถูกสีเดิมกลืน */
::selection,
*::selection {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: none !important;
}
::-moz-selection,
*::-moz-selection {
    background: #1d4ed8 !important;
    color: #ffffff !important;
    text-shadow: none !important;
}

/* ── LIGHT THEME OVERRIDE (เมื่อเลือก Light Mode) ── */
body.theme-light {
    --bg-body: #f4f6f9;
    --bg-card: #ffffff;
    --bg-card-alt: #f8fafc;
    --bg-nav: rgba(255, 255, 255, 0.92);
    --text-main: #1e293b;
    --text-heading: #0f172a;
    --text-muted: #475569;
    --border: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.12);
    --card-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
    --glass-bg: rgba(255, 255, 255, 0.75);
}

body.theme-light {
    background: var(--bg-body) !important;
    background-image: radial-gradient(circle at 50% 0%, rgba(var(--primary-rgb), 0.08) 0%, transparent 60%) !important;
    color: var(--text-main) !important;
}

body.theme-light .navbar {
    background: var(--bg-nav) !important;
    border-bottom: 1px solid var(--border) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
}
body.theme-light .navbar-text-brand {
    background: linear-gradient(135deg, var(--text-heading) 0%, var(--primary) 100%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}
body.theme-light .nav-link {
    color: var(--text-main) !important;
}
body.theme-light .nav-link:hover {
    background: rgba(var(--primary-rgb), 0.1) !important;
    color: var(--primary) !important;
}
body.theme-light .btn-login {
    color: var(--text-main) !important;
    border-color: var(--border) !important;
}
body.theme-light .btn-login:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}
body.theme-light .offcanvas {
    background: #ffffff !important;
    border-left: 1px solid var(--border) !important;
}
body.theme-light .offcanvas .nav-link {
    color: var(--text-main) !important;
}

/* Light Mode Cards */
body.theme-light .card-ryzex,
body.theme-light .card,
body.theme-light .xez-card,
body.theme-light .admin-sidebar,
body.theme-light .stat-card {
    background: #ffffff !important;
    border: 1px solid var(--border) !important;
    color: var(--text-main) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05) !important;
}
body.theme-light .card-ryzex:hover,
body.theme-light .card:hover,
body.theme-light .xez-card:hover {
    border-color: var(--primary) !important;
    box-shadow: 0 10px 30px rgba(var(--primary-rgb), 0.15) !important;
}
body.theme-light h1,
body.theme-light h2,
body.theme-light h3,
body.theme-light h4,
body.theme-light h5,
body.theme-light h6,
body.theme-light .text-white {
    color: var(--text-heading) !important;
}
body.theme-light p,
body.theme-light span,
body.theme-light label {
    color: var(--text-main);
}
body.theme-light .text-muted {
    color: var(--text-muted) !important;
}

/* Light Mode Inputs & Tables */
body.theme-light .form-control,
body.theme-light .form-select,
body.theme-light select,
body.theme-light input:not([type="radio"]):not([type="checkbox"]):not([type="color"]):not(.btn-check) {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    color-scheme: light !important;
}
body.theme-light .form-control:focus,
body.theme-light .form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15) !important;
}
body.theme-light select option {
    background: #ffffff !important;
    color: #0f172a !important;
}

body.theme-light .table { color: var(--text-main) !important; }
body.theme-light .table thead th {
    background: #f1f5f9 !important;
    color: var(--primary) !important;
}
body.theme-light .table td { border-color: var(--border) !important; color: var(--text-main) !important; }

/* Light Mode Footer */
body.theme-light .site-footer,
body.theme-light footer {
    background: #ffffff !important;
    border-top: 1px solid var(--border) !important;
    color: var(--text-main) !important;
}
body.theme-light .footer-title { color: var(--text-heading) !important; }
body.theme-light .footer-desc { color: var(--text-muted) !important; }
body.theme-light .footer-links a { color: var(--text-muted) !important; }
body.theme-light .footer-links a:hover { color: var(--primary) !important; }
body.theme-light .footer-bottom { border-top-color: var(--border) !important; color: var(--text-muted) !important; }

/* Light Mode Buttons */
body.theme-light .btn-secondary,
body.theme-light .btn-light {
    background: #f1f5f9 !important;
    color: var(--text-main) !important;
    border-color: #cbd5e1 !important;
}

/* ── BASE STYLES ── */
*, *::before, *::after { box-sizing: border-box; }

html {
    overflow-x: auto;
    overscroll-behavior-x: auto;
}
html, body {
    font-family: Anuphan, "Noto Sans Thai", "IBM Plex Sans Thai", Prompt, sans-serif !important;
    background: var(--bg-body);
    background-image: none;
    color: var(--text-main);
    min-height: 100vh;
    font-size: 15px;
    line-height: 1.55;
}
body {
    overflow-x: visible;
}
main.store-main,
main.admin-page {
    max-width: 100%;
    overflow-x: clip;
}
h1, .h1 { font-size: 1.4rem !important; font-weight: 700; line-height: 1.25; }
h2, .h2 { font-size: 1.22rem !important; font-weight: 700; line-height: 1.3; }
h3, .h3 { font-size: 1.08rem !important; font-weight: 700; line-height: 1.35; }
h4, .h4 { font-size: 1rem !important; font-weight: 700; line-height: 1.35; }
h5, .h5 { font-size: 0.94rem !important; font-weight: 650; line-height: 1.4; }
h6, .h6 { font-size: 0.86rem !important; font-weight: 650; line-height: 1.4; }
p { font-size: 0.92rem; }

h1,h2,h3,h4,h5,h6 {
    color: var(--text-heading);
    font-weight: 700;
}

p, span, label {
    color: var(--text-main);
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: 0.2s;
}
a:hover { color: var(--secondary); }

hr {
    border: none;
    border-top: 1px solid var(--border);
    opacity: 1;
}

/* ── SCROLLBAR ── */
::-webkit-scrollbar { width: 7px; height: 7px; }
::-webkit-scrollbar-track { background: var(--bg-body); }
::-webkit-scrollbar-thumb { background: rgba(var(--primary-rgb), 0.3); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ── NAVBAR ── */
.main-navbar,
.navbar {
    background: #000000 !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
    box-shadow: inset 0 1px 0 rgba(125, 211, 252, 0.28);
    padding: 0 !important;
    min-height: 58px;
    z-index: 10000;
}
.store-nav {
    display: flex;
    align-items: center;
    gap: 12px;
    padding-left: 28px !important;
    padding-right: 28px !important;
    max-width: none;
    min-height: 58px;
    margin: 0;
}
.main-navbar .navbar-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
    margin-right: 4px;
    max-width: 180px;
    min-width: 0;
    overflow: visible;
    position: relative;
}
.navbar-brand img {
    height: 28px;
    width: auto;
    max-width: 140px;
    object-fit: contain;
    flex-shrink: 0;
    filter: none;
}
.navbar-text-brand {
    font-size: 0.98rem;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: var(--text-heading) !important;
    background: none;
    -webkit-text-fill-color: unset;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.navbar-text-brand::after {
    display: none;
}
.store-nav-links {
    flex: 1 1 auto;
    min-width: 0;
    justify-content: center !important;
    overflow: visible;
}
.store-nav-links .navbar-nav {
    flex-wrap: nowrap;
    align-items: center;
    gap: 2px;
}
.nav-link, .nav-link-xez {
    color: #fff !important;
    font-weight: 500;
    padding: 0 11px !important;
    height: 34px;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12.5px;
    transition: 0.2s ease;
    border-radius: 8px !important;
    white-space: nowrap;
    line-height: 1.2;
    position: relative;
}
.nav-link:hover, .nav-link-xez:hover {
    background: rgba(var(--primary-rgb), 0.13) !important;
    color: #fff !important;
    transform: none !important;
    text-shadow: none !important;
}
.nav-tabs {
    border-bottom: 1px solid var(--border) !important;
}
.nav-tabs .nav-link {
    height: auto !important;
    padding: 8px 14px !important;
    color: var(--text-muted) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
}
.nav-tabs .nav-link.active,
.nav-tabs .nav-link.active i {
    color: #111 !important;
    background: #fff !important;
    border-color: var(--border) !important;
}
.main-navbar .nav-link.active {
    background: rgba(var(--primary-rgb), 0.28) !important;
    color: #fff !important;
    box-shadow: none;
}
.main-navbar .nav-link.active::after {
    display: none;
}
.nav-link i, .nav-link-xez i {
    color: var(--primary) !important;
    font-size: 0.92rem;
    width: 1em;
    text-align: center;
    flex-shrink: 0;
}
.nav-link-points i {
    color: #fbbf24 !important;
}
.main-navbar .nav-link-points.active {
    background: rgba(251, 191, 36, 0.16) !important;
}
.main-navbar .nav-link.active i,
.main-navbar .nav-link:hover i {
    color: var(--primary) !important;
}
.nav-link-contact,
.nav-contact-btn {
    background: transparent !important;
    border: 0 !important;
    border-radius: 999px !important;
    height: 28px;
    padding: 0 6px 0 2px !important;
    font-size: 11px !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    text-decoration: none !important;
    white-space: nowrap;
    font-weight: 600;
}
.nav-line-mark {
    width: 22px;
    height: 22px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 0 0 1px rgba(6,199,85,.25);
}
.nav-line-mark svg {
    display: block;
    width: 22px;
    height: 22px;
}
.nav-contact-text {
    font-size: 11px;
    font-weight: 650;
    color: #d4d4d8;
}
.nav-contact-btn i.fa-line {
    display: none;
}
.nav-link-contact.active,
.nav-link-contact:hover,
.nav-contact-btn.active,
.nav-contact-btn:hover {
    background: rgba(6,199,85,.12) !important;
    border-color: transparent !important;
    color: #fff !important;
}
.nav-contact-btn:hover .nav-contact-text {
    color: #fff;
}
.store-nav-user {
    flex: 0 0 auto;
    gap: 10px;
    margin-left: auto;
}

/* ปุ่มหลังบ้าน — กลางแถบเมนู กดง่าย (admin เท่านั้น) */
.nav-admin-center {
    align-items: center;
    justify-content: center;
    gap: 7px;
    height: 34px;
    padding: 0 14px !important;
    border-radius: 999px !important;
    font-size: 12.5px !important;
    font-weight: 700 !important;
    letter-spacing: 0.01em;
    color: #fff !important;
    text-decoration: none !important;
    white-space: nowrap;
    background: linear-gradient(135deg, #7c3aed 0%, #db2777 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    box-shadow: 0 0 0 1px rgba(124, 58, 237, 0.25), 0 6px 18px rgba(219, 39, 119, 0.28);
    transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}
.main-navbar .nav-link.nav-admin-center {
    display: inline-flex;
}
.nav-admin-center i {
    color: #fff !important;
    font-size: 0.95em;
}
.nav-admin-center:hover,
.nav-admin-center:focus-visible,
.main-navbar .nav-link.nav-admin-center:hover {
    color: #fff !important;
    filter: brightness(1.08);
    transform: translateY(-1px);
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%) !important;
    box-shadow: 0 0 0 1px rgba(236, 72, 153, 0.35), 0 8px 22px rgba(219, 39, 119, 0.38);
}
.main-navbar .nav-link.nav-admin-center.active,
.main-navbar .nav-link.nav-admin-center.active::after {
    background: linear-gradient(135deg, #8b5cf6 0%, #ec4899 100%) !important;
    color: #fff !important;
}
.main-navbar .nav-link.nav-admin-center.active::after {
    display: none;
}
/* ปุ่มมือถือ: ซ่อนบนเดสก์ท็อปเสมอ (อย่าใช้ display:!important ทับ Bootstrap) */
.nav-mobile-actions {
    display: none;
    align-items: center;
    gap: 6px;
    margin-left: auto;
    flex-shrink: 0;
}
.nav-balance-mobile {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    height: 32px;
    padding: 0 10px;
    border-radius: 999px;
    text-decoration: none !important;
    color: #fdba74 !important;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .01em;
    white-space: nowrap;
    background: rgba(251, 146, 60, .12);
    border: 1px solid rgba(251, 146, 60, .35);
    box-shadow: 0 0 0 1px rgba(251, 146, 60, .06);
    max-width: 42vw;
    overflow: hidden;
}
.nav-balance-mobile i {
    font-size: 11px;
    color: #fb923c;
    flex-shrink: 0;
}
.nav-balance-mobile span {
    overflow: hidden;
    text-overflow: ellipsis;
}
.nav-admin-mobile-bar {
    display: none !important;
}
@media (max-width: 991.98px) {
    .nav-mobile-actions {
        display: inline-flex;
    }
    .nav-admin-mobile-bar {
        display: inline-flex !important;
        margin-left: 0;
        margin-right: 0;
        height: 32px;
        padding: 0 10px !important;
        font-size: 12px !important;
        flex-shrink: 0;
    }
    .nav-mobile-actions .navbar-toggler {
        padding: 4px 6px;
        line-height: 1;
    }
}
@media (max-width: 380px) {
    .nav-balance-mobile span { font-size: 11px; }
    .nav-admin-mobile-bar span { display: none; }
}
.nav-admin-mobile-full {
    display: inline-flex !important;
    width: 100%;
    height: 46px;
    padding: 0 16px !important;
    font-size: 15px !important;
    box-shadow: 0 8px 24px rgba(219, 39, 119, 0.35);
}
.uam-item-admin {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.22), rgba(219, 39, 119, 0.18)) !important;
    border: 1px solid rgba(192, 132, 252, 0.35) !important;
    border-radius: 12px !important;
    margin-bottom: 4px;
    font-weight: 700;
}
.uam-item-admin:hover {
    background: linear-gradient(135deg, rgba(124, 58, 237, 0.32), rgba(219, 39, 119, 0.26)) !important;
}
.uam-admin-go {
    margin-left: auto;
    font-size: 11px;
    font-weight: 700;
    color: #e9d5ff;
    opacity: 0.9;
}
.user-avatar-btn {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(var(--primary-rgb), 0.45);
    color: var(--primary) !important;
    background: rgba(var(--primary-rgb), 0.08);
    text-decoration: none !important;
}
.user-avatar-btn:hover {
    background: rgba(var(--primary-rgb), 0.18);
    color: #fff !important;
}

.btn-navbar-register, .btn-register {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: #fff !important;
    border: none !important;
    padding: 8px 18px !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.30);
    transition: 0.3s !important;
    white-space: nowrap;
}
.btn-navbar-register:hover, .btn-register:hover {
    transform: translateY(-2px) !important;
    box-shadow: 0 8px 20px rgba(var(--primary-rgb), 0.40) !important;
    color: #fff !important;
}

.btn-login {
    color: var(--text-main) !important;
    font-weight: 600;
    background: transparent !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 12px !important;
    padding: 8px 16px !important;
    transition: 0.3s !important;
    white-space: nowrap;
}
.btn-login:hover {
    background: rgba(var(--primary-rgb), 0.08) !important;
    color: var(--primary) !important;
}

.dropdown-menu {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    box-shadow: var(--card-shadow) !important;
    padding: 10px !important;
}
.dropdown-item {
    color: var(--text-main) !important;
    border-radius: 10px !important;
    padding: 10px 16px !important;
    transition: 0.2s;
    white-space: nowrap;
}
.dropdown-item:hover {
    background: rgba(var(--primary-rgb), 0.10) !important;
    color: var(--primary) !important;
}
.dropdown-divider { border-color: var(--border) !important; }

.user-balance-badge {
    background: rgba(var(--primary-rgb), 0.16) !important;
    color: #fff !important;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 8px 14px;
    border-radius: 999px;
    border: 1px solid rgba(var(--primary-rgb), 0.28);
    white-space: nowrap;
}
.user-account-dropdown { position: relative; }

/* ── User Account Menu ── */
.user-account-menu {
    min-width: 260px !important;
    width: 260px;
    left: auto !important;
    right: 0 !important;
    transform: none !important;
    margin-top: 10px !important;
    padding: 0 !important;
    background: #18181b !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 18px !important;
    box-shadow: 0 20px 60px rgba(0,0,0,.55) !important;
    overflow: hidden;
}

/* header */
.uam-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 16px;
    background: rgba(255,255,255,.04);
    border-bottom: 1px solid rgba(255,255,255,.07);
}
.uam-avatar {
    width: 38px; height: 38px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb),.2);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
}
.uam-info { flex: 1; min-width: 0; }
.uam-name {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.uam-balance {
    color: #4ade80;
    font-size: 12px;
    font-weight: 600;
    margin-top: 1px;
}
.uam-topup-btn {
    width: 30px; height: 30px;
    border-radius: 8px;
    background: rgba(var(--primary-rgb),.15);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    font-size: 13px;
    text-decoration: none;
    flex-shrink: 0;
    transition: background .15s;
}
.uam-topup-btn:hover { background: rgba(var(--primary-rgb),.3); color: var(--primary); }

/* sections */
.uam-section { padding: 6px; }
.uam-section + .uam-section { border-top: 1px solid rgba(255,255,255,.06); }
.uam-section-last { border-top: 1px solid rgba(255,255,255,.06); }

.uam-divider-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: rgba(255,255,255,.3);
    padding: 8px 12px 2px;
    border-top: 1px solid rgba(255,255,255,.06);
}

.uam-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 10px;
    border-radius: 10px;
    color: rgba(255,255,255,.75) !important;
    text-decoration: none !important;
    font-size: 13px;
    font-weight: 500;
    transition: background .15s, color .15s;
    cursor: pointer;
}
.uam-item:hover {
    background: rgba(255,255,255,.07);
    color: #fff !important;
}
.uam-icon {
    width: 28px; height: 28px;
    border-radius: 8px;
    background: color-mix(in srgb, var(--ic) 15%, transparent);
    color: var(--ic);
    display: flex; align-items: center; justify-content: center;
    font-size: 12px;
    flex-shrink: 0;
}
.uam-logout { color: rgba(248,113,113,.8) !important; }
.uam-logout:hover { background: rgba(248,113,113,.1) !important; color: #f87171 !important; }

.shop-cat-menu {
    --bs-dropdown-min-width: 420px;
    min-width: 420px;
    padding: 16px !important;
    margin-top: 10px !important;
    left: 0 !important;
    right: auto !important;
    transform: none !important;
    background: #16161c !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 18px !important;
}
.shop-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    padding: 0 2px;
}
.shop-cat-head span {
    color: #a1a1aa;
    font-size: 0.8rem;
    font-weight: 700;
}
.shop-cat-head b {
    color: #e4e4e7;
    font-size: 0.8rem;
    font-weight: 800;
}
.shop-cat-all {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none !important;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff !important;
    margin-bottom: 12px;
}
.shop-cat-all-ico {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    background: rgba(255,255,255,.16);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.shop-cat-all strong {
    display: block;
    font-size: 0.95rem;
    font-weight: 800;
    line-height: 1.2;
}
.shop-cat-all small {
    display: block;
    opacity: 0.85;
    font-size: 0.75rem;
}
.shop-cat-search {
    position: relative;
    display: block;
    margin: 0 0 12px;
}
.shop-cat-search > i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,.45);
    font-size: 12px;
    pointer-events: none;
}
.shop-cat-search-input {
    width: 100%;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: #101014;
    color: #fff;
    padding: 0 14px 0 36px;
    font-size: 0.88rem;
}
.shop-cat-search-input::placeholder { color: rgba(255,255,255,.42); }
.shop-cat-search-input:focus {
    outline: none;
    border-color: rgba(var(--primary-rgb), .55);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .16);
}
.shop-cat-search-empty {
    color: #a1a1aa;
    font-size: 0.85rem;
    margin: 8px 0 0;
    text-align: center;
}
.shop-cat-prod-wrap {
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid rgba(255,255,255,.08);
}
.shop-cat-prod-label {
    color: #a1a1aa;
    font-size: 0.72rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin: 0 0 6px 2px;
}
.shop-cat-prod-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 4px;
    max-height: min(38vh, 280px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
}
.shop-cat-prod-grid::-webkit-scrollbar { width: 4px; }
.shop-cat-prod-grid::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), .35);
    border-radius: 99px;
}
.shop-cat-prod-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}
.shop-cat-prod-text b {
    font-size: 0.86rem;
    font-weight: 800;
    color: #f4f4f5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shop-cat-prod-text small {
    font-size: 0.7rem;
    font-weight: 600;
    color: #a1a1aa;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.shop-cat-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px 10px;
}
.shop-cat-grid[hidden],
.shop-cat-prod-wrap[hidden] { display: none !important; }
.shop-cat-grid a,
.shop-cat-item {
    color: #f4f4f5 !important;
    text-decoration: none !important;
    font-size: 0.88rem;
    font-weight: 700;
    padding: 7px 8px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
}
.shop-cat-item[hidden] { display: none !important; }
.shop-cat-grid a:hover,
.shop-cat-item:hover {
    background: rgba(255,255,255,.06);
    color: #fff !important;
}
.shop-cat-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    overflow: hidden;
    background: #0b0b0d;
    border: 1px solid rgba(255,255,255,.1);
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.shop-cat-ico img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.shop-cat-item span:last-child {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.mob-shop-wrap { margin-bottom: 4px; }
.mob-shop-toggle {
    border: 0;
    background: transparent;
    color: inherit;
    text-align: left;
    cursor: pointer;
}
.mob-shop-toggle::after { display: none !important; }
.mob-shop-chevron {
    font-size: 0.72rem;
    opacity: 0.55;
    transition: transform .2s ease;
}
.mob-shop-toggle[aria-expanded="true"] .mob-shop-chevron {
    transform: rotate(180deg);
}
.mob-shop-panel-wrap.collapsing,
.mob-shop-panel-wrap.show { overflow: visible; }
.mob-shop-panel {
    margin: 4px 0 8px;
    padding: 12px;
    border-radius: 16px;
    background: rgba(255,255,255,.03);
    border: 1px solid var(--border);
}
.mob-shop-panel .shop-cat-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
    font-size: 0.78rem;
}
.mob-shop-panel .shop-cat-head span { color: #a1a1aa; }
.mob-shop-panel .shop-cat-head b { color: #fff; font-size: 0.82rem; }
.mob-shop-panel .shop-cat-all { margin-bottom: 10px; }
.mob-shop-panel .shop-cat-grid {
    max-height: min(42vh, 320px);
    overflow-y: auto;
    overscroll-behavior: contain;
    padding-right: 2px;
}
.mob-shop-panel .shop-cat-grid::-webkit-scrollbar { width: 4px; }
.mob-shop-panel .shop-cat-grid::-webkit-scrollbar-thumb {
    background: rgba(var(--primary-rgb), .35);
    border-radius: 99px;
}
.mob-shop-panel .shop-cat-item {
    font-size: 0.8rem;
    padding: 6px 7px;
}
.mob-shop-panel .shop-cat-ico {
    width: 30px;
    height: 30px;
    border-radius: 8px;
}
.mob-shop-panel .shop-cat-heart {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    background: rgba(var(--primary-rgb), .12);
    border: 1px solid rgba(var(--primary-rgb), .28);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.82rem;
    font-weight: 700;
}
.shop-cat-empty {
    color: #a1a1aa;
    font-size: 0.85rem;
    margin: 8px 0 0;
    text-align: center;
}
.main-navbar .nav-item.dropdown .dropdown-toggle::after {
    margin-left: 6px;
    vertical-align: 2px;
    opacity: 0.7;
}
body.theme-light .shop-cat-menu {
    background: #fff !important;
    border-color: rgba(0,0,0,.1) !important;
}
body.theme-light .shop-cat-search-input {
    background: #f4f4f5;
    border-color: rgba(0,0,0,.1);
    color: #18181b;
}
body.theme-light .shop-cat-search-input::placeholder { color: #71717a; }
body.theme-light .shop-cat-search > i { color: #71717a; }
body.theme-light .shop-cat-prod-wrap {
    border-top-color: rgba(0,0,0,.08);
}
body.theme-light .shop-cat-prod-text b { color: #18181b; }
body.theme-light .shop-cat-prod-text small,
body.theme-light .shop-cat-prod-label { color: #71717a; }
body.theme-light .shop-cat-head span { color: #71717a; }
body.theme-light .shop-cat-head b,
body.theme-light .shop-cat-grid a,
body.theme-light .shop-cat-item { color: #18181b !important; }
body.theme-light .shop-cat-ico {
    background: #f4f4f5;
    border-color: rgba(0,0,0,.08);
}

/* ── OFFCANVAS (MOBILE MENU) ── */
.offcanvas {
    background: var(--bg-card) !important;
    border-left: 1px solid var(--border) !important;
    max-width: 300px;
}
.offcanvas .nav-link {
    padding: 12px 16px !important;
    border-radius: 12px !important;
    margin-bottom: 4px;
}
.offcanvas .nav-contact-btn {
    height: auto;
    padding: 8px 12px !important;
    width: fit-content;
    max-width: 100%;
}

/* ── CARDS ── */
.card-ryzex {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
    color: var(--text-main);
    transition: 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.card-ryzex:hover {
    transform: translateY(-5px);
    border-color: rgba(var(--primary-rgb), 0.35);
    box-shadow: 0 25px 70px rgba(var(--primary-rgb), 0.15);
}

.shop-price {
    display: inline-flex;
    align-items: baseline;
    gap: 8px;
    flex-wrap: wrap;
    justify-content: flex-end;
}
.shop-price--rank {
    flex-direction: column;
    align-items: flex-end;
    gap: 4px;
}
.shop-price-rank-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .01em;
    text-transform: none;
    color: #fff;
    padding: 5px 11px;
    border-radius: 10px;
    border: 1px solid #5b8ba1;
    background: rgba(30, 48, 64, .85);
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, .12);
}
.shop-price-frame {
    display: inline-flex;
    align-items: baseline;
    justify-content: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 10px;
    border: 1px solid #5b8ba1;
    background: rgba(30, 48, 64, .85);
    color: #fff;
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, .12);
}
.shop-price-was {
    color: #a1a1aa !important;
    font-size: 0.78em;
    font-weight: 500;
    text-decoration: line-through;
}
.shop-price-now {
    color: inherit;
    font-weight: 800;
}

.card-glass {
    background: var(--glass-bg);
    border: 1px solid var(--border);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-radius: 24px;
    box-shadow: var(--card-shadow);
}

.card, .bg-white, .bg-light, .bg-light-soft, .bg-light-alt {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px !important;
    color: var(--text-main);
}
.card:hover {
    border-color: rgba(var(--primary-rgb), 0.35) !important;
}

.xez-card {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 16px;
    transition: 0.25s ease;
}
.xez-card:hover {
    border-color: rgba(var(--primary-rgb), 0.35) !important;
    box-shadow: none;
}

/* ── BUTTONS ── */
.btn {
    font-family: Anuphan, "Noto Sans Thai", sans-serif !important;
    font-weight: 600;
    border-radius: 12px;
    transition: 0.3s;
}

.btn-primary, .bg-main, .btn.bg-main, .xez-btn-cyan {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.25);
}
.btn-primary:hover, .bg-main:hover, .btn.bg-main:hover, .xez-btn-cyan:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--primary-rgb), 0.40) !important;
    color: #fff !important;
}

.btn-success {
    background: linear-gradient(135deg, #22c55e, #16a34a) !important;
    color: #fff !important;
    border: none !important;
    box-shadow: 0 4px 15px rgba(34,197,94,0.25);
}
.btn-success:hover { transform: translateY(-2px); }

.btn-danger {
    background: linear-gradient(135deg, #ef4444, #dc2626) !important;
    color: #fff !important;
    border: none !important;
}
.btn-warning {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
    color: #fff !important;
    border: none !important;
}

.btn-secondary, .btn-light {
    background: rgba(var(--primary-rgb), 0.08) !important;
    color: var(--text-main) !important;
    border: 1px solid var(--border-light) !important;
}
.btn-secondary:hover, .btn-light:hover {
    background: rgba(var(--primary-rgb), 0.15) !important;
    color: var(--primary) !important;
}

.btn-outline-primary, .xez-btn-outline, .btn-outline-premium {
    background: transparent !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
    border-radius: 12px !important;
}
.btn-outline-primary:hover, .xez-btn-outline:hover, .btn-outline-premium:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

.btn.btn-sm,
.btn-group-sm > .btn {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 4px;
    white-space: nowrap !important;
    min-height: 28px;
    padding: 4px 10px !important;
    font-size: 12px !important;
    font-weight: 650 !important;
    line-height: 1.2 !important;
    border-radius: 999px;
}
.btn.btn-sm i {
    font-size: 11px;
    margin: 0 !important;
    line-height: 1;
}

.btn-buy {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff !important;
    border: none;
    border-radius: 14px;
    padding: 12px 20px;
    width: 100%;
    font-weight: 700;
    transition: 0.3s;
    box-shadow: 0 5px 15px rgba(var(--primary-rgb), 0.20);
}
.btn-buy:hover { transform: translateY(-3px); box-shadow: 0 10px 25px rgba(var(--primary-rgb), 0.35); }

/* ── FORMS ── */
.form-control, .form-select,
input[type="text"], input[type="email"], input[type="password"],
input[type="number"], input[type="file"], textarea, select {
    background: rgba(var(--primary-rgb), 0.05) !important;
    border: 1px solid var(--border-light) !important;
    border-radius: 12px !important;
    color: var(--text-heading) !important;
    padding: 12px 18px !important;
    transition: 0.2s;
    font-family: 'Prompt', 'Kanit', sans-serif !important;
}
.form-control:focus, .form-select:focus,
input[type="text"]:focus, input[type="email"]:focus, input[type="password"]:focus,
input[type="number"]:focus, textarea:focus, select:focus {
    background: rgba(var(--primary-rgb), 0.08) !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.15) !important;
    outline: none;
}
.form-label { color: var(--text-main) !important; font-weight: 600; margin-bottom: 8px; }

/* ── TABLES & DATATABLES ── */
.table, table.dataTable {
    color: var(--text-main) !important;
    background-color: transparent !important;
    border-collapse: collapse !important;
}
.table > :not(caption) > * > *, 
table.dataTable tbody tr, 
table.dataTable tbody td {
    background-color: transparent !important;
    color: var(--text-main) !important;
    border-color: var(--border) !important;
}
.table thead th, 
table.dataTable thead th {
    background-color: rgba(var(--primary-rgb), 0.08) !important;
    color: var(--primary) !important;
    border-bottom: 2px solid var(--border) !important;
    font-weight: 700 !important;
}
.table-hover tbody tr:hover, 
table.dataTable.hover tbody tr:hover,
table.dataTable.display tbody tr:hover {
    background-color: rgba(var(--primary-rgb), 0.05) !important;
}
.table-responsive {
    font-size: 0.875rem;
}
.table td, .table th,
table.dataTable td, table.dataTable th {
    padding: 8px 10px !important;
    vertical-align: middle;
    font-size: 13px;
}
.table .badge,
table.dataTable .badge {
    font-size: 10.5px !important;
    font-weight: 650 !important;
    padding: 3px 8px !important;
    line-height: 1.2;
}
.table .shop-os-badge,
table.dataTable .shop-os-badge {
    font-size: 10px !important;
    padding: 2px 7px !important;
    gap: 4px;
}
.table .text-main,
table.dataTable .text-main {
    font-size: 13px !important;
    font-weight: 700 !important;
}

/* DataTables Control Elements Wrapper */
.dataTables_wrapper {
    color: var(--text-main) !important;
    padding: 8px 0 12px;
}
.dataTables_wrapper .dataTables_length label,
.dataTables_wrapper .dataTables_filter label {
    display: inline-flex !important;
    align-items: center;
    gap: 8px;
    margin: 0;
    font-size: 13px;
    font-weight: 500;
}
.dataTables_wrapper .dataTables_length,
.dataTables_wrapper .dataTables_filter,
.dataTables_wrapper .dataTables_info,
.dataTables_wrapper .dataTables_processing,
.dataTables_wrapper .dataTables_paginate {
    color: var(--text-main) !important;
}
.dataTables_wrapper .dataTables_length select {
    background-color: rgba(var(--primary-rgb), 0.05) !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text-heading) !important;
    border-radius: 8px !important;
    width: auto !important;
    min-width: 56px;
    display: inline-block !important;
    min-height: 32px !important;
    height: 32px !important;
    padding: 2px 28px 2px 8px !important;
    font-size: 13px !important;
    font-family: 'Prompt', sans-serif !important;
}
.dataTables_wrapper .dataTables_filter input {
    background-color: rgba(var(--primary-rgb), 0.05) !important;
    border: 1px solid var(--border-light) !important;
    color: var(--text-heading) !important;
    border-radius: 8px !important;
    width: 180px !important;
    min-height: 32px !important;
    height: 32px !important;
    padding: 4px 10px !important;
    margin-left: 0 !important;
    font-size: 13px !important;
    font-family: 'Prompt', sans-serif !important;
}
.dataTables_wrapper .dataTables_filter input:focus,
.dataTables_wrapper .dataTables_length select:focus {
    outline: none !important;
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.15) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button {
    color: var(--text-main) !important;
    border-radius: 8px !important;
    border: 1px solid transparent !important;
    padding: 6px 12px !important;
    margin: 0 2px !important;
    transition: 0.2s !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
    background: rgba(var(--primary-rgb), 0.15) !important;
    color: var(--primary) !important;
    border-color: rgba(var(--primary-rgb), 0.3) !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.current, 
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
    background: linear-gradient(135deg, var(--primary), var(--secondary)) !important;
    color: #fff !important;
    border: 1px solid transparent !important;
}
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled, 
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:hover, 
.dataTables_wrapper .dataTables_paginate .paginate_button.disabled:active {
    color: var(--text-muted) !important;
    background: transparent !important;
    border: 1px solid transparent !important;
}

/* ── MODALS ── */
.modal {
    z-index: 20050 !important;
}
.modal-backdrop {
    z-index: 20040 !important;
}
.modal-dialog,
.modal-content {
    pointer-events: auto !important;
    position: relative;
    z-index: 20051;
}
.modal-content {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 24px !important;
    color: var(--text-main);
    overflow: hidden;
}
.swal2-container {
    z-index: 30000 !important;
}
.admin-main-panel,
.admin-main-panel:hover {
    overflow: visible !important;
    transform: none !important;
}
.dataTables_wrapper {
    position: relative;
    z-index: 1;
}
.modal-header { border-bottom: 1px solid var(--border) !important; }
.modal-footer { border-top: 1px solid var(--border) !important; }
.modal-title { color: var(--text-heading) !important; }

/* ── BADGES ── */
.badge {
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 20px;
}
.badge.bg-success, .bg-success-soft { background: rgba(34,197,94,0.15) !important; color: #22c55e !important; border: 1px solid rgba(34,197,94,0.20) !important; }
.badge.bg-danger, .bg-danger-soft { background: rgba(239,68,68,0.15) !important; color: #ef4444 !important; border: 1px solid rgba(239,68,68,0.20) !important; }
.badge.bg-warning, .bg-warning-soft { background: rgba(245,158,11,0.15) !important; color: #f59e0b !important; border: 1px solid rgba(245,158,11,0.20) !important; }
.badge.bg-primary, .bg-primary-soft { background: rgba(var(--primary-rgb), 0.15) !important; color: var(--primary) !important; border: 1px solid rgba(var(--primary-rgb), 0.20) !important; }
.badge.bg-info, .bg-info-soft { background: rgba(59,130,246,0.15) !important; color: #60a5fa !important; border: 1px solid rgba(59,130,246,0.20) !important; }

/* ── TEXT UTILITIES ── */
.text-gradient {
    background: linear-gradient(135deg, var(--text-heading) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.text-main, .text-primary-custom, .text-xez-primary, .text-primary { color: var(--primary) !important; }
.text-dark { color: var(--text-heading) !important; }
.text-muted, .text-secondary { color: var(--text-muted) !important; }
.x-small { font-size: 0.72rem; }

/* ── ADMIN SIDEBAR ── */
.admin-sidebar {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 20px;
}
.admin-sidebar .list-group-item {
    background: transparent !important;
    border: none !important;
    color: var(--text-heading) !important;
    padding: 11px 16px;
    margin-bottom: 3px;
    border-radius: 12px !important;
    transition: 0.2s;
    display: flex;
    align-items: center;
    font-size: 0.92rem;
    font-weight: 600;
}
.admin-sidebar .list-group-item:hover {
    background: rgba(var(--primary-rgb), 0.08) !important;
    color: var(--primary) !important;
}
.admin-sidebar .list-group-item.active {
    background: rgba(var(--primary-rgb), 0.15) !important;
    color: var(--primary) !important;
    border: 1px solid rgba(var(--primary-rgb), 0.30) !important;
    box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.10);
}
.admin-sidebar .list-group-item i {
    width: 22px;
    margin-right: 10px;
    font-size: 0.90rem;
}

/* ── STAT CARDS ── */
.stat-card, .stat-card-admin {
    background: var(--bg-card) !important;
    border: 1px solid var(--border) !important;
    border-radius: 20px;
    padding: 24px;
    transition: 0.3s;
}
.stat-card:hover, .stat-card-admin:hover {
    border-color: var(--primary) !important;
    background: rgba(var(--primary-rgb), 0.05) !important;
    transform: translateY(-4px);
}
.stat-icon {
    width: 48px; height: 48px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 14px;
    background: rgba(var(--primary-rgb), 0.10) !important;
    border: 1px solid rgba(var(--primary-rgb), 0.15);
    color: var(--primary);
    font-size: 1.3rem;
    transition: 0.4s;
    flex-shrink: 0;
}
.stat-icon i { color: var(--primary) !important; }
.stat-label { font-size: 0.75rem; color: var(--text-muted); font-weight: 500; text-transform: uppercase; letter-spacing: 0.5px; }
.stat-number { font-size: 2rem; font-weight: 800; line-height: 1; display: flex; align-items: baseline; gap: 4px; color: var(--text-heading) !important; }
.stat-number small { font-size: 0.9rem; font-weight: 500; opacity: 0.7; }

/* ── PRELOADER ── */
html.skip-loader #preloader { display: none !important; }
html.fast-nav [data-aos] {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
}
#preloader {
    position: fixed;
    inset: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 20%, rgba(56, 189, 248, .16), transparent 28%),
        radial-gradient(circle at 80% 25%, rgba(var(--primary-rgb), .22), transparent 32%),
        radial-gradient(circle at 50% 80%, rgba(168, 85, 247, .16), transparent 30%),
        #07070c;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 99999;
    opacity: 1;
    transition: opacity .18s ease;
}
#preloader.is-done { opacity: 0; pointer-events: none; }
.bn-loader {
    position: relative;
    width: 148px;
    height: 148px;
    display: grid;
    place-items: center;
}
.bn-loader-rings {
    position: absolute;
    inset: 0;
}
.bn-loader-rings span {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 3px solid transparent;
    animation: bn-spin .55s linear infinite;
}
.bn-loader-rings span:nth-child(1) {
    border-top-color: #fb7185;
    border-right-color: #f43f5e;
    filter: drop-shadow(0 0 8px rgba(244, 63, 94, .55));
}
.bn-loader-rings span:nth-child(2) {
    inset: 12px;
    border-bottom-color: #38bdf8;
    border-left-color: #22d3ee;
    animation-duration: .72s;
    animation-direction: reverse;
    filter: drop-shadow(0 0 8px rgba(34, 211, 238, .5));
}
.bn-loader-rings span:nth-child(3) {
    inset: 24px;
    border-top-color: #fbbf24;
    border-right-color: #a78bfa;
    animation-duration: .48s;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, .45));
}
.bn-loader-core {
    width: 64px;
    height: 64px;
    border-radius: 18px;
    overflow: hidden;
    background: rgba(255,255,255,.06);
    box-shadow: 0 0 0 1px rgba(255,255,255,.08), 0 10px 30px rgba(0,0,0,.35);
    display: grid;
    place-items: center;
    z-index: 1;
}
.bn-loader-core img {
    width: 42px;
    height: 42px;
    object-fit: contain;
}
.bn-loader-text {
    position: absolute;
    top: calc(100% + 16px);
    left: 50%;
    transform: translateX(-50%);
    margin: 0;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    background: linear-gradient(90deg, #fb7185, #38bdf8, #fbbf24);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
@keyframes bn-spin {
    to { transform: rotate(360deg); }
}
.loader-content { text-align: center; }
.loader-logo img {
    width: 100px; height: auto;
    animation: loader-pulse 1.5s ease-in-out infinite;
    filter: drop-shadow(0 0 15px rgba(var(--primary-rgb), 0.40));
}
@keyframes loader-pulse {
    0%,100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.1); opacity: 0.8; }
}
.loader-bar {
    width: 200px; height: 4px;
    background: rgba(var(--primary-rgb), 0.15);
    border-radius: 10px;
    margin: 20px auto 0; overflow: hidden; position: relative;
}
.loader-progress {
    position: absolute; top: 0; left: 0; width: 0%; height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}
.loader-text { color: var(--text-heading); letter-spacing: 2px; font-size: 0.9rem; text-transform: uppercase; }

/* ── FOOTER ── */
.site-footer, footer {
    background: var(--bg-card) !important;
    border-top: 1px solid var(--border) !important;
    padding: 55px 0 30px;
    margin-top: 70px;
    color: var(--text-main);
}
.footer-brand .footer-logo {
    width: 70px; height: 70px; object-fit: contain;
    margin-bottom: 15px; border-radius: 18px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}
.footer-title { font-weight: 700; color: var(--text-heading); margin-bottom: 10px; }
.footer-desc { color: var(--text-muted); font-size: 0.9rem; line-height: 1.6; }
.footer-heading { color: var(--primary); font-weight: 600; margin-bottom: 18px; font-size: 0.95rem; }
.footer-links { list-style: none; padding: 0; margin: 0; }
.footer-links li { margin-bottom: 10px; }
.footer-links a { color: var(--text-muted); text-decoration: none; font-size: 0.88rem; transition: 0.3s; }
.footer-links a:hover { color: var(--primary); padding-left: 5px; }
.footer-bottom {
    border-top: 1px solid var(--border);
    margin-top: 40px; padding-top: 25px;
    text-align: center; color: var(--text-muted);
}
.footer-bottom p { margin: 4px 0; font-size: 0.85rem; }

/* ── PRODUCT CARDS ── */
.product-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 20px;
    overflow: hidden;
    transition: 0.3s;
}
.product-card:hover {
    transform: translateY(-8px);
    border-color: rgba(var(--primary-rgb), 0.40);
    box-shadow: 0 0 30px rgba(var(--primary-rgb), 0.15);
}

/* ── SCROLL TO TOP ── */
#scroll-to-top {
    position: fixed; bottom: 28px; right: 28px;
    width: 44px; height: 44px;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: 12px; color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; z-index: 1000;
    opacity: 0; visibility: hidden;
    transition: 0.3s; backdrop-filter: blur(10px);
}
#scroll-to-top.show { opacity: 1; visibility: visible; }
#scroll-to-top:hover {
    background: var(--primary); color: #fff;
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(var(--primary-rgb), 0.30);
}

/* ── POPUP STYLES ── */
#announcementModal .modal-dialog {
    max-width: 420px;
}
.popup-content {
    border-radius: 22px !important;
    border: 1px solid rgba(var(--primary-rgb), .45) !important;
    overflow: hidden;
    background: #0b0b0d;
    box-shadow: 0 0 0 1px rgba(var(--primary-rgb), .18), 0 24px 60px rgba(0,0,0,.55);
}
.popup-slide { display: none; }
.popup-slide.active { display: block; }
.popup-media {
    position: relative;
    aspect-ratio: 16 / 9;
    background: #050506;
    overflow: hidden;
}
.popup-media img,
.popup-media video.popup-video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #050506;
}
.popup-media-frame {
    width: 100%;
    height: 100%;
}
.popup-media-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.popup-media-close {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    width: 32px;
    height: 32px;
    border: 0;
    border-radius: 999px;
    background: rgba(0,0,0,.62);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.popup-unmute {
    position: absolute;
    left: 10px;
    bottom: 10px;
    z-index: 3;
    border: 0;
    border-radius: 999px;
    background: rgba(0,0,0,.72);
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    padding: 6px 12px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}
.popup-body {
    padding: 16px 18px 8px;
    text-align: center;
    background: #0b0b0d;
}
.popup-title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0 0 8px;
}
.popup-text {
    color: rgba(255,255,255,.78);
    font-size: .9rem;
    margin: 0;
    line-height: 1.5;
}
.popup-indicators {
    display: flex;
    justify-content: center;
    gap: 6px;
    padding: 4px 0 2px;
}
.popup-footer {
    display: flex;
    justify-content: space-between;
    align-items: stretch;
    gap: 8px;
    padding: 12px 14px 16px;
    background: #0b0b0d;
}
.popup-btn-ghost,
.popup-btn {
    flex: 1;
    border: none;
    padding: 11px 12px;
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.popup-btn-ghost {
    background: transparent;
    color: #fff;
    border: 1px solid rgba(var(--primary-rgb), .55);
}
.popup-btn {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
}
.popup-btn:hover { color: #fff; }
.indicator { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.22); cursor: pointer; transition: 0.3s; display: inline-block; }
.indicator.active { width: 22px; border-radius: 10px; background: var(--primary); }

/* ── MARQUEE & CATEGORY BANNERS ── */
.category-banner-card {
    transition: transform 0.25s ease, border-color 0.25s ease;
    background: #101013;
    border-radius: 18px; overflow: hidden;
    border: 1px solid var(--border); position: relative;
    min-height: 140px;
}
.category-banner-img {
    position: relative;
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    background: #101013;
    filter: brightness(0.92);
    z-index: 1;
}
.category-banner-card:hover { transform: translateY(-4px); box-shadow: none; border-color: rgba(var(--primary-rgb), 0.45) !important; }
.category-banner-card:hover .category-banner-img { transform: none; filter: brightness(1); }

.shop-cat-banner {
    background: #101013;
    border-radius: 16px;
}
.shop-cat-banner-img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: contain;
    background: #101013;
}
.shop-cat-banner-overlay {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    padding: 14px 16px 12px;
    background: linear-gradient(to top, rgba(0,0,0,0.72), transparent);
    display: flex;
    align-items: flex-end;
    justify-content: center;
    pointer-events: none;
    z-index: 2;
}
.shop-os-picker,
.shop-os-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.shop-os-opt {
    border: 1px solid rgba(148,163,184,0.28);
    background: rgba(255,255,255,0.04);
    color: inherit;
    border-radius: 10px;
    padding: 8px 14px;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.shop-os-opt:hover { border-color: rgba(var(--primary-rgb), 0.45); color: inherit; }
.shop-os-opt.is-active {
    background: rgba(var(--primary-rgb), 0.14);
    border-color: rgba(var(--primary-rgb), 0.55);
    color: var(--primary);
}
.shop-os-opt[data-value="android"].is-active,
.shop-os-filter .shop-os-opt.is-active[href*="os=android"] {
    background: rgba(34,197,94,0.16);
    border-color: #22c55e;
    color: #86efac;
}
.shop-os-opt[data-value="ios"].is-active,
.shop-os-filter .shop-os-opt.is-active[href*="os=ios"] {
    background: #fff;
    border-color: #111;
    color: #111;
}
html body .modal .shop-os-opt,
html body .admin-main-panel .shop-os-opt,
html body .fam-admin .shop-os-opt {
    background: #fff !important;
    color: #111 !important;
    border: 1px solid #d4d4d8 !important;
}
html body .modal .shop-os-opt.is-active,
html body .admin-main-panel .shop-os-opt.is-active,
html body .fam-admin .shop-os-opt.is-active {
    background: #fff !important;
    border: 2px solid var(--primary) !important;
    color: #111 !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .2);
}
html body .modal .shop-os-opt[data-value="android"].is-active,
html body .admin-main-panel .shop-os-opt[data-value="android"].is-active,
html body .fam-admin .shop-os-opt[data-value="android"].is-active {
    background: #fff !important;
    border-color: #16a34a !important;
    color: #14532d !important;
}
html body .modal .shop-os-opt[data-value="ios"].is-active,
html body .admin-main-panel .shop-os-opt[data-value="ios"].is-active,
html body .fam-admin .shop-os-opt[data-value="ios"].is-active {
    background: #fff !important;
    border-color: #111 !important;
    color: #111 !important;
}
.shop-os-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border-radius: 999px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.shop-os-ios {
    background: #3b82f6;
    color: #fff;
    border: 1px solid rgba(147, 197, 253, .45);
}
.shop-os-android {
    background: #16a34a;
    color: #fff;
    border: 1px solid #4ade80;
    font-weight: 800;
}
.shop-os-none { background: rgba(148,163,184,0.18); color: inherit; }
.shop-cat-os {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
}
.shop-cat-os-mark {
    position: absolute;
    right: 18px;
    bottom: 52px;
    z-index: 3;
    font-size: 42px;
    color: #fff;
    opacity: 0.9;
    text-shadow: 0 10px 28px rgba(0,0,0,0.55);
    pointer-events: none;
}
.order-history { max-width: 920px; }
.order-history-head {
    display: flex; align-items: flex-end; justify-content: space-between;
    gap: 16px; margin-bottom: 22px;
}
.order-history-head h4 {
    margin: 0 0 4px; color: #f8fafc; font-weight: 700; letter-spacing: -0.02em;
}
.order-history-head p { margin: 0; color: #94a3b8; font-size: 13px; }
.order-history-count {
    flex-shrink: 0;
    background: #1e293b;
    color: #cbd5e1;
    border: 1px solid rgba(148,163,184,.18);
    border-radius: 999px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
}
.order-empty {
    background: #12151c;
    border: 1px dashed rgba(148,163,184,.22);
    color: #94a3b8;
    border-radius: 16px;
    padding: 42px 20px;
    text-align: center;
}
.order-list { display: flex; flex-direction: column; gap: 12px; }
.order-card {
    background: #12151c;
    border: 1px solid rgba(148,163,184,.12);
    border-radius: 16px;
    padding: 16px 18px 14px;
    position: relative;
    transition: box-shadow .4s ease, border-color .4s ease;
}
.order-card.is-new {
    border-color: rgba(var(--primary-rgb), .55);
    box-shadow: 0 0 0 1px rgba(var(--primary-rgb), .28), 0 0 28px rgba(var(--primary-rgb), .32);
}
.order-card.is-new-focus {
    animation: order-new-pulse 1.5s ease-in-out 5;
}
.order-card.is-new-settled {
    animation: none;
    box-shadow: 0 0 0 1px rgba(var(--primary-rgb), .22), 0 0 16px rgba(var(--primary-rgb), .18);
}
.order-new-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .02em;
    padding: 4px 9px;
    border-radius: 999px;
    box-shadow: 0 6px 16px rgba(var(--primary-rgb), .35);
}
@keyframes order-new-pulse {
    0%, 100% { box-shadow: 0 0 0 1px rgba(var(--primary-rgb), .4), 0 0 16px rgba(var(--primary-rgb), .25); }
    50% { box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .7), 0 0 36px rgba(var(--primary-rgb), .55); }
}
.order-card-meta {
    display: flex; flex-wrap: nowrap; align-items: flex-start; gap: 12px;
    margin-bottom: 12px; padding-bottom: 12px;
    border-bottom: 1px solid rgba(148,163,184,.1);
}
.order-thumb {
    width: 52px;
    height: 52px;
    border-radius: 12px;
    object-fit: contain;
    flex: 0 0 52px;
    background: #0b0b0d;
    border: 1px solid rgba(255,255,255,.12);
}
.order-card-meta-main {
    display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px;
    min-width: 0; flex: 1 1 auto;
}
.order-no { color: #64748b; font-size: 12px; font-weight: 700; }
.order-name { color: #f1f5f9; font-weight: 700; }
.order-when, .order-paid { color: #94a3b8; font-size: 12px; margin-left: auto; }
.order-paid { color: #e2e8f0; font-weight: 700; margin-left: 0; }
.order-contact-btn {
    margin-top: 10px;
    border: 1px solid rgba(148,163,184,.28);
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 10px;
    font-size: 12px;
    font-weight: 700;
    padding: 8px 12px;
}
.order-deliver { display:flex; flex-direction:column; gap:10px; min-width: 220px; }
.order-deliver-row { display:flex; flex-direction:column; gap:4px; }
.order-deliver-label {
    font-size: 11px; font-weight: 700; letter-spacing: .04em;
    text-transform: uppercase; color: #64748b;
}
.order-deliver-value { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.order-pro-key {
    background: #0b1220;
    border: 1px solid rgba(148,163,184,.16);
    color: #f8fafc;
    border-radius: 10px;
    padding: 8px 12px;
    font-size: 13px;
    word-break: break-all;
}
.order-copy-btn {
    border: 1px solid rgba(148,163,184,.22);
    background: #1e293b;
    color: #e2e8f0;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    padding: 5px 11px;
}
.order-qty {
    display: inline-flex;
    align-items: center;
    background: rgba(var(--primary-rgb), .16);
    border: 1px solid rgba(var(--primary-rgb), .35);
    color: #fda4af;
    font-size: 11px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
}
.order-key-bundle {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
}
.order-key-list,
textarea.order-key-list {
    width: 100%;
    min-height: 72px;
    background: #0b1220 !important;
    border: 1px solid rgba(148,163,184,.18) !important;
    color: #f8fafc !important;
    border-radius: 10px !important;
    padding: 10px 12px !important;
    font-size: 13px !important;
    font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
    line-height: 1.6 !important;
    resize: none;
    white-space: pre;
    overflow: auto;
    box-shadow: none !important;
}
.order-key-list:focus,
textarea.order-key-list:focus {
    border-color: rgba(var(--primary-rgb), .45) !important;
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .12) !important;
}
.order-copy-all {
    align-self: flex-start;
    border-radius: 10px;
    padding: 8px 14px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border: none;
    color: #fff;
}
.order-download-link {
    color: #7dd3fc;
    font-size: 13px;
    word-break: break-all;
}
.shop-cta-panel {
    margin-top: 8px;
    padding: 8px;
    border-radius: 14px;
    background:
        linear-gradient(180deg, rgba(255,255,255,.05), rgba(255,255,255,.02)),
        radial-gradient(120% 80% at 0% 0%, rgba(14,165,233,.14), transparent 45%),
        radial-gradient(120% 80% at 100% 100%, rgba(6,199,85,.12), transparent 42%),
        #0a0c12;
    border: 1px solid rgba(255,255,255,.14);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.08),
        0 0 0 1px rgba(0,0,0,.35),
        0 8px 18px rgba(0,0,0,.24);
}
.shop-cta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}
.shop-cta-btn {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 1 1 150px;
    min-height: 44px;
    padding: 7px 10px;
    border-radius: 12px;
    text-decoration: none !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.55);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.35),
        inset 0 -1px 0 rgba(0,0,0,.22),
        0 0 0 1px rgba(0,0,0,.45),
        0 6px 14px rgba(0,0,0,.28);
    transition:
        transform .25s cubic-bezier(.22,1,.36,1),
        box-shadow .25s ease,
        filter .25s ease,
        border-color .25s ease;
    -webkit-tap-highlight-color: transparent;
}
.shop-cta-btn__bg,
.shop-cta-btn__shine {
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
}
.shop-cta-btn__bg {
    z-index: 0;
    background-image:
        repeating-linear-gradient(
            -28deg,
            rgba(255,255,255,.06) 0 1px,
            transparent 1px 8px
        ),
        radial-gradient(90% 70% at 12% 18%, rgba(255,255,255,.18), transparent 42%),
        linear-gradient(90deg, rgba(0,0,0,.28) 0%, transparent 42%, transparent 58%, rgba(0,0,0,.22) 100%);
    opacity: 1;
}
.shop-cta-btn__shine {
    z-index: 1;
    background: linear-gradient(
        110deg,
        transparent 0%,
        transparent 40%,
        rgba(255,255,255,.38) 49%,
        rgba(255,255,255,.1) 54%,
        transparent 65%
    );
    width: 55%;
    animation: shopCtaShineLoop 3.2s ease-in-out infinite;
}
.shop-cta-btn__icon-wrap,
.shop-cta-btn__copy,
.shop-cta-btn__arrow {
    position: relative;
    z-index: 2;
}
.shop-cta-btn__icon-wrap {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 9px;
    background: rgba(0,0,0,.32);
    border: 1px solid rgba(255,255,255,.45);
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.2),
        0 0 0 1px rgba(0,0,0,.25);
    flex: 0 0 30px;
}
.shop-cta-btn__icon {
    width: 20px;
    height: 20px;
    display: block;
    border-radius: 6px;
    animation: shopCtaIconFloat 2.4s ease-in-out infinite;
}
.shop-cta-btn__copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1px;
    min-width: 0;
    flex: 1 1 auto;
}
.shop-cta-btn__kicker {
    font-size: 9px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #fff !important;
    opacity: .95;
    line-height: 1;
    text-shadow:
        0 1px 0 rgba(0,0,0,.55),
        0 0 8px rgba(0,0,0,.35);
}
.shop-cta-btn__text {
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .01em;
    line-height: 1.15;
    color: #fff !important;
    -webkit-text-stroke: .25px rgba(0,0,0,.25);
    text-shadow:
        0 1px 0 rgba(0,0,0,.65),
        0 1px 4px rgba(0,0,0,.35),
        0 0 1px rgba(0,0,0,.8);
}
.shop-cta-btn__arrow {
    font-size: 10px;
    color: #fff !important;
    opacity: .9;
    text-shadow: 0 1px 2px rgba(0,0,0,.5);
    transition: transform .25s ease, opacity .25s ease;
}
.shop-cta-btn--download {
    background: linear-gradient(135deg, #fb7185 0%, #ed2052 36%, #be123c 68%, #9f1239 100%);
    border-color: rgba(254,205,211,.78);
}
.shop-cta-btn--line {
    background: linear-gradient(135deg, #4ade80 0%, #16a34a 36%, #15803d 68%, #14532d 100%);
    border-color: rgba(220,252,231,.72);
}
.shop-cta-btn:hover {
    transform: translateY(-2px) scale(1.01);
    filter: saturate(1.06) brightness(1.04);
    border-color: rgba(255,255,255,.85);
}
.shop-cta-btn--download:hover {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.4),
        inset 0 -1px 0 rgba(0,0,0,.2),
        0 0 0 1px rgba(237,32,82,.55),
        0 0 0 2px rgba(251,113,133,.16),
        0 10px 20px rgba(237,32,82,.34);
}
.shop-cta-btn--line:hover {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.38),
        inset 0 -1px 0 rgba(0,0,0,.2),
        0 0 0 1px rgba(6,199,85,.5),
        0 0 0 2px rgba(74,222,128,.14),
        0 10px 20px rgba(6,199,85,.3);
}
.shop-cta-btn:hover .shop-cta-btn__arrow {
    opacity: 1;
    transform: translate(2px, -2px);
}
.shop-cta-btn:hover .shop-cta-btn__icon {
    animation: shopCtaIconPop .55s ease;
}
.shop-cta-btn:active {
    transform: translateY(-1px) scale(.99);
}
.shop-cta-btn:focus-visible {
    outline: 2px solid rgba(255,255,255,.85);
    outline-offset: 3px;
}
@keyframes shopCtaShineLoop {
    0%, 55% { transform: translateX(-160%) skewX(-12deg); opacity: 0; }
    60% { opacity: .95; }
    78% { transform: translateX(220%) skewX(-12deg); opacity: .7; }
    100% { transform: translateX(220%) skewX(-12deg); opacity: 0; }
}
@keyframes shopCtaIconFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-2px); }
}
@keyframes shopCtaIconPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.12) translateY(-2px); }
    100% { transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
    .shop-cta-btn,
    .shop-cta-btn__icon,
    .shop-cta-btn__shine,
    .shop-cta-btn__arrow {
        animation: none !important;
        transition: none !important;
    }
    .shop-cta-btn:hover { transform: none; }
}
@media (max-width: 576px) {
    .shop-cta-panel { padding: 7px; }
    .shop-cta-btn {
        flex: 1 1 calc(50% - 4px);
        min-height: 42px;
        padding: 6px 8px;
        gap: 7px;
    }
    .shop-cta-btn__text { font-size: 12.5px; }
    .shop-cta-btn__kicker { font-size: 8px; letter-spacing: .06em; }
}
.order-deliver-perk {
    display:flex; flex-direction:column; gap:4px;
    background: rgba(16,185,129,.1);
    border: 1px solid rgba(16,185,129,.28);
    border-radius: 12px;
    padding: 10px 12px;
}
.order-deliver-perk strong { color:#6ee7b7; font-size: 13px; }
.order-deliver-perk span { color: #94a3b8; font-size: 12px; }
.order-deliver-perk a { color:#a7f3d0; font-weight:700; font-size:12px; }
.order-deliver-vip {
    background: rgba(14,165,233,.12);
    border-color: rgba(56,189,248,.38);
}
.order-deliver-vip strong { color:#7dd3fc; }
.order-deliver-vip span { color:#93c5fd; }
.order-deliver-vip a { color:#e0f2fe; }
.shop-cta-btn__fa {
    font-size: 18px;
    color: #fff !important;
    line-height: 1;
}
.shop-cta-btn--telegram {
    background: linear-gradient(135deg, #6ec9f5 0%, #2AABEE 40%, #229ED9 72%, #0d7fb8 100%);
    border-color: rgba(186,230,253,.85);
}
.shop-cta-btn--telegram:hover {
    box-shadow:
        inset 0 1px 0 rgba(255,255,255,.4),
        inset 0 -1px 0 rgba(0,0,0,.2),
        0 0 0 1px rgba(14,165,233,.55),
        0 10px 22px rgba(2,132,216,.38);
}
.category-banner-overlay {
    position: absolute; inset: 0; z-index: 2;
    background: linear-gradient(180deg, rgba(0,0,0,0.03) 0%, rgba(0,0,0,0.78) 100%);
    display: flex; align-items: flex-end; padding: 1.5rem;
}
.category-banner-overlay h4 { text-shadow: 0 10px 30px rgba(0,0,0,0.45); color: #ffffff !important; }
.category-banner-overlay p { color: rgba(255,255,255,0.85) !important; }

/* ── RESPONSIVE ── */
@media (min-width: 1200px) {
    .store-nav-links .nav-link {
        padding: 8px 12px !important;
        font-size: 13px;
    }
}
@media (max-width: 1199px) {
    .store-nav-links .nav-link {
        padding: 8px 10px !important;
        font-size: 0.84rem;
        gap: 6px;
    }
    .navbar-text-brand { max-width: 90px; }
}
@media (max-width: 991px) {
    .navbar-brand img { height: 35px !important; }
}
@media (max-width: 767px) {
    html, body { font-size: 13.5px; }
    h1, .h1 { font-size: 1.22rem !important; }
    h2, .h2 { font-size: 1.08rem !important; }
    h3, .h3 { font-size: 1rem !important; }
    h4, .h4 { font-size: 0.94rem !important; }
    h5, .h5 { font-size: 0.88rem !important; }
    .store-main { padding: 16px 14px 40px; }
    .navbar-brand img { height: 26px !important; }
    .navbar { padding-top: 0; padding-bottom: 0; min-height: 56px; }
    .navbar-text-brand { font-size: 0.92rem !important; }
    .user-balance-badge { font-size: 0.75rem !important; padding: 5px 10px; }
    .btn:not(.btn-sm) { padding: 0.42rem 0.8rem !important; font-size: 0.82rem !important; }
    .form-control, .form-select { font-size: 16px !important; }
    .table-responsive { font-size: 0.78rem; }
    .table td, .table th { padding: 0.4rem 0.3rem !important; white-space: nowrap; }
    .badge { font-size: 0.62rem !important; }
    #scroll-to-top { bottom: 15px; right: 15px; width: 40px; height: 40px; }
    .admin-sidebar { display: none; }
    .home-hero:not(.has-image), .home-hero-fallback { min-height: 180px !important; }
    .home-stats-strip .stat-number { font-size: 16px !important; }
    .home-stats-strip > div { padding: 12px 12px; }
    .category-banner-overlay { padding: 0.9rem !important; }
    .category-banner-overlay h4 { font-size: 0.95rem !important; }
    .offcanvas .nav-link { font-size: 0.92rem !important; height: auto; padding: 8px 10px !important; }
}

/* ── SOCIAL PROOF / PURCHASE POPUP ── */
#purchase-popup {
    position: fixed;
    bottom: 25px;
    right: -450px; /* Hidden offscreen by default */
    background: var(--glass-bg);
    border: 1px solid var(--border);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    box-shadow: var(--card-shadow);
    padding: 16px 20px;
    border-radius: 20px;
    z-index: 999999;
    display: flex;
    align-items: center;
    gap: 15px;
    max-width: 350px;
    width: calc(100% - 50px);
    transition: right 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
    opacity: 0;
}
#purchase-popup.show {
    right: 25px;
    opacity: 1;
}
#purchase-popup .popup-icon {
    width: 45px;
    height: 45px;
    background: rgba(var(--primary-rgb), 0.15);
    border: 1px solid rgba(var(--primary-rgb), 0.2);
    color: var(--primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.2);
    animation: popup-glow 2s infinite alternate;
}
@keyframes popup-glow {
    0% { box-shadow: 0 0 5px rgba(var(--primary-rgb), 0.2); }
    100% { box-shadow: 0 0 15px rgba(var(--primary-rgb), 0.5); }
}
#purchase-popup .popup-content {
    flex-grow: 1;
    font-size: 0.85rem;
}
#purchase-popup .popup-title {
    font-weight: 700;
    color: var(--text-heading);
    margin-bottom: 2px;
}
#purchase-popup .popup-text {
    color: var(--text-main);
    line-height: 1.3;
}
#purchase-popup .popup-time {
    font-size: 0.72rem;
    color: var(--text-muted);
    margin-top: 4px;
}

@media (max-width: 576px) {
    #purchase-popup {
        bottom: 85px; /* Stay above floating audio button or other mobile elements if any */
        right: -450px;
    }
    #purchase-popup.show {
        right: 25px;
    }
}

body {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    font-weight: 500;
    color: var(--text-main);
}
h1, h2, h3, h4, h5, h6,
.navbar-text-brand,
.nav-link,
.btn {
    font-weight: 700;
}
.xez-card > .p-4 > .d-flex h3,
.xez-card > .p-lg-5 > .d-flex h3,
.xez-card > .p-4 > .d-flex p,
.xez-card > .p-lg-5 > .d-flex p {
    color: var(--text-heading) !important;
}
.btn.xez-btn-cyan,
.btn.xdvz-btn-cyan,
#open_insert {
    color: #fff !important;
    background: var(--primary) !important;
    border: none !important;
    font-weight: 700 !important;
}
.admin-main-panel #open_insert,
.admin-main-panel .btn.xez-btn-cyan,
.admin-main-panel .btn.xdvz-btn-cyan,
.admin-main-panel .btn-primary {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
    background: var(--primary) !important;
    border: none !important;
    font-weight: 700 !important;
}
.admin-main-panel #open_insert i,
.admin-main-panel .btn.xez-btn-cyan i,
.admin-main-panel .btn.xdvz-btn-cyan i,
.admin-main-panel .btn-primary i {
    color: #ffffff !important;
    -webkit-text-fill-color: #ffffff !important;
}

.theme-mode-btn {
    border-radius: 15px !important;
    border: 1px solid var(--border) !important;
    background: rgba(255,255,255,.04) !important;
    color: var(--text-heading) !important;
    cursor: pointer;
    pointer-events: auto !important;
    position: relative;
    z-index: 2;
}
.theme-mode-btn[data-theme="light"].is-active {
    border-color: #f59e0b !important;
    color: #f59e0b !important;
    box-shadow: 0 0 0 2px rgba(245,158,11,.25);
}
.theme-mode-btn[data-theme="dark"].is-active {
    border-color: var(--primary) !important;
    color: var(--primary) !important;
    box-shadow: 0 0 0 2px rgba(var(--primary-rgb),.25);
}
input[type="color"].form-control-color {
    display: block;
}

.store-main {
    width: min(100%, var(--store-max));
    margin: 0 auto;
    padding: 28px 24px 64px;
    min-height: calc(100vh - 65px);
}
.home-hero {
    min-height: 0;
    background: transparent;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
}
.home-hero.has-image {
    min-height: 0;
    background: none;
}
.home-hero:not(.has-image) {
    min-height: 280px;
    border-radius: 18px !important;
    background:
        radial-gradient(circle at 18% 20%, rgba(var(--primary-rgb), 0.22), transparent 42%),
        linear-gradient(135deg, #0b0b0d 0%, #161018 100%);
}
.home-hero.has-image:hover {
    transform: none;
    box-shadow: none !important;
}
.home-hero-img {
    display: block;
    width: 100%;
    height: auto;
    max-width: 100%;
    object-fit: contain;
    vertical-align: middle;
    border: 0;
    border-radius: 0;
    box-shadow: none;
}
.home-hero-fallback {
    display: flex;
    align-items: center;
    min-height: 280px;
    padding: 0 1.5rem;
}
.home-stats-strip {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0;
    border: 1px solid var(--border);
    border-radius: 16px;
    overflow: hidden;
    background: #101013;
}
.home-stats-strip > div {
    padding: 18px 20px;
    border-right: 1px solid var(--border);
}
.home-stats-strip > div:last-child { border-right: 0; }
.home-stats-strip .stat-label {
    font-size: 10px;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--text-muted) !important;
    margin-bottom: 6px;
}
.home-stats-strip .stat-number {
    font-size: 18px;
    font-weight: 700;
    line-height: 1.1;
}
.section-kicker {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--primary);
}

body.admin-shell {
    background: #000 !important;
    background-image: none !important;
}
body.admin-shell .main-navbar,
body.admin-shell #effectCanvas,
body.admin-shell #musicFloatingPlayer,
body.admin-shell .site-footer,
body.admin-shell #scroll-to-top {
    display: none !important;
}
.admin-page {
    padding: 0 !important;
    max-width: none !important;
    width: 100%;
    min-height: 100vh;
}
.admin-frame {
    display: grid;
    grid-template-columns: 280px minmax(0, 1fr);
    min-height: 100vh;
}
.admin-rail {
    background: #0b0b10;
    border-right: 1px solid rgba(255,255,255,.08);
    padding: 18px 14px 28px;
    position: sticky;
    top: 0;
    height: 100vh;
    overflow-y: auto;
}
.admin-rail-brand {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 6px 10px 18px;
}
.admin-rail-brand a {
    color: #fff !important;
    font-weight: 700;
    font-size: 1.05rem;
}
.admin-rail-brand small {
    color: var(--primary);
    font-size: 11px;
    font-weight: 700;
}
.admin-home-link {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0 4px 10px;
    padding: 9px 12px;
    border: 1px solid rgba(255,255,255,.1);
    border-radius: 10px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
}
.admin-home-link i { color: var(--primary); width: 18px; }
.admin-home-link:hover { background: rgba(var(--primary-rgb), .12); }
.admin-home-btn {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
    height: 36px;
    padding: 0 12px;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 999px;
    color: #fff !important;
    font-size: 13px;
    font-weight: 600;
}
.admin-home-btn:hover {
    border-color: rgba(var(--primary-rgb), .5);
    background: rgba(var(--primary-rgb), .12);
}
.admin-group {
    margin: 16px 8px 6px;
    color: rgba(255,255,255,.38);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
}
.admin-rail .list-group-item {
    background: transparent !important;
    border: none !important;
    color: rgba(255,255,255,.82) !important;
    padding: 8px 12px;
    margin-bottom: 2px;
    border-radius: 10px !important;
    font-size: 14px;
    font-weight: 500;
    position: relative;
}
.admin-rail .list-group-item i {
    width: 18px;
    margin-right: 10px;
    color: rgba(255,255,255,.45);
}
.admin-rail .list-group-item:hover {
    background: rgba(255,255,255,.04) !important;
    color: #fff !important;
}
.admin-rail .list-group-item.active {
    background: linear-gradient(90deg, rgba(124, 58, 237, .42), rgba(219, 39, 119, .18)) !important;
    color: #fff !important;
    box-shadow: inset 0 0 0 1px rgba(167, 139, 250, .28);
    border: none !important;
}
.admin-rail .list-group-item.active::before {
    content: "";
    position: absolute;
    left: -14px;
    top: 8px;
    bottom: 8px;
    width: 3px;
    border-radius: 99px;
    background: linear-gradient(180deg, #a78bfa, #db2777);
}
.admin-rail .list-group-item.active i { color: #fff; }
.admin-stage {
    min-width: 0;
    display: flex;
    flex-direction: column;
    background: #0b0b10;
}
.admin-topbar {
    min-height: 65px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 0 24px;
    border-bottom: 1px solid rgba(255,255,255,.08);
    background: rgba(11, 11, 16, .92);
    backdrop-filter: blur(12px);
    position: sticky;
    top: 0;
    z-index: 80;
    overflow: visible;
}
.admin-topbar h1 {
    font-size: 18px;
    font-weight: 700;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-topbar h1::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #4ade80;
    box-shadow: 0 0 0 4px rgba(74, 222, 128, .22);
    animation: admin-live-dot 1.6s ease-out infinite;
}
@keyframes admin-live-dot {
    0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, .45); }
    55% { box-shadow: 0 0 0 7px rgba(74, 222, 128, 0); }
}
.admin-search-wrap {
    position: relative;
    flex: 1 1 360px;
    max-width: 560px;
}
.admin-search-wrap > i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255,255,255,.45);
    font-size: 13px;
    pointer-events: none;
    z-index: 1;
}
.admin-search {
    width: 100%;
    height: 40px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.12);
    background: #17171f;
    color: #fff;
    padding: 0 16px 0 40px;
}
.admin-search::placeholder { color: rgba(255,255,255,.42); }
.admin-search:focus {
    outline: none;
    border-color: rgba(var(--primary-rgb), .55);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .16);
}
.admin-search-results {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 8px);
    background: #101013;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: 0 16px 40px rgba(0,0,0,.45);
    z-index: 90;
    max-height: 380px;
    overflow-y: auto;
}
.admin-search-item {
    display: grid;
    grid-template-columns: 64px minmax(0, 1fr);
    grid-template-rows: auto auto;
    column-gap: 10px;
    padding: 10px 14px;
    text-decoration: none !important;
    border-bottom: 1px solid rgba(255,255,255,.06);
}
.admin-search-item:hover { background: rgba(255,255,255,.05); }
.admin-search-type {
    grid-row: 1 / span 2;
    align-self: center;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    color: var(--primary);
    background: rgba(var(--primary-rgb), .12);
    border-radius: 999px;
    padding: 4px 8px;
    text-align: center;
}
.admin-search-item strong {
    color: #fff;
    font-size: 13px;
}
.admin-search-item em {
    grid-column: 2;
    font-style: normal;
    color: rgba(255,255,255,.5);
    font-size: 12px;
}
.admin-search-empty {
    padding: 16px;
    text-align: center;
    color: rgba(255,255,255,.5);
    font-size: 13px;
}
.admin-userchip {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
}
.admin-userchip span.role {
    background: linear-gradient(90deg, rgba(124, 58, 237, .55), rgba(219, 39, 119, .45));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 3px 8px;
    border-radius: 6px;
}
.admin-main-panel {
    background: #0b0b10 !important;
    border: none !important;
    box-shadow: none !important;
}
.admin-form-card {
    margin: 28px auto;
    width: min(920px, calc(100% - 48px));
    background: #101013;
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 28px;
}
.admin-form-card h2 {
    color: var(--primary) !important;
    font-size: 28px;
    margin: 4px 0 8px;
}
.chip-btn {
    border: 1px solid var(--border-light);
    background: transparent;
    color: #fff;
    border-radius: 999px;
    padding: 8px 14px;
    font-size: 13px;
}
.chip-btn.active {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    border-color: transparent;
}

input[type="color"].form-control-color {
    height: 52px !important;
    padding: 4px !important;
    border-radius: 12px !important;
    border: 1px solid var(--border) !important;
    background: transparent !important;
    cursor: pointer !important;
    pointer-events: auto !important;
    appearance: auto;
}

.shop-cat-heart {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
    padding: 9px 12px;
    border-radius: 12px;
    color: #fff !important;
    text-decoration: none !important;
    font-size: 0.84rem;
    font-weight: 700;
    background: rgba(var(--primary-rgb), .14);
    border: 1px solid rgba(var(--primary-rgb), .28);
}
.shop-cat-heart i { color: var(--primary); }
.shop-cat-heart:hover { background: rgba(var(--primary-rgb), .22); }

.tk-page-title {
    color: #fff;
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: -0.02em;
}
.tk-note {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #101013;
    border: 1px solid rgba(245, 158, 11, .28);
    color: #fde68a;
    font-size: 13px;
    line-height: 1.5;
}
.tk-note i { color: #f59e0b; margin-top: 2px; }

/* ── Announcement Bar (Smooth Marquee) ── */
.tk-ann-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border-radius: 12px;
    background: rgba(16, 16, 19, 0.92);
    border: 1px solid rgba(245, 158, 11, 0.35);
    box-shadow: 0 10px 30px rgba(245, 158, 11, 0.08);
    color: #fde68a;
}
.tk-ann-icon { color: #f59e0b; margin-top: 0 !important; flex: 0 0 auto; }
.tk-ann-viewport { overflow: hidden; flex: 1 1 auto; }
.tk-ann-track {
    display: flex;
    width: max-content;
    white-space: nowrap;
    gap: 40px;
    animation: tk-ann-scroll 18s linear infinite;
}
.tk-ann-text { font-size: 13px; line-height: 1.5; white-space: nowrap; }

@keyframes tk-ann-scroll {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

.tk-ann-bar:hover .tk-ann-track {
    animation-play-state: paused;
}

@media (prefers-reduced-motion: reduce) {
    .tk-ann-track { animation: none; }
}
.tk-cat-pills,
.tk-os-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
}
.tk-os-label {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-right: 4px;
}
.shop-os-filter .shop-os-opt,
.tk-cat-pills .shop-os-opt {
    border: 1px solid rgba(255,255,255,.16);
    background: #000;
    color: #fff;
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 12.5px;
    font-weight: 650;
}
.shop-os-filter .shop-os-opt:hover,
.tk-cat-pills .shop-os-opt:hover {
    border-color: rgba(var(--primary-rgb), .55);
    color: #fff;
}
.shop-os-filter .shop-os-opt.is-active,
.tk-cat-pills .shop-os-opt.is-active,
.shop-os-filter .shop-os-opt.is-active[href*="os=android"],
.shop-os-filter .shop-os-opt.is-active[href*="os=ios"] {
    background: linear-gradient(90deg, var(--primary), var(--secondary)) !important;
    border-color: transparent !important;
    color: #fff !important;
}

.tk-card {
    background: #0b0b0d;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.tk-card-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    background: #050506;
    overflow: hidden;
}
.tk-card-media img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.tk-card-os {
    display: inline-flex;
}
.tk-card .shop-os-badge {
    font-size: 10px !important;
    padding: 3px 8px !important;
    letter-spacing: .04em;
    text-transform: uppercase;
}
.tk-card-tags {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}
.tk-card-sale {
    display: inline-flex;
    align-items: center;
    background: linear-gradient(135deg, #be123c, #9f1239);
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 999px;
}
.tk-card-rank {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    background: rgba(30, 48, 64, .85);
    color: #fff;
    border: 1px solid #5b8ba1;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 10px;
}
.tk-card-body {
    padding: 12px 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.tk-card-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 22px;
}
.tk-status {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, .18);
    flex-shrink: 0;
}
.tk-status.is-on {
    background: #22c55e;
    box-shadow: 0 0 0 4px rgba(34, 197, 94, .22);
}
.tk-status.is-out {
    background: #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, .22);
}
.tk-card-name {
    margin: 0;
    color: #fff;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.tk-card-price {
    display: flex;
    justify-content: center;
    align-items: baseline;
    min-height: 1.3em;
}
.tk-card-price .shop-price-now {
    color: var(--primary) !important;
    font-size: 1.05rem;
    font-weight: 800;
}
.tk-card-price .shop-price-was {
    font-size: 0.78rem;
}
.tk-card-rule {
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: .7;
}
.tk-buy-btn,
.btn-buy {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 40px;
    border: none !important;
    border-radius: 999px !important;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%) !important;
    color: #fff !important;
    font-size: 13.5px !important;
    font-weight: 800 !important;
    box-shadow: 0 10px 22px rgba(var(--primary-rgb), .26);
    letter-spacing: .01em;
}
.tk-buy-btn:hover,
.btn-buy:hover {
    filter: brightness(1.05);
    transform: none !important;
    color: #fff !important;
}

.admin-rail .list-group-item.active {
    background: linear-gradient(90deg, rgba(124, 58, 237, .42), rgba(219, 39, 119, .18)) !important;
}
.admin-rail .list-group-item.active::before {
    background: linear-gradient(180deg, #a78bfa, #db2777);
}
.admin-topbar {
    background: rgba(11, 11, 16, .94) !important;
    box-shadow: inset 0 1px 0 rgba(167, 139, 250, 0.12);
}

.tk-browse-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}
.tk-browse-all {
    display: inline-flex;
    align-items: center;
    height: 34px;
    padding: 0 16px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.16);
    color: #fff !important;
    text-decoration: none !important;
    font-size: 12.5px;
    font-weight: 700;
    background: #101013;
}
.tk-browse-all:hover {
    border-color: rgba(var(--primary-rgb), .5);
    background: rgba(var(--primary-rgb), .14);
}
.tk-browse-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    min-height: 0;
    padding: 0;
    border-radius: 18px;
    background: #101013;
    border: 1px solid rgba(255,255,255,.07);
    text-decoration: none !important;
    overflow: hidden;
}
.tk-browse-card:hover {
    border-color: rgba(var(--primary-rgb), .4);
    background: #141418;
}
.tk-browse-art {
    aspect-ratio: 1 / 1;
    width: 100%;
    background: #0b0b0d;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.tk-browse-art img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    padding: 10px;
}
.tk-browse-name {
    color: #fff;
    font-size: 0.78rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    text-align: center;
    line-height: 1.3;
    position: relative;
    padding: 12px 10px 14px;
}
.tk-browse-card:hover .tk-browse-name::after,
.tk-browse-card:focus-visible .tk-browse-name::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: 28px;
    height: 2px;
    margin-left: -14px;
    border-radius: 99px;
    background: var(--primary);
}

.tk-heart-promo {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 20px;
    border: 1px solid rgba(var(--primary-rgb), .45);
    background:
        radial-gradient(circle at 12% 20%, rgba(var(--primary-rgb), .28), transparent 42%),
        linear-gradient(135deg, #1a0810 0%, #0d0d10 55%, #120810 100%);
    box-shadow:
        0 0 0 1px rgba(var(--primary-rgb), .12) inset,
        0 18px 40px rgba(var(--primary-rgb), .18);
    transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
}
.tk-heart-promo:hover {
    transform: translateY(-2px);
    border-color: rgba(var(--primary-rgb), .65);
    box-shadow:
        0 0 0 1px rgba(var(--primary-rgb), .2) inset,
        0 22px 48px rgba(var(--primary-rgb), .28);
}
.tk-heart-promo-glow {
    position: absolute;
    inset: -40% auto auto -20%;
    width: 220px;
    height: 220px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(var(--primary-rgb), .35), transparent 68%);
    pointer-events: none;
    animation: tkHeartPulse 3.2s ease-in-out infinite;
}
@keyframes tkHeartPulse {
    0%, 100% { transform: scale(1); opacity: .75; }
    50% { transform: scale(1.08); opacity: 1; }
}
.tk-heart-promo-body {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 16px 16px 14px;
}
.tk-heart-promo-icon {
    width: 54px;
    height: 54px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: linear-gradient(145deg, rgba(var(--primary-rgb), .55), rgba(var(--primary-rgb), .15));
    color: #fff;
    font-size: 1.35rem;
    box-shadow: 0 0 24px rgba(var(--primary-rgb), .35);
}
.tk-heart-promo-copy { min-width: 0; flex: 1; }
.tk-heart-promo-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 9px;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), .18);
    border: 1px solid rgba(var(--primary-rgb), .35);
    color: #fecdd3;
    font-size: 10px;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
    margin-bottom: 6px;
}
.tk-heart-promo-title {
    color: #fff;
    font-size: 1.05rem;
    font-weight: 800;
    margin: 0 0 4px;
    line-height: 1.25;
}
.tk-heart-promo-desc {
    color: rgba(255,255,255,.62);
    font-size: 12px;
    line-height: 1.45;
    margin: 0 0 8px;
}
.tk-heart-promo-os {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.tk-heart-promo-os span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.82);
    font-size: 10px;
    font-weight: 700;
}
.tk-heart-promo-cta {
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff !important;
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
    box-shadow: 0 8px 24px rgba(var(--primary-rgb), .35);
}
.order-heart-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(var(--primary-rgb), .16);
    border: 1px solid rgba(var(--primary-rgb), .35);
    color: #fecdd3;
    font-size: 12px;
    font-weight: 700;
}
.order-heart-detail {
    font-size: 12px;
    color: #cbd5e1;
    line-height: 1.5;
}
.order-deliver-heart-link { margin-top: 2px; }
.tk-browse-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
}
.tk-browse-badge.is-sale { background: #e11d48; }
.tk-browse-badge.is-hot { background: var(--primary); }

.vip-race-card {
    display: block;
    text-decoration: none !important;
    color: #fff !important;
    border-radius: 18px;
    padding: 18px 20px 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 12px 28px rgba(0,0,0,.28);
}
.vip-race-wrap { display: flex; flex-direction: column; gap: 10px; }
.vip-rank-ladder {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}
.vip-rank-hint {
    flex: 1 1 100%;
    margin: 0 0 2px;
    color: #94a3b8;
    font-size: 12.5px;
    font-weight: 650;
    line-height: 1.45;
}
.vip-rank-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.1);
    color: #cbd5e1;
    font-size: 11px;
}
.vip-rank-pill b { color: #f8fafc; font-weight: 800; }
.vip-rank-pill em { font-style: normal; color: #86efac; font-weight: 700; }
.vip-rank-pill.is-on {
    border-color: rgba(251, 191, 36, .55);
    background: rgba(251, 191, 36, .12);
    color: #fde68a;
}
.vip-rank-pill.is-on em { color: #bbf7d0; }
.vip-race-card::after {
    content: "";
    position: absolute;
    right: -30px;
    top: -40px;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    background: rgba(0,0,0,.12);
    pointer-events: none;
}
.vip-race-top, .vip-race-scale, .vip-race-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.vip-race-kicker {
    display: block;
    font-size: 10px;
    letter-spacing: .12em;
    font-weight: 700;
    opacity: .75;
    margin-bottom: 4px;
}
.vip-race-rank {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.35rem;
    font-weight: 800;
}
.vip-race-chip {
    background: rgba(0,0,0,.28);
    border-radius: 12px;
    padding: 6px 12px;
    font-size: 12px;
    font-weight: 700;
    white-space: normal;
    max-width: min(62%, 280px);
    line-height: 1.35;
    text-align: right;
}
.vip-race-chip.is-deal {
    background: rgba(0,0,0,.38);
    box-shadow: inset 0 0 0 1px rgba(134,239,172,.35);
    color: #bbf7d0;
}
.vip-race-scale {
    margin-top: 14px;
    font-size: 12px;
    opacity: .85;
}
.vip-race-bar {
    height: 6px;
    border-radius: 99px;
    background: rgba(255,255,255,.22);
    margin: 8px 0 10px;
    overflow: hidden;
    position: relative;
    z-index: 1;
}
.vip-race-bar i {
    display: block;
    height: 100%;
    background: #fff;
    border-radius: 99px;
}
.vip-race-foot {
    font-size: 12.5px;
    opacity: .92;
    flex-wrap: wrap;
}

.lb-board {
    background: #101013;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 16px 16px 12px;
}
.lb-board-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
}
.lb-board-head > i {
    color: #f59e0b;
    font-size: 1.15rem;
}
.lb-board-head h3 {
    margin: 0;
    color: #fff;
    font-size: 1rem;
    font-weight: 800;
}
.lb-board-head p {
    margin: 0;
    color: #a1a1aa;
    font-size: 12px;
}
.lb-board-head a {
    margin-left: auto;
    color: #fff !important;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none !important;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 999px;
    padding: 4px 10px;
}
.lb-row {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #0b0b0d;
    border-radius: 14px;
    padding: 10px 12px;
    margin-bottom: 8px;
}
.lb-row.is-mine { outline: 1px solid rgba(var(--primary-rgb), .45); }
.lb-no {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.06);
    color: #fff;
    font-weight: 800;
    font-size: 12px;
    flex-shrink: 0;
}
.lb-row.is-1 .lb-no { background: #facc15; color: #111; box-shadow: 0 0 0 4px rgba(250,204,21,.18); }
.lb-row.is-2 .lb-no { background: #cbd5e1; color: #111; }
.lb-row.is-3 .lb-no { background: #b45309; color: #fff; }
.lb-who { min-width: 0; flex: 1; }
.lb-who b { display: block; color: #fff; font-size: 13.5px; }
.lb-tier {
    display: inline-block;
    margin-top: 3px;
    background: #f59e0b;
    color: #111;
    font-size: 10px;
    font-weight: 800;
    padding: 2px 8px;
    border-radius: 999px;
}
.lb-amt { color: var(--primary); font-size: 14px; font-weight: 800; }
.lb-empty { color: #a1a1aa; text-align: center; padding: 22px 8px; font-size: 13px; }

@media (max-width: 991px) {
    .home-stats-strip { grid-template-columns: 1fr 1fr; }
    .home-stats-strip > div:nth-child(2) { border-right: 0; }
    .home-stats-strip > div:nth-child(1),
    .home-stats-strip > div:nth-child(2) { border-bottom: 1px solid var(--border); }
    .admin-frame { grid-template-columns: 1fr; }
    .admin-rail { display: none !important; }
    .admin-topbar { flex-wrap: wrap; padding: 10px 14px; gap: 10px; align-items: center; }
    .admin-topbar h1 {
        flex: 1 1 auto;
        min-width: 0;
        margin: 0;
    }
    .admin-search-wrap {
        order: 5;
        flex: 1 1 100%;
        max-width: none;
    }
    .admin-search { display: block; width: 100%; max-width: none; }
    .store-nav { min-height: 56px; padding-left: 14px !important; padding-right: 14px !important; }
    .tk-card-name { font-size: 0.82rem; }
    .tk-buy-btn { min-height: 36px; font-size: 12.5px !important; }
    .tk-browse-card { min-height: 0; padding: 0; border-radius: 14px; }
    .tk-browse-name { font-size: 0.62rem; padding: 8px 4px 10px; letter-spacing: .02em; }
    .tk-browse-art img { padding: 6px; }
    .tk-browse-badge { top: 6px; left: 6px; font-size: 8px; padding: 2px 6px; }
    .tk-browse-head { margin-bottom: 14px; }
    .tk-browse-all { height: 30px; padding: 0 12px; font-size: 11.5px; }
    .tk-heart-promo-body { flex-wrap: wrap; padding: 14px; }
    .tk-heart-promo-cta { width: 100%; justify-content: center; margin-top: 4px; }
    .tk-heart-promo-title { font-size: .95rem; }
    .tk-heart-promo-desc { font-size: 11px; }
    .offcanvas { max-width: min(88vw, 320px); }
}

.admin-menu-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.14);
    border-radius: 12px;
    background: #17171f;
    color: #fff;
    flex-shrink: 0;
}
.admin-menu-toggle:hover,
.admin-menu-toggle:focus {
    border-color: rgba(var(--primary-rgb), .55);
    background: rgba(var(--primary-rgb), .14);
    color: #fff;
}
.admin-mobile-jump {
    padding: 0 14px 12px;
}
.admin-mobile-jump-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    min-height: 48px;
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255,255,255,.14);
    background: linear-gradient(135deg, rgba(124,58,237,.22), rgba(219,39,119,.16));
    color: #fff;
    font-weight: 700;
    font-size: 0.92rem;
}
.admin-mobile-jump-btn:hover,
.admin-mobile-jump-btn:focus {
    border-color: rgba(219,39,119,.55);
    color: #fff;
}
.admin-mobile-nav {
    background: #0b0b10 !important;
    color: #fff;
    border-right: 1px solid rgba(255,255,255,.08);
}
.admin-mobile-nav .offcanvas-header {
    border-bottom: 1px solid rgba(255,255,255,.1);
    padding: 16px 18px;
}
.admin-mobile-nav-kicker {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .08em;
    color: var(--primary, #ed2052);
    margin-bottom: 2px;
}
.admin-mobile-nav .offcanvas-title {
    color: #fff !important;
    font-weight: 800;
}
.admin-mobile-nav .offcanvas-body {
    padding: 12px 14px 28px;
}
.admin-mobile-nav .admin-home-link {
    margin-bottom: 14px;
}
.admin-mobile-nav .list-group-item {
    background: transparent !important;
    border: none !important;
    color: rgba(255,255,255,.86) !important;
    padding: 10px 12px;
    margin-bottom: 2px;
    border-radius: 10px !important;
    font-size: 14px;
    font-weight: 500;
}
.admin-mobile-nav .list-group-item i {
    width: 18px;
    margin-right: 10px;
    color: rgba(255,255,255,.55);
}
.admin-mobile-nav .list-group-item:hover {
    background: rgba(255,255,255,.06) !important;
}
.admin-mobile-nav .list-group-item.active {
    background: linear-gradient(135deg, #7c3aed, #db2777) !important;
    color: #fff !important;
}
.admin-mobile-nav .list-group-item.active i {
    color: #fff;
}
@media (min-width: 992px) {
    .admin-menu-toggle,
    .admin-mobile-jump {
        display: none !important;
    }
}

.pd-page {
    background: #101013;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 22px;
    overflow: hidden;
}
.pd-hero {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #050506;
}
.pd-hero-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}
.pd-hero-sale {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 2;
    background: var(--primary);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 999px;
}
.pd-hero-os {
    position: absolute;
    top: 14px;
    right: 14px;
    z-index: 2;
}
.pd-hero.has-sale .product-badge { top: 48px; }
.pd-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.35fr) minmax(280px, .85fr);
    gap: 0;
}
.pd-copy {
    padding: 22px 24px 28px;
    border-right: 1px solid rgba(255,255,255,.07);
}
.pd-title {
    color: #fff;
    font-size: clamp(1.25rem, 2.4vw, 1.75rem);
    font-weight: 800;
    margin: 0 0 16px;
    line-height: 1.25;
}
.pd-desc h6 {
    color: #fff;
    font-weight: 700;
    font-size: .9rem;
    margin-bottom: 10px;
}
.pd-desc .description-content {
    color: rgba(255,255,255,.78);
    font-size: .92rem;
    line-height: 1.8;
    white-space: pre-wrap;
}
.pd-buy {
    padding: 22px 22px 26px;
    background: #0c0c0f;
}
@media (max-width: 991px) {
    .pd-grid { grid-template-columns: 1fr; }
    .pd-copy { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.07); padding: 18px 16px; }
    .pd-buy { padding: 18px 16px 22px; }
}

/* ── Community Page ── */
.cm-page { padding-bottom: 12px; }
.cm-kicker {
    font-size: 11px;
    letter-spacing: .16em;
    font-weight: 800;
    color: rgba(255,255,255,.4);
    text-transform: uppercase;
}
.cm-title {
    color: var(--primary);
    font-size: clamp(1.3rem, 2.8vw, 1.75rem);
    font-weight: 800;
    margin: 6px 0 6px;
}
.cm-sub {
    color: rgba(255,255,255,.6);
    font-size: 13px;
    max-width: 520px;
    margin-bottom: 22px;
}
.cm-section-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}
.cm-section-label i { color: var(--primary); }
.cm-section-label small {
    display: block;
    font-weight: 500;
    color: rgba(255,255,255,.45);
    font-size: 11px;
}

/* platform badge — used inside rows */
.cm-plat {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
    white-space: nowrap;
    flex-shrink: 0;
}
.cm-plat.is-line { background: #06c755; }
.cm-plat.is-telegram { background: #229ed9; }
.cm-plat.is-discord { background: #5865f2; }
.cm-plat.is-facebook { background: #1877f2; }
.cm-plat.is-other { background: var(--primary); }

/* ── Community List (row layout) ── */
.cm-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.cm-row {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px 10px 10px;
    background: #101013;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 14px;
    text-decoration: none !important;
    color: inherit !important;
    transition: border-color .18s, background .18s, transform .18s;
    cursor: pointer;
}
.cm-row:hover {
    border-color: rgba(var(--primary-rgb), .5);
    background: rgba(var(--primary-rgb), .06);
    transform: translateX(2px);
}
.cm-row-img {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
    background: #050506;
}
.cm-row-info {
    flex: 1;
    min-width: 0;
}
.cm-row-top {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}
.cm-row-title {
    color: #fff;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cm-row-des {
    color: rgba(255,255,255,.5);
    font-size: 12px;
    line-height: 1.4;
    margin: 3px 0 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.cm-row-members {
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 4px;
}
.cm-row-arrow {
    color: rgba(255,255,255,.25);
    font-size: 13px;
    flex-shrink: 0;
    transition: color .18s;
}
.cm-row:hover .cm-row-arrow { color: var(--primary); }

.cm-empty {
    text-align: center;
    color: rgba(255,255,255,.55);
    padding: 48px 16px;
    border: 1px dashed rgba(255,255,255,.12);
    border-radius: 14px;
}

.tk-card-family {
    border-color: rgba(var(--primary-rgb), .38);
    box-shadow: 0 0 0 1px rgba(var(--primary-rgb), .12), 0 14px 32px rgba(var(--primary-rgb), .08);
}
.tk-card-price-row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}
.tk-card-start-kicker {
    display: block;
    color: rgba(255,255,255,.48);
    font-size: 11px;
    font-weight: 650;
    letter-spacing: .02em;
    margin-bottom: 2px;
}
.tk-card-start.is-rank .tk-card-start-kicker {
    color: #bae6fd;
    letter-spacing: .02em;
    text-transform: none;
    font-weight: 800;
    font-size: 11px;
}
.tk-card-start-price {
    color: #fff;
    font-size: 1.02rem;
    font-weight: 800;
    line-height: 1.2;
}
.tk-card-start.is-rank .shop-price-frame.tk-card-start-price {
    margin-top: 2px;
}
.tk-card-start-price em {
    color: var(--primary);
    font-style: normal;
    font-size: 1.18rem;
}
.tk-card-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    flex-shrink: 0;
    color: rgba(255,255,255,.82);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .02em;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.tk-card-stock i {
    color: var(--primary);
    font-size: 11px;
}
.tk-card-stock b {
    color: #fff;
    font-weight: 800;
}

.pv-wrap {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(320px, .85fr);
    gap: 22px;
    align-items: start;
    margin-bottom: 22px;
}
.pv-left { min-width: 0; }
.pv-visual {
    background: #101013;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    position: relative;
}
.pv-visual img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #050506;
}
.pv-gallery-track {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
}
.pv-gallery-track::-webkit-scrollbar { display: none; }
.pv-gallery-slide {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    scroll-snap-align: start;
    scroll-snap-stop: always;
}
.pv-gallery-slide img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
    background: #050506;
    user-select: none;
    pointer-events: none;
}
.pv-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 3;
    width: 36px;
    height: 36px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,.22);
    background: rgba(0,0,0,.55);
    color: #fff;
    display: grid;
    place-items: center;
    cursor: pointer;
    backdrop-filter: blur(6px);
}
.pv-gallery-nav:hover { background: rgba(237,32,82,.85); border-color: rgba(255,255,255,.4); }
.pv-gallery-prev { left: 10px; }
.pv-gallery-next { right: 10px; }
.pv-gallery-dots {
    position: absolute;
    left: 0; right: 0; bottom: 12px;
    z-index: 3;
    display: flex;
    justify-content: center;
    gap: 6px;
    pointer-events: none;
}
.pv-gallery-dot {
    pointer-events: auto;
    width: 8px;
    height: 8px;
    border-radius: 999px;
    border: 0;
    padding: 0;
    background: rgba(255,255,255,.35);
    cursor: pointer;
}
.pv-gallery-dot.is-on { background: #ed2052; width: 18px; }
.pv-gallery-count {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    font-size: 11px;
    font-weight: 800;
    color: #fff;
    background: rgba(0,0,0,.55);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 999px;
    padding: 3px 8px;
    backdrop-filter: blur(6px);
}
.fam-gallery-list { max-width: 100%; }
.fam-gallery-preview {
    display: block;
    max-width: 160px;
    max-height: 90px;
    width: auto;
    height: auto;
    object-fit: contain;
    border-radius: 10px;
    border: 1px solid rgba(255,255,255,.12);
    background: #0b0b0d;
}
.fam-gallery-preview[hidden] { display: none !important; }
.pv-buy {
    background: #101013;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 20px;
    padding: 18px 18px 20px;
    position: sticky;
    top: 78px;
}
.pv-title {
    color: #fff;
    font-size: clamp(1.2rem, 2.2vw, 1.65rem);
    font-weight: 800;
    margin: 0 0 10px;
    line-height: 1.2;
}
.pv-price-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.pv-price-head.is-rank {
    align-items: flex-start;
}
.pv-rank-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .01em;
    text-transform: none;
    color: #fff;
    padding: 6px 12px;
    border-radius: 10px;
    border: 1px solid #5b8ba1;
    background: rgba(30, 48, 64, .9);
    box-shadow: inset 0 0 0 1px rgba(125, 211, 252, .12);
}
.pv-price-now {
    color: #fff;
    font-size: 1.55rem;
    font-weight: 800;
}
.pv-price-now.shop-price-frame {
    font-size: 1.25rem;
}
.pv-stock-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .02em;
    color: #bbf7d0;
    background: linear-gradient(135deg, rgba(34,197,94,.22), rgba(16,185,129,.1));
    border: 1px solid rgba(34,197,94,.4);
    box-shadow: inset 0 1px 0 rgba(255,255,255,.06);
}
.pv-stock-pill.is-out {
    color: #fecaca;
    background: linear-gradient(135deg, rgba(239,68,68,.22), rgba(185,28,28,.12));
    border-color: rgba(239,68,68,.45);
}
.pv-stock-pill.is-ready {
    color: #bae6fd;
    background: linear-gradient(135deg, rgba(14,165,233,.2), rgba(3,105,161,.14));
    border-color: rgba(56,189,248,.4);
}
.pv-label {
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    margin: 4px 0 10px;
}
.pv-label-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    margin: 4px 0 10px;
}
.pv-rank-hint {
    margin: -4px 0 10px;
    color: #93c5fd;
    font-size: 12px;
    font-weight: 650;
    line-height: 1.4;
}
.pv-options {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}
.pv-options.has-rank {
    border: 1px solid rgba(91, 139, 161, .4);
    border-radius: 14px;
    padding: 10px;
    background: rgba(30, 48, 64, .35);
}
.pv-opt {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
    text-align: left;
    background: #0b0b0d;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    color: #fff;
    padding: 10px 11px 10px;
    min-height: 88px;
}
.pv-opt.is-rank {
    border-color: rgba(91, 139, 161, .55);
}
.pv-opt:hover {
    border-color: rgba(var(--primary-rgb), .55);
}
.pv-opt.is-on {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary), 0 8px 18px rgba(var(--primary-rgb), .22);
    background: rgba(var(--primary-rgb), .12);
}
.pv-opt.is-on::after {
    content: "\f00c";
    font-family: "Font Awesome 6 Pro", "Font Awesome 6 Free";
    font-weight: 900;
    position: absolute;
    top: 7px;
    right: 8px;
    font-size: 10px;
    color: var(--primary);
}
.pv-opt.is-out {
    opacity: 1;
}
.pv-opt.is-out .pv-opt-price {
    color: rgba(255,255,255,.45);
}
.pv-opt strong {
    font-size: 13px;
    font-weight: 800;
}
.pv-opt-price {
    color: var(--primary);
    font-size: 15px;
    font-weight: 800;
}
.pv-opt-price.shop-price-frame {
    color: #fff;
    font-size: 14px;
}
.pv-opt-rank {
    font-size: 10px;
    font-weight: 700;
    color: #86efac;
}
.pv-opt s {
    color: rgba(255,255,255,.38);
    font-size: 11px;
}
.pv-opt-stock {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 4px;
    padding: 4px 9px;
    border-radius: 999px;
    font-style: normal;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .01em;
    line-height: 1.2;
    border: 1px solid transparent;
}
.pv-opt-stock i {
    font-size: 10px;
}
.pv-opt-stock b {
    font-weight: 900;
    font-variant-numeric: tabular-nums;
}
.pv-opt-stock.is-ok {
    color: #bbf7d0;
    background: linear-gradient(135deg, rgba(34,197,94,.2), rgba(6,95,70,.18));
    border-color: rgba(74,222,128,.42);
    box-shadow: 0 0 0 1px rgba(34,197,94,.08), inset 0 1px 0 rgba(255,255,255,.05);
}
.pv-opt-stock.is-ok i { color: #4ade80; }
.pv-opt-stock.is-out {
    color: #fecaca;
    background: linear-gradient(135deg, rgba(239,68,68,.22), rgba(127,29,29,.2));
    border-color: rgba(248,113,113,.45);
    box-shadow: 0 0 0 1px rgba(239,68,68,.1), inset 0 1px 0 rgba(255,255,255,.04);
}
.pv-opt-stock.is-out i { color: #f87171; font-size: 7px; }
.pv-opt-stock.is-ready {
    color: #bae6fd;
    background: linear-gradient(135deg, rgba(14,165,233,.2), rgba(3,105,161,.16));
    border-color: rgba(56,189,248,.4);
}
.pv-opt-stock.is-ready i { color: #38bdf8; }
.pv-qty {
    display: flex;
    align-items: stretch;
    width: 100%;
    max-width: 260px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
    background: #0b0b0d;
}
.pv-qty-btn,
.pv-qty button {
    flex: 0 0 52px;
    width: 52px;
    min-width: 52px;
    height: 48px;
    border: 0 !important;
    background: transparent !important;
    color: #fff !important;
    font-size: 22px;
    font-weight: 700;
    line-height: 1;
    padding: 0 !important;
    cursor: pointer;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.pv-qty-btn:hover,
.pv-qty button:hover { background: rgba(255,255,255,.06) !important; }
.pv-qty input,
.pv-qty input[type="text"],
.pv-qty input[type="number"] {
    flex: 1 1 auto;
    min-width: 0 !important;
    width: auto !important;
    height: 48px !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: rgba(255,255,255,.04) !important;
    color: #fff !important;
    text-align: center !important;
    font-weight: 800 !important;
    font-size: 18px !important;
    padding: 0 8px !important;
    box-shadow: none !important;
    -moz-appearance: textfield;
    appearance: textfield;
}
.pv-qty input::-webkit-outer-spin-button,
.pv-qty input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}
.pv-totals {
    display: grid;
    gap: 10px;
    margin: 0 0 14px;
    font-size: 13px;
}
.pv-totals-pay,
.pv-totals-credit {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
}
.pv-totals span { color: rgba(255,255,255,.55); }
.pv-totals strong {
    color: #fff;
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}
.pv-totals em { font-style: normal; color: rgba(255,255,255,.8); }
.pv-receipt {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
    padding: 14px 14px 12px;
    border-radius: 14px;
    background: rgba(255,255,255,.035);
    border: 1px solid rgba(255,255,255,.08);
}
.pv-receipt[hidden] { display: none !important; }
.pv-receipt-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 16px;
    width: 100%;
}
.pv-receipt-row > span {
    color: rgba(255,255,255,.58);
    font-size: 13px;
    line-height: 1.35;
    flex: 1;
    min-width: 0;
}
.pv-receipt-row > span small {
    color: rgba(255,255,255,.35);
    font-size: 11px;
}
.pv-receipt-row > em {
    font-style: normal;
    color: rgba(255,255,255,.92);
    font-variant-numeric: tabular-nums;
    font-size: 13px;
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
}
.pv-receipt-row.is-save > em {
    color: #2ecc71;
    font-weight: 700;
}
.pv-totals-pay {
    padding-top: 4px;
}
.pv-totals-pay > span:first-child {
    color: rgba(255,255,255,.88);
    font-weight: 700;
    font-size: 14px;
}
.pv-total-wrap { display: inline-flex; align-items: baseline; gap: 8px; }
.pv-total-orig {
    color: rgba(255,255,255,.35);
    font-size: .85rem;
    text-decoration: line-through;
    font-weight: 400;
}
.pv-totals a {
    color: var(--primary);
    font-weight: 700;
    text-decoration: none;
    margin-left: 6px;
}
.discount-code-box {
    margin-bottom: 12px !important;
}
.pv-buy-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 14.5px;
    font-weight: 800;
    box-shadow: 0 10px 22px rgba(var(--primary-rgb), .28);
}
.pv-buy-btn:hover:not(:disabled) {
    filter: brightness(1.06);
    color: #fff;
}
.pv-buy-btn:disabled,
.pv-buy-btn.is-wait {
    opacity: .72;
    cursor: not-allowed;
    filter: grayscale(.15);
}
.pv-details {
    background: #101013;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 18px;
    padding: 14px 16px 12px;
    margin-top: 14px;
}
.pv-details h2 {
    color: #fff;
    font-size: .95rem;
    font-weight: 800;
    margin: 0 0 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.pv-des-item {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    padding: 12px 0;
    border-top: 1px solid rgba(255,255,255,.06);
}
.pv-des-item:first-of-type { border-top: 0; padding-top: 2px; }
.pv-des-ico {
    width: 32px;
    height: 32px;
    border-radius: 11px;
    background: linear-gradient(145deg, #fb7185, #ed2052);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    margin-top: 0;
    box-shadow: 0 8px 16px rgba(237, 32, 82, .22);
}
.pv-des-item .pv-des-ico i,
.pv-details h2 .pv-des-ico i {
    color: #fff !important;
    font-size: 14px;
    margin: 0;
    line-height: 1;
}
.pv-des-item.is-game .pv-des-ico {
    background: linear-gradient(145deg, #818cf8, #4f46e5);
    box-shadow: 0 8px 16px rgba(79, 70, 229, .28);
}
.pv-des-item.is-fn .pv-des-ico {
    background: linear-gradient(145deg, #22d3ee, #2563eb);
    box-shadow: 0 8px 16px rgba(37, 99, 235, .26);
}
.pv-des-item.is-info .pv-des-ico {
    background: linear-gradient(145deg, #38bdf8, #0284c7);
    box-shadow: 0 8px 16px rgba(2, 132, 199, .24);
}
.pv-des-item.is-line .pv-des-ico {
    background: #06c755;
    box-shadow: 0 8px 16px rgba(6, 199, 85, .32);
}
.pv-des-item.is-line .pv-des-ico i { font-size: 18px; }
.pv-des-item.is-warn .pv-des-ico {
    background: linear-gradient(145deg, #fbbf24, #f59e0b);
    box-shadow: 0 8px 16px rgba(245, 158, 11, .28);
}
.pv-des-item.is-policy,
.pv-des-item.is-alert {
    /* keep */
}
.pv-des-item.is-policy .pv-des-ico,
.pv-des-item.is-alert .pv-des-ico {
    background: linear-gradient(145deg, #fb7185, #e11d48);
    box-shadow: 0 8px 16px rgba(225, 29, 72, .26);
}
.pv-line-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    padding: 7px 12px;
    border-radius: 999px;
    background: #06c755;
    color: #fff !important;
    font-size: 12.5px;
    font-weight: 800;
    text-decoration: none !important;
    box-shadow: 0 8px 16px rgba(6, 199, 85, .28);
}
.pv-line-btn:hover { filter: brightness(1.06); color: #fff !important; }
.pv-line-btn i { color: #fff; font-size: 16px; }
.pv-des-item > div > strong {
    display: block;
    color: #fff;
    font-size: 12.5px;
    font-weight: 800;
    margin-bottom: 4px;
}
.pv-des-body {
    margin-top: 2px;
}
.pv-des-sub {
    color: #fff;
    font-size: 12.5px;
    font-weight: 800;
    margin: 8px 0 4px;
}
.pv-des-item p,
.pv-des-item li {
    color: rgba(255,255,255,.78);
    font-size: 12.5px;
    line-height: 1.6;
    margin: 0 0 3px;
}
.pv-des-body strong,
.pv-des-item li strong {
    display: inline;
    color: #fff;
    font-weight: 800;
}
.pv-des-item ul {
    margin: 0;
    padding-left: 18px;
}
.pv-des-item a { color: var(--primary); }
.pv-preorder {
    margin-bottom: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(var(--primary-rgb), .28);
    background: rgba(var(--primary-rgb), .08);
}
@media (max-width: 991px) {
    .pv-wrap { grid-template-columns: 1fr; }
    .pv-buy { position: static; }
    .pv-options { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575px) {
    .pv-options { grid-template-columns: 1fr 1fr; }
}

.home-stats {
    display: none;
}
.hx-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
    margin: 0 0 1.5rem;
}
.hx-stat {
    position: relative;
    display: flex;
    align-items: center;
    gap: 16px;
    min-height: 118px;
    padding: 18px 20px 18px 16px;
    overflow: hidden;
    background:
        linear-gradient(135deg, rgba(var(--primary-rgb), .22), transparent 42%),
        linear-gradient(180deg, #1a0c10 0%, #090506 100%);
    border: 1px solid rgba(var(--primary-rgb), .42);
    border-radius: 18px;
    box-shadow:
        0 0 0 1px rgba(var(--primary-rgb), .08) inset,
        0 0 28px rgba(var(--primary-rgb), .22);
}
.hx-stat::before,
.hx-stat::after {
    content: "";
    position: absolute;
    pointer-events: none;
}
.hx-stat::before {
    top: 8px;
    left: 10px;
    right: 10px;
    height: 2px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: .7;
}
.hx-stat::after {
    right: 0;
    top: 18px;
    bottom: 18px;
    width: 3px;
    background: var(--primary);
    box-shadow: 0 0 12px var(--primary);
    opacity: .85;
}
.hx-stat-ico {
    width: 74px;
    height: 74px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 1.85rem;
    clip-path: polygon(30% 0, 70% 0, 100% 30%, 100% 70%, 70% 100%, 30% 100%, 0 70%, 0 30%);
    background: radial-gradient(circle at 50% 40%, rgba(var(--primary-rgb), .55), rgba(40, 6, 12, .95) 62%);
    box-shadow: 0 0 22px rgba(var(--primary-rgb), .45);
    text-shadow: 0 0 16px rgba(var(--primary-rgb), .8);
}
.hx-stat-body {
    min-width: 0;
    flex: 1;
    text-align: right;
}
.hx-stat-label {
    font-size: 13px;
    font-weight: 700;
    color: rgba(255,255,255,.92);
    margin-bottom: 2px;
}
.hx-stat-num {
    font-size: clamp(1.6rem, 2.6vw, 2.15rem);
    font-weight: 800;
    font-style: italic;
    color: #fff;
    line-height: 1.05;
    letter-spacing: -0.03em;
    text-shadow: 0 0 18px rgba(255,255,255,.18);
}
.hx-stat-unit {
    margin-top: 2px;
    font-size: 12px;
    font-weight: 800;
    color: var(--primary);
}
@media (max-width: 991px) {
    .hx-stats {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 10px;
        margin-bottom: 1.25rem;
    }
    .hx-stat {
        flex-direction: column;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 0;
        padding: 12px 8px 10px;
        text-align: center;
    }
    .hx-stat::after { display: none; }
    .hx-stat-ico {
        width: 46px;
        height: 46px;
        font-size: 1.15rem;
    }
    .hx-stat-body {
        text-align: center;
        width: 100%;
    }
    .hx-stat-label {
        font-size: 10px;
        line-height: 1.25;
        margin-bottom: 0;
    }
    .hx-stat-num { font-size: 1.25rem; }
    .hx-stat-unit { font-size: 9px; margin-top: 0; }
}
@media (max-width: 575px) {
    .hx-stats { gap: 8px; }
    .hx-stat { padding: 10px 6px 9px; border-radius: 14px; }
    .hx-stat-ico { width: 40px; height: 40px; font-size: 1rem; }
    .hx-stat-num { font-size: 1.1rem; }
    .hx-stat-label { font-size: 9px; }
}

.swal2-popup {
    background: #101013 !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.08) !important;
    border-radius: 22px !important;
    box-shadow: 0 28px 80px rgba(0,0,0,.55) !important;
    font-family: 'Anuphan', 'Noto Sans Thai', sans-serif !important;
}
.swal2-title { color: #fff !important; font-weight: 800 !important; }
.swal2-html-container { color: rgba(255,255,255,.68) !important; }
.swal2-icon.swal2-question {
    border-color: rgba(var(--primary-rgb), .45) !important;
    color: var(--primary) !important;
}
.swal2-icon.swal2-success {
    border-color: #22c55e !important;
    color: #22c55e !important;
}
.swal2-icon.swal2-success .swal2-success-ring {
    border-color: rgba(34, 197, 94, .35) !important;
}
.swal2-icon.swal2-success [class^=swal2-success-line] {
    background-color: #22c55e !important;
}
.swal2-styled.swal2-confirm {
    background: var(--primary) !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    padding: 10px 18px !important;
}
.swal2-styled.swal2-cancel {
    background: #1c1c20 !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,.1) !important;
    border-radius: 12px !important;
    font-weight: 700 !important;
}
.swal2-backdrop-show { background: rgba(0,0,0,.72) !important; }

.shop-swal.swal2-popup {
    width: min(420px, calc(100vw - 28px)) !important;
    padding: 26px 22px 20px !important;
}
.shop-swal-html { margin: 0 !important; padding: 0 !important; }
.shop-swal-actions {
    width: 100% !important;
    margin: 18px 0 0 !important;
    gap: 8px !important;
}
.shop-swal-confirm,
.shop-swal-cancel {
    flex: 1 1 0;
    min-height: 48px;
    margin: 0 !important;
    border-radius: 14px !important;
    font-size: 14px !important;
    font-weight: 800 !important;
    cursor: pointer;
}
.shop-swal-confirm {
    color: #fff !important;
    background: var(--primary) !important;
    border: 0 !important;
    box-shadow: 0 10px 24px rgba(var(--primary-rgb), .35);
}
.shop-swal-confirm:hover { filter: brightness(1.06); }
.shop-swal-cancel {
    color: #fff !important;
    background: #17171b !important;
    border: 1px solid rgba(255,255,255,.1) !important;
}
.shop-check { text-align: center; color: #fff; }
.shop-check-mark {
    width: 56px;
    height: 56px;
    margin: 0 auto 12px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(var(--primary-rgb), .16);
    color: var(--primary);
    font-size: 1.35rem;
    box-shadow: 0 0 0 8px rgba(var(--primary-rgb), .06);
}
.shop-check-ok .shop-check-mark {
    background: rgba(34,197,94,.16);
    color: #86efac;
    box-shadow: 0 0 0 8px rgba(34,197,94,.06);
}
.shop-check-kicker {
    letter-spacing: .14em;
    font-size: 11px;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 6px;
}
.shop-check h3 {
    font-size: 1.25rem;
    font-weight: 800;
    margin: 0 0 6px;
    color: #fff;
}
.shop-check-lead {
    color: rgba(255,255,255,.55);
    font-size: 13px;
    margin: 0 0 16px;
}
.shop-check-card {
    text-align: left;
    background: #0b0b0d;
    border: 1px solid rgba(255,255,255,.08);
    border-radius: 16px;
    padding: 12px 14px;
}
.shop-check-row {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 12px;
    padding: 8px 0;
    font-size: 13px;
    color: rgba(255,255,255,.55);
}
.shop-check-row + .shop-check-row { border-top: 1px solid rgba(255,255,255,.06); }
.shop-check-row strong {
    color: #fff;
    font-weight: 700;
    text-align: right;
}
.shop-check-row.is-total {
    padding-top: 12px;
    color: rgba(255,255,255,.7);
}
.shop-check-row.is-total strong {
    color: var(--primary);
    font-size: 1.15rem;
    font-weight: 800;
}
.shop-check-note {
    margin: 12px 0 0;
    font-size: 12px;
    color: rgba(255,255,255,.48);
}
body.theme-light .swal2-popup,
body.theme-light .shop-swal.swal2-popup {
    background: #fff !important;
    color: #0f172a !important;
    border-color: rgba(15,23,42,.08) !important;
}
body.theme-light .swal2-title,
body.theme-light .shop-check h3 { color: #0f172a !important; }
body.theme-light .shop-check-card { background: #f8fafc; border-color: rgba(15,23,42,.08); }
body.theme-light .shop-check-row { color: #64748b; }
body.theme-light .shop-check-row strong { color: #0f172a; }
body.theme-light .shop-swal-cancel {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: rgba(15,23,42,.08) !important;
}

/* —— Top-up success celebration —— */
.shop-swal-topup.swal2-popup {
    overflow: visible !important;
    padding-top: 28px !important;
}
.topup-celeb {
    position: relative;
    text-align: center;
    color: #fff;
    padding: 8px 4px 2px;
    overflow: visible;
}
.topup-celeb-coins {
    position: absolute;
    inset: 0 -8px auto;
    height: 118px;
    pointer-events: none;
    z-index: 0;
}
.topup-coin {
    position: absolute;
    top: 42px;
    left: 50%;
    font-size: 1.15rem;
    color: #fbbf24;
    filter: drop-shadow(0 6px 10px rgba(251, 191, 36, .35));
    opacity: 0;
    animation: topupCoinBounce 1.35s cubic-bezier(.22, 1.2, .36, 1) forwards;
}
/* เหรียญอยู่ซ้าย/ขวาของวงถูกเท่านั้น — ไม่ทับกลาง */
.topup-coin.c1 { margin-left: -118px; top: 28px; animation-delay: .05s; font-size: 1.3rem; }
.topup-coin.c2 { margin-left: -96px; top: 58px; animation-delay: .12s; color: #fde68a; font-size: 1.05rem; }
.topup-coin.c3 { margin-left: -108px; top: 84px; animation-delay: .18s; font-size: 1.15rem; }
.topup-coin.c4 { margin-left: 78px; top: 26px; animation-delay: .1s; color: #fcd34d; font-size: 1.35rem; }
.topup-coin.c5 { margin-left: 96px; top: 56px; animation-delay: .22s; }
.topup-coin.c6 { margin-left: 84px; top: 86px; animation-delay: .16s; color: #fef08a; font-size: 1.1rem; }
@keyframes topupCoinBounce {
    0%   { opacity: 0; transform: translate(-50%, 22px) scale(.4) rotate(-25deg); }
    35%  { opacity: 1; transform: translate(-50%, -18px) scale(1.12) rotate(12deg); }
    55%  { transform: translate(-50%, -4px) scale(.96) rotate(-6deg); }
    75%  { transform: translate(-50%, -14px) scale(1.04) rotate(8deg); }
    100% { opacity: .95; transform: translate(-50%, -8px) scale(1) rotate(0deg); }
}
.topup-celeb-check {
    width: 88px;
    height: 88px;
    margin: 10px auto 14px;
    position: relative;
    z-index: 2;
    isolation: isolate;
}
.topup-check-svg {
    width: 88px;
    height: 88px;
    display: block;
    filter: drop-shadow(0 10px 24px rgba(34, 197, 94, .35));
}
.topup-check-ring {
    fill: rgba(34, 197, 94, .12);
    stroke: #22c55e;
    stroke-width: 4;
    stroke-linecap: round;
    stroke-dasharray: 201;
    stroke-dashoffset: 201;
    animation: topupRingDraw .55s ease-out .1s forwards;
}
.topup-check-mark {
    fill: none;
    stroke: #4ade80;
    stroke-width: 5.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: topupMarkDraw .4s ease-out .55s forwards;
}
@keyframes topupRingDraw {
    to { stroke-dashoffset: 0; }
}
@keyframes topupMarkDraw {
    to { stroke-dashoffset: 0; }
}
.topup-celeb-kicker {
    letter-spacing: .16em;
    font-size: 11px;
    font-weight: 800;
    color: #4ade80;
    margin: 0 0 6px;
}
.topup-celeb-title {
    font-size: 1.45rem;
    font-weight: 800;
    margin: 0 0 10px;
    color: #fff;
    animation: topupTitleIn .45s ease-out .35s both;
}
.topup-celeb-amount {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 140px;
    padding: 10px 20px;
    margin: 0 auto 12px;
    border-radius: 16px;
    font-size: 1.65rem;
    font-weight: 800;
    letter-spacing: .02em;
    color: #fef08a;
    background: linear-gradient(135deg, rgba(251, 191, 36, .18), rgba(34, 197, 94, .12));
    border: 1px solid rgba(251, 191, 36, .35);
    box-shadow: 0 12px 28px rgba(251, 191, 36, .12);
    animation: topupAmountPop .55s cubic-bezier(.22, 1.35, .36, 1) .45s both;
}
.topup-celeb-lead {
    color: rgba(255, 255, 255, .62);
    font-size: 13px;
    line-height: 1.55;
    margin: 0;
    max-width: 280px;
    margin-inline: auto;
}
@keyframes topupTitleIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes topupAmountPop {
    0%   { opacity: 0; transform: scale(.72); }
    70%  { transform: scale(1.06); }
    100% { opacity: 1; transform: scale(1); }
}
body.theme-light .topup-celeb { color: #0f172a; }
body.theme-light .topup-celeb-title { color: #0f172a; }
body.theme-light .topup-celeb-lead { color: #64748b; }
body.theme-light .topup-celeb-amount {
    color: #a16207;
    background: linear-gradient(135deg, rgba(251, 191, 36, .2), rgba(34, 197, 94, .1));
}
@media (prefers-reduced-motion: reduce) {
    .topup-coin,
    .topup-check-ring,
    .topup-check-mark,
    .topup-celeb-title,
    .topup-celeb-amount {
        animation: none !important;
    }
    .topup-coin { opacity: .9; transform: translate(-50%, -8px); }
    .topup-check-ring,
    .topup-check-mark { stroke-dashoffset: 0; }
}

/* ===== XENO SHOP Global Native Language Switch V4 ===== */
.xeno-lang-switch {
    height: 34px;
    min-width: 52px;
    padding: 0 9px;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    gap: 7px;
    flex: 0 0 auto;
    border: 1px solid #29292f !important;
    border-radius: 9px !important;
    background: #101013 !important;
    color: #f5f5f6 !important;
    text-decoration: none !important;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .045em;
    line-height: 1;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.025) !important;
    -webkit-appearance: none !important;
    appearance: none !important;
    transition: border-color .16s ease, background .16s ease, transform .12s ease;
}
.xeno-lang-switch i {
    color: var(--primary, #ed2052) !important;
    font-size: 13px;
    line-height: 1;
}
.xeno-lang-switch span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 !important;
    min-width: 20px;
    height: auto;
    border: 0 !important;
    background: transparent !important;
    color: #f5f5f6 !important;
}
.xeno-lang-switch:hover,
.xeno-lang-switch:focus-visible {
    background: #151519 !important;
    border-color: rgba(var(--primary-rgb, 237, 32, 82), .55) !important;
    color: #fff !important;
    outline: none !important;
}
.xeno-lang-switch:active { transform: scale(.96); }
.admin-topbar .xeno-lang-switch { margin-left: auto; }
body.theme-light .xeno-lang-switch {
    background: #f7f7f8 !important;
    color: #18181b !important;
    border-color: #dedee3 !important;
}
body.theme-light .xeno-lang-switch span { color: #18181b !important; }
@media (max-width: 991.98px) {
    .nav-mobile-actions .xeno-lang-switch {
        height: 34px;
        min-width: 49px;
        padding: 0 8px;
        gap: 6px;
    }
    .nav-mobile-actions .xeno-lang-switch i { font-size: 12px; }
    .admin-topbar .xeno-lang-switch { margin-left: 0; }
}
@media (max-width: 380px) {
    .nav-mobile-actions .xeno-lang-switch {
        min-width: 44px;
        padding: 0 7px;
        gap: 5px;
    }
    .nav-mobile-actions .xeno-lang-switch span { font-size: 10px; }
}
