/* ============================================
   469 Diamond — Network Explorer (All Transactions)
   Premium Dark Theme · aligned with Index & GetTransactions
   ============================================ */

/* --- CSS Variables --- */
:root {
    --bg-deepest: #030508;
    --bg: #05070b;
    --bg2: #0b0f16;
    --bg3: #111822;
    --panel: rgba(255,255,255,0.04);
    --panel-strong: rgba(255,255,255,0.07);
    --panel-glass: rgba(255,255,255,0.03);
    --line: rgba(255,255,255,0.08);
    --line-bright: rgba(255,255,255,0.14);
    --text: #f4f6fb;
    --text-dim: #c8d0df;
    --muted: #8a95a8;
    --muted-dim: #6b7587;
    --gold: #d8bb74;
    --gold-bright: #f0d9a0;
    --gold-soft: rgba(216,187,116,.18);
    --gold-glow: rgba(216,187,116,.08);
    --accent: #8fd0ff;
    --accent-soft: rgba(143,208,255,.12);
    --success: #72d39b;
    --success-soft: rgba(114,211,155,.14);
    --warning: #f4c56f;
    --warning-soft: rgba(244,197,111,.14);
    --danger: #ff8d8d;
    --danger-soft: rgba(255,141,141,.14);
    --shadow: 0 24px 80px rgba(0,0,0,.4);
    --shadow-sm: 0 8px 32px rgba(0,0,0,.25);
    --radius: 28px;
    --radius-md: 20px;
    --radius-sm: 14px;
    --max: 1280px;
    --transition: .3s cubic-bezier(.4,0,.2,1);
    --mono: 'JetBrains Mono', 'Fira Code', ui-monospace, SFMono-Regular, Menlo, monospace;
}

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

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

body {
    font-family: 'Inter', -apple-system, 'Segoe UI', Arial, sans-serif;
    background:
        radial-gradient(ellipse 80% 50% at 20% 0%, rgba(143,208,255,.06), transparent 60%),
        radial-gradient(ellipse 60% 40% at 80% 5%, rgba(216,187,116,.05), transparent 50%),
        linear-gradient(180deg, var(--bg-deepest), var(--bg) 30%, #06070b 100%);
    color: var(--text);
    line-height: 1.6;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--gold); }
button, input, select, textarea { font: inherit; }

:focus-visible {
    outline: 2px solid var(--gold);
    outline-offset: 2px;
    border-radius: 6px;
}

/* --- Animations --- */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(28px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes slideUp {
    from { opacity: 0; transform: translateY(30px); }
    to   { opacity: 1; transform: translateY(0); }
}

@keyframes borderGlow {
    0%, 100% { opacity: .12; }
    50%      { opacity: .28; }
}

@keyframes livePulse {
    0%   { box-shadow: 0 0 0 0 rgba(114,211,155,.5); }
    70%  { box-shadow: 0 0 0 8px rgba(114,211,155,0); }
    100% { box-shadow: 0 0 0 0 rgba(114,211,155,0); }
}

.animate-fade-up { opacity: 0; animation: fadeUp .8s ease forwards; }
.animate-fade-up:nth-child(2) { animation-delay: .1s; }
.animate-fade-up:nth-child(3) { animation-delay: .2s; }
.animate-fade-up:nth-child(4) { animation-delay: .3s; }

/* --- Container --- */
.container { width: min(var(--max), calc(100% - 40px)); margin: 0 auto; }

/* ============================================
   TOPBAR / HEADER
   ============================================ */
.topbar {
    position: sticky;
    top: 0;
    z-index: 100;
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    background: rgba(4,7,12,.82);
    border-bottom: 1px solid var(--line);
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    min-height: 80px;
    padding: 14px 0;
}

.brand { display: flex; align-items: center; gap: 14px; transition: opacity var(--transition); }
.brand:hover { opacity: .88; }

.brand-icon {
    width: 50px;
    height: 50px;
    border-radius: 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, rgba(216,187,116,.28), rgba(216,187,116,.08));
    border: 1px solid rgba(216,187,116,.32);
    box-shadow: 0 0 0 1px rgba(255,255,255,.04), 0 10px 30px rgba(216,187,116,.18);
    color: var(--gold-bright);
    font-size: 22px;
    flex-shrink: 0;
}

.brand-icon.small { width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }

.brand h1 {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: .22em;
    text-transform: uppercase;
    background: linear-gradient(135deg, var(--gold-bright), var(--gold));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.brand small {
    display: block;
    margin-top: 3px;
    color: var(--muted);
    letter-spacing: .06em;
    font-size: 11px;
}

/* Nav Links */
.nav-links { display: flex; gap: 24px; align-items: center; flex-wrap: wrap; }

.nav-links a {
    color: var(--muted);
    font-size: 13.5px;
    font-weight: 500;
    letter-spacing: .02em;
    position: relative;
    padding: 4px 0;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color var(--transition);
}

.nav-links a i { font-size: 12px; opacity: .7; }

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1.5px;
    background: var(--gold);
    transition: width var(--transition);
}

.nav-links a:hover,
.nav-links a.active { color: var(--text); }
.nav-links a:hover::after,
.nav-links a.active::after { width: 100%; }
.nav-links a.active i { opacity: 1; color: var(--gold); }

/* Nav Actions */
.nav-actions { display: flex; align-items: center; gap: 12px; }

.balance-pill {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(216,187,116,.22), rgba(216,187,116,.06));
    border: 1px solid rgba(216,187,116,.32);
    color: var(--gold-bright);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: .04em;
    box-shadow: 0 6px 24px rgba(216,187,116,.1);
    white-space: nowrap;
}

.balance-pill i { font-size: 13px; }

/* Burger */
.burger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    z-index: 200;
}

.burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--text);
    border-radius: 2px;
    transition: all .3s ease;
}

.burger.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.burger.active span:nth-child(2) { opacity: 0; }
.burger.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   BUTTONS
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 1px solid var(--line-bright);
    background: rgba(255,255,255,.04);
    color: var(--text);
    padding: 12px 22px;
    border-radius: 999px;
    cursor: pointer;
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: .02em;
    transition: all var(--transition);
    box-shadow: 0 6px 24px rgba(0,0,0,.15);
    white-space: nowrap;
}

.btn:hover {
    transform: translateY(-2px);
    border-color: rgba(255,255,255,.22);
    box-shadow: 0 12px 36px rgba(0,0,0,.25);
    color: var(--text);
}

.btn:active { transform: translateY(0); }

.btn.gold {
    background: linear-gradient(135deg, rgba(216,187,116,.22), rgba(216,187,116,.08));
    border-color: rgba(216,187,116,.32);
    color: #fff6de;
    box-shadow: 0 6px 24px rgba(216,187,116,.12);
}

.btn.gold:hover { border-color: rgba(216,187,116,.5); box-shadow: 0 12px 40px rgba(216,187,116,.2); color: #fff6de; }

.btn.ghost { background: transparent; border-color: var(--line); box-shadow: none; }
.btn.ghost:hover { background: rgba(255,255,255,.04); border-color: var(--line-bright); }
.btn.sm { padding: 8px 16px; font-size: 12px; }

/* ============================================
   PAGE HEAD (explorer intro)
   ============================================ */
.explorer-head { padding: 56px 0 8px; }

.explorer-head .head-grid {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    flex-wrap: wrap;
}

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 8px 16px;
    background: var(--gold-glow);
    border: 1px solid rgba(216,187,116,.2);
    border-radius: 999px;
    color: var(--gold-bright);
    letter-spacing: .1em;
    text-transform: uppercase;
    font-size: 11px;
    font-weight: 700;
}

.explorer-head h2 {
    font-size: clamp(22px, 2.6vw, 36px);
    font-weight: 700;
    line-height: 1.2;
    margin: 16px 0 12px;
    background: linear-gradient(135deg, #ffffff 20%, var(--gold-bright) 60%, var(--gold) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.explorer-head p.lead {
    font-size: clamp(15px, 1.4vw, 17px);
    line-height: 1.65;
    color: var(--text-dim);
    max-width: 620px;
}

.head-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* Live indicator */
.live-badge {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 9px 16px;
    border-radius: 999px;
    background: var(--success-soft);
    border: 1px solid rgba(114,211,155,.3);
    color: var(--success);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    white-space: nowrap;
}

.live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--success);
    animation: livePulse 2s ease-out infinite;
    flex-shrink: 0;
}

.live-badge.paused { background: rgba(255,255,255,.04); border-color: var(--line); color: var(--muted); }
.live-badge.paused .live-dot { background: var(--muted); animation: none; }

/* ============================================
   NETWORK STATS
   ============================================ */
.net-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 14px;
    margin: 32px 0 28px;
}

.net-stat {
    background: linear-gradient(160deg, rgba(255,255,255,.05), rgba(255,255,255,.02));
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px;
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 14px;
    transition: all var(--transition);
}

.net-stat:hover {
    border-color: rgba(216,187,116,.22);
    transform: translateY(-2px);
    box-shadow: 0 20px 56px rgba(0,0,0,.3), 0 0 24px var(--gold-glow);
}

.net-stat-icon {
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(160deg, rgba(216,187,116,.22), rgba(216,187,116,.06));
    border: 1px solid rgba(216,187,116,.24);
    color: var(--gold-bright);
    font-size: 21px;
    line-height: 1;
    flex-shrink: 0;
    align-self: center;
}

    .net-stat-icon i {
        display: block;
        line-height: 1;
    }

.net-stat strong {
    display: block;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.2;
    font-feature-settings: "tnum";
    background: linear-gradient(135deg, #fff, var(--gold-bright));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Ограничено текстовой колонкой, чтобы не задевать .net-stat-icon */
.net-stat > div span {
    display: block;
    color: var(--muted);
    font-size: 12px;
    letter-spacing: .06em;
    margin-top: 2px;
}

/* ============================================
   EXPLORER PANEL
   ============================================ */
.explorer-panel {
    position: relative;
    background: linear-gradient(160deg, rgba(255,255,255,.06), rgba(255,255,255,.025));
    backdrop-filter: blur(24px) saturate(1.3);
    -webkit-backdrop-filter: blur(24px) saturate(1.3);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 32px;
    box-shadow: var(--shadow);
    animation: slideUp .6s ease-out;
    margin-bottom: 32px;
}

.explorer-panel::before {
    content: '';
    position: absolute;
    inset: -1px;
    background: linear-gradient(135deg, var(--gold), rgba(143,208,255,.4), var(--gold));
    border-radius: calc(var(--radius) + 1px);
    z-index: -1;
    opacity: .12;
    animation: borderGlow 3.5s ease-in-out infinite;
}

.panel-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 22px;
}

.panel-head h3 {
    font-size: 19px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 10px;
}

.panel-head h3 i { color: var(--gold-bright); font-size: 16px; }

.panel-head .result-count {
    color: var(--muted);
    font-size: 12.5px;
    letter-spacing: .04em;
    font-feature-settings: "tnum";
}

.panel-head .result-count b { color: var(--gold-bright); font-weight: 700; }

/* ============================================
   TOOLBAR (search + filters + controls)
   ============================================ */
.toolbar { margin-bottom: 24px; }

.search-group { position: relative; margin-bottom: 16px; }

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--muted);
    z-index: 1;
    font-size: 14px;
    pointer-events: none;
    transition: color var(--transition);
}

.search-group input {
    width: 100%;
    padding: 14px 14px 14px 46px;
    border: 1px solid var(--line);
    border-radius: 14px;
    font-size: .95rem;
    background: rgba(255,255,255,.03);
    color: var(--text);
    font-family: inherit;
    transition: all var(--transition);
}

.search-group input:focus {
    outline: none;
    border-color: var(--gold);
    background: rgba(255,255,255,.05);
    box-shadow: 0 0 0 3px var(--gold-soft);
}

.search-group:focus-within .input-icon { color: var(--gold-bright); }
.search-group input::placeholder { color: var(--muted-dim); }

.toolbar-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}

.filter-buttons { display: flex; gap: 10px; flex-wrap: wrap; }

.filter-btn {
    padding: 9px 18px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
    border-radius: 999px;
    cursor: pointer;
    transition: all var(--transition);
    font-weight: 600;
    color: var(--muted);
    font-size: 12.5px;
    letter-spacing: .04em;
    font-family: inherit;
}

.filter-btn:hover { color: var(--text); background: rgba(255,255,255,.06); border-color: var(--line-bright); }

.filter-btn.active {
    border-color: rgba(216,187,116,.5);
    background: var(--gold-soft);
    color: var(--gold-bright);
    box-shadow: 0 4px 16px var(--gold-glow);
}

.toolbar-controls { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }

.select-group {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12.5px;
    letter-spacing: .04em;
}

.select-group select {
    padding: 8px 12px;
    border-radius: 10px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
    color: var(--text-dim);
    font-size: 12.5px;
    font-family: inherit;
    cursor: pointer;
    transition: all var(--transition);
}

.select-group select:hover { border-color: var(--line-bright); color: var(--text); }
.select-group select:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.select-group select option { background: var(--bg2); color: var(--text); }

/* Live toggle switch */
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; user-select: none; }

.switch span.label {
    color: var(--muted);
    font-size: 12.5px;
    letter-spacing: .04em;
    font-weight: 600;
}

.switch input { position: absolute; opacity: 0; width: 0; height: 0; }

.switch .track {
    width: 42px;
    height: 24px;
    border-radius: 999px;
    background: rgba(255,255,255,.06);
    border: 1px solid var(--line);
    position: relative;
    transition: all var(--transition);
    flex-shrink: 0;
}

.switch .track::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 3px;
    transform: translateY(-50%);
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--muted);
    transition: all var(--transition);
}

.switch input:checked + .track { background: var(--gold-soft); border-color: rgba(216,187,116,.5); }
.switch input:checked + .track::after { left: 21px; background: var(--gold-bright); }
.switch input:focus-visible + .track { outline: 2px solid var(--gold); outline-offset: 2px; }

/* ============================================
   TRANSACTIONS TABLE
   ============================================ */
.tx-table {
    background: rgba(0,0,0,.22);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    overflow-x: auto;
    margin-bottom: 22px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

/* Identical grid for header and rows so columns line up */
.tx-header,
.tx-row {
    display: grid;
    grid-template-columns:
        minmax(180px, 1fr)     /* Hash */
        minmax(150px, 1fr)     /* From */
        minmax(150px, 1fr)     /* To */
        minmax(90px, 110px)    /* Token */
        minmax(130px, 160px)   /* Amount */
        minmax(100px, 120px)   /* Block */
        minmax(130px, 150px)   /* Time */
        minmax(105px, 125px);  /* Status */
    gap: 12px;
    padding: 14px 18px;
    align-items: center;
}

.tx-header {
    background: linear-gradient(135deg, rgba(216,187,116,.12), rgba(216,187,116,.04));
    color: var(--gold-bright);
    font-weight: 700;
    font-size: 11.5px;
    letter-spacing: .12em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--line);
    position: sticky;
    top: 0;
    z-index: 2;
}

.tx-header .tx-col {
    cursor: pointer;
    user-select: none;
    overflow: visible;
    transition: color var(--transition);
}

.tx-header .tx-col:hover { color: #fff8d9; }
.tx-header .sort-icon { color: var(--gold); font-size: 10px; margin-left: 5px; }

.tx-row {
    border-bottom: 1px solid var(--line);
    transition: background var(--transition);
}

.tx-row:hover { background: rgba(216,187,116,.05); }
.tx-row:last-child { border-bottom: none; }

.tx-col {
    font-size: 13.5px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-dim);
    min-width: 0;   /* lets long hashes truncate instead of spilling */
    overflow: hidden;
}

/* Hash + addresses */
.mono-text {
    font-family: var(--mono);
    font-size: 12px;
    color: var(--muted);
    line-height: 1.45;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.tx-col.hash .mono-text { color: var(--accent); }
.tx-col.hash a.mono-text:hover { color: #bfe4ff; text-decoration: underline; }

.addr-chip {
    font-family: var(--mono);
    font-size: 11.5px;
    padding: 4px 10px;
    border-radius: 8px;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--line);
    color: var(--text-dim);
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    transition: all var(--transition);
}

a.addr-chip:hover { border-color: rgba(216,187,116,.35); color: var(--gold-bright); background: var(--gold-glow); }

/* "You" marker for the current user's own address */
.addr-chip.self { border-color: rgba(216,187,116,.4); color: var(--gold-bright); background: var(--gold-soft); }

.copy-btn {
    background: none;
    border: 1px solid transparent;
    color: var(--gold);
    cursor: pointer;
    width: 28px;
    height: 28px;
    border-radius: 8px;
    font-size: 11px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-family: inherit;
    transition: all var(--transition);
}

.copy-btn:hover { background: var(--gold-soft); border-color: rgba(216,187,116,.3); color: var(--gold-bright); }
.copy-btn:has(.fa-check) { background: var(--success-soft); border-color: rgba(114,211,155,.4); color: var(--success); }

/* Token badge */
.token-badge {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    background: rgba(255,255,255,.05);
    color: var(--text-dim);
    border: 1px solid var(--line-bright);
    display: inline-block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.token-badge.ddb {
    background: rgba(216,187,116,.2);
    color: var(--gold-bright);
    border-color: rgba(216,187,116,.3);
}

/* Amount */
.tx-col.amount {
    font-weight: 700;
    color: var(--text);
    font-feature-settings: "tnum";
    white-space: nowrap;
}

.tx-col.amount .cur { color: var(--muted); font-weight: 600; font-size: 11.5px; margin-left: 2px; }
.tx-col.amount.large { color: var(--gold-bright); }

/* Block & time */
.tx-col.block { color: var(--muted); font-size: 12.5px; font-feature-settings: "tnum"; }
.tx-col.time  { color: var(--muted); font-size: 12.5px; font-feature-settings: "tnum"; }

/* Status badges */
.status-badge {
    padding: 4px 12px;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.status-badge i { font-size: 9px; }

.status-badge.confirmed { background: var(--success-soft); color: var(--success); border: 1px solid rgba(114,211,155,.3); }
.status-badge.pending   { background: var(--warning-soft); color: var(--warning); border: 1px solid rgba(244,197,111,.3); }
.status-badge.failed    { background: var(--danger-soft);  color: var(--danger);  border: 1px solid rgba(255,141,141,.3); }

/* Empty state */
.empty-state {
    display: none;
    padding: 56px 24px;
    text-align: center;
}

.empty-state.show { display: block; }

.empty-state i { font-size: 34px; color: var(--muted-dim); margin-bottom: 14px; display: block; }
.empty-state h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.empty-state p { color: var(--muted); font-size: 13.5px; }

/* ============================================
   PAGINATION
   ============================================ */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 8px;
}

.pagination-btn {
    min-width: 38px;
    height: 38px;
    padding: 0 12px;
    border: 1px solid var(--line);
    background: rgba(255,255,255,.03);
    border-radius: 10px;
    cursor: pointer;
    color: var(--muted);
    font-weight: 600;
    font-size: 13px;
    font-family: inherit;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition);
}

.pagination-btn:hover:not(.disabled):not(.active) {
    border-color: rgba(216,187,116,.4);
    color: var(--gold-bright);
    background: var(--gold-soft);
}

.pagination-btn.active {
    background: linear-gradient(135deg, rgba(216,187,116,.3), rgba(216,187,116,.1));
    border-color: rgba(216,187,116,.5);
    color: var(--gold-bright);
    box-shadow: 0 4px 16px var(--gold-glow);
}

.pagination-btn.disabled { opacity: .4; cursor: not-allowed; }

.pagination-ellipsis { color: var(--muted); padding: 0 6px; font-weight: 700; }

/* ============================================
   BOTTOM NAVIGATION LINKS
   ============================================ */
.navigation-links {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 24px;
}

.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 12px 24px;
    background: linear-gradient(135deg, rgba(216,187,116,.22), rgba(216,187,116,.06));
    color: var(--gold-bright);
    border-radius: 999px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: .04em;
    border: 1px solid rgba(216,187,116,.3);
    transition: all var(--transition);
}

.nav-link:hover {
    transform: translateY(-2px);
    background: rgba(216,187,116,.3);
    box-shadow: 0 8px 24px var(--gold-soft);
    border-color: var(--gold);
    color: #fff6de;
}

.nav-link.muted-link {
    background: rgba(255,255,255,.03);
    border-color: var(--line);
    color: var(--text-dim);
}

.nav-link.muted-link:hover { background: rgba(255,255,255,.06); border-color: var(--line-bright); color: var(--text); }

.nav-link i { font-size: 12px; }

/* ============================================
   FOOTER
   ============================================ */
.footer {
    padding: 56px 0 24px;
    border-top: 1px solid var(--line);
    margin-top: 40px;
    background: rgba(4,7,12,.4);
}

.footer-grid-full {
    display: grid;
    gap: 36px;
    grid-template-columns: 1.4fr repeat(3, 1fr);
    align-items: flex-start;
    padding-bottom: 36px;
    border-bottom: 1px solid var(--line);
}

.footer-col h5 {
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .14em;
    color: var(--gold-bright);
    margin: 0 0 16px;
}

.footer-col a:not(.social-link) {
    display: block;
    color: var(--muted);
    font-size: 13.5px;
    padding: 5px 0;
    transition: color var(--transition);
}

.footer-col a:not(.social-link):hover { color: var(--text); }

.footer-col p {
    color: var(--muted);
    font-size: 13px;
    margin: 4px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col p i { color: var(--gold-bright); opacity: .8; font-size: 12px; }

.social-links { display: flex; gap: 10px; margin-top: 16px; }

.social-link {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255,255,255,.04);
    border: 1px solid var(--line);
    color: var(--muted);
    font-size: 14px;
    transition: all var(--transition);
}

.social-link:hover {
    border-color: rgba(216,187,116,.32);
    background: var(--gold-glow);
    color: var(--gold-bright);
    transform: translateY(-2px);
}

.footer-bottom { padding-top: 20px; text-align: center; }

/* ============================================
   UTILITIES
   ============================================ */
.small { font-size: 13px; }
.muted { color: var(--muted); }
.mt-sm { margin-top: 12px; }
.hidden { display: none !important; }

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: var(--bg-deepest); }
::-webkit-scrollbar-thumb { background: rgba(216,187,116,.28); border-radius: 999px; }
::-webkit-scrollbar-thumb:hover { background: rgba(216,187,116,.45); }

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

@media (max-width: 1024px) {
    .tx-header,
    .tx-row {
        grid-template-columns:
            minmax(150px, 1fr)
            minmax(130px, 1fr)
            minmax(130px, 1fr)
            minmax(80px, 100px)
            minmax(115px, 140px)
            minmax(90px, 110px)
            minmax(115px, 135px)
            minmax(95px, 115px);
        gap: 10px;
        padding: 12px 14px;
    }

    .tx-col { font-size: 12.5px; }
    .explorer-panel { padding: 26px 20px; }
}

@media (max-width: 860px) {
    .burger { display: flex; }

    .nav-links {
        display: none;
        position: absolute;
        top: 80px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: rgba(4,7,12,.97);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        padding: 0;
        gap: 0;
        border-bottom: 1px solid var(--line);
        z-index: 150;
        max-height: 80vh;
        overflow-y: auto;
    }

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

    .nav-links a {
        padding: 14px 20px;
        font-size: 15px;
        border-bottom: 1px solid var(--line);
        border-radius: 0;
        display: flex;
    }

    .nav-links a:last-child { border-bottom: none; }
    .nav-links a::after { display: none; }
    .nav { position: relative; }

    .footer-grid-full { grid-template-columns: 1fr 1fr; gap: 28px; }
}

@media (max-width: 768px) {
    .topbar { position: relative; }
    .nav { padding: 10px 0; min-height: 64px; flex-wrap: wrap; }
    .brand-icon { width: 40px; height: 40px; border-radius: 12px; font-size: 18px; }
    .brand h1 { font-size: 12px; letter-spacing: .14em; }
    .brand small { font-size: 10px; }
    .nav-actions { gap: 8px; }
    .balance-pill { font-size: 12px; padding: 7px 12px; }

    .explorer-head { padding: 36px 0 4px; }
    .net-stats { grid-template-columns: 1fr; gap: 12px; margin: 24px 0 20px; }
    .explorer-panel { padding: 22px 16px; border-radius: 24px; }

    .toolbar-row { flex-direction: column; align-items: stretch; }
    .filter-buttons { justify-content: center; }
    .toolbar-controls { justify-content: space-between; }

    /* Table turns into stacked cards */
    .tx-header { display: none; }

    .tx-row {
        display: flex;
        flex-direction: column;
        gap: 8px;
        padding: 18px;
        border: 1px solid var(--line);
        border-radius: var(--radius-sm);
        margin-bottom: 12px;
        background: rgba(0,0,0,.25);
    }

    .tx-row:last-child { margin-bottom: 0; }

    .tx-col {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 6px 0;
        border-bottom: 1px dashed var(--line);
        gap: 12px;
        font-size: 13px;
    }

    .tx-col:last-child { border-bottom: none; }

    /* Mobile labels generated from column classes — no markup changes needed */
    .tx-col::before {
        font-weight: 700;
        color: var(--gold);
        font-size: 10.5px;
        letter-spacing: .12em;
        text-transform: uppercase;
        flex-shrink: 0;
    }

    .tx-col.hash::before   { content: "Tx hash"; }
    .tx-col.from::before   { content: "From"; }
    .tx-col.to::before     { content: "To"; }
    .tx-col.token::before  { content: "Token"; }
    .tx-col.amount::before { content: "Amount"; }
    .tx-col.block::before  { content: "Block"; }
    .tx-col.time::before   { content: "Time"; }
    .tx-col.status::before { content: "Status"; }

    .mono-text { text-align: right; }
    .addr-chip { max-width: 62%; }

    .navigation-links { flex-direction: column; align-items: stretch; }
    .navigation-links .nav-link { justify-content: center; }

    .footer-grid-full { grid-template-columns: 1fr; gap: 24px; padding-bottom: 24px; }
}

@media (max-width: 480px) {
    .container { width: calc(100% - 18px); }
    .brand-icon { width: 36px; height: 36px; border-radius: 10px; font-size: 16px; }
    .brand h1 { font-size: 11px; }
    .brand small { display: none; }

    .btn { padding: 10px 14px; font-size: 12px; }
    .explorer-panel { padding: 18px 14px; border-radius: 22px; }
    .panel-head h3 { font-size: 17px; }
    .filter-btn { padding: 8px 14px; font-size: 11.5px; }
    .tx-row { padding: 16px 14px; }
    .tx-col { font-size: 12.5px; }
    .net-stat { padding: 16px; }
    .net-stat strong { font-size: 19px; }
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .001ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: .001ms !important;
        scroll-behavior: auto !important;
    }
}
