@font-face {
    font-family: "Vazirmatn";
    src: url("/assets/Vazirmatn-Regular.ttf") format("truetype");
    font-weight: 400;
    font-display: swap;
}
@font-face {
    font-family: "Vazirmatn";
    src: url("/assets/Vazirmatn-Bold.ttf") format("truetype");
    font-weight: 700;
    font-display: swap;
}
@font-face {
    font-family: "Font Awesome 6 Free Solid";
    src: url("/assets/fontawesome.otf") format("opentype");
    font-style: normal;
    font-weight: normal;
    font-display: block;
}

:root,
[data-theme="dark"] {
    --gold: #ca9b5d;
    --gold-soft: #d4a916;
    --gold-a: #d3ac66;
    --gold-b: #c09249;
    --gold-txt: #20150a;
    --btn-drk-a: #41372b;
    --btn-drk-b: #372f25;
    --btn-drk-txt: #d0a661;
    --bg-top: #0b1320;
    --bg-bot: #070d17;
    --shell: #09111d;
    --card-top: #2a3448;
    --card-bot: #1c2432;
    --asset-card-top: #2a3448;
    --asset-card-bot: #1c2432;
    --card-fill: rgba(42, 52, 72, 0.92);
    --card-border: rgba(255, 255, 255, 0.06);
    --hero-pill-bg: rgba(0, 0, 0, 0.12);
    --hero-pill-border: rgba(0, 0, 0, 0.08);
    --hero-deco-a: rgba(255, 255, 255, 0.04);
    --hero-deco-b: rgba(255, 255, 255, 0.02);
    --wallet-deco-a: rgba(255, 255, 255, 0.09);
    --wallet-deco-b: rgba(255, 255, 255, 0.055);
    --surface-elevated: rgba(0, 0, 0, 0.12);
    --price-box-bg: rgba(42, 52, 72, 0.88);
    --price-box-border: rgba(255, 255, 255, 0.06);
    --positive-badge-bg: rgba(102, 217, 140, 0.12);
    --negative-badge-bg: rgba(242, 115, 115, 0.12);
    --box-title: #f2f2f2;
    --foot-bg: #131c2a;
    --nav-off: #7e8792;
    --label: #d6d6d6;
    --caption: #c9c9c9;
    --title: #f2f2f2;
    --panel: #131c2a;
    --input-bg: rgba(0, 0, 0, 0.25);
    --divider: rgba(255, 255, 255, 0.08);
    --asset-pill-label: rgba(202, 155, 93, 0.60);
    --tab-bg: #313b4a;
    --tx-icon-bg: #25313e;
    --tx-row-bg: rgba(255, 255, 255, 0.03);
    --list-item-bg: rgba(0, 0, 0, 0.18);
    --green: #66d98c;
    --red: #f27373;
    --overlay: rgba(0, 0, 0, 0.55);
    --chart-grid: rgba(255, 255, 255, 0.06);
    --chart-label: rgba(212, 212, 212, 0.55);
    --chart-area-fill: rgba(208, 166, 97, 0.18);
}

[data-theme="light"] {
    --gold: #eabf51;
    --bg-top: #f7f8fa;
    --bg-bot: #eef1f6;
    --shell: #e0e4ec;
    --card-top: #ffffff;
    --card-bot: #f9fafc;
    --asset-card-top: #ffffff;
    --asset-card-bot: #f9fafc;
    --card-fill: #ffffff;
    --card-border: rgba(0, 0, 0, 0.1);
    --hero-pill-bg: rgba(255, 255, 255, 0.22);
    --hero-pill-border: rgba(255, 255, 255, 0.32);
    --hero-deco-a: rgba(202, 155, 93, 0.08);
    --hero-deco-b: rgba(202, 155, 93, 0.04);
    --wallet-deco-a: rgba(255, 255, 255, 0.26);
    --wallet-deco-b: rgba(255, 255, 255, 0.15);
    --surface-elevated: #f5f6f8;
    --asset-pill-label: rgba(234, 191, 81, 0.92);
    --hero-ring: rgba(202, 155, 93, 0.22);
    --price-box-bg: #ffffff;
    --price-box-border: rgba(0, 0, 0, 0.10);
    --positive-badge-bg: rgba(41, 148, 97, 0.14);
    --negative-badge-bg: rgba(224, 82, 82, 0.12);
    --box-title: #111827;
    --foot-bg: #ffffff;
    --nav-off: #9ba3b2;
    --label: #1f2837;
    --caption: #6b7383;
    --title: #111827;
    --panel: #ffffff;
    --input-bg: #f8f9fb;
    --divider: rgba(0, 0, 0, 0.07);
    --overlay: rgba(0, 0, 0, 0.35);
    --tab-bg: #e5e7ec;
    --tx-icon-bg: #eaecf0;
    --tx-row-bg: #f2f3f6;
    --list-item-bg: #f8f9fb;
    --chart-grid: rgba(0, 0, 0, 0.06);
    --chart-label: rgba(75, 85, 99, 0.78);
    --chart-area-fill: rgba(202, 161, 93, 0.14);
}

.fa-icon {
    font-family: "Font Awesome 6 Free Solid", sans-serif;
    font-style: normal;
    font-weight: normal;
    -webkit-font-smoothing: antialiased;
    line-height: 1;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    height: 100%;
    overflow: hidden;
    font-family: "Vazirmatn", Tahoma, sans-serif;
    direction: rtl;
    background: var(--shell);
    color: var(--label);
    -webkit-tap-highlight-color: transparent;
}

#root, .page { height: 100%; }

.page {
    display: flex;
    justify-content: center;
    align-items: stretch;
    background: var(--shell);
}

.shell {
    width: 100%;
    max-width: 414px;
    height: 100%;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--bg-top), var(--bg-bot));
    position: relative;
    overflow: hidden;
}

.body {
    flex: 1;
    min-height: 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* iced: header + page cards share one vertical scroll */
.tab-scroll {
    flex: 1;
    min-height: 0;
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    display: flex;
    flex-direction: column;
}
.tab-scroll .scroll-panel {
    flex: none;
    min-height: auto;
    overflow: visible;
}

.scroll-panel {
    flex: 1;
    min-height: 0;
    overflow: auto;
    padding: 12px 16px 88px;
    -webkit-overflow-scrolling: touch;
}

.top-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 6px;
    gap: 10px;
    direction: ltr;
    flex-shrink: 0;
}
.header-spacer {
    width: 28px;
    height: 28px;
    flex-shrink: 0;
}

.brand-title {
    margin: 0;
    font-size: 26px;
    font-weight: 700;
    color: var(--gold);
    letter-spacing: 0.02em;
    line-height: 1;
}

.page-title {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1;
}

.icon-btn {
    border: none;
    background: transparent;
    color: var(--gold);
    font-size: 22px;
    padding: 0;
    cursor: pointer;
    line-height: 1;
}

.soft-card {
    background: var(--card-fill);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 14px 14px;
    margin-bottom: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

.soft-card h3 {
    margin: 0 0 10px;
    font-size: 15px;
    color: var(--title);
    text-align: right;
}

.section-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
    direction: ltr;
}
.link-btn {
    border: none;
    background: transparent;
    color: var(--gold);
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    padding: 0;
}

.scroll-panel.home-panel {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding-top: 4px;
}
/* Flex children must not shrink — otherwise fixed-height cards clip (کل دارایی). */
.scroll-panel.home-panel > * {
    flex-shrink: 0;
}

/* ─── iced live_gold_price_box ─── */
.live-price-box {
    display: flex;
    align-items: center;
    width: 100%;
    direction: ltr;
    padding: 1px; /* CARD_EDGE_W border trick */
    border-radius: 16px;
    background: var(--price-box-border);
}
.live-price-box > .chg-badge,
.live-price-box > .live-price-mid,
.live-price-box > .live-price-gap,
.live-price-box > .live-price-meta {
    /* inner fill via parent padding simulation */
}
.live-price-box {
    background: var(--price-box-bg);
    border: 1px solid var(--price-box-border);
    padding: 11px 14px;
    border-radius: 16px;
    margin-bottom: 0;
    gap: 0;
}
.chg-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 3px 8px;
    border-radius: 10px;
    font-size: 10px;
    white-space: nowrap;
    flex-shrink: 0;
}
.chg-badge .chg-ico { font-size: 8px; }
.chg-badge.up { background: var(--positive-badge-bg); color: var(--green); }
.chg-badge.down { background: var(--negative-badge-bg); color: var(--red); }
.chg-badge.off { background: var(--price-box-border); color: var(--caption); }
.live-price-fill { flex: 1; min-width: 8px; }
.live-price-mid {
    flex: 0 0 auto;
    text-align: right;
    min-width: 0;
}
.live-price-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}
.live-toman { font-size: 11px; color: var(--caption); }
.live-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
}
.live-unit {
    margin-top: 2px;
    font-size: 10px;
    color: var(--caption);
    text-align: right;
    direction: rtl;
    unicode-bidi: isolate;
}
.live-unit.crypto {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: baseline;
    gap: 4px;
}
.live-price-gap { width: 40px; flex-shrink: 0; }
.live-price-meta {
    text-align: right;
    flex-shrink: 0;
}
.live-status {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
    margin-bottom: 4px;
}
.live-status-text { font-size: 9px; color: var(--caption); }
.live-status-text.on { color: var(--green); }
.live-dot {
    width: 6px; height: 6px; border-radius: 50%;
    background: var(--caption);
}
.live-dot.on { background: var(--green); }
.live-title {
    font-size: 12px;
    font-weight: 400;
    color: var(--box-title);
}

.section-title {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 700;
    color: var(--box-title);
    text-align: right;
}

/* action grid — iced horizontal label+icon */
.action-grid.iced {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 0;
}
.action-btn.horiz {
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    height: 46px;
    padding: 0 12px;
    border-radius: 14px;
    font-size: 14px;
}
.action-btn.horiz .fa-icon { font-size: 14px; }

/* market asset row — iced */
.markets-preview-card,
.alloc-card,
.perf-card {
    background: linear-gradient(180deg, var(--card-top), var(--card-bot));
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 16px;
}
.markets-preview-card { min-height: 258px; }
.alloc-card,
.perf-card { min-height: 260px; }
.alloc-card > .section-title { margin-bottom: 12px; }
.perf-card > .section-title { margin-bottom: 13px; }
.mkt-list { display: flex; flex-direction: column; gap: 10px; }
.mkt-row {
    display: flex;
    align-items: center;
    gap: 0;
    direction: ltr;
    background: var(--card-fill);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 10px 12px;
    min-height: 88px;
}
.markets-preview-card .mkt-row {
    background: rgba(0, 0, 0, 0.18);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 10px 12px;
    min-height: 88px;
    margin-bottom: 8px;
}
.markets-preview-card .mkt-row:last-child { margin-bottom: 0; }
.mkt-actions {
    flex: 2;
    display: flex;
    gap: 6px;
    min-width: 0;
}
.mkt-btn {
    flex: 1;
    height: 34px;
    border: none;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 400;
    cursor: pointer;
    padding: 0 6px;
}
.mkt-btn .fa-icon { font-size: 11px; }
.mkt-btn.gold {
    background: linear-gradient(180deg, var(--gold-a), var(--gold-b));
    color: var(--gold-txt);
}
.mkt-btn.dark {
    background: linear-gradient(180deg, var(--btn-drk-a), var(--btn-drk-b));
    color: var(--btn-drk-txt);
}
.mkt-info {
    flex: 3;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}
.mkt-price-line {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    flex-wrap: wrap;
}
.mkt-price-line .chg-badge { margin-inline-end: 2px; }
.mkt-toman { font-size: 10px; color: var(--caption); }
.mkt-price { font-size: 14px; font-weight: 700; color: var(--gold); }
.mkt-price.sm { font-size: 11px; }
.mkt-name-line {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
    width: 100%;
}
.mkt-label {
    flex: 1;
    text-align: right;
    font-size: 11px;
    color: var(--caption);
}
.mkt-icon {
    width: 32px; height: 32px; border-radius: 10px;
    display: grid; place-items: center;
    background: var(--tx-icon-bg);
    color: var(--gold);
    font-size: 13px;
    flex-shrink: 0;
}
.mkt-icon.btc { font-size: 16px; }

.alloc.iced {
    display: flex;
    align-items: center;
    gap: 8px;
    direction: ltr;
    min-height: 160px;
}
.alloc-side { flex: 1; }
.alloc-side.right { text-align: right; }
.alloc-side.left { text-align: left; display: flex; flex-direction: column; gap: 8px; }
.alloc-gold { font-size: 12px; font-weight: 700; color: var(--gold); }
.donut.iced {
    width: 160px; height: 160px; flex-shrink: 0;
    border-radius: 50%;
    /* iced: r_out = 76, r_in = r_out * 0.58 → hole ~55% of closest-side, rim 95% */
    background: conic-gradient(
        #d6b06a 0 52%,
        #8c7855 52% 64%,
        #f29e38 64% 90%,
        #566273 90% 100%
    );
    mask: radial-gradient(
        circle closest-side at center,
        transparent 55.1%,
        #000 55.8%,
        #000 95%,
        transparent 96%
    );
    -webkit-mask: radial-gradient(
        circle closest-side at center,
        transparent 55.1%,
        #000 55.8%,
        #000 95%,
        transparent 96%
    );
}
.legend-item.pie4 { color: #f29e38; font-size: 11.5px; }
.legend-item.pie2 { color: #8c7855; font-size: 11.5px; }
.legend-item.pie3 { color: #566273; font-size: 11.5px; }

.chart-tabs.iced {
    display: flex;
    direction: ltr;
    gap: 8px;
    margin-bottom: 10px;
    width: 100%;
}
.chart-tab.iced {
    flex: 1;
    height: 32px;
    padding: 0;
    border-radius: 10px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: var(--label);
    background: var(--tab-bg);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.chart-tab.iced.active {
    background: linear-gradient(180deg, #deb876, #bb883f);
    color: #16110a;
    border-radius: 999px;
    border-color: transparent;
}
/* iced canvas is LTR: pad_left 30 (Y labels), pad_right 10, pad_top 14, pad_bottom 18 */
.area-chart.iced {
    direction: ltr;
    unicode-bidi: isolate;
    height: 150px;
    border: none;
    border-radius: 0;
    background: transparent;
    padding: 0 10px 0 0;
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    grid-template-rows: 14px minmax(0, 1fr) 18px;
    position: relative;
    overflow: visible;
}
.chart-y {
    grid-column: 1;
    grid-row: 2;
    position: relative;
}
.chart-y-lab {
    position: absolute;
    right: 5px;
    transform: translateY(-50%);
    font-size: 9.5px;
    font-weight: 400;
    line-height: 1;
    color: var(--chart-label);
    white-space: nowrap;
}
.chart-plot {
    grid-column: 2;
    grid-row: 2;
    position: relative;
    min-width: 0;
    min-height: 0;
}
.chart-svg {
    width: 100%;
    height: 100%;
    display: block;
    overflow: visible;
}
.chart-grid-line {
    stroke: var(--chart-grid);
    stroke-width: 1;
    vector-effect: non-scaling-stroke;
}
.chart-line {
    stroke: var(--gold);
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    vector-effect: non-scaling-stroke;
}
.chart-change {
    position: absolute;
    left: 4px;
    top: -2px;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;
    color: var(--green);
    pointer-events: none;
    direction: ltr;
}
.chart-change.down { color: var(--red); }
.chart-endpoint {
    position: absolute;
    left: 100%;
    width: 0;
    height: 0;
    pointer-events: none;
}
.chart-dot {
    position: absolute;
    left: 0;
    top: 0;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: color-mix(in srgb, var(--gold) 35%, transparent);
    transform: translate(-50%, -50%);
}
.chart-dot::before {
    content: "";
    position: absolute;
    inset: 1.8px;
    border-radius: 50%;
    background: var(--gold);
}
.chart-dot::after {
    content: "";
    position: absolute;
    inset: 3.6px;
    border-radius: 50%;
    background: #fff;
}
.chart-last {
    position: absolute;
    right: 8px;
    bottom: 10px;
    font-size: 10.5px;
    font-weight: 700;
    line-height: 1;
    color: var(--gold);
    white-space: nowrap;
    direction: ltr;
}
.chart-x {
    grid-column: 2;
    grid-row: 3;
    position: relative;
    direction: ltr;
    font-size: 9.5px;
    font-weight: 400;
    line-height: 1;
    color: var(--chart-label);
}
.chart-x-lab {
    position: absolute;
    top: 4px;
    transform: translateX(-50%);
    white-space: nowrap;
    line-height: 1;
}

.hero-pill.asset .pill-label { color: var(--asset-pill-label); }
.hero-pill.asset .pill-value { color: var(--caption); }

.muted { color: var(--caption); }
.muted.sm { font-size: 12px; }
.muted.xs { font-size: 11px; }

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #666;
}
.status-dot.on { background: var(--green); box-shadow: 0 0 8px rgba(102, 217, 140, 0.5); }

.price-lg {
    font-size: 20px;
    font-weight: 700;
    color: var(--title);
}

.change-up { color: var(--green); }
.change-down { color: var(--red); }

/* ─── Home: کل دارایی (iced card_total / card_asset 200) ─── */
.asset-total-card {
    position: relative;
    height: 200px;
    flex-shrink: 0;
    border-radius: 20px;
    padding: 16px;
    overflow: hidden;
    background: linear-gradient(180deg, var(--card-top), var(--card-bot));
    border: 1px solid var(--card-border);
    display: flex;
    align-items: center;
    justify-content: center;
}
.asset-total-card .deco-a,
.asset-total-card .deco-b {
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
}
.asset-total-card .deco-a {
    width: 180px;
    height: 180px;
    right: -36px;
    top: -36px;
    background: var(--hero-deco-a);
}
.asset-total-card .deco-b {
    width: 120px;
    height: 120px;
    right: -28px;
    top: 76px;
    background: var(--hero-deco-b);
}
.asset-total-inner {
    position: relative;
    z-index: 1;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    text-align: center;
}
.asset-total-label {
    font-size: 13px;
    color: var(--caption);
    line-height: 1.2;
}
.asset-total-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--gold);
    line-height: 1.2;
}
.asset-pill-grid {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.asset-pill-row {
    display: flex;
    gap: 10px;
    width: 100%;
    direction: ltr;
}

/* Shared hero / asset pills (wallet_hero_pill) */
.hero-pill {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 10px;
    border-radius: 12px;
    background: var(--hero-pill-bg);
    border: 1px solid var(--hero-pill-border);
}
.hero-pill .pill-text {
    flex: 1;
    min-width: 0;
    text-align: right;
    display: flex;
    flex-direction: column;
    gap: 1px;
}
.hero-pill .pill-label {
    font-size: 9px;
    color: var(--asset-pill-label);
}
.hero-pill .pill-value {
    font-size: 12px;
    font-weight: 700;
    color: var(--caption);
}
.hero-pill .pill-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: var(--surface-elevated);
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 12px;
    flex-shrink: 0;
}
.wallet-hero .hero-pill .pill-label {
    color: inherit;
    opacity: 0.6;
}
.wallet-hero .hero-pill .pill-value {
    color: inherit;
}
.wallet-hero .hero-pill .pill-icon {
    color: inherit;
}

.pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
}

.pill {
    background: rgba(202, 155, 93, 0.12);
    border: 1px solid rgba(202, 155, 93, 0.28);
    color: var(--gold);
    border-radius: 999px;
    padding: 6px 10px;
    font-size: 11px;
}

.action-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.action-btn {
    border: none;
    border-radius: 16px;
    padding: 14px 12px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    font-family: inherit;
    font-size: 13px;
    font-weight: 700;
}
.action-btn.gold {
    background: linear-gradient(180deg, var(--gold-a), var(--gold-b));
    color: var(--gold-txt);
}
.action-btn.dark {
    background: linear-gradient(180deg, var(--btn-drk-a), var(--btn-drk-b));
    color: var(--btn-drk-txt);
}
.action-btn .fa-icon { font-size: 18px; }

.market-row, .list-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    border-bottom: 1px solid var(--divider);
}
.market-row:last-child, .list-row:last-child { border-bottom: none; }
.market-row-main {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 3px;
}
.market-price-line {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}

.asset-meta {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    justify-content: flex-end;
}
.asset-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    display: grid;
    place-items: center;
    background: rgba(202, 155, 93, 0.14);
    color: var(--gold);
    font-size: 16px;
}
.asset-name { font-weight: 700; color: var(--title); font-size: 13px; }

.trade-btns { display: flex; gap: 6px; }
.mini-btn {
    border: none;
    border-radius: 10px;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
}
.mini-btn.buy { background: rgba(102, 217, 140, 0.15); color: var(--green); }
.mini-btn.sell { background: rgba(242, 115, 115, 0.15); color: var(--red); }

.alloc {
    display: flex;
    flex-direction: row;
    direction: ltr;
    gap: 14px;
    align-items: center;
}
.donut {
    width: 110px;
    height: 110px;
    border-radius: 50%;
    background: conic-gradient(
        #d6b06a 0 52%,
        #f29e38 52% 78%,
        #8c7855 78% 90%,
        #566273 90% 100%
    );
    mask: radial-gradient(circle at center, transparent 52%, #000 53%);
    -webkit-mask: radial-gradient(circle at center, transparent 52%, #000 53%);
    flex-shrink: 0;
}
.legend { display: flex; flex-direction: column; gap: 8px; font-size: 12px; text-align: left; }
.legend-item { display: flex; align-items: center; gap: 8px; color: var(--caption); }
.swatch { width: 8px; height: 8px; border-radius: 50%; }

.chart-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    direction: ltr;
}
.chart-tab {
    flex: 1;
    border: none;
    border-radius: 10px;
    padding: 8px 0;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.04);
    color: var(--caption);
}
.chart-tab.active {
    background: linear-gradient(180deg, #debb77, #bb8840);
    color: #16110a;
    font-weight: 700;
}
.area-chart {
    height: 120px;
    border-radius: 12px;
    background:
        linear-gradient(180deg, rgba(202, 155, 93, 0.28), transparent 70%),
        linear-gradient(90deg, transparent, rgba(255,255,255,0.03) 50%, transparent);
    border: 1px solid var(--card-border);
    position: relative;
    overflow: hidden;
}
.area-chart svg { width: 100%; height: 100%; display: block; }

.bottom-nav {
    position: absolute;
    left: 0; right: 0; bottom: 0;
    height: 64px;
    display: flex;
    direction: ltr;
    background: var(--foot-bg);
    border-top: 1px solid var(--divider);
    padding: 6px 4px calc(6px + env(safe-area-inset-bottom, 0));
    z-index: 20;
}
.nav-item {
    flex: 1;
    border: none;
    background: transparent;
    color: var(--nav-off);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    font-family: inherit;
    cursor: pointer;
}
.nav-item.active { color: var(--gold); }
.nav-icon { font-size: 18px; }
.nav-label { font-size: 10px; }

.drawer-backdrop {
    position: absolute; inset: 0;
    background: var(--overlay);
    z-index: 40;
}
.drawer {
    position: absolute;
    top: 0; bottom: 0; right: 0;
    width: min(280px, 82vw);
    background: var(--panel);
    border-left: 1px solid var(--divider);
    z-index: 50;
    padding: 20px 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.drawer-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}
.drawer-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--title);
}
.drawer-divider {
    height: 1px;
    background: var(--divider);
    margin: 8px 0;
}
.drawer-footer {
    margin-top: auto;
}
.drawer-item {
    border: none;
    background: transparent;
    color: var(--label);
    padding: 12px 4px;
    border-radius: 12px;
    font-family: inherit;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}
.drawer-item:hover { background: rgba(202, 155, 93, 0.08); }
.drawer-item-spacer { flex: 1; }
.drawer-item-label { color: var(--label); }
.drawer-item-icon {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: rgba(202, 155, 93, 0.14);
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 13px;
}
.drawer-chevron {
    color: var(--caption);
    font-size: 11px;
}

.wallet-tabs {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}
.wallet-tab-row {
    display: flex;
    gap: 8px;
    width: 100%;
}
.wallet-tab {
    flex: 1;
    border: 1px solid var(--divider);
    background: rgba(255,255,255,0.07);
    color: var(--nav-off);
    border-radius: 20px;
    padding: 8px 14px;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 5px;
}
[data-theme="light"] .wallet-tab {
    background: #f5f6f8;
}
.wallet-tab.active {
    background: rgba(202, 155, 93, 0.18);
    border-color: rgba(202, 155, 93, 0.55);
    color: var(--gold);
    font-weight: 700;
}
.wallet-tab .fa-icon { font-size: 11px; }

.wallet-hero {
    border-radius: 22px;
    padding: 20px;
    min-height: 200px;
    color: #fff;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    align-items: stretch;
}
.wallet-hero::before,
.wallet-hero::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.wallet-hero::before {
    width: 56%;
    padding-bottom: 56%;
    height: 0;
    right: -10%;
    top: -18%;
    background: var(--wallet-deco-a);
}
.wallet-hero::after {
    width: 36%;
    padding-bottom: 36%;
    height: 0;
    right: -8%;
    top: 38%;
    background: var(--wallet-deco-b);
}
.wallet-hero {
    box-shadow: inset 0 1px 0 var(--hero-ring);
}
.wallet-hero.gold {
    background: linear-gradient(160deg, #e8c785 0%, #d3ac66 45%, #c09249 100%);
    color: #20150a;
}
.wallet-hero.cash {
    background: linear-gradient(160deg, #38b880 0%, #2e9e6b 45%, #1a734e 100%);
    color: #fff;
}
.wallet-hero.silver {
    background: linear-gradient(160deg, #e0e6f0 0%, #c7d1e0 45%, #949ead 100%);
    color: #1e2430;
}
.wallet-hero.btc {
    background: linear-gradient(160deg, #fab847 0%, #f29e38 45%, #bf6b1f 100%);
    color: #1e140a;
}
.wallet-hero.usdt {
    background: linear-gradient(160deg, #47d19e 0%, #38b88c 45%, #1f8566 100%);
    color: #0a1f1a;
}
.wallet-hero > * { position: relative; z-index: 1; }

.hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
}
.hero-change {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 20px;
    background: var(--hero-pill-bg);
    font-size: 10px;
    white-space: nowrap;
}
.hero-titles {
    text-align: right;
}
.hero-label {
    font-size: 11px;
    opacity: 0.65;
    margin-bottom: 2px;
}
.hero-name {
    font-size: 14px;
    font-weight: 700;
    margin: 0;
    opacity: 1;
}
.hero-balance-block {
    margin-top: 16px;
    text-align: right;
}
.hero-bal-caption {
    font-size: 11px;
    opacity: 0.65;
    margin-bottom: 2px;
}
.hero-bal {
    font-size: 30px;
    font-weight: 700;
    margin: 0;
    line-height: 1.15;
}
.hero-unit {
    margin-top: 2px;
    font-size: 11px;
    opacity: 0.65;
}
.hero-pills {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    width: 100%;
    align-items: center;
}
.hero-pills.cash {
    justify-content: space-between;
}
.hero-pills .hero-pill {
    flex: 1;
}
.hero-pills.cash .hero-pill {
    flex: 0 1 auto;
    max-width: 48%;
}
.hero-pills .live-chip {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 4px 10px;
    border-radius: 10px;
    background: var(--hero-pill-bg);
    border: 1px solid var(--hero-pill-border);
    direction: ltr;
}
.live-chip .live-chip-row {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
}
.live-chip .chip-toman,
.live-chip .chip-label {
    font-size: 9px;
    opacity: 0.65;
}
.live-chip .chip-amount {
    font-size: 11px;
    font-weight: 700;
}
.live-chip .pill-icon.compact {
    width: auto;
    height: auto;
    padding: 0 8px;
    border-radius: 20px;
    font-size: 12px;
}
.hero-convert {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 2;
    margin-top: 0;
    border: none;
    border-radius: 12px;
    padding: 7px 10px;
    width: 148px;
    font-family: inherit;
    font-size: 9px;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: inherit;
    background: linear-gradient(180deg, rgba(0,0,0,0.10), rgba(0,0,0,0.18));
}
.wallet-hero.gold .hero-convert {
    background: linear-gradient(180deg, #d3ac66, #c09249);
    color: #20150a;
}
.wallet-hero.cash .hero-convert {
    background: linear-gradient(180deg, #2e9e6b, #1a734e);
    color: #fff;
}
.wallet-hero.silver .hero-convert {
    background: linear-gradient(180deg, #c7d1e0, #949ead);
    color: #1e2430;
}
.wallet-hero.btc .hero-convert {
    background: linear-gradient(180deg, #f29e38, #bf6b1f);
    color: #1e140a;
}
.wallet-hero.usdt .hero-convert {
    background: linear-gradient(180deg, #38b88c, #1f8566);
    color: #0a1f1a;
}
.hero-convert .conv-icon {
    width: 22px;
    height: 22px;
    border-radius: 6px;
    background: rgba(0,0,0,0.08);
    display: grid;
    place-items: center;
    font-size: 10px;
}
.wallet-hero.cash .hero-convert .conv-icon {
    background: rgba(255,255,255,0.14);
}

/* Circular quick actions (wallet_quick_btn) */
.quick-actions {
    display: flex;
    width: 100%;
    margin: 4px 0 14px;
    gap: 0;
}
.quick-actions.two-row {
    flex-direction: column;
    gap: 15px;
}
.quick-actions-row {
    display: flex;
    width: 100%;
}
.quick-btn {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0;
    cursor: pointer;
    font-family: inherit;
    color: var(--label);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
}
.quick-btn .q-circle {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 18px;
}
.quick-btn.gold .q-circle {
    background: linear-gradient(180deg, var(--gold-a), var(--gold-b));
    color: var(--gold-txt);
}
.quick-btn.dark .q-circle {
    background: linear-gradient(180deg, var(--btn-drk-a), var(--btn-drk-b));
    color: var(--btn-drk-txt);
}
.quick-btn .q-label {
    font-size: 10px;
    color: var(--label);
    text-align: center;
    line-height: 1.35;
    max-width: 78px;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}
.service-tile {
    border: none;
    background: rgba(255,255,255,0.03);
    border: 1px solid var(--card-border);
    border-radius: 14px;
    padding: 12px 6px;
    color: var(--label);
    font-family: inherit;
    font-size: 10px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}
.service-tile .fa-icon { color: var(--gold); font-size: 18px; }
.service-tile:disabled { opacity: 0.4; cursor: not-allowed; }

.account-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}
.avatar {
    width: 56px; height: 56px; border-radius: 50%;
    background: rgba(202,155,93,0.2);
    color: var(--gold);
    display: grid; place-items: center;
    font-size: 22px;
}
.menu-row {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 14px 4px;
    border: none;
    border-bottom: 1px solid var(--divider);
    background: transparent;
    color: var(--label);
    font-family: inherit;
    font-size: 13px;
    cursor: pointer;
}
.menu-row .left { display: flex; align-items: center; gap: 10px; }
.menu-row .fa-icon { color: var(--gold); }

.gold-card-visual {
    border-radius: 22px;
    padding: 20px;
    height: 221px;
    background: linear-gradient(160deg, #e8c785 0%, #d3ac66 45%, #c09249 100%);
    color: #20150a;
    margin-bottom: 12px;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.gold-card-visual::before,
.gold-card-visual::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}
.gold-card-visual::before {
    width: 56%;
    padding-bottom: 56%;
    height: 0;
    right: -10%;
    top: -18%;
    background: var(--wallet-deco-a);
}
.gold-card-visual::after {
    width: 36%;
    padding-bottom: 36%;
    height: 0;
    right: -8%;
    top: 38%;
    background: var(--wallet-deco-b);
}
.gold-card-visual > * { position: relative; z-index: 1; }
.gc-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.gc-number {
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.04em;
    color: #20150a;
}
.gc-iban {
    margin-top: 6px;
    font-size: 11px;
    color: #20150a;
}
.gc-balance-block {
    margin-top: 23px;
    text-align: right;
}
.gc-balance-label {
    font-size: 9px;
    color: rgba(32, 21, 10, 0.72);
}
.gc-balance-row {
    margin-top: 6px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    flex-wrap: wrap;
}
.gc-balance-amount {
    font-size: 17px;
    font-weight: 700;
    color: #20150a;
}
.gc-balance-hint {
    font-size: 10px;
    color: rgba(32, 21, 10, 0.72);
}
.gc-spacer { flex: 1; min-height: 8px; }
.gc-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}
.gc-link {
    font-size: 10px;
    color: rgba(32, 21, 10, 0.72);
}
.gc-bank {
    display: flex;
    align-items: center;
    /* iced: row spacing -12, container padding.right -15 */
    margin-right: -15px;
}
.gc-bank-name {
    font-size: 11px;
    color: rgba(32, 21, 10, 0.72);
    flex-shrink: 0;
}
.gc-logo-shetab {
    /* iced shetab_card_logo: 44×22 Contain, tinted BTN_GOLD_TXT @ 0.90 */
    width: 44px;
    height: 22px;
    flex-shrink: 0;
    object-fit: contain;
    object-position: center;
}
.gc-logo-bank {
    /* iced keshavarzi_bank_logo: 60×28 Contain, tinted BTN_GOLD_TXT @ 0.90 */
    width: 60px;
    height: 28px;
    flex-shrink: 0;
    object-fit: contain;
    object-position: center;
    margin-top: -6px;
    margin-left: -12px;
}

.flow-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px 4px;
}
.flow-header h2 {
    margin: 0;
    font-size: 18px;
    color: var(--title);
}

.toast {
    position: absolute;
    left: 50%;
    bottom: 84px;
    transform: translateX(-50%);
    background: rgba(20, 28, 40, 0.95);
    border: 1px solid rgba(202,155,93,0.35);
    color: var(--title);
    padding: 10px 16px;
    border-radius: 12px;
    font-size: 12px;
    z-index: 80;
    white-space: nowrap;
    pointer-events: none;
}

.section-gap { height: 4px; }

/* Flow screens (iced trade/cash/delivery pages) */
.flow-screen {
    flex: 1;
    min-height: 0;
    display: flex;
    flex-direction: column;
}
.flow-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px 8px;
    gap: 10px;
}
.flow-header h2 {
    margin: 0;
    flex: 1;
    text-align: center;
    font-size: 18px;
    color: var(--gold);
    font-weight: 700;
}
.flow-body { padding-top: 8px; }
.flow-step-bar {
    font-size: 10px;
    color: var(--caption);
    text-align: left;
    direction: ltr;
    padding: 0 2px 4px;
}
.summary-row {
    display: flex;
    align-items: center;
    gap: 8px;
    direction: ltr;
    width: 100%;
}
.summary-row .sum-val {
    font-size: 12px;
    color: var(--label);
}
.summary-row .sum-val.hi {
    font-size: 14px;
    font-weight: 700;
    color: var(--gold);
}
.summary-row .sum-spacer { flex: 1; }
.summary-row .sum-label {
    font-size: 12px;
    color: var(--caption);
}
.delivery-balance {
    display: flex;
    align-items: center;
    gap: 12px;
    direction: ltr;
}
.delivery-balance .bal-text {
    flex: 1;
    text-align: right;
}
.delivery-balance .bal-caption { font-size: 10px; color: var(--caption); }
.delivery-balance .bal-row {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin: 4px 0;
}
.delivery-balance .bal-grams {
    font-size: 18px;
    font-weight: 700;
    color: var(--gold);
}
.delivery-balance .bal-unit { font-size: 11px; color: var(--caption); }
.delivery-balance .bal-hint { font-size: 9px; color: var(--caption); }
.delivery-balance .bal-icon {
    width: 42px;
    height: 42px;
    border-radius: 12px;
    background: rgba(202, 155, 93, 0.14);
    display: grid;
    place-items: center;
    color: var(--gold);
    font-size: 18px;
    flex-shrink: 0;
}
.weight-input-wrap {
    background: rgba(0, 0, 0, 0.18);
    border-radius: 14px;
    padding: 14px 0;
    text-align: center;
}
.weight-input-wrap .flow-input {
    margin-top: 0;
    border: none;
    background: transparent;
    font-size: 32px;
    font-weight: 700;
    color: var(--gold);
    padding: 4px 12px;
}
.weight-hint {
    margin-top: 6px;
    font-size: 10px;
    color: var(--caption);
}
.weight-hint.err { color: var(--red); }
.chip-row.fill {
    display: flex;
    gap: 6px;
    width: 100%;
}
.chip-row.fill .chip {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
    border-radius: 12px;
    font-size: 10px;
}
.delivery-step-row {
    display: flex;
    align-items: center;
    gap: 10px;
    direction: ltr;
    width: 100%;
}
.delivery-step-row .step-text {
    flex: 1;
    text-align: right;
}
.delivery-step-row .step-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--label);
}
.delivery-step-row .step-desc {
    font-size: 10px;
    color: var(--caption);
    margin-top: 2px;
}
.delivery-step-row .step-num {
    width: 24px;
    height: 24px;
    border-radius: 12px;
    background: var(--gold-a);
    color: var(--gold-txt);
    font-size: 11px;
    font-weight: 700;
    display: grid;
    place-items: center;
    flex-shrink: 0;
}
.product-pick {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 6px;
    direction: ltr;
    padding: 12px;
    border-radius: 14px;
    border: 1px solid var(--divider);
    background: rgba(255,255,255,0.03);
    cursor: pointer;
    font-family: inherit;
    color: inherit;
    text-align: right;
}
.product-pick.active {
    border-color: rgba(202, 155, 93, 0.45);
    background: rgba(202, 155, 93, 0.12);
}
.product-pick .check {
    width: 18px;
    color: transparent;
    font-size: 11px;
    flex-shrink: 0;
}
.product-pick.active .check { color: var(--gold); }
.product-pick .prod-body { flex: 1; min-width: 0; }
.product-pick .prod-top {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 8px;
}
.product-pick .fee-tag {
    font-size: 9px;
    padding: 2px 6px;
    border-radius: 8px;
    background: rgba(255,255,255,0.06);
    color: var(--caption);
}
.product-pick.active .fee-tag {
    background: rgba(202, 155, 93, 0.22);
    color: var(--gold-txt);
}
.product-pick .prod-name {
    font-size: 13px;
    font-weight: 700;
    color: var(--title);
}
.product-pick .prod-desc {
    margin-top: 4px;
    font-size: 10px;
    color: var(--caption);
}
.product-pick .prod-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(202, 155, 93, 0.14);
    display: grid;
    place-items: center;
    color: var(--gold);
    flex-shrink: 0;
}
.method-hint {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    direction: ltr;
    font-size: 10px;
    color: var(--caption);
    margin-top: 10px;
}
.method-hint .fa-icon { color: var(--gold); font-size: 11px; }
.flow-divider {
    height: 1px;
    width: 100%;
    background: var(--divider);
    margin: 10px 0;
}
.soft-card.stack-gap > * + * { margin-top: 8px; }
.soft-card h3.card-title {
    margin: 0 0 10px;
    font-size: 13px;
    color: var(--box-title);
    text-align: right;
    font-weight: 700;
}
.action-btn:disabled {
    opacity: 0.45;
    cursor: not-allowed;
}
.flow-asset-row {
    display: flex;
    align-items: center;
    gap: 12px;
    direction: ltr;
}
.flow-input {
    width: 100%;
    margin-top: 12px;
    border: 1px solid var(--card-border);
    background: var(--input-bg);
    color: var(--title);
    border-radius: 14px;
    padding: 14px 12px;
    font-family: inherit;
    font-size: 16px;
    text-align: center;
    outline: none;
}
.flow-input:focus {
    border-color: rgba(202, 155, 93, 0.55);
}
.chip-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    justify-content: flex-end;
}
.chip {
    border: 1px solid var(--divider);
    background: rgba(255,255,255,0.06);
    color: var(--nav-off);
    border-radius: 20px;
    padding: 8px 12px;
    font-family: inherit;
    font-size: 11px;
    cursor: pointer;
}
.chip.active {
    background: rgba(202, 155, 93, 0.18);
    border-color: rgba(202, 155, 93, 0.55);
    color: var(--gold);
    font-weight: 700;
}
.quick-btn {
    position: relative;
    z-index: 2;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}
.quick-btn:active .q-circle {
    transform: scale(0.94);
}

.wallet-tx-card {
    background: linear-gradient(180deg, var(--card-top), var(--card-bot));
    border: 1px solid var(--card-border);
    border-radius: 20px;
    padding: 16px;
    min-height: 340px;
}
.wallet-tx-filters {
    display: flex;
    gap: 6px;
    direction: ltr;
    margin: 10px 0;
}
.wallet-tx-filters .chip {
    flex: 1;
    text-align: center;
    font-size: 10px;
    padding: 8px 6px;
}
.wallet-tx-filters .chip.active {
    background: linear-gradient(180deg, #deb876, #bb883f);
    color: #16110a;
    border-color: transparent;
    border-radius: 999px;
}
.tx-row {
    display: flex;
    align-items: center;
    gap: 10px;
    direction: ltr;
    width: 100%;
    padding: 8px 10px;
    border-radius: 12px;
    background: var(--tx-row-bg);
    border: none;
    color: inherit;
    font-family: inherit;
    cursor: pointer;
    margin-bottom: 8px;
    text-align: right;
}
.tx-row .tx-amt {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    min-width: 88px;
}
.tx-row .tx-amt .val { font-size: 12px; font-weight: 700; }
.tx-row .tx-amt .val.up { color: var(--green); }
.tx-row .tx-amt .val.down { color: var(--red); }
.tx-row .tx-amt .st { font-size: 9px; color: var(--caption); }
.tx-row .tx-mid { flex: 1; min-width: 0; text-align: right; }
.tx-row .tx-title { font-size: 12px; font-weight: 700; color: var(--box-title); }
.tx-row .tx-date {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    margin-top: 3px;
    font-size: 10px;
    color: var(--caption);
}
.tx-row .tx-ico {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--tx-icon-bg);
    color: var(--gold);
    display: grid;
    place-items: center;
    flex-shrink: 0;
    font-size: 13px;
}
.wallet-hero.cash .hero-unit { font-size: 13px; }
.service-tile:disabled { opacity: 0.45; cursor: not-allowed; }
.account-head.centered {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
}
.account-logout { width: 100%; margin-top: 8px; color: var(--red) !important; }
.section-title { margin-bottom: 12px; }
.trade-balance {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 4px;
    direction: ltr;
    font-size: 11px;
    color: var(--caption);
    margin-bottom: 8px;
}
.trade-balance .bal { font-size: 13px; font-weight: 700; color: var(--gold); }
.bank-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid var(--divider);
    background: rgba(255,255,255,0.04);
    margin-top: 6px;
    direction: rtl;
}
.bank-row.active {
    border-color: rgba(202,155,93,0.45);
    background: rgba(202,155,93,0.12);
}
.amount-unit-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    direction: ltr;
    width: 100%;
}
.amount-unit-row .amt-unit {
    width: 36px;
    font-size: 13px;
    color: var(--caption);
    text-align: right;
    flex-shrink: 0;
}
.amount-unit-row .amt-unit.hide { color: transparent; }
.amount-unit-row .amt-unit.spacer { visibility: hidden; }
.flow-input.amount-lg {
    margin-top: 0;
    border: none;
    background: transparent;
    font-size: 32px;
    font-weight: 700;
    color: var(--gold);
    padding: 4px 0;
    flex: 0 1 auto;
    width: auto;
    min-width: 80px;
    max-width: 70%;
}

.mkt-label-block {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    min-width: 0;
}
.mkt-sub { font-size: 10px; color: var(--caption); text-align: right; }

.service-tile.soon {
    opacity: 0.55;
}
.service-tile.soon .fa-icon { color: var(--caption); }

.info-card {
    background: var(--card-fill);
    border: 1px solid var(--card-border);
    border-radius: 18px;
    padding: 16px;
    text-align: right;
}
.info-heading {
    margin: 0 0 14px;
    font-size: 15px;
    color: var(--title);
    line-height: 1.7;
}
.info-block-title, .info-q {
    margin: 14px 0 4px;
    font-size: 12px;
    color: var(--title);
}
.info-section {
    margin: 16px 0 10px;
    font-size: 13px;
    color: var(--gold);
}
.info-body {
    margin: 0 0 12px;
    font-size: 13px;
    color: var(--label);
    white-space: pre-wrap;
    line-height: 1.85;
}
.info-tagline {
    margin: 8px 0 0;
    font-size: 13px;
    color: var(--gold);
    text-align: center;
}

.auth-field { display: block; text-align: right; margin-bottom: 12px; }
.auth-label { display: block; font-size: 11px; color: var(--caption); margin-bottom: 6px; }
.auth-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    direction: ltr;
}
.auth-input-row .flow-input { flex: 1; margin: 0; text-align: right; }
.auth-ico {
    width: 40px; height: 44px; border-radius: 11px;
    background: rgba(202,155,93,0.14);
    color: var(--gold);
    display: grid; place-items: center;
    flex-shrink: 0;
}
.field-err { display: block; margin-top: 6px; font-size: 11px; color: var(--red); text-align: right; }
.auth-link {
    display: flex;
    align-items: center;
    gap: 6px;
    background: none; border: none;
    color: var(--gold); font-family: inherit; font-size: 11px;
    padding: 0; margin: 10px 0 16px; cursor: pointer;
}
.auth-link.left { justify-content: flex-start; direction: ltr; }
.auth-link.right { justify-content: flex-end; }
.auth-switch {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 14px;
}
.auth-text-link {
    background: none; border: none; color: var(--gold);
    font-family: inherit; font-size: 12px; font-weight: 700; cursor: pointer; padding: 0;
}
.auth-hero { text-align: center; margin: 8px 0 20px; }
.auth-hero h2 { margin: 0 0 6px; font-size: 20px; color: var(--gold); }
.birth-row { display: flex; gap: 6px; width: 100%; }
.birth-select {
    flex: 1; height: 44px; border-radius: 10px;
    border: 1px solid var(--card-border);
    background: var(--list-item-bg);
    color: var(--label); font-family: inherit; font-size: 12px;
    text-align: center;
}

.convert-pick {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    direction: ltr;
    background: var(--card-fill);
    border: 1px solid var(--card-border);
    border-radius: 16px;
    padding: 12px 14px;
    margin-top: 8px;
    color: var(--label);
    font-family: inherit;
    cursor: pointer;
}
.convert-pick-fill { flex: 1; }
.convert-pick-text {
    display: flex; flex-direction: column; align-items: flex-end; gap: 4px; text-align: right;
    font-size: 13px;
}
.convert-pick-title-row { display: flex; align-items: center; gap: 8px; }
.convert-chevron { color: var(--caption); font-size: 10px; }

.chip-col { display: flex; flex-direction: column; gap: 6px; }
.chip-col .chip { width: 100%; justify-content: flex-end; }

.tx-detail-head { display: flex; align-items: center; gap: 12px; }
.summary-row .sum-val.up { color: var(--green); }
.summary-row .sum-val.down { color: var(--red); }
.avatar.gold {
    background: linear-gradient(180deg, var(--gold-a), var(--gold-b));
    color: var(--gold-txt);
}
