/* ====================================================
   SHOP TẤN DŨNG FF - STYLE HOÀN CHỈNH v16.0
   GIỎ HÀNG + QR ẢNH + XÓA DOWNLOAD + LINK TẢI
   RESPONSIVE + CHỐNG PHÓNG TO
   ==================================================== */

/* ===== CHỐNG PHÓNG TO MÀN HÌNH ===== */
html, body {
    touch-action: manipulation;
    -webkit-touch-callout: none;
    -webkit-user-select: none;
    user-select: none;
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

img, video, canvas, svg {
    pointer-events: none;
    -webkit-touch-callout: none;
    max-width: 100%;
    height: auto;
}

input, textarea, select, button {
    font-size: 16px !important;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
}

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Inter', sans-serif;
    cursor: none !important;
}

:root {
    --primary: #00f0ff;
    --secondary: #7000ff;
    --accent-glow: rgba(0, 240, 255, 0.7);
    --bg-glass: rgba(6, 10, 24, 0.85);
    --border-glass: rgba(0, 240, 255, 0.25);
    --text-main: #ffffff;
    --text-muted: #94a3b8;
    --radius: 24px;
    --shadow: 0 25px 60px rgba(0, 0, 0, 0.85);
    --gold: #ffd700;
    --success: #00ff88;
    --warning: #ffaa00;
    --danger: #ff0077;
    --info: #3b82f6;
}

body {
    background-color: #010205;
    color: var(--text-main);
    min-height: 100vh;
    overflow-x: hidden;
    position: relative;
    font-size: 14px;
    line-height: 1.6;
}

/* ===== CUSTOM CURSOR 4K ===== */
.custom-cursor {
    position: fixed;
    top: 0;
    left: 0;
    width: 30px;
    height: 30px;
    border: 2px solid var(--primary);
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    transition: width 0.2s cubic-bezier(0.25, 1, 0.5, 1), 
                height 0.2s cubic-bezier(0.25, 1, 0.5, 1), 
                background-color 0.2s, 
                border-color 0.2s;
    z-index: 99999;
    box-shadow: 0 0 30px var(--primary);
    background: rgba(0, 240, 255, 0.05);
}
.custom-cursor.active {
    width: 50px;
    height: 50px;
    background: rgba(0, 240, 255, 0.15);
    border-color: #fff;
}

.cursor-dot {
    position: fixed;
    top: 0;
    left: 0;
    width: 6px;
    height: 6px;
    background-color: #fff;
    border-radius: 50%;
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 100000;
    box-shadow: 0 0 20px #fff;
    transition: transform 0.08s ease-out;
}

.cursor-trail {
    position: fixed;
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(0, 240, 255, 0.12), transparent 70%);
    pointer-events: none;
    transform: translate(-50%, -50%);
    z-index: 99998;
    transition: all 0.15s ease-out;
}

/* ===== BACKGROUND & EFFECTS ===== */
.background-container {
    position: fixed;
    top: -10%;
    left: -10%;
    width: 120vw;
    height: 120vh;
    z-index: -3;
    background: linear-gradient(to bottom, rgba(1, 2, 5, 0.4), rgba(1, 2, 5, 0.9)), 
                url('https://i.ibb.co/PGwg6pbx/14-3.jpg') no-repeat center center/cover;
    filter: contrast(1.3) saturate(1.5) brightness(1.15);
    animation: bgMove 70s ease-in-out infinite alternate;
}
@keyframes bgMove {
    0% { transform: scale(1) translate(0, 0); }
    50% { transform: scale(1.12) translate(-30px, -20px); }
    100% { transform: scale(1.06) translate(30px, 20px); }
}

.mesh-blob {
    position: fixed;
    border-radius: 50%;
    filter: blur(120px);
    z-index: -3;
    opacity: 0.3;
    pointer-events: none;
    animation: blobFloat 22s cubic-bezier(0.37, 0, 0.63, 1) infinite alternate;
}
.blob-1 { top: 5%; left: 5%; width: 500px; height: 500px; background: var(--secondary); }
.blob-2 { bottom: 5%; right: 5%; width: 450px; height: 450px; background: var(--primary); animation-delay: -8s; }
.blob-3 { top: 50%; left: 50%; width: 350px; height: 350px; background: #00ff88; animation-delay: -14s; transform: translate(-50%, -50%); }

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1) rotate(0deg); }
    100% { transform: translate(80px, 80px) scale(1.3) rotate(20deg); }
}

.lightning-overlay {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(255, 255, 255, 0);
    z-index: -2; pointer-events: none;
    transition: background 0.05s ease;
}

/* ===== SCROLLBAR ===== */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: rgba(0, 0, 0, 0.3); }
::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 10px; box-shadow: 0 0 15px var(--primary); }

/* ====================================================
   HEADER & NAVIGATION
   ==================================================== */
header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 40px;
    background: var(--bg-glass);
    backdrop-filter: blur(40px);
    -webkit-backdrop-filter: blur(40px);
    border-bottom: 1px solid var(--border-glass);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.85);
    transition: all 0.3s ease;
}
header.scrolled {
    padding: 10px 40px;
    background: rgba(6, 10, 24, 0.95);
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer !important;
}
.logo-area i {
    font-size: 34px;
    color: var(--primary);
    filter: drop-shadow(0 0 22px var(--primary));
    animation: pulseLogo 2.8s ease-in-out infinite;
}
@keyframes pulseLogo {
    0%, 100% { transform: scale(1); filter: drop-shadow(0 0 20px var(--primary)); }
    50% { transform: scale(1.15); filter: drop-shadow(0 0 40px #00ff88); }
}
.logo-area h1 {
    font-size: 24px;
    font-weight: 900;
    background: linear-gradient(135deg, var(--primary), #00ff88, #ffffff);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    letter-spacing: 1.5px;
}
.version-badge {
    font-size: 9px;
    background: linear-gradient(135deg, #ffd700, #ff6b00);
    padding: 2px 10px;
    border-radius: 20px;
    color: #000;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    gap: 4px;
    list-style: none;
    flex-wrap: wrap;
}
.nav-links li a {
    text-decoration: none;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 14px;
    position: relative;
}
.nav-links li a::before {
    content: '';
    position: absolute;
    bottom: 4px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}
.nav-links li a:hover,
.nav-links li a.active {
    color: var(--primary);
    background: rgba(0, 240, 255, 0.12);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.6);
    transform: translateY(-2px);
}
.nav-links li a.active::before { width: 60%; }

.user-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.vip-badge-header {
    display: none;
    align-items: center;
    gap: 6px;
    background: rgba(255, 215, 0, 0.12);
    border: 1px solid rgba(255, 215, 0, 0.25);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    color: var(--gold);
}

.balance-badge {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid var(--border-glass);
    padding: 8px 18px;
    border-radius: 30px;
    font-weight: 700;
    color: var(--primary);
    display: none;
    align-items: center;
    gap: 8px;
    cursor: pointer !important;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.balance-badge:hover {
    transform: scale(1.06);
    box-shadow: 0 0 40px var(--primary);
}

.auth-buttons { display: flex; gap: 10px; }
.btn-auth {
    padding: 9px 20px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    border: none;
    cursor: pointer !important;
}
.btn-login {
    background: transparent;
    border: 1px solid var(--border-glass);
    color: var(--text-main);
}
.btn-login:hover {
    background: rgba(255, 255, 255, 0.08);
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    transform: translateY(-2px);
}
.btn-register {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.7);
}
.btn-register:hover {
    opacity: 0.95;
    transform: scale(1.05) translateY(-2px);
    box-shadow: 0 0 40px var(--primary);
}

.user-profile-badge {
    display: none;
    align-items: center;
    gap: 10px;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 6px 16px 6px 6px;
    border-radius: 40px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
    cursor: pointer !important;
    animation: fadeInProfile 0.5s ease forwards;
}
@keyframes fadeInProfile {
    from { opacity: 0; transform: scale(0.9); }
    to { opacity: 1; transform: scale(1); }
}
.user-profile-badge img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}
.user-profile-badge span {
    font-size: 13px;
    font-weight: 700;
    color: #fff;
}
.user-profile-badge #adminBadge {
    display: none;
    background: #ff0077;
    color: #fff;
    font-size: 8px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
    text-transform: uppercase;
}
.user-profile-badge #vipBadgeHeaderSmall {
    display: none;
    background: var(--gold);
    color: #000;
    font-size: 8px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 700;
}
.user-profile-badge i {
    color: var(--text-muted);
    font-size: 12px;
}

/* ===== USER DROPDOWN ===== */
.user-dropdown {
    position: absolute;
    top: 55px;
    right: 0;
    background: var(--bg-glass);
    backdrop-filter: blur(40px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 10px;
    min-width: 200px;
    display: none;
    z-index: 1000;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.8);
    animation: fadeInDropdown 0.3s ease forwards;
}
@keyframes fadeInDropdown {
    from { opacity: 0; transform: translateY(-10px) scale(0.95); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}
.user-dropdown.show { display: block; }
.user-dropdown a {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    transition: all 0.2s ease;
}
.user-dropdown a:hover {
    background: rgba(0, 240, 255, 0.1);
    color: var(--primary);
}
.user-dropdown hr {
    border: none;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    margin: 6px 0;
}

.mobile-toggle {
    display: none;
    font-size: 24px;
    color: var(--text-main);
    cursor: pointer !important;
}

/* ====================================================
   CART BADGE
   ==================================================== */
.cart-badge {
    position: fixed;
    bottom: 90px;
    right: 25px;
    background: var(--bg-glass);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-glass);
    border-radius: 50%;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 22px;
    z-index: 98;
    cursor: pointer !important;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}
.cart-badge:hover {
    transform: scale(1.1);
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.3);
}
.cart-badge span {
    position: absolute;
    top: -6px;
    right: -6px;
    background: #ff0077;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 15px rgba(255, 0, 119, 0.5);
}

/* ====================================================
   TABS & LAYOUT
   ==================================================== */
.tab-content {
    display: none;
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.4s ease, transform 0.4s ease;
}
.tab-content.active-tab {
    display: block;
    opacity: 1;
    transform: translateY(0);
    animation: fadeInTab 0.5s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes fadeInTab {
    from { opacity: 0; transform: translateY(20px) scale(0.98); filter: blur(5px); }
    to { opacity: 1; transform: translateY(0) scale(1); filter: blur(0); }
}

.main-container {
    max-width: 1440px;
    margin: 30px auto;
    padding: 0 25px;
}
.page-section-container {
    max-width: 1320px;
    margin: 40px auto;
    padding: 0 25px;
}

/* ====================================================
   HOME LAYOUT
   ==================================================== */
.home-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 25px;
    align-items: start;
}

/* ===== SIDEBAR ===== */
.sidebar-box {
    background: var(--bg-glass);
    backdrop-filter: blur(35px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow);
    position: sticky;
    top: 105px;
    transition: all 0.3s ease;
}
.sidebar-box:hover {
    border-color: var(--primary);
    box-shadow: 0 0 40px rgba(0, 240, 255, 0.1);
}

.search-bar-box {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 10px 14px;
    margin-bottom: 20px;
    gap: 12px;
    transition: all 0.3s ease;
}
.search-bar-box:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}
.search-bar-box i {
    color: var(--primary);
    font-size: 15px;
}
.search-bar-box input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 13px;
    width: 100%;
}
.search-shortcut {
    font-size: 10px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 8px;
    border-radius: 4px;
}

.sidebar-title {
    font-size: 15px;
    font-weight: 800;
    color: var(--primary);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid var(--border-glass);
    padding-bottom: 12px;
    text-shadow: 0 0 10px rgba(0, 240, 255, 0.3);
}

.sidebar-menu {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 25px;
}
.sidebar-menu li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    color: var(--text-main);
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    cursor: pointer !important;
}
.sidebar-menu li a:hover,
.sidebar-menu li a.active-filter {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--primary);
    color: var(--primary);
    transform: translateX(8px);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
}

.price-tag-quick {
    font-size: 11px;
    color: #00ff88;
    font-weight: 700;
}

/* ===== STATS WIDGET ===== */
.stats-widget {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 16px;
    font-size: 13px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 12px 14px;
    border-radius: 14px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.stat-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
}
.stat-item i {
    color: var(--primary);
    width: 18px;
    font-size: 12px;
}
.stat-item b {
    color: var(--text-main);
    font-weight: 700;
}

/* ====================================================
   CHART
   ==================================================== */
.chart-container-box {
    background: var(--bg-glass);
    backdrop-filter: blur(35px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 30px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.chart-container-box::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary), var(--secondary), #00ff88);
    animation: shimmerLine 4s infinite linear;
    background-size: 200% 100%;
}
@keyframes shimmerLine {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}
.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 18px;
}
.chart-header h3 {
    font-size: 16.5px;
    font-weight: 800;
}
.chart-wrapper {
    position: relative;
    height: 250px;
    width: 100%;
}

/* ====================================================
   FILES / PRODUCTS
   ==================================================== */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 10px;
}
.section-header h3 {
    font-size: 19px;
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.3);
}
.view-toggle {
    display: flex;
    gap: 6px;
}
.view-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 6px 12px;
    border-radius: 10px;
    color: var(--text-muted);
    cursor: pointer !important;
    transition: all 0.3s ease;
}
.view-btn.active,
.view-btn:hover {
    background: rgba(0, 240, 255, 0.15);
    color: var(--primary);
    border-color: var(--primary);
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 22px;
}
.products-grid.list-view {
    grid-template-columns: 1fr;
}
.products-grid.list-view .product-card {
    flex-direction: row;
    align-items: center;
    padding: 12px;
}
.products-grid.list-view .product-img-wrapper {
    width: 120px;
    height: 120px;
    flex-shrink: 0;
}
.products-grid.list-view .product-details {
    flex: 1;
}

.product-card {
    background: var(--bg-glass);
    backdrop-filter: blur(35px);
    border: 1px solid var(--border-glass);
    border-radius: 22px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    display: flex;
    flex-direction: column;
    position: relative;
    box-shadow: 0 20px 45px rgba(0, 0, 0, 0.75);
}
.product-card:hover {
    transform: translateY(-12px) scale(1.02);
    border-color: var(--primary);
    box-shadow: 0 35px 70px rgba(0, 240, 255, 0.4);
}
.product-img-wrapper {
    width: 100%;
    height: 165px;
    overflow: hidden;
    position: relative;
}
.product-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-bottom: 1px solid var(--border-glass);
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}
.product-card:hover .product-img {
    transform: scale(1.15);
}
.product-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    padding: 4px 14px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.6);
    z-index: 2;
    animation: badgePulse 2s infinite alternate;
}
@keyframes badgePulse {
    0% { transform: scale(1); }
    100% { transform: scale(1.08); box-shadow: 0 0 25px var(--primary); }
}
.product-details {
    padding: 16px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    gap: 10px;
}
.product-title {
    font-size: 14.5px;
    font-weight: 700;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.product-stats {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11.5px;
    color: var(--text-muted);
    background: rgba(255, 255, 255, 0.03);
    padding: 8px 12px;
    border-radius: 10px;
}
.product-stats b {
    color: #00ff88;
}
.product-rating {
    color: #ffaa00;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 4px;
}

.login-required-msg {
    margin-top: auto;
    padding: 12px;
    background: rgba(0, 240, 255, 0.06);
    border: 1px dashed var(--border-glass);
    border-radius: 14px;
    text-align: center;
    font-size: 11.5px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer !important;
    transition: all 0.35s ease;
}
.login-required-msg:hover {
    background: rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    transform: scale(1.02);
}
.protected-price-area {
    display: none;
    flex-direction: column;
    gap: 10px;
    margin-top: auto;
}
.product-price {
    font-size: 17px;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 15px rgba(0, 240, 255, 0.5);
}
.btn-buy {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 14px;
    color: #fff;
    font-weight: 700;
    font-size: 12.5px;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer !important;
    box-shadow: 0 4px 15px rgba(0, 240, 255, 0.3);
}
.btn-buy:hover {
    opacity: 0.95;
    box-shadow: 0 0 35px var(--primary);
    transform: scale(1.04);
}
.btn-buy.btn-buy-now {
    background: linear-gradient(135deg, #00ff88, #00cc66);
    color: #000;
}
.btn-buy.btn-buy-now:hover {
    box-shadow: 0 0 35px rgba(0, 255, 136, 0.5);
}

.load-more {
    text-align: center;
    margin-top: 30px;
}
.load-more button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    padding: 12px 30px;
    border-radius: 30px;
    color: var(--text-main);
    font-weight: 600;
    cursor: pointer !important;
    transition: all 0.3s ease;
}
.load-more button:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--primary);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.2);
}

/* ====================================================
   KHO FILE - NÂNG CẤP
   ==================================================== */
.file-filter-bar {
    display: flex;
    gap: 16px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    align-items: center;
}
.file-search {
    display: flex;
    align-items: center;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 14px;
    padding: 10px 16px;
    gap: 12px;
    flex: 1;
    min-width: 200px;
}
.file-search i {
    color: var(--primary);
}
.file-search input {
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    width: 100%;
    font-size: 13px;
}
.file-search input:focus {
    border-color: var(--primary);
}

.file-filter-options {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.file-filter-options select {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 10px 14px;
    color: var(--text-main);
    font-size: 13px;
    outline: none;
    cursor: pointer !important;
    min-width: 130px;
}
.file-filter-options select:focus {
    border-color: var(--primary);
}

.file-grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 24px;
}

.file-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
}
.file-pagination button {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 8px 16px;
    color: var(--text-main);
    cursor: pointer !important;
    transition: all 0.3s;
}
.file-pagination button:hover {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--primary);
}
.file-pagination span {
    color: var(--text-muted);
    font-size: 13px;
}

/* ====================================================
   GIỎ HÀNG
   ==================================================== */
.cart-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255,255,255,0.02);
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 14px 18px;
    margin-bottom: 10px;
    transition: all 0.3s;
}
.cart-item:hover {
    border-color: rgba(0, 240, 255, 0.2);
}
.cart-item img {
    width: 60px;
    height: 60px;
    border-radius: 10px;
    object-fit: cover;
}
.cart-item .info {
    flex: 1;
}
.cart-item .info .name {
    font-weight: 600;
    color: var(--text-main);
}
.cart-item .info .price {
    color: var(--primary);
    font-weight: 700;
    font-size: 14px;
}
.cart-item .btn-remove {
    background: rgba(255,77,77,0.15);
    border: none;
    color: #ff4d4d;
    padding: 6px 14px;
    border-radius: 8px;
    cursor: pointer !important;
    font-weight: 600;
    transition: all 0.3s;
}
.cart-item .btn-remove:hover {
    background: rgba(255,77,77,0.3);
    transform: scale(1.05);
}
.cart-summary {
    margin-top: 20px;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
}
.cart-summary .total {
    font-size: 24px;
    font-weight: 800;
    color: var(--primary);
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}
.cart-summary .btn-checkout {
    background: linear-gradient(135deg, #00ff88, #00cc66);
    border: none;
    padding: 12px 32px;
    border-radius: 12px;
    color: #000;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer !important;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0,255,136,0.3);
}
.cart-summary .btn-checkout:hover {
    transform: scale(1.05);
    box-shadow: 0 0 40px rgba(0,255,136,0.5);
}
.cart-empty {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}
.cart-empty i {
    font-size: 48px;
    display: block;
    margin-bottom: 16px;
    color: var(--text-muted);
}

/* ====================================================
   VÒNG QUAY - NÂNG CẤP CASINO
   ==================================================== */
.spin-stats-bar {
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 16px 24px;
    margin-bottom: 24px;
}
.spin-stat {
    font-size: 14px;
    color: var(--text-muted);
}
.spin-stat b {
    color: var(--text-main);
    font-weight: 700;
}
.spin-stat b.gold {
    color: var(--gold);
}

.wheel-container {
    display: flex;
    justify-content: center;
    padding: 20px 0;
}
.wheel-box {
    position: relative;
    width: 380px;
    height: 380px;
    border-radius: 50%;
    border: 8px solid var(--primary);
    box-shadow: 0 0 60px rgba(0, 240, 255, 0.5);
    transition: transform 5s cubic-bezier(0.15, 0.85, 0.12, 1);
    background: conic-gradient(
        #00f0ff 0deg 30deg, #7000ff 30deg 60deg, #ff0077 60deg 90deg,
        #00ff88 90deg 120deg, #ffaa00 120deg 150deg, #ff6600 150deg 180deg,
        #00f0ff 180deg 210deg, #7000ff 210deg 240deg, #ff0077 240deg 270deg,
        #00ff88 270deg 300deg, #ffaa00 300deg 330deg, #ff6600 330deg 360deg
    );
}
.wheel-box::after {
    content: '';
    position: absolute;
    top: 8px;
    left: 8px;
    right: 8px;
    bottom: 8px;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
}
.wheel-pointer {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%);
    font-size: 44px;
    color: #fff;
    filter: drop-shadow(0 0 20px #ff0055);
    z-index: 10;
    animation: pointerBounce 1.5s ease-in-out infinite;
}
@keyframes pointerBounce {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-10px); }
}
.wheel-center-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: 3px solid #fff;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.6);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer !important;
    z-index: 11;
    transition: all 0.3s;
}
.wheel-center-btn:hover {
    transform: translate(-50%, -50%) scale(1.08);
}
.wheel-center-btn i {
    font-size: 20px;
    color: #fff;
}
.wheel-center-btn span {
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    letter-spacing: 0.5px;
}

.spin-history {
    margin-top: 30px;
    text-align: left;
}
.spin-history h4 {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}
#spinHistoryList {
    max-height: 200px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.spin-history-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    font-size: 13px;
    color: var(--text-muted);
    animation: fadeInTab 0.3s ease;
}
.spin-history-item .prize {
    font-weight: 600;
    color: var(--gold);
}
.spin-history-item .time {
    font-size: 11px;
}

/* ====================================================
   SỰ KIỆN
   ==================================================== */
.events-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 20px;
}
.event-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}
.event-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), #ff6b00);
}
.event-card:hover {
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateY(-4px);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.05);
}
.event-card .event-icon {
    font-size: 32px;
    margin-bottom: 10px;
}
.event-card .event-name {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-main);
}
.event-card .event-desc {
    font-size: 13px;
    color: var(--text-muted);
    margin: 6px 0;
}
.event-card .event-reward {
    display: inline-block;
    background: rgba(255, 215, 0, 0.12);
    color: var(--gold);
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}
.event-card .event-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}
.event-card .event-status {
    display: inline-block;
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
}
.event-card .event-status.active {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
}
.event-card .event-status.ended {
    background: rgba(255, 77, 77, 0.15);
    color: #ff4d4d;
}
.event-card .event-status.coming {
    background: rgba(255, 170, 0, 0.15);
    color: #ffaa00;
}
.event-card .btn-join-event {
    margin-top: 12px;
    padding: 8px 20px;
    border: none;
    border-radius: 10px;
    background: linear-gradient(135deg, var(--gold), #ff6b00);
    color: #000;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer !important;
    transition: all 0.3s;
}
.event-card .btn-join-event:hover {
    transform: scale(1.05);
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.4);
}
.event-card .btn-join-event:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ====================================================
   NHIỆM VỤ HÀNG NGÀY
   ==================================================== */
.missions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 16px;
}
.mission-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 18px;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 16px;
}
.mission-card:hover {
    border-color: rgba(0, 240, 255, 0.2);
    transform: translateY(-3px);
}
.mission-card .mission-icon {
    font-size: 28px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: rgba(0, 240, 255, 0.06);
    flex-shrink: 0;
}
.mission-card .mission-info {
    flex: 1;
}
.mission-card .mission-name {
    font-weight: 600;
    color: var(--text-main);
    font-size: 14px;
}
.mission-card .mission-desc {
    font-size: 12px;
    color: var(--text-muted);
}
.mission-card .mission-progress {
    margin-top: 6px;
    height: 4px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}
.mission-card .mission-progress .progress-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.6s ease;
}
.mission-card .mission-reward {
    font-size: 12px;
    color: var(--gold);
    font-weight: 600;
}
.mission-card .mission-btn {
    padding: 6px 16px;
    border: none;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer !important;
    transition: all 0.3s;
}
.mission-card .mission-btn.claim {
    background: linear-gradient(135deg, #00ff88, #00cc66);
    color: #000;
}
.mission-card .mission-btn.claim:hover {
    transform: scale(1.05);
}
.mission-card .mission-btn.done {
    background: rgba(255, 255, 255, 0.05);
    color: var(--text-muted);
    cursor: default;
}
.mission-card .mission-btn.locked {
    background: rgba(255, 255, 255, 0.03);
    color: var(--text-muted);
    cursor: default;
}

/* ====================================================
   VIP SYSTEM
   ==================================================== */
.vip-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 215, 0, 0.08);
    border: 1px solid rgba(255, 215, 0, 0.15);
    border-radius: 12px;
    padding: 12px 16px;
    margin-bottom: 16px;
}
.vip-banner i {
    font-size: 18px;
    color: var(--gold);
}
.vip-banner div {
    display: flex;
    justify-content: space-between;
    flex: 1;
    align-items: center;
}
.vip-banner span {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-main);
}
.vip-banner span:last-child {
    color: var(--gold);
}

.vip-bonus-info {
    display: flex;
    align-items: center;
    gap: 10px;
    background: rgba(0, 255, 136, 0.06);
    border: 1px solid rgba(0, 255, 136, 0.12);
    border-radius: 10px;
    padding: 10px 14px;
    margin: 12px 0;
    font-size: 13px;
    color: var(--text-muted);
}
.vip-bonus-info b {
    color: #00ff88;
}

.vip-user-info {
    display: flex;
    gap: 30px;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 215, 0, 0.1);
    border-radius: 20px;
    padding: 24px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}
.vip-avatar {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.vip-avatar img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 3px solid var(--gold);
    object-fit: cover;
}
.vip-level-badge {
    margin-top: 8px;
    background: linear-gradient(135deg, var(--gold), #ff6b00);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: 20px;
}
.vip-details {
    flex: 1;
    min-width: 200px;
}
.vip-name {
    font-size: 20px;
    font-weight: 800;
    margin-bottom: 12px;
}
.vip-progress {
    margin-bottom: 12px;
}
.vip-progress-bar {
    width: 100%;
    height: 6px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    overflow: hidden;
}
.vip-progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold), #ff6b00);
    border-radius: 10px;
    transition: width 0.6s ease;
}
.vip-progress-text {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}
.vip-stats {
    display: flex;
    gap: 20px;
    flex-wrap: wrap;
}
.vip-stat {
    font-size: 13px;
    color: var(--text-muted);
}
.vip-stat b {
    color: var(--text-main);
}

.vip-levels {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 30px;
}
.vip-level-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s;
    cursor: default;
}
.vip-level-card:hover {
    border-color: rgba(255, 215, 0, 0.2);
    transform: translateY(-2px);
}
.vip-level-card.active {
    border-color: var(--gold);
    background: rgba(255, 215, 0, 0.06);
    box-shadow: 0 0 30px rgba(255, 215, 0, 0.06);
}
.vip-level-card .vip-level-icon {
    font-size: 28px;
    margin-bottom: 6px;
}
.vip-level-card .vip-level-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-main);
}
.vip-level-card .vip-level-discount {
    font-size: 18px;
    font-weight: 800;
    color: var(--gold);
    margin: 4px 0;
}
.vip-level-card .vip-level-requirement {
    font-size: 11px;
    color: var(--text-muted);
}

.vip-benefits {
    margin-top: 20px;
}
.vip-benefits h4 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 12px;
}
.benefit-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 12px;
    padding: 14px;
    text-align: center;
    transition: all 0.3s;
}
.benefit-item:hover {
    border-color: rgba(255, 215, 0, 0.15);
    transform: translateY(-2px);
}
.benefit-item i {
    font-size: 24px;
    display: block;
    margin-bottom: 6px;
}
.benefit-item span {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.profile-vip-badge {
    margin-top: 8px;
    background: linear-gradient(135deg, var(--gold), #ff6b00);
    color: #000;
    font-size: 11px;
    font-weight: 800;
    padding: 4px 16px;
    border-radius: 20px;
}

/* ====================================================
   REVIEWS
   ==================================================== */
.review-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}
.review-stat-box {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 16px;
    text-align: center;
}
.review-stat-number {
    font-size: 28px;
    font-weight: 800;
    color: var(--gold);
}
.review-stat-label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.review-filter {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
    align-items: center;
}
.review-filter select {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border-glass);
    border-radius: 10px;
    padding: 8px 14px;
    color: var(--text-main);
    font-size: 13px;
    outline: none;
    cursor: pointer !important;
    flex: 1;
    min-width: 140px;
}
.review-filter select:focus {
    border-color: var(--primary);
}

.review-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    padding: 20px;
    margin-bottom: 16px;
    transition: all 0.3s;
}
.review-item:hover {
    border-color: rgba(255, 215, 0, 0.2);
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    flex-wrap: wrap;
    gap: 8px;
}
.review-user {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-main);
}
.review-user img {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--primary);
    object-fit: cover;
}
.review-stars {
    color: var(--gold);
    font-size: 14px;
}
.review-product {
    font-size: 12px;
    color: var(--text-muted);
}
.review-content {
    font-size: 14px;
    color: var(--text-muted);
    line-height: 1.6;
    margin: 8px 0;
}
.review-images {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-top: 10px;
}
.review-images img {
    width: 80px;
    height: 80px;
    border-radius: 8px;
    object-fit: cover;
    border: 1px solid rgba(255, 255, 255, 0.06);
    cursor: pointer !important;
    transition: all 0.3s;
}
.review-images img:hover {
    transform: scale(1.05);
    border-color: var(--primary);
}
.review-time {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 8px;
}

.star-rating {
    display: flex;
    gap: 8px;
    font-size: 28px;
    cursor: pointer !important;
}
.star-rating i {
    color: #444;
    transition: all 0.2s;
    cursor: pointer !important;
}
.star-rating i.active,
.star-rating i:hover {
    color: var(--gold);
    transform: scale(1.1);
}
.star-rating i:hover~i {
    color: #444;
}

/* ====================================================
   TOP RANKING
   ==================================================== */
.top-filter {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.top-filter .btn-filter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer !important;
    transition: all 0.3s;
}
.top-filter .btn-filter:hover,
.top-filter .btn-filter.active {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.top-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.top-item {
    display: flex;
    align-items: center;
    gap: 16px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 14px;
    padding: 14px 20px;
    transition: all 0.3s;
}
.top-item:hover {
    border-color: rgba(255, 215, 0, 0.15);
    transform: translateX(4px);
}
.top-item .rank {
    font-size: 20px;
    font-weight: 800;
    min-width: 40px;
    text-align: center;
}
.top-item .rank.gold {
    color: var(--gold);
}
.top-item .rank.silver {
    color: #c0c0c0;
}
.top-item .rank.bronze {
    color: #cd7f32;
}
.top-item .rank.normal {
    color: var(--text-muted);
}
.top-item .avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: 2px solid var(--border-glass);
    object-fit: cover;
}
.top-item .info {
    flex: 1;
}
.top-item .info .name {
    font-weight: 600;
    color: var(--text-main);
}
.top-item .info .vip-tag {
    font-size: 10px;
    color: var(--gold);
    margin-left: 6px;
}
.top-item .info .detail {
    font-size: 12px;
    color: var(--text-muted);
}
.top-item .amount {
    font-size: 18px;
    font-weight: 800;
    color: var(--gold);
}

/* ====================================================
   DEPOSIT
   ==================================================== */
.payment-methods {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.payment-option {
    flex: 1;
    min-width: 100px;
    cursor: pointer !important;
}
.payment-option .payment-card {
    background: rgba(255, 255, 255, 0.03);
    border: 2px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 14px 16px;
    text-align: center;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.payment-option .payment-card i {
    font-size: 24px;
}
.payment-option .payment-card span {
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}
.payment-option.active .payment-card {
    border-color: var(--primary);
    background: rgba(0, 240, 255, 0.08);
    box-shadow: 0 0 25px rgba(0, 240, 255, 0.15);
}
.payment-option.active .payment-card span {
    color: var(--primary);
}

.amount-presets {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}
.preset-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 10px;
    padding: 10px 8px;
    color: var(--text-main);
    font-size: 12px;
    font-weight: 600;
    cursor: pointer !important;
    transition: all 0.3s;
}
.preset-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--primary);
    transform: scale(1.03);
}
.preset-btn.active {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

.deposit-quick-actions {
    display: flex;
    gap: 12px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}
.deposit-quick-actions button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.1);
}

.qr-container {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
    animation: fadeInTab 0.4s ease;
}
.qr-header {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 16px;
}
.qr-code-wrapper {
    position: relative;
    width: 200px;
    height: 200px;
    margin: 0 auto 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}
.qr-code {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}
.qr-loading {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.5);
    font-size: 32px;
    color: var(--primary);
}
.qr-loading.hidden {
    display: none;
}

.qr-info {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 12px 16px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 12px;
    margin-bottom: 16px;
}
.qr-info-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 13px;
    color: var(--text-muted);
}
.qr-info-row b {
    color: var(--text-main);
    font-weight: 600;
}
.qr-info-row.vip-bonus-row {
    border-top: 1px solid rgba(255, 215, 0, 0.2);
    padding-top: 8px;
    margin-top: 4px;
}
.qr-actions {
    display: flex;
    gap: 10px;
}
.qr-note {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(255, 170, 0, 0.06);
    border-radius: 10px;
    border: 1px solid rgba(255, 170, 0, 0.15);
    font-size: 12px;
    color: var(--text-muted);
}

/* ====================================================
   PAGE CARDS
   ==================================================== */
.page-card-box {
    background: var(--bg-glass);
    backdrop-filter: blur(35px);
    border: 1px solid var(--border-glass);
    border-radius: var(--radius);
    padding: 40px;
    box-shadow: var(--shadow);
    position: relative;
}
.page-card-box h2 {
    font-size: 23px;
    color: var(--primary);
    margin-bottom: 22px;
    display: flex;
    align-items: center;
    gap: 14px;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}
.text-center {
    text-align: center;
}

/* ====================================================
   HISTORY - NÂNG CẤP
   ==================================================== */
.history-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}
.history-table th,
.history-table td {
    padding: 14px 18px;
    text-align: left;
    font-size: 13.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.history-table th {
    color: var(--primary);
    background: rgba(0, 240, 255, 0.08);
    font-weight: 700;
}
.history-table tr:hover {
    background: rgba(255, 255, 255, 0.04);
}
.status-success {
    color: #00ff88;
}
.status-failed {
    color: #ff4d4d;
}
.status-pending {
    color: #ffaa00;
}

.history-table .btn-view-detail {
    background: rgba(0, 240, 255, 0.12);
    border: none;
    padding: 4px 12px;
    border-radius: 6px;
    color: var(--primary);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer !important;
    transition: all 0.3s;
}
.history-table .btn-view-detail:hover {
    background: rgba(0, 240, 255, 0.25);
}
.history-table .btn-view-detail i {
    margin-right: 4px;
}

/* ====================================================
   SUPPORT - NÂNG CẤP
   ==================================================== */
.support-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    max-width: 700px;
    margin: 0 auto;
}
.support-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid var(--border-glass);
    padding: 20px 24px;
    border-radius: 16px;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.35s;
    display: flex;
    align-items: center;
    gap: 16px;
    text-align: left;
}
.support-card:hover {
    background: rgba(0, 240, 255, 0.12);
    border-color: var(--primary);
    transform: translateY(-5px);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}
.support-card i {
    font-size: 32px;
    color: var(--primary);
}
.support-card div {
    display: flex;
    flex-direction: column;
}
.support-card strong {
    font-size: 14px;
    color: var(--text-main);
}
.support-card span {
    font-size: 12px;
    color: var(--text-muted);
}

/* =========================================================
   ADMIN PANEL - QUẢN TRỊ TOÀN BỘ
   ========================================================= */
.admin-container {
    max-width: 1440px;
    margin: 30px auto;
    padding: 0 25px;
}
.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
    gap: 12px;
}
.admin-header h2 {
    font-size: 24px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #ff0077, var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.admin-header-info {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: var(--text-muted);
}
.admin-header-info i {
    color: var(--primary);
    margin-right: 6px;
}

.admin-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
    gap: 16px;
    margin-bottom: 30px;
}
.admin-stat-card {
    background: var(--bg-glass);
    backdrop-filter: blur(35px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}
.admin-stat-card:hover {
    transform: translateY(-4px);
    border-color: var(--primary);
}
.admin-stat-card .stat-icon {
    font-size: 24px;
    opacity: 0.3;
    position: absolute;
    right: 16px;
    top: 16px;
}
.admin-stat-card .stat-number {
    font-size: 26px;
    font-weight: 800;
    margin: 8px 0 4px;
}
.admin-stat-card .stat-label {
    font-size: 12px;
    color: var(--text-muted);
}
.admin-stat-card.primary .stat-number { color: var(--primary); }
.admin-stat-card.success .stat-number { color: #00ff88; }
.admin-stat-card.warning .stat-number { color: #ffaa00; }
.admin-stat-card.info .stat-number { color: #3b82f6; }
.admin-stat-card.danger .stat-number { color: #ff0077; }

/* Admin Action Tabs */
.admin-action-tabs {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    flex-wrap: wrap;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 14px;
    padding: 6px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.admin-tab-btn {
    padding: 10px 20px;
    border: none;
    border-radius: 10px;
    background: transparent;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 13px;
    cursor: pointer !important;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 8px;
}
.admin-tab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}
.admin-tab-btn.active {
    background: rgba(0, 240, 255, 0.12);
    color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.05);
}

.admin-tab-content {
    display: none;
    animation: fadeInTab 0.3s ease;
}
.admin-tab-content.active {
    display: block;
}

/* Admin Sections */
.admin-section {
    background: var(--bg-glass);
    backdrop-filter: blur(35px);
    border: 1px solid var(--border-glass);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 24px;
}
.admin-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}
.admin-section-header h3 {
    font-size: 16px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}
.badge {
    background: rgba(255, 255, 255, 0.08);
    padding: 2px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
}
.badge.warning {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
}
.badge.success {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}

.admin-section-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}
.admin-section-actions .btn-filter {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer !important;
    transition: all 0.3s;
}
.admin-section-actions .btn-filter:hover,
.admin-section-actions .btn-filter.active {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--primary);
    color: var(--primary);
}

/* Deposit Requests */
.deposit-request-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 14px 20px;
    margin-bottom: 10px;
    transition: all 0.3s;
    flex-wrap: wrap;
    gap: 12px;
}
.deposit-request-item:hover {
    border-color: rgba(255, 170, 0, 0.3);
    background: rgba(255, 170, 0, 0.04);
}
.deposit-request-item .req-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.deposit-request-item .req-info .req-user {
    font-weight: 700;
    color: var(--text-main);
}
.deposit-request-item .req-info .req-amount {
    font-size: 20px;
    font-weight: 800;
    color: #ffaa00;
}
.deposit-request-item .req-info .req-time {
    font-size: 12px;
    color: var(--text-muted);
}
.deposit-request-item .req-status {
    padding: 4px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
}
.deposit-request-item .req-status.pending {
    background: rgba(255, 170, 0, 0.2);
    color: #ffaa00;
}
.deposit-request-item .req-status.approved {
    background: rgba(0, 255, 136, 0.2);
    color: #00ff88;
}
.deposit-request-item .req-status.rejected {
    background: rgba(255, 0, 0, 0.2);
    color: #ff4d4d;
}
.deposit-request-item .req-actions {
    display: flex;
    gap: 8px;
}
.deposit-request-item .req-actions button {
    padding: 6px 18px;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer !important;
    transition: all 0.3s;
}
.btn-approve {
    background: linear-gradient(135deg, #00ff88, #00cc66);
    color: #000;
}
.btn-approve:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.4);
}
.btn-reject {
    background: linear-gradient(135deg, #ff4d4d, #cc0000);
    color: #fff;
}
.btn-reject:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(255, 77, 77, 0.4);
}

/* Admin User Table */
.admin-user-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}
.admin-user-table th {
    text-align: left;
    padding: 12px 16px;
    color: var(--text-muted);
    font-weight: 600;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.admin-user-table td {
    padding: 12px 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
}
.admin-user-table tr:hover td {
    background: rgba(255, 255, 255, 0.03);
}
.admin-user-table .vip-level {
    color: var(--gold);
    font-weight: 700;
}
.admin-user-table .user-actions-cell {
    display: flex;
    gap: 6px;
}
.admin-user-table .user-actions-cell button {
    padding: 4px 12px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer !important;
    transition: all 0.3s;
}
.admin-user-table .btn-edit-user {
    background: rgba(0, 240, 255, 0.12);
    color: var(--primary);
}
.admin-user-table .btn-edit-user:hover {
    background: rgba(0, 240, 255, 0.2);
}
.admin-user-table .btn-add-balance {
    background: rgba(0, 255, 136, 0.12);
    color: #00ff88;
}
.admin-user-table .btn-add-balance:hover {
    background: rgba(0, 255, 136, 0.2);
}
.admin-user-table .btn-delete-user {
    background: rgba(255, 77, 77, 0.12);
    color: #ff4d4d;
}
.admin-user-table .btn-delete-user:hover {
    background: rgba(255, 77, 77, 0.2);
}

/* Admin Giftcode */
.giftcode-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}
.giftcode-item .code {
    font-weight: 700;
    color: var(--gold);
    font-family: monospace;
    font-size: 14px;
}
.giftcode-item .value {
    color: var(--primary);
    font-weight: 600;
}
.giftcode-item .status {
    padding: 2px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
}
.giftcode-item .status.active {
    background: rgba(0, 255, 136, 0.15);
    color: #00ff88;
}
.giftcode-item .status.used {
    background: rgba(255, 77, 77, 0.15);
    color: #ff4d4d;
}
.giftcode-item .btn-delete-code {
    background: rgba(255, 77, 77, 0.12);
    border: none;
    padding: 4px 12px;
    border-radius: 6px;
    color: #ff4d4d;
    cursor: pointer !important;
    transition: all 0.3s;
    font-size: 12px;
}
.giftcode-item .btn-delete-code:hover {
    background: rgba(255, 77, 77, 0.25);
}

/* Admin Events */
.admin-event-item {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 16px 20px;
    margin-bottom: 10px;
    transition: all 0.3s;
}
.admin-event-item:hover {
    border-color: rgba(255, 215, 0, 0.2);
}
.admin-event-item .event-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
}
.admin-event-item .event-name {
    font-weight: 700;
    font-size: 16px;
    color: var(--text-main);
}
.admin-event-item .event-detail {
    font-size: 13px;
    color: var(--text-muted);
    margin-top: 4px;
}
.admin-event-item .event-actions {
    display: flex;
    gap: 8px;
}
.admin-event-item .event-actions button {
    padding: 4px 14px;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer !important;
    transition: all 0.3s;
}
.admin-event-item .btn-edit-event {
    background: rgba(0, 240, 255, 0.12);
    color: var(--primary);
}
.admin-event-item .btn-edit-event:hover {
    background: rgba(0, 240, 255, 0.2);
}
.admin-event-item .btn-delete-event {
    background: rgba(255, 77, 77, 0.12);
    color: #ff4d4d;
}
.admin-event-item .btn-delete-event:hover {
    background: rgba(255, 77, 77, 0.2);
}

/* Admin Spin */
.spin-weight-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 12px;
    background: rgba(255, 255, 255, 0.02);
    border-radius: 10px;
    margin-bottom: 6px;
}
.spin-weight-item .prize-name {
    flex: 1;
    font-weight: 600;
    color: var(--text-main);
    font-size: 13px;
}
.spin-weight-item .prize-icon {
    font-size: 20px;
}
.spin-weight-item input[type="number"] {
    width: 80px;
    padding: 6px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    outline: none;
    text-align: center;
}
.spin-weight-item input[type="number"]:focus {
    border-color: var(--primary);
}
.spin-weight-item .weight-percent {
    color: var(--gold);
    font-weight: 700;
    min-width: 50px;
    text-align: right;
    font-size: 13px;
}

/* Admin Files */
.admin-file-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 12px 18px;
    margin-bottom: 8px;
    flex-wrap: wrap;
    gap: 10px;
}
.admin-file-item .file-name {
    font-weight: 600;
    color: var(--text-main);
}
.admin-file-item .file-price {
    color: var(--primary);
    font-weight: 600;
}
.admin-file-item .file-category {
    font-size: 12px;
    color: var(--text-muted);
}
.admin-file-item .file-download-link {
    font-size: 11px;
    color: var(--text-muted);
    max-width: 150px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.admin-file-item .file-actions {
    display: flex;
    gap: 6px;
}
.admin-file-item .file-actions button {
    padding: 4px 12px;
    border: none;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer !important;
    transition: all 0.3s;
}
.admin-file-item .btn-edit-file {
    background: rgba(0, 240, 255, 0.12);
    color: var(--primary);
}
.admin-file-item .btn-edit-file:hover {
    background: rgba(0, 240, 255, 0.2);
}
.admin-file-item .btn-delete-file {
    background: rgba(255, 77, 77, 0.12);
    color: #ff4d4d;
}
.admin-file-item .btn-delete-file:hover {
    background: rgba(255, 77, 77, 0.2);
}

/* Admin Security - BẢO MẬT */
#securityLog {
    background: rgba(0, 0, 0, 0.2);
    padding: 12px 16px;
    border-radius: 8px;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    color: #00ff88;
    max-height: 200px;
    overflow-y: auto;
}
#securityLog div {
    border-bottom: 1px solid rgba(255, 255, 255, 0.02);
    padding: 4px 0;
}
#securityLog div:last-child {
    border-bottom: none;
}

/* ====================================================
   FILE DETAIL MODAL
   ==================================================== */
#fileDetailContent {
    padding: 10px 0;
}
.file-detail-card {
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 16px;
    padding: 20px;
}
.file-detail-card .detail-header {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.file-detail-card .detail-header img {
    width: 80px;
    height: 80px;
    border-radius: 12px;
    object-fit: cover;
    border: 2px solid var(--border-glass);
}
.file-detail-card .detail-header .info h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--text-main);
}
.file-detail-card .detail-header .info .price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary);
}
.file-detail-card .detail-header .info .badge-tag {
    font-size: 11px;
    background: rgba(0, 240, 255, 0.12);
    padding: 2px 12px;
    border-radius: 10px;
    color: var(--primary);
    display: inline-block;
    margin-top: 4px;
}
.file-detail-card .detail-body {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.file-detail-card .detail-body .note {
    background: rgba(255, 170, 0, 0.06);
    border: 1px solid rgba(255, 170, 0, 0.15);
    border-radius: 10px;
    padding: 14px 16px;
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.6;
}
.file-detail-card .detail-body .note strong {
    color: #ffaa00;
}
.file-detail-card .detail-body .download-link-box {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(0, 255, 136, 0.06);
    border: 1px solid rgba(0, 255, 136, 0.15);
    border-radius: 10px;
}
.file-detail-card .detail-body .download-link-box strong {
    color: #00ff88;
}
.file-detail-card .detail-body .download-link-box a {
    color: var(--primary);
    text-decoration: underline;
    display: block;
    margin-top: 4px;
    word-break: break-all;
}
.file-detail-card .detail-body .download-locked {
    margin-top: 12px;
    padding: 12px 16px;
    background: rgba(255, 170, 0, 0.06);
    border: 1px solid rgba(255, 170, 0, 0.15);
    border-radius: 10px;
    color: #ffaa00;
}
.file-detail-card .detail-footer {
    margin-top: 16px;
    padding-top: 12px;
    border-top: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    font-size: 12px;
    color: var(--text-muted);
}
.file-detail-card .detail-footer .status {
    color: #00ff88;
    font-weight: 600;
}

/* ====================================================
   MODAL
   ==================================================== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(25px);
    z-index: 1000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.modal-overlay.show {
    display: flex;
    opacity: 1;
}
.modal-box {
    background: #040814;
    border: 1px solid var(--border-glass);
    max-width: 92%;
    border-radius: 26px;
    padding: 40px;
    box-shadow: 0 35px 90px rgba(0, 0, 0, 0.95);
    position: relative;
    transform: scale(0.7) translateY(30px);
    opacity: 0;
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                opacity 0.4s ease;
}
.modal-overlay.show .modal-box {
    transform: scale(1) translateY(0);
    opacity: 1;
}
.modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    font-size: 26px;
    color: var(--text-muted);
    cursor: pointer !important;
    transition: color 0.2s, transform 0.2s;
}
.modal-close:hover {
    color: var(--primary);
    transform: rotate(90deg);
}
.modal-box h2 {
    font-size: 21px;
    font-weight: 800;
    margin-bottom: 24px;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 12px;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.2);
}

.form-group {
    margin-bottom: 18px;
}
.form-group label {
    display: block;
    font-size: 12.5px;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}
.form-control {
    width: 100%;
    padding: 13px 16px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    color: #fff;
    font-size: 14px;
    outline: none;
    transition: all 0.3s ease;
}
.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
    background: rgba(255, 255, 255, 0.08);
}
.form-control.error {
    border-color: #ff4d4d;
}
.password-wrapper {
    position: relative;
}
.password-wrapper .form-control {
    padding-right: 45px;
}
.toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    cursor: pointer !important;
}
.toggle-password:hover {
    color: var(--primary);
}

.form-options {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    color: var(--text-muted);
    margin: 10px 0 16px;
}
.form-options a {
    color: var(--primary);
    text-decoration: none;
}
.form-options a:hover {
    text-decoration: underline;
}

.form-footer {
    text-align: center;
    margin-top: 18px;
    font-size: 13px;
    color: var(--text-muted);
}
.form-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 600;
}
.form-footer a:hover {
    text-decoration: underline;
}

.btn-submit {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border: none;
    border-radius: 14px;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
    margin-top: 6px;
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.7);
    cursor: pointer !important;
    transition: all 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-submit:hover {
    opacity: 0.95;
    box-shadow: 0 0 45px var(--primary);
    transform: scale(1.03);
}
.btn-success {
    background: linear-gradient(135deg, #00ff88, #00cc66) !important;
    color: #000 !important;
}

/* ====================================================
   PROFILE
   ==================================================== */
.profile-info {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    flex-wrap: wrap;
}
.profile-avatar {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}
.profile-avatar img {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    border: 3px solid var(--primary);
    object-fit: cover;
}
.profile-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.profile-field {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 10px 16px;
    background: rgba(255, 255, 255, 0.03);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.05);
}
.profile-field label {
    font-weight: 600;
    color: var(--text-muted);
    min-width: 120px;
}
.profile-field span {
    color: var(--text-main);
    font-weight: 500;
}
.profile-field .role-admin {
    color: #ff0077;
    font-weight: 700;
}
.profile-field .role-user {
    color: var(--text-muted);
}

/* ====================================================
   TOAST
   ==================================================== */
#toast-container {
    position: fixed;
    top: 95px;
    right: 25px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 12px;
    pointer-events: none;
}
.toast {
    background: rgba(5, 9, 22, 0.96);
    backdrop-filter: blur(25px);
    border: 1px solid var(--primary);
    color: #fff;
    padding: 14px 24px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 14px;
    font-weight: 600;
    animation: slideInToast 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards,
               fadeOutToast 0.4s ease 3.2s forwards;
    pointer-events: auto;
    min-width: 300px;
}
.toast i {
    color: var(--primary);
    font-size: 18px;
}
.toast.toast-error {
    border-color: #ff4d4d;
}
.toast.toast-error i {
    color: #ff4d4d;
}
.toast.toast-success {
    border-color: #00ff88;
}
.toast.toast-success i {
    color: #00ff88;
}
@keyframes slideInToast {
    from { transform: translateX(120%) scale(0.9); opacity: 0; }
    to { transform: translateX(0) scale(1); opacity: 1; }
}
@keyframes fadeOutToast {
    from { transform: translateX(0) scale(1); opacity: 1; }
    to { transform: translateX(120%) scale(0.9); opacity: 0; }
}

/* ====================================================
   MUSIC & SCROLL TOP
   ==================================================== */
.music-widget {
    position: fixed;
    bottom: 25px;
    right: 25px;
    background: var(--bg-glass);
    backdrop-filter: blur(25px);
    border: 1px solid var(--border-glass);
    padding: 12px 22px;
    border-radius: 40px;
    display: flex;
    align-items: center;
    gap: 16px;
    z-index: 97;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.8);
    transition: all 0.3s ease;
}
.music-widget:hover {
    border-color: var(--primary);
    box-shadow: 0 0 30px rgba(0, 240, 255, 0.2);
}
.music-info {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12.5px;
    font-weight: 600;
}
.music-controls {
    display: flex;
    gap: 14px;
    color: var(--primary);
    font-size: 15px;
    cursor: pointer !important;
    transition: transform 0.2s;
}
.music-controls i:hover {
    transform: scale(1.2);
}

.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 25px;
    background: var(--bg-glass);
    border: 1px solid var(--border-glass);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: none;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 18px;
    cursor: pointer !important;
    z-index: 96;
    transition: all 0.3s ease;
}
.scroll-top.show {
    display: flex;
}
.scroll-top:hover {
    background: rgba(0, 240, 255, 0.2);
    box-shadow: 0 0 30px var(--primary);
    transform: scale(1.1);
}

/* ====================================================
   RESPONSIVE - TỐI ƯU CHO ĐIỆN THOẠI
   ==================================================== */

/* Tablet */
@media (min-width: 769px) and (max-width: 1024px) {
    .home-layout {
        grid-template-columns: 220px 1fr;
        gap: 16px;
    }
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .file-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .events-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .missions-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .vip-levels {
        grid-template-columns: repeat(3, 1fr);
    }
    .admin-stats-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .nav-links {
        gap: 2px;
    }
    .nav-links li a {
        font-size: 12px;
        padding: 6px 12px;
    }
}

/* Mobile First - Mặc định cho mobile */
@media (max-width: 768px) {
    /* Header */
    header {
        padding: 10px 16px;
        flex-wrap: wrap;
    }
    .logo-area h1 {
        font-size: 16px;
    }
    .logo-area i {
        font-size: 22px;
    }
    .version-badge {
        font-size: 7px;
        padding: 1px 8px;
    }
    
    /* Navigation */
    .nav-links {
        display: none;
        flex-direction: column;
        width: 100%;
        background: var(--bg-glass);
        backdrop-filter: blur(40px);
        padding: 16px;
        border-top: 1px solid var(--border-glass);
        position: absolute;
        top: 60px;
        left: 0;
        z-index: 99;
        max-height: 70vh;
        overflow-y: auto;
    }
    .nav-links.open {
        display: flex;
    }
    .nav-links li a {
        padding: 10px 14px;
        font-size: 14px;
        width: 100%;
    }
    .mobile-toggle {
        display: block !important;
    }
    
    /* User actions */
    .user-actions {
        gap: 8px;
    }
    .balance-badge {
        padding: 4px 12px;
        font-size: 12px;
    }
    .btn-auth {
        padding: 6px 12px;
        font-size: 11px;
    }
    .user-profile-badge {
        padding: 4px 10px 4px 4px;
    }
    .user-profile-badge img {
        width: 28px;
        height: 28px;
    }
    .user-profile-badge span {
        font-size: 11px;
    }
    .user-dropdown {
        right: 0;
        left: auto;
        min-width: 180px;
        top: 48px;
    }
    
    /* Home layout */
    .home-layout {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .sidebar-box {
        position: static;
        padding: 16px;
    }
    .main-container {
        padding: 0 12px;
        margin: 16px auto;
    }
    .page-section-container {
        padding: 0 12px;
        margin: 20px auto;
    }
    
    /* Products grid */
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .products-grid.list-view {
        grid-template-columns: 1fr;
    }
    .product-card {
        border-radius: 14px;
    }
    .product-img-wrapper {
        height: 120px;
    }
    .product-title {
        font-size: 13px;
    }
    .product-price {
        font-size: 14px;
    }
    .product-stats {
        font-size: 10px;
        padding: 4px 8px;
    }
    .product-details {
        padding: 10px 12px;
        gap: 6px;
    }
    .btn-buy {
        font-size: 11px;
        padding: 8px;
    }
    .product-badge {
        font-size: 8px;
        padding: 2px 10px;
        top: 8px;
        right: 8px;
    }
    .login-required-msg {
        font-size: 10px;
        padding: 8px;
    }
    
    /* Section header */
    .section-header h3 {
        font-size: 16px;
    }
    .view-btn {
        padding: 4px 10px;
        font-size: 12px;
    }
    
    /* Chart */
    .chart-wrapper {
        height: 180px;
    }
    .chart-container-box {
        padding: 16px;
    }
    .chart-header h3 {
        font-size: 14px;
    }
    
    /* File grid */
    .file-grid-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .file-filter-bar {
        flex-direction: column;
        gap: 10px;
    }
    .file-search {
        width: 100%;
    }
    .file-filter-options {
        width: 100%;
        flex-direction: column;
    }
    .file-filter-options select {
        width: 100%;
    }
    
    /* Cart */
    .cart-item {
        padding: 10px 12px;
        gap: 10px;
    }
    .cart-item img {
        width: 50px;
        height: 50px;
    }
    .cart-item .info .name {
        font-size: 13px;
    }
    .cart-item .info .price {
        font-size: 13px;
    }
    .cart-summary .total {
        font-size: 20px;
    }
    .cart-summary .btn-checkout {
        font-size: 13px;
        padding: 10px 20px;
    }
    
    /* Wheel */
    .wheel-box {
        width: 260px;
        height: 260px;
        border-width: 6px;
    }
    .wheel-center-btn {
        width: 56px;
        height: 56px;
    }
    .wheel-center-btn i {
        font-size: 16px;
    }
    .wheel-center-btn span {
        font-size: 8px;
    }
    .wheel-pointer {
        font-size: 32px;
        top: -22px;
    }
    .spin-stats-bar {
        flex-wrap: wrap;
        gap: 8px;
        padding: 12px 16px;
    }
    .spin-stat {
        font-size: 12px;
    }
    
    /* Events & Missions */
    .events-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .missions-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .event-card {
        padding: 16px;
    }
    .mission-card {
        padding: 14px;
        flex-wrap: wrap;
    }
    .mission-card .mission-icon {
        width: 40px;
        height: 40px;
        font-size: 22px;
    }
    
    /* VIP */
    .vip-user-info {
        flex-direction: column;
        text-align: center;
        padding: 16px;
        gap: 16px;
    }
    .vip-avatar img {
        width: 64px;
        height: 64px;
    }
    .vip-name {
        font-size: 18px;
    }
    .vip-stats {
        justify-content: center;
    }
    .vip-levels {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .vip-level-card {
        padding: 12px;
    }
    .vip-level-card .vip-level-icon {
        font-size: 22px;
    }
    .vip-level-card .vip-level-name {
        font-size: 12px;
    }
    .vip-level-card .vip-level-discount {
        font-size: 15px;
    }
    .benefits-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    /* Reviews */
    .review-stats {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }
    .review-stat-number {
        font-size: 22px;
    }
    .review-filter {
        flex-direction: column;
    }
    .review-filter select {
        width: 100%;
    }
    .review-item {
        padding: 14px;
    }
    .review-user img {
        width: 28px;
        height: 28px;
    }
    .review-stars {
        font-size: 12px;
    }
    .review-content {
        font-size: 13px;
    }
    .review-images img {
        width: 64px;
        height: 64px;
    }
    
    /* Top ranking */
    .top-item {
        padding: 10px 14px;
        gap: 10px;
    }
    .top-item .rank {
        font-size: 16px;
        min-width: 30px;
    }
    .top-item .avatar {
        width: 32px;
        height: 32px;
    }
    .top-item .info .name {
        font-size: 13px;
    }
    .top-item .amount {
        font-size: 14px;
    }
    .top-filter .btn-filter {
        padding: 6px 14px;
        font-size: 12px;
    }
    
    /* Support */
    .support-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    .support-card {
        padding: 14px 18px;
    }
    .support-card i {
        font-size: 24px;
    }
    
    /* History table */
    .history-table {
        font-size: 12px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .history-table th,
    .history-table td {
        padding: 8px 12px;
        font-size: 11px;
    }
    
    /* Profile */
    .profile-info {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }
    .profile-avatar img {
        width: 100px;
        height: 100px;
    }
    .profile-field {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
        padding: 8px 12px;
    }
    .profile-field label {
        min-width: auto;
        font-size: 12px;
    }
    .profile-field span {
        font-size: 14px;
    }
    
    /* Page cards */
    .page-card-box {
        padding: 16px;
        border-radius: 16px;
    }
    .page-card-box h2 {
        font-size: 18px;
        gap: 10px;
    }
    
    /* Modal */
    .modal-box {
        padding: 24px 20px;
        max-width: 96%;
        border-radius: 18px;
        max-height: 95vh;
        overflow-y: auto;
    }
    .modal-box h2 {
        font-size: 18px;
    }
    .modal-close {
        top: 14px;
        right: 18px;
        font-size: 22px;
    }
    .form-control {
        font-size: 14px;
        padding: 10px 14px;
    }
    .btn-submit {
        font-size: 13px;
        padding: 11px;
    }
    
    /* Admin */
    .admin-container {
        padding: 0 10px;
        margin: 16px auto;
    }
    .admin-header h2 {
        font-size: 18px;
    }
    .admin-header-info {
        font-size: 11px;
        gap: 10px;
        flex-wrap: wrap;
    }
    .admin-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .admin-stat-card {
        padding: 14px;
    }
    .admin-stat-card .stat-number {
        font-size: 20px;
    }
    .admin-stat-card .stat-label {
        font-size: 10px;
    }
    .admin-stat-card .stat-icon {
        font-size: 18px;
        right: 10px;
        top: 10px;
    }
    .admin-action-tabs {
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 4px;
        padding: 4px;
        -webkit-overflow-scrolling: touch;
    }
    .admin-tab-btn {
        font-size: 11px;
        padding: 6px 14px;
        white-space: nowrap;
        flex: 0 0 auto;
    }
    .admin-section {
        padding: 16px;
    }
    .admin-section-header h3 {
        font-size: 14px;
    }
    .admin-section-header {
        flex-direction: column;
        align-items: stretch;
        gap: 10px;
    }
    .admin-section-actions {
        justify-content: center;
    }
    .admin-section-actions .btn-filter {
        font-size: 11px;
        padding: 4px 12px;
    }
    
    /* Deposit requests */
    .deposit-request-item {
        flex-direction: column;
        align-items: stretch;
        padding: 12px 16px;
        gap: 10px;
    }
    .deposit-request-item .req-info .req-amount {
        font-size: 17px;
    }
    .deposit-request-item .req-actions {
        justify-content: center;
    }
    .deposit-request-item .req-actions button {
        font-size: 11px;
        padding: 4px 14px;
    }
    
    /* Admin user table */
    .admin-user-table {
        font-size: 11px;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
    }
    .admin-user-table th,
    .admin-user-table td {
        padding: 6px 10px;
    }
    .admin-user-table .user-actions-cell button {
        font-size: 10px;
        padding: 2px 8px;
    }
    
    /* Giftcode, events, files admin */
    .giftcode-item,
    .admin-event-item,
    .admin-file-item {
        flex-direction: column;
        align-items: stretch;
        text-align: center;
        gap: 8px;
        padding: 12px;
    }
    .giftcode-item .code {
        font-size: 13px;
    }
    .admin-event-item .event-name {
        font-size: 14px;
    }
    .admin-event-item .event-actions {
        justify-content: center;
    }
    .admin-file-item .file-actions {
        justify-content: center;
    }
    
    /* Spin weights */
    .spin-weight-item {
        flex-wrap: wrap;
        justify-content: center;
        gap: 6px;
    }
    .spin-weight-item input[type="number"] {
        width: 60px;
    }
    
    /* QR */
    .qr-code-wrapper {
        width: 160px;
        height: 160px;
    }
    .qr-info-row {
        font-size: 12px;
    }
    .qr-actions {
        flex-direction: column;
    }
    .qr-actions button {
        width: 100%;
    }
    
    /* Payment */
    .payment-methods {
        flex-direction: column;
    }
    .amount-presets {
        grid-template-columns: repeat(3, 1fr);
        gap: 6px;
    }
    .preset-btn {
        font-size: 11px;
        padding: 8px 6px;
    }
    .deposit-quick-actions {
        flex-direction: column;
    }
    
    /* Music widget */
    .music-widget {
        bottom: 12px;
        right: 12px;
        padding: 8px 14px;
        font-size: 11px;
        gap: 10px;
    }
    .music-controls {
        font-size: 13px;
        gap: 10px;
    }
    
    /* Cart badge */
    .cart-badge {
        bottom: 75px;
        right: 15px;
        width: 48px;
        height: 48px;
        font-size: 18px;
    }
    .cart-badge span {
        width: 18px;
        height: 18px;
        font-size: 9px;
        top: -4px;
        right: -4px;
    }
    
    /* Scroll top */
    .scroll-top {
        bottom: 80px;
        right: 15px;
        width: 38px;
        height: 38px;
        font-size: 15px;
    }
    
    /* Security log */
    #securityLog {
        font-size: 11px;
        max-height: 150px;
    }
    
    /* File detail modal */
    .file-detail-card .detail-header {
        flex-direction: column;
        text-align: center;
    }
    .file-detail-card .detail-header img {
        width: 100px;
        height: 100px;
    }
    .file-detail-card .detail-header .info h3 {
        font-size: 16px;
    }
    .file-detail-card .detail-body .note {
        font-size: 12px;
        padding: 10px 12px;
    }
    .file-detail-card .detail-body .download-link-box {
        font-size: 12px;
        padding: 10px 12px;
    }
    .file-detail-card .detail-body .download-link-box a {
        font-size: 12px;
    }
    .file-detail-card .detail-footer {
        font-size: 11px;
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
}

/* Small mobile */
@media (max-width: 400px) {
    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .file-grid-container {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }
    .product-img-wrapper {
        height: 100px;
    }
    .product-title {
        font-size: 12px;
    }
    .product-price {
        font-size: 13px;
    }
    .btn-buy {
        font-size: 10px;
        padding: 6px;
    }
    .wheel-box {
        width: 220px;
        height: 220px;
    }
    .wheel-center-btn {
        width: 48px;
        height: 48px;
    }
    .wheel-center-btn i {
        font-size: 14px;
    }
    .vip-levels {
        grid-template-columns: repeat(2, 1fr);
    }
    .review-stats {
        grid-template-columns: 1fr 1fr;
    }
    .review-stat-box:last-child {
        grid-column: span 2;
    }
    .admin-stats-grid {
        grid-template-columns: 1fr 1fr;
    }
    .amount-presets {
        grid-template-columns: repeat(2, 1fr);
    }
    .modal-box {
        padding: 16px 14px;
    }
    .modal-box h2 {
        font-size: 16px;
    }
    .form-control {
        font-size: 13px;
        padding: 8px 12px;
    }
    .btn-submit {
        font-size: 12px;
        padding: 10px;
    }
    .page-card-box {
        padding: 12px;
    }
    .page-card-box h2 {
        font-size: 16px;
    }
    .logo-area h1 {
        font-size: 14px;
    }
    .logo-area i {
        font-size: 18px;
    }
    .version-badge {
        font-size: 6px;
        padding: 1px 6px;
    }
    header {
        padding: 8px 12px;
    }
    .balance-badge {
        font-size: 10px;
        padding: 3px 8px;
    }
    .btn-auth {
        font-size: 10px;
        padding: 4px 10px;
    }
    .user-profile-badge img {
        width: 24px;
        height: 24px;
    }
    .user-profile-badge span {
        font-size: 10px;
    }
    .spin-stats-bar {
        flex-direction: column;
        gap: 4px;
        padding: 10px 12px;
    }
    .spin-stat {
        font-size: 11px;
    }
    .review-stats {
        grid-template-columns: 1fr;
    }
    .review-stat-box:last-child {
        grid-column: span 1;
    }
    .support-card {
        padding: 10px 14px;
    }
    .support-card i {
        font-size: 20px;
    }
    .support-card strong {
        font-size: 12px;
    }
    .support-card span {
        font-size: 10px;
    }
}