:root {
    --bg: #f4f6f8;
    --card: #fff;
    --text: #111827;
    --muted: #6b7280;
    --line: #e5e7eb;
    --brand: #111111;
    --up: #16a34a;
    --down: #dc2626;
    --blue: #2563eb;
}

* { box-sizing: border-box; }
html, body { max-width: 100%; margin: 0; padding: 0; overflow-x: hidden; }
body {
    width: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Noto Sans SC", "Microsoft YaHei", sans-serif;
    background: var(--bg);
    color: var(--text);
    padding-bottom: 76px;
}

a { color: inherit; text-decoration: none; }
img { display: block; border-radius: 50%; }

.topbar {
    position: sticky;
    top: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border-bottom: 1px solid var(--line);
}
.logo { font-weight: 800; font-size: 20px; letter-spacing: .04em; }
.top-search { flex: 1; min-width: 0; }
.top-search input, .hero-search input, select, input[type=number], input[type=email], input[type=password], input[type=search] {
    width: 100%;
    border: 1px solid var(--line);
    background: #f8fafc;
    border-radius: 999px;
    padding: 10px 14px;
    font-size: 15px;
}
.menu-btn {
    flex: 0 0 44px;
    border: 0;
    background: transparent;
    font-size: 22px;
    width: 40px;
    height: 40px;
}

.drawer {
    position: fixed;
    right: 0;
    bottom: 0;
    left: 0;
    background: #fff;
    z-index: 40;
    padding: 16px 16px calc(20px + env(safe-area-inset-bottom));
    border-radius: 22px 22px 0 0;
    box-shadow: 0 -10px 32px rgba(0,0,0,.16);
}
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; font-size: 17px; }
.drawer-close { width: 34px; height: 34px; border: 0; border-radius: 50%; background: #f3f4f6; font-size: 26px; line-height: 1; color: #4b5563; }
.drawer-primary { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drawer-primary a { padding: 14px 12px; border-radius: 12px; background: #f8fafc; font-weight: 700; font-size: 15px; }
.drawer-soon { margin-top: 16px; display: flex; gap: 14px; align-items: center; overflow-x: auto; }
.drawer-soon span { flex: 0 0 auto; color: #9ca3af; font-size: 13px; }
.soon-title { flex: 0 0 auto; margin: 0; color: var(--muted); font-size: 13px; }
.drawer-mask {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,.35);
    z-index: 30;
}

.page { width: 100%; min-width: 0; max-width: 760px; margin: 0 auto; padding: 16px 14px 24px; }
.hero h1, .page-title { font-size: 28px; line-height: 1.25; margin: 0 0 8px; }
.eyebrow { color: var(--blue); font-weight: 700; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 16px; line-height: 1.6; }

.hero-search { display: flex; gap: 8px; margin: 16px 0; }
.hero-search input { border-radius: 14px; background: #fff; padding: 14px; font-size: 16px; }
.hero-search button, .btn {
    border: 0;
    background: var(--brand);
    color: #fff;
    border-radius: 14px;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 700;
    white-space: nowrap;
}
.btn.ghost { background: #fff; color: var(--text); border: 1px solid var(--line); }
.link-btn { border: 0; background: none; color: var(--blue); font-size: 15px; padding: 8px 0; }

.quick-coins { display: flex; flex-wrap: wrap; gap: 8px; }
.quick-coins a {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 999px;
    padding: 8px 12px;
    font-weight: 700;
    font-size: 13px;
}

.actions { display: grid; grid-template-columns: 1fr; gap: 10px; margin: 18px 0; }
.action {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 1px 2px rgba(0,0,0,.04);
}
.action strong { display: block; font-size: 18px; margin-bottom: 4px; }
.action span { color: var(--muted); font-size: 13px; }

.section-head { display: flex; justify-content: space-between; align-items: baseline; }
.section-head h2, .section h2 { font-size: 18px; }

.coin-card, .card, .fx-panel, .stats, .totals {
    background: #fff;
    border-radius: 16px;
    padding: 14px;
    margin: 10px 0;
}
.coin-card-top, .coin-hero { display: flex; gap: 10px; align-items: center; min-width: 0; }
.coin-hero > div, .coin-card-top .coin-identity { min-width: 0; }
.coin-hero h1 { margin: 0; overflow-wrap: anywhere; }
.coin-title { font-weight: 700; }
.coin-title em, .coin-cell em { font-style: normal; color: var(--muted); font-weight: 600; margin-left: 4px; }
.coin-main-price { margin-left: auto; text-align: right; }
.coin-main-price strong { display: block; font-size: 20px; }
.muted { color: var(--muted); font-size: 13px; }
.chg { display: inline-block; border-radius: 8px; padding: 2px 8px; font-size: 12px; font-weight: 700; }
.chg.up { color: var(--up); background: #ecfdf3; }
.chg.down { color: var(--down); background: #fef2f2; }

.fx-grid, .fx-list, .stats {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px 12px;
    margin-top: 12px;
    color: #374151;
    font-size: 13px;
}
.fx-list, .stats { background: #fff; padding: 14px; border-radius: 16px; }
.fx-list div, .stats div { display: flex; flex-direction: column; gap: 4px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.fx-list strong, .stats strong { overflow-wrap: anywhere; font-size: 16px; }
.intro { line-height: 1.7; color: #374151; }

.table-wrap { background: #fff; border-radius: 16px; overflow: hidden; }
.table-head, .table-row {
    display: grid;
    grid-template-columns: 36px 1fr 1.1fr;
    gap: 8px;
    padding: 12px;
    align-items: center;
}
.table-head { color: var(--muted); font-size: 12px; border-bottom: 1px solid var(--line); }
.table-row { border-bottom: 1px solid #f3f4f6; }
.coin-cell { display: flex; gap: 8px; align-items: center; min-width: 0; }
.price-cell { text-align: right; }
.rank { color: var(--muted); }

.pager { display: flex; justify-content: center; gap: 16px; padding: 16px; }
.empty { background: #fff; border-radius: 16px; padding: 24px; text-align: center; color: var(--muted); }
.tabs { display: flex; gap: 8px; margin-bottom: 10px; }
.tab { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 8px 14px; }
.tab.active { background: #111; color: #fff; }
label { display: block; margin: 10px 0; font-size: 14px; color: #374151; }
select, input[type=number], input[type=email], input[type=password] { max-width: 100%; border-radius: 12px; margin-top: 6px; background: #fff; }
.mini-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; margin-top: 16px; }
.ok { color: var(--up); }
.error { color: var(--down); }
.admin-row { background: #fff; border-radius: 12px; padding: 12px; margin: 8px 0; display: flex; justify-content: space-between; gap: 8px; align-items: center; flex-wrap: wrap; }

.tabbar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    background: #fff;
    border-top: 1px solid var(--line);
    padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
    z-index: 20;
}
.tabbar a { text-align: center; padding: 8px; color: #6b7280; font-size: 13px; font-weight: 700; }
.tabbar a.active { color: #111; }

.pf-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; background: #fff; border-radius: 14px; padding: 12px; margin: 8px 0; min-width: 0; }
.pf-item > div:first-child { min-width: 0; }
.pf-item strong { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pf-item button { border: 0; background: none; color: var(--down); }
.totals:empty { display: none; }

@media (min-width: 760px) {
    .actions { grid-template-columns: repeat(3, 1fr); }
    .table-head, .table-row { grid-template-columns: 48px 1.2fr 1fr 1fr; }
    .hide-m { display: block; }
    body { padding-bottom: 0; }
    .tabbar { display: none; }
    .page { padding-top: 24px; }
    .drawer {
        top: 0;
        left: auto;
        width: min(80vw, 320px);
        height: 100%;
        border-radius: 0;
        padding: 24px 18px;
        box-shadow: -8px 0 24px rgba(0,0,0,.08);
    }
    .drawer-primary { grid-template-columns: 1fr; }
    .drawer-primary a { background: transparent; padding: 8px 0; }
    .drawer-soon { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
    .soon-title { margin-top: 10px; }
}

@media (max-width: 759px) {
    .hide-m { display: none; }
}

/* U139 financial design system */
:root {
    --navy: #0b1f33;
    --navy-soft: #123553;
    --blue: #1d4f91;
    --blue-pale: #edf4fb;
    --surface: #ffffff;
    --canvas: #f6f8fb;
    --ink: #102033;
    --secondary: #5f6d7d;
    --hairline: #e7edf3;
    --positive: #17834d;
    --positive-bg: #eaf7f0;
    --negative: #bf3f4a;
    --negative-bg: #fff0f1;
    --radius-card: 18px;
    --radius-control: 12px;
    --shadow-card: 0 4px 20px rgba(11, 31, 51, .06);
    --shadow-float: 0 16px 40px rgba(11, 31, 51, .14);
}

body { background: var(--canvas); color: var(--ink); font-family: Inter, -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif; }
.topbar { height: 68px; gap: 20px; padding: 0 max(20px, calc((100vw - 1100px) / 2)); border-color: var(--hairline); box-shadow: 0 1px 0 rgba(11,31,51,.02); }
.logo { display: inline-flex; align-items: center; gap: 2px; color: var(--navy); font-size: 21px; }
.logo img { display: block; width: auto; height: 34px; border-radius: 0; object-fit: contain; }
.logo-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: var(--navy); color: #fff; font-size: 16px; }
.desktop-nav { display: none; align-items: center; gap: 20px; white-space: nowrap; }
.desktop-nav a { font-size: 14px; color: var(--secondary); font-weight: 600; }
.desktop-nav a.active, .desktop-nav a:hover { color: var(--blue); }
.top-search { max-width: 190px; margin-left: auto; }
.top-search input { height: 38px; background: #f7f9fc; border-radius: 10px; font-size: 14px; padding: 8px 12px; }
.menu-btn { min-width: 44px; min-height: 44px; color: var(--navy); font-size: 20px; border-radius: 10px; }
.menu-btn:active, .menu-btn:hover { background: #f1f5f9; }
.page { max-width: 1100px; padding: 24px 16px 40px; }
.page:has(.usdt-hero) { padding-top: 8px; }
.site-ad { max-width: 1100px; padding: 0 16px; margin-top: 8px; }
.site-footer { position: relative; border-top: 1px solid var(--hairline); background: linear-gradient(180deg, #fff 0%, #f8fafc 100%); color: var(--secondary); }
.site-footer::before { position: absolute; top: -1px; left: 50%; width: 72px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, #b77816, #f0bd55); content: ""; transform: translateX(-50%); }
.footer-inner { max-width: 1100px; margin: 0 auto; padding: 26px 16px 96px; }
.footer-main { display: flex; flex-direction: column; gap: 22px; }
.footer-wordmark { color: var(--navy); font-size: 17px; font-weight: 850; letter-spacing: .04em; }
.footer-brand p { margin: 10px 0 0; color: var(--secondary); font-size: 13px; line-height: 1.7; }
.footer-links { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; }
.footer-links a { color: var(--navy); font-size: 13px; font-weight: 650; }
.footer-links a:hover { color: var(--blue); }
.footer-bottom { display: flex; flex-direction: column; gap: 7px; margin-top: 24px; padding-top: 18px; border-top: 1px solid var(--hairline); color: #7c8998; font-size: 11px; line-height: 1.6; }

.usdt-hero { padding: 0; }
.hero-copy { text-align: center; }
.eyebrow, .section-kicker { color: var(--blue); letter-spacing: .08em; font-size: 11px; font-weight: 800; text-transform: uppercase; }
.hero-copy h1 { margin: 8px 0; color: var(--navy); font-size: clamp(30px, 7vw, 46px); letter-spacing: -.04em; line-height: 1.12; }
.hero-copy p:not(.eyebrow) { margin: 0; color: var(--secondary); font-size: 16px; line-height: 1.65; }
.address-search { display: flex; gap: 10px; max-width: 780px; margin: 26px auto 10px; padding: 14px; border: 1px solid #d9e4ef; border-radius: 18px; background: #fff; box-shadow: 0 12px 30px rgba(11, 31, 51, .08); }
.address-search > label { display: none; }
.address-input { display: flex; flex: 1; align-items: center; min-width: 0; gap: 10px; }
.input-icon { color: var(--blue); padding-left: 8px; font-size: 22px; }
.address-input input { min-width: 0; border: 0; background: transparent; outline: 0; font-size: 16px; padding: 13px 4px; }
.address-search button { min-height: 52px; padding: 0 24px; border: 0; border-radius: 11px; background: var(--navy); color: #fff; font-size: 16px; font-weight: 800; }
.address-search button:hover { background: var(--navy-soft); }
.address-search button:active { transform: translateY(1px); }
.address-note, .address-feedback { text-align: center; margin: 0; font-size: 12px; color: var(--secondary); }
.address-note { display: flex; justify-content: center; gap: 0; }
.address-note span { padding: 0 10px; border-right: 1px solid #d5dee7; }
.address-note span:last-child { border-right: 0; }
.address-feedback { margin-top: 10px; color: var(--blue); font-weight: 600; }
.usdt-rate-card { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px 16px; margin: 0 auto; max-width: 780px; padding: 16px 18px; background: var(--navy); color: #fff; border: 1px solid #173958; border-radius: 16px; box-shadow: 0 10px 22px rgba(11, 31, 51, .14); }
.rate-title { display: flex; gap: 10px; align-items: center; }
.rate-title img { background: #fff; }
.rate-title strong { display: block; font-size: 15px; letter-spacing: .01em; }
.rate-title span { display: block; margin-top: 3px; color: #b9cadd; font-size: 12px; }
.rate-main { text-align: right; }
.rate-main strong { display: block; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 26px; font-weight: 800; letter-spacing: -.06em; }
.rate-main .chg { margin-top: 5px; }
.rate-fiat { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr 1fr; gap: 10px; padding-top: 10px; border-top: 1px solid rgba(255,255,255,.15); }
.rate-fiat span { color: #b9cadd; font-size: 12px; }
.rate-fiat b { display: block; margin-top: 4px; color: #fff; font-family: ui-monospace, monospace; font-size: 14px; }

.feature-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 10px 0 8px; }
.feature-card {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    min-height: 88px;
    padding: 14px;
    border: 1px solid var(--hairline);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-card);
    transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.feature-card:hover { transform: translateY(-2px); border-color: #c5d5e6; box-shadow: 0 10px 24px rgba(11, 31, 51, .08); }
.feature-mark { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--navy); color: #fff; font-size: 14px; font-weight: 800; }
.feature-mark.is-gold { background: linear-gradient(180deg, #d4a017, #9a7010); }
.feature-mark.is-soft { background: var(--blue-pale); color: var(--navy); }
.feature-copy { min-width: 0; }
.feature-copy strong { display: block; overflow: hidden; color: var(--navy); font-size: 15px; font-weight: 800; letter-spacing: -.02em; text-overflow: ellipsis; }
.feature-copy small { display: block; overflow: hidden; margin-top: 4px; color: #8a97a6; font-size: 12px; line-height: 1.4; text-overflow: ellipsis; }
.feature-arrow { color: #7c8ea1; font-size: 22px; line-height: 1; }
.section { margin-top: 26px; }
.section-head { padding-bottom: 10px; }
.section-head h2 { margin: 3px 0 0; color: var(--navy); font-size: 21px; letter-spacing: -.02em; }
.section-head > a { color: var(--blue); font-weight: 700; font-size: 13px; }
.coin-card, .card, .fx-panel, .stats, .totals, .table-wrap { border: 1px solid var(--hairline); border-radius: var(--radius-card); box-shadow: var(--shadow-card); }
.coin-card { padding: 16px; transition: box-shadow .15s ease, transform .15s ease; }
.coin-card:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(11,31,51,.08); }
.coin-main-price strong, .price-cell strong { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; color: var(--navy); }
.coin-main-price strong { font-size: 19px; }
.fx-grid { padding-top: 2px; color: var(--secondary); }
.chg.up { color: var(--positive); background: var(--positive-bg); }
.chg.down { color: var(--negative); background: var(--negative-bg); }
.empty { display: flex; flex-direction: column; gap: 6px; border: 1px dashed #cad7e4; background: #fff; color: var(--secondary); }
.empty strong { color: var(--navy); }
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.page-title, .hero h1 { color: var(--navy); letter-spacing: -.04em; }
.lead { font-size: 15px; }
.btn, .hero-search button { min-height: 44px; border-radius: var(--radius-control); background: var(--navy); }
.btn:hover, .hero-search button:hover { background: var(--navy-soft); }
.top-search input:focus-visible, .hero-search input:focus-visible, input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible { outline: 3px solid rgba(29,79,145,.28); outline-offset: 2px; }
.pf-item button { min-width: 44px; min-height: 44px; }

@media (min-width: 760px) {
    .desktop-nav { display: flex; }
    .usdt-rate-card { grid-template-columns: 1fr 1.1fr 1.3fr; align-items: center; padding: 20px 24px; }
    .rate-fiat { grid-column: auto; padding: 0 0 0 20px; border: 0; border-left: 1px solid rgba(255,255,255,.15); }
    .footer-inner { padding: 32px 16px 28px; }
    .footer-main { flex-direction: row; align-items: flex-start; justify-content: space-between; }
    .footer-brand { max-width: 360px; }
    .footer-wordmark { font-size: 18px; }
    .footer-links { grid-template-columns: repeat(2, auto); justify-content: end; gap: 12px 32px; }
    .footer-bottom { flex-direction: row; justify-content: space-between; align-items: center; }
}

@media (max-width: 480px) {
    .topbar { width: 100vw; max-width: 100vw; gap: 6px; padding: 0 8px; }
    .top-search { width: 0; min-width: 0; max-width: none; }
    .top-search input { display: block; min-width: 0; max-width: 100%; padding-right: 8px; padding-left: 10px; }
    .logo { flex: 0 0 auto; }
    .logo img { height: 24px; max-width: 101px; }
    .address-search { align-items: stretch; flex-direction: column; padding: 12px; }
    .address-input { min-height: 48px; }
    .address-search button { width: 100%; }
    .feature-card { min-height: 84px; padding: 13px 12px; }
    .rate-main strong { font-size: 23px; }
}

@media (max-width: 759px) {
    .coin-hero { display: grid; grid-template-columns: 56px minmax(0, 1fr); align-items: center; }
    .coin-hero .coin-main-price { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; margin: 10px 0 0; padding-top: 12px; border-top: 1px solid var(--hairline); text-align: left; }
    .coin-hero .coin-main-price strong { font-size: 22px; }
}

/* Market data table: desktop density, mobile card clarity */
.market-intro { display: flex; justify-content: space-between; gap: 16px; align-items: flex-end; }
.market-intro .page-title { margin: 3px 0 5px; }
.market-intro .lead { margin: 0; }
.market-freshness { flex: 0 0 auto; color: var(--positive); font-size: 12px; font-weight: 700; padding-bottom: 5px; }
.market-freshness.is-stale { color: #b45309; }
.market-search { display: flex; gap: 8px; max-width: 520px; margin: 24px 0; }
.market-search input { flex: 1; width: 0; min-width: 0; min-height: 44px; padding: 10px 13px; border: 1px solid var(--hairline); border-radius: var(--radius-control); background: #fff; font-size: 15px; }
.market-search button { min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--radius-control); background: var(--navy); color: #fff; font-weight: 700; }
.market-table { overflow: hidden; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: var(--surface); box-shadow: var(--shadow-card); }
.market-table-head, .market-row { display: grid; grid-template-columns: 48px minmax(175px, 1.3fr) 1fr 1fr 1fr 88px; gap: 14px; align-items: center; padding: 0 20px; }
.market-table-head { min-height: 54px; color: #8190a0; font-size: 13px; border-bottom: 1px solid var(--hairline); }
.market-table-head > span:nth-child(n+3) { text-align: right; }
.market-row { min-height: 78px; border-bottom: 1px solid var(--hairline); transition: background .15s ease; }
.market-row:last-child { border-bottom: 0; }
.market-row:hover { background: #f8fbfe; }
.market-row .rank { color: var(--secondary); font-size: 15px; }
.market-row .coin-cell { gap: 12px; min-width: 0; }
.market-row .coin-cell > span { display: flex; flex-direction: column; align-items: flex-start; min-width: 0; overflow: hidden; }
.market-row .coin-cell strong { display: block; max-width: 100%; overflow: hidden; color: var(--ink); font-size: 15px; text-overflow: ellipsis; white-space: nowrap; }
.market-row .coin-cell em { display: inline-block; margin: 4px 0 0; padding: 3px 6px; border-radius: 6px; background: #f3f6f9; color: #7d8996; font-size: 11px; }
.market-value, .price-cell, .change-cell { display: flex; flex-direction: column; gap: 4px; align-items: flex-end; min-width: 0; }
.market-value small, .price-cell small, .change-cell small { display: none; color: var(--secondary); font-size: 11px; }
.market-value strong, .price-cell strong { color: var(--ink); font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 15px; font-weight: 600; }
.change-cell .chg { min-width: 68px; padding: 5px 8px; text-align: center; }

@media (max-width: 759px) {
    .market-intro { display: block; }
    .market-freshness { display: inline-block; margin-top: 8px; }
    .market-search { margin: 18px 0; }
    .market-table { overflow: visible; border: 0; background: transparent; box-shadow: none; }
    .market-table-head { display: none; }
    .market-row { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); grid-template-areas: "rank coin coin coin coin coin coin coin coin coin coin coin" "price price price price price price price price price price price price" "cap cap cap cap volume volume volume details details details details details"; gap: 12px 8px; align-items: stretch; min-height: 0; margin-bottom: 10px; padding: 14px; border: 1px solid var(--hairline); border-radius: 16px; background: #fff; box-shadow: var(--shadow-card); }
    .market-row .rank { grid-area: rank; align-self: center; color: #7d8996; font-size: 12px; }
    .market-row .rank::before { content: "#"; }
    .market-row .hide-m { display: flex; }
    .market-row .coin-cell { position: relative; grid-area: coin; min-width: 0; padding-top: 17px; }
    .market-row .coin-cell::before { position: absolute; top: 0; left: 0; color: var(--secondary); font-size: 10px; font-weight: 400; content: "币种"; }
    .market-row .coin-cell img { flex: 0 0 36px; width: 36px; height: 36px; }
    .price-cell { grid-area: price; flex-direction: row; align-items: baseline; justify-content: space-between; padding-top: 10px; border-top: 1px solid var(--hairline); }
    .market-cap-cell { grid-area: cap; }
    .volume-cell { grid-area: volume; }
    .change-cell { grid-area: details; }
    .market-cap-cell, .volume-cell, .change-cell { align-items: flex-start; justify-content: flex-start; min-width: 0; padding-top: 10px; border-top: 1px solid var(--hairline); }
    .change-cell { align-items: flex-end; }
    .market-value small, .price-cell small, .change-cell small { display: block; overflow: hidden; max-width: 100%; text-overflow: ellipsis; white-space: nowrap; }
    .market-value strong, .price-cell strong { max-width: 100%; overflow: hidden; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
    .price-cell strong { font-size: 15px; white-space: nowrap; }
    .change-cell .chg { min-width: 0; padding: 4px 7px; font-size: 12px; white-space: nowrap; }
}

/* Homepage quote list: one continuous financial data surface */
.usdt-rate-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 14px;
    padding: 14px 16px;
    color: var(--ink);
    background: #fff;
    border: 1px solid var(--hairline);
    box-shadow: var(--shadow-card);
}
.rate-title img { width: 34px; height: 34px; background: #f5f8fb; }
.rate-title strong { color: var(--navy); font-size: 16px; }
.rate-title span { color: var(--secondary); }
.rate-main { text-align: right; }
.rate-main strong { color: var(--navy); font-size: 24px; }
.rate-fiat { grid-column: 1 / -1; padding-top: 8px; border-top-color: var(--hairline); }
.rate-fiat span { color: var(--secondary); }
.rate-fiat b { color: var(--navy); font-size: 14px; }
.feature-grid { margin: 10px 0 8px; }
.feature-status { color: #8a97a6; font-size: 11px; }
.feature-disabled { cursor: default; background: #fbfcfd; }
.feature-disabled:hover { border-color: var(--hairline); background: #fbfcfd; }

.page-crumbs, .wallet-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; color: #8a97a6; font-size: 12px; }
.page-crumbs a, .wallet-crumbs a { color: var(--blue); font-weight: 700; }
.seo-faq { margin-top: 28px; padding: 18px; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-card); }
.seo-faq h2 { margin: 0 0 12px; color: var(--navy); font-size: 18px; }
.seo-faq dl { display: grid; gap: 12px; margin: 0; }
.seo-faq dt { color: var(--navy); font-size: 14px; font-weight: 800; }
.seo-faq dd { margin: 4px 0 0; color: var(--secondary); font-size: 13px; line-height: 1.7; }
h1.rate-title { margin: 0; font-size: inherit; font-weight: inherit; }

.price-section { margin-top: 34px; }
.price-list { overflow: hidden; border: 1px solid var(--hairline); border-radius: var(--radius-card); background: #fff; box-shadow: var(--shadow-card); }
.price-list .coin-card {
    display: block;
    margin: 0;
    padding: 18px;
    border: 0;
    border-radius: 0;
    border-bottom: 1px solid var(--hairline);
    background: transparent;
    box-shadow: none;
}
.price-list .coin-card:last-child { border-bottom: 0; }
.price-list .coin-card:hover { transform: none; background: #f8fbfe; box-shadow: none; }
.price-list .coin-card-top { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; }
.price-list .coin-card-top > img {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    object-fit: contain;
    background: #f7f9fc;
}
.price-list .coin-identity { min-width: 0; }
.price-list .coin-title { overflow: hidden; color: var(--navy); font-size: 16px; text-overflow: ellipsis; white-space: nowrap; }
.price-list .coin-title em { margin-left: 4px; color: #738194; font-size: 12px; }
.price-list .coin-main-price { min-width: 112px; }
.price-list .coin-main-price strong { font-size: 18px; white-space: nowrap; }
.price-list .price-change { display: flex; justify-content: flex-end; align-items: center; gap: 5px; margin-top: 5px; }
.price-list .price-change small { color: #8492a2; font-size: 11px; white-space: nowrap; }
.price-list .fx-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 14px 0 0 52px; padding: 13px 0 0; border-top: 1px solid #f0f3f6; color: #40536a; font-size: 13px; }
.price-list .fx-grid span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.price-list .fx-grid small { margin-right: 5px; color: #8492a2; font-size: 11px; }

@media (min-width: 760px) {
    .usdt-rate-card { padding: 22px 24px; }
    .rate-fiat { grid-column: 1 / -1; grid-template-columns: repeat(4, 1fr); padding: 12px 0 0; border-top: 1px solid var(--hairline); border-left: 0; }
    .feature-grid { gap: 12px; }
    .feature-card { min-height: 96px; padding: 18px 16px; }
    .feature-copy strong { font-size: 16px; }
    .price-list .coin-card { padding: 18px 22px; }
    .price-list .fx-grid { grid-template-columns: repeat(4, 1fr); margin-left: 52px; }
}

/* Multi-chain transfer fee calculator */
.fee-page { max-width: 820px; margin-right: auto; margin-left: auto; }
.fee-page .page-title { margin: 4px 0 8px; }
.fee-layout { display: grid; gap: 12px; margin-top: 22px; }
.fee-form, .fee-result { margin: 0; padding: 18px; }
.fee-form label { margin-top: 0; font-weight: 600; }
.fee-form select, .fee-form input[type="number"] { min-height: 48px; font-size: 16px; }
.fee-amount-input { position: relative; }
.fee-amount-input input { padding-right: 68px; }
.fee-amount-input span { position: absolute; top: 50%; right: 14px; transform: translateY(-50%); color: var(--secondary); font-size: 13px; font-weight: 700; }
.fee-speed { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 18px 0 0; padding: 0; border: 0; }
.fee-speed legend { margin-bottom: 8px; color: #374151; font-size: 14px; font-weight: 600; }
.fee-speed label { display: flex; align-items: center; justify-content: center; min-height: 44px; margin: 0; border: 1px solid var(--hairline); border-radius: 10px; background: #f8fafc; cursor: pointer; font-size: 13px; }
.fee-speed input { accent-color: var(--blue); }
.fee-result { background: var(--navy); color: #fff; }
.fee-result-label { display: block; color: #b9cadd; font-size: 12px; }
.fee-result > strong { display: block; margin-top: 7px; font-family: ui-monospace, Consolas, monospace; font-size: 30px; }
.fee-result > span:nth-of-type(2) { display: block; margin-top: 4px; color: #cbd8e5; }
.fee-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 16px; padding: 12px 0; border-top: 1px solid rgba(255,255,255,.14); }
.fee-summary span { color: #afc0d2; font-size: 12px; }
.fee-summary b { display: block; margin-top: 4px; color: #fff; font-size: 14px; }
.fee-fiat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding-top: 12px; border-top: 1px solid rgba(255,255,255,.14); }
.fee-fiat-grid span { color: #afc0d2; font-size: 12px; }
.fee-fiat-grid b { display: block; margin-top: 4px; color: #fff; font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
.fee-result p { margin: 16px 0 0; color: #b9cadd; font-size: 12px; line-height: 1.5; }
.fee-notice { margin-top: 14px; padding: 14px 16px; border-radius: 12px; background: #eef4fa; color: var(--secondary); }
.fee-notice strong { color: var(--navy); font-size: 14px; }
.fee-notice p { margin: 5px 0 0; font-size: 12px; line-height: 1.6; }
.fee-network-list { margin-top: 26px; }
.fee-network-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.fee-network-list h2 { margin: 0; color: var(--navy); font-size: 17px; }
.fee-network-heading a { color: var(--blue); font-size: 12px; font-weight: 700; }
.fee-network-list > div { display: flex; flex-wrap: wrap; gap: 8px; }
.fee-network-list > .fee-network-heading { margin-bottom: 12px; }
.fee-network-list span { padding: 7px 10px; border: 1px solid var(--hairline); border-radius: 999px; background: #fff; color: var(--secondary); font-size: 12px; }
.fee-network-list b { color: var(--navy); }

@media (min-width: 760px) {
    .fee-layout { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}

/* Shared tool and system pages */
.tool-page { max-width: 860px; margin-right: auto; margin-left: auto; }
.tool-grid { display: grid; gap: 12px; }
.tool-grid .calc-card, .tool-grid .result-card { margin: 0; }
.result-card { min-height: 170px; }
.result-card p { margin: 10px 0; color: var(--secondary); }
.result-card p:first-child { color: var(--navy); font-size: 18px; }
.portfolio-page > .card { padding: 18px; }
.portfolio-page .totals { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 18px; }
.portfolio-page .totals h2 { grid-column: 1 / -1; margin: 0 0 5px; }
.portfolio-page .totals p { margin: 0; color: var(--secondary); }
.portfolio-page .totals strong { display: block; margin-top: 3px; color: var(--navy); }
.error-page { max-width: 560px; margin: 10vh auto; padding: 40px 24px; text-align: center; }
.error-page > span { color: #b3c0ce; font-family: ui-monospace, Consolas, monospace; font-size: 64px; font-weight: 800; }
.error-page h1 { margin: 4px 0 8px; color: var(--navy); }
.error-page p { margin: 0 0 24px; color: var(--secondary); }
.error-page > div { display: flex; justify-content: center; gap: 10px; }

@media (min-width: 760px) {
    .tool-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: stretch; }
    .portfolio-page > .card { display: grid; grid-template-columns: 1fr 1fr auto; gap: 12px; align-items: end; }
    .portfolio-page > .card label { margin: 0; }
}

@media (min-width: 760px) and (max-width: 899px) {
    body { padding-bottom: 76px; }
    .desktop-nav { display: none; }
    .tabbar { display: grid; }
    .site-footer { padding-bottom: 96px; }
}

.wallet-crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 10px; color: #8a97a6; font-size: 12px; }
.wallet-crumbs a { color: var(--blue); font-weight: 700; }
.wallet-page:has(> h1.sr-only) .wallet-crumbs { margin-bottom: 12px; }
.wallet-page:has(> h1.sr-only) .wallet-modes { margin-top: 0; }
.wallet-recent { margin-top: 16px; padding: 16px 18px; }
.wallet-recent h2 { margin: 0; color: var(--navy); font-size: 16px; }
.wallet-recent p { margin: 8px 0 4px; color: var(--secondary); font-size: 13px; line-height: 1.6; }
.wallet-recent a { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; padding: 12px 0; border-top: 1px solid #f0f3f6; color: var(--navy); font-weight: 700; text-decoration: none; }
.wallet-recent small { color: #8a97a6; font-weight: 650; }
.wallet-page { max-width: 820px; margin: 0 auto; }
.wallet-page .page-title { margin: 2px 0 10px; }
.wallet-page .lead { max-width: 36em; margin-bottom: 12px; }
.wallet-modes { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 12px 0 12px; padding: 5px; border: 1px solid var(--hairline); border-radius: 14px; background: #fff; }
#wallet-ledger { scroll-margin-top: 88px; }
.wallet-modes a { display: grid; place-items: center; min-height: 42px; border-radius: 10px; color: var(--secondary); font-size: 14px; font-weight: 700; }
.wallet-modes a.is-on { background: var(--navy); color: #fff; }
.wallet-search {
    display: grid;
    gap: 10px;
    margin: 0;
    padding: 14px;
    border: 1px solid var(--hairline);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-card);
}
.wallet-search-field { display: flex; flex-direction: column; min-width: 0; margin: 0; }
.wallet-search-field span { color: #7c8998; font-size: 12px; font-weight: 700; }
.wallet-search-input { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; align-items: center; margin-top: 6px; }
.wallet-search input {
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--navy);
    font-size: 16px;
    outline: none;
    box-shadow: none;
}
.wallet-clear {
    min-width: 52px;
    min-height: 36px;
    padding: 0 10px;
    border: 1px solid var(--hairline);
    border-radius: 10px;
    background: #f7f9fc;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    caret-color: transparent;
    user-select: none;
    cursor: pointer;
}
.wallet-clear:hover { border-color: #c5d5e6; background: #eef4fb; }
.wallet-search input::placeholder { color: #9aa7b5; }
.wallet-search input:focus, .wallet-search input:focus-visible, .wallet-submit:focus-visible { outline: none; box-shadow: none; }
.wallet-submit { min-height: 48px; }
.wallet-note, .wallet-detect { margin: 10px 0 0; color: #8a97a6; font-size: 12px; line-height: 1.6; }
.wallet-empty-card { margin-top: 16px; padding: 22px 18px; }
.wallet-empty-card strong { display: block; color: var(--navy); font-size: 18px; }
.wallet-empty-card p { margin: 8px 0 0; color: var(--secondary); line-height: 1.7; }
.wallet-identity { display: grid; gap: 12px; margin: 16px 0 8px; padding: 14px 16px; }
.wallet-identity-main { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; }
.wallet-identity-addr { min-width: 0; }
.wallet-identity em { display: block; overflow: hidden; color: #8a97a6; font-size: 12px; font-style: normal; text-overflow: ellipsis; white-space: nowrap; }
.wallet-identity strong { display: block; overflow: hidden; margin-top: 4px; color: var(--navy); font-size: 16px; letter-spacing: .01em; text-overflow: ellipsis; white-space: nowrap; user-select: none; }
.wallet-identity .is-full { display: none; }
.wallet-copy {
    min-height: 36px;
    padding: 0 12px;
    border: 1px solid var(--hairline);
    border-radius: 10px;
    background: #f7f9fc;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    caret-color: transparent;
    user-select: none;
    white-space: nowrap;
    cursor: pointer;
}
.wallet-copy:hover,
.wallet-identity-actions a:hover,
.wallet-sheet-actions a:hover { border-color: #c5d5e6; background: #eef4fb; }
.wallet-identity-actions,
.wallet-sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wallet-identity-actions a,
.wallet-sheet-actions a {
    display: grid;
    place-items: center;
    min-height: 42px;
    border: 1px solid var(--hairline);
    border-radius: 10px;
    background: #f7f9fc;
    color: var(--navy);
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
    caret-color: transparent;
    user-select: none;
}
.wallet-identity-actions a.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.wallet-identity-actions a.is-on:hover { background: #16325c; color: #fff; border-color: #16325c; }
.wallet-sheet-actions { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 0 18px 14px; }
.wallet-sheet-actions .wallet-copy { width: 100%; }
.wallet-banner { margin: 12px 0; padding: 12px 14px; border-radius: 12px; font-size: 13px; line-height: 1.6; }
.wallet-banner.is-caution { background: #fff7ea; color: #8a5a12; }
.wallet-result {
    overflow: hidden;
    margin-top: 16px;
    border: 1px solid var(--hairline);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-card);
}
.wallet-vault {
    padding: 22px 20px 20px;
    border: 0;
    border-radius: 0;
    background:
        linear-gradient(180deg, rgba(240, 189, 85, .18), transparent 52%),
        var(--navy);
    color: #fff;
    box-shadow: none;
}
.wallet-vault-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.wallet-vault-top a { flex: 0 0 auto; color: #f0bd55; font-size: 12px; font-weight: 800; text-decoration: none; white-space: nowrap; }
.wallet-vault span { color: #d7e3ee; font-size: 12px; font-weight: 800; letter-spacing: .04em; }
.wallet-vault b { display: block; margin: 10px 0 8px; font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; font-size: 34px; letter-spacing: -.05em; line-height: 1; }
.wallet-vault small { color: #b9cadd; font-size: 12px; }
.wallet-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: #e8eef4; }
.wallet-stats > div { display: grid; gap: 6px; padding: 14px 16px; background: #fff; }
.wallet-stats em { color: #8a97a6; font-size: 12px; font-style: normal; }
.wallet-stats strong { color: var(--navy); font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; user-select: none; }
.wallet-stats .is-wide { grid-column: 1 / -1; }
.wallet-stats i {
    display: block;
    height: 4px;
    overflow: hidden;
    margin-top: 2px;
    border-radius: 999px;
    background: #eef2f6;
}
.wallet-stats i::after {
    content: "";
    display: block;
    width: var(--pct, 0);
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #c49212, #f0bd55);
}
.wallet-metric { padding: 18px 16px; }
.wallet-metric span, .wallet-metric small { color: var(--secondary); font-size: 12px; }
.wallet-metric b { display: block; margin: 8px 0 6px; color: var(--navy); font-family: ui-monospace, Consolas, monospace; font-size: 26px; }
.wallet-tokens, .wallet-permission, .wallet-approvals { padding: 16px; }
.wallet-ledger { overflow: hidden; margin-top: 14px; padding: 0; }
.wallet-filter { display: grid; gap: 10px; margin: 12px 16px 4px; padding: 10px; border-radius: 14px; background: #f6f8fb; }
.wallet-range { display: flex; flex-wrap: wrap; gap: 6px; }
.wallet-range a { min-height: 34px; padding: 6px 12px; border-radius: 999px; background: #fff; color: #5f6d7d; font-size: 13px; font-weight: 700; border: 1px solid #e4ebf2; }
.wallet-range a.is-on { background: var(--navy); color: #fff; border-color: var(--navy); }
.wallet-dates { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto; gap: 8px; align-items: center; }
.wallet-dates span { color: #8a97a6; font-size: 12px; }
.wallet-dates input[type="date"] { min-height: 40px; margin: 0; padding: 6px 10px; border: 1px solid var(--hairline); border-radius: 10px; background: #fff; color: var(--navy); }
.wallet-dates button { min-height: 40px; padding: 0 14px; }
.wallet-block-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0; padding: 16px 16px 0; }
.wallet-block-head h2, .wallet-keys h3, .wallet-approvals h3 { margin: 0; color: var(--navy); font-size: 16px; }
.wallet-block-head span { color: #8a97a6; font-size: 12px; }
.wallet-line, .wallet-tx-amt { -webkit-tap-highlight-color: transparent; caret-color: transparent; user-select: none; }
.wallet-line { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid #f0f3f6; }
.wallet-line > div, .wallet-line > span { min-width: 0; }
.wallet-line strong, .wallet-line b, .wallet-line span, .wallet-amt { color: var(--navy); }
.wallet-line b, .wallet-amt { flex: 0 0 auto; font-family: ui-monospace, Consolas, monospace; font-weight: 700; }
.wallet-line small { display: block; overflow: hidden; margin-top: 3px; color: #8a97a6; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.wallet-empty { margin: 0; padding: 8px 16px 18px; color: var(--secondary); line-height: 1.7; }
.wallet-day { margin: 8px 0 0; padding: 10px 16px 0; color: #8190a0; font-size: 12px; font-weight: 700; }
.wallet-tx { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 16px; border-top: 1px solid #f0f3f6; color: inherit; text-decoration: none; }
a.wallet-tx:hover { background: #f7f9fc; }
.wallet-tx.is-folded { display: none; }
.wallet-tx-mark { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; font-size: 12px; font-weight: 800; }
.wallet-tx.is-in .wallet-tx-mark { background: var(--positive-bg); color: var(--positive); }
.wallet-tx.is-out .wallet-tx-mark { background: #f3f5f7; color: var(--navy); }
.wallet-tx-main { min-width: 0; }
.wallet-tx-main strong { display: block; color: var(--navy); font-size: 14px; }
.wallet-tx-main p { margin: 3px 0 0; color: #8a97a6; font-size: 12px; }
.wallet-tx-amt { text-align: right; }
.wallet-tx-amt b { display: block; font-family: ui-monospace, Consolas, monospace; font-size: 15px; }
.wallet-tx.is-in .wallet-tx-amt b { color: var(--positive); }
.wallet-tx.is-out .wallet-tx-amt b { color: var(--navy); }
.wallet-tx-amt time { display: block; margin-top: 3px; color: #8a97a6; font-size: 12px; }
.wallet-more { display: grid; place-items: center; width: 100%; min-height: 44px; margin-top: 8px; border: 1px solid var(--hairline); border-radius: 12px; background: #f7f9fc; color: var(--navy); font-weight: 700; text-decoration: none; }
.wallet-verdict { padding: 18px 16px; }
.wallet-verdict span { color: #8a97a6; font-size: 12px; font-weight: 700; }
.wallet-verdict strong { display: block; margin: 6px 0 8px; font-size: 22px; }
.wallet-verdict p { margin: 0; color: var(--secondary); line-height: 1.7; }
.wallet-verdict.is-safe { background: #f5faf6; border-color: #d7eadc; }
.wallet-verdict.is-safe strong { color: #1f6b3a; }
.wallet-verdict.is-caution { background: #fffdf8; border-color: #efe4cf; }
.wallet-verdict.is-caution strong { color: #8a5a12; }
.wallet-verdict.is-risk { background: #fff7f7; border-color: #f3d4d4; }
.wallet-verdict.is-risk strong { color: #9b1c1c; }
.wallet-summary { margin: 0 0 12px; color: var(--secondary); line-height: 1.7; }
.wallet-checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wallet-checks div { padding: 12px; border-radius: 12px; background: #f7f9fc; }
.wallet-checks span { color: #8a97a6; font-size: 12px; }
.wallet-checks strong { display: block; margin-top: 6px; color: var(--navy); }
.wallet-keys { margin-top: 14px; }
.wallet-allow { display: grid; gap: 4px; padding: 12px 0; border-top: 1px solid #f0f3f6; }
.wallet-allow strong { color: var(--navy); }
.wallet-allow p, .wallet-allow em { margin: 4px 0 0; color: #7b8896; font-size: 12px; font-style: normal; }
.wallet-allow.is-warn em { color: #bf3f4a; }
.wallet-report { margin-top: 12px; }
.wallet-sheet { overflow: hidden; padding: 0; border-color: #d7e0ea; box-shadow: 0 16px 40px rgba(11, 31, 51, .08); }
.wallet-sheet-head {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
    padding: 20px 20px 18px;
    background:
        linear-gradient(180deg, rgba(240, 189, 85, .16), transparent 46%),
        var(--navy);
    color: #fff;
}
.wallet-sheet-head p {
    margin: 0 0 8px;
    color: #f0bd55;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .16em;
}
.wallet-sheet-head h2 { margin: 0; color: #fff; font-size: 24px; letter-spacing: -.02em; }
.wallet-sheet-head aside { text-align: right; color: #b9cadd; font-size: 12px; line-height: 1.6; }
.wallet-sheet-head aside em { display: block; color: #f0bd55; font-style: normal; font-weight: 800; }
.wallet-sheet-meta {
    display: grid;
    margin: 0;
    background: #f7f9fc;
    border-bottom: 1px solid #eef2f6;
}
.wallet-sheet-meta div { padding: 12px 18px; border-top: 1px solid #eef2f6; }
.wallet-sheet-meta dt { color: #8a97a6; font-size: 11px; font-weight: 700; }
.wallet-sheet-meta dd { margin: 5px 0 0; color: var(--navy); font-weight: 800; word-break: break-all; }
.wallet-sheet-meta dd.is-safe { color: #1f6b3a; }
.wallet-sheet-meta dd.is-caution { color: #8a5a12; }
.wallet-sheet-meta dd.is-risk { color: #9b1c1c; }
.wallet-sheet-verdict {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 10px 16px;
    align-items: center;
    padding: 16px 18px;
}
.wallet-sheet-grade span { color: #8a97a6; font-size: 12px; font-weight: 700; }
.wallet-sheet-grade strong { display: block; margin-top: 4px; font-size: 30px; letter-spacing: -.03em; line-height: 1.1; }
.wallet-sheet-verdict p { grid-column: 1 / -1; margin: 0; color: var(--secondary); line-height: 1.7; }
.wallet-sheet-verdict.is-safe { background: #f5faf6; }
.wallet-sheet-verdict.is-safe strong { color: #1f6b3a; }
.wallet-sheet-verdict.is-caution { background: #fffdf8; }
.wallet-sheet-verdict.is-caution strong { color: #8a5a12; }
.wallet-sheet-verdict.is-risk { background: #fff7f7; }
.wallet-sheet-verdict.is-risk strong { color: #9b1c1c; }
.wallet-sheet-counts { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.wallet-sheet-counts li {
    min-width: 58px;
    padding: 8px 10px;
    border: 1px solid #e7edf3;
    border-radius: 10px;
    background: #fff;
    color: #8a97a6;
    font-size: 11px;
    font-weight: 700;
    text-align: center;
}
.wallet-sheet-counts b { display: block; margin-bottom: 2px; color: var(--navy); font-size: 18px; line-height: 1; }
.wallet-sheet-counts .is-ok b { color: #1f6b3a; }
.wallet-sheet-counts .is-warn b { color: #8a5a12; }
.wallet-sheet-counts .is-risk b { color: #9b1c1c; }
.wallet-sheet-section h3,
.wallet-sheet-approvals h3 {
    margin: 0;
    padding: 14px 18px 0;
    color: var(--navy);
    font-size: 14px;
}
.wallet-sheet-table { width: 100%; border-collapse: collapse; }
.wallet-sheet-table th,
.wallet-sheet-table td { padding: 13px 12px; text-align: left; vertical-align: top; border-top: 1px solid #eef2f6; }
.wallet-sheet-table th { background: #f7f9fc; color: #7c8998; font-size: 12px; font-weight: 700; }
.wallet-sheet-table td:first-child { width: 52px; color: #8a97a6; font-family: ui-monospace, Consolas, monospace; font-size: 12px; }
.wallet-sheet-table td:nth-child(2) { color: var(--navy); font-weight: 700; }
.wallet-sheet-table td:last-child b { display: block; color: var(--navy); font-size: 13px; }
.wallet-sheet-table td:last-child small { display: block; margin-top: 4px; color: #8a97a6; font-size: 12px; line-height: 1.6; }
.wallet-sheet-table tr.is-ok { box-shadow: inset 3px 0 0 #1f6b3a; }
.wallet-sheet-table tr.is-warn { box-shadow: inset 3px 0 0 #d4a017; }
.wallet-sheet-table tr.is-risk { box-shadow: inset 3px 0 0 #9b1c1c; }
.wallet-sheet-tag {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
}
.wallet-sheet-table tr.is-ok .wallet-sheet-tag { background: #eaf7f0; color: #1f6b3a; }
.wallet-sheet-table tr.is-warn .wallet-sheet-tag { background: #fff6e8; color: #8a5a12; }
.wallet-sheet-table tr.is-risk .wallet-sheet-tag { background: #ffecec; color: #9b1c1c; }
.wallet-sheet-table tr.is-skip .wallet-sheet-tag { background: #f3f5f7; color: #7c8998; }
.wallet-sheet-approvals { padding: 0 18px 8px; }
.wallet-sheet .wallet-disclaimer {
    margin: 0;
    padding: 14px 18px 18px;
    border-top: 1px solid #eef2f6;
    background: #f8fafc;
    color: #7c8998;
    font-size: 12px;
    line-height: 1.7;
}

@media (min-width: 760px) {
    .wallet-search { grid-template-columns: minmax(0, 1fr) 132px; align-items: end; padding: 14px; }
    .wallet-identity {
        grid-template-columns: minmax(0, 1fr) auto;
        align-items: center;
        padding: 16px 18px;
    }
    .wallet-identity .is-short { display: none; }
    .wallet-identity .is-full { display: inline; }
    .wallet-identity-actions { max-width: none; grid-template-columns: auto auto; }
    .wallet-identity-actions a { min-width: 132px; }
    .wallet-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
    .wallet-stats .is-wide { grid-column: span 2; }
    .wallet-vault { padding: 24px 24px 22px; }
    .wallet-vault b { font-size: 40px; }
    .wallet-filter { grid-template-columns: auto minmax(280px, 1fr); align-items: center; }
    .wallet-tokens { grid-column: 1 / -1; }
    .wallet-tx { grid-template-columns: 32px minmax(0, 1fr) 130px; }
    .wallet-sheet-meta { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; }
    .wallet-sheet-meta div { border-top: 0; border-left: 1px solid #e7edf3; }
    .wallet-sheet-meta div:first-child { border-left: 0; }
    .wallet-sheet-table th:nth-child(3),
    .wallet-sheet-table td:nth-child(3) { width: 76px; }
    .wallet-sheet-table th,
    .wallet-sheet-table td { padding: 14px 16px; }
}

@media (max-width: 759px) {
    .wallet-dates { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
    .wallet-dates span { display: none; }
    .wallet-dates button { grid-column: 1 / -1; }
    .wallet-sheet-verdict { grid-template-columns: 1fr; }
    .wallet-sheet-counts { flex-wrap: wrap; }
    .wallet-sheet-table thead { display: none; }
    .wallet-sheet-table,
    .wallet-sheet-table tbody,
    .wallet-sheet-table tr,
    .wallet-sheet-table td { display: block; width: 100%; }
    .wallet-sheet-table tr { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 2px 8px; padding: 12px 16px; border-top: 1px solid #eef2f6; }
    .wallet-sheet-table td { padding: 0; border: 0; }
    .wallet-sheet-table td:last-child { grid-column: 2 / -1; }
}

@media (max-width: 374px) {
    .price-list .coin-card { padding: 15px 13px; }
    .price-list .coin-card-top { gap: 9px; }
    .price-list .coin-main-price { min-width: 98px; }
    .price-list .coin-main-price strong { font-size: 15px; }
    .price-list .fx-grid { margin-left: 0; gap: 8px; font-size: 12px; }
}

body.is-tx-page {
    background: #07141f;
    color: #fff;
    padding-bottom: 0;
}
.site-ad {
    width: 100%;
    max-width: 760px;
    margin: 8px auto 0;
    padding: 0 14px;
}
.site-ad a { display: block; }
.site-ad img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    object-fit: contain;
    background: #fff;
}

body.is-tx-page .topbar,
body.is-tx-page .drawer,
body.is-tx-page .drawer-mask,
body.is-tx-page .site-ad,
body.is-tx-page .site-footer,
body.is-tx-page .tabbar { display: none; }
body.is-tx-page .page {
    max-width: 480px;
    min-height: 100dvh;
    margin: 0 auto;
    padding: 0;
    background: #0b1f33;
}
.tx-page {
    display: flex;
    flex-direction: column;
    min-height: 100dvh;
    padding: 12px 18px calc(24px + env(safe-area-inset-bottom));
    background: #0b1f33;
    color: #fff;
}
.tx-head {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    min-height: 48px;
}
.tx-back {
    display: grid;
    place-items: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
}
.tx-back svg { width: 18px; height: 18px; }
.tx-head h1 {
    margin: 0;
    color: #fff;
    font-size: 17px;
    font-weight: 750;
    letter-spacing: .02em;
    text-align: center;
}
.tx-hero { padding: 28px 0 12px; text-align: center; }
.tx-amount {
    display: flex;
    justify-content: center;
    align-items: baseline;
    gap: 8px;
    margin: 0;
    line-height: 1;
}
.tx-amount b {
    font-size: clamp(36px, 9vw, 44px);
    font-weight: 750;
    letter-spacing: -.03em;
    font-variant-numeric: tabular-nums;
}
.tx-amount span { color: #fff; font-size: 18px; font-weight: 650; }
.tx-amount.is-out b { color: #e8a4a0; }
.tx-amount.is-in b { color: #5fd38a; }
.tx-meta { margin: 12px 0 0; color: #9aa3ad; font-size: 13px; }
.tx-list { margin: 18px 0 28px; }
.tx-list > div {
    display: grid;
    gap: 8px;
    padding: 16px 0;
    border-top: 1px solid rgba(255, 255, 255, .08);
}
.tx-list dt { color: #c9a36a; font-size: 13px; font-weight: 600; }
.tx-list dd {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin: 0;
    color: #fff;
    font-size: 15px;
    line-height: 1.55;
    word-break: break-all;
}
.tx-list dd span { min-width: 0; flex: 1; }
.tx-copy {
    flex: 0 0 auto;
    margin-top: 1px;
    padding: 0;
    border: 0;
    background: transparent;
    color: #d4b06a;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
}
.tx-explorer {
    display: grid;
    place-items: center;
    width: 100%;
    min-height: 52px;
    margin-top: auto;
    border-radius: 14px;
    background: #e8c25a;
    color: #111;
    font-size: 16px;
    font-weight: 800;
}
.tx-explorer:hover { background: #f0bd55; }
