/* ====================================================================
   Soverix HR — Light theme with Soverix navy header.
   Brand-aligned with the "Subsurface Architect" palette used by the
   Pulse product (#0b1326 navy / #7bd0ff iris / #ffb95f amber /
   #6ee7a3 emerald / #ff6b8a rose), but the content surface is light
   so finance/HR sessions stay comfortable through long entries.
   Fonts: Inter (body) + Space Grotesk (display) — same as soverix.ai.
   ==================================================================== */

:root {
  /* Content surfaces — light paper feel with a slight blue tint */
  --bg-page:        #f5f8fc;
  --bg-surface:     #ffffff;
  --bg-surface-hi:  #eef3fa;     /* inputs, hover rows */
  --bg-surface-2:   #e3ecf7;     /* emphatic / selected */

  /* Brand-dark — reserved for the topbar + login backdrop */
  --bg-deep:        #0b1326;     /* Soverix "ink" */
  --bg-deep-2:      #111a30;     /* Soverix "surface" */

  /* Borders */
  --border:         #dde4ee;
  --border-bright:  #c4d1e3;
  --border-glow:    rgba(37, 137, 208, 0.18);

  /* Type */
  --text:           #1a2440;     /* near-navy body */
  --text-strong:    #0b1326;     /* Soverix ink for headlines */
  --muted:          #5d6a8f;     /* Soverix "text.dim" */
  --muted-2:        #8a97bf;     /* Soverix "text.muted" */

  /* Accents — Soverix tokens, contrast-adjusted for light surfaces */
  --primary:        #2589d0;     /* iris-600, readable on white */
  --primary-dark:   #1f72b0;
  --primary-glow:   rgba(37, 137, 208, 0.14);
  --primary-soft:   #e6f3ff;

  --iris:           #7bd0ff;     /* keep Soverix iris available for chart palette */
  --amber:          #d97706;     /* drilling amber, KPI highlight */
  --amber-light:    #ffb95f;
  --amber-soft:     #fff3e0;

  --success:        #059669;     /* emerald, deepened for light bg */
  --success-soft:   #d1fae5;
  --danger:         #dc2626;     /* rose, deepened */
  --danger-soft:    #fee2e2;
  --warning:        #d97706;
  --warning-soft:   #fef3c7;

  --shadow-sm: 0 1px 2px rgba(11, 19, 38, 0.04);
  --shadow:    0 1px 2px rgba(11, 19, 38, 0.04), 0 4px 12px rgba(11, 19, 38, 0.04);
  --shadow-lg: 0 10px 30px rgba(11, 19, 38, 0.10);
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.55;
  background: var(--bg-page);
  color: var(--text);
  -webkit-font-smoothing: antialiased;
  /* Matches soverix.ai exactly */
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  /* Subtle isobath grid — same as Pulse marketing's .bg-grid-sm */
  background-image:
    linear-gradient(rgba(37, 137, 208, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37, 137, 208, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  background-attachment: fixed;
}

::selection { background: var(--primary-glow); color: var(--text-strong); }

a { color: var(--primary); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 3px; }

code {
  font-family: ui-monospace, "JetBrains Mono", "Fira Code", monospace;
  font-size: 0.85em;
  padding: 2px 5px;
  background: var(--bg-surface-hi);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--amber);
}

/* ─────────────────── Topbar (Soverix dark strip) ─────────────────── */
.topbar {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  padding: 0.75rem 1.75rem;
  background: linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep-2) 100%);
  border-bottom: 1px solid #1f2e4d;
  box-shadow:
    0 1px 0 rgba(123, 208, 255, 0.12),
    0 4px 20px rgba(11, 19, 38, 0.10);
  position: sticky;
  top: 0;
  z-index: 10;
  color: #dae2fd;
}
.brand a {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.05rem;
  color: #f4f7ff;
  letter-spacing: -0.01em;
  text-decoration: none;
}
.brand a::before {
  content: '';
  display: inline-block;
  width: 14px; height: 14px;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--amber-light) 0%, var(--amber) 100%);
  border-radius: 2px;
  box-shadow: 0 0 14px rgba(255, 185, 95, 0.45);
}
.nav {
  display: flex;
  gap: 0.15rem;
  flex: 1;
  flex-wrap: wrap;
}
.nav a {
  padding: 0.45rem 0.85rem;
  border-radius: 3px;
  color: #8a97bf;
  font-weight: 500;
  font-size: 0.86rem;
  letter-spacing: 0.01em;
  transition: all 0.15s ease;
}
.nav a:hover { background: rgba(123, 208, 255, 0.10); color: #dae2fd; text-decoration: none; }
.nav a.active {
  background: rgba(123, 208, 255, 0.15);
  color: #7bd0ff;
  box-shadow: inset 0 -2px 0 #7bd0ff;
}
.nav a.logout { margin-left: 0.25rem; color: #ff7a7a; }
.nav a.logout:hover { background: rgba(255, 122, 122, 0.10); color: #ffa0a0; }

/* Help "?" icon — small circular badge in the topbar */
.nav a.help-icon {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border-radius: 50%;
  background: rgba(123, 208, 255, 0.10);
  color: #7bd0ff;
  font-weight: 700;
  font-size: 0.9rem;
  border: 1px solid rgba(123, 208, 255, 0.25);
  font-family: 'Space Grotesk', sans-serif;
  box-shadow: inset 0 0 0 0 transparent;
}
.nav a.help-icon:hover {
  background: rgba(123, 208, 255, 0.20);
  border-color: var(--iris);
  color: #f4f7ff;
  box-shadow: none;
  text-decoration: none;
}
.nav a.help-icon.active {
  background: var(--iris);
  color: var(--bg-deep);
  border-color: var(--iris);
}

/* ─────────────────── Layout ─────────────────── */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 1.75rem;
}

.flashes { padding: 0.75rem 1.75rem 0; max-width: 1280px; margin: 0 auto; }
.flash {
  padding: 0.7rem 1rem;
  margin-bottom: 0.5rem;
  border-radius: 3px;
  font-weight: 500;
  border-left: 3px solid;
}
.flash-ok      { background: var(--success-soft); color: #065f46; border-color: var(--success); }
.flash-error   { background: var(--danger-soft);  color: #991b1b; border-color: var(--danger);  }
.flash-message { background: var(--primary-soft); color: var(--primary-dark); border-color: var(--primary); }

/* ─────────────────── Typography ─────────────────── */
h1, h2, h3 {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
  letter-spacing: -0.015em;
  color: var(--text-strong);
}
h1 { font-size: 1.55rem; margin: 0 0 1.25rem; line-height: 1.2; }
h2 { font-size: 1.05rem; margin: 1.5rem 0 0.65rem; }
h3 { font-size: 0.95rem; margin: 1rem 0 0.5rem; }

.muted { color: var(--muted); }
small.muted { font-size: 0.78rem; }

.page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid var(--border);
}
.page-header h1, .page-header h2 { margin: 0; padding: 0; border: 0; }
.page-actions, .inline-form { display: flex; gap: 0.5rem; align-items: center; flex-wrap: wrap; }

/* ─────────────────── Cards & KPIs ─────────────────── */
.card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.25rem 1.4rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--shadow-sm);
}
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}
.kpi {
  position: relative;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem 1.2rem 1.05rem;
  display: block;
  color: var(--text);
  box-shadow: var(--shadow-sm);
  transition: all 0.18s ease;
  overflow: hidden;
}
.kpi::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--border-bright) 30%, var(--border-bright) 70%, transparent 100%);
}
.kpi:hover {
  border-color: var(--border-bright);
  transform: translateY(-1px);
  box-shadow: var(--shadow);
  text-decoration: none;
}
.kpi-primary {
  background: linear-gradient(135deg, var(--primary-soft) 0%, var(--bg-surface) 100%);
  border-color: rgba(37, 137, 208, 0.28);
}
.kpi-primary::before {
  background: linear-gradient(90deg, transparent, var(--primary), transparent);
  box-shadow: 0 0 12px var(--primary-glow);
}
.kpi-label {
  font-size: 0.7rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 0.5rem;
  font-weight: 500;
}
.kpi-value {
  font-family: 'Space Grotesk', sans-serif;
  font-size: 1.65rem;
  font-weight: 600;
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.kpi-primary .kpi-value { color: var(--amber); }   /* the headline cash number pops in drilling amber */
.kpi-sub {
  font-size: 0.78rem;
  color: var(--muted);
  margin-top: 0.35rem;
  line-height: 1.4;
}

/* Two-column block */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}
@media (max-width: 900px) { .two-col { grid-template-columns: 1fr; } }
.two-col section {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem 1.25rem;
  box-shadow: var(--shadow-sm);
}

/* ─────────────────── Tables ─────────────────── */
table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.5rem;
  font-variant-numeric: tabular-nums;
}
.data-table {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
th, td {
  padding: 0.7rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
th {
  background: var(--bg-surface-hi);
  font-weight: 500;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
tbody tr { transition: background 0.12s ease; }
tbody tr:hover { background: var(--bg-surface-hi); }
tbody tr.inactive { opacity: 0.55; }
tr:last-child td { border-bottom: none; }
.num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
tfoot th {
  background: var(--bg-surface-2);
  color: var(--text-strong);
  font-size: 0.88rem;
  text-transform: none;
  letter-spacing: 0;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 600;
}

/* ─────────────────── Badges & Status ─────────────────── */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid transparent;
}
.badge-fulltime   { background: var(--primary-soft); color: var(--primary-dark); border-color: rgba(37, 137, 208, 0.30); }
.badge-consultant { background: var(--amber-soft); color: var(--amber); border-color: rgba(217, 119, 6, 0.30); }

.status {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 3px;
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  border: 1px solid;
}
.status-active   { background: var(--success-soft); color: #065f46; border-color: rgba(5, 150, 105, 0.30); }
.status-inactive { background: var(--bg-surface-hi); color: var(--muted); border-color: var(--border-bright); }

/* ─────────────────── Buttons ─────────────────── */
.btn, button.btn {
  display: inline-block;
  padding: 0.5rem 1.1rem;
  background: var(--primary);
  color: #ffffff !important;
  border: 1px solid var(--primary);
  border-radius: 3px;
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 0.02em;
  cursor: pointer;
  text-decoration: none;
  font-family: inherit;
  transition: all 0.15s ease;
}
.btn:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
  box-shadow: 0 4px 14px rgba(37, 137, 208, 0.28);
  text-decoration: none;
}
.btn-ghost {
  background: var(--bg-surface);
  color: var(--text) !important;
  border-color: var(--border-bright);
}
.btn-ghost:hover {
  background: var(--bg-surface-hi);
  border-color: var(--primary);
  color: var(--primary) !important;
  box-shadow: none;
}
.btn-danger {
  background: var(--danger);
  border-color: var(--danger);
  color: #ffffff !important;
}
.btn-danger:hover {
  background: #b91c1c;
  border-color: #b91c1c;
  box-shadow: 0 4px 14px rgba(220, 38, 38, 0.28);
}
.link-btn {
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  padding: 0;
  font: inherit;
  font-size: 0.86rem;
}
.link-btn:hover { text-decoration: underline; text-underline-offset: 2px; color: var(--primary-dark); }
.link-btn.danger { color: var(--danger); }
.link-btn.danger:hover { color: #b91c1c; }
.link { font-size: 0.82rem; font-weight: normal; margin-left: 0.5rem; }

/* ─────────────────── Forms ─────────────────── */
.form label, label {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 500;
  font-size: 0.82rem;
  color: var(--text);
  letter-spacing: 0.01em;
}
label.muted, .muted { color: var(--muted); }

.form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 0.85rem 1rem;
  margin-bottom: 0.85rem;
}
input, select, textarea {
  display: block;
  width: 100%;
  margin-top: 0.3rem;
  padding: 0.55rem 0.7rem;
  border: 1px solid var(--border);
  border-radius: 3px;
  font: inherit;
  font-size: 0.9rem;
  background: var(--bg-surface);
  color: var(--text-strong);
  font-variant-numeric: tabular-nums;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
input::placeholder, textarea::placeholder { color: var(--muted-2); }
input:hover, select:hover, textarea:hover { border-color: var(--border-bright); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--bg-surface);
  box-shadow: 0 0 0 3px var(--primary-glow);
}
input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary);
  cursor: pointer;
}

.form-actions { margin-top: 1rem; display: flex; gap: 0.6rem; }
.actions { white-space: nowrap; }
.actions a, .actions form { margin-right: 0.55rem; }

.inline-form input, .inline-form select { width: auto; display: inline-block; margin: 0; }

/* Category dropdown with a small "+ add" button alongside */
.select-with-add {
  display: flex;
  gap: 0.4rem;
  align-items: stretch;
  margin-top: 0.3rem;
}
.select-with-add select {
  margin-top: 0;
  flex: 1;
}
.btn-add-category {
  background: var(--bg-surface-hi);
  border: 1px solid var(--border);
  color: var(--primary);
  padding: 0 0.85rem;
  border-radius: 3px;
  font-size: 1.2rem;
  font-weight: 600;
  cursor: pointer;
  line-height: 1;
  font-family: inherit;
  transition: all 0.15s ease;
}
.btn-add-category:hover {
  background: var(--primary-soft);
  border-color: var(--primary);
  color: var(--primary-dark);
}

/* ─────────────────── Help / User manual page ─────────────────── */
.help-layout {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 2.5rem;
  align-items: start;
}
@media (max-width: 900px) {
  .help-layout { grid-template-columns: 1fr; }
  .help-toc { position: static !important; }
}
.help-toc {
  position: sticky;
  top: 84px;
  align-self: start;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1rem 1.1rem;
  box-shadow: var(--shadow-sm);
}
.help-toc h2 {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
  margin: 0 0 0.5rem;
}
.help-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: help-toc;
}
.help-toc li {
  counter-increment: help-toc;
  margin: 0.05rem 0;
}
.help-toc a {
  display: block;
  padding: 5px 8px;
  border-radius: 3px;
  font-size: 0.85rem;
  color: var(--text);
  transition: background 0.12s ease, color 0.12s ease;
}
.help-toc a::before {
  content: counter(help-toc) ".";
  margin-right: 6px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.help-toc a:hover {
  background: var(--bg-surface-hi);
  color: var(--primary);
  text-decoration: none;
}

.help-content { max-width: 760px; }
.help-content h2 {
  margin-top: 2.25rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--border);
  scroll-margin-top: 84px;          /* TOC anchor offset under sticky topbar */
}
.help-content section:first-of-type h2 {
  border-top: 0;
  margin-top: 1rem;
  padding-top: 0;
}
.help-content h3 {
  margin-top: 1.5rem;
  font-size: 0.98rem;
  color: var(--text-strong);
}
.help-content p { margin: 0.7rem 0; line-height: 1.65; }
.help-content ul, .help-content ol { margin: 0.7rem 0; padding-left: 1.5rem; }
.help-content li { margin: 0.35rem 0; line-height: 1.55; }
.help-content kbd {
  display: inline-block;
  padding: 1px 6px;
  font-family: ui-monospace, "JetBrains Mono", monospace;
  font-size: 0.78rem;
  color: var(--text-strong);
  background: var(--bg-surface);
  border: 1px solid var(--border-bright);
  border-bottom-width: 2px;
  border-radius: 3px;
}
.help-content pre {
  background: var(--bg-deep);
  color: #dae2fd;
  padding: 0.85rem 1rem;
  border-radius: 4px;
  overflow-x: auto;
  font-size: 0.85rem;
  border: 1px solid var(--border);
}
.help-content pre code {
  background: transparent;
  border: 0;
  padding: 0;
  color: inherit;
  font-size: inherit;
}

/* ─────────────────── Modal dialog ─────────────────── */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 19, 38, 0.55);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  animation: hr-fade-in 0.18s ease;
}
.modal-backdrop[hidden] { display: none; }
.modal-card {
  background: var(--bg-surface);
  border: 1px solid var(--border-bright);
  border-radius: 4px;
  padding: 1.5rem 1.75rem;
  width: 100%;
  max-width: 420px;
  box-shadow: var(--shadow-lg);
  animation: hr-pop-in 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.modal-card h2 { margin: 0 0 1rem; font-size: 1.15rem; }

@keyframes hr-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}
@keyframes hr-pop-in {
  from { opacity: 0; transform: scale(0.95) translateY(-8px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ─────────────────── Toast notifications ─────────────────── */
.toaster {
  position: fixed;
  top: 1rem;
  right: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  z-index: 200;
  pointer-events: none;
  max-width: calc(100vw - 2rem);
}
.toast {
  background: var(--bg-surface);
  border: 1px solid var(--border-bright);
  border-left: 3px solid var(--primary);
  padding: 0.7rem 1rem;
  border-radius: 3px;
  box-shadow: var(--shadow-lg);
  min-width: 240px;
  max-width: 380px;
  font-size: 0.9rem;
  color: var(--text);
  pointer-events: auto;
  animation: hr-slide-in 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.toast-success { border-left-color: var(--success); }
.toast-error   { border-left-color: var(--danger); }
.toast-info    { border-left-color: var(--primary); }
.toast.leaving { animation: hr-slide-out 0.22s ease forwards; }

@keyframes hr-slide-in {
  from { transform: translateX(110%); opacity: 0; }
  to   { transform: translateX(0); opacity: 1; }
}
@keyframes hr-slide-out {
  from { transform: translateX(0); opacity: 1; }
  to   { transform: translateX(110%); opacity: 0; }
}

/* ─────────────────── Callouts ─────────────────── */
.callout {
  background: var(--primary-soft);
  border-left: 3px solid var(--primary);
  padding: 0.85rem 1.1rem;
  margin: 1rem 0;
  border-radius: 3px;
  font-size: 0.9rem;
  color: var(--text);
}
.callout ul { margin: 0.4rem 0 0 1rem; padding: 0; }
.callout strong { color: var(--text-strong); }

/* ─────────────────── Charts ─────────────────── */
.chart-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  gap: 1.25rem;
  align-items: center;
}
@media (max-width: 900px) { .chart-row { grid-template-columns: 1fr; } }
.chart-cell { min-width: 0; }
.chart-cell canvas { max-height: 320px; }

/* ─────────────────── Details / Summary ─────────────────── */
details summary { outline: none; }
details[open] > summary { color: var(--primary); }

/* ─────────────────── Login (keeps Soverix dark brand vibe) ─────────────────── */
.login-body {
  margin: 0;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 60% 40% at 25% 15%, rgba(123, 208, 255, 0.20), transparent 60%),
    radial-gradient(ellipse 60% 40% at 75% 85%, rgba(255, 185, 95, 0.12), transparent 60%),
    linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-deep-2) 100%);
  background-attachment: fixed;
  color: #dae2fd;
  font-family: 'Inter', sans-serif;
}
.login-card {
  background: var(--bg-deep-2);
  border: 1px solid #2e4471;
  padding: 2.5rem 2.5rem 2rem;
  border-radius: 4px;
  width: 100%;
  max-width: 380px;
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(123, 208, 255, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
  color: #dae2fd;
}
.login-card h1 {
  text-align: center;
  margin: 0 0 1.75rem;
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 1.45rem;
  color: #f4f7ff;
  letter-spacing: -0.02em;
}
.login-card h1::before {
  content: '';
  display: block;
  width: 36px; height: 36px;
  margin: 0 auto 1rem;
  transform: rotate(45deg);
  background: linear-gradient(135deg, var(--amber-light) 0%, var(--amber) 100%);
  border-radius: 4px;
  box-shadow:
    0 0 0 1px rgba(255, 185, 95, 0.4),
    0 0 30px rgba(255, 185, 95, 0.4);
}
.login-card label {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #8a97bf;
}
.login-card input {
  background: #1a2440;
  border-color: #2e4471;
  color: #f4f7ff;
}
.login-card input:focus {
  border-color: var(--iris);
  box-shadow: 0 0 0 3px rgba(123, 208, 255, 0.18);
  background: #1a2440;
}
.login-card button {
  width: 100%;
  margin-top: 1rem;
  padding: 0.7rem;
  font-size: 0.95rem;
  background: var(--iris);
  border-color: var(--iris);
  color: var(--bg-deep) !important;
}
.login-card button:hover {
  background: #5cb6e6;
  border-color: #5cb6e6;
  box-shadow: 0 0 20px rgba(123, 208, 255, 0.35);
}

/* ─────────────────── Misc ─────────────────── */
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }

/* Custom scrollbar — subtle, matches Soverix marketing */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-page); }
::-webkit-scrollbar-thumb { background: var(--border-bright); border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: var(--muted-2); }
