:root {
  --bg: #0a0d12;
  --panel: #111722;
  --panel-2: #151d2a;
  --border: #263247;
  --text: #f5f7fb;
  --muted: #93a0b5;
  --accent: #64d38a;
  --accent-2: #9fe7b7;
  --danger: #ff7f7f;
  --shadow: 0 18px 40px rgba(0, 0, 0, .24);
}

* { box-sizing: border-box; }

html { color-scheme: dark; }

body {
  margin: 0;
  background:
    radial-gradient(circle at 15% -10%, rgba(100, 211, 138, .12), transparent 34rem),
    var(--bg);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

button, input { font: inherit; }

.site-header {
  border-bottom: 1px solid var(--border);
  background: rgba(10, 13, 18, .86);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 10;
}

.header-inner, .wrap {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

.header-inner {
  min-height: 170px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

h1, h2, h3, p { margin-top: 0; }

h1 {
  font-size: clamp(2.2rem, 5vw, 4.8rem);
  line-height: .95;
  margin-bottom: 18px;
  letter-spacing: -.05em;
}

h2 {
  margin-bottom: 0;
  font-size: 1.55rem;
  letter-spacing: -.025em;
}

h3 { margin: 0; }

.eyebrow {
  color: var(--accent);
  font-size: .72rem;
  letter-spacing: .16em;
  font-weight: 800;
  margin-bottom: 10px;
}

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

.subhead {
  margin-bottom: 0;
  max-width: 650px;
  font-size: 1.03rem;
}

.live-pill {
  border: 1px solid var(--border);
  background: var(--panel);
  border-radius: 999px;
  padding: 9px 14px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #f1b66c;
  box-shadow: 0 0 0 4px rgba(241, 182, 108, .12);
}

.live-pill.ok .dot {
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(100, 211, 138, .13);
}

.live-pill.error .dot {
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(255, 127, 127, .13);
}

.wrap { padding-top: 28px; }

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 16px;
}

.stat-card, .panel {
  border: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(21, 29, 42, .95), rgba(17, 23, 34, .95));
  box-shadow: var(--shadow);
}

.stat-card {
  border-radius: 16px;
  padding: 22px;
  min-height: 126px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.stat-label {
  color: var(--muted);
  font-size: .82rem;
}

.stat-value {
  font-size: clamp(1.7rem, 3vw, 2.7rem);
  letter-spacing: -.04em;
}

.stat-time { font-size: clamp(1.15rem, 2vw, 1.65rem); }

.panel {
  border-radius: 18px;
  padding: 22px;
  margin-bottom: 16px;
}

.panel-heading, .section-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.panel-heading { margin-bottom: 18px; }

.search-row input {
  width: 100%;
  border: 1px solid var(--border);
  background: #0c1119;
  color: var(--text);
  border-radius: 12px;
  padding: 15px 16px;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.search-row input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(100, 211, 138, .12);
}

.status-line {
  min-height: 23px;
  padding-top: 8px;
  font-size: .84rem;
}

.ghost-btn {
  border: 1px solid var(--border);
  background: #0d131c;
  color: var(--text);
  padding: 9px 13px;
  border-radius: 10px;
  cursor: pointer;
}

.ghost-btn:hover { border-color: #40506b; }

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: 12px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th, td {
  text-align: left;
  padding: 13px 14px;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

th {
  color: var(--muted);
  font-size: .73rem;
  text-transform: uppercase;
  letter-spacing: .07em;
  font-weight: 750;
  background: rgba(8, 12, 18, .55);
}

td { font-size: .9rem; }

tbody tr:last-child td { border-bottom: none; }

.clickable-row { cursor: pointer; }

.clickable-row:hover td {
  background: rgba(100, 211, 138, .055);
}

.name-cell {
  font-weight: 750;
  color: var(--accent-2);
}

.empty-cell {
  color: var(--muted);
  text-align: center;
  padding: 30px;
}

.detail-panel {
  border-color: rgba(100, 211, 138, .45);
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 4px 0 24px;
}

.detail-stats > div {
  background: #0c1119;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 15px;
}

.detail-stats span {
  display: block;
  color: var(--muted);
  font-size: .75rem;
  margin-bottom: 8px;
}

.section-title-row {
  margin: 22px 0 12px;
}

footer {
  border-top: 1px solid var(--border);
  margin-top: 38px;
  color: var(--muted);
}

.footer-inner {
  min-height: 90px;
  padding-top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  font-size: .82rem;
}

.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;
}

@media (max-width: 760px) {
  .header-inner {
    min-height: 210px;
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
  }

  .stats-grid, .detail-stats {
    grid-template-columns: 1fr;
  }

  .panel { padding: 16px; }
}
.receiver-banner {
  background: rgba(100, 211, 138, 0.10);
  border: 1px solid rgba(100, 211, 138, 0.45);
  border-radius: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
  color: #f5f7fb;
}

.receiver-banner strong {
  color: #9fe7b7;
  margin-right: 8px;
}

.receiver-banner span {
  color: #93a0b5;
}
