/* ================================================================
   BasePulse - Dark Neon Design System for Base L2 Explorer
   ================================================================ */

:root {
    --bg-deep: #050810;
    --bg: #0a0f1a;
    --bg-card: rgba(15, 22, 36, 0.72);
    --bg-card-solid: #0f1624;
    --bg-hover: rgba(255, 255, 255, 0.04);
    --border: rgba(255, 255, 255, 0.07);
    --border-bright: rgba(0, 82, 255, 0.35);
    --text: #f1f5f9;
    --text-muted: #94a3b8;
    --text-dim: #64748b;
    --accent: #0052FF;
    --accent-bright: #3b8bff;
    --accent-soft: rgba(0, 82, 255, 0.12);
    --accent-glow: rgba(0, 82, 255, 0.45);
    --cyan: #22d3ee;
    --mint: #00D395;
    --mint-soft: rgba(0, 211, 149, 0.12);
    --amber: #fbbf24;
    --red: #f87171;
    --green: #34d399;
    --radius: 18px;
    --radius-sm: 12px;
    --radius-xs: 8px;
    --shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
    --shadow-glow: 0 0 40px rgba(0, 82, 255, 0.15);
    --font: 'Outfit', system-ui, -apple-system, sans-serif;
    --mono: 'JetBrains Mono', ui-monospace, monospace;
    --glass: blur(16px) saturate(1.4);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
    font-family: var(--font);
    background: var(--bg-deep);
    color: var(--text);
    min-height: 100vh;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { cursor: pointer; border: none; background: none; color: inherit; }
.mono { font-family: var(--mono); letter-spacing: -0.02em; }
.wrap { width: min(1200px, calc(100% - 32px)); margin: 0 auto; }

/* Ambient background */
.bp-ambient { position: fixed; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.bp-orb { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5; animation: orbFloat 20s ease-in-out infinite; }
.bp-orb-1 { width: 520px; height: 520px; background: radial-gradient(circle, rgba(0,82,255,.35), transparent 70%); top: -120px; left: -80px; }
.bp-orb-2 { width: 400px; height: 400px; background: radial-gradient(circle, rgba(0,211,149,.2), transparent 70%); top: 40%; right: -100px; animation-delay: -7s; }
.bp-orb-3 { width: 300px; height: 300px; background: radial-gradient(circle, rgba(34,211,238,.15), transparent 70%); bottom: -80px; left: 30%; animation-delay: -14s; }
.bp-grid {
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, black, transparent);
}
@keyframes orbFloat {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(30px, -20px) scale(1.05); }
    66% { transform: translate(-20px, 15px) scale(0.95); }
}

/* Ticker */
.bp-ticker {
    background: rgba(5, 8, 16, 0.85);
    border-bottom: 1px solid var(--border);
    font-size: 12px;
    backdrop-filter: var(--glass);
}
.bp-ticker-inner {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px; padding: 8px 0; flex-wrap: wrap;
}
.bp-ticker-metrics { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.bp-metric { display: inline-flex; align-items: baseline; gap: 6px; color: var(--text-muted); }
.bp-metric b { color: var(--text); font-weight: 700; font-size: 13px; }
.bp-metric-label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-dim); }
.bp-unit { font-size: 10px; color: var(--text-dim); }
.bp-dot { width: 4px; height: 4px; border-radius: 50%; background: var(--border-bright); opacity: 0.6; }
.bp-live {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 999px;
    background: var(--mint-soft); border: 1px solid rgba(0,211,149,.25);
    font-size: 11px; font-weight: 700; color: var(--mint);
}
.bp-live-dot {
    width: 6px; height: 6px; border-radius: 50%; background: var(--mint);
    box-shadow: 0 0 8px var(--mint);
    animation: livePulse 2s ease-in-out infinite;
}
@keyframes livePulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.85); } }

/* Header */
.bp-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(10, 15, 26, 0.75);
    backdrop-filter: var(--glass);
    border-bottom: 1px solid var(--border);
}
.bp-header-inner {
    display: flex; align-items: center; gap: 16px;
    padding: 14px 0; flex-wrap: wrap;
}
.bp-brand { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.bp-brand-mark { width: 42px; height: 42px; display: grid; place-items: center; }
.bp-brand-mark .logo-svg { width: 42px; height: 42px; }
.bp-brand-name { display: block; font-size: 20px; font-weight: 800; letter-spacing: -0.04em; line-height: 1.1; }
.bp-brand-name em { font-style: normal; background: linear-gradient(135deg, var(--accent-bright), var(--mint)); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.bp-brand-tag { display: block; font-size: 9px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--text-dim); margin-top: 2px; }

.bp-nav { display: flex; align-items: center; gap: 2px; flex: 1; }
.bp-nav a {
    padding: 8px 14px; border-radius: var(--radius-xs);
    font-size: 13px; font-weight: 500; color: var(--text-muted);
    transition: all 0.2s ease;
}
.bp-nav a:hover { color: var(--text); background: var(--bg-hover); }
.bp-nav a.on {
    color: var(--accent-bright); background: var(--accent-soft);
    font-weight: 600; box-shadow: inset 0 0 0 1px rgba(0,82,255,.2);
}

.bp-search {
    display: flex; align-items: center; gap: 8px;
    padding: 8px 14px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,.04); border: 1px solid var(--border);
    min-width: 200px; transition: border-color 0.2s, box-shadow 0.2s;
}
.bp-search:focus-within {
    border-color: var(--border-bright);
    box-shadow: 0 0 0 3px rgba(0,82,255,.12);
}
.bp-search svg { color: var(--text-dim); flex-shrink: 0; }
.bp-search input {
    flex: 1; border: none; outline: none; background: none;
    font-size: 13px; color: var(--text); min-width: 0;
}
.bp-search input::placeholder { color: var(--text-dim); }
.bp-search kbd {
    font-size: 10px; font-weight: 700; font-family: var(--mono);
    padding: 2px 6px; border-radius: 4px;
    background: rgba(255,255,255,.06); border: 1px solid var(--border);
    color: var(--text-dim);
}

.bp-wallet-pill {
    padding: 8px 16px; border-radius: 999px; font-size: 12px; font-weight: 700;
    background: linear-gradient(135deg, var(--accent), #003ecf);
    color: #fff; white-space: nowrap;
    box-shadow: 0 4px 16px var(--accent-glow);
    transition: transform 0.15s, box-shadow 0.15s;
}
.bp-wallet-pill:hover { transform: translateY(-1px); box-shadow: 0 6px 24px var(--accent-glow); }

.bp-main { padding: 28px 0 48px; }

/* Cards and panels */
.card, .bp-panel {
    background: var(--bg-card);
    backdrop-filter: var(--glass);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: var(--shadow);
    position: relative;
    overflow: hidden;
}
.card::before, .bp-panel::before {
    content: ''; position: absolute; inset: 0; border-radius: inherit; padding: 1px;
    background: linear-gradient(135deg, rgba(0,82,255,.2), transparent 40%, rgba(0,211,149,.1));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}

.bp-panel-head {
    display: flex; align-items: center; justify-content: space-between;
    margin-bottom: 16px; gap: 12px;
}
.bp-panel-head h2, .section-title {
    font-size: 16px; font-weight: 700; letter-spacing: -0.02em;
    display: flex; align-items: center; gap: 8px;
}
.bp-panel-head a, .bp-link { font-size: 12px; font-weight: 600; color: var(--accent-bright); }
.bp-panel-head a:hover, .bp-link:hover { text-decoration: underline; }

/* Hero home */
.bp-hero {
    display: grid; grid-template-columns: 1fr 1fr; gap: 32px;
    align-items: center; margin-bottom: 32px;
    padding: 40px; border-radius: var(--radius);
    background: var(--bg-card);
    border: 1px solid var(--border);
    backdrop-filter: var(--glass);
    position: relative; overflow: hidden;
    box-shadow: var(--shadow-glow);
}
.bp-hero::before {
    content: ''; position: absolute; top: -50%; right: -20%;
    width: 60%; height: 200%;
    background: radial-gradient(ellipse, rgba(0,82,255,.12), transparent 60%);
    pointer-events: none;
}
.bp-hero-badge {
    display: inline-flex; align-items: center; gap: 6px;
    padding: 5px 12px; border-radius: 999px; margin-bottom: 16px;
    background: var(--accent-soft); border: 1px solid rgba(0,82,255,.25);
    font-size: 11px; font-weight: 700; color: var(--accent-bright);
    letter-spacing: 0.06em; text-transform: uppercase;
}
.bp-hero h1 {
    font-size: clamp(28px, 4vw, 42px); font-weight: 800;
    letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 12px;
}
.bp-hero h1 span {
    background: linear-gradient(135deg, #fff 30%, var(--accent-bright) 70%, var(--mint));
    -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.bp-hero-desc { font-size: 15px; color: var(--text-muted); margin-bottom: 24px; max-width: 440px; }

.bp-hero-search {
    display: flex; gap: 10px; max-width: 480px;
}
.bp-hero-search input {
    flex: 1; padding: 14px 18px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: rgba(0,0,0,.3);
    color: var(--text); font-size: 14px; outline: none;
    transition: border-color 0.2s, box-shadow 0.2s;
}
.bp-hero-search input:focus {
    border-color: var(--border-bright);
    box-shadow: 0 0 0 3px rgba(0,82,255,.15);
}
.bp-hero-search input::placeholder { color: var(--text-dim); }
.bp-hero-search button {
    padding: 14px 24px; border-radius: var(--radius-sm);
    background: linear-gradient(135deg, var(--accent-bright), var(--accent));
    color: #fff; font-weight: 700; font-size: 14px;
    box-shadow: 0 4px 20px var(--accent-glow);
    transition: transform 0.15s;
}
.bp-hero-search button:hover { transform: translateY(-1px); }

.bp-chips { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.bp-chip {
    padding: 6px 14px; border-radius: 999px; font-size: 12px; font-weight: 600;
    background: rgba(255,255,255,.05); border: 1px solid var(--border);
    color: var(--text-muted); cursor: pointer; transition: all 0.15s;
}
.bp-chip:hover {
    color: var(--text); border-color: var(--border-bright);
    background: var(--accent-soft);
}

.bp-hero-visual { display: grid; place-items: center; position: relative; }
.bp-hex-ring {
    width: 220px; height: 220px; position: relative;
    animation: hexSpin 30s linear infinite;
}
.bp-hex-ring svg { width: 100%; height: 100%; }
.bp-hex-core {
    position: absolute; inset: 50%; transform: translate(-50%, -50%);
    width: 100px; height: 100px;
    background: linear-gradient(135deg, var(--accent), var(--mint));
    border-radius: 50%;
    display: grid; place-items: center;
    box-shadow: 0 0 60px var(--accent-glow), 0 0 30px rgba(0,211,149,.3);
    animation: corePulse 3s ease-in-out infinite;
}
.bp-hex-core svg { width: 48px; height: 48px; opacity: 0.9; }
@keyframes hexSpin { to { transform: rotate(360deg); } }
@keyframes corePulse { 0%, 100% { box-shadow: 0 0 60px var(--accent-glow); } 50% { box-shadow: 0 0 80px var(--accent-glow), 0 0 40px rgba(0,211,149,.4); } }

/* Stats strip */
.bp-stats {
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px;
    margin-bottom: 28px;
}
.bp-stat {
    padding: 18px 16px; border-radius: var(--radius-sm);
    background: var(--bg-card); border: 1px solid var(--border);
    backdrop-filter: var(--glass);
    text-align: center; transition: border-color 0.2s, transform 0.2s;
}
.bp-stat:hover { border-color: var(--border-bright); transform: translateY(-2px); }
.bp-stat-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 6px;
}
.bp-stat-value { font-size: 22px; font-weight: 800; letter-spacing: -0.02em; }
.bp-stat-value.mono { font-size: 18px; }

/* Dual grid */
.bp-dual { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* Tables */
.table-scroll { overflow-x: auto; margin: 0 -4px; padding: 0 4px; }
table { width: 100%; border-collapse: collapse; }
th {
    text-align: left; font-size: 10px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.08em;
    color: var(--text-dim); padding: 10px 12px;
    border-bottom: 1px solid var(--border);
}
td {
    padding: 12px; font-size: 13px;
    border-bottom: 1px solid rgba(255,255,255,.04);
    vertical-align: middle;
}
tbody tr { transition: background 0.15s; }
tbody tr:hover { background: var(--bg-hover); }
.hash-link, a.hash-link { color: var(--accent-bright); font-weight: 600; }
.hash-link:hover { text-decoration: underline; color: var(--cyan); }
.bp-arrow { color: var(--text-dim); margin: 0 4px; font-size: 11px; }

/* Buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px 22px; border-radius: var(--radius-sm);
    font-size: 14px; font-weight: 700; transition: all 0.15s;
}
.btn-blue {
    background: linear-gradient(135deg, var(--accent-bright), var(--accent));
    color: #fff; box-shadow: 0 4px 16px var(--accent-glow);
}
.btn-blue:hover { transform: translateY(-1px); }
.btn-outline {
    border: 1px solid var(--border); color: var(--text-muted);
    background: rgba(255,255,255,.03);
}
.btn-outline:hover { border-color: var(--border-bright); color: var(--text); }

/* Page hero */
.bp-page-hero {
    padding: 28px 32px; border-radius: var(--radius); margin-bottom: 22px;
    background: linear-gradient(135deg, rgba(0,82,255,.15), rgba(0,211,149,.08));
    border: 1px solid var(--border-bright);
    display: flex; align-items: center; justify-content: space-between;
    flex-wrap: wrap; gap: 16px;
    position: relative; overflow: hidden;
}
.bp-page-hero::after {
    content: ''; position: absolute; top: 0; right: 0; width: 200px; height: 100%;
    background: radial-gradient(circle at 100% 50%, rgba(0,82,255,.2), transparent 70%);
    pointer-events: none;
}
.bp-page-hero-label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.12em; color: var(--accent-bright); margin-bottom: 6px;
}
.bp-page-hero-title { font-size: clamp(18px, 3vw, 28px); font-weight: 800; letter-spacing: -0.03em; }
.bp-page-hero-hash {
    font-family: var(--mono); font-size: 13px; word-break: break-all;
    color: var(--text-muted); margin-top: 4px;
}
.bp-copy-btn {
    padding: 8px 16px; border-radius: var(--radius-xs);
    background: rgba(255,255,255,.08); border: 1px solid var(--border);
    font-size: 12px; font-weight: 600; color: var(--text);
    transition: all 0.15s;
}
.bp-copy-btn:hover { background: var(--accent-soft); border-color: var(--border-bright); }

/* Balance cards */
.bp-balance-row {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px; margin-bottom: 22px;
}
.bp-bal-card {
    padding: 20px; border-radius: var(--radius-sm);
    background: var(--bg-card); border: 1px solid var(--border);
    text-align: center;
}
.bp-bal-card .label {
    font-size: 10px; font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--text-dim);
}
.bp-bal-card .amount { font-size: 26px; font-weight: 800; margin-top: 6px; letter-spacing: -0.02em; }
.bp-bal-card .usd { font-size: 13px; color: var(--mint); margin-top: 4px; font-weight: 600; }

/* Detail grid */
.detail-grid {
    display: grid; grid-template-columns: 180px 1fr;
    border-radius: var(--radius-sm); overflow: hidden;
    border: 1px solid var(--border);
}
.detail-grid .label {
    padding: 14px 18px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-dim); background: rgba(0,0,0,.25);
    border-bottom: 1px solid var(--border);
}
.detail-grid .val {
    padding: 14px 18px; font-size: 13px;
    border-bottom: 1px solid var(--border);
    word-break: break-all; background: rgba(255,255,255,.02);
}
.detail-grid .val a { color: var(--accent-bright); font-weight: 600; }

/* Gas page */
.bp-page-intro { text-align: center; padding: 20px 0 28px; }
.bp-page-intro h1 { font-size: clamp(24px, 4vw, 36px); font-weight: 800; letter-spacing: -0.03em; margin-bottom: 8px; }
.bp-page-intro p { color: var(--text-muted); font-size: 14px; }

.bp-gas-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 24px; }
.bp-gas-box {
    padding: 32px 20px; border-radius: var(--radius); text-align: center;
    background: var(--bg-card); border: 1px solid var(--border);
    transition: transform 0.2s, box-shadow 0.2s;
}
.bp-gas-box:hover { transform: translateY(-4px); box-shadow: var(--shadow-glow); }
.bp-gas-box .tier {
    font-size: 11px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.1em; margin-bottom: 12px;
}
.bp-gas-box.slow .tier { color: var(--green); }
.bp-gas-box.standard .tier { color: var(--accent-bright); }
.bp-gas-box.fast .tier { color: var(--amber); }
.bp-gas-box .gwei { font-size: 40px; font-weight: 800; letter-spacing: -0.03em; line-height: 1; }
.bp-gas-box .gwei-unit { font-size: 13px; color: var(--text-dim); margin-top: 4px; }
.bp-gas-box .est { font-size: 12px; color: var(--text-muted); margin-top: 10px; }

.bp-mini-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px; }
.bp-mini-stat {
    padding: 16px; border-radius: var(--radius-sm);
    background: rgba(255,255,255,.03); border: 1px solid var(--border);
    text-align: center;
}
.bp-mini-stat .label { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-dim); }
.bp-mini-stat .val { font-size: 20px; font-weight: 700; margin-top: 4px; }

/* Network / RPC */
.bp-rpc-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 0; border-bottom: 1px solid var(--border); gap: 12px;
}
.bp-rpc-row:last-child { border-bottom: none; }
.bp-rpc-name { font-weight: 600; font-size: 13px; }
.bp-rpc-url { font-family: var(--mono); font-size: 11px; color: var(--text-dim); margin-top: 2px; }
.rpc-ok { color: var(--green); font-weight: 700; font-size: 12px; }
.rpc-err { color: var(--red); font-weight: 700; font-size: 12px; }

.chain-info { display: grid; grid-template-columns: 200px 1fr; border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.chain-info .ci-label {
    padding: 12px 16px; font-size: 11px; font-weight: 700;
    text-transform: uppercase; letter-spacing: 0.06em;
    color: var(--text-dim); background: rgba(0,0,0,.25);
    border-bottom: 1px solid var(--border);
}
.chain-info .ci-val {
    padding: 12px 16px; font-size: 13px;
    border-bottom: 1px solid var(--border);
    background: rgba(255,255,255,.02);
}
.chain-info .ci-val a { color: var(--accent-bright); }

/* API docs */
.bp-endpoint, .endpoint {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 22px; margin-bottom: 14px;
}
.bp-endpoint h3, .endpoint h3 {
    font-size: 15px; font-weight: 700; margin-bottom: 6px;
    display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.bp-method, .endpoint .method {
    display: inline-block; padding: 3px 10px; border-radius: 6px;
    font-size: 10px; font-weight: 800; letter-spacing: 0.04em;
    background: linear-gradient(135deg, var(--accent), #003ecf); color: #fff;
}
.bp-auth-badge, .endpoint .auth-badge {
    font-size: 10px; font-weight: 700; padding: 3px 8px; border-radius: 6px;
    background: var(--mint-soft); color: var(--mint);
}
.bp-endpoint .desc, .endpoint .desc { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.param-table { width: 100%; border-collapse: collapse; font-size: 12px; margin-bottom: 12px; }
.param-table th { text-align: left; padding: 8px 12px; background: rgba(0,0,0,.3); font-weight: 600; }
.param-table td { padding: 8px 12px; border-bottom: 1px solid var(--border); }
.param-table .type { color: var(--cyan); font-weight: 600; }
.code-block {
    background: rgba(0,0,0,.45); color: #e2e8f0;
    border-radius: var(--radius-sm); padding: 16px 18px;
    font-family: var(--mono); font-size: 12px; overflow-x: auto;
    line-height: 1.65; border: 1px solid var(--border);
}
.code-block .kw { color: #7dd3fc; }
.code-block .str { color: #86efac; }
.code-block .cmt { color: #64748b; }

/* Tokens, load more */
.token-row {
    display: flex; align-items: center; justify-content: space-between;
    padding: 12px 4px; border-bottom: 1px solid var(--border);
}
.token-row:last-child { border-bottom: none; }
.token-name { font-weight: 600; }
.token-bal { font-family: var(--mono); font-size: 13px; color: var(--mint); }
.load-more {
    display: block; width: 100%; padding: 14px; margin-top: 14px;
    text-align: center; border-radius: var(--radius-sm);
    border: 1px solid var(--border); font-weight: 700;
    color: var(--accent-bright); background: rgba(255,255,255,.03);
    transition: all 0.15s;
}
.load-more:hover { border-color: var(--border-bright); background: var(--accent-soft); }

.block-nav { display: flex; gap: 8px; }
.block-nav a {
    padding: 8px 16px; border-radius: var(--radius-xs);
    background: rgba(255,255,255,.08); border: 1px solid var(--border);
    font-size: 13px; font-weight: 600; transition: all 0.15s;
}
.block-nav a:hover { background: var(--accent-soft); border-color: var(--border-bright); }

/* Badges */
.badge, .badge-ok, .badge-fail {
    display: inline-block; padding: 4px 10px; border-radius: 6px;
    font-size: 11px; font-weight: 700;
}
.badge-ok { background: var(--mint-soft); color: var(--green); border: 1px solid rgba(52,211,153,.25); }
.badge-fail { background: rgba(248,113,113,.12); color: var(--red); border: 1px solid rgba(248,113,113,.25); }

/* Loader and toast */
.loader {
    display: inline-block; width: 18px; height: 18px;
    border: 2px solid var(--border); border-top-color: var(--accent-bright);
    border-radius: 50%; animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.bs-toast {
    position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%) translateY(20px);
    padding: 10px 20px; border-radius: 999px; font-size: 13px; font-weight: 600;
    background: var(--bg-card-solid); border: 1px solid var(--border-bright);
    color: var(--text); opacity: 0; pointer-events: none; transition: all 0.25s;
    z-index: 999; box-shadow: var(--shadow-glow);
}
.bs-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Search empty state */
.bp-empty {
    text-align: center; padding: 48px 24px;
}
.bp-empty h2 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.bp-empty p { color: var(--text-muted); margin-bottom: 20px; font-size: 14px; }
.bp-empty-form {
    max-width: 520px; margin: 0 auto; display: flex; gap: 10px;
}
.bp-empty-form input {
    flex: 1; padding: 14px 18px; border-radius: var(--radius-sm);
    border: 1px solid var(--border); background: rgba(0,0,0,.3);
    color: var(--text); font-size: 14px; outline: none;
}
.bp-empty-form input:focus { border-color: var(--border-bright); }

/* Footer */
.bp-footer {
    border-top: 1px solid var(--border);
    margin-top: 48px; padding: 40px 0 32px;
    background: rgba(5, 8, 16, 0.6);
}
.bp-footer-grid {
    display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 32px;
}
.bp-footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.bp-footer-logo .logo-sm { width: 32px; height: 32px; }
.bp-footer-logo strong { font-size: 16px; font-weight: 800; }
.bp-footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.6; max-width: 360px; }
.bp-footer-powered { display: flex; gap: 8px; margin-top: 14px; flex-wrap: wrap; }
.bp-chain-badge {
    font-size: 10px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
    background: var(--accent-soft); color: var(--accent-bright);
    border: 1px solid rgba(0,82,255,.2);
}
.bp-chain-badge-mint { background: var(--mint-soft); color: var(--mint); border-color: rgba(0,211,149,.2); }
.bp-copy { margin-top: 16px; font-size: 11px; color: var(--text-dim); }
.bp-footer-col h4 {
    font-size: 12px; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.1em; color: var(--text-dim); margin-bottom: 12px;
}
.bp-footer-col { display: flex; flex-direction: column; gap: 8px; }
.bp-footer-col a { font-size: 13px; color: var(--text-muted); transition: color 0.15s; }
.bp-footer-col a:hover { color: var(--accent-bright); }

.logo-sm { width: 32px; height: 32px; }

/* Responsive */
@media (max-width: 1020px) {
    .bp-hero { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; }
    .bp-hero-desc { margin-left: auto; margin-right: auto; }
    .bp-hero-search { margin: 0 auto; }
    .bp-chips { justify-content: center; }
    .bp-hero-visual { order: -1; }
    .bp-hex-ring { width: 160px; height: 160px; }
    .bp-stats { grid-template-columns: repeat(3, 1fr); }
    .bp-dual { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
    .bp-nav, .bp-wallet-pill { display: none; }
    .bp-search { flex: 1; min-width: 0; }
    .bp-stats { grid-template-columns: repeat(2, 1fr); }
    .bp-gas-grid { grid-template-columns: 1fr; }
    .bp-footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .bp-dot-hide-sm, .bp-metric-hide-sm { display: none; }
    .detail-grid, .chain-info { grid-template-columns: 1fr; }
    .detail-grid .label, .chain-info .ci-label { border-bottom: none; padding-bottom: 4px; }
}
@media (max-width: 480px) {
    .bp-header-inner { padding: 10px 0; }
    .bp-main { padding: 16px 0 32px; }
    .bp-stat-value { font-size: 18px; }
}

/* Address page: AI Wallet tabs */
.bp-addr-hero {
    display: grid; grid-template-columns: 1fr minmax(240px, 320px); gap: 20px;
    margin-bottom: 20px;
}
.bp-addr-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.bp-badge {
    display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
    font-size: 11px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
}
.bp-badge.outline { border: 1px solid var(--border); color: var(--text-muted); background: rgba(255,255,255,.03); }
.bp-badge.wallet { background: linear-gradient(135deg, rgba(0,82,255,.25), rgba(0,211,149,.2)); color: var(--mint); border: 1px solid rgba(0,211,149,.35); }
.bp-badge.count { background: rgba(0,82,255,.15); color: var(--accent-bright); border: 1px solid rgba(0,82,255,.3); text-transform: none; font-size: 12px; }
.bp-addr-hint { font-size: 13px; color: var(--text-muted); margin: 8px 0 14px; line-height: 1.5; }
.bp-addr-actions { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.bp-bal-card-hero { min-height: 160px; }
.bp-bal-mini { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border); }
.bp-bal-mini .k { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-dim); }
.bp-bal-mini .v { font-size: 13px; font-weight: 600; margin-top: 2px; }
.bp-tabs {
    display: flex; gap: 8px; margin-bottom: 14px; flex-wrap: wrap;
    border-bottom: 1px solid var(--border); padding-bottom: 0;
}
.bp-tab {
    appearance: none; border: none; background: transparent; color: var(--text-muted);
    font: inherit; font-size: 13px; font-weight: 700; padding: 10px 16px; cursor: pointer;
    border-bottom: 2px solid transparent; margin-bottom: -1px; transition: color .15s, border-color .15s;
}
.bp-tab:hover { color: var(--text); }
.bp-tab.on { color: var(--accent-bright); border-bottom-color: var(--accent); }
.bp-tab-panel { display: none; }
.bp-tab-panel.on { display: block; }
.bp-panel-note { font-size: 13px; color: var(--text-muted); margin: 0 0 14px; line-height: 1.5; font-weight: 500; }
.bp-op-pill {
    display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700;
}
.bp-op-pill.in { background: rgba(0,211,149,.12); color: var(--mint); border: 1px solid rgba(0,211,149,.25); }
.bp-op-pill.out { background: rgba(248,113,113,.1); color: #fca5a5; border: 1px solid rgba(248,113,113,.25); }
.mono.in { color: var(--mint); }
.mono.out { color: #fca5a5; }
.muted { color: var(--text-dim); }

@media (max-width: 760px) {
    .bp-addr-hero { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}
