/* AmruttamServer — modern status dashboard */
:root {
  --amr-indigo: #04016a;
  --amr-indigo-mid: #0f1f5c;
  --amr-indigo-soft: #1e3a8a;
  --amr-cyan: #22d3ee;
  --amr-cyan-dim: rgba(34, 211, 238, 0.15);
  --amr-violet: #818cf8;
  --good: #10b981;
  --good-glow: rgba(16, 185, 129, 0.35);
  --warn: #f59e0b;
  --warn-glow: rgba(245, 158, 11, 0.3);
  --bad: #ef4444;
  --bad-glow: rgba(239, 68, 68, 0.35);
  --bg-deep: #030712;
  --bg-card: rgba(15, 23, 42, 0.55);
  --bg-card-hover: rgba(30, 41, 59, 0.65);
  --border: rgba(148, 163, 184, 0.12);
  --border-bright: rgba(34, 211, 238, 0.25);
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  --radius: 16px;
  --radius-sm: 10px;
  --radius-xs: 8px;
  --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(34, 211, 238, 0.08);
  --header-h: 60px;
  --footer-h: 40px;
  --font: "Segoe UI", system-ui, -apple-system, BlinkMacSystemFont, Roboto, sans-serif;
  --mono: ui-monospace, "Cascadia Code", "Segoe UI Mono", monospace;
}

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

html, body {
  min-height: 100%;
  margin: 0;
  overflow-x: hidden;
  overflow-y: auto;
}

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg-deep);
}

/* Ambient background */
.bg-mesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 50% at 20% -20%, rgba(4, 1, 106, 0.9), transparent 50%),
    radial-gradient(ellipse 60% 40% at 90% 10%, rgba(34, 211, 238, 0.12), transparent 45%),
    radial-gradient(ellipse 50% 30% at 50% 100%, rgba(129, 140, 248, 0.08), transparent 50%),
    var(--bg-deep);
}

.bg-grid {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.4;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.04) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 30%, black, transparent);
}

.app-shell {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

/* ── Header ── */
.site-header {
  flex-shrink: 0;
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  padding: 0 24px;
  border-bottom: 1px solid var(--border);
  background: rgba(3, 7, 18, 0.75);
  backdrop-filter: blur(16px) saturate(1.2);
}

.header-inner {
  height: 100%;
  width: 100%;
  margin: 0;
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}

.brand img, .brand picture { display: block; height: 36px; width: auto; max-width: 200px; object-fit: contain; }

.brand-meta { display: flex; flex-direction: column; gap: 2px; }
.brand-meta strong { font-size: 0.95rem; font-weight: 700; letter-spacing: -0.02em; }
.brand-meta span {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.header-actions { display: flex; align-items: center; gap: 10px; }

.live-dot {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.live-dot::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--text-dim);
  animation: pulse-dot 2s ease-in-out infinite;
}

.live-dot.is-healthy::before { background: var(--good); box-shadow: 0 0 12px var(--good-glow); }
.live-dot.is-warn::before { background: var(--warn); box-shadow: 0 0 12px var(--warn-glow); }
.live-dot.is-bad::before { background: var(--bad); box-shadow: 0 0 12px var(--bad-glow); }

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

/* ── Dashboard layout ── */
.dashboard {
  flex: 1;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 20px 24px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* ── Hero status bar ── */
.hero {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: start;
  padding: 22px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: linear-gradient(135deg, rgba(4, 1, 106, 0.5) 0%, var(--bg-card) 50%, rgba(15, 23, 42, 0.6) 100%);
  box-shadow: var(--shadow), var(--shadow-glow);
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--amr-cyan), transparent);
  opacity: 0.5;
}

.hero-main h1 {
  margin: 0 0 6px;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(135deg, #fff 0%, var(--amr-cyan) 120%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-message {
  margin: 0 0 14px;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.5;
  max-width: 52ch;
}

.status-pills { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: lowercase;
  border: 1px solid transparent;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pill--info { background: rgba(34, 211, 238, 0.15); color: var(--amr-cyan); border-color: rgba(34, 211, 238, 0.3); }
.pill--good { background: rgba(16, 185, 129, 0.15); color: #34d399; border-color: rgba(16, 185, 129, 0.35); box-shadow: 0 0 20px var(--good-glow); }
.pill--warn { background: rgba(245, 158, 11, 0.15); color: #fbbf24; border-color: rgba(245, 158, 11, 0.35); }
.pill--bad { background: rgba(239, 68, 68, 0.15); color: #f87171; border-color: rgba(239, 68, 68, 0.35); box-shadow: 0 0 20px var(--bad-glow); }
.pill--neutral { background: rgba(129, 140, 248, 0.12); color: var(--amr-violet); border-color: rgba(129, 140, 248, 0.25); }

.chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  color: var(--text-muted);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.2);
  font-family: var(--mono);
}

.chip--good { color: #34d399; border-color: rgba(16, 185, 129, 0.4); background: rgba(16, 185, 129, 0.08); }
.chip--warn { color: #fbbf24; border-color: rgba(245, 158, 11, 0.4); background: rgba(245, 158, 11, 0.08); }
.chip--bad { color: #f87171; border-color: rgba(239, 68, 68, 0.4); background: rgba(239, 68, 68, 0.08); }

.hero-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; align-items: flex-start; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  transition: border-color 0.15s, background 0.15s, transform 0.12s;
}

.btn:hover {
  border-color: var(--border-bright);
  background: rgba(34, 211, 238, 0.08);
  transform: translateY(-1px);
}

.btn--primary {
  background: linear-gradient(135deg, var(--amr-indigo-soft), var(--amr-indigo));
  border-color: rgba(129, 140, 248, 0.4);
  color: #fff;
}

.btn--primary:hover {
  background: linear-gradient(135deg, #2563eb, var(--amr-indigo-soft));
  border-color: var(--amr-cyan);
}

.btn select, select.btn {
  background: transparent;
  border: none;
  color: inherit;
  font: inherit;
  cursor: pointer;
  outline: none;
}

.select-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.select-wrap::after {
  content: '▾';
  position: absolute;
  right: 12px;
  pointer-events: none;
  color: var(--text-muted);
  font-size: 0.75rem;
}

.select-control {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  min-width: 118px;
  padding: 9px 32px 9px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(15, 23, 42, 0.92);
  color: var(--text);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}

.select-control:hover,
.select-control:focus {
  border-color: var(--border-bright);
  background: rgba(30, 41, 59, 0.95);
  outline: none;
}

.select-control option {
  background: #0f172a;
  color: #f1f5f9;
}

.btn--sm {
  padding: 6px 10px;
  font-size: 0.74rem;
}

.btn--block {
  width: 100%;
}

.btn.is-active,
.btn[aria-pressed="true"] {
  border-color: var(--border-bright);
  background: rgba(34, 211, 238, 0.14);
  color: #e0f2fe;
}

.data-drawer {
  margin-bottom: 18px;
  overflow: hidden;
}

.data-drawer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border);
}

.view-tabs {
  display: inline-flex;
  gap: 6px;
  padding: 4px;
  border-radius: var(--radius-sm);
  background: rgba(2, 6, 23, 0.55);
  border: 1px solid var(--border);
}

.view-tab {
  border: none;
  border-radius: 8px;
  padding: 7px 14px;
  background: transparent;
  color: var(--text-muted);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
}

.view-tab:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.04);
}

.view-tab--active,
.view-tab[aria-selected="true"] {
  color: #e0f2fe;
  background: rgba(34, 211, 238, 0.16);
}

.data-drawer-actions {
  display: flex;
  gap: 6px;
}

.data-drawer-body {
  max-height: min(52vh, 520px);
  overflow: auto;
  padding: 0;
}

.code-block {
  margin: 0;
  padding: 16px 18px;
  font-family: var(--mono);
  font-size: 0.74rem;
  line-height: 1.55;
  color: #cbd5e1;
  white-space: pre-wrap;
  word-break: break-word;
}

.app-shell.is-locked {
  filter: blur(5px);
  pointer-events: none;
  user-select: none;
}

.auth-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: rgba(3, 7, 18, 0.78);
  backdrop-filter: blur(8px);
}

.auth-overlay[hidden] {
  display: none !important;
}

.login-card {
  width: min(100%, 420px);
  padding: 28px 24px 24px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
}

.login-brand {
  text-align: center;
  margin-bottom: 20px;
}

.login-brand img {
  display: block;
  margin: 0 auto 10px;
  max-width: 100%;
  height: auto;
}

.login-brand p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.login-card h2 {
  margin: 0 0 6px;
  font-size: 1.5rem;
}

.login-subtitle {
  margin: 0 0 18px;
  color: var(--text-muted);
  font-size: 0.92rem;
}

.login-alert {
  margin-bottom: 14px;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(239, 68, 68, 0.45);
  background: rgba(239, 68, 68, 0.12);
  color: #fecaca;
  font-size: 0.9rem;
}

.login-alert--info {
  border-color: rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.1);
  color: #cffafe;
}

.login-form {
  display: grid;
  gap: 14px;
}

.field label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.88rem;
  color: var(--text-muted);
}

.field input {
  width: 100%;
  padding: 11px 12px;
  border-radius: 10px;
  border: 1px solid var(--border);
  background: rgba(2, 6, 23, 0.65);
  color: var(--text);
  font: inherit;
}

.field input:focus {
  outline: none;
  border-color: var(--border-bright);
  box-shadow: 0 0 0 3px rgba(34, 211, 238, 0.15);
}

.field--2fa {
  padding-top: 2px;
}

.field--2fa.is-highlight {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(34, 211, 238, 0.35);
  background: rgba(34, 211, 238, 0.08);
}

.login-form--twofa #email-field,
.login-form--twofa #password-field {
  display: none !important;
}

.login-form--twofa #twofa-field {
  display: block !important;
}

#twofa-field {
  display: block;
}

#twofa-field[hidden] {
  display: none !important;
}

.field-hint {
  margin: 6px 0 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.login-footnote {
  margin: 16px 0 0;
  color: var(--text-muted);
  font-size: 0.78rem;
  line-height: 1.45;
  text-align: center;
}

.meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }

/* ── Stat cards ── */
.stat-grid {
  flex-shrink: 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}

.stat-card {
  position: relative;
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(12px);
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  transition: border-color 0.2s, background 0.2s;
  overflow: hidden;
}

.stat-card::before {
  content: "";
  position: absolute;
  left: 0; top: 12px; bottom: 12px;
  width: 3px;
  border-radius: 0 4px 4px 0;
  background: var(--amr-cyan);
  opacity: 0.7;
}

.stat-card:nth-child(2)::before { background: var(--amr-violet); }
.stat-card:nth-child(3)::before { background: var(--good); }
.stat-card:nth-child(4)::before { background: #f472b6; }
.stat-card:nth-child(5)::before { background: var(--warn); }
.stat-card:nth-child(6)::before { background: #a78bfa; }

.stat-card:hover {
  border-color: var(--border-bright);
  background: var(--bg-card-hover);
}

.stat-icon { font-size: 1.1rem; margin-bottom: 2px; opacity: 0.85; }
.stat-label {
  font-size: 0.65rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--text-dim);
}
.stat-value {
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}
.stat-hint {
  font-size: 0.72rem;
  color: var(--text-muted);
  line-height: 1.35;
  word-break: break-word;
}

/* ── Main content grid ── */
.content-grid {
  display: grid;
  grid-template-columns: minmax(300px, 1.05fr) minmax(0, 1.4fr);
  gap: 12px;
  align-items: start;
}

.runtime-zone {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: auto;
  gap: 12px;
  align-items: start;
}

.runtime-zone .panel-api,
.runtime-zone .panel-integrations {
  grid-column: 1 / -1;
}

.glass-panel {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  background: var(--bg-card);
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow);
  height: auto;
  overflow: visible;
}

.bootstrap-panel {
  position: sticky;
  top: calc(var(--header-h) + 12px);
  align-self: start;
}

.bottom-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-items: start;
}

.panel-head {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
}

.panel-head h2 {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  display: flex;
  align-items: center;
  gap: 8px;
}

.panel-head h2 .icon { opacity: 0.7; font-size: 1rem; }
.panel-head p { margin: 3px 0 0; font-size: 0.72rem; color: var(--text-dim); }

.panel-body {
  padding: 12px 16px 16px;
  flex: 1 1 auto;
}

.bootstrap-panel .panel-body {
  padding: 0;
}

/* Bootstrap table */
.table-wrap {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.8rem;
}

.data-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 11px 16px;
  text-align: left;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  background: rgba(3, 7, 18, 0.95);
  border-bottom: 1px solid var(--border);
}

.data-table td {
  padding: 10px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.06);
  vertical-align: middle;
}

.data-table tbody tr { transition: background 0.12s; }
.data-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, 0.02); }
.data-table tbody tr:hover { background: rgba(34, 211, 238, 0.06); }

.col-idx { width: 44px; color: #fbbf24; font-family: var(--mono); font-size: 0.75rem; }
.col-time { color: var(--amr-cyan); font-family: var(--mono); font-size: 0.75rem; white-space: nowrap; }
.col-module { color: #93c5fd; font-weight: 500; word-break: break-word; }
.col-info { color: #fcd34d; font-size: 0.78rem; word-break: break-word; }

.result-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.result-badge--pass { background: rgba(16, 185, 129, 0.15); color: #34d399; }
.result-badge--fail { background: rgba(239, 68, 68, 0.15); color: #f87171; }

.panel-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }

.metric-list { display: grid; gap: 6px; margin: 0; }

.metric {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 12px;
  font-size: 0.78rem;
}

.metric dt { color: var(--text-dim); margin: 0; flex-shrink: 0; min-width: 72px; }
.metric dd {
  margin: 0;
  text-align: right;
  font-family: var(--mono);
  font-size: 0.75rem;
  color: var(--text);
  word-break: break-word;
  overflow-wrap: anywhere;
}

.metric dd a { color: var(--amr-cyan); text-decoration: none; }
.metric dd a:hover { text-decoration: underline; }

.mem-bar {
  height: 4px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-top: 4px;
}

.mem-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--amr-indigo-soft), var(--amr-cyan));
  transition: width 0.4s ease;
}

/* Security & resilience */
.check-list { display: grid; gap: 6px; padding: 0; }

.check-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  transition: border-color 0.15s;
}

.check-item:hover { border-color: rgba(148, 163, 184, 0.2); }

.status-indicator {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-top: 4px;
  flex-shrink: 0;
}

.status-indicator--ok { background: var(--good); box-shadow: 0 0 10px var(--good-glow); }
.status-indicator--warning { background: var(--warn); box-shadow: 0 0 10px var(--warn-glow); }
.status-indicator--error { background: var(--bad); box-shadow: 0 0 10px var(--bad-glow); }

.check-item strong { display: block; font-size: 0.82rem; margin-bottom: 2px; }
.check-item .desc { font-size: 0.76rem; color: var(--text-muted); line-height: 1.4; }
.check-item .cat {
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-dim);
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.04);
}

.integration-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 8px;
}

.int-card {
  padding: 10px 12px;
  border-radius: var(--radius-xs);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.15);
  display: grid;
  gap: 4px;
}

.int-card .name { font-size: 0.78rem; font-weight: 600; }
.int-card .status { font-size: 0.68rem; font-weight: 600; text-transform: lowercase; }
.int-card .hint { font-size: 0.68rem; color: var(--text-dim); line-height: 1.35; word-break: break-word; }

.int-card.is-ok .status { color: #34d399; }
.int-card.is-neutral .status { color: var(--text-muted); }
.int-card.is-warn .status { color: #fbbf24; }

.dep-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  padding: 0;
  align-content: start;
}

.dep-card {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: rgba(0, 0, 0, 0.18);
  display: grid;
  gap: 6px;
}

.dep-card .name { font-size: 0.82rem; font-weight: 600; text-transform: capitalize; }
.dep-card .meta { font-size: 0.7rem; color: var(--text-dim); line-height: 1.35; }

/* Footer */
.site-footer {
  flex-shrink: 0;
  width: 100%;
  height: var(--footer-h);
  padding: 0 24px;
  border-top: 1px solid var(--border);
  background: rgba(3, 7, 18, 0.8);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-dim);
}

.site-footer a { color: var(--text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--amr-cyan); }

/* Utilities */
.row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.muted { color: var(--text-muted); }
.loading { animation: shimmer 1.4s ease-in-out infinite; opacity: 0.5; }

@keyframes shimmer {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 0.75; }
}

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

.status-toast {
  position: fixed;
  top: 72px;
  right: 20px;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  background: rgba(15, 23, 42, 0.95);
  border: 1px solid var(--border);
  color: var(--text);
  font-size: 0.82rem;
  z-index: 100;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

/* Responsive */
.api-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px 20px;
}

@media (max-width: 1200px) {
  .stat-grid { grid-template-columns: repeat(3, 1fr); }
  .hero { grid-template-columns: 1fr; }
  .hero-actions { justify-content: flex-start; }
  .content-grid { grid-template-columns: 1fr; }
  .bootstrap-panel { position: static; }
  .runtime-zone { grid-template-columns: 1fr 1fr; }
  .bottom-grid { grid-template-columns: 1fr; }
  .api-metrics { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .runtime-zone { grid-template-columns: 1fr; }
  .runtime-zone .panel-api,
  .runtime-zone .panel-integrations { grid-column: 1; }
  .integration-grid { grid-template-columns: repeat(2, 1fr); }
  .api-metrics { grid-template-columns: 1fr; }
  .dep-grid { grid-template-columns: 1fr; }
  .brand-meta { display: none; }
  .data-table .col-time { display: none; }
  .data-table th:nth-child(2) { display: none; }
  .dashboard { padding: 14px; }
}
