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

:root {
    --navy: #1e2240;
    --navy2: #262a4a;
    --navy3: #323763;
    --body: #ffffff;
    --panel: #ffffff;
    --panel2: #f8f9fc;
    --border: #e4e6ef;
    --text: #1a1d2e;
    --muted: #6b7191;
    --gold: #f0b90b;
    --gold-soft: #fdf6e0;
    --accent: #4f6ef2;
    --accent-soft: #eef1fe;
    --green: #16a34a;
    --green-soft: #e7f6ed;
    --red: #dc2626;
    --red-soft: #fdecec;
    --mono: "JetBrains Mono", "SF Mono", Consolas, "Courier New", monospace;
    --shadow: 0 1px 2px rgba(20, 24, 50, 0.05), 0 2px 8px rgba(20, 24, 50, 0.05);
}

body {
    font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--body);
    color: var(--text);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    font-size: 14px;
    -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, .brand-name, .hero-title, .stat-card .value, .tab-title {
    font-family: "Source Serif 4", Georgia, "Times New Roman", Times, serif;
    letter-spacing: 0.1px;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: #3348c4; }
code { background: var(--panel2); border: 1px solid var(--border); padding: 2px 6px; border-radius: 5px; font-family: var(--mono); font-size: 0.86em; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 16px; width: 100%; }
.hidden { display: none !important; }

header, .search-block, main, footer { position: relative; z-index: 1; }

/* ============ HEADER ============ */
.topbar { background: #ffffff; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(12, 18, 40, 0.08); border-bottom: 1px solid #e6eaf5; }
.topbar-inner { display: flex; align-items: center; gap: 20px; padding: 9px 16px; flex-wrap: wrap; }

.brand { display: flex; align-items: center; gap: 11px; color: #fff; text-decoration: none !important; flex-shrink: 0; }
.brand-logo { filter: drop-shadow(0 0 8px rgba(240, 185, 11, 0.45)); }
.brand-mark { height: 38px; width: auto; display: block; }
.brand-word { display: flex; flex-direction: column; line-height: 1.15; }
.brand-name { font-size: 21px; font-weight: 600; letter-spacing: 0.2px; color: #fff; }
.brand-name b { color: var(--gold); font-weight: 700; }
.brand-sub { font-size: 10px; color: #9aa3cc; letter-spacing: 0.8px; text-transform: uppercase; font-weight: 500; }

.search { flex: 1; display: flex; align-items: center; min-width: 340px; max-width: 720px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 2px 10px rgba(8, 12, 38, 0.25); }
.search-chain { border: none; background: var(--panel2); color: var(--text); padding: 11px 8px 11px 14px; font-size: 13px; font-weight: 600; outline: none; cursor: pointer; border-right: 1px solid var(--border); max-width: 170px; }
.search input { flex: 1; border: none; color: var(--text); padding: 11px 14px; font-size: 14px; outline: none; font-family: var(--mono); font-size: 13px; background: transparent; min-width: 200px; }
.search input::placeholder { color: #9aa0ba; font-family: "Inter", sans-serif; }
.search button { background: var(--gold); border: none; color: var(--navy); padding: 0 26px; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: filter 0.15s; }
.search button:hover { filter: brightness(1.07); }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; flex-wrap: wrap; }
.nav a { color: #253057; font-size: 13.5px; font-weight: 600; padding: 8px 12px; border-radius: 8px; transition: background 0.15s, color 0.15s; }
.nav a:hover { background: #f2f5ff; color: #1a2342; text-decoration: none; }
.btn-connect {
    display: inline-flex; align-items: center; gap: 7px; background: var(--gold); color: var(--navy);
    border: none; border-radius: 9px; padding: 9px 15px; font-weight: 700; cursor: pointer; font-size: 13.5px; margin-left: 6px;
    transition: filter 0.15s;
}
.btn-connect:hover { filter: brightness(1.07); }

.chainbar { background: #ffffff; border-top: 1px solid #eef1f8; }
.chainbar-inner { display: flex; gap: 6px; padding: 5px 16px; flex-wrap: wrap; align-items: center; }
.chain-pill { display: inline-flex; align-items: center; gap: 7px; color: #3b4569; font-size: 12px; font-weight: 500; padding: 3px 12px; border-radius: 20px; background: #f7f9ff; border: 1px solid #e8edf9; }
.chain-pill-gold { background: #fff8e1; color: #8a6200; font-weight: 700; border: 1px solid #f7deb1; }
.chain-pill-gold .dot { width: 7px; height: 7px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 6px rgba(74, 222, 128, 0.8); }
.chain-stat { color: #60709c; font-size: 12px; padding: 3px 12px; border-radius: 20px; }
.chain-stat-right { margin-left: auto; max-width: 280px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#chainPricePill { color: #ffd75e; }

/* ============ MAIN ============ */
main.container { flex: 1; padding-top: 26px; padding-bottom: 52px; }

/* persistent search block */
.search-block { position: relative; overflow: hidden; background: transparent; border-bottom: 1px solid var(--border); padding-top: 14px; }
.search-block .net-selector { margin-bottom: 10px; }
.search-block .address-checker { margin-bottom: 12px; }

.search-block > .container { position: relative; z-index: 1; }

.search-block::before {
    content: "";
    position: absolute;
    right: 360px;
    top: -2px;
    width: 280px;
    height: 80px;
    pointer-events: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1600 520'%3E%3Crect width='1600' height='520' fill='white'/%3E%3Cg stroke-linecap='round' stroke-width='8'%3E%3Cline x1='40' y1='470' x2='40' y2='518' stroke='%23ff0f57'/%3E%3Crect x='28' y='486' width='24' height='30' fill='%23ff0f57'/%3E%3Cline x1='86' y1='392' x2='86' y2='520' stroke='%238ef0de'/%3E%3Crect x='72' y='420' width='28' height='96' fill='%238ef0de'/%3E%3Cline x1='132' y1='352' x2='132' y2='516' stroke='%23ff0f57'/%3E%3Crect x='118' y='404' width='28' height='76' fill='%23ff0f57'/%3E%3Cline x1='182' y1='372' x2='182' y2='520' stroke='%23ff0f57'/%3E%3Crect x='168' y='454' width='28' height='44' fill='%23ff0f57'/%3E%3Cline x1='230' y1='344' x2='230' y2='520' stroke='%238ef0de'/%3E%3Crect x='216' y='402' width='28' height='96' fill='%238ef0de'/%3E%3Cline x1='278' y1='310' x2='278' y2='490' stroke='%23ff0f57'/%3E%3Crect x='264' y='372' width='28' height='78' fill='%23ff0f57'/%3E%3Cline x1='326' y1='296' x2='326' y2='500' stroke='%238ef0de'/%3E%3Crect x='312' y='352' width='28' height='104' fill='%238ef0de'/%3E%3Cline x1='374' y1='284' x2='374' y2='472' stroke='%23ff0f57'/%3E%3Crect x='360' y='340' width='28' height='70' fill='%23ff0f57'/%3E%3Cline x1='422' y1='286' x2='422' y2='460' stroke='%23ff0f57'/%3E%3Crect x='408' y='338' width='28' height='56' fill='%23ff0f57'/%3E%3Cline x1='470' y1='246' x2='470' y2='402' stroke='%238ef0de'/%3E%3Crect x='456' y='314' width='28' height='74' fill='%238ef0de'/%3E%3Cline x1='518' y1='198' x2='518' y2='360' stroke='%23ff0f57'/%3E%3Crect x='504' y='260' width='28' height='62' fill='%23ff0f57'/%3E%3Cline x1='566' y1='214' x2='566' y2='392' stroke='%238ef0de'/%3E%3Crect x='552' y='272' width='28' height='78' fill='%238ef0de'/%3E%3Cline x1='614' y1='234' x2='614' y2='418' stroke='%23ff0f57'/%3E%3Crect x='600' y='292' width='28' height='92' fill='%23ff0f57'/%3E%3Cline x1='662' y1='192' x2='662' y2='360' stroke='%238ef0de'/%3E%3Crect x='648' y='242' width='28' height='92' fill='%238ef0de'/%3E%3Cline x1='710' y1='162' x2='710' y2='352' stroke='%23ff0f57'/%3E%3Crect x='696' y='232' width='28' height='82' fill='%23ff0f57'/%3E%3Cline x1='758' y1='188' x2='758' y2='356' stroke='%23ff0f57'/%3E%3Crect x='744' y='250' width='28' height='66' fill='%23ff0f57'/%3E%3Cline x1='806' y1='216' x2='806' y2='402' stroke='%23ff0f57'/%3E%3Crect x='792' y='276' width='28' height='78' fill='%23ff0f57'/%3E%3Cline x1='854' y1='332' x2='854' y2='492' stroke='%23ff0f57'/%3E%3Crect x='840' y='362' width='28' height='94' fill='%23ff0f57'/%3E%3Cline x1='902' y1='344' x2='902' y2='504' stroke='%23ff0f57'/%3E%3Crect x='888' y='384' width='28' height='72' fill='%23ff0f57'/%3E%3Cline x1='950' y1='300' x2='950' y2='500' stroke='%238ef0de'/%3E%3Crect x='936' y='352' width='28' height='80' fill='%238ef0de'/%3E%3Cline x1='998' y1='242' x2='998' y2='424' stroke='%23ff0f57'/%3E%3Crect x='984' y='328' width='28' height='80' fill='%23ff0f57'/%3E%3Cline x1='1046' y1='260' x2='1046' y2='420' stroke='%23ff0f57'/%3E%3Crect x='1032' y='340' width='28' height='54' fill='%23ff0f57'/%3E%3Cline x1='1094' y1='234' x2='1094' y2='432' stroke='%23ff0f57'/%3E%3Crect x='1080' y='338' width='28' height='56' fill='%23ff0f57'/%3E%3Cline x1='1142' y1='286' x2='1142' y2='468' stroke='%23ff0f57'/%3E%3Crect x='1128' y='340' width='28' height='112' fill='%23ff0f57'/%3E%3Cline x1='1190' y1='224' x2='1190' y2='512' stroke='%238ef0de'/%3E%3Crect x='1176' y='336' width='28' height='114' fill='%238ef0de'/%3E%3Cline x1='1238' y1='178' x2='1238' y2='354' stroke='%238ef0de'/%3E%3Crect x='1224' y='246' width='28' height='90' fill='%238ef0de'/%3E%3Cline x1='1286' y1='124' x2='1286' y2='310' stroke='%238ef0de'/%3E%3Crect x='1272' y='202' width='28' height='94' fill='%238ef0de'/%3E%3Cline x1='1334' y1='72' x2='1334' y2='278' stroke='%238ef0de'/%3E%3Crect x='1320' y='168' width='28' height='102' fill='%238ef0de'/%3E%3Cline x1='1382' y1='36' x2='1382' y2='252' stroke='%238ef0de'/%3E%3Crect x='1368' y='146' width='28' height='104' fill='%238ef0de'/%3E%3C/g%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: right top;
    opacity: 0.52;
    mix-blend-mode: normal;
}

.search-block::after { content: none; }

.search-block .net-selector,
.search-block .address-checker { box-shadow: none; }
.search-headline-wrap { margin: 6px 0 12px; display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; position: relative; z-index: 2; }
.search-headline-copy { min-width: 0; }
.search-headline { font-size: 28px; line-height: 1.1; color: #11162b; margin-bottom: 4px; }
.search-subhead { color: #4b567d; font-size: 14px; font-weight: 500; }
.search-signin {
    display: inline-flex;
    margin-top: 2px;
    font-size: 12px;
    font-weight: 700;
    color: #1e2240;
    border: 1px solid #dce0f0;
    border-radius: 18px;
    padding: 6px 12px;
    background: #f8f9ff;
    cursor: pointer;
}
.search-signin:hover { border-color: #bcc6e6; background: #f2f5ff; }

.signin-form { display: grid; gap: 10px; }
.signin-form label { display: grid; gap: 5px; color: var(--muted); font-size: 12px; font-weight: 600; }
.signin-form input, .signin-form textarea {
    width: 100%; border: 1px solid var(--border); border-radius: 8px; background: #fff;
    padding: 10px 12px; font-size: 14px; color: var(--text); outline: none;
}
.signin-form textarea { min-height: 100px; resize: vertical; font-family: inherit; }
.signin-form input:focus, .signin-form textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 110, 242, 0.12); }

/* hero */
.hero { background: linear-gradient(140deg, #232850 0%, #1e2240 64%, #2a3061 100%); border-radius: 12px; padding: 12px 18px; margin: 0 auto 14px; color: #eef2ff; position: relative; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.12); box-shadow: none; max-width: 880px; }
.hero::after { content: ""; position: absolute; right: -40px; top: -90px; width: 220px; height: 220px; border-radius: 50%; background: radial-gradient(circle, rgba(240, 185, 11, 0.24), transparent 64%); }
.hero-text { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; line-height: 1.4; }
.hero-text .tagline { color: var(--gold); font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; font-size: 11px; white-space: nowrap; }
.hero-text .hero-title { font-size: 17px; font-weight: 800; letter-spacing: -0.1px; white-space: nowrap; color: #ffffff; }
.hero-text .hero-sub { color: #d5dcfa; font-size: 12.5px; flex: 1; min-width: 260px; }

/* network selector */
.net-selector { display: flex; align-items: center; gap: 12px; background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin-bottom: 12px; box-shadow: var(--shadow); flex-wrap: wrap; }
.net-label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }
.net-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.net-btn { display: inline-flex; align-items: center; gap: 6px; background: var(--panel2); border: 1px solid var(--border); color: var(--text); border-radius: 20px; padding: 6px 14px; font-size: 12.5px; font-weight: 600; cursor: pointer; transition: all 0.15s; }
.net-btn:hover { border-color: var(--accent); color: var(--accent); }
.net-btn.active { background: var(--gold); border-color: var(--gold); color: var(--navy); box-shadow: 0 1px 6px rgba(240, 185, 11, 0.4); }
.net-icon { width: 14px; height: 14px; border-radius: 50%; object-fit: cover; display: inline-block; }
.net-dot-fallback { display: none; }

/* stats */
.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 17px 19px; box-shadow: var(--shadow); border-top: 3px solid var(--gold); }
.stat-card .label { color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: 0.8px; font-weight: 600; }
.stat-card .value { font-size: 23px; font-weight: 800; margin-top: 6px; color: var(--navy); letter-spacing: -0.3px; }
.stat-card .sub { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* panels */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 920px) { .grid-2 { grid-template-columns: 1fr; } }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; box-shadow: var(--shadow); }
.panel h2 { font-size: 14.5px; font-weight: 700; padding: 14px 18px; border-bottom: 1px solid var(--border); color: var(--navy); display: flex; align-items: center; justify-content: space-between; }
.panel h2 a { font-size: 12px; font-weight: 600; }
.panel-body { padding: 6px 0; }
.table-scroll { overflow-x: auto; }
.table-scroll table { min-width: 980px; table-layout: fixed; }
.table-scroll th, .table-scroll td { white-space: nowrap; vertical-align: middle; }
.table-scroll td:nth-child(3) { white-space: normal; }
.inline-chain { display: inline-flex; align-items: center; gap: 6px; }
.feed-panel { margin-top: 2px; }
.feed-subtitle {
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #6f789f;
    padding: 8px 18px;
    border-top: 1px solid #eef1f8;
}
.feed-subtitle:first-child { border-top: 0; }

.news-panel { margin-bottom: 16px; }
.news-marquee { overflow: hidden; padding: 8px 0; }
.news-track {
    display: inline-flex;
    gap: 10px;
    min-width: max-content;
    animation: newsLoop 45s linear infinite;
}
.news-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #e4e8f5;
    border-radius: 999px;
    color: #202743;
    background: #fbfcff;
    white-space: nowrap;
}
.news-pill:hover { background: #f3f6ff; text-decoration: none; }
.news-dot { width: 7px; height: 7px; border-radius: 50%; background: #4f6ef2; }
.news-title { font-weight: 600; font-size: 12.5px; max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.news-meta { color: #7080ad; font-size: 11px; white-space: nowrap; }
@keyframes newsDrop {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}
@keyframes newsLoop {
    from { transform: translateX(0); }
    to { transform: translateX(-50%); }
}

/* tables */
table { width: 100%; border-collapse: collapse; }
th, td { text-align: left; padding: 11px 18px; font-size: 13px; }
th { color: var(--muted); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.7px; border-bottom: 1px solid var(--border); background: var(--panel2); font-weight: 700; }
tbody tr { border-bottom: 1px solid #eef0f7; }
tbody tr:last-child { border-bottom: none; }
tbody tr:hover { background: #fafbfd; }
.mono { font-family: var(--mono); }
.hash { max-width: 250px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.tx-in { color: #5fbf7c; font-weight: 700; }
.tx-out { color: #5f8fe8; font-weight: 700; }
.dir-col { color: #7fa8f6 !important; }
.muted { color: var(--muted); }
.amount { font-weight: 600; color: var(--navy); }
.total-balance-value { color: #1b213b; font-weight: 700; }
.asset-link { color: #1f2a4d; font-weight: 700; display: inline-flex; align-items: center; }
.asset-link:hover { color: #0f6a42; text-decoration: none; }
.asset-row { cursor: pointer; }
.asset-row:hover td { background: #f6f9ff; }
.mini-candles { display: flex; align-items: flex-end; gap: 3px; height: 46px; }
.mini-candles .mc { width: 8px; height: 46px; position: relative; display: inline-block; }
.mini-candles .mc .wick { position: absolute; left: 50%; width: 2px; transform: translateX(-50%); border-radius: 2px; }
.mini-candles .mc .body { position: absolute; left: 1px; width: 6px; border-radius: 2px; }
.mini-candles .mc.up .wick, .mini-candles .mc.up .body { background: #24b274; }
.mini-candles .mc.down .wick, .mini-candles .mc.down .body { background: #e85b6b; }

/* badges */
.badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 10.5px; font-weight: 700; vertical-align: middle; letter-spacing: 0.2px; }
.badge-verified { background: var(--green-soft); color: var(--green); border: 1px solid #bfe8d0; }
.badge-unverified { background: #fef3e2; color: #b45309; border: 1px solid #fde6bd; }
.badge-contract { background: var(--accent-soft); color: var(--accent); border: 1px solid #d4ddfa; }
.badge-wallet { background: #f0f4f9; color: var(--muted); border: 1px solid var(--border); }
.badge-status-ok { background: var(--green-soft); color: var(--green); }
.badge-status-err { background: var(--red-soft); color: var(--red); }
.badge-chain { display: inline-flex; align-items: center; gap: 6px; background: var(--panel2); border: 1px solid var(--border); color: var(--muted); }
.chain-dot { width: 9px; height: 9px; border-radius: 50%; display: inline-block; }

/* detail cards */
.detail-card { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 20px; margin-bottom: 20px; box-shadow: var(--shadow); }
.detail-card-linked { margin-bottom: 0; border-bottom-left-radius: 0; border-bottom-right-radius: 0; }
.detail-row { display: flex; padding: 11px 0; border-bottom: 1px solid #eef0f7; gap: 20px; flex-wrap: wrap; }
.detail-row:last-child { border-bottom: none; }
.detail-row .k { width: 200px; color: var(--muted); flex-shrink: 0; font-size: 13px; font-weight: 500; }
.detail-row .v { flex: 1; word-break: break-all; font-size: 14px; }
.address-strong { color: #0d1326; font-weight: 700; letter-spacing: 0.1px; }
.total-balances-panel.linked { margin-top: 0; border-top-left-radius: 0; border-top-right-radius: 0; border-top: none; margin-bottom: 20px; }

.tab-title { font-size: 22px; font-weight: 800; margin-bottom: 18px; color: var(--navy); letter-spacing: -0.3px; }
.addr-kind-green { color: #1f9d63; }

/* tickers */
.ticker-bar { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; margin-bottom: 22px; box-shadow: var(--shadow); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.ticker { display: inline-flex; align-items: center; gap: 7px; padding: 5px 12px; border-radius: 8px; background: var(--panel2); font-size: 12.5px; font-weight: 600; }
.ticker .sym { color: var(--muted); font-weight: 500; }
.ticker .val { color: var(--navy); font-family: var(--mono); font-size: 12px; }
.ticker .src { color: var(--muted); font-size: 10.5px; font-weight: 500; }

/* faucet */
.faucet-box { max-width: 580px; margin: 0 auto; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 34px; text-align: center; box-shadow: var(--shadow); }
.faucet-box h1 { font-size: 25px; margin-bottom: 8px; color: var(--navy); }
.faucet-box p { color: var(--muted); margin-bottom: 22px; }
.faucet-box input {
    width: 100%; background: #fff; border: 1px solid var(--border); color: var(--text);
    border-radius: 10px; padding: 14px 16px; font-size: 14px; outline: none; font-family: var(--mono); margin-bottom: 16px;
}
.faucet-box input:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 110, 242, 0.12); }
.btn-primary {
    width: 100%; background: linear-gradient(135deg, var(--accent), #6d5df0); border: none; color: #fff;
    border-radius: 10px; padding: 14px; font-size: 15px; font-weight: 700; cursor: pointer;
}
.btn-primary:hover { filter: brightness(1.06); }
.btn-primary:disabled { opacity: 0.55; cursor: not-allowed; }
.alert { padding: 13px 17px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; text-align: left; }
.alert-ok { background: var(--green-soft); border: 1px solid #bfe8d0; color: var(--green); }
.alert-err { background: var(--red-soft); border: 1px solid #f5c6c6; color: var(--red); }
.alert-info { background: var(--accent-soft); border: 1px solid #d4ddfa; color: var(--accent); }

/* tokens */
.token-logo { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #eef1fe, #dde3fb); border: 1px solid var(--border); display: inline-flex; align-items: center; justify-content: center; color: var(--accent); font-weight: 800; font-size: 14px; vertical-align: middle; margin-right: 11px; flex-shrink: 0; overflow: hidden; }
.token-logo img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.token-cell { display: flex; align-items: center; }
.price-up { color: var(--green); }
.price-down { color: var(--red); }

/* admin */
.admin-card { max-width: 820px; margin: 0 auto; background: var(--panel); border: 1px solid var(--border); border-radius: 14px; padding: 28px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-grid label { display: block; color: var(--muted); font-size: 12px; margin-bottom: 5px; font-weight: 500; }
.form-grid input, .form-grid textarea, .form-grid select {
    width: 100%; background: #fff; border: 1px solid var(--border); color: var(--text);
    border-radius: 8px; padding: 11px 13px; font-size: 14px; outline: none; font-family: inherit;
}
.form-grid input:focus, .form-grid textarea:focus, .form-grid select:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(79, 110, 242, 0.1); }
.form-full { grid-column: 1 / -1; }
.btn-secondary { background: var(--accent); border: none; color: #fff; border-radius: 8px; padding: 11px 20px; font-weight: 600; cursor: pointer; margin-top: 12px; font-size: 14px; }
.btn-secondary:hover { filter: brightness(1.06); }
.btn-danger { background: var(--red-soft); color: var(--red); border: 1px solid #f5c6c6; border-radius: 8px; padding: 6px 12px; font-weight: 600; cursor: pointer; font-size: 12px; }
.btn-outline { background: #fff; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 9px 15px; font-weight: 600; cursor: pointer; font-size: 13px; }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }

/* modal */
.modal-overlay { position: fixed; inset: 0; background: rgba(10, 14, 34, 0.6); display: flex; align-items: center; justify-content: center; z-index: 100; backdrop-filter: blur(2px); }
.modal { background: #fff; border-radius: 14px; width: 420px; max-width: 92vw; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3); overflow: hidden; }
.modal-header { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.modal-header h3 { font-size: 16px; color: var(--navy); }
.modal-close { background: none; border: none; font-size: 26px; cursor: pointer; color: var(--muted); line-height: 1; }
.modal-body { padding: 18px 22px 22px; }
.wallet-option { display: flex; align-items: center; gap: 13px; padding: 13px 15px; border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; cursor: pointer; transition: border-color 0.15s, background 0.15s; }
.wallet-option:hover { border-color: var(--accent); background: var(--panel2); }
.wallet-option img { width: 30px; height: 30px; border-radius: 8px; background: #fff; object-fit: contain; }
.wallet-option img { padding: 2px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.06); }
.wallet-option span { font-weight: 600; flex: 1; }
.wallet-tag { font-size: 11px; color: var(--green); background: var(--green-soft); padding: 2px 8px; border-radius: 20px; font-weight: 700; }

/* address checker */
.address-checker { background: var(--panel); border: 1px solid var(--border); border-radius: 12px; padding: 14px 18px; margin-bottom: 22px; box-shadow: var(--shadow); display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.address-checker input { flex: 1; min-width: 320px; background: #fff; border: 1px solid #111827; border-radius: 10px; padding: 11px 15px; font-size: 14px; outline: none; font-family: var(--mono); }
.address-checker input:focus { border-color: #111827; box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.12); }
.address-checker button { background: var(--navy); color: #fff; border: none; border-radius: 10px; padding: 11px 24px; font-weight: 700; cursor: pointer; }
.address-checker button:hover { background: var(--accent); }

/* pager / spinner */
.pager { display: flex; gap: 10px; justify-content: center; margin-top: 18px; }
.pager button { background: #fff; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 8px 16px; cursor: pointer; }
.pager button:hover { border-color: var(--accent); }
.pager button:disabled { opacity: 0.4; cursor: not-allowed; }
.spinner { text-align: center; padding: 46px; color: var(--muted); }
.spinner::before { content: ""; display: inline-block; width: 28px; height: 28px; border: 3px solid var(--border); border-top-color: var(--gold); border-radius: 50%; animation: spin 0.8s linear infinite; margin-right: 10px; vertical-align: middle; }
@keyframes spin { to { transform: rotate(360deg); } }

/* external link icon */
.ext { font-size: 11px; opacity: 0.7; vertical-align: 1px; }

/* footer */
footer.footer { border-top: 1px solid var(--border); background: var(--panel); padding: 26px 0; }
.footer-grid { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; }
.footer-brand { font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.footer-brand small { color: var(--muted); font-weight: 500; font-size: 12px; }
.footer-links { display: flex; gap: 18px; }
.footer-links a { color: var(--muted); font-size: 13px; }
.footer-links a:hover { color: var(--accent); }

.quick-nav {
    position: fixed;
    right: 12px;
    bottom: 14px;
    z-index: 60;
    display: inline-flex;
    gap: 6px;
    background: rgba(255, 255, 255, 0.92);
    border: 1px solid #d7dcee;
    border-radius: 999px;
    padding: 6px;
    box-shadow: 0 4px 14px rgba(18, 24, 48, 0.16);
}
.quick-nav button {
    border: 1px solid #d7dcee;
    background: #fff;
    color: #1e2240;
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
}
.quick-nav button:hover { background: #f2f5ff; }

@media (max-width: 1024px) {
    .topbar-inner { gap: 12px; }
    .nav { gap: 2px; }
    .nav a { padding: 7px 10px; }
}

@media (max-width: 860px) {
    .container { padding: 0 12px; }
    .brand-mark { height: 30px; }
    .topbar-inner { padding: 8px 12px; }
    .nav { width: 100%; justify-content: flex-start; }
    .search-headline { font-size: 22px; }
    .search-subhead { font-size: 13px; }
    .search-headline-wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
    .search-block::before { right: 8px; top: -2px; width: 180px; height: 56px; opacity: 0.35; }
    .address-checker { padding: 12px; gap: 10px; }
    .address-checker input { min-width: 0; width: 100%; }
    .address-checker button { width: 100%; }
    .net-selector { gap: 8px; padding: 10px 12px; }
    .net-btns { gap: 6px; }
    .net-btn { padding: 7px 11px; font-size: 12px; }
    .quick-nav { right: 8px; bottom: 10px; }
}

@media (max-width: 640px) {
    .topbar-inner { align-items: center; }
    .brand { width: 100%; justify-content: center; }
    .nav { justify-content: center; }
    .nav a { font-size: 12.5px; padding: 6px 8px; }
    .btn-connect { margin-left: 0; padding: 8px 12px; font-size: 13px; }
    .chainbar-inner { padding: 8px 12px; gap: 6px; }
    .chain-stat-right { margin-left: 0; max-width: 100%; width: 100%; }
    .hero { padding: 10px 12px; border-radius: 10px; }
    .hero-text { gap: 8px; }
    .hero-text .hero-title { font-size: 15px; white-space: normal; }
    .hero-text .hero-sub { min-width: 0; font-size: 12px; }
    .stats-grid { grid-template-columns: 1fr; gap: 10px; }
    .stat-card { padding: 14px; }
    .tab-title { font-size: 20px; margin-bottom: 14px; }
    th, td { padding: 9px 12px; font-size: 12.5px; }
    .detail-card { padding: 14px; }
    .detail-row { gap: 10px; }
    .detail-row .k { width: 100%; font-size: 12px; }
    .detail-row .v { width: 100%; font-size: 13px; }
    .modal { width: 94vw; }
    .modal-header, .modal-body { padding-left: 14px; padding-right: 14px; }
}

@media (max-width: 430px) {
    .brand-mark { height: 27px; }
    .search-headline { font-size: 20px; }
    .search-subhead { font-size: 12.5px; }
    .search-signin { font-size: 11.5px; padding: 6px 10px; }
    .wallet-option { padding: 11px 10px; gap: 10px; }
    .wallet-option img { width: 26px; height: 26px; }
    .quick-nav { transform: scale(0.95); transform-origin: right bottom; }
}
