/* ========================================
   IP Blocker Lite - Premium Admin Styles
   ======================================== */

/* Hide WordPress Admin Footer */
#wpfooter {
    display: none;
}

/* Tab Navigation - Modern Pills */
.ip-blocker-tabs {
    margin: 16px 0;
    border-bottom: 2px solid #e5e7eb;
}

.ip-blocker-tabs-nav {
    display: flex;
    gap: 8px;
    margin: 0;
    padding: 0;
    list-style: none;
    flex-wrap: wrap;
}

.ip-blocker-tabs-nav li {
    margin: 0;
}

.ip-blocker-tabs-nav button {
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 20px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.ip-blocker-tabs-nav button:hover {
    color: #2271b1;
    background: rgba(34, 113, 177, 0.05);
    border-radius: 6px 6px 0 0;
}

.ip-blocker-tabs-nav button.active {
    color: #2271b1;
    border-bottom-color: #2271b1;
    font-weight: 700;
}

.tab-new-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
    padding: 2px 6px;
    border-radius: 10px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-left: 6px;
    display: inline-block;
    vertical-align: middle;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% { opacity: 1; }
    50% { opacity: 0.7; }
    100% { opacity: 1; }
}

.ip-blocker-tab-content {
    display: none;
    animation: fadeIn 0.3s ease-in-out;
}

.ip-blocker-tab-content.active {
    display: block;
}

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

/* Main Container - Card Style */
.ip-blocker-container {
    background: #ffffff;
    padding: 16px;
    margin-bottom: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    transition: box-shadow 0.2s ease;
}

.ip-blocker-container:hover {
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
}

/* Headings */
.ip-blocker-container h2 {
    margin: 0 0 12px 0;
    font-size: 1.4em;
    color: #1f2937;
    font-weight: 700;
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ip-blocker-container h3 {
    font-size: 1.15em;
    color: #374151;
    margin: 16px 0 8px 0;
    font-weight: 600;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 6px;
}

.ip-blocker-container p.description {
    color: #6b7280;
    font-size: 13px;
    margin: 4px 0 12px 0;
    line-height: 1.5;
}

/* Stats Dashboard - Premium Cards */
.ip-blocker-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.stat-card {
    background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    text-align: center;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
    cursor: default;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: #2271b1;
    transition: height 0.3s ease;
}

.stat-card:hover::before {
    height: 8px;
}

.stat-card-danger::before {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.stat-card-warning::before {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
}

.stat-card-success::before {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.stat-card-info::before {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.stat-card:hover {
    
    border-color: transparent;
}

.stat-icon-wrapper {
    width: 64px;
    height: 64px;
    margin: 0 auto 12px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3f4f6;
    transition: all 0.3s ease;
}

.stat-card:hover .stat-icon-wrapper {
    transform: rotate(5deg) scale(1.1);
}

.stat-card-danger .stat-icon-wrapper {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.stat-card-warning .stat-icon-wrapper {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.stat-card-success .stat-icon-wrapper {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.stat-card-info .stat-icon-wrapper {
    background: rgba(59, 130, 246, 0.1);
    color: #3b82f6;
}

.stat-icon {
    width: 32px;
    height: 32px;
}

.stat-value {
    font-size: 2.5em;
    font-weight: 800;
    color: #1f2937;
    margin: 6px 0;
    line-height: 1;
    background: linear-gradient(135deg, #1f2937 0%, #374151 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 13px;
    color: #6b7280;
    margin-top: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Forms - Modern Input Style */
.ip-blocker-container form {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
}

.ip-blocker-container input[type="text"],
.ip-blocker-container input[type="number"],
.ip-blocker-container select {
    padding: 10px 14px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    min-width: 220px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.ip-blocker-container input[type="text"]:focus,
.ip-blocker-container input[type="number"]:focus,
.ip-blocker-container select:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
    transform: translateY(-1px);
}

/* Buttons - Premium Style */
.btn-primary {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-success {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3);
}

.btn-success:active {
    transform: translateY(0);
}

.btn-danger {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 18px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.2);
}

.btn-danger:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
}

.btn-danger:active {
    transform: translateY(0);
}

.btn-secondary {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 16px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(107, 114, 128, 0.2);
}

.btn-secondary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(107, 114, 128, 0.3);
    background: linear-gradient(135deg, #4b5563 0%, #374151 100%);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* Recovery URL Copy Button */
#copy-recovery-url {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 6px 12px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px rgba(59, 130, 246, 0.2);
    margin-left: 8px;
    min-width: 60px;
}

#copy-recovery-url:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(59, 130, 246, 0.3);
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
}

#copy-recovery-url:active {
    transform: translateY(0);
}

/* Recovery URL Display */
.recovery-url-display {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}

.recovery-url-display input[type="text"] {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 4px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    background-color: #f9fafb;
    color: #374151;
}

.recovery-url-display input[type="text"]:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Recovery URL Box */
.recovery-url-box {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 16px;
    margin-top: 12px;
}

.recovery-url-box strong {
    color: #1f2937;
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

.recovery-warning {
    color: #dc2626 !important;
    margin: 12px 0 0 0 !important;
    font-size: 13px !important;
    font-weight: 500;
    padding: 8px 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 4px;
    line-height: 1.4;
}

.recovery-warning strong {
    color: #b91c1c;
}

/* Recovery Section */
.recovery-section {
    margin-top: 16px;
    padding: 16px;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
}

/* Tables - Modern Design */
table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
}

th,
td {
    padding: 14px 16px;
    text-align: left;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
}

th {
    background: linear-gradient(145deg, #f9fafb 0%, #f3f4f6 100%);
    color: #374151;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

tr:last-child td {
    border-bottom: none;
}

tbody tr {
    transition: all 0.2s ease;
}

tbody tr:hover {
    background: linear-gradient(90deg, rgba(34, 113, 177, 0.03) 0%, rgba(34, 113, 177, 0.06) 100%);
    transform: scale(1.005);
}

/* Badges */
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.badge-success {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.15) 0%, rgba(5, 150, 105, 0.15) 100%);
    color: #059669;
    border: 1px solid rgba(16, 185, 129, 0.3);
}

.badge-danger {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.15) 0%, rgba(220, 38, 38, 0.15) 100%);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Empty State - Elegant */
.empty-state {
    text-align: center;
    padding: 48px 24px;
    color: #9ca3af;
}

.empty-state-icon {
    font-size: 4em;
    margin-bottom: 16px;
    opacity: 0.2;
    filter: grayscale(100%);
}

.empty-state p {
    font-size: 15px;
    margin: 0;
    color: #6b7280;
}

/* Accordion - Modern */
.accordion-button {
    background: linear-gradient(145deg, #f9fafb 0%, #f3f4f6 100%);
    color: #374151;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    font-weight: 700;
    font-size: 14px;
    padding: 14px 18px;
    cursor: pointer;
    width: 100%;
    text-align: left;
    display: flex;
    align-items: center;
    gap: 12px;
    transition: all 0.3s ease;
}

.accordion-button::after {
    content: "▼";
    font-size: 0.8em;
    margin-left: auto;
    transition: transform 0.3s ease;
}

.accordion-button[aria-expanded="true"]::after {
    transform: rotate(-180deg);
}

.accordion-button:hover {
    background: linear-gradient(145deg, #f3f4f6 0%, #e5e7eb 100%);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.accordion-body {
    padding: 18px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-top: none;
    border-radius: 0 0 8px 8px;
}

/* Advertisement Section - Clean */
.ad-section h2,
.donate-section h2 {
    color: #1f2937;
    font-size: 1.4em;
    margin-bottom: 18px;
    font-weight: 700;
}

.ad-plugins-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 16px;
}

.ad-plugin-card {
    background: linear-gradient(145deg, #ffffff 0%, #f9fafb 100%);
    border: 1px solid #e5e7eb;
    padding: 18px;
    display: flex;
    align-items: flex-start;
    gap: 14px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.ad-plugin-card:hover {
    background: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.ad-plugin-card img {
    width: 56px;
    height: 56px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.ad-plugin-card strong {
    font-size: 15px;
    color: #1f2937;
    font-weight: 700;
    display: block;
    margin-bottom: 6px;
}

.ad-plugin-card p {
    margin: 0 0 12px 0;
    font-size: 13px;
    color: #6b7280;
    line-height: 1.5;
}

.btn-ad {
    background: linear-gradient(135deg, #2271b1 0%, #135e96 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 7px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(34, 113, 177, 0.2);
}

.btn-ad:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(34, 113, 177, 0.3);
    color: #fff;
}

/* Support & Feedback Section */
.support-actions {
    display: flex;
    gap: 12px;
    margin: 20px 0;
    flex-wrap: wrap;
}

.btn-review, .btn-support, .btn-docs {
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 16px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
}

.btn-review:hover, .btn-support:hover, .btn-docs:hover {
    background: #1d5d99;
    color: #fff;
    transform: translateY(-2px);
    text-decoration: none !important;
}

.btn-feedback {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-feedback:hover {
    background: linear-gradient(135deg, #5a6fd8 0%, #6a4190 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.6);
}

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

.btn-feedback:hover::before {
    left: 100%;
}

.btn-review {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 12px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(245, 158, 11, 0.4);
    position: relative;
    overflow: hidden;
}

.btn-review:hover {
    background: linear-gradient(135deg, #d97706 0%, #b45309 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(245, 158, 11, 0.6);
}

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

.btn-review:hover::before {
    left: 100%;
}

.btn-docs {
    background: #10b981;
}

.btn-docs:hover {
    background: #059669;
}

.premium-section {
    margin-top: 30px;
}

.premium-card {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border: 2px solid #e0f2fe;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

.premium-card::before {
    content: "⭐";
    position: absolute;
    top: 12px;
    right: 12px;
    font-size: 20px;
    color: #f59e0b;
}

.premium-card:hover {
    border-color: #0ea5e9;
    box-shadow: 0 8px 16px rgba(14, 165, 233, 0.15);
    transform: translateY(-4px);
}

.premium-card h3 {
    margin: 0 0 12px 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.premium-card p {
    margin: 0 0 20px 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.btn-premium {
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 10px 20px;
    cursor: pointer;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(14, 165, 233, 0.3);
}

.btn-premium:hover {
    background: linear-gradient(135deg, #0284c7 0%, #0369a1 100%);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(14, 165, 233, 0.4);
}

/* Modal Styles */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: none; /* Hidden by default */
    justify-content: center;
    align-items: center;
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    background: #fff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    animation: slideIn 0.3s ease;
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #e5e7eb;
}

.modal-header h3 {
    margin: 0;
    color: #1f2937;
    font-size: 18px;
    font-weight: 600;
}

.modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #6b7280;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.modal-close:hover {
    background: #f3f4f6;
    color: #374151;
}

.modal-body {
    padding: 24px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    transition: border-color 0.2s ease;
    box-sizing: border-box;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Rating Stars */
.rating-stars {
    display: flex;
    gap: 4px;
}

.rating-stars input {
    display: none;
}

.rating-stars label {
    font-size: 24px;
    color: #d1d5db;
    cursor: pointer;
    transition: color 0.2s ease;
}

.rating-stars input:checked ~ label,
.rating-stars label:hover,
.rating-stars label:hover ~ label {
    color: #f59e0b;
}

.form-actions {
    display: flex;
    gap: 12px;
    justify-content: flex-end;
    margin-top: 24px;
}

.btn-cancel, .btn-submit {
    padding: 10px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: none;
}

.btn-cancel {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.btn-cancel:hover {
    background: #e5e7eb;
}

.btn-submit {
    background: #2271b1;
    color: #fff;
}

.btn-submit:hover {
    background: #1d5d99;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .ip-blocker-stats {
        grid-template-columns: 1fr;
    }

    .ip-blocker-container {
        padding: 18px;
        margin: 10px;
    }

    .ip-blocker-container form {
        flex-direction: column;
        align-items: stretch;
    }

    .support-actions {
        flex-direction: column;
        gap: 8px;
    }

    .support-actions .btn-feedback,
    .support-actions .btn-review,
    .support-actions .btn-support,
    .support-actions .btn-docs {
        width: 100%;
        text-align: center;
    }

    .modal-content {
        width: 95%;
        margin: 20px;
    }

    .form-actions {
        flex-direction: column;
    }

    .form-actions .btn-cancel,
    .form-actions .btn-submit {
        width: 100%;
    }

    .ip-blocker-container input[type="text"],
    .ip-blocker-container input[type="number"],
    .ip-blocker-container select {
        width: 100%;
        min-width: auto;
    }

    /* Tab Navigation - Mobile */
    .ip-blocker-tabs-nav {
        flex-direction: column;
        gap: 0;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .ip-blocker-tabs-nav li {
        width: 100%;
    }

    .ip-blocker-tabs-nav button {
        width: 100%;
        text-align: left;
        padding: 16px 20px;
        border-radius: 0;
        border-bottom: 1px solid #e5e7eb;
        font-size: 16px;
    }

    .ip-blocker-tabs-nav button:last-child {
        border-bottom: none;
    }

    .ip-blocker-tabs-nav button.active {
        border-bottom-color: #2271b1;
        background: rgba(34, 113, 177, 0.1);
    }

    /* Tables - Mobile Responsive */
    table {
        font-size: 14px;
    }

    th,
    td {
        padding: 12px 8px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 120px;
    }

    th {
        font-size: 11px;
        padding: 12px 8px;
    }

    /* Form Tables - Mobile */
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
        padding: 8px 0;
        border: none;
    }

    .form-table th {
        padding-bottom: 4px;
        font-weight: 600;
        color: #374151;
    }

    .form-table td {
        padding-top: 4px;
        padding-bottom: 16px;
    }

    .form-table tr {
        border-bottom: 1px solid #e5e7eb;
        padding: 16px 0;
        display: block;
    }

    .form-table tr:last-child {
        border-bottom: none;
    }

    /* Security Sections - Mobile */
    .security-section {
        margin-bottom: 12px;
        padding: 16px;
    }

    .security-section h3 {
        font-size: 1.1em;
        margin-bottom: 12px;
    }

    /* Buttons - Mobile */
    .btn-success,
    .btn-danger,
    .button {
        width: 100%;
        margin: 8px 0;
        padding: 12px 16px;
        font-size: 16px;
    }

    /* Input Groups - Mobile */
    .input-group {
        flex-direction: column;
    }

    .input-group input,
    .input-group select {
        margin-bottom: 8px;
    }

    /* Modal - Mobile */
    .ipcbl-modal {
        width: 95%;
        margin: 10px;
        max-height: 90vh;
        overflow-y: auto;
    }

    /* Pagination - Mobile */
    .pagination {
        flex-wrap: wrap;
        justify-content: center;
    }

    .pagination a,
    .pagination span {
        padding: 8px 12px;
        margin: 2px;
        font-size: 14px;
    }

    /* CAPTCHA Container - Mobile */
    .captcha-container {
        margin: 8px 0;
        padding: 8px;
    }

    .captcha-container label {
        font-size: 14px;
        margin-bottom: 4px;
    }

    /* Better spacing for mobile forms */
    .security-section input[type="text"],
    .security-section input[type="password"],
    .security-section select {
        margin-bottom: 8px;
    }

    /* Description text - Mobile */
    .security-section .description {
        font-size: 14px;
        line-height: 1.4;
    }
}
}

@media (max-width: 600px) {
    .ipcbl-modal {
        width: 95%;
        margin: 12px;
    }

    .ipcbl-modal-header,
    .ipcbl-modal-body,
    .ipcbl-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ipcbl-modal-footer {
        flex-direction: column;
    }

    /* Extra small screens */
    .ip-blocker-container {
        padding: 12px;
        margin: 5px;
    }

    .ip-blocker-container h2 {
        font-size: 1.3em;
    }

    .ip-blocker-container h3 {
        font-size: 1.1em;
    }

    /* Stats cards - Stack vertically */
    .stat-card {
        margin-bottom: 16px;
    }

    /* Form elements - Full width */
    input[type="text"],
    input[type="password"],
    input[type="number"],
    select,
    textarea {
        font-size: 16px; /* Prevents zoom on iOS */
        padding: 12px 16px;
    }

    /* Checkboxes and labels - Better touch targets */
    label {
        display: block;
        padding: 8px 0;
        font-size: 16px;
    }

    input[type="checkbox"] {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }

    /* Table cells - Better readability */
    th,
    td {
        padding: 10px 6px;
        font-size: 13px;
    }

    /* Hide less important columns on very small screens */
    .hidden-mobile {
        display: none;
    }
}

@media (max-width: 480px) {
    /* Very small screens */
    .ip-blocker-tabs-nav button {
        padding: 14px 16px;
        font-size: 15px;
    }

    .ip-blocker-container {
        padding: 10px;
    }

    .security-section {
        padding: 12px;
    }

    /* Stack everything vertically */
    .form-group,
    .input-group {
        flex-direction: column;
        align-items: stretch;
    }

    .form-group input,
    .form-group select,
    .form-group button {
        margin: 4px 0;
    }

    /* Compact spacing for very small screens */
    .ip-blocker-container h2 {
        font-size: 1.25em;
        margin-bottom: 12px;
    }

    .ip-blocker-container h3 {
        font-size: 1.1em;
        margin-bottom: 8px;
    }

    /* Reduce padding on cards */
    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 1.5em;
    }

    .stat-label {
        font-size: 0.9em;
    }
}

/* Touch-friendly improvements for mobile */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets for mobile */
    button,
    .btn-success,
    .btn-danger,
    input[type="submit"],
    .button {
        min-height: 44px;
        padding: 12px 16px;
        font-size: 16px;
    }

    /* Better spacing for touch */
    .ip-blocker-tabs-nav button {
        min-height: 48px;
        padding: 14px 20px;
    }

    /* Table rows more touch-friendly */
    tbody tr {
        min-height: 48px;
    }

    tbody tr:hover {
        transform: none; /* Remove hover effects on touch devices */
        background: rgba(34, 113, 177, 0.05);
    }

    /* Checkboxes and radio buttons - larger touch targets */
    input[type="checkbox"],
    input[type="radio"] {
        width: 20px;
        height: 20px;
        margin-right: 12px;
    }

    /* Form labels - better touch targets */
    label {
        padding: 8px 0;
        display: block;
        cursor: pointer;
    }

    /* Modal buttons - touch friendly */
    .ipcbl-modal-footer button {
        min-width: 100px;
        margin: 4px;
    }
}

/* High DPI displays */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    /* Sharper borders and shadows for retina displays */
    .ip-blocker-container {
        border-width: 0.5px;
        box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
    }

    .security-section {
        border-width: 0.5px;
    }

    .location-section {
        border-width: 0.5px;
    }

    /* Better text rendering on high DPI */
    .ip-blocker-container h2,
    .ip-blocker-container h3,
    .security-section h3,
    .location-section h4 {
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
        text-rendering: optimizeLegibility;
    }
}
    }

    .stat-card {
        padding: 12px;
    }

    .stat-value {
        font-size: 2em;
    }
}

/* Dashboard Welcome */
.ip-blocker-container h2:first-child {
    margin-top: 0;
}

/* Smooth Scrolling */
html {
    scroll-behavior: smooth;
}

/* Focus Styles for Accessibility */
button:focus,
input:focus,
select:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* Custom Scrollbar (WebKit) */
::-webkit-scrollbar {
    width: 10px;
    height: 10px;
}

::-webkit-scrollbar-track {
    background: #f3f4f6;
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(135deg, #9ca3af 0%, #6b7280 100%);
    border-radius: 5px;
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(135deg, #6b7280 0%, #4b5563 100%);
}

/* Pagination Styles */
.pagination {
    margin: 12px 0;
    text-align: center;
}

.pagination a {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 2px;
    text-decoration: none;
    border: 1px solid #ddd;
    background: #fff;
    color: #333;
    border-radius: 4px;
    transition: background 0.3s, color 0.3s;
}

.pagination a.current {
    background: #007cba;
    color: white;
    border-color: #007cba;
}

.pagination a:hover {
    background: #f0f0f0;
    color: #333;
}

.pagination a.current:hover {
    background: #005a87;
    color: white;
}

/* ========================================
   Deactivation Survey Modal Styles
   ======================================== */

.ipcbl-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 999999;
    animation: ipcblFadeIn 0.3s ease-out;
}

.ipcbl-modal {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    animation: ipcblSlideIn 0.3s ease-out;
}

.ipcbl-modal-header {
    padding: 30px 30px 20px;
    border-bottom: 1px solid #e5e7eb;
    text-align: center;
}

.ipcbl-modal-header h2 {
    margin: 0 0 10px 0;
    font-size: 24px;
    font-weight: 700;
    color: #1f2937;
}

.ipcbl-modal-header p {
    margin: 0;
    font-size: 14px;
    color: #6b7280;
    line-height: 1.5;
}

.ipcbl-modal-body {
    padding: 16px 20px;
}

.ipcbl-survey-question {
    margin-bottom: 15px;
    padding: 15px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #f9fafb;
    transition: all 0.2s ease;
}

.ipcbl-survey-question:hover {
    border-color: #d1d5db;
    background: #f3f4f6;
}

.ipcbl-survey-question label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    margin: 0;
    font-weight: 500;
    color: #374151;
}

.ipcbl-survey-question input[type="radio"],
.ipcbl-survey-question input[type="checkbox"] {
    margin: 0 12px 0 0;
    margin-top: 2px;
    flex-shrink: 0;
}

.ipcbl-survey-question input[type="radio"]:checked + span,
.ipcbl-survey-question input[type="checkbox"]:checked + span {
    color: #2271b1;
    font-weight: 600;
}

.ipcbl-followup {
    margin-top: 12px;
    margin-left: 16px;
    animation: ipcblSlideDown 0.3s ease-out;
}

.ipcbl-followup input,
.ipcbl-followup textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 14px;
    margin-top: 5px;
    box-sizing: border-box;
}

.ipcbl-followup textarea {
    resize: vertical;
    min-height: 60px;
}

.ipcbl-modal-footer {
    padding: 16px 20px 20px;
    border-top: 1px solid #e5e7eb;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.ipcbl-btn {
    padding: 10px 20px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    min-width: 120px;
}

.ipcbl-btn-primary {
    background: #2271b1;
    color: white;
}

.ipcbl-btn-primary:hover {
    background: #1d5b9a;
    transform: translateY(-1px);
}

.ipcbl-btn-primary:disabled {
    background: #9ca3af;
    cursor: not-allowed;
    transform: none;
}

.ipcbl-btn-secondary {
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #d1d5db;
}

.ipcbl-btn-secondary:hover {
    background: #e5e7eb;
}

.ipcbl-thank-you {
    text-align: center;
    padding: 12px 0;
}

.ipcbl-thank-you h3 {
    margin: 0 0 10px 0;
    color: #059669;
    font-size: 18px;
}

.ipcbl-thank-you p {
    margin: 0;
    color: #6b7280;
}

@keyframes ipcblFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes ipcblSlideIn {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

@keyframes ipcblSlideDown {
    from {
        opacity: 0;
        max-height: 0;
        margin-top: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
        margin-top: 12px;
    }
}

/* Responsive Design */
@media (max-width: 600px) {
    .ipcbl-modal {
        width: 95%;
        margin: 12px;
    }

    .ipcbl-modal-header,
    .ipcbl-modal-body,
    .ipcbl-modal-footer {
        padding-left: 20px;
        padding-right: 20px;
    }

    .ipcbl-modal-footer {
        flex-direction: column;
    }

    .ipcbl-btn {
        width: 100%;
    }
}

/* ========================================
   Country Search Styles
   ======================================== */

.country-results {
    background: white;
    border: 1px solid #8c8f94;
    border-top: none;
    border-radius: 0 0 6px 6px;
    max-height: 220px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    scrollbar-width: thin;
    scrollbar-color: #c3c4c7 #f0f0f0;
}

.country-results::-webkit-scrollbar {
    width: 8px;
}

.country-results::-webkit-scrollbar-track {
    background: #f0f0f0;
    border-radius: 0 0 6px 0;
}

.country-results::-webkit-scrollbar-thumb {
    background: #c3c4c7;
    border-radius: 4px;
}

.country-results::-webkit-scrollbar-thumb:hover {
    background: #a7aaad;
}

.country-result-item {
    padding: 12px 16px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
    font-size: 14px;
    line-height: 1.4;
    color: #2c3338;
    user-select: none;
    position: relative;
}

.country-result-item:hover {
    background-color: #f8f9fa;
    color: #1d2327;
}

.country-result-item.selected {
    background-color: #007cba !important;
    color: white !important;
    font-weight: 600;
}

.country-result-item.selected::before {
    content: '✓';
    position: absolute;
    right: 12px;
    color: white;
    font-weight: bold;
}

.country-search-container {
    position: relative;
    display: inline-block;
    width: 100%;
    max-width: 350px;
}

.country-search-container input[type="text"] {
    width: 100%;
    padding: 10px 16px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    line-height: 1.4;
    color: #2c3338;
    background: white;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    margin-top: 13px;
}

.country-search-container input[type="text"]:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
    transform: translateY(-1px);
}

.country-search-container input[type="text"]::placeholder {
    color: #8c8f94;
    opacity: 1;
}

.country-result-item:last-child {
    border-bottom: none;
}

/* ========================================
   Enhanced Settings Styles
   ======================================== */

.settings-section {
    margin-bottom: 40px;
    padding: 16px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.settings-section h3 {
    margin: 0 0 12px 0;
    color: #1f2937;
    font-size: 1.3em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.settings-section .description {
    color: #6b7280;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.inline-form {
    display: inline-block;
    width: 100%;
}

.form-group {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

/* Theme Grid */
.theme-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin: 16px 0;
}

.theme-card {
    background: #fff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    cursor: pointer;
    position: relative;
}

.theme-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    border-color: #2271b1;
}

.theme-card.active {
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.theme-header {
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.theme-icon {
    font-size: 24px;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    flex: 1;
}

.active-badge {
    background: #2271b1;
    color: white;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.theme-desc {
    padding: 0 20px 16px;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.4;
}

.theme-select-btn {
    width: 100%;
    padding: 12px 20px;
    background: #f8f9fa;
    border: none;
    border-top: 1px solid #e5e7eb;
    color: #6b7280;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    font-size: 12px;
    letter-spacing: 0.5px;
}

.theme-card.active .theme-select-btn {
    background: #2271b1;
    color: white;
}

.theme-select-btn:hover {
    background: #2271b1;
    color: white;
}

/* Additional Settings */
.setting-item {
    margin-bottom: 16px;
    padding: 12px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.setting-item h4 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 1.1em;
    font-weight: 600;
}

.setting-item .description {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
}

.tips-list {
    margin: 12px 0 0 0;
    padding-left: 20px;
}

.tips-list li {
    margin-bottom: 6px;
    color: #6b7280;
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .theme-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .theme-card {
        margin: 0;
    }

    .form-group {
        flex-direction: column;
        align-items: stretch;
    }

    .form-group input[type="submit"] {
        margin-left: 0;
        margin-top: 10px;
    }

    .settings-section {
        padding: 16px;
    }
}

/* ========================================
   Security Section Styles - Fix Gap Issues
   ======================================== */

#advanced-security-form {
    margin-top: 0;
    margin-bottom: 0;
}

.security-section {
    margin-bottom: 30px;
    padding: 12px;
    background: #fafafa;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.security-section:first-child {
    margin-top: -15px;
}

.security-section h3 {
    margin: 0 0 12px 0;
    color: #1f2937;
    font-size: 1.3em;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.security-section .description {
    color: #6b7280;
    margin-bottom: 12px;
    font-size: 14px;
    line-height: 1.5;
}

.security-section:last-child {
    margin-bottom: 0;
}

/* ========================================
   CAPTCHA Container Styles
   ======================================== */

.captcha-container {
    margin: 10px 0;
    padding: 10px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    background: #f9fafb;
}

.captcha-container label {
    font-weight: 600;
    color: #374151;
    margin-bottom: 5px;
    display: block;
}

/* Location Sections */
.location-section {
    margin-bottom: 12px;
    padding: 15px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    border-radius: 6px;
}

.location-section h4 {
    margin: 0 0 15px 0;
    color: #495057;
    font-size: 14px;
    font-weight: 600;
}

/* ========================================
   Advanced Security Tab Redesign
   ======================================== */

.security-overview {
    margin-bottom: 24px;
}

.overview-header {
    text-align: center;
    margin-bottom: 24px;
}

.overview-header h2 {
    margin: 0 0 8px 0;
    color: #1f2937;
    font-size: 1.5em;
    font-weight: 700;
}

.overview-description {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
    max-width: 600px;
    margin: 0 auto;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.save-button {
    padding: 12px 24px;
    font-size: 16px;
    font-weight: 600;
    min-width: 160px;
}

.features-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 16px;
    margin-bottom: 24px;
}

.feature-card {
    flex: 0 0 auto;
    width: 300px;
    max-width: 100%;
}

.feature-card {
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #e5e7eb;
    transition: all 0.3s ease;
}

.feature-card.active {
    border-color: #2271b1;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.15);
}

.feature-card.active::before {
    background: linear-gradient(135deg, #2271b1 0%, #1d4ed8 100%);
    height: 6px;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.feature-header {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 12px;
}

.feature-icon {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
    transition: all 0.3s ease;
}

.feature-card.active .feature-icon {
    background: #2271b1;
    color: #ffffff;
}

.feature-title {
    flex: 1;
    min-width: 0;
}

.feature-title h3 {
    margin: 0 0 4px 0;
    font-size: 1.1em;
    font-weight: 600;
    color: #1f2937;
}

.feature-status {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.feature-status.enabled {
    background: #dcfce7;
    color: #166534;
}

.feature-status.disabled {
    background: #f3f4f6;
    color: #6b7280;
}

.feature-description {
    margin: 0 0 16px 0;
    color: #6b7280;
    font-size: 13px;
    line-height: 1.5;
}

.feature-toggle {
    display: flex;
    justify-content: flex-end;
}

/* Toggle Switch */
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 50px;
    height: 24px;
}

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

.toggle-slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #ccc;
    transition: 0.4s;
    border-radius: 24px;
}

.toggle-slider:before {
    position: absolute;
    content: "";
    height: 18px;
    width: 18px;
    left: 3px;
    bottom: 3px;
    background-color: white;
    transition: 0.4s;
    border-radius: 50%;
}

input:checked + .toggle-slider {
    background: linear-gradient(135deg, #2271b1 0%, #1d4ed8 100%);
}

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

/* Security Section Redesign */
.security-section {
    background: #fafafa;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.security-section.visible {
    opacity: 1;
    max-height: 1000px;
    transform: translateY(0);
}

.security-section.hidden {
    opacity: 0;
    max-height: 0;
    transform: translateY(-10px);
    margin-bottom: 0;
    border: none;
    background: transparent;
}

.section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    background: #ffffff;
    border-bottom: 1px solid #e5e7eb;
}

.section-icon {
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 6px;
    background: #f3f4f6;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6b7280;
}

.section-header h3 {
    margin: 0;
    font-size: 1.2em;
    font-weight: 600;
    color: #1f2937;
}

.section-content {
    padding: 20px;
}

.section-description {
    margin: 0 0 20px 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

/* Form Grid */
.form-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 20px;
}

/* Ensure site key and secret key inputs have same width */
.form-grid .form-group input[type="text"],
.form-grid .form-group input[type="password"] {
    width: 100%;
    max-width: none;
    min-width: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group label {
    margin-bottom: 6px;
    font-weight: 600;
    color: #374151;
    font-size: 14px;
}

.form-group input,
.form-group select {
    padding: 10px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
    background: #ffffff;
}

.form-group input:focus,
.form-group select:focus {
    border-color: #2271b1;
    outline: none;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
}

.field-description {
    margin: 6px 0 0 0;
    font-size: 12px;
    color: #6b7280;
    line-height: 1.4;
}

/* Locations Grid */
.locations-grid {
    margin-bottom: 24px;
}

.locations-grid.visible {
    display: block;
}

.locations-grid.hidden {
    display: none;
}

.locations-grid h4 {
    margin: 0 0 16px 0;
    font-size: 1em;
    font-weight: 600;
    color: #1f2937;
    display: flex;
    align-items: center;
    gap: 8px;
}

.locations-grid h4::before {
    content: '';
    width: 4px;
    height: 16px;
    background: #2271b1;
    border-radius: 2px;
}

/* Checkbox Grid */
.checkbox-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.checkbox-item {
    position: relative;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: #ffffff;
    border: 2px solid #e5e7eb;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 14px;
}

.checkbox-item:hover {
    border-color: #2271b1;
    background: #f8fafc;
}

.checkbox-item input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    cursor: pointer;
}

.checkmark {
    position: relative;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 4px;
    margin-right: 12px;
    transition: all 0.3s ease;
    flex-shrink: 0;
}

.checkbox-item input:checked ~ .checkmark {
    background: #2271b1;
    border-color: #2271b1;
}

.checkbox-item input:checked ~ .checkmark::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 4px;
    height: 8px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

.checkbox-label {
    color: #374151;
    font-weight: 500;
    user-select: none;
}

/* No CAPTCHA Notice */
.no-captcha-notice {
    display: block;
}

.no-captcha-notice.hidden {
    display: none;
}

.notice-icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    color: #f59e0b;
    margin-top: 2px;
}

.notice-content h4 {
    margin: 0 0 4px 0;
    color: #92400e;
    font-size: 14px;
    font-weight: 600;
}

.notice-content p {
    margin: 0;
    color: #92400e;
    font-size: 13px;
    line-height: 1.4;
}

/* Lockout Info */
.lockout-info {
    margin-top: 20px;
    padding: 16px;
    background: #f0f9ff;
    border: 1px solid #0ea5e9;
    border-radius: 8px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    gap: 10px;
}

.info-icon {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    color: #0ea5e9;
    margin-top: 2px;
}

.info-content strong {
    display: block;
    color: #0c4a6e;
    font-size: 13px;
    margin-bottom: 2px;
}

.info-content span {
    color: #0c4a6e;
    font-size: 13px;
}

/* Responsive Design for Advanced Security */
@media (max-width: 768px) {
    .features-grid {
        flex-direction: column;
        gap: 12px;
    }

    .feature-card {
        width: 100%;
    }

    .feature-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .feature-toggle {
        align-self: flex-end;
        margin-top: -8px;
    }

    .form-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .checkbox-grid {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .section-header {
        padding: 12px 16px;
    }

    .section-content {
        padding: 16px;
    }

    .header-actions {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .header-content {
        text-align: center;
    }

    .header-buttons {
        justify-content: center;
    }

    .form-actions {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .overview-header h2 {
        font-size: 1.3em;
    }

    .feature-card {
        padding: 16px;
    }

    .section-header h3 {
        font-size: 1.1em;
    }

    .checkbox-item {
        padding: 10px 12px;
        font-size: 13px;
    }

    .header-buttons .button {
        font-size: 13px;
        padding: 8px 16px;
    }

    .form-actions {
        justify-content: center;
    }

    .save-button {
        padding: 10px 20px;
        font-size: 15px;
        min-width: 140px;
    }
}

/* ========================================
   Professional Services Section
   ======================================== */

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 24px;
    margin: 24px 0;
}

.service-card {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    position: relative;
    transition: all 0.3s ease;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    border-color: #2271b1;
}

.service-card.featured {
    border-color: #2271b1;
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.15);
}

.service-badge {
    position: absolute;
    top: -10px;
    right: 20px;
    background: linear-gradient(135deg, #2271b1, #1d5d99);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.service-icon {
    font-size: 48px;
    text-align: center;
    margin-bottom: 16px;
}

.service-card h3 {
    color: #1f2937;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
    text-align: center;
}

.service-card p {
    color: #6b7280;
    font-size: 14px;
    line-height: 1.6;
    margin: 0 0 20px 0;
    text-align: center;
}

.service-features {
    list-style: none;
    padding: 0;
    margin: 0 0 24px 0;
}

.service-features li {
    color: #374151;
    font-size: 13px;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.service-features li:before {
    content: "✓";
    color: #10b981;
    font-weight: bold;
    position: absolute;
    left: 0;
}

.service-price {
    text-align: center;
    margin-bottom: 20px;
}

.service-price .price {
    font-size: 32px;
    font-weight: 800;
    color: #1f2937;
    display: block;
}

.service-price .period {
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
}

.btn-service {
    display: inline-block;
    width: 100%;
    padding: 12px 24px;
    background: linear-gradient(135deg, #2271b1, #1d5d99);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 14px;
}

.btn-service:hover {
    background: linear-gradient(135deg, #1d5d99, #1a4d7a);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(34, 113, 177, 0.3);
}

.btn-service.featured {
    background: linear-gradient(135deg, #10b981, #059669);
}

.btn-service.featured:hover {
    background: linear-gradient(135deg, #059669, #047857);
}

.btn-service.development {
    background: linear-gradient(135deg, #7c3aed, #6d28d9);
}

.btn-service.development:hover {
    background: linear-gradient(135deg, #6d28d9, #5b21b6);
}

.services-contact {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    text-align: center;
}

.services-contact h3 {
    color: #1f2937;
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.services-contact p {
    color: #6b7280;
    font-size: 16px;
    margin: 0 0 20px 0;
}

.contact-methods {
    display: flex;
    gap: 16px;
    justify-content: center;
    flex-wrap: wrap;
}

.contact-email,
.contact-whatsapp {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    background: white;
    color: #374151;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.contact-email:hover,
.contact-whatsapp:hover {
    background: #2271b1;
    color: white;
    border-color: #2271b1;
    transform: translateY(-1px);
}

.contact-icon {
    font-size: 16px;
}

.security-guarantee {
    background: linear-gradient(135deg, #fef3c7, #fde68a);
    border: 1px solid #f59e0b;
    border-radius: 12px;
    padding: 24px;
    margin: 32px 0;
    text-align: center;
    position: relative;
}

.security-guarantee .guarantee-icon {
    font-size: 48px;
    margin-bottom: 16px;
}

.security-guarantee h3 {
    color: #92400e;
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 12px 0;
}

.security-guarantee p {
    color: #78350f;
    font-size: 14px;
    line-height: 1.6;
    margin: 0;
}

/* Responsive Design for Services */
@media (max-width: 768px) {
    .services-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .service-card {
        padding: 20px;
    }

    .contact-methods {
        flex-direction: column;
        align-items: center;
    }

    .contact-email,
    .contact-whatsapp {
        width: 100%;
        max-width: 300px;
        justify-content: center;
    }
}

/* Modal Body Scroll Prevention */
body.ipcbl-modal-open {
    overflow: hidden;
    position: fixed;
    width: 100%;
    height: 100%;
}

/* Form Elements - Block IP/Country Forms */
.ip-blocker-form textarea[name="block_ips"] {
    width: 100%;
    max-width: 500px;
    font-family: monospace;
    padding: 10px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    resize: vertical;
    min-height: 120px;
}

.ip-blocker-form label[for="block_duration"] {
    display: block;
    margin-top: 10px;
    font-weight: 500;
    color: #1d2327;
}

.ip-blocker-form select[name="block_duration"] {
    margin-top: 5px;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    min-width: 200px;
    background: #fff;
}

.ip-blocker-form input[type="submit"].btn-primary {
    margin-top: 15px;
    padding: 10px 20px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.ip-blocker-form input[type="submit"].btn-primary:hover {
    background: #1d5d99;
}

/* Country Search Styles */
.country-search-container {
    position: relative;
    margin-bottom: 15px;
}

.country-search-container input[type="text"] {
    min-width: 300px;
    padding: 8px 12px;
    border: 2px solid #e5e7eb;
    border-radius: 4px;
    font-size: 14px;
}

.country-search-container input[type="text"]:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 3px rgba(34, 113, 177, 0.1);
    transform: translateY(-1px);
}

.country-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #8c8f94;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.country-results .country-item {
    padding: 8px 12px;
    cursor: pointer;
    border-bottom: 1px solid #f0f0f0;
}

.country-results .country-item:hover {
    background: #f8f9fa;
}

.country-results .country-item:last-child {
    border-bottom: none;
}

.ip-blocker-form input[type="submit"][id="block-country-submit"] {
    margin-top: 10px;
}

/* Search Inputs for Tables */
.search-container {
    margin-bottom: 15px;
    display: flex;
    justify-content: flex-end;
}

.search-container input[type="text"] {
    width: 100%;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.search-container input[type="text"]:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

/* Section Header with Search */
.section-header-with-search {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.section-header-with-search h3 {
    margin: 0;
}

.section-header-with-search .search-container {
    margin-bottom: 0;
    margin-left: 20px;
}

/* Section Header with Action Button */
.section-header-with-action {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 20px;
}

.section-header-with-action .section-info {
    flex: 1;
}

.section-header-with-action .section-info h2 {
    margin: 0 0 8px 0;
    font-size: 1.5em;
    font-weight: 600;
    color: #1f2937;
}

.section-header-with-action .section-info .description {
    margin: 0;
    color: #6b7280;
    font-size: 14px;
    line-height: 1.5;
}

.section-header-with-action .section-actions {
    flex-shrink: 0;
    margin-left: 20px;
}

.section-header-with-action .section-actions form {
    margin: 0;
}

/* Table Cell Styles */
.ip-blocker-table td form {
    margin: 0;
}

.ip-blocker-table td form input[type="submit"].btn-danger {
    padding: 4px 8px;
    background: #dc3545;
    color: #fff;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 12px;
    transition: background-color 0.2s ease;
}

.ip-blocker-table td form input[type="submit"].btn-danger:hover {
    background: #c82333;
}

.ip-blocker-table td[style*="max-width"] {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* Custom Error Message Form */
.custom-error-form input[type="text"] {
    width: 100%;
    max-width: 500px;
    padding: 8px 12px;
    border: 1px solid #8c8f94;
    border-radius: 4px;
    font-size: 14px;
}

.custom-error-form input[type="text"]:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

.custom-error-form input[type="submit"] {
    margin-top: 10px;
    padding: 8px 16px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.2s ease;
}

.custom-error-form input[type="submit"]:hover {
    background: #1d5d99;
}

/* Spinner Styles */
.spinner {
    float: none !important;
    margin-top: 0 !important;
    visibility: hidden;
}

/* Table Cell Styles */
.request-uri-cell {
    max-width: 200px;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Custom Notice Styles (without WordPress admin notice classes) */
.ip-blocker-notice {
    padding: 12px 16px;
    margin: 16px 0;
    border-radius: 6px;
    border-left: 4px solid;
    font-size: 14px;
    line-height: 1.4;
}

.ip-blocker-success {
    background-color: #f0f9ff;
    border-left-color: #10b981;
    color: #065f46;
}

.ip-blocker-error {
    background-color: #fef2f2;
    border-left-color: #ef4444;
    color: #991b1b;
}

.ip-blocker-notice p {
    margin: 0;
    padding: 0;
    font-weight: 500;
}

/* ========================================
   Visibility Control Classes
   ======================================== */

.visible {
    display: block !important;
}

.hidden {
    display: none !important;
}

/* ========================================
   WordPress Footer Fix
   ======================================== */

#wpfooter {
    clear: both;
    margin-top: 20px;
    position: relative !important;
    top: auto !important;
    bottom: auto !important;
    left: auto !important;
    right: auto !important;
}

/* ========================================
   Footer Thank You Section
   ======================================== */

.footer-thankyou {
    margin-top: 40px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    text-align: center;
    border: 1px solid #e9ecef;
}

.footer-thankyou .support-actions {
    margin-bottom: 15px;
    justify-content: center;
}

.footer-thankyou p {
    margin: 0;
    color: #6c757d;
    font-size: 14px;
}

.footer-thankyou a {
    color: #2271b1;
    text-decoration: none !important;
}

.footer-thankyou a:hover {
    text-decoration: underline;
}

.footer-thankyou .btn-review {
    color: #fff !important;
}

/* Footer Links and Social Icons */
.footer-links {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    padding: 20px 0;
    border-top: 2px solid #e1e5e9;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
    gap: 20px;
}

.social-icons {
    display: flex;
    gap: 15px;
}

.social-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #ffffff;
    color: #6c757d;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #e1e5e9;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.social-icon:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.social-icon.facebook:hover {
    background: #1877f2;
    color: #fff;
    border-color: #1877f2;
}

.social-icon.whatsapp:hover {
    background: #25d366;
    color: #fff;
    border-color: #25d366;
}

.social-icon.telegram:hover {
    background: #0088cc;
    color: #fff;
    border-color: #0088cc;
}

.resource-links {
    display: flex;
    gap: 25px;
    flex-wrap: wrap;
}

.resource-link {
    color: #2271b1;
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    transition: all 0.3s ease;
    padding: 8px 12px;
    border-radius: 6px;
    background: rgba(34, 113, 177, 0.05);
    border: 1px solid rgba(34, 113, 177, 0.1);
}

.resource-link:hover {
    color: #135e96;
    background: rgba(34, 113, 177, 0.1);
    border-color: rgba(34, 113, 177, 0.2);
    transform: translateY(-1px);
    box-shadow: 0 2px 6px rgba(34, 113, 177, 0.15);
}

/* Responsive adjustments for footer links */
@media (max-width: 768px) {
    .footer-links {
        flex-direction: column;
        align-items: center;
        gap: 15px;
        padding: 15px;
    }

    .social-icons {
        order: 2;
    }

    .resource-links {
        order: 1;
        gap: 15px;
        justify-content: center;
    }

    .resource-link {
        font-size: 13px;
        padding: 6px 10px;
    }
}

/* ========================================
   2FA Verification Styles
   ======================================== */

.verification-section {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e1e5e9;
}

.verification-section h4 {
    margin: 0 0 10px 0;
    color: #1d2327;
    font-size: 16px;
    font-weight: 600;
}

.verification-input-group {
    display: flex;
    gap: 10px;
    margin: 15px 0;
    align-items: center;
}

.verification-code-input {
    flex: 0 0 120px;
    padding: 10px;
    border: 2px solid #ddd;
    border-radius: 6px;
    font-size: 16px;
    font-family: monospace;
    text-align: center;
    transition: border-color 0.3s ease;
}

.verification-code-input:focus {
    outline: none;
    border-color: #2271b1;
    box-shadow: 0 0 0 2px rgba(34, 113, 177, 0.1);
}

.verify-button {
    padding: 10px 16px;
    background: #2271b1;
    color: #fff;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.verify-button:hover:not(:disabled) {
    background: #135e96;
}

.verify-button:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.verification-status {
    margin: 10px 0;
    padding: 8px 12px;
    border-radius: 4px;
    font-weight: 500;
}

.verification-status.success {
    background: #d1edff;
    color: #0a58ca;
    border: 1px solid #b6d4fe;
}

.verification-status.error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}

.enable-2fa-section {
    margin-top: 15px;
    padding: 15px;
    background: #d1edff;
    border: 1px solid #b6d4fe;
    border-radius: 6px;
}

.success-message {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #0a58ca;
    font-weight: 500;
    margin-bottom: 12px;
}

.enable-2fa-btn {
    background: #0a58ca;
    color: #fff;
    border: none;
    padding: 8px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.enable-2fa-btn:hover:not(:disabled) {
    background: #084298;
}

.enable-2fa-btn:disabled {
    background: #ccc;
    cursor: not-allowed;
}

.setup-2fa-btn {
    padding: 8px 16px;
    background: #ffc107;
    color: #212529;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 500;
    transition: background-color 0.3s ease;
}

.setup-2fa-btn:hover {
    background: #e0a800;
}

/* ========================================
   Activity Icons
   ======================================== */

.activity-icon-svg {
    width: 20px;
    height: 20px;
}

.activity-icon-svg.text-success {
    color: #10b981;
}

.activity-icon-svg.text-primary {
    color: #3b82f6;
}

.activity-icon-svg.text-warning {
    color: #f59e0b;
}

.activity-icon-svg.text-danger {
    color: #ef4444;
}/* Recovery Codes Styling */
.recovery-codes-section {
    margin-top: 20px;
    padding: 20px;
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    border-radius: 8px;
}

.recovery-codes-header h4 {
    margin: 0 0 10px 0;
    color: #856404;
    font-size: 16px;
    font-weight: 600;
}

.recovery-codes-header p {
    margin: 0 0 15px 0;
    color: #856404;
    font-size: 14px;
    line-height: 1.4;
}

.recovery-codes-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 10px;
    margin-bottom: 20px;
}

.recovery-code-item {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    text-align: center;
    font-family: monospace;
    font-size: 14px;
    font-weight: 600;
    color: #333;
    word-break: break-all;
}

.recovery-codes-actions {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
    flex-wrap: wrap;
}

.recovery-codes-actions .button {
    flex: 1;
    min-width: 150px;
}

.recovery-codes-warning {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    border-radius: 4px;
    padding: 12px;
    color: #721c24;
    font-size: 13px;
    line-height: 1.4;
}

.recovery-codes-warning strong {
    display: block;
    margin-bottom: 5px;
}

/* Dark mode support */
body.dark-mode .recovery-codes-section {
    background: #2d1b0f;
    border-color: #5d4a2a;
}

body.dark-mode .recovery-codes-header h4,
body.dark-mode .recovery-codes-header p {
    color: #d4a574;
}

body.dark-mode .recovery-code-item {
    background: #3a3a3a;
    border-color: #555;
    color: #e0e0e0;
}

body.dark-mode .recovery-codes-warning {
    background: #2d1b1e;
    border-color: #5d3a3e;
    color: #d4a5a9;
}
/ *   Q R   S e c t i o n   S t y l i n g   * / 
 . q r - s e c t i o n   { 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   f l e x - s t a r t ; 
         g a p :   2 0 p x ; 
         m a r g i n - b o t t o m :   2 0 p x ; 
 } 
 
 . q r - c o d e - c o n t a i n e r   { 
         f l e x - s h r i n k :   0 ; 
 } 
 
 . q r - i n f o   { 
         f l e x :   1 ; 
 } 
 
 . q r - d o w n l o a d - s e c t i o n   { 
         f l e x - s h r i n k :   0 ; 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
 } 
 
 . q r - d o w n l o a d - s e c t i o n   . b u t t o n   { 
         w h i t e - s p a c e :   n o w r a p ; 
 } 
 
 / *   R e c o v e r y   C o d e s   S t y l e s   * / 
 . r e c o v e r y - c o d e s - s e c t i o n   { 
         m a r g i n - t o p :   2 0 p x ; 
         p a d d i n g :   2 0 p x ; 
         b a c k g r o u n d :   # f 8 f 9 f a ; 
         b o r d e r :   1 p x   s o l i d   # e 5 e 7 e b ; 
         b o r d e r - r a d i u s :   8 p x ; 
 } 
 
 . r e c o v e r y - c o d e s - h e a d e r   h 4   { 
         m a r g i n :   0   0   1 0 p x   0 ; 
         c o l o r :   # d 3 2 f 2 f ; 
         f o n t - s i z e :   1 6 p x ; 
         f o n t - w e i g h t :   6 0 0 ; 
 } 
 
 . r e c o v e r y - c o d e s - h e a d e r   p   { 
         m a r g i n :   0   0   1 5 p x   0 ; 
         c o l o r :   # 6 b 7 2 8 0 ; 
         f o n t - s i z e :   1 4 p x ; 
         l i n e - h e i g h t :   1 . 5 ; 
 } 
 
 . r e c o v e r y - c o d e s - l i s t   { 
         d i s p l a y :   g r i d ; 
         g r i d - t e m p l a t e - c o l u m n s :   r e p e a t ( a u t o - f i t ,   m i n m a x ( 1 2 0 p x ,   1 f r ) ) ; 
         g a p :   1 0 p x ; 
         m a r g i n - b o t t o m :   2 0 p x ; 
 } 
 
 . r e c o v e r y - c o d e - i t e m   { 
         b a c k g r o u n d :   # f f f ; 
         b o r d e r :   1 p x   s o l i d   # e 5 e 7 e b ; 
         b o r d e r - r a d i u s :   4 p x ; 
         p a d d i n g :   8 p x   1 2 p x ; 
         t e x t - a l i g n :   c e n t e r ; 
         f o n t - f a m i l y :   m o n o s p a c e ; 
         f o n t - s i z e :   1 4 p x ; 
         f o n t - w e i g h t :   5 0 0 ; 
         c o l o r :   # 3 7 4 1 5 1 ; 
         w o r d - b r e a k :   b r e a k - a l l ; 
 } 
 
 . r e c o v e r y - c o d e s - a c t i o n s   { 
         d i s p l a y :   f l e x ; 
         g a p :   1 0 p x ; 
         m a r g i n - b o t t o m :   1 5 p x ; 
         f l e x - w r a p :   w r a p ; 
 } 
 
 . r e c o v e r y - c o d e s - a c t i o n s   . b u t t o n   { 
         f l e x :   1 ; 
         m i n - w i d t h :   1 4 0 p x ; 
 } 
 
 . r e c o v e r y - c o d e s - w a r n i n g   { 
         b a c k g r o u n d :   # f f f 3 c d ; 
         b o r d e r :   1 p x   s o l i d   # f f e a a 7 ; 
         b o r d e r - r a d i u s :   4 p x ; 
         p a d d i n g :   1 2 p x ; 
         f o n t - s i z e :   1 3 p x ; 
         c o l o r :   # 8 5 6 4 0 4 ; 
         l i n e - h e i g h t :   1 . 4 ; 
 } 
 
 . r e c o v e r y - c o d e s - w a r n i n g   s t r o n g   { 
         c o l o r :   # d 6 8 9 1 0 ; 
 } 
 
 / *   2 F A   E m a i l   D i s p l a y   * / 
 . e m a i l - d i s p l a y   { 
         b a c k g r o u n d :   # f 8 f 9 f a ; 
         b o r d e r :   1 p x   s o l i d   # e 9 e c e f ; 
         b o r d e r - r a d i u s :   6 p x ; 
         p a d d i n g :   1 2 p x   1 6 p x ; 
         m a r g i n :   8 p x   0 ; 
         d i s p l a y :   f l e x ; 
         a l i g n - i t e m s :   c e n t e r ; 
         j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ; 
         f l e x - w r a p :   w r a p ; 
         g a p :   8 p x ; 
 } 
 
 . e m a i l - d i s p l a y   s t r o n g   { 
         c o l o r :   # 2 2 7 1 b 1 ; 
         f o n t - s i z e :   1 4 p x ; 
         f o n t - w e i g h t :   6 0 0 ; 
 } 
 
 . e m a i l - s t a t u s   { 
         f o n t - s i z e :   1 2 p x ; 
         c o l o r :   # 6 b 7 2 8 0 ; 
         f o n t - s t y l e :   i t a l i c ; 
 } 
 
 / *   2 F A   E m a i l   D i s p l a y   * / 
 
 . e m a i l - d i s p l a y   {   b a c k g r o u n d :   # f 8 f 9 f a ;   b o r d e r :   1 p x   s o l i d   # e 9 e c e f ;   b o r d e r - r a d i u s :   6 p x ;   p a d d i n g :   1 2 p x   1 6 p x ;   m a r g i n :   8 p x   0 ;   d i s p l a y :   f l e x ;   a l i g n - i t e m s :   c e n t e r ;   j u s t i f y - c o n t e n t :   s p a c e - b e t w e e n ;   f l e x - w r a p :   w r a p ;   g a p :   8 p x ;   } 
 
 . e m a i l - d i s p l a y   s t r o n g   {   c o l o r :   # 2 2 7 1 b 1 ;   f o n t - s i z e :   1 4 p x ;   f o n t - w e i g h t :   6 0 0 ;   } 
 
 . e m a i l - s t a t u s   {   f o n t - s i z e :   1 2 p x ;   c o l o r :   # 6 b 7 2 8 0 ;   f o n t - s t y l e :   i t a l i c ;   } 
 
 