/* ============================================
   SahinOS — Global Styles
   Premium Windows 11-inspired Desktop Environment
   ============================================ */

:root {
    /* Color System */
    --bg-primary: #0a0a0f;
    --bg-secondary: #141420;
    --bg-tertiary: #1a1a2e;
    --bg-surface: rgba(30, 30, 50, 0.85);
    --bg-glass: rgba(25, 25, 45, 0.72);
    --bg-glass-light: rgba(40, 40, 65, 0.65);
    --bg-hover: rgba(255, 255, 255, 0.06);
    --bg-active: rgba(255, 255, 255, 0.1);

    --text-primary: #f0f0f5;
    --text-secondary: #a0a0b8;
    --text-tertiary: #6b6b85;
    --text-accent: #60a5fa;

    --accent-blue: #3b82f6;
    --accent-blue-hover: #2563eb;
    --accent-purple: #8b5cf6;

    /* Login Button Colors (theme-aware) */
    --login-btn-1: rgba(59, 130, 246, 0.5);
    --login-btn-2: rgba(99, 102, 241, 0.5);
    --login-glow-1: rgba(59, 130, 246, 0.3);
    --login-glow-2: rgba(99, 102, 241, 0.15);
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-yellow: #f59e0b;
    --accent-pink: #ec4899;
    --accent-cyan: #06b6d4;

    --login-avatar-1: #60a5fa;
    --login-avatar-2: #3b82f6;

    /* Icon gradient colors */
    --icon-about-1: #56CCF2; --icon-about-2: #2F80ED;
    --icon-ref-1: #8B5CF6; --icon-ref-2: #A78BFA;
    --icon-gallery-1: #43E97B; --icon-gallery-2: #38F9D7;
    --icon-proj-1: #A855F7; --icon-proj-2: #7C3AED;
    --icon-term-1: #1E293B; --icon-term-2: #0F172A;
    --icon-skill-1: #10B981; --icon-skill-2: #059669;
    --icon-browser-1: #38BDF8; --icon-browser-2: #3B82F6; --icon-browser-3: #6366F1;
    --icon-contact-1: #F59E0B; --icon-contact-2: #EF4444;
    --icon-music-1: #EC4899; --icon-music-2: #8B5CF6;
    --icon-cv-1: #EF4444; --icon-cv-2: #DC2626;
    --icon-settings-1: #64748B; --icon-settings-2: #475569;
    --icon-calc-1: #06B6D4; --icon-calc-2: #0891B2;
    --icon-guest-1: #F59E0B; --icon-guest-2: #D97706;
    --icon-code-1: #0EA5E9; --icon-code-2: #2563EB;
    --icon-blog-1: #EC4899; --icon-blog-2: #BE185D;
    --icon-notepad-1: #fbbf24; --icon-notepad-2: #f59e0b;
    --icon-calendar-1: #ef4444; --icon-calendar-2: #dc2626; --icon-calendar-3: #b91c1c;
    --icon-fm-1: #3b82f6; --icon-fm-2: #1d4ed8;
    --icon-snake-1: #22C55E; --icon-snake-2: #16A34A;
    --icon-mine-1: #64748B; --icon-mine-2: #475569;
    --icon-chess-1: #8B6914; --icon-chess-2: #5C4A0E;

    --border-subtle: rgba(255, 255, 255, 0.08);
    --border-light: rgba(255, 255, 255, 0.12);
    --border-focus: rgba(96, 165, 250, 0.5);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.6);

    --blur-sm: blur(8px);
    --blur-md: blur(16px);
    --blur-lg: blur(24px);
    --blur-xl: blur(40px);

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 12px;
    --radius-xl: 16px;

    --font-sans: 'Inter', 'Segoe UI', -apple-system, BlinkMacSystemFont, sans-serif;
    --font-mono: 'JetBrains Mono', 'Cascadia Code', 'Consolas', monospace;

    --transition-fast: 150ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-normal: 250ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-slow: 400ms cubic-bezier(0.16, 1, 0.3, 1);
    --transition-spring: 500ms cubic-bezier(0.34, 1.56, 0.64, 1);

    --taskbar-height: 48px;
    --z-desktop: 1;
    --z-window: 100;
    --z-taskbar: 1000;
    --z-start-menu: 1100;
    --z-lock: 2000;
    --z-login: 2100;
}

/* ── Light Theme Override ── */
[data-theme="light"] {
    --login-avatar-1: #818cf8;
    --login-avatar-2: #6366f1;
    --bg-primary: #ffffff;
    --bg-secondary: #f5f5f5;
    --bg-tertiary: #eeeeee;
    --bg-surface: rgba(255, 255, 255, 0.95);
    --bg-glass: rgba(255, 255, 255, 0.9);
    --bg-glass-light: rgba(255, 255, 255, 0.8);
    --bg-glass-lighter: rgba(255, 255, 255, 0.92);
    --bg-hover: rgba(0, 0, 0, 0.04);
    --bg-active: rgba(0, 0, 0, 0.07);

    --text-primary: #000000;
    --text-secondary: #333333;
    --text-tertiary: #666666;
    --text-accent: #2563eb;

    --border-subtle: rgba(0, 0, 0, 0.08);
    --border-light: rgba(0, 0, 0, 0.12);
    --border-focus: rgba(37, 99, 235, 0.5);

    --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.12);
    --shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.15);

    /* Light theme icon colors — pastel/soft */
    --icon-about-1: #7DD3FC; --icon-about-2: #60A5FA;
    --icon-ref-1: #C4B5FD; --icon-ref-2: #A78BFA;
    --icon-gallery-1: #86EFAC; --icon-gallery-2: #6EE7B7;
    --icon-proj-1: #C084FC; --icon-proj-2: #A855F7;
    --icon-term-1: #94A3B8; --icon-term-2: #64748B;
    --icon-skill-1: #6EE7B7; --icon-skill-2: #34D399;
    --icon-browser-1: #7DD3FC; --icon-browser-2: #60A5FA; --icon-browser-3: #A78BFA;
    --icon-contact-1: #FCD34D; --icon-contact-2: #FCA5A5;
    --icon-music-1: #F9A8D4; --icon-music-2: #C4B5FD;
    --icon-cv-1: #FCA5A5; --icon-cv-2: #F87171;
    --icon-settings-1: #94A3B8; --icon-settings-2: #CBD5E1;
    --icon-calc-1: #67E8F9; --icon-calc-2: #22D3EE;
    --icon-guest-1: #FCD34D; --icon-guest-2: #FBBF24;
    --icon-code-1: #7DD3FC; --icon-code-2: #60A5FA;
    --icon-blog-1: #F9A8D4; --icon-blog-2: #F472B6;
    --icon-notepad-1: #FDE68A; --icon-notepad-2: #FCD34D;
    --icon-calendar-1: #FCA5A5; --icon-calendar-2: #F87171; --icon-calendar-3: #EF4444;
    --icon-fm-1: #93C5FD; --icon-fm-2: #60A5FA;
    --icon-snake-1: #86EFAC; --icon-snake-2: #4ADE80;
    --icon-mine-1: #94A3B8; --icon-mine-2: #CBD5E1;
    --icon-chess-1: #D4A853; --icon-chess-2: #B8942D;
}

[data-theme="light"] ::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.15);
}
[data-theme="light"] ::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 0, 0, 0.25);
}

/* Light theme: wallpaper from uploads */
[data-theme="light"] .desktop-wallpaper {
    background: url('/uploads/wallpaper/light-bg.webp') center/cover no-repeat !important;
}
[data-theme="light"] .desktop-wallpaper::before {
    display: none;
}

/* Light theme: taskbar */
[data-theme="light"] .taskbar {
    background: rgba(255, 255, 255, 0.92) !important;
    border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
}

/* Light theme: windows */
[data-theme="light"] .os-window {
    background: #ffffff !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1) !important;
}
[data-theme="light"] .win-titlebar {
    background: #fafafa !important;
    border-bottom-color: rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] .win-title {
    color: #000 !important;
}
[data-theme="light"] .win-btn {
    color: #333 !important;
}
[data-theme="light"] .win-btn:hover {
    background: rgba(0, 0, 0, 0.06) !important;
}
[data-theme="light"] .win-close:hover {
    background: rgba(239, 68, 68, 0.9) !important;
    color: #fff !important;
}

/* Light theme: start menu */
[data-theme="light"] .start-menu {
    background: rgba(255, 255, 255, 0.95) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}
[data-theme="light"] .start-search input {
    background: #f5f5f5 !important;
    color: #000 !important;
    border-color: rgba(0, 0, 0, 0.12) !important;
}
[data-theme="light"] .start-app-item {
    color: #000 !important;
}
[data-theme="light"] .start-app-item:hover {
    background: rgba(0, 0, 0, 0.05) !important;
}

/* Light theme: desktop icons */
[data-theme="light"] .icon-label {
    color: #000 !important;
    text-shadow: 0 0 3px #fff, 0 0 6px #fff, 0 1px 2px rgba(255,255,255,0.9) !important;
    font-weight: 500 !important;
}
[data-theme="light"] .desktop-icon:hover {
    background: rgba(255, 255, 255, 0.35) !important;
}
[data-theme="light"] .desktop-icon.selected {
    background: rgba(255, 255, 255, 0.4) !important;
}
[data-theme="light"] .icon-img svg {
    stroke-width: 1.5;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.08)) !important;
}
[data-theme="light"] .icon-img {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
[data-theme="light"] .start-app-icon svg {
    stroke-width: 1.5;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.06)) !important;
}
[data-theme="light"] .start-app-icon {
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06);
}

/* Light theme: context menu */
[data-theme="light"] .ctx-menu,
[data-theme="light"] .ctx-submenu {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
}
[data-theme="light"] .ctx-item {
    color: #000 !important;
}
[data-theme="light"] .ctx-item:hover {
    background: rgba(59, 130, 246, 0.1) !important;
    color: #000 !important;
}
[data-theme="light"] .ctx-separator {
    background: rgba(0, 0, 0, 0.08) !important;
}

/* Light theme: quick settings & popups */
[data-theme="light"] .quick-settings-panel,
[data-theme="light"] .volume-popup,
[data-theme="light"] .lang-popup,
[data-theme="light"] .weather-popup,
[data-theme="light"] .calendar-popup {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .weather-detail-row {
    border-top-color: rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .mini-cal-day.today {
    color: #fff !important;
}

/* Light theme: QS tiles */
[data-theme="light"] .qs-tile {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] .qs-tile:hover {
    background: rgba(0, 0, 0, 0.07) !important;
}
[data-theme="light"] .qs-tile.active {
    background: rgba(59, 130, 246, 0.12) !important;
    border-color: rgba(59, 130, 246, 0.25) !important;
}
[data-theme="light"] .qs-tile svg {
    color: #333 !important;
}
[data-theme="light"] .qs-tile.active svg {
    color: var(--accent-blue) !important;
}
[data-theme="light"] .qs-tile span {
    color: #333 !important;
}
[data-theme="light"] .qs-tile.active span {
    color: var(--accent-blue) !important;
}

/* Light theme: QS sliders */
[data-theme="light"] .qs-slider {
    background: rgba(0, 0, 0, 0.12) !important;
}
[data-theme="light"] .qs-slider-row svg {
    color: #333 !important;
}

/* Light theme: volume popup */
[data-theme="light"] .vol-mute-btn {
    background: rgba(0, 0, 0, 0.06) !important;
    color: #333 !important;
}
[data-theme="light"] .vol-slider {
    background: rgba(0, 0, 0, 0.12) !important;
}
[data-theme="light"] .vol-value {
    color: #666 !important;
}

/* Light theme: tray items */
[data-theme="light"] .tray-time,
[data-theme="light"] .tray-date {
    color: #000 !important;
}
[data-theme="light"] .tray-btn,
[data-theme="light"] .tray-volume,
[data-theme="light"] .tray-network {
    color: #333 !important;
}

/* Cyberpunk Theme */
[data-theme="cyberpunk"] {
    --login-avatar-1: #ff2eaa;
    --login-avatar-2: #bf5fff;
    --bg-primary: #0a0010;
    --bg-secondary: #120822;
    --bg-tertiary: #1a0f30;
    --bg-surface: rgba(18, 8, 35, 0.88);
    --bg-glass: rgba(15, 5, 30, 0.78);
    --bg-glass-light: rgba(30, 15, 55, 0.65);
    --bg-hover: rgba(255, 0, 200, 0.08);
    --bg-active: rgba(255, 0, 200, 0.14);
    --text-primary: #e8e0ff;
    --text-secondary: #b090e0;
    --text-tertiary: #7060a0;
    --text-accent: #ff2eaa;
    --accent-blue: #ff2eaa;
    --accent-blue-hover: #ff0090;
    --accent-purple: #bf5fff;
    --accent-green: #00ffaa;
    --accent-red: #ff2244;
    --accent-yellow: #ffe040;
    --accent-pink: #ff2eaa;
    --accent-cyan: #00e5ff;
    --border-subtle: rgba(255, 46, 170, 0.12);
    --border-light: rgba(255, 46, 170, 0.2);
    --border-focus: rgba(0, 229, 255, 0.6);
    --shadow-sm: 0 2px 8px rgba(180, 0, 255, 0.15), 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 20px rgba(180, 0, 255, 0.2), 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 8px 40px rgba(180, 0, 255, 0.25), 0 8px 32px rgba(0, 0, 0, 0.5);
    --shadow-xl: 0 16px 60px rgba(180, 0, 255, 0.3), 0 16px 48px rgba(0, 0, 0, 0.6);

    /* Cyberpunk icon colors — neon */
    --icon-about-1: #00E5FF; --icon-about-2: #FF2EAA;
    --icon-ref-1: #BF5FFF; --icon-ref-2: #FF2EAA;
    --icon-gallery-1: #00FFAA; --icon-gallery-2: #00E5FF;
    --icon-proj-1: #FF2EAA; --icon-proj-2: #BF5FFF;
    --icon-term-1: #1a0035; --icon-term-2: #0d001a;
    --icon-skill-1: #00FFAA; --icon-skill-2: #00E5FF;
    --icon-browser-1: #00E5FF; --icon-browser-2: #BF5FFF; --icon-browser-3: #FF2EAA;
    --icon-contact-1: #FFE040; --icon-contact-2: #FF2EAA;
    --icon-music-1: #FF2EAA; --icon-music-2: #BF5FFF;
    --icon-cv-1: #FF2244; --icon-cv-2: #FF2EAA;
    --icon-settings-1: #7060A0; --icon-settings-2: #BF5FFF;
    --icon-calc-1: #00E5FF; --icon-calc-2: #00B8D4;
    --icon-guest-1: #FFE040; --icon-guest-2: #FFAB00;
    --icon-code-1: #00E5FF; --icon-code-2: #BF5FFF;
    --icon-blog-1: #FF2EAA; --icon-blog-2: #FF0066;
    --icon-notepad-1: #FFE040; --icon-notepad-2: #FFAB00;
    --icon-calendar-1: #FF2244; --icon-calendar-2: #FF2EAA; --icon-calendar-3: #cc0022;
    --icon-fm-1: #00E5FF; --icon-fm-2: #BF5FFF;
    --icon-snake-1: #00FFAA; --icon-snake-2: #00CC88;
    --icon-mine-1: #7060A0; --icon-mine-2: #BF5FFF;
    --icon-chess-1: #FFE040; --icon-chess-2: #FFAB00;
}

[data-theme="cyberpunk"] .desktop-wallpaper {
    background: url('/uploads/wallpaper/cyberpunk-bg.webp') center/cover no-repeat !important;
}

[data-theme="cyberpunk"] .desktop-wallpaper::before {
    display: none;
}

[data-theme="cyberpunk"] .os-window {
    border: 1px solid rgba(255, 46, 170, 0.15);
    box-shadow: 0 8px 40px rgba(120, 0, 255, 0.15), 0 0 1px rgba(255, 46, 170, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

[data-theme="cyberpunk"] .window-titlebar {
    background: rgba(15, 5, 30, 0.6);
    border-bottom: 1px solid rgba(255, 46, 170, 0.1);
}

[data-theme="cyberpunk"] .taskbar {
    background: rgba(10, 2, 25, 0.9);
    border-top: 1px solid rgba(255, 46, 170, 0.15);
    box-shadow: 0 -4px 30px rgba(120, 0, 255, 0.1);
}

[data-theme="cyberpunk"] .start-menu {
    border: 1px solid rgba(255, 46, 170, 0.15);
    box-shadow: 0 16px 60px rgba(120, 0, 255, 0.2), 0 0 1px rgba(255, 46, 170, 0.4);
}

[data-theme="cyberpunk"] .context-menu {
    border: 1px solid rgba(255, 46, 170, 0.15);
    box-shadow: 0 8px 40px rgba(120, 0, 255, 0.15);
}

[data-theme="cyberpunk"] .tray-popup {
    border: 1px solid rgba(255, 46, 170, 0.12);
}

[data-theme="cyberpunk"] * {
    scrollbar-color: rgba(255, 46, 170, 0.3) transparent;
}

[data-theme="cyberpunk"] ::selection {
    background: rgba(255, 46, 170, 0.3);
    color: #fff;
}

/* Cyberpunk: neon glow icons */
[data-theme="cyberpunk"] .icon-img svg {
    stroke-width: 2.5;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.4)) !important;
}
[data-theme="cyberpunk"] .icon-img {
    box-shadow: 0 0 12px rgba(255, 46, 170, 0.25), 0 0 24px rgba(120, 0, 255, 0.15);
}
[data-theme="cyberpunk"] .start-app-icon svg {
    stroke-width: 2.5;
    filter: drop-shadow(0 0 3px rgba(255, 255, 255, 0.3)) !important;
}
[data-theme="cyberpunk"] .start-app-icon {
    box-shadow: 0 0 8px rgba(255, 46, 170, 0.2), 0 0 16px rgba(120, 0, 255, 0.1);
}
[data-theme="cyberpunk"] .icon-label {
    text-shadow: 0 0 8px rgba(255, 46, 170, 0.4), 0 1px 3px rgba(0, 0, 0, 0.8) !important;
}

/* ── The Codefather Theme ── */
[data-theme="codefather"] {
    --login-avatar-1: #cc0000;
    --login-avatar-2: #880000;
    --bg-primary: #000000;
    --bg-secondary: #0a0a0a;
    --bg-tertiary: #111111;
    --bg-surface: rgba(10, 10, 10, 0.92);
    --bg-glass: rgba(5, 5, 5, 0.85);
    --bg-glass-light: rgba(20, 20, 20, 0.7);
    --bg-hover: rgba(255, 255, 255, 0.05);
    --bg-active: rgba(255, 255, 255, 0.08);
    --text-primary: #e0e0e0;
    --text-secondary: #888888;
    --text-tertiary: #555555;
    --text-accent: #cc0000;
    --accent-blue: #cc0000;
    --accent-blue-hover: #aa0000;
    --accent-purple: #880000;
    --login-btn-1: rgba(204, 0, 0, 0.5);
    --login-btn-2: rgba(136, 0, 0, 0.5);
    --login-glow-1: rgba(204, 0, 0, 0.3);
    --login-glow-2: rgba(136, 0, 0, 0.15);
    --accent-green: #888888;
    --accent-red: #cc0000;
    --accent-yellow: #999999;
    --accent-pink: #cc0000;
    --accent-cyan: #aaaaaa;
    --border-color: rgba(255, 255, 255, 0.08);

    --icon-about-1: #cc0000; --icon-about-2: #880000;
    --icon-ref-1: #999; --icon-ref-2: #666;
    --icon-gallery-1: #bbb; --icon-gallery-2: #888;
    --icon-proj-1: #cc0000; --icon-proj-2: #880000;
    --icon-term-1: #222; --icon-term-2: #000;
    --icon-skill-1: #aaa; --icon-skill-2: #777;
    --icon-browser-1: #999; --icon-browser-2: #666; --icon-browser-3: #444;
    --icon-contact-1: #cc0000; --icon-contact-2: #880000;
    --icon-music-1: #cc0000; --icon-music-2: #880000;
    --icon-cv-1: #bbb; --icon-cv-2: #888;
    --icon-settings-1: #666; --icon-settings-2: #444;
    --icon-calc-1: #999; --icon-calc-2: #777;
    --icon-guest-1: #cc0000; --icon-guest-2: #880000;
    --icon-code-1: #cc0000; --icon-code-2: #880000;
    --icon-blog-1: #cc0000; --icon-blog-2: #880000;
    --icon-notepad-1: #999; --icon-notepad-2: #777;
    --icon-calendar-1: #cc0000; --icon-calendar-2: #880000; --icon-calendar-3: #660000;
    --icon-fm-1: #999; --icon-fm-2: #666;
    --icon-snake-1: #aaa; --icon-snake-2: #888;
    --icon-mine-1: #666; --icon-mine-2: #444;
    --icon-chess-1: #bbb; --icon-chess-2: #888;
}

[data-theme="codefather"] .desktop-wallpaper {
    background: url('/uploads/wallpaper/codefather-bg.webp') center/cover no-repeat #000 !important;
}
[data-theme="codefather"] .desktop-wallpaper::before {
    display: none;
}
[data-theme="codefather"] .matrix-canvas { opacity: 0.7 !important; filter: none !important; }
[data-theme="codefather"] .os-window {
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6), 0 0 1px rgba(255, 255, 255, 0.05);
}
[data-theme="codefather"] .window-titlebar {
    background: rgba(10, 10, 10, 0.8);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
[data-theme="codefather"] .taskbar {
    background: rgba(0, 0, 0, 0.95);
    border-top: 1px solid rgba(204, 0, 0, 0.15);
}
[data-theme="codefather"] .start-menu {
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 16px 60px rgba(0, 0, 0, 0.8);
}
[data-theme="codefather"] .context-menu {
    border: 1px solid rgba(255, 255, 255, 0.06);
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.6);
}
[data-theme="codefather"] .tray-popup {
    border: 1px solid rgba(255, 255, 255, 0.06);
}
[data-theme="codefather"] * {
    scrollbar-color: rgba(204, 0, 0, 0.3) transparent;
}
[data-theme="codefather"] ::selection {
    background: rgba(204, 0, 0, 0.35);
    color: #fff;
}
[data-theme="codefather"] .icon-img {
    box-shadow: none;
    filter: grayscale(0.6);
}
[data-theme="codefather"] .icon-label {
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9) !important;
}
[data-theme="codefather"] .lock-wallpaper {
    background: url('/uploads/wallpaper/codefather-bg.webp') center/cover no-repeat #000 !important;
    filter: blur(6px) brightness(0.85);
    transform: scale(1.05);
}
[data-theme="codefather"] .login-wallpaper {
    background: url('/uploads/wallpaper/codefather-bg.webp') center/cover no-repeat #000 !important;
}
[data-theme="codefather"] .lock-time {
    color: #5a0000 !important;
    font-weight: 700 !important;
    text-shadow:
        0 0 20px rgba(90, 0, 0, 0.25),
        0 4px 8px rgba(80, 0, 0, 0.2),
        0 8px 16px rgba(60, 0, 0, 0.12) !important;
    animation: clockBloodPulse 3s ease-in-out infinite !important;
    position: relative;
    overflow: visible;
}

@keyframes clockBloodPulse {
    0%, 100% {
        text-shadow:
            0 0 15px rgba(90, 0, 0, 0.2),
            0 4px 8px rgba(80, 0, 0, 0.15),
            0 8px 16px rgba(60, 0, 0, 0.1);
        filter: brightness(0.9);
    }
    50% {
        text-shadow:
            0 0 25px rgba(120, 0, 0, 0.35),
            0 4px 10px rgba(100, 0, 0, 0.25),
            0 8px 20px rgba(80, 0, 0, 0.15);
        filter: brightness(1);
    }
}

/* Blood drop elements falling from clock */
[data-theme="codefather"] .blood-drop {
    position: absolute;
    width: 3px;
    pointer-events: none;
    z-index: 1;
    border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
    background: radial-gradient(ellipse at 30% 20%, #aa0000, #6b0000);
    box-shadow: 0 0 4px rgba(139, 0, 0, 0.5), 0 2px 6px rgba(100, 0, 0, 0.3);
    animation: bloodDropFall var(--drop-duration, 2.5s) ease-in forwards;
    animation-delay: var(--drop-delay, 0s);
    opacity: 0;
}

@keyframes bloodDropFall {
    0% {
        opacity: 0;
        transform: translateY(0) scaleY(0.5);
        height: 0px;
    }
    5% {
        opacity: 0.8;
        height: var(--drop-height, 8px);
        transform: translateY(0) scaleY(1);
    }
    15% {
        opacity: 0.9;
        transform: translateY(2px) scaleY(1.2);
        height: var(--drop-height, 8px);
    }
    30% {
        opacity: 0.85;
        transform: translateY(20px) scaleY(1.5);
    }
    70% {
        opacity: 0.6;
        transform: translateY(60px) scaleY(1.8);
    }
    100% {
        opacity: 0;
        transform: translateY(100px) scaleY(2);
    }
}
/* Liquid Glass effect on lock screen background */
[data-theme="codefather"] .lock-overlay {
    background: rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(3px) saturate(1.1) brightness(0.9) !important;
    -webkit-backdrop-filter: blur(3px) saturate(1.1) brightness(0.9) !important;
}
[data-theme="codefather"] .lock-screen::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    pointer-events: none;
    background:
        radial-gradient(ellipse 300px 200px at 25% 30%, rgba(139, 0, 0, 0.06) 0%, transparent 70%),
        radial-gradient(ellipse 250px 250px at 70% 60%, rgba(100, 0, 0, 0.05) 0%, transparent 70%),
        radial-gradient(ellipse 200px 300px at 50% 80%, rgba(80, 0, 0, 0.04) 0%, transparent 70%);
    animation: liquidGlassShift 8s ease-in-out infinite alternate;
}

@keyframes liquidGlassShift {
    0% {
        background:
            radial-gradient(ellipse 300px 200px at 25% 30%, rgba(139, 0, 0, 0.06) 0%, transparent 70%),
            radial-gradient(ellipse 250px 250px at 70% 60%, rgba(100, 0, 0, 0.05) 0%, transparent 70%),
            radial-gradient(ellipse 200px 300px at 50% 80%, rgba(80, 0, 0, 0.04) 0%, transparent 70%);
    }
    33% {
        background:
            radial-gradient(ellipse 350px 250px at 35% 25%, rgba(120, 0, 0, 0.07) 0%, transparent 70%),
            radial-gradient(ellipse 200px 300px at 60% 70%, rgba(139, 0, 0, 0.05) 0%, transparent 70%),
            radial-gradient(ellipse 280px 200px at 40% 50%, rgba(90, 0, 0, 0.04) 0%, transparent 70%);
    }
    66% {
        background:
            radial-gradient(ellipse 250px 300px at 45% 35%, rgba(100, 0, 0, 0.06) 0%, transparent 70%),
            radial-gradient(ellipse 300px 200px at 75% 50%, rgba(130, 0, 0, 0.05) 0%, transparent 70%),
            radial-gradient(ellipse 220px 280px at 30% 70%, rgba(110, 0, 0, 0.05) 0%, transparent 70%);
    }
    100% {
        background:
            radial-gradient(ellipse 280px 220px at 55% 40%, rgba(139, 0, 0, 0.07) 0%, transparent 70%),
            radial-gradient(ellipse 230px 280px at 30% 55%, rgba(90, 0, 0, 0.05) 0%, transparent 70%),
            radial-gradient(ellipse 320px 200px at 65% 75%, rgba(120, 0, 0, 0.04) 0%, transparent 70%);
    }
}

/* Liquid glass on login card */
[data-theme="codefather"] .login-overlay {
    background: rgba(0, 0, 0, 0.15) !important;
    backdrop-filter: blur(1px) brightness(0.9) !important;
    -webkit-backdrop-filter: blur(1px) brightness(0.9) !important;
}

[data-theme="codefather"] .lock-date {
    color: rgba(255, 255, 255, 0.85) !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.3) !important;
}
[data-theme="codefather"] .lock-hint {
    display: none !important;
}

/* Blood drip character animation for Codefather theme */
[data-theme="codefather"] .lock-message .char-visible {
    animation: charBloodDrip 0.8s ease-out forwards !important;
}

@keyframes charBloodDrip {
    0% {
        opacity: 0;
        transform: translateY(-60px);
        color: #cc0000;
        text-shadow: 0 -8px 12px rgba(204, 0, 0, 0.8), 0 0 6px rgba(139, 0, 0, 0.6);
    }
    15% {
        opacity: 0.7;
        transform: translateY(-20px);
        color: #aa0000;
        text-shadow: 0 -4px 8px rgba(170, 0, 0, 0.6);
    }
    40% {
        opacity: 1;
        transform: translateY(4px);
        color: #cc0000;
        text-shadow: 0 4px 15px rgba(204, 0, 0, 0.7), 0 8px 20px rgba(139, 0, 0, 0.3);
    }
    55% {
        transform: translateY(-1px);
        color: #bb0000;
    }
    70% {
        transform: translateY(2px);
        color: #990000;
        text-shadow: 0 3px 10px rgba(153, 0, 0, 0.4);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        color: #ffffff;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.4), 0 0 20px rgba(255, 255, 255, 0.15);
    }
}

/* Blood drip animation for lock-hint text */
[data-theme="codefather"] .lock-hint.blood-drip-ready .blood-char {
    display: inline-block;
    opacity: 0;
}

[data-theme="codefather"] .lock-hint.blood-drip-ready .blood-char.drip-visible {
    animation: charBloodDripHint 0.6s ease-out forwards;
}

[data-theme="codefather"] .lock-hint.blood-drip-ready .blood-space {
    display: inline;
    width: 0.25em;
}

@keyframes charBloodDripHint {
    0% {
        opacity: 0;
        transform: translateY(-40px);
        color: #8b0000;
        text-shadow: 0 -6px 10px rgba(139, 0, 0, 0.7);
    }
    30% {
        opacity: 0.8;
        transform: translateY(3px);
        color: #cc0000;
        text-shadow: 0 4px 12px rgba(204, 0, 0, 0.5);
    }
    60% {
        transform: translateY(-1px);
        color: #aa0000;
    }
    100% {
        opacity: 1;
        transform: translateY(0);
        color: #ffffff;
        text-shadow: 0 0 8px rgba(255, 255, 255, 0.4), 0 0 20px rgba(255, 255, 255, 0.15);
    }
}
[data-theme="codefather"] .login-card {
    background: transparent !important;
    border: none !important;
    box-shadow: none !important;
    z-index: 4 !important;
}
[data-theme="codefather"] .login-avatar {
    position: relative;
    z-index: 5;
    box-shadow: 0 0 20px rgba(139, 0, 0, 0.4), 0 0 40px rgba(139, 0, 0, 0.15) !important;
}
[data-theme="codefather"] .login-avatar:hover {
    box-shadow: 0 0 30px rgba(204, 0, 0, 0.6), 0 0 60px rgba(139, 0, 0, 0.3) !important;
}

/* Keep avatar visible longer during login explosion */
[data-theme="codefather"] .login-screen.logging-in .login-card {
    animation: none !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
}
[data-theme="codefather"] .login-screen.logging-in .login-card .login-hint,
[data-theme="codefather"] .login-screen.logging-in .login-card #login-hint {
    animation: fadeOutQuick 0.4s ease forwards;
}
[data-theme="codefather"] .login-screen.logging-in .login-card .login-btn-wrap {
    animation: fadeOutQuick 1.2s ease 0.6s forwards;
}
[data-theme="codefather"] .login-screen.logging-in .login-card .login-username,
[data-theme="codefather"] .login-screen.logging-in .login-avatar {
    animation: fadeOutQuick 1.6s ease forwards !important;
}

@keyframes fadeOutQuick {
    0% { opacity: 1; }
    100% { opacity: 0; }
}
@keyframes avatarBloodFadeOut {
    0% { opacity: 1; transform: scale(1); }
    70% { opacity: 1; transform: scale(1.05); }
    100% { opacity: 0; transform: scale(1.15); filter: blur(3px); }
}
[data-theme="codefather"] .login-btn {
    background: url('/uploads/profile/mermi.webp') center top/contain no-repeat !important;
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    width: 220px;
    height: 220px;
    padding: 0;
    box-sizing: content-box;
    padding-bottom: 28px;
    font-size: 0;
    color: transparent;
    border-radius: 0;
    animation: none;
    filter: none;
    transition: none;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
}
[data-theme="codefather"] .login-btn:hover {
    transform: none;
    filter: none;
}
@keyframes bulletGlow {
    0%, 100% {
        filter: drop-shadow(0 0 14px rgba(204, 0, 0, 0.5)) drop-shadow(0 0 30px rgba(139, 0, 0, 0.2));
    }
    50% {
        filter: drop-shadow(0 0 24px rgba(204, 0, 0, 0.7)) drop-shadow(0 0 50px rgba(139, 0, 0, 0.4));
    }
}
[data-theme="codefather"] .login-btn::after {
    display: block;
    font-size: 18px;
    font-weight: 700;
    color: #fff;
    text-shadow: 0 0 12px rgba(255, 255, 255, 0.5), 0 0 24px rgba(204, 0, 0, 0.3);
    letter-spacing: 1.5px;
    margin-top: 6px;
}
[lang="en"][data-theme="codefather"] .login-btn::after { content: 'Log In'; }
[lang="tr"][data-theme="codefather"] .login-btn::after { content: 'Giriş Yap'; }
[data-theme="codefather"] .login-btn:active {
    transform: none;
}
[data-theme="codefather"] .login-btn.bullet-fired {
    background: url('/uploads/profile/mermi-kovani.webp') center top/contain no-repeat !important;
}
[data-theme="codefather"] .login-btn.bullet-fired::after {
    display: none;
}
.bullet-projectile {
    position: fixed;
    z-index: 6;
    pointer-events: none;
    height: 60px;
    object-fit: contain;
    transition: none;
}
[data-theme="codefather"] .login-username {
    color: #e0e0e0 !important;
    font-family: 'TheGodfather', 'Georgia', serif !important;
    font-weight: 400;
    font-size: 34px;
    letter-spacing: 2px;
    text-shadow: 0 0 20px rgba(139, 0, 0, 0.4);
}

/* Codefather theme — override blue accents to red */
[data-theme="codefather"] .about-avatar {
    background: linear-gradient(135deg, #8b0000, #5a0000);
}
[data-theme="codefather"] .about-card-value {
    color: #cc0000;
}
[data-theme="codefather"] .skill-fill {
    background: linear-gradient(90deg, #8b0000, #cc0000) !important;
}

/* Codefather profile card in start menu */
[data-theme="codefather"] .profile-card-banner {
    background: linear-gradient(135deg, #1a0000 0%, #4a0000 50%, #8b0000 100%);
}
[data-theme="codefather"] .profile-card-stat strong {
    background: linear-gradient(135deg, #cc0000, #ff4444);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Codefather mouse cursor — rose */
[data-theme="codefather"],
[data-theme="codefather"] * {
    cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><text y='24' font-size='24'>🌹</text></svg>") 8 8, auto;
}
[data-theme="codefather"] a,
[data-theme="codefather"] button,
[data-theme="codefather"] [role='button'],
[data-theme="codefather"] .clickable {
    cursor: url("data:image/svg+xml,<svg xmlns='http://www.w3.org/2000/svg' width='32' height='32' viewBox='0 0 32 32'><text y='24' font-size='24'>🌹</text></svg>") 8 8, pointer;
}

/* Codefather start button — rose emoji */
[data-theme="codefather"] .start-btn svg {
    display: none;
}
[data-theme="codefather"] .start-btn::after {
    content: '🌹';
    font-size: 22px;
    line-height: 1;
}

/* Codefather start menu avatar */
[data-theme="codefather"] .start-user-avatar {
    background: linear-gradient(135deg, #8b0000, #5a0000);
}

/* Codefather language selector */
[data-theme="codefather"] .screen-lang-btn.active {
    background: rgba(139, 0, 0, 0.5);
    box-shadow: 0 0 8px rgba(139, 0, 0, 0.3);
}
[data-theme="codefather"] .screen-lang-btn:hover {
    color: rgba(255, 200, 200, 0.8);
    background: rgba(139, 0, 0, 0.15);
}

/* Hide mouse effects on codefather */
[data-theme="codefather"] #dark-login-mouse-particles { display: none !important; }
[data-theme="codefather"] #light-sparkle-canvas { display: none !important; }

/* Theme-specific canvas effect opacity */
[data-theme="cyberpunk"] .matrix-canvas { opacity: 0.7 !important; }
[data-theme="light"] .matrix-canvas { opacity: 0.4 !important; }

/* Theme mouse effects — hide on other themes */
[data-theme="light"] #dark-login-mouse-particles,
[data-theme="cyberpunk"] #dark-login-mouse-particles { display: none !important; }
[data-theme="dark"] #light-sparkle-canvas,
[data-theme="cyberpunk"] #light-sparkle-canvas { display: none !important; }
:not([data-theme]) #light-sparkle-canvas { display: none !important; }

/* Cyberpunk: lock & login screens */
[data-theme="cyberpunk"] .lock-wallpaper,
[data-theme="cyberpunk"] .login-wallpaper {
    background: url('/uploads/wallpaper/cyberpunk-bg.webp') center/cover no-repeat !important;
}
[data-theme="cyberpunk"] .lock-time {
    text-shadow: 0 0 30px rgba(255, 46, 170, 0.5), 0 0 60px rgba(120, 0, 255, 0.3) !important;
    color: #ff2eaa !important;
}
[data-theme="cyberpunk"] .lock-date {
    color: rgba(191, 95, 255, 0.8) !important;
}
[data-theme="cyberpunk"] .lock-hint {
    color: rgba(0, 229, 255, 0.6) !important;
}
[data-theme="cyberpunk"] .login-card {
    background: rgba(18, 8, 40, 0.85) !important;
    border: 1px solid rgba(255, 46, 170, 0.2) !important;
    box-shadow: 0 16px 60px rgba(120, 0, 255, 0.25), 0 0 1px rgba(255, 46, 170, 0.4) !important;
}
[data-theme="cyberpunk"] .login-btn {
    --btn-color-1: rgba(255, 46, 170, 0.7);
    --btn-color-2: rgba(191, 95, 255, 0.7);
    --btn-glow-1: rgba(255, 46, 170, 0.4);
    --btn-glow-2: rgba(120, 0, 255, 0.2);
}
[data-theme="cyberpunk"] .login-username {
    color: #e8e0ff !important;
}

/* Light theme: lock & login screens */
[data-theme="light"] .lock-wallpaper,
[data-theme="light"] .login-wallpaper {
    background: url('/uploads/wallpaper/light-bg.webp') center/cover no-repeat !important;
}
[data-theme="light"] .lock-overlay,
[data-theme="light"] .login-overlay {
    background: transparent !important;
}
[data-theme="light"] .lock-time {
    color: #000 !important;
    text-shadow: none !important;
}
[data-theme="light"] .lock-date {
    color: #333 !important;
}
[data-theme="light"] .lock-hint {
    color: rgba(0, 0, 0, 0.4) !important;
}
[data-theme="light"] .login-card {
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.1) !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08) !important;
}
[data-theme="light"] .login-btn {
    --btn-color-1: rgba(0, 0, 0, 0.85);
    --btn-color-2: rgba(30, 30, 30, 0.85);
    --btn-glow-1: rgba(0, 0, 0, 0.1);
    --btn-glow-2: rgba(0, 0, 0, 0.05);
    color: #fff !important;
}
[data-theme="light"] .login-username {
    color: #000 !important;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    width: 100%;
    height: 100%;
    overflow: hidden;
    font-family: var(--font-sans);
    font-size: 14px;
    line-height: 1.5;
    color: var(--text-primary);
    background: var(--bg-primary);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    user-select: none;
}

/* Scrollbar Styling */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.25);
}

/* Utility Classes */
.glass {
    background: var(--bg-glass);
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    border: 1px solid var(--border-subtle);
}

.glass-light {
    background: var(--bg-glass-light);
    backdrop-filter: var(--blur-md);
    -webkit-backdrop-filter: var(--blur-md);
    border: 1px solid var(--border-light);
}

/* Selection */
::selection {
    background: rgba(59, 130, 246, 0.3);
    color: var(--text-primary);
}

/* Focus Visible */
:focus-visible {
    outline: 2px solid var(--accent-blue);
    outline-offset: 2px;
}

/* Animation Keyframes */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

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

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

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

@keyframes scaleIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

@keyframes scaleOut {
    from { transform: scale(1); opacity: 1; }
    to { transform: scale(0.92); opacity: 0; }
}

@keyframes windowOpen {
    from {
        transform: scale(0.88) translateY(20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes windowClose {
    from {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    to {
        transform: scale(0.88) translateY(20px);
        opacity: 0;
    }
}

@keyframes windowMinimize {
    from {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
    to {
        transform: scale(0.5) translateY(100px);
        opacity: 0;
    }
}

@keyframes windowRestore {
    from {
        transform: scale(0.5) translateY(100px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

@keyframes startMenuOpen {
    from {
        transform: translateY(20px) scale(0.96);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

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

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* ── Legal Links ── */
.legal-links {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    align-items: center;
    gap: 6px;
    z-index: 10;
}
.legal-links a {
    color: rgba(255, 255, 255, 0.45);
    text-decoration: none;
    font-size: 11px;
    transition: color 0.2s;
}
.legal-links a:hover {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: underline;
}
.legal-sep {
    color: rgba(255, 255, 255, 0.25);
    font-size: 11px;
}
[data-theme="light"] .legal-links a {
    color: rgba(0, 0, 0, 0.35);
}
[data-theme="light"] .legal-links a:hover {
    color: rgba(0, 0, 0, 0.7);
}
[data-theme="light"] .legal-sep {
    color: rgba(0, 0, 0, 0.2);
}

/* ── Legal Modal ── */
.legal-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 3000;
    align-items: center;
    justify-content: center;
}
.legal-modal.active {
    display: flex;
}
.legal-modal-backdrop {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}
.legal-modal-content {
    position: relative;
    width: 90%;
    max-width: 640px;
    max-height: 80vh;
    background: var(--bg-glass, rgba(25, 25, 45, 0.92));
    backdrop-filter: var(--blur-lg);
    -webkit-backdrop-filter: var(--blur-lg);
    border: 1px solid var(--border-subtle);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    display: flex;
    flex-direction: column;
    animation: scaleIn 0.25s ease;
}
.legal-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border-subtle);
}
.legal-modal-header h2 {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}
.legal-modal-close {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 22px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-sm);
    transition: background 0.15s;
}
.legal-modal-close:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}
.legal-modal-body {
    padding: 20px;
    overflow-y: auto;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}
.legal-modal-body h1 {
    font-size: 18px;
    color: var(--text-primary);
    margin-bottom: 12px;
}
.legal-modal-body h2 {
    font-size: 15px;
    color: var(--text-primary);
    margin: 16px 0 8px;
}
.legal-modal-body h3 {
    font-size: 14px;
    color: var(--text-primary);
    margin: 12px 0 6px;
}
.legal-modal-body p {
    margin-bottom: 8px;
}

/* ── Stats Widget ── */
.stats-widget {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 220px;
    background: var(--bg-glass, rgba(10,10,20,0.75));
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color, rgba(255,255,255,0.08));
    border-radius: 14px;
    padding: 14px 16px;
    color: var(--text-secondary, #8a8aa0);
    font-size: 11.5px;
    z-index: 50;
    opacity: 0.7;
    transition: opacity 0.3s ease;
    pointer-events: auto;
    line-height: 1.5;
    font-family: 'Segoe UI', system-ui, sans-serif;
}
.stats-widget:hover { opacity: 1; }
.sw-header { font-size: 13px; margin-bottom: 2px; color: var(--text-primary, #e0e0f0); }
.sw-header strong { font-size: 18px; font-weight: 700; }
.sw-muted { font-size: 10px; opacity: 0.6; }
.sw-subheader { font-size: 12px; color: var(--text-primary, #e0e0f0); margin-bottom: 2px; }
.sw-subheader strong { font-size: 16px; font-weight: 700; }
.sw-today { font-size: 10px; opacity: 0.5; margin-bottom: 2px; }
.sw-divider { height: 1px; background: var(--border-color, rgba(255,255,255,0.08)); margin: 8px 0; }
.sw-section { }
.sw-title { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; opacity: 0.5; display: block; margin-bottom: 4px; }
.sw-row { display: flex; align-items: center; gap: 4px; padding: 1px 0; }
.sw-rank { opacity: 0.4; font-size: 10px; min-width: 14px; }
.sw-val { margin-left: auto; font-weight: 600; color: var(--text-accent, #6c8aff); font-size: 11px; }
.sw-countries { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.sw-country { font-size: 11px; }

/* ── Widget Weather Animations ── */
.sw-weather-box {
    position: relative;
    height: 48px;
    overflow: hidden;
    border-radius: 10px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
}
.sw-weather-anim { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.sw-weather-info { position: relative; z-index: 2; text-align: right; line-height: 1.3; }
.sw-weather-temp { font-size: 18px; font-weight: 700; color: var(--text-primary); display: block; }
.sw-weather-desc { font-size: 10px; opacity: 0.6; }
.sw-weather-city { font-size: 9px; opacity: 0.5; display: block; }

/* Güneş */
.sw-sunny { background: linear-gradient(135deg, rgba(255,200,50,0.15), rgba(255,140,0,0.08)); }
.sw-sun { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 30px; height: 30px; animation: sw-sun-rotate 12s linear infinite; }
.sw-sun-core { position: absolute; inset: 6px; border-radius: 50%; background: radial-gradient(circle, #ffd700, #ff8c00); box-shadow: 0 0 12px rgba(255,200,0,0.6); }
.sw-sun-ray { position: absolute; top: 50%; left: 50%; width: 2px; height: 10px; background: rgba(255,200,0,0.7); transform-origin: center -3px; border-radius: 1px; }
.sw-sun-ray:nth-child(2) { transform: rotate(0deg) translateY(-12px); }
.sw-sun-ray:nth-child(3) { transform: rotate(45deg) translateY(-12px); }
.sw-sun-ray:nth-child(4) { transform: rotate(90deg) translateY(-12px); }
.sw-sun-ray:nth-child(5) { transform: rotate(135deg) translateY(-12px); }
.sw-sun-ray:nth-child(6) { transform: rotate(180deg) translateY(-12px); }
.sw-sun-ray:nth-child(7) { transform: rotate(225deg) translateY(-12px); }
.sw-sun-ray:nth-child(8) { transform: rotate(270deg) translateY(-12px); }
.sw-sun-ray:nth-child(9) { transform: rotate(315deg) translateY(-12px); }
@keyframes sw-sun-rotate { from { transform: translateY(-50%) rotate(0deg); } to { transform: translateY(-50%) rotate(360deg); } }

/* Yağmur */
.sw-rainy { background: linear-gradient(180deg, rgba(80,120,180,0.12), rgba(40,70,120,0.08)); }
.sw-raindrop { position: absolute; top: -6px; width: 1.5px; height: 8px; background: linear-gradient(180deg, transparent, rgba(100,160,255,0.7)); border-radius: 0 0 2px 2px; animation: sw-rain-fall linear infinite; }
@keyframes sw-rain-fall { 0% { top: -8px; opacity: 0; } 20% { opacity: 1; } 100% { top: 52px; opacity: 0; } }

/* Şimşek */
.sw-lightning { position: absolute; inset: 0; background: rgba(255,255,200,0.15); animation: sw-lightning-flash 4s infinite; opacity: 0; }
@keyframes sw-lightning-flash { 0%,92%,100% { opacity: 0; } 93% { opacity: 1; } 94% { opacity: 0; } 95% { opacity: 0.7; } 96% { opacity: 0; } }

/* Kar */
.sw-snowy { background: linear-gradient(180deg, rgba(200,220,255,0.1), rgba(180,200,240,0.06)); }
.sw-snowflake { position: absolute; top: -5px; background: rgba(255,255,255,0.8); border-radius: 50%; animation: sw-snow-fall linear infinite; }
@keyframes sw-snow-fall { 0% { top: -5px; opacity: 0; transform: translateX(0); } 20% { opacity: 1; } 100% { top: 55px; opacity: 0; transform: translateX(10px); } }

/* Bulut */
.sw-cloudy { background: linear-gradient(135deg, rgba(150,160,180,0.1), rgba(120,130,150,0.06)); }
.sw-cloud { position: absolute; background: rgba(180,190,210,0.25); border-radius: 20px; }
.sw-cloud1 { width: 40px; height: 14px; top: 10px; left: -10px; animation: sw-cloud-drift 8s linear infinite; }
.sw-cloud2 { width: 30px; height: 10px; top: 26px; left: 10px; animation: sw-cloud-drift 12s linear infinite; animation-delay: -4s; }
@keyframes sw-cloud-drift { 0% { transform: translateX(-20px); } 100% { transform: translateX(240px); } }

/* Mobilde gizle */
@media (max-width: 768px) {
    .stats-widget { display: none; }
}
