.settings-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 200;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.settings-overlay.active { display: block; opacity: 1; }

.settings-container { max-width: 480px; width: 100%; margin: 0 auto; padding: 20px; }

.settings-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.settings-header h2 { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); }

.settings-body { display: flex; flex-direction: column; gap: 20px; }

.settings-group {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.settings-group-title {
    padding: 14px 16px 6px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--accent-purple);
}

.settings-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--glass-border);
}

.settings-item:last-child { border-bottom: none; }

.settings-item.clickable { cursor: pointer; transition: background 0.2s ease; }
.settings-item.clickable:hover, .settings-item.clickable:active { background: var(--glass-hover); }

.settings-item-left { display: flex; align-items: center; gap: 12px; flex: 1; min-width: 0; }

.settings-item-icon {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.settings-item-icon svg { width: 18px; height: 18px; color: var(--accent-blue); }
.settings-item-icon.gdpr-icon svg { color: #22c55e; }

.settings-item-info { display: flex; flex-direction: column; min-width: 0; }
.settings-item-label { font-size: 0.9rem; font-weight: 500; color: var(--text-primary); }
.settings-item-desc { font-size: 0.75rem; color: var(--text-tertiary); margin-top: 2px; }

.settings-arrow { width: 18px; height: 18px; color: var(--text-tertiary); flex-shrink: 0; }

.toggle-switch { position: relative; width: 48px; height: 28px; flex-shrink: 0; }
.toggle-switch input { opacity: 0; width: 0; height: 0; }

.toggle-slider {
    position: absolute; cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 28px;
    transition: 0.3s;
}

.toggle-slider::before {
    content: '';
    position: absolute;
    height: 22px; width: 22px;
    left: 3px; bottom: 3px;
    background: white;
    border-radius: 50%;
    transition: 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.toggle-switch input:checked + .toggle-slider { background: var(--accent-blue); }
.toggle-switch input:checked + .toggle-slider::before { transform: translateX(20px); }
.toggle-switch.disabled { opacity: 0.5; pointer-events: none; }

.unit-toggle {
    display: flex;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    overflow: hidden;
    flex-shrink: 0;
}

.unit-btn {
    padding: 6px 14px;
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    font-size: 0.85rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
}

.unit-btn.active { background: var(--accent-blue); color: white; border-radius: 8px; }

.lang-select {
    padding: 6px 10px;
    border-radius: 10px;
    border: 1px solid var(--glass-border);
    background: var(--glass-bg);
    color: var(--text-primary);
    font-size: 0.85rem;
    font-family: inherit;
    cursor: pointer;
    flex-shrink: 0;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.lang-select option { background: #1a1a2e; color: #fff; }

.settings-footer {
    display: flex;
    justify-content: space-between;
    padding: 12px 4px;
    font-size: 0.75rem;
    color: var(--text-tertiary);
}

.gdpr-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 300;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.gdpr-overlay.active { display: flex; align-items: center; justify-content: center; opacity: 1; }

.gdpr-container {
    max-width: 420px;
    width: calc(100% - 40px);
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.gdpr-header { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.gdpr-header svg { color: #22c55e; flex-shrink: 0; }
.gdpr-header h3 { font-size: 1.1rem; font-weight: 700; }

.gdpr-body { margin-bottom: 20px; }

.gdpr-intro { font-size: 0.85rem; color: var(--text-secondary); margin-bottom: 16px; line-height: 1.5; }

.gdpr-option {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--glass-border);
}

.gdpr-option:last-child { border-bottom: none; }
.gdpr-option-info { flex: 1; margin-right: 12px; }
.gdpr-option-label { font-size: 0.9rem; font-weight: 600; display: block; margin-bottom: 2px; }
.gdpr-option-desc { font-size: 0.75rem; color: var(--text-tertiary); line-height: 1.4; }

.gdpr-actions { display: flex; gap: 8px; flex-wrap: wrap; }

.gdpr-btn {
    padding: 10px 18px;
    border-radius: 10px;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    flex: 1;
    min-width: 100px;
    text-align: center;
}

.gdpr-btn-primary { background: var(--accent-blue); color: white; }
.gdpr-btn-primary:hover { opacity: 0.9; }
.gdpr-btn-secondary { background: rgba(255, 255, 255, 0.1); color: var(--text-primary); }
.gdpr-btn-outline { background: transparent; border: 1px solid var(--glass-border); color: var(--text-secondary); }

.gdpr-banner {
    position: fixed;
    bottom: 0; left: 0; width: 100%;
    z-index: 250;
    padding: 16px;
    animation: slideUp 0.5s ease;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.gdpr-banner-content {
    max-width: 480px;
    margin: 0 auto;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 20px;
    backdrop-filter: blur(30px);
    -webkit-backdrop-filter: blur(30px);
}

.gdpr-banner-content p { font-size: 0.85rem; color: var(--text-secondary); line-height: 1.5; margin-bottom: 14px; }
.gdpr-banner-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.gdpr-banner-btn { flex: 1; min-width: 80px; padding: 8px 12px; font-size: 0.8rem; }

.page-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 200;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.page-overlay.active { display: block; opacity: 1; }

.page-container { max-width: 480px; width: 100%; margin: 0 auto; padding: 20px; }

.page-header { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.page-header h2 { font-size: 1.3rem; font-weight: 700; }

.page-body {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    line-height: 1.7;
}

.page-body h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 12px; color: var(--accent-blue); }
.page-body h4 { font-size: 0.95rem; font-weight: 600; margin: 16px 0 8px; }
.page-body p { font-size: 0.9rem; color: var(--text-secondary); margin-bottom: 10px; }
.page-body strong { color: var(--text-primary); }
.page-body a { color: var(--accent-blue); text-decoration: none; }
.page-body a:hover { text-decoration: underline; }

.contact-item {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 12px 16px;
    margin: 12px 0;
}

.footer-links { margin-top: 8px; display: flex; align-items: center; justify-content: center; gap: 8px; }
.footer-links a { color: var(--accent-blue); text-decoration: none; font-size: 0.75rem; transition: opacity 0.2s; }
.footer-links a:hover { opacity: 0.8; text-decoration: underline; }
.footer-divider { color: var(--text-tertiary); font-size: 0.75rem; }
.footer-contact { margin-top: 4px; font-size: 0.7rem !important; color: var(--text-tertiary) !important; }

.legal-content {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg);
    padding: 24px;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    line-height: 1.7;
    margin-bottom: 40px;
}

.legal-content h2 { font-size: 1.05rem; font-weight: 700; margin: 24px 0 8px; color: var(--accent-blue); }
.legal-content h2:first-of-type { margin-top: 8px; }
.legal-content h3 { font-size: 0.95rem; font-weight: 600; margin: 16px 0 6px; }
.legal-content p { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 10px; }
.legal-content ul { padding-left: 20px; margin-bottom: 12px; }
.legal-content li { font-size: 0.88rem; color: var(--text-secondary); margin-bottom: 4px; }
.legal-content a { color: var(--accent-blue); text-decoration: none; }
.legal-content a:hover { text-decoration: underline; }
.legal-updated { font-size: 0.8rem !important; color: var(--text-tertiary) !important; margin-bottom: 16px !important; }

.contact-block {
    background: rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-sm);
    padding: 16px;
    margin: 12px 0;
}

.contact-block p { margin-bottom: 4px !important; }

.settings-item-icon.bg-icon svg { color: #f59e0b; }

.bg-picker-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 200;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    overflow-y: auto;
}

.bg-picker-overlay.active { display: block; opacity: 1; }

.bg-picker-container { max-width: 480px; width: 100%; margin: 0 auto; padding: 20px; }

.bg-picker-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.bg-picker-header h2 { font-size: 1.3rem; font-weight: 700; color: var(--text-primary); }

.bg-picker-body { display: flex; flex-direction: column; gap: 16px; }

.bg-mode-toggle {
    display: flex;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    overflow: hidden;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
}

.bg-mode-btn {
    flex: 1;
    padding: 12px 16px;
    border: none;
    background: transparent;
    color: var(--text-tertiary);
    font-size: 0.9rem;
    font-weight: 500;
    font-family: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.bg-mode-btn.active {
    background: var(--accent-blue);
    color: white;
}

.bg-auto-hint {
    font-size: 0.82rem;
    color: var(--text-tertiary);
    text-align: center;
    line-height: 1.5;
}

.bg-auto-hint.hidden { display: none; }

.bg-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
}

.bg-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 8px;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    background: var(--glass-bg);
    cursor: pointer;
    transition: all 0.2s ease;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.bg-option:hover { background: var(--glass-hover); }

.bg-option.active {
    border-color: var(--accent-blue);
    background: rgba(79, 172, 254, 0.15);
}

.bg-option.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.bg-preview {
    width: 100%;
    aspect-ratio: 16/10;
    border-radius: 8px;
    overflow: hidden;
}

.sunny-preview { background: linear-gradient(160deg, #FF8C00, #f5af19, #FFD700); }
.warm-sunny-preview { background: linear-gradient(160deg, #4facfe, #56CCF2, #f5af19, #FFD700); }
.hot-sunny-preview { background: linear-gradient(160deg, #FF4500, #FF6B35, #FF8C00, #FFD700); }
.extreme-heat-preview { background: linear-gradient(160deg, #8B0000, #CC3300, #FF4500, #FF8C00, #FFD700); }
.cool-sunny-preview { background: linear-gradient(160deg, #667eea, #764ba2, #f5af19, #FFD700); }
.cloudy-preview { background: linear-gradient(160deg, #4a5568, #718096, #8e9aaf); }
.foggy-preview { background: linear-gradient(160deg, #3a3a4a, #5a5a6a, #6a6a7a); }
.drizzle-preview { background: linear-gradient(160deg, #1e2a3a, #3d5060, #4a6070); }
.rainy-preview { background: linear-gradient(160deg, #1a1a2e, #4a5568, #5a6a7e); }
.heavy-rain-preview { background: linear-gradient(160deg, #0a0e1a, #1e2a3a, #2a3648); }
.stormy-preview { background: linear-gradient(160deg, #0d0d1a, #2d2d44, #3d3d5c); }
.snowy-preview { background: linear-gradient(160deg, #2d3748, #718096, #a0aec0); }
.night-clear-preview { background: linear-gradient(160deg, #0a0a1a, #1a1a3e, #2d2b55); }
.night-cloudy-preview { background: linear-gradient(160deg, #0d0d1a, #1e1e30, #2a2a40); }
.night-rain-preview { background: linear-gradient(160deg, #080c14, #0f1520, #1a2030); }
.default-preview { background: linear-gradient(160deg, #0f0c29, #302b63, #24243e); }

.bg-option-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.3;
}
