/**
 * Theme System - Nordersun Homepage v6.2
 * Light/Dark mode support with CSS variables
 */

/* =========================================
   CSS VARIABLES - LIGHT THEME (Default)
   ========================================= */
:root {
    /* Primary Colors */
    --primary: #0071dc;
    --primary-dark: #004f9a;
    --primary-light: #e6f2ff;
    --secondary: #ffc220;

    /* Backgrounds */
    --bg-body: #ffffff;
    --bg-card: #ffffff;
    --bg-input: #ffffff;
    --bg-hover: #f5f5f5;
    --bg-overlay: rgba(0, 0, 0, 0.5);

    /* Text Colors */
    --text-primary: #1f2937;
    --text-secondary: #6b7280;
    --text-muted: #9ca3af;
    --text-inverse: #ffffff;

    /* Borders */
    --border-color: #e5e7eb;
    --border-light: #f3f4f6;

    /* Status Colors */
    --success: #10b981;
    --success-light: #d1fae5;
    --danger: #ef4444;
    --danger-light: #fee2e2;
    --warning: #f59e0b;
    --warning-light: #fef3c7;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    /* Transitions */
    --transition-fast: 0.15s ease;
    --transition-normal: 0.3s ease;
}

/* =========================================
   CSS VARIABLES - DARK THEME
   ========================================= */
[data-theme="dark"] {
    /* Primary Colors - Neon style */
    --primary: #60a5fa;
    --primary-dark: #3b82f6;
    --primary-light: rgba(96, 165, 250, 0.15);
    --secondary: #fbbf24;

    /* Backgrounds */
    --bg-body: #0a0a12;
    --bg-card: rgba(18, 18, 28, 0.95);
    --bg-input: rgba(30, 30, 45, 0.8);
    --bg-hover: rgba(40, 40, 60, 0.8);
    --bg-overlay: rgba(0, 0, 0, 0.8);

    /* Text Colors */
    --text-primary: #f1f5f9;
    --text-secondary: #a0aec0;
    --text-muted: #64748b;
    --text-inverse: #0a0a12;

    /* Borders */
    --border-color: rgba(99, 102, 241, 0.2);
    --border-light: rgba(139, 92, 246, 0.1);

    /* Status Colors */
    --success: #34d399;
    --success-light: rgba(52, 211, 153, 0.15);
    --danger: #f87171;
    --danger-light: rgba(248, 113, 113, 0.15);
    --warning: #fbbf24;
    --warning-light: rgba(251, 191, 36, 0.15);

    /* Neon Effects */
    --neon-blue: #60a5fa;
    --neon-purple: #a78bfa;
    --neon-cyan: #22d3ee;
    --neon-glow: 0 0 20px rgba(96, 165, 250, 0.3);

    /* Shadows - Darker */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.4);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.5);
    --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.5);

    /* Glass Effect */
    --glass-bg: rgba(255, 255, 255, 0.03);
    --glass-border: rgba(255, 255, 255, 0.08);
}

/* =========================================
   GLOBAL TRANSITIONS FOR THEME SWITCHING
   ========================================= */
body,
body *,
body *::before,
body *::after {
    transition:
        background-color 0.3s ease,
        border-color 0.3s ease,
        color 0.3s ease,
        box-shadow 0.3s ease;
}

/* Exclude elements that shouldn't transition */
input,
button,
a {
    transition:
        background-color 0.15s ease,
        border-color 0.15s ease,
        color 0.15s ease;
}

/* =========================================
   BASE THEME STYLES
   ========================================= */
body {
    background-color: var(--bg-body);
    color: var(--text-primary);
}

/* Hero Section */
.hero {
    background-color: var(--bg-body);
}

.hero-title {
    color: var(--primary);
}

.hero-title .highlight-text {
    color: var(--secondary);
}

.hero-subtitle-es {
    color: var(--primary);
}

/* Search Box */
.search-container,
.search-box {
    background: var(--bg-card);
    border-color: var(--border-color);
}

.search-input {
    background: transparent;
    color: var(--text-primary);
}

.search-input::placeholder {
    color: var(--text-muted);
}

/* Menu */
.top-menu {
    background: var(--bg-card);
    border-bottom: 1px solid var(--border-color);
}

.menu-logo-text {
    color: var(--primary);
}

.menu-item {
    color: var(--text-primary);
}

.menu-item:hover {
    background: var(--bg-hover);
}

/* Features Section */
.features-section {
    background-color: var(--bg-body);
}

.feature-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.feature-title {
    color: var(--text-primary);
}

.feature-description {
    color: var(--text-secondary);
}

/* Sections */
.section {
    background-color: var(--bg-body);
}

.section-title {
    color: var(--text-primary);
}

.section-description {
    color: var(--text-secondary);
}

/* Footer */
.footer {
    background-color: var(--bg-card);
    border-top: 1px solid var(--border-color);
}

.footer-text {
    color: var(--text-secondary);
}

.footer-link {
    color: var(--text-secondary);
}

.footer-link:hover {
    color: var(--primary);
}

/* Modals */
.modal-overlay {
    background: var(--bg-overlay);
}

.modal-content {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
}

.modal-title {
    color: var(--text-primary);
}

.modal-close {
    color: var(--text-secondary);
}

.modal-close:hover {
    color: var(--text-primary);
}

/* Buttons */
.btn-primary {
    background: var(--primary);
    color: var(--text-inverse);
}

.btn-primary:hover {
    background: var(--primary-dark);
}

.btn-secondary {
    background: var(--bg-hover);
    color: var(--text-primary);
    border: 1px solid var(--border-color);
}

.btn-secondary:hover {
    background: var(--border-color);
}

/* =========================================
   DARK MODE SPECIFIC ENHANCEMENTS
   ========================================= */

/* Neon glow effects on hover */
[data-theme="dark"] .feature-card:hover {
    border-color: var(--neon-blue);
    box-shadow: var(--neon-glow);
}

[data-theme="dark"] .search-box:focus-within {
    border-color: var(--neon-blue);
    box-shadow: var(--neon-glow);
}

[data-theme="dark"] .btn-primary {
    background: linear-gradient(135deg, var(--neon-blue) 0%, var(--neon-purple) 100%);
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .btn-primary:hover {
    box-shadow: 0 6px 25px rgba(96, 165, 250, 0.5);
    transform: translateY(-2px);
}

/* Background glow */
[data-theme="dark"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(96, 165, 250, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* Glass effect for cards */
[data-theme="dark"] .feature-card,
[data-theme="dark"] .modal-content {
    backdrop-filter: blur(10px);
}

/* Menu in dark mode */
[data-theme="dark"] .top-menu {
    background: rgba(14, 14, 22, 0.95);
    backdrop-filter: blur(20px);
}

/* Header (Navbar) - Dark mode override */
[data-theme="dark"] .header {
    background: linear-gradient(135deg, #0d1525 0%, #0a0f1a 100%) !important;
    box-shadow: 0 2px 15px rgba(0, 0, 0, 0.4), 0 0 30px rgba(96, 165, 250, 0.05) !important;
    border-bottom: 1px solid rgba(96, 165, 250, 0.15);
}

/* =========================================
   DARK MODE OVERRIDES FOR EXISTING STYLES
   ========================================= */

/* Body */
[data-theme="dark"] body {
    background-color: #0a0a12 !important;
    color: #f1f5f9;
}

/* Hero Section */
[data-theme="dark"] .hero {
    background-color: #0a0a12 !important;
}

[data-theme="dark"] .hero-title {
    color: #60a5fa;
}

[data-theme="dark"] .hero-subtitle-es {
    color: #60a5fa;
}

/* Search Box */
[data-theme="dark"] .country-search-box {
    background: rgba(18, 18, 28, 0.95) !important;
    border-color: rgba(96, 165, 250, 0.5) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4), 0 0 30px rgba(96, 165, 250, 0.1);
}

[data-theme="dark"] .country-search-box:hover,
[data-theme="dark"] .country-search-box:focus-within {
    border-color: #60a5fa !important;
    box-shadow: 0 6px 30px rgba(96, 165, 250, 0.3), 0 0 40px rgba(96, 165, 250, 0.15);
}

[data-theme="dark"] .country-search-input,
[data-theme="dark"] .country-search-box input,
[data-theme="dark"] .country-search-box input[type="text"] {
    color: #f1f5f9 !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    border-width: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
}

[data-theme="dark"] .country-search-input:focus,
[data-theme="dark"] .country-search-input:active,
[data-theme="dark"] .country-search-input:focus-visible,
[data-theme="dark"] .country-search-box input:focus,
[data-theme="dark"] .country-search-box input:active,
[data-theme="dark"] .country-search-box input:focus-visible {
    border: none !important;
    border-width: 0 !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
    background-color: transparent !important;
}

[data-theme="dark"] .country-search-input::placeholder {
    color: #64748b !important;
}

[data-theme="dark"] .search-icon {
    color: #60a5fa !important;
}

[data-theme="dark"] .typing-placeholder {
    color: #64748b !important;
}

/* Search Button */
[data-theme="dark"] .search-btn,
[data-theme="dark"] .country-search-btn {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%) !important;
    box-shadow: 0 4px 15px rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .search-btn:hover,
[data-theme="dark"] .country-search-btn:hover {
    box-shadow: 0 6px 25px rgba(96, 165, 250, 0.5);
}

/* Top Menu - Dark with subtle brand color */
[data-theme="dark"] .top-menu,
[data-theme="dark"] .menu-bar,
[data-theme="dark"] header,
[data-theme="dark"] .navbar,
[data-theme="dark"] nav {
    background: #0d1117 !important;
    border-bottom: 1px solid rgba(96, 165, 250, 0.15) !important;
    backdrop-filter: blur(20px);
}

[data-theme="dark"] .menu-logo-text,
[data-theme="dark"] .logo-text {
    color: #ffffff !important;
}

[data-theme="dark"] .logo-text .highlight-text {
    color: #ffc220 !important;
}

[data-theme="dark"] .menu-item,
[data-theme="dark"] .nav-link {
    color: #a0aec0 !important;
}

[data-theme="dark"] .menu-item:hover,
[data-theme="dark"] .nav-link:hover {
    color: #60a5fa !important;
    background: rgba(96, 165, 250, 0.1) !important;
}

[data-theme="dark"] .menu-icon,
[data-theme="dark"] .hamburger-icon {
    color: #f1f5f9 !important;
}

/* Features Section */
[data-theme="dark"] .features-section,
[data-theme="dark"] .features,
[data-theme="dark"] .features-grid {
    background-color: transparent !important;
}

[data-theme="dark"] .feature-card,
[data-theme="dark"] .feature-item,
[data-theme="dark"] .feature {
    background: rgba(20, 25, 35, 0.9) !important;
    border: 1px solid rgba(96, 165, 250, 0.2) !important;
    backdrop-filter: blur(10px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
}

[data-theme="dark"] .feature-card:hover,
[data-theme="dark"] .feature-item:hover,
[data-theme="dark"] .feature:hover {
    border-color: #60a5fa !important;
    box-shadow: 0 0 25px rgba(96, 165, 250, 0.15) !important;
    transform: translateY(-3px);
}

[data-theme="dark"] .feature-title,
[data-theme="dark"] .feature-card h3,
[data-theme="dark"] .feature h3,
[data-theme="dark"] .feature-name,
[data-theme="dark"] .feature-item span {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .feature-description,
[data-theme="dark"] .feature-card p,
[data-theme="dark"] .feature p,
[data-theme="dark"] .feature-text {
    color: #94a3b8 !important;
}

[data-theme="dark"] .feature-icon,
[data-theme="dark"] .feature i,
[data-theme="dark"] .feature-card i,
[data-theme="dark"] .feature-item i {
    color: #60a5fa !important;
}

[data-theme="dark"] .feature-item:hover i {
    color: #fbbf24 !important;
}

/* Sections */
[data-theme="dark"] .section,
[data-theme="dark"] section {
    background-color: #0a0a12 !important;
}

[data-theme="dark"] .section-title,
[data-theme="dark"] h2 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .section-description,
[data-theme="dark"] .section p {
    color: #a0aec0 !important;
}

/* Footer */
[data-theme="dark"] footer,
[data-theme="dark"] .footer {
    background: rgba(14, 14, 22, 0.98) !important;
    border-top: 1px solid rgba(99, 102, 241, 0.2) !important;
}

[data-theme="dark"] .footer-text,
[data-theme="dark"] footer p {
    color: #64748b !important;
}

[data-theme="dark"] .footer-link,
[data-theme="dark"] footer a {
    color: #a0aec0 !important;
}

[data-theme="dark"] .footer-link:hover,
[data-theme="dark"] footer a:hover {
    color: #60a5fa !important;
}

/* Modals */
[data-theme="dark"] .modal-content,
[data-theme="dark"] .modal-container,
[data-theme="dark"] .modal {
    background: rgba(18, 18, 28, 0.98) !important;
    border: 1px solid rgba(99, 102, 241, 0.2) !important;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 100px rgba(96, 165, 250, 0.1);
}

[data-theme="dark"] .modal-header,
[data-theme="dark"] .modal-title {
    color: #f1f5f9 !important;
    border-bottom-color: rgba(99, 102, 241, 0.2) !important;
}

[data-theme="dark"] .modal-body {
    color: #a0aec0 !important;
}

[data-theme="dark"] .modal-close {
    color: #64748b !important;
}

[data-theme="dark"] .modal-close:hover {
    color: #f1f5f9 !important;
}

/* Country Plans Modal - Complete Dark Mode */
[data-theme="dark"] .coming-soon-modal-overlay {
    background: rgba(0, 0, 0, 0.85) !important;
}

[data-theme="dark"] .coming-soon-modal {
    background: linear-gradient(135deg, rgba(18, 18, 28, 0.98), rgba(15, 15, 25, 0.99)) !important;
    border: 1px solid rgba(96, 165, 250, 0.2) !important;
    box-shadow: 0 30px 80px rgba(0, 0, 0, 0.6), 0 0 60px rgba(96, 165, 250, 0.1) !important;
}

[data-theme="dark"] .coming-soon-plan-card {
    background: rgba(25, 25, 40, 0.8) !important;
    border-color: rgba(96, 165, 250, 0.2) !important;
}

[data-theme="dark"] .coming-soon-plan-card .plan-header h3 {
    color: #60a5fa !important;
}

[data-theme="dark"] .modal-back-btn {
    background: rgba(40, 40, 60, 0.8) !important;
    color: #a0aec0 !important;
}

[data-theme="dark"] .modal-back-btn:hover {
    background: rgba(60, 60, 80, 0.9) !important;
    color: #f1f5f9 !important;
}

/* Plan Selection Dropdowns */
[data-theme="dark"] .plan-select {
    background: rgba(30, 30, 45, 0.9) !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
    color: #f1f5f9 !important;
    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='%2360a5fa' d='M6 9L1 4h10z'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 12px center !important;
}

[data-theme="dark"] .plan-select option {
    background: #1a1a2e !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .selection-group label {
    color: #a0aec0 !important;
}

[data-theme="dark"] .selection-price {
    color: #60a5fa !important;
}

/* Plan Type Toggle */
[data-theme="dark"] .plan-type-info {
    background: rgba(30, 30, 45, 0.6) !important;
    border-color: rgba(96, 165, 250, 0.15) !important;
}

[data-theme="dark"] .plan-type-toggle {
    background: rgba(40, 40, 60, 0.8) !important;
}

[data-theme="dark"] .type-toggle-btn {
    color: #94a3b8 !important;
}

[data-theme="dark"] .type-toggle-btn.active {
    background: #60a5fa !important;
    color: white !important;
}

[data-theme="dark"] .plan-type-description {
    background: rgba(96, 165, 250, 0.08) !important;
    color: #94a3b8 !important;
}

[data-theme="dark"] .plan-type-description .desc-highlight {
    color: #60a5fa !important;
}

[data-theme="dark"] .plan-type-description .desc-total {
    color: #34d399 !important;
}

/* Plan Features in modal */
[data-theme="dark"] .coming-soon-plan-card .plan-features {
    border-color: rgba(96, 165, 250, 0.15) !important;
}

[data-theme="dark"] .coming-soon-plan-card .feature-item {
    color: #a0aec0 !important;
    background: rgba(30, 35, 50, 0.6) !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
    border: none !important;
}

[data-theme="dark"] .plan-features .feature-icon i,
[data-theme="dark"] .coming-soon-plan-card .feature-icon i,
[data-theme="dark"] .coming-soon-plan-card .feature-item .feature-icon i,
[data-theme="dark"] .feature-item .feature-icon i {
    color: #60a5fa !important;
}

[data-theme="dark"] .plan-features .feature-label,
[data-theme="dark"] .coming-soon-plan-card .feature-label,
[data-theme="dark"] .feature-item .feature-label {
    color: #94a3b8 !important;
}

[data-theme="dark"] .feature-country-code {
    color: #f1f5f9 !important;
}

/* Form inputs in modal */
[data-theme="dark"] .form-input {
    background: rgba(30, 30, 45, 0.8) !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] .form-input:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15) !important;
}

[data-theme="dark"] .form-group label {
    color: #a0aec0 !important;
}

/* Stripe card element */
[data-theme="dark"] .stripe-card-element {
    background: rgba(30, 30, 45, 0.8) !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
}

/* Checkbox */
[data-theme="dark"] .checkbox-label {
    color: #a0aec0 !important;
}

[data-theme="dark"] .checkbox-label a {
    color: #60a5fa !important;
}

/* Order Summary Step 3 */
[data-theme="dark"] .order-plan-card {
    background: rgba(30, 30, 45, 0.8) !important;
    border: 1px solid rgba(96, 165, 250, 0.15) !important;
}

[data-theme="dark"] .order-plan-name {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .order-plan-details {
    color: #94a3b8 !important;
}

[data-theme="dark"] .order-plan-price,
[data-theme="dark"] .order-price-large {
    color: #60a5fa !important;
}

[data-theme="dark"] .order-summary-title {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .order-customer-info .customer-name {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .order-customer-info .customer-email {
    color: #60a5fa !important;
}

/* Wallet switch */
[data-theme="dark"] .wallet-switch-container {
    background: rgba(40, 40, 60, 0.8) !important;
}

[data-theme="dark"] .wallet-switch-option {
    color: #94a3b8 !important;
}

[data-theme="dark"] .wallet-switch-option.active {
    background: #60a5fa !important;
    color: white !important;
}

[data-theme="dark"] .wallet-description {
    background: rgba(30, 30, 45, 0.6) !important;
}

[data-theme="dark"] .wallet-status-text {
    color: #a0aec0 !important;
}

[data-theme="dark"] .wallet-detail-row {
    border-color: rgba(96, 165, 250, 0.1) !important;
}

[data-theme="dark"] .wallet-detail-label {
    color: #94a3b8 !important;
}

[data-theme="dark"] .wallet-detail-value {
    color: #f1f5f9 !important;
}

/* Success screen */
[data-theme="dark"] .coming-soon-success-screen {
    background: rgba(25, 25, 40, 0.8) !important;
    border-color: rgba(96, 165, 250, 0.2) !important;
}

[data-theme="dark"] .success-title {
    background: linear-gradient(135deg, #60a5fa, #a78bfa) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
}

[data-theme="dark"] .success-subtitle {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .success-text {
    color: #94a3b8 !important;
}

/* Request form */
[data-theme="dark"] .coming-soon-request-form {
    background: rgba(25, 25, 40, 0.8) !important;
    border-color: rgba(96, 165, 250, 0.2) !important;
}

[data-theme="dark"] .request-form-content h3 {
    color: #a0aec0 !important;
}

[data-theme="dark"] .selected-plan-summary {
    background: rgba(30, 30, 45, 0.8) !important;
    border-color: rgba(96, 165, 250, 0.15) !important;
}

[data-theme="dark"] .summary-label {
    color: #94a3b8 !important;
}

[data-theme="dark"] .summary-value {
    color: #60a5fa !important;
}

/* Dropdowns */
[data-theme="dark"] .data-dropdown,
[data-theme="dark"] .days-dropdown {
    background: rgba(25, 25, 40, 0.98) !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
}

[data-theme="dark"] .dropdown-item {
    color: #a0aec0 !important;
}

[data-theme="dark"] .dropdown-item:hover {
    background: rgba(96, 165, 250, 0.15) !important;
    color: #60a5fa !important;
}

/* Mini menu */
[data-theme="dark"] .gb-mini-menu {
    background: rgba(20, 20, 35, 0.98) !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
}

[data-theme="dark"] .mini-menu-item {
    background: rgba(30, 30, 45, 0.8) !important;
    border-color: rgba(96, 165, 250, 0.2) !important;
    color: #a0aec0 !important;
}

[data-theme="dark"] .mini-menu-item:hover {
    background: rgba(96, 165, 250, 0.15) !important;
    color: #60a5fa !important;
    border-color: rgba(96, 165, 250, 0.4) !important;
}

[data-theme="dark"] .mini-menu-item.selected {
    background: linear-gradient(135deg, #60a5fa, #a78bfa) !important;
    color: white !important;
    border-color: #60a5fa !important;
}

/* Plan remark */
[data-theme="dark"] .plan-remark {
    background: rgba(251, 191, 36, 0.1) !important;
    border-color: rgba(251, 191, 36, 0.3) !important;
    color: #fbbf24 !important;
}

[data-theme="dark"] .plan-remark i {
    color: #fbbf24 !important;
}

/* Region countries list */
[data-theme="dark"] .region-countries-list {
    background: rgba(30, 30, 45, 0.6) !important;
    border-color: rgba(96, 165, 250, 0.15) !important;
}

[data-theme="dark"] .region-countries-list h4 {
    color: #60a5fa !important;
}

[data-theme="dark"] .region-countries-list li {
    background: rgba(40, 40, 60, 0.8) !important;
    color: #a0aec0 !important;
}

/* Legacy support */
[data-theme="dark"] .country-plans-modal,
[data-theme="dark"] .plans-modal {
    background: rgba(18, 18, 28, 0.98) !important;
}

[data-theme="dark"] .plan-card {
    background: rgba(30, 30, 45, 0.8) !important;
    border: 1px solid rgba(99, 102, 241, 0.2) !important;
}

[data-theme="dark"] .plan-card:hover {
    border-color: #60a5fa !important;
    box-shadow: 0 0 20px rgba(96, 165, 250, 0.2);
}

[data-theme="dark"] .plan-card.selected {
    border-color: #60a5fa !important;
    box-shadow: 0 0 30px rgba(96, 165, 250, 0.3);
}

[data-theme="dark"] .plan-name,
[data-theme="dark"] .plan-title {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .plan-price {
    color: #60a5fa !important;
}

[data-theme="dark"] .plan-details,
[data-theme="dark"] .plan-info {
    color: #a0aec0 !important;
}

/* Input Fields in Modals */
[data-theme="dark"] input[type="text"],
[data-theme="dark"] input[type="email"],
[data-theme="dark"] input[type="password"],
[data-theme="dark"] input[type="tel"],
[data-theme="dark"] textarea,
[data-theme="dark"] select {
    background: rgba(30, 30, 45, 0.8) !important;
    border-color: rgba(99, 102, 241, 0.3) !important;
    color: #f1f5f9 !important;
}

[data-theme="dark"] input::placeholder,
[data-theme="dark"] textarea::placeholder {
    color: #64748b !important;
}

[data-theme="dark"] input:focus,
[data-theme="dark"] textarea:focus,
[data-theme="dark"] select:focus {
    border-color: #60a5fa !important;
    box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.15) !important;
}

/* Labels */
[data-theme="dark"] label {
    color: #a0aec0 !important;
}

/* Buttons */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .primary-btn,
[data-theme="dark"] button[type="submit"] {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 100%) !important;
    border: none !important;
    color: white !important;
}

[data-theme="dark"] .btn-secondary,
[data-theme="dark"] .secondary-btn {
    background: rgba(40, 40, 60, 0.8) !important;
    border: 1px solid rgba(99, 102, 241, 0.3) !important;
    color: #a0aec0 !important;
}

/* Countries Modal / Search Results */
[data-theme="dark"] .countries-modal,
[data-theme="dark"] .search-results {
    background: rgba(18, 18, 28, 0.98) !important;
}

[data-theme="dark"] .country-item,
[data-theme="dark"] .search-result-item {
    background: rgba(30, 30, 45, 0.6) !important;
    border: 1px solid transparent !important;
}

[data-theme="dark"] .country-item:hover,
[data-theme="dark"] .search-result-item:hover {
    background: rgba(96, 165, 250, 0.1) !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
}

[data-theme="dark"] .country-name {
    color: #f1f5f9 !important;
}

/* Countries List Modal (See all X countries) */
[data-theme="dark"] .countries-list-modal {
    background: rgba(18, 18, 28, 0.98) !important;
    border: 1px solid rgba(99, 102, 241, 0.2) !important;
}

[data-theme="dark"] .countries-list-body {
    background: rgba(18, 18, 28, 0.98) !important;
}

[data-theme="dark"] .countries-grid li {
    background: rgba(30, 30, 45, 0.6) !important;
    color: #f1f5f9 !important;
    border: 1px solid transparent !important;
}

[data-theme="dark"] .countries-grid li:hover {
    background: rgba(96, 165, 250, 0.15) !important;
    border-color: rgba(96, 165, 250, 0.3) !important;
}

[data-theme="dark"] .country-bullet {
    color: #60a5fa !important;
}

[data-theme="dark"] .countries-list-body::-webkit-scrollbar-track {
    background: rgba(30, 30, 45, 0.6) !important;
}

/* Menu Modal */
[data-theme="dark"] .menu-modal {
    background: rgba(14, 14, 22, 0.98) !important;
}

[data-theme="dark"] .menu-modal-item {
    color: #a0aec0 !important;
    border-bottom-color: rgba(99, 102, 241, 0.1) !important;
}

[data-theme="dark"] .menu-modal-item:hover {
    color: #60a5fa !important;
    background: rgba(96, 165, 250, 0.1) !important;
}

/* Login Modal */
[data-theme="dark"] .login-modal,
[data-theme="dark"] .auth-modal {
    background: rgba(18, 18, 28, 0.98) !important;
    border: 1px solid rgba(99, 102, 241, 0.2) !important;
}

[data-theme="dark"] .login-modal-header h2 {
    color: #f1f5f9 !important;
}

[data-theme="dark"] .login-modal-header p {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .login-input-group label {
    color: #e2e8f0 !important;
}

[data-theme="dark"] .login-footer {
    border-top-color: rgba(99, 102, 241, 0.2) !important;
}

[data-theme="dark"] .login-footer p {
    color: #cbd5e1 !important;
}

[data-theme="dark"] .login-footer span {
    color: #94a3b8 !important;
}

[data-theme="dark"] .login-modal-close {
    background: rgba(40, 40, 60, 0.8) !important;
    color: #a0aec0 !important;
}

[data-theme="dark"] .login-modal-close:hover {
    background: rgba(60, 60, 80, 0.9) !important;
    color: #f1f5f9 !important;
}

/* Contact Modal */
[data-theme="dark"] .contact-modal {
    background: rgba(18, 18, 28, 0.98) !important;
}

/* Scrollbar */
[data-theme="dark"] ::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

[data-theme="dark"] ::-webkit-scrollbar-track {
    background: #0a0a12;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb {
    background: rgba(99, 102, 241, 0.3);
    border-radius: 4px;
}

[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(99, 102, 241, 0.5);
}

/* Compatibility Notice */
[data-theme="dark"] .compatibility-notice {
    color: #a0aec0 !important;
}

[data-theme="dark"] .compatibility-notice strong {
    color: #60a5fa !important;
    text-shadow: 0 0 10px rgba(96, 165, 250, 0.3);
}

/* Any paragraph or span in hero/main content */
[data-theme="dark"] .hero p,
[data-theme="dark"] .hero span:not(.highlight-text),
[data-theme="dark"] .hero-container p {
    color: #94a3b8 !important;
}

/* Keep highlight-text yellow in dark mode */
[data-theme="dark"] .hero-title .highlight-text {
    color: #ffc220 !important;
}

/* Background Glow Effect */
[data-theme="dark"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(96, 165, 250, 0.08) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 100%, rgba(139, 92, 246, 0.06) 0%, transparent 50%);
    pointer-events: none;
    z-index: -1;
}

/* =========================================
   THEME TOGGLE BUTTON
   ========================================= */
.theme-toggle-btn {
    position: fixed;
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: none;
    background: var(--bg-card);
    color: var(--text-primary);
    box-shadow: var(--shadow-lg);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    z-index: 1000;
    transition: all 0.3s ease;
}

.theme-toggle-btn:hover {
    transform: scale(1.1);
}

[data-theme="dark"] .theme-toggle-btn {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    box-shadow: var(--neon-glow);
}

.theme-toggle-btn .icon-sun,
.theme-toggle-btn .icon-moon {
    position: absolute;
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.theme-toggle-btn .icon-sun {
    opacity: 1;
    transform: rotate(0deg);
}

.theme-toggle-btn .icon-moon {
    opacity: 0;
    transform: rotate(-90deg);
}

[data-theme="dark"] .theme-toggle-btn .icon-sun {
    opacity: 0;
    transform: rotate(90deg);
}

[data-theme="dark"] .theme-toggle-btn .icon-moon {
    opacity: 1;
    transform: rotate(0deg);
}
