@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800&family=JetBrains+Mono:wght@400;500&display=swap');

/* ─── CSS Variables ─────────────────────────────────────── */
:root {
  --bg: #f8fafc;
  --bg-alt: #f1f5f9;
  --bg-card: #ffffff;
  --hero-from: #0f1f5c;
  --hero-to: #1a3a8f;
  --accent: #367ac7;
  --accent-light: #eff6ff;
  --accent-hover: #3f6be2;
  --text-primary: #0f172a;
  --text-secondary: #475569;
  --text-muted: #94a3b8;
  --text-white: #ffffff;
  --border: #e2e8f0;
  --border-light: #f1f5f9;
  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow: 0 4px 16px rgba(0, 0, 0, 0.07), 0 2px 6px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.1), 0 4px 12px rgba(0, 0, 0, 0.06);
  --radius: 12px;
  --radius-sm: 8px;
  --radius-lg: 16px;
  --success: #16a34a;
  --success-bg: #f0fdf4;
  --success-border: #bbf7d0;
  --danger: #dc2626;
  --danger-bg: #fef2f2;
  --danger-border: #fecaca;
  --warning: #d97706;
  --warning-bg: #fffbeb;
  --transition: all 0.18s ease;
  --font: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --mono: 'JetBrains Mono', 'Courier New', monospace;
}

/* ─── Reset & Base ───────────────────────────────────────── */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 15px;
}

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

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

img {
  max-width: 100%;
}

/* ─── Page animation ─────────────────────────────────────── */
.page-wrapper {
  animation: fadeIn 0.25s ease-out;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ═══════════════════════════════════════════════════════════
   NAVBAR
═══════════════════════════════════════════════════════════ */
.navbar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 200;
  height: 60px;
}

.navbar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  gap: 20px;
}

.logo {
  display: flex;
  align-items: center;
  gap: 9px;
  text-decoration: none;
  flex-shrink: 0;
}

.logo-img {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  object-fit: cover;
}

.logo-text {
  font-size: 19px;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.4px;
}

.logo-text span {
  color: var(--accent);
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 2px;
  margin-left: 8px;
}

.nav-links>li {
  position: relative;
}

.nav-links a {
  display: block;
  padding: 7px 13px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--text-secondary);
  border-radius: 7px;
  transition: var(--transition);
  white-space: nowrap;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--accent);
  background: var(--accent-light);
}

/* Dropdown */
.nav-dropdown:hover .dropdown-menu {
  display: block;
}

.dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-lg);
  min-width: 180px;
  list-style: none;
  overflow: hidden;
  z-index: 300;
}

.dropdown-menu li a {
  display: block;
  padding: 9px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  border-radius: 0;
}

.dropdown-menu li a:hover {
  background: var(--accent-light);
  color: var(--accent);
}

/* Nav search */
.nav-search-wrapper {
  flex: 1;
  max-width: 440px;
  margin-left: auto;
  position: relative;
}

.nav-search-input {
  width: 100%;
  height: 38px;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0 44px 0 14px;
  font-family: var(--font);
  font-size: 13px;
  color: var(--text-primary);
  background: var(--bg-alt);
  outline: none;
  transition: var(--transition);
}

.nav-search-input::placeholder {
  color: var(--text-muted);
}

.nav-search-input:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.nav-search-btn {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--accent);
  border: none;
  border-radius: 6px;
  width: 30px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  transition: var(--transition);
}

.nav-search-btn:hover {
  background: var(--accent-hover);
}

.btn-signin {
  flex-shrink: 0;
  padding: 7px 16px;
  background: var(--accent);
  color: #fff;
  border-radius: 8px;
  font-size: 13.5px;
  font-weight: 600;
  transition: var(--transition);
  white-space: nowrap;
}

.btn-signin:hover {
  background: var(--accent-hover);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 10px;
  cursor: pointer;
  font-size: 18px;
  color: var(--text-secondary);
  margin-left: auto;
}

.mobile-nav {
  display: none;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 12px 24px;
  gap: 4px;
}

.mobile-nav.open {
  display: flex;
}

.mobile-nav a {
  padding: 10px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
}

.mobile-nav a:hover {
  background: var(--accent-light);
  color: var(--accent);
}

/* ═══════════════════════════════════════════════════════════
   HERO SECTION
═══════════════════════════════════════════════════════════ */
.hero {
  background: linear-gradient(135deg, var(--hero-from) 0%, var(--hero-to) 60%, #1e40af 100%);
  padding: 52px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 80% at 70% 50%, rgba(59, 130, 246, 0.15) 0%, transparent 70%),
    radial-gradient(ellipse 40% 60% at 20% 80%, rgba(99, 102, 241, 0.1) 0%, transparent 60%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 60px;
  background: linear-gradient(to bottom, transparent, var(--bg));
  pointer-events: none;
}

.hero-inner {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  z-index: 1;
}

.hero-title {
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 6px;
  letter-spacing: -0.3px;
}

.hero-subtitle {
  font-size: 14px;
  color: rgba(255, 255, 255, 0.65);
  margin-bottom: 28px;
}

/* Hero Search */
.hero-search {
  display: flex;
  max-width: 700px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  margin-bottom: 28px;
}

.hero-search-select {
  border: none;
  border-right: 1px solid var(--border);
  background: var(--bg-alt);
  padding: 0 14px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-secondary);
  cursor: pointer;
  outline: none;
  min-width: 120px;
}

.hero-search-input {
  flex: 1;
  border: none;
  padding: 16px 16px;
  font-family: var(--font);
  font-size: 14px;
  color: var(--text-primary);
  background: transparent;
  outline: none;
}

.hero-search-input::placeholder {
  color: var(--text-muted);
}

.hero-search-btn {
  border: none;
  background: var(--accent);
  color: #fff;
  padding: 0 28px;
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.hero-search-btn:hover {
  background: var(--accent-hover);
}

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

.hero-hint {
  font-size: 11.5px;
  color: rgba(255, 255, 255, 0.5);
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 3px 10px;
}

/* ═══════════════════════════════════════════════════════════
   STATS TICKER BAR
═══════════════════════════════════════════════════════════ */
.stats-bar {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 0;
  overflow: hidden;
}

.stats-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: stretch;
  gap: 0;
}

.stat-bar-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px 10px 0;
  border-right: 1px solid var(--border-light);
  margin-right: 20px;
  font-size: 12.5px;
  white-space: nowrap;
}

.stat-bar-item:last-child {
  border-right: none;
}

.stat-bar-label {
  color: var(--text-muted);
  font-weight: 500;
}

.stat-bar-value {
  color: var(--text-primary);
  font-weight: 600;
}

.stat-bar-value.up {
  color: var(--success);
}

.stat-bar-value.down {
  color: var(--danger);
}

/* ═══════════════════════════════════════════════════════════
   MAIN CONTENT
═══════════════════════════════════════════════════════════ */
.main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 32px 24px 60px;
}

/* ─── Stats Dashboard ─────────────────────────────────────── */
.stats-dashboard {
  display: grid;
  grid-template-columns: repeat(5, 1fr) 1.6fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 32px;
  box-shadow: var(--shadow);
}

.stat-dash-item {
  background: var(--bg-card);
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  transition: var(--transition);
}

.stat-dash-item:hover {
  background: #fafbff;
}

.stat-dash-label {
  font-size: 11.5px;
  color: var(--text-muted);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.stat-dash-label svg {
  opacity: 0.5;
}

.stat-dash-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.3px;
  line-height: 1.1;
}

.stat-dash-value.blue {
  color: var(--accent);
}

.stat-dash-sub {
  font-size: 11.5px;
  color: var(--text-muted);
}

.stat-dash-sub .up {
  color: var(--success);
  font-weight: 600;
}

.stat-dash-sub .down {
  color: var(--danger);
  font-weight: 600;
}

/* Chart card in stats dashboard */
.stat-dash-chart {
  background: var(--bg-card);
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chart-title {
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#txHistoryChart {
  height: 60px !important;
  max-height: 60px;
}

/* ─── Section Headers ─────────────────────────────────────── */
.section-hdr {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}

.section-hdr-title {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-hdr-title .dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: pulse 2s infinite;
}

@keyframes pulse {

  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.6;
    transform: scale(0.85);
  }
}

.view-all-link {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
  padding: 5px 12px;
  border: 1px solid rgba(37, 99, 235, 0.2);
  border-radius: 20px;
  transition: var(--transition);
}

.view-all-link:hover {
  background: var(--accent-light);
}

/* ─── Twin Tables ─────────────────────────────────────────── */
.twin-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 32px;
}

/* ─── Cards ───────────────────────────────────────────────── */
.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: box-shadow 0.2s;
}

.card:hover {
  box-shadow: var(--shadow);
}

.card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.card-subtitle {
  font-size: 12px;
  color: var(--text-muted);
}

.card-footer {
  padding: 12px 18px;
  border-top: 1px solid var(--border-light);
  text-align: center;
}

.card-footer a {
  font-size: 13px;
  color: var(--accent);
  font-weight: 500;
}

.card-footer a:hover {
  text-decoration: underline;
}

/* ─── Block/Tx List Items ─────────────────────────────────── */
.list-items {
  list-style: none;
}

.list-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  border-bottom: 1px solid var(--border-light);
  transition: background 0.12s;
}

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

.list-item:hover {
  background: #fafbff;
}

.list-icon {
  width: 38px;
  height: 38px;
  background: var(--accent-light);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 16px;
}

.list-icon.green {
  background: var(--success-bg);
}

.list-main {
  flex: 1;
  min-width: 0;
}

.list-primary {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  display: block;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-primary:hover {
  text-decoration: underline;
}

.list-secondary {
  font-size: 11.5px;
  color: var(--text-muted);
  display: block;
  margin-top: 1px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.list-secondary a {
  color: var(--text-secondary);
  font-weight: 500;
}

.list-secondary a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.list-right {
  text-align: right;
  flex-shrink: 0;
}

.list-right .amount {
  font-size: 12px;
  font-weight: 600;
  background: var(--accent-light);
  color: var(--accent);
  padding: 3px 8px;
  border-radius: 5px;
  display: inline-block;
}

.list-right .time {
  font-size: 11px;
  color: var(--text-muted);
  display: block;
  margin-top: 4px;
}

.list-right .reward {
  font-size: 11.5px;
  color: var(--success);
  font-weight: 500;
}

/* ─── Table (Full pages) ──────────────────────────────────── */
.table-wrapper-full {
  margin-bottom: 24px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table thead th {
  padding: 10px 16px;
  text-align: left;
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.data-table tbody tr {
  border-bottom: 1px solid var(--border-light);
  transition: background 0.12s;
}

.data-table tbody tr:last-child {
  border-bottom: none;
}

.data-table tbody tr:hover {
  background: #f8faff;
}

.data-table tbody td {
  padding: 11px 16px;
  font-size: 13px;
  color: var(--text-secondary);
  vertical-align: middle;
  white-space: nowrap;
}

.data-table tbody td:first-child {
  color: var(--text-primary);
}

/* ─── Links ───────────────────────────────────────────────── */
a.hash-link {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12.5px;
  transition: var(--transition);
}

a.hash-link:hover {
  text-decoration: underline;
}

a.addr-link {
  color: var(--accent);
  font-family: var(--mono);
  font-size: 12.5px;
  transition: var(--transition);
}

a.addr-link:hover {
  text-decoration: underline;
}

a.block-link {
  color: var(--accent);
  font-weight: 600;
  font-size: 13.5px;
}

a.block-link:hover {
  text-decoration: underline;
}

/* ─── Badges ──────────────────────────────────────────────── */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 9px;
  border-radius: 5px;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.badge-success {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.badge-fail {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.badge-pending {
  background: var(--warning-bg);
  color: var(--warning);
  border: 1px solid #fde68a;
}

/* ─── Direction Badges ────────────────────────────────────── */
.badge-in {
  background: #f0fdf4;
  color: #16a34a;
  border: 1px solid #bbf7d0;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
}

.badge-out {
  background: #fef2f2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 1px 7px;
  border-radius: 4px;
  font-size: 10.5px;
  font-weight: 700;
}

/* ─── Detail Pages ────────────────────────────────────────── */
.page-hero {
  background: linear-gradient(135deg, var(--hero-from), var(--hero-to));
  padding: 28px 24px;
  color: #fff;
}

.page-hero-inner {
  max-width: 1280px;
  margin: 0 auto;
}

.page-hero-label {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-bottom: 6px;
}

.page-hero-title {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.page-hero-addr {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.85);
  word-break: break-all;
}

.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  margin-bottom: 20px;
  overflow: hidden;
}

.detail-card-header {
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 8px;
}

.detail-grid {
  display: grid;
  gap: 0;
}

.detail-row {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 16px;
  padding: 13px 20px;
  border-bottom: 1px solid var(--border-light);
  align-items: start;
}

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

.detail-key {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 500;
  display: flex;
  align-items: flex-start;
  gap: 6px;
  padding-top: 1px;
}

.detail-val {
  font-size: 13.5px;
  color: var(--text-primary);
  word-break: break-all;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 6px;
}

.detail-val.mono {
  font-family: var(--mono);
  font-size: 12.5px;
}

/* ─── Copy Button ─────────────────────────────────────────── */
.copy-btn {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 2px 8px;
  cursor: pointer;
  color: var(--text-muted);
  font-size: 11px;
  font-family: var(--font);
  transition: var(--transition);
  white-space: nowrap;
}

.copy-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

/* ─── Address Overview Cards ──────────────────────────────── */
.addr-stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 20px;
}

.addr-stat-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.addr-stat-label {
  font-size: 11.5px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.addr-stat-value {
  font-size: 22px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: -0.3px;
}

.addr-stat-value.dark {
  color: var(--text-primary);
}

.addr-stat-sub {
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}

/* ─── Pagination ──────────────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: 6px;
  justify-content: center;
  padding: 20px;
}

.page-btn {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 7px 14px;
  color: var(--text-secondary);
  font-size: 13px;
  font-family: var(--font);
  cursor: pointer;
  transition: var(--transition);
}

.page-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-light);
}

.page-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

.page-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  pointer-events: none;
}

/* ─── Page Title area ─────────────────────────────────────── */
.page-title-area {
  margin-bottom: 22px;
}

.page-title-area h1 {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 3px;
}

.page-title-area p {
  font-size: 13.5px;
  color: var(--text-muted);
}

/* ─── Table Card ──────────────────────────────────────────── */
.table-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.table-card-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border-light);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.table-card-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}

.table-card-meta {
  font-size: 12.5px;
  color: var(--text-muted);
}

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

/* ─── Gas indicator ───────────────────────────────────────── */
.gas-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  background: #fefce8;
  color: #92400e;
  border: 1px solid #fde68a;
  border-radius: 5px;
  padding: 2px 8px;
  font-weight: 600;
}

/* ─── Empty state ─────────────────────────────────────────── */
.empty-state {
  text-align: center;
  padding: 48px 24px;
  color: var(--text-muted);
}

.empty-state-icon {
  font-size: 36px;
  margin-bottom: 10px;
}

.empty-state p {
  font-size: 14px;
}

/* ─── Loading skeleton ────────────────────────────────────── */
.skeleton {
  background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 4px;
  display: inline-block;
}

@keyframes shimmer {
  0% {
    background-position: -200% 0;
  }

  100% {
    background-position: 200% 0;
  }
}

/* ─── Footer ──────────────────────────────────────────────── */
.footer {
  background: #0f172a;
  color: rgba(255, 255, 255, 0.7);
  padding: 48px 24px 28px;
  margin-top: 48px;
}

.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  margin-bottom: 40px;
}

.footer-brand {
  flex: 1;
  min-width: 200px;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}

.footer-logo span {
  color: #60a5fa;
}

.footer-tagline {
  font-size: 12.5px;
  line-height: 1.6;
}

.footer-cols {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 120px;
}

.footer-col-title {
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: rgba(255, 255, 255, 0.5);
  margin-bottom: 4px;
}

.footer-col a {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
  transition: color 0.15s;
}

.footer-col a:hover {
  color: #60a5fa;
}

.footer-bottom {
  max-width: 1280px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.35);
}

/* ─── Scrollbar ───────────────────────────────────────────── */
::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* ─── Utilities ───────────────────────────────────────────── */
.text-accent {
  color: var(--accent);
}

.text-success {
  color: var(--success);
}

.text-danger {
  color: var(--danger);
}

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

.text-secondary {
  color: var(--text-secondary);
}

.mono {
  font-family: var(--mono);
}

.fw-600 {
  font-weight: 600;
}

.fw-700 {
  font-weight: 700;
}

.time-ago {
  color: var(--text-muted);
  font-size: 12px;
}

/* ─── Responsive ──────────────────────────────────────────── */
@media (max-width: 1100px) {
  .stats-dashboard {
    grid-template-columns: repeat(3, 1fr);
  }

  .twin-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }

  .nav-search-wrapper {
    max-width: 260px;
  }

  .mobile-menu-btn {
    display: block;
  }

  .stats-dashboard {
    grid-template-columns: repeat(2, 1fr);
  }

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

@media (max-width: 640px) {
  .navbar-inner {
    gap: 10px;
  }

  .nav-search-wrapper {
    display: none;
  }

  .hero-search {
    flex-direction: column;
    border-radius: 10px;
  }

  .hero-search-select {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .hero-search-btn {
    padding: 14px 20px;
  }

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

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

  .footer-inner {
    flex-direction: column;
    gap: 28px;
  }

  .main {
    padding: 20px 16px 40px;
  }
}