:root {
  --bg-primary: #0a0e17;
  --bg-secondary: #111827;
  --bg-tertiary: #1a2035;
  --border: #1e2a42;
  --text-primary: #c8d0e0;
  --text-muted: #5a6578;
  --green: #00ff88;
  --amber: #ffb800;
  --cyan: #00d4ff;
  --red: #ff4444;
  --yellow: #ffe066;
  --blue: #4488ff;
}

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

body {
  background: var(--bg-primary);
  color: var(--text-primary);
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  line-height: 1.5;
  overflow: hidden;
  height: 100vh;
}

#root { height: 100vh; display: flex; flex-direction: column; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: var(--bg-primary); }
::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #2a3a5a; }

textarea {
  font-family: 'JetBrains Mono', monospace;
  font-size: 13px;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 4px;
  resize: none;
  outline: none;
  padding: 8px;
}

textarea:focus { border-color: var(--cyan); box-shadow: 0 0 8px rgba(0,212,255,0.15); }

button {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  cursor: pointer;
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 10px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  transition: all 0.15s;
}

button:hover { border-color: var(--cyan); }
button:active { transform: scale(0.97); }

select {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: var(--bg-secondary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  outline: none;
}

input {
  font-family: 'JetBrains Mono', monospace;
  font-size: 12px;
  background: var(--bg-primary);
  color: var(--text-primary);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 4px 8px;
  outline: none;
}

input:focus { border-color: var(--cyan); }

.panel {
  background: var(--bg-secondary);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.panel-header {
  background: var(--bg-tertiary);
  padding: 6px 10px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border);
  user-select: none;
}

.glow-green { text-shadow: 0 0 8px rgba(0,255,136,0.4); }
.glow-cyan { text-shadow: 0 0 8px rgba(0,212,255,0.4); }

@keyframes flash-change {
  0% { color: var(--yellow); text-shadow: 0 0 12px rgba(255,224,102,0.6); }
  100% { color: var(--green); text-shadow: 0 0 4px rgba(0,255,136,0.2); }
}

.value-changed { animation: flash-change 0.5s ease-out forwards; }

@keyframes scanline {
  0% { transform: translateY(-100%); }
  100% { transform: translateY(100%); }
}

.crt-display {
  position: relative;
  background: #0a0a0a;
  border: 2px solid #333;
  border-radius: 6px;
  box-shadow: 0 0 20px rgba(0,255,136,0.1), inset 0 0 30px rgba(0,0,0,0.5);
  overflow: hidden;
}

.crt-display::after {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0,0,0,0.1) 2px,
    rgba(0,0,0,0.1) 4px
  );
  pointer-events: none;
}

.breakpoint-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 0 6px rgba(255,68,68,0.5);
  display: inline-block;
  cursor: pointer;
}

.flag-active {
  background: rgba(0,255,136,0.15);
  color: var(--green);
  border-color: rgba(0,255,136,0.3);
  text-shadow: 0 0 6px rgba(0,255,136,0.3);
}

.flag-inactive {
  background: rgba(90,101,120,0.1);
  color: var(--text-muted);
  border-color: var(--border);
}

.current-ip-row {
  background: rgba(0,255,136,0.06);
  border-left: 3px solid var(--green);
  box-shadow: inset 0 0 20px rgba(0,255,136,0.03);
}

@media (max-width: 1200px) {
  .main-grid { grid-template-columns: 1fr !important; }
}