* {
  box-sizing: border-box;
}

:root {
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #eee;
  background: #080808;
}

body {
  margin: 0;
  min-height: 100vh;
  background: #080808;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 24px;
  border-bottom: 1px solid #292929;
  background: #0d0d0d;
}

.site-title {
  font-size: clamp(1.55rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: .16em;
  line-height: 1.15;
  color: #eee;
}

.status {
  font: 700 .72rem ui-monospace, SFMono-Regular, Consolas, monospace;
  color: #aaa;
}

.layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  min-height: calc(100vh - 125px);
}

.map-panel {
  position: relative;
  min-height: 680px;
  border-right: 1px solid #292929;
}

#map {
  position: absolute;
  inset: 0;
}

.map-tools {
  position: absolute;
  top: 16px;
  left: 16px;
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  z-index: 5;
}

.map-tools input {
  width: 300px;
  border: 1px solid #3b3b3b;
  background: #111;
  color: #eee;
  border-radius: 8px;
  padding: 9px 11px;
  outline: none;
}

button {
  border: 1px solid #3b3b3b;
  background: #181818;
  color: #eee;
  border-radius: 8px;
  padding: 9px 12px;
  cursor: pointer;
}

button:hover {
  background: #252525;
}

.legend {
  position: absolute;
  left: 16px;
  bottom: 16px;
  display: flex;
  gap: 15px;
  padding: 9px 12px;
  border: 1px solid #292929;
  border-radius: 8px;
  background: rgba(8, 8, 8, .92);
  color: #aaa;
  font-size: .75rem;
}

.dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 5px;
  background: #aaa;
}

.line {
  display: inline-block;
  width: 15px;
  height: 2px;
  margin: 0 5px 3px 0;
  background: #777;
}

.sidebar {
  padding: 24px;
  background: #101010;
  overflow-y: auto;
}

.sidebar h2 {
  margin-top: 0;
}

.sidebar h3 {
  margin-bottom: 10px;
  font-size: .85rem;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #aaa;
}

.muted {
  color: #999;
  line-height: 1.55;
}

.stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 24px 0;
}

.stats div {
  padding: 14px;
  border: 1px solid #2b2b2b;
  border-radius: 10px;
}

.stats strong {
  display: block;
  font-size: 1.5rem;
}

.stats span {
  color: #888;
  font-size: .75rem;
}

.section {
  margin-top: 25px;
  padding-top: 18px;
  border-top: 1px solid #292929;
}

.controls {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.details {
  color: #aaa;
  line-height: 1.45;
}

.details .address {
  color: #eee;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: .72rem;
  word-break: break-all;
  margin-bottom: 12px;
}

.details dl {
  margin: 0;
}

.details dt {
  color: #777;
  font-size: .72rem;
  margin-top: 8px;
}

.details dd {
  margin: 2px 0 0;
  color: #ddd;
}

.address-activity {
  color: #aaa;
  font-size: .76rem;
  line-height: 1.5;
}

.activity-summary {
  margin-bottom: 12px;
  color: #ddd;
}

.activity-axis {
  display: flex;
  justify-content: space-between;
  color: #747474;
  font: .65rem ui-monospace, SFMono-Regular, Consolas, monospace;
}

.activity-row {
  padding: 10px 0;
  border-top: 1px solid #252525;
}

.activity-address {
  overflow: hidden;
  color: #c9c9c9;
  font: .68rem ui-monospace, SFMono-Regular, Consolas, monospace;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.activity-track {
  position: relative;
  height: 7px;
  margin: 7px 0 5px;
  border-radius: 5px;
  background: #242424;
}

.activity-range {
  position: absolute;
  top: 0;
  bottom: 0;
  min-width: 3px;
  border-radius: 5px;
  background: #f2c94c;
}

.activity-meta {
  color: #858585;
  font-size: .68rem;
}

.activity-note {
  margin: 12px 0 0;
  color: #777;
  font-size: .68rem;
  line-height: 1.5;
}

.dataset-info {
  color: #aaa;
  font-size: .78rem;
  line-height: 1.7;
  word-break: break-word;
}

.dataset-info strong {
  color: #ddd;
}

footer {
  padding: 14px 24px;
  border-top: 1px solid #292929;
  color: #666;
  font-size: .72rem;
  text-align: right;
  line-height: 1.6;
}

footer strong {
  color: #999;
}

@media (max-width: 800px) {
  .layout {
    grid-template-columns: 1fr;
  }

  .map-panel {
    min-height: 65vh;
    border-right: 0;
    border-bottom: 1px solid #292929;
  }

  .topbar {
    align-items: flex-start;
    gap: 12px;
    flex-direction: column;
  }

  .map-tools input {
    width: min(65vw, 300px);
  }
}

/* =========================================================
   MR. BONE — ON-CHAIN ADDRESS TICKER
   ========================================================= */

#wallet-ticker {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
  margin: 0 0 16px 0;
  padding: 12px;
}

#wallet-ticker .ticker-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 58px;
  padding: 10px 14px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.10);
}

#wallet-ticker .ticker-label {
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.65;
  margin-bottom: 5px;
}

#wallet-ticker strong {
  font-size: 19px;
  line-height: 1.2;
  font-weight: 700;
}

@media (max-width: 900px) {
  #wallet-ticker {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }
}

@media (max-width: 520px) {
  #wallet-ticker {
    grid-template-columns: 1fr;
  }
}

/* =========================================================
   MR. BONE — EXCHANGE WALLET HIGHLIGHT
   ========================================================= */

.legend .exchange-dot {
  display: inline-block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  margin-right: 5px;
  background: #f2c94c;
  border: 2px solid #fff1a8;
  box-shadow: 0 0 9px rgba(242, 201, 76, 0.9);
  vertical-align: -1px;
}

.legend .exchange-legend {
  color: #f4df91;
  font-weight: 700;
}

/* =========================================================
   MR. BONE — QTC BLOCK TICKER
   ========================================================= */

.block-ticker {
  display: flex;
  align-items: stretch;
  gap: 0;
  min-height: 62px;
  padding: 0 24px;
  border-bottom: 1px solid #292929;
  background: #0b0b0b;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  overflow-x: auto;
}

.block-ticker-live {
  display: flex;
  align-items: center;
  gap: 9px;
  padding-right: 22px;
  color: #e8e8e8;
  font-weight: 800;
  letter-spacing: .08em;
  white-space: nowrap;
}

.live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #5cff8d;
  box-shadow: 0 0 12px rgba(92,255,141,.8);
  animation: qtc-live-pulse 1.5s infinite;
}

.block-ticker-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 125px;
  padding: 8px 18px;
  border-left: 1px solid #292929;
}

.block-ticker-item span {
  color: #777;
  font-size: .62rem;
  letter-spacing: .1em;
}

.block-ticker-item strong {
  margin-top: 4px;
  color: #eee;
  font-size: 1rem;
}

.block-ticker-item:first-of-type strong {
  color: #fff;
}

.ticker-source strong {
  color: #aaa;
  font-size: .72rem;
}

@keyframes qtc-live-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: .45; transform: scale(.82); }
}

@media (max-width: 700px) {
  .block-ticker {
    padding: 0 12px;
  }

  .block-ticker-live {
    padding-right: 14px;
  }

  .block-ticker-item {
    min-width: 105px;
    padding: 8px 12px;
  }
}


/* ------------------------------------------------------------
   MR. BONE — PROFESSIONAL FOOTER
   ------------------------------------------------------------ */

.site-footer {
  margin-top: 0;
  padding: 28px 24px 32px;
  border-top: 1px solid rgba(255,255,255,.10);
  background: rgba(5,7,10,.96);
  color: #8d98a5;
  font-size: 12px;
  line-height: 1.6;
}

.footer-brand {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 12px;
}

.footer-brand strong {
  color: #e8edf2;
  letter-spacing: .12em;
  font-size: 13px;
}

.footer-brand span {
  color: #7d8996;
}

.footer-notice {
  max-width: 900px;
  margin: 5px 0;
}

.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin: 18px 0 14px;
}

.footer-links a {
  color: #aeb8c2;
  text-decoration: none;
}

.footer-links a:hover {
  color: #ffffff;
  text-decoration: underline;
}

.footer-copy {
  color: #68737e;
}

/* ------------------------------------------------------------
   MR. BONE — INFORMATION PAGES
   ------------------------------------------------------------ */

.info-page {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 24px 80px;
  min-height: calc(100vh - 180px);
}

.info-page h1 {
  margin: 0 0 28px;
  color: #e8edf2;
}

.info-page h2 {
  margin: 32px 0 10px;
  color: #d7dee5;
  font-size: 16px;
}

.info-page p {
  max-width: 800px;
  color: #9ba6b1;
  line-height: 1.75;
}

.info-page pre {
  display: inline-block;
  padding: 12px 16px;
  overflow-x: auto;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
  color: #cbd4dc;
}

.info-warning {
  margin: 28px 0;
  padding: 16px 18px;
  border-left: 3px solid #596673;
  background: rgba(255,255,255,.035);
  color: #9da8b3;
  line-height: 1.65;
}

.status a {
  color: inherit;
  text-decoration: none;
}

.status a:hover {
  text-decoration: underline;
}
