/**
 * NOXUS ELITE SUITE PRO — Terminal Cyberpunk & Checkers Studio v4.0
 * Master CSS: Themes, HUD Navbar, Dual Command Center, AI Terminal & Batch Engine
 */

@import url('https://fonts.googleapis.com/css2?family=Share+Tech+Mono&family=JetBrains+Mono:wght@400;600;800&family=Orbitron:wght@600;800;900&family=Inter:wght@400;600;700;800&display=swap');

:root {
    --bg-deep: #060814;
    --bg-surface: rgba(10, 16, 30, 0.94);
    --bg-card: rgba(10, 16, 30, 0.92);
    --bg-card-hover: rgba(16, 24, 46, 0.95);
    --bg-input: rgba(6, 10, 22, 0.94);
    --border-line: rgba(56, 189, 248, 0.35);
    --border-glow: rgba(56, 189, 248, 0.14);
    
    --neon-cyan: #00f0ff;
    --neon-blue: #38bdf8;
    --neon-purple: #c084fc;
    --neon-violet: #8b5cf6;
    --neon-green: #00ff88;
    --neon-yellow: #facc15;
    --neon-red: #ff3366;
    --neon-orange: #ff9900;
    
    --text-main: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    
    --font-mono: 'JetBrains Mono', 'Share Tech Mono', monospace;
    --font-sans: 'Inter', system-ui, sans-serif;
    --font-title: 'Orbitron', var(--font-mono);

    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 14px;
    --radius-full: 9999px;
    
    --shadow-neon: 0 0 20px rgba(0, 240, 255, 0.25);
    --shadow-card: 0 12px 35px rgba(0, 0, 0, 0.18);
}

/* ── Temas Visuales Dinámicos ── */
body.theme-matrix {
    --bg-deep: #020b05;
    --bg-surface: rgba(4, 20, 10, 0.28);
    --bg-card: rgba(6, 28, 14, 0.27);
    --neon-cyan: #00ff66;
    --neon-blue: #00dd55;
    --neon-purple: #10b981;
    --border-line: rgba(0, 255, 102, 0.28);
    --border-glow: rgba(0, 255, 102, 0.18);
}

body.theme-dracula {
    --bg-deep: #0d091a;
    --bg-surface: rgba(22, 16, 42, 0.28);
    --bg-card: rgba(30, 22, 58, 0.27);
    --neon-cyan: #ff79c6;
    --neon-blue: #bd93f9;
    --neon-purple: #8be9fd;
    --border-line: rgba(189, 147, 249, 0.3);
    --border-glow: rgba(255, 121, 198, 0.15);
}

body.theme-amber {
    --bg-deep: #120902;
    --bg-surface: rgba(28, 16, 4, 0.28);
    --bg-card: rgba(38, 22, 6, 0.27);
    --neon-cyan: #ffb000;
    --neon-blue: #ffaa00;
    --neon-purple: #ffd000;
    --neon-green: #ffdd44;
    --border-line: rgba(255, 176, 0, 0.3);
    --border-glow: rgba(255, 176, 0, 0.18);
}

body.theme-sao {
    --bg-deep: #040817;
    --bg-surface: rgba(8, 18, 48, 0.28);
    --bg-card: rgba(12, 28, 70, 0.27);
    --neon-cyan: #00f2fe;
    --neon-blue: #4facfe;
    --neon-purple: #7f00ff;
    --neon-yellow: #e0c3fc;
    --border-line: rgba(79, 172, 254, 0.1);
    --border-glow: rgba(0, 242, 254, 0.2);
}

/* ── Reset y Base ── */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background-color: var(--bg-deep);
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(0, 240, 255, 0.08) 0%, transparent 45%),
        radial-gradient(circle at 85% 85%, rgba(192, 132, 252, 0.07) 0%, transparent 45%),
        linear-gradient(rgba(255, 255, 255, 0.015) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.015) 1px, transparent 1px);
    background-size: 100% 100%, 100% 100%, 30px 30px, 30px 30px;
    background-attachment: fixed;
    color: var(--text-main);
    font-family: var(--font-mono);
    min-height: 100vh;
    padding: 14px 16px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    overflow-x: hidden;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* Scanlines sutiles para efecto Cyber Terminal */
.scanlines-overlay {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100%;
    pointer-events: none;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.22) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.02), rgba(0, 255, 0, 0.01), rgba(0, 0, 255, 0.02));
    background-size: 100% 3px, 4px 100%;
    z-index: 999;
    opacity: 0.6;
}

/* ── Topbar Cyber HUD ── */
.cyber-topbar {
    width: 100%;
    max-width: 1360px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 18px;
    background: var(--bg-surface);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-lg);
    backdrop-filter: blur(14px);
    margin-bottom: 14px;
    box-shadow: var(--shadow-card);
    gap: 12px;
    flex-wrap: wrap;
    z-index: 50;
}

.brand-cluster {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
}

.brand-indicator-pulse {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: var(--neon-cyan);
    box-shadow: 0 0 12px var(--neon-cyan);
    animation: neonPulse 2s infinite alternate;
}

@keyframes neonPulse {
    0% { transform: scale(0.9); opacity: 0.7; }
    100% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 16px var(--neon-cyan); }
}

.brand-text-title {
    font-family: var(--font-title);
    font-size: 15px;
    font-weight: 800;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-shadow: 0 0 12px rgba(0, 240, 255, 0.12);
}

.brand-text-title span {
    color: var(--neon-cyan);
}

.brand-tag-v {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.1);
    border-radius: 4px;
    color: var(--neon-cyan);
    margin-left: 4px;
}

.topbar-telemetry-cluster {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.hud-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    padding: 5px 10px;
    border-radius: var(--radius-full);
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
}

.hud-pill.online {
    border-color: rgba(0, 255, 136, 0.1);
    background: rgba(0, 255, 136, 0.08);
    color: var(--neon-green);
}

.hud-pill.latency {
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(56, 189, 248, 0.08);
    color: var(--neon-blue);
}

.theme-selector-dropdown {
    background: rgba(12, 16, 33, 0.27);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-sm);
    color: var(--text-main);
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 5px 8px;
    cursor: pointer;
    outline: none;
    transition: all 0.2s;
}

.theme-selector-dropdown:hover {
    border-color: var(--neon-cyan);
}

.auth-access-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 6px 14px;
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid var(--neon-cyan);
    border-radius: var(--radius-full);
    color: var(--neon-cyan);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.15);
}

.auth-access-btn:hover {
    background: var(--neon-cyan);
    color: #060814;
    box-shadow: 0 0 18px rgba(0, 240, 255, 0.15);
    transform: translateY(-1px);
}

/* ── Hero Banner Cyberpunk & Mode Switcher ── */
.cyber-hero-banner {
    width: 100%;
    max-width: 1360px;
    background: var(--bg-surface);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-lg);
    padding: 16px 20px;
    margin-bottom: 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
}

.cyber-hero-banner::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0; height: 2px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), var(--neon-purple), transparent);
}

.hero-main-info h1 {
    font-family: var(--font-title);
    font-size: 18px;
    letter-spacing: 1px;
    margin-bottom: 4px;
    color: #ffffff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-main-info p {
    font-size: 12px;
    color: var(--text-muted);
    max-width: 650px;
}

.mode-switcher-group {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(6, 9, 22, 0.24);
    padding: 4px;
    border: 1px solid var(--border-line);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}

.mode-tab-btn {
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    padding: 8px 14px;
    border: 1px solid transparent;
    border-radius: var(--radius-sm);
    background: transparent;
    color: var(--text-muted);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s;
}

.mode-tab-btn:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.05);
}

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

/* ── Contenedor Principal Command Center ── */
.command-center-grid {
    width: 100%;
    max-width: 1360px;
    display: grid;
    gap: 16px;
    transition: all 0.3s ease;
}

/* Vista Dual (Side-by-Side en Escritorio) */
.command-center-grid.view-dual {
    grid-template-columns: 1fr 1fr;
}

/* Vista Single (Terminal o Checker únicamente) */
.command-center-grid.view-terminal #section-checker {
    display: none !important;
}

.command-center-grid.view-checker #section-terminal {
    display: none !important;
}

@media (max-width: 1024px) {
    .command-center-grid.view-dual {
        grid-template-columns: 1fr;
    }
}

/* ── Panel Ventana de Terminal Cyberpunk ── */
.cyber-terminal-window {
    background: var(--bg-card);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    min-height: 740px;
    height: auto;
    overflow: hidden;
    position: relative;
    backdrop-filter: blur(12px);
    transition: border-color 0.3s;
}

.cyber-terminal-window:hover {
    border-color: var(--border-glow);
}

.terminal-titlebar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 16px;
    background: rgba(6, 9, 22, 0.28);
    border-bottom: 1px solid var(--border-line);
}

.terminal-window-controls {
    display: flex;
    align-items: center;
    gap: 6px;
}

.win-dot {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    display: inline-block;
}

.win-dot.red { background: #ff5f56; border: 1px solid #e0443e; }
.win-dot.yellow { background: #ffbd2e; border: 1px solid #dea123; }
.win-dot.green { background: #27c93f; border: 1px solid #1aab29; }

.terminal-session-title {
    font-size: 11px;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    gap: 6px;
    font-weight: 600;
}

.terminal-session-title span {
    color: var(--neon-cyan);
}

.terminal-actions-bar {
    display: flex;
    align-items: center;
    gap: 6px;
}

.term-action-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 10px;
    padding: 4px 8px;
    cursor: pointer;
    font-family: var(--font-mono);
    transition: all 0.2s;
}

.term-action-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: var(--neon-cyan);
}

/* Salida / Stream de la Terminal */
.terminal-output-stream {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: rgba(4, 6, 18, 0.28);
    font-size: 12.5px;
    line-height: 1.55;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

/* Scrollbar personalizado estilo Hacker */
.terminal-output-stream::-webkit-scrollbar,
.chk-output-stream::-webkit-scrollbar,
.custom-scroll::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

.terminal-output-stream::-webkit-scrollbar-track,
.chk-output-stream::-webkit-scrollbar-track,
.custom-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
}

.terminal-output-stream::-webkit-scrollbar-thumb,
.chk-output-stream::-webkit-scrollbar-thumb,
.custom-scroll::-webkit-scrollbar-thumb {
    background: rgba(56, 189, 248, 0.3);
    border-radius: 3px;
}

.terminal-output-stream::-webkit-scrollbar-thumb:hover,
.chk-output-stream::-webkit-scrollbar-thumb:hover,
.custom-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--neon-cyan);
}

/* Tarjetas de Mensajes en la Terminal */
.terminal-msg-card {
    padding: 10px 14px;
    border-radius: var(--radius-sm);
    border-left: 3px solid var(--neon-blue);
    background: rgba(14, 20, 42, 0.2);
    font-size: 12px;
    word-break: break-word;
    animation: fadeInMsg 0.2s ease-out;
}

@keyframes fadeInMsg {
    from { opacity: 0; transform: translateY(4px); }
    to { opacity: 1; transform: translateY(0); }
}

.terminal-msg-card.is-bot {
    background: rgba(0, 240, 255, 0.05);
    border-left: 3px solid var(--neon-cyan);
    box-shadow: inset 0 0 20px rgba(0, 240, 255, 0.02);
}

.terminal-msg-card.is-user {
    background: rgba(192, 132, 252, 0.05);
    border-left: 3px solid var(--neon-purple);
}

.terminal-msg-card.is-cmd {
    background: rgba(0, 255, 136, 0.05);
    border-left: 3px solid var(--neon-green);
}

.terminal-msg-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    padding-bottom: 5px;
    margin-bottom: 8px;
    font-size: 11px;
}

.terminal-author {
    font-weight: 700;
    color: var(--neon-cyan);
    display: flex;
    align-items: center;
    gap: 6px;
}

.terminal-author.user {
    color: var(--neon-purple);
}

.terminal-author.owner {
    color: var(--neon-yellow);
}

.terminal-timestamp {
    color: var(--text-dim);
    font-size: 10px;
}

.terminal-msg-body {
    color: #e2e8f0;
}

.terminal-msg-body pre {
    background: #030611;
    border: 1px solid var(--border-line);
    border-radius: var(--radius-sm);
    padding: 10px;
    margin: 8px 0;
    overflow-x: auto;
    font-size: 11.5px;
    color: #a5f3fc;
    line-height: 1.45;
}

.terminal-msg-body code {
    background: rgba(0, 240, 255, 0.1);
    color: var(--neon-cyan);
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 11.5px;
}

.terminal-msg-body pre code {
    background: transparent;
    padding: 0;
    color: inherit;
}

.terminal-msg-body strong {
    color: #ffffff;
}

.terminal-msg-body a {
    color: var(--neon-blue);
    text-decoration: underline;
}

.terminal-msg-body a:hover {
    color: var(--neon-cyan);
}

/* Botones de Acción dentro de la respuesta de IA (ej. Enviar a Checker) */
.term-msg-actions {
    display: flex;
    gap: 8px;
    margin-top: 8px;
    padding-top: 6px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
    flex-wrap: wrap;
}

.term-btn-load-checker {
    background: rgba(0, 255, 136, 0.12);
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    font-family: var(--font-mono);
    font-size: 10.5px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.term-btn-load-checker:hover {
    background: var(--neon-green);
    color: #020b05;
    box-shadow: 0 0 10px rgba(0, 255, 136, 0.12);
}

.term-btn-copy {
    background: rgba(56, 189, 248, 0.12);
    border: 1px solid var(--neon-blue);
    color: var(--neon-blue);
    font-family: var(--font-mono);
    font-size: 10.5px;
    padding: 4px 10px;
    border-radius: 4px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s;
}

.term-btn-copy:hover {
    background: var(--neon-blue);
    color: #060814;
}

/* Formulario de Entrada CLI de la Terminal */
.terminal-cli-form {
    padding: 10px 14px;
    background: rgba(6, 9, 22, 0.29);
    border-top: 1px solid var(--border-line);
    display: flex;
    gap: 8px;
    align-items: center;
}

.terminal-prompt-prefix {
    color: var(--neon-cyan);
    font-weight: 800;
    font-size: 13px;
    user-select: none;
    white-space: nowrap;
}

.terminal-cli-input {
    flex: 1;
    background: rgba(14, 20, 42, 0.21);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-sm);
    color: #ffffff;
    font-family: var(--font-mono);
    font-size: 13px;
    padding: 9px 12px;
    outline: none;
    transition: all 0.2s;
}

.terminal-cli-input:focus {
    border-color: var(--neon-cyan);
    box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
    background: rgba(18, 26, 56, 0.26);
}

.terminal-cli-submit {
    background: rgba(0, 240, 255, 0.15);
    border: 1px solid var(--neon-cyan);
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 800;
    padding: 9px 16px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.terminal-cli-submit:hover {
    background: var(--neon-cyan);
    color: #060814;
    box-shadow: 0 0 14px rgba(0, 240, 255, 0.12);
}

/* Atajos Rápidos de Comandos */
.terminal-shortcuts-drawer {
    padding: 8px 14px;
    background: rgba(4, 6, 16, 0.28);
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
    align-items: center;
}

.shortcut-label {
    font-size: 10px;
    color: var(--text-dim);
    font-weight: 700;
    text-transform: uppercase;
}

.cmd-shortcut-pill {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 10.5px;
    padding: 3px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
    user-select: none;
}

.cmd-shortcut-pill:hover {
    background: rgba(0, 240, 255, 0.12);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
    transform: translateY(-1px);
}

/* ════════════════════════════════════════════════════════════════
   PANEL DEDICADO DE CHECKERS (BATCH STUDIO)
════════════════════════════════════════════════════════════════ */
.cyber-checker-window {
    background: var(--bg-card);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-card);
    display: flex;
    flex-direction: column;
    min-height: 740px;
    height: auto;
    overflow-y: auto;
    backdrop-filter: blur(12px);
    transition: border-color 0.3s;
}

.cyber-checker-window:hover {
    border-color: var(--border-glow);
}

.checker-content-scroll {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 14px;
    background: rgba(6, 9, 22, 0.21);
}

/* Hero de Pasarela Activa */
.active-gateway-hero-card {
    background: rgba(14, 20, 44, 0.27);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-md);
    padding: 12px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    position: relative;
    overflow: hidden;
}

.chk-active-hero-left {
    display: flex;
    align-items: center;
    gap: 12px;
}

.chk-active-hero-icon {
    font-size: 24px;
    width: 44px;
    height: 44px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.chk-active-hero-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #ffffff;
    letter-spacing: 0.5px;
}

.chk-active-hero-sub {
    font-size: 11px;
    color: var(--text-muted);
}

.chk-active-hero-badge {
    font-size: 10px;
    font-weight: 800;
    padding: 4px 10px;
    border-radius: var(--radius-full);
    border: 1px solid var(--border-line);
    letter-spacing: 0.5px;
}

/* Filtro y Grid de Pasarelas */
.gateway-filter-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.chk-filter-tabs {
    display: flex;
    gap: 4px;
    background: rgba(4, 6, 16, 0.24);
    padding: 3px;
    border-radius: var(--radius-sm);
    border: 1px solid rgba(255, 255, 255, 0.08);
}

.chk-filter-btn {
    background: transparent;
    border: none;
    color: var(--text-dim);
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 4px 8px;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.15s;
}

.chk-filter-btn:hover {
    color: #ffffff;
}

.chk-filter-btn.active {
    background: rgba(56, 189, 248, 0.18);
    color: var(--neon-cyan);
    font-weight: 700;
}

.gateways-selector-strip {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    padding-bottom: 6px;
}

.chk-gate-card {
    min-width: 140px;
    background: rgba(12, 16, 36, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
    user-select: none;
}

.chk-gate-card:hover {
    background: rgba(18, 24, 52, 0.28);
    border-color: var(--border-glow);
    transform: translateY(-1px);
}

.chk-gate-card.active {
    background: rgba(0, 240, 255, 0.1);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.2);
}

.chk-gate-card-icon {
    font-size: 18px;
}

.chk-gate-card-name {
    font-size: 11px;
    font-weight: 700;
    color: #ffffff;
}

.chk-gate-card-sub {
    font-size: 9.5px;
    color: var(--text-dim);
}

/* Editor de Tarjetas CC Batch */
.cards-editor-container {
    background: rgba(4, 6, 18, 0.28);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-md);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.editor-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(10, 14, 30, 0.28);
    border-bottom: 1px solid var(--border-line);
    flex-wrap: wrap;
    gap: 8px;
}

.editor-counter-tag {
    font-size: 10.5px;
    font-weight: 700;
    color: var(--neon-cyan);
    background: rgba(0, 240, 255, 0.1);
    border: 1px solid rgba(0, 240, 255, 0.3);
    padding: 2px 8px;
    border-radius: 4px;
}

.editor-buttons-group {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: wrap;
}

.ed-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: var(--text-muted);
    font-family: var(--font-mono);
    font-size: 10px;
    padding: 4px 8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.15s;
}

.ed-btn:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #ffffff;
    border-color: var(--neon-cyan);
}

.ed-btn.primary {
    background: rgba(0, 240, 255, 0.15);
    border-color: var(--neon-cyan);
    color: var(--neon-cyan);
}

.ed-btn.primary:hover {
    background: var(--neon-cyan);
    color: #060814;
}

.editor-input-wrap {
    display: flex;
    height: 140px;
    position: relative;
}

.editor-line-numbers {
    width: 38px;
    padding: 8px 4px;
    background: rgba(6, 9, 20, 0.24);
    border-right: 1px solid rgba(255, 255, 255, 0.06);
    color: var(--text-dim);
    font-size: 11px;
    line-height: 1.5;
    text-align: right;
    user-select: none;
    overflow: hidden;
}

.editor-textarea {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #e2e8f0;
    font-family: var(--font-mono);
    font-size: 11.5px;
    line-height: 1.5;
    padding: 8px 12px;
    resize: none;
    white-space: pre;
    overflow-y: auto;
}

/* Configuración de Ejecución (Hilos, Delay, Proxy) */
.checker-config-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    background: rgba(10, 14, 30, 0.21);
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: var(--radius-md);
    flex-wrap: wrap;
}

.config-item-box {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 11px;
    color: var(--text-muted);
}

.config-select-mini {
    background: rgba(4, 6, 18, 0.27);
    border: 1px solid var(--border-line);
    border-radius: 4px;
    color: var(--neon-cyan);
    font-family: var(--font-mono);
    font-size: 11px;
    padding: 3px 6px;
    outline: none;
}

.toggle-switch-lbl {
    display: flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
    font-size: 11px;
    color: var(--text-muted);
}

/* Marcadores de Estado y Contadores en Tiempo Real */
.chk-counters-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(80px, 1fr));
    gap: 8px;
}

.chk-counter-box {
    background: rgba(10, 14, 30, 0.27);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.chk-counter-val {
    font-family: var(--font-title);
    font-size: 16px;
    font-weight: 800;
}

.chk-counter-lbl {
    font-size: 9.5px;
    color: var(--text-dim);
    font-weight: 700;
    text-transform: uppercase;
}

.c-live { color: var(--neon-green); text-shadow: 0 0 10px rgba(0, 255, 136, 0.12); border-color: rgba(0, 255, 136, 0.3); }
.c-ccn { color: var(--neon-yellow); text-shadow: 0 0 10px rgba(250, 204, 21, 0.12); border-color: rgba(250, 204, 21, 0.3); }
.c-3ds { color: var(--neon-cyan); text-shadow: 0 0 10px rgba(0, 240, 255, 0.12); border-color: rgba(0, 240, 255, 0.3); }
.c-die { color: var(--neon-red); text-shadow: 0 0 10px rgba(255, 51, 102, 0.12); border-color: rgba(255, 51, 102, 0.3); }
.c-total { color: var(--neon-purple); text-shadow: 0 0 10px rgba(192, 132, 252, 0.12); border-color: rgba(192, 132, 252, 0.3); }

/* Barra de Progreso Neón */
.chk-progress-wrap {
    height: 4px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 2px;
    overflow: hidden;
}

.chk-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, var(--neon-cyan), var(--neon-green));
    box-shadow: 0 0 8px var(--neon-green);
    transition: width 0.2s ease-out;
}

/* Botones de Control de Proceso */
.chk-action-controls {
    display: flex;
    gap: 8px;
}

.btn-chk-run {
    flex: 1;
    background: linear-gradient(135deg, rgba(0, 240, 255, 0.25), rgba(0, 255, 136, 0.25));
    border: 1px solid var(--neon-green);
    color: var(--neon-green);
    font-family: var(--font-mono);
    font-size: 13px;
    font-weight: 800;
    padding: 11px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.25s;
    box-shadow: 0 0 14px rgba(0, 255, 136, 0.2);
}

.btn-chk-run:hover:not(:disabled) {
    background: var(--neon-green);
    color: #020b05;
    box-shadow: 0 0 22px rgba(0, 255, 136, 0.15);
    transform: translateY(-1px);
}

.btn-chk-run:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.btn-chk-stop {
    background: rgba(255, 51, 102, 0.2);
    border: 1px solid var(--neon-red);
    color: var(--neon-red);
    font-family: var(--font-mono);
    font-size: 12px;
    font-weight: 800;
    padding: 11px 18px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-transform: uppercase;
    display: none;
    transition: all 0.2s;
}

.btn-chk-stop:hover {
    background: var(--neon-red);
    color: #ffffff;
    box-shadow: 0 0 16px rgba(255, 51, 102, 0.15);
}

/* Stream de Logs en Vivo del Checker */
.chk-output-box {
    background: rgba(4, 6, 18, 0.28);
    border: 1px solid var(--border-line);
    border-radius: var(--radius-md);
    display: flex;
    flex-direction: column;
    height: 180px;
    overflow: hidden;
}

.chk-output-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 12px;
    background: rgba(10, 14, 30, 0.28);
    border-bottom: 1px solid var(--border-line);
}

.chk-output-stream {
    flex: 1;
    overflow-y: auto;
    padding: 8px 12px;
    font-size: 11px;
    line-height: 1.5;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.log-entry {
    padding: 3px 6px;
    border-radius: 3px;
    background: rgba(255, 255, 255, 0.02);
}

.log-entry.log-live { color: var(--neon-green); background: rgba(0, 255, 136, 0.08); }
.log-entry.log-ccn { color: var(--neon-yellow); background: rgba(250, 204, 21, 0.08); }
.log-entry.log-threeds { color: var(--neon-cyan); background: rgba(0, 240, 255, 0.08); }
.log-entry.log-dead { color: var(--neon-red); opacity: 0.85; }
.log-entry.log-sys { color: var(--neon-blue); }

.log-time {
    color: var(--text-dim);
    margin-right: 4px;
    font-size: 9.5px;
}

/* ── Responsive Mobile Design ── */
@media (max-width: 768px) {
    body {
        padding: 8px 8px 30px;
    }
    
    .cyber-topbar, .cyber-hero-banner {
        padding: 10px 12px;
        margin-bottom: 10px;
    }
    
    .cyber-terminal-window, .cyber-checker-window {
        height: 600px;
    }
    
    .mode-tab-btn {
        padding: 6px 10px;
        font-size: 10px;
    }
    
    .editor-input-wrap {
        height: 110px;
    }
    
    .chk-output-box {
        height: 140px;
    }
}

/* ── ESTILOS DE FILTRADO, SEGMENTACIÓN Y EXPLORADOR DE LOGS ESTILO GITHUB ── */
.term-filter-pill {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 12px;
    color: #94a3b8;
    font-size: 10.5px;
    padding: 2px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
    font-family: inherit;
}

.term-filter-pill:hover {
    background: rgba(56, 189, 248, 0.15);
    border-color: #38bdf8;
    color: #f0f6fc;
}

.term-filter-pill.active {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    color: #38bdf8;
    font-weight: 600;
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.3);
}

.terminal-timeline-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 16px 0 10px;
    color: #8b949e;
    font-size: 11px;
    font-family: 'Orbitron', sans-serif;
}

.github-repo-modal {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
}

.github-repo-modal a:hover {
    text-decoration: underline !important;
}

.github-repo-modal pre, .github-repo-modal code {
    font-family: var(--fontStack-monospace, "Monaspace Neon", ui-monospace, SFMono-Regular, SF Mono, Menlo, Consolas, monospace) !important;
}

/* ─── V4.5 REFINED ULTRA-CLEAN UI ADDITIONS & TERMINAL TACTICO SYSTEM ─── */
:root {
    --accent-coral: #ff927c;
    --accent-pink: #ec4899;
    --accent-blue: #38bdf8;
    --accent-mint: #34d399;
    --accent-yellow: #fbbf24;
    --accent-purple: #a855f7;
}

body.terminal-tactico-theme {
    margin: 0;
    padding: 16px;
    background-color: #0b0819 !important;
    background-image: 
        radial-gradient(circle at 15% 15%, rgba(236, 72, 153, 0.18), transparent 45%),
        radial-gradient(circle at 85% 20%, rgba(56, 189, 248, 0.15), transparent 40%),
        radial-gradient(circle at 50% 85%, rgba(168, 85, 247, 0.14), transparent 50%),
        linear-gradient(180deg, #120c24 0%, #080612 100%) !important;
    background-attachment: fixed !important;
    color: #f8fafc;
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    min-height: 100vh;
}

.topbar {
    max-width: 1280px;
    margin: 0 auto 16px;
    padding: 12px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    background: rgba(18, 13, 33, 0.26);
    backdrop-filter: blur(12px);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

.brand-zone { display: flex; align-items: center; gap: 12px; }
.pacman-logo {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-coral), var(--accent-pink));
    box-shadow: 0 0 14px rgba(255, 146, 124, 0.21);
}
.title-arcade {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fff;
    font-family: 'Orbitron', 'Inter', sans-serif;
}
.top-nav-links { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.back-link {
    padding: 7px 13px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.05);
    color: #f1f5f9;
    font: 700 11px 'Inter', sans-serif;
    text-decoration: none;
    transition: all 0.15s ease;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    cursor: pointer;
}
.back-link:hover {
    background: rgba(255, 255, 255, 0.12);
    border-color: var(--accent-coral);
    color: #fff;
}
.pill-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    border: 1px solid rgba(52, 211, 153, 0.1);
    background: rgba(52, 211, 153, 0.08);
    color: #6ee7b7;
    font: 700 10px 'Share Tech Mono', monospace;
}
.dot-pulse {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 8px #34d399;
    animation: pulseGlow 2s infinite;
}

.terminal-container {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 22px;
    border: 1px solid rgba(139, 92, 246, 0.25);
    border-radius: 16px;
    background: rgba(14, 11, 26, 0.28);
    backdrop-filter: blur(16px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15), inset 0 0 20px rgba(139, 92, 246, 0.05);
}

.tabs-header {
    display: flex;
    gap: 8px;
    padding: 0 0 16px;
    margin-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
    overflow-x: auto;
}
.tab-btn {
    flex: 1 1 0;
    min-width: 180px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 10px 14px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 8px;
    background: rgba(255, 255, 255, 0.035);
    color: #94a3b8;
    font: 800 11px 'Inter', sans-serif;
    letter-spacing: 0.02em;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}
.tab-btn:hover { color: #fff; background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.25); }
.tab-btn.active {
    color: #0f172a !important;
    background: linear-gradient(135deg, #ff927c, #ec4899) !important;
    border-color: #ff927c !important;
    font-weight: 900;
    box-shadow: 0 4px 18px rgba(236, 72, 153, 0.1);
}
.tab-btn.active.cyan {
    background: linear-gradient(135deg, #38bdf8, #818cf8) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 4px 18px rgba(56, 189, 248, 0.1);
}
.tab-btn.active.green {
    background: linear-gradient(135deg, #34d399, #10b981) !important;
    border-color: #34d399 !important;
    box-shadow: 0 4px 18px rgba(52, 211, 153, 0.1);
}

.grid-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
    gap: 20px;
}
.grid-layout.view-terminal {
    grid-template-columns: 1fr;
}
.grid-layout.view-terminal #section-checker {
    display: none;
}
.grid-layout.view-checker {
    grid-template-columns: 1fr;
}
.grid-layout.view-checker #section-terminal {
    display: none;
}
@media (max-width: 960px) {
    .grid-layout { grid-template-columns: 1fr; }
}

.form-box {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 20px;
    border: 1px solid rgba(139, 92, 246, 0.3);
    border-radius: 12px;
    background: rgba(18, 14, 34, 0.21);
    box-shadow: 0 8px 30px rgba(0,0,0,0.3);
}

.input-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
}
.input-group label {
    color: #c4b5fd;
    font: 700 10px 'Inter', sans-serif;
    letter-spacing: 0.04em;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.field-input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid rgba(139, 92, 246, 0.1);
    border-radius: 8px;
    background: rgba(8, 6, 18, 0.26);
    color: #fff;
    font-family: 'Share Tech Mono', monospace;
    font-size: 13px;
    outline: none;
    transition: all 0.15s ease;
    box-sizing: border-box;
}
.field-input:focus {
    border-color: var(--accent-coral);
    box-shadow: 0 0 12px rgba(255, 146, 124, 0.1);
    background: rgba(12, 9, 26, 0.28);
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    padding: 12px 18px;
    border: 1px solid var(--accent-coral);
    border-radius: 8px;
    background: linear-gradient(110deg, #ec4899, #ff927c);
    color: #1e091d;
    font: 900 12px 'Inter', sans-serif;
    cursor: pointer;
    transition: all 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.action-btn:hover:not(:disabled) {
    opacity: 0.94;
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(236, 72, 153, 0.12);
}

.bypass-panel {
    padding: 14px;
    border: 1px dashed rgba(56, 189, 248, 0.14);
    border-radius: 10px;
    background: rgba(56, 189, 248, 0.05);
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.bypass-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 11px;
    font-weight: 800;
    color: #7dd3fc;
}
.bypass-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}
.bypass-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 10px;
    color: #e2e8f0;
    background: rgba(0, 0, 0, 0.1);
    padding: 6px 10px;
    border-radius: 6px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    cursor: pointer;
}

.salto-card {
    padding: 12px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(20, 15, 38, 0.21);
    display: flex;
    flex-direction: column;
    gap: 6px;
    transition: all 0.2s ease;
}
.salto-card:hover {
    border-color: var(--accent-blue);
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(56, 189, 248, 0.15);
}
.salto-card.active {
    border-color: var(--accent-coral) !important;
    background: rgba(236, 72, 153, 0.12) !important;
}
.salto-title {
    font-size: 11px;
    font-weight: 800;
    color: #38bdf8;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.salto-desc {
    font-size: 10.5px;
    color: #94a3b8;
    line-height: 1.3;
}

.code-pill {
    display: inline-block;
    padding: 3px 8px;
    border-radius: 4px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    font-family: 'Share Tech Mono', monospace;
    font-size: 10.5px;
    color: #e2e8f0;
    transition: all 0.15s ease;
}
.code-pill:hover {
    border-color: var(--accent-coral);
    color: #fff;
    background: rgba(255, 146, 124, 0.15);
}

.terminal-log-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 12px;
    background: rgba(15, 23, 42, 0.27);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top-left-radius: 8px;
    border-top-right-radius: 8px;
    font-size: 10px;
    font-weight: 700;
    color: #94a3b8;
}
.terminal-log {
    padding: 14px;
    background: #050711;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-top: none;
    border-bottom-left-radius: 8px;
    border-bottom-right-radius: 8px;
    font-family: 'Share Tech Mono', monospace;
    font-size: 11px;
    line-height: 1.6;
    color: #a5b4fc;
    height: 220px;
    overflow-y: auto;
    white-space: pre-wrap;
    word-break: break-all;
}

.topbar-left-cluster {
    display: flex;
    align-items: center;
    gap: 16px;
}

.topbar-quick-nav {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hud-nav-btn {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 6px;
    color: var(--text-muted);
    font-size: 11px;
    font-weight: 600;
    padding: 5px 10px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    transition: all 0.2s ease;
}

.hud-nav-btn:hover {
    background: rgba(56, 189, 248, 0.12);
    border-color: var(--neon-cyan);
    color: #fff;
    box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

.hero-badge-row {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.hero-status-tag {
    background: rgba(0, 240, 255, 0.12);
    border: 1px solid rgba(0, 240, 255, 0.12);
    color: var(--neon-cyan);
    font-size: 10px;
    font-family: var(--font-title);
    font-weight: 800;
    padding: 3px 8px;
    border-radius: 4px;
    letter-spacing: 0.8px;
}

.hero-status-subtag {
    color: var(--text-muted);
    font-size: 10px;
    font-family: var(--font-mono);
    letter-spacing: 0.5px;
}

.hero-title {
    font-size: 24px;
    font-weight: 900;
    font-family: var(--font-title);
    letter-spacing: 1px;
    color: #fff;
    margin: 4px 0 8px;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.hero-title span {
    color: var(--neon-cyan);
    background: linear-gradient(135deg, #00f0ff 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-description {
    font-size: 13px;
    color: var(--text-muted);
    line-height: 1.5;
    max-width: 720px;
    margin-bottom: 12px;
}

.hero-quick-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.quick-chip {
    background: rgba(15, 23, 42, 0.24);
    border: 1px solid rgba(148, 163, 184, 0.2);
    color: #cbd5e1;
    font-size: 11px;
    font-family: var(--font-mono);
    padding: 3px 9px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.quick-chip:hover {
    border-color: var(--neon-purple);
    color: #fff;
    background: rgba(168, 85, 247, 0.15);
    box-shadow: 0 0 10px rgba(168, 85, 247, 0.3);
}

.mode-switcher-container {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 6px;
}

.mode-switcher-label {
    font-size: 10px;
    font-family: var(--font-title);
    color: var(--text-dim);
    letter-spacing: 0.8px;
}

/* Categorías de Atajos en Terminal */
.terminal-shortcuts-drawer {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(5, 8, 20, 0.26);
    border-top: 1px solid rgba(56, 189, 248, 0.12);
}

.shortcut-category-group {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
}

.shortcut-cat-label {
    font-size: 10px;
    font-family: var(--font-title);
    font-weight: 700;
    color: var(--text-dim);
    min-width: 90px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cmd-shortcut-pill.claw-pill {
    border-color: rgba(255, 100, 50, 0.12);
    color: #ff8a65;
}
.cmd-shortcut-pill.skills-pill {
    border-color: rgba(255, 200, 50, 0.12);
    color: #ffe082;
}
.cmd-shortcut-pill.evolve-pill {
    border-color: rgba(0, 255, 200, 0.12);
    color: #64ffda;
}
.cmd-shortcut-pill.autofix-pill {
    border-color: rgba(52, 211, 153, 0.15);
    color: #6ee7b7;
}
.cmd-shortcut-pill.gate-pill {
    border-color: rgba(56, 189, 248, 0.12);
    color: #38bdf8;
}
.cmd-shortcut-pill.chk-pill {
    border-color: rgba(168, 85, 247, 0.12);
    color: #c084fc;
}
.cmd-shortcut-pill.amz-pill {
    border-color: rgba(255, 153, 0, 0.12);
    color: #ffb86b;
}
.cmd-shortcut-pill.salto-pill {
    border-color: rgba(236, 72, 153, 0.12);
    color: #f472b6;
}

/* Stats Cards Grid */
.chk-stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 10px;
    margin: 16px 0;
}

.chk-stat-card {
    background: rgba(12, 16, 33, 0.26);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.2s ease;
}

.chk-stat-card:hover {
    transform: translateY(-2px);
}

.chk-stat-card.card-live {
    border-color: rgba(0, 255, 136, 0.3);
    background: rgba(0, 255, 136, 0.05);
}
.chk-stat-card.card-live .stat-val { color: #00ff88; text-shadow: 0 0 10px rgba(0, 255, 136, 0.12); }

.chk-stat-card.card-ccn {
    border-color: rgba(250, 204, 21, 0.3);
    background: rgba(250, 204, 21, 0.05);
}
.chk-stat-card.card-ccn .stat-val { color: #facc15; }

.chk-stat-card.card-3ds {
    border-color: rgba(192, 132, 252, 0.3);
    background: rgba(192, 132, 252, 0.05);
}
.chk-stat-card.card-3ds .stat-val { color: #c084fc; }

.chk-stat-card.card-die {
    border-color: rgba(255, 51, 102, 0.3);
    background: rgba(255, 51, 102, 0.05);
}
.chk-stat-card.card-die .stat-val { color: #ff3366; }

.chk-stat-card.card-total {
    border-color: rgba(56, 189, 248, 0.3);
    background: rgba(56, 189, 248, 0.05);
}
.chk-stat-card.card-total .stat-val { color: #38bdf8; }

.stat-icon { font-size: 20px; }
.stat-val { font-size: 20px; font-weight: 800; font-family: var(--font-mono); }
.stat-label { font-size: 9.5px; font-weight: 700; color: var(--text-dim); text-transform: uppercase; letter-spacing: 0.5px; }

/* Botones de Ejecución */
.chk-execution-row {
    display: flex;
    gap: 12px;
    margin: 14px 0;
}

.chk-exec-btn {
    flex: 1;
    padding: 13px 20px;
    border-radius: 8px;
    border: none;
    font-family: var(--font-title);
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.chk-exec-btn.btn-run {
    background: linear-gradient(135deg, #00f0ff 0%, #3b82f6 100%);
    color: #040817;
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.3);
}

.chk-exec-btn.btn-run:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 28px rgba(0, 240, 255, 0.15);
}

.chk-exec-btn.btn-stop {
    background: linear-gradient(135deg, #ff3366 0%, #dc2626 100%);
    color: #fff;
    box-shadow: 0 0 20px rgba(255, 51, 102, 0.3);
}

/* Consola Forense */
.chk-console-box {
    background: rgba(6, 9, 22, 0.28);
    border: 1px solid rgba(56, 189, 248, 0.2);
    border-radius: 8px;
    overflow: hidden;
    margin-top: 14px;
}

.chk-console-header {
    background: rgba(12, 18, 38, 0.28);
    padding: 8px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(56, 189, 248, 0.15);
}

.chk-console-title {
    font-size: 11px;
    font-family: var(--font-title);
    font-weight: 800;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}

.chk-console-status {
    color: var(--neon-green);
    font-size: 10px;
    font-weight: 700;
}

.chk-console-actions {
    display: flex;
    gap: 6px;
}

.chk-con-btn {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 4px;
    color: var(--text-muted);
    font-size: 10px;
    padding: 3px 8px;
    cursor: pointer;
    transition: all 0.15s ease;
}

.chk-con-btn:hover {
    border-color: var(--neon-cyan);
    color: #fff;
    background: rgba(0, 240, 255, 0.15);
}

.chk-console-stream {
    height: 180px;
    padding: 12px;
    font-family: var(--font-mono);
    font-size: 11px;
    overflow-y: auto;
    color: #38bdf8;
    line-height: 1.5;
}

/* Footer Cyber */
.cyber-footer {
    margin-top: 40px;
    padding: 24px 16px;
    border-top: 1px solid rgba(56, 189, 248, 0.15);
    text-align: center;
    background: rgba(4, 6, 15, 0.18);
}

.cyber-footer-links {
    display: flex;
    justify-content: center;
    gap: 18px;
    flex-wrap: wrap;
    margin-bottom: 12px;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cyber-footer-links a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.2s ease;
}

.cyber-footer-links a:hover {
    color: var(--neon-cyan);
    text-shadow: 0 0 8px rgba(0, 240, 255, 0.12);
}

.cyber-footer-copy {
    font-size: 11px;
    color: var(--text-dim);
    margin-bottom: 8px;
}

.cyber-footer-disclaimer {
    font-size: 10.5px;
    color: var(--text-dim);
    line-height: 1.6;
    max-width: 760px;
    margin: 0 auto;
    opacity: 0.75;
}

/* ==========================================================================
   ARCADE CYBERPUNK 2D SUITE & D-PAD TOUCH CONTROLS (ANTI-SCROLL LOCK)
   ========================================================================== */
.arcade-container {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 20px;
    align-items: start;
    width: 100%;
}

@media (max-width: 900px) {
    .arcade-container {
        grid-template-columns: 1fr;
    }
}

.arcade-screen-box {
    background: rgba(8, 12, 24, 0.45);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4), inset 0 0 20px rgba(56, 189, 248, 0.05);
    backdrop-filter: blur(16px);
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    touch-action: none;
    user-select: none;
    -webkit-user-select: none;
}

.arcade-hud-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid rgba(56, 189, 248, 0.2);
}

.arcade-stat-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.6);
    border: 1px solid rgba(56, 189, 248, 0.2);
    padding: 4px 10px;
    border-radius: 8px;
    font-size: 11px;
    font-family: 'Share Tech Mono', monospace;
}

.arcade-canvas-wrapper {
    position: relative;
    width: 100%;
    max-width: 360px;
    aspect-ratio: 1 / 1;
    margin: 0 auto;
    border: 2px solid rgba(56, 189, 248, 0.35);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 25px rgba(56, 189, 248, 0.15);
    background: #060a12;
    touch-action: none !important;
}

#arcade-canvas {
    display: block;
    width: 100%;
    height: 100%;
    background: #060a12;
    touch-action: none !important;
}

.arcade-overlay {
    position: absolute;
    inset: 0;
    background: rgba(6, 10, 18, 0.85);
    backdrop-filter: blur(6px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 10;
    padding: 16px;
    text-align: center;
}

.arcade-overlay-title {
    font-family: 'Orbitron', sans-serif;
    font-size: 18px;
    font-weight: 900;
    color: #38bdf8;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
    margin-bottom: 8px;
}

.arcade-overlay-text {
    font-size: 12px;
    color: #cbd5e1;
    margin-bottom: 16px;
}

/* D-Pad Virtual Controller */
.arcade-touch-controller {
    width: 100%;
    max-width: 360px;
    margin-top: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    touch-action: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
}

.arcade-dpad-grid {
    display: grid;
    grid-template-columns: repeat(3, 56px);
    grid-template-rows: repeat(3, 56px);
    gap: 8px;
    justify-content: center;
    align-items: center;
    touch-action: none !important;
}

.arcade-dpad-btn {
    width: 56px;
    height: 56px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(56, 189, 248, 0.4);
    border-radius: 12px;
    color: #38bdf8;
    font-size: 18px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3), inset 0 0 10px rgba(56, 189, 248, 0.08);
    transition: all 0.1s ease;
    touch-action: none !important;
    user-select: none !important;
    -webkit-user-select: none !important;
    -webkit-touch-callout: none !important;
}

.arcade-dpad-btn:active,
.arcade-dpad-btn:focus {
    transform: scale(0.92);
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    box-shadow: 0 0 15px rgba(56, 189, 248, 0.5);
}

.arcade-dpad-center {
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 14px;
    color: #64748b;
    border-radius: 50%;
    background: rgba(15, 23, 42, 0.4);
    border: 1px dashed rgba(56, 189, 248, 0.2);
}

.arcade-actions-row {
    display: flex;
    gap: 10px;
    width: 100%;
    justify-content: center;
}

.arcade-action-btn {
    flex: 1;
    max-width: 170px;
    padding: 10px 14px;
    border-radius: 8px;
    font-family: 'Orbitron', sans-serif;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: all 0.15s ease;
    touch-action: none !important;
    user-select: none !important;
}

.arcade-action-start {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.25), rgba(5, 150, 105, 0.15));
    border: 1px solid #10b981;
    color: #34d399;
}

.arcade-action-start:hover,
.arcade-action-start:active {
    background: #10b981;
    color: #064e3b;
    box-shadow: 0 0 15px rgba(16, 185, 129, 0.5);
}

.arcade-action-pause {
    background: rgba(245, 158, 11, 0.15);
    border: 1px solid #f59e0b;
    color: #fbbf24;
}

.arcade-action-pause:hover,
.arcade-action-pause:active {
    background: #f59e0b;
    color: #78350f;
    box-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
}

.arcade-sidebar-card {
    background: rgba(8, 12, 24, 0.45);
    border: 1px solid rgba(56, 189, 248, 0.25);
    border-radius: 14px;
    padding: 18px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
    backdrop-filter: blur(16px);
}