/* ============================================================
   1. FUNDAMENTY (KOLORY, RESET, ZMIENNE)
   ============================================================ */
:root {
    /* WYMIARY */
    --szerokosc-menu: 260px;
    --odsuniecie-strony: 260px;

    /* KOLORY */
    --bg-main: #050506;       
    --bg-card: #0f0f12;       
    --accent: #8b5cf6;        
    --accent-dark: #7c3aed;   
    --accent-glow: rgba(139, 92, 246, 0.5);
    --text: #ffffff;
    --text-dim: #94a3b8;      
    --border: rgba(255, 255, 255, 0.08);
    
    /* DODATKI */
    --kick: #00ff88;
    --twitch: #9146ff;
    --cyber-path: polygon(10% 0, 100% 0, 100% 70%, 90% 100%, 0 100%, 0 30%);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    background-color: var(--bg-main);
    color: var(--text);
    font-family: 'Rajdhani', sans-serif;
    overflow-x: hidden;
    min-height: 100vh;
}

/* Paski przewijania */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #000; }
::-webkit-scrollbar-thumb { background: #333; border-radius: 10px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ============================================================
   2. SIDEBAR (MENU BOCZNE - GLASSMORPHISM)
   ============================================================ */
.sidebar {
    width: var(--szerokosc-menu);
    height: 100vh;
    background: #050506;
    border-right: 1px solid var(--border);
    position: fixed;
    top: 0; left: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    box-shadow: 10px 0 50px rgba(0,0,0,0.5);
    overflow-y: auto;
}

/* Logo */
.logo-container { padding: 30px 0; text-align: center; position: relative; }
.logo { font-size: 28px; font-weight: 800; color: #fff; letter-spacing: 2px; text-shadow: 0 0 15px var(--accent-glow); }
.logo span { color: var(--accent); }
.logo-blur { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 60px; height: 60px; background: var(--accent); filter: blur(50px); opacity: 0.25; z-index: -1; }

/* Karta Użytkownika w Menu */
.user-sidebar-panel { padding: 0 15px; margin-bottom: 25px; }
.user-card {
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 15px;
    display: flex; align-items: center; gap: 12px;
    transition: 0.3s;
}
.user-card:hover { border-color: rgba(139, 92, 246, 0.3); box-shadow: 0 5px 20px rgba(0,0,0,0.3); }

.user-avatar-box { position: relative; flex-shrink: 0; }
.user-avatar-box img { width: 42px; height: 42px; border-radius: 10px; border: 2px solid transparent; }
.vip-badge {
    position: absolute; top: -5px; right: -5px; background: #ffd700; color: #000;
    font-size: 8px; width: 14px; height: 14px; display: flex; align-items: center; justify-content: center; border-radius: 50%;
}

.user-info { flex: 1; overflow: hidden; }
.user-nick { font-weight: 700; font-size: 14px; color: #fff; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: flex; align-items: center; gap: 5px; }
.xp-progress-bg { width: 100%; height: 4px; background: rgba(255,255,255,0.1); border-radius: 4px; margin-top: 5px; overflow: hidden; }
.xp-progress-fill { height: 100%; background: var(--accent); }
.rank-info { display: flex; justify-content: space-between; font-size: 10px; margin-top: 3px; color: #888; font-weight: 700; }

/* Waluta */
.currency-panel { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.pcoin-box { background: rgba(0,0,0,0.3); border-radius: 8px; padding: 6px 10px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(255,255,255,0.03); }
.pcoin-box i { color: #fbbf24; font-size: 12px; }
.pcoin-box .amount { font-weight: 800; color: #fff; font-size: 13px; }
.pcoin-box .currency { font-size: 8px; color: #fbbf24; font-weight: 700; margin-left: auto; }

.daily-btn { width: 100%; background: linear-gradient(90deg, #fbbf24 0%, #d97706 100%); border: none; padding: 10px; border-radius: 8px; color: #000; font-weight: 800; font-size: 11px; cursor: pointer; display: flex; justify-content: center; align-items: center; gap: 6px; transition: 0.3s; }
.daily-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 15px rgba(251, 191, 36, 0.3); }

/* Nawigacja */
.nav-container { padding: 0 15px 20px 15px; }
.pro-nav { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.nav-label { font-size: 10px; font-weight: 800; color: rgba(255,255,255,0.3); margin: 20px 0 8px 10px; letter-spacing: 1px; }

.nav-item {
    display: flex; align-items: center; padding: 12px 16px; border-radius: 12px;
    text-decoration: none; color: var(--text-dim); font-weight: 600; font-size: 14px;
    transition: 0.3s; position: relative; overflow: hidden;
}
.nav-item .icon { width: 24px; display: flex; justify-content: center; margin-right: 12px; font-size: 16px; transition: 0.3s; }
.nav-item:hover, .nav-item.active { background: rgba(139, 92, 246, 0.1); color: #fff; padding-left: 20px; }
.nav-item:hover .icon, .nav-item.active .icon { color: var(--accent); transform: scale(1.1); filter: drop-shadow(0 0 5px var(--accent)); }
.nav-item::before { content: ''; position: absolute; left: 0; top: 50%; transform: translateY(-50%); width: 3px; height: 0%; background: var(--accent); transition: 0.3s; opacity: 0; }
.nav-item:hover::before, .nav-item.active::before { height: 60%; opacity: 1; }

.steam-login-btn-sidebar {
    display: flex; align-items: center; justify-content: center; gap: 10px;
    background: #171a21; color: #fff; padding: 14px; border-radius: 12px;
    text-decoration: none; font-weight: 700; font-size: 12px; border: 1px solid rgba(255,255,255,0.1);
    transition: 0.3s; margin: 0 15px;
}
.steam-login-btn-sidebar:hover { background: #2a475e; border-color: #66c0f4; }

/* ============================================================
   3. GŁÓWNA TREŚĆ I UKŁAD (LAYOUT)
   ============================================================ */
.content {
    margin-left: var(--odsuniecie-strony);
    width: calc(100% - var(--odsuniecie-strony));
    padding: 30px;
    display: flex; flex-direction: column;
    min-height: 100vh;
}

/* Slider */
.main-slider {
    width: 100%; height: 380px; border-radius: 20px; overflow: hidden;
    margin-bottom: 30px; border: 1px solid var(--border); position: relative;
    background: #000;
}
.slide { width: 100%; height: 100%; background-size: cover; background-position: center; display: flex; align-items: center; padding: 60px; position: relative; }
.slide::before { content: ''; position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: linear-gradient(90deg, rgba(5,5,6,0.95) 0%, rgba(5,5,6,0.1) 100%); }
.slide-content { position: relative; z-index: 10; max-width: 600px; padding-left: 10px; }
.tag { background: var(--accent); color: #fff; padding: 4px 10px; font-size: 10px; font-weight: 800; border-radius: 4px; margin-bottom: 10px; display: inline-block; }
.slide h1 { font-size: 48px; font-weight: 900; text-transform: uppercase; margin: 10px 0; line-height: 1; }
.btn-main { background: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%); color: #fff !important; padding: 12px 28px; text-decoration: none; border-radius: 6px; font-weight: 800; display: inline-block; transition: 0.3s; text-transform: uppercase; letter-spacing: 1px; border: none; box-shadow: 0 4px 15px rgba(109, 40, 217, 0.4); margin-top: 20px; }
.btn-main:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(139, 92, 246, 0.7); }

/* Radar Animation */
.radar-container { position: absolute; top: 50%; left: 75%; width: 280px; height: 280px; transform: translate(-50%, -50%); pointer-events: none; z-index: 1; }
.radar-circle { position: absolute; inset: 0; border: 1px solid rgba(139, 92, 246, 0.25); border-radius: 50%; background: radial-gradient(circle, rgba(139, 92, 246, 0.05) 0%, transparent 70%); }
.radar-sweep { position: absolute; inset: 0; border-radius: 50%; background: conic-gradient(from 0deg, rgba(139, 92, 246, 0.5) 0deg, transparent 90deg); animation: radar-rotate 4s linear infinite; }
.radar-point { position: absolute; width: 5px; height: 5px; background: #00ff80; border-radius: 50%; box-shadow: 0 0 10px #00ff80; opacity: 0; z-index: 2; }
.p1 { top: 35%; left: 75%; animation: point-flicker 4s infinite 0.6s; }
.p2 { top: 60%; left: 30%; animation: point-flicker 4s infinite 2.3s; }

/* Grid Layout (Lewa: Narzędzia, Prawa: Treść) */
.layout-grid {
    display: grid;
    grid-template-columns: 350px 1fr;
    gap: 25px;
    margin-top: 25px;
    align-items: start;
}

.sidebar-area { width: 100%; }
.main-area { width: 100%; min-width: 0; }

/* Karty */
.card {
    background: var(--bg-card);
    border-radius: 20px;
    border: 1px solid var(--border);
    padding: 25px;
    margin-bottom: 25px;
    position: relative;
    width: 100%;
}
.card h3 { color: var(--accent); margin-bottom: 20px; font-size: 20px; text-transform: uppercase; display: flex; align-items: center; gap: 10px; }

/* ============================================================
   4. NARZĘDZIA (KALKULATOR, REFLEX, GIVEAWAY)
   ============================================================ */

/* Kalkulator */
.calc-container { display: flex; flex-direction: column; gap: 15px; }
.calc-input-group label { display: block; font-size: 11px; color: #888; margin-bottom: 5px; font-weight: 700; text-transform: uppercase; }
.calc-input-group input { width: 100%; padding: 12px; background: #000; border: 1px solid var(--border); border-radius: 10px; color: #fff; font-family: inherit; font-size: 14px; outline: none; }
.results-box { background: rgba(255,255,255,0.02); padding: 15px; border-radius: 12px; border: 1px solid var(--border); margin-top: 10px; }
.res-item { display: flex; justify-content: space-between; font-size: 13px; margin-bottom: 5px; color: #aaa; }
.res-item span { color: #fff; font-weight: 700; }
.res-item.accent span { color: var(--accent); }

/* Reflex Tester */
.test-area-idle { width: 100%; height: 150px; background: #000; border: 1px solid var(--border); border-radius: 15px; display: flex; justify-content: center; align-items: center; cursor: pointer; margin-bottom: 15px; font-weight: 800; font-size: 20px; text-transform: uppercase; transition: 0.2s; user-select: none; }
.test-area-wait { background: #ce1919 !important; box-shadow: 0 0 20px rgba(255,0,0,0.4); cursor: wait; }
.test-area-go { background: #00ff88 !important; color: #000 !important; box-shadow: 0 0 20px rgba(0,255,136,0.4); cursor: crosshair; }
#start-test-btn { width: 100%; background: var(--accent); padding: 12px; border: none; border-radius: 10px; color: #fff; font-weight: 800; cursor: pointer; text-transform: uppercase; }

/* Giveaway Card */
.giveaway-card { border: 1px solid rgba(139, 92, 246, 0.3); background: linear-gradient(145deg, #0f0f11, #16161a); text-align: center; }
.giveaway-skin-preview { padding: 20px; background: radial-gradient(circle, rgba(139, 92, 246, 0.1) 0%, rgba(0,0,0,0) 70%); }
.skin-badge { background: var(--accent); color: #fff; font-size: 10px; font-weight: 800; padding: 4px 12px; border-radius: 20px; display: inline-block; margin-bottom: 15px; }
.giveaway-skin-preview img { width: 80%; max-width: 220px; display: block; margin: 0 auto; filter: drop-shadow(0 0 15px rgba(139, 92, 246, 0.4)); }
.ga-input-group { margin-bottom: 12px; position: relative; text-align: left; }
.ga-input-group i { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: #888; z-index: 2; }
.ga-input-group input { width: 100%; padding: 12px 12px 12px 45px; background: #000; border: 1px solid #333; color: #fff; border-radius: 10px; font-family: inherit; font-size: 13px; }
#ga-btn { width: 100%; padding: 14px; background: var(--accent); color: #fff; border: none; border-radius: 10px; font-weight: 800; cursor: pointer; text-transform: uppercase; margin-top: 10px; }

/* ============================================================
   5. INTERAKTYWNA MAPA
   ============================================================ */
.map-header-container { margin-bottom: 25px; }
.map-selector-list { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 10px; justify-content: center; }
.map-selector-list::-webkit-scrollbar { display: none; }

.filter-btn, .map-badge {
    background: #1a1a1f; color: #fff; padding: 10px 18px; margin: 4px;
    border: none; cursor: pointer; font-family: inherit; font-weight: 700;
    clip-path: var(--cyber-path); transition: 0.3s; font-size: 12px;
    display: inline-flex; align-items: center; gap: 8px;
}
.filter-btn:hover, .map-badge:hover { background: #25252b; transform: translateY(-2px); }
.filter-btn.active, .map-badge.active { background: var(--accent) !important; color: #000 !important; box-shadow: 0 0 15px var(--accent-glow); }
.filter-btn.active i { color: #000 !important; }

.map-box { position: relative; width: 100%; max-width: 850px; margin: 20px auto; border-radius: 20px; overflow: hidden; border: 1px solid var(--border); background: #000; }
.map-box img { width: 100%; display: block; opacity: 0.7; }
#mapPoints i { pointer-events: all; animation: pulseSmoke 2s infinite ease-in-out; cursor: pointer; }

.community-upload-section { text-align: center; margin-top: 25px; }
.add-nade-btn {
    background: #1a1a1f; color: #fff; border: 1px solid var(--border);
    padding: 14px 28px; font-weight: 700; cursor: pointer;
    display: inline-flex; align-items: center; gap: 10px;
    text-transform: uppercase; letter-spacing: 1px;
    clip-path: var(--cyber-path); transition: 0.3s;
}
.add-nade-btn:hover { background: var(--accent); color: #000; box-shadow: 0 0 20px var(--accent-glow); }

/* ============================================================
   6. LIVE BAR & STREAMERS
   ============================================================ */
.live-bar-card {
    background: linear-gradient(145deg, #0f0f12 0%, #050506 100%);
    border: 1px solid rgba(139, 92, 246, 0.2); border-radius: 20px; padding: 25px;
    margin-top: 30px; overflow: hidden; position: relative;
}
.live-bar-title { color: #fff; font-size: 16px; margin-bottom: 20px; display: flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: 2px; }
.streamers-row { display: flex; gap: 20px; overflow-x: auto; padding-bottom: 10px; }
.streamers-row::-webkit-scrollbar { height: 4px; }

.streamer-circle-item {
    min-width: 140px; background: rgba(255,255,255,0.02); border: 1px solid rgba(255,255,255,0.05);
    border-radius: 15px; padding: 15px; display: flex; flex-direction: column; align-items: center;
    text-decoration: none; transition: 0.3s;
}
.streamer-circle-item:hover { background: rgba(139, 92, 246, 0.05); border-color: var(--accent); transform: translateY(-5px); }

.s-avatar-wrap { position: relative; width: 80px; height: 80px; margin-bottom: 10px; }
.s-avatar-wrap img { width: 100%; height: 100%; border-radius: 12px; object-fit: cover; border: 2px solid #222; }
.streamer-circle-item.is-live .s-avatar-wrap img { border-color: #ff4444; animation: live-glow 2s infinite; }
.live-indicator {
    position: absolute; bottom: -8px; left: 50%; transform: translateX(-50%);
    background: #ff4444; color: #fff; font-size: 10px; font-weight: 900;
    padding: 2px 10px; border-radius: 4px; display: none;
}
.streamer-circle-item.is-live .live-indicator { display: block; }

.s-nick { color: #fff; font-weight: 800; font-size: 14px; margin-bottom: 5px; }
.platform-badge { font-size: 9px; font-weight: 900; padding: 3px 8px; border-radius: 4px; text-transform: uppercase; margin-bottom: 5px; }
.kick-bg { background: rgba(0, 255, 136, 0.1); color: #00ff88; border: 1px solid rgba(0, 255, 136, 0.2); }
.twitch-bg { background: rgba(145, 70, 255, 0.1); color: #a970ff; border: 1px solid rgba(145, 70, 255, 0.2); }
.view-count { font-size: 11px; color: #555; font-weight: 600; }
.streamer-circle-item.is-live .view-count { color: #ff4444; }

/* ============================================================
   7. MODAL: "DODAJ GRANAT" (NOWY DESIGN)
   ============================================================ */
.modal {
    display: none; position: fixed; z-index: 10000; left: 0; top: 0;
    width: 100%; height: 100%; background-color: rgba(5, 5, 6, 0.85);
    backdrop-filter: blur(8px); overflow-y: auto;
    animation: modalFadeIn 0.3s ease;
}

.modal-content.community-modal {
    background: linear-gradient(145deg, #121217 0%, #0a0a0c 100%);
    margin: 5% auto; width: 95%; max-width: 500px;
    border: 1px solid rgba(139, 92, 246, 0.3); border-radius: 20px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.6); position: relative; padding: 0; color: #fff;
}

.modal-header {
    padding: 25px 30px; background: rgba(139, 92, 246, 0.05);
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
    display: flex; justify-content: space-between; align-items: center;
}
.modal-header h3 { margin: 0; font-size: 20px; font-weight: 700; text-transform: uppercase; letter-spacing: 1px; display: flex; gap: 10px; align-items: center; }
.info-badge { background: rgba(255,255,255,0.1); font-size: 10px; padding: 4px 8px; border-radius: 6px; color: #888; font-weight: 800; }

.modal-close {
    width: 32px; height: 32px; background: rgba(255, 255, 255, 0.05); border-radius: 50%;
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: 0.3s; color: #888;
}
.modal-close:hover { background: #ff4444; color: #fff; transform: rotate(90deg); }

.modal-body { padding: 30px; }
.community-info {
    background: rgba(139, 92, 246, 0.1); border-left: 4px solid var(--accent);
    padding: 15px; border-radius: 8px; margin-bottom: 25px; font-size: 13px; color: #ccc;
}

.form-group { margin-bottom: 15px; }
.form-group label { display: block; color: #888; font-size: 11px; font-weight: 800; text-transform: uppercase; margin-bottom: 8px; letter-spacing: 1px; }
.form-group input, .form-select {
    width: 100%; padding: 14px 16px; background: #000; border: 1px solid #222;
    border-radius: 10px; color: #fff; font-family: inherit; font-size: 15px;
    box-sizing: border-box; transition: 0.3s;
}
.form-group input:focus, .form-select:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 15px var(--accent-glow); }

.send-community-btn {
    width: 100%; margin-top: 10px; padding: 16px; background: var(--accent); color: #fff;
    border: none; border-radius: 10px; font-weight: 800; font-size: 14px; cursor: pointer;
    text-transform: uppercase; letter-spacing: 2px; display: flex; align-items: center; justify-content: center; gap: 10px; transition: 0.3s;
}
.send-community-btn:hover { background: var(--accent-dark); box-shadow: 0 5px 20px var(--accent-glow); transform: translateY(-2px); }

/* ============================================================
   8. ANIMACJE
   ============================================================ */
@keyframes modalFadeIn { from { opacity: 0; transform: translateY(-20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }
@keyframes pulseLive { 0% { transform: scale(1); opacity: 1; } 50% { transform: scale(1.3); opacity: 0.5; } 100% { transform: scale(1); opacity: 1; } }
@keyframes live-glow { 0% { box-shadow: 0 0 5px rgba(255, 68, 68, 0.5); } 50% { box-shadow: 0 0 20px rgba(255, 68, 68, 0.8); } 100% { box-shadow: 0 0 5px rgba(255, 68, 68, 0.5); } }
@keyframes pulseSmoke { 0% { filter: drop-shadow(0 0 2px var(--accent)); } 50% { filter: drop-shadow(0 0 8px var(--accent)); } 100% { filter: drop-shadow(0 0 2px var(--accent)); } }
@keyframes ga_pulse { 0% { box-shadow: 0 0 0 0 rgba(68, 255, 68, 0.7); } 70% { box-shadow: 0 0 0 6px rgba(68, 255, 68, 0); } 100% { box-shadow: 0 0 0 0 rgba(68, 255, 68, 0); } }
@keyframes radar-rotate { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes point-flicker { 0% { opacity: 0; transform: scale(0.4); } 5% { opacity: 1; transform: scale(1.1); } 15% { opacity: 0; transform: scale(1); } 100% { opacity: 0; } }

/* ============================================================
   10. NOWY PANEL UŻYTKOWNIKA (TOP BAR & POPUP)
   ============================================================ */
.user-top-bar {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 25px; position: relative; z-index: 50;
}

.system-status {
    font-size: 11px; font-weight: 800; color: #44ff44;
    background: rgba(0,255,0,0.05); padding: 5px 12px;
    border-radius: 20px; border: 1px solid rgba(0,255,0,0.1);
    display: flex; align-items: center; gap: 8px;
}
.status-dot {
    display: inline-block; width: 6px; height: 6px;
    background: #44ff44; border-radius: 50%;
    box-shadow: 0 0 5px #44ff44; animation: blink 2s infinite;
}

.user-profile-trigger {
    display: flex; align-items: center; gap: 12px; cursor: pointer;
    background: var(--bg-card); padding: 6px 15px 6px 10px;
    border-radius: 50px; border: 1px solid var(--border);
    transition: 0.3s;
}
.user-profile-trigger:hover {
    border-color: var(--accent); background: #16161a;
}

.user-meta { text-align: right; line-height: 1.3; }
.user-nick { display: block; font-weight: 700; color: #fff; font-size: 14px; }
.user-coins { display: block; font-size: 11px; color: #ffd700; font-weight: 600; }
.top-avatar { width: 38px; height: 38px; border-radius: 50%; border: 2px solid #222; }
#menu-arrow { color: #555; transition: 0.3s; font-size: 12px; }

/* POPUP MENU */
.user-popup-menu {
    display: none; position: absolute; top: 60px; right: 0; width: 280px;
    background: var(--bg-card); border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 15px; box-shadow: 0 10px 40px rgba(0,0,0,0.5);
    z-index: 100; overflow: hidden; animation: slideIn 0.2s ease;
}
.user-popup-menu.show { display: block; }
@keyframes slideIn { from {opacity: 0; transform: translateY(-10px);} to {opacity: 1; transform: translateY(0);} }

.popup-header {
    padding: 20px; background: rgba(139, 92, 246, 0.05);
    border-bottom: 1px solid rgba(255,255,255,0.05);
    display: flex; align-items: center; gap: 15px;
}
.rank-icon-big { width: 50px; height: auto; filter: drop-shadow(0 0 10px rgba(255,255,255,0.1)); }
.popup-rank-name { font-weight: 800; color: #fff; font-size: 15px; margin-bottom: 5px; }
.popup-xp-bar { width: 100%; height: 6px; background: #000; border-radius: 3px; overflow: hidden; margin-bottom: 3px; }
.popup-xp-fill { height: 100%; background: var(--accent); }
.popup-xp-text { font-size: 10px; color: #888; font-weight: 600; }

.popup-links { list-style: none; padding: 10px; margin: 0; }
.popup-links li a {
    display: flex; align-items: center; gap: 10px; padding: 12px 15px;
    color: #ccc; text-decoration: none; font-size: 13px; font-weight: 600;
    transition: 0.2s; border-radius: 8px;
}
.popup-links li a:hover { background: rgba(255,255,255,0.05); color: #fff; transform: translateX(5px); }
.separator { height: 1px; background: rgba(255,255,255,0.05); margin: 5px 10px; }
.logout-link:hover { color: #ff4444 !important; background: rgba(255, 68, 68, 0.1) !important; }

.btn-login-top {
    background: #000; color: #fff; border: 1px solid var(--accent);
    padding: 10px 25px; border-radius: 50px; text-decoration: none;
    font-weight: 800; font-size: 12px; transition: 0.3s;
    display: inline-flex; align-items: center; gap: 10px;
}
.btn-login-top:hover { background: var(--accent); box-shadow: 0 0 15px var(--accent-glow); }

/* ============================================================
   9. RESPONSYWNOŚĆ (MOBILE)
   ============================================================ */
.mobile-hamburger, .menu-overlay, .mobile-close-btn { display: none; }

@media screen and (max-width: 1024px) {
    /* Menu Mobilne */
    .sidebar { left: -280px; transition: 0.3s; }
    .sidebar.active { left: 0; }
    
    .menu-overlay {
        display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%;
        background: rgba(0,0,0,0.8); z-index: 999; backdrop-filter: blur(5px);
    }
    .menu-overlay.active { display: block; }

    /* Hamburger */
    .mobile-hamburger {
        display: flex !important; position: fixed; top: 20px; left: 20px; z-index: 9999;
        width: 45px; height: 45px; background: rgba(10,10,12,0.9); border: 1px solid var(--accent);
        border-radius: 10px; color: #fff; justify-content: center; align-items: center;
        backdrop-filter: blur(10px); cursor: pointer;
    }
    
    .mobile-close-btn {
        display: block; position: absolute; top: 15px; right: 15px; color: #fff; font-size: 24px; cursor: pointer;
    }

    /* Układ */
    .content { margin-left: 0; width: 100%; padding: 85px 15px 20px; }
    .layout-grid { display: flex; flex-direction: column-reverse; gap: 30px; }
    .sidebar-area, .main-area { width: 100%; }
    .map-box img { width: 100%; height: auto; }
    .calc-container { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
    .results-box { grid-column: span 2; }
    .map-selector-list { justify-content: flex-start; }
    
    .main-slider { height: 220px; }
    .radar-container { display: none; }
    .slide-content h1 { font-size: 28px; }
}

@media screen and (max-width: 600px) {
    .calc-container { grid-template-columns: 1fr; }
    .results-box { flex-direction: column; gap: 5px; }
    .live-bar-title { font-size: 14px; }
}