/* ═══════════════════════════════════════════════════════════════
   NetTracer Pro — Theme System
   4 themes: Deep Space (default), Neon Cyber, Matrix Terminal, Aurora Frost
   ═══════════════════════════════════════════════════════════════ */

/* Smooth theme transitions */
html,
body,
.navbar,
.card,
.button,
.sidebar,
.nav-menu,
.dropdown-menu,
.menu-item,
input,
select,
textarea {
    transition: background-color 0.4s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ═══════════════════════════════════════════════════════════════
   THEME 1: NEON CYBER — Cyberpunk hot-pink + cyan neon
   ═══════════════════════════════════════════════════════════════ */
[data-theme="cyber"] {
    --primary: #ff2d55;
    --primary-glow: rgba(255, 45, 85, 0.4);
    --secondary: #1a1a2e;
    --accent-green: #00e5ff;
    --accent-purple: #ff2d55;
    --accent-red: #ff6b6b;

    --bg-amoled: #0a0a14;
    --bg-card: rgba(26, 26, 46, 0.7);
    --bg-card-hover: rgba(26, 26, 46, 0.9);

    --text-main: #eef0ff;
    --text-muted: #8b8fa3;

    --border-color: rgba(255, 45, 85, 0.15);
    --border-glow: rgba(255, 45, 85, 0.3);

    --card-shadow: 0 8px 32px 0 rgba(255, 45, 85, 0.12);
}

[data-theme="cyber"] .navbar {
    background: rgba(10, 10, 20, 0.96) !important;
    border-bottom-color: rgba(255, 45, 85, 0.2) !important;
}

[data-theme="cyber"] .button-primary-glow {
    background: linear-gradient(135deg, #ff2d55, #ff6b9d) !important;
    box-shadow: 0 0 20px rgba(255, 45, 85, 0.4), 0 0 60px rgba(255, 45, 85, 0.1) !important;
}

[data-theme="cyber"] .button-primary-glow:hover {
    box-shadow: 0 0 30px rgba(255, 45, 85, 0.6), 0 0 80px rgba(255, 45, 85, 0.2) !important;
}

[data-theme="cyber"] .brand h1 {
    background: linear-gradient(135deg, #ff2d55, #00e5ff) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

[data-theme="cyber"] .brand-logo {
    filter: hue-rotate(320deg) saturate(1.5) !important;
}

[data-theme="cyber"] .sidebar-link.active,
[data-theme="cyber"] .sidebar-link:hover {
    border-left-color: #ff2d55 !important;
    background: rgba(255, 45, 85, 0.08) !important;
}

[data-theme="cyber"] input,
[data-theme="cyber"] select,
[data-theme="cyber"] textarea {
    border-color: rgba(255, 45, 85, 0.2) !important;
}

[data-theme="cyber"] input:focus,
[data-theme="cyber"] select:focus,
[data-theme="cyber"] textarea:focus {
    border-color: #ff2d55 !important;
    box-shadow: 0 0 12px rgba(255, 45, 85, 0.2) !important;
}

[data-theme="cyber"] .card {
    border-color: rgba(255, 45, 85, 0.12) !important;
}

[data-theme="cyber"] .status-dot.online {
    background: #00e5ff !important;
    box-shadow: 0 0 10px #00e5ff !important;
}

[data-theme="cyber"] ::selection {
    background: rgba(255, 45, 85, 0.3);
    color: #fff;
}

/* ═══════════════════════════════════════════════════════════════
   THEME 2: MATRIX TERMINAL — Green-on-black hacker aesthetic
   ═══════════════════════════════════════════════════════════════ */
[data-theme="matrix"] {
    --primary: #00ff41;
    --primary-glow: rgba(0, 255, 65, 0.35);
    --secondary: #0a120a;
    --accent-green: #00ff41;
    --accent-purple: #39ff14;
    --accent-red: #ff3333;

    --bg-amoled: #020a02;
    --bg-card: rgba(5, 20, 5, 0.75);
    --bg-card-hover: rgba(10, 30, 10, 0.9);

    --text-main: #c8ffc8;
    --text-muted: #5a8a5a;

    --border-color: rgba(0, 255, 65, 0.12);
    --border-glow: rgba(0, 255, 65, 0.25);

    --card-shadow: 0 8px 32px 0 rgba(0, 255, 65, 0.08);
}

[data-theme="matrix"] .navbar {
    background: rgba(2, 10, 2, 0.97) !important;
    border-bottom-color: rgba(0, 255, 65, 0.15) !important;
}

[data-theme="matrix"] .button-primary-glow {
    background: linear-gradient(135deg, #00cc33, #00ff41) !important;
    color: #000 !important;
    font-weight: 700 !important;
    box-shadow: 0 0 20px rgba(0, 255, 65, 0.35), 0 0 60px rgba(0, 255, 65, 0.1) !important;
}

[data-theme="matrix"] .button-primary-glow:hover {
    box-shadow: 0 0 30px rgba(0, 255, 65, 0.5), 0 0 80px rgba(0, 255, 65, 0.15) !important;
}

[data-theme="matrix"] .brand h1 {
    background: linear-gradient(135deg, #00ff41, #39ff14) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    text-shadow: none !important;
}

[data-theme="matrix"] .brand-logo {
    filter: hue-rotate(90deg) saturate(2) brightness(1.5) !important;
}

[data-theme="matrix"] body {
    font-family: 'Courier New', 'Fira Code', monospace !important;
}

[data-theme="matrix"] .card h2,
[data-theme="matrix"] .card h3 {
    font-family: 'Orbitron', 'Courier New', monospace !important;
    letter-spacing: 2px !important;
}

[data-theme="matrix"] .sidebar-link.active,
[data-theme="matrix"] .sidebar-link:hover {
    border-left-color: #00ff41 !important;
    background: rgba(0, 255, 65, 0.06) !important;
}

[data-theme="matrix"] input,
[data-theme="matrix"] select,
[data-theme="matrix"] textarea {
    border-color: rgba(0, 255, 65, 0.2) !important;
    color: #c8ffc8 !important;
    font-family: 'Courier New', monospace !important;
}

[data-theme="matrix"] input:focus,
[data-theme="matrix"] select:focus,
[data-theme="matrix"] textarea:focus {
    border-color: #00ff41 !important;
    box-shadow: 0 0 12px rgba(0, 255, 65, 0.15) !important;
}

[data-theme="matrix"] .card {
    border-color: rgba(0, 255, 65, 0.1) !important;
}

[data-theme="matrix"] .nav-link,
[data-theme="matrix"] .menu-item {
    font-family: 'Courier New', monospace !important;
}

[data-theme="matrix"] .status-dot.online {
    background: #00ff41 !important;
    box-shadow: 0 0 10px #00ff41 !important;
}

[data-theme="matrix"] ::selection {
    background: rgba(0, 255, 65, 0.25);
    color: #fff;
}

/* Scanline overlay for extra hacker feel */
[data-theme="matrix"] body::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: 9999;
    background: repeating-linear-gradient(0deg,
            transparent,
            transparent 2px,
            rgba(0, 255, 65, 0.015) 2px,
            rgba(0, 255, 65, 0.015) 4px);
}

/* ═══════════════════════════════════════════════════════════════
   THEME 3: AURORA FROST — Icy holographic indigo + teal
   ═══════════════════════════════════════════════════════════════ */
[data-theme="aurora"] {
    --primary: #6366f1;
    --primary-glow: rgba(99, 102, 241, 0.4);
    --secondary: #0f1729;
    --accent-green: #2dd4bf;
    --accent-purple: #a78bfa;
    --accent-red: #f43f5e;

    --bg-amoled: #060b18;
    --bg-card: rgba(15, 23, 50, 0.65);
    --bg-card-hover: rgba(20, 30, 60, 0.85);

    --text-main: #e2e8f0;
    --text-muted: #7c8db5;

    --border-color: rgba(99, 102, 241, 0.12);
    --border-glow: rgba(99, 102, 241, 0.25);

    --card-shadow: 0 8px 32px 0 rgba(99, 102, 241, 0.1);
}

[data-theme="aurora"] .navbar {
    background: rgba(6, 11, 24, 0.96) !important;
    border-bottom-color: rgba(99, 102, 241, 0.15) !important;
}

[data-theme="aurora"] .button-primary-glow {
    background: linear-gradient(135deg, #6366f1, #a78bfa, #2dd4bf) !important;
    background-size: 200% 200% !important;
    animation: auroraShift 4s ease infinite !important;
    box-shadow: 0 0 20px rgba(99, 102, 241, 0.35), 0 0 60px rgba(45, 212, 191, 0.1) !important;
}

[data-theme="aurora"] .button-primary-glow:hover {
    box-shadow: 0 0 30px rgba(99, 102, 241, 0.5), 0 0 80px rgba(45, 212, 191, 0.2) !important;
}

@keyframes auroraShift {

    0%,
    100% {
        background-position: 0% 50%;
    }

    50% {
        background-position: 100% 50%;
    }
}

[data-theme="aurora"] .brand h1 {
    background: linear-gradient(135deg, #6366f1, #a78bfa, #2dd4bf) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
}

[data-theme="aurora"] .brand-logo {
    filter: hue-rotate(220deg) saturate(1.3) brightness(1.2) !important;
}

[data-theme="aurora"] .sidebar-link.active,
[data-theme="aurora"] .sidebar-link:hover {
    border-left-color: #6366f1 !important;
    background: rgba(99, 102, 241, 0.06) !important;
}

[data-theme="aurora"] input,
[data-theme="aurora"] select,
[data-theme="aurora"] textarea {
    border-color: rgba(99, 102, 241, 0.2) !important;
}

[data-theme="aurora"] input:focus,
[data-theme="aurora"] select:focus,
[data-theme="aurora"] textarea:focus {
    border-color: #6366f1 !important;
    box-shadow: 0 0 12px rgba(99, 102, 241, 0.2) !important;
}

[data-theme="aurora"] .card {
    border-color: rgba(99, 102, 241, 0.1) !important;
}

/* Aurora frosted glass effect on cards */
[data-theme="aurora"] .card-premium,
[data-theme="aurora"] .card-results {
    backdrop-filter: blur(12px) saturate(1.2) !important;
}

[data-theme="aurora"] .status-dot.online {
    background: #2dd4bf !important;
    box-shadow: 0 0 10px #2dd4bf !important;
}

[data-theme="aurora"] ::selection {
    background: rgba(99, 102, 241, 0.3);
    color: #fff;
}

/* Subtle aurora gradient background */
[data-theme="aurora"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(ellipse at 20% 50%, rgba(99, 102, 241, 0.06) 0%, transparent 50%),
        radial-gradient(ellipse at 80% 20%, rgba(45, 212, 191, 0.04) 0%, transparent 50%),
        radial-gradient(ellipse at 60% 80%, rgba(167, 139, 250, 0.04) 0%, transparent 50%);
}

/* ═══════════════════════════════════════════════════════════════
   THEME 4: DAYLIGHT — Clean white/off-white light theme
   ═══════════════════════════════════════════════════════════════ */
[data-theme="light"] {
    --primary: #2563eb;
    --primary-glow: rgba(37, 99, 235, 0.2);
    --secondary: #ffffff;
    --accent-green: #16a34a;
    --accent-purple: #7e22ce;
    --accent-red: #dc2626;

    --bg-amoled: #f8fafc;
    --bg-card: #ffffff;
    --bg-card-hover: #f1f5f9;

    --text-main: #0f172a;
    --text-muted: #64748b;

    --border-color: rgba(0, 0, 0, 0.08);
    --border-glow: rgba(37, 99, 235, 0.1);

    --card-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
}

[data-theme="light"] .navbar {
    background: rgba(255, 255, 255, 0.9) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05) !important;
    backdrop-filter: blur(10px) !important;
}

[data-theme="light"] .nav-link,
[data-theme="light"] .brand h1,
[data-theme="light"] .theme-toggle-btn {
    color: #334155 !important;
}

[data-theme="light"] .theme-toggle-btn {
    background: rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .theme-dropdown {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .theme-option:hover {
    background: rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .theme-option.active {
    background: rgba(37, 99, 235, 0.05) !important;
}

[data-theme="light"] .card {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.05) !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .card-premium {
    background: white !important;
    border-color: rgba(37, 99, 235, 0.1) !important;
}

[data-theme="light"] input,
[data-theme="light"] select,
[data-theme="light"] textarea {
    background: #f8fafc !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    color: #0f172a !important;
}

[data-theme="light"] .button-primary-glow {
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
}

[data-theme="light"] .sidebar-link:hover,
[data-theme="light"] .sidebar-link.active {
    background: rgba(37, 99, 235, 0.05) !important;
}

[data-theme="light"] .pb-label {
    color: #64748b !important;
}

[data-theme="light"] .status-dot.online {
    box-shadow: 0 0 8px rgba(22, 163, 74, 0.4) !important;
}

[data-theme="light"] ::selection {
    background: rgba(37, 99, 235, 0.15);
    color: inherit;
}

[data-theme="light"] .lang-toggle-btn {
    background: rgba(0, 0, 0, 0.03) !important;
    color: #334155 !important;
}

[data-theme="light"] .lang-dropdown {
    background: #ffffff !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1) !important;
}

[data-theme="light"] .lang-option:hover {
    background: rgba(0, 0, 0, 0.03) !important;
}

[data-theme="light"] .lang-option.active {
    background: rgba(37, 99, 235, 0.05) !important;
}

/* ═══════════════════════════════════════════════════════════════
   THEME 5: SOLAR FLARE — True AMOLED pitch-black + #FF6500
   ═══════════════════════════════════════════════════════════════ */
[data-theme="solar"] {
    --primary: #FF6500;
    --primary-glow: rgba(255, 101, 0, 0.45);
    --secondary: #000000;
    --accent-green: #FFD300;
    --accent-purple: #FF0055;
    --accent-red: #ff3300;

    --bg-amoled: #000000;
    --bg-card: rgba(10, 5, 0, 0.85);
    --bg-card-hover: rgba(20, 10, 0, 0.95);

    --text-main: #ffeeee;
    --text-muted: #a08070;

    --border-color: rgba(255, 101, 0, 0.2);
    --border-glow: rgba(255, 101, 0, 0.35);

    --card-shadow: 0 8px 32px 0 rgba(255, 101, 0, 0.15);
}

[data-theme="solar"] .navbar {
    background: rgba(0, 0, 0, 0.98) !important;
    border-bottom: 2px solid rgba(255, 101, 0, 0.3) !important;
}

[data-theme="solar"] .button-primary-glow {
    background: linear-gradient(135deg, #FF6500, #FF8E00) !important;
    color: #ffffff !important;
    font-weight: 700 !important;
    box-shadow: 0 0 20px rgba(255, 101, 0, 0.4), 0 0 60px rgba(255, 101, 0, 0.15) !important;
    border: none !important;
    position: relative;
    overflow: hidden;
}

[data-theme="solar"] .button-primary-glow:hover {
    box-shadow: 0 0 35px rgba(255, 101, 0, 0.65), 0 0 90px rgba(255, 101, 0, 0.25) !important;
    transform: translateY(-1px);
}

[data-theme="solar"] .brand h1 {
    background: linear-gradient(135deg, #FF6500, #FFD300) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    background-clip: text !important;
    filter: drop-shadow(0 0 8px rgba(255, 101, 0, 0.4)) !important;
}

[data-theme="solar"] .brand-logo {
    filter: hue-rotate(20deg) saturate(1.8) brightness(1.3) !important;
}

[data-theme="solar"] .card {
    background: #000000 !important;
    border: 1px solid rgba(255, 101, 0, 0.2) !important;
    box-shadow: 0 0 25px rgba(255, 101, 0, 0.08) !important;
}

[data-theme="solar"] .card-premium {
    border-color: rgba(255, 101, 0, 0.35) !important;
    background: linear-gradient(180deg, rgba(20, 10, 0, 0.9), #000000) !important;
}

[data-theme="solar"] input,
[data-theme="solar"] select,
[data-theme="solar"] textarea {
    background: rgba(255, 101, 0, 0.03) !important;
    border-color: rgba(255, 101, 0, 0.25) !important;
    color: #ffeeee !important;
}

[data-theme="solar"] input:focus,
[data-theme="solar"] select:focus,
[data-theme="solar"] textarea:focus {
    border-color: #FF6500 !important;
    box-shadow: 0 0 15px rgba(255, 101, 0, 0.2) !important;
    background: rgba(255, 101, 0, 0.05) !important;
}

[data-theme="solar"] .sidebar-link.active,
[data-theme="solar"] .sidebar-link:hover {
    border-left-color: #FF6500 !important;
    background: rgba(255, 101, 0, 0.1) !important;
}

[data-theme="solar"] .status-dot.online {
    background: #FF6500 !important;
    box-shadow: 0 0 12px #FF6500 !important;
}

[data-theme="solar"] ::selection {
    background: rgba(255, 101, 0, 0.3);
    color: #fff;
}

[data-theme="solar"] body::before {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    z-index: -1;
    background:
        radial-gradient(circle at 50% -20%, rgba(255, 101, 0, 0.08) 0%, transparent 70%),
        radial-gradient(circle at 0% 100%, rgba(255, 101, 0, 0.03) 0%, transparent 50%);
}

/* ═══════════════════════════════════════════════════════════════
   THEME SWITCHER UI
   ═══════════════════════════════════════════════════════════════ */
.nav-actions {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.theme-switcher {
    position: relative;
    margin-left: 0.75rem;
}

.theme-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
}

.theme-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.theme-toggle-btn svg {
    width: 18px;
    height: 18px;
}

.theme-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 200px;
    background: rgba(15, 18, 30, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.theme-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.theme-dropdown-label {
    font-size: 0.6rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--text-muted);
    padding: 0.4rem 0.6rem 0.3rem;
    display: block;
}

.theme-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.6rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.78rem;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: left;
}

.theme-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
}

.theme-option.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
}

.theme-option.active::after {
    content: '✓';
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
}

.theme-swatch {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    flex-shrink: 0;
    border: 2px solid rgba(255, 255, 255, 0.1);
    position: relative;
    overflow: hidden;
}

.theme-swatch.swatch-default {
    background: linear-gradient(135deg, #000000 50%, #2563eb 50%);
}

.theme-swatch.swatch-cyber {
    background: linear-gradient(135deg, #0a0a14 50%, #ff2d55 50%);
}

.theme-swatch.swatch-matrix {
    background: linear-gradient(135deg, #020a02 50%, #00ff41 50%);
}

.theme-swatch.swatch-aurora {
    background: linear-gradient(135deg, #060b18 33%, #6366f1 33%, #6366f1 66%, #2dd4bf 66%);
}

.theme-swatch.swatch-light {
    background: linear-gradient(135deg, #ffffff 50%, #2563eb 50%);
}

.theme-swatch.swatch-solar {
    background: linear-gradient(135deg, #000000 50%, #FF6500 50%);
}

/* ═══════════════════════════════════════════════════════════════
   LANGUAGE SWITCHER UI
   ═══════════════════════════════════════════════════════════════ */
.lang-switcher {
    position: relative;
    margin-left: 0.75rem;
}

.lang-toggle-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    height: 36px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: rgba(255, 255, 255, 0.04);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s ease;
    font-size: 0.72rem;
    font-weight: 700;
    font-family: 'Poppins', sans-serif;
}

.lang-toggle-btn:hover {
    background: rgba(255, 255, 255, 0.08);
    color: var(--text-main);
    border-color: var(--primary);
    box-shadow: 0 0 12px var(--primary-glow);
}

.lang-toggle-btn span#current-lang-name {
    margin-top: 1px;
}

.lang-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    width: 300px;
    background: rgba(15, 18, 30, 0.98);
    backdrop-filter: blur(16px);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px) scale(0.97);
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 2000;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
}

.lang-dropdown.open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.lang-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 4px;
}

.lang-option {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    width: 100%;
    padding: 0.55rem 0.6rem;
    border: 1px solid transparent;
    border-radius: 8px;
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.78rem;
    font-family: inherit;
    font-weight: 500;
    transition: all 0.2s ease;
    text-align: left;
}

.lang-option span {
    font-size: 1.1rem;
}

.lang-option:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-main);
}

.lang-option.active {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.lang-option.active::after {
    content: '✓';
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--primary);
    font-weight: 700;
}

/* RTL Support for Switchers */
[dir="rtl"] .theme-switcher,
[dir="rtl"] .lang-switcher {
    margin-left: 0;
    margin-right: 0.75rem;
}

[dir="rtl"] .theme-dropdown,
[dir="rtl"] .lang-dropdown {
    right: auto;
    left: 0;
}

[dir="rtl"] .theme-option.active::after,
[dir="rtl"] .lang-option.active::after {
    margin-left: 0;
    margin-right: auto;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .theme-switcher {
        margin-left: 0.5rem;
    }

    .theme-dropdown {
        right: -1rem;
        width: 180px;
    }
}