
        /* Sleek Switch Toggle Style */
        .switch-xs {
            position: relative;
            display: inline-block;
            width: 32px;
            height: 18px;
            vertical-align: middle;
        }
        .switch-xs input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        .slider-xs {
            position: absolute;
            cursor: pointer;
            top: 0; left: 0; right: 0; bottom: 0;
            background-color: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.15);
            transition: .3s;
            border-radius: 18px;
        }
        .slider-xs:before {
            position: absolute;
            content: "";
            height: 12px;
            width: 12px;
            left: 2px;
            bottom: 2px;
            background-color: #94a3b8;
            transition: .3s;
            border-radius: 50%;
        }
        .switch-xs input:checked + .slider-xs {
            background-color: rgba(245, 158, 11, 0.2);
            border-color: rgba(245, 158, 11, 0.5);
        }
        .switch-xs input:checked + .slider-xs:before {
            transform: translateX(14px);
            background-color: #f59e0b;
            box-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
        }
        /* ==============================================================================
           PREMIUM GLASSMORPHISM & CYBER-GOLD DESIGN SYSTEM
           ============================================================================== */
        
        /* Layout overrides */
        .card {
            background: rgba(30, 41, 59, 0.45) !important;
            border: 1px solid rgba(251, 191, 36, 0.08) !important;
            backdrop-filter: blur(10px) !important;
            box-shadow: 0 10px 30px -10px rgba(0, 0, 0, 0.5) !important;
            border-radius: 16px !important;
            padding: 24px !important;
            margin-bottom: 25px;
            transition: border-color 0.3s ease, box-shadow 0.3s ease;
        }
        .card:hover {
            border-color: rgba(251, 191, 36, 0.15) !important;
            box-shadow: 0 15px 40px -10px rgba(251, 191, 36, 0.05), 0 10px 30px -10px rgba(0, 0, 0, 0.6) !important;
        }

        .card-title {
            margin-bottom: 20px;
            padding-bottom: 15px;
            border-bottom: 1px solid rgba(251, 191, 36, 0.15);
        }

        .card-title h3 {
            margin: 0;
            color: #f3ba2f !important;
            text-shadow: 0 0 8px rgba(251, 191, 36, 0.3);
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            font-size: 15px;
        }

        /* Flexible Table Fix & Styles */
        .table-container {
            width: 100%;
            border-radius: 12px;
            overflow-x: auto;
            -webkit-overflow-scrolling: touch;
            background: rgba(15, 23, 42, 0.25);
            border: 1px solid rgba(255, 255, 255, 0.05);
            box-shadow: inset 0 2px 8px rgba(0, 0, 0, 0.2);
            margin-bottom: 15px;
        }

        .table {
            width: 100%;
            border-collapse: collapse;
            min-width: 600px !important;
            font-size: 13px;
            table-layout: auto;
        }

        .table th {
            background: rgba(15, 23, 42, 0.6);
            color: #94a3b8;
            font-weight: 800;
            text-transform: uppercase;
            font-size: 11px;
            letter-spacing: 0.8px;
            padding: 16px 15px;
            border-bottom: 2px solid rgba(251, 191, 36, 0.15);
            text-align: left;
            vertical-align: middle;
            white-space: nowrap;
        }

        .table td {
            padding: 14px 15px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.03);
            color: #cbd5e1;
            transition: all 0.2s ease;
            vertical-align: middle;
            white-space: nowrap;
        }

        .table tbody tr {
            transition: background-color 0.2s ease;
        }

        .table tbody tr:hover {
            background-color: rgba(255, 255, 255, 0.02) !important;
        }

        .table tbody tr:nth-child(even) {
            background: rgba(255, 255, 255, 0.005);
        }

        .td-actions {
            display: flex !important;
            gap: 8px !important;
            flex-wrap: nowrap !important;
            justify-content: flex-end;
            align-items: center;
        }

        /* Forms & Inputs */
        .form-row {
            display: flex;
            gap: 16px;
            flex-wrap: wrap;
            margin-bottom: 15px;
        }

        .form-group {
            flex: 1;
            min-width: 220px;
        }

        .form-group label {
            font-size: 11px;
            font-weight: 800;
            text-transform: uppercase;
            letter-spacing: 0.5px;
            margin-bottom: 6px;
            display: block;
            color: #a8b2c1;
        }

        .input,
        .select {
            background: rgba(15, 23, 42, 0.55) !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            color: #fff !important;
            border-radius: 8px !important;
            padding: 10px 14px !important;
            font-size: 13px !important;
            transition: all 0.3s ease !important;
            width: 100%;
            box-sizing: border-box;
        }

        .input:focus,
        .select:focus {
            border-color: rgba(251, 191, 36, 0.5) !important;
            box-shadow: 0 0 12px rgba(251, 191, 36, 0.18) !important;
            background: rgba(15, 23, 42, 0.8) !important;
            outline: none !important;
        }

        select.input {
            cursor: pointer;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23f3ba2f' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
            background-repeat: no-repeat !important;
            background-position: right 12px center !important;
            padding-right: 35px !important;
        }

        textarea.input {
            resize: vertical;
            font-family: inherit;
            line-height: 1.5;
            background: rgba(15, 23, 42, 0.55);
            border: 1px solid rgba(255, 255, 255, 0.08);
            border-radius: 8px;
            color: #fff;
            padding: 10px 14px;
            outline: none;
            transition: all 0.3s ease;
        }

        textarea.input:focus {
            border-color: rgba(251, 191, 36, 0.5);
            box-shadow: 0 0 12px rgba(251, 191, 36, 0.18);
            background: rgba(15, 23, 42, 0.8);
        }

        /* Tiny inputs for prices */
        .input-xs {
            background: rgba(15, 23, 42, 0.6) !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            color: #f3ba2f !important;
            padding: 6px 10px !important;
            border-radius: 6px !important;
            width: 110px;
            text-align: right;
            outline: none;
            font-weight: 700;
            font-family: monospace;
            transition: all 0.3s ease;
        }

        .input-xs:focus {
            border-color: rgba(251, 191, 36, 0.5) !important;
            box-shadow: 0 0 8px rgba(251, 191, 36, 0.2) !important;
            background: rgba(15, 23, 42, 0.8) !important;
        }

        /* Tab Navigation Overrides */
        .tabs {
            display: flex;
            gap: 8px;
            background: rgba(15, 23, 42, 0.4) !important;
            border: 1px solid rgba(255, 255, 255, 0.05) !important;
            padding: 6px !important;
            border-radius: 10px !important;
            margin-bottom: 25px !important;
            flex-wrap: wrap;
        }

        .tab {
            padding: 10px 20px !important;
            font-size: 11px !important;
            font-weight: 800 !important;
            color: #94a3b8 !important;
            border-radius: 8px !important;
            cursor: pointer !important;
            transition: all 0.2s ease !important;
            text-transform: uppercase !important;
            letter-spacing: 0.8px !important;
            display: flex !important;
            align-items: center !important;
            justify-content: center !important;
            gap: 6px !important;
            border: 1px solid transparent !important;
            background: transparent !important;
            min-width: unset !important;
            flex: unset !important;
        }

        .tab:hover {
            color: #fff !important;
            background: rgba(255, 255, 255, 0.03) !important;
        }

        .tab.active {
            color: #0f172a !important;
            background: linear-gradient(135deg, #f59e0b, #d97706) !important;
            box-shadow: 0 4px 15px rgba(245, 158, 11, 0.25) !important;
            border-color: rgba(245, 158, 11, 0.3) !important;
        }

        /* Buttons Style */
        .btn {
            font-weight: 700;
            letter-spacing: 0.5px;
            text-transform: uppercase;
            border-radius: 8px;
            padding: 10px 20px;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            font-size: 12px;
            cursor: pointer;
            border: none;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            gap: 6px;
        }

        .btn:hover:not(:disabled) {
            transform: translateY(-1px);
            filter: brightness(1.15);
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
        }

        .btn:active:not(:disabled) {
            transform: translateY(0);
        }

        .btn-primary {
            background: linear-gradient(135deg, #f59e0b, #d97706) !important;
            color: #0f172a !important;
            box-shadow: 0 4px 12px rgba(245, 158, 11, 0.18) !important;
        }

        .btn-accent {
            background: rgba(251, 191, 36, 0.03) !important;
            border: 1px solid rgba(251, 191, 36, 0.2) !important;
            color: #f3ba2f !important;
        }

        .btn-accent:hover:not(:disabled) {
            background: rgba(251, 191, 36, 0.08) !important;
            border-color: rgba(251, 191, 36, 0.4) !important;
        }

        .btn-danger {
            background: rgba(239, 68, 68, 0.1) !important;
            border: 1px solid rgba(239, 68, 68, 0.25) !important;
            color: #f87171 !important;
        }

        .btn-danger:hover:not(:disabled) {
            background: rgba(239, 68, 68, 0.18) !important;
            border-color: rgba(239, 68, 68, 0.5) !important;
            color: #fff !important;
        }

        .btn-sm {
            padding: 8px 14px !important;
            font-size: 11px !important;
            border-radius: 6px;
            font-weight: 700;
            cursor: pointer;
            transition: all 0.2s ease;
            background: rgba(255, 255, 255, 0.03);
            border: 1px solid rgba(255, 255, 255, 0.08);
            color: #cbd5e1;
        }

        .btn-sm:hover {
            background: rgba(251, 191, 36, 0.08) !important;
            border-color: rgba(251, 191, 36, 0.3) !important;
            color: #fff !important;
            transform: translateY(-1px);
        }

        .btn-sm.btn-primary {
            background: linear-gradient(135deg, #f59e0b, #d97706) !important;
            color: #0f172a !important;
            border: none !important;
        }

        .btn-xs {
            width: 32px;
            height: 32px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            border-radius: 6px !important;
            cursor: pointer;
            transition: all 0.2s ease;
            background: rgba(255, 255, 255, 0.03) !important;
            border: 1px solid rgba(255, 255, 255, 0.08) !important;
            color: #cbd5e1 !important;
            padding: 0 !important;
        }

        .btn-xs:hover {
            background: rgba(251, 191, 36, 0.08) !important;
            border-color: rgba(251, 191, 36, 0.4) !important;
            color: #fff !important;
            transform: translateY(-1px);
        }

        .btn-xs.btn-danger:hover {
            background: rgba(239, 68, 68, 0.15) !important;
            border-color: rgba(239, 68, 68, 0.4) !important;
            color: #f87171 !important;
            text-shadow: 0 0 8px rgba(239, 68, 68, 0.4);
        }

        /* WA Status Badge Styles */
        .status-badge {
            padding: 6px 12px !important;
            border-radius: 6px !important;
            font-size: 10px !important;
            font-weight: 800 !important;
            text-transform: uppercase !important;
            letter-spacing: 0.5px !important;
            backdrop-filter: blur(4px) !important;
            border: 1px solid transparent !important;
            display: inline-flex !important;
            align-items: center !important;
            justify-content: center !important;
        }

        .status-connected {
            background: rgba(16, 185, 129, 0.15) !important;
            color: #34d399 !important;
            border-color: rgba(16, 185, 129, 0.25) !important;
            box-shadow: 0 0 8px rgba(16, 185, 129, 0.1);
        }

        .status-disconnected {
            background: rgba(239, 68, 68, 0.15) !important;
            color: #fb7185 !important;
            border-color: rgba(239, 68, 68, 0.25) !important;
            box-shadow: 0 0 8px rgba(239, 68, 68, 0.1);
        }

        .status-pairing {
            background: rgba(245, 158, 11, 0.15) !important;
            color: #fbbf24 !important;
            border-color: rgba(245, 158, 11, 0.25) !important;
            box-shadow: 0 0 8px rgba(245, 158, 11, 0.1);
        }

        /* Terminal WhatsApp Log style */
        #wa-log-container {
            background: #090d16 !important;
            border: 1px solid rgba(251, 191, 36, 0.15) !important;
            border-radius: 8px;
            padding: 15px !important;
            color: #38bdf8 !important;
            font-family: 'Consolas', 'Courier New', monospace !important;
            font-size: 11px !important;
            line-height: 1.6 !important;
            box-shadow: inset 0 4px 12px rgba(0,0,0,0.8);
            height: 220px;
            overflow-y: auto;
            scrollbar-width: thin;
            scrollbar-color: rgba(251, 191, 36, 0.3) transparent;
        }

        #wa-log-container::-webkit-scrollbar {
            width: 6px;
        }
        #wa-log-container::-webkit-scrollbar-thumb {
            background: rgba(251, 191, 36, 0.3);
            border-radius: 3px;
        }


        /* Fix stubborn black text on time inputs */
        input[type="time"] {
            color-scheme: dark !important;
        }

        input[type="time"]::-webkit-datetime-edit-fields-wrapper,
        input[type="time"]::-webkit-datetime-edit-text,
        input[type="time"]::-webkit-datetime-edit-hour-field,
        input[type="time"]::-webkit-datetime-edit-minute-field,
        input[type="time"]::-webkit-datetime-edit-ampm-field {
            color: #ffffff !important;
            -webkit-text-fill-color: #ffffff !important;
        }

        input[type="time"]::-webkit-calendar-picker-indicator {
            filter: invert(1);
        }

        /* Deep-glass Premium Modals */
        .modal {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: rgba(15, 23, 42, 0.75) !important;
            backdrop-filter: blur(10px) !important;
            display: none;
            align-items: center;
            justify-content: center;
            z-index: 9999;
            opacity: 0;
            transition: opacity 0.3s ease;
        }

        .modal.active {
            display: flex !important;
            opacity: 1;
        }

        .modal-content {
            background: #0f172a !important;
            border: 1px solid rgba(251, 191, 36, 0.15) !important;
            border-radius: 16px !important;
            width: 90%;
            max-width: 450px;
            padding: 26px !important;
            box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.8) !important;
            transform: scale(0.9) translateY(20px);
            transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
            max-height: 90vh;
            overflow-y: auto;
            box-sizing: border-box;
        }

        .modal.active .modal-content {
            transform: scale(1) translateY(0);
        }

        /* Hint section custom look */
        .hint {
            font-size: 11px;
            color: #94a3b8;
            margin-top: 6px;
            line-height: 1.5;
        }

        /* Checkbox styling */
        label input[type="checkbox"] {
            width: 16px;
            height: 16px;
            cursor: pointer;
            accent-color: #f3ba2f;
            vertical-align: middle;
            margin-right: 6px;
        }

        @media (max-width: 768px) {
            .table-container {
                border-radius: 8px;
                background: rgba(15, 23, 42, 0.25);
            }

            .table {
                min-width: auto !important;
            }

            .table th,
            .table td {
                padding: 10px 8px !important;
                font-size: 11px !important;
            }

            .td-actions {
                gap: 6px !important;
            }

            .btn-xs {
                width: 28px;
                height: 28px;
                font-size: 11px !important;
            }

            .mobile-hide {
                display: none !important;
            }

            .mobile-full {
                width: 100% !important;
            }

            .form-group {
                min-width: 100% !important;
            }

            .tabs {
                display: flex;
                gap: 6px !important;
            }

            .tab {
                flex: 1 1 calc(33.33% - 8px) !important;
                min-width: 70px !important;
                padding: 8px 4px !important;
                font-size: 10px !important;
            }
        }

        /* Custom Autocomplete Dropdown */
        .custom-autocomplete-dropdown {
            position: absolute;
            top: 45px;
            left: 0;
            right: 0;
            background: rgba(15, 23, 42, 0.95) !important;
            border: 1px solid rgba(251, 191, 36, 0.2) !important;
            border-radius: 8px !important;
            box-shadow: 0 10px 25px rgba(0,0,0,0.6) !important;
            max-height: 200px;
            overflow-y: auto;
            z-index: 1000;
            backdrop-filter: blur(10px) !important;
            display: none;
            scrollbar-width: thin;
            scrollbar-color: rgba(251, 191, 36, 0.3) transparent;
        }

        .custom-autocomplete-dropdown::-webkit-scrollbar {
            width: 6px;
        }
        .custom-autocomplete-dropdown::-webkit-scrollbar-thumb {
            background: rgba(251, 191, 36, 0.3);
            border-radius: 3px;
        }

        .custom-autocomplete-item {
            padding: 10px 14px;
            color: #cbd5e1;
            cursor: pointer;
            font-size: 12px;
            font-weight: 600;
            transition: all 0.2s ease;
            border-bottom: 1px solid rgba(255,255,255,0.03);
            display: flex;
            align-items: center;
            gap: 8px;
            text-align: left;
        }

        .custom-autocomplete-item:last-child {
            border-bottom: none;
        }

        .custom-autocomplete-item:hover {
            background: rgba(251, 191, 36, 0.1) !important;
            color: #fff !important;
            padding-left: 18px;
        }

        .search-results-box {
            position: absolute;
            background: #111827; /* Dark slate matching theme */
            border: 1px solid rgba(255, 255, 255, 0.1);
            width: 100%;
            max-height: 200px;
            overflow-y: auto;
            z-index: 10000;
            box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.5), 0 4px 6px -2px rgba(0, 0, 0, 0.5);
            border-radius: 8px;
            display: none;
            margin-top: 4px;
        }

        .search-result-item {
            display: flex;
            align-items: center;
            gap: 12px;
            padding: 10px 14px;
            cursor: pointer;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
            font-size: 12px;
            color: #ccc;
            transition: all 0.15s ease;
            text-align: left;
        }

        .search-result-item:hover {
            background: rgba(251, 191, 36, 0.15); /* Translucent gold hover */
            color: #fff;
        }

        .search-result-item:last-child {
            border-bottom: none;
        }
    