:root {
  --bg: #07111b;
  --panel: rgba(8, 22, 35, 0.86);
  --panel-2: rgba(11, 29, 44, 0.92);
  --line: rgba(108, 166, 207, 0.18);
  --text: #e6f1ff;
  --muted: #91a9bf;
  --cyan: #7de3ff;
  --teal: #4cf0cf;
  --amber: #f7c96b;
  --danger: #ff7373;
  --ok: #6cf3a6;
  --shadow: 0 22px 80px rgba(0, 0, 0, 0.45);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #12304a 0%, #07111b 45%, #04090f 100%);
  color: var(--text);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background-image: linear-gradient(rgba(125,227,255,0.04) 1px, transparent 1px), linear-gradient(90deg, rgba(125,227,255,0.04) 1px, transparent 1px);
  background-size: 36px 36px;
  pointer-events: none;
}
.shell, .auth-shell { min-height: 100vh; }
.page { max-width: 1480px; margin: 0 auto; padding: 24px; }
.topbar {
  display: flex; justify-content: space-between; align-items: flex-start; gap: 16px;
  padding: 24px; max-width: 1480px; margin: 0 auto;
}
.topbar h1, .auth-card h1 { margin: 6px 0 8px; letter-spacing: 0.04em; text-transform: uppercase; }
.eyebrow { color: var(--cyan); font-size: 0.76rem; letter-spacing: 0.22em; text-transform: uppercase; }
.muted { color: var(--muted); }
.grid { display: grid; gap: 18px; }
.two-col { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.three-col { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.hero-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.hero-card, .panel, .auth-card {
  background: linear-gradient(180deg, rgba(10,24,38,0.95), rgba(6,17,27,0.92));
  border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow);
}
.hero-card { padding: 18px; min-height: 124px; display: flex; flex-direction: column; justify-content: space-between; }
.hero-card strong { font-size: 1.4rem; }
.hero-label { color: var(--cyan); font-size: 0.72rem; letter-spacing: 0.18em; }
.panel { padding: 18px; backdrop-filter: blur(10px); }
.panel-header { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel-header h2, .subpanel h3 { margin: 0; text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.95rem; }
.subpanel { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.facts { display: grid; gap: 10px; margin: 0; }
.facts div { display: grid; gap: 6px; }
.facts dt { font-size: 0.72rem; letter-spacing: 0.16em; color: var(--cyan); text-transform: uppercase; }
.facts dd { margin: 0; color: var(--text); }
pre, .terminal {
  white-space: pre-wrap; word-break: break-word; margin: 0; padding: 12px;
  background: rgba(1, 8, 14, 0.8); border-radius: 12px; border: 1px solid rgba(125,227,255,0.1);
  color: #d3ebff; font-family: "SFMono-Regular", ui-monospace, monospace; font-size: 0.84rem;
}
.status-pill {
  display: inline-flex; align-items: center; padding: 6px 10px; border-radius: 999px;
  font-size: 0.72rem; letter-spacing: 0.14em; text-transform: uppercase; border: 1px solid currentColor;
}
.status-pill.ok { color: var(--ok); }
.status-pill.warn { color: var(--amber); }
.list-item {
  padding: 12px 0; border-bottom: 1px solid rgba(125,227,255,0.08);
}
.list-item:last-child { border-bottom: 0; }
.list-item strong { display: block; margin-bottom: 4px; }
.list-item small { color: var(--muted); }
.list-item p { margin: 6px 0 0; color: #cfe3f7; }
.danger-border { border-left: 2px solid var(--danger); padding-left: 10px; }
.plain-list { margin: 0; padding-left: 18px; }
.plain-list li { margin: 8px 0; }
.top-actions, .inline-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
button, .button-link {
  appearance: none; border: 1px solid rgba(125,227,255,0.32); background: linear-gradient(180deg, rgba(22, 70, 96, 0.9), rgba(10, 37, 57, 0.95));
  color: var(--text); padding: 11px 14px; border-radius: 12px; cursor: pointer; text-decoration: none; font-weight: 600;
}
button.secondary, .button-link.secondary { background: rgba(12, 27, 41, 0.85); }
button.ghost { background: transparent; }
label { display: grid; gap: 8px; }
input {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid rgba(125,227,255,0.18);
  background: rgba(5, 13, 21, 0.9); color: var(--text);
}
.stack { display: grid; gap: 14px; }
.auth-card {
  max-width: 480px; margin: 8vh auto; padding: 28px;
}
.alert { padding: 12px 14px; border-radius: 12px; border: 1px solid transparent; }
.alert.ok { background: rgba(18, 73, 48, 0.35); border-color: rgba(108,243,166,0.35); }
.alert.danger { background: rgba(96, 26, 26, 0.35); border-color: rgba(255,115,115,0.35); }
.danger-panel { border-color: rgba(255,115,115,0.35); }
.divider { text-align: center; color: var(--muted); text-transform: uppercase; letter-spacing: 0.14em; font-size: 0.75rem; }
.qr-code { width: 180px; height: 180px; background: white; padding: 12px; border-radius: 14px; }
.code-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.code-grid code { display: block; padding: 10px; border-radius: 10px; background: rgba(4, 10, 18, 0.95); }
@media (max-width: 720px) {
  .topbar { flex-direction: column; }
  .page, .topbar { padding: 16px; }
  .panel, .hero-card, .auth-card { border-radius: 16px; }
}
