/* Modern minimal dashboard theme (no external deps) */

:root {
  --bg: #0b0d12;
  --bg2: #0b0d12;
  --card: rgba(255, 255, 255, 0.06);
  --card2: rgba(255, 255, 255, 0.04);
  --border: rgba(255, 255, 255, 0.09);
  --text: rgba(244, 247, 255, 0.92);
  --muted: rgba(244, 247, 255, 0.62);
  --faint: rgba(244, 247, 255, 0.42);
  --accent: #6ee7ff;
  --accent2: #a78bfa;
  --tari: #a78bfa;
  --good: #43f3a1;
  --warn: #ffd166;
  --bad: #ff5a7a;

  --radius: 16px;
  --shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

html {
  background: var(--bg);
}

body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial,
    "Apple Color Emoji", "Segoe UI Emoji";
  line-height: 1.35;
  position: relative;
}

/* No page-level gradients: keeps background truly solid across browsers */

a {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}
a:hover {
  border-bottom-color: rgba(255, 255, 255, 0.4);
}

.app {
  max-width: 1320px;
  margin: 0 auto;
  padding: 22px 18px 28px;
}

.header {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px;
  border: 1px solid var(--border);
  background: rgba(11, 13, 18, 0.72);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 240px;
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.2px;
  font-size: 16px;
}

.brand-sub,
.brand-h1 {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  margin-top: 2px;
  font-weight: 650;
  letter-spacing: 0.15px;
}

.brand-beta {
  margin-top: 6px;
  font-size: 11px;
  color: rgba(244, 247, 255, 0.62);
}

.beta-tag {
  display: inline-block;
  margin-right: 8px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 209, 102, 0.35);
  background: rgba(255, 209, 102, 0.08);
  color: rgba(255, 209, 102, 0.95);
  font-weight: 800;
  letter-spacing: 0.35px;
  font-size: 10px;
  vertical-align: baseline;
}

.brand-beta a {
  color: rgba(244, 247, 255, 0.9);
  border-bottom-color: rgba(244, 247, 255, 0.28);
}
.brand-beta a:hover {
  border-bottom-color: rgba(255, 209, 102, 0.65);
}

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

.meta {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  padding: 7px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.04);
  min-width: 0;
}

.meta-label {
  color: var(--faint);
  font-size: 11px;
  white-space: nowrap;
}

.meta-value {
  color: var(--text);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  text-align: right;
}

.price-xmr {
  color: rgba(244, 247, 255, 0.92);
}
.price-sep {
  color: rgba(244, 247, 255, 0.45);
}
.price-xtm {
  color: rgba(167, 139, 250, 0.95);
}

.main {
  margin-top: 18px;
  display: grid;
  gap: 18px;
}

.section {
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.32);
}

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

.section h2 {
  margin: 0;
  font-size: 14px;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  color: rgba(244, 247, 255, 0.82);
}

.prose {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}
.prose p {
  margin: 0 0 10px;
}
.prose p:last-child {
  margin-bottom: 0;
}
.prose strong {
  color: rgba(244, 247, 255, 0.92);
  font-weight: 750;
}
.prose code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 12px;
  color: rgba(244, 247, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 8px;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.doc-h1 {
  margin: 0 0 8px;
  font-size: 26px;
  letter-spacing: 0.2px;
  color: rgba(244, 247, 255, 0.94);
}

.doc-sub {
  margin: 0 0 14px;
  color: rgba(244, 247, 255, 0.7);
}

.prose h3 {
  margin: 16px 0 8px;
  font-size: 13px;
  letter-spacing: 0.25px;
  text-transform: uppercase;
  color: rgba(244, 247, 255, 0.82);
}

.prose ul {
  margin: 0 0 12px 18px;
  padding: 0;
}

.prose li {
  margin: 6px 0;
}

.pill {
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.pill.good {
  border-color: rgba(67, 243, 161, 0.35);
  color: rgba(67, 243, 161, 0.95);
  background: rgba(67, 243, 161, 0.08);
}
.pill.warn {
  border-color: rgba(255, 209, 102, 0.35);
  color: rgba(255, 209, 102, 0.95);
  background: rgba(255, 209, 102, 0.08);
}
.pill.bad {
  border-color: rgba(255, 90, 122, 0.35);
  color: rgba(255, 90, 122, 0.95);
  background: rgba(255, 90, 122, 0.08);
}

.grid {
  display: grid;
  gap: 12px;
  /* Desktop: 6 columns (keeps Pool/Network stats on one row) */
  grid-template-columns: repeat(6, minmax(0, 1fr));
  align-items: start;
  grid-auto-flow: dense;
}

.card.wide {
  grid-column: span 2;
}

.card {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.03));
  border-radius: 14px;
  padding: 12px 12px;
  min-height: 74px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card.tari {
  border-color: rgba(167, 139, 250, 0.22);
  background: linear-gradient(180deg, rgba(167, 139, 250, 0.08), rgba(255, 255, 255, 0.03));
}

.tari-label {
  color: rgba(167, 139, 250, 0.9);
}

.label-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.info-btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(244, 247, 255, 0.72);
  border-radius: 999px;
  width: 22px;
  height: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 750;
  cursor: pointer;
  line-height: 1;
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 120ms ease;
}
.info-btn:hover {
  border-color: rgba(110, 231, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
}
.info-btn:active {
  transform: translateY(1px);
}
.info-btn:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(110, 231, 255, 0.14);
}

.label {
  color: var(--muted);
  font-size: 12px;
}

.value {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.2px;
  font-variant-numeric: tabular-nums;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.subvalue {
  color: rgba(244, 247, 255, 0.62);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  white-space: normal;
  overflow-wrap: anywhere;
}

.rows {
  display: grid;
  gap: 6px;
  margin-top: 2px;
  min-width: 0;
}
.row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.row-label {
  color: rgba(244, 247, 255, 0.62);
  font-size: 12px;
  white-space: nowrap;
}
.row-value {
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
  line-height: 1.15;
  text-align: right;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  min-width: 0;
}
.row.tari .row-label {
  color: rgba(167, 139, 250, 0.9);
}
.row.tari .row-value {
  color: rgba(167, 139, 250, 0.95);
}

.progress {
  height: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(67, 243, 161, 0.9), rgba(110, 231, 255, 0.85));
}

.card.tari .progress-bar {
  background: linear-gradient(90deg, rgba(167, 139, 250, 0.95), rgba(110, 231, 255, 0.75));
}

.value-inline {
  font-size: 13px;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}

.hint {
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
}

.actions-row {
  margin-top: 12px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.note {
  margin-top: 12px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.18);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.note-title {
  color: rgba(244, 247, 255, 0.86);
  font-weight: 750;
  letter-spacing: 0.2px;
  margin-bottom: 4px;
}

.note code,
.meta-inline code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 12px;
  color: rgba(244, 247, 255, 0.92);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 1px 6px;
  border-radius: 8px;
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  white-space: normal;
}

.note strong {
  color: rgba(244, 247, 255, 0.9);
}

.connections {
  display: grid;
  gap: 10px;
}

.conn-row {
  display: grid;
  grid-template-columns: 110px 1fr;
  align-items: center;
  gap: 10px;
}

.codebtn {
  width: 100%;
  text-align: left;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(244, 247, 255, 0.9);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 12.5px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease, background 160ms ease;
}
.codebtn:hover {
  border-color: rgba(110, 231, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}
.codebtn:active {
  transform: translateY(1px);
}

.spark {
  width: 100%;
  height: 64px;
  margin-top: 6px;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.chart {
  width: 100%;
  height: 260px;
  display: block;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.06);
  transition: opacity 180ms ease;
}
.chart.is-loading {
  opacity: 0.7;
}

.chart-wrap {
  position: relative;
  width: 100%;
}

.chart-tooltip {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: rgba(244, 247, 255, 0.92);
  font-size: 12px;
  line-height: 1.25;
  pointer-events: none;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  max-width: 240px;
}

.chart-tooltip .tt-time {
  color: rgba(244, 247, 255, 0.62);
  font-size: 11px;
  margin-top: 2px;
}

.addrrow {
  display: block;
  width: 100%;
}

.addrtext {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(244, 247, 255, 0.9);
  font-size: 12.5px;
  line-height: 1.35;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.addrtext.addrwrap {
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
}

.copyable {
  cursor: pointer;
  -webkit-user-select: text;
  user-select: text;
}
.copyable:hover {
  color: rgba(110, 231, 255, 0.92);
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 4px;
}
.copyable.copied {
  color: rgba(67, 243, 161, 0.95);
  text-decoration: none;
  text-shadow: 0 0 14px rgba(67, 243, 161, 0.25);
}
.copyable:focus-visible {
  outline: 2px solid rgba(110, 231, 255, 0.45);
  outline-offset: 2px;
  border-radius: 10px;
}

.btn-xs {
  padding: 9px 10px;
  border-radius: 12px;
  font-size: 12px;
}

.details-grid {
  margin-top: 12px;
  display: grid;
  gap: 12px;
}

.details {
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.12);
  border-radius: 14px;
  overflow: hidden;
}

.details > summary {
  cursor: pointer;
  padding: 12px 12px;
  color: rgba(244, 247, 255, 0.88);
  font-weight: 700;
  letter-spacing: 0.2px;
  -webkit-user-select: none;
  user-select: none;
  outline: none;
  list-style: none;
}

.details > summary::-webkit-details-marker {
  display: none;
}

.details > summary::after {
  content: "▾";
  float: right;
  color: rgba(244, 247, 255, 0.55);
  transform: rotate(-90deg);
  transition: transform 140ms ease;
}

.details[open] > summary::after {
  transform: rotate(0deg);
}

.details-body {
  padding: 12px 12px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  z-index: 50;
}

.modal {
  position: fixed;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(980px, calc(100vw - 24px));
  max-height: min(86vh, 860px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(11, 13, 18, 0.98);
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.65);
  z-index: 60;
}

.modal-head {
  padding: 14px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.modal-title {
  font-weight: 850;
  letter-spacing: 0.2px;
  font-size: 14px;
}

.modal-sub {
  color: rgba(244, 247, 255, 0.62);
  font-size: 12px;
  margin-top: 2px;
}

.range-tabs {
  display: flex;
  gap: 6px;
  margin-top: 8px;
  flex-wrap: wrap;
}
.range-tabs .btn {
  border-radius: 999px;
  padding: 8px 10px;
}

.modal-body {
  padding: 14px 14px;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 14px;
}

.modal-body-onecol {
  grid-template-columns: 1fr;
}

.form {
  display: grid;
  gap: 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field-label {
  font-size: 12px;
  color: rgba(244, 247, 255, 0.72);
}

.field-help {
  font-size: 12px;
  color: rgba(244, 247, 255, 0.55);
}

.check {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: rgba(244, 247, 255, 0.82);
}

.check input {
  width: 16px;
  height: 16px;
}

.outputs {
  display: grid;
  gap: 12px;
}

.outblock {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.12);
  overflow: hidden;
}

.outhead {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.outtitle {
  font-weight: 750;
  font-size: 12px;
  letter-spacing: 0.2px;
  color: rgba(244, 247, 255, 0.86);
}

.codebox {
  margin: 0;
  padding: 12px 12px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 12px;
  line-height: 1.5;
  color: rgba(244, 247, 255, 0.92);
  white-space: pre;
  overflow: auto;
}

.lookup {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
}

input[type="text"] {
  width: 100%;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  outline: none;
  font-size: 13px;
}
input[type="text"]::placeholder {
  color: rgba(244, 247, 255, 0.35);
}
input[type="text"]:focus {
  border-color: rgba(110, 231, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.12);
}

.error {
  margin-top: 10px;
  min-height: 18px;
  color: rgba(255, 90, 122, 0.95);
  font-size: 12px;
}

.btn {
  appearance: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-radius: 14px;
  padding: 11px 12px;
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  white-space: nowrap;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease, background 160ms ease;
}
.btn:hover {
  border-color: rgba(255, 255, 255, 0.24);
}
.btn:active {
  transform: translateY(1px);
}
.btn:focus-visible,
.codebtn:focus-visible,
input[type="text"]:focus-visible {
  outline: none;
  box-shadow: 0 0 0 4px rgba(110, 231, 255, 0.14);
}

.estimator {
  gap: 10px;
}

.est-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: center;
}

.est-unit {
  appearance: none;
  padding: 12px 10px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  color: var(--text);
  outline: none;
  font-size: 13px;
  min-width: 88px;
  cursor: pointer;
}
.est-unit:focus {
  border-color: rgba(110, 231, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.12);
}

.est-out {
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.12);
  padding: 12px 12px;
  display: grid;
  gap: 8px;
}

.est-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  font-size: 12.5px;
}
.est-line strong {
  font-variant-numeric: tabular-nums;
  font-weight: 750;
  color: rgba(244, 247, 255, 0.92);
}
.est-line.tari strong {
  color: rgba(167, 139, 250, 0.95);
}

.est-note {
  margin-top: 2px;
  color: rgba(244, 247, 255, 0.55);
  font-size: 11px;
  line-height: 1.35;
}

.btn-primary {
  border: 1px solid rgba(110, 231, 255, 0.32);
  background: linear-gradient(135deg, rgba(110, 231, 255, 0.22), rgba(167, 139, 250, 0.18));
}
.btn-primary:hover {
  border-color: rgba(110, 231, 255, 0.55);
}

.btn-ghost {
  background: rgba(0, 0, 0, 0.18);
}

.table-wrap {
  overflow: auto;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(0, 0, 0, 0.16);
}

.table {
  width: 100%;
  border-collapse: collapse;
  font-variant-numeric: tabular-nums;
}

.table th,
.table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  text-align: left;
  white-space: nowrap;
}

.table th {
  color: rgba(244, 247, 255, 0.72);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22px;
  background: rgba(255, 255, 255, 0.03);
}

.table td {
  color: rgba(244, 247, 255, 0.9);
  font-size: 12.5px;
}

.table tr:hover td {
  background: rgba(255, 255, 255, 0.02);
}

.tari-row td:nth-child(2),
.tari-row td:nth-child(3) {
  color: rgba(167, 139, 250, 0.95);
}

.right {
  text-align: right !important;
}

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

.meta-inline {
  color: var(--muted);
  font-size: 12px;
}

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

.footer {
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  font-size: 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(255, 255, 255, 0.09);
  background: rgba(255, 255, 255, 0.03);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.footer-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.footer-brand {
  font-weight: 750;
  letter-spacing: 0.2px;
  color: rgba(244, 247, 255, 0.88);
}

.footer-right {
  color: var(--muted);
}
.footer-right a {
  color: rgba(244, 247, 255, 0.9);
  border-bottom: 1px solid rgba(244, 247, 255, 0.22);
  text-decoration: none;
}
.footer-right a:hover {
  border-bottom-color: rgba(255, 209, 102, 0.65);
}

.footer-dot {
  margin: 0 8px;
  color: rgba(244, 247, 255, 0.35);
}

.donate-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.addrbtn {
  padding: 4px 8px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.18);
  color: rgba(244, 247, 255, 0.9);
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono",
    "Courier New", monospace;
  font-size: 11.5px;
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 120ms ease, background 160ms ease;
}
.addrbtn:hover {
  border-color: rgba(110, 231, 255, 0.35);
  box-shadow: 0 0 0 3px rgba(110, 231, 255, 0.1);
  background: rgba(0, 0, 0, 0.22);
}
.addrbtn:active {
  transform: translateY(1px);
}

@media (max-width: 960px) {
  .grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .header {
    flex-direction: row;
    align-items: flex-start;
    top: 0;
    padding: 10px 10px;
    border-radius: 0 0 var(--radius) var(--radius);
  }
  .brand {
    min-width: 0;
    flex: 1;
  }
  .brand-text {
    min-width: 0;
  }
  .brand-name {
    font-size: 15px;
  }
  .brand-h1 {
    font-size: 12px;
    margin-top: 1px;
  }
  /* Keep the navbar lean on mobile; footer also contains support email. */
  .brand-beta {
    display: none;
  }
  .header-actions {
    width: min(210px, 52vw);
    display: flex;
    flex-direction: column;
    gap: 6px;
    justify-content: flex-start;
  }
  .grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .lookup {
    grid-template-columns: 1fr;
  }
  .conn-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }
  .meta {
    width: 100%;
    padding: 6px 8px;
    align-items: flex-start;
  }
  /* On mobile, keep labels visible (compact). */
  .header-actions .meta-label {
    display: block;
    font-size: 10px;
    margin: 0;
    white-space: nowrap;
  }
  .meta-value {
    font-size: 11px;
    white-space: nowrap;
    text-align: right;
  }
  #headerClock {
    font-size: 11px;
  }
  #priceTicker {
    font-size: 11px;
    white-space: normal;
    overflow-wrap: anywhere;
    line-height: 1.15;
  }
  #priceTicker .price-sep {
    display: none;
  }
  #priceTicker .price-xmr,
  #priceTicker .price-xtm {
    display: block;
  }
  .footer {
    flex-direction: column;
    align-items: flex-start;
  }

  /* Doc pages: center the single "Back to dashboard" action. */
  .doc-page .header {
    flex-direction: column;
    align-items: center;
    gap: 8px;
  }
  .doc-page .brand {
    flex: 0;
    justify-content: center;
    text-align: center;
  }
  .doc-page .brand-text {
    text-align: center;
  }
  .doc-page .header-actions {
    width: 100%;
    max-width: 320px;
    align-items: center;
  }

  .modal-body {
    grid-template-columns: 1fr;
  }
}

