/* ==========================================================================
   SHOPMMO SERVICES - HIGH-END MMO LOGISTICS & AUTOMATION THEME
   Design System: Deep Space Obsidian, Glassmorphism, ShopMMO Royal Blue & Sky Cyan
   ========================================================================== */

:root {
    --nexus-bg: #070a13;
    --nexus-surface: #0e1424;
    --nexus-card: rgba(14, 20, 36, 0.78);
    --nexus-card-solid: #0d1424;
    --nexus-border: rgba(255, 255, 255, 0.08);
    --nexus-border-glow: rgba(51, 120, 255, 0.35);
    
    --nexus-primary: #3378ff;
    --nexus-primary-hover: #2563eb;
    --nexus-primary-gradient: linear-gradient(135deg, #3378ff 0%, #2563eb 50%, #1d4ed8 100%);
    --nexus-cyan: #38bdf8;
    --nexus-cyan-gradient: linear-gradient(135deg, #38bdf8 0%, #0284c7 100%);
    --nexus-emerald: #10b981;
    --nexus-amber: #f59e0b;
    --nexus-rose: #f43f5e;
    
    --nexus-text: #f1f5f9;
    --nexus-text-muted: #94a3b8;
    --nexus-text-dim: #64748b;
    
    /* Override legacy variables smoothly */
    --bg-color: var(--nexus-bg);
    --bg-body: var(--nexus-bg);
    --sidebar-bg: #090e1c;
    --card-bg: var(--nexus-card);
    --border-color: var(--nexus-border);
    --primary-color: var(--nexus-primary);
    --primary-hover: var(--nexus-primary-hover);
    --text-color: var(--nexus-text);
    --text-muted: var(--nexus-text-muted);
}

/* Background Ambient Glow */
body.dark-mode {
    background-color: var(--nexus-bg) !important;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(51, 120, 255, 0.10) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(56, 189, 248, 0.07) 0%, transparent 45%),
        radial-gradient(circle at 50% 50%, rgba(10, 16, 30, 0.7) 0%, transparent 100%) !important;
    background-attachment: fixed !important;
    color: var(--nexus-text) !important;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    letter-spacing: -0.01em;
}

/* Custom Sleek Scrollbar */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}
::-webkit-scrollbar-track {
    background: transparent;
}
::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 999px;
}
::-webkit-scrollbar-thumb:hover {
    background: rgba(51, 120, 255, 0.5);
}

/* --------------------------------------------------------------------------
   MODERN SPLIT-SCREEN AUTH PORTAL
   -------------------------------------------------------------------------- */
.login-container {
    min-height: 100vh !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 30px 20px !important;
    background: transparent !important;
    position: relative;
    overflow: hidden;
}

.nexus-auth-wrapper {
    display: flex;
    max-width: 980px;
    width: 100%;
    background: rgba(14, 20, 36, 0.85);
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.7), 0 0 1px rgba(255, 255, 255, 0.2);
    overflow: hidden;
    position: relative;
    z-index: 10;
    animation: nexusFadeIn 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes nexusFadeIn {
    from { opacity: 0; transform: translateY(20px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Left Hero Showcase */
.nexus-hero-panel {
    flex: 1.1;
    background: linear-gradient(145deg, rgba(14, 20, 36, 0.94) 0%, rgba(7, 10, 19, 0.97) 100%), url('/images/bg-buy.png') center/cover no-repeat;
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    border-right: 1px solid rgba(255, 255, 255, 0.08);
}

.nexus-hero-panel::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(51, 120, 255, 0.25) 0%, transparent 70%);
    pointer-events: none;
}

.nexus-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    background: rgba(51, 120, 255, 0.15);
    border: 1px solid rgba(51, 120, 255, 0.35);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 600;
    color: #93c5fd;
    width: fit-content;
    margin-bottom: 24px;
}

.nexus-hero-badge span.pulse-dot {
    width: 7px;
    height: 7px;
    background: #4ade80;
    border-radius: 50%;
    box-shadow: 0 0 8px #4ade80;
}

.nexus-brand-title {
    font-size: 2rem;
    font-weight: 800;
    line-height: 1.2;
    background: linear-gradient(135deg, #ffffff 0%, #cbd5e1 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 12px;
}

.nexus-brand-subtitle {
    color: var(--nexus-text-muted);
    font-size: 0.95rem;
    line-height: 1.5;
    margin-bottom: 32px;
}

.nexus-features-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.nexus-feature-item {
    display: flex;
    align-items: flex-start;
    gap: 14px;
}

.nexus-feat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(51, 120, 255, 0.15);
    border: 1px solid rgba(51, 120, 255, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #60a5fa;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.nexus-feat-text strong {
    display: block;
    color: #f8fafc;
    font-size: 0.92rem;
    font-weight: 600;
    margin-bottom: 2px;
}

.nexus-feat-text p {
    color: var(--nexus-text-dim);
    font-size: 0.82rem;
    margin: 0;
}

.nexus-hero-footer {
    margin-top: 32px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.82rem;
    color: var(--nexus-text-dim);
}

/* Right Auth Form */
.nexus-auth-card {
    flex: 1;
    padding: 48px 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    background: transparent;
}

.nexus-auth-header {
    margin-bottom: 28px;
}

.nexus-auth-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: #ffffff;
    margin: 0 0 8px 0;
    letter-spacing: -0.02em;
}

.nexus-auth-header p {
    color: var(--nexus-text-muted);
    font-size: 0.9rem;
    margin: 0;
}

/* Form inputs styling */
#accountLoginForm, #loginForm {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.nexus-input-group {
    display: flex;
    flex-direction: column;
    gap: 7px;
    text-align: left;
}

.nexus-input-group label {
    font-size: 0.82rem;
    font-weight: 600;
    color: #cbd5e1;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.nexus-input-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}

.nexus-input-wrapper i.input-icon {
    position: absolute;
    left: 14px;
    color: var(--nexus-text-dim);
    font-size: 0.95rem;
    pointer-events: none;
    transition: color 0.2s;
}

.login-container input[type="text"],
.login-container input[type="password"],
.login-container input[type="number"] {
    width: 100% !important;
    background: rgba(15, 23, 42, 0.85) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    border-radius: 12px !important;
    padding: 13px 14px 13px 42px !important;
    color: #ffffff !important;
    font-size: 0.95rem !important;
    transition: all 0.2s ease !important;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
}

.login-container input:focus {
    border-color: var(--nexus-primary) !important;
    box-shadow: 0 0 0 3px rgba(51, 120, 255, 0.25), inset 0 2px 4px rgba(0, 0, 0, 0.3) !important;
    outline: none !important;
}

.login-container input:focus + i.input-icon,
.login-container .nexus-input-wrapper:focus-within i.input-icon {
    color: var(--nexus-primary) !important;
}

.password-wrapper {
    position: relative !important;
    width: 100% !important;
}

.password-wrapper .toggle-password {
    position: absolute !important;
    right: 14px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    cursor: pointer !important;
    color: var(--nexus-text-dim) !important;
    font-size: 1rem !important;
    padding: 4px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s !important;
}

.password-wrapper .toggle-password:hover {
    color: #ffffff !important;
}

/* Primary Button */
.login-container button.btn,
.btn-primary {
    background: var(--nexus-primary-gradient) !important;
    border: 1px solid rgba(255, 255, 255, 0.18) !important;
    border-radius: 12px !important;
    padding: 13px 20px !important;
    font-size: 0.95rem !important;
    font-weight: 600 !important;
    color: #ffffff !important;
    cursor: pointer !important;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35) !important;
}

.login-container button.btn:hover,
.btn-primary:hover {
    transform: translateY(-1px) !important;
    box-shadow: 0 8px 24px rgba(79, 70, 229, 0.5) !important;
    filter: brightness(1.1) !important;
}

.login-container button.btn:active {
    transform: translateY(1px) !important;
}

/* Zalo Bot Button Modernized */
.btn-zalo {
    background: rgba(0, 104, 255, 0.15) !important;
    border: 1px solid rgba(0, 104, 255, 0.35) !important;
    color: #38bdf8 !important;
    box-shadow: none !important;
}
.btn-zalo:hover {
    background: rgba(0, 104, 255, 0.25) !important;
    border-color: #0284c7 !important;
    color: #ffffff !important;
}

/* Error message */
#loginError {
    background: rgba(244, 63, 94, 0.12);
    border: 1px solid rgba(244, 63, 94, 0.25);
    border-radius: 10px;
    padding: 10px;
    font-size: 0.85rem;
    color: #fda4af !important;
    margin: 8px 0 0 0 !important;
    text-align: center;
    empty-cells: hide;
}
#loginError:empty {
    display: none;
}

/* --------------------------------------------------------------------------
   MODERN DASHBOARD SIDEBAR & HEADER
   -------------------------------------------------------------------------- */
.sidebar {
    background: rgba(11, 16, 30, 0.92) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-shadow: 4px 0 24px rgba(0, 0, 0, 0.4) !important;
}

.logo {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 14px 44px 14px 14px !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
    min-height: 58px !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    transition: all 0.25s ease !important;
}

.logo .sidebar-brand-img {
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 8px rgba(51, 120, 255, 0.5)) !important;
    flex-shrink: 0 !important;
    transition: all 0.25s ease !important;
}

.sidebar-brand-text {
    display: flex !important;
    flex-direction: column !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
}

.sidebar-brand-title {
    font-size: 1.05rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.01em !important;
    color: #ffffff !important;
    margin: 0 !important;
}

.sidebar-brand-title span {
    color: #3378ff !important;
    font-weight: 900 !important;
}

.sidebar-brand-sub {
    font-size: 0.62rem !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    letter-spacing: 0.04em !important;
    text-transform: uppercase !important;
    margin: 0 !important;
}

.sidebar.collapsed .logo {
    padding: 14px 0 !important;
    margin-top: 40px !important;
    justify-content: center !important;
}

.sidebar.collapsed .sidebar-brand-text {
    display: none !important;
}

.sidebar.collapsed .sidebar-brand-img {
    width: 36px !important;
    height: 36px !important;
    margin: 0 auto !important;
}

/* Sidebar Toggle Button */
.sidebar-toggle {
    position: absolute !important;
    top: 15px !important;
    right: 10px !important;
    background: #0e1424 !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
    cursor: pointer !important;
    font-size: 0.85rem !important;
    width: 26px !important;
    height: 26px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 100 !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.4) !important;
}

.sidebar-toggle:hover {
    background: #3378ff !important;
    border-color: #3378ff !important;
    color: #ffffff !important;
    box-shadow: 0 0 12px rgba(51, 120, 255, 0.6) !important;
}

/* Navigation Links */
#sidebar-nav {
    padding: 16px 12px !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
}

.nav-link {
    border-radius: 10px !important;
    padding: 8px 12px !important;
    font-size: 0.9rem !important;
    font-weight: 500 !important;
    color: var(--nexus-text-muted) !important;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1) !important;
    border: 1px solid transparent !important;
}

.nav-link:hover {
    background: rgba(255, 255, 255, 0.05) !important;
    color: #f8fafc !important;
    transform: translateX(2px) !important;
}

.nav-link.active {
    background: linear-gradient(90deg, rgba(51, 120, 255, 0.16) 0%, rgba(51, 120, 255, 0.04) 100%) !important;
    border: 1px solid rgba(51, 120, 255, 0.35) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

/* Header */
.header {
    background: rgba(11, 16, 30, 0.75) !important;
    backdrop-filter: blur(20px) !important;
    -webkit-backdrop-filter: blur(20px) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 0 16px !important;
    height: 44px !important;
    min-height: 44px !important;
}

#page-title {
    font-size: 0.95rem !important;
    font-weight: 700 !important;
    letter-spacing: -0.02em !important;
    color: #ffffff !important;
}

#header-add-btn {
    background: var(--nexus-primary-gradient) !important;
    border-radius: 6px !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    padding: 0 11px !important;
    height: 28px !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 8px rgba(51, 120, 255, 0.35) !important;
}

#refresh-btn {
    border-radius: 10px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: #cbd5e1 !important;
    padding: 8px 12px !important;
    transition: all 0.2s !important;
}
#refresh-btn:hover {
    background: rgba(255, 255, 255, 0.12) !important;
    color: #ffffff !important;
}

/* Announcement Bar */
#top-announcement-bar {
    background: linear-gradient(90deg, rgba(51, 120, 255, 0.15) 0%, rgba(6, 182, 212, 0.15) 100%) !important;
    border-bottom: 1px solid rgba(51, 120, 255, 0.25) !important;
    color: #e2e8f0 !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
}

/* --------------------------------------------------------------------------
   CARD & JSPREADSHEET LUXURY STYLES
   -------------------------------------------------------------------------- */
.card, .section-card, .table-container {
    background: var(--nexus-card) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid var(--nexus-border) !important;
    border-radius: 16px !important;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.35) !important;
}

/* JSpreadsheet Luxury Re-skin */
.jexcel_container {
    border-radius: 12px !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

.jexcel thead td {
    background-color: #131c33 !important;
    color: #94a3b8 !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    font-size: 0.78rem !important;
    letter-spacing: 0.05em !important;
    border: 1px solid rgba(255, 255, 255, 0.06) !important;
    padding: 10px 8px !important;
}

.jexcel tbody tr:nth-child(even) {
    background-color: rgba(15, 23, 42, 0.4) !important;
}

.jexcel tbody tr:hover td {
    background-color: rgba(51, 120, 255, 0.08) !important;
}

.jexcel td {
    border: 1px solid rgba(255, 255, 255, 0.05) !important;
    color: #f1f5f9 !important;
    font-size: 0.88rem !important;
    padding: 8px !important;
}

/* Export CSV Button Modernized */
#dashboardCompletedReportBtn {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    border: 1px solid rgba(255, 255, 255, 0.2) !important;
    border-radius: 8px !important;
    font-weight: 600 !important;
    box-shadow: 0 4px 14px rgba(16, 185, 129, 0.3) !important;
    padding: 7px 14px !important;
    color: #ffffff !important;
    font-size: 0.85rem !important;
    transition: all 0.2s !important;
}
#dashboardCompletedReportBtn:hover {
    filter: brightness(1.15) !important;
    transform: translateY(-1px) !important;
}

/* Status Badges */
.status-badge, .badge {
    padding: 4px 10px !important;
    border-radius: 999px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* Responsive adjustments */
@media (max-width: 860px) {
    .nexus-auth-wrapper {
        flex-direction: column;
    }
    .nexus-hero-panel {
        padding: 32px 24px;
    }
    .nexus-auth-card {
        padding: 32px 24px;
    }
}

/* --------------------------------------------------------------------------
   HIGH-TECH KPI CARDS & METRIC WIDGETS
   -------------------------------------------------------------------------- */
.stats-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)) !important;
    gap: 14px !important;
    margin-bottom: 16px !important;
}

.stat-card {
    background: linear-gradient(145deg, rgba(17, 24, 39, 0.85) 0%, rgba(15, 23, 42, 0.65) 100%) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 14px 18px !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3) !important;
}

/* Compact Balance Strip for TikTok Page */
.stats-grid.tiktok-balance-grid {
    gap: 10px !important;
    margin-bottom: 10px !important;
}

.stats-grid.tiktok-balance-grid .stat-card {
    padding: 8px 14px !important;
    border-radius: 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    min-height: 0 !important;
}

.stats-grid.tiktok-balance-grid .stat-title {
    font-size: 0.75rem !important;
    margin-bottom: 0 !important;
    white-space: nowrap !important;
}

.stats-grid.tiktok-balance-grid .stat-value {
    font-size: 1.12rem !important;
    margin-top: 0 !important;
    line-height: 1.2 !important;
}

@media (max-width: 768px) {
    .stats-grid.tiktok-balance-grid {
        grid-template-columns: 1fr !important;
        gap: 6px !important;
    }
    .stats-grid.tiktok-balance-grid .stat-card {
        padding: 8px 12px !important;
        flex-wrap: nowrap !important;
    }
    .stats-grid.tiktok-balance-grid .stat-value {
        font-size: 1.02rem !important;
        white-space: nowrap !important;
    }
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, rgba(51, 120, 255, 0.6), transparent);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px) !important;
    border-color: rgba(51, 120, 255, 0.3) !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.5), 0 0 20px rgba(51, 120, 255, 0.15) !important;
}

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

.stat-title {
    font-size: 0.8rem !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    margin-bottom: 6px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.stat-icon {
    font-size: 1rem !important;
}

.stat-value {
    font-size: 1.55rem !important;
    font-weight: 800 !important;
    letter-spacing: -0.03em !important;
    color: #ffffff !important;
}

.stat-card:nth-child(1) .stat-value {
    color: #818cf8 !important;
    text-shadow: 0 0 20px rgba(129, 140, 248, 0.3);
}

.stat-card:nth-child(2) .stat-value {
    color: #38bdf8 !important;
}

.stat-card:nth-child(3) .stat-value {
    color: #34d399 !important;
    text-shadow: 0 0 20px rgba(52, 211, 153, 0.25);
}

.stat-card:nth-child(4) .stat-value {
    color: #fbbf24 !important;
}

/* Skeleton Loading */
.skeleton {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.04) 25%, rgba(255, 255, 255, 0.1) 50%, rgba(255, 255, 255, 0.04) 75%) !important;
    background-size: 200% 100% !important;
    animation: skeleton-wave 1.5s infinite !important;
    border-radius: 6px !important;
}

@keyframes skeleton-wave {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ==========================================================================
   COURIER CHIPS & SAAS ACCENTS
   ========================================================================== */
.courier-chip {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 6px;
    color: #cbd5e1;
    font-size: 0.78rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.2s ease;
}
.courier-chip:hover {
    background: rgba(51, 120, 255, 0.15);
    border-color: rgba(51, 120, 255, 0.4);
    color: #fff;
    transform: translateY(-1px);
}
.add-tabs {
    display: flex;
    gap: 10px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
    padding-bottom: 8px;
}
.add-tabs .tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.2s ease;
}
.add-tabs .tab-btn.active {
    background: rgba(51, 120, 255, 0.15);
    border-color: rgba(51, 120, 255, 0.4);
    color: #818cf8;
}
.add-tabs .tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.04);
    color: #e2e8f0;
}

/* ==========================================================================
   DIGITAL TITANIUM WALLET CARD & PRICING SHOWCASE (NEXT-GEN)
   ========================================================================== */

/* Status Pill */
.gateway-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    padding: 6px 14px;
    border-radius: 999px;
    font-size: 0.8rem;
    color: #34d399;
    font-weight: 600;
}
.status-indicator-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #10b981;
    box-shadow: 0 0 10px #10b981;
    display: inline-block;
}

/* Digital Credit Card Component */
.digital-credit-card {
    position: relative;
    background: linear-gradient(135deg, #1e1b4b 0%, #0f172a 60%, #020617 100%);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    padding: 26px;
    min-height: 220px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.8), inset 0 1px 1px rgba(255, 255, 255, 0.2);
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.digital-credit-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 25px 50px -15px rgba(51, 120, 255, 0.3), inset 0 1px 1px rgba(255, 255, 255, 0.3);
}
.card-glass-layer {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 250px;
    height: 250px;
    background: radial-gradient(circle, rgba(51, 120, 255, 0.35) 0%, transparent 70%);
    pointer-events: none;
}
.card-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: relative;
    z-index: 2;
}
.card-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.05rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.01em;
}
.card-brand i {
    color: #818cf8;
    font-size: 1.2rem;
}
.card-emv-chip {
    width: 44px;
    height: 32px;
    background: linear-gradient(135deg, #fbbf24 0%, #d97706 100%);
    border-radius: 6px;
    border: 1px solid #f59e0b;
    box-shadow: inset 0 1px 2px rgba(255,255,255,0.4);
    position: relative;
}
.card-emv-chip::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: rgba(0,0,0,0.2);
}
.card-balance-section {
    position: relative;
    z-index: 2;
    margin: 15px 0;
}
.balance-label {
    font-size: 0.72rem;
    font-weight: 700;
    color: #94a3b8;
    letter-spacing: 0.08em;
    margin-bottom: 4px;
}
.balance-number-row {
    display: flex;
    align-items: baseline;
    gap: 10px;
}
.balance-val {
    font-size: 2.2rem;
    font-weight: 900;
    color: #ffffff;
    font-family: 'Inter', -apple-system, sans-serif;
    letter-spacing: -0.03em;
    text-shadow: 0 2px 10px rgba(0,0,0,0.5);
}
.balance-unit {
    font-size: 1rem;
    color: #818cf8;
    font-weight: 600;
}
.card-footer-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    position: relative;
    z-index: 2;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 12px;
}
.card-sub-label {
    font-size: 0.65rem;
    font-weight: 600;
    color: #64748b;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}
.card-sub-val {
    font-size: 0.92rem;
    font-weight: 700;
    color: #e2e8f0;
    margin-top: 2px;
}

/* Benefit items */
.benefit-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 12px;
    font-size: 0.88rem;
    color: #cbd5e1;
    line-height: 1.4;
}
.badge-accent {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid rgba(245, 158, 11, 0.3);
    color: #fbbf24;
    padding: 3px 8px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 700;
}

/* Pricing Grid */
.pricing-cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
}
.pricing-tier-card {
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 18px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.pricing-tier-card:hover {
    transform: translateY(-4px);
    border-color: rgba(51, 120, 255, 0.5);
    background: rgba(24, 33, 58, 0.8);
    box-shadow: 0 12px 30px -10px rgba(51, 120, 255, 0.3);
}
.pricing-tier-card.highlight {
    border-color: rgba(51, 120, 255, 0.4);
    background: rgba(18, 26, 49, 0.75);
}
.pricing-tier-card.vvip {
    border-color: rgba(236, 72, 153, 0.35);
}
.tier-badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.65rem;
    font-weight: 800;
    padding: 3px 10px;
    border-bottom-left-radius: 8px;
    border-top-right-radius: 13px;
    text-transform: uppercase;
}
.tier-badge.hot {
    background: #3378ff;
    color: #fff;
    box-shadow: 0 2px 8px rgba(51, 120, 255, 0.4);
}
.tier-badge.best {
    background: #f59e0b;
    color: #000;
}
.tier-badge.vip {
    background: #ef4444;
    color: #fff;
}
.tier-badge.vvip {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff;
}
.tier-badge-placeholder {
    font-size: 0.75rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 6px;
}
.tier-amount {
    font-size: 1.15rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 6px;
}
.tier-currency {
    font-size: 0.75rem;
    color: #94a3b8;
    font-weight: 500;
}
.tier-credits {
    font-size: 1.6rem;
    font-weight: 900;
    color: #38bdf8;
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-bottom: 4px;
}
.tier-credits .unit {
    font-size: 0.82rem;
    color: #94a3b8;
    font-weight: 500;
}
.tier-meta {
    font-size: 0.78rem;
    color: #64748b;
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 8px;
    margin-top: 8px;
    margin-bottom: 12px;
}
.tier-meta.bonus-text {
    color: #34d399;
    font-weight: 600;
}
.btn-tier-action {
    width: 100%;
    padding: 8px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.12);
    color: #e2e8f0;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.pricing-tier-card:hover .btn-tier-action {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: #fff;
}

/* Input with icon */
.input-with-icon {
    position: relative;
}
.input-with-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: #64748b;
    font-size: 1rem;
}

/* ==========================================================================
   SIDEBAR UPGRADE (PERFECT SPACING & ZERO CLIPPING)
   ========================================================================== */
.sidebar {
    width: 260px !important;
    padding: 16px 10px 14px 10px !important;
    display: flex !important;
    flex-direction: column !important;
    transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    background-color: #090e1c !important;
    border-right: 1px solid rgba(255, 255, 255, 0.07) !important;
    box-sizing: border-box !important;
}
.sidebar.collapsed {
    width: 72px !important;
    padding: 16px 0 14px 0 !important;
    overflow-x: hidden !important;
}
.sidebar.collapsed #sidebar-nav {
    padding: 8px 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    scrollbar-width: none !important; /* Hide scrollbar Firefox */
    -ms-overflow-style: none !important; /* Hide scrollbar IE/Edge */
}
.sidebar.collapsed #sidebar-nav::-webkit-scrollbar {
    display: none !important; /* Hide scrollbar Chrome/Webkit so it never covers icons */
    width: 0 !important;
    height: 0 !important;
}



/* Navigation Scroll Container */
#sidebar-nav {
    flex: 1 !important;
    overflow-y: auto !important;
    min-height: 0 !important;
    padding-bottom: 50px !important; /* Khoảng đệm sâu để không bao giờ bị che chữ cuối */
    padding-right: 4px !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(255, 255, 255, 0.2) transparent !important;
}
#sidebar-nav::-webkit-scrollbar {
    width: 4px !important;
}
#sidebar-nav::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.2) !important;
    border-radius: 4px !important;
}

/* Category Headers - High contrast & No clipping */
.sidebar-category {
    display: block !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: #94a3b8 !important; /* Rõ nét, không bị tối đen */
    letter-spacing: 0.06em !important;
    padding: 14px 10px 6px 10px !important;
    text-transform: uppercase !important;
    line-height: 1.6 !important; /* Không bị cắt mũ và dấu tiếng Việt */
    white-space: nowrap !important;
    overflow: visible !important;
}
.sidebar.collapsed .sidebar-category {
    display: none !important;
}

/* Nav Link Items - Modern Squircle Badge Architecture */
.nav-link {
    display: flex !important;
    align-items: center !important;
    padding: 6px 10px !important;
    margin-bottom: 4px !important;
    font-size: 0.88rem !important;
    font-weight: 500 !important;
    border-radius: 10px !important;
    color: #94a3b8 !important;
    line-height: 1.4 !important;
    transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1) !important;
    text-decoration: none !important;
    position: relative !important;
    border: 1px solid transparent !important;
}
.nav-link:hover {
    background-color: rgba(255, 255, 255, 0.05) !important;
    color: #ffffff !important;
    transform: translateX(3px) !important;
}
.nav-link.active {
    background: rgba(255, 255, 255, 0.07) !important;
    color: #ffffff !important;
    font-weight: 600 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.25) !important;
}

/* Base Squircle Icon Badge */
.nav-link i {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    border-radius: 9px !important;
    font-size: 0.95rem !important;
    margin-right: 12px !important;
    transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
    flex-shrink: 0 !important;
    position: relative !important;
}
.nav-link:hover i {
    transform: scale(1.12) translateY(-1px) !important;
}

/* Collapsed Sidebar Navigation */
.sidebar.collapsed .nav-link {
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    padding: 4px 0 !important;
    margin: 3px auto !important;
    width: 44px !important;
    border-radius: 12px !important;
    transform: none !important;
    overflow: visible !important;
}
.sidebar.collapsed .nav-link span {
    display: none !important;
}
.sidebar.collapsed .nav-link i {
    margin: 0 auto !important;
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    border-radius: 10px !important;
    font-size: 1.1rem !important;
    box-sizing: border-box !important;
}
.sidebar.collapsed .nav-link:hover i {
    transform: scale(1.15) !important;
}

/* ==========================================================================
   VIBRANT MULTI-COLOR ICON PALETTE (EACH MENU ITEM HAS UNIQUE GLOW)
   ========================================================================== */

/* 1. Dashboard: Neon Cyan / Electric Sky */
.nav-link[data-page="dashboard"] i {
    color: #38bdf8 !important;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.22) 0%, rgba(14, 165, 233, 0.08) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.35) !important;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.2) !important;
}
.nav-link[data-page="dashboard"]:hover i,
.nav-link[data-page="dashboard"].active i {
    color: #7dd3fc !important;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.38) 0%, rgba(14, 165, 233, 0.18) 100%) !important;
    border-color: rgba(56, 189, 248, 0.65) !important;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.55) !important;
}
.nav-link[data-page="dashboard"].active {
    border-color: rgba(56, 189, 248, 0.3) !important;
    background: rgba(56, 189, 248, 0.08) !important;
}

/* 2. Add Order: Emerald Green */
.nav-link[data-page="add-order"] i {
    color: #34d399 !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.22) 0%, rgba(5, 150, 105, 0.08) 100%) !important;
    border: 1px solid rgba(16, 185, 129, 0.35) !important;
    box-shadow: 0 2px 10px rgba(16, 185, 129, 0.2) !important;
}
.nav-link[data-page="add-order"]:hover i,
.nav-link[data-page="add-order"].active i {
    color: #6ee7b7 !important;
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.38) 0%, rgba(5, 150, 105, 0.18) 100%) !important;
    border-color: rgba(16, 185, 129, 0.65) !important;
    box-shadow: 0 0 16px rgba(16, 185, 129, 0.55) !important;
}
.nav-link[data-page="add-order"].active {
    border-color: rgba(16, 185, 129, 0.3) !important;
    background: rgba(16, 185, 129, 0.08) !important;
}

/* 3. Shopee & SPX: Shopee Fire Orange */
.nav-link[data-page="spx-cookie"] i {
    color: #fb923c !important;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.24) 0%, rgba(234, 88, 12, 0.08) 100%) !important;
    border: 1px solid rgba(249, 115, 22, 0.4) !important;
    box-shadow: 0 2px 10px rgba(249, 115, 22, 0.25) !important;
}
.nav-link[data-page="spx-cookie"]:hover i,
.nav-link[data-page="spx-cookie"].active i {
    color: #fdba74 !important;
    background: linear-gradient(135deg, rgba(249, 115, 22, 0.4) 0%, rgba(234, 88, 12, 0.2) 100%) !important;
    border-color: rgba(249, 115, 22, 0.65) !important;
    box-shadow: 0 0 18px rgba(249, 115, 22, 0.6) !important;
}
.nav-link[data-page="spx-cookie"].active {
    border-color: rgba(249, 115, 22, 0.3) !important;
    background: rgba(249, 115, 22, 0.08) !important;
}

/* 4. TikTok Shop: Neon Magenta / Cyber Red */
.nav-link[data-page="tiktok"] i {
    color: #ff2d55 !important;
    background: linear-gradient(135deg, rgba(254, 44, 85, 0.24) 0%, rgba(0, 242, 254, 0.1) 100%) !important;
    border: 1px solid rgba(254, 44, 85, 0.45) !important;
    box-shadow: 0 2px 10px rgba(254, 44, 85, 0.25) !important;
}
.nav-link[data-page="tiktok"]:hover i,
.nav-link[data-page="tiktok"].active i {
    color: #ff607d !important;
    background: linear-gradient(135deg, rgba(254, 44, 85, 0.4) 0%, rgba(0, 242, 254, 0.2) 100%) !important;
    border-color: rgba(254, 44, 85, 0.7) !important;
    box-shadow: 0 0 18px rgba(254, 44, 85, 0.6) !important;
}
.nav-link[data-page="tiktok"].active {
    border-color: rgba(254, 44, 85, 0.3) !important;
    background: rgba(254, 44, 85, 0.08) !important;
}

/* 4b. Hotmail Cloud: Electric Azure / Outlook Blue */
.nav-link[data-page="hotmail"] i {
    color: #38bdf8 !important;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.24) 0%, rgba(37, 99, 235, 0.1) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 2px 10px rgba(14, 165, 233, 0.25) !important;
}
.nav-link[data-page="hotmail"]:hover i,
.nav-link[data-page="hotmail"].active i {
    color: #7dd3fc !important;
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.4) 0%, rgba(37, 99, 235, 0.2) 100%) !important;
    border-color: rgba(56, 189, 248, 0.7) !important;
    box-shadow: 0 0 18px rgba(14, 165, 233, 0.6) !important;
}
.nav-link[data-page="hotmail"].active {
    border-color: rgba(56, 189, 248, 0.3) !important;
    background: rgba(14, 165, 233, 0.08) !important;
}

/* Ẩn triệt để menu khi bị tắt (ghi đè display: flex !important của .nav-link) */
.nav-link.menu-hidden,
.nav-link[style*="display: none"],
.nav-link[style*="display:none"],
.sidebar.collapsed .nav-link.menu-hidden,
.sidebar.collapsed .nav-link[style*="display: none"],
.sidebar.collapsed .nav-link[style*="display:none"],
.sidebar-category.menu-hidden,
.sidebar-category[style*="display: none"],
.sidebar-category[style*="display:none"] {
    display: none !important;
}

/* 5. Phone Rent: Electric Violet / Purple */
.nav-link[data-page="phone-rent"] i {
    color: #c084fc !important;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.22) 0%, rgba(147, 51, 234, 0.08) 100%) !important;
    border: 1px solid rgba(168, 85, 247, 0.38) !important;
    box-shadow: 0 2px 10px rgba(168, 85, 247, 0.2) !important;
}
.nav-link[data-page="phone-rent"]:hover i,
.nav-link[data-page="phone-rent"].active i {
    color: #e9d5ff !important;
    background: linear-gradient(135deg, rgba(168, 85, 247, 0.38) 0%, rgba(147, 51, 234, 0.18) 100%) !important;
    border-color: rgba(168, 85, 247, 0.65) !important;
    box-shadow: 0 0 16px rgba(168, 85, 247, 0.55) !important;
}
.nav-link[data-page="phone-rent"].active {
    border-color: rgba(168, 85, 247, 0.3) !important;
    background: rgba(168, 85, 247, 0.08) !important;
}

/* 6. Tiện Ích MMO: Cyber Amber / Gold */
.nav-link[data-page="tools"] i {
    color: #fbbf24 !important;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.22) 0%, rgba(217, 119, 6, 0.08) 100%) !important;
    border: 1px solid rgba(245, 158, 11, 0.4) !important;
    box-shadow: 0 2px 10px rgba(245, 158, 11, 0.2) !important;
}
.nav-link[data-page="tools"]:hover i,
.nav-link[data-page="tools"].active i {
    color: #fde68a !important;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.38) 0%, rgba(217, 119, 6, 0.18) 100%) !important;
    border-color: rgba(245, 158, 11, 0.65) !important;
    box-shadow: 0 0 16px rgba(245, 158, 11, 0.55) !important;
}
.nav-link[data-page="tools"].active {
    border-color: rgba(245, 158, 11, 0.3) !important;
    background: rgba(245, 158, 11, 0.08) !important;
}

/* 7. Ví & Nạp Coin: Neon Mint / Cash Green */
.nav-link[data-page="topup"] i {
    color: #4ade80 !important;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.22) 0%, rgba(22, 163, 74, 0.08) 100%) !important;
    border: 1px solid rgba(34, 197, 94, 0.4) !important;
    box-shadow: 0 2px 10px rgba(34, 197, 94, 0.2) !important;
}
.nav-link[data-page="topup"]:hover i,
.nav-link[data-page="topup"].active i {
    color: #86efac !important;
    background: linear-gradient(135deg, rgba(34, 197, 94, 0.38) 0%, rgba(22, 163, 74, 0.18) 100%) !important;
    border-color: rgba(34, 197, 94, 0.65) !important;
    box-shadow: 0 0 16px rgba(34, 197, 94, 0.55) !important;
}
.nav-link[data-page="topup"].active {
    border-color: rgba(34, 197, 94, 0.3) !important;
    background: rgba(34, 197, 94, 0.08) !important;
}

/* 8. Chương Trình Giới Thiệu: Neon Rose / Pink */
.nav-link[data-page="referral"] i {
    color: #fb7185 !important;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.22) 0%, rgba(251, 113, 133, 0.08) 100%) !important;
    border: 1px solid rgba(244, 63, 94, 0.4) !important;
    box-shadow: 0 2px 10px rgba(244, 63, 94, 0.2) !important;
}
.nav-link[data-page="referral"]:hover i,
.nav-link[data-page="referral"].active i {
    color: #fda4af !important;
    background: linear-gradient(135deg, rgba(244, 63, 94, 0.38) 0%, rgba(251, 113, 133, 0.18) 100%) !important;
    border-color: rgba(244, 63, 94, 0.65) !important;
    box-shadow: 0 0 16px rgba(244, 63, 94, 0.55) !important;
}
.nav-link[data-page="referral"].active {
    border-color: rgba(244, 63, 94, 0.3) !important;
    background: rgba(244, 63, 94, 0.08) !important;
}

/* 9. Báo Cáo Thống Kê: Deep Royal Indigo */
.nav-link[data-page="stats"] i {
    color: #818cf8 !important;
    background: linear-gradient(135deg, rgba(51, 120, 255, 0.24) 0%, rgba(79, 70, 229, 0.08) 100%) !important;
    border: 1px solid rgba(51, 120, 255, 0.4) !important;
    box-shadow: 0 2px 10px rgba(51, 120, 255, 0.22) !important;
}
.nav-link[data-page="stats"]:hover i,
.nav-link[data-page="stats"].active i {
    color: #a5b4fc !important;
    background: linear-gradient(135deg, rgba(51, 120, 255, 0.4) 0%, rgba(79, 70, 229, 0.18) 100%) !important;
    border-color: rgba(51, 120, 255, 0.65) !important;
    box-shadow: 0 0 16px rgba(51, 120, 255, 0.55) !important;
}
.nav-link[data-page="stats"].active {
    border-color: rgba(51, 120, 255, 0.3) !important;
    background: rgba(51, 120, 255, 0.08) !important;
}

/* 10. API & Webhooks: Cyber Teal / Aqua */
.nav-link[data-page="api"] i {
    color: #22d3ee !important;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.22) 0%, rgba(8, 145, 178, 0.08) 100%) !important;
    border: 1px solid rgba(6, 182, 212, 0.38) !important;
    box-shadow: 0 2px 10px rgba(6, 182, 212, 0.2) !important;
}
.nav-link[data-page="api"]:hover i,
.nav-link[data-page="api"].active i {
    color: #67e8f9 !important;
    background: linear-gradient(135deg, rgba(6, 182, 212, 0.38) 0%, rgba(8, 145, 178, 0.18) 100%) !important;
    border-color: rgba(6, 182, 212, 0.65) !important;
    box-shadow: 0 0 16px rgba(6, 182, 212, 0.55) !important;
}
.nav-link[data-page="api"].active {
    border-color: rgba(6, 182, 212, 0.3) !important;
    background: rgba(6, 182, 212, 0.08) !important;
}

/* 11. Cài Đặt Hệ Thống: Platinum Slate / Silver */
.nav-link[data-page="settings"] i {
    color: #e2e8f0 !important;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.22) 0%, rgba(100, 116, 139, 0.08) 100%) !important;
    border: 1px solid rgba(148, 163, 184, 0.38) !important;
    box-shadow: 0 2px 10px rgba(148, 163, 184, 0.18) !important;
}
.nav-link[data-page="settings"]:hover i,
.nav-link[data-page="settings"].active i {
    color: #ffffff !important;
    background: linear-gradient(135deg, rgba(148, 163, 184, 0.38) 0%, rgba(100, 116, 139, 0.18) 100%) !important;
    border-color: rgba(148, 163, 184, 0.65) !important;
    box-shadow: 0 0 16px rgba(148, 163, 184, 0.45) !important;
}
.nav-link[data-page="settings"].active {
    border-color: rgba(148, 163, 184, 0.3) !important;
    background: rgba(148, 163, 184, 0.08) !important;
}

/* 12. Quản Trị Viên: Royal Gold Shield & Flame */
.nav-link[data-page="admin"] i {
    color: #facc15 !important;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.28) 0%, rgba(249, 115, 22, 0.12) 100%) !important;
    border: 1px solid rgba(234, 179, 8, 0.5) !important;
    box-shadow: 0 2px 12px rgba(234, 179, 8, 0.3) !important;
}
.nav-link[data-page="admin"]:hover i,
.nav-link[data-page="admin"].active i {
    color: #fef08a !important;
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.45) 0%, rgba(249, 115, 22, 0.22) 100%) !important;
    border-color: rgba(234, 179, 8, 0.8) !important;
    box-shadow: 0 0 20px rgba(234, 179, 8, 0.7) !important;
}
.nav-link[data-page="admin"] {
    color: #facc15 !important;
    font-weight: 600 !important;
}
.nav-link[data-page="admin"].active {
    border-color: rgba(234, 179, 8, 0.35) !important;
    background: rgba(234, 179, 8, 0.1) !important;
}

/* Sidebar Footer & User Profile Card */
.sidebar-footer {
    padding-top: 10px !important;
    margin-top: auto !important;
    border-top: 1px solid rgba(255, 255, 255, 0.08) !important;
    background: #090e1c !important;
    position: relative !important;
    z-index: 10 !important;
}
.user-profile-badge {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    background: rgba(255, 255, 255, 0.04) !important;
    border: 1px solid rgba(255, 255, 255, 0.07) !important;
    border-radius: 12px !important;
    padding: 8px 10px !important;
    margin-bottom: 8px !important;
    transition: background 0.2s !important;
}
.user-profile-badge:hover {
    background: rgba(255, 255, 255, 0.07) !important;
}
.user-avatar-wrap {
    position: relative !important;
    flex-shrink: 0 !important;
}
.user-avatar {
    width: 34px !important;
    height: 34px !important;
    border-radius: 10px !important;
    background: linear-gradient(135deg, #3378ff, #06b6d4) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #fff !important;
    font-size: 0.95rem !important;
    box-shadow: 0 4px 10px rgba(51, 120, 255, 0.3) !important;
}
.user-status-dot {
    position: absolute !important;
    bottom: -2px !important;
    right: -2px !important;
    width: 9px !important;
    height: 9px !important;
    border-radius: 50 !important;
    border-radius: 50% !important;
    background: #10b981 !important;
    border: 2px solid #090e1c !important;
}
.user-details {
    flex: 1 !important;
    min-width: 0 !important;
}
.user-name {
    font-size: 0.85rem !important;
    font-weight: 700 !important;
    color: #f1f5f9 !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
}
.user-role {
    font-size: 0.7rem !important;
    color: #818cf8 !important;
    font-weight: 600 !important;
}
.btn-sidebar-logout {
    background: transparent !important;
    border: none !important;
    color: #64748b !important;
    font-size: 1rem !important;
    cursor: pointer !important;
    padding: 6px !important;
    border-radius: 6px !important;
    transition: all 0.2s !important;
}
.btn-sidebar-logout:hover {
    color: #f43f5e !important;
    background: rgba(244, 63, 94, 0.1) !important;
}
.sidebar.collapsed .user-details,
.sidebar.collapsed .btn-sidebar-logout {
    display: none !important;
}
.sidebar.collapsed .user-profile-badge {
    padding: 6px !important;
    justify-content: center !important;
    background: transparent !important;
    border: none !important;
}


/* ==========================================================================
   ADMIN PORTAL STYLING
   ========================================================================== */
.admin-card {
  background: rgba(18, 24, 38, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.admin-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
}

.admin-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.admin-tabs-nav {
  background: rgba(13, 18, 28, 0.8);
  padding: 6px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  display: inline-flex;
}

.admin-tab-btn {
  background: transparent;
  border: none;
  color: #94a3b8;
  font-size: 0.875rem;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 10px;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}

.admin-tab-btn:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.04);
}

.admin-tab-btn.active {
  background: #3b82f6;
  color: #ffffff;
  box-shadow: 0 4px 12px rgba(59, 130, 246, 0.35);
}

/* Switch Toggle */
.switch-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  margin-bottom: 0;
  cursor: pointer;
}

.switch-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.slider-round {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: rgba(255, 255, 255, 0.15);
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 34px;
}

.slider-round:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  bottom: 3px;
  background-color: white;
  transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

input:checked + .slider-round {
  background-color: #10b981;
}

input:focus + .slider-round {
  box-shadow: 0 0 1px #10b981;
}

input:checked + .slider-round:before {
  transform: translateX(20px);
}

/* Admin Input & Modals */
.admin-input {
  background: rgba(13, 18, 28, 0.7) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-radius: 10px !important;
}

.admin-input:focus {
  border-color: #3b82f6 !important;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.25) !important;
}

.admin-modal-content {
  background: #0f172a !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  border-radius: 20px !important;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.7) !important;
}


/* Admin Tab Contents Display */
.admin-tab-content {
  display: none !important;
}

.admin-tab-content.active {
  display: block !important;
  animation: adminTabFadeIn 0.25s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes adminTabFadeIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =============================================================================
   HỆ SINH THÁI MMO & FLOATING SUPPORT WIDGET (dvshopmmo <-> shopmmo)
   ============================================================================= */
.nav-link[data-page="shopmmo"] i {
    color: #38bdf8 !important;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(14, 165, 233, 0.1) 100%) !important;
    border: 1px solid rgba(56, 189, 248, 0.45) !important;
    box-shadow: 0 2px 10px rgba(56, 189, 248, 0.25) !important;
}
.nav-link[data-page="shopmmo"]:hover {
    color: #38bdf8 !important;
    background: rgba(56, 189, 248, 0.08) !important;
}
.nav-link[data-page="zalo-group"] i {
    color: #60a5fa !important;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(59, 130, 246, 0.1) 100%) !important;
    border: 1px solid rgba(59, 130, 246, 0.45) !important;
    box-shadow: 0 2px 10px rgba(59, 130, 246, 0.25) !important;
}
.nav-link[data-page="zalo-group"]:hover {
    color: #60a5fa !important;
    background: rgba(37, 99, 235, 0.08) !important;
}

/* Floating Action Buttons: Zalo Support & ShopMMO (Compact Collapsible so it never covers pagination) */
.floating-eco-widget {
    position: fixed;
    bottom: 8px;
    right: 10px;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    z-index: 9999;
    pointer-events: none;
}

.floating-eco-menu {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 8px;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transform: translateY(10px) scale(0.94);
    transform-origin: bottom right;
    transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s;
}

.floating-eco-widget:hover .floating-eco-menu,
.floating-eco-widget.open .floating-eco-menu {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    transform: translateY(0) scale(1);
}

.floating-eco-trigger {
    pointer-events: auto;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    height: 30px;
    padding: 0 11px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.92), rgba(30, 41, 59, 0.92));
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #7dd3fc;
    font-size: 0.73rem;
    font-weight: 800;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
    transition: all 0.2s ease;
    white-space: nowrap;
}

.floating-eco-trigger:hover {
    background: linear-gradient(135deg, #0284c7, #10b981);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.35);
    box-shadow: 0 6px 18px rgba(16, 185, 129, 0.35);
}

.floating-eco-btn {
    pointer-events: auto;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 1.1rem;
    text-decoration: none;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45);
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    align-self: flex-end;
}

.floating-eco-btn.zalo {
    background: linear-gradient(135deg, #0068ff, #0084ff);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(0, 104, 255, 0.45);
}

.floating-eco-btn.shop {
    background: linear-gradient(135deg, #f59e0b, #ea580c);
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 6px 20px rgba(234, 88, 12, 0.45);
}

.floating-eco-btn:hover {
    transform: translateY(-4px) scale(1.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
    color: #ffffff;
}

.floating-eco-btn .eco-tooltip {
    position: absolute;
    right: 58px;
    background: rgba(15, 23, 42, 0.94);
    color: #f8fafc;
    font-size: 0.78rem;
    font-weight: 600;
    padding: 6px 12px;
    border-radius: 6px;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s, transform 0.2s;
    transform: translateX(6px);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
}

.floating-eco-btn:hover .eco-tooltip {
    opacity: 1;
    transform: translateX(0);
}

@media (max-width: 768px) {
    /* Widget hỗ trợ nổi góc dưới */
    .floating-eco-widget {
        bottom: 12px !important;
        right: 12px !important;
        gap: 8px !important;
    }
    .floating-eco-btn {
        width: 38px !important;
        height: 38px !important;
        font-size: 1rem !important;
    }

    /* Khối KPI 4 thẻ số liệu trên mobile */
    .stats-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
        margin-bottom: 16px !important;
    }
    .stat-card {
        padding: 12px 14px !important;
        border-radius: 12px !important;
    }
    .stat-card .stat-title {
        font-size: 0.72rem !important;
        gap: 6px !important;
    }
    .stat-card .stat-value {
        font-size: 1.25rem !important;
    }

    /* Thẻ Titanium Digital Card & Ví Coin */
    .wallet-overview-grid {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
    }
    .digital-credit-card {
        padding: 18px !important;
        min-height: 180px !important;
        border-radius: 14px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .digital-credit-card .card-brand {
        font-size: 0.95rem !important;
    }
    .digital-credit-card .balance-val {
        font-size: 1.8rem !important;
    }

    /* Gói nạp Coin */
    .pricing-cards-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .pricing-tier-card {
        padding: 14px 10px !important;
    }

    /* Shopee SPX restock form */
    .spx-restock-form {
        flex-direction: column !important;
        gap: 8px !important;
    }
    .spx-restock-form input, .spx-restock-btn {
        width: 100% !important;
    }
}

@media (max-width: 480px) {
    .stats-grid {
        gap: 8px !important;
    }
    .stat-card {
        padding: 10px !important;
    }
    .stat-card .stat-value {
        font-size: 1.15rem !important;
    }
    #dash-paid-balance a.btn {
        padding: 2px 6px !important;
        font-size: 0.7rem !important;
    }
    .digital-credit-card .balance-val {
        font-size: 1.5rem !important;
    }
}

/* ==========================================================================
   TOPUP 1-SCREEN VIEWPORT LAYOUT & COMPACT DESIGN
   ========================================================================== */
.topup-viewport-wrapper {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.topup-header-strip {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    padding: 12px 18px;
    background: rgba(15, 23, 42, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
}
.topup-mini-pill {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 6px 12px;
    font-size: 0.82rem;
}
.topup-main-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 20px;
    align-items: stretch;
}
.topup-left-panel {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.quick-packages-container {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.quick-packages-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}
.quick-pkg-card {
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 10px 12px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
    text-align: left;
}
.quick-pkg-card:hover {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(51, 120, 255, 0.5);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.3);
}
.quick-pkg-card.selected {
    background: rgba(51, 120, 255, 0.15) !important;
    border-color: #3378ff !important;
    box-shadow: 0 0 15px rgba(51, 120, 255, 0.35) !important;
}
.quick-pkg-card .pkg-badge {
    position: absolute;
    top: 0;
    right: 0;
    font-size: 0.62rem;
    font-weight: 800;
    padding: 2px 7px;
    border-bottom-left-radius: 6px;
    text-transform: uppercase;
    line-height: 1.2;
}
.quick-pkg-card .pkg-badge.hot {
    background: #3378ff;
    color: #fff;
}
.quick-pkg-card .pkg-badge.save {
    background: #f59e0b;
    color: #000;
}
.quick-pkg-card .pkg-badge.vip {
    background: #ef4444;
    color: #fff;
}
.quick-pkg-card .pkg-badge.vvip {
    background: linear-gradient(135deg, #a855f7, #ec4899);
    color: #fff;
}
.quick-pkg-card .pkg-val {
    font-size: 1.05rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 2px;
}
.quick-pkg-card .pkg-coins {
    font-size: 0.85rem;
    font-weight: 700;
    color: #38bdf8;
    display: flex;
    align-items: center;
    gap: 4px;
}
.quick-pkg-card .pkg-bonus {
    font-size: 0.72rem;
    color: #34d399;
    font-weight: 600;
    margin-top: 3px;
}

.topup-right-panel {
    background: rgba(15, 23, 42, 0.65);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 480px;
    position: relative;
}

.vietqr-display-box {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 14px;
}
.vietqr-image-frame {
    background: #ffffff;
    padding: 8px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.4);
    display: inline-block;
    line-height: 0;
}
.vietqr-image-frame img {
    width: 210px;
    height: 210px;
    border-radius: 6px;
    display: block;
}
.vietqr-details-card {
    width: 100%;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    padding: 12px 14px;
    text-align: left;
    font-size: 0.86rem;
}
.vietqr-details-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 6px;
}
.vietqr-details-row:last-child {
    margin-bottom: 0;
}
.vietqr-memo-box {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #0f172a;
    border: 1px dashed #3378ff;
    border-radius: 8px;
    padding: 8px 12px;
    margin-top: 6px;
}
.vietqr-memo-text {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 800;
    color: #3378ff;
    letter-spacing: 0.05em;
    font-family: monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.btn-copy-memo {
    background: #3378ff;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 6px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 5px;
    transition: background 0.2s;
    white-space: nowrap;
}
.btn-copy-memo:hover {
    background: #2563eb;
}

@media (max-width: 900px) {
    .topup-main-grid {
        grid-template-columns: 1fr;
    }
    .quick-packages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* =========================================================================
   NEXUSTRACK DEVELOPER PLATFORM & API GATEWAY ENTERPRISE STYLES
   ========================================================================= */
.api-page-wrapper {
    max-width: 1200px;
    margin: 0 auto;
}
.api-hero-header {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1px solid rgba(51, 120, 255, 0.25);
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}
.api-hero-header::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(51, 120, 255, 0.15) 0%, transparent 70%);
    pointer-events: none;
}
.api-hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(51, 120, 255, 0.15);
    border: 1px solid rgba(51, 120, 255, 0.4);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 700;
    color: #818cf8;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}
.pulse-indicator {
    width: 8px;
    height: 8px;
    background: #10b981;
    border-radius: 50%;
    box-shadow: 0 0 8px #10b981;
    animation: pulse 2s infinite;
}
@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.85); }
}
.api-hero-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #f8fafc;
    margin-bottom: 8px;
}
.api-hero-desc {
    color: #94a3b8;
    font-size: 0.88rem;
    line-height: 1.6;
    max-width: 800px;
    margin-bottom: 16px;
}
.api-hero-stats {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}
.stat-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 5px 12px;
    border-radius: 6px;
    font-size: 0.78rem;
    color: #cbd5e1;
}
.api-card {
    background: #0f172a !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 12px !important;
}
.api-card-header {
    background: rgba(255, 255, 255, 0.02) !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
    padding: 14px 18px !important;
}
.api-main-tabs {
    display: flex;
    gap: 8px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding-bottom: 8px;
    overflow-x: auto;
}
.api-tab-btn {
    background: transparent;
    border: 1px solid transparent;
    color: #94a3b8;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}
.api-tab-btn:hover {
    color: #f8fafc;
    background: rgba(255, 255, 255, 0.04);
}
.api-tab-btn.active {
    background: #1e293b;
    border-color: #3378ff;
    color: #818cf8;
    box-shadow: 0 2px 8px rgba(51, 120, 255, 0.2);
}
.api-tab-pane {
    display: none;
}
.api-tab-pane.active {
    display: block;
}
.api-sandbox-banner {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid rgba(245, 158, 11, 0.3);
}
.api-endpoint-card {
    background: #111827 !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    transition: border-color 0.2s;
}
.api-endpoint-card:hover {
    border-color: rgba(51, 120, 255, 0.4) !important;
}
.api-live-console {
    background: #090e1a !important;
    border: 1px solid rgba(51, 120, 255, 0.3) !important;
}
.api-code-tabs-box {
    background: rgba(0, 0, 0, 0.4);
    border-radius: 6px;
    padding: 8px;
    margin-top: 10px;
}

/* Ẩn thanh Header trên cùng ở Desktop để mở rộng không gian nội dung, giữ lại trên Mobile để mở menu */
@media (min-width: 769px) {
    .main-content > .header {
        display: none !important;
    }
    .main-content > #content-area {
        padding-top: 14px !important;
        padding-bottom: 76px !important;
    }
}
.sidebar.collapsed .sidebar-quick-actions {
    flex-direction: column;
}
.sidebar.collapsed .sidebar-quick-actions .theme-toggle span {
    display: none;
}

/* ==========================================================================
   SHOPMMO NEXT-GEN LIGHT MODE & DISTINCTIVE THEME PRESETS (v9.6.1)
   1. ☀️ Sáng Tinh Tế (Daylight Pearl - body.light-mode)
   2. 🍵 Sáng Dịu Mắt (Warm Paper Eye-Care - body.light-mode.theme-light-warm)
   3. 🌿 Sáng Thanh Mát (Mint Breeze - body.light-mode.theme-light-mint)
   ========================================================================== */
body.light-mode {
    --nexus-bg-deep: #f1f5f9;
    --nexus-bg-base: #f8fafc;
    --nexus-bg-surface: #ffffff;
    --nexus-bg-card: rgba(255, 255, 255, 0.96);
    --nexus-bg-elevated: #f8fafc;
    --nexus-primary: #2563eb;
    --nexus-primary-hover: #1d4ed8;
    --nexus-primary-glow: rgba(37, 99, 235, 0.16);
    --nexus-text-primary: #0f172a;
    --nexus-text-secondary: #334155;
    --nexus-text-muted: #64748b;
    --nexus-border: #cbd5e1;
    --nexus-border-strong: #94a3b8;
    --nexus-shadow-sm: 0 2px 6px rgba(15, 23, 42, 0.04);
    --nexus-shadow-md: 0 6px 20px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04);
    --nexus-shadow-lg: 0 14px 34px -4px rgba(15, 23, 42, 0.09);

    --bg-color: #f1f5f9 !important;
    --bg-body: #f1f5f9 !important;
    --card-bg: #ffffff !important;
    --bg-card: #ffffff !important;
    --text-color: #0f172a !important;
    --text-secondary: #334155 !important;
    --text-muted: #64748b !important;
    --border-color: #cbd5e1 !important;
    --border: #cbd5e1 !important;
    --primary-color: #2563eb !important;
    --primary-hover: #1d4ed8 !important;
    --sidebar-bg: #ffffff !important;
    --header-bg: rgba(255, 255, 255, 0.94) !important;
    --table-hover: #eff6ff !important;
    --table-stripe: #f8fafc !important;
    --card-shadow: 0 4px 18px -2px rgba(15, 23, 42, 0.06), 0 2px 6px -1px rgba(15, 23, 42, 0.04) !important;

    background-color: #f1f5f9 !important;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -15%, rgba(37, 99, 235, 0.07), transparent),
        radial-gradient(ellipse 60% 45% at 95% 100%, rgba(14, 165, 233, 0.06), transparent),
        linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%) !important;
    color: #0f172a !important;
}

/* Preset 2: 🍵 Sáng Dịu Mắt (Warm Paper / Anti-Blue-Light) */
body.light-mode.theme-light-warm {
    --nexus-bg-deep: #f3efe6;
    --nexus-bg-base: #f7f4ed;
    --nexus-bg-surface: #fffdf9;
    --nexus-bg-card: #fffdf9;
    --nexus-bg-elevated: #f7f3eb;
    --nexus-primary: #0284c7;
    --nexus-primary-hover: #0369a1;
    --nexus-text-primary: #1c1917;
    --nexus-text-secondary: #44403c;
    --nexus-text-muted: #78716c;
    --nexus-border: #dfd8ca;
    --bg-color: #f3efe6 !important;
    --bg-body: #f3efe6 !important;
    --card-bg: #fffdf9 !important;
    --bg-card: #fffdf9 !important;
    --text-color: #1c1917 !important;
    --text-secondary: #44403c !important;
    --text-muted: #78716c !important;
    --border-color: #dfd8ca !important;
    --border: #dfd8ca !important;
    --sidebar-bg: #faf7f0 !important;
    --header-bg: rgba(250, 247, 240, 0.94) !important;
    --table-hover: #f5efe2 !important;
    --table-stripe: #faf7f2 !important;
    background-color: #f3efe6 !important;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -15%, rgba(217, 119, 6, 0.06), transparent),
        linear-gradient(180deg, #f8f5ee 0%, #f2ede2 100%) !important;
    color: #1c1917 !important;
}

/* Preset 3: 🌿 Sáng Thanh Mát (Mint Breeze) */
body.light-mode.theme-light-mint {
    --nexus-bg-deep: #ecf6f1;
    --nexus-bg-base: #f3faf6;
    --nexus-bg-surface: #ffffff;
    --nexus-bg-card: #ffffff;
    --nexus-bg-elevated: #f2f9f5;
    --nexus-primary: #059669;
    --nexus-primary-hover: #047857;
    --nexus-text-primary: #062c1e;
    --nexus-text-secondary: #1e4637;
    --nexus-text-muted: #4b7062;
    --nexus-border: #c5dfd1;
    --bg-color: #ecf6f1 !important;
    --bg-body: #ecf6f1 !important;
    --card-bg: #ffffff !important;
    --bg-card: #ffffff !important;
    --text-color: #062c1e !important;
    --text-secondary: #1e4637 !important;
    --text-muted: #4b7062 !important;
    --border-color: #c5dfd1 !important;
    --border: #c5dfd1 !important;
    --primary-color: #059669 !important;
    --sidebar-bg: #f8fcfa !important;
    --header-bg: rgba(248, 252, 250, 0.94) !important;
    --table-hover: #e6f7ef !important;
    --table-stripe: #f4fbf7 !important;
    background-color: #ecf6f1 !important;
    background-image:
        radial-gradient(ellipse 80% 50% at 50% -15%, rgba(16, 185, 129, 0.08), transparent),
        linear-gradient(180deg, #f4fbf7 0%, #eaf5ef 100%) !important;
    color: #062c1e !important;
}

/* Scrollbar in Light Mode */
body.light-mode ::-webkit-scrollbar-track {
    background: var(--bg-color, #f1f5f9);
}
body.light-mode ::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border: 2px solid var(--bg-color, #f1f5f9);
}
body.light-mode ::-webkit-scrollbar-thumb:hover {
    background: #94a3b8;
}

/* 1. SIDEBAR & NAVIGATION IN LIGHT MODE */
body.light-mode .sidebar {
    background-color: var(--sidebar-bg, #ffffff) !important;
    background-image: linear-gradient(180deg, rgba(37, 99, 235, 0.03) 0%, transparent 220px) !important;
    border-right: 1px solid var(--border-color, #cbd5e1) !important;
    box-shadow: 4px 0 24px rgba(15, 23, 42, 0.05) !important;
}

body.light-mode .sidebar .logo {
    border-bottom: 1px solid var(--border-color, #e2e8f0) !important;
    color: var(--text-color, #0f172a) !important;
}

body.light-mode .sidebar-brand-title {
    color: var(--text-color, #0f172a) !important;
}

body.light-mode .sidebar-brand-sub {
    color: var(--text-muted, #64748b) !important;
}

body.light-mode .sidebar-category {
    color: #475569 !important;
}

body.light-mode .sidebar-category::after {
    background: linear-gradient(90deg, #cbd5e1, transparent) !important;
}

body.light-mode .sidebar nav a {
    color: #334155 !important;
    font-weight: 600 !important;
}

body.light-mode .sidebar nav a i {
    background: #f1f5f9 !important;
    border: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

body.light-mode .sidebar nav a:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}

body.light-mode .sidebar nav a:hover i {
    background: #e0e7ff !important;
    color: #2563eb !important;
    border-color: #bfdbfe !important;
}

body.light-mode .sidebar nav a.active {
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.12) 0%, rgba(37, 99, 235, 0.03) 100%) !important;
    color: #1d4ed8 !important;
    border-left-color: #2563eb !important;
    font-weight: 700 !important;
    box-shadow: 0 2px 10px rgba(37, 99, 235, 0.08) !important;
}

body.light-mode .sidebar nav a.active i {
    background: linear-gradient(135deg, #2563eb, #0284c7) !important;
    color: #ffffff !important;
    border-color: transparent !important;
    box-shadow: 0 3px 10px rgba(37, 99, 235, 0.28) !important;
}

body.light-mode .sidebar-toggle {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
}

body.light-mode .sidebar-footer {
    background: var(--nexus-bg-elevated, #f8fafc) !important;
    border-top: 1px solid var(--border-color, #e2e8f0) !important;
}

body.light-mode .user-profile-badge {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04) !important;
}

body.light-mode .user-name {
    color: #0f172a !important;
}

body.light-mode .user-role {
    color: #2563eb !important;
}

body.light-mode .btn-sidebar-logout {
    background: rgba(239, 68, 68, 0.08) !important;
    border-color: rgba(239, 68, 68, 0.25) !important;
    color: #dc2626 !important;
}

body.light-mode .sidebar-quick-actions button {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 600 !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}

body.light-mode .sidebar-quick-actions button:hover {
    background: #eff6ff !important;
    border-color: #93c5fd !important;
    color: #1d4ed8 !important;
}

/* 2. HEADER & ANNOUNCEMENT BAR IN LIGHT MODE */
body.light-mode .header {
    background: var(--header-bg, rgba(255, 255, 255, 0.94)) !important;
    border-bottom: 1px solid var(--border-color, #cbd5e1) !important;
    box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04) !important;
}

body.light-mode #page-title {
    color: #0f172a !important;
}

body.light-mode .mobile-menu-btn {
    color: #0f172a !important;
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    border-radius: 8px;
}

body.light-mode .gateway-status-pill {
    background: rgba(16, 185, 129, 0.1) !important;
    border-color: rgba(16, 185, 129, 0.35) !important;
    color: #047857 !important;
}

body.light-mode .top-announcement-bar {
    background: linear-gradient(90deg, #eff6ff 0%, #e0f2fe 50%, #eff6ff 100%) !important;
    border-bottom: 1px solid #93c5fd !important;
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.06) !important;
}

body.light-mode .announcement-text {
    color: #1e3a8a !important;
    font-weight: 600 !important;
}

/* 3. CARDS, KPI STAT CARDS, PANELS & CONTAINERS IN LIGHT MODE */
body.light-mode .card,
body.light-mode .section-card,
body.light-mode .feature-card,
body.light-mode .table-container,
body.light-mode .orders-section,
body.light-mode .stat-card,
body.light-mode .admin-card,
body.light-mode .api-card,
body.light-mode .api-endpoint-card,
body.light-mode .topup-header-strip,
body.light-mode .topup-left-panel,
body.light-mode .topup-right-panel,
body.light-mode .vietqr-details-card,
body.light-mode .form-table-container,
body.light-mode #tiktok-emailpass-login-card {
    background: var(--card-bg, #ffffff) !important;
    border: 1px solid var(--border-color, #cbd5e1) !important;
    color: var(--text-color, #0f172a) !important;
    box-shadow: var(--card-shadow) !important;
}

body.light-mode .stat-card:hover {
    border-color: #93c5fd !important;
    box-shadow: 0 8px 24px -4px rgba(37, 99, 235, 0.12) !important;
}

body.light-mode .stat-card .stat-title {
    color: #475569 !important;
}

body.light-mode .stat-card .stat-value {
    color: #0f172a !important;
}

body.light-mode #dash-paid-balance,
body.light-mode #spx-paid-balance,
body.light-mode #tiktok-paid-balance {
    color: #1d4ed8 !important;
}

body.light-mode #dash-free-balance,
body.light-mode #spx-free-balance,
body.light-mode #tiktok-free-balance {
    color: #d97706 !important;
}

body.light-mode #dash-active-count {
    color: #059669 !important;
}

body.light-mode #dash-completed-count {
    color: #334155 !important;
}

/* 4. TABLES, ORDER LISTS & JSPREADSHEET IN LIGHT MODE */
body.light-mode table,
body.light-mode .dashboard-orders-table,
body.light-mode .tiktok-cookie-table,
body.light-mode .spx-cookie-table,
body.light-mode .data-table {
    color: #0f172a !important;
}

body.light-mode table th,
body.light-mode table thead th,
body.light-mode table thead td,
body.light-mode .table-container thead th,
body.light-mode #hotmail-page-root .data-table thead th {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-bottom: 1.5px solid #cbd5e1 !important;
    font-weight: 700 !important;
}

body.light-mode.theme-light-warm table th,
body.light-mode.theme-light-warm table thead th,
body.light-mode.theme-light-warm #hotmail-page-root .data-table thead th {
    background: #efeae0 !important;
    color: #292524 !important;
    border-bottom-color: #d6cfc2 !important;
}

body.light-mode table td,
body.light-mode table tbody td {
    color: #1e293b !important;
    border-bottom: 1px solid #e2e8f0 !important;
}

body.light-mode table tbody tr:nth-child(even):not([style*="background"]) {
    background-color: var(--table-stripe, #f8fafc);
}

body.light-mode table tbody tr:hover {
    background-color: var(--table-hover, #eff6ff) !important;
}

body.light-mode .jexcel_container,
body.light-mode .jexcel_content,
body.light-mode .jexcel,
body.light-mode .jss_worksheet {
    background: #ffffff !important;
    color: #0f172a !important;
}

body.light-mode .jexcel thead td,
body.light-mode .jss_worksheet thead td {
    background: #f1f5f9 !important;
    color: #1e293b !important;
    border-color: #cbd5e1 !important;
    font-weight: 700 !important;
}

body.light-mode .jexcel tbody td,
body.light-mode .jss_worksheet tbody td {
    background: #ffffff !important;
    color: #0f172a !important;
    border-color: #e2e8f0 !important;
}

/* 5. INPUTS, TEXTAREAS, SELECTS & FILTER BARS IN LIGHT MODE */
body.light-mode input:not([type="checkbox"]):not([type="radio"]):not([type="range"]):not([type="button"]):not([type="submit"]),
body.light-mode select,
body.light-mode textarea {
    background-color: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.03);
}

body.light-mode.theme-light-warm input:not([type="checkbox"]):not([type="radio"]),
body.light-mode.theme-light-warm select,
body.light-mode.theme-light-warm textarea {
    background-color: #fffdf9 !important;
    border-color: #d6cfc2 !important;
    color: #1c1917 !important;
}

body.light-mode input::placeholder,
body.light-mode textarea::placeholder {
    color: #64748b !important;
    opacity: 0.85;
}

body.light-mode input:focus:not([type="checkbox"]):not([type="radio"]),
body.light-mode select:focus,
body.light-mode textarea:focus {
    border-color: #2563eb !important;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15) !important;
}

body.light-mode select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

body.light-mode .dashboard-filter-bar {
    background: var(--card-bg, #ffffff) !important;
    border: 1px solid var(--border-color, #cbd5e1) !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.04) !important;
    padding: 10px 12px !important;
    border-radius: 12px !important;
}

body.light-mode .dashboard-filter-input-wrap {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}

body.light-mode .dashboard-filter-input-wrap input {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #0f172a !important;
}

body.light-mode .dashboard-filter-right-wrap > div {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}

body.light-mode .dashboard-filter-right-wrap > div > span {
    color: #334155 !important;
}

body.light-mode .dashboard-filter-right-wrap select {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    color: #0f172a !important;
    font-weight: 700 !important;
}

/* 6. TABS, PILLS, BADGES & MODALS IN LIGHT MODE */
body.light-mode .tab-btn,
body.light-mode .api-tab-btn,
body.light-mode .spx-cookie-tab-btn,
body.light-mode .tiktok-tab-btn,
body.light-mode .dashboard-tab-btn {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
    font-weight: 600;
}

body.light-mode .tab-btn:hover,
body.light-mode .api-tab-btn:hover,
body.light-mode .spx-cookie-tab-btn:hover,
body.light-mode .tiktok-tab-btn:hover,
body.light-mode .dashboard-tab-btn:hover {
    background: #e2e8f0 !important;
    color: #0f172a !important;
}

body.light-mode .tab-btn.active,
body.light-mode .api-tab-btn.active,
body.light-mode .spx-cookie-tab-btn.active,
body.light-mode .tiktok-tab-btn.active,
body.light-mode .dashboard-tab-btn.active {
    background: linear-gradient(135deg, #2563eb, #1d4ed8) !important;
    border-color: #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}

body.light-mode .dashboard-tip-box,
body.light-mode .tiktok-tip-box,
body.light-mode .tiktok-guide-box {
    background: #fffbeb !important;
    border: 1px solid #fcd34d !important;
    color: #78350f !important;
}

body.light-mode .dashboard-tip-label,
body.light-mode .tiktok-tip-label,
body.light-mode .tiktok-guide-label {
    background: #fef3c7 !important;
    color: #b45309 !important;
    border-color: #f59e0b !important;
}

body.light-mode .ep-toolbar-btn {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #1e293b !important;
}

body.light-mode .ep-toolbar-btn:hover {
    background: #eff6ff !important;
    border-color: #60a5fa !important;
    color: #1d4ed8 !important;
}

body.light-mode .courier-chip,
body.light-mode .stat-pill,
body.light-mode .topup-mini-pill {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}

body.light-mode .quick-pkg-card {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
}

body.light-mode .quick-pkg-card .pkg-val {
    color: #0f172a !important;
}

body.light-mode .quick-pkg-card .pkg-coins {
    color: #0284c7 !important;
}

body.light-mode .quick-pkg-card .pkg-bonus {
    color: #059669 !important;
}

body.light-mode .vietqr-memo-box {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
}

body.light-mode .modal-overlay .modal-content,
body.light-mode #terms-popup-box {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18) !important;
}

body.light-mode .login-container {
    background: radial-gradient(circle at 50% 20%, rgba(37, 99, 235, 0.08), transparent 60%), #f1f5f9 !important;
}

body.light-mode .nexus-auth-wrapper,
body.light-mode .login-box {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08) !important;
}

body.light-mode .nexus-hero-panel {
    background: linear-gradient(145deg, #eff6ff 0%, #e0f2fe 100%) !important;
    border-right: 1px solid #bfdbfe !important;
    color: #0f172a !important;
}

body.light-mode .nexus-brand-title,
body.light-mode .nexus-form-header h2,
body.light-mode .nexus-feat-text strong {
    color: #0f172a !important;
}

body.light-mode .nexus-brand-subtitle,
body.light-mode .nexus-form-header p,
body.light-mode .nexus-feat-text p,
body.light-mode .nexus-input-group label {
    color: #334155 !important;
}

body.light-mode .nexus-feature-item {
    background: rgba(255, 255, 255, 0.85) !important;
    border: 1px solid #bfdbfe !important;
}

/* 7. UNIVERSAL HARMONIZER FOR INLINE DARK BACKGROUNDS & LIGHT TEXT IN LIGHT MODE */
body.light-mode [style*="background: rgba(15, 23, 42"],
body.light-mode [style*="background:rgba(15,23,42"],
body.light-mode [style*="background: rgba(9, 13, 22"],
body.light-mode [style*="background:rgba(9,13,22"],
body.light-mode [style*="background: rgba(2, 6, 23"],
body.light-mode [style*="background:rgba(2,6,23"],
body.light-mode [style*="background: rgba(6, 10, 19"],
body.light-mode [style*="background:rgba(6,10,19"],
body.light-mode [style*="background: rgba(10, 15, 30"],
body.light-mode [style*="background:rgba(10,15,30"],
body.light-mode [style*="background: rgba(17, 24, 39"],
body.light-mode [style*="background:rgba(17,24,39"],
body.light-mode [style*="background: rgba(30, 41, 59"],
body.light-mode [style*="background:rgba(30,41,59"],
body.light-mode [style*="background:#0f172a"],
body.light-mode [style*="background: #0f172a"],
body.light-mode [style*="background:#020617"],
body.light-mode [style*="background: #020617"],
body.light-mode [style*="background:#111827"],
body.light-mode [style*="background: #111827"],
body.light-mode [style*="background:#1e293b"],
body.light-mode [style*="background: #1e293b"],
body.light-mode [style*="background: linear-gradient(145deg, rgba(15, 23, 42"],
body.light-mode [style*="background:linear-gradient(145deg, rgba(15,23,42"],
body.light-mode [style*="background: linear-gradient(180deg, rgba(17, 24, 39"],
body.light-mode [style*="background:linear-gradient(180deg, rgba(6,78,59"] {
    background: var(--nexus-bg-elevated, #f8fafc) !important;
    border-color: var(--border-color, #cbd5e1) !important;
    color: var(--text-color, #0f172a) !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04) !important;
}

body.light-mode #tiktokMainAddOrderBox,
body.light-mode #trusted-shippers-sheet-wrap,
body.light-mode #hotmail-tab-oauth2 > .card,
body.light-mode #hotmail-tab-unlock > .card {
    background: var(--card-bg, #ffffff) !important;
    border-color: #93c5fd !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.07) !important;
}

body.light-mode [style*="color: #f8fafc"]:not(.btn):not(button):not(.badge),
body.light-mode [style*="color:#f8fafc"]:not(.btn):not(button):not(.badge),
body.light-mode [style*="color: #f1f5f9"]:not(.btn):not(button):not(.badge),
body.light-mode [style*="color:#f1f5f9"]:not(.btn):not(button):not(.badge),
body.light-mode [style*="color: #e2e8f0"]:not(.btn):not(button):not(.badge),
body.light-mode [style*="color:#e2e8f0"]:not(.btn):not(button):not(.badge),
body.light-mode [style*="color: #ecfdf5"]:not(.btn):not(button):not(.badge),
body.light-mode [style*="color:#ecfdf5"]:not(.btn):not(button):not(.badge),
body.light-mode [style*="color: #fff"]:not(.btn):not(button):not(.badge):not(.floating-eco-btn):not(.pkg-badge),
body.light-mode [style*="color:#fff"]:not(.btn):not(button):not(.badge):not(.floating-eco-btn):not(.pkg-badge) {
    color: var(--text-color, #0f172a) !important;
}

body.light-mode [style*="color: #cbd5e1"]:not(.btn):not(button),
body.light-mode [style*="color:#cbd5e1"]:not(.btn):not(button),
body.light-mode [style*="color: #94a3b8"]:not(.btn):not(button),
body.light-mode [style*="color:#94a3b8"]:not(.btn):not(button) {
    color: var(--text-secondary, #475569) !important;
}

body.light-mode [style*="color: #fde047"]:not(.btn):not(button),
body.light-mode [style*="color:#fde047"]:not(.btn):not(button),
body.light-mode [style*="color: #fef08a"]:not(.btn):not(button),
body.light-mode [style*="color:#fef08a"]:not(.btn):not(button),
body.light-mode [style*="color: #fde68a"]:not(.btn):not(button),
body.light-mode [style*="color:#fde68a"]:not(.btn):not(button),
body.light-mode [style*="color: #fcd34d"]:not(.btn):not(button),
body.light-mode [style*="color:#fcd34d"]:not(.btn):not(button),
body.light-mode [style*="color: #fbbf24"]:not(.btn):not(button),
body.light-mode [style*="color:#fbbf24"]:not(.btn):not(button) {
    color: #b45309 !important;
}

body.light-mode [style*="color: #a7f3d0"]:not(.btn):not(button),
body.light-mode [style*="color:#a7f3d0"]:not(.btn):not(button),
body.light-mode [style*="color: #6ee7b7"]:not(.btn):not(button),
body.light-mode [style*="color:#6ee7b7"]:not(.btn):not(button),
body.light-mode [style*="color: #34d399"]:not(.btn):not(button),
body.light-mode [style*="color:#34d399"]:not(.btn):not(button) {
    color: #047857 !important;
}

body.light-mode [style*="color: #7dd3fc"]:not(.btn):not(button),
body.light-mode [style*="color:#7dd3fc"]:not(.btn):not(button),
body.light-mode [style*="color: #38bdf8"]:not(.btn):not(button),
body.light-mode [style*="color:#38bdf8"]:not(.btn):not(button),
body.light-mode [style*="color: #93c5fd"]:not(.btn):not(button),
body.light-mode [style*="color:#93c5fd"]:not(.btn):not(button) {
    color: #0369a1 !important;
}

body.light-mode [style*="color: #e9d5ff"]:not(.btn):not(button),
body.light-mode [style*="color:#e9d5ff"]:not(.btn):not(button),
body.light-mode [style*="color: #d8b4fe"]:not(.btn):not(button),
body.light-mode [style*="color:#d8b4fe"]:not(.btn):not(button),
body.light-mode [style*="color: #c084fc"]:not(.btn):not(button),
body.light-mode [style*="color:#c084fc"]:not(.btn):not(button),
body.light-mode [style*="color: #a5b4fc"]:not(.btn):not(button),
body.light-mode [style*="color:#a5b4fc"]:not(.btn):not(button) {
    color: #6d28d9 !important;
}

body.light-mode [style*="color: #fca5a5"]:not(.btn):not(button),
body.light-mode [style*="color:#fca5a5"]:not(.btn):not(button),
body.light-mode [style*="color: #f87171"]:not(.btn):not(button),
body.light-mode [style*="color:#f87171"]:not(.btn):not(button) {
    color: #dc2626 !important;
}

/* ==========================================================================
   EXPERIENCE MODES FOR FAMILIAR / PRO USERS (v9.6.1)
   1. ⚡ Quen Thuộc (body.ui-familiar): Ẩn toàn bộ hướng dẫn, mẹo, ghi chú rườm rà
   2. 🔥 Siêu Gọn Pro (body.ui-ultra): Ẩn hướng dẫn + Thu gọn KPI & bảng dữ liệu
   ========================================================================== */
body.ui-familiar .dashboard-tip-box,
body.ui-familiar .tiktok-tip-box,
body.ui-familiar .tiktok-guide-box,
body.ui-familiar #hm-customer-guide-body,
body.ui-familiar #btn-hm-toggle-guide,
body.ui-familiar #tiktokCreateAddressTips,
body.ui-familiar #tiktokChangeAddressTips,
body.ui-familiar #tiktokPaymentGuideBox,
body.ui-familiar #tiktokCookieLiveCountBadge,
body.ui-familiar #tiktokCreateAddrLiveBadge,
body.ui-familiar #tiktokChangeAddrLiveBadge,
body.ui-familiar #tiktokCookieBtnSubText,
body.ui-familiar [data-ui-guide-note="1"] {
    display: none !important;
}

/* Ẩn dòng promo/mẹo bên trái thanh tiện ích TikTok nhưng giữ nguyên các checkbox & nút Xuất Report bên phải */
body.ui-familiar #tiktokTrackCookiePromoBanner > div:first-child {
    display: none !important;
}
body.ui-familiar #tiktokTrackCookiePromoBanner {
    justify-content: flex-end !important;
    padding: 5px 10px !important;
}

/* Rút gọn chiều cao các ô nhập lớn khi ở chế độ Quen Thuộc để đẩy bảng dữ liệu lên cao */
body.ui-familiar #tiktokEmailPassInput,
body.ui-familiar #hm-oauth-accounts,
body.ui-familiar #quickInput {
    min-height: 82px !important;
    height: 82px !important;
}
body.ui-familiar #tiktokEmailPassCreateBtn,
body.ui-familiar #btn-hm-oauth-start {
    min-height: 82px !important;
    padding: 8px 16px !important;
}

/* Chế độ 🔥 Siêu Gọn Pro (body.ui-ultra) */
body.ui-ultra .stats-grid {
    gap: 8px !important;
    margin-bottom: 10px !important;
}
body.ui-ultra .stat-card {
    padding: 8px 12px !important;
    border-radius: 10px !important;
}
body.ui-ultra .stat-card .stat-title {
    font-size: 0.7rem !important;
    margin-bottom: 2px !important;
}
body.ui-ultra .stat-card .stat-value {
    font-size: 1.08rem !important;
}
body.ui-ultra table th,
body.ui-ultra table td,
body.ui-ultra .dashboard-orders-table th,
body.ui-ultra .dashboard-orders-table td,
body.ui-ultra .tiktok-cookie-table th,
body.ui-ultra .tiktok-cookie-table td {
    padding-top: 5px !important;
    padding-bottom: 5px !important;
    font-size: 0.79rem !important;
}

/* ==========================================================================
   UI EXPERIENCE STUDIO POPOVER & QUICK SWITCHER (v9.6.1)
   ========================================================================== */
.ui-prefs-popover-backdrop {
    position: fixed;
    inset: 0;
    z-index: 100040;
    background: rgba(2, 6, 23, 0.35);
    backdrop-filter: blur(2px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    animation: uiFadeIn 0.16s ease-out;
}
@keyframes uiFadeIn {
    from { opacity: 0; transform: scale(0.97); }
    to { opacity: 1; transform: scale(1); }
}
.ui-prefs-popover-card {
    width: 100%;
    max-width: 480px;
    border-radius: 16px;
    background: #0f172a;
    border: 1px solid rgba(56, 189, 248, 0.35);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.65);
    color: #f8fafc;
    overflow: hidden;
    font-family: 'Inter', -apple-system, sans-serif;
}
body.light-mode .ui-prefs-popover-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18) !important;
    color: #0f172a !important;
}
.ui-prefs-header {
    padding: 14px 18px;
    background: linear-gradient(90deg, rgba(37, 99, 235, 0.16), rgba(14, 165, 233, 0.06), transparent);
    border-bottom: 1px solid rgba(148, 163, 184, 0.18);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
body.light-mode .ui-prefs-header {
    background: linear-gradient(90deg, #eff6ff, #f8fafc) !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
.ui-prefs-body {
    padding: 16px 18px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.ui-prefs-section-title {
    font-size: 0.76rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #94a3b8;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}
body.light-mode .ui-prefs-section-title {
    color: #475569 !important;
}
.ui-theme-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}
.ui-theme-option-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 11px;
    border: 1.5px solid rgba(148, 163, 184, 0.22);
    background: rgba(30, 41, 59, 0.55);
    color: #f1f5f9;
    cursor: pointer;
    text-align: left;
    transition: all 0.18s ease;
    position: relative;
}
body.light-mode .ui-theme-option-btn {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
.ui-theme-option-btn:hover {
    border-color: #38bdf8;
    transform: translateY(-1px);
}
.ui-theme-option-btn.active {
    border-color: #3b82f6 !important;
    background: rgba(37, 99, 235, 0.18) !important;
    box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.22) !important;
}
body.light-mode .ui-theme-option-btn.active {
    background: #eff6ff !important;
    border-color: #2563eb !important;
}
.ui-theme-swatch {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    flex-shrink: 0;
    border: 1px solid rgba(255, 255, 255, 0.15);
}
.ui-mode-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.ui-mode-option-btn {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 11px;
    border: 1.5px solid rgba(148, 163, 184, 0.22);
    background: rgba(30, 41, 59, 0.55);
    color: #f1f5f9;
    cursor: pointer;
    text-align: left;
    transition: all 0.18s ease;
}
body.light-mode .ui-mode-option-btn {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}
.ui-mode-option-btn:hover {
    border-color: #10b981;
}
.ui-mode-option-btn.active {
    border-color: #10b981 !important;
    background: rgba(16, 185, 129, 0.14) !important;
    box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2) !important;
}
body.light-mode .ui-mode-option-btn.active {
    background: #ecfdf5 !important;
    border-color: #059669 !important;
}
.ui-prefs-footer {
    padding: 10px 18px;
    background: rgba(2, 6, 23, 0.45);
    border-top: 1px solid rgba(148, 163, 184, 0.16);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    font-size: 0.74rem;
    color: #94a3b8;
}
body.light-mode .ui-prefs-footer {
    background: #f8fafc !important;
    border-top: 1px solid #e2e8f0 !important;
    color: #475569 !important;
}

/* ============================================================================
   19. BỔ SUNG ĐỒNG BỘ CÁC MODULE NHÚNG STYLE RIÊNG (WEB-GUIDE, TOPUP, TOOLS, API, STATS, POPUP)
   ============================================================================ */

/* A. Thanh hướng dẫn đầu trang (web-guide-ai.min.js) & Nút Hỗ Trợ AI */
body.light-mode #wg-page-top-strip,
body.light-mode .wg-page-top-strip {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06) !important;
    color: #0f172a !important;
}
body.light-mode #wg-page-top-strip *,
body.light-mode .wg-page-top-strip * {
    color: #334155;
}
body.light-mode #wg-page-top-strip b,
body.light-mode #wg-page-top-strip strong,
body.light-mode .wg-page-top-strip .wg-strip-title {
    color: #2563eb !important;
}
body.light-mode .wg-mini-btn,
body.light-mode #wg-strip-run-tour {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}
body.light-mode .wg-mini-btn:hover,
body.light-mode #wg-strip-run-tour:hover {
    background: #eff6ff !important;
    border-color: #2563eb !important;
    color: #2563eb !important;
}
body.light-mode #floatingEcoTrigger,
body.light-mode .floating-eco-trigger {
    background: linear-gradient(135deg, #2563eb 0%, #0284c7 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(37, 99, 235, 0.5) !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.3) !important;
}
body.light-mode #floatingEcoTrigger *,
body.light-mode .floating-eco-trigger * {
    color: #ffffff !important;
}

/* Chế độ Quen Thuộc / Siêu Gọn: Tự động ẩn thanh hướng dẫn đầu trang & 3 bước phụ */
body.ui-familiar #wg-page-top-strip,
body.ui-familiar .wg-page-top-strip,
body.ui-familiar .token-steps-grid {
    display: none !important;
}

/* B. Trang Nạp Coin VietQR (topup.html) */
body.light-mode .topup-col-left,
body.light-mode .topup-col-right {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
    color: #0f172a !important;
}
body.light-mode .pkg-btn-card {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}
body.light-mode .pkg-btn-card:hover {
    background: #ffffff !important;
    border-color: #2563eb !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.12) !important;
}
body.light-mode .pkg-btn-card.selected {
    background: #eff6ff !important;
    border-color: #2563eb !important;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2) !important;
}

/* C. Trang Tiện Ích MMO & GET OTP PRO (tools.html) */
body.light-mode .tools-nav-tabs {
    border-bottom-color: #cbd5e1 !important;
}
body.light-mode .tools-tab-btn {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}
body.light-mode .tools-tab-btn:hover {
    background: #f1f5f9 !important;
    color: #0f172a !important;
}
body.light-mode .tools-tab-btn.active {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25) !important;
}
body.light-mode .tools-tab-btn.active * {
    color: #ffffff !important;
}
body.light-mode .pro-control-panel,
body.light-mode #pro-quota-badge-wrap {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
    color: #0f172a !important;
}
body.light-mode .pro-config-label {
    color: #334155 !important;
}
body.light-mode .pro-config-select,
body.light-mode .pro-config-input,
body.light-mode .pro-note-input,
body.light-mode .tools-page .form-control {
    background: #ffffff !important;
    border: 1px solid #94a3b8 !important;
    color: #0f172a !important;
}
body.light-mode .pro-table-wrapper {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
}
body.light-mode .pro-table {
    color: #0f172a !important;
}
body.light-mode .pro-table thead th {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-bottom: 1px solid #cbd5e1 !important;
}
body.light-mode .pro-table tbody tr {
    border-bottom: 1px solid #e2e8f0 !important;
    background: #ffffff !important;
}
body.light-mode .pro-table tbody tr:hover {
    background: #f8fafc !important;
}
body.light-mode .pro-table td {
    border-bottom: 1px solid #e2e8f0 !important;
    color: #0f172a !important;
}
body.light-mode .pro-export-menu,
body.light-mode .pro-modal-dialog,
body.light-mode .mailbox-modal-dialog,
body.light-mode .tool-card {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08) !important;
    color: #0f172a !important;
}
body.light-mode .pro-export-item {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #0f172a !important;
}
body.light-mode .pro-export-item:hover {
    background: #eff6ff !important;
    border-color: #2563eb !important;
}
body.light-mode .mailbox-table-box {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}
body.light-mode .mailbox-table th {
    background: #f1f5f9 !important;
    color: #334155 !important;
}
body.light-mode .mailbox-table td {
    color: #0f172a !important;
    border-bottom-color: #e2e8f0 !important;
}
body.light-mode .mailbox-footer-status,
body.light-mode .pro-modal-header,
body.light-mode .pro-modal-footer {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
    color: #334155 !important;
}
body.light-mode .pro-modal-title {
    color: #0f172a !important;
}

/* D. Trang API & Kết Nối Tool (api.html) */
body.light-mode .simple-api-card,
body.light-mode .dev-docs-banner {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
    color: #0f172a !important;
}
body.light-mode .simple-api-title,
body.light-mode .token-step-title {
    color: #0f172a !important;
}
body.light-mode .simple-api-sub,
body.light-mode .token-box-label,
body.light-mode .token-step-desc,
body.light-mode .token-meta-bar {
    color: #334155 !important;
    border-color: #cbd5e1 !important;
}
body.light-mode .token-field-wrap {
    background: #f8fafc !important;
    border: 1.5px solid #f59e0b !important;
}
body.light-mode .token-field-input {
    color: #b45309 !important;
}
body.light-mode .btn-eye-toggle {
    background: #f1f5f9 !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}
body.light-mode .token-step-box {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
}
body.light-mode .btn-open-dev-docs {
    background: #eef2ff !important;
    border: 1px solid #818cf8 !important;
    color: #4338ca !important;
}

/* E. Trang Báo Cáo Thống Kê (stats.min.js) */
body.light-mode .stats-pro-header,
body.light-mode .stats-filter-bar,
body.light-mode .stats-toolbar-card,
body.light-mode .stats-kpi-card,
body.light-mode .stats-panel,
body.light-mode .stats-modal-box {
    background: #ffffff !important;
    border: 1px solid #cbd5e1 !important;
    box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05) !important;
    color: #0f172a !important;
}
body.light-mode .stats-pro-title,
body.light-mode .stats-kpi-value,
body.light-mode .stats-panel-title,
body.light-mode .stats-bar-top-val {
    color: #0f172a !important;
}
body.light-mode .stats-pro-subtitle,
body.light-mode .stats-bar-date,
body.light-mode .stats-legend-row,
body.light-mode .stats-filter-group {
    color: #334155 !important;
}
body.light-mode .stats-preset-btn,
body.light-mode .stats-chart-tab,
body.light-mode .stats-btn {
    background: #f8fafc !important;
    border: 1px solid #cbd5e1 !important;
    color: #334155 !important;
}
body.light-mode .stats-btn-primary {
    background: #2563eb !important;
    border-color: #2563eb !important;
    color: #ffffff !important;
}
body.light-mode .stats-btn-primary * {
    color: #ffffff !important;
}
body.light-mode .stats-btn-excel {
    background: #059669 !important;
    border-color: #059669 !important;
    color: #ffffff !important;
}
body.light-mode .stats-btn-excel * {
    color: #ffffff !important;
}
body.light-mode .stats-preset-btn.active,
body.light-mode .stats-chart-tab.active {
    background: #eff6ff !important;
    border-color: #2563eb !important;
    color: #2563eb !important;
    font-weight: 700 !important;
}
body.light-mode .stats-input,
body.light-mode .stats-select {
    background: #ffffff !important;
    border: 1px solid #94a3b8 !important;
    color: #0f172a !important;
}
body.light-mode .stats-bar-stack,
body.light-mode .stats-progress-track {
    background: #e2e8f0 !important;
}
body.light-mode .stats-pro-table th,
body.light-mode .stats-modal-head {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-bottom: 1px solid #cbd5e1 !important;
}
body.light-mode .stats-pro-table td {
    color: #0f172a !important;
    border-bottom: 1px solid #e2e8f0 !important;
}
body.light-mode .stats-pro-table tfoot td {
    background: #f8fafc !important;
    color: #0f172a !important;
}
body.light-mode .stats-badge-total {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
}

/* F. Modal Cảnh Báo Đơn Chờ Thanh Toán Gấp (#urgent-payment-alert-modal) */
body.light-mode #urgent-payment-alert-modal > div {
    background: #ffffff !important;
    border-color: #ea580c !important;
    box-shadow: 0 25px 60px rgba(15, 23, 42, 0.25) !important;
}
body.light-mode #urgent-payment-alert-modal > div > div:first-child * {
    color: #ffffff !important;
}
body.light-mode #urgent-payment-alert-modal > div > div:first-child > span {
    background: #fef08a !important;
    color: #9a3412 !important;
}
body.light-mode #urgent-payment-alert-modal [style*="color:#fecaca"],
body.light-mode #urgent-payment-alert-modal [style*="color: #fecaca"] {
    color: #991b1b !important;
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
}
body.light-mode #urgent-payment-alert-modal [style*="color:#fde047"] {
    color: #b45309 !important;
}



