:root {
  /* Dark Surfaces */
  --bg: #0D0E11;              /* Base app canvas */
  --surface: #16181D;         /* Cards and containers */
  --surface-hover: #1E2128;   /* Interactive hover states */
  --surface-soft: #232730;    /* Inputs and inset containers */

  /* Borders */
  --border: #262930;          /* Clean 1px visual separation */
  --border-focus: #3A3F4D;

  /* Text */
  --text: #F0F2F5;            /* Crisp primary text */
  --text-muted: #8A909E;      /* Secondary text */
  --text-inverse: #0D0E11;

  /* Brand Accents (Deep Navy → Vibrant Dark Slate/Indigo for contrast) */
  --primary: #3B66F5;         /* Accessible accent for dark mode */
  --primary-dark: #2B4EC0;
  --primary-soft: rgba(59, 102, 245, 0.12);

  /* Functional Accents */
  --danger: #FF4D4D;
  --danger-soft: rgba(255, 77, 77, 0.12);
  --success: #22C55E;
  --success-soft: rgba(34, 197, 94, 0.12);
  --warning: #F59E0B;
  --warning-soft: rgba(245, 158, 11, 0.12);

  /* Geometry & Elevation */
  --radius-sm: 8px;
  --radius: 12px;
  --radius-lg: 16px;

  /* Type */
  --font: 'Inter', system-ui, -apple-system, sans-serif;

  /* Layout */
  --sidebar-w: 240px;
  --bottom-nav-h: 60px;
  --topbar-h: 56px;
}

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

html, body {
  height: 100%;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: 0.95rem;
  color: inherit;
}

a { color: var(--primary); text-decoration: none; }

/* Modern Dark Flat Cards */
.neu-card, .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}

/* Modern Inputs */
.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 14px;
}
.field > span {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 500;
}
.field input, .field select, .neu-input {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
  color: var(--text);
  outline: none;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.field input:focus, .field select:focus {
  border-color: var(--primary);
  background: var(--surface);
}

/* Flat Primary Button */
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: none;
  border-radius: var(--radius-sm);
  background: var(--primary);
  color: #FFFFFF;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-primary:hover { background: var(--primary-dark); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }

[hidden] { display: none !important; }
