/**
 * Axionova BlockExplorer - Unified Design System
 * Shared across every axnv-be page (explorer, block, transaction, address,
 * token, staking, presale, governance) so the whole plugin reads as one
 * product, on the same visual language as the main Axionova site.
 */

/* ============================================
   FORCE DARK BACKGROUND ON EXPLORER PAGES
   ============================================ */
body:has(.axnv-explorer),
.page:has(.axnv-explorer),
#content:has(.axnv-explorer),
.site-content:has(.axnv-explorer),
.main-content:has(.axnv-explorer) {
  background: #000317 !important;
}

/* The theme's .site-main class (needed on the wrapper for correct
   header-to-content spacing) also carries a max-width constraint at
   desktop sizes, which boxes .axnv-explorer in and leaves flat black
   margins outside it. .axnv-explorer is meant to bleed edge to edge —
   its own .axnv-explorer-container handles the actual content width. */
.site-main:has(.axnv-explorer),
.page-content:has(.axnv-explorer) {
  max-width: none !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

/* No underlines anywhere on explorer pages, links included — any
   text-decoration set on a specific element wins via source order
   below, but this is the baseline for every link. */
.axnv-explorer a,
.axnv-explorer a:hover,
.axnv-explorer a:focus,
.axnv-explorer a:visited {
  text-decoration: none !important;
}

/* ============================================
   DESIGN TOKENS
   ============================================ */
.axnv-explorer,
.axnv-explorer-container {
  --axnv-bg: #000317;
  --axnv-bg-soft: #000317;
  --axnv-navy: #0a1730;
  --axnv-card: linear-gradient(180deg, rgba(15, 27, 61, 0.9) 0%, rgba(7, 13, 33, 0.95) 100%);
  --axnv-card-hover: linear-gradient(180deg, rgba(19, 34, 74, 0.92) 0%, rgba(9, 16, 40, 0.96) 100%);
  --axnv-border: rgba(66, 176, 255, 0.32);
  --axnv-border-strong: rgba(66, 202, 255, 0.65);
  --axnv-glow: 0 0 0 1px rgba(66, 176, 255, 0.06), 0 0 26px rgba(24, 130, 255, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --axnv-glow-strong: 0 0 0 1px rgba(66, 202, 255, 0.12), 0 0 34px rgba(45, 170, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  --axnv-text: #f5f8ff;
  --axnv-muted: #8b96b5;
  --axnv-soft: #c7d3ee;
  --axnv-cyan: #42e8ff;
  --axnv-cyan-soft: rgba(66, 232, 255, 0.12);
  --axnv-blue: #01b9fc;
  --axnv-blue-deep: #0a5fd6;
  --axnv-purple: #8b5cf6;
  --axnv-green: #19f5b8;
  --axnv-orange: #f5a623;
  --axnv-red: #ff6b7a;
  --axnv-space-xs: 0.5rem;
  --axnv-space-sm: 0.75rem;
  --axnv-space-md: 1rem;
  --axnv-space-lg: 1.5rem;
  --axnv-space-xl: 2rem;
  --axnv-radius-sm: 8px;
  --axnv-radius-md: 12px;
  --axnv-radius-lg: 18px;
  --axnv-radius-xl: 24px;
  --axnv-radius-full: 9999px;
  --axnv-font: "Inter", "SF Pro Display", system-ui, -apple-system, sans-serif;
  --axnv-font-mono: "JetBrains Mono", "Fira Code", ui-monospace, monospace;
  --axnv-transition-fast: 0.15s ease;
  --axnv-transition: 0.2s ease;
  --axnv-shadow: 0 24px 70px rgba(0, 0, 0, 0.4);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

/* ============================================
   EXPLORER CONTAINER & BASE
   ============================================ */

.axnv-explorer {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: #000317;
  min-height: 100vh;
  font-family: var(--axnv-font);
  color: var(--axnv-text);
  line-height: 1.5;
  padding-bottom: var(--axnv-space-xl);
}

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

.axnv-explorer-container {
  position: relative;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--axnv-space-lg);
}

/* ============================================
   BREADCRUMB
   ============================================ */
.axnv-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: var(--axnv-space-lg) 0 0;
  color: var(--axnv-muted);
  font-size: 0.8125rem;
}

.axnv-breadcrumb a:hover {
  color: var(--axnv-cyan);
}

.axnv-breadcrumb span {
  color: var(--axnv-border-strong);
}

.axnv-breadcrumb strong {
  color: var(--axnv-soft);
  font-weight: 500;
  font-family: var(--axnv-font-mono);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 320px;
}

/* ============================================
   HERO SECTION
   ============================================ */
.axnv-explorer-hero {
  position: relative;
  overflow: hidden;
  background: #000316;
  margin: 0 0 var(--axnv-space-xl);
  padding: 4.5rem var(--axnv-space-xl) 3.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--axnv-space-md);
}

.axnv-explorer-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
}

.axnv-explorer-starfield {
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(1.5px 1.5px at 8% 22%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 18% 68%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 28% 15%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 42% 78%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 55% 30%, rgba(255, 255, 255, 0.9), transparent),
    radial-gradient(1px 1px at 68% 60%, rgba(255, 255, 255, 0.7), transparent),
    radial-gradient(1.5px 1.5px at 78% 20%, rgba(255, 255, 255, 0.85), transparent),
    radial-gradient(1px 1px at 88% 72%, rgba(255, 255, 255, 0.6), transparent),
    radial-gradient(1.5px 1.5px at 95% 40%, rgba(255, 255, 255, 0.8), transparent),
    radial-gradient(1px 1px at 35% 45%, rgba(255, 255, 255, 0.5), transparent),
    radial-gradient(1px 1px at 62% 88%, rgba(255, 255, 255, 0.5), transparent);
  background-repeat: no-repeat;
  opacity: 0.9;
  mask-image: linear-gradient(to bottom, black, transparent 92%);
}

.axnv-explorer-planet {
  position: absolute;
  left: 50%;
  bottom: -62%;
  transform: translateX(-50%);
  width: 130%;
  max-width: 1100px;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 28%, rgba(120, 200, 255, 0.55), transparent 42%),
    radial-gradient(circle at 65% 60%, rgba(66, 232, 255, 0.28), transparent 40%),
    linear-gradient(160deg, rgba(10, 60, 140, 0.9), rgba(2, 10, 30, 0.98));
  box-shadow:
    inset 0 0 140px rgba(66, 176, 255, 0.35),
    0 -40px 140px rgba(66, 176, 255, 0.25);
}

.axnv-explorer-planet::before {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid rgba(130, 210, 255, 0.35);
  filter: blur(1px);
}

.axnv-explorer-hero-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--axnv-space-md);
  max-width: 720px;
}

.axnv-explorer-hero-content h1 {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  letter-spacing: -0.01em;
}

.axnv-explorer-tagline {
  margin: 0;
  color: var(--axnv-soft);
  font-size: 1rem;
}

/* Search bar in hero */
.axnv-explorer-search {
  position: relative;
  width: 100%;
  max-width: 640px;
  display: flex;
  align-items: center;
  margin-top: var(--axnv-space-sm);
}

.axnv-explorer-search input[type="text"] {
  width: 100%;
  background: rgba(4, 10, 24, 0.85);
  border: 1px solid rgba(66, 176, 255, 0.3);
  border-radius: var(--axnv-radius-full);
  padding: 0.9rem 3.75rem 0.9rem 2.75rem;
  font-size: 0.9375rem;
  color: var(--axnv-text);
  font-family: var(--axnv-font);
  outline: none;
  transition: all var(--axnv-transition);
}

.axnv-explorer-search::before {
  content: '';
  position: absolute;
  left: 1.1rem;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  height: 18px;
  z-index: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b8199' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
}

.axnv-explorer-search input[type="text"]::placeholder {
  color: var(--axnv-muted);
}

.axnv-explorer-search input[type="text"]:focus {
  border-color: var(--axnv-cyan);
  box-shadow: 0 0 0 3px rgba(66, 232, 255, 0.18);
}

.axnv-explorer-search input[type="text"]:focus-visible {
  outline: 2px solid var(--axnv-cyan);
  outline-offset: 2px;
}

/* button.axnv-... (not just .axnv-...): the theme's reset.css matches
   this element via [type=button], which ties our single-class selector
   on specificity and loads after us, so a plain class selector here
   silently loses that tie (width/padding/border-radius/display all got
   clobbered back to reset.css's plain-button look). The extra element
   qualifier makes this selector unambiguously more specific. */
button.axnv-explorer-search-btn {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  padding: 0;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--axnv-cyan), var(--axnv-blue));
  color: #04101f;
  cursor: pointer;
  box-shadow: 0 0 18px rgba(66, 202, 255, 0.5);
  transition: all var(--axnv-transition-fast);
}

button.axnv-explorer-search-btn:hover {
  box-shadow: 0 0 26px rgba(66, 202, 255, 0.7);
}

button.axnv-explorer-search-btn svg {
  width: 18px;
  height: 18px;
}

/* ============================================
   PANEL HEADER (icon + title + subtitle + action)
   ============================================ */
.axnv-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--axnv-space-md);
  margin-bottom: var(--axnv-space-md);
  flex-wrap: wrap;
}

.axnv-panel-title {
  display: flex;
  align-items: center;
  gap: var(--axnv-space-sm);
}

.axnv-panel-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--axnv-radius-sm);
  background: var(--axnv-cyan-soft);
  color: var(--axnv-cyan);
}

.axnv-panel-icon svg {
  width: 17px;
  height: 17px;
}

.axnv-panel-title h2 {
  margin: 0;
  padding: 0;
  border: none;
  font-size: 1.0625rem;
  font-weight: 650;
  color: var(--axnv-text);
}

.axnv-panel-title p {
  margin: 2px 0 0;
  font-size: 0.8125rem;
  color: var(--axnv-muted);
}

.axnv-panel-action {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--axnv-cyan);
  white-space: nowrap;
}

.axnv-panel-action:hover {
  color: var(--axnv-text);
}

/* ============================================
   STATS GRID
   ============================================ */
.axnv-dashboard-grid,
.axnv-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--axnv-space-md);
  margin-bottom: var(--axnv-space-xl);
}

.axnv-dashboard-grid .axnv-stat-card,
.axnv-stat-card {
  background: var(--axnv-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--axnv-border);
  border-radius: var(--axnv-radius-md);
  padding: var(--axnv-space-md);
  transition: all var(--axnv-transition);
  display: flex;
  align-items: flex-start;
  gap: var(--axnv-space-sm);
  box-shadow: var(--axnv-glow);
}

.axnv-dashboard-grid .axnv-stat-card:hover,
.axnv-stat-card:hover {
  background: var(--axnv-card-hover);
  border-color: var(--axnv-border-strong);
  box-shadow: var(--axnv-glow-strong);
  transform: translateY(-1px);
}

.axnv-stat-icon {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(66, 202, 255, 0.4), rgba(24, 90, 200, 0.16));
  border: 1px solid rgba(66, 202, 255, 0.3);
  box-shadow: 0 0 16px rgba(45, 170, 255, 0.35), inset 0 0 10px rgba(66, 202, 255, 0.18);
  flex-shrink: 0;
}

.axnv-stat-icon svg {
  width: 16px;
  height: 16px;
  color: var(--axnv-cyan);
}

.axnv-stat-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.axnv-stat-label {
  font-size: 0.75rem;
  color: var(--axnv-muted);
  margin-bottom: 0.125rem;
}

.axnv-stat-value {
  font-size: 1rem;
  font-weight: 650;
  color: var(--axnv-text);
  font-family: var(--axnv-font);
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Plain content card (used for detail panels, empty/error states) */
.axnv-card {
  background: var(--axnv-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--axnv-border);
  border-radius: var(--axnv-radius-md);
  padding: var(--axnv-space-lg);
  transition: all var(--axnv-transition);
  box-shadow: var(--axnv-glow);
}

.axnv-card:hover {
  border-color: var(--axnv-border-strong);
  box-shadow: var(--axnv-glow-strong);
}

.axnv-card h2 {
  font-size: 1rem;
  font-weight: 650;
  color: var(--axnv-text);
  margin: 0 0 var(--axnv-space-md);
  border: none;
  padding: 0;
}

.axnv-card h3 {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--axnv-muted);
  margin: 0 0 0.375rem;
}

/* ============================================
   SECTIONS
   ============================================ */
.axnv-explorer section,
.axnv-explorer-section {
  margin: var(--axnv-space-xl) 0;
}

.axnv-explorer section h2 {
  display: flex;
  align-items: center;
  gap: var(--axnv-space-sm);
  font-size: 1.0625rem;
  font-weight: 650;
  color: var(--axnv-text);
  margin: 0 0 var(--axnv-space-md);
  padding-bottom: var(--axnv-space-sm);
  border-bottom: 1px solid var(--axnv-border);
}

.axnv-explorer-section > h1 {
  font-size: 1.375rem;
  font-weight: 700;
  margin: 0 0 var(--axnv-space-lg);
  color: var(--axnv-text);
}

/* ============================================
   DATA TABLES (server-rendered <table>)
   ============================================ */
.axnv-data-table,
table.axnv-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.875rem;
  background: var(--axnv-card);
  border: 1px solid var(--axnv-border);
  border-radius: var(--axnv-radius-md);
  overflow: hidden;
  box-shadow: var(--axnv-glow);
}

.axnv-data-table thead,
table.axnv-table tr:first-child {
  background: rgba(255, 255, 255, 0.03);
}

.axnv-data-table th,
table.axnv-table th {
  padding: var(--axnv-space-sm) var(--axnv-space-md);
  text-align: left;
  font-weight: 550;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--axnv-muted);
  border-bottom: 1px solid var(--axnv-border);
  white-space: nowrap;
}

.axnv-data-table td,
table.axnv-table td {
  padding: var(--axnv-space-sm) var(--axnv-space-md);
  border-bottom: 1px solid var(--axnv-border);
  color: var(--axnv-text);
  vertical-align: middle;
  font-size: 0.875rem;
}

.axnv-data-table tbody tr,
table.axnv-table tr {
  transition: background var(--axnv-transition-fast);
}

.axnv-data-table tbody tr:hover,
table.axnv-table tr:hover {
  background: rgba(66, 232, 255, 0.04);
}

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

.axnv-data-table a,
table.axnv-table a {
  color: var(--axnv-cyan);
  transition: all var(--axnv-transition-fast);
  font-family: var(--axnv-font-mono);
  font-size: 0.8125rem;
}

.axnv-data-table a:hover,
table.axnv-table a:hover {
  color: var(--axnv-text);
}

table.axnv-table pre {
  max-width: 420px;
  overflow-x: auto;
  margin: 0;
  font-size: 0.75rem;
}

/* ============================================
   JS-RENDERED TABLES (div-based grid tables)
   ============================================ */
.axnv-section {
  margin: var(--axnv-space-xl) 0;
}

.axnv-section h2 {
  display: flex;
  align-items: center;
  gap: var(--axnv-space-sm);
  font-size: 1.0625rem;
  font-weight: 650;
  color: var(--axnv-text);
  margin: 0 0 4px;
  padding-bottom: var(--axnv-space-sm);
  border-bottom: 1px solid var(--axnv-border);
}

.axnv-section > p {
  color: var(--axnv-muted);
  font-size: 0.8125rem;
  margin: 0 0 var(--axnv-space-md);
}

.axnv-table {
  display: flex;
  flex-direction: column;
  background: var(--axnv-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--axnv-border);
  border-radius: var(--axnv-radius-md);
  overflow: hidden;
  box-shadow: var(--axnv-glow);
}

.axnv-table-head {
  display: grid;
  grid-template-columns: 120px 120px 1fr;
  gap: var(--axnv-space-md);
  padding: var(--axnv-space-sm) var(--axnv-space-md);
  background: rgba(255, 255, 255, 0.03);
  font-weight: 550;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--axnv-muted);
  border-bottom: 1px solid var(--axnv-border);
}

.axnv-table-row {
  display: grid;
  grid-template-columns: 120px 120px 1fr;
  gap: var(--axnv-space-md);
  padding: var(--axnv-space-sm) var(--axnv-space-md);
  border-bottom: 1px solid var(--axnv-border);
  transition: background var(--axnv-transition-fast);
  font-size: 0.875rem;
  align-items: center;
}

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

.axnv-table-row:hover {
  background: rgba(66, 232, 255, 0.04);
}

.axnv-table-row a {
  color: var(--axnv-cyan);
  font-family: var(--axnv-font-mono);
  font-size: 0.8125rem;
}

.axnv-table-row a:hover {
  color: var(--axnv-text);
}

.axnv-table-row div {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 4-column table variant for blocks (no Txns column) */
.axnv-table-4 .axnv-table-head {
  grid-template-columns: 150px 140px 90px 1fr;
}

.axnv-table-4 .axnv-table-row {
  grid-template-columns: 150px 140px 90px 1fr;
}

/* 5-column table variant for blocks */
.axnv-table-5 .axnv-table-head {
  grid-template-columns: 130px 140px 140px 90px 1fr;
}

.axnv-table-5 .axnv-table-row {
  grid-template-columns: 130px 140px 140px 90px 1fr;
}

/* 6-column table variant for transactions (adds Method / Type) */
.axnv-table-6 .axnv-table-head {
  grid-template-columns: 150px 150px 130px 130px 160px 1fr;
}

.axnv-table-6 .axnv-table-row {
  grid-template-columns: 150px 150px 130px 130px 160px 1fr;
}

/* Old 4x4 grid compatibility */
.axnv-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* ============================================
   BADGES / PILLS
   ============================================ */
.axnv-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: var(--axnv-radius-full);
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.axnv-badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.axnv-badge.success {
  color: var(--axnv-green);
  background: rgba(25, 245, 184, 0.12);
  border-color: rgba(25, 245, 184, 0.28);
}

.axnv-badge.failed {
  color: var(--axnv-red);
  background: rgba(255, 107, 122, 0.12);
  border-color: rgba(255, 107, 122, 0.28);
}

.axnv-badge.pending {
  color: var(--axnv-orange);
  background: rgba(245, 166, 35, 0.12);
  border-color: rgba(245, 166, 35, 0.28);
}

.axnv-badge.contract {
  color: var(--axnv-purple);
  background: rgba(139, 92, 246, 0.12);
  border-color: rgba(139, 92, 246, 0.28);
}

.axnv-badge.wallet {
  color: var(--axnv-cyan);
  background: var(--axnv-cyan-soft);
  border-color: rgba(66, 232, 255, 0.28);
}

.axnv-method {
  display: inline-block;
  padding: 3px 9px;
  border-radius: var(--axnv-radius-sm);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--axnv-border);
  color: var(--axnv-soft);
  font-family: var(--axnv-font-mono);
  font-size: 0.75rem;
}

/* ============================================
   COPY BUTTON
   ============================================ */
.axnv-copy {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
  padding: 3px 10px;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--axnv-cyan);
  background: var(--axnv-cyan-soft);
  border: 1px solid rgba(66, 232, 255, 0.24);
  border-radius: var(--axnv-radius-full);
  cursor: pointer;
  transition: all var(--axnv-transition-fast);
}

.axnv-copy:hover {
  background: rgba(66, 232, 255, 0.2);
}

/* ============================================
   EVENT CARDS (decoded tx events)
   ============================================ */
.axnv-event-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: var(--axnv-space-md);
}

.axnv-event-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--axnv-border);
  border-radius: var(--axnv-radius-md);
  padding: var(--axnv-space-md);
}

.axnv-event-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--axnv-space-sm);
  margin-bottom: var(--axnv-space-sm);
}

.axnv-event-header h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--axnv-text);
}

.axnv-event-badge {
  padding: 3px 9px;
  border-radius: var(--axnv-radius-full);
  font-size: 0.6875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background: var(--axnv-cyan-soft);
  color: var(--axnv-cyan);
}

.axnv-event-card p {
  font-size: 0.8125rem;
  color: var(--axnv-soft);
  margin: 0 0 var(--axnv-space-sm);
  word-break: break-all;
}

.axnv-event-card p strong {
  display: block;
  font-size: 0.6875rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--axnv-muted);
  margin-bottom: 2px;
  font-weight: 600;
}

.axnv-event-card a {
  color: var(--axnv-cyan);
  font-family: var(--axnv-font-mono);
}

.axnv-raw-event {
  margin-top: var(--axnv-space-sm);
  font-size: 0.75rem;
  color: var(--axnv-muted);
}

.axnv-raw-event summary {
  cursor: pointer;
  color: var(--axnv-cyan);
  font-weight: 600;
}

/* ============================================
   PREFORMATTED / RAW DATA
   ============================================ */
.axnv-explorer pre,
.axnv-card pre {
  background: rgba(0, 0, 0, 0.32);
  border: 1px solid var(--axnv-border);
  border-radius: var(--axnv-radius-sm);
  padding: var(--axnv-space-sm) var(--axnv-space-md);
  color: var(--axnv-soft);
  font-family: var(--axnv-font-mono);
  font-size: 0.75rem;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-all;
}

.axnv-explorer code {
  font-family: var(--axnv-font-mono);
  font-size: 0.8125em;
  color: var(--axnv-soft);
  background: rgba(255, 255, 255, 0.06);
  padding: 1px 6px;
  border-radius: 4px;
}

/* ============================================
   PAGINATION
   ============================================ */
.axnv-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--axnv-space-md);
  padding: var(--axnv-space-md) 0;
  font-size: 0.8125rem;
  color: var(--axnv-muted);
}

.axnv-pagination button {
  background: var(--axnv-card);
  border: 1px solid var(--axnv-border);
  color: var(--axnv-text);
  padding: 6px 14px;
  border-radius: var(--axnv-radius-sm);
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--axnv-transition-fast);
}

.axnv-pagination button:hover {
  border-color: var(--axnv-border-strong);
  color: var(--axnv-cyan);
}

/* ============================================
   MINI CHARTS (inline SVG, brand-consistent)
   ============================================ */
.axnv-chart-panel {
  background: var(--axnv-card);
  border: 1px solid var(--axnv-border);
  border-radius: var(--axnv-radius-md);
  padding: var(--axnv-space-md) var(--axnv-space-lg);
  box-shadow: var(--axnv-glow);
}

.axnv-chart-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: var(--axnv-space-sm);
}

.axnv-chart-panel-head span {
  font-size: 0.75rem;
  color: var(--axnv-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.axnv-chart-panel-head strong {
  font-size: 1.0625rem;
  color: var(--axnv-text);
}

.axnv-chart-panel svg {
  width: 100%;
  height: auto;
  display: block;
}

.axnv-donut-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: var(--axnv-space-sm);
}

.axnv-donut-legend li {
  list-style: none;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: var(--axnv-soft);
}

.axnv-donut-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

.axnv-donut-legend span {
  margin-left: auto;
  color: var(--axnv-muted);
  font-family: var(--axnv-font-mono);
  font-size: 0.75rem;
}

/* ============================================
   LOADING / SKELETON
   ============================================ */
.axnv-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--axnv-space-sm);
  padding: var(--axnv-space-xl);
  color: var(--axnv-muted);
  font-size: 0.875rem;
}

.axnv-loading::after {
  content: '';
  width: 20px;
  height: 20px;
  border: 2px solid var(--axnv-border);
  border-top-color: var(--axnv-cyan);
  border-radius: 50%;
  animation: axnv-spin 1s linear infinite;
}

@keyframes axnv-spin {
  to { transform: rotate(360deg); }
}

.axnv-skeleton {
  background: linear-gradient(
    90deg,
    rgba(139, 155, 192, 0.08) 0%,
    rgba(139, 155, 192, 0.18) 50%,
    rgba(139, 155, 192, 0.08) 100%
  );
  background-size: 200% 100%;
  border-radius: var(--axnv-radius-sm);
  animation: axnv-shimmer 1.5s ease-in-out infinite;
}

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

/* ============================================
   PROTOCOL PAGES (token / staking / presale / governance)
   ============================================ */
.axnv-progress {
  height: 8px;
  border-radius: var(--axnv-radius-full);
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
  margin-top: var(--axnv-space-sm);
}

.axnv-progress i {
  display: block;
  height: 100%;
  border-radius: var(--axnv-radius-full);
  background: linear-gradient(90deg, var(--axnv-purple), var(--axnv-cyan));
}

/* ============================================
   BADGE PILLS (protocol cards, ecosystem list)
   ============================================ */
.axnv-badge-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--axnv-radius-full);
  font-size: 0.6875rem;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  white-space: nowrap;
}

.axnv-badge-pill::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.axnv-badge-pill.green {
  color: var(--axnv-green);
  background: rgba(25, 245, 184, 0.12);
}

.axnv-badge-pill.cyan {
  color: var(--axnv-cyan);
  background: var(--axnv-cyan-soft);
}

.axnv-badge-pill.orange {
  color: var(--axnv-orange);
  background: rgba(245, 166, 35, 0.12);
}

/* ============================================
   SPLIT ROW (Top Presale Holders / Latest Blocks — side by side,
   neither table is wide enough on its own to need the full row)
   ============================================ */
.axnv-split-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--axnv-space-md);
  align-items: start;
}

.axnv-split-row .axnv-table {
  overflow-x: auto;
}

/* ============================================
   FEATURE ROW (Supply Overview / Presale Raised / Ecosystem Contracts)
   ============================================ */
.axnv-feature-row {
  display: grid;
  grid-template-columns: 1.15fr 1fr 1fr;
  gap: var(--axnv-space-md);
  margin-bottom: var(--axnv-space-xl);
  align-items: stretch;
}

.axnv-feature-card {
  position: relative;
  overflow: hidden;
  background: var(--axnv-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--axnv-border);
  border-radius: var(--axnv-radius-md);
  padding: var(--axnv-space-lg);
  box-shadow: var(--axnv-glow);
  display: flex;
  flex-direction: column;
  height: 100%;
}

.axnv-feature-card::before {
  content: '';
  position: absolute;
  top: -30%;
  left: 50%;
  width: 320px;
  height: 320px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(45, 170, 255, 0.22) 0%, rgba(45, 170, 255, 0) 68%);
  pointer-events: none;
  z-index: 0;
}

.axnv-feature-card > * {
  position: relative;
  z-index: 1;
}

.axnv-feature-row > div {
  height: 100%;
}

.axnv-feature-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--axnv-space-md);
}

.axnv-feature-card-head h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--axnv-text);
}

/* Supply donut layout */
.axnv-supply-donut-row {
  display: flex;
  align-items: center;
  gap: var(--axnv-space-lg);
}

.axnv-supply-donut-figures {
  display: flex;
  flex-direction: column;
  gap: var(--axnv-space-md);
}

.axnv-supply-donut-figures div span {
  display: block;
  font-size: 0.875rem;
  color: var(--axnv-muted);
  margin-bottom: 4px;
}

.axnv-supply-donut-figures div strong {
  font-size: 1.375rem;
  color: var(--axnv-text);
}

.axnv-supply-donut-legend {
  display: flex;
  justify-content: space-between;
  margin-top: var(--axnv-space-md);
  padding-top: var(--axnv-space-md);
  border-top: 1px solid var(--axnv-border);
  font-size: 0.875rem;
  color: var(--axnv-muted);
}

.axnv-supply-donut-legend > div:last-child {
  align-items: flex-end;
  text-align: right;
}

.axnv-supply-donut-legend > div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.axnv-supply-donut-legend span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.axnv-supply-donut-legend i {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
}

.axnv-supply-donut-legend strong {
  color: var(--axnv-text);
  font-weight: 700;
  font-size: 1.125rem;
}

/* Presale Raised card */
.axnv-presale-raised-value {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--axnv-text);
  margin: 0 0 0.5rem;
  text-shadow: 0 0 24px rgba(66, 202, 255, 0.45);
}

.axnv-presale-raised-value span {
  font-size: 1rem;
  font-weight: 600;
  color: var(--axnv-muted);
  margin-left: 4px;
}

.axnv-feature-card .axnv-badge-pill {
  margin-bottom: var(--axnv-space-md);
}

.axnv-presale-stats-row {
  display: flex;
  gap: var(--axnv-space-xl);
  padding-top: var(--axnv-space-md);
  border-top: 1px solid var(--axnv-border);
}

.axnv-presale-stats-row div {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.axnv-presale-stats-row span {
  font-size: 0.8125rem;
  color: var(--axnv-muted);
  white-space: nowrap;
}

.axnv-presale-stats-row strong {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--axnv-text);
}

.axnv-presale-sparkline {
  margin-top: auto;
  padding-top: var(--axnv-space-md);
}

.axnv-presale-sparkline svg {
  width: 100%;
  height: auto;
  display: block;
}

/* Ecosystem Contracts list */
.axnv-ecosystem-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.axnv-ecosystem-row {
  display: flex;
  align-items: center;
  gap: var(--axnv-space-sm);
  padding: 0.625rem 0.75rem;
  border-radius: var(--axnv-radius-sm);
  border: 1px solid var(--axnv-border);
  background: rgba(66, 176, 255, 0.05);
  transition: all var(--axnv-transition-fast);
}

.axnv-ecosystem-row:hover {
  border-color: var(--axnv-border-strong);
  background: rgba(66, 176, 255, 0.1);
}

.axnv-ecosystem-row-icon {
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--axnv-radius-sm);
  background: var(--axnv-cyan-soft);
  color: var(--axnv-cyan);
}

.axnv-ecosystem-row-icon svg {
  width: 15px;
  height: 15px;
}

.axnv-ecosystem-row-text {
  flex: 1;
  min-width: 0;
}

.axnv-ecosystem-row-text strong {
  display: block;
  font-size: 0.8125rem;
  color: var(--axnv-text);
  font-weight: 600;
  text-decoration: none !important;
}

.axnv-ecosystem-row-text small {
  font-size: 0.6875rem;
  color: var(--axnv-muted);
  text-decoration: none !important;
}

.axnv-ecosystem-row,
.axnv-ecosystem-row:hover,
.axnv-ecosystem-row:visited,
.axnv-ecosystem-row:focus {
  text-decoration: none !important;
}

.axnv-ecosystem-row-arrow {
  color: var(--axnv-muted);
  flex-shrink: 0;
}

.axnv-ecosystem-row-arrow svg {
  width: 15px;
  height: 15px;
}

/* ============================================
   PROTOCOL SUMMARY CARDS
   ============================================ */
.axnv-protocol-cards-section {
  margin: var(--axnv-space-xl) 0;
}

.axnv-protocol-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--axnv-space-md);
}

.axnv-protocol-card {
  background: var(--axnv-card);
  backdrop-filter: blur(16px);
  border: 1px solid var(--axnv-border);
  border-radius: var(--axnv-radius-md);
  padding: var(--axnv-space-md);
  box-shadow: var(--axnv-glow);
  display: flex;
  flex-direction: column;
  transition: all var(--axnv-transition);
}

.axnv-protocol-card:hover {
  border-color: var(--axnv-border-strong);
  box-shadow: var(--axnv-glow-strong);
}

.axnv-protocol-card-head {
  display: flex;
  align-items: center;
  gap: var(--axnv-space-sm);
  margin-bottom: var(--axnv-space-md);
}

.axnv-protocol-card-icon {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  flex: 0 0 34px;
  aspect-ratio: 1 / 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 28%, rgba(66, 202, 255, 0.4), rgba(24, 90, 200, 0.16));
  border: 1px solid rgba(66, 202, 255, 0.3);
  color: var(--axnv-cyan);
}

.axnv-protocol-card-icon svg {
  width: 16px;
  height: 16px;
}

.axnv-protocol-card-head > div:not(.axnv-protocol-card-icon) {
  flex: 1;
  min-width: 0;
}

.axnv-protocol-card-head h3 {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 650;
  color: var(--axnv-text);
}

.axnv-protocol-card-stats {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin: 0 0 var(--axnv-space-md);
}

.axnv-protocol-card-stats div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--axnv-space-sm);
  font-size: 0.8125rem;
}

.axnv-protocol-card-stats dt {
  color: var(--axnv-muted);
}

.axnv-protocol-card-stats dd {
  margin: 0;
  color: var(--axnv-text);
  font-weight: 600;
  text-align: right;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.axnv-protocol-card-cta {
  margin-top: auto;
  text-align: center;
  padding: 0.5rem;
  border-radius: var(--axnv-radius-sm);
  border: 1px solid rgba(66, 202, 255, 0.3);
  color: var(--axnv-cyan);
  font-size: 0.8125rem;
  font-weight: 600;
  text-decoration: none !important;
  transition: all var(--axnv-transition-fast);
}

.axnv-protocol-card-cta:hover {
  background: var(--axnv-cyan-soft);
  border-color: var(--axnv-border-strong);
  color: #ffffff;
}

/* ============================================
   CLOSING FOOTER BANNER
   ============================================ */
.axnv-explorer-footer-banner {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--axnv-space-lg);
  text-align: center;
  padding: var(--axnv-space-xl);
  margin: var(--axnv-space-xl) 0;
  border-radius: var(--axnv-radius-lg);
  border: 1px solid var(--axnv-border);
  background: linear-gradient(180deg, rgba(10, 20, 50, 0.6), rgba(4, 8, 22, 0.9));
}

.axnv-explorer-footer-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(66, 202, 255, 0.16), transparent 70%);
  pointer-events: none;
}

.axnv-explorer-footer-logo {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  object-fit: cover;
  box-shadow: 0 0 32px rgba(66, 202, 255, 0.55);
  flex-shrink: 0;
}

.axnv-explorer-footer-copy {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.axnv-explorer-footer-copy strong {
  font-size: 1.0625rem;
  color: var(--axnv-text);
}

.axnv-explorer-footer-copy span {
  font-size: 0.8125rem;
  color: var(--axnv-muted);
  letter-spacing: 0.02em;
}

/* Hexagon block/tx row icon */
.axnv-hex-icon {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  clip-path: polygon(25% 5%, 75% 5%, 100% 50%, 75% 95%, 25% 95%, 0% 50%);
  background: linear-gradient(160deg, rgba(66, 202, 255, 0.35), rgba(24, 90, 200, 0.18));
  border: 1px solid rgba(66, 202, 255, 0.4);
  color: var(--axnv-cyan);
}

.axnv-hex-icon svg {
  width: 11px;
  height: 11px;
}

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 1024px) {
  .axnv-dashboard-grid,
  .axnv-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .axnv-protocol-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .axnv-explorer-container {
    padding: 0 var(--axnv-space-md);
  }

  .axnv-explorer-hero {
    padding: 2.5rem var(--axnv-space-md) 2rem;
  }

  .axnv-protocol-cards-grid {
    grid-template-columns: 1fr;
  }

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

  .axnv-supply-donut-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .axnv-explorer-footer-banner {
    flex-direction: column;
    text-align: center;
  }

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

  .axnv-data-table,
  table.axnv-table,
  .axnv-table {
    display: block;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .axnv-table-head,
  .axnv-table-row {
    min-width: 640px;
  }

  .axnv-table-5 .axnv-table-head,
  .axnv-table-5 .axnv-table-row {
    min-width: 760px;
  }

  .axnv-table-6 .axnv-table-head,
  .axnv-table-6 .axnv-table-row {
    min-width: 920px;
  }
}

@media (max-width: 480px) {
  .axnv-stat-label {
    font-size: 0.6875rem;
  }

  .axnv-stat-value {
    font-size: 0.875rem;
  }

  .axnv-data-table th,
  .axnv-data-table td,
  table.axnv-table th,
  table.axnv-table td {
    padding: var(--axnv-space-xs) var(--axnv-space-sm);
    font-size: 0.8125rem;
  }
}

/* ============================================
   ACCESSIBILITY
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  .axnv-skeleton,
  .axnv-loading::after {
    animation: none;
  }

  .axnv-stat-card,
  .axnv-card {
    transition: none;
  }
}

/* ============================================
   UTILITY
   ============================================ */
.axnv-text-center { text-align: center; }
.axnv-text-mono { font-family: var(--axnv-font-mono); }
.axnv-text-muted { color: var(--axnv-muted); }
.axnv-text-cyan { color: var(--axnv-cyan); }
.axnv-hidden { display: none !important; }
