/* ═══════════════════════════════════════════════════
   L402 Mainnet — Dashboard Admin
   KPIs, node panel, tables, channels, help
   ═══════════════════════════════════════════════════ */

/* ─── Auth Gate ──────────────────────────────────── */
.auth-gate {
  max-width: 440px; margin: 4rem auto; text-align: center;
}
.auth-gate__icon { font-size: 3rem; margin-bottom: 1.5rem; opacity: 0.4; }
.auth-gate__title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.5rem; }
.auth-gate__desc { color: var(--text-muted); font-size: 0.875rem; margin-bottom: 1.5rem; }
.auth-gate__form { display: flex; gap: 0.5rem; }
.auth-gate__input {
  flex: 1; padding: 0.75rem 1rem; border-radius: var(--radius-md);
  background: var(--bg-secondary); border: 1px solid var(--border);
  color: var(--text-primary); font-size: 0.875rem; font-family: 'JetBrains Mono', monospace;
  transition: border-color 0.2s;
}
.auth-gate__input:focus { border-color: var(--btc-orange); outline: none; }
.auth-gate__input::placeholder { color: var(--text-muted); font-family: 'Inter', sans-serif; }

/* ─── Dashboard Header ───────────────────────────── */
.dash-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 2rem; flex-wrap: wrap; gap: 1rem;
}
.dash-header__left {}
.dash-header__title { font-size: clamp(1.5rem, 3vw, 2rem); }
.dash-header__subtitle { color: var(--text-muted); font-size: 0.875rem; margin-top: 0.25rem; }
.dash-header__actions { display: flex; align-items: center; gap: 0.75rem; }
.dash-header__auto { font-size: 0.75rem; color: var(--text-muted); }

/* ─── KPI Row ────────────────────────────────────── */
.kpi-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
@media (max-width: 1024px) { .kpi-row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px) { .kpi-row { grid-template-columns: 1fr; } }

/* ─── Node Panel ─────────────────────────────────── */
.node-panel { margin-bottom: 1.5rem; }
.node-panel__header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 1.25rem; }
.node-panel__title { font-size: 1rem; font-weight: 700; display: flex; align-items: center; gap: 0.75rem; flex: 1; }
.node-panel__header .help-wrap { margin-left: auto; }
.node-panel__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.node-panel__item {}
.node-panel__label { font-size: 0.75rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600; margin-bottom: 0.25rem; }
.node-panel__value { font-size: 0.9375rem; color: var(--text-primary); font-weight: 500; }
.node-panel__value--mono { font-family: 'JetBrains Mono', monospace; font-size: 0.8125rem; }
.node-panel__value--truncate { max-width: 200px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ─── Channel Bars ───────────────────────────────── */
.channel-bar { margin-bottom: 0.75rem; }
.channel-bar__header { display: flex; justify-content: space-between; font-size: 0.75rem; margin-bottom: 0.35rem; }
.channel-bar__id { font-family: 'JetBrains Mono', monospace; color: var(--text-muted); }
.channel-bar__capacity { color: var(--text-secondary); }
.channel-bar__track { height: 8px; border-radius: 4px; background: var(--bg-secondary); overflow: hidden; display: flex; }
.channel-bar__local { height: 100%; background: var(--btc-orange); border-radius: 4px 0 0 4px; transition: width 0.5s ease; }
.channel-bar__remote { height: 100%; background: var(--blue); border-radius: 0 4px 4px 0; opacity: 0.5; }

/* ─── Section Panel ──────────────────────────────── */
.dash-section { margin-bottom: 1.5rem; }
.dash-section__header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1rem; gap: 0.5rem;
}
.dash-section__title { font-size: 0.9375rem; font-weight: 700; display: flex; align-items: center; gap: 0.5rem; flex: 1; }
.dash-section__header .help-wrap { margin-left: auto; }

/* ─── Audit Badges Row ───────────────────────────── */
.audit-row { display: flex; flex-wrap: wrap; gap: 0.5rem; }

/* ─── Scrollable Table ───────────────────────────── */
.table-scroll { max-height: 320px; overflow-y: auto; }
