@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;500;600;700;800;900&family=JetBrains+Mono:wght@300;400;500;600;700&family=Share+Tech+Mono&display=swap');

:root {
  --bg-void: #03050a;
  --bg-deep: #050810;
  --bg-panel: #0a0f1a;
  --bg-card: #0d1525;
  --bg-card-hover: #111d35;
  --border-dim: rgba(0, 245, 212, 0.08);
  --border-mid: rgba(0, 245, 212, 0.18);
  --border-bright: rgba(0, 245, 212, 0.45);
  --accent-cyan: #00f5d4;
  --accent-cyan-dim: rgba(0, 245, 212, 0.12);
  --accent-cyan-glow: rgba(0, 245, 212, 0.35);
  --accent-amber: #f9a825;
  --accent-amber-dim: rgba(249, 168, 37, 0.12);
  --accent-purple: #7b2cbf;
  --accent-purple-dim: rgba(123, 44, 191, 0.15);
  --accent-red: #ff4757;
  --accent-green: #00e676;
  --text-primary: #e8f4f8;
  --text-secondary: #7eb8c9;
  --text-dim: #3d6b7a;
  --text-muted: #1e3d4a;
  --font-display: 'Orbitron', 'Share Tech Mono', monospace;
  --font-mono: 'JetBrains Mono', 'Share Tech Mono', monospace;
  --font-body: 'JetBrains Mono', monospace;
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --glow-cyan: 0 0 12px rgba(0, 245, 212, 0.4), 0 0 30px rgba(0, 245, 212, 0.15);
  --glow-amber: 0 0 12px rgba(249, 168, 37, 0.4), 0 0 30px rgba(249, 168, 37, 0.15);
  --transition-fast: 0.15s ease;
  --transition-mid: 0.25s ease;
  --transition-slow: 0.4s ease;
}

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

html, body, #app {
  height: 100%;
  width: 100%;
  overflow: hidden;
}

body {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.6;
  background: var(--bg-void);
  color: var(--text-primary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 3px; height: 3px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: var(--accent-cyan);
  border-radius: 2px;
  opacity: 0.4;
}
::-webkit-scrollbar-thumb:hover { opacity: 0.8; }

/* ── Selection ── */
::selection {
  background: rgba(0, 245, 212, 0.25);
  color: var(--accent-cyan);
}

/* ── Focus ── */
:focus-visible {
  outline: 1px solid var(--accent-cyan);
  outline-offset: 2px;
}

/* ── Animations ── */
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 6px var(--accent-cyan-glow), inset 0 0 6px rgba(0,245,212,0.05); }
  50% { box-shadow: 0 0 18px var(--accent-cyan-glow), inset 0 0 12px rgba(0,245,212,0.1); }
}

@keyframes scan-line {
  0% { transform: translateY(-100%); opacity: 0; }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% { transform: translateY(100vh); opacity: 0; }
}

@keyframes blink-cursor {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

@keyframes fade-in-up {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes border-flow {
  0%, 100% { border-color: var(--border-bright); }
  50% { border-color: rgba(0, 245, 212, 0.2); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-4px); }
}

/* ── Grid background ── */
.grid-bg {
  background-image:
    linear-gradient(rgba(0, 245, 212, 0.03) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0, 245, 212, 0.03) 1px, transparent 1px);
  background-size: 40px 40px;
}

/* ── Button base ── */
button {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.05em;
  cursor: pointer;
  border: none;
  outline: none;
  transition: all var(--transition-fast);
}

button:disabled { opacity: 0.4; cursor: not-allowed; }

/* ── Input base ── */
input, textarea, select {
  font-family: var(--font-mono);
  font-size: 13px;
  color: var(--text-primary);
  background: transparent;
  border: none;
  outline: none;
  resize: none;
}

input::placeholder, textarea::placeholder {
  color: var(--text-dim);
}

/* ── Holographic card ── */
.holo-card {
  background: var(--bg-card);
  border: 1px solid var(--border-dim);
  border-radius: var(--radius-md);
  position: relative;
  overflow: hidden;
  transition: all var(--transition-mid);
}

.holo-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(0,245,212,0.03) 0%, transparent 60%);
  pointer-events: none;
}

.holo-card:hover {
  border-color: var(--border-mid);
  background: var(--bg-card-hover);
  box-shadow: var(--glow-cyan);
}

/* ── Accent badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-family: var(--font-display);
}

/* ── Scanline overlay ── */
.scanlines::after {
  content: '';
  position: fixed;
  inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 2px,
    rgba(0, 0, 0, 0.03) 2px,
    rgba(0, 0, 0, 0.03) 4px
  );
  pointer-events: none;
  z-index: 9999;
}
