/* ═══ ADMIN PANEL ═══ */
#admin-panel-overlay {
    position: fixed; top: 0; left: 0; width: 100vw; height: 100vh;
    background: rgba(0, 0, 0, 0.5); z-index: 399;
    opacity: 0; pointer-events: none; transition: opacity 0.25s;
}
#admin-panel-overlay.open { opacity: 1; pointer-events: auto; }

#admin-panel {
    position: fixed; top: 0; right: 0;
    width: 900px; max-width: 95vw; height: 100vh;
    background: var(--bg-primary); border-left: 1px solid var(--border);
    z-index: 400; transform: translateX(100%); transition: transform 0.3s ease;
    display: flex; flex-direction: column;
    box-shadow: -8px 0 32px rgba(0, 0, 0, 0.25);
}
#admin-panel.open { transform: translateX(0); }

#admin-panel .settings-header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0;
}
#admin-panel .settings-header h2 {
    margin: 0; font-size: 18px; font-weight: 600; color: var(--text-primary);
}
#admin-panel .settings-close {
    width: 32px; height: 32px; border: none; background: none;
    color: var(--text-muted); font-size: 18px; cursor: pointer;
    border-radius: 6px; display: flex; align-items: center; justify-content: center;
}
#admin-panel .settings-close:hover { background: var(--bg-hover); color: var(--text-primary); }

#admin-panel .settings-tabs {
    display: flex; padding: 0 20px; border-bottom: 1px solid var(--border);
    background: var(--bg-secondary); flex-shrink: 0; overflow-x: auto;
}
#admin-panel .settings-tab {
    padding: 10px 14px; border: none; background: none;
    color: var(--text-muted); font-size: 13px; font-weight: 500;
    cursor: pointer; border-bottom: 2px solid transparent; margin-bottom: -1px;
    white-space: nowrap; transition: color 0.15s, border-color 0.15s;
}
#admin-panel .settings-tab:hover { color: var(--text-primary); }
#admin-panel .settings-tab.active { color: var(--accent); border-bottom-color: var(--accent); }

#admin-panel .settings-content { flex: 1; overflow-y: auto; padding: 20px 24px; }
#admin-panel .settings-section { max-width: none; }
#admin-panel .settings-section.hidden { display: none; }
#admin-panel .settings-section h3 {
    margin: 0 0 12px; font-size: 15px; font-weight: 600; color: var(--text-primary);
}

@media (max-width: 768px) {
    #admin-panel { width: 100vw; max-width: 100vw; }
    #admin-panel .settings-header { padding: 12px 16px; }
    #admin-panel .settings-tabs { padding: 0 12px; }
    #admin-panel .settings-content { padding: 16px; }
}
