:root {
    --bg-color: #020605;
    --neon-green: #0f0;
    --neon-red: #f00;
}

body.cyber-bg {
    background-color: var(--bg-color);
    margin: 0;
    overflow: hidden;
    font-family: 'Share Tech Mono', monospace;
    color: var(--neon-green);
}

.crt-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100vw; height: 100vh;
    background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
    background-size: 100% 2px, 3px 100%;
    z-index: 1000;
    pointer-events: none;
}

.transparent-nav {
    background: transparent !important;
    border-bottom: 1px solid #0f0 !important;
    box-shadow: 0 0 10px rgba(0,255,0,0.2);
}

.blink { animation: blinker 1s linear infinite; }
@keyframes blinker { 50% { opacity: 0; } }

.cyber-layout {
    display: grid;
    grid-template-columns: 350px 1fr 350px;
    height: calc(100vh - 60px);
    gap: 15px;
    padding: 15px;
}

.glass-card {
    background: rgba(0, 10, 0, 0.6);
    border: 1px solid var(--neon-green);
    border-radius: 0;
    box-shadow: inset 0 0 15px rgba(0,255,0,0.1);
}

/* Terminal */
.terminal-panel { display: flex; flex-direction: column; }
.terminal-body {
    flex: 1;
    overflow-y: auto;
    font-size: 0.8rem;
    line-height: 1.4;
    word-break: break-all;
    scrollbar-width: none;
}
.log-line { border-bottom: 1px dashed rgba(0,255,0,0.2); padding: 2px 0; }
.log-line.warn { color: #ff0; }
.log-line.err { color: #f00; }

/* Network Map */
.network-panel {
    position: relative;
    background: radial-gradient(circle at center, #001a00 0%, #000 100%);
    overflow: hidden;
}

.net-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
}
.net-link {
    stroke: #0f0;
    stroke-width: 2;
    opacity: 0.3;
    stroke-dasharray: 5,5;
}
.net-packet {
    fill: #0f0;
    filter: drop-shadow(0 0 5px #0f0);
}
.net-packet.malicious {
    fill: #f00;
    filter: drop-shadow(0 0 5px #f00);
}

.node-server, .node-proxy, .node-ext {
    position: absolute;
    transform: translate(-50%, -50%);
    border: 2px solid var(--neon-green);
    background: #000;
    padding: 10px;
    font-weight: bold;
    font-size: 0.9rem;
    box-shadow: 0 0 10px rgba(0,255,0,0.5);
    z-index: 10;
}
.node-server { border-radius: 5px; }
.node-proxy { border-radius: 50%; width: 70px; height: 70px; display:flex; align-items:center; justify-content:center; font-size:0.7rem;}
.node-ext { border-color: #f00; color: #f00; box-shadow: 0 0 10px rgba(255,0,0,0.5); }

/* Rules */
.controls-panel { display: flex; flex-direction: column; }
.rule-item {
    display: flex; justify-content: space-between;
    font-size: 0.8rem;
    padding: 5px;
    border: 1px solid #333;
    margin-bottom: 5px;
}
.rule-item.active { border-color: #0f0; background: rgba(0,255,0,0.1); }
