:root {
  color-scheme: dark;
  --bg: #071012;
  --panel: #0d1a1d;
  --panel-2: #102125;
  --border: #1f383d;
  --text: #eef8f7;
  --muted: #88a5a8;
  --accent: #32d3b4;
  --accent-soft: rgba(50, 211, 180, 0.12);
  --warning: #f7c75d;
  --danger: #ff7b7b;
  --shadow: 0 18px 40px rgba(0,0,0,.24);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: radial-gradient(circle at 50% -20%, #17373b 0, var(--bg) 38%); color: var(--text); font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; }
a { color: var(--accent); text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; }
.topbar { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; padding: 14px max(20px, calc((100vw - 1180px)/2)); border-bottom: 1px solid rgba(31,56,61,.8); background: rgba(7,16,18,.88); backdrop-filter: blur(14px); }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); }
.brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.brand span { display: grid; }
.brand strong { font-size: 1.02rem; }
.brand small { color: var(--muted); }
.status-badge { padding: 8px 12px; border: 1px solid var(--border); border-radius: 999px; font-size: .86rem; }
.status-badge.online { color: var(--accent); background: var(--accent-soft); border-color: rgba(50,211,180,.35); }
.status-badge.offline { color: var(--danger); background: rgba(255,123,123,.08); border-color: rgba(255,123,123,.3); }
.status-badge.pending { color: var(--warning); }
main { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 52px 0 36px; }
.hero { display: grid; grid-template-columns: 1.05fr .95fr; gap: 42px; align-items: end; padding: 24px 0 34px; }
.eyebrow { margin: 0 0 8px; color: var(--accent); font-size: .75rem; font-weight: 700; letter-spacing: .16em; }
h1 { max-width: 720px; margin: 0; font-size: clamp(2.3rem, 5vw, 4.7rem); line-height: .98; letter-spacing: -.045em; }
h2 { margin: 0; font-size: 1.25rem; }
.hero-copy { max-width: 690px; color: var(--muted); font-size: 1.04rem; line-height: 1.65; }
.search-box { padding: 20px; border: 1px solid var(--border); border-radius: 18px; background: rgba(13,26,29,.82); box-shadow: var(--shadow); }
.search-box label { display: block; margin-bottom: 9px; font-weight: 650; }
.search-row { display: flex; gap: 10px; }
.search-row input { min-width: 0; flex: 1; padding: 13px 14px; color: var(--text); background: #081316; border: 1px solid var(--border); border-radius: 11px; outline: none; }
.search-row input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.search-row button, .primary-button { padding: 12px 18px; border: 0; border-radius: 11px; color: #021311; background: var(--accent); font-weight: 750; }
.search-box p { margin: 10px 0 0; color: var(--muted); font-size: .83rem; }
.metrics { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 0 0 18px; }
.metrics article { min-width: 0; padding: 18px; border: 1px solid var(--border); border-radius: 15px; background: var(--panel); }
.metrics span, .metrics small { display: block; color: var(--muted); }
.metrics strong { display: block; margin: 8px 0 5px; overflow: hidden; font-size: 1.7rem; text-overflow: ellipsis; }
.metrics small { overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.panel-grid { display: grid; grid-template-columns: minmax(0, 2.15fr) minmax(260px, .85fr); gap: 18px; }
.panel { border: 1px solid var(--border); border-radius: 16px; background: rgba(13,26,29,.94); box-shadow: var(--shadow); }
.panel-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--border); }
.secondary-button { padding: 8px 12px; color: var(--text); background: transparent; border: 1px solid var(--border); border-radius: 9px; }
.secondary-button:hover { border-color: var(--accent); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 13px 16px; border-bottom: 1px solid rgba(31,56,61,.65); text-align: left; white-space: nowrap; }
th { color: var(--muted); font-size: .78rem; font-weight: 650; text-transform: uppercase; letter-spacing: .06em; }
td { font-size: .93rem; }
tbody tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(50,211,180,.035); }
.hash { display: inline-block; max-width: 240px; overflow: hidden; vertical-align: bottom; text-overflow: ellipsis; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
.details-list { margin: 0; padding: 7px 20px 16px; }
.details-list div { padding: 13px 0; border-bottom: 1px solid rgba(31,56,61,.65); }
.details-list div:last-child { border-bottom: 0; }
.details-list dt { color: var(--muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.details-list dd { margin: 6px 0 0; overflow-wrap: anywhere; }
.result-panel, .mempool-panel { margin-top: 18px; }
.result-panel.hidden { display: none; }
#resultContent, #mempoolContent { padding: 20px; }
.summary-grid { display: grid; grid-template-columns: repeat(4, minmax(0,1fr)); gap: 12px; margin-bottom: 20px; }
.summary-item { padding: 14px; border: 1px solid var(--border); border-radius: 12px; background: var(--panel-2); }
.summary-item span { display: block; color: var(--muted); font-size: .8rem; }
.summary-item strong { display: block; margin-top: 6px; overflow-wrap: anywhere; }
.data-section { margin-top: 20px; }
.data-section h3 { margin: 0 0 10px; font-size: 1rem; }
.transaction-card { margin-top: 12px; padding: 15px; border: 1px solid var(--border); border-radius: 12px; background: #0a1719; }
.transaction-card p { margin: 7px 0; overflow-wrap: anywhere; }
.io-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.io-list { padding: 12px; border: 1px solid var(--border); border-radius: 10px; }
.io-list h4 { margin: 0 0 10px; }
.io-list div { padding: 8px 0; border-bottom: 1px solid rgba(31,56,61,.55); overflow-wrap: anywhere; }
.io-list div:last-child { border: 0; }
.empty { padding: 28px !important; color: var(--muted); text-align: center; }
.error-box { padding: 14px; color: #ffd1d1; background: rgba(255,123,123,.08); border: 1px solid rgba(255,123,123,.25); border-radius: 11px; }
.tx-list { display: grid; gap: 8px; }
.tx-link { display: block; padding: 10px 12px; overflow: hidden; color: var(--accent); background: var(--panel-2); border: 1px solid var(--border); border-radius: 9px; text-overflow: ellipsis; white-space: nowrap; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
footer { display: flex; justify-content: space-between; gap: 16px; width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 18px 0 34px; color: var(--muted); font-size: .85rem; }
@media (max-width: 900px) { .hero, .panel-grid { grid-template-columns: 1fr; } .metrics { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 620px) { main { width: min(100% - 20px, 1180px); padding-top: 28px; } .topbar { padding: 11px 12px; } .brand small { display: none; } .hero { gap: 20px; } .search-row { flex-direction: column; } .metrics, .summary-grid, .io-grid { grid-template-columns: 1fr; } .panel-heading { align-items: flex-start; } footer { width: calc(100% - 20px); flex-direction: column; } }
