/* ==============================================================================
   JARVIS CLOUD HUD - Sci-Fi Design System (Ironman / Tron Neon Theme)
   ============================================================================== */

:root {
    --bg-deep: #030710;
    --bg-surface: rgba(8, 16, 30, 0.78);
    --bg-surface-elevated: rgba(14, 26, 48, 0.88);
    
    --neon-cyan: #00f0ff;
    --neon-cyan-glow: rgba(0, 240, 255, 0.4);
    --neon-cyan-dim: rgba(0, 240, 255, 0.12);
    
    --neon-gold: #ffaa00;
    --neon-gold-glow: rgba(255, 170, 0, 0.45);
    
    --neon-green: #00ff88;
    --neon-green-glow: rgba(0, 255, 136, 0.4);
    
    --neon-red: #ff2a55;
    --neon-red-glow: rgba(255, 42, 85, 0.45);

    --text-primary: #e0f6ff;
    --text-secondary: #7f9eb2;
    --text-muted: #4a6477;
    
    --border-hud: 1px solid rgba(0, 240, 255, 0.25);
    --border-hud-active: 1px solid rgba(0, 240, 255, 0.8);
    
    --font-display: 'Orbitron', -apple-system, sans-serif;
    --font-ui: 'Rajdhani', -apple-system, sans-serif;
}

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

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    font-family: var(--font-ui);
    font-size: 16px;
    letter-spacing: 0.5px;
    height: 100vh;
    overflow: hidden;
    user-select: none;
}

/* Background sci-fi grid */
.sci-fi-grid {
    background-image: 
        radial-gradient(circle at 50% 30%, rgba(0, 240, 255, 0.08) 0%, transparent 60%),
        linear-gradient(rgba(0, 240, 255, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 240, 255, 0.03) 1px, transparent 1px);
    background-size: 100% 100%, 30px 30px, 30px 30px;
}

/* Subtle CRT scanline overlay */
.scanlines {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    pointer-events: none;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
    background-size: 100% 4px;
    z-index: 999;
    opacity: 0.35;
}

/* MAIN LAYOUT */
.hud-container {
    display: flex;
    flex-direction: column;
    height: 100vh;
    padding: 12px 18px;
    gap: 12px;
}

/* HEADER */
.hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 60px;
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    border: var(--border-hud);
    border-radius: 8px;
    padding: 0 20px;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.1);
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reactor-mini-icon {
    width: 28px;
    height: 28px;
    border: 2px solid var(--neon-cyan);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px var(--neon-cyan-glow);
}

.core-dot {
    width: 8px;
    height: 8px;
    background: var(--neon-cyan);
    border-radius: 50%;
    box-shadow: 0 0 8px var(--neon-cyan);
}

.brand-title {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 900;
    color: #fff;
    letter-spacing: 2px;
}

.accent-cyan { color: var(--neon-cyan); }
.accent-gold { color: var(--neon-gold); }
.accent-green { color: var(--neon-green); }

.brand-sub {
    display: block;
    font-size: 0.65rem;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
    margin-top: -2px;
}

.telemetry-bar {
    display: flex;
    align-items: center;
    gap: 28px;
}

.telemetry-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.telemetry-item .label {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 700;
}

.digital-mono {
    font-family: var(--font-display);
    font-size: 0.95rem;
    color: var(--neon-cyan);
}

/* BADGES */
.badge {
    padding: 2px 10px;
    border-radius: 12px;
    font-family: var(--font-display);
    font-size: 0.7rem;
    font-weight: 800;
    letter-spacing: 1px;
}

.badge-standby {
    background: rgba(127, 158, 178, 0.15);
    color: var(--text-secondary);
    border: 1px solid rgba(127, 158, 178, 0.4);
}

.badge-active {
    background: rgba(0, 255, 136, 0.15);
    color: var(--neon-green);
    border: 1px solid var(--neon-green);
    box-shadow: 0 0 10px var(--neon-green-glow);
}

/* CONTROLS IN HEADER */
.header-controls {
    display: flex;
    align-items: center;
    gap: 12px;
}

.btn-hud-icon {
    background: rgba(0, 240, 255, 0.08);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--text-primary);
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.85rem;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.btn-hud-icon:hover {
    background: rgba(0, 240, 255, 0.2);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px var(--neon-cyan-glow);
}

.btn-hud-accent {
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.2), rgba(0, 255, 136, 0.2));
    border: 1px solid var(--neon-cyan);
    color: #fff;
    padding: 8px 18px;
    border-radius: 6px;
    cursor: pointer;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 0 12px var(--neon-cyan-glow);
    transition: all 0.2s ease;
}

.btn-hud-accent:hover {
    transform: translateY(-1px);
    box-shadow: 0 0 20px var(--neon-cyan-glow);
}

/* HUD MAIN GRID */
.hud-grid {
    display: grid;
    grid-template-columns: 320px 1fr 380px;
    gap: 14px;
    flex: 1;
    min-height: 0;
}

/* COMMON PANEL STYLES */
.hud-panel {
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    border: var(--border-hud);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    position: relative;
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.03);
    overflow: hidden;
}

.panel-header {
    display: flex;
    align-items: center;
    gap: 10px;
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    padding-bottom: 10px;
}

.panel-header h2 {
    font-family: var(--font-display);
    font-size: 0.95rem;
    letter-spacing: 1.5px;
    color: var(--text-primary);
}

.panel-header i {
    color: var(--neon-cyan);
}

/* LEFT PANEL SPECIFICS */
.voice-activation-card {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 8px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 12px;
}

.voice-state-indicator {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 2px solid rgba(0, 240, 255, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--text-secondary);
    position: relative;
}

.pulse-ring {
    position: absolute;
    top: -6px;
    left: -6px;
    right: -6px;
    bottom: -6px;
    border: 1px dashed var(--neon-cyan);
    border-radius: 50%;
    animation: spin 12s linear infinite;
    opacity: 0.4;
}

@keyframes spin {
    100% { transform: rotate(360deg); }
}

.voice-state-indicator.active {
    border-color: var(--neon-green);
    color: var(--neon-green);
    box-shadow: 0 0 20px var(--neon-green-glow);
}

.voice-state-label span {
    display: block;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
}

.voice-state-label small {
    color: var(--text-muted);
    font-size: 0.75rem;
}

.btn-reactor-pulse {
    width: 100%;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(0, 180, 255, 0.4));
    border: 1px solid var(--neon-cyan);
    color: #fff;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 800;
    padding: 12px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    letter-spacing: 1px;
    box-shadow: 0 0 15px var(--neon-cyan-glow);
    transition: all 0.2s ease;
}

.btn-reactor-pulse:hover {
    box-shadow: 0 0 25px var(--neon-cyan-glow);
    transform: translateY(-1px);
}

.btn-reactor-pulse.connected {
    background: linear-gradient(135deg, rgba(255, 42, 85, 0.25), rgba(200, 30, 60, 0.4));
    border-color: var(--neon-red);
    box-shadow: 0 0 15px var(--neon-red-glow);
}

.section-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--neon-cyan);
    letter-spacing: 1.5px;
    margin-top: 4px;
}

.quick-command-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cmd-pill {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(0, 240, 255, 0.15);
    color: var(--text-secondary);
    padding: 8px 12px;
    border-radius: 6px;
    font-family: var(--font-ui);
    font-size: 0.95rem;
    font-weight: 600;
    text-align: left;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.cmd-pill:hover {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    border-color: var(--neon-cyan);
    padding-left: 16px;
}

.mini-spectrum-wrapper {
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 6px;
    padding: 6px;
    display: flex;
    justify-content: center;
}

.user-meta-footer {
    margin-top: auto;
    border-top: 1px solid rgba(0, 240, 255, 0.15);
    padding-top: 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.user-info-row {
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.key-badge {
    font-size: 0.75rem;
    padding: 4px 8px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.key-badge.badge-ok {
    background: rgba(0, 255, 136, 0.1);
    color: var(--neon-green);
    border: 1px solid rgba(0, 255, 136, 0.3);
}

.key-badge.badge-missing {
    background: rgba(255, 170, 0, 0.1);
    color: var(--neon-gold);
    border: 1px solid rgba(255, 170, 0, 0.3);
}

/* CENTER HUD */
.hud-center {
    display: flex;
    flex-direction: column;
    gap: 14px;
    min-height: 0;
}

.reactor-container {
    flex: 1;
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    border: var(--border-hud);
    border-radius: 8px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 380px;
    box-shadow: inset 0 0 50px rgba(0, 240, 255, 0.05);
}

/* TOP STATUS PILL CONTAINER */
.hud-ai-status-container {
    position: absolute;
    top: 16px;
    z-index: 10;
}

.ai-status-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 18px;
    border-radius: 25px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    backdrop-filter: blur(10px);
}

.status-indicator-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    display: inline-block;
}

.status-sub-text {
    font-family: var(--font-ui);
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    opacity: 0.85;
    margin-left: 6px;
    padding-left: 10px;
    border-left: 1px solid rgba(255, 255, 255, 0.2);
    text-transform: none;
}

/* STATE: STANDBY */
.ai-status-pill.status-standby {
    background: rgba(8, 20, 36, 0.7);
    border: 1px solid rgba(0, 240, 255, 0.25);
    color: var(--text-secondary);
}
.ai-status-pill.status-standby .status-indicator-dot {
    background: var(--text-muted);
}

/* STATE 1: IN ASCOLTO (Listening) */
.ai-status-pill.status-listening {
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid rgba(0, 255, 136, 0.75);
    color: #00ff88;
    box-shadow: 0 0 20px rgba(0, 255, 136, 0.35), inset 0 0 15px rgba(0, 255, 136, 0.15);
}
.ai-status-pill.status-listening .status-indicator-dot {
    background: #00ff88;
    box-shadow: 0 0 10px #00ff88;
    animation: status-pulse-green 1.5s infinite;
}
@keyframes status-pulse-green {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

/* STATE 2: ELABORAZIONE... (Thinking) */
.ai-status-pill.status-thinking {
    background: rgba(184, 68, 255, 0.15);
    border: 1px solid rgba(184, 68, 255, 0.85);
    color: #e056fd;
    box-shadow: 0 0 25px rgba(184, 68, 255, 0.45), inset 0 0 15px rgba(184, 68, 255, 0.2);
}
.ai-status-pill.status-thinking .status-indicator-dot {
    background: #b844ff;
    box-shadow: 0 0 12px #b844ff;
    animation: status-pulse-purple 1.0s infinite;
}
@keyframes status-pulse-purple {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.4); opacity: 0.6; }
}

/* STATE 3: IN RISPOSTA (Speaking) */
.ai-status-pill.status-speaking {
    background: rgba(255, 170, 0, 0.15);
    border: 1px solid rgba(255, 170, 0, 0.85);
    color: #ffaa00;
    box-shadow: 0 0 25px rgba(255, 170, 0, 0.45), inset 0 0 15px rgba(255, 170, 0, 0.2);
}
.ai-status-pill.status-speaking .status-indicator-dot {
    background: #ffaa00;
    box-shadow: 0 0 12px #ffaa00;
    animation: status-pulse-amber 1.2s infinite;
}
@keyframes status-pulse-amber {
    0%, 100% { transform: scale(1); opacity: 1; }
    50% { transform: scale(1.3); opacity: 0.7; }
}

.reactor-overlay-info {
    position: absolute;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
}

.mode-tag {
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--neon-cyan);
    letter-spacing: 2px;
}

.vad-tag {
    display: flex;
    align-items: center;
    gap: 8px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    background: rgba(0, 0, 0, 0.5);
    padding: 4px 10px;
    border-radius: 20px;
    border: 1px solid rgba(0, 240, 255, 0.2);
}

.vad-dot {
    width: 8px;
    height: 8px;
    background: var(--text-muted);
    border-radius: 50%;
}

.vad-tag.active .vad-dot {
    background: var(--neon-green);
    box-shadow: 0 0 8px var(--neon-green);
}

/* TRANSCRIPTION TERMINAL */
.transcription-terminal {
    height: 240px;
    background: var(--bg-surface);
    backdrop-filter: blur(12px);
    border: var(--border-hud);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.terminal-header {
    background: rgba(0, 240, 255, 0.08);
    border-bottom: 1px solid rgba(0, 240, 255, 0.15);
    padding: 8px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.terminal-dots {
    display: flex;
    gap: 6px;
}

.terminal-dots .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot.red { background: #ff5f56; }
.dot.yellow { background: #ffbd2e; }
.dot.green { background: #27c93f; }

.terminal-title {
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--text-secondary);
    letter-spacing: 1.5px;
}

.btn-terminal-clear {
    background: transparent;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
    font-size: 0.85rem;
}

.btn-terminal-clear:hover {
    color: var(--neon-red);
}

.transcript-content {
    flex: 1;
    padding: 12px 16px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    font-family: 'Rajdhani', monospace;
    font-size: 1rem;
}

.transcript-msg {
    line-height: 1.4;
    word-break: break-word;
}

.transcript-msg.system {
    color: var(--text-muted);
    font-size: 0.85rem;
}

.transcript-msg.user .sender {
    color: var(--neon-cyan);
    font-weight: 700;
    margin-right: 6px;
}

.transcript-msg.jarvis .sender {
    color: var(--neon-gold);
    font-weight: 700;
    margin-right: 6px;
}

.transcript-msg .timestamp {
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-right: 6px;
}

.terminal-status-bar {
    padding: 6px 14px;
    background: rgba(0, 0, 0, 0.4);
    border-top: 1px solid rgba(0, 240, 255, 0.1);
    font-size: 0.8rem;
    color: var(--text-secondary);
}

/* RIGHT PANEL TABS */
.panel-tabs {
    display: flex;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
    padding: 4px;
    gap: 4px;
}

.tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 8px;
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: 4px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s;
}

.tab-btn.active {
    background: rgba(0, 240, 255, 0.15);
    color: var(--neon-cyan);
    box-shadow: 0 0 10px var(--neon-cyan-glow);
}

.tab-pane {
    display: none;
    flex-direction: column;
    gap: 14px;
    flex: 1;
    min-height: 0;
    overflow-y: auto;
}

.tab-pane.active {
    display: flex;
}

/* NUTRITION CARDS */
.nutrition-gauge-card {
    background: rgba(0, 240, 255, 0.05);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
}

.cal-title {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 700;
}

.cal-number {
    font-family: var(--font-display);
    font-size: 1.8rem;
    margin: 6px 0;
}

.cal-separator {
    color: var(--text-muted);
    margin: 0 4px;
}

.cal-unit {
    font-size: 0.9rem;
    color: var(--text-secondary);
}

.cal-remaining {
    font-size: 0.85rem;
    color: var(--text-secondary);
}

.macros-grid {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.macro-header {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 4px;
}

.carb-color { color: #00d2ff; }
.pro-color { color: #00ff88; }
.fat-color { color: #ffaa00; }

.hud-progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    overflow: hidden;
    position: relative;
}

.progress-fill {
    height: 100%;
    border-radius: 4px;
    transition: width 0.4s ease;
}

.carb-fill { background: #00d2ff; box-shadow: 0 0 8px rgba(0, 210, 255, 0.6); }
.pro-fill { background: #00ff88; box-shadow: 0 0 8px rgba(0, 255, 136, 0.6); }
.fat-fill { background: #ffaa00; box-shadow: 0 0 8px rgba(255, 170, 0, 0.6); }

.meal-list-header, .reminders-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-family: var(--font-display);
    font-size: 0.75rem;
    color: var(--neon-cyan);
    letter-spacing: 1px;
}

.btn-mini-add {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--neon-cyan);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    cursor: pointer;
}

.btn-mini-add:hover {
    background: rgba(0, 240, 255, 0.25);
}

.meal-logs-scroll, .reminders-scroll {
    display: flex;
    flex-direction: column;
    gap: 8px;
    overflow-y: auto;
    max-height: 230px;
}

.meal-item-card {
    background: rgba(255, 255, 255, 0.03);
    border-left: 3px solid var(--neon-cyan);
    padding: 8px 12px;
    border-radius: 0 6px 6px 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.meal-item-info strong {
    display: block;
    font-size: 0.95rem;
}

.meal-item-info small {
    color: var(--text-muted);
}

.meal-item-del {
    background: none;
    border: none;
    color: var(--text-muted);
    cursor: pointer;
}

.meal-item-del:hover {
    color: var(--neon-red);
}

.empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 24px 12px;
    font-size: 0.85rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.empty-state i {
    font-size: 1.8rem;
    opacity: 0.5;
}

/* DIAGNOSTICS TAB */
.diag-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.diag-row {
    display: flex;
    justify-content: space-between;
    padding: 10px;
    background: rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 6px;
    font-size: 0.85rem;
}

/* MODALS */
.hud-modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(3, 7, 16, 0.85);
    backdrop-filter: blur(14px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.hud-modal-backdrop.hidden {
    display: none;
}

.hud-modal-content {
    width: 580px;
    max-width: 95vw;
    background: var(--bg-surface-elevated);
    border: 1px solid var(--neon-cyan);
    border-radius: 10px;
    box-shadow: 0 0 40px var(--neon-cyan-glow);
    display: flex;
    flex-direction: column;
    max-height: 90vh;
    overflow: hidden;
}

.auth-modal-box {
    width: 440px;
}

.modal-header {
    background: rgba(0, 240, 255, 0.1);
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
    padding: 14px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-title {
    font-family: var(--font-display);
    font-size: 1rem;
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-close-modal {
    background: none;
    border: none;
    color: var(--text-secondary);
    font-size: 1.2rem;
    cursor: pointer;
}

.btn-close-modal:hover {
    color: var(--neon-red);
}

.modal-body {
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.modal-footer {
    padding: 14px 20px;
    background: rgba(0, 0, 0, 0.3);
    border-top: 1px solid rgba(0, 240, 255, 0.15);
    display: flex;
    justify-content: flex-end;
    gap: 12px;
}

.settings-section h3 {
    font-size: 1rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-desc {
    font-size: 0.85rem;
    color: var(--text-secondary);
    margin-bottom: 12px;
}

.input-glow-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-glow-group label {
    font-family: var(--font-display);
    font-size: 0.7rem;
    color: var(--text-secondary);
    letter-spacing: 1px;
}

.input-glow-group input, .hud-select {
    background: rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: #fff;
    padding: 10px 14px;
    border-radius: 6px;
    font-family: var(--font-ui);
    font-size: 1rem;
    outline: none;
    transition: all 0.2s;
}

.input-glow-group input:focus, .hud-select:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px var(--neon-cyan-glow);
}

.input-with-action {
    display: flex;
    gap: 8px;
}

.input-with-action input {
    flex: 1;
}

.btn-input-action {
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    color: var(--neon-cyan);
    padding: 0 14px;
    border-radius: 6px;
    cursor: pointer;
}

.hint-text {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.guide-box {
    margin-top: 12px;
    background: rgba(0, 240, 255, 0.05);
    border: 1px dashed rgba(0, 240, 255, 0.3);
    border-radius: 6px;
    padding: 12px 14px;
}

.guide-box h4 {
    font-size: 0.85rem;
    color: var(--neon-cyan);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.guide-steps {
    padding-left: 20px;
    font-size: 0.85rem;
    color: var(--text-secondary);
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.link-neon {
    color: var(--neon-cyan);
    text-decoration: underline;
}

.btn-subtext {
    background: none;
    border: none;
    color: var(--neon-cyan);
    cursor: pointer;
    font-size: 0.8rem;
    text-align: left;
    margin-top: 4px;
}

.btn-hud-primary {
    background: var(--neon-cyan);
    color: #030710;
    font-family: var(--font-display);
    font-weight: 800;
    font-size: 0.85rem;
    padding: 10px 18px;
    border-radius: 6px;
    border: none;
    cursor: pointer;
    box-shadow: 0 0 15px var(--neon-cyan-glow);
}

.btn-hud-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--text-secondary);
    font-family: var(--font-display);
    font-size: 0.85rem;
    padding: 10px 18px;
    border-radius: 6px;
    cursor: pointer;
}

.auth-tabs {
    display: flex;
    border-bottom: 1px solid rgba(0, 240, 255, 0.2);
}

.auth-tab-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-secondary);
    padding: 12px;
    font-family: var(--font-display);
    font-size: 0.85rem;
    font-weight: 700;
    cursor: pointer;
}

.auth-tab-btn.active {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    border-bottom: 2px solid var(--neon-cyan);
}

.grid-2-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.grid-3-col {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 10px;
}

.macro-pct-row {
    display: flex;
    gap: 8px;
}

.macro-pct-row input {
    width: 33.33%;
}

.auth-error {
    background: rgba(255, 42, 85, 0.15);
    border: 1px solid var(--neon-red);
    color: #ff94a8;
    padding: 10px;
    border-radius: 6px;
    font-size: 0.85rem;
}

.auth-error.hidden {
    display: none;
}
