/* Glow Bot — Dark Crystal Obsidian + GLOW photo aesthetic */
@import url("https://fonts.googleapis.com/css2?family=Rajdhani:wght@400;500;600&family=IBM+Plex+Mono:wght@400;500&display=swap");

:root {
  --deep-navy: #050508;
  --dark-blue: #0e0e1a;
  --neon-purple: #7b2fff;
  --neon-magenta: #c084fc;
  --electric-cyan: #00f5ff;
  --crystal-accent: #9d4eff;
  --electric-glow: #bf5af2;
  --off-white: #dcc8ff;
  --muted-blue: #a78bfa;
  --border-glow: rgba(180, 120, 255, 0.25);
  --glow-shadow: 0 0 16px rgba(123, 47, 255, 0.2);
  --card-bg: rgba(14, 14, 26, 0.6);
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: "Rajdhani", "IBM Plex Mono", system-ui, sans-serif;
  background: var(--deep-navy);
  color: var(--off-white);
  min-height: 100vh;
  line-height: 1.5;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 50% at 50% -20%, rgba(123, 47, 255, 0.06), transparent 50%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(0, 245, 255, 0.04), transparent 45%),
    radial-gradient(ellipse 50% 30% at 10% 80%, rgba(191, 90, 242, 0.04), transparent 40%);
  pointer-events: none;
  z-index: 0;
}

.grain-overlay {
  position: fixed;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 400 400' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='1.8' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  opacity: 0.02;
  pointer-events: none;
  z-index: 9999;
}

.container {
  position: relative;
  z-index: 1;
  padding: 24px;
  max-width: 1400px;
  margin: 0 auto;
}

.header {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-glow);
}

.header h2 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.header h2 .accent { color: var(--neon-purple); }
.header h2 .brand { color: var(--neon-magenta); }
.header h2 .cyan { color: var(--electric-cyan); }

.grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 16px;
}

.card {
  background: var(--card-bg);
  border: 1px solid var(--border-glow);
  border-radius: 12px;
  padding: 16px;
  box-shadow: var(--glow-shadow);
  transition: box-shadow 0.2s, border-color 0.2s;
}
.card:hover {
  border-color: rgba(180, 120, 255, 0.4);
  box-shadow: 0 0 24px rgba(123, 47, 255, 0.25);
}

.span-3 { grid-column: span 3; }
.span-4 { grid-column: span 4; }
.span-6 { grid-column: span 6; }
.span-8 { grid-column: span 8; }
.span-12 { grid-column: span 12; }

@media (max-width: 900px) {
  .span-3, .span-4, .span-6, .span-8 { grid-column: span 12; }
}

small, .muted {
  color: var(--muted-blue);
  font-size: 0.85em;
}

.card strong {
  color: var(--neon-purple);
  font-weight: 500;
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  font-family: "IBM Plex Mono", monospace;
}
th, td {
  padding: 8px 10px;
  border-bottom: 1px solid rgba(180, 120, 255, 0.15);
  text-align: left;
}
th {
  color: var(--muted-blue);
  font-weight: 500;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
tr:hover td { background: rgba(123, 47, 255, 0.05); }

input, select, button {
  font-family: "IBM Plex Mono", monospace;
  background: rgba(14, 14, 26, 0.8);
  color: var(--off-white);
  border: 1px solid var(--border-glow);
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 13px;
  transition: border-color 0.2s, box-shadow 0.2s;
}
input:focus, select:focus {
  outline: none;
  border-color: var(--neon-purple);
  box-shadow: 0 0 8px rgba(123, 47, 255, 0.3);
}
input::placeholder { color: var(--muted-blue); opacity: 0.7; }

button {
  cursor: pointer;
  background: linear-gradient(135deg, rgba(123, 47, 255, 0.3), rgba(191, 90, 242, 0.2));
  border-color: var(--neon-purple);
  font-weight: 500;
}
button:hover {
  background: linear-gradient(135deg, rgba(123, 47, 255, 0.4), rgba(191, 90, 242, 0.3));
  box-shadow: 0 0 12px rgba(123, 47, 255, 0.4);
}

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

.pos { color: #22c55e; }
.neg { color: #ef4444; }
.warn { color: #f59e0b; }

.stat-value {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--off-white);
}
.stat-value.pos { color: #22c55e; }
.stat-value.neg { color: #ef4444; }

.chart-container {
  width: 100%;
  height: 220px;
  border-radius: 8px;
  overflow: hidden;
}

pre {
  font-family: "IBM Plex Mono", monospace;
  font-size: 11px;
  overflow-x: auto;
  padding: 12px;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 8px;
  border: 1px solid var(--border-glow);
  color: var(--muted-blue);
}
