        body { background-color: #f8f9fa; }
        .login-container { max-width: 400px; margin: 100px auto; }
        .hidden { display: none !important; }
        
        [data-bs-theme] .cf-proxy-switch .form-check-input:checked {
            background-color: #f6821f !important;
            border-color: #f6821f !important;
            box-shadow: 0 0 12px rgba(246, 130, 31, 0.6) !important;
        }
        
        .copy-group { position: relative; }
        .copy-group .btn-copy { 
            position: absolute; right: 0; top: 0; height: 100%; border-radius: 0 4px 4px 0; 
        }
    
        
        /* Custom Themes */
        html[data-bs-theme="neon"] body {
            background-color: #0f141e !important; /* Force overall page background */
            color: #e2e8f0 !important;
            font-family: 'Inter', 'Roboto', sans-serif;
        }
        [data-bs-theme="neon"] {
            --bs-body-bg: #0f141e;
            --bs-body-color: #e2e8f0;
            --bs-primary: #00d2ff;
            --bs-primary-rgb: 0, 210, 255;
            --bs-border-color: rgba(0, 210, 255, 0.15);
        }
        [data-bs-theme="neon"] .bg-light, [data-bs-theme="neon"] .bg-white {
            background-color: #1b2336 !important;
            color: #e2e8f0 !important;
        }
        [data-bs-theme="neon"] .bg-dark {
            background-color: #0b0f17 !important;
            color: #00d2ff !important;
            border-bottom: 1px solid rgba(0, 210, 255, 0.2);
        }
        [data-bs-theme="neon"] .text-muted {
            color: #94a3b8 !important;
        }
        [data-bs-theme="neon"] .text-dark,
        [data-bs-theme="neon"] .bg-info.text-dark,
        [data-bs-theme="neon"] .btn-info.text-dark,
        [data-bs-theme="neon"] .helpdesk-nav-pill.active {
            color: #021124 !important;
            font-weight: 700;
        }
        [data-bs-theme="neon"] .navbar {
            background: #1b2336 !important;
            box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
            border-bottom: 1px solid rgba(0, 210, 255, 0.2);
        }
        [data-bs-theme="neon"] .card, [data-bs-theme="neon"] .modal-content {
            background-color: #1b2336 !important;
            border-radius: 20px;
            border: 1px solid rgba(0, 210, 255, 0.15);
            box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.6), -8px -8px 16px rgba(255, 255, 255, 0.02), inset 0 0 0 transparent;
            transition: all 0.3s ease-in-out;
            color: #e2e8f0;
        }
        [data-bs-theme="neon"] .card:hover {
            box-shadow: 8px 8px 16px rgba(0, 0, 0, 0.6), -8px -8px 16px rgba(255, 255, 255, 0.02), 0 0 15px rgba(0, 210, 255, 0.3);
            border: 1px solid rgba(0, 210, 255, 0.4);
        }
        [data-bs-theme="neon"] .nav-tabs {
            border-bottom: 1px solid rgba(0, 210, 255, 0.2);
        }
        [data-bs-theme="neon"] .nav-tabs .nav-link {
            color: #a0aec0;
            border: none;
        }
        [data-bs-theme="neon"] .nav-tabs .nav-link:hover {
            color: #00d2ff;
            border: none;
        }
        [data-bs-theme="neon"] .nav-tabs .nav-link.active {
            background-color: #1b2336 !important;
            color: #00d2ff !important;
            border: 1px solid rgba(0, 210, 255, 0.3);
            border-bottom: 1px solid #1b2336;
            box-shadow: 0 -4px 10px rgba(0, 210, 255, 0.1);
        }
        [data-bs-theme="neon"] .form-control, [data-bs-theme="neon"] .form-select {
            background-color: #121826;
            border: 1px solid rgba(255,255,255,0.1);
            color: #e2e8f0;
            border-radius: 10px;
            box-shadow: inset 3px 3px 6px rgba(0,0,0,0.4), inset -3px -3px 6px rgba(255,255,255,0.02);
        }
        [data-bs-theme="neon"] .form-control::placeholder, [data-bs-theme="neon"] .form-select::placeholder {
            color: rgba(255, 255, 255, 0.4);
            opacity: 1;
        }
        [data-bs-theme="neon"] .form-control:focus, [data-bs-theme="neon"] .form-select:focus {
            border-color: #00d2ff;
            box-shadow: 0 0 8px rgba(0, 210, 255, 0.5);
            background-color: #121826;
            color: #fff;
        }
        [data-bs-theme="neon"] .btn-primary, [data-bs-theme="neon"] .btn-info {
            background: linear-gradient(45deg, #0284c7, #00d2ff);
            border: none;
            border-radius: 12px;
            color: #fff;
            box-shadow: 0 4px 15px rgba(0, 210, 255, 0.3);
        }
        [data-bs-theme="neon"] .btn-primary:hover, [data-bs-theme="neon"] .btn-info:hover {
            background: linear-gradient(45deg, #00d2ff, #0284c7);
            box-shadow: 0 6px 20px rgba(0, 210, 255, 0.6);
            color: #fff;
        }
        [data-bs-theme="neon"] .btn-success {
            background: linear-gradient(45deg, #059669, #10b981);
            border: none;
            box-shadow: 0 4px 15px rgba(16, 185, 129, 0.3);
            color: #fff;
        }
        [data-bs-theme="neon"] .btn-success:hover {
            background: linear-gradient(45deg, #10b981, #059669);
            box-shadow: 0 6px 20px rgba(16, 185, 129, 0.6);
            transform: translateY(-2px);
            color: #fff;
        }
        [data-bs-theme="neon"] .btn-secondary, [data-bs-theme="neon"] .btn-outline-light {
            background-color: #1f2937;
            border: 1px solid rgba(255,255,255,0.1);
            color: #e2e8f0;
        }
        [data-bs-theme="neon"] .btn-secondary:hover, [data-bs-theme="neon"] .btn-outline-light:hover {
            background-color: #374151;
            color: #fff;
        }
        [data-bs-theme="neon"] .badge {
            font-size: 0.85rem;
            padding: 0.5em 0.8em;
            border-radius: 8px;
            font-weight: 600 !important;
            color: #fff !important;
            border: none !important;
        }
        [data-bs-theme="neon"] .badge.bg-primary, [data-bs-theme="neon"] .badge.bg-info {
            background: linear-gradient(45deg, #0284c7, #00d2ff) !important;
            box-shadow: 0 4px 10px rgba(0, 210, 255, 0.4);
        }
        [data-bs-theme="neon"] .badge.bg-success {
            background: linear-gradient(45deg, #059669, #10b981) !important;
            box-shadow: 0 4px 10px rgba(16, 185, 129, 0.4);
        }
        [data-bs-theme="neon"] .badge.bg-warning, [data-bs-theme="neon"] .badge.text-bg-warning {
            background: linear-gradient(45deg, #d97706, #f59e0b) !important;
            box-shadow: 0 4px 10px rgba(245, 158, 11, 0.4);
        }
        [data-bs-theme="neon"] .badge.bg-danger {
            background: linear-gradient(45deg, #be123c, #f43f5e) !important;
            box-shadow: 0 4px 10px rgba(244, 63, 94, 0.4);
        }
        [data-bs-theme="neon"] .badge.bg-secondary {
            background: linear-gradient(45deg, #374151, #6b7280) !important;
            box-shadow: 0 4px 10px rgba(107, 114, 128, 0.4);
        }
        
        /* CÔNG TẮC BẬT/TẮT (TOGGLES) TRONG NEON THEME */
        [data-bs-theme="neon"] .form-switch .form-check-input {
            width: 3em;
            height: 1.5em;
            margin-top: 0;
            background-color: #1f2937;
            border: 1px solid rgba(255, 255, 255, 0.2);
            cursor: pointer;
            box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
            transition: all 0.3s ease;
        }
        /* Công tắc khi đang tắt (Off) - Tăng độ sáng để không bị chìm */
        [data-bs-theme="neon"] .form-check-input:not(:checked) {
            background-color: #374151;
            border-color: rgba(255, 255, 255, 0.3);
        }
        /* Công tắc mặc định khi bật (On) - Màu Cyan Neon */
        [data-bs-theme="neon"] .form-switch .form-check-input:checked {
            background-color: #00d2ff;
            border-color: #00d2ff;
            box-shadow: 0 0 12px rgba(0, 210, 255, 0.6);
        }

        [data-bs-theme="neon"] .btn-dark {
            background-color: #0b0f17;
            border: 1px solid rgba(0, 210, 255, 0.3);
            color: #00d2ff;
        }
        [data-bs-theme="neon"] .btn-dark:hover {
            background-color: rgba(0, 210, 255, 0.1);
            color: #fff;
            box-shadow: 0 0 10px rgba(0, 210, 255, 0.3);
        }
        [data-bs-theme="neon"] .text-primary, [data-bs-theme="neon"] h1, [data-bs-theme="neon"] h2, [data-bs-theme="neon"] h3, [data-bs-theme="neon"] h4, [data-bs-theme="neon"] h5, [data-bs-theme="neon"] h6, [data-bs-theme="neon"] .navbar-brand {
            color: #00d2ff !important;
            text-shadow: 0 0 8px rgba(0, 210, 255, 0.4);
        }
        [data-bs-theme="neon"] .table, [data-bs-theme="neon"] .table-dark {
            --bs-table-bg: transparent;
            color: #e2e8f0;
            border-color: rgba(0, 210, 255, 0.1);
        }
        [data-bs-theme="neon"] .table th {
            background-color: rgba(0, 210, 255, 0.05) !important;
            color: #00d2ff !important;
            border-bottom: 1px solid rgba(0, 210, 255, 0.3);
        }
        [data-bs-theme="neon"] .table td {
            background-color: transparent !important;
            color: #e2e8f0 !important;
            vertical-align: middle;
        }
        [data-bs-theme="neon"] .table-striped>tbody>tr:nth-of-type(odd)>* {
            background-color: rgba(255, 255, 255, 0.02) !important;
            color: #e2e8f0;
        }
        [data-bs-theme="neon"] .table-hover>tbody>tr:hover>* {
            color: #fff !important;
            background-color: rgba(0, 210, 255, 0.1) !important;
        }
        [data-bs-theme="neon"] .dropdown-menu {
            background-color: #1b2336;
            border: 1px solid rgba(0, 210, 255, 0.2);
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.8);
        }
        [data-bs-theme="neon"] .dropdown-item {
            color: #e2e8f0;
        }
        [data-bs-theme="neon"] .dropdown-item:hover {
            background-color: rgba(0, 210, 255, 0.1);
            color: #00d2ff;
        }

        [data-bs-theme="orange"] {
            --bs-primary: #fd7e14;
            --bs-primary-rgb: 253, 126, 20;
            --bs-body-bg: #fffaf0;
            --bs-body-color: #212529;
            --bs-navbar-active-color: #fff;
        }
        [data-bs-theme="orange"] .bg-primary { background-color: #fd7e14 !important; }
        [data-bs-theme="orange"] .text-primary { color: #fd7e14 !important; }
        [data-bs-theme="orange"] .btn-primary { background-color: #fd7e14; border-color: #fd7e14; color: white;}
        [data-bs-theme="orange"] .btn-primary:hover { background-color: #e37112; border-color: #e37112; }
        
        [data-bs-theme="red"] {
            --bs-primary: #dc3545;
            --bs-primary-rgb: 220, 53, 69;
            --bs-body-bg: #fff5f5;
            --bs-body-color: #212529;
            --bs-navbar-active-color: #fff;
        }
        [data-bs-theme="red"] .bg-primary { background-color: #dc3545 !important; }
        [data-bs-theme="red"] .text-primary { color: #dc3545 !important; }
        [data-bs-theme="red"] .btn-primary { background-color: #dc3545; border-color: #dc3545; color: white;}
        [data-bs-theme="red"] .btn-primary:hover { background-color: #c82333; border-color: #bd2130; }


/* NProgress Custom CSS */
#nprogress .bar { background: #0dcaf0 !important; height: 3px !important; }
#nprogress .peg { box-shadow: 0 0 10px #0dcaf0, 0 0 5px #0dcaf0 !important; }
#nprogress .spinner-icon { border-top-color: #0dcaf0 !important; border-left-color: #0dcaf0 !important; }

/* Skeleton Loaders */
.skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.05) 25%, rgba(255,255,255,0.12) 50%, rgba(255,255,255,0.05) 75%);
    background-size: 200% 100%;
    animation: skeleton-shimmer 1.5s infinite;
    border-radius: 6px;
    display: inline-block;
}
@keyframes skeleton-shimmer {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* Toast Floating Notifications */
.toast-floating-container {
    position: fixed;
    top: 24px;
    right: 24px;
    z-index: 99999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.toast-floating-item {
    pointer-events: auto;
    min-width: 280px;
    max-width: 400px;
    padding: 12px 18px;
    border-radius: 10px;
    backdrop-filter: blur(12px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
    display: flex;
    align-items: center;
    gap: 12px;
    animation: toastSlideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.12);
    font-size: 0.9rem;
    font-weight: 500;
}
.toast-floating-item.toast-success {
    background: rgba(16, 185, 129, 0.92);
    color: #ffffff;
    border-color: rgba(52, 211, 153, 0.5);
}
.toast-floating-item.toast-error {
    background: rgba(239, 68, 68, 0.92);
    color: #ffffff;
    border-color: rgba(248, 113, 113, 0.5);
}
.toast-floating-item.toast-info {
    background: rgba(14, 165, 233, 0.92);
    color: #ffffff;
    border-color: rgba(56, 189, 248, 0.5);
}
.toast-floating-item.toast-fadeout {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
}
@keyframes toastSlideIn {
    from {
        opacity: 0;
        transform: translateX(40px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateX(0) scale(1);
    }
}

.hover-underline:hover {
    text-decoration: underline !important;
}
.hover-glow-info:hover {
    box-shadow: 0 0 12px rgba(14, 165, 233, 0.5) !important;
    color: #38bdf8 !important;
    border-color: #38bdf8 !important;
}
.transition-all {
    transition: all 0.2s ease-in-out;
}

.swal2-container {
    z-index: 99999 !important;
}

/* Modern Cyberpunk Modal & Control Helpers */
.text-cyan { color: #00e5ff !important; }
.border-cyan { border-color: #00e5ff !important; }
.focus-cyan:focus {
    border-color: #00e5ff !important;
    box-shadow: 0 0 0 0.25rem rgba(0, 229, 255, 0.22) !important;
    background-color: rgba(15, 23, 42, 0.85) !important;
    color: #ffffff !important;
}
.hover-glow-cyan:hover {
    border-color: #00e5ff !important;
    box-shadow: 0 0 12px rgba(0, 229, 255, 0.35) !important;
    transition: all 0.2s ease;
}
.hover-scale {
    transition: transform 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.hover-scale:hover {
    transform: scale(1.02);
}
.cursor-pointer {
    cursor: pointer !important;
}
.custom-modal-scroll::-webkit-scrollbar {
    width: 6px;
}
.custom-modal-scroll::-webkit-scrollbar-track {
    background: rgba(15, 23, 42, 0.6);
    border-radius: 8px;
}
.custom-modal-scroll::-webkit-scrollbar-thumb {
    background: rgba(0, 229, 255, 0.35);
    border-radius: 8px;
}
.custom-modal-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 229, 255, 0.7);
}
.custom-modal-scroll {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 229, 255, 0.35) rgba(15, 23, 42, 0.6);
}

/* =========================================================
   DARK SELECT & OPTIONS STYLING (FIX WHITE-ON-WHITE DROPDOWNS)
   ========================================================= */
select,
.form-select,
.form-control select {
    background-color: #0f172a !important;
    color: #f8fafc !important;
}

select option,
.form-select option,
.form-control option,
optgroup {
    background-color: #0f172a !important;
    color: #f8fafc !important;
    padding: 10px 14px !important;
}

select option:checked,
.form-select option:checked,
select option:hover,
.form-select option:hover {
    background-color: #0284c7 !important;
    color: #ffffff !important;
}

/* =========================================================
   HELP DESK & MODAL NAVIGATION PILLS (HIGH CONTRAST)
   ========================================================= */
.helpdesk-nav-pill {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid transparent;
    font-size: 0.88rem !important;
    letter-spacing: 0.2px;
}

.helpdesk-nav-pill.active {
    background: linear-gradient(135deg, #38bdf8 0%, #00d2ff 100%) !important;
    color: #031326 !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(0, 210, 255, 0.45) !important;
    border-color: #38bdf8 !important;
}

.helpdesk-nav-pill.active i,
.helpdesk-nav-pill.active span {
    color: #031326 !important;
}

.helpdesk-nav-pill:not(.active) {
    color: #cbd5e1 !important;
    background-color: rgba(255, 255, 255, 0.06) !important;
    border-color: rgba(255, 255, 255, 0.12) !important;
}

.helpdesk-nav-pill:not(.active):hover {
    color: #ffffff !important;
    background-color: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.25) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* =========================================================
   MOBILE CONTROL CENTER SHEET (NAVBAR UPGRADE)
   ========================================================= */
.mobile-control-sheet {
    background: linear-gradient(180deg, #131b2e 0%, #0b0f19 100%);
    border: 1px solid rgba(0, 210, 255, 0.2);
    border-radius: 20px;
    padding: 16px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.6);
    margin-top: 12px;
}

.user-profile-summary-card {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 14px;
    padding: 12px 14px;
    transition: all 0.2s ease;
}
.user-profile-summary-card:hover {
    background: rgba(255, 255, 255, 0.07);
    border-color: rgba(0, 210, 255, 0.3);
}

.quick-action-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.quick-action-card {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    padding: 12px 14px;
    border-radius: 14px;
    text-decoration: none;
    border: 1px solid transparent;
    transition: all 0.2s ease;
    min-height: 76px;
    position: relative;
    cursor: pointer;
    overflow: hidden;
    background-color: transparent;
    text-align: left;
    width: 100%;
}
.quick-action-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
}

/* Card Themes */
.card-theme-upgrade {
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.15) 0%, rgba(217, 119, 6, 0.25) 100%);
    border-color: rgba(245, 158, 11, 0.35);
    color: #fcd34d !important;
}
.card-theme-upgrade:hover {
    border-color: #f59e0b;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.3);
}

.card-theme-admin {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(185, 28, 28, 0.25) 100%);
    border-color: rgba(239, 68, 68, 0.35);
    color: #fca5a5 !important;
}
.card-theme-admin:hover {
    border-color: #ef4444;
    box-shadow: 0 0 15px rgba(239, 68, 68, 0.3);
}

.card-theme-dashboard {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.25) 100%);
    border-color: rgba(16, 185, 129, 0.35);
    color: #6ee7b7 !important;
}
.card-theme-dashboard:hover {
    border-color: #10b981;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.3);
}

.card-theme-guide {
    background: linear-gradient(135deg, rgba(14, 165, 233, 0.15) 0%, rgba(2, 132, 199, 0.25) 100%);
    border-color: rgba(14, 165, 233, 0.35);
    color: #7dd3fc !important;
}
.card-theme-guide:hover {
    border-color: #0ea5e9;
    box-shadow: 0 0 15px rgba(14, 165, 233, 0.3);
}

.card-theme-support {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.15) 0%, rgba(79, 70, 229, 0.25) 100%);
    border-color: rgba(99, 102, 241, 0.35);
    color: #a5b4fc !important;
}
.card-theme-support:hover {
    border-color: #6366f1;
    box-shadow: 0 0 15px rgba(99, 102, 241, 0.3);
}

.sys-pref-box {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 14px;
    padding: 12px 14px;
}

/* =========================================================
   ADMIN CP TABS HORIZONTAL SCROLLBAR & SEAMLESS TABS
   ========================================================= */
#adminTabs {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 210, 255, 0.3) transparent;
}
#adminTabs::-webkit-scrollbar {
    height: 4px;
}
#adminTabs::-webkit-scrollbar-thumb {
    background: rgba(0, 210, 255, 0.3);
    border-radius: 4px;
}
#adminTabs .nav-item {
    flex-shrink: 0;
}

/* =========================================================
   COMPACT ADMIN DOMAINS TABLE
   ========================================================= */
.domain-row {
    transition: background 0.15s ease-in-out;
}
.domain-row:hover {
    background-color: rgba(0, 210, 255, 0.05) !important;
}
.domain-link {
    transition: color 0.15s ease;
}
.domain-link:hover {
    color: #38bdf8 !important;
    text-shadow: 0 0 10px rgba(56, 189, 248, 0.5);
    text-decoration: underline !important;
}
