/* ==========================================================
   BASE & THEME VARIABLES: «СВОИ ЛЮДИ // CHECKPOINT»
   Palette: Strict Slate / Zinc, High-Tech Monospace & Glowing Borders
   Optimized: 100% Local / System Fonts, Zero External Network Lag
   ========================================================== */

:root {
  /* Slate / Zinc Palette */
  --bg-primary: #07090e;
  --bg-secondary: #0d1117;
  --bg-tertiary: #131722;
  --bg-card: #111624;
  --bg-card-hover: #171e30;
  --bg-elevated: #1a2236;

  /* Borders & Dividers */
  --border-subtle: #1e2638;
  --border-muted: #2a354d;
  --border-highlight: #3b4b6e;
  --border-glow-cyan: rgba(56, 189, 248, 0.4);
  --border-glow-danger: rgba(239, 68, 68, 0.45);
  --border-glow-success: rgba(16, 185, 129, 0.45);

  /* Typography Colors */
  --text-main: #f1f5f9;
  --text-secondary: #94a3b8;
  --text-muted: #64748b;
  --text-dim: #475569;

  /* Accents & Status Indicators */
  --accent-cyan: #38bdf8;
  --accent-cyan-glow: rgba(56, 189, 248, 0.15);
  --accent-blue: #3b82f6;
  --accent-purple: #8b5cf6;

  --danger: #ef4444;
  --danger-bg: rgba(239, 68, 68, 0.12);
  --danger-border: rgba(239, 68, 68, 0.4);
  --danger-glow: rgba(239, 68, 68, 0.25);

  --warning: #f59e0b;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --warning-border: rgba(245, 158, 11, 0.4);

  --success: #10b981;
  --success-bg: rgba(16, 185, 129, 0.12);
  --success-border: rgba(16, 185, 129, 0.4);
  --success-glow: rgba(16, 185, 129, 0.25);

  /* 100% System Fonts - No external Google Fonts dependencies */
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* Radii & Transitions */
  --radius-xs: 3px;
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-phone: 38px;
  --transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}

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

html {
  font-size: 16px;
  background-color: var(--bg-primary);
  color: var(--text-main);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

body {
  min-height: 100vh;
  line-height: 1.55;
  background-color: var(--bg-primary);
  color: var(--text-main);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
  outline: none;
}

/* Monospace Utilities */
.mono {
  font-family: var(--font-mono);
  letter-spacing: -0.02em;
}

.mono-tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 8px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

/* High-Tech Grid & Scanline Background */
.cyber-grid {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-size: 44px 44px;
  background-image: 
    linear-gradient(to right, rgba(56, 189, 248, 0.035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(56, 189, 248, 0.035) 1px, transparent 1px);
  mask-image: radial-gradient(circle at 50% 30%, black 45%, transparent 85%);
}

.cyber-scanline {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.4), transparent);
  opacity: 0.6;
  pointer-events: none;
  z-index: 2;
  animation: scanline 8s linear infinite;
}

/* Status Badges */
.status-badge {
  font-size: 0.68rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-xs);
  display: inline-flex;
  align-items: center;
  gap: 5px;
  text-align: center;
  width: fit-content;
}

.status-badge.clean {
  background: var(--success-bg);
  color: #34d399;
  border: 1px solid var(--success-border);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.15);
}

.status-badge.warning {
  background: var(--warning-bg);
  color: #fbbf24;
  border: 1px solid var(--warning-border);
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.15);
}

.status-badge.danger {
  background: var(--danger-bg);
  color: #f87171;
  border: 1px solid var(--danger-border);
  box-shadow: 0 0 10px rgba(239, 68, 68, 0.2);
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
::-webkit-scrollbar-track {
  background: var(--bg-primary);
}
::-webkit-scrollbar-thumb {
  background: var(--border-muted);
  border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
  background: var(--accent-cyan);
}

/* Global Keyframes */
@keyframes scanline {
  0% { transform: translateY(-100vh); }
  100% { transform: translateY(100vh); }
}

@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}
