:root {
  --bg-dark: #0a0e17;
  --bg-panel: rgba(16, 24, 39, 0.7);
  --border-neon: rgba(34, 211, 238, 0.3);
  --color-cyan: #22d3ee;
  --color-green: #34d399;
  --color-red: #f87171;
  --color-text: #e2e8f0;
  --color-text-dim: #94a3b8;
  --font-mono: 'Share Tech Mono', monospace;
  --font-main: 'Rajdhani', sans-serif;
}

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

body {
  background-color: var(--bg-dark);
  color: var(--color-text);
  font-family: var(--font-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
  position: relative;
}

/* Scanlines and Vignette for CRT effect */
.scanlines {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0) 50%, rgba(0,0,0,0.1) 50%, rgba(0,0,0,0.1));
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 100;
  opacity: 0.3;
}
.vignette {
  position: fixed;
  top: 0; left: 0; width: 100vw; height: 100vh;
  background: radial-gradient(circle, transparent 50%, rgba(0,0,0,0.8) 150%);
  pointer-events: none;
  z-index: 99;
}

/* Header */
.cyber-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem 2rem;
  border-bottom: 1px solid var(--border-neon);
  background: rgba(10, 14, 23, 0.8);
  backdrop-filter: blur(10px);
  z-index: 10;
}
.logo { font-size: 1.5rem; font-weight: 700; letter-spacing: 0.1em; display: flex; align-items: center; gap: 0.5rem; }
.highlight { color: var(--color-cyan); }
.status-indicator { display: flex; align-items: center; gap: 0.5rem; font-family: var(--font-mono); font-size: 0.9rem; color: var(--color-cyan); }
.pulse-dot { width: 8px; height: 8px; background: var(--color-cyan); border-radius: 50%; box-shadow: 0 0 10px var(--color-cyan); animation: pulse 2s infinite; }

@keyframes pulse { 0% { opacity: 1; } 50% { opacity: 0.3; } 100% { opacity: 1; } }

/* Dashboard Grid */
.dashboard {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 350px;
  grid-template-rows: auto auto;
  gap: 1.5rem;
  padding: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  z-index: 10;
}

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

.panel {
  background: var(--bg-panel);
  border: 1px solid var(--border-neon);
  border-radius: 4px;
  padding: 1.5rem;
  backdrop-filter: blur(10px);
  box-shadow: inset 0 0 20px rgba(34, 211, 238, 0.05);
  position: relative;
}
.panel::before { content: ''; position: absolute; top: -1px; left: -1px; width: 10px; height: 10px; border-top: 2px solid var(--color-cyan); border-left: 2px solid var(--color-cyan); }
.panel::after { content: ''; position: absolute; bottom: -1px; right: -1px; width: 10px; height: 10px; border-bottom: 2px solid var(--color-cyan); border-right: 2px solid var(--color-cyan); }

.panel-title { font-family: var(--font-mono); font-size: 1rem; color: var(--color-text-dim); margin-bottom: 1.5rem; letter-spacing: 0.1em; border-bottom: 1px dashed rgba(34, 211, 238, 0.2); padding-bottom: 0.5rem; }

/* Radar Section */
.radar-section { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 3rem 1rem; }
.radar-container { width: 200px; height: 200px; position: relative; margin-bottom: 2rem; }
.radar { width: 100%; height: 100%; border-radius: 50%; border: 2px solid rgba(34, 211, 238, 0.3); position: relative; overflow: hidden; background: radial-gradient(circle, rgba(34, 211, 238, 0.1) 0%, transparent 70%); }
.radar .grid { position: absolute; width: 100%; height: 100%; border-radius: 50%; border: 1px dashed rgba(34, 211, 238, 0.2); transform: scale(0.5); }
.radar .sweep { position: absolute; top: 0; left: 50%; width: 50%; height: 50%; transform-origin: bottom left; background: linear-gradient(to right, transparent, rgba(34, 211, 238, 0.5)); border-right: 2px solid var(--color-cyan); animation: sweep 3s linear infinite; }
.target { position: absolute; width: 6px; height: 6px; background: var(--color-red); border-radius: 50%; box-shadow: 0 0 10px var(--color-red); top: 30%; left: 60%; animation: target-pulse 1.5s infinite; }

@keyframes sweep { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes target-pulse { 0% { transform: scale(1); opacity: 1; } 100% { transform: scale(2.5); opacity: 0; } }

.ip-display { text-align: center; margin-bottom: 1.5rem; }
.ip-display h2 { font-family: var(--font-mono); font-size: 3rem; color: var(--color-cyan); text-shadow: 0 0 15px rgba(34, 211, 238, 0.4); letter-spacing: 0.05em; line-height: 1; margin-bottom: 0.5rem; }
.location { font-size: 1.1rem; color: var(--color-text-dim); letter-spacing: 0.05em; }

.btn-cyber { background: rgba(34, 211, 238, 0.1); border: 1px solid var(--color-cyan); color: var(--color-cyan); font-family: var(--font-mono); font-size: 1.1rem; padding: 0.75rem 2rem; cursor: pointer; transition: all 0.2s; letter-spacing: 0.1em; text-transform: uppercase; position: relative; overflow: hidden; }
.btn-cyber:hover { background: var(--color-cyan); color: var(--bg-dark); box-shadow: 0 0 20px rgba(34, 211, 238, 0.4); }
.btn-cyber.scanning { background: rgba(248, 113, 113, 0.1); border-color: var(--color-red); color: var(--color-red); animation: pulse 1s infinite; pointer-events: none; }

/* Threat Items */
.threat-item { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); font-family: var(--font-mono); }
.threat-item:last-child { border-bottom: none; }
.threat-label { font-size: 0.95rem; }
.threat-status { font-weight: 700; padding: 0.2rem 0.5rem; border-radius: 2px; font-size: 0.85rem; }
.threat-status.pending { color: var(--color-text-dim); }
.threat-status.safe { background: rgba(52, 211, 153, 0.15); color: var(--color-green); border: 1px solid rgba(52, 211, 153, 0.3); }
.threat-status.danger { background: rgba(248, 113, 113, 0.15); color: var(--color-red); border: 1px solid rgba(248, 113, 113, 0.3); box-shadow: 0 0 10px rgba(248, 113, 113, 0.2); }

/* Table */
.cyber-table { width: 100%; border-collapse: collapse; font-family: var(--font-mono); font-size: 0.9rem; }
.cyber-table td { padding: 0.6rem 0; border-bottom: 1px solid rgba(255,255,255,0.05); }
.cyber-table tr:last-child td { border-bottom: none; }
.cyber-table td:first-child { color: var(--color-text-dim); width: 40%; }
.cyber-table td:last-child { color: var(--color-cyan); text-align: right; }
.truncate { max-width: 150px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; vertical-align: bottom; }

/* Promo */
.promo-widget { min-height: 100px; display: flex; align-items: center; justify-content: center; }
.bizer-promo { border: 1px dashed rgba(248, 113, 113, 0.4); padding: 1rem; text-align: center; font-family: var(--font-mono); font-size: 0.85rem; color: var(--color-red); width: 100%; }
