/* ============================================================
   ZENITH AI v3.1 — Siber Çekirdek Arayüzü — style.css
   ============================================================ */

:root {
    --bg-dark:      #03040a;
    --bg-panel:     rgba(6, 7, 14, 0.38);
    --border-color: rgba(255, 255, 255, 0.055);
    --accent:       #00f0ff;
    --accent-rgb:   0,240,255;
    --neon-blue:    #00f0ff;
    --neon-green:   #39ff14;
    --neon-red:     #ff003c;
    --neon-orange:  #ffaa00;
    --neon-purple:  #bd00ff;
    --font-cyber:   'Rajdhani', sans-serif;
    --font-ui:      'Inter', sans-serif;
    --panel-alpha:  0.38;
}

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

html, body {
    background-color: var(--bg-dark);
    color: #e0e6ed;
    font-family: var(--font-ui);
    font-size: 12px;
    height: 100vh;
    overflow: hidden;
    position: relative;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width:3px; height:3px; }
::-webkit-scrollbar-track { background: rgba(255,255,255,0.01); }
::-webkit-scrollbar-thumb { background: rgba(var(--accent-rgb),0.25); border-radius:2px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* ── Background ── */
.grid-background {
    position: fixed; inset: 0; z-index: -2; pointer-events: none;
    background-image:
        linear-gradient(rgba(var(--accent-rgb),0.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--accent-rgb),0.022) 1px, transparent 1px);
    background-size: 32px 32px;
}

.cyber-glow {
    position: fixed; top: 50%; left: 50%;
    transform: translate(-50%,-50%);
    width: 700px; height: 700px;
    background: radial-gradient(circle, rgba(0,168,255,0.045) 0%, transparent 70%);
    z-index: -1; pointer-events: none;
    transition: background 1.2s ease;
}

/* ── Custom BG Image ── */
body.has-bg-image::before {
    content: '';
    position: fixed; inset: 0; z-index: -3;
    background-size: cover;
    background-position: center;
    background-image: var(--custom-bg);
    opacity: 0.18;
}

/* ============================================================
   MAIN LAYOUT
   ============================================================ */
.dashboard-container {
    display: flex; flex-direction: column;
    height: 100vh; padding: 10px;
}

.dashboard-content {
    display: grid;
    grid-template-columns: 290px 1fr 310px;
    gap: 10px; flex: 1; min-height: 0;
    transition: grid-template-columns 0.75s cubic-bezier(0.4,0,0.2,1);
}

/* Settings mode — collapse center column */
body.settings-open .dashboard-content {
    grid-template-columns: 1fr 0px 1fr;
}

.panel { display: flex; flex-direction: column; gap: 10px; height: 100%; min-height: 0; overflow: hidden; }

/* ============================================================
   HEADER
   ============================================================ */
.dashboard-header {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    padding: 6px 14px;
    background: rgba(6,7,14,0.58);
    border: 1px solid var(--border-color);
    border-bottom: 1.5px solid rgba(var(--accent-rgb),0.22);
    border-radius: 6px;
    backdrop-filter: blur(28px);
    height: 46px; flex-shrink: 0;
    transition: border-color 0.5s ease;
}

.header-left { display: flex; align-items: center; gap: 10px; }
.header-right { display: flex; justify-content: flex-end; align-items: center; gap: 10px; }

.header-status-mini {
    display: flex; align-items: center; gap: 5px;
    background: rgba(0,0,0,0.3); padding: 2px 8px;
    border-radius: 20px; border: 1px solid rgba(255,255,255,0.04);
}

.state-text-mini {
    font-family: var(--font-cyber); font-size: 9px;
    font-weight: 700; letter-spacing: 0.8px;
    color: var(--accent); text-transform: uppercase;
}

/* ── ZENITH Logo ── */
.header-center { display: flex; justify-content: center; align-items: center; }

.zenith-title-btn {
    background: transparent; border: none; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 3px 16px; border-radius: 4px;
    transition: background 0.2s ease;
}
.zenith-title-btn:hover { background: rgba(var(--accent-rgb),0.06); }

.zenith-logo-text {
    font-family: var(--font-cyber); font-size: 22px; font-weight: 700;
    letter-spacing: 6px; color: #fff; user-select: none;
    text-shadow: 0 0 20px rgba(var(--accent-rgb),0.7), 0 0 40px rgba(var(--accent-rgb),0.3);
    transition: text-shadow 0.3s ease;
}
.zenith-title-btn:hover .zenith-logo-text {
    text-shadow: 0 0 30px rgba(var(--accent-rgb),1), 0 0 60px rgba(var(--accent-rgb),0.5);
}

.zenith-underline {
    width: 70%; height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent), transparent);
    opacity: 0.5; transition: width 0.2s ease, opacity 0.2s ease;
}
.zenith-title-btn:hover .zenith-underline { width: 100%; opacity: 1; }

/* ── Nav buttons ── */
.nav-btn {
    display: flex; align-items: center; gap: 5px;
    background: rgba(255,255,255,0.035);
    border: 1px solid var(--border-color);
    border-radius: 4px; color: #8892b0;
    padding: 5px 10px;
    font-family: var(--font-cyber); font-size: 10px; font-weight: 700;
    letter-spacing: 0.8px; cursor: pointer;
    transition: all 0.2s ease;
}
.nav-btn:hover { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.12); color: #fff; }
.nav-btn-accent { background: rgba(var(--accent-rgb),0.07); border-color: rgba(var(--accent-rgb),0.2); color: var(--accent); }
.nav-btn-accent:hover { background: rgba(var(--accent-rgb),0.14); border-color: rgba(var(--accent-rgb),0.4); color: #fff; }
.nav-btn-accent.settings-open { background: rgba(var(--accent-rgb),0.18); border-color: var(--accent); color: #fff; box-shadow: 0 0 12px rgba(var(--accent-rgb),0.25); }

.header-time-block { display: flex; flex-direction: column; align-items: flex-end; }
.header-time { color: #fff; font-family: var(--font-cyber); font-size: 13px; font-weight: 600; letter-spacing: 1px; }
.header-date { color: #8892b0; font-size: 9px; }

/* ============================================================
   PANEL SECTIONS — Switchable
   ============================================================ */
.panel-section {
    background: rgba(6,7,14, var(--panel-alpha));
    border: 1px solid var(--border-color);
    border-radius: 6px;
    padding: 9px 11px;
    backdrop-filter: blur(22px);
    -webkit-backdrop-filter: blur(22px);
    display: flex; flex-direction: column;
    position: relative; overflow: hidden;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, background 0.4s ease;
}
.panel-section:hover { border-color: rgba(var(--accent-rgb),0.1); }
.console-section { flex: 1; min-height: 0; }

/* Section title */
.section-title {
    font-family: var(--font-cyber); font-size: 11px; font-weight: 700;
    letter-spacing: 0.8px; color: #fff;
    display: flex; align-items: center; gap: 6px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    padding-bottom: 6px; margin-bottom: 8px;
    text-transform: uppercase; flex-shrink: 0;
    transition: color 0.3s ease;
}

.icon-sm { width:13px; height:13px; flex-shrink:0; }
.icon-xs { width:10px; height:10px; flex-shrink:0; }

/* ── Main / Settings view toggle ── */
.view-main {
    display: flex; flex-direction: column;
    opacity: 1; transition: opacity 0.35s ease;
}
.view-settings {
    display: none; opacity: 0;
    flex-direction: column; gap: 8px;
    transition: opacity 0.35s ease;
}
.view-main.hidden    { opacity: 0; pointer-events: none; }
.view-settings.shown { display: flex; opacity: 1; }

.flex-col-fill { flex: 1; min-height: 0; }

/* ============================================================
   TELEMETRY
   ============================================================ */
.telemetry-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 5px; }

.telemetry-card {
    background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 3px; padding: 5px 7px;
    display: flex; flex-direction: column; gap: 4px;
}
.card-header { display: flex; justify-content: space-between; align-items: center; }
.label { font-size: 9px; color: #8892b0; font-weight: 500; letter-spacing: 0.3px; }
.value { font-family: var(--font-cyber); font-size: 12px; font-weight: 700; color: #fff; }
.progress-bar-container { height: 2.5px; background: rgba(255,255,255,0.05); border-radius: 1px; overflow: hidden; }
.progress-bar { height: 100%; border-radius: 1px; transition: width 0.6s ease; }
.card-footer { font-size: 9px; color: #626b80; text-align: right; }
#cpu-bar { background: var(--neon-blue);   box-shadow: 0 0 4px var(--neon-blue); }
#ram-bar { background: var(--neon-purple); box-shadow: 0 0 4px var(--neon-purple); }
#ssd-bar { background: var(--neon-green);  box-shadow: 0 0 4px var(--neon-green); }
.gpu-name { font-size: 9px; color: #e0e6ed; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wifi-ssid, .ip-address { font-family: var(--font-cyber); font-size: 11px; font-weight: 600; color: var(--accent); }

/* ============================================================
   GEO MAP
   ============================================================ */
.geo-details { display: flex; flex-direction: column; gap: 3px; margin-bottom: 6px; }
.geo-item { display: flex; justify-content: space-between; font-size: 10px; }
.geo-label { color: #8892b0; }
.geo-val   { color: #fff; font-weight: 500; }

.map-container {
    height: 100px; border-radius: 4px; overflow: hidden;
    border: 1px solid rgba(var(--accent-rgb),0.1);
    position: relative;
}
#geo-map { width: 100%; height: 100%; }

/* Leaflet dark theme overrides */
.leaflet-tile-pane { filter: brightness(0.75) saturate(1.2); }
.leaflet-container { background: #02030a; }
.leaflet-control-attribution { display: none; }

/* Custom Leaflet marker */
.zen-marker-wrap {
    width: 20px; height: 20px;
    display: flex; align-items: center; justify-content: center;
}
.zen-pulse-dot {
    width: 8px; height: 8px;
    background: var(--neon-red);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--neon-red);
    animation: pulse-dot 1.5s infinite;
}
@keyframes pulse-dot {
    0%,100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.5); opacity: 0.6; }
}

/* ============================================================
   CONSOLE
   ============================================================ */
.console-actions { margin-left: auto; display: flex; gap: 4px; }
.console-btn {
    background: transparent; border: 1px solid rgba(255,255,255,0.06);
    color: #8892b0; padding: 2px; border-radius: 2px;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: all 0.2s ease;
}
.console-btn:hover { background: rgba(255,255,255,0.05); border-color: rgba(255,255,255,0.18); }

.console-status-box {
    display: flex; justify-content: space-between;
    font-size: 10px; font-weight: 600;
    background: rgba(0,0,0,0.2); padding: 3px 6px;
    border: 1px solid rgba(255,255,255,0.03);
    margin-bottom: 5px; border-radius: 2px; flex-shrink: 0;
}
.console-label { color: #8892b0; }
.console-status { font-family: var(--font-cyber); }
.console-status.state-idle       { color: var(--neon-blue); }
.console-status.state-listening  { color: var(--neon-red); }
.console-status.state-speaking   { color: var(--neon-green); }
.console-status.state-thinking   { color: var(--neon-purple); }
.console-status.state-processing { color: var(--neon-orange); }
.console-status.state-error      { color: var(--neon-red); }

.console-terminal {
    background: rgba(2,3,5,0.85);
    border: 1px solid rgba(var(--accent-rgb),0.07);
    border-radius: 2px; font-family: 'Consolas', monospace;
    font-size: 9.5px; padding: 5px;
    flex: 1; overflow-y: auto;
    display: flex; flex-direction: column; gap: 3px;
    min-height: 0;
}
.log-line { word-break: break-all; line-height: 1.35; }
.log-line.system-msg  { color: #8892b0; }
.log-line.client-msg  { color: var(--neon-blue); }
.log-line.success-msg { color: var(--neon-green); }
.log-line.error-msg   { color: var(--neon-red); }
.log-line.action-msg  { color: var(--neon-orange); }

/* ============================================================
   CENTER PANEL — 3D ORB
   ============================================================ */
.panel-center {
    background: rgba(6,7,14,0.18);
    border: 1px solid rgba(var(--accent-rgb),0.1);
    border-radius: 6px;
    backdrop-filter: blur(6px);
    display: flex; flex-direction: column;
    align-items: center; position: relative;
    overflow: hidden; padding: 10px;
    /* Transition for shrink-move animation */
    transition:
        left   0.75s cubic-bezier(0.34,1.56,0.64,1),
        top    0.75s cubic-bezier(0.34,1.56,0.64,1),
        width  0.75s cubic-bezier(0.34,1.56,0.64,1),
        height 0.75s cubic-bezier(0.34,1.56,0.64,1),
        border-radius 0.75s ease,
        opacity 0.5s ease,
        padding 0.5s ease;
}

/* Orb in settings mode — fixed position, bottom-right corner */
.panel-center.orb-mini {
    position: fixed;
    bottom: 16px; right: 16px;
    width: 130px; height: 130px;
    border-radius: 50%;
    overflow: hidden; padding: 0;
    z-index: 500;
    border: 1px solid rgba(var(--accent-rgb),0.35);
    box-shadow: 0 0 25px rgba(var(--accent-rgb),0.2),
                0 0 50px rgba(var(--accent-rgb),0.08);
    cursor: pointer;
}

.panel-center.orb-mini:hover {
    box-shadow: 0 0 35px rgba(var(--accent-rgb),0.35),
                0 0 70px rgba(var(--accent-rgb),0.15);
}

.panel-center.orb-mini .center-hud-top { display: none; }
.panel-center.orb-mini .mic-level-bar  { display: none; }

/* Rotating ring around mini orb */
.panel-center.orb-mini::before {
    content: '';
    position: absolute; inset: -1px;
    border-radius: 50%;
    border: 1px solid rgba(var(--accent-rgb),0.2);
    animation: spin-ring 6s linear infinite;
    pointer-events: none;
}
.panel-center.orb-mini::after {
    content: '';
    position: absolute; inset: 6px;
    border-radius: 50%;
    border: 1px dashed rgba(var(--accent-rgb),0.12);
    animation: spin-ring 10s linear infinite reverse;
    pointer-events: none;
}

.center-hud-top {
    display: flex; justify-content: space-between;
    width: 100%; z-index: 10; flex-shrink: 0;
}
.hud-item { display: flex; flex-direction: column; gap: 2px; }
.hud-label { font-size: 9px; color: #8892b0; letter-spacing: 0.5px; }
.hud-value { font-family: var(--font-cyber); font-size: 12px; font-weight: 700; }
.neon-blue  { color: var(--neon-blue);  text-shadow: 0 0 5px rgba(0,240,255,0.35); }
.neon-green { color: var(--neon-green); text-shadow: 0 0 5px rgba(57,255,20,0.35); }

.canvas-container { flex: 1; width: 100%; position: relative; min-height: 0; }
#canvas3d {
    position: absolute; top: 0; left: 0;
    width: 100% !important; height: 100% !important;
    outline: none; display: block; cursor: crosshair;
}

.mic-level-bar {
    position: absolute; bottom: 14px; left: 50%;
    transform: translateX(-50%);
    width: 140px; height: 3px;
    background: rgba(255,255,255,0.06);
    border-radius: 2px; overflow: hidden;
    z-index: 10; opacity: 0; transition: opacity 0.3s ease;
}
.mic-level-bar.visible { opacity: 1; }
.mic-level-fill {
    height: 100%; width: 0%;
    background: var(--neon-green); box-shadow: 0 0 8px var(--neon-green);
    border-radius: 2px; transition: width 0.04s linear;
}

/* ============================================================
   RIGHT PANEL
   ============================================================ */
.task-manager-section { flex: 1; min-height: 0; display: flex; flex-direction: column; }

.search-box-container { position: relative; margin-bottom: 7px; flex-shrink: 0; }
.search-icon { position: absolute; left: 7px; top: 50%; transform: translateY(-50%); color: #626b80; }
.cyber-input {
    width: 100%; background: rgba(0,0,0,0.35);
    border: 1px solid var(--border-color); border-radius: 3px;
    padding: 5px 7px 5px 24px; color: #fff; font-size: 10px;
    outline: none; font-family: var(--font-ui); transition: border-color 0.3s ease;
}
.cyber-input:focus { border-color: rgba(var(--accent-rgb),0.4); }

.process-table-container {
    flex: 1; overflow-y: auto;
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 2px; background: rgba(0,0,0,0.15); min-height: 0;
}
.process-table { width: 100%; border-collapse: collapse; font-size: 10px; }
.process-table th {
    font-family: var(--font-cyber); font-size: 9px; font-weight: 700; color: #8892b0;
    background: rgba(0,0,0,0.4); padding: 5px 7px;
    border-bottom: 1px solid rgba(255,255,255,0.04);
    position: sticky; top: 0; z-index: 10;
}
.process-table td { padding: 3px 7px; border-bottom: 1px solid rgba(255,255,255,0.018); color: #e0e6ed; vertical-align: middle; }
.process-table tbody tr:hover { background: rgba(var(--accent-rgb),0.04); }
.process-kill-btn {
    background: rgba(255,0,60,0.07); border: 1px solid rgba(255,0,60,0.22);
    color: var(--neon-red); padding: 1px 5px; border-radius: 2px;
    font-size: 8px; font-family: var(--font-cyber); font-weight: 700;
    cursor: pointer; transition: all 0.2s ease;
}
.process-kill-btn:hover { background: var(--neon-red); color: #fff; box-shadow: 0 0 5px var(--neon-red); }

/* ── Chat ── */
.chat-section { height: 310px; display: flex; flex-direction: column; flex-shrink: 0; }

.chat-messages {
    flex: 1; overflow-y: auto;
    display: flex; flex-direction: column; gap: 6px;
    padding: 6px; background: rgba(0,0,0,0.22);
    border: 1px solid rgba(255,255,255,0.03);
    border-radius: 3px; margin-bottom: 7px;
    scroll-behavior: smooth; min-height: 0;
}

.chat-message {
    max-width: 92%; padding: 5px 9px; border-radius: 4px;
    line-height: 1.45; display: flex; flex-direction: column; gap: 2px;
    animation: msg-drop 0.35s cubic-bezier(0.34,1.56,0.64,1);
}
@keyframes msg-drop {
    from { opacity: 0; transform: translateY(-10px) scale(0.97); }
    to   { opacity: 1; transform: translateY(0) scale(1); }
}

.chat-message.ai-message   { align-self: flex-start; background: rgba(255,255,255,0.03); border-left: 2px solid var(--accent); }
.chat-message.user-message { align-self: flex-end;   background: rgba(var(--accent-rgb),0.05); border-right: 2px solid var(--accent); text-align: right; }

.message-sender { font-family: var(--font-cyber); font-size: 8px; font-weight: 700; letter-spacing: 0.5px; }
.ai-message .message-sender   { color: var(--accent); }
.user-message .message-sender { color: var(--neon-purple); }
.message-content { font-size: 10px; color: #fff; word-break: break-word; text-align: left; }
.message-time    { font-size: 7px; color: #626b80; align-self: flex-end; }

/* ── Typing indicator ── */
.chat-typing {
    align-self: flex-start;
    display: flex; align-items: center; gap: 4px;
    padding: 6px 10px;
    background: rgba(255,255,255,0.03);
    border-left: 2px solid var(--accent);
    border-radius: 4px;
    animation: msg-drop 0.3s ease;
}
.typing-dot {
    width: 5px; height: 5px; border-radius: 50%;
    background: var(--accent); opacity: 0.6;
    animation: typing-bounce 1.2s infinite;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
    0%,100% { transform: translateY(0); opacity: 0.4; }
    50%      { transform: translateY(-4px); opacity: 1; }
}

.chat-input-form { display: flex; gap: 5px; flex-shrink: 0; }
.chat-mic-btn {
    background: rgba(var(--accent-rgb),0.08); border: 1px solid rgba(var(--accent-rgb),0.2);
    color: var(--accent); width: 30px; height: 30px; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s ease; flex-shrink: 0;
}
.chat-mic-btn:hover     { background: var(--accent); color: var(--bg-dark); box-shadow: 0 0 8px var(--accent); }
.chat-mic-btn.recording { background: var(--neon-red); color: #fff; border-color: var(--neon-red); box-shadow: 0 0 12px var(--neon-red); animation: pulse 0.8s infinite; }

.chat-text-input {
    flex: 1; background: rgba(0,0,0,0.4);
    border: 1px solid var(--border-color); border-radius: 4px;
    padding: 5px 10px; color: #fff; font-size: 10px; outline: none;
    transition: border-color 0.3s ease;
}
.chat-text-input:focus { border-color: rgba(var(--accent-rgb),0.4); }

.chat-send-btn {
    background: rgba(var(--accent-rgb),0.1); border: 1px solid rgba(var(--accent-rgb),0.28);
    color: var(--accent); width: 30px; height: 30px; border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; transition: all 0.3s ease; flex-shrink: 0;
}
.chat-send-btn:hover { background: var(--accent); color: var(--bg-dark); box-shadow: 0 0 8px var(--accent); }

/* ── Chat hidden ── */
body.chat-hidden .chat-section { display: none; }

/* ── Pulse dot ── */
.pulse-dot {
    width: 7px; height: 7px; border-radius: 50%;
    display: inline-block; flex-shrink: 0; transition: all 0.5s ease;
}
.pulse-dot.state-idle       { background: #00a8ff; box-shadow: 0 0 8px #00a8ff;  animation: pulse 2s infinite; }
.pulse-dot.state-listening  { background: #ff3b30; box-shadow: 0 0 12px #ff3b30; animation: pulse 1.2s infinite; }
.pulse-dot.state-speaking   { background: #00f0ff; box-shadow: 0 0 12px #00f0ff; animation: pulse 0.7s infinite; }
.pulse-dot.state-thinking   { background: #00a8ff; box-shadow: 0 0 10px #00a8ff; animation: pulse-rainbow 1.5s infinite linear; }
.pulse-dot.state-processing { background: #ffaa00; box-shadow: 0 0 10px #ffaa00; animation: pulse 1.1s infinite; }
.pulse-dot.state-error      { background: #ff003c; box-shadow: 0 0 12px #ff003c; animation: pulse 0.4s infinite; }

/* ============================================================
   SETTINGS — Compact Items
   ============================================================ */
.s-group {
    background: rgba(0,0,0,0.18);
    border: 1px solid rgba(255,255,255,0.04);
    border-radius: 5px;
    padding: 8px 10px;
    display: flex; flex-direction: column; gap: 7px;
}

.s-item {
    display: flex; align-items: center;
    justify-content: space-between; gap: 8px;
    min-height: 22px;
}
.s-item-col { flex-direction: column; align-items: flex-start; }

.s-label {
    font-size: 10px; color: #8892b0; font-weight: 500;
    flex-shrink: 0; min-width: 100px;
}

.s-desc { font-size: 9px; color: #626b80; line-height: 1.5; }

.s-slider-row { display: flex; align-items: center; gap: 6px; flex: 1; }

.cyber-slider {
    flex: 1; -webkit-appearance: none; appearance: none;
    height: 3px; background: rgba(255,255,255,0.1);
    border-radius: 2px; outline: none; cursor: pointer;
}
.cyber-slider::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 12px; height: 12px; border-radius: 50%;
    background: var(--accent); box-shadow: 0 0 6px var(--accent);
    cursor: pointer; transition: transform 0.2s ease;
}
.cyber-slider::-webkit-slider-thumb:hover { transform: scale(1.3); }

.slider-val {
    font-family: var(--font-cyber); font-size: 10px; font-weight: 700;
    color: var(--accent); min-width: 26px; text-align: right;
}

.s-select {
    background: rgba(0,0,0,0.4); border: 1px solid var(--border-color);
    border-radius: 3px; color: #fff; font-size: 10px;
    font-family: var(--font-ui); padding: 3px 6px;
    outline: none; cursor: pointer; flex: 1; max-width: 160px;
    transition: border-color 0.2s ease;
}
.s-select:focus { border-color: rgba(var(--accent-rgb),0.4); }

/* ── Toggle ── */
.cyber-toggle { position: relative; display: inline-block; width: 34px; height: 18px; cursor: pointer; flex-shrink: 0; }
.cyber-toggle input { opacity: 0; width: 0; height: 0; }
.toggle-slider {
    position: absolute; inset: 0;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 18px; transition: all 0.3s ease;
}
.toggle-slider::before {
    content: ''; position: absolute;
    width: 12px; height: 12px; left: 2px; top: 2px;
    background: #8892b0; border-radius: 50%; transition: all 0.3s ease;
}
.cyber-toggle input:checked + .toggle-slider { background: rgba(var(--accent-rgb),0.15); border-color: rgba(var(--accent-rgb),0.3); }
.cyber-toggle input:checked + .toggle-slider::before { transform: translateX(16px); background: var(--accent); box-shadow: 0 0 6px var(--accent); }

/* ── Color chips ── */
.color-palette { display: flex; gap: 6px; flex-wrap: wrap; }
.color-chip {
    width: 18px; height: 18px; border-radius: 50%;
    border: 2px solid transparent; cursor: pointer;
    transition: all 0.2s ease; outline: none;
}
.color-chip:hover { transform: scale(1.3); }
.color-chip.active { border-color: #fff; box-shadow: 0 0 8px rgba(255,255,255,0.5); }

/* ── BG Upload ── */
.bg-upload-label {
    display: flex; align-items: center; gap: 5px;
    background: rgba(var(--accent-rgb),0.06);
    border: 1px solid rgba(var(--accent-rgb),0.2);
    color: var(--accent); font-size: 10px;
    padding: 4px 10px; border-radius: 3px;
    cursor: pointer; transition: all 0.2s ease; width: 100%;
}
.bg-upload-label:hover { background: rgba(var(--accent-rgb),0.12); }

.s-mini-btn {
    background: rgba(255,0,60,0.07); border: 1px solid rgba(255,0,60,0.25);
    color: var(--neon-red); font-size: 9px; font-family: var(--font-cyber);
    font-weight: 700; padding: 3px 8px; border-radius: 3px;
    cursor: pointer; transition: all 0.2s ease;
}
.s-mini-btn:hover { background: rgba(255,0,60,0.15); }

/* ── Info banner ── */
.s-info-banner {
    display: flex; align-items: flex-start; gap: 7px;
    background: rgba(255,170,0,0.06);
    border: 1px solid rgba(255,170,0,0.15);
    border-radius: 4px; padding: 8px 10px;
    font-size: 9.5px; color: #8892b0; line-height: 1.45;
    flex-shrink: 0;
}

/* ── Status badges ── */
.s-badge {
    font-family: var(--font-cyber); font-size: 9px; font-weight: 700;
    padding: 2px 7px; border-radius: 10px; letter-spacing: 0.5px;
    background: rgba(57,255,20,0.08); color: var(--neon-green);
    border: 1px solid rgba(57,255,20,0.2);
}
.s-badge-blue { background: rgba(0,240,255,0.08); color: var(--neon-blue); border-color: rgba(0,240,255,0.2); }

/* ── Settings actions ── */
.settings-actions-group { flex-shrink: 0; }
.settings-btn-row { display: flex; gap: 8px; }
.s-action-btn {
    flex: 1; display: flex; align-items: center; justify-content: center;
    gap: 5px; padding: 7px; border-radius: 4px;
    font-family: var(--font-cyber); font-size: 10px; font-weight: 700;
    letter-spacing: 0.5px; cursor: pointer; transition: all 0.2s ease;
}
.s-save-btn { background: rgba(var(--accent-rgb),0.1); border: 1px solid rgba(var(--accent-rgb),0.3); color: var(--accent); }
.s-save-btn:hover { background: rgba(var(--accent-rgb),0.2); border-color: var(--accent); color: #fff; box-shadow: 0 0 12px rgba(var(--accent-rgb),0.2); }
.s-reset-btn { background: rgba(255,0,60,0.07); border: 1px solid rgba(255,0,60,0.25); color: var(--neon-red); }
.s-reset-btn:hover { background: rgba(255,0,60,0.15); color: #fff; }
.settings-version { font-size: 8px; color: #626b80; text-align: center; padding-top: 6px; }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes pulse {
    0%,100% { transform: scale(1); opacity: 1; }
    50%      { transform: scale(1.18); opacity: 0.55; }
}
@keyframes pulse-rainbow {
    0%   { box-shadow: 0 0 7px var(--neon-blue);   background-color: var(--neon-blue); }
    33%  { box-shadow: 0 0 7px var(--neon-purple);  background-color: var(--neon-purple); }
    66%  { box-shadow: 0 0 7px var(--neon-orange);  background-color: var(--neon-orange); }
    100% { box-shadow: 0 0 7px var(--neon-blue);   background-color: var(--neon-blue); }
}
@keyframes spin-ring {
    from { transform: rotate(0deg); }
    to   { transform: rotate(360deg); }
}
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* ── Helpers ── */
.text-muted   { color: #626b80; }
.text-center  { text-align: center; }
.py-2         { padding: 6px 0; }
.text-neon-green { color: var(--neon-green); }
.text-neon-red   { color: var(--neon-red); }
