/* Custom Scrollbar */
        ::-webkit-scrollbar {
            width: 14px;
            height: 14px;
        }
        ::-webkit-scrollbar-track {
            background: #1f2937;
            border-radius: 7px;
        }
        ::-webkit-scrollbar-thumb {
            background: #4f46e5;
            border-radius: 7px;
            border: 3px solid #1f2937;
        }
        ::-webkit-scrollbar-thumb:hover {
            background: #4338ca;
        }

        .w-full.bg-gray-700.rounded-full.h-2 {
            overflow: hidden;
        }
        
        .w-full.bg-purple-800.rounded-full.h-2 {
            overflow: hidden;
        }
        
        .gradient-bg {
            background: linear-gradient(-45deg, #4f46e5, #7c3aed, #2563eb, #3b82f6);
            background-size: 400% 400%;
            animation: gradient 15s ease infinite;
        }
        @keyframes gradient {
            0% { background-position: 0% 50%; }
            50% { background-position: 100% 50%; }
            100% { background-position: 0% 50%; }
        }
        .modal-backdrop {
            backdrop-filter: blur(4px);
        }
        
        /* Sidebar */
        .sidebar {
            width: 280px;
            height: calc(100vh - 64px);
            position: fixed;
            left: 0;
            top: 64px;
            background: linear-gradient(180deg, #1e1b4b 0%, #312e81 100%);
            border-right: 1px solid rgba(139, 92, 246, 0.2);
            overflow-y: auto;
            z-index: 30;
            transition: transform 0.3s ease;
        }
        
        /* Mobile: hide sidebar by default */
        @media (max-width: 768px) {
            .sidebar {
                transform: translateX(-100%);
                z-index: 50;
            }
            
            .sidebar.mobile-open {
                transform: translateX(0);
            }
            
            .main-content {
                margin-left: 0 !important;
                padding: 16px !important;
            }
        }
        
        .sidebar-toggle {
            display: none;
            position: fixed;
            top: 80px;
            left: 20px;
            width: 48px;
            height: 48px;
            border-radius: 12px;
            background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
            color: white;
            border: none;
            font-size: 20px;
            cursor: pointer;
            z-index: 65;
            box-shadow: 0 4px 12px rgba(0,0,0,0.3);
            transition: transform 0.3s ease;
        }
        
        @media (max-width: 768px) {
            .sidebar-toggle {
                display: flex;
                align-items: center;
                justify-content: center;
            }
        }
        
        .sidebar-overlay {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0,0,0,0.5);
            z-index: 45;
        }
        
        @media (max-width: 768px) {
            .sidebar-overlay.active {
                display: block;
            }
        }
        
        .sidebar-item {
            padding: 16px 24px;
            cursor: pointer;
            transition: all 0.3s ease;
            border-left: 3px solid transparent;
            display: flex;
            align-items: center;
            gap: 12px;
            color: rgba(255, 255, 255, 0.7);
        }
        
        .sidebar-item:hover {
            background: rgba(139, 92, 246, 0.1);
            color: white;
        }
        
        .sidebar-item.active {
            background: rgba(139, 92, 246, 0.2);
            border-left-color: #8b5cf6;
            color: white;
        }
        
        .main-content {
            margin-left: 280px;
            margin-top: 64px;
            padding: 32px;
            min-height: calc(100vh - 64px);
        }
        
        .content-section {
            display: none;
        }
        
        .content-section.active {
            display: block;
        }
        
        /* MODAL FIXES */
        .swal2-popup {
            background: #1e293b !important;
            color: white !important;
            max-width: 600px !important;
            box-sizing: border-box !important;
            overflow-x: hidden !important;
        }
        
        /* Hide SweetAlert's default input elements that appear as direct siblings */
        .swal2-popup > .swal2-input,
        .swal2-popup > .swal2-file,
        .swal2-popup > .swal2-textarea,
        .swal2-popup > .swal2-select,
        .swal2-popup > .swal2-radio,
        .swal2-popup > .swal2-checkbox {
            display: none !important;
            visibility: hidden !important;
        }
        
        /* Ensure our custom inputs inside html-container are visible */
        .swal2-html-container input,
        .swal2-html-container textarea,
        .swal2-html-container select {
            display: block !important;
            visibility: visible !important;
        }
        
        .swal2-title {
            color: white !important;
        }
        
        .swal2-html-container {
            color: #cbd5e1 !important;
        }
        
        /* FIX INPUT WIDTHS - NUCLEAR OPTION */
        .swal2-input, .swal2-textarea, .swal2-select {
            background: #0f172a !important;
            border: 1px solid #334155 !important;
            color: white !important;
            width: 100% !important;
            max-width: 100% !important;
            min-width: 0 !important;
            box-sizing: border-box !important;
            margin: 0 !important;
            padding: 12px !important;
            display: block !important;
        }
        
        .swal2-input:focus, .swal2-textarea:focus, .swal2-select:focus {
            outline: none !important;
            border-color: #8b5cf6 !important;
        }
        
        .swal2-html-container > div {
            max-width: 100% !important;
            overflow: hidden !important;
        }
        
        .swal2-html-container input[type="text"],
        .swal2-html-container input[type="email"],
        .swal2-html-container input[type="url"],
        .swal2-html-container input[type="number"],
        .swal2-html-container input[type="checkbox"],
        .swal2-html-container textarea,
        .swal2-html-container select {
            width: 100% !important;
            max-width: 100% !important;
            box-sizing: border-box !important;
            background: #0f172a !important;
            border: 1px solid #334155 !important;
            color: white !important;
            padding: 12px !important;
            border-radius: 6px !important;
            margin-bottom: 12px !important;
        }
        
        .swal2-html-container input[type="checkbox"] {
            width: auto !important;
            margin-right: 8px !important;
        }
        
        .tool-card {
            background: #1e293b;
            border: 1px solid #334155;
            border-radius: 12px;
            padding: 24px;
        }
        
        .btn-primary {
            background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
            color: white;
            padding: 12px 24px;
            border-radius: 8px;
            border: none;
            font-weight: 600;
            cursor: pointer;
        }
        
        .btn-secondary {
            background: #374151;
            color: white;
            padding: 12px 24px;
            border-radius: 8px;
            border: 1px solid #4b5563;
            font-weight: 600;
            cursor: pointer;
        }
        
        .country-card {
            background: #1e293b;
            border: 1px solid #334155;
            border-radius: 12px;
            padding: 20px;
            text-align: center;
            cursor: pointer;
            transition: all 0.3s ease;
        }
        
        .country-card:hover {
            border-color: #8b5cf6;
            transform: translateY(-4px);
        }
        
        .proxy-item, .email-item, .bc-item {
            background: #0f172a;
            border: 1px solid #334155;
            border-radius: 8px;
            padding: 16px;
            margin-bottom: 12px;
        }
        
        .badge {
            padding: 4px 12px;
            border-radius: 9999px;
            font-size: 12px;
            font-weight: 600;
        }
        
        .badge-success { background: #10b981; color: white; }
        .badge-warning { background: #f59e0b; color: white; }
        .badge-danger { background: #ef4444; color: white; }
        .badge-info { background: #3b82f6; color: white; }
        
        /* Nav z-index */
        nav.bg-gray-800 {
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            z-index: 60;
        }
        
        /* Toggle Switch for Proxy Protocol */
        .switch {
            position: relative;
            display: inline-block;
            width: 50px;
            height: 24px;
        }
        
        .switch input {
            opacity: 0;
            width: 0;
            height: 0;
        }
        
        .slider {
            position: absolute;
            cursor: pointer;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background-color: #4b5563;
            transition: .3s;
            border-radius: 24px;
        }
        
        .slider:before {
            position: absolute;
            content: "";
            height: 18px;
            width: 18px;
            left: 3px;
            bottom: 3px;
            background-color: white;
            transition: .3s;
            border-radius: 50%;
        }
        
        input:checked + .slider {
            background-color: #8b5cf6;
        }
        
        input:checked + .slider:before {
            transform: translateX(26px);
        }
        
        /* Force SweetAlert2 modals to scroll properly */
        .swal2-popup {
            max-height: 90vh !important;
        }
        .swal2-html-container {
            max-height: 70vh !important;
            overflow-y: auto !important;
            padding-right: 10px;
        }

        .agency-tabs {
    display: flex;
    gap: 10px;
    margin-bottom: 20px;
    border-bottom: 2px solid #ddd;
}

.agency-tab {
    padding: 10px 20px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    color: #666;
    transition: all 0.3s;
}

.agency-tab.active {
    color: #000;
    border-bottom-color: #000;
}

.agency-tab:hover {
    color: #000;
}

.agency-content {
    display: none;
}

.agency-content.active {
    display: block;
}

.bc-tier-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.bc-tier-card {
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
}

.bc-tier-card:hover {
    border-color: #000;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

.bc-tier-card.selected {
    border-color: #000;
    background: #f5f5f5;
}

.bc-tier-name {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
}

.bc-tier-price {
    font-size: 24px;
    color: #000;
    margin-bottom: 5px;
}

.bc-status-badge {
    display: inline-block;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.bc-status-pending { background: #fff3cd; color: #856404; }
.bc-status-approved { background: #d4edda; color: #155724; }
.bc-status-active { background: #d1ecf1; color: #0c5460; }
.bc-status-denied { background: #f8d7da; color: #721c24; }
.bc-status-closed { background: #e2e3e5; color: #383d41; }

.ad-account-filters {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.filter-btn {
    padding: 8px 16px;
    border: 1px solid #ddd;
    background: white;
    cursor: pointer;
    border-radius: 4px;
    transition: all 0.3s;
}

.filter-btn.active {
    background: #000;
    color: white;
    border-color: #000;
}
