/* ===========================================
   RADIO GLOBE v3 — CYBERPUNK GLASS THEME
   No nebula, no dots, animated tower pins
   =========================================== */

/* ==========================================
   RESET & VARIABLES
   ========================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --bg: #06060c;
    --glass: rgba(8, 10, 18, 0.72);
    --glass-solid: rgba(10, 12, 22, 0.88);
    --blur: 24px;
    
    /* Cyberpunk palette */
    --cyan: #00ffaa;
    --cyan-dim: rgba(0, 255, 170, 0.15);
    --cyan-glow: rgba(0, 255, 170, 0.35);
    --cyan-border: rgba(0, 255, 170, 0.25);
    --magenta: #ff2d7b;
    --magenta-dim: rgba(255, 45, 123, 0.15);
    --gold: #ffd700;
    
    --text: #e8edf5;
    --text-dim: rgba(232, 237, 245, 0.5);
    --text-muted: rgba(232, 237, 245, 0.3);
    
    --border: rgba(0, 255, 170, 0.12);
    --border-bright: rgba(0, 255, 170, 0.3);
    
    --radius: 12px;
    --radius-sm: 8px;
    --radius-xs: 4px;
    
    --safe-top: env(safe-area-inset-top, 0px);
    --safe-bottom: env(safe-area-inset-bottom, 0px);
    --safe-left: env(safe-area-inset-left, 0px);
    --safe-right: env(safe-area-inset-right, 0px);
    
    --panel-w: 390px;
}

html, body {
    height: 100%; overflow: hidden;
    background: var(--bg); color: var(--text);
    font-family: 'Instrument Sans', 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    -webkit-tap-highlight-color: transparent;
}

/* ==========================================
   CESIUM GLOBE
   ========================================== */
#cesiumContainer {
    position: fixed; inset: 0;
    z-index: 0;
}
#cesiumContainer .cesium-viewer,
#cesiumContainer .cesium-viewer-cesiumWidgetContainer,
#cesiumContainer .cesium-widget { width: 100% !important; height: 100% !important; }
.cesium-viewer-bottom, .cesium-credit-lightbox-overlay,
.cesium-viewer-toolbar, .cesium-performanceDisplay-defaultContainer { display: none !important; }
.cesium-widget canvas { width: 100% !important; height: 100% !important; }

/* ==========================================
   LOADING SCREEN
   ========================================== */
.loading-screen {
    position: fixed; inset: 0;
    display: grid; place-items: center;
    background: var(--bg);
    z-index: 9999;
    transition: opacity 0.6s ease;
}
.loading-screen.hidden { opacity: 0; pointer-events: none; }
.loader { text-align: center; }
.loader-visual {
    position: relative; width: 160px; height: 160px; margin: 0 auto 1.5rem;
}
.loader-headphones {
    width: 100%; height: 100%; object-fit: contain;
    filter: drop-shadow(0 0 20px rgba(0, 229, 255, 0.4)) drop-shadow(0 0 40px rgba(0, 229, 255, 0.15));
    animation: headphonePulse 2.5s ease-in-out infinite;
}
@keyframes headphonePulse {
    0%, 100% { filter: drop-shadow(0 0 15px rgba(0,229,255,0.3)) drop-shadow(0 0 30px rgba(0,229,255,0.1)); transform: scale(1); }
    50% { filter: drop-shadow(0 0 25px rgba(0,229,255,0.6)) drop-shadow(0 0 50px rgba(0,229,255,0.25)); transform: scale(1.03); }
}
.loader-ring { display: none; }
.loader-icon { display: none; }
.loader-title {
    font-size: 1.6rem; font-weight: 700;
    font-family: 'DM Mono', monospace;
    color: var(--cyan);
    text-shadow: 0 0 20px var(--cyan-glow);
}
.loader-subtitle { opacity: 0.5; font-size: 0.85rem; margin-top: 0.4rem; }
.loader-joke {
    font-size: 0.75rem; margin-top: 0.8rem; color: var(--magenta);
    font-family: 'DM Mono', monospace; opacity: 0.7;
    min-height: 1.2em; transition: opacity 0.4s ease;
    max-width: 380px; margin-left: auto; margin-right: auto;
}
.loader-progress {
    width: 200px; height: 2px; margin: 1rem auto 0;
    background: rgba(255,255,255,0.06); border-radius: 2px; overflow: hidden;
}
.loader-progress-bar {
    height: 100%; width: 30%; border-radius: 2px;
    background: linear-gradient(90deg, var(--cyan), var(--magenta));
    animation: loadProgress 2s ease-in-out infinite;
}
@keyframes loadProgress {
    0% { width: 5%; margin-left: 0; }
    50% { width: 60%; margin-left: 20%; }
    100% { width: 5%; margin-left: 95%; }
}

/* ==========================================
   CYBERPUNK GLASS PANEL
   ========================================== */
.glass-panel {
    position: fixed; z-index: 100;
    background: var(--glass);
    backdrop-filter: blur(var(--blur)) saturate(1.3);
    -webkit-backdrop-filter: blur(var(--blur)) saturate(1.3);
    display: flex; flex-direction: column;
    overflow: hidden;
}

/* Neon border - adapts to theme */
.glass-panel::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        160deg,
        var(--cyan) 0%,
        var(--cyan-border) 20%,
        transparent 40%,
        transparent 60%,
        var(--magenta-dim) 80%,
        var(--magenta) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
    z-index: 1;
}



/* Corner accents */
.cyber-corner {
    position: absolute; width: 16px; height: 16px;
    z-index: 3; pointer-events: none;
}
.cyber-corner::before, .cyber-corner::after {
    content: ''; position: absolute;
    background: var(--cyan);
    box-shadow: 0 0 6px var(--cyan);
}
.cyber-corner--tl { top: -1px; left: -1px; }
.cyber-corner--tl::before { top: 0; left: 0; width: 16px; height: 1px; }
.cyber-corner--tl::after  { top: 0; left: 0; width: 1px; height: 16px; }
.cyber-corner--tr { top: -1px; right: -1px; }
.cyber-corner--tr::before { top: 0; right: 0; width: 16px; height: 1px; }
.cyber-corner--tr::after  { top: 0; right: 0; width: 1px; height: 16px; }
.cyber-corner--bl { bottom: -1px; left: -1px; }
.cyber-corner--bl::before { bottom: 0; left: 0; width: 16px; height: 1px; }
.cyber-corner--bl::after  { bottom: 0; left: 0; width: 1px; height: 16px; }
.cyber-corner--br { bottom: -1px; right: -1px; }
.cyber-corner--br::before { bottom: 0; right: 0; width: 16px; height: 1px; }
.cyber-corner--br::after  { bottom: 0; right: 0; width: 1px; height: 16px; }

/* Desktop sidebar */
@media (min-width: 769px) {
    .glass-panel {
        top: 16px; left: 16px;
        bottom: 16px;
        width: var(--panel-w);
        border-radius: var(--radius);
    }
}

/* Mobile bottom sheet */
@media (max-width: 768px) {
    .glass-panel {
        left: 8px; right: 8px;
        bottom: 8px;
        height: 70vh;
        border-radius: var(--radius) var(--radius) var(--radius) var(--radius);
        transform: translateY(calc(70vh - 180px));
        transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
        will-change: transform;
    }
    .glass-panel.expanded {
        transform: translateY(0);
    }
}

/* ==========================================
   PANEL HEADER
   ========================================== */
.drag-handle {
    width: 100%; padding: 10px 0 4px;
    display: none; cursor: grab; touch-action: none;
}
.drag-handle-bar {
    width: 36px; height: 4px;
    margin: 0 auto;
    background: rgba(255,255,255,0.15);
    border-radius: 2px;
}
@media (max-width: 768px) { .drag-handle { display: block; } }

.panel-header {
    padding: 14px 18px 10px;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.panel-brand {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 12px;
}
.panel-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none; color: inherit;
}
.panel-logo-img {
    width: 36px; height: 36px; border-radius: 0;
    object-fit: contain;
}
.panel-logo-text {
    font-family: 'DM Mono', monospace;
    font-size: 1rem; font-weight: 600;
    color: var(--cyan);
    text-shadow: 0 0 12px var(--cyan-glow);
    letter-spacing: 0.5px;
}
.panel-actions {
    display: flex; gap: 4px;
}
.panel-btn {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    background: transparent; border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-dim); cursor: pointer;
    transition: all 0.2s;
}
.panel-btn:hover {
    background: var(--cyan-dim);
    color: var(--cyan);
    border-color: var(--cyan-border);
    box-shadow: 0 0 8px var(--cyan-dim);
}
.panel-btn svg { width: 16px; height: 16px; }

/* ==========================================
   SEARCH BAR
   ========================================== */
.search-wrap {
    position: relative; margin-bottom: 10px;
}
.search-box {
    display: flex; align-items: center;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0 12px;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.search-box:focus-within {
    border-color: var(--cyan-border);
    box-shadow: 0 0 12px var(--cyan-dim);
}
.search-box svg {
    width: 16px; height: 16px;
    color: var(--text-dim); flex-shrink: 0;
}
.search-input {
    flex: 1; padding: 9px 10px;
    background: transparent; border: none; outline: none;
    color: var(--text); font-size: 0.85rem;
    font-family: inherit;
}
.search-input::placeholder { color: var(--text-muted); }
.search-clear {
    width: 22px; height: 22px;
    display: none; place-items: center;
    background: rgba(255,255,255,0.06);
    border: none; border-radius: 50%;
    color: var(--text-dim); cursor: pointer;
    font-size: 0.75rem; line-height: 1;
}
.search-clear.show { display: grid; }
.search-shortcut {
    font-family: 'DM Mono', monospace;
    font-size: 0.65rem; padding: 2px 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 4px; color: var(--text-muted);
}

/* ==========================================
   GENRE CHIPS
   ========================================== */
.genre-scroll {
    display: flex; gap: 6px;
    overflow-x: auto; padding-bottom: 6px;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.genre-scroll::-webkit-scrollbar { display: none; }
.genre-chip {
    flex-shrink: 0; padding: 6px 16px;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--border);
    border-radius: 20px;
    color: var(--text-dim); font-size: 0.78rem;
    cursor: pointer; transition: all 0.2s;
    white-space: nowrap;
    font-family: inherit;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
}
.genre-chip:hover { background: var(--cyan-dim); color: var(--text); border-color: var(--cyan-border); }
.genre-chip:active { transform: scale(0.95); }
.genre-chip.active {
    background: var(--cyan-dim);
    color: var(--cyan);
    border-color: var(--cyan-border);
    box-shadow: 0 0 8px var(--cyan-dim);
}
@media (max-width: 768px) {
    .genre-chip { padding: 8px 18px; font-size: 0.82rem; }
    .genre-scroll { gap: 8px; padding-bottom: 8px; }
}

/* ==========================================
   TABS
   ========================================== */
.panel-tabs {
    display: flex; gap: 2px;
    padding: 10px 18px 0;
    border-bottom: 1px solid var(--border);
    flex-shrink: 0;
}
.tab-btn {
    flex: 1; padding: 8px 0 10px;
    background: transparent; border: none;
    border-bottom: 2px solid transparent;
    color: var(--text-dim); font-size: 0.8rem;
    cursor: pointer; transition: all 0.2s;
    font-family: inherit; font-weight: 500;
    display: flex; align-items: center; justify-content: center; gap: 6px;
}
.tab-btn:hover { color: var(--text); }
.tab-btn.active {
    color: var(--cyan);
    border-bottom-color: var(--cyan);
    text-shadow: 0 0 8px var(--cyan-glow);
}
.tab-badge {
    font-size: 0.65rem; padding: 1px 6px;
    background: rgba(255,255,255,0.06);
    border-radius: 10px; color: var(--text-muted);
    font-family: 'DM Mono', monospace;
}
.tab-btn.active .tab-badge {
    background: var(--cyan-dim);
    color: var(--cyan);
}

/* ==========================================
   STATION LIST
   ========================================== */
.station-list {
    flex: 1; overflow-y: auto;
    padding: 6px 10px;
    scrollbar-width: thin;
    scrollbar-color: var(--cyan-dim) transparent;
}
.station-list::-webkit-scrollbar { width: 4px; }
.station-list::-webkit-scrollbar-thumb {
    background: var(--cyan-dim); border-radius: 4px;
}
.station-item {
    display: flex; align-items: center; gap: 10px;
    padding: 9px 10px;
    border-radius: var(--radius-sm);
    cursor: pointer; transition: all 0.2s;
    border: 1px solid transparent;
    position: relative;
}
.station-item:hover {
    background: var(--cyan-dim);
    border-color: var(--border);
}
.station-item.active {
    background: var(--cyan-dim);
    border-color: var(--cyan-border);
}
/* Active station left accent bar */
.station-item.active::before {
    content: '';
    position: absolute; left: 0; top: 20%; bottom: 20%;
    width: 2px; background: var(--cyan);
    border-radius: 2px;
    box-shadow: 0 0 6px var(--cyan);
}

.station-status {
    width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0;
}
.station-status.online { background: var(--cyan); box-shadow: 0 0 6px var(--cyan); }
.station-status.offline { background: var(--text-muted); }

.station-artwork {
    width: 36px; height: 36px; flex-shrink: 0;
    border-radius: var(--radius-xs);
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    display: grid; place-items: center;
}
.station-artwork img {
    width: 100%; height: 100%; object-fit: cover;
}
.station-artwork-placeholder {
    font-size: 1rem; opacity: 0.4;
}

.station-info { flex: 1; min-width: 0; }
.station-name {
    font-size: 0.82rem; font-weight: 500;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    color: var(--text);
}
.station-meta {
    font-size: 0.7rem; color: var(--text-muted);
    display: flex; gap: 8px; margin-top: 2px;
}
.station-country {
    font-family: 'DM Mono', monospace;
    color: var(--cyan); opacity: 0.7;
}

.station-fav {
    width: 30px; height: 30px; flex-shrink: 0;
    display: grid; place-items: center;
    background: transparent; border: none;
    color: var(--text-muted); font-size: 0.9rem;
    cursor: pointer; border-radius: 50%;
    transition: all 0.2s;
}
.station-fav:hover { color: var(--magenta); background: var(--magenta-dim); }
.station-fav.active { color: var(--magenta); }

.empty-state {
    text-align: center; padding: 3rem 1rem;
    color: var(--text-muted); font-size: 0.85rem;
}

/* ==========================================
   PLAYER BAR (bottom of panel)
   ========================================== */
.player-bar {
    flex-shrink: 0;
    padding: 10px 14px;
    border-top: 1px solid var(--border);
    background: rgba(6,6,12,0.02);
    position: relative;
    overflow: hidden;
}
/* Visualizer canvas behind player */
.player-bar canvas {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    opacity: 0.35; pointer-events: none;
}

.player-content {
    position: relative; z-index: 1;
    display: flex; align-items: center; gap: 10px;
}
.player-artwork {
    width: 44px; height: 44px; flex-shrink: 0;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: rgba(255,255,255,0.04);
    display: grid; place-items: center;
    border: 1px solid var(--border);
}
.player-artwork img {
    width: 100%; height: 100%; object-fit: cover;
}
.player-artwork .artwork-placeholder {
    color: var(--text-muted); font-size: 1.2rem;
}
.player-info {
    flex: 1; min-width: 0;
}
.player-title {
    font-size: 0.82rem; font-weight: 600;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    margin: 0;
}
.player-meta {
    font-size: 0.7rem; color: var(--text-dim);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.player-nowplaying {
    font-size: 0.68rem; color: var(--cyan);
    opacity: 0.8; margin-top: 1px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.marquee {
    display: inline-block;
    animation: marqueeScroll 15s linear infinite;
}
@keyframes marqueeScroll {
    0% { transform: translateX(0%); }
    100% { transform: translateX(-100%); }
}

.player-controls {
    display: flex; align-items: center; gap: 4px;
}
.ctrl-btn {
    width: 34px; height: 34px;
    display: grid; place-items: center;
    background: transparent; border: 1px solid transparent;
    border-radius: 50%; color: var(--text-dim);
    cursor: pointer; transition: all 0.2s;
}
.ctrl-btn:hover { color: var(--text); background: rgba(255,255,255,0.05); }
.ctrl-btn svg { width: 16px; height: 16px; }
.ctrl-btn.active svg { fill: var(--magenta); color: var(--magenta); }

.ctrl-play {
    width: 42px; height: 42px;
    background: var(--cyan);
    border-color: var(--cyan);
    color: var(--bg) !important;
    box-shadow: 0 0 16px var(--cyan-glow);
}
.ctrl-play:hover {
    background: var(--cyan);
    box-shadow: 0 0 24px var(--cyan-glow);
}
.ctrl-play svg { width: 20px; height: 20px; }
.ctrl-play .icon-pause,
.ctrl-play .icon-loading { display: none; }
#player.playing .ctrl-play .icon-play { display: none; }
#player.playing .ctrl-play .icon-pause { display: block; }
#player.loading .ctrl-play .icon-play { display: none; }
#player.loading .ctrl-play .icon-pause { display: none; }
#player.loading .ctrl-play .icon-loading { display: block; animation: spin 1s linear infinite; }

/* Volume */
.player-volume {
    display: flex; align-items: center; gap: 6px;
    padding-top: 6px;
    position: relative; z-index: 1;
}
.player-volume svg { width: 14px; height: 14px; color: var(--text-muted); flex-shrink: 0; }
.volume-slider {
    -webkit-appearance: none; appearance: none;
    flex: 1; height: 3px;
    background: rgba(255,255,255,0.08);
    border-radius: 3px; outline: none;
    cursor: pointer;
}
.volume-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px;
    border-radius: 50%;
    background: var(--cyan);
    box-shadow: 0 0 6px var(--cyan-glow);
    cursor: pointer;
}
.volume-slider::-moz-range-thumb {
    width: 12px; height: 12px;
    border-radius: 50%; border: none;
    background: var(--cyan);
    box-shadow: 0 0 6px var(--cyan-glow);
}



/* ==========================================
   TOAST
   ========================================== */
.toast-container {
    position: fixed; bottom: 24px; left: 50%;
    transform: translateX(-50%);
    z-index: 9000;
    display: flex; flex-direction: column; gap: 8px;
    align-items: center;
}
.toast {
    padding: 10px 20px;
    background: var(--glass-solid);
    backdrop-filter: blur(var(--blur));
    -webkit-backdrop-filter: blur(var(--blur));
    border: 1px solid var(--cyan-border);
    border-radius: var(--radius);
    color: var(--text);
    font-size: 0.82rem;
    animation: toastIn 0.3s ease;
    white-space: nowrap;
}
.toast.removing { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes toastOut { to { opacity: 0; transform: translateY(-12px); } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* ==========================================
   MODALS
   ========================================== */
.modal {
    position: fixed; inset: 0;
    display: none; place-items: center;
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(4px);
    z-index: 5000;
}
.modal.show { display: grid; }
.modal-content {
    width: 92%; max-width: 480px; max-height: 85vh;
    background: var(--glass-solid);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border-bright);
    border-radius: var(--radius);
    overflow-y: auto;
    position: relative;
}
/* Cyberpunk corner on modals too */
.modal-content::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(
        160deg,
        var(--cyan) 0%,
        var(--cyan-glow) 25%,
        transparent 45%,
        transparent 55%,
        var(--magenta-dim) 75%,
        var(--magenta) 100%
    );
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    pointer-events: none;
}
.modal-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 16px 20px;
    border-bottom: 1px solid var(--border);
}
.modal-header h2 {
    font-size: 1rem; font-weight: 600;
    font-family: 'DM Mono', monospace;
    color: var(--cyan);
}
.modal-close {
    width: 32px; height: 32px;
    display: grid; place-items: center;
    background: transparent; border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-dim); cursor: pointer;
    font-size: 1.2rem; transition: all 0.2s;
}
.modal-close:hover { color: var(--magenta); border-color: var(--magenta-dim); }
.modal-body { padding: 20px; }

/* Form styles */
.form-group {
    margin-bottom: 14px;
}
.form-group label {
    display: block; margin-bottom: 5px;
    font-size: 0.75rem; color: var(--text-dim);
    font-weight: 500;
}
.form-group input,
.form-group select,
.form-group textarea {
    width: 100%; padding: 9px 12px;
    background: rgba(255,255,255,0.04);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text); font-size: 0.85rem;
    font-family: inherit; outline: none;
    transition: border-color 0.2s;
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    border-color: var(--cyan-border);
    box-shadow: 0 0 8px var(--cyan-dim);
}
.form-group select { cursor: pointer; }
.form-group select option { background: #12121e; }
.form-row { display: flex; gap: 12px; }
.form-row .form-group { flex: 1; }
.form-actions {
    display: flex; gap: 10px; justify-content: flex-end;
    margin-top: 20px;
}
.btn {
    padding: 9px 20px; border: none; border-radius: var(--radius-sm);
    font-size: 0.82rem; font-weight: 500; cursor: pointer;
    font-family: inherit; transition: all 0.2s;
}
.btn-secondary {
    background: rgba(255,255,255,0.05); color: var(--text-dim);
    border: 1px solid var(--border);
}
.btn-secondary:hover { background: rgba(255,255,255,0.08); color: var(--text); }
.btn-primary {
    background: var(--cyan); color: var(--bg);
    font-weight: 600;
    box-shadow: 0 0 12px var(--cyan-glow);
}
.btn-primary:hover {
    background: var(--cyan);
    box-shadow: 0 0 20px var(--cyan-glow);
}

/* About modal */
.about-body h3, .about-body h4 { color: var(--cyan); margin: 1rem 0 0.4rem; font-size: 0.9rem; }
.about-body p { font-size: 0.82rem; color: var(--text-dim); line-height: 1.6; }
.about-body a { color: var(--cyan); }
.about-logo { text-align: center; padding: 10px 0; }
.about-logo img { width: 56px; border-radius: 14px; box-shadow: 0 0 20px var(--cyan-glow); }
.about-features { list-style: none; padding: 0; }
.about-features li { font-size: 0.8rem; color: var(--text-dim); padding: 4px 0; }
.about-features li strong { color: var(--text); }
.shortcuts-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.shortcut { font-size: 0.78rem; color: var(--text-dim); }
.shortcut kbd {
    font-family: 'DM Mono', monospace;
    font-size: 0.68rem; padding: 2px 6px;
    background: rgba(255,255,255,0.05);
    border: 1px solid var(--border);
    border-radius: 4px; color: var(--cyan);
}
.about-footer { text-align: center; padding-top: 1rem; border-top: 1px solid var(--border); margin-top: 1rem; }
.about-footer p { font-size: 0.78rem; }
.version { color: var(--text-muted) !important; font-family: 'DM Mono', monospace; }

/* ==========================================
   LOCATE BUTTON (floating)
   ========================================== */
.locate-btn {
    position: fixed;
    z-index: 90;
    width: 40px; height: 40px;
    display: grid; place-items: center;
    background: var(--glass);
    backdrop-filter: blur(var(--blur));
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    color: var(--text-dim); cursor: pointer;
    transition: all 0.2s;
}
.locate-btn:hover {
    color: var(--cyan); border-color: var(--cyan-border);
    box-shadow: 0 0 12px var(--cyan-dim);
}
.locate-btn svg { width: 18px; height: 18px; }
@media (min-width: 769px) {
    .locate-btn { bottom: 24px; right: 24px; }
}
@media (max-width: 768px) {
    .locate-btn { top: 16px; right: 16px; }
}

/* ==========================================
   COOKIE BANNER
   ========================================== */
.cookie-banner {
    position: fixed; bottom: 0; left: 0; right: 0;
    z-index: 9998;
    background: var(--glass-solid);
    backdrop-filter: blur(var(--blur));
    border-top: 1px solid var(--border-bright);
    box-shadow: 0 -4px 30px rgba(0,0,0,0.4);
    padding: 16px 20px; display: none;
}
.cookie-banner.show { display: block; animation: slideUp 0.3s ease; }
@keyframes slideUp { from { transform: translateY(100%); } to { transform: translateY(0); } }
.cookie-content { display: flex; gap: 14px; align-items: flex-start; flex-wrap: wrap; max-width: 900px; margin: 0 auto; }
.cookie-icon { font-size: 1.6rem; flex-shrink: 0; }
.cookie-text { flex: 1; min-width: 200px; }
.cookie-text h4 { font-size: 0.9rem; margin-bottom: 4px; color: var(--text); }
.cookie-text p { font-size: 0.78rem; color: var(--text-dim); line-height: 1.5; }
.cookie-link { color: var(--cyan); text-decoration: underline; text-decoration-style: dotted; }
.cookie-link:hover { color: var(--text); }
.cookie-actions { display: flex; gap: 8px; flex-shrink: 0; align-self: center; flex-wrap: wrap; }
.cookie-actions .btn { font-size: 0.78rem; padding: 8px 14px; border-radius: 6px; cursor: pointer; border: none; font-weight: 600; white-space: nowrap; }
.btn-ghost { background: none; color: var(--text-dim); border: 1px solid var(--border) !important; }
.btn-ghost:hover { color: var(--text); border-color: var(--border-bright) !important; }
.cookie-settings-panel {
    display: none; margin-top: 14px; padding-top: 14px;
    border-top: 1px solid var(--border); max-width: 900px; margin-left: auto; margin-right: auto;
}
.cookie-option { display: flex; gap: 12px; margin-bottom: 12px; align-items: flex-start; }
.cookie-option-text { flex: 1; }
.cookie-option-text strong { font-size: 0.82rem; display: block; color: var(--text); }
.cookie-option-text p { font-size: 0.72rem; color: var(--text-muted); margin-top: 3px; line-height: 1.4; }
.cookie-toggle { position: relative; display: inline-block; width: 40px; height: 22px; flex-shrink: 0; margin-top: 2px; }
.cookie-toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; inset: 0; background: var(--glass); border: 1px solid var(--border);
    border-radius: 22px; cursor: pointer; transition: 0.3s;
}
.toggle-slider::before {
    content: ''; position: absolute; width: 16px; height: 16px;
    left: 2px; bottom: 2px; background: var(--text-dim);
    border-radius: 50%; transition: 0.3s;
}
.cookie-toggle input:checked + .toggle-slider { background: var(--cyan-dim); border-color: var(--cyan); }
.cookie-toggle input:checked + .toggle-slider::before { transform: translateX(18px); background: var(--cyan); }
.cookie-toggle input:disabled + .toggle-slider { opacity: 0.5; cursor: not-allowed; }
.cookie-save { width: 100%; margin-top: 4px; }

/* Privacy Policy Modal */
.privacy-modal .modal-content { max-width: 680px; max-height: 85vh; }
.privacy-content { overflow-y: auto; }
.privacy-content h2 { font-size: 1.1rem; margin-bottom: 4px; }
.policy-subtitle { font-size: 0.82rem; color: var(--text-dim); }
.policy-updated { font-size: 0.72rem; color: var(--text-muted); margin-bottom: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--border); }
.policy-body { max-height: 50vh; overflow-y: auto; padding-right: 8px; margin-bottom: 16px; }
.policy-body h3 { font-size: 0.9rem; color: var(--cyan); margin: 20px 0 8px; }
.policy-body h3:first-child { margin-top: 0; }
.policy-body h4 { font-size: 0.82rem; color: var(--text); margin: 14px 0 6px; }
.policy-body p { font-size: 0.78rem; color: var(--text-dim); line-height: 1.6; margin-bottom: 6px; }
.policy-table { width: 100%; border-collapse: collapse; margin: 10px 0 14px; font-size: 0.75rem; }
.policy-table th { text-align: left; padding: 6px 10px; background: var(--cyan-dim); color: var(--text); border: 1px solid var(--border); }
.policy-table td { padding: 6px 10px; color: var(--text-dim); border: 1px solid var(--border); }
.policy-actions { display: flex; gap: 10px; justify-content: flex-end; padding-top: 12px; border-top: 1px solid var(--border); }

/* Privacy footer link */
.privacy-footer {
    position: fixed; bottom: 8px; left: 50%; transform: translateX(-50%);
    z-index: 100; font-size: 0.65rem; display: flex; gap: 6px;
    color: var(--text-muted); opacity: 0.5; transition: opacity 0.3s;
}
.privacy-footer:hover { opacity: 1; }
.privacy-footer a { color: var(--text-dim); text-decoration: none; }
.privacy-footer a:hover { color: var(--cyan); }
.privacy-footer span { color: var(--text-muted); }

/* ==========================================
   SUGGESTION MODAL EXTRAS
   ========================================== */
.suggestion-intro { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 16px; line-height: 1.5; }
.char-count { font-size: 0.7rem; color: var(--text-muted); display: block; text-align: right; margin-top: 4px; }
.suggestion-success { text-align: center; padding: 2rem 1rem; }
.success-icon { font-size: 2rem; margin-bottom: 12px; }
.suggestion-success h3 { font-size: 1rem; color: var(--cyan); margin-bottom: 8px; }
.suggestion-success p { font-size: 0.82rem; color: var(--text-dim); margin-bottom: 16px; }

/* ==========================================
   RESPONSIVE TWEAKS
   ========================================== */
@media (max-width: 768px) {
    :root { --panel-w: 100%; }
    .panel-header { padding: 8px 14px 8px; }
    .panel-brand { margin-bottom: 8px; }
    .search-shortcut { display: none; }
    .toast-container { bottom: 200px; }
    .cookie-banner { padding: 14px; }
    .cookie-content { flex-direction: column; }
    .cookie-actions { width: 100%; justify-content: stretch; }
    .cookie-actions .btn { flex: 1; text-align: center; }
    .privacy-footer { bottom: 4px; }
}
@media (min-width: 1400px) {
    :root { --panel-w: 420px; }
}

/* ==========================================
   SCROLLBAR GLOBAL
   ========================================== */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--cyan-dim); border-radius: 4px; }
::selection { background: var(--cyan-dim); color: var(--text); }

/* ==========================================
   THEME PICKER
   ========================================== */
.theme-picker-overlay {
    position: fixed; inset: 0; z-index: 10000;
    background: rgba(0,0,0,0.6); backdrop-filter: blur(8px);
    display: flex; align-items: center; justify-content: center;
    animation: fadeIn 0.2s ease;
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.theme-picker {
    background: var(--glass-solid); border: 1px solid var(--border-bright);
    border-radius: 16px; padding: 24px; max-width: 480px; width: 90vw;
    backdrop-filter: blur(24px); box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}
.theme-picker-header {
    display: flex; justify-content: space-between; align-items: center;
    margin-bottom: 20px;
}
.theme-picker-header h2 {
    font-size: 18px; font-weight: 600; color: var(--text);
}
.theme-picker-close {
    background: none; border: none; color: var(--text-dim);
    font-size: 20px; cursor: pointer; padding: 4px 8px;
    border-radius: 6px; transition: 0.2s;
}
.theme-picker-close:hover { background: var(--cyan-dim); color: var(--text); }

.theme-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
}
.theme-card {
    background: var(--glass); border: 2px solid transparent;
    border-radius: 12px; padding: 10px; cursor: pointer;
    display: flex; flex-direction: column; align-items: center;
    gap: 6px; transition: all 0.2s; text-align: center;
}
.theme-card:hover { border-color: var(--cyan-border); transform: translateY(-2px); }
.theme-card.active {
    border-color: var(--cyan); box-shadow: 0 0 20px var(--cyan-dim);
}
.theme-preview {
    width: 100%; height: 52px; border-radius: 8px;
    border: 1px solid; position: relative; overflow: hidden;
    display: flex; align-items: center; justify-content: center;
}
.theme-dots { font-size: 10px; letter-spacing: 4px; opacity: 0.8; }
.theme-accent {
    position: absolute; bottom: 0; left: 0; right: 50%;
    height: 3px; border-radius: 0 2px 0 0;
}
.theme-accent2 {
    position: absolute; bottom: 0; left: 50%; right: 0;
    height: 3px; border-radius: 2px 0 0 0;
}
.theme-icon { font-size: 20px; margin-top: 4px; }
.theme-name { font-size: 12px; font-weight: 600; color: var(--text); }
.theme-desc { font-size: 10px; color: var(--text-dim); }
