/* ── Cyber/Minimal Theme ── */
:root {
  --deep: #050505;
  --surface: #0a0a0a;
  --card: #0f0f0f;
  --border: rgba(255,255,255,0.06);
  --border-hover: rgba(255,255,255,0.12);
  --muted: rgba(255,255,255,0.35);
  --subtle: rgba(255,255,255,0.55);
  --accent: #ffffff;
  --accent-dim: rgba(255,255,255,0.1);
  --danger: #f64747;
  --warning: #ffaa00;
  --glass: rgba(255,255,255,0.03);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
}

* { box-sizing: border-box; }

body {
  background: var(--deep);
  color: #fff;
  font-family: 'Inter','Geist','Satoshi',system-ui,-apple-system,sans-serif;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

::selection { background: var(--accent-dim); color: var(--accent); }

/* ── Scrollbar ── */
::-webkit-scrollbar { width: 4px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--border-hover); border-radius: 2px; }

/* ── Glass Card ── */
.glass {
  background: var(--glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}

.glass-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}

/* ── Dividers ── */
.divider { border: none; height: 1px; background: var(--border); margin: 24px 0; }
.divider-vertical { width: 1px; background: var(--border); align-self: stretch; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 18px 42px;
  border-radius: 100px;
  font-size: 14px;
  cursor: pointer;
  border: none;
  transition: all .25s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #050505;
  font-weight: 600;
  border-radius: 100px;
}
.btn-primary:hover { background: #e0e0e0; box-shadow: 0 4px 24px rgba(255,255,255,0.15); transform: translateY(-1px); }

.btn-secondary {
  background: transparent;
  color: var(--subtle);
  border: 1px solid var(--border);
  border-radius: 100px;
}
.btn-secondary:hover { background: var(--glass); border-color: var(--border-hover); color: #fff; transform: translateY(-1px); }

.btn-danger {
  background: rgba(246,71,71,0.1);
  color: var(--danger);
  border: 1px solid rgba(246,71,71,0.2);
  border-radius: 100px;
}
.btn-danger:hover { background: rgba(246,71,71,0.18); transform: translateY(-1px); }

.btn-warning {
  background: rgba(255,170,0,0.1);
  color: var(--warning);
  border: 1px solid rgba(255,170,0,0.2);
  border-radius: 100px;
}
.btn-warning:hover { background: rgba(255,170,0,0.18); transform: translateY(-1px); }

/* ── Inputs ── */
input, textarea, select {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  color: #fff;
  font-size: 13px;
  font-family: inherit;
  outline: none;
  transition: all .2s ease;
  width: 100%;
}
input:focus, textarea:focus, select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
input::placeholder, textarea::placeholder { color: var(--muted); }

/* ── Labels ── */
label {
  display: block;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: 0.02em;
}

/* ── Form Layout ── */
.form-group { margin-bottom: 16px; }

/* ── Links ── */
a { color: var(--accent); text-decoration: none; transition: color .2s; }
a:hover { color: #ccc; }

/* ── Text ── */
.text-muted { color: var(--muted); }
.text-subtle { color: var(--subtle); }

/* ── Status Dots ── */
.status-dot {
  display: inline-block;
  width: 8px; height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.status-online { background: var(--accent); box-shadow: 0 0 8px rgba(255,255,255,0.3); }
.status-idle { background: #f0ad4e; box-shadow: 0 0 8px rgba(240,173,78,0.4); }
.status-dnd { background: var(--danger); box-shadow: 0 0 8px rgba(246,71,71,0.4); }
.status-invisible { background: rgba(255,255,255,0.2); }

/* ── Alerts ── */
.alert {
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  margin-bottom: 20px;
  animation: fadeIn .3s ease-out;
}
.alert-success {
  background: var(--accent-dim);
  border: 1px solid rgba(255,255,255,0.15);
  color: var(--accent);
}
.alert-error {
  background: rgba(246,71,71,0.1);
  border: 1px solid rgba(246,71,71,0.2);
  color: var(--danger);
}

/* ── Auth Layout (dual-panel) ── */
.auth-container {
  display: flex;
  min-height: 100vh;
}

.auth-left {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px;
  max-width: 520px;
}

.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  position: relative;
}

.auth-separator {
  width: 1px;
  background: linear-gradient(to bottom, transparent, var(--border), transparent);
  flex-shrink: 0;
}

.auth-logo {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  margin-bottom: 4px;
}

.auth-subtitle {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 40px;
}

/* ── Preview Card (right panel) ── */
.preview-card-auth {
  width: 100%;
  max-width: 340px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all .3s ease;
}
.preview-card-auth:hover { border-color: var(--border-hover); box-shadow: 0 8px 40px rgba(0,0,0,0.4); }

.preview-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 20px;
  border-bottom: 1px solid var(--border);
}

.preview-avatar {
  width: 40px; height: 40px;
  border-radius: 50%;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.preview-avatar img { width: 100%; height: 100%; object-fit: cover; }
.preview-avatar .status-dot {
  position: absolute;
  bottom: -1px; right: -1px;
  width: 12px; height: 12px;
  border: 2px solid var(--card);
}

.preview-user-info {
  display: flex;
  flex-direction: column;
}
.preview-username { font-size: 15px; font-weight: 600; }
.preview-userstatus { font-size: 12px; color: var(--muted); }

.preview-body {
  padding: 16px 20px 20px;
  display: flex;
  gap: 12px;
}

.preview-icon-wrap {
  width: 90px; height: 90px;
  border-radius: 12px;
  overflow: visible;
  position: relative;
  flex-shrink: 0;
  background: rgba(255,255,255,0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}
.preview-icon-wrap img { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; display: block; }
.preview-small-img {
  width: 28px; height: 28px;
  border-radius: 50%;
  position: absolute;
  bottom: -4px; right: -4px;
  border: 3px solid var(--card);
  background: var(--card);
  z-index: 2;
  object-fit: cover;
}

.preview-no-image {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  width: 100%; height: 100%;
}

.preview-details {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.preview-type { font-size: 11px; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.preview-name { font-size: 15px; font-weight: 600; }
.preview-line { font-size: 13px; color: var(--subtle); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.preview-time { font-size: 11px; color: var(--muted); margin-top: 4px; }

.preview-buttons { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.preview-btn {
  font-size: 12px;
  padding: 4px 14px;
  border-radius: 4px;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border);
  color: var(--subtle);
}

/* ── Navbar ── */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(5,5,5,0.8);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 32px;
  height: 56px;
}

.nav-logo {
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff !important;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-divider {
  width: 1px;
  height: 20px;
  background: var(--border);
  margin: 0 6px;
  flex-shrink: 0;
}

.nav-links a {
  font-size: 13px;
  font-weight: 500;
  color: var(--muted) !important;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: all .2s;
}
.nav-links a:hover { color: #fff !important; background: var(--glass); }
.nav-links a.active { color: #fff !important; background: rgba(255,255,255,0.06); }

.nav-login {
  background: var(--accent) !important;
  color: #050505 !important;
  font-weight: 600 !important;
}
.nav-login:hover { box-shadow: 0 4px 20px rgba(255,255,255,0.15); }

.nav-logout {
  color: var(--danger) !important;
}

.nav-logout:hover {
  background: rgba(246,71,71,0.1) !important;
}

.nav-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--danger) !important;
  background: rgba(246,71,71,0.1);
  padding: 8px 10px !important;
}

.nav-delete:hover {
  background: rgba(246,71,71,0.2) !important;
}

.nav-warning {
  color: var(--warning) !important;
}

.nav-warning:hover,
.nav-warning.active {
  background: rgba(255,170,0,0.1) !important;
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.nav-toggle span {
  display: block;
  width: 20px; height: 2px;
  background: rgba(255,255,255,0.5);
  margin: 4px 0;
  border-radius: 1px;
  transition: .2s;
}

/* ── Main Content ── */
.main-wrap { max-width: 1280px; margin: 0 auto; padding: 80px 32px 48px; }
.page-title { font-size: 32px; font-weight: 700; letter-spacing: -0.03em; margin-bottom: 4px; }
.page-subtitle { font-size: 14px; color: var(--muted); margin-bottom: 40px; }

/* ── Section Cards ── */
.section-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 20px;
  transition: border-color .2s;
}
.section-card:hover { border-color: var(--border-hover); }
.section-card-header { margin-bottom: 20px; }
.section-card-header h2 { font-size: 15px; font-weight: 600; }

/* ── Form Rows ── */
.form-row { display: flex; gap: 16px; }
.form-row.two-col > * { flex: 1; }

/* ── Status Selector ── */
.status-selector, .type-selector {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.status-option, .type-option {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all .2s;
  font-size: 13px;
  color: var(--muted);
}
.status-option:hover, .type-option:hover { border-color: var(--border-hover); color: var(--subtle); }
.status-option.selected, .type-option.selected {
  border-color: var(--accent);
  color: #fff;
  background: var(--accent-dim);
}
.status-option input, .type-option input { display: none; }

/* ── RPC Layout ── */
.rpc-grid {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 32px;
  align-items: start;
}

/* ── Stats Cards ── */
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; }
.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  transition: border-color .2s;
}
.stat-card:hover { border-color: var(--border-hover); }
.stat-value { font-size: 28px; font-weight: 700; letter-spacing: -0.03em; }
.stat-label { font-size: 12px; color: var(--muted); margin-top: 2px; }

/* ── Dashboard Quick Actions ── */
.action-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.action-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 20px;
  text-align: center;
  transition: all .2s;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: #fff;
}
.action-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.action-card svg { width: 24px; height: 24px; color: var(--muted); }
.action-card span { font-size: 13px; font-weight: 500; }

/* ── Dashboard ── */
.dashboard-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(280px, 0.95fr);
  gap: 20px;
  margin-bottom: 24px;
}

.dashboard-panel {
  background: linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.02));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 28px;
  overflow: hidden;
  position: relative;
}

.dashboard-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top right, rgba(255,255,255,0.08), transparent 42%);
  pointer-events: none;
}

.dashboard-profile-panel,
.dashboard-summary-panel {
  min-height: 100%;
}

.dashboard-profile-head,
.dashboard-profile-copy,
.dashboard-summary-header,
.dashboard-summary-list {
  position: relative;
  z-index: 1;
}

.dashboard-profile-head {
  display: flex;
  align-items: flex-start;
  gap: 20px;
}

.dashboard-avatar-wrap {
  width: 84px;
  height: 84px;
  border-radius: 24px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
  border: 1px solid var(--border-hover);
  background: rgba(255,255,255,0.04);
}

.dashboard-avatar-img,
.dashboard-avatar-fallback {
  width: 100%;
  height: 100%;
}

.dashboard-avatar-img {
  object-fit: cover;
  display: block;
}

.dashboard-avatar-fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, rgba(255,255,255,0.14), rgba(255,255,255,0.04));
}

.dashboard-avatar-status {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 12px;
  height: 12px;
  box-shadow: 0 0 0 4px rgba(5,5,5,0.9);
}

.dashboard-profile-copy {
  min-width: 0;
}

.dashboard-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.04);
  color: var(--subtle);
  font-size: 12px;
  font-weight: 600;
  margin-bottom: 16px;
}

.dashboard-eyebrow svg,
.dashboard-chip svg,
.dashboard-stat-icon svg,
.dashboard-summary-icon svg,
.dashboard-action-icon svg,
.dashboard-check-icon svg,
.dashboard-cta svg {
  width: 18px;
  height: 18px;
}

.dashboard-title {
  margin-bottom: 10px;
}

.dashboard-subtitle {
  font-size: 14px;
  color: var(--subtle);
  max-width: 560px;
}

.dashboard-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.dashboard-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.06);
  color: #fff;
  font-size: 12px;
}

.dashboard-chip-muted {
  color: var(--subtle);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.dashboard-inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
  position: relative;
  z-index: 1;
}

.dashboard-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: #fff;
  background: rgba(255,255,255,0.04);
  transition: all .2s ease;
}

.dashboard-cta:hover {
  border-color: var(--border-hover);
  transform: translateY(-1px);
}

.dashboard-cta-primary {
  background: #fff;
  color: #050505;
  border-color: transparent;
}

.dashboard-summary-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
}

.dashboard-summary-header h2 {
  font-size: 16px;
  font-weight: 600;
}

.dashboard-summary-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(246,71,71,0.12);
  color: var(--danger);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dashboard-summary-badge.is-active {
  background: rgba(255,255,255,0.08);
  color: #fff;
}

.dashboard-summary-list {
  display: grid;
  gap: 12px;
}

.dashboard-summary-item {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.06);
}

.dashboard-summary-icon,
.dashboard-stat-icon,
.dashboard-action-icon,
.dashboard-check-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.dashboard-summary-icon {
  width: 40px;
  height: 40px;
}

.dashboard-summary-label {
  font-size: 11px;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 4px;
}

.dashboard-summary-value {
  font-size: 14px;
  color: #fff;
  word-break: break-word;
}

.dashboard-stat-grid {
  margin-bottom: 24px;
}

.dashboard-stat-card {
  padding: 22px;
}

.dashboard-stat-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.dashboard-stat-icon {
  width: 36px;
  height: 36px;
  color: #fff;
}

.dashboard-stat-value {
  font-size: 24px;
  margin-bottom: 8px;
}

.dashboard-stat-note {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-content-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 20px;
  align-items: start;
}

.dashboard-section {
  margin-bottom: 0;
}

.dashboard-section-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.dashboard-section-header p {
  margin-top: 6px;
  font-size: 13px;
  color: var(--muted);
}

.dashboard-action-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.dashboard-action-card {
  align-items: flex-start;
  text-align: left;
  border-radius: 20px;
  padding: 18px;
  min-height: 170px;
}

.dashboard-action-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  margin-bottom: 4px;
}

.dashboard-action-card span {
  font-size: 14px;
  font-weight: 600;
}

.dashboard-action-card small {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

.dashboard-checklist {
  display: grid;
  gap: 12px;
}

.dashboard-check {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.03);
}

.dashboard-check.is-complete {
  border-color: rgba(255,255,255,0.1);
}

.dashboard-check.is-pending {
  border-color: rgba(255,170,0,0.18);
  background: rgba(255,170,0,0.05);
}

.dashboard-check-icon {
  width: 40px;
  height: 40px;
}

.dashboard-check.is-pending .dashboard-check-icon {
  color: var(--warning);
  background: rgba(255,170,0,0.1);
}

.dashboard-check strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.dashboard-check span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Shared Page Hero ── */
.page-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.85fr);
  gap: 20px;
  margin-bottom: 28px;
}

.page-hero-compact {
  grid-template-columns: 1fr;
}

.page-hero-copy,
.page-hero-aside {
  position: relative;
}

.page-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  margin-bottom: 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--border);
  color: var(--subtle);
  font-size: 12px;
  font-weight: 600;
}

.page-hero-badge svg,
.page-hero-stat-icon svg,
.section-card-icon svg,
.detail-icon svg,
.asset-empty-icon svg {
  width: 18px;
  height: 18px;
}

.page-hero-title {
  font-size: clamp(32px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.05em;
  max-width: 760px;
}

.page-hero-compact .page-hero-title {
  font-size: clamp(28px, 4vw, 42px);
}

.page-hero-subtitle {
  margin-top: 16px;
  max-width: 720px;
  font-size: 15px;
  color: var(--subtle);
  line-height: 1.75;
}

.page-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 24px;
}

.page-hero-stat,
.page-hero-side-card,
.asset-empty-state {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
  border-radius: 20px;
}

.page-hero-stat {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
}

.page-hero-stat-icon,
.section-card-icon,
.detail-icon,
.asset-empty-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  border-radius: 14px;
  background: rgba(255,255,255,0.06);
  color: #fff;
}

.page-hero-stat-copy strong {
  display: block;
  font-size: 15px;
}

.page-hero-stat-copy span {
  display: block;
  font-size: 12px;
  color: var(--muted);
}

.page-hero-side-card {
  padding: 22px;
  height: 100%;
}

.section-card-header-rich {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.section-card-title {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.section-card-title h2 {
  margin: 0;
}

.section-card-title p {
  margin-top: 5px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}

.info-list {
  display: grid;
  gap: 12px;
}

.info-list-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}

.info-list-dot {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  border-radius: 999px;
  background: rgba(255,255,255,0.6);
  flex-shrink: 0;
}

.info-list-item strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.info-list-item span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.6;
}

/* ── Assets ── */
.asset-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
  margin-bottom: 24px;
}

.asset-grid-enhanced {
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
}

.asset-item-enhanced {
  padding: 14px;
  text-align: left;
  border-radius: 18px;
}

.asset-item-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.asset-rank,
.asset-type-pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  color: var(--muted);
  font-size: 11px;
}

.asset-preview-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
}

.asset-preview-empty {
  padding: 24px 12px;
  color: var(--muted);
  font-size: 12px;
}

.asset-id {
  margin-top: 6px;
  font-size: 11px;
  color: var(--muted);
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.asset-copy-btn {
  margin-top: 12px;
  width: 100%;
}

.asset-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 8px;
  padding: 40px 24px;
}

/* ── Profile ── */
.profile-hero-head {
  display: flex;
  align-items: center;
  gap: 20px;
}

.profile-hero-avatar {
  width: 88px;
  height: 88px;
}

.profile-grid-enhanced {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.detail-list {
  display: grid;
  gap: 10px;
}

.detail-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.detail-row:last-child {
  border-bottom: none;
}

.detail-copy strong {
  display: block;
  font-size: 13px;
  margin-bottom: 4px;
}

.detail-copy span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  line-height: 1.65;
  word-break: break-word;
}

.detail-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.detail-media {
  display: flex !important;
  align-items: center;
  gap: 10px;
}

.detail-thumb {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 18px;
}

/* ── RPC Forms ── */
.required-star {
  color: var(--danger);
}

.checkbox-label {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--subtle);
  font-size: 13px;
  margin: 0;
}

.checkbox-label input[type="checkbox"] {
  width: 16px;
  height: 16px;
  margin: 0;
  accent-color: #fff;
}

.status-radio {
  display: inline-flex;
  width: 10px;
  height: 10px;
  border-radius: 999px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.form-actions.equal-buttons > * {
  flex: 1 1 200px;
}

.inline-form {
  display: inline-flex;
}

.rpc-page-grid {
  align-items: start;
}

.rpc-form-card {
  margin-bottom: 20px;
}

.rpc-primary-actions {
  margin-top: 24px;
}

.rpc-stop-form {
  margin-top: 12px;
}

.rpc-preview-column {
  position: sticky;
  top: 80px;
  display: grid;
  gap: 20px;
}

.rpc-preview-card .preview-body {
  gap: 16px;
}

/* ── Status Page ── */
.status-node-card {
  gap: 16px;
}

.status-node-time {
  font-size: 11px;
  color: var(--muted);
}

.status-alert-card {
  border-color: rgba(246,71,71,0.18);
}

.status-downtime-list {
  display: grid;
  gap: 10px;
}

.status-downtime-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}

.status-downtime-item:last-child {
  border-bottom: none;
}

.status-downtime-name {
  font-weight: 500;
}

.status-downtime-time {
  margin-left: auto;
  color: var(--muted);
  text-align: right;
}

/* ── Admin ── */
.admin-grid-top,
.admin-grid-bottom {
  margin-bottom: 24px;
}

.admin-form-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.admin-node-summary {
  display: grid;
  gap: 14px;
}

.admin-node-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.admin-node-name {
  font-size: 14px;
  font-weight: 600;
}

.admin-meter {
  width: 100%;
  height: 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.admin-meter-bar,
.admin-inline-meter-bar {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, rgba(255,255,255,0.75), rgba(255,255,255,0.25));
}

.admin-table-shell {
  overflow-x: auto;
}

.admin-table-rich td {
  vertical-align: middle;
}

.admin-strong-cell {
  font-weight: 600;
}

.admin-muted-cell {
  color: var(--muted);
}

.admin-mono-cell {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12px;
  color: var(--muted);
}

.admin-inline-meter-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 110px;
}

.admin-inline-meter {
  width: 72px;
  height: 6px;
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  overflow: hidden;
}

.admin-inline-meter-value {
  font-size: 11px;
  color: var(--muted);
}

.admin-key-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-key-cell code {
  display: inline-block;
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  padding: 3px 8px;
  border-radius: 8px;
  background: var(--glass);
  font-size: 11px;
}

.admin-inline-form {
  display: inline-flex;
}

.admin-micro-btn {
  padding: 4px 10px !important;
  font-size: 11px !important;
}

.admin-mongo-form {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.admin-mongo-form input {
  flex: 1;
}

.admin-tag-list {
  display: grid;
  gap: 8px;
}

.admin-tag-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--border);
}

.admin-tag-value {
  font-size: 12px;
  color: var(--subtle);
  word-break: break-all;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.admin-status-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-transform: capitalize;
}

.admin-login-wrap {
  min-height: 100vh;
  display: flex;
  align-items: center;
}

.admin-login-shell {
  width: 100%;
  display: flex;
  justify-content: center;
}

.admin-login-card {
  width: 100%;
  max-width: 460px;
}

.admin-login-subtitle {
  margin-bottom: 24px;
}

.admin-login-actions {
  margin-top: 18px;
}

/* ── Profile Card ── */
.profile-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  max-width: 400px;
}
.profile-banner { height: 120px; background: linear-gradient(135deg, rgba(255,255,255,0.06), transparent); }
.profile-avatar-wrap {
  width: 80px; height: 80px;
  border-radius: 50%;
  border: 3px solid var(--card);
  margin-top: -40px;
  margin-left: 24px;
  overflow: hidden;
}
.profile-avatar-wrap img { width: 100%; height: 100%; object-fit: cover; }
.profile-info { padding: 16px 24px 24px; }
.profile-name { font-size: 20px; font-weight: 700; }
.profile-tag { font-size: 14px; color: var(--muted); margin-top: 2px; }
.profile-detail { font-size: 13px; color: var(--subtle); margin-top: 16px; }

/* ── Node Status ── */
.node-grid { display: grid; gap: 12px; }
.node-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
}
.node-left { display: flex; align-items: center; gap: 12px; }
.node-name { font-size: 14px; font-weight: 600; }
.node-meta { font-size: 12px; color: var(--muted); }
.node-right { display: flex; align-items: center; gap: 16px; }
.node-badge {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  font-weight: 500;
}
.node-badge.active { background: var(--accent-dim); color: var(--accent); }
.node-badge.inactive { background: rgba(246,71,71,0.1); color: var(--danger); }

/* ── Admin ── */
.admin-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.admin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.admin-table th, .admin-table td { padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
.admin-table th { font-size: 11px; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }

/* ── Legal Pages ── */
.legal-page { max-width: 680px; margin: 0 auto; }
.legal-header { text-align: center; margin-bottom: 40px; }
.legal-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  margin-bottom: 20px;
}
.legal-card h2 { font-size: 16px; font-weight: 600; margin-bottom: 8px; margin-top: 24px; }
.legal-card h2:first-child { margin-top: 0; }
.legal-card p, .legal-card li { font-size: 14px; color: var(--subtle); line-height: 1.7; }
.legal-card ul { padding-left: 20px; }
.legal-card li { margin-bottom: 6px; }

/* ── Warning Banner ── */
.warning-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  background: rgba(255,170,0,0.08);
  border: 1px solid rgba(255,170,0,0.2);
  font-size: 13px;
  margin-bottom: 20px;
}
.warning-banner svg { flex-shrink: 0; color: var(--warning); }

/* ── Home Hero ── */
.hero { text-align: center; padding: 60px 0 40px; }
.hero h1 { font-size: 48px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.hero p { font-size: 16px; color: var(--muted); max-width: 480px; margin: 16px auto 32px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; }

/* ── Features Grid ── */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-top: 40px; }
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  text-align: center;
  transition: all .2s;
}
.feature-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }
.feature-icon { margin-bottom: 16px; }
.feature-icon svg { width: 28px; height: 28px; color: var(--accent); }
.feature-card h3 { font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.feature-card p { font-size: 13px; color: var(--subtle); line-height: 1.6; }

/* ── Steps ── */
.steps { display: flex; gap: 16px; justify-content: center; margin-top: 40px; flex-wrap: wrap; }
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  flex: 1;
  min-width: 180px;
  max-width: 240px;
  text-align: center;
}
.step-num {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent-dim);
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 12px;
  font-size: 13px;
  font-weight: 700;
}
.step h4 { font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.step p { font-size: 13px; color: var(--subtle); }

/* ── Asset Grid ── */
.asset-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 12px; }
.asset-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px;
  text-align: center;
  transition: border-color .2s;
}
.asset-item:hover { border-color: var(--border-hover); }
.asset-item img { width: 100%; aspect-ratio: 1; object-fit: contain; border-radius: 4px; }
.asset-name { font-size: 11px; color: var(--muted); margin-top: 6px; word-break: break-all; }

/* ── Footer ── */
.auth-footer-text {
  font-size: 12px;
  color: var(--muted);
  margin-top: 32px;
}

/* ── Responsive ── */
@media (max-width: 900px) {
  .auth-container { flex-direction: column; }
  .auth-left { max-width: 100%; padding: 32px 24px; }
  .auth-right { padding: 32px 24px; }
  .auth-separator { width: 100%; height: 1px; background: linear-gradient(to right, transparent, var(--border), transparent); }
  .rpc-grid { grid-template-columns: 1fr; }
  .admin-grid { grid-template-columns: 1fr; }
  .page-hero,
  .asset-page-grid,
  .dashboard-hero,
  .dashboard-content-grid,
  .profile-grid-enhanced {
    grid-template-columns: 1fr;
  }
  .rpc-preview-column {
    position: static;
    top: auto;
  }
  .node-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .node-right {
    width: 100%;
    justify-content: space-between;
    flex-wrap: wrap;
  }
  .admin-mongo-form {
    flex-direction: column;
  }
  .dashboard-action-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  .nav-links.active {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 56px;
    left: 12px;
    right: 12px;
    background: rgba(5,5,5,0.96);
    backdrop-filter: blur(16px);
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: 18px;
    box-shadow: 0 18px 40px rgba(0,0,0,0.35);
  }
  .nav-links.active a {
    width: 100%;
    padding: 10px 12px;
  }
  .nav-divider {
    width: 100%;
    height: 1px;
    margin: 4px 0;
  }
  .nav-toggle { display: block; }
  .nav-inner { padding: 0 16px; }
  .main-wrap { padding: 72px 16px 32px; }
  .hero h1 { font-size: 32px; }
  .page-title { font-size: 24px; }
  .page-hero-title {
    font-size: 30px;
  }
  .page-hero-actions,
  .page-hero-stats,
  .profile-action-row {
    flex-direction: column;
    align-items: stretch;
  }
  .page-hero-stat,
  .page-hero-actions .dashboard-cta,
  .profile-action-row .dashboard-cta {
    width: 100%;
  }
  .page-hero-side-card {
    padding: 18px;
  }
  .stat-grid { grid-template-columns: 1fr; }
  .form-row.two-col { flex-direction: column; }
  .action-grid { grid-template-columns: 1fr; }
  .dashboard-panel,
  .section-card {
    padding: 20px;
  }
  .dashboard-profile-head {
    flex-direction: column;
  }
  .profile-hero-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .dashboard-avatar-wrap {
    width: 72px;
    height: 72px;
  }
  .profile-hero-avatar {
    width: 72px;
    height: 72px;
  }
  .admin-key-cell,
  .admin-tag-row,
  .admin-node-row {
    flex-wrap: wrap;
  }
  .admin-inline-meter-wrap {
    min-width: 0;
  }
  .admin-table-rich thead {
    display: none;
  }
  .admin-table-rich,
  .admin-table-rich tbody,
  .admin-table-rich tr,
  .admin-table-rich td {
    display: block;
    width: 100%;
  }
  .admin-table-rich tr {
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
  }
  .admin-table-rich td {
    border-bottom: none;
    padding: 6px 0;
    text-align: left;
  }
  .admin-table-rich td::before {
    content: attr(data-label);
    display: block;
    margin-bottom: 3px;
    font-size: 10px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
  }
  .status-downtime-item {
    flex-wrap: wrap;
  }
  .status-downtime-time {
    width: 100%;
    margin-left: 0;
    text-align: left;
  }
  .dashboard-meta,
  .dashboard-inline-actions {
    flex-direction: column;
    align-items: stretch;
  }
  .dashboard-chip,
  .dashboard-cta {
    width: 100%;
    justify-content: center;
  }
  .dashboard-summary-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .dashboard-action-grid {
    grid-template-columns: 1fr;
  }
  .dashboard-action-card {
    min-height: auto;
  }
  .form-actions,
  .form-actions.equal-buttons > * {
    width: 100%;
    flex-basis: 100%;
  }
}

/* ── Animations ── */
@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }
.animate-in { animation: slideUp .4s ease-out both; }
.animate-in-d1 { animation: slideUp .4s .1s ease-out both; }
.animate-in-d2 { animation: slideUp .4s .2s ease-out both; }
.animate-in-d3 { animation: slideUp .4s .3s ease-out both; }
