:root {
    /* Gaming Color Palette */
    --bg-primary: #0a0e27;
    --bg-secondary: #151933;
    --bg-tertiary: #1e2442;

    --neon-cyan: #00d9ff;
    --neon-purple: #a855f7;
    --neon-pink: #ec4899;
    --neon-green: #00ff88;

    --text-primary: #ffffff;
    --text-secondary: #e2e8f0;
    --text-muted: #94a3b8;
    --text-bright: #f0f9ff;

    /* Gaming Text Colors */
    --gaming-red: #ff3366;
    --gaming-orange: #ff8c42;
    --gaming-yellow: #ffd700;

    --card-bg: rgba(30, 36, 66, 0.6);
    --card-border: rgba(255, 255, 255, 0.1);

    /* Effects */
    --shadow-glow: 0 0 20px rgba(0, 217, 255, 0.3);
    --shadow-glow-purple: 0 0 20px rgba(168, 85, 247, 0.3);
    --shadow-glow-pink: 0 0 20px rgba(236, 72, 153, 0.3);
}

/* Gaming Background */
body.gaming-theme {
    background: linear-gradient(135deg, var(--bg-primary) 0%, #0f1629 50%, #1a1e3e 100%);
    background-attachment: fixed;
    min-height: 100vh;
    color: var(--text-primary);
}

/* Animated Background Pattern */
body.gaming-theme::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image:
        radial-gradient(circle at 20% 50%, rgba(0, 217, 255, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(168, 85, 247, 0.05) 0%, transparent 50%),
        radial-gradient(circle at 40% 20%, rgba(236, 72, 153, 0.05) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Glass Card Effect */
.gaming-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.gaming-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: var(--shadow-glow);
    border-color: var(--neon-cyan);
}

/* Gaming Card with Neon Border */
.gaming-card-neon {
    position: relative;
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    padding: 2px;
}

.gaming-card-neon::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 2px;
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask-composite: exclude;
    opacity: 0.5;
    transition: opacity 0.3s;
}

.gaming-card-neon:hover::before {
    opacity: 1;
}

/* Neon Text - Enhanced for Readability */
.neon-text {
    color: var(--neon-cyan);
    text-shadow: 0 0 5px rgba(0, 217, 255, 0.8),
        0 0 10px rgba(0, 217, 255, 0.6),
        0 0 20px rgba(0, 217, 255, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

.neon-text-purple {
    color: var(--neon-purple);
    text-shadow: 0 0 5px rgba(168, 85, 247, 0.8),
        0 0 10px rgba(168, 85, 247, 0.6),
        0 0 20px rgba(168, 85, 247, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

.neon-text-pink {
    color: var(--neon-pink);
    text-shadow: 0 0 5px rgba(236, 72, 153, 0.8),
        0 0 10px rgba(236, 72, 153, 0.6),
        0 0 20px rgba(236, 72, 153, 0.4),
        0 2px 4px rgba(0, 0, 0, 0.8);
    font-weight: 700;
}

/* Gaming Text - Super Readable on Dark Backgrounds */
.gaming-text {
    color: var(--text-bright);
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.9),
        0 0 20px rgba(0, 217, 255, 0.3);
    font-weight: 600;
}

.gaming-text-red {
    color: var(--gaming-red);
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.7),
        0 0 20px rgba(255, 51, 102, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.9);
    font-weight: 700;
}

.gaming-text-price {
    color: #fff;
    text-shadow: 0 0 10px rgba(255, 215, 0, 0.8),
        0 0 20px rgba(255, 215, 0, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.9);
    font-weight: 800;
    letter-spacing: 0.5px;
}

.gaming-text-white {
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.9),
        0 0 10px rgba(255, 255, 255, 0.2);
    font-weight: 600;
}


/* Gaming Button */
.gaming-btn {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: white;
    padding: 12px 32px;
    border-radius: 8px;
    border: none;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: all 0.3s;
}

.gaming-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.gaming-btn:hover::before {
    width: 300px;
    height: 300px;
}

.gaming-btn:hover {
    box-shadow: var(--shadow-glow);
    transform: translateY(-2px);
}

/* Banner Section */
.gaming-banner {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.1), rgba(168, 85, 247, 0.1));
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 24px;
    position: relative;
    overflow: hidden;
}

.gaming-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.05), transparent);
    transform: rotate(45deg);
    animation: shine 3s infinite;
}

@keyframes shine {
    0% {
        transform: translateX(-100%) translateY(-100%) rotate(45deg);
    }

    100% {
        transform: translateX(100%) translateY(100%) rotate(45deg);
    }
}

/* Account Grid Card */
.acc-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.acc-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink));
    opacity: 0;
    transition: opacity 0.3s;
}

.acc-card:hover::before {
    opacity: 1;
}

.acc-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.4), var(--shadow-glow);
    border-color: var(--neon-cyan);
}

.acc-card-image {
    position: relative;
    overflow: hidden;
}

.acc-card-image img {
    transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.acc-card:hover .acc-card-image img {
    transform: scale(1.1);
}

/* Badge */
.gaming-badge {
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: inline-block;
    box-shadow: var(--shadow-glow);
}

.gaming-badge-hot {
    background: linear-gradient(135deg, #ff6b6b, #ee5a6f);
    animation: pulse-glow 2s infinite;
}

.gaming-badge-new {
    background: linear-gradient(135deg, var(--neon-green), #00cc6a);
}

.gaming-badge-sale {
    background: linear-gradient(135deg, var(--neon-pink), #d946a6);
}

@keyframes pulse-glow {

    0%,
    100% {
        box-shadow: 0 0 10px rgba(255, 107, 107, 0.5);
    }

    50% {
        box-shadow: 0 0 20px rgba(255, 107, 107, 0.8);
    }
}

/* Top Player Card */
.top-player-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    border: 2px solid transparent;
    border-image: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple)) 1;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 12px;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.top-player-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 217, 255, 0.1), transparent);
    transition: left 0.5s;
}

.top-player-card:hover::before {
    left: 100%;
}

.top-player-card:hover {
    transform: translateX(8px);
    box-shadow: var(--shadow-glow);
}

/* Sale Timeline */
.sale-timeline-item {
    background: var(--bg-tertiary);
    border: 1px solid var(--card-border);
    border-radius: 12px;
    padding: 16px;
    text-align: center;
    transition: all 0.3s;
    position: relative;
}

.sale-timeline-item.active {
    background: linear-gradient(135deg, rgba(0, 217, 255, 0.2), rgba(168, 85, 247, 0.2));
    border-color: var(--neon-cyan);
    box-shadow: var(--shadow-glow);
    transform: scale(1.05);
}

.sale-timeline-item.active::before {
    content: '';
    position: absolute;
    inset: -2px;
    border-radius: 12px;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    z-index: -1;
    opacity: 0.3;
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.3;
    }

    50% {
        opacity: 0.6;
    }
}

/* Price Tag */
.price-tag {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple));
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 18px;
    display: inline-block;
    box-shadow: var(--shadow-glow-pink);
}

/* Loading Skeleton */
.skeleton {
    background: linear-gradient(90deg,
            var(--bg-tertiary) 0%,
            var(--bg-secondary) 50%,
            var(--bg-tertiary) 100%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
    border-radius: 8px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

/* Responsive */
@media (max-width: 768px) {
    .gaming-card:hover {
        transform: translateY(-4px) scale(1.01);
    }

    .acc-card:hover {
        transform: translateY(-4px);
    }
}

/* Scroll Animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-on-scroll {
    animation: fadeInUp 0.6s ease-out;
}

/* Stronger overrides for Navigation and specific containers */
.gaming-theme .ws-sticky.ws-bg-white,
.gaming-theme .ws-bg-white.ws-border-b {
    background: rgba(30, 36, 66, 0.95) !important;
    backdrop-filter: blur(10px);
    border-color: var(--card-border) !important;
}

/* Fix Tab Headers in Customer Pages */
.gaming-theme .el-tabs__nav-wrap,
.gaming-theme .el-tabs__nav-scroll,
.gaming-theme .ws-bg-white {
    background: var(--card-bg) !important;
    border-color: var(--card-border) !important;
    color: var(--text-primary) !important;
}

/* Ensure text inside these containers is light */
.gaming-theme .ws-sticky .ws-text-zinc-900,
.gaming-theme .ws-sticky .ws-text-zinc-800,
.gaming-theme .ws-bg-white .ws-text-zinc-900,
.gaming-theme .ws-bg-white .ws-text-zinc-700,
.gaming-theme .ws-bg-white i {
    color: var(--text-secondary) !important;
}

/* Fix Form Inputs in Dark Mode */
.gaming-theme input,
.gaming-theme select,
.gaming-theme textarea,
.gaming-theme .el-input__inner {
    background: rgba(15, 22, 41, 0.8) !important;
    border: 1px solid var(--card-border) !important;
    color: #fff !important;
}

.gaming-theme .el-table th,
.gaming-theme .el-table tr,
.gaming-theme .el-table td {
    background-color: transparent !important;
    color: var(--text-secondary) !important;
}

.gaming-theme .el-table--enable-row-hover .el-table__body tr:hover>td {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* --- AGGRESSIVE GLOBAL OVERRIDES FOR GAMING THEME --- */
/* Target ALL elements with white background class inside gaming theme using Attribute Selectors */
.gaming-theme [class*="ws-bg-white"],
.gaming-theme [class*="bg-white"],
.gaming-theme .ws-bg-white,
.gaming-theme .bg-white,
.gaming-theme .ws-bg-zinc-50,
.gaming-theme .bg-zinc-50,
.gaming-theme .ws-bg-zinc-100,
.gaming-theme .bg-zinc-100 {
    background-color: rgba(30, 36, 66, 0.95) !important;
    /* Dark Blue Glass */
    background: rgba(30, 36, 66, 0.95) !important;
    backdrop-filter: blur(10px) !important;
    border-color: var(--card-border) !important;
    color: var(--text-secondary) !important;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
}

/* Force text colors to be light in these now-dark containers */
.gaming-theme [class*="ws-bg-white"] *,
.gaming-theme [class*="bg-white"] *,
.gaming-theme .ws-bg-white *,
.gaming-theme .bg-white *,
.gaming-theme .ws-bg-zinc-50 *,
.gaming-theme .bg-zinc-50 * {
    color: var(--text-secondary) !important;
}

/* Exceptions for specific text that needs to be highlighted */
.gaming-theme .ws-text-red-500,
.gaming-theme .text-red-500,
.gaming-theme .ws-text-red-600,
.gaming-theme .text-red-600,
.gaming-theme .ws-text-red-500 *,
.gaming-theme .text-red-500 * {
    color: var(--gaming-red) !important;
    text-shadow: 0 0 5px rgba(255, 51, 102, 0.5) !important;
}

.gaming-theme .ws-text-green-500,
.gaming-theme .text-green-500 {
    color: #10b981 !important;
}

/* Fix Input Fields - Ensure they are readable */
.gaming-theme input,
.gaming-theme select,
.gaming-theme textarea,
.gaming-theme .el-input__inner {
    background-color: rgba(15, 22, 41, 0.6) !important;
    border: 1px solid var(--card-border) !important;
    color: #fff !important;
}

/* Specific targeting for Profile Page structure to ensure deep overrides */
#customer-layout .ws-bg-white,
#customer-layout [class*="ws-bg-white"] {
    background-color: rgba(30, 36, 66, 0.95) !important;
}

/* Specific Sidebar & Nav Fixes */
.gaming-theme .sidebar .ws-bg-white {
    background-color: rgba(30, 36, 66, 0.8) !important;
}

.gaming-theme .el-table th,
.gaming-theme .el-table tr,
.gaming-theme .el-table td {
    background-color: transparent !important;
}

.gaming-theme .el-table--enable-row-hover .el-table__body tr:hover>td {
    background-color: rgba(255, 255, 255, 0.05) !important;
}

/* --- Extracted from index.php for Global Gaming Theme --- */
.gaming-theme .ws-bg-white {
    background: var(--card-bg) !important;
    backdrop-filter: blur(10px);
    border: 1px solid var(--card-border);
}

.gaming-theme .ws-bg-zinc-50 {
    background: var(--bg-secondary) !important;
}

.gaming-theme .ws-bg-red-500 {
    background: linear-gradient(135deg, var(--neon-pink), var(--neon-purple)) !important;
    box-shadow: var(--shadow-glow-pink);
}

.gaming-theme .ws-text-zinc-800,
.gaming-theme .ws-text-zinc-700 {
    color: var(--text-secondary) !important;
}

.gaming-theme .ws-border-zinc-200 {
    border-color: var(--card-border) !important;
}

/* Override white backgrounds for gaming theme specific elements */
.gaming-theme .ws-rounded-lg.ws-bg-white {
    background: var(--card-bg) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
}

/* Text Color Overrides for Better Readability */
.gaming-theme .ws-text-red-600,
.gaming-theme .ws-text-red-500 {
    color: var(--gaming-red) !important;
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.7),
        0 0 20px rgba(255, 51, 102, 0.5),
        0 2px 8px rgba(0, 0, 0, 0.9);
    font-weight: 700;
}

.gaming-theme label,
.gaming-theme h1,
.gaming-theme h2,
.gaming-theme h3,
.gaming-theme p,
.gaming-theme span,
.gaming-theme div {
    color: var(--text-secondary);
}

/* Make all text more readable with subtle shadow */
.gaming-theme * {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Strong text readability */
.gaming-theme strong {
    color: var(--text-bright);
    font-weight: 700;
}

/* ==========================================================================
   REFRACTORED TIME SALE COMPONENT (ISOLATED)
   ========================================================================== */

/* Main Container */
.unique-time-sale-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    /* Default Dark Mode BG */
    background: #1e293b;
    border: 1px solid #334155;
    transition: all 0.3s ease;
}

/* Light Mode BG */
body.light-mode .unique-time-sale-container {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.95) 0%, rgba(252, 231, 243, 0.7) 50%, rgba(254, 243, 199, 0.7) 100%) !important;
    border: 1px solid rgba(252, 231, 243, 0.8) !important;
    box-shadow: 0 6px 20px rgba(252, 231, 243, 0.6) !important;
}

/* Header Section */
.unique-time-sale-container .uts-header {
    background: rgba(0, 0, 0, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

body.light-mode .unique-time-sale-container .uts-header {
    background: transparent !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

/* Title Text */
.unique-time-sale-container .uts-title {
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 1.25rem;
    margin: 0;
    color: #ffffff;
    /* Default Dark Mode Color */
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

body.light-mode .unique-time-sale-container .uts-title {
    color: #be185d !important;
    /* Pink/Red for Light Mode */
    text-shadow: none !important;
}

/* Time Item Box */
.unique-time-sale-container .uts-item {
    transition: all 0.2s ease;
    border-radius: 10px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 15px !important;
    width: 100%;
    min-height: 75px;
    cursor: pointer;
    /* Default Dark Mode Box */
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

body.light-mode .unique-time-sale-container .uts-item {
    background: #ffffff !important;
    border: 1px solid #f0f0f0 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Active State */
.unique-time-sale-container .uts-item.active,
.unique-time-sale-container .uts-item:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

body.light-mode .unique-time-sale-container .uts-item.active,
body.light-mode .unique-time-sale-container .uts-item:hover {
    background: #fff1f2 !important;
    border-color: #be185d !important;
    box-shadow: 0 4px 12px rgba(190, 24, 93, 0.15);
}

/* Time String Text */
.unique-time-sale-container .uts-time {
    font-weight: 700 !important;
    font-size: 1.15rem;
    color: #cbd5e1;
    /* Default Dark Mode */
}

body.light-mode .unique-time-sale-container .uts-time {
    color: #475569 !important;
    /* Slate 600 for Light Mode */
}

/* Active Time Text Overrides */
.unique-time-sale-container .uts-item.active .uts-time {
    color: #ef4444 !important;
}

body.light-mode .unique-time-sale-container .uts-item.active .uts-time {
    color: #be185d !important;
}

/* Status Text */
.unique-time-sale-container .uts-status {
    font-size: 0.75rem !important;
    font-weight: 600;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

body.light-mode .unique-time-sale-container .uts-status {
    color: #64748b !important;
}

body.light-mode .unique-time-sale-container .uts-item.active .uts-status {
    color: #be185d !important;
}

/* Dark Mode Specific Background Override */
body.gaming-theme .unique-time-sale-container {
    background: rgba(15, 23, 42, 0.6);
}

/* ==========================================================================
   OTHER READABILITY FIXES (TOP NAP)
   ========================================================================== */
body.light-mode .top-nap-header label,
body.light-mode .top-nap-card,
body.light-mode .top-nap-card span {
    color: #334155 !important;
}

body.light-mode .top-nap-header label {
    color: #be185d !important;
    text-transform: uppercase;
}

body.light-mode .top-nap-amount {
    color: #ffffff !important;
}

/* Light Mode BG - Match .ws-home-id1000 */
body.light-mode .time-sale-bg {
    background: linear-gradient(120deg, rgba(255, 255, 255, 0.95) 0%, rgba(252, 231, 243, 0.7) 50%, rgba(254, 243, 199, 0.7) 100%) !important;
    border: 1px solid rgba(252, 231, 243, 0.8) !important;
    box-shadow: 0 6px 20px rgba(252, 231, 243, 0.6) !important;
}

/* --- HEADER SECTION --- */
/* We remove the heavy background to let the gradient shine in Light Mode */
.time-sale-bg .ws-border-red-300 {
    padding: 12px 20px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(0, 0, 0, 0.2);
    /* Base for Dark Mode */
}

/* Light Mode Header */
body.light-mode .time-sale-bg .ws-border-red-300 {
    background: transparent !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
}

body.light-mode .time-sale-bg label,
body.light-mode .time-sale-bg i {
    color: #be185d !important;
    /* Pink/Red Text to match theme */
    text-shadow: none !important;
    font-weight: 800 !important;
    text-transform: uppercase;
    font-size: 1.25rem;
}

/* Dark Mode Header */
body.gaming-theme .time-sale-bg label,
body.gaming-theme .time-sale-bg i {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* --- TIME GRID & BOXES --- */
.time-sale-bg>.ws-grid {
    padding: 16px;
    gap: 12px !important;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
}

/* Individual Time Boxes */
.time-sale-bg .ws-bg-white {
    transition: all 0.2s ease;
    border-radius: 10px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 15px !important;
    width: 100%;
    min-height: 75px;
    cursor: pointer;

    /* Default Dark Mode Box */
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1;
}

/* Light Mode Box */
body.light-mode .time-sale-bg .ws-bg-white {
    background: #ffffff !important;
    border: 1px solid #f0f0f0 !important;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
    color: #475569;
}

/* --- ACTIVE STATE --- */
/* Highlights active box with Red border/glow */
body.gaming-theme .time-sale-bg .ws-bg-white:has(.ws-text-red-600),
body.gaming-theme .time-sale-bg .ws-bg-white:hover {
    background: rgba(239, 68, 68, 0.15) !important;
    border-color: #ef4444 !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

body.light-mode .time-sale-bg .ws-bg-white:has(.ws-text-red-600),
body.light-mode .time-sale-bg .ws-bg-white:hover {
    background: #fff1f2 !important;
    /* Very light pink */
    border-color: #be185d !important;
    box-shadow: 0 4px 12px rgba(190, 24, 93, 0.15);
    transform: translateY(-2px);
}

/* Time Text */
.time-sale-bg .ws-text-red-600 {
    font-size: 1.15rem !important;
    font-weight: 800 !important;
}

body.light-mode .time-sale-bg .ws-text-red-600 {
    color: #be185d !important;
    /* Pink/Red text */
}

body.gaming-theme .time-sale-bg .ws-text-red-600 {
    color: #ef4444 !important;
    /* Red Neon text */
}

/* Status Text */
.time-sale-bg p {
    font-size: 0.75rem !important;
    font-weight: 600;
    margin-top: 5px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

body.light-mode .time-sale-bg p {
    color: #64748b !important;
}

body.light-mode .time-sale-bg .ws-bg-white:has(.ws-text-red-600) p {
    color: #be185d !important;
}


body.gaming-theme .time-sale-bg::before {
    opacity: 0.3;
    /* Brighter aurora in dark mode */
}

/* HEADER STYLING */
.time-sale-bg .ws-border-red-300 {
    border-bottom: none !important;
    background: rgba(255, 255, 255, 0.1);
    padding-bottom: 10px;
    margin-bottom: 5px;
    text-align: center;
}

/* Gradient Text for Header */
.time-sale-bg label i,
.time-sale-bg label {
    font-weight: 800 !important;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Light Mode Header Text */
body.light-mode .time-sale-bg label {
    background: linear-gradient(to right, #ef4444, #f59e0b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: none !important;
    color: #ef4444 !important;
    /* Fallback */
}

body.light-mode .time-sale-bg label i {
    background: none;
    -webkit-text-fill-color: #ef4444;
    color: #ef4444 !important;
}

/* Dark Mode Header Text */
body.gaming-theme .time-sale-bg label {
    text-shadow: 0 0 15px rgba(255, 255, 255, 0.5) !important;
    color: #fff !important;
}


/* TIME BOX BUTTONS */
.time-sale-bg .ws-bg-white {
    background: rgba(255, 255, 255, 0.5) !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    border-radius: 12px !important;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    transform: scale(0.95);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

/* Hover Effect */
.time-sale-bg .ws-bg-white:hover {
    transform: scale(1);
    background: #ffffff !important;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

/* Light Mode Time Text */
body.light-mode .time-sale-bg .ws-text-zinc-800 {
    color: #334155 !important;
    font-weight: 600;
}

/* Active/Red Text Styling */
.time-sale-bg .ws-text-red-600 {
    color: #ef4444 !important;
    font-weight: 800 !important;
    font-size: 1.1rem !important;
}

body.gaming-theme .time-sale-bg .ws-text-red-600 {
    color: #ff3366 !important;
    text-shadow: 0 0 10px rgba(255, 51, 102, 0.6);
}

/* Dark Mode Time Box */
body.gaming-theme .time-sale-bg .ws-bg-white {
    background: rgba(30, 41, 59, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
}

body.gaming-theme .time-sale-bg .ws-bg-white:hover {
    background: rgba(30, 41, 59, 0.9) !important;
    border-color: #ff3366 !important;
    box-shadow: 0 0 15px rgba(255, 51, 102, 0.2);
}

/* Status Text */
.time-sale-bg p {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-top: 4px;
    opacity: 0.8;
}

body.light-mode .time-sale-bg p.ws-text-white {
    color: #64748b !important;
    /* Make "upcoming" text visible in light mode */
}

/* Exception for active items which might set text white */
body.light-mode .time-sale-bg .ws-bg-white:has(.ws-text-red-600) p {
    color: #ef4444 !important;
}

/* Light Mode Readability Fixes */
body.light-mode .top-nap-header label,
body.light-mode .top-nap-card,
body.light-mode .top-nap-card span {
    color: #334155 !important;
    /* Slate 700 */
}

body.light-mode .top-nap-header label {
    color: #be185d !important;
    /* Pink Header */
    text-transform: uppercase;
}

body.light-mode .top-nap-amount {
    color: #ffffff !important;
    /* Keep amount white on red bg */
}

/* Force Sale Banner Text Color in Light Mode */
body.light-mode .time-sale-bg label,
body.light-mode .time-sale-bg i {
    color: #be185d !important;
    /* Pink/Red Text */
    text-shadow: none !important;
}

/* Dark Mode Specifics (Gaming Theme) */
body.gaming-theme .time-sale-bg {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 40px -10px rgba(0, 0, 0, 0.5);
}

/* Grid Pattern Overlay (Tech Feel) */
.time-sale-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
    background-size: 20px 20px;
    pointer-events: none;
    z-index: 0;
}

/* Light Mode Grid */
body:not(.gaming-theme) .time-sale-bg::before {
    background-image:
        linear-gradient(rgba(0, 0, 0, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 0, 0, 0.03) 1px, transparent 1px);
}

/* Moving Neon Line at Bottom */
.time-sale-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, #ef4444, #f59e0b, transparent);
    animation: scanline 3s linear infinite;
}

@keyframes scanline {
    0% {
        transform: translateX(-100%);
    }

    100% {
        transform: translateX(100%);
    }
}

/* Title Section Styling */
.time-sale-bg .ws-border-red-300 {
    border-color: rgba(255, 255, 255, 0.1) !important;
    background: rgba(0, 0, 0, 0.2);
    margin-bottom: 5px;
    position: relative;
    z-index: 1;
}

body:not(.gaming-theme) .time-sale-bg .ws-border-red-300 {
    border-color: #e2e8f0 !important;
    background: transparent;
}

/* TEXT COLOR RULES */
/* Default (Dark Mode): White & Neon */
.time-sale-bg label,
.time-sale-bg i {
    color: #ffffff !important;
    text-shadow: 0 0 10px rgba(239, 68, 68, 0.8);
    /* Red Glow */
}

/* Light Mode: Dark Text & No Glow */
body:not(.gaming-theme) .time-sale-bg label,
body:not(.gaming-theme) .time-sale-bg i {
    color: #1e293b !important;
    text-shadow: none !important;
}

body:not(.gaming-theme) .time-sale-bg .fa-fire {
    color: #ef4444 !important;
    /* Red Icon */
}


/* TIME BOX STYLING (The individual hour blocks) */
.time-sale-bg .ws-bg-white {
    background: rgba(15, 23, 42, 0.6) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    border-radius: 6px !important;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

/* Active Box Highlight */
.time-sale-bg .ws-bg-white:hover {
    border-color: #ef4444 !important;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
    transform: translateY(-2px);
}

/* Active Time Text (Red) */
.time-sale-bg .ws-text-red-600 {
    color: #ef4444 !important;
    font-family: 'Courier New', monospace;
    /* Tech Font */
    letter-spacing: -1px;
}

/* Light Mode Time Box */
body:not(.gaming-theme) .time-sale-bg .ws-bg-white {
    background: #ffffff !important;
    border: 1px solid #e2e8f0 !important;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05) !important;
}

body:not(.gaming-theme) .time-sale-bg .ws-bg-white:hover {
    border-color: #ef4444 !important;
}

/* Status Text (Dang dien ra) */
.time-sale-bg p {
    text-transform: uppercase;
    font-size: 0.65rem;
    letter-spacing: 1px;
    margin-top: 2px;

    /* ==========================================================================
   NUCLEAR LIGHT MODE RESET (FINAL AUTHORITY)
   ========================================================================== */
    /* These rules must be last to override everything else */

    body.light-mode {
        background: #ffffff !important;
        color: #1e293b !important;
    }

    /* Force standard backgrounds to BE WHITE */
    body.light-mode .ws-bg-white,
    body.light-mode [class*="ws-bg-white"],
    body.light-mode .bg-white,
    body.light-mode [class*="bg-white"],
    body.light-mode .ws-bg-zinc-50,
    body.light-mode .ws-bg-zinc-100 {
        background: #ffffff !important;
        background-color: #ffffff !important;
        backdrop-filter: none !important;
        border: 1px solid #e2e8f0 !important;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05) !important;
        color: #334155 !important;
    }

    /* Force text to BE DARK */
    body.light-mode .ws-text-white,
    body.light-mode .text-white,
    body.light-mode .ws-text-zinc-100,
    body.light-mode .ws-text-zinc-200,
    body.light-mode .ws-text-zinc-300,
    body.light-mode .ws-text-zinc-400,
    body.light-mode .ws-text-zinc-500,
    body.light-mode .ws-text-zinc-600,
    body.light-mode .ws-text-zinc-700,
    body.light-mode .ws-text-zinc-800,
    body.light-mode .ws-text-zinc-900 {
        color: #1e293b !important;
        /* Slate 800 */
        text-shadow: none !important;
    }

    /* Sidebar Specifics */
    body.light-mode .sidebar .ws-bg-white,
    body.light-mode .sidebar [class*="ws-bg-white"] {
        background-color: #f8fafc !important;
        /* Sidebar slightly gray or white */
        border: none !important;
    }

    /* Profile Content Areas */
    body.light-mode #customer-layout .ws-col-span-12 .ws-bg-white {
        box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06) !important;
        border: 1px solid #e2e8f0 !important;
    }

    /* Tables - CRITICAL FIX */
    body.light-mode .el-table {
        background-color: #ffffff !important;
        color: #334155 !important;
        --el-table-tr-bg-color: #ffffff !important;
        --el-table-header-bg-color: #f8fafc !important;
        --el-table-header-text-color: #0f172a !important;
        --el-table-text-color: #334155 !important;
        --el-table-border-color: #e2e8f0 !important;
    }

    body.light-mode .el-table th.el-table__cell {
        background-color: #f8fafc !important;
        color: #0f172a !important;
        font-weight: 700 !important;
        border-bottom: 2px solid #e2e8f0 !important;
    }

    body.light-mode .el-table tr {
        background-color: #ffffff !important;
    }

    body.light-mode .el-table td.el-table__cell {
        border-bottom: 1px solid #e2e8f0 !important;
    }

    body.light-mode .el-table--enable-row-hover .el-table__body tr:hover>td.el-table__cell {
        background-color: #f1f5f9 !important;
    }

    /* Input Fields - Reset to Standard */
    body.light-mode input.el-input__inner,
    body.light-mode textarea.el-textarea__inner,
    body.light-mode .el-input__wrapper {
        background-color: #ffffff !important;
        border-color: #cbd5e1 !important;
        color: #1e293b !important;
        box-shadow: none !important;
        /* Remove neon glows */
    }

    body.light-mode .el-input__wrapper:hover,
    body.light-mode .el-input__wrapper.is-focus {
        border-color: #3b82f6 !important;
        /* Standard Blue focus */
        box-shadow: 0 0 0 1px #3b82f6 !important;
    }

    /* Navigation & Tabs */
    body.light-mode .el-tabs__item {
        color: #64748b !important;
    }

    body.light-mode .el-tabs__item.is-active {
        color: #ef4444 !important;
        /* Primary Red */
    }

    body.light-mode .el-tabs__nav-wrap::after {
        background-color: #e2e8f0 !important;
    }

    /* Utility: Force Black Text */
    body.light-mode .ws-text-black {
        color: #000000 !important;
    }

    /* Restore Gradient Text or Icons where needed */
    body.light-mode i[class*="ws-bg-gradient-to-r"] {
        -webkit-text-fill-color: transparent !important;
        background-clip: text !important;
        /* Icons usually manage their own color via class, but ensure bg is white if needed or transparent */
    }