/* voightk.dev — Blade Runner / Voight-Kampff Diagnostic HUD Theme */
:root {
  --bg: #05070c;
  --bg-elev: #0a0f1c;
  --card: rgba(11, 16, 29, 0.92);
  --border: #1b2a44;
  --border-glow: rgba(0, 240, 255, 0.38);
  --text: #e6f4ff;
  --muted: #7c93b3;
  --accent: #00f0ff;
  --amber: #ffb000;
  --ok: #00ff9c;
  --warn: #ffb000;
  --danger: #ff2a6d;
}

* { box-sizing: border-box; }

html, body {
  background-color: var(--bg);
  color: var(--text);
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  line-height: 1.55;
  background-image:
    radial-gradient(circle at 12% 0%, rgba(0, 240, 255, 0.08), transparent 42%),
    radial-gradient(circle at 88% 12%, rgba(255, 42, 109, 0.07), transparent 40%),
    linear-gradient(rgba(0, 240, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 240, 255, 0.025) 1px, transparent 1px);
  background-size: 100% 100%, 100% 100%, 36px 36px, 36px 36px;
  min-height: 100vh;
}

/* Subtle CRT scanline sheen */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  background: repeating-linear-gradient(
    to bottom,
    rgba(255, 255, 255, 0) 0px,
    rgba(255, 255, 255, 0) 2px,
    rgba(0, 0, 0, 0.08) 3px
  );
  opacity: 0.45;
}

header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 28px;
  border-bottom: 1px solid rgba(0, 240, 255, 0.25);
  background: rgba(6, 9, 17, 0.92);
  backdrop-filter: blur(10px);
  position: sticky;
  top: 0;
  z-index: 20;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.55);
}

.brand {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-weight: 800;
  font-size: 16px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 10px var(--accent), 0 0 18px var(--accent);
  animation: vk-pulse 2.2s infinite ease-in-out;
}

.brand span {
  color: var(--accent);
  text-shadow: 0 0 10px rgba(0, 240, 255, 0.55);
}

@keyframes vk-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.85); }
}

header nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

header a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 14px;
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 5px 8px;
  border: 1px solid transparent;
  transition: color 0.15s, border-color 0.15s, box-shadow 0.15s;
}

header a:hover,
header a.active {
  color: var(--accent);
  border-color: rgba(0, 240, 255, 0.35);
  background: rgba(0, 240, 255, 0.06);
  text-shadow: 0 0 8px rgba(0, 240, 255, 0.45);
}

h1 {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: #f4fbff;
  text-shadow: 0 0 18px rgba(0, 240, 255, 0.22);
}

h2, h3 {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.04em;
}

.card, .stat, .pill, article {
  background: var(--card) !important;
  border: 1px solid var(--border) !important;
  border-radius: 4px !important;
  position: relative;
  box-shadow: inset 0 1px 0 rgba(0, 240, 255, 0.08), 0 8px 28px rgba(0, 0, 0, 0.45);
}

.card::before, article::before {
  content: "";
  position: absolute;
  top: -1px;
  left: -1px;
  width: 14px;
  height: 14px;
  border-top: 2px solid var(--accent);
  border-left: 2px solid var(--accent);
  pointer-events: none;
}

.card::after, article::after {
  content: "";
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 14px;
  height: 14px;
  border-bottom: 2px solid rgba(255, 176, 0, 0.7);
  border-right: 2px solid rgba(255, 176, 0, 0.7);
  pointer-events: none;
}

button, .btn, .fake-btn {
  font-family: ui-monospace, SFMono-Regular, monospace !important;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 12px !important;
  border-radius: 3px !important;
  background: #0d1628 !important;
  border: 1px solid #233859 !important;
  color: var(--text) !important;
  transition: border-color 0.15s, box-shadow 0.15s, background 0.15s;
}

button:hover, .fake-btn:hover {
  border-color: var(--accent) !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.28);
}

button:disabled {
  opacity: 0.35 !important;
  cursor: not-allowed !important;
  box-shadow: none !important;
  border-color: #1a2438 !important;
}

button.primary {
  background: linear-gradient(135deg, #005b66, #008b99) !important;
  border-color: var(--accent) !important;
  color: #f4ffff !important;
  box-shadow: 0 0 14px rgba(0, 240, 255, 0.22);
}

button.primary:hover {
  box-shadow: 0 0 20px rgba(0, 240, 255, 0.48) !important;
}

button.active, button.active-tab {
  background: rgba(0, 240, 255, 0.12) !important;
  border-color: var(--accent) !important;
  color: var(--accent) !important;
  box-shadow: 0 0 12px rgba(0, 240, 255, 0.2);
}

input[type="text"], input[type="email"], input[type="password"], select {
  background: #060a14 !important;
  border: 1px solid #1e3150 !important;
  border-radius: 3px !important;
  color: var(--text) !important;
  font-family: ui-monospace, SFMono-Regular, monospace;
}

input:focus, select:focus {
  outline: none;
  border-color: var(--accent) !important;
  box-shadow: 0 0 10px rgba(0, 240, 255, 0.25);
}

code {
  color: var(--amber);
  background: rgba(255, 176, 0, 0.08) !important;
  border: 1px solid rgba(255, 176, 0, 0.22);
  border-radius: 3px !important;
  padding: 1px 5px;
}

pre code {
  display: block !important;
  background: transparent !important;
  border: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
  color: #e6edf7 !important;
  line-height: 1.6 !important;
}

.card p, .card li {
  line-height: 1.7;
}

.card > p:last-child,
.card > ol:last-child,
.card > ul:last-child,
.card > pre:last-child,
.card > div:last-child {
  margin-bottom: 0 !important;
}

@media (max-width: 720px) {
  header {
    position: static !important;
    flex-direction: column;
    align-items: flex-start !important;
    gap: 10px;
    padding: 12px 16px !important;
  }
  header nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
  }
  header a {
    margin-left: 0 !important;
  }
}

.badge.human {
  background: rgba(0, 255, 156, 0.12) !important;
  color: var(--ok) !important;
  border: 1px solid var(--ok) !important;
  box-shadow: 0 0 10px rgba(0, 255, 156, 0.2);
}

.badge.bot {
  background: rgba(255, 42, 109, 0.14) !important;
  color: var(--danger) !important;
  border: 1px solid var(--danger) !important;
  box-shadow: 0 0 10px rgba(255, 42, 109, 0.25);
}

.badge.hybrid {
  background: rgba(255, 176, 0, 0.14) !important;
  color: var(--amber) !important;
  border: 1px solid var(--amber) !important;
  box-shadow: 0 0 10px rgba(255, 176, 0, 0.25);
}

table th {
  font-family: ui-monospace, SFMono-Regular, monospace;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent) !important;
  border-bottom: 1px solid rgba(0, 240, 255, 0.25) !important;
}

table tr:hover td {
  background: rgba(0, 240, 255, 0.04);
}

.pill.done {
  border-color: var(--ok) !important;
  box-shadow: 0 0 14px rgba(0, 255, 156, 0.2) !important;
}

/* Dark cyberpunk chrome for rrweb-player on /dashboard */
#replay-player .rr-player {
  background: #080c16 !important;
  border: 1px solid rgba(0, 240, 255, 0.35) !important;
  box-shadow: 0 0 24px rgba(0, 240, 255, 0.12) !important;
}

#replay-player .rr-controller {
  background: #0b1120 !important;
  color: var(--text) !important;
  border-top: 1px solid var(--border) !important;
}

/* Admin-only visual distinction — amber-gold monospace with dashed HUD border */
.vk-admin-nav {
  color: #ffb000 !important;
  font-family: ui-monospace, "SF Mono", Menlo, monospace !important;
  border: 1px dashed rgba(255, 176, 0, 0.55);
  background: rgba(255, 176, 0, 0.08);
  padding: 4px 10px;
  border-radius: 6px;
}
.vk-admin-nav:hover {
  background: rgba(255, 176, 0, 0.18) !important;
  border-color: #ffb000 !important;
}
.vk-admin-only {
  border: 1px dashed rgba(255, 176, 0, 0.65) !important;
  background: linear-gradient(180deg, #1d1508 0%, #161006 100%) !important;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  border-radius: 12px;
  padding: 16px;
  position: relative;
}
.vk-admin-only h2 {
  color: #ffb000 !important;
  font-family: ui-monospace, "SF Mono", Menlo, monospace !important;
  letter-spacing: 0.04em;
}
body.vk-admin-page {
  background-color: #161006 !important;
  background-image:
    radial-gradient(ellipse 90% 55% at 50% -10%, rgba(255, 176, 0, 0.14), transparent 65%),
    linear-gradient(rgba(255, 176, 0, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 176, 0, 0.035) 1px, transparent 1px) !important;
  background-size: auto, 36px 36px, 36px 36px !important;
}
body.vk-admin-page header {
  background: #1d1408 !important;
  border-bottom: 2px solid rgba(255, 176, 0, 0.55) !important;
}
body.vk-admin-page .card,
body.vk-admin-page .stat,
body.vk-admin-page article {
  background: #1c150a !important;
  border-color: rgba(255, 176, 0, 0.32) !important;
}
body.vk-admin-page .dash-tab {
  background: #1a1308;
  border-color: rgba(255, 176, 0, 0.28);
}
.vk-admin-pill {
  display: inline-block;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 11px;
  font-weight: 700;
  color: #ffb000;
  background: rgba(255, 176, 0, 0.12);
  border: 1px dashed rgba(255, 176, 0, 0.55);
  border-radius: 6px;
  padding: 2px 8px;
  letter-spacing: 0.04em;
}
