@import url('https://fonts.googleapis.com/css2?family=Manrope:wght@500;600;700;800;900&display=swap');

:root,
html[data-theme="dark"] {
    --bg: #080b0f;
    --bg-elevated: rgba(13, 17, 22, .97);
    --card: rgba(17, 22, 28, .95);
    --card-2: rgba(21, 27, 34, .93);
    --surface: rgba(255, 255, 255, .035);
    --surface-2: rgba(255, 255, 255, .055);
    --stroke: rgba(255, 255, 255, .08);
    --stroke-strong: rgba(255, 255, 255, .14);
    --text: rgba(246, 248, 251, .96);
    --muted: rgba(154, 165, 178, .82);
    --green: #34e88f;
    --green-soft: rgba(52, 232, 143, .12);
    --green-line: rgba(52, 232, 143, .28);
    --danger: #ff6f7f;
    --danger-soft: rgba(255, 111, 127, .12);
    --warning: #eba94a;
    --warning-soft: rgba(235, 169, 74, .14);
    --shadow: 0 16px 38px rgba(0, 0, 0, .24);
    --shadow-soft: 0 12px 26px rgba(0, 0, 0, .18);
    --radius-xl: 30px;
    --radius-lg: 24px;
    --radius-md: 18px;
    --radius-sm: 14px;
    --header-h: 70px;
    --panels-gap: 14px;
}

html[data-theme="light"] {
    --bg: #f4f7fb;
    --bg-elevated: rgba(255, 255, 255, .98);
    --card: rgba(255, 255, 255, .98);
    --card-2: rgba(247, 249, 252, .96);
    --surface: rgba(17, 24, 39, .04);
    --surface-2: rgba(17, 24, 39, .06);
    --stroke: rgba(17, 24, 39, .09);
    --stroke-strong: rgba(17, 24, 39, .15);
    --text: #111827;
    --muted: #667085;
    --green: #20b977;
    --green-soft: rgba(32, 185, 119, .10);
    --green-line: rgba(32, 185, 119, .24);
    --danger: #d43d51;
    --danger-soft: rgba(212, 61, 81, .12);
    --warning: #cb7b11;
    --warning-soft: rgba(203, 123, 17, .12);
    --shadow: 0 16px 34px rgba(15, 23, 42, .10);
    --shadow-soft: 0 10px 22px rgba(15, 23, 42, .08);
}

* { box-sizing: border-box; }

html,
body {
    min-height: 100%;
    background: var(--bg);
}

html {
    background-color: var(--bg);
    overscroll-behavior-y: none;
}

body {
    margin: 0;
    overflow-x: hidden;
    background: var(--bg);
}

.account {
    min-height: calc(100dvh - var(--header-h));
    color: var(--text);
    background:
            radial-gradient(circle at top left, rgba(52, 232, 143, .035), transparent 22%),
            radial-gradient(circle at 50% -10%, rgba(88, 122, 255, .014), transparent 28%),
            var(--bg);
}

@supports not (height: 100dvh) {
    .account { min-height: calc(100vh - var(--header-h)); }
}

.account .mono {
    font-variant-numeric: tabular-nums;
    font-feature-settings: "tnum" 1;
}

.account .wallet-shell {
    width: 100%;
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px 20px 42px;
    display: grid;
    gap: 14px;
}

.account .wallet-hero-card,
.account .panel-card {
    border: 1px solid var(--stroke);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow);
}

.account .wallet-hero-card {
    position: relative;
    overflow: hidden;
    padding: 24px 26px 26px;
    background:
            radial-gradient(circle at 10% 14%, rgba(52, 232, 143, .055), transparent 22%),
            linear-gradient(180deg, rgba(255,255,255,.012), rgba(255,255,255,.006)),
            var(--bg-elevated);
}

.account .wallet-hero-card::before {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(180deg, rgba(255,255,255,.018), rgba(255,255,255,0));
}

.account .wallet-hero-copy {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-right: 310px;
}

.account .wallet-hero-tools {
    position: absolute;
    top: 18px;
    right: 18px;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border: 1px solid var(--stroke);
    border-radius: 16px;
    background: rgba(10, 14, 19, .62);
    backdrop-filter: blur(12px);
}

html[data-theme="light"] .account .wallet-hero-tools {
    background: rgba(255,255,255,.82);
}

.account .hero-metric-card { min-width: 66px; }

.account .hero-metric-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.account .hero-metric-value {
    margin-top: 3px;
    color: var(--text);
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -.03em;
}

.account .hero-divider {
    width: 1px;
    height: 34px;
    background: var(--stroke-strong);
    flex: 0 0 auto;
}

.account .hero-icon-btn {
    width: 42px;
    height: 42px;
    border: 1px solid var(--stroke);
    border-radius: 13px;
    background: var(--surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: var(--text);
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease;
}

.account .hero-icon-btn:hover {
    transform: translateY(-1px);
    border-color: var(--stroke-strong);
    background: var(--surface-2);
    box-shadow: var(--shadow-soft);
}

.account .bal-label {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
    color: var(--muted);
    font-size: 12px;
    font-weight: 900;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.account .bal-value {
    margin-top: 10px;
    font-size: clamp(34px, 5vw, 58px);
    line-height: .96;
    letter-spacing: -.052em;
    font-weight: 900;
}

.account .bal-value small {
    margin-left: 8px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 900;
    letter-spacing: .08em;
}

.account .bal-sub {
    margin-top: 12px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.account .bal-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 12px;
    border: 1px solid var(--stroke-strong);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    font-size: 11px;
    font-weight: 900;
    white-space: nowrap;
}

.account .bal-chip .k,
.account .coin-name,
.account .balance-sub,
.account .history-sub,
.account .history-usd,
.account .section-sub,
.account .mini .t,
.account .table th,
.account .asset-usd {
    color: var(--muted);
}

.account .hero-actions-row {
    margin-top: 28px;
    display: grid;
    grid-template-columns: max-content minmax(0, 1fr);
    align-items: center;
    gap: 16px;
    width: calc(100% + 310px);
    max-width: none;
}

.account .action-tiles {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: nowrap;
    min-width: max-content;
}

.account .tile,
.account .btn {
    color: var(--text);
    text-decoration: none;
    transition: transform .18s ease, border-color .18s ease, background .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.account .tile {
    min-width: 0;
    min-height: 48px;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    padding: 10px 14px;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    background: var(--surface);
}

.account .tile-primary {
    border-color: rgba(52, 232, 143, .22);
    background: linear-gradient(180deg, rgba(52,232,143,.12), rgba(52,232,143,.05)), var(--surface);
}

.account .tile:hover,
.account .btn:hover,
.account .asset-card:hover {
    transform: translateY(-1px);
    border-color: var(--stroke-strong);
    box-shadow: var(--shadow-soft);
}

.account .tile .ico {
    width: 28px;
    height: 28px;
    border: 1px solid var(--stroke-strong);
    border-radius: 999px;
    background: rgba(255,255,255,.025);
    display: grid;
    place-items: center;
    flex: 0 0 auto;
}

.account .tile .t {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
}

.account .coin-ticker {
    position: relative;
    width: 100%;
    min-width: 0;
    height: 62px;
    overflow: hidden;
    display: flex;
    align-items: center;
    mask-image: linear-gradient(90deg, transparent 0, #000 44px, #000 calc(100% - 44px), transparent 100%);
    -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 44px, #000 calc(100% - 44px), transparent 100%);
}

.account .coin-ticker-track {
    height: 100%;
    width: max-content;
    min-width: max-content;
    display: flex;
    align-items: center;
    gap: 34px;
    padding: 0 24px;
    animation: coinTickerMove 80s linear infinite;
    will-change: transform;
}

.account .coin-ticker:hover .coin-ticker-track {
    animation-play-state: paused;
}

.account .coin-ticker-item {
    height: 100%;
    display: inline-flex;
    align-items: center;
    gap: 9px;
    flex: 0 0 auto;
    color: var(--text);
    text-decoration: none;
    white-space: nowrap;
    opacity: .92;
    transition: opacity .18s ease, transform .18s ease;
}

.account .coin-ticker-item:hover {
    opacity: 1;
    transform: translateY(-1px);
}

.account .coin-ticker-icon {
    width: 32px;
    height: 32px;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    background: var(--surface);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    font-size: 11px;
    font-weight: 900;
}

.account .coin-ticker-icon img,
.account .coin-img {
    width: 100%;
    height: 100%;
    border-radius: inherit;
    object-fit: cover;
    display: block;
}

.account .coin-ticker-symbol,
.account .coin-ticker-price,
.account .coin-ticker-dot {
    font-size: 14px;
    font-weight: 900;
}

.account .coin-ticker-dot {
    color: var(--muted);
    opacity: .65;
}

.account .coin-ticker-price {
    letter-spacing: -.02em;
}

@keyframes coinTickerMove {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(-50%, 0, 0); }
}

.account .wallet-panels {
    display: grid;
    grid-template-columns: minmax(0, 1.72fr) minmax(300px, .72fr);
    gap: var(--panels-gap);
    align-items: stretch;
}

.account .panel-card {
    height: 620px;
    min-height: 0;
    position: relative;
    overflow: hidden;
    padding: 20px;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, rgba(255,255,255,.012), rgba(255,255,255,.006)), var(--bg-elevated);
}

.account .panel-head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 14px;
}

.account .panel-head-assets {
    align-items: center;
}

.account .panel-body {
    min-width: 0;
    min-height: 0;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

.account .section-title {
    margin: 6px 0 0;
    font-size: clamp(22px, 2.5vw, 27px);
    line-height: 1;
    letter-spacing: -.035em;
    font-weight: 900;
}

.account .section-sub {
    margin-top: 8px;
    max-width: 42ch;
    font-size: 12px;
    font-weight: 850;
    line-height: 1.5;
    opacity: .92;
}

.account .assets-search {
    width: min(280px, 100%);
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--stroke);
    border-radius: 13px;
    background: var(--surface);
    color: var(--muted);
}

.account .assets-search input {
    width: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 850;
}

.account .assets-search input::placeholder {
    color: var(--muted);
}

.account .panel-scroll {
    min-height: 0;
    overflow: hidden;
}

.account .assets-scroll-area,
.account .history-scroll-area {
    min-height: 0;
    max-height: 100%;
    overflow: auto;
    padding-right: 4px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,.16) transparent;
}

.account .assets-scroll-area::-webkit-scrollbar,
.account .history-scroll-area::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

.account .assets-scroll-area::-webkit-scrollbar-thumb,
.account .history-scroll-area::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,.16);
    border-radius: 999px;
}

.account .table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid var(--stroke);
    border-radius: var(--radius-lg);
    overflow: hidden;
    background: rgba(255,255,255,.014);
}

.account .table th,
.account .table td {
    padding: 13px 12px;
    border-bottom: 1px solid var(--stroke);
    text-align: left;
    vertical-align: middle;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 900;
}

.account .table th {
    position: sticky;
    top: 0;
    z-index: 2;
    backdrop-filter: blur(8px);
    background: rgba(14, 18, 23, .92);
    font-size: 11px;
    letter-spacing: .10em;
    text-transform: uppercase;
}

html[data-theme="light"] .account .table th {
    background: rgba(255,255,255,.94);
}

.account .table tr:last-child td { border-bottom: 0; }
.account .ta-right { text-align: right !important; }

.account .btn {
    height: 34px;
    padding: 0 11px;
    border: 1px solid var(--stroke);
    border-radius: 12px;
    background: var(--surface);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .04em;
    text-transform: uppercase;
    cursor: pointer;
    font-family: inherit;
}

.account .btn-primary {
    border-color: rgba(52,232,143,.20);
    background: linear-gradient(180deg, rgba(52,232,143,.14), rgba(52,232,143,.08)), var(--green-soft);
}

html[data-theme="light"] .account .btn-primary {
    color: #0d3b2b;
}

.account .btn-xs {
    height: 34px;
    padding: 0 11px;
}

.account .td-actions {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    flex-wrap: wrap;
}

.account .asset-cell,
.account .asset-left {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.account .coin-ico {
    width: 36px;
    height: 36px;
    border: 1px solid var(--stroke-strong);
    border-radius: 12px;
    background: var(--surface);
    display: grid;
    place-items: center;
    overflow: hidden;
    flex: 0 0 auto;
    font-size: 14px;
    font-weight: 900;
}

.account .coin-meta { min-width: 0; }

.account .coin-sym {
    font-weight: 900;
    letter-spacing: -.01em;
}

.account .coin-name {
    margin-top: 3px;
    max-width: 220px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 12px;
    font-weight: 850;
    opacity: .92;
}

.account .balance-stack {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.account .balance-main,
.account .price-cell,
.account .allocation-value {
    font-weight: 900;
}

.account .balance-sub {
    font-size: 12px;
    font-weight: 850;
    opacity: .92;
}

.account .allocation-cell {
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.account .allocation-ring {
    --size: 30px;
    width: var(--size);
    height: var(--size);
    border-radius: 999px;
    position: relative;
    display: inline-block;
    background: conic-gradient(var(--text) 0 var(--alloc), rgba(255,255,255,.08) 0 100%);
}

.account .allocation-ring::after {
    content: "";
    position: absolute;
    inset: 5px;
    border-radius: inherit;
    border: 1px solid rgba(255,255,255,.05);
    background: var(--bg-elevated);
}

.account .assets-mobile { display: none; }

.account .asset-card {
    width: 100%;
    display: block;
    padding: 14px;
    border: 1px solid var(--stroke);
    border-radius: 18px;
    background: rgba(255,255,255,.014);
    color: var(--text);
    text-align: left;
    cursor: pointer;
    font-family: inherit;
}

.account .asset-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.account .asset-right {
    min-width: 0;
    text-align: right;
}

.account .asset-overall {
    font-size: 14px;
    font-weight: 900;
    letter-spacing: -.01em;
}

.account .asset-usd {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 850;
    opacity: .92;
}

.account .asset-grid {
    margin-top: 12px;
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.account .mini {
    min-width: 0;
    padding: 11px;
    border: 1px solid var(--stroke);
    border-radius: 16px;
    background: var(--surface);
}

.account .mini .t {
    font-size: 11px;
    font-weight: 900;
    letter-spacing: .12em;
    text-transform: uppercase;
    opacity: .92;
}

.account .mini .v {
    margin-top: 7px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: 13px;
    font-weight: 900;
}

.account .asset-actions {
    margin-top: 12px;
    display: none;
    gap: 8px;
    flex-wrap: wrap;
}

.account .asset-card.open .asset-actions {
    display: flex;
}

.account .history-list {
    display: grid;
    grid-auto-rows: max-content;
    align-content: start;
    align-items: start;
    gap: 8px;
    flex: 1 1 auto;
}

.account .history-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    align-self: start;
    gap: 12px;
    min-height: 66px;
    padding: 12px;
    border: 1px solid var(--stroke);
    border-radius: 16px;
    background: rgba(255,255,255,.014);
}

.account .history-ico {
    width: 40px;
    height: 40px;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    display: grid;
    place-items: center;
}

.account .history-ico svg {
    width: 20px;
    height: 20px;
}

.account .history-ico.is-positive {
    color: var(--green);
    border-color: var(--green-line);
    background: var(--green-soft);
}

.account .history-ico.is-negative {
    color: var(--danger);
    border-color: rgba(255,107,107,.24);
    background: var(--danger-soft);
}

.account .history-copy { min-width: 0; }

.account .history-title,
.account .history-amount {
    font-size: 13px;
    font-weight: 900;
    line-height: 1.35;
}

.account .history-sub,
.account .history-usd {
    margin-top: 4px;
    font-size: 12px;
    font-weight: 850;
    opacity: .92;
}

.account .history-side {
    min-width: 0;
    text-align: right;
}

.account .history-amount {
    white-space: nowrap;
}

.account .history-amount.is-positive { color: var(--green); }
.account .history-amount.is-negative { color: var(--danger); }

.account .history-empty,
.account .assets-empty,
.account .assets-empty-card {
    display: grid;
    place-items: center;
    text-align: center;
    padding: 24px;
    border: 1px dashed var(--stroke-strong);
    border-radius: 20px;
    background: rgba(255,255,255,.012);
}

.account .history-empty {
    min-height: 260px;
}

.account .assets-empty,
.account .assets-empty-card {
    min-height: 180px;
}

.account .history-empty-ico {
    width: 62px;
    height: 62px;
    margin: 0 auto 16px;
    border: 1px solid var(--stroke);
    border-radius: 999px;
    background: var(--surface);
    color: var(--text);
    display: grid;
    place-items: center;
}

.account .history-empty-ico svg {
    width: 28px;
    height: 28px;
}

.account .history-empty-title,
.account .assets-empty-title {
    font-size: 15px;
    font-weight: 900;
}

.account .history-empty-sub,
.account .assets-empty-sub {
    margin-top: 8px;
    max-width: 320px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.6;
    font-weight: 850;
}

.account .asset-card:focus-visible,
.account .tile:focus-visible,
.account .btn:focus-visible,
.account .hero-icon-btn:focus-visible {
    outline: 2px solid rgba(52, 232, 143, .58);
    outline-offset: 3px;
}

@media (max-width: 1180px) {
    .account .wallet-hero-copy {
        padding-right: 0;
    }

    .account .wallet-hero-tools {
        position: static;
        margin-bottom: 16px;
        display: grid;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 8px;
        padding: 0;
        border: 0;
        background: transparent;
        box-shadow: none;
        backdrop-filter: none;
    }

    html[data-theme="light"] .account .wallet-hero-tools {
        background: transparent;
    }

    .account .hero-metric-card,
    .account .hero-icon-btn {
        width: 100%;
        min-width: 0;
        min-height: 54px;
        height: auto;
        padding: 10px 12px;
        border: 1px solid var(--stroke);
        border-radius: 16px;
        background: linear-gradient(180deg, rgba(255,255,255,.02), rgba(255,255,255,.008)), var(--surface);
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: flex-start;
    }

    .account .hero-icon-btn {
        align-items: center;
    }

    .account .hero-divider {
        display: none;
    }

    .account .hero-actions-row {
        width: 100%;
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .account .action-tiles {
        min-width: 0;
        width: 100%;
        flex-wrap: wrap;
    }

    .account .coin-ticker {
        height: 56px;
    }
}

@media (max-width: 980px) {
    .account .wallet-shell {
        padding: 14px 12px 26px;
        gap: 12px;
    }

    .account .wallet-hero-card {
        padding: 16px;
        border-radius: 22px;
    }

    .account .bal-value {
        margin-top: 14px;
        font-size: clamp(34px, 9vw, 48px);
        line-height: 1.04;
    }

    .account .bal-sub {
        margin-top: 14px;
    }

    .account .wallet-panels {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .account .panel-card {
        height: auto;
        min-height: 0;
        padding: 16px;
        border-radius: 22px;
    }

    .account .panel-head,
    .account .panel-head-assets {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    .account .assets-search {
        width: 100%;
    }

    .account .panel-scroll {
        overflow: visible;
    }

    .account .assets-scroll-area,
    .account .history-scroll-area {
        max-height: min(52vh, 460px);
        overflow: auto;
        padding-right: 4px;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
    }

    .account .assets-desktop {
        display: none;
    }

    .account .assets-mobile {
        display: grid;
        gap: 10px;
    }

    .account .asset-top {
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 12px;
    }

    .account .asset-left {
        flex: 1 1 auto;
        min-width: 0;
    }

    .account .asset-right {
        flex: 0 1 auto;
        min-width: 92px;
        max-width: 48%;
        text-align: right;
    }

    .account .asset-overall,
    .account .asset-usd {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .account .asset-grid {
        display: none;
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .account .asset-card.open .asset-grid {
        display: grid;
    }

    .account .asset-actions {
        flex-direction: column;
    }

    .account .asset-actions .btn,
    .account .asset-actions a {
        width: 100%;
    }

    .account .history-item {
        grid-template-columns: 1fr;
        align-items: flex-start;
        gap: 10px;
    }

    .account .history-copy,
    .account .history-side {
        width: 100%;
    }

    .account .history-side {
        text-align: left;
    }
}

@media (max-width: 640px) {
    .account .wallet-shell {
        padding: 12px 10px 22px;
    }

    .account .wallet-hero-card,
    .account .panel-card {
        border-radius: 20px;
        padding: 14px;
    }

    .account .wallet-hero-tools {
        margin-bottom: 14px;
        gap: 8px;
    }

    .account .hero-metric-card,
    .account .hero-icon-btn {
        min-height: 50px;
        padding: 9px 10px;
        border-radius: 14px;
    }

    .account .hero-metric-label {
        font-size: 9px;
    }

    .account .hero-metric-value {
        font-size: 13px;
    }

    .account .bal-label {
        letter-spacing: .06em;
        line-height: 1.45;
    }

    .account .bal-value {
        font-size: 34px;
        letter-spacing: -.045em;
    }

    .account .bal-value small {
        margin-left: 4px;
        font-size: 12px;
    }

    .account .bal-chip {
        justify-content: flex-start;
    }

    .account .hero-actions-row {
        margin-top: 20px;
        gap: 10px;
    }

    .account .action-tiles {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
    }

    .account .tile {
        width: 100%;
        min-height: 44px;
        justify-content: flex-start;
        padding: 9px 10px;
    }

    .account .tile .ico {
        width: 26px;
        height: 26px;
    }

    .account .coin-ticker {
        height: 50px;
        border-radius: 16px;
    }

    .account .coin-ticker-track {
        gap: 22px;
        padding: 0 16px;
    }

    .account .coin-ticker-icon {
        width: 26px;
        height: 26px;
    }

    .account .coin-ticker-symbol,
    .account .coin-ticker-price,
    .account .coin-ticker-dot {
        font-size: 12px;
    }

    .account .coin-name {
        max-width: none;
    }

    .account .history-item {
        grid-template-columns: auto minmax(0, 1fr) auto;
        align-items: center;
        gap: 10px;
    }

    .account .history-copy {
        width: auto;
        min-width: 0;
        display: flex;
        align-items: center;
        gap: 8px;
    }

    .account .history-title {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .account .history-sub {
        margin-top: 0;
        white-space: nowrap;
        flex: 0 0 auto;
    }

    .account .history-side {
        width: auto;
        min-width: max-content;
        text-align: right;
    }

    .account .history-usd {
        display: none;
    }
}

@media (prefers-reduced-motion: reduce) {
    .account .tile,
    .account .btn,
    .account .asset-card,
    .account .hero-icon-btn {
        transition: none;
    }

    .account .coin-ticker {
        overflow-x: auto;
        mask-image: none;
        -webkit-mask-image: none;
    }

    .account .coin-ticker-track {
        animation: none;
    }
}

/* --- mobile assets: limited scroll with expandable cards --- */
@media (max-width: 980px) {
    .account .assets-card {
        overflow: hidden;
    }

    .account .assets-card .panel-body,
    .account #assetsPanelBody {
        min-width: 0;
        min-height: 0;
        overflow: hidden;
    }

    .account .assets-mobile.assets-scroll-area,
    .account #assetsMobile.assets-scroll-area {
        width: 100%;
        max-width: 100%;
        max-height: min(54vh, 520px);
        display: grid;
        grid-template-columns: 1fr;
        align-content: start;
        align-items: start;
        gap: 10px;
        overflow-x: hidden;
        overflow-y: auto;
        padding: 0 4px 10px 0;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,.18) transparent;
    }

    .account #assetsMobile.assets-scroll-area::-webkit-scrollbar {
        width: 7px;
    }

    .account #assetsMobile.assets-scroll-area::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.18);
        border-radius: 999px;
    }

    .account .assets-mobile .asset-card {
        position: relative;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: auto;
        min-height: 64px;
        padding: 12px;
        border-radius: 17px;
        overflow: visible;
        flex: none;
        scroll-margin-top: 10px;
        scroll-margin-bottom: 14px;
        contain: none;
    }

    .account .assets-mobile .asset-card.open {
        height: auto;
        min-height: 0;
        overflow: visible;
        z-index: 1;
    }

    .account .assets-mobile .asset-top {
        width: 100%;
        min-width: 0;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .account .assets-mobile .asset-left {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 116px);
        display: flex;
        align-items: center;
        gap: 10px;
    }

    .account .assets-mobile .asset-left .coin-ico {
        width: 36px;
        height: 36px;
        border-radius: 13px;
        flex: 0 0 auto;
    }

    .account .assets-mobile .asset-left .coin-ico img {
        width: 31px !important;
        height: 31px !important;
    }

    .account .assets-mobile .asset-left .coin-meta {
        min-width: 0;
    }

    .account .assets-mobile .asset-left .coin-sym {
        font-size: 14px;
        line-height: 1.15;
    }

    .account .assets-mobile .asset-left .coin-name {
        max-width: 100%;
        font-size: 11px;
        line-height: 1.25;
    }

    .account .assets-mobile .asset-right {
        flex: 0 1 106px;
        min-width: 0;
        max-width: 106px;
        text-align: right;
    }

    .account .assets-mobile .asset-overall {
        font-size: 12px;
        line-height: 1.2;
    }

    .account .assets-mobile .asset-usd {
        margin-top: 3px;
        font-size: 10px;
        line-height: 1.2;
    }

    .account .assets-mobile .asset-overall,
    .account .assets-mobile .asset-usd,
    .account .assets-mobile .asset-left .coin-sym,
    .account .assets-mobile .asset-left .coin-name {
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .account .assets-mobile .asset-card .asset-grid,
    .account .assets-mobile .asset-card .asset-actions {
        display: none;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        overflow: visible;
    }

    .account .assets-mobile .asset-card.open .asset-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        margin-top: 12px;
    }

    .account .assets-mobile .asset-card.open .asset-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        margin-top: 10px;
    }

    .account .assets-mobile .mini {
        min-width: 0;
        padding: 8px;
        border-radius: 13px;
    }

    .account .assets-mobile .mini .t {
        font-size: 8px;
        letter-spacing: .07em;
    }

    .account .assets-mobile .mini .v {
        margin-top: 5px;
        font-size: 11px;
        line-height: 1.25;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .account .assets-mobile .asset-actions .btn,
    .account .assets-mobile .asset-actions a {
        width: 100%;
        min-width: 0;
        height: 33px;
        padding: 0 6px;
        border-radius: 12px;
        font-size: 9px;
        line-height: 1;
    }
}

@media (max-width: 380px) {
    .account .assets-mobile .asset-card {
        padding: 11px;
        border-radius: 16px;
    }

    .account .assets-mobile .asset-left {
        max-width: calc(100% - 94px);
        gap: 8px;
    }

    .account .assets-mobile .asset-right {
        flex-basis: 88px;
        max-width: 88px;
    }

    .account .assets-mobile .asset-left .coin-ico {
        width: 33px;
        height: 33px;
    }

    .account .assets-mobile .asset-left .coin-ico img {
        width: 29px !important;
        height: 29px !important;
    }

    .account .assets-mobile .asset-card.open .asset-grid,
    .account .assets-mobile .asset-card.open .asset-actions {
        grid-template-columns: 1fr;
    }

    .account .assets-mobile .asset-actions .btn,
    .account .assets-mobile .asset-actions a {
        height: 32px;
    }
}

/* --- v10: mobile assets must expand in normal flow inside scroll --- */
@media (max-width: 980px) {
    .account .assets-card,
    .account .assets-card .panel-body,
    .account #assetsPanelBody {
        min-width: 0;
        min-height: 0;
        overflow: hidden;
    }

    .account #assetsMobile.assets-mobile.assets-scroll-area {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        gap: 10px;
        width: 100%;
        max-width: 100%;
        max-height: min(54vh, 520px);
        overflow-x: hidden;
        overflow-y: auto;
        padding: 0 4px 10px 0;
        overscroll-behavior: contain;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: thin;
        scrollbar-color: rgba(255,255,255,.18) transparent;
    }

    .account #assetsMobile.assets-mobile.assets-scroll-area::-webkit-scrollbar {
        width: 7px;
    }

    .account #assetsMobile.assets-mobile.assets-scroll-area::-webkit-scrollbar-thumb {
        background: rgba(255,255,255,.18);
        border-radius: 999px;
    }

    .account #assetsMobile .asset-card {
        position: relative;
        display: block;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: auto;
        min-height: 64px;
        flex: 0 0 auto;
        padding: 12px;
        border-radius: 17px;
        overflow: visible;
        contain: none;
        z-index: auto;
    }

    .account #assetsMobile .asset-card.open {
        height: auto;
        min-height: 0;
        z-index: auto;
    }

    .account #assetsMobile .asset-top {
        position: relative;
        display: flex;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        min-width: 0;
        gap: 10px;
    }

    .account #assetsMobile .asset-left {
        flex: 1 1 auto;
        min-width: 0;
        max-width: calc(100% - 116px);
    }

    .account #assetsMobile .asset-right {
        flex: 0 1 106px;
        min-width: 0;
        max-width: 106px;
        text-align: right;
    }

    .account #assetsMobile .asset-grid,
    .account #assetsMobile .asset-actions {
        position: static;
        inset: auto;
        transform: none;
        float: none;
        clear: both;
        width: 100%;
        min-width: 0;
        max-width: 100%;
        height: auto;
        overflow: visible;
    }

    .account #assetsMobile .asset-card:not(.open) .asset-grid,
    .account #assetsMobile .asset-card:not(.open) .asset-actions {
        display: none;
    }

    .account #assetsMobile .asset-card.open .asset-grid {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        margin-top: 12px;
    }

    .account #assetsMobile .asset-card.open .asset-actions {
        display: grid;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 7px;
        margin-top: 10px;
    }

    .account #assetsMobile .mini {
        min-width: 0;
        padding: 8px;
        border-radius: 13px;
    }

    .account #assetsMobile .mini .t {
        font-size: 8px;
        letter-spacing: .07em;
    }

    .account #assetsMobile .mini .v {
        margin-top: 5px;
        font-size: 11px;
        line-height: 1.25;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
    }

    .account #assetsMobile .asset-actions .btn,
    .account #assetsMobile .asset-actions a {
        width: 100%;
        min-width: 0;
        height: 33px;
        padding: 0 6px;
        border-radius: 12px;
        font-size: 9px;
        line-height: 1;
    }
}

@media (max-width: 380px) {
    .account #assetsMobile .asset-left {
        max-width: calc(100% - 94px);
    }

    .account #assetsMobile .asset-right {
        flex-basis: 88px;
        max-width: 88px;
    }

    .account #assetsMobile .asset-card.open .asset-grid,
    .account #assetsMobile .asset-card.open .asset-actions {
        grid-template-columns: 1fr;
    }
}

/* ===== Account visual restraint ===== */
.account {
    --radius-xl: 18px;
    --radius-lg: 14px;
    --radius-md: 12px;
    --radius-sm: 10px;
    background: var(--bg);
}

.account * {
    letter-spacing: 0;
}

.account .wallet-hero-card,
.account .panel-card {
    border: 0;
    box-shadow: none;
    background: var(--bg-elevated);
}

.account .wallet-hero-card::before {
    display: none;
}

.account .wallet-hero-tools {
    border: 0;
    border-radius: 12px;
    background: var(--surface);
    backdrop-filter: none;
}

.account .hero-icon-btn {
    border: 0;
    border-radius: 10px;
    background: var(--surface-2);
}

.account .hero-icon-btn:hover,
.account .tile:hover,
.account .btn:hover,
.account .asset-card:hover {
    border-color: transparent;
    box-shadow: none;
    transform: none;
}

.account .bal-label,
.account .tile .t {
    font-weight: 700;
    text-transform: none;
}

.account .bal-chip {
    border: 0;
    border-radius: 10px;
    background: var(--surface-2);
    font-weight: 700;
}

.account .tile {
    border: 0;
    border-radius: 10px;
    background: var(--surface-2);
}

.account .tile-primary {
    border: 0;
    background: var(--green-soft);
}

.account .tile .ico,
.account .coin-ticker-icon,
.account .coin-ico,
.account .history-ico,
.account .history-empty-ico {
    border: 0;
}

.account .table {
    border: 0;
    border-radius: 12px;
}

.account .btn {
    border: 0;
    border-radius: 8px;
    background: var(--surface-2);
    font-weight: 700;
    text-transform: none;
}

.account .btn-primary {
    border: 0;
    background: var(--green-soft);
}

.account .asset-card,
.account .mini,
.account .history-item {
    border: 0;
    border-radius: 12px;
    background: var(--surface);
}

.account .history-empty,
.account .assets-empty,
.account .assets-empty-card {
    border: 0;
    border-radius: 12px;
    background: var(--surface);
}
