/**
 * VIP STORE - ULTRA-MODERN CRYSTALLINE GLASSMORPHISM UI 2026
 * Thiết kế Kính Cường Lực Cao Cấp (Frosted Glass with Multi-Layer Glow)
 * Typography: Plus Jakarta Sans + Outfit + Be Vietnam Pro
 * Tối ưu phần cứng GPU 60/120fps, không giật lag, chống tràn mobile 100%
 */

@import url('https://fonts.googleapis.com/css2?family=Be+Vietnam+Pro:ital,wght@0,400;0,500;0,600;0,700;0,800;1,400&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800;0,900;1,400&display=swap');

:root {
    /* Nền & Bề Mặt Kính Cường Lực (Frosted Glass Surfaces) */
    --bg-base: #060911;
    --bg-surface: linear-gradient(180deg, rgba(24, 32, 47, 0.75) 0%, rgba(13, 18, 28, 0.88) 100%);
    --bg-card: linear-gradient(180deg, rgba(26, 35, 50, 0.7) 0%, rgba(12, 17, 26, 0.85) 100%);
    --bg-card-hover: linear-gradient(180deg, rgba(35, 46, 66, 0.8) 0%, rgba(16, 23, 35, 0.9) 100%);
    --bg-card-inner: rgba(10, 15, 24, 0.7);
    --bg-input: rgba(11, 16, 26, 0.7);

    /* Khung Viền Màu Xám Titan & Khói Đẳng Cấp 2026 */
    --gray-frame-border: rgba(148, 163, 184, 0.22);
    --gray-frame-border-light: rgba(203, 213, 225, 0.35);
    --gray-frame-border-hover: rgba(226, 232, 240, 0.5);
    --gray-frame-bg: linear-gradient(180deg, rgba(28, 38, 55, 0.72) 0%, rgba(13, 18, 28, 0.88) 100%);
    --gray-card-bg: linear-gradient(180deg, rgba(26, 35, 50, 0.68) 0%, rgba(12, 17, 26, 0.85) 100%);
    --gray-pill-bg: rgba(30, 41, 59, 0.6);
    --gray-pill-border: rgba(148, 163, 184, 0.25);

    /* Viền & Hiệu Ứng Ánh Sáng Kính */
    --border-glass: rgba(148, 163, 184, 0.22);
    --border-glass-light: rgba(203, 213, 225, 0.32);
    --border-subtle: rgba(148, 163, 184, 0.12);
    --border-card: rgba(148, 163, 184, 0.2);
    --border-hover: #00f2fe;
    --border-gold: #f59e0b;

    /* Tông Màu Neon VIP Sang Trọng */
    --vip-cyan: #00f2fe;
    --vip-cyan-dark: #0284c7;
    --vip-gold: #fbbf24;
    --vip-gold-dark: #d97706;
    --vip-indigo: #6366f1;
    --vip-purple: #c084fc;
    --vip-purple-dark: #8b5cf6;
    --vip-emerald: #10b981;
    --vip-rose: #f43f5e;
    --vip-amber: #f59e0b;

    /* Màu Chữ Độ Tương Phản Sắc Nét */
    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --text-dim: #64748b;

    /* Typography Hệ Thống */
    --font-sans: 'Plus Jakarta Sans', 'Be Vietnam Pro', system-ui, -apple-system, sans-serif;
    --font-display: 'Outfit', 'Plus Jakarta Sans', sans-serif;

    /* Độ Cong Bo Góc Chuẩn Kính Sang Trọng */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Chiều Cao Bottom Tab Bar */
    --tab-bar-height: 64px;
}

*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    -webkit-tap-highlight-color: transparent;
}

html {
    overflow-x: hidden;
    scroll-behavior: smooth;
    background-color: var(--bg-base);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    background-color: var(--bg-base);
    background-image: 
        radial-gradient(circle at 15% 10%, rgba(0, 242, 254, 0.09) 0%, transparent 45%),
        radial-gradient(circle at 85% 15%, rgba(192, 132, 252, 0.09) 0%, transparent 45%),
        radial-gradient(circle at 50% 55%, rgba(16, 185, 129, 0.05) 0%, transparent 55%),
        radial-gradient(circle at 80% 85%, rgba(251, 191, 36, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 20% 90%, rgba(99, 102, 241, 0.06) 0%, transparent 50%);
    background-attachment: fixed;
    color: var(--text-primary);
    font-family: var(--font-sans);
    line-height: 1.6;
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    flex-direction: column;
    overflow-x: hidden;
    padding-bottom: calc(var(--tab-bar-height) + env(safe-area-inset-bottom, 16px) + 20px);
}

/* ========================================================
   TOP AMBIENT LIGHT BAR & CHIPS
   ======================================================== */
.glass-topbar {
    background: rgba(8, 12, 22, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    position: relative;
    z-index: 1001;
    font-size: 0.8rem;
}

.glass-topbar-inner {
    max-width: 1240px;
    margin: 0 auto;
    padding: 7px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

.topbar-items-left, .topbar-items-right {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.topbar-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    text-decoration: none;
    font-weight: 700;
    font-size: 0.76rem;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.chip-box9 {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.22), rgba(236, 72, 153, 0.18));
    border: 1px solid rgba(192, 132, 252, 0.45);
    color: #e9d5ff;
}
.chip-box9:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.4), rgba(236, 72, 153, 0.35));
    border-color: #c084fc;
    box-shadow: 0 0 12px rgba(192, 132, 252, 0.4);
    transform: translateY(-1px);
}

.chip-box-main {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.22), rgba(0, 242, 254, 0.18));
    border: 1px solid rgba(0, 242, 254, 0.45);
    color: #bae6fd;
}
.chip-box-main:hover {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.4), rgba(0, 242, 254, 0.35));
    border-color: #00f2fe;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
    transform: translateY(-1px);
}

.chip-support {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.2), rgba(217, 119, 6, 0.15));
    border: 1px solid rgba(251, 191, 36, 0.45);
    color: #fef3c7;
}
.chip-support:hover {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.35), rgba(217, 119, 6, 0.3));
    border-color: #fbbf24;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.4);
    transform: translateY(-1px);
}

.chip-dot-pulse {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #c084fc;
    box-shadow: 0 0 8px #c084fc;
    animation: pulseGlow 1.8s infinite;
}

.topbar-badge-auto {
    color: #34d399;
    font-size: 0.74rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

@keyframes pulseGlow {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

/* ========================================================
   FROSTED GLASS PANELS & CARDS (Giao Diện Kính Đẹp Chuẩn 2026)
   ======================================================== */
.glass-panel, .vip-panel, .gray-glass-frame, .gray-frame {
    background: var(--bg-surface);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 14px 40px -4px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 0 0 1px rgba(148, 163, 184, 0.08);
    position: relative;
    transition: border-color 0.28s ease, box-shadow 0.28s ease;
}

.glass-card, .vip-card, .gray-glass-card, .gray-card {
    background: var(--bg-card);
    backdrop-filter: blur(16px) saturate(170%);
    -webkit-backdrop-filter: blur(16px) saturate(170%);
    border: 1px solid var(--border-card);
    border-radius: var(--radius-md);
    box-shadow: 
        0 8px 24px -2px rgba(0, 0, 0, 0.45),
        inset 0 1px 0 rgba(255, 255, 255, 0.12),
        inset 0 0 0 1px rgba(148, 163, 184, 0.06);
    transition: transform 0.28s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.28s ease, box-shadow 0.28s ease;
    overflow: hidden;
    position: relative;
}

.glass-card:hover, .vip-card:hover, .gray-glass-card:hover, .gray-card:hover {
    transform: translateY(-4px);
    border-color: var(--gray-frame-border-hover);
    box-shadow: 
        0 18px 44px -4px rgba(0, 0, 0, 0.65),
        0 0 22px rgba(148, 163, 184, 0.16),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

/* Nút & Nhãn Khung Xám Đẳng Cấp 2026 */
.gray-pill-btn {
    background: var(--gray-pill-bg);
    border: 1px solid var(--gray-pill-border);
    color: #e2e8f0 !important;
    border-radius: var(--radius-full);
    padding: 7px 15px;
    font-size: 0.82rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 7px;
    text-decoration: none;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.gray-pill-btn:hover {
    background: rgba(45, 58, 80, 0.8);
    border-color: rgba(203, 213, 225, 0.5);
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}
.gray-pill-btn.active {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.2), rgba(0, 242, 254, 0.15));
    border-color: #00f2fe;
    color: #fff !important;
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.25);
}

.gray-badge {
    background: rgba(30, 41, 59, 0.7);
    border: 1px solid rgba(148, 163, 184, 0.25);
    color: #cbd5e1;
    font-size: 0.74rem;
    font-weight: 700;
    padding: 3px 9px;
    border-radius: var(--radius-full);
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.gray-input-field {
    background: rgba(10, 15, 25, 0.75) !important;
    border: 1px solid var(--gray-frame-border) !important;
    border-radius: 12px !important;
    color: #fff !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
    transition: all 0.22s ease;
}
.gray-input-field:focus {
    border-color: rgba(203, 213, 225, 0.55) !important;
    box-shadow: 0 0 16px rgba(148, 163, 184, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.2) !important;
}

/* ========================================================
   HEADER KÍNH CƯỜNG LỰC (Ultra-Frosted Header)
   ======================================================== */
.glass-header {
    background: rgba(9, 14, 25, 0.78);
    backdrop-filter: blur(20px) saturate(190%);
    -webkit-backdrop-filter: blur(20px) saturate(190%);
    border-bottom: 1px solid rgba(255, 255, 255, 0.11);
    position: sticky;
    top: 0;
    z-index: 1000;
    width: 100%;
    box-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.glass-header-container {
    max-width: 1240px;
    margin: 0 auto;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.glass-brand-link {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    flex-shrink: 0;
}

.brand-logo-img {
    width: 36px;
    height: 36px;
    object-fit: cover;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
    box-shadow: 0 0 14px rgba(0, 242, 254, 0.3);
}

.brand-logo-fallback {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #060911;
    font-size: 1rem;
    flex-shrink: 0;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
}

.brand-text-col {
    display: flex;
    flex-direction: column;
}

.brand-shop-name {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.05rem;
    letter-spacing: 0.3px;
    display: block;
    line-height: 1.2;
}

.brand-shop-slogan {
    display: block;
    font-size: 0.62rem;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 800;
}

.header-actions-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

/* Header Center Navigation (Desktop only, hidden on mobile / tablet) */
.header-nav-center {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-item-link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    font-size: 0.84rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-decoration: none;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    white-space: nowrap;
}

.nav-item-link:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
    border-color: rgba(0, 242, 254, 0.35);
    transform: translateY(-1px);
}

.nav-item-link.active {
    color: #00f2fe;
    background: rgba(0, 242, 254, 0.12);
    border-color: rgba(0, 242, 254, 0.4);
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.2);
}

.nav-item-link.nav-item-highlight {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15), rgba(6, 182, 212, 0.15));
    border-color: rgba(16, 185, 129, 0.4);
    color: #34d399;
}

.nav-item-link.nav-item-highlight:hover {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.3), rgba(6, 182, 212, 0.3));
    color: #a7f3d0;
}

@media (max-width: 900px) {
    .header-nav-center {
        display: none !important;
    }
    .brand-shop-slogan {
        display: none !important;
    }
    .glass-header-container {
        padding: 8px 12px;
    }
}

/* Nút Box 9 Zalo VIP */
.btn-glass-box9 {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.25), rgba(236, 72, 153, 0.2));
    border: 1px solid rgba(192, 132, 252, 0.5);
    color: #f3e8ff !important;
    font-weight: 800;
    font-size: 0.82rem;
    text-decoration: none;
    box-shadow: 0 0 14px rgba(168, 85, 247, 0.25);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-glass-box9:hover {
    background: linear-gradient(135deg, #9333ea, #ec4899);
    border-color: #f472b6;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.5);
}

/* Nút Box Tải File */
.btn-glass-boxfile {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 14px;
    border-radius: var(--radius-full);
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.25), rgba(0, 242, 254, 0.2));
    border: 1px solid rgba(0, 242, 254, 0.5);
    color: #e0f2fe !important;
    font-weight: 800;
    font-size: 0.82rem;
    text-decoration: none;
    box-shadow: 0 0 14px rgba(0, 242, 254, 0.22);
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.btn-glass-boxfile:hover {
    background: linear-gradient(135deg, #0284c7, #00f2fe);
    border-color: #38bdf8;
    color: #060911 !important;
    transform: translateY(-2px);
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.5);
}

/* ========================================================
   THANH PROFILE TRÊN HEADER & USER DROPDOWN (Luxury Gray Glass)
   ======================================================== */
.btn-user-pill {
    background: rgba(30, 41, 59, 0.72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(148, 163, 184, 0.24);
    color: #fff;
    padding: 5px 12px 5px 6px;
    border-radius: 9999px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 700;
    font-size: 0.84rem;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}
.btn-user-pill:hover {
    background: rgba(30, 41, 59, 0.95);
    border-color: rgba(0, 242, 254, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}
.btn-user-pill:active {
    transform: translateY(0);
}

.user-avatar-badge {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-primary, #00f2fe), var(--theme-secondary, #3b82f6));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.8rem;
    color: #060911;
    position: relative;
    box-shadow: 0 2px 8px rgba(0, 242, 254, 0.35);
}
.avatar-status-dot {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    border: 1.5px solid #0f172a;
    box-shadow: 0 0 6px #10b981;
}

.user-name-label {
    max-width: 120px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 700;
    color: #f8fafc;
    font-size: 0.84rem;
}

.user-balance-badge {
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(52, 211, 153, 0.38);
    color: #34d399;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 9999px;
    font-family: monospace;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.2px;
}

/* User Popover Menu */
.user-dropdown-pop {
    position: absolute;
    right: 0;
    top: calc(100% + 10px);
    width: 285px;
    padding: 16px;
    z-index: 1002;
    border-radius: 18px;
    background: rgba(15, 23, 42, 0.96);
    backdrop-filter: blur(28px);
    -webkit-backdrop-filter: blur(28px);
    border: 1px solid rgba(148, 163, 184, 0.25);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.85),
        0 0 25px rgba(0, 242, 254, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.12);
    animation: userPopIn 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes userPopIn {
    0% { opacity: 0; transform: translateY(-8px) scale(0.96); }
    100% { opacity: 1; transform: translateY(0) scale(1); }
}

.user-pop-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}
.user-pop-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--theme-primary, #00f2fe), var(--theme-secondary, #3b82f6));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    color: #060911;
    position: relative;
    box-shadow: 0 4px 14px rgba(0, 242, 254, 0.3);
}
.user-pop-name {
    font-weight: 800;
    color: #fff;
    font-size: 0.95rem;
    text-overflow: ellipsis;
    overflow: hidden;
    white-space: nowrap;
}
.user-pop-role {
    font-size: 0.72rem;
    color: #38bdf8;
    text-transform: uppercase;
    font-weight: 700;
}

.user-pop-wallet {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.8), rgba(15, 23, 42, 0.9));
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: 12px;
    padding: 12px 14px;
    margin-bottom: 12px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.wallet-label {
    font-size: 0.72rem;
    color: #94a3b8;
    font-weight: 800;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 5px;
}
.btn-wallet-add {
    background: linear-gradient(135deg, #10b981, #059669);
    color: #fff;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 0 12px rgba(16, 185, 129, 0.35);
    transition: all 0.2s ease;
}
.btn-wallet-add:hover {
    transform: scale(1.04);
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.5);
}
.wallet-amount {
    font-size: 1.25rem;
    font-weight: 900;
    color: #34d399;
    font-family: monospace;
    margin-top: 2px;
}

.user-pop-link {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    color: var(--text-primary);
    text-decoration: none;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: all 0.16s ease;
    border: 1px solid transparent;
}
.user-pop-link:hover {
    background: rgba(148, 163, 184, 0.12);
    border-color: rgba(148, 163, 184, 0.2);
    color: #fff;
}
.user-pop-link.admin-link {
    color: #fbbf24;
    font-weight: 700;
}
.user-pop-link.admin-link:hover {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(245, 158, 11, 0.3);
}
.user-pop-link.logout-link {
    color: #f43f5e;
}
.user-pop-link.logout-link:hover {
    background: rgba(244, 63, 94, 0.12);
    border-color: rgba(244, 63, 94, 0.3);
}
.user-pop-divider {
    height: 1px;
    background: rgba(148, 163, 184, 0.14);
    margin: 6px 0;
}

/* ========================================================
   THANH PROFILE & TABS GIAO DIỆN PROFILE.PHP (Gray Slate Titanium)
   ======================================================== */
.profile-page-wrapper {
    max-width: 1140px;
    margin: 30px auto;
    padding: 0 20px;
}

/* 1. Thanh Profile Hero Bar */
.profile-hero-bar {
    background: linear-gradient(135deg, rgba(24, 32, 47, 0.94) 0%, rgba(15, 23, 42, 0.97) 100%);
    border: 1px solid rgba(148, 163, 184, 0.24);
    border-radius: 20px;
    padding: 24px 28px;
    margin-bottom: 24px;
    box-shadow: 
        0 16px 40px -4px rgba(0, 0, 0, 0.55),
        inset 0 1px 0 rgba(255, 255, 255, 0.14),
        inset 0 0 0 1px rgba(148, 163, 184, 0.08);
    position: relative;
    overflow: hidden;
}

.profile-hero-bar::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 320px;
    height: 320px;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.08) 0%, transparent 70%);
    pointer-events: none;
    z-index: 0;
}

.profile-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 24px;
    position: relative;
    z-index: 1;
    flex-wrap: wrap;
}

.profile-hero-left {
    display: flex;
    align-items: center;
    gap: 20px;
}

.profile-avatar-wrapper {
    position: relative;
    flex-shrink: 0;
}

.profile-avatar-circle {
    width: 72px;
    height: 72px;
    border-radius: 22px;
    background: linear-gradient(135deg, var(--theme-primary, #00f2fe), var(--theme-secondary, #3b82f6));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.1rem;
    color: #060911;
    box-shadow: 0 8px 24px rgba(0, 242, 254, 0.35);
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.profile-avatar-status {
    position: absolute;
    bottom: -3px;
    right: -3px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: #10b981;
    border: 3px solid #0f172a;
    box-shadow: 0 0 10px #10b981;
}

.profile-user-info {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.profile-username-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.profile-username-title {
    font-size: 1.6rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.2;
}

.profile-chips-row {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.profile-hero-right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
}

.profile-wallet-card {
    background: rgba(10, 15, 26, 0.75);
    border: 1px solid rgba(52, 211, 153, 0.35);
    border-radius: 16px;
    padding: 12px 18px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.profile-wallet-amount {
    font-size: 1.45rem;
    font-weight: 900;
    color: #34d399;
    font-family: monospace;
    line-height: 1.2;
}

/* Quick Metrics Row */
.profile-metrics-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    position: relative;
    z-index: 1;
}

.profile-metric-item {
    background: rgba(15, 23, 42, 0.55);
    border: 1px solid rgba(148, 163, 184, 0.16);
    border-radius: 12px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.2s ease;
}

.profile-metric-item:hover {
    border-color: rgba(148, 163, 184, 0.3);
    background: rgba(15, 23, 42, 0.8);
}

.profile-metric-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.05rem;
    flex-shrink: 0;
}

/* 2. Thanh Tabs Profile */
.profile-tabs-wrapper {
    margin-bottom: 24px;
}

.profile-tabs-nav {
    display: flex;
    gap: 8px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(148, 163, 184, 0.2);
    border-radius: 16px;
    padding: 6px;
    overflow-x: auto;
    scrollbar-width: none;
}
.profile-tabs-nav::-webkit-scrollbar {
    display: none;
}

.profile-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    padding: 10px 18px;
    border-radius: 12px;
    font-size: 0.88rem;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.profile-tab-btn:hover {
    color: #fff;
    background: rgba(148, 163, 184, 0.1);
    border-color: rgba(148, 163, 184, 0.18);
}

.profile-tab-btn.active {
    color: #fff;
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.95), rgba(51, 65, 85, 0.9));
    border-color: rgba(0, 242, 254, 0.55);
    box-shadow: 
        0 4px 16px rgba(0, 242, 254, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.profile-tab-btn .tab-badge {
    background: rgba(0, 242, 254, 0.15);
    border: 1px solid rgba(0, 242, 254, 0.35);
    color: #00f2fe;
    font-size: 0.7rem;
    padding: 1px 6px;
    border-radius: 9999px;
    font-weight: 800;
}
.profile-tab-btn.active .tab-badge {
    background: rgba(0, 242, 254, 0.25);
    border-color: #00f2fe;
    color: #fff;
}

/* Tab Panes */
.profile-tab-pane {
    display: none;
}
.profile-tab-pane.active {
    display: block;
    animation: tabFadeIn 0.26s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes tabFadeIn {
    0% { opacity: 0; transform: translateY(6px); }
    100% { opacity: 1; transform: translateY(0); }
}

.profile-pane-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
    gap: 20px;
}

.profile-field-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 11px 0;
    border-bottom: 1px solid rgba(148, 163, 184, 0.12);
    font-size: 0.88rem;
}
.profile-field-row:last-child {
    border-bottom: none;
}

@media (max-width: 768px) {
    .profile-hero-top { flex-direction: column; align-items: flex-start; }
    .profile-hero-right { width: 100%; justify-content: space-between; }
    .profile-wallet-card { width: 100%; justify-content: space-between; }
    .profile-metrics-row { grid-template-columns: 1fr 1fr; }
    .profile-pane-grid { grid-template-columns: 1fr; }
    .profile-page-wrapper { margin: 16px auto; padding: 0 12px; }
    .profile-hero-bar { padding: 18px 16px; border-radius: 16px; }
}

/* ========================================================
   TEXT GRADIENTS & TYPOGRAPHY SẮC NÉT
   ======================================================== */
.text-gradient-cyan {
    background: linear-gradient(135deg, #00f2fe 0%, #38bdf8 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-purple {
    background: linear-gradient(135deg, #e879f9 0%, #c084fc 50%, #818cf8 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.text-gradient-gold {
    background: linear-gradient(135deg, #fde047 0%, #f59e0b 50%, #d97706 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* ========================================================
   BUTTONS KÍNH CƯỜNG LỰC & NEON VIP
   ======================================================== */
.btn-neon, .btn-vip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 10px 20px;
    border-radius: var(--radius-md);
    font-weight: 700;
    font-size: 0.88rem;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    outline: none;
    letter-spacing: 0.2px;
    position: relative;
    overflow: hidden;
}

.btn-neon:active, .btn-vip:active {
    transform: scale(0.96) !important;
}

.btn-neon-cyan, .btn-vip-cyan {
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(0, 114, 255, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-neon-cyan:hover, .btn-vip-cyan:hover {
    background: linear-gradient(135deg, #00b4ea 0%, #0060d6 100%);
    box-shadow: 0 6px 22px rgba(0, 114, 255, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-neon-purple, .btn-vip-purple {
    background: linear-gradient(135deg, #a855f7 0%, #6366f1 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-neon-purple:hover, .btn-vip-purple:hover {
    background: linear-gradient(135deg, #9333ea 0%, #4f46e5 100%);
    box-shadow: 0 6px 22px rgba(168, 85, 247, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-neon-emerald, .btn-vip-emerald {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.btn-neon-emerald:hover, .btn-vip-emerald:hover {
    background: linear-gradient(135deg, #059669 0%, #047857 100%);
    box-shadow: 0 6px 22px rgba(16, 185, 129, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transform: translateY(-2px);
}

.btn-vip-gold {
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    color: #060911;
    font-weight: 800;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}
.btn-vip-gold:hover {
    background: linear-gradient(135deg, #f59e0b 0%, #b45309 100%);
    box-shadow: 0 6px 22px rgba(245, 158, 11, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.45);
    transform: translateY(-2px);
}

.btn-neon-outline {
    background: rgba(255, 255, 255, 0.05);
    backdrop-filter: blur(10px);
    color: #cbd5e1;
    border: 1px solid var(--border-glass-light);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}
.btn-neon-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: #00f2fe;
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.25);
    transform: translateY(-2px);
}

/* ========================================================
   FORM INPUTS KÍNH CAO CẤP
   ======================================================== */
.glass-input, .vip-input {
    width: 100%;
    padding: 12px 16px;
    background: var(--bg-input);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius-md);
    color: var(--text-primary);
    font-family: inherit;
    font-size: 0.92rem;
    outline: none;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.35);
}

.glass-input:focus, .vip-input:focus {
    border-color: #00f2fe;
    background: rgba(16, 24, 42, 0.85);
    box-shadow: 0 0 0 3px rgba(0, 242, 254, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.glass-input::placeholder, .vip-input::placeholder {
    color: #64748b;
}

/* ========================================================
   HỆ THỐNG THÔNG BÁO HIỆN ĐẠI (ULTRA-MODERN GLASS TOASTS)
   ======================================================== */
.glass-toast-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 999999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: calc(100vw - 32px);
    width: 380px;
    pointer-events: none;
}

.glass-toast {
    pointer-events: auto;
    position: relative;
    background: rgba(12, 19, 34, 0.92);
    backdrop-filter: blur(24px) saturate(190%);
    -webkit-backdrop-filter: blur(24px) saturate(190%);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: var(--radius-lg);
    box-shadow: 
        0 14px 40px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.22);
    padding: 14px 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    color: #ffffff;
    overflow: hidden;
    transform: translate3d(0, -10px, 0) scale(0.96);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1);
}

.glass-toast.toast-enter {
    transform: translate3d(0, 0, 0) scale(1);
    opacity: 1;
}

.glass-toast.toast-exit {
    transform: translate3d(40px, 0, 0) scale(0.92);
    opacity: 0;
}

/* Toast Status Variations */
.toast-success {
    border-color: rgba(16, 185, 129, 0.5);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(16, 185, 129, 0.25);
}
.toast-success .toast-progress { background: linear-gradient(90deg, #10b981, #34d399); }

.toast-error {
    border-color: rgba(244, 63, 94, 0.5);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(244, 63, 94, 0.25);
}
.toast-error .toast-progress { background: linear-gradient(90deg, #f43f5e, #fb7185); }

.toast-warning {
    border-color: rgba(245, 158, 11, 0.5);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(245, 158, 11, 0.25);
}
.toast-warning .toast-progress { background: linear-gradient(90deg, #f59e0b, #fbbf24); }

.toast-info {
    border-color: rgba(0, 242, 254, 0.5);
    box-shadow: 0 14px 40px rgba(0, 0, 0, 0.65), 0 0 20px rgba(0, 242, 254, 0.25);
}
.toast-info .toast-progress { background: linear-gradient(90deg, #00f2fe, #38bdf8); }

.toast-icon-wrap {
    width: 38px;
    height: 38px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    flex-shrink: 0;
}

.toast-progress {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    transform-origin: left;
    animation: toastTimer linear forwards;
}

@keyframes toastTimer {
    from { transform: scaleX(1); }
    to { transform: scaleX(0); }
}

@media (max-width: 640px) {
    .glass-toast-container {
        top: 14px;
        left: 16px;
        right: 16px;
        width: auto;
    }
}

/* ========================================================
   MODERN GLASS DIALOG MODALS (vipConfirm, vipAlert)
   ======================================================== */
.vip-dialog-overlay {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(4, 7, 14, 0.85);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
}
.vip-dialog-overlay.show {
    opacity: 1;
    visibility: visible;
}

.vip-dialog-card {
    width: 100%;
    max-width: 440px;
    background: rgba(14, 21, 37, 0.95);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(0, 242, 254, 0.35);
    border-radius: var(--radius-xl);
    box-shadow: 0 24px 70px rgba(0, 0, 0, 0.9), 0 0 35px rgba(0, 242, 254, 0.2);
    padding: 26px;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #fff;
}
.vip-dialog-overlay.show .vip-dialog-card {
    transform: scale(1) translateY(0);
}

.vip-dialog-icon {
    width: 58px;
    height: 58px;
    border-radius: 18px;
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.7rem;
}
.vip-dialog-icon.confirm {
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.25), rgba(59, 130, 246, 0.25));
    border: 1px solid rgba(0, 242, 254, 0.55);
    color: #00f2fe;
    box-shadow: 0 0 24px rgba(0, 242, 254, 0.35);
}
.vip-dialog-icon.success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.25));
    border: 1px solid rgba(16, 185, 129, 0.55);
    color: #10b981;
    box-shadow: 0 0 24px rgba(16, 185, 129, 0.35);
}
.vip-dialog-icon.error {
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.25), rgba(225, 29, 72, 0.25));
    border: 1px solid rgba(244, 63, 94, 0.55);
    color: #f43f5e;
    box-shadow: 0 0 24px rgba(244, 63, 94, 0.35);
}

.vip-dialog-title {
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 900;
    text-align: center;
    color: #ffffff;
    margin-bottom: 8px;
    letter-spacing: 0.3px;
}
.vip-dialog-msg {
    font-size: 0.9rem;
    color: var(--text-muted);
    text-align: center;
    line-height: 1.55;
    margin-bottom: 20px;
}

.vip-dialog-meta-box {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-md);
    padding: 14px 16px;
    margin-bottom: 20px;
    font-size: 0.86rem;
}
.vip-dialog-meta-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
}
.vip-dialog-meta-row:not(:last-child) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.vip-dialog-actions {
    display: flex;
    gap: 12px;
}
.vip-dialog-btn {
    flex: 1;
    padding: 12px 18px;
    border-radius: var(--radius-md);
    font-weight: 800;
    font-size: 0.92rem;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.vip-dialog-btn-cancel {
    background: rgba(255, 255, 255, 0.08);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.14);
}
.vip-dialog-btn-cancel:hover {
    background: rgba(255, 255, 255, 0.14);
    color: #fff;
}
.vip-dialog-btn-confirm {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #ffffff;
    box-shadow: 0 0 20px rgba(16, 185, 129, 0.45);
}
.vip-dialog-btn-confirm:hover {
    box-shadow: 0 0 30px rgba(16, 185, 129, 0.65);
    transform: translateY(-2px);
}

/* ========================================================
   POPUP THÔNG BÁO HỆ THỐNG KÍNH CƯỜNG LỰC (announcementPopupModal)
   ======================================================== */
.vip-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 14, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.32s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.32s cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, visibility;
}

.vip-popup-overlay.vip-popup-show {
    opacity: 1;
    visibility: visible;
}

.vip-popup-card {
    position: relative;
    width: 100%;
    max-width: 320px;
    max-height: 85vh;
    overflow-y: auto;
    background: rgba(14, 21, 38, 0.95);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(0, 242, 254, 0.4);
    border-radius: 20px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.9),
        0 0 25px rgba(0, 242, 254, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    color: #fff;
    transform: scale(0.94) translateY(18px);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.vip-popup-overlay.vip-popup-show .vip-popup-card {
    transform: scale(1) translateY(0);
}

.glass-welcome-modal {
    max-width: 380px !important;
    padding: 0 !important;
    border-radius: 20px !important;
    overflow: hidden !important;
    background: rgba(14, 21, 38, 0.96) !important;
    border: 1px solid rgba(0, 242, 254, 0.4) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 30px rgba(0, 242, 254, 0.25) !important;
}

.vip-popup-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #fff;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}
.vip-popup-close-btn:hover {
    background: #f43f5e;
    border-color: #f43f5e;
    transform: rotate(90deg);
}

.welcome-banner-box {
    position: relative;
    width: 100%;
    height: 135px;
    overflow: hidden;
}
.welcome-banner-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.welcome-banner-fade {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(14, 21, 38, 0.95) 100%);
}
.welcome-banner-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.65);
    border: 1px solid rgba(251, 191, 36, 0.5);
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-size: 0.65rem;
    font-weight: 800;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 5px;
    letter-spacing: 0.5px;
}
.pulse-dot-gold {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 6px #fbbf24;
    animation: pulseGlow 1.8s infinite;
}

.welcome-popup-body {
    padding: 12px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.welcome-popup-title {
    font-family: var(--font-display);
    font-size: 1.05rem;
    font-weight: 800;
    color: #fff;
    text-align: center;
    margin: 0;
}

.welcome-popup-text {
    font-size: 0.78rem;
    color: var(--text-muted);
    line-height: 1.45;
    text-align: center;
}
.welcome-popup-text p {
    margin: 0;
}

.welcome-links-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.welcome-box-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 10px;
    text-decoration: none;
    transition: all 0.2s ease;
    border: 1px solid transparent;
}
.welcome-box-btn:hover {
    transform: translateY(-2px);
}

.btn-w-box9 {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.15));
    border-color: rgba(192, 132, 252, 0.45);
    color: #f3e8ff;
}
.btn-w-box9:hover {
    border-color: #c084fc;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.35);
}

.btn-w-boxfile {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(0, 242, 254, 0.15));
    border-color: rgba(0, 242, 254, 0.45);
    color: #e0f2fe;
}
.btn-w-boxfile:hover {
    border-color: #00f2fe;
    box-shadow: 0 4px 14px rgba(0, 242, 254, 0.35);
}

.w-btn-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}
.btn-w-box9 .w-btn-icon { background: linear-gradient(135deg, #a855f7, #ec4899); color: #fff; }
.btn-w-boxfile .w-btn-icon { background: linear-gradient(135deg, #0284c7, #00f2fe); color: #fff; }

.w-btn-text {
    flex: 1;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.w-btn-label {
    font-size: 0.78rem;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.w-btn-sub {
    font-size: 0.65rem;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.w-btn-arrow {
    font-size: 0.7rem;
    color: var(--text-dim);
}

.welcome-support-strip {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.35);
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
}
.welcome-support-strip:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: #fbbf24;
}

.badge-w-chat {
    font-size: 0.7rem;
    font-weight: 800;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 4px;
}

.welcome-confirm-btn {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.85rem;
    font-weight: 800;
}

.vip-popup-header-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    background: rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(251, 191, 36, 0.4);
    font-size: 0.68rem;
    font-weight: 800;
    color: #fbbf24;
    letter-spacing: 0.5px;
}

.vip-popup-glow-dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #fbbf24;
    box-shadow: 0 0 8px #fbbf24;
    animation: pulseGlow 1.8s infinite;
}

.vip-popup-close {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.16);
    color: #cbd5e1;
    font-size: 0.88rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.vip-popup-close:hover {
    background: #f43f5e;
    color: #fff;
    border-color: #f43f5e;
    transform: rotate(90deg);
}

.vip-popup-body {
    padding: 6px 18px 18px;
}

.vip-popup-title {
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 900;
    text-align: center;
    color: #ffffff;
    margin-bottom: 8px;
}

.vip-popup-text {
    font-size: 0.82rem;
    color: var(--text-secondary);
    line-height: 1.5;
    margin-bottom: 14px;
    text-align: center;
}

/* 2 Nút Action Trong Popup */
.popup-quick-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 12px;
}

.popup-action-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    border-radius: 12px;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 800;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-popup-box9 {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.2), rgba(236, 72, 153, 0.15));
    border: 1px solid rgba(192, 132, 252, 0.45);
    color: #f3e8ff;
    box-shadow: 0 4px 14px rgba(168, 85, 247, 0.18);
}
.btn-popup-box9:hover {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.38), rgba(236, 72, 153, 0.3));
    border-color: #c084fc;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(168, 85, 247, 0.35);
}

.btn-popup-boxfile {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.2), rgba(0, 242, 254, 0.15));
    border: 1px solid rgba(0, 242, 254, 0.45);
    color: #e0f2fe;
    box-shadow: 0 4px 14px rgba(0, 242, 254, 0.18);
}
.btn-popup-boxfile:hover {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.38), rgba(0, 242, 254, 0.3));
    border-color: #38bdf8;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 242, 254, 0.35);
}

.arrow-sub {
    font-size: 0.76rem;
    color: var(--text-dim);
    transition: transform 0.2s ease;
}
.popup-action-btn:hover .arrow-sub {
    transform: translate(2px, -2px);
    color: #fff;
}

/* Dải Hotline / Zalo Trong Popup */
.popup-support-badge {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8px 12px;
    border-radius: 10px;
    background: rgba(245, 158, 11, 0.12);
    border: 1px solid rgba(251, 191, 36, 0.35);
    text-decoration: none;
    color: #fff;
    transition: all 0.2s ease;
}
.popup-support-badge:hover {
    background: rgba(245, 158, 11, 0.22);
    border-color: #fbbf24;
}

.badge-chat-now {
    font-size: 0.72rem;
    font-weight: 800;
    color: #fbbf24;
    display: flex;
    align-items: center;
    gap: 4px;
}

.vip-popup-btn-confirm {
    width: 100%;
    padding: 11px;
    border-radius: var(--radius-md);
    background: linear-gradient(135deg, #00f2fe 0%, #3b82f6 100%);
    color: #060911;
    font-weight: 900;
    font-size: 0.88rem;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 18px rgba(0, 242, 254, 0.35);
    transition: all 0.22s ease;
}
.vip-popup-btn-confirm:hover {
    box-shadow: 0 6px 24px rgba(0, 242, 254, 0.55);
    transform: translateY(-2px);
}

/* ========================================================
   COMMUNITY GRID & CARDS (Bố Cục 3 Box Chuẩn Kính)
   ======================================================== */
.community-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 14px;
}

.community-channel-card {
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.community-channel-card:hover {
    transform: translateY(-4px);
}

.card-box9-theme {
    border-color: rgba(168, 85, 247, 0.35);
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.12), rgba(10, 14, 24, 0.75));
}
.card-box9-theme:hover {
    border-color: #c084fc;
    box-shadow: 0 12px 30px rgba(168, 85, 247, 0.25);
}

.card-boxfile-theme {
    border-color: rgba(0, 242, 254, 0.35);
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.1), rgba(10, 14, 24, 0.75));
}
.card-boxfile-theme:hover {
    border-color: #00f2fe;
    box-shadow: 0 12px 30px rgba(0, 242, 254, 0.25);
}

.card-support-theme {
    border-color: rgba(251, 191, 36, 0.35);
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.1), rgba(10, 14, 24, 0.75));
}
.card-support-theme:hover {
    border-color: #fbbf24;
    box-shadow: 0 12px 30px rgba(245, 158, 11, 0.25);
}

/* ========================================================
   BONG BÓNG CHAT HỖ TRỢ TRỰC TUYẾN 24/7 (Floating Glass Chat Widget)
   ======================================================== */
.chat-bubble-widget {
    position: fixed;
    right: 20px;
    bottom: 24px;
    z-index: 9998;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

/* 1. Launcher Bubble & Teaser */
.chat-launcher-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-teaser-bubble {
    background: rgba(14, 21, 38, 0.92);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border: 1px solid rgba(0, 242, 254, 0.45);
    color: #fff;
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: 0.78rem;
    font-weight: 800;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.45), 0 0 12px rgba(0, 242, 254, 0.25);
    cursor: pointer;
    white-space: nowrap;
    animation: teaserFloat 3s ease-in-out infinite;
    user-select: none;
    transition: transform 0.2s ease;
}
.chat-teaser-bubble:hover {
    transform: scale(1.05);
}

@keyframes teaserFloat {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

.chat-bubble-widget.chat-open .chat-teaser-bubble {
    display: none;
}

.chat-launcher-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
    border: 2px solid rgba(255, 255, 255, 0.35);
    color: #fff;
    font-size: 1.35rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 8px 25px rgba(0, 114, 255, 0.5), 0 0 16px rgba(0, 242, 254, 0.4);
    position: relative;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.25s ease, background 0.25s ease;
    outline: none;
}
.chat-launcher-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 10px 30px rgba(0, 114, 255, 0.7), 0 0 20px rgba(0, 242, 254, 0.6);
}

.chat-bubble-ring {
    position: absolute;
    inset: -5px;
    border-radius: 50%;
    border: 2px solid #00f2fe;
    animation: bubbleRingPulse 2.2s infinite;
    pointer-events: none;
}

@keyframes bubbleRingPulse {
    0% { transform: scale(1); opacity: 0.8; }
    100% { transform: scale(1.4); opacity: 0; }
}

.chat-online-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #090e19;
    box-shadow: 0 0 8px #10b981;
}

.icon-chat-open { display: block; }
.icon-chat-close { display: none; }

.chat-bubble-widget.chat-open .icon-chat-open { display: none; }
.chat-bubble-widget.chat-open .icon-chat-close { display: block; }
.chat-bubble-widget.chat-open .chat-launcher-btn {
    background: #f43f5e;
    border-color: #fda4af;
    transform: rotate(90deg);
}

/* 2. Cửa Sổ Bong Bóng Chat (Chat Window Glass) */
.chat-window-glass {
    position: absolute;
    bottom: 66px;
    right: 0;
    width: 350px;
    max-width: calc(100vw - 32px);
    max-height: 82vh;
    background: rgba(14, 21, 38, 0.96);
    backdrop-filter: blur(28px) saturate(190%);
    -webkit-backdrop-filter: blur(28px) saturate(190%);
    border: 1px solid rgba(0, 242, 254, 0.38);
    border-radius: 20px;
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.85),
        0 0 25px rgba(0, 242, 254, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    pointer-events: none;
    transform: translateY(18px) scale(0.92);
    transform-origin: bottom right;
    transition: all 0.26s cubic-bezier(0.16, 1, 0.3, 1);
}

.chat-bubble-widget.chat-open .chat-window-glass {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.chat-header-bar {
    padding: 12px 16px;
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.3), rgba(0, 242, 254, 0.15));
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.chat-header-info {
    display: flex;
    align-items: center;
    gap: 10px;
}

.chat-avatar-ring {
    position: relative;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: linear-gradient(135deg, #00f2fe, #3b82f6);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #060911;
    font-size: 1rem;
    box-shadow: 0 0 12px rgba(0, 242, 254, 0.4);
}

.chat-status-online {
    position: absolute;
    bottom: -1px;
    right: -1px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #10b981;
    border: 2px solid #060911;
    box-shadow: 0 0 6px #10b981;
}

.chat-header-title {
    font-size: 0.88rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
}

.chat-header-status {
    font-size: 0.68rem;
    color: #34d399;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
}
.chat-header-status i {
    font-size: 0.5rem;
}

.chat-close-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    color: #cbd5e1;
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
}
.chat-close-btn:hover {
    background: #f43f5e;
    color: #fff;
    border-color: #f43f5e;
}

/* Chat Body Stream */
.chat-body-stream {
    padding: 14px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-msg-row {
    display: flex;
    gap: 8px;
    align-items: flex-start;
}

.chat-bot-avatar {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    flex-shrink: 0;
}

.chat-bot-bubble {
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px 12px 12px 2px;
    padding: 10px 12px;
    font-size: 0.82rem;
}

.chat-action-menu {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-link-card {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 12px;
    text-decoration: none;
    transition: all 0.22s ease;
    border: 1px solid transparent;
}
.chat-link-card:hover {
    transform: translateY(-2px);
}

.link-box9 {
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.18), rgba(236, 72, 153, 0.12));
    border-color: rgba(192, 132, 252, 0.4);
}
.link-box9:hover {
    border-color: #c084fc;
    box-shadow: 0 4px 16px rgba(168, 85, 247, 0.3);
}

.link-boxfile {
    background: linear-gradient(135deg, rgba(2, 132, 199, 0.18), rgba(0, 242, 254, 0.12));
    border-color: rgba(0, 242, 254, 0.4);
}
.link-boxfile:hover {
    border-color: #00f2fe;
    box-shadow: 0 4px 16px rgba(0, 242, 254, 0.3);
}

.link-support {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(217, 119, 6, 0.12));
    border-color: rgba(251, 191, 36, 0.4);
}
.link-support:hover {
    border-color: #fbbf24;
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.3);
}

.link-deposit {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.18), rgba(5, 150, 105, 0.12));
    border-color: rgba(16, 185, 129, 0.4);
}
.link-deposit:hover {
    border-color: #10b981;
    box-shadow: 0 4px 16px rgba(16, 185, 129, 0.3);
}

.chat-link-icon {
    width: 32px;
    height: 32px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
}
.box9-bg { background: linear-gradient(135deg, #a855f7, #ec4899); color: #fff; }
.boxfile-bg { background: linear-gradient(135deg, #0284c7, #00f2fe); color: #fff; }
.support-bg { background: linear-gradient(135deg, #f59e0b, #d97706); color: #060911; }
.deposit-bg { background: linear-gradient(135deg, #10b981, #059669); color: #fff; }

.chat-link-text {
    flex: 1;
    overflow: hidden;
}

.chat-link-title {
    font-size: 0.82rem;
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 6px;
}

.badge-mini-hot {
    background: #f43f5e;
    color: #fff;
    font-size: 0.6rem;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 4px;
}

.chat-link-desc {
    font-size: 0.72rem;
    color: var(--text-dim);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-link-arrow {
    font-size: 0.78rem;
    color: var(--text-dim);
}

.chat-footer-strip {
    padding: 10px 14px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    background: rgba(0, 0, 0, 0.25);
}

.btn-chat-call {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 8px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #fff;
    text-decoration: none;
    font-size: 0.78rem;
    font-weight: 700;
    transition: all 0.2s ease;
}
.btn-chat-call:hover {
    background: rgba(245, 158, 11, 0.2);
    border-color: #fbbf24;
    color: #fbbf24;
}

@media (max-width: 768px) {
    .chat-bubble-widget {
        bottom: calc(var(--tab-bar-height) + env(safe-area-inset-bottom, 14px) + 12px);
        right: 14px;
    }
    .chat-window-glass {
        width: 320px;
        bottom: 60px;
    }
}

/* ========================================================
   BOTTOM NAVIGATION TAB BAR (iOS/NameThatUI Glass Standard)
   ======================================================== */
.tab-bar-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: calc(var(--tab-bar-height) + env(safe-area-inset-bottom, 0px));
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: rgba(10, 15, 26, 0.88);
    backdrop-filter: blur(24px) saturate(200%);
    -webkit-backdrop-filter: blur(24px) saturate(200%);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: space-around;
    z-index: 9999;
    width: 100%;
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.65);
}

.tab-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    color: var(--text-muted);
    flex: 1;
    height: 100%;
    position: relative;
    transition: color 0.18s ease;
    gap: 4px;
    user-select: none;
}

.tab-icon-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 24px;
    transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.tab-item i {
    font-size: 1.25rem;
    transition: transform 0.2s ease, color 0.2s ease;
}

.tab-label {
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
}

.tab-item[aria-current="page"], .tab-item.active {
    color: #00f2fe !important;
}
.tab-item[aria-current="page"] .tab-icon-wrapper,
.tab-item.active .tab-icon-wrapper {
    transform: translateY(-2px) scale(1.1);
}
.tab-item[aria-current="page"] i, .tab-item.active i {
    color: #00f2fe;
}
.tab-item[aria-current="page"]::after {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    transform: translateX(-50%);
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #00f2fe;
    box-shadow: 0 0 8px #00f2fe;
}

.tab-item-highlight {
    color: #10b981;
}
.tab-item-highlight i {
    color: #10b981;
}

.tab-badge {
    position: absolute;
    top: -4px;
    right: -8px;
    background: #f43f5e;
    color: #fff;
    font-size: 0.65rem;
    font-weight: 800;
    border-radius: var(--radius-full);
    padding: 1px 5px;
    line-height: 1.2;
    min-width: 16px;
    text-align: center;
    box-shadow: 0 2px 6px rgba(244, 63, 94, 0.6);
}

@media (min-width: 769px) {
    .tab-bar-nav {
        display: none !important;
    }
    body {
        padding-bottom: 0;
    }
}

/* ========================================================
   FOOTER KÍNH SANG TRỌNG (Ultra-Glass Footer)
   ======================================================== */
.glass-footer {
    background: rgba(9, 14, 25, 0.88);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    margin-top: 60px;
    padding: 50px 16px 35px;
}

.glass-footer-inner {
    max-width: 1240px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 32px;
}

.footer-logo-box {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #060911;
    font-size: 1.15rem;
    box-shadow: 0 0 14px rgba(245, 158, 11, 0.4);
}

.footer-brand-title {
    font-family: var(--font-display);
    font-weight: 900;
    font-size: 1.25rem;
    letter-spacing: 0.5px;
}

.footer-desc-text {
    color: var(--text-muted);
    font-size: 0.86rem;
    line-height: 1.65;
    margin-bottom: 16px;
}

.social-glass-btn {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #3b82f6;
    text-decoration: none;
    transition: all 0.2s ease;
}
.social-glass-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    transform: translateY(-2px);
    box-shadow: 0 0 12px rgba(255, 255, 255, 0.15);
}

.footer-col-title {
    font-family: var(--font-display);
    font-size: 0.92rem;
    font-weight: 800;
    color: #fff;
    text-transform: uppercase;
    margin-bottom: 14px;
    letter-spacing: 0.6px;
}

.footer-link-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 9px;
    font-size: 0.86rem;
}
.footer-link-list a {
    color: var(--text-muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.15s ease, transform 0.15s ease;
}
.footer-link-list a:hover {
    color: #00f2fe;
    transform: translateX(3px);
}
.footer-link-highlight-box9 {
    color: #c084fc !important;
    font-weight: 800 !important;
}
.footer-link-highlight {
    color: #38bdf8 !important;
    font-weight: 800 !important;
}

.footer-card-dev {
    padding: 16px;
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.04);
}
.dev-avatar-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    color: #060911;
}

.glass-footer-bottom {
    max-width: 1240px;
    margin: 30px auto 0;
    padding-top: 18px;
    border-top: 1px solid var(--border-glass);
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 0.8rem;
    color: var(--text-muted);
}

/* ========================================================
   BADGES & CHIPS KÍNH CƯỜNG LỰC
   ======================================================== */
.badge-glass {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    font-size: 0.74rem;
    font-weight: 800;
    backdrop-filter: blur(10px);
}

.badge-hot {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25), rgba(249, 115, 22, 0.2));
    border: 1px solid rgba(239, 68, 68, 0.5);
    color: #f87171;
    box-shadow: 0 0 10px rgba(239, 68, 68, 0.3);
}

.badge-available {
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.5);
    color: #34d399;
}

.badge-sold {
    background: rgba(148, 163, 184, 0.15);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #94a3b8;
}

.stock-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 12px;
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    margin-bottom: 12px;
    font-size: 0.82rem;
}

.stock-info-row span {
    color: var(--text-dim);
}

.text-emerald { color: #10b981; }
.text-rose { color: #f43f5e; }

/* ========================================================
   CYBER PRELOADER 0 - 100% (Futuristic HUD Loading Screen)
   ======================================================== */
.cyber-preloader {
    position: fixed;
    inset: 0;
    z-index: 999999;
    background: #060911;
    background-image: 
        radial-gradient(circle at 50% 40%, rgba(0, 242, 254, 0.14) 0%, transparent 60%),
        radial-gradient(circle at 20% 80%, rgba(168, 85, 247, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.08) 0%, transparent 50%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    transition: opacity 0.38s cubic-bezier(0.16, 1, 0.3, 1), transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.38s;
    user-select: none;
    -webkit-user-select: none;
}

.cyber-preloader.preloader-hidden {
    opacity: 0;
    visibility: hidden;
    transform: scale(1.04);
    pointer-events: none;
}

.preloader-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 320px;
    width: 90%;
    padding: 24px 16px;
}

.preloader-logo-ring {
    position: relative;
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.preloader-ring-spin {
    position: absolute;
    inset: 0;
    border-radius: 50%;
    border: 2px solid transparent;
    border-top-color: #00f2fe;
    border-right-color: #38bdf8;
    border-bottom-color: #c084fc;
    animation: preloaderSpin 1.1s cubic-bezier(0.5, 0, 0.5, 1) infinite;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.4);
}

.preloader-glow-circle {
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 242, 254, 0.22) 0%, transparent 70%);
    animation: preloaderPulse 1.6s ease-in-out infinite alternate;
}

.preloader-icon-box {
    width: 50px;
    height: 50px;
    border-radius: 14px;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.2), rgba(168, 85, 247, 0.2));
    border: 1px solid rgba(0, 242, 254, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #00f2fe;
    font-size: 1.45rem;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.45);
    position: relative;
    z-index: 2;
}

.preloader-brand-title {
    font-family: 'Outfit', sans-serif;
    font-weight: 900;
    font-size: 1.35rem;
    letter-spacing: 0.8px;
    color: #fff;
    margin-bottom: 4px;
}

.preloader-bar-wrapper {
    width: 100%;
    max-width: 270px;
    margin-top: 14px;
}

.preloader-bar-track {
    width: 100%;
    height: 7px;
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    overflow: hidden;
    position: relative;
    box-shadow: inset 0 1px 3px rgba(0, 0, 0, 0.6);
}

.preloader-bar-fill {
    width: 0%;
    height: 100%;
    background: linear-gradient(90deg, #00f2fe 0%, #38bdf8 50%, #c084fc 100%);
    border-radius: 999px;
    box-shadow: 0 0 16px rgba(0, 242, 254, 0.9);
    transition: width 0.07s linear;
    position: relative;
}

.preloader-bar-fill::after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    width: 8px;
    background: #fff;
    box-shadow: 0 0 10px #fff;
    border-radius: 999px;
}

.preloader-counter-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-top: 10px;
    font-size: 0.76rem;
}

.preloader-status {
    color: #94a3b8;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.preloader-percent {
    color: #00f2fe;
    font-weight: 900;
    font-family: monospace;
    font-size: 0.94rem;
    letter-spacing: 0.5px;
    text-shadow: 0 0 12px rgba(0, 242, 254, 0.6);
}

@keyframes preloaderSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes preloaderPulse {
    0% { transform: scale(0.9); opacity: 0.5; }
    100% { transform: scale(1.18); opacity: 1; }
}

/* ========================================================
   UTILITY CLASSES & GRID LAYOUT
   ======================================================== */
.hidden { display: none !important; }

/* Product Grid & Combo Packages */
.shop-products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

.combo-packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 16px;
}

#pricingTableModal {
    position: fixed;
    inset: 0;
    background: rgba(4, 7, 14, 0.88);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}
#pricingTableModal.hidden {
    display: none !important;
}

/* ========================================================
   MOBILE & TABLET ULTRA-POLISH (<= 768px & <= 640px)
   ======================================================== */
@media (max-width: 768px) {
    .glass-header-container {
        padding: 8px 12px !important;
        gap: 8px !important;
    }
    .brand-logo-img, .brand-logo-fallback {
        width: 32px !important;
        height: 32px !important;
    }
    .brand-shop-name {
        font-size: 0.88rem !important;
    }
    .brand-shop-slogan {
        display: none !important;
    }
    
    /* Header User Pill */
    .btn-user-pill {
        padding: 4px 8px 4px 5px !important;
        gap: 6px !important;
    }
    .user-pill-rank {
        display: none !important;
    }
    .user-pill-chevron {
        display: none !important;
    }
    .user-name-label {
        max-width: 65px !important;
        font-size: 0.78rem !important;
    }
    .user-balance-badge {
        padding: 2px 7px !important;
        font-size: 0.72rem !important;
    }
    .btn-header-login {
        padding: 6px 11px !important;
        font-size: 0.76rem !important;
    }

    /* Filter tab scrollable row on mobile */
    .filter-tab-row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch !important;
        gap: 8px !important;
        width: 100% !important;
        padding-top: 4px !important;
        padding-bottom: 6px !important;
        scrollbar-width: none !important;
    }
    .filter-tab-row::-webkit-scrollbar {
        display: none !important;
    }
    .filter-tab-row > * {
        flex-shrink: 0 !important;
        white-space: nowrap !important;
    }
    
    /* Hero Cyber Banner */
    .hero-cyber-banner {
        padding: 18px 14px !important;
        border-radius: 16px !important;
    }
    .hero-cyber-banner h1 {
        font-size: 1.35rem !important;
        line-height: 1.3 !important;
        margin-bottom: 10px !important;
    }
    .hero-cyber-banner p {
        font-size: 0.82rem !important;
        line-height: 1.5 !important;
        margin-bottom: 14px !important;
    }

    /* Hero User Rank Box */
    .hero-user-rank-box {
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 8px !important;
        padding: 12px 14px !important;
    }
    .hero-user-rank-box .rank-discount-text {
        font-size: 0.75rem !important;
        line-height: 1.4 !important;
    }
    .hero-user-rank-box .rank-upgrade-btn {
        width: 100% !important;
        text-align: center !important;
        justify-content: center !important;
        margin-left: 0 !important;
        padding: 9px !important;
    }

    /* Hero Stats Grid */
    .hero-stats-grid {
        grid-template-columns: 1fr 1fr !important;
        gap: 8px !important;
        max-width: 100% !important;
        width: 100% !important;
        margin-top: 6px !important;
    }
    .stats-counter-box {
        padding: 10px 8px !important;
        border-radius: 12px !important;
    }
    .stats-counter-box div:first-child {
        font-size: 1.25rem !important;
    }
    .stats-counter-box div:last-child {
        font-size: 0.68rem !important;
    }

    /* Search form */
    .home-search-form {
        flex-direction: column !important;
        width: 100% !important;
    }
    .home-search-btn {
        width: 100% !important;
        justify-content: center !important;
        padding: 10px !important;
    }
    .gray-glass-frame {
        padding: 14px 12px !important;
    }
}

@media (max-width: 600px) {
    .hide-mobile { display: none !important; }
    .zalo-nav-label { display: none !important; }
    
    .shop-products-grid {
        grid-template-columns: 1fr !important;
        gap: 16px !important;
    }
    .combo-packages-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
}

/* Page entrance smooth GPU animation */
.page-container {
    animation: pageFadeIn 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
    will-change: transform, opacity;
}

@keyframes pageFadeIn {
    0% {
        opacity: 0;
        transform: translate3d(0, 10px, 0);
    }
    100% {
        opacity: 1;
        transform: translate3d(0, 0, 0);
    }
}


/* ========================================================
   GAME SELECTOR & PRODUCT VIP CARD CYBER STYLES
   ======================================================== */
.quick-game-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 999px;
    color: #cbd5e1;
    text-decoration: none;
    font-size: 0.84rem;
    font-weight: 700;
    white-space: nowrap;
    transition: all 0.2s ease;
    flex-shrink: 0;
    cursor: pointer;
}
.quick-game-pill:hover, .quick-game-pill.active {
    background: rgba(0, 242, 254, 0.15) !important;
    border-color: #00f2fe !important;
    color: #00f2fe !important;
    box-shadow: 0 0 14px rgba(0, 242, 254, 0.25) !important;
}
.quick-game-pill img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
    border: 1px solid #00f2fe;
}
.product-vip-card {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(11, 15, 26, 0.98));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    overflow: hidden;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
    position: relative;
}
.product-vip-card:hover {
    transform: translateY(-4px);
    border-color: rgba(0, 242, 254, 0.5);
    box-shadow: 0 10px 25px rgba(0, 242, 254, 0.15);
}
@media (max-width: 580px) {
    .product-vip-card {
        flex-direction: column;
    }
}
.demo-preview-img-box {
    position: relative;
    width: 220px;
    min-width: 220px;
    height: 100%;
    min-height: 180px;
    overflow: hidden;
    background: #000;
}
@media (max-width: 580px) {
    .demo-preview-img-box {
        width: 100%;
        min-width: 100%;
        height: 185px;
    }
}
.demo-preview-img-box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.demo-preview-img-box:hover img {
    transform: scale(1.08);
}
.demo-badge-overlay {
    position: absolute;
    bottom: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(0, 242, 254, 0.4);
    color: #00f2fe;
    font-size: 0.68rem;
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 4px;
}

/* Interactive Game Selector Card 3D */
.game-select-card-btn {
    background: linear-gradient(145deg, rgba(15, 23, 42, 0.9), rgba(11, 15, 26, 0.95));
    border: 1.5px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    text-align: left;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    flex: 0 0 240px;
    width: 240px;
}
.game-select-card-btn:hover {
    transform: translateY(-3px);
    border-color: rgba(0, 242, 254, 0.6);
    box-shadow: 0 8px 24px rgba(0, 242, 254, 0.2);
}
.game-select-card-btn.active {
    background: linear-gradient(145deg, rgba(0, 242, 254, 0.14), rgba(168, 85, 247, 0.16)) !important;
    border-color: #00f2fe !important;
    box-shadow: 0 0 25px rgba(0, 242, 254, 0.3), inset 0 0 15px rgba(0, 242, 254, 0.1) !important;
}
.game-select-card-btn.active::after {
    content: 'ĐANG CHỌN';
    position: absolute;
    top: 6px;
    right: 8px;
    font-size: 0.62rem;
    font-weight: 900;
    color: #00f2fe;
    background: rgba(0, 242, 254, 0.2);
    border: 1px solid #00f2fe;
    padding: 1px 6px;
    border-radius: 999px;
    letter-spacing: 0.5px;
}

