/* === TSN Explorer v3 — Network Splash + Full Explorer === */

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

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

:root {
    --bg: #050508;
    --bg-secondary: #0c0c12;
    --bg-card: rgba(13, 17, 23, 0.8);
    --bg-card-hover: rgba(13, 17, 23, 0.95);
    --primary: #a5b4fc;
    --primary-dim: rgba(165,180,252, 0.15);
    --primary-glow: rgba(165,180,252, 0.3);
    --violet: #c7d2fe;
    --text: #f8fafc;
    --text-dim: #94a3b8;
    --text-muted: #64748b;
    --border: rgba(165,180,252, 0.1);
    --border-bright: rgba(165,180,252, 0.25);
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #a5b4fc;
    --radius: 12px;
    --radius-sm: 8px;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Albert Sans', -apple-system, system-ui, sans-serif;
    overflow: hidden;
    height: 100vh;
    cursor: none;
    line-height: 1.6;
}

a { color: var(--primary); text-decoration: none; cursor: none; }
a:hover { opacity: 0.8; }

::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(165,180,252, 0.1); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--border-bright); }

/* === CURSOR === */
.c-dot {
    position: fixed; z-index: 9999;
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary); pointer-events: none;
    transform: translate(-50%, -50%);
    mix-blend-mode: screen;
    transition: width .15s, height .15s;
}
.c-dot.hover { width: 14px; height: 14px; background: #c7d2fe; }
#trailCanvas { position: fixed; inset: 0; z-index: 9998; pointer-events: none; }

/* === FULL SCREEN CANVAS === */
#netCanvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 1; transition: opacity .4s; }

/* === TOP HUD === */
.hud {
    position: fixed; top: 0; left: 0; right: 0; z-index: 10;
    padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(180deg, rgba(5,5,8,.8) 0%, transparent 100%);
    pointer-events: none;
}
.hud > * { pointer-events: auto; }
.hud-logo { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.hud-logo svg { width: 32px; height: 32px; }
.hud-logo em { font-style: normal; font-size: 1.2rem; font-weight: 800; color: #a5b4fc; }
.hud-logo .dim { font-size: 1.2rem; font-weight: 700; color: #94a3b8; }

.hud-stats { display: flex; gap: 24px; align-items: center; }
.hs { display: flex; flex-direction: column; align-items: center; }
.hs-v { font-family: 'JetBrains Mono', monospace; font-weight: 800; font-size: 1rem; font-variant-numeric: tabular-nums; }
.hs-l { font-size: .6rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: .1em; }
.hs-div { width: 1px; height: 24px; background: var(--border); }

.hud-right { display: flex; gap: 12px; align-items: center; }
.hud-btn {
    padding: 8px 18px; border-radius: 10px;
    font-family: inherit; font-size: .82rem; font-weight: 600;
    text-decoration: none; transition: all .3s;
    border: 1px solid var(--border); color: var(--text-muted);
    background: rgba(5,5,8,.6); backdrop-filter: blur(10px);
}
.hud-btn:hover { border-color: var(--primary); color: var(--primary); box-shadow: 0 0 20px rgba(165,180,252,.15); }
.status-pill {
    display: flex; align-items: center; gap: 6px;
    padding: 4px 12px; border-radius: 20px;
    background: rgba(165,180,252,.06); border: 1px solid rgba(165,180,252,.12);
    font-size: .75rem; color: var(--text-muted);
}
.s-dot {
    width: 8px; height: 8px; border-radius: 50%;
    background: var(--primary); box-shadow: 0 0 10px var(--primary-glow);
    animation: pulse 2s infinite;
}
.s-dot.offline { background: var(--danger); box-shadow: 0 0 10px rgba(239,68,68,.5); animation: none; }
@keyframes pulse { 0%,100%{opacity:1} 50%{opacity:.4} }

/* === BOTTOM HUD === */
.hud-bottom {
    position: fixed; bottom: 0; left: 0; right: 0; z-index: 10;
    padding: 12px 24px;
    display: flex; flex-direction: column; align-items: center; gap: 10px;
    background: linear-gradient(0deg, rgba(5,5,8,.9) 0%, rgba(5,5,8,.6) 60%, transparent 100%);
    pointer-events: none;
}
.hud-bottom > * { pointer-events: auto; }

.bottom-nav {
    display: flex; gap: 2px; padding: 4px;
    border-radius: 14px;
    background: rgba(13,17,23,.7); border: 1px solid var(--border);
    backdrop-filter: blur(16px);
}
.bnav-item {
    padding: 8px 14px; border-radius: 10px;
    font-size: .78rem; font-weight: 500;
    color: var(--text-muted); text-decoration: none;
    transition: all .25s; white-space: nowrap;
}
.bnav-item:hover { color: var(--primary); background: rgba(165,180,252,.06); }
.bnav-item.active {
    color: var(--primary); background: rgba(165,180,252,.12);
    font-weight: 600; box-shadow: 0 0 15px rgba(165,180,252,.1);
}

/* === EVENT LOG === */
.event-log {
    position: fixed; bottom: 60px; right: 24px; z-index: 10;
    display: flex; flex-direction: column; gap: 4px;
    max-height: 400px; overflow-y: auto; pointer-events: none;
}
.event-item {
    font-family: 'JetBrains Mono', monospace; font-size: .7rem;
    padding: 6px 12px; border-radius: 8px;
    background: rgba(13,17,23,.7); border: 1px solid var(--border);
    backdrop-filter: blur(8px); color: var(--text-muted);
    animation: eventIn .4s ease-out; white-space: nowrap;
}
.event-item.block { border-left: 3px solid var(--primary); color: var(--primary); }
.event-item.peer { border-left: 3px solid #b088ff; color: #b088ff; }
@keyframes eventIn { from{opacity:0;transform:translateX(20px)} to{opacity:1;transform:translateX(0)} }

/* === NODE TOOLTIP === */
.tooltip {
    position: fixed; z-index: 20;
    background: rgba(13,17,23,.9); border: 1px solid rgba(165,180,252,.2);
    border-radius: 12px; padding: 14px 18px;
    pointer-events: none; opacity: 0; transition: opacity .2s;
    backdrop-filter: blur(16px); min-width: 200px;
    box-shadow: 0 12px 40px rgba(0,0,0,.5);
}
.tooltip.visible { opacity: 1; }
.tt-name { font-weight: 700; font-size: .95rem; margin-bottom: 2px; }
.tt-role { display: inline-block; padding: 2px 8px; border-radius: 4px; font-size: .65rem; font-weight: 700; margin-bottom: 8px; }
.tt-role.miner { background: rgba(165,180,252,.15); color: var(--primary); }
.tt-role.relay { background: rgba(176,136,255,.15); color: #b088ff; }
.tt-row { display: flex; justify-content: space-between; font-size: .78rem; padding: 2px 0; color: var(--text-muted); }
.tt-row span:last-child { font-family: 'JetBrains Mono', monospace; color: var(--text-dim); font-weight: 600; }
.tt-hint { margin-top: 8px; font-size: .65rem; color: var(--text-muted); text-align: center; }

/* === LEGEND === */
.legend { display: flex; gap: 20px; align-items: center; font-size: .75rem; color: var(--text-muted); }
.legend-dot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; margin-right: 4px; }
.legend-dot.miner { background: var(--primary); box-shadow: 0 0 8px var(--primary-glow); }
.legend-dot.relay { background: #b088ff; box-shadow: 0 0 8px rgba(176,136,255,.4); }

/* === NODE DETAIL MODAL === */
.nd-bg {
    position: fixed; inset: 0; background: rgba(0,0,0,.7);
    z-index: 100; display: none; align-items: center; justify-content: center;
    backdrop-filter: blur(8px);
}
.nd-bg.open { display: flex; }
.nd-panel {
    background: rgba(13,17,23,.95); border: 1px solid rgba(165,180,252,.2);
    border-radius: 16px; padding: 28px; max-width: 420px; width: 90%;
    position: relative; box-shadow: 0 0 60px rgba(165,180,252,.1);
    backdrop-filter: blur(20px);
}
.nd-panel h3 { margin: 0 0 4px; font-size: 1.3rem; font-weight: 800; }
.nd-pid { color: #888; font-size: .72rem; font-family: 'JetBrains Mono', monospace; margin-bottom: 12px; word-break: break-all; }
.nd-badge { display: inline-block; padding: 4px 12px; border-radius: 8px; font-size: .72rem; font-weight: 700; margin-bottom: 16px; }
.nd-badge.miner { background: rgba(165,180,252,.12); color: var(--primary); border: 1px solid rgba(165,180,252,.25); }
.nd-badge.seed { background: rgba(176,136,255,.12); color: #b088ff; border: 1px solid rgba(176,136,255,.25); }
.nd-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.nd-item { background: rgba(255,255,255,.03); padding: 12px; border-radius: 10px; border: 1px solid rgba(255,255,255,.04); }
.nd-l { font-size: .65rem; color: #888; text-transform: uppercase; letter-spacing: .05em; margin-bottom: 2px; }
.nd-v { font-size: .9rem; font-weight: 700; }
.nd-x {
    position: absolute; top: 12px; right: 16px;
    color: #888; cursor: pointer; font-size: 1.5rem;
    background: none; border: none;
}
.nd-x:hover { color: var(--text); }

/* === EXPLORER PANELS (overlay) === */
.explorer-panel {
    position: fixed; inset: 0; z-index: 8;
    background: rgba(5,5,8,.92); backdrop-filter: blur(20px);
    display: none; overflow-y: auto;
    padding: 80px 2rem 80px;
}
.explorer-panel.open { display: block; animation: panelIn .4s ease-out; }
@keyframes panelIn { from{opacity:0;transform:translateY(30px)} to{opacity:1;transform:translateY(0)} }
.panel-inner { max-width: 1400px; margin: 0 auto; }
.panel-title { font-size: 1.8rem; font-weight: 900; margin-bottom: 1.5rem; }

/* === SEARCH === */
.search-bar { padding: 0 0 1.5rem; }
.search-input-wrap { position: relative; max-width: 500px; }
.search-icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 0.9rem; color: var(--text-muted); }
.search-input {
    width: 100%; padding: 12px 18px 12px 44px;
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); color: var(--text);
    font-family: 'JetBrains Mono', monospace; font-size: 0.85rem;
    outline: none; backdrop-filter: blur(10px); transition: all 0.2s;
}
.search-input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(165,180,252, 0.15); }
.search-input::placeholder { color: var(--text-muted); }

/* === STATS GRID === */
.stats-grid {
    display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1rem; margin-bottom: 2rem;
}
.stat-card {
    background: var(--bg-card); border: 1px solid var(--border);
    border-radius: var(--radius); padding: 1.25rem 1.5rem;
    backdrop-filter: blur(10px); transition: all 0.3s;
    position: relative; overflow: hidden;
}
.stat-card::before {
    content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px;
    background: linear-gradient(90deg, transparent, var(--primary), transparent);
    opacity: 0; transition: opacity 0.3s;
}
.stat-card:hover { transform: translateY(-2px); border-color: var(--border-bright); }
.stat-card:hover::before { opacity: 1; }
.stat-label { font-size: 0.75rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 6px; }
.stat-value { font-size: 1.75rem; font-weight: 800; font-variant-numeric: tabular-nums; }
.stat-sub { font-size: 0.7rem; color: var(--text-muted); margin-top: 2px; }

@keyframes value-flash {
    0% { color: var(--primary); text-shadow: 0 0 20px var(--primary-glow); }
    100% { color: var(--text); text-shadow: none; }
}
.stat-value.flash { animation: value-flash 0.5s ease-out; }

/* === MINI CHARTS === */
.dashboard-charts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-bottom: 2rem; }
.mini-chart-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; backdrop-filter: blur(10px); }
.mini-chart-card h3 { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 10px; }
.mini-chart-card canvas { max-height: 100px; }

/* === SECTION === */
.section { margin-bottom: 2rem; }
.section-title { font-size: 1rem; font-weight: 700; margin-bottom: 1rem; display: flex; align-items: center; gap: 10px; }
.badge { font-size: 0.7rem; font-weight: 600; background: var(--primary-dim); color: var(--primary); padding: 3px 10px; border-radius: 20px; }
.section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; }

/* === TABLE === */
.table-wrap { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); backdrop-filter: blur(10px); overflow: hidden; }
.data-table { width: 100%; border-collapse: collapse; }
.data-table thead { background: rgba(0, 0, 0, 0.3); }
.data-table th { text-align: left; padding: 12px 16px; font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--text-muted); border-bottom: 1px solid var(--border); white-space: nowrap; }
.data-table td { padding: 10px 16px; font-size: 0.85rem; border-bottom: 1px solid rgba(255, 255, 255, 0.03); color: var(--text-dim); }
.data-table tbody tr { transition: background 0.15s; cursor: pointer; }
.data-table tbody tr:hover { background: rgba(165,180,252, 0.03); }

@keyframes row-appear { 0% { background: rgba(165,180,252, 0.12); } 100% { background: transparent; } }
.new-row { animation: row-appear 1s ease-out; }

.hash-cell { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; color: var(--primary); cursor: pointer; }
.hash-cell:hover { text-decoration: underline; }
.height-cell { font-weight: 700; color: var(--primary); }
.time-cell { color: var(--text-dim); }
.mono { font-family: 'JetBrains Mono', monospace; font-size: 0.8rem; }

.tx-badge { display: inline-flex; align-items: center; padding: 2px 8px; border-radius: 4px; font-size: 0.7rem; font-weight: 600; }
.tx-badge.coinbase { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.tx-badge.transfer { background: var(--primary-dim); color: var(--primary); }
.tx-badge.shielded { background: rgba(168, 85, 247, 0.12); color: #a855f7; }

/* === PAGINATION === */
.pagination { display: flex; justify-content: center; gap: 4px; margin-top: 1rem; padding: 1rem; }
.page-btn { padding: 6px 12px; border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-dim); border-radius: 6px; cursor: pointer; font-family: inherit; font-size: 0.8rem; transition: all 0.2s; }
.page-btn:hover:not(:disabled) { border-color: var(--primary); color: var(--text); }
.page-btn.active { background: var(--primary-dim); color: var(--primary); border-color: var(--primary); font-weight: 600; }
.page-btn:disabled { opacity: 0.3; cursor: default; }

/* === GOTO === */
.goto-block { display: flex; gap: 6px; }
.goto-input { background: var(--bg-card); border: 1px solid var(--border); color: var(--text); padding: 8px 14px; border-radius: var(--radius-sm); font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; width: 160px; outline: none; }
.goto-input:focus { border-color: var(--primary); }
.goto-btn { background: var(--primary); border: none; color: var(--bg); padding: 8px 18px; border-radius: var(--radius-sm); font-family: inherit; font-weight: 700; font-size: 0.85rem; cursor: pointer; }
.goto-btn:hover { box-shadow: 0 0 20px var(--primary-glow); }

/* === CHARTS === */
.charts-controls { display: flex; gap: 4px; margin-bottom: 1.5rem; }
.range-btn { padding: 8px 18px; border: 1px solid var(--border); background: var(--bg-secondary); color: var(--text-dim); font-family: inherit; font-size: 0.85rem; font-weight: 500; border-radius: var(--radius-sm); cursor: pointer; transition: all 0.2s; }
.range-btn:hover { border-color: var(--primary); color: var(--text); }
.range-btn.active { background: var(--primary-dim); color: var(--primary); border-color: var(--primary); font-weight: 600; }
.charts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
.chart-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; backdrop-filter: blur(10px); }
.chart-card h3 { font-size: 0.78rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 12px; }
.chart-card canvas { max-height: 250px; }

/* === CHAIN STATS === */
.chain-stats-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.chain-stat-item { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; backdrop-filter: blur(10px); }
.chain-stat-item .cs-label { font-size: 0.7rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 4px; }
.chain-stat-item .cs-value { font-size: 1.1rem; font-weight: 800; font-variant-numeric: tabular-nums; }

/* === POST-QUANTUM === */
.pq-hero { text-align: center; padding: 2rem 2rem 2rem; }
.pq-hero h1 { font-size: 2rem; font-weight: 800; color: var(--primary); margin-bottom: 8px; }
.pq-subtitle { color: var(--text-dim); font-size: 1rem; }
.pq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 2rem; }
.pq-card { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.5rem; backdrop-filter: blur(10px); transition: all 0.3s; }
.pq-card:hover { border-color: var(--border-bright); transform: translateY(-3px); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.3); }
.pq-card-icon { font-size: 2rem; margin-bottom: 10px; }
.pq-card h3 { font-size: 1.15rem; font-weight: 700; margin-bottom: 2px; }
.pq-card-subtitle { color: var(--primary); font-size: 0.78rem; font-weight: 500; margin-bottom: 10px; }
.pq-card p { color: var(--text-dim); font-size: 0.85rem; line-height: 1.55; margin-bottom: 14px; }
.pq-specs { display: flex; flex-direction: column; gap: 6px; padding-top: 12px; border-top: 1px solid var(--border); }
.pq-spec { display: flex; justify-content: space-between; font-size: 0.8rem; }
.pq-spec span:first-child { color: var(--text-muted); }
.pq-spec span:last-child { font-weight: 600; font-family: 'JetBrains Mono', monospace; }
.pq-yes { color: #10b981 !important; }
.pq-no { color: var(--danger); }
.pq-partial { color: var(--warning); }
.pq-comparison { margin-top: 2rem; }
.pq-comparison .data-table td:last-child { background: rgba(165,180,252, 0.04); font-weight: 600; }
.highlight-col { background: rgba(165,180,252, 0.06) !important; }

/* ZK Flow */
.zk-flow { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 1.5rem; flex-wrap: wrap; }
.zk-step { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.25rem; text-align: center; flex: 1; min-width: 180px; max-width: 240px; backdrop-filter: blur(10px); }
.zk-step-num { width: 32px; height: 32px; border-radius: 50%; background: var(--primary); color: var(--bg); display: flex; align-items: center; justify-content: center; font-weight: 800; margin: 0 auto 10px; }
.zk-step-title { font-weight: 700; margin-bottom: 6px; font-size: 0.9rem; }
.zk-step-desc { color: var(--text-muted); font-size: 0.75rem; line-height: 1.45; }
.zk-arrow { font-size: 1.5rem; color: var(--primary); font-weight: 800; }

/* === API DOCS === */
.api-hero { text-align: center; padding: 2rem 2rem 1.5rem; }
.api-hero h1 { font-size: 1.6rem; font-weight: 800; margin-bottom: 6px; }
.api-hero p { color: var(--text-dim); }
.api-base-url { margin-top: 12px; font-size: 0.85rem; color: var(--text-muted); }
.api-base-url code { background: var(--bg-secondary); padding: 4px 12px; border-radius: 6px; font-family: 'JetBrains Mono', monospace; color: var(--primary); }
.api-endpoint { background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); margin-bottom: 0.75rem; overflow: hidden; backdrop-filter: blur(10px); }
.api-endpoint-header { display: flex; align-items: center; gap: 12px; padding: 14px 20px; cursor: pointer; transition: background 0.2s; }
.api-endpoint-header:hover { background: rgba(165,180,252, 0.03); }
.api-method { padding: 3px 10px; border-radius: 4px; font-size: 0.7rem; font-weight: 800; font-family: 'JetBrains Mono', monospace; }
.api-method.get { background: rgba(16, 185, 129, 0.12); color: #10b981; }
.api-method.post { background: rgba(59, 130, 246, 0.12); color: #3b82f6; }
.api-path { font-family: 'JetBrains Mono', monospace; font-size: 0.85rem; color: var(--text); }
.api-desc { color: var(--text-muted); font-size: 0.8rem; margin-left: auto; }
.api-endpoint-body { display: none; padding: 16px 20px; border-top: 1px solid var(--border); background: rgba(0, 0, 0, 0.2); }
.api-endpoint-body.open { display: block; }
.api-endpoint-body h4 { font-size: 0.72rem; font-weight: 600; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 8px; }
.api-response-example { background: var(--bg); padding: 14px; border-radius: var(--radius-sm); font-family: 'JetBrains Mono', monospace; font-size: 0.75rem; color: var(--text-dim); overflow-x: auto; white-space: pre; line-height: 1.5; border: 1px solid var(--border); }

/* === MODAL === */
.modal-overlay { display: none; position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0,0,0,0.7); backdrop-filter: blur(4px); z-index: 200; align-items: center; justify-content: center; }
.modal-overlay.open { display: flex; }
.modal { background: var(--bg-secondary); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; max-width: 700px; width: 90%; max-height: 80vh; overflow-y: auto; position: relative; }
.modal-title { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; }
.modal-title h2 { font-size: 1.15rem; font-weight: 700; }
.modal-close { background: none; border: none; color: var(--text-muted); font-size: 1.5rem; cursor: pointer; padding: 4px 8px; border-radius: 6px; }
.modal-close:hover { color: var(--text); background: var(--primary-dim); }

.detail-section-title { font-size: 0.7rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.08em; color: var(--primary); margin-top: 1.25rem; margin-bottom: 0.5rem; padding-bottom: 4px; border-bottom: 1px solid var(--border); }
.detail-row { display: flex; gap: 1rem; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.04); font-size: 0.85rem; }
.detail-row .dr-label { flex: 0 0 140px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; color: var(--text-muted); }
.detail-row .dr-value { flex: 1; font-family: 'JetBrains Mono', monospace; font-size: 0.82rem; color: var(--text); word-break: break-all; }
.detail-row .dr-value.hash-val { color: var(--primary); cursor: pointer; }
.detail-row .dr-value.hash-val:hover { text-decoration: underline; }

/* === TOAST === */
.toast { position: fixed; bottom: 2rem; right: 2rem; background: var(--bg-secondary); border: 1px solid var(--border-bright); border-radius: var(--radius-sm); padding: 12px 20px; color: var(--primary); z-index: 300; font-size: 0.85rem; opacity: 0; transform: translateY(10px); transition: all 0.3s; }
.toast.visible { opacity: 1; transform: translateY(0); }
.toast.error { color: var(--danger); border-color: rgba(239, 68, 68, 0.3); }
.toast.success { color: #10b981; border-color: rgba(16, 185, 129, 0.3); }

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

@media (max-width: 768px) {
    .hud-stats { gap: 12px; }
    .hs-v { font-size: .8rem; }
    .hud { padding: 10px 12px; }
    .hud-bottom { padding: 8px 8px; }
    .event-log { display: none; }
    .bottom-nav { overflow-x: auto; gap: 1px; }
    .bnav-item { padding: 6px 10px; font-size: .7rem; }
    .explorer-panel { padding: 70px 1rem 70px; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .dashboard-charts { grid-template-columns: 1fr; }
    .zk-flow { flex-direction: column; }
    .zk-arrow { transform: rotate(90deg); }
}

@media (max-width: 480px) {
    .stats-grid { grid-template-columns: 1fr; }
    .chain-stats-grid { grid-template-columns: 1fr; }
}

/* === Node Search Bar === */
.node-search { display: flex; align-items: center; }
.node-search-input {
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(165,180,252,.15);
    border-radius: 8px;
    padding: 6px 14px;
    color: #e2e8f0;
    font: 500 12px 'JetBrains Mono', monospace;
    width: 220px;
    outline: none;
    transition: border-color .2s, background .2s;
}
.node-search-input::placeholder { color: rgba(255,255,255,.25); }
.node-search-input:focus {
    border-color: rgba(165,180,252,.5);
    background: rgba(255,255,255,.1);
}
