:root {
    color-scheme: dark;
    --bg: #0d151d;
    --panel: #16222e;
    --panel-soft: #1d2b38;
    --line: rgba(255, 255, 255, 0.08);
    --text: #f5f8fa;
    --muted: #91a2b2;
    --green: #51b354;
    --green-bright: #66d66a;
    --danger: #ff6b6b;
    --radius: 18px;
    --wallet-section-gap: 12px;
    --app-safe-top: max(
        env(safe-area-inset-top, 0px),
        var(--tg-safe-area-inset-top, 0px),
        var(--tg-content-safe-area-inset-top, 0px),
        var(--telegram-runtime-safe-top, 0px)
    );
    --app-safe-bottom: max(
        env(safe-area-inset-bottom, 0px),
        var(--tg-safe-area-inset-bottom, 0px),
        var(--tg-content-safe-area-inset-bottom, 0px)
    );
}

/* Единая типографика заголовков Swapora. */
h1,
h2,
h3,
h4,
h5,
h6,
.wallet-balance-heading,
.exchange-card-heading,
.section-heading,
.settings-section-title,
.account-row-title {
    font-family: Roboto, "Segoe UI", sans-serif !important;
    font-weight: 500 !important;
}

* {
    box-sizing: border-box;
    scrollbar-width: none;
    -ms-overflow-style: none;
    -webkit-user-select: none;
    user-select: none;
}

*::-webkit-scrollbar {
    display: none;
    width: 0;
    height: 0;
}

html,
body {
    min-height: 100%;
    margin: 0;
    background:
        radial-gradient(circle at 80% -10%, rgba(81, 179, 84, 0.16), transparent 34%),
        var(--bg);
    color: var(--text);
    font-family:
        Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
        "Segoe UI", sans-serif;
    -webkit-user-select: none;
    user-select: none;
    -webkit-touch-callout: none;
}

html.app-booting,
html.app-booting body {
    height: 100%;
    overflow: hidden;
}

html.app-booting .app-shell {
    visibility: hidden;
    opacity: 0;
}

.app-shell {
    transition:
        opacity 260ms ease,
        transform 260ms ease;
}

html.app-boot-complete .app-shell {
    animation: app-boot-content-enter 320ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.app-boot-splash {
    position: fixed;
    z-index: 100000;
    inset: 0;
    display: grid;
    min-height: 100dvh;
    padding:
        max(20px, var(--app-safe-top))
        18px
        max(20px, var(--app-safe-bottom));
    overflow: hidden;
    background:
        radial-gradient(circle at 72% 14%, rgba(98, 213, 165, 0.12), transparent 34%),
        radial-gradient(circle at 18% 82%, rgba(81, 179, 84, 0.09), transparent 34%),
        #0d151d;
    color: #f5f8fa;
    opacity: 1;
    visibility: visible;
    transition:
        opacity 300ms ease,
        visibility 300ms ease;
    isolation: isolate;
}

.app-boot-splash::before,
.app-boot-splash::after {
    position: absolute;
    z-index: -1;
    width: min(70vw, 430px);
    aspect-ratio: 1;
    border: 1px solid rgba(95, 222, 171, 0.07);
    border-radius: 50%;
    content: "";
    pointer-events: none;
}

.app-boot-splash::before {
    top: -31%;
    right: -23%;
    box-shadow:
        0 0 0 34px rgba(95, 222, 171, 0.018),
        0 0 0 72px rgba(95, 222, 171, 0.012);
}

.app-boot-splash::after {
    bottom: -39%;
    left: -30%;
    box-shadow:
        0 0 0 38px rgba(81, 179, 84, 0.016),
        0 0 0 84px rgba(81, 179, 84, 0.01);
}

.app-boot-splash.is-leaving {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.exchange-launch-splash[hidden] {
    display: none !important;
}

.exchange-launch-splash {
    background:
        radial-gradient(circle at 72% 14%, rgba(66, 224, 145, 0.14), transparent 34%),
        radial-gradient(circle at 18% 82%, rgba(38, 151, 116, 0.1), transparent 34%),
        #09151b;
}

.exchange-boot-logo-shell img {
    transform: scale(1.08);
}

.app-boot-brand-stage,
.app-boot-skeleton,
.app-boot-error {
    grid-area: 1 / 1;
    width: min(100%, 520px);
    margin: auto;
}

.app-boot-brand-stage[hidden],
.app-boot-skeleton[hidden] {
    display: none;
}

.app-boot-brand-stage {
    display: grid;
    place-items: center;
    align-content: center;
    gap: 24px;
    transform: translateY(-1.5vh);
    opacity: 1;
    transition:
        opacity 180ms ease,
        transform 240ms ease;
}

.app-boot-brand {
    display: flex;
    align-items: center;
    gap: 15px;
    animation: app-boot-brand-enter 520ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.app-boot-logo-shell {
    position: relative;
    display: grid;
    width: 74px;
    height: 74px;
    place-items: center;
    overflow: hidden;
    border: 1px solid rgba(119, 239, 183, 0.22);
    border-radius: 23px;
    background: #111c25;
    box-shadow:
        0 18px 44px rgba(0, 0, 0, 0.34),
        0 0 34px rgba(81, 179, 84, 0.14);
}

.app-boot-logo-shell::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1), transparent 42%);
    content: "";
}

.app-boot-logo-shell img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.app-boot-wordmark {
    display: grid;
    gap: 0;
    line-height: 0.92;
}

.app-boot-wordmark strong,
.app-boot-wordmark small {
    font-family: Roboto, "Segoe UI", sans-serif;
    font-style: normal;
    letter-spacing: -0.035em;
}

.app-boot-wordmark strong {
    font-size: 29px;
    font-weight: 700;
}

.app-boot-wordmark small {
    color: #a9bac5;
    font-size: 18px;
    font-weight: 500;
}

.app-boot-spinner {
    position: relative;
    width: 27px;
    height: 27px;
}

.app-boot-spinner i {
    position: absolute;
    inset: 1px;
    border: 3px solid transparent;
    border-top-color: #66d66a;
    border-right-color: rgba(102, 214, 106, 0.22);
    border-radius: 50%;
    animation: app-boot-spinner 720ms linear infinite;
}

.app-boot-spinner i + i {
    inset: 7px;
    border-width: 2px;
    border-top-color: #5eddb8;
    border-right-color: transparent;
    animation-direction: reverse;
    animation-duration: 520ms;
}

.app-boot-skeleton {
    display: grid;
    align-self: start;
    gap: 14px;
    padding-top: 8px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(8px) scale(0.992);
    transition:
        opacity 180ms ease,
        transform 240ms ease,
        visibility 180ms ease;
}

.app-boot-splash[data-stage="assembling"] .app-boot-brand-stage {
    opacity: 0;
    transform: translateY(-12px) scale(0.97);
    visibility: hidden;
}

.app-boot-splash[data-stage="assembling"] .app-boot-skeleton {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

.app-boot-skeleton-user,
.app-boot-skeleton-tabs,
.app-boot-skeleton-balance,
.app-boot-skeleton-actions,
.app-boot-skeleton-banner,
.app-boot-skeleton-assets {
    position: relative;
    overflow: hidden;
}

.app-boot-skeleton-user::after,
.app-boot-skeleton-tabs::after,
.app-boot-skeleton-balance::after,
.app-boot-skeleton-actions::after,
.app-boot-skeleton-banner::after,
.app-boot-skeleton-assets::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        105deg,
        transparent 20%,
        rgba(120, 224, 179, 0.09) 46%,
        transparent 72%
    );
    content: "";
    transform: translateX(-120%);
    animation: app-boot-shimmer 900ms ease-in-out infinite;
}

.app-boot-skeleton-user {
    display: flex;
    align-items: center;
    gap: 12px;
    height: 54px;
}

.app-boot-skeleton-user i {
    width: 46px;
    height: 46px;
    border-radius: 15px;
    background: #20313d;
}

.app-boot-skeleton-user span {
    width: 34%;
    height: 15px;
    border-radius: 8px;
    background: #20313d;
}

.app-boot-skeleton-tabs {
    display: flex;
    gap: 9px;
}

.app-boot-skeleton-tabs span {
    width: 142px;
    height: 39px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 12px;
    background: #192733;
}

.app-boot-skeleton-tabs span + span {
    width: 96px;
}

.app-boot-skeleton-balance {
    display: grid;
    gap: 13px;
    min-height: 112px;
    padding: 20px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 22px;
    background:
        radial-gradient(circle at 88% 0%, rgba(81, 179, 84, 0.12), transparent 43%),
        #182733;
}

.app-boot-skeleton-balance i,
.app-boot-skeleton-balance strong,
.app-boot-skeleton-balance small {
    display: block;
    border-radius: 7px;
    background: #263844;
}

.app-boot-skeleton-balance i {
    width: 31%;
    height: 12px;
}

.app-boot-skeleton-balance strong {
    width: 42%;
    height: 29px;
}

.app-boot-skeleton-balance small {
    position: absolute;
    right: 20px;
    bottom: 23px;
    width: 44px;
    height: 14px;
}

.app-boot-skeleton-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 9px;
}

.app-boot-skeleton-actions span {
    height: 58px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 16px;
    background: #192733;
}

.app-boot-skeleton-banner {
    height: 96px;
    border-radius: 18px;
    background:
        linear-gradient(115deg, rgba(52, 124, 94, 0.44), rgba(24, 39, 51, 0.92)),
        #192733;
}

.app-boot-skeleton-assets {
    display: grid;
    gap: 12px;
}

.app-boot-skeleton-assets strong {
    width: 39%;
    height: 21px;
    border-radius: 8px;
    background: #20313d;
}

.app-boot-skeleton-assets span {
    height: 72px;
    border: 1px solid rgba(255, 255, 255, 0.055);
    border-radius: 18px;
    background: #192733;
}

.app-boot-error {
    display: grid;
    max-width: 350px;
    place-items: center;
    gap: 10px;
    padding: 28px 22px;
    border: 1px solid rgba(255, 107, 107, 0.22);
    border-radius: 24px;
    background: rgba(22, 34, 46, 0.96);
    text-align: center;
    box-shadow: 0 24px 64px rgba(0, 0, 0, 0.32);
}

.app-boot-error[hidden] {
    display: none;
}

.app-boot-error-mark {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    background: rgba(255, 107, 107, 0.14);
    color: #ff8c8c;
    font-size: 25px;
    font-weight: 700;
}

.app-boot-error strong {
    font-size: 18px;
}

.app-boot-error small {
    max-width: 280px;
    color: #a9bac5;
    font-size: 14px;
    line-height: 1.4;
}

.app-boot-error button {
    width: 100%;
    min-height: 46px;
    margin-top: 8px;
    border: 0;
    border-radius: 14px;
    background: #58cc60;
    color: #07120d;
    font-weight: 700;
}

@keyframes app-boot-brand-enter {
    from {
        opacity: 0;
        transform: translateY(9px) scale(0.94);
    }

    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes app-boot-spinner {
    to {
        transform: rotate(360deg);
    }
}

@keyframes app-boot-shimmer {
    60%,
    100% {
        transform: translateX(125%);
    }
}

@keyframes app-boot-content-enter {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@media (max-height: 680px) {
    .app-boot-skeleton {
        gap: 10px;
    }

    .app-boot-skeleton-user {
        height: 46px;
    }

    .app-boot-skeleton-user i {
        width: 40px;
        height: 40px;
    }

    .app-boot-skeleton-balance {
        min-height: 94px;
        padding: 16px;
    }

    .app-boot-skeleton-actions span {
        height: 49px;
    }

    .app-boot-skeleton-banner {
        height: 76px;
    }

    .app-boot-skeleton-assets span {
        height: 60px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .app-boot-brand,
    .app-boot-spinner i,
    .app-boot-skeleton-user::after,
    .app-boot-skeleton-tabs::after,
    .app-boot-skeleton-balance::after,
    .app-boot-skeleton-actions::after,
    .app-boot-skeleton-banner::after,
    .app-boot-skeleton-assets::after,
    html.app-boot-complete .app-shell {
        animation: none !important;
    }
}

input,
textarea,
[contenteditable="true"],
.crypto-deposit-address-row code,
.transaction-id-group > strong {
    -webkit-user-select: text;
    user-select: text;
    -webkit-touch-callout: default;
}

img,
svg {
    -webkit-user-drag: none;
    user-drag: none;
}

html.telegram-mobile,
html.telegram-mobile body {
    height: 100%;
    max-height: 100%;
    overflow: hidden;
    touch-action: pan-y;
    overscroll-behavior: none;
    overscroll-behavior-x: none;
}

html.telegram-mobile .app-shell {
    height: 100dvh;
    min-height: 100dvh;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior-y: none;
    -webkit-overflow-scrolling: touch;
}

/* Android WebView needs a simpler, isolated scrolling/compositing path.
   These overrides are intentionally not applied to iOS or desktop. */
html.telegram-android .app-shell {
    overflow-anchor: none;
    scroll-behavior: auto;
    -webkit-overflow-scrolling: auto;
}

html.telegram-android .app-shell.android-scroll-resetting {
    overflow-y: hidden;
}

html.telegram-android .view {
    animation: none;
}

html.telegram-android .bottom-nav {
    background: #0d151d;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html.telegram-mobile.telegram-fullscreen {
    --telegram-runtime-safe-top: 94px;
}

button,
input,
select {
    font: inherit;
}

button {
    color: inherit;
}

.app-shell {
    width: min(100%, 560px);
    min-height: 100vh;
    margin: 0 auto;
    padding:
        max(18px, var(--app-safe-top))
        16px
        calc(94px + var(--app-safe-bottom));
}

.topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 22px;
}

.brand {
    color: var(--green-bright);
    font-size: 21px;
    font-weight: 900;
    letter-spacing: 0.1em;
}

.subtitle {
    margin-top: 3px;
    color: var(--muted);
    font-size: 14px;
}

.icon-button,
.back-button {
    border: 1px solid var(--line);
    border-radius: 13px;
    background: var(--panel);
    cursor: pointer;
}

.icon-button {
    width: 48px;
    height: 42px;
    font-weight: 800;
}

.view {
    display: none;
    animation: appear 0.18s ease-out;
}

.view.active {
    display: block;
}

@keyframes appear {
    from {
        opacity: 0;
        transform: translateY(5px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.profile-card,
.hero-card,
.form-card,
.settings-card,
.security-card,
.request-item {
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: linear-gradient(150deg, var(--panel-soft), var(--panel));
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.profile-card {
    display: flex;
    align-items: center;
    gap: 13px;
    padding: 15px;
}

.avatar {
    display: grid;
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    place-items: center;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--green-bright), #2c8f46);
    color: #07120b;
    font-weight: 900;
}

.profile-copy {
    min-width: 0;
    flex: 1;
}

.profile-name {
    overflow: hidden;
    font-size: 16px;
    font-weight: 800;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-id {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.verified-mark {
    display: grid;
    width: 27px;
    height: 27px;
    place-items: center;
    border-radius: 50%;
    background: rgba(81, 179, 84, 0.18);
    color: var(--green-bright);
    font-weight: 900;
}

.hero-card {
    margin-top: 14px;
    padding: 20px;
    background:
        radial-gradient(circle at 90% 0%, rgba(102, 214, 106, 0.24), transparent 36%),
        linear-gradient(150deg, #1e3235, #17232d);
}

.hero-label,
.hero-note {
    color: var(--muted);
}

.hero-value {
    margin: 7px 0;
    font-size: 42px;
    font-weight: 900;
    line-height: 1;
}

.hero-note {
    max-width: 350px;
    font-size: 13px;
    line-height: 1.5;
}

.primary-button {
    width: 100%;
    min-height: 50px;
    margin-top: 17px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--green-bright), var(--green));
    color: #07120b;
    cursor: pointer;
    font-weight: 900;
}

.primary-button:disabled {
    cursor: wait;
    opacity: 0.6;
}

h1,
h2,
p {
    margin-top: 0;
}

h1 {
    margin-bottom: 5px;
    font-size: 24px;
}

h2 {
    margin: 24px 2px 12px;
    font-size: 17px;
}

.section-heading {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 16px;
}

.section-heading p {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.back-button {
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
}

.form-card,
.settings-card,
.security-card {
    padding: 17px;
}

.form-card {
    display: grid;
    gap: 14px;
}

label {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 13px;
}

input,
select {
    width: 100%;
    min-height: 50px;
    border: 1px solid var(--line);
    border-radius: 13px;
    outline: none;
    background: #101a23;
    color: var(--text);
    padding: 0 14px;
}

input:focus,
select:focus {
    border-color: rgba(102, 214, 106, 0.72);
}

.swap-button {
    width: 46px;
    height: 38px;
    margin: -4px auto;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--panel-soft);
    color: var(--green-bright);
    cursor: pointer;
    font-size: 20px;
}

.notice-box,
.security-card {
    color: var(--muted);
    font-size: 13px;
    line-height: 1.55;
}

.notice-box {
    padding: 12px;
    border: 1px solid rgba(102, 214, 106, 0.16);
    border-radius: 12px;
    background: rgba(81, 179, 84, 0.08);
}

.request-list {
    display: grid;
    gap: 10px;
}

.request-item {
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 10px;
    padding: 15px;
}

.request-route {
    font-size: 15px;
    font-weight: 850;
}

.request-meta {
    margin-top: 5px;
    color: var(--muted);
    font-size: 12px;
}

.request-item-crypto {
    border-color: rgba(102, 214, 106, 0.18);
}

.request-item-crypto .request-route::before {
    display: inline-grid;
    width: 22px;
    height: 22px;
    margin-right: 8px;
    place-items: center;
    border-radius: 50%;
    background: #4fc1a2;
    color: #ffffff;
    content: "₮";
    font-size: 13px;
    font-weight: 900;
    line-height: 1;
    vertical-align: -2px;
}

.status.status-credit {
    background: rgba(102, 214, 106, 0.14);
    color: var(--green-bright);
    white-space: nowrap;
}

.status {
    align-self: start;
    padding: 6px 9px;
    border-radius: 99px;
    background: rgba(255, 193, 7, 0.12);
    color: #ffd166;
    font-size: 11px;
    font-weight: 800;
}

.empty-state {
    padding: 24px 14px;
    border: 1px dashed var(--line);
    border-radius: var(--radius);
    color: var(--muted);
    text-align: center;
}

.setting-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 15px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.setting-row:first-child {
    padding-top: 0;
}

.setting-row:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.setting-row span {
    color: var(--muted);
    font-size: 13px;
}

.setting-row strong,
.setting-row a {
    max-width: 58%;
    overflow: hidden;
    color: var(--text);
    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.security-card {
    margin-top: 13px;
}

.security-card strong {
    color: var(--green-bright);
}

.security-card p {
    margin: 7px 0 0;
}

.bottom-nav {
    position: fixed;
    z-index: 10;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    width: min(100%, 560px);
    margin: 0 auto;
    padding:
        9px 10px
        max(10px, var(--app-safe-bottom));
    border-top: 1px solid var(--line);
    background: rgba(13, 21, 29, 0.94);
    backdrop-filter: blur(18px);
}

html:not(.telegram-mobile) .bottom-nav {
    background: #0d151d;
    box-shadow: 0 -10px 24px rgba(0, 0, 0, 0.28);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

.bottom-nav.has-private-qr {
    grid-template-columns: repeat(5, 1fr);
}

.nav-button {
    display: grid;
    gap: 4px;
    place-items: center;
    min-height: 54px;
    padding: 4px 2px 3px;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

.nav-private-qr[hidden] {
    display: none !important;
}

.nav-private-qr {
    position: relative;
    color: var(--green-bright);
}

.nav-private-qr-tile {
    display: grid;
    width: 47px;
    height: 47px;
    place-items: center;
    border: 0;
    border-radius: 15px;
    background:
        linear-gradient(145deg, rgba(81, 204, 108, 0.34), rgba(27, 76, 61, 0.52)),
        #172932;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.13),
        inset 0 -2px 3px rgba(0, 0, 0, 0.18),
        0 7px 0 rgba(5, 18, 20, 0.26),
        0 12px 22px rgba(0, 0, 0, 0.28),
        0 0 22px rgba(91, 213, 104, 0.14);
    transform: translateY(-2px);
    transition: transform 120ms ease, box-shadow 120ms ease;
}

.nav-private-qr-tile svg {
    width: 29px;
    height: 29px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: square;
    stroke-linejoin: round;
    stroke-width: 1.9;
    shape-rendering: geometricPrecision;
}

.nav-private-qr-tile rect {
    fill: currentColor;
    stroke: none;
}

.nav-private-qr:active .nav-private-qr-tile {
    box-shadow:
        inset 0 1px 2px rgba(0, 0, 0, 0.22),
        0 3px 0 rgba(5, 18, 20, 0.2),
        0 7px 14px rgba(0, 0, 0, 0.22);
    transform: translateY(1px) scale(0.985);
}

.nav-button small {
    font-size: 12px;
    font-weight: 650;
    line-height: 1;
}

.nav-icon {
    position: relative;
    display: block;
    width: 24px;
    height: 24px;
    color: currentColor;
}

.nav-icon-home::before {
    position: absolute;
    inset: 1px;
    background: currentColor;
    content: "";
    -webkit-mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.8 10.1 12 3l9.2 7.1v8.05a2.45 2.45 0 0 1-2.45 2.45H5.25a2.45 2.45 0 0 1-2.45-2.45z'/%3E%3Cpath d='M8.75 17h6.5'/%3E%3C/g%3E%3C/svg%3E")
        center / contain no-repeat;
    mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M2.8 10.1 12 3l9.2 7.1v8.05a2.45 2.45 0 0 1-2.45 2.45H5.25a2.45 2.45 0 0 1-2.45-2.45z'/%3E%3Cpath d='M8.75 17h6.5'/%3E%3C/g%3E%3C/svg%3E")
        center / contain no-repeat;
}

.nav-icon-home::after {
    content: none;
}

.nav-icon-history::before {
    position: absolute;
    inset: 2px;
    border: 2px solid currentColor;
    border-radius: 50%;
    box-sizing: border-box;
    content: "";
}

.nav-icon-history::after {
    position: absolute;
    top: 6px;
    left: 11px;
    width: 5px;
    height: 6px;
    border-bottom: 2px solid currentColor;
    border-left: 2px solid currentColor;
    border-radius: 0 0 0 2px;
    content: "";
}

.nav-icon-services {
    display: grid;
    grid-template-columns: repeat(2, 7px);
    grid-template-rows: repeat(2, 7px);
    justify-content: center;
    align-content: center;
    gap: 3px;
}

.nav-icon-services i {
    display: block;
    width: 7px;
    height: 7px;
    border: 2px solid currentColor;
    border-radius: 2px;
    box-sizing: border-box;
}

.nav-icon-p2p::before {
    position: absolute;
    inset: 1px;
    background: currentColor;
    content: "";
    -webkit-mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h13l-3-3m3 3-3 3'/%3E%3Cpath d='M20 17H7l3 3m-3-3 3-3'/%3E%3C/g%3E%3C/svg%3E")
        center / contain no-repeat;
    mask:
        url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cg fill='none' stroke='white' stroke-width='1.9' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 7h13l-3-3m3 3-3 3'/%3E%3Cpath d='M20 17H7l3 3m-3-3 3-3'/%3E%3C/g%3E%3C/svg%3E")
        center / contain no-repeat;
}

.nav-icon-profile::before {
    position: absolute;
    top: 2px;
    left: 3px;
    width: 18px;
    height: 20px;
    border: 2px solid currentColor;
    border-radius: 4px;
    box-sizing: border-box;
    content: "";
}

.nav-icon-profile::after {
    position: absolute;
    top: 5px;
    left: 8px;
    width: 8px;
    height: 8px;
    border: 2px solid currentColor;
    border-radius: 50%;
    box-sizing: border-box;
    content: "";
}

.nav-icon-profile i {
    position: absolute;
    bottom: 5px;
    left: 7px;
    display: block;
    width: 10px;
    height: 5px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 7px 7px 0 0;
    box-sizing: border-box;
}

.nav-button.active {
    background: transparent;
    color: var(--green-bright);
}

.nav-button.active .nav-icon {
    filter: drop-shadow(0 0 7px rgba(102, 214, 106, 0.42));
}

.nav-button.active small {
    font-weight: 760;
}

.toast {
    position: fixed;
    z-index: 30;
    right: 18px;
    bottom: calc(86px + var(--app-safe-bottom));
    left: 18px;
    max-width: 520px;
    margin: 0 auto;
    padding: 13px 15px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #223240;
    opacity: 0;
    pointer-events: none;
    transform: translateY(10px);
    transition: 0.2s ease;
}

.toast.visible {
    opacity: 1;
    transform: translateY(0);
}

.toast.error {
    border-color: rgba(255, 107, 107, 0.4);
    color: #ffc1c1;
}

@media (min-width: 520px) {
    .app-shell {
        padding-right: 22px;
        padding-left: 22px;
    }
}


/* PIN protection bottom sheet */
:root {
    --security-accent: #66d66a;
    --security-accent-dark: #51b354;
    --security-panel: #0f1721;
    --security-panel-2: #14212d;
    --security-soft: rgba(102, 214, 106, 0.10);
    --security-soft-2: rgba(81, 179, 84, 0.18);
}

body.modal-open {
    overflow: hidden;
}

.security-overlay {
    position: fixed;
    z-index: 100;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 40px;
    background: rgba(2, 8, 14, 0.72);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.24s ease;
    backdrop-filter: blur(6px);
}

.security-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.security-sheet {
    width: min(100%, 560px);
    max-height: calc(100vh - 24px);
    overflow-y: auto;
    padding:
        8px 19px
        max(28px, calc(20px + var(--app-safe-bottom)));
    border: 1px solid rgba(102, 214, 106, 0.10);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background:
        radial-gradient(circle at 50% 0%, rgba(102, 214, 106, 0.12), transparent 36%),
        linear-gradient(180deg, var(--security-panel-2), var(--security-panel));
    box-shadow: 0 -26px 70px rgba(0, 0, 0, 0.52);
    transform: translateY(105%);
    transition: transform 0.3s cubic-bezier(0.2, 0.78, 0.2, 1);
}

.security-overlay.visible .security-sheet {
    transform: translateY(0);
}

.sheet-handle {
    width: 38px;
    height: 4px;
    margin: 0 auto 12px;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.16);
}

.security-step {
    text-align: center;
}

.security-step[hidden] {
    display: none;
}

.shield-orbit {
    display: grid;
    width: 94px;
    height: 94px;
    margin: 3px auto 14px;
    place-items: center;
    border-radius: 50%;
    background:
        radial-gradient(circle, rgba(102, 214, 106, 0.20), rgba(102, 214, 106, 0.06) 62%, transparent 64%);
    box-shadow:
        0 0 0 13px rgba(81, 179, 84, 0.12),
        0 0 36px rgba(102, 214, 106, 0.16);
}

.shield-orbit.compact {
    width: 78px;
    height: 78px;
}

.shield-icon {
    display: grid;
    width: 47px;
    height: 56px;
    place-items: center;
    background: linear-gradient(135deg, var(--security-accent), var(--security-accent-dark));
    color: #07120b;
    font-size: 26px;
    font-weight: 950;
    clip-path: polygon(50% 0, 91% 17%, 84% 73%, 50% 100%, 16% 73%, 9% 17%);
}

.security-step h2 {
    max-width: 390px;
    margin: 0 auto 16px;
    font-size: clamp(25px, 7vw, 33px);
    line-height: 1.08;
    letter-spacing: -0.03em;
}

.security-step p {
    max-width: 420px;
    margin: 0 auto 21px;
    color: rgba(245, 248, 250, 0.80);
    font-size: 15px;
    font-weight: 650;
    line-height: 1.22;
}

.security-primary-button,
.security-secondary-button {
    width: 100%;
    min-height: 50px;
    border: 0;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 850;
}

.security-primary-button {
    background: linear-gradient(135deg, var(--security-accent), var(--security-accent-dark));
    color: #07120b;
    box-shadow: 0 10px 28px rgba(81, 179, 84, 0.22);
}

.security-secondary-button {
    margin-top: 12px;
    border: 1px solid rgba(102, 214, 106, 0.12);
    background: rgba(102, 214, 106, 0.08);
    color: var(--security-accent);
}

.security-primary-button:disabled {
    cursor: wait;
    opacity: 0.62;
}

.pin-form {
    display: grid;
    gap: 12px;
}

.pin-input {
    min-height: 58px;
    border: 1px solid rgba(102, 214, 106, 0.28);
    border-radius: 13px;
    background: #101a23;
    color: #07120b;
    text-align: center;
    font-size: 27px;
    font-weight: 900;
    letter-spacing: 0.35em;
}

.pin-input:focus {
    border-color: var(--security-accent);
    box-shadow: 0 0 0 3px rgba(102, 214, 106, 0.14);
}

.security-overlay.pin-keypad-open {
    align-items: stretch;
    padding: 0;
    background: #08131b;
    backdrop-filter: none;
}

.security-overlay.pin-keypad-open .security-sheet {
    width: min(100%, 560px);
    height: 100dvh;
    max-height: none;
    margin: 0 auto;
    overflow: hidden;
    padding:
        max(16px, calc(8px + var(--app-safe-top)))
        18px
        max(18px, calc(10px + var(--app-safe-bottom)));
    border: 0;
    border-radius: 0;
    background:
        radial-gradient(circle at 50% 34%, rgba(73, 194, 93, 0.08), transparent 36%),
        linear-gradient(180deg, #0b1821, #071119);
    box-shadow: none;
}

.security-overlay.pin-keypad-open .sheet-handle {
    display: none;
}

.pin-entry-step {
    position: relative;
    height: 100%;
    min-height: 0;
}

.pin-entry-back {
    position: absolute;
    z-index: 2;
    top: 0;
    left: 0;
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(128, 158, 174, 0.22);
    border-radius: 50%;
    background: rgba(26, 44, 55, 0.9);
    color: #dce8ed;
    font-size: 22px;
    font-weight: 500;
}

.pin-entry-content {
    display: flex;
    height: 100%;
    align-items: center;
    justify-content: center;
    padding: clamp(58px, 9vh, 92px) 0 max(12px, 2vh);
    flex-direction: column;
}

.pin-entry-step .pin-entry-content h2 {
    margin: 0 0 22px;
    color: #f4f8fa;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: clamp(24px, 6.6vw, 29px);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.pin-entry-dots {
    display: flex;
    min-height: 14px;
    align-items: center;
    justify-content: center;
    gap: 13px;
    margin-bottom: clamp(25px, 4.6vh, 40px);
}

.pin-entry-dots i {
    width: 11px;
    height: 11px;
    border-radius: 50%;
    background: rgba(181, 197, 206, 0.32);
    box-shadow: 0 0 0 0 rgba(102, 214, 106, 0);
    transition: 0.14s ease;
}

.pin-entry-dots i.filled {
    background: var(--security-accent);
    box-shadow: 0 0 0 4px rgba(102, 214, 106, 0.09);
    transform: scale(1.05);
}

.pin-entry-dots.error {
    animation: pin-dots-shake 0.34s ease;
}

@keyframes pin-dots-shake {
    20% { transform: translateX(-7px); }
    40% { transform: translateX(6px); }
    60% { transform: translateX(-4px); }
    80% { transform: translateX(3px); }
}

.pin-keypad-form {
    width: min(100%, 330px);
}

.pin-keypad {
    display: grid;
    grid-template-columns: repeat(3, 78px);
    justify-content: space-between;
    gap: clamp(17px, 3.1vh, 24px) 28px;
    width: 100%;
}

.pin-keypad > button {
    display: grid;
    width: 78px;
    height: 78px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(127, 157, 173, 0.13);
    border-radius: 50%;
    background:
        linear-gradient(145deg, rgba(38, 58, 70, 0.98), rgba(26, 42, 53, 0.98));
    color: #f4f8fa;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 32px;
    font-weight: 500;
    line-height: 1;
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.035),
        0 8px 18px rgba(0, 0, 0, 0.13);
    transition: transform 0.08s ease, border-color 0.08s ease, background 0.08s ease;
    -webkit-tap-highlight-color: transparent;
}

.pin-keypad > button:active {
    border-color: rgba(102, 214, 106, 0.5);
    background: linear-gradient(145deg, rgba(45, 86, 67, 0.98), rgba(30, 64, 52, 0.98));
    transform: scale(0.93);
}

.pin-keypad > .pin-key-delete {
    border-color: transparent;
    background: transparent;
    box-shadow: none;
}

.pin-key-delete svg {
    width: 30px;
    height: 24px;
    overflow: visible;
    fill: none;
    stroke: #93a9b6;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.pin-hidden-submit {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    opacity: 0;
    pointer-events: none;
}

.pin-keypad-form.submitting {
    opacity: 0.62;
    pointer-events: none;
}

@media (max-height: 700px) {
    .pin-entry-content {
        padding-top: 50px;
    }

    .pin-entry-step .pin-entry-content h2 {
        margin-bottom: 15px;
        font-size: 23px;
    }

    .pin-entry-dots {
        margin-bottom: 20px;
    }

    .pin-keypad {
        grid-template-columns: repeat(3, 68px);
        gap: 13px 25px;
        width: min(100%, 286px);
        margin: 0 auto;
    }

    .pin-keypad > button {
        width: 68px;
        height: 68px;
        font-size: 28px;
    }
}

@media (min-width: 560px) {
    .security-sheet {
        margin-bottom: 16px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.06);
        border-radius: 24px;
    }

    .security-overlay.pin-keypad-open .security-sheet {
        margin-bottom: 0;
        border-radius: 0;
    }
}



/* Account header + account modal */
.account-header-button {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
    flex: 1 1 auto;
    min-height: 56px;
    padding: 4px 2px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-align: left;
    box-shadow: none;
}

.account-header-avatar {
    position: relative;
    display: grid;
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-bright), var(--green));
    color: #07120b;
    font-size: 20px;
    font-weight: 900;
}

.account-header-copy {
    display: flex;
    align-items: center;
    gap: 7px;
    min-width: 0;
    flex: 0 1 auto;
}

.account-header-username {
    min-width: 0;
    overflow: hidden;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 17px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-header-arrow {
    flex: 0 0 auto;
    color: var(--green-bright);
    font-family: Arial, sans-serif;
    font-size: 30px;
    font-weight: 500;
    line-height: 0.75;
    transform: translateY(-1px);
}

.friend-gift-button {
    display: inline-flex;
    min-width: 103px;
    height: 36px;
    padding: 0 14px;
    border: none;
    border-radius: 999px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    flex: 0 0 auto;
    background: linear-gradient(135deg, #20b96b 0%, #53df83 100%);
    box-shadow:
        0 8px 24px rgba(41, 210, 119, 0.20),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);
    color: #ffffff;
    cursor: pointer;
    font-family: Inter, "SF Pro Text", system-ui, sans-serif;
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
    transition:
        transform 150ms ease,
        filter 150ms ease,
        box-shadow 150ms ease;
}

.friend-gift-button:hover {
    filter: brightness(1.06);
    box-shadow:
        0 10px 28px rgba(41, 210, 119, 0.26),
        inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.friend-gift-button:active {
    transform: scale(0.97);
}

.friend-gift-button:focus-visible {
    outline: 2px solid rgba(95, 235, 151, 0.7);
    outline-offset: 2px;
}

.friend-gift-button:disabled {
    opacity: 0.55;
    cursor: not-allowed;
    transform: none;
}

.friend-gift-icon {
    width: 19px;
    height: 19px;
    min-width: 19px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.account-overlay {
    position: fixed;
    z-index: 92;
    inset: 0;
    background: rgba(4, 9, 15, 0.70);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    backdrop-filter: blur(7px);
}

.account-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.account-sheet {
    display: flex;
    width: min(100%, 560px);
    min-height: 100vh;
    min-height: 100dvh;
    margin: 0 auto;
    padding:
        max(18px, var(--app-safe-top))
        16px
        max(26px, calc(24px + var(--app-safe-bottom)));
    background:
        radial-gradient(circle at 80% -10%, rgba(102, 214, 106, 0.10), transparent 30%),
        var(--bg);
    color: var(--text);
    flex-direction: column;
    transform: translateX(-16px);
    transition: transform 0.24s ease;
}

.account-overlay.visible .account-sheet {
    transform: translateX(0);
}

.account-sheet,
.account-sheet button {
    font-family: Roboto, "Segoe UI", sans-serif;
}

.account-sheet-top {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.account-sheet-top h2 {
    margin: 0;
    text-align: center;
    font-size: 18px;
    font-weight: 850;
}

.account-back-button {
    width: 42px;
    height: 42px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.03);
    color: var(--text);
    cursor: pointer;
    font-size: 18px;
}

.account-sheet-spacer {
    width: 42px;
    height: 42px;
}

.account-sheet-content {
    display: flex;
    min-height: 0;
    padding-bottom: 16px;
    flex: 1;
    flex-direction: column;
}

.account-group-label {
    width: 100%;
    margin: 20px 4px 10px;
    margin-right: auto;
    margin-left: auto;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.account-card {
    width: 100%;
    margin-right: auto;
    margin-left: auto;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(32, 41, 59, 0.88), rgba(26, 36, 51, 0.88));
    box-shadow:
        0 12px 30px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.025);
}

.account-static-card {
    display: flex;
    min-height: 52px;
    padding: 7px 16px;
    align-items: center;
}

.account-card-main {
    font-size: 16px;
    font-weight: 800;
}

.account-row-card {
    display: flex;
    align-items: center;
    gap: 11px;
    min-height: 52px;
    padding: 7px 14px;
}

.account-row-card.action {
    margin-top: 14px;
    color: var(--text);
    cursor: pointer;
    text-align: left;
}

.account-row-icon {
    display: grid;
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    place-items: center;
    border-radius: 12px;
    background: rgba(102, 214, 106, 0.12);
    color: var(--green-bright);
    font-size: 17px;
    font-weight: 900;
}

.account-row-icon.exit {
    background: rgba(255, 255, 255, 0.08);
    color: #cfd7de;
}

.account-row-copy {
    min-width: 0;
    flex: 1;
}

.account-row-title {
    color: var(--muted);
    font-size: 13px;
}

.account-row-value {
    margin-top: 3px;
    font-size: 16px;
    font-weight: 800;
}

.account-row-action {
    font-size: 17px;
    font-weight: 800;
}

.account-row-arrow {
    color: var(--muted);
    font-size: 22px;
    line-height: 1;
}

.account-delete-button {
    width: 100%;
    margin-top: auto;
    padding-top: 30px;
    border: 0;
    background: transparent;
    color: #ff5f5f;
    cursor: pointer;
    font-size: 15px;
    font-weight: 800;
}

@media (max-width: 420px) {
    .account-header-button {
        min-height: 52px;
        padding: 4px 0;
    }

    .account-header-avatar {
        width: 40px;
        height: 40px;
        flex-basis: 40px;
        font-size: 18px;
    }

    .account-header-username {
        font-size: 15px;
    }

    .account-header-arrow {
        font-size: 27px;
    }

}

@media (max-width: 350px) {
    .friend-gift-button {
        min-width: 95px;
        height: 34px;
        padding: 0 12px;
        gap: 6px;
        font-size: 13px;
    }

    .friend-gift-icon {
        width: 17px;
        height: 17px;
        min-width: 17px;
    }
}


/* Verified Telegram phone and real Telegram avatar */
.account-header-avatar {
    overflow: hidden;
}

.account-header-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.account-header-avatar.has-photo {
    background: #17222d;
}

.phone-account-row.verified {
    cursor: default;
    background:
        radial-gradient(circle at 0 50%, rgba(102, 214, 106, 0.07), transparent 42%),
        linear-gradient(145deg, rgba(32, 45, 57, 0.88), rgba(24, 36, 47, 0.88));
}

.phone-account-row.verified .account-row-icon {
    background: rgba(102, 214, 106, 0.16);
    color: var(--green-bright);
}

.phone-account-row.verified .account-row-arrow {
    color: var(--green-bright);
    font-size: 12px;
    font-weight: 850;
}


/* Profile screen and profile settings */
body.profile-view-open .topbar {
    display: none;
}

#profileView {
    padding-bottom: 14px;
}

#profileView h1,
#profileView button,
#profileView strong,
#profileView small,
#profileView .profile-display-phone,
#profileView .profile-menu-value {
    font-family: Roboto, "Segoe UI", sans-serif;
    font-weight: 500;
}

#profileView #profileDisplayUsername {
    font-family: Roboto, "Segoe UI", sans-serif;
    font-weight: 700;
}

.profile-toolbar {
    display: flex;
    justify-content: flex-end;
    min-height: 44px;
}

.profile-settings-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: linear-gradient(145deg, #202f3c, #18242f);
    color: var(--text);
    cursor: pointer;
    font-size: 20px;
    line-height: 1;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.18);
}

.profile-identity {
    display: flex;
    align-items: center;
    flex-direction: column;
    padding: 8px 12px 24px;
    text-align: center;
}

.profile-main-avatar {
    position: relative;
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    overflow: hidden;
    border: 2px solid rgba(102, 214, 106, 0.26);
    border-radius: 50%;
    background: linear-gradient(135deg, var(--green-bright), #2c8f46);
    color: #07120b;
    font-size: 31px;
    font-weight: 900;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.24);
}

.profile-main-avatar img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.profile-main-avatar.has-photo {
    background: #17222d;
}

.profile-main-avatar:not(.has-photo) {
    border-color: transparent;
}

.profile-identity h1 {
    max-width: 100%;
    margin: 13px 0 0;
    overflow: hidden;
    font-size: 21px;
    font-weight: 900;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-display-phone {
    margin-top: 4px;
    color: var(--muted);
    font-size: 14px;
}

.profile-summary-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-bottom: 16px;
}

.profile-summary-card {
    display: flex;
    align-items: flex-start;
    min-height: 128px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        radial-gradient(circle at 90% 0%, rgba(102, 214, 106, 0.12), transparent 43%),
        linear-gradient(150deg, var(--panel-soft), var(--panel));
    color: var(--text);
    cursor: pointer;
    flex-direction: column;
    text-align: left;
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.14);
}

.profile-summary-icon {
    display: grid;
    width: 36px;
    height: 36px;
    margin-bottom: 13px;
    place-items: center;
    border-radius: 12px;
    background: rgba(102, 214, 106, 0.13);
    color: var(--green-bright);
    font-size: 19px;
    font-weight: 900;
}

.profile-summary-icon:not(.verified) svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.profile-summary-icon.verified {
    width: 44px;
    height: 44px;
    margin: -4px 0 9px;
    border-radius: 0;
    background: transparent;
}

.profile-verification-badge {
    display: block;
    width: 44px;
    height: 44px;
    filter: drop-shadow(0 5px 8px rgba(111, 210, 74, 0.22));
}

.profile-summary-card strong {
    font-size: 15px;
    line-height: 1.25;
}

.profile-summary-card small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 13px;
}

.profile-menu-group {
    overflow: hidden;
    margin-top: 14px;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: linear-gradient(145deg, #1c2936, #17232e);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.13);
}

.profile-menu-row {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 52px;
    align-items: center;
    gap: 12px;
    padding: 8px 13px;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-align: left;
}

.profile-menu-row + .profile-menu-row::before {
    position: absolute;
    top: 0;
    right: 14px;
    left: 58px;
    height: 1px;
    background: var(--line);
    content: "";
}

.profile-menu-icon {
    display: grid;
    width: 33px;
    height: 33px;
    flex: 0 0 33px;
    place-items: center;
    border-radius: 11px;
    background: rgba(102, 214, 106, 0.12);
    color: var(--green-bright);
    font-size: 15px;
    font-weight: 900;
}

.profile-menu-icon svg,
.profile-menu-external svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    vector-effect: non-scaling-stroke;
}

.settings-menu-icon {
    background: linear-gradient(145deg, rgba(84, 207, 104, 0.17), rgba(54, 173, 111, 0.1));
    color: #5ed877;
    box-shadow: inset 0 0 0 1px rgba(94, 216, 119, 0.025);
}

.settings-menu-icon svg {
    width: 21px;
    height: 21px;
    stroke-width: 1.75;
}

.profile-menu-icon.exit {
    background: rgba(255, 255, 255, 0.07);
    color: #d7dee5;
}

.profile-menu-copy {
    min-width: 0;
    flex: 1;
}

.profile-menu-copy strong {
    display: block;
    font-size: 15px;
    font-weight: 820;
}

.profile-menu-copy small {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-menu-value {
    max-width: 38%;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.profile-menu-arrow {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 21px;
    line-height: 1;
}

.profile-menu-external {
    display: grid;
    width: 24px;
    height: 24px;
    flex: 0 0 24px;
    place-items: center;
    color: var(--muted);
}

.profile-menu-external svg {
    width: 18px;
    height: 18px;
}

body.profile-subview-open .bottom-nav {
    display: none;
}

body.profile-subview-open .app-shell {
    padding-bottom: max(20px, var(--app-safe-bottom));
}

.verification-view {
    min-height: calc(100vh - max(36px, var(--app-safe-top)) - max(20px, var(--app-safe-bottom)));
    padding: 0 2px 24px;
    font-family: Roboto, "Segoe UI", sans-serif;
}

.verification-page-header {
    display: flex;
    min-height: 38px;
    align-items: center;
}

.verification-page-hero {
    display: flex;
    align-items: center;
    padding: 0 14px 38px;
    flex-direction: column;
    text-align: center;
}

.verification-page-hero h1 {
    margin: 0;
    font-size: 31px;
    font-weight: 700;
    letter-spacing: -0.035em;
}

.verification-page-hero > p {
    max-width: 330px;
    margin: 12px auto 0;
    color: var(--text);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.35;
}

.verification-page-badge {
    width: 100px;
    height: 100px;
    margin-top: 22px;
    filter: drop-shadow(0 14px 17px rgba(101, 172, 36, 0.3));
}

.verification-page-badge svg {
    display: block;
    width: 100%;
    height: 100%;
}

.verification-opportunities-card {
    padding: 17px 18px 15px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background:
        radial-gradient(circle at 50% 0%, rgba(102, 214, 106, 0.08), transparent 38%),
        linear-gradient(150deg, #1d2c39, #17232e);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
    text-align: center;
}

.verification-saved-countries {
    display: grid;
    gap: 10px;
}

.verification-saved-countries[hidden] {
    display: none;
}

.verification-saved-country-card {
    padding: 0 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, #1d2c39, #17232e);
    box-shadow: 0 16px 34px rgba(0, 0, 0, 0.16);
}

.verification-saved-country-head {
    min-height: 55px;
    display: grid;
    grid-template-columns: 31px minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
}

.verification-saved-country-head > img {
    width: 29px;
    height: 29px;
    object-fit: cover;
    border-radius: 50%;
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.09);
}

.verification-saved-country-head > strong {
    min-width: 0;
    overflow: hidden;
    font-size: 16px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.verification-country-actions {
    display: flex;
    align-items: center;
    gap: 3px;
}

.verification-country-edit,
.verification-country-delete {
    width: 35px;
    height: 35px;
    display: grid;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #899aaa;
}

.verification-country-edit svg,
.verification-country-delete svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.verification-country-edit:active {
    background: rgba(102, 214, 106, 0.1);
    color: var(--green-bright);
    transform: scale(0.94);
}

.verification-country-delete {
    color: #ff5d68;
}

.verification-country-delete:active {
    background: rgba(255, 78, 91, 0.12);
    color: #ff4352;
    transform: scale(0.94);
}

.verification-country-edit[hidden],
.verification-country-delete[hidden] {
    display: none;
}

.verification-country-edit:disabled,
.verification-country-delete:disabled {
    opacity: 0.45;
    pointer-events: none;
}

.verification-country-level {
    width: 100%;
    min-height: 70px;
    display: grid;
    padding: 10px 0;
    grid-template-columns: 39px minmax(0, 1fr) 18px;
    align-items: center;
    gap: 9px;
    border: 0;
    border-top: 1px solid var(--line);
    background: transparent;
    color: var(--text);
    text-align: left;
}

.verification-country-level-icon {
    position: relative;
    width: 39px;
    height: 39px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: conic-gradient(var(--green-bright) 0 26%, #3b4856 26% 100%);
}

.verification-country-level-icon::before {
    width: 29px;
    height: 29px;
    display: grid;
    content: "✓";
    place-items: center;
    border-radius: 50%;
    background: #42505e;
    color: #aebbc7;
    font-size: 16px;
    font-weight: 900;
}

.verification-country-level.pending .verification-country-level-icon {
    background: conic-gradient(#e5bd48 0 54%, #3b4856 54% 100%);
}

.verification-country-level.verified .verification-country-level-icon {
    background: var(--green-bright);
}

.verification-country-level.verified .verification-country-level-icon::before {
    background: #58c95f;
    color: #07120e;
}

.verification-country-level-copy {
    min-width: 0;
    display: grid;
    gap: 2px;
}

.verification-country-level-copy strong {
    font-size: 16px;
    font-weight: 700;
}

.verification-country-level-copy small {
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.verification-country-level-arrow {
    color: #8697a8;
    font-size: 25px;
    font-style: normal;
    line-height: 1;
}

.verification-country-level:active {
    opacity: 0.82;
    transform: scale(0.99);
}

.verification-feature-icons {
    position: relative;
    width: min(100%, 290px);
    height: 120px;
    margin: 0 auto 1px;
}

.verification-feature-icon {
    position: absolute;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 5px;
    place-items: center;
    border: 1px solid rgba(151, 176, 194, 0.16);
    border-radius: 12px;
    background: linear-gradient(145deg, #243644, #15232e);
    color: #b7c7d2;
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
}

.verification-feature-icon svg {
    width: 100%;
    height: 100%;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.verification-feature-icon i {
    position: absolute;
    right: -6px;
    bottom: -6px;
    display: grid;
    width: 19px;
    height: 19px;
    place-items: center;
    border: 2px solid #17232e;
    border-radius: 50%;
    background: linear-gradient(145deg, #66d66a, #40bebe);
    color: #07120e;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
}

.verification-feature-icon.card {
    top: 40px;
    left: 34px;
    transform: rotate(6deg);
}

.verification-feature-icon.document {
    top: 5px;
    left: calc(50% - 22px);
    width: 44px;
    height: 44px;
    transform: rotate(-8deg);
}

.verification-feature-icon.globe {
    top: 35px;
    right: 18px;
    transform: rotate(7deg);
}

.verification-feature-icon.cash {
    bottom: 7px;
    left: 85px;
    width: 34px;
    height: 34px;
    transform: rotate(11deg);
}

.verification-feature-icon.travel {
    right: 80px;
    bottom: 6px;
    width: 34px;
    height: 34px;
    transform: rotate(-9deg);
}

.verification-opportunities-card h2 {
    max-width: 270px;
    margin: 8px auto 0;
    font-size: 21px;
    font-weight: 700;
    line-height: 1.18;
}

.verification-opportunities-card > p {
    max-width: 315px;
    margin: 13px auto 0;
    color: var(--text);
    font-size: 13px;
    font-weight: 500;
    line-height: 1.4;
}

.verification-add-country {
    display: flex;
    width: 100%;
    min-height: 46px;
    margin-top: 10px;
    padding: 0 16px;
    align-items: center;
    gap: 10px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: linear-gradient(145deg, #1d2c39, #17232e);
    color: var(--green-bright);
    text-align: left;
}

.verification-add-country span {
    font-size: 23px;
    font-weight: 500;
    line-height: 1;
}

.verification-add-country strong {
    font-size: 15px;
    font-weight: 500;
}

.verification-add-country:active {
    border-color: rgba(102, 214, 106, 0.32);
    background: rgba(102, 214, 106, 0.1);
    transform: scale(0.985);
}

.verification-add-country[hidden],
.verification-country-hint[hidden] {
    display: none;
}

.verification-country-hint {
    margin: 8px 2px 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 500;
}

.verification-country-view,
.verification-application-view {
    min-height: calc(100vh - max(36px, var(--app-safe-top)) - max(20px, var(--app-safe-bottom)));
    padding-bottom: 18px;
    font-family: Roboto, "Segoe UI", sans-serif;
}

.verification-flow-header {
    display: grid;
    min-height: 48px;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 8px;
    margin-bottom: 17px;
}

.verification-flow-header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.02em;
    text-align: center;
}

.verification-country-search {
    min-height: 52px;
    display: grid;
    margin-bottom: 13px;
    padding: 0 16px 0 18px;
    grid-template-columns: minmax(0, 1fr) 26px;
    align-items: center;
    gap: 10px;
    border: 1px solid rgba(135, 155, 173, 0.12);
    border-radius: 16px;
    background: rgba(39, 54, 68, 0.94);
}

.verification-country-search input {
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: 500 15px/1.2 Roboto, "Segoe UI", sans-serif;
}

.verification-country-search input::placeholder {
    color: var(--muted);
    opacity: 1;
}

.verification-country-search svg {
    width: 24px;
    height: 24px;
    fill: none;
    stroke: #7f91a1;
    stroke-linecap: round;
    stroke-width: 1.8;
}

.verification-country-list {
    overflow: hidden auto;
    max-height: calc(100vh - max(36px, var(--app-safe-top)) - max(20px, var(--app-safe-bottom)) - 148px);
    padding: 3px 14px;
    border: 1px solid rgba(135, 155, 173, 0.1);
    border-radius: 20px;
    background: linear-gradient(155deg, rgba(21, 34, 45, 0.98), rgba(12, 23, 32, 0.99));
    scrollbar-width: none;
}

.verification-country-list::-webkit-scrollbar {
    display: none;
}

.verification-country-row {
    position: relative;
    width: 100%;
    min-height: 56px;
    display: grid;
    padding: 7px 0;
    grid-template-columns: 36px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
}

.verification-country-row + .verification-country-row::before {
    position: absolute;
    top: 0;
    right: 4px;
    left: 46px;
    height: 1px;
    background: rgba(135, 155, 173, 0.1);
    content: "";
}

.verification-country-flag {
    width: 34px;
    height: 34px;
    display: block;
    overflow: hidden;
    border-radius: 50%;
    background: #243542;
    object-fit: cover;
}

.verification-country-row strong {
    overflow: hidden;
    font-size: 15px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.verification-country-row > i {
    color: #8da0ae;
    font-size: 25px;
    font-style: normal;
    line-height: 1;
    text-align: right;
}

.verification-country-empty {
    margin: 0;
    padding: 34px 12px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.verification-selected-country {
    min-height: 64px;
    display: flex;
    padding: 10px 14px;
    align-items: center;
    gap: 12px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: linear-gradient(145deg, #1d2c39, #17232e);
}

.verification-selected-country > img {
    width: 40px;
    height: 40px;
    display: block;
    border-radius: 50%;
    background: #243542;
    object-fit: cover;
}

.verification-selected-country small,
.verification-selected-country strong {
    display: block;
}

.verification-selected-country small {
    margin-bottom: 3px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.verification-selected-country strong {
    font-size: 16px;
    font-weight: 700;
}

.identity-verification-form {
    display: grid;
    margin-top: 12px;
    gap: 11px;
}

.identity-verification-intro {
    margin: 0 3px 2px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
}

.sumsub-verification-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
    gap: 12px;
    padding: 14px;
    border: 1px solid rgba(102, 214, 106, 0.22);
    border-radius: 17px;
    background:
        radial-gradient(circle at 8% 18%, rgba(102, 214, 106, 0.14), transparent 44%),
        linear-gradient(145deg, #1d2c39, #17232e);
}

.sumsub-verification-shield {
    width: 44px;
    height: 44px;
    display: grid;
    place-items: center;
    border-radius: 14px;
    background: rgba(102, 214, 106, 0.13);
    color: var(--green-bright);
}

.sumsub-verification-shield svg {
    width: 26px;
    height: 26px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.sumsub-verification-card strong {
    display: block;
    margin-bottom: 4px;
    font-size: 14px;
    font-weight: 700;
}

.sumsub-verification-card p {
    margin: 0;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
}

.identity-verification-field {
    display: grid;
    gap: 7px;
    padding: 11px 14px 12px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: linear-gradient(145deg, #1d2c39, #17232e);
}

.identity-verification-field > span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
}

.identity-verification-field input {
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font: 500 15px/1.25 Roboto, "Segoe UI", sans-serif;
}

.identity-verification-field input::placeholder {
    color: #718493;
    opacity: 1;
}

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

.identity-upload-card {
    min-height: 118px;
    display: flex;
    padding: 13px 10px;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 7px;
    border: 1px dashed rgba(102, 214, 106, 0.32);
    border-radius: 16px;
    background: rgba(102, 214, 106, 0.06);
    text-align: center;
}

.identity-upload-card input {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
}

.identity-upload-card svg {
    width: 28px;
    height: 28px;
    fill: none;
    stroke: var(--green-bright);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.7;
}

.identity-upload-card strong {
    font-size: 12px;
    font-weight: 700;
}

.identity-upload-card small {
    max-width: 130px;
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.identity-upload-card.has-file {
    border-style: solid;
    background: rgba(102, 214, 106, 0.1);
}

.identity-consent-row {
    display: grid;
    margin: 1px 2px;
    grid-template-columns: 20px minmax(0, 1fr);
    align-items: start;
    gap: 9px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.4;
}

.identity-consent-row input {
    width: 18px;
    height: 18px;
    margin: 0;
    accent-color: var(--green-bright);
}

.identity-verification-submit,
.verification-pending-card button {
    min-height: 50px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--green-bright), var(--green));
    color: #07120b;
    font: 700 15px/1 Roboto, "Segoe UI", sans-serif;
}

.identity-verification-submit:disabled {
    opacity: 0.55;
}

.verification-pending-card .verification-secondary-button {
    margin-bottom: 10px;
    border: 1px solid rgba(102, 214, 106, 0.25);
    background: rgba(102, 214, 106, 0.09);
    color: var(--green-bright);
}

.verification-pending-card {
    margin-top: 40px;
    padding: 28px 20px 20px;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(145deg, #1d2c39, #17232e);
    text-align: center;
}

.verification-pending-card[hidden] {
    display: none;
}

.verification-pending-icon {
    width: 68px;
    height: 68px;
    display: grid;
    margin: 0 auto 16px;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #dff964, #69ca43);
    color: #fff;
    font-size: 36px;
    font-weight: 700;
    box-shadow: 0 12px 24px rgba(102, 214, 106, 0.2);
}

.verification-pending-card h2 {
    margin: 0;
    font-size: 22px;
    font-weight: 700;
}

.verification-pending-card p {
    margin: 10px auto 20px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.verification-pending-card button {
    width: 100%;
}

@media (max-width: 360px) {
    .verification-page-hero h1 {
        font-size: 28px;
    }

    .verification-page-hero {
        padding-right: 8px;
        padding-left: 8px;
    }
}

/* Full-page P2P sell checkout */
body.p2p-checkout-open .topbar,
body.p2p-checkout-open .bottom-nav {
    display: none;
}

body.p2p-checkout-open .app-shell {
    padding:
        max(10px, var(--app-safe-top))
        clamp(16px, 4vw, 24px)
        max(12px, var(--app-safe-bottom));
}

.p2p-checkout-view.active {
    position: relative;
    display: flex;
    width: 100%;
    min-height: calc(100dvh - max(22px, var(--app-safe-top)) - max(24px, var(--app-safe-bottom)));
    flex-direction: column;
    padding-bottom: calc(92px + var(--app-safe-bottom));
}

.p2p-checkout-header {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    min-height: 44px;
    gap: 8px;
}

.p2p-checkout-header h1 {
    margin: 0;
    overflow: hidden;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 22px;
    font-weight: 700;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.p2p-checkout-back {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(30, 46, 58, 0.72);
    color: var(--text);
    font-size: 23px;
    line-height: 1;
    cursor: pointer;
}

.p2p-quote-line {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 34px;
    margin: 4px 0 12px;
    color: var(--muted);
    font-size: 13px;
}

.p2p-quote-line strong {
    color: #ff6673;
    font-size: 14px;
}

.p2p-quote-line small {
    color: var(--muted);
    font-size: 12px;
}

.p2p-amount-card {
    padding: 17px 16px 15px;
    border: 0;
    border-radius: 22px;
    background: linear-gradient(145deg, rgba(29, 45, 57, 0.98), rgba(24, 37, 48, 0.98));
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
}

.p2p-amount-tabs {
    display: grid;
    grid-template-columns: auto auto 1fr;
    align-items: center;
    gap: 20px;
    border-bottom: 1px solid rgba(148, 170, 184, 0.09);
}

.p2p-amount-tabs > button {
    position: relative;
    min-height: 42px;
    padding: 0 0 11px;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.p2p-amount-tabs > button.active {
    color: var(--text);
}

.p2p-amount-tabs > button.active::after {
    position: absolute;
    right: 0;
    bottom: -1px;
    left: 0;
    height: 2px;
    border-radius: 2px;
    background: var(--green-bright);
    content: "";
}

.p2p-amount-tabs > span {
    display: flex;
    justify-self: end;
    align-items: center;
    gap: 4px;
    padding-bottom: 11px;
    color: var(--muted);
    font-size: 11px;
}

.p2p-amount-tabs > span b {
    min-width: 36px;
    font-weight: 700;
}

.p2p-amount-entry {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    gap: 8px;
    min-height: 76px;
    border-bottom: 1px solid rgba(148, 170, 184, 0.09);
}

.p2p-amount-entry input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: clamp(30px, 9vw, 42px);
    font-weight: 500;
}

.p2p-amount-entry input::placeholder {
    color: rgba(145, 161, 174, 0.3);
}

.p2p-amount-entry > span {
    color: var(--text);
    font-size: 16px;
    font-weight: 700;
}

.p2p-amount-entry > button {
    padding: 5px 0 5px 9px;
    border: 0;
    border-left: 1px solid rgba(148, 170, 184, 0.12);
    background: transparent;
    color: var(--green-bright);
    cursor: pointer;
    font-size: 15px;
    font-weight: 700;
}

.p2p-inline-error {
    min-height: 0;
    color: #ff858c;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.35;
}

.p2p-inline-error:not(:empty) {
    padding-top: 8px;
}

.p2p-amount-meta {
    display: grid;
    gap: 4px;
    padding-top: 7px;
}

.p2p-amount-meta p {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.p2p-amount-meta p strong {
    color: var(--muted);
    font-weight: 500;
}

.p2p-amount-meta p button {
    display: grid;
    width: 20px;
    height: 20px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--green-bright);
    border-radius: 50%;
    background: transparent;
    color: var(--green-bright);
    line-height: 1;
}

.p2p-amount-meta .p2p-receive-row {
    padding-top: 2px;
    font-size: 14px;
}

.p2p-amount-meta .p2p-receive-row strong {
    margin-left: auto;
    color: var(--text);
    font-size: 15px;
    font-weight: 700;
}

.p2p-payment-method-button {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr) 16px;
    align-items: center;
    gap: 8px;
    width: 100%;
    min-height: 66px;
    margin-top: 14px;
    padding: 11px 16px;
    border: 0;
    border-radius: 19px;
    background: linear-gradient(145deg, rgba(29, 45, 57, 0.98), rgba(24, 37, 48, 0.98));
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.p2p-method-plus {
    color: var(--green-bright);
    font-size: 27px;
    font-weight: 300;
}

.p2p-payment-method-button > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 3px;
}

.p2p-payment-method-button strong {
    overflow: hidden;
    color: var(--green-bright);
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.p2p-payment-method-button small {
    color: var(--muted);
    font-size: 11px;
}

.p2p-payment-method-button > i {
    color: var(--muted);
    font-size: 22px;
    font-style: normal;
}

.p2p-merchant-details {
    padding: 18px 2px 8px;
}

.p2p-merchant-heading {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr) auto;
    align-items: center;
    gap: 9px;
}

.p2p-merchant-heading .p2p-merchant-logo {
    width: 34px;
    height: 34px;
}

.p2p-merchant-heading .p2p-merchant-logo img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.p2p-merchant-heading > span:nth-child(2) {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.p2p-merchant-heading strong {
    font-size: 14px;
}

.p2p-merchant-heading small {
    color: var(--muted);
    font-size: 10px;
}

.p2p-merchant-rating {
    color: var(--muted);
    font-size: 12px;
}

.p2p-merchant-details h2 {
    margin: 17px 0 7px;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.p2p-merchant-details p,
.p2p-merchant-details a,
.p2p-merchant-details > small {
    display: block;
    margin: 0 0 7px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.45;
    text-decoration: none;
}

.p2p-merchant-details a {
    color: var(--green-bright);
}

.p2p-checkout-footer {
    position: fixed;
    z-index: 12;
    right: max(16px, calc((100vw - 560px) / 2 + 24px));
    bottom: max(10px, var(--app-safe-bottom));
    left: max(16px, calc((100vw - 560px) / 2 + 24px));
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(145px, 44%);
    align-items: center;
    gap: 12px;
    padding: 10px 0;
    background: linear-gradient(180deg, rgba(13, 21, 29, 0), rgba(13, 21, 29, 0.98) 25%);
}

.p2p-checkout-footer > span {
    display: grid;
    gap: 2px;
}

.p2p-checkout-footer strong {
    font-size: 16px;
}

.p2p-checkout-footer small {
    color: var(--muted);
    font-size: 10px;
}

.p2p-checkout-footer button,
.p2p-method-continue {
    min-height: 52px;
    border: 0;
    border-radius: 17px;
    background: linear-gradient(145deg, var(--green-bright), #51b354);
    color: #07120b;
    cursor: pointer;
    font-size: 15px;
    font-weight: 900;
    box-shadow: 0 14px 30px rgba(81, 179, 84, 0.18);
}

.p2p-checkout-footer button:disabled,
.p2p-method-continue:disabled {
    background: rgba(113, 132, 146, 0.25);
    color: rgba(201, 211, 218, 0.38);
    box-shadow: none;
    cursor: default;
}

.p2p-method-view.active {
    padding-bottom: calc(76px + var(--app-safe-bottom));
}

.p2p-method-content {
    margin-top: 26px;
}

.p2p-method-label {
    margin: 0 0 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
}

.p2p-checkout-method-list {
    overflow: hidden;
    border-radius: 21px;
    background: linear-gradient(145deg, rgba(29, 45, 57, 0.98), rgba(24, 37, 48, 0.98));
}

.p2p-checkout-method {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 13px;
    width: 100%;
    min-height: 74px;
    padding: 11px 16px;
    border: 0;
    border-bottom: 1px solid rgba(148, 170, 184, 0.1);
    background: transparent;
    color: var(--text);
    text-align: left;
}

.p2p-checkout-method:last-child {
    border-bottom: 0;
}

.p2p-checkout-method img {
    width: 48px;
    height: 48px;
    padding: 3px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.96);
    object-fit: contain;
}

.p2p-checkout-method strong {
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.p2p-checkout-method i {
    width: 20px;
    height: 20px;
    border: 2px solid #607687;
    border-radius: 50%;
}

.p2p-checkout-method.active i {
    border: 6px solid var(--green-bright);
    background: #fff;
}

.p2p-checkout-details-field {
    display: grid;
    gap: 12px;
    margin-top: 18px;
    padding: 17px 16px;
    border-radius: 20px;
    background: linear-gradient(145deg, rgba(29, 45, 57, 0.98), rgba(24, 37, 48, 0.98));
}

.p2p-checkout-details-field[hidden] {
    display: none;
}

.p2p-checkout-details-field > span,
.p2p-checkout-details-field > small {
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
}

.p2p-checkout-details-field input {
    width: 100%;
    min-height: 42px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 17px;
    font-weight: 700;
}

.p2p-method-continue {
    position: fixed;
    z-index: 12;
    right: max(16px, calc((100vw - 560px) / 2 + 24px));
    bottom: max(10px, var(--app-safe-bottom));
    left: max(16px, calc((100vw - 560px) / 2 + 24px));
}

.p2p-order-status-view.active {
    gap: 12px;
    padding-bottom: calc(22px + var(--app-safe-bottom));
}

.p2p-chat-merchant {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 10px;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(29, 45, 57, 0.98), rgba(23, 37, 48, 0.98));
}

.p2p-chat-merchant img,
.p2p-chat-message img {
    width: 42px;
    height: 42px;
    border-radius: 13px;
    object-fit: cover;
}

.p2p-chat-merchant span {
    display: grid;
    gap: 2px;
}

.p2p-chat-merchant strong {
    font-size: 15px;
}

.p2p-chat-merchant small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.p2p-chat-merchant i {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--green-bright);
    box-shadow: 0 0 9px rgba(91, 213, 104, 0.8);
}

.p2p-chat-order {
    padding: 14px;
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(27, 43, 55, 0.98), rgba(22, 36, 46, 0.98));
}

.p2p-chat-order > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.p2p-chat-order > div span {
    color: var(--green-bright);
    font-size: 11px;
    font-weight: 700;
}

.p2p-chat-order > div b {
    font-size: 13px;
}

.p2p-chat-order dl {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 14px;
    margin: 0;
}

.p2p-chat-order dl div {
    min-width: 0;
}

.p2p-chat-order dt {
    color: var(--muted);
    font-size: 9px;
}

.p2p-chat-order dd {
    margin: 2px 0 0;
    overflow: hidden;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.p2p-chat-thread {
    display: grid;
    align-content: start;
    gap: 10px;
    min-height: 170px;
    padding: 4px 0;
}

.p2p-chat-message {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: end;
    gap: 8px;
}

.p2p-chat-message img {
    width: 34px;
    height: 34px;
    border-radius: 11px;
}

.p2p-chat-message > div {
    justify-self: start;
    max-width: min(88%, 410px);
    padding: 10px 12px 7px;
    border-radius: 16px 16px 16px 5px;
    background: rgba(31, 49, 63, 0.98);
}

.p2p-chat-message p {
    margin: 0;
    font-size: 12px;
    line-height: 1.38;
}

.p2p-chat-message time {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 8px;
    text-align: right;
}

.p2p-chat-message-typing > div {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 48px;
    min-height: 30px;
    padding: 0 13px;
}

.p2p-chat-message-typing span {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--muted);
    animation: p2p-chat-typing 1.15s infinite ease-in-out;
}

.p2p-chat-message-typing span:nth-child(2) {
    animation-delay: 0.16s;
}

.p2p-chat-message-typing span:nth-child(3) {
    animation-delay: 0.32s;
}

@keyframes p2p-chat-typing {
    0%, 60%, 100% {
        opacity: 0.38;
        transform: translateY(0);
    }
    30% {
        opacity: 1;
        transform: translateY(-3px);
    }
}

.p2p-chat-footer {
    display: grid;
    justify-items: center;
    gap: 8px;
    margin-top: auto;
    padding-top: 6px;
}

.p2p-call-operator {
    border: 0;
    background: transparent;
    color: var(--muted);
    font-size: 11px;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.p2p-call-operator:disabled {
    opacity: 0.7;
}

.p2p-chat-done {
    width: 100%;
    min-height: 48px;
    border: 0;
    border-radius: 16px;
    background: var(--green-bright);
    color: #07130d;
    font-size: 14px;
    font-weight: 800;
    box-shadow: 0 12px 26px rgba(81, 179, 84, 0.16);
}

@media (max-width: 360px) {
    .p2p-amount-tabs {
        gap: 12px;
    }

    .p2p-amount-tabs > button {
        font-size: 12px;
    }

    .p2p-checkout-footer {
        grid-template-columns: minmax(0, 1fr) 145px;
    }
}

.about-view {
    min-height: calc(100vh - max(36px, var(--app-safe-top)) - max(20px, var(--app-safe-bottom)));
    padding-bottom: 18px;
}

.about-view-header {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    align-items: center;
    gap: 8px;
    padding: 4px 0 20px;
}

.about-view-header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
    letter-spacing: -0.02em;
    text-align: center;
}

.about-menu-group {
    margin-top: 0;
}

.about-menu-row {
    min-height: 57px;
    padding: 9px 14px;
}

.about-menu-row .profile-menu-icon {
    width: 34px;
    height: 34px;
    flex-basis: 34px;
}

.about-menu-row .profile-menu-copy strong {
    font-size: 15px;
    line-height: 1.25;
}

.about-detail-content {
    display: grid;
    gap: 12px;
}

.about-brand-card,
.about-detail-card,
.about-link-group {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: linear-gradient(145deg, #1c2936, #17232e);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.13);
}

.about-brand-card {
    display: grid;
    justify-items: center;
    padding: 24px 18px;
    text-align: center;
}

.about-brand-card img {
    width: 68px;
    height: 68px;
    border-radius: 20px;
    object-fit: cover;
}

.about-brand-card h2 {
    margin: 14px 0 0;
    font-size: 20px;
    font-weight: 900;
}

.about-brand-card p,
.about-detail-card p {
    margin: 7px 0 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
}

.about-link-row {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 64px;
    grid-template-columns: 38px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 12px;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
}

.about-link-row + .about-link-row::before {
    position: absolute;
    top: 0;
    right: 14px;
    left: 64px;
    height: 1px;
    background: var(--line);
    content: "";
}

.about-link-icon {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: rgba(102, 214, 106, 0.12);
    color: var(--green-bright);
}

.about-link-icon svg,
.about-link-external svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.about-link-copy {
    min-width: 0;
}

.about-link-copy strong,
.about-link-copy small {
    display: block;
}

.about-link-copy strong {
    font-size: 14px;
    font-weight: 850;
}

.about-link-copy small {
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.about-link-external {
    display: grid;
    place-items: center;
    color: var(--muted);
}

.about-detail-card {
    padding: 16px;
}

.about-detail-card-number {
    display: grid;
    width: 34px;
    height: 34px;
    margin-bottom: 11px;
    place-items: center;
    border-radius: 11px;
    background: rgba(102, 214, 106, 0.13);
    color: var(--green-bright);
    font-size: 14px;
    font-weight: 900;
}

.about-detail-card h2 {
    margin: 0;
    font-size: 15px;
    font-weight: 850;
    line-height: 1.35;
}

.about-information-meta {
    display: flex;
    margin-top: 16px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 12px;
}

.about-information-meta strong {
    color: var(--text);
}

.profile-logout-group {
    margin-top: 18px;
}

.profile-logout-row {
    min-height: 60px;
}

.profile-settings-overlay {
    position: fixed;
    z-index: 96;
    inset: 0;
    overflow-y: auto;
    background: rgba(4, 9, 15, 0.72);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    backdrop-filter: blur(7px);
}

.profile-settings-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.profile-settings-sheet {
    width: min(100%, 560px);
    min-height: 100vh;
    margin: 0 auto;
    padding:
        max(18px, var(--app-safe-top))
        16px
        max(26px, calc(24px + var(--app-safe-bottom)));
    background:
        radial-gradient(circle at 78% -8%, rgba(102, 214, 106, 0.12), transparent 31%),
        var(--bg);
    color: var(--text);
    transform: translateX(16px);
    transition: transform 0.24s ease;
}

.profile-settings-overlay.visible .profile-settings-sheet {
    transform: translateX(0);
}

.profile-settings-top {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.profile-settings-top h2 {
    margin: 0;
    text-align: center;
    font-size: 19px;
    font-weight: 880;
}

.settings-menu-group {
    margin-top: 10px;
}

.profile-settings-sheet .profile-menu-copy strong,
.profile-settings-sheet .profile-menu-value {
    font-family: Roboto, "Segoe UI", sans-serif;
    font-weight: 500;
}

.settings-page-overlay,
.settings-bottom-overlay {
    position: fixed;
    z-index: 98;
    inset: 0;
    background: rgba(3, 9, 14, 0.78);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    backdrop-filter: blur(7px);
}

.settings-page-overlay.visible,
.settings-bottom-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.settings-page-overlay {
    overflow-y: auto;
}

.settings-page-sheet {
    width: min(100%, 560px);
    min-height: 100vh;
    margin: 0 auto;
    padding: max(18px, var(--app-safe-top)) 16px calc(28px + var(--app-safe-bottom));
    background:
        radial-gradient(circle at 82% -8%, rgba(102, 214, 106, 0.12), transparent 31%),
        var(--bg);
    color: var(--text);
    transform: translateX(14px);
    transition: transform 220ms ease;
}

.settings-page-overlay.visible .settings-page-sheet {
    transform: translateX(0);
}

.settings-page-header {
    display: grid;
    grid-template-columns: 40px 1fr 40px;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.settings-page-header h2 {
    margin: 0;
    font-size: 19px;
    font-weight: 880;
    text-align: center;
}

.language-settings-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(145deg, #1c2936, #17232e);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
}

.language-settings-row {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 64px;
    padding: 8px 15px;
    grid-template-columns: 38px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 12px;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
}

.language-settings-row + .language-settings-row::before {
    position: absolute;
    top: 0;
    right: 15px;
    left: 65px;
    height: 1px;
    background: var(--line);
    content: "";
}

.language-settings-row img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
}

.language-settings-row span,
.language-settings-row strong,
.language-settings-row small {
    display: block;
}

.language-settings-row strong {
    font-size: 15px;
    font-weight: 850;
}

.language-settings-row small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.language-settings-row i,
.theme-choice em {
    display: grid;
    width: 20px;
    height: 20px;
    place-items: center;
    border: 2px solid #5d7181;
    border-radius: 50%;
}

.language-settings-row.selected i,
.theme-choice.selected em {
    border-color: var(--green-bright);
    background: var(--green-bright);
    box-shadow: inset 0 0 0 4px #17232e;
}

.settings-bottom-overlay {
    z-index: 104;
    display: grid;
    align-items: end;
}

.theme-settings-sheet,
.email-settings-sheet {
    width: min(100%, 560px);
    margin: 0 auto;
    padding: 8px 17px calc(20px + var(--app-safe-bottom));
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(155deg, #1c2a37, #101a23);
    box-shadow: 0 -28px 70px rgba(0, 0, 0, 0.52);
    transform: translateY(28px);
    transition: transform 190ms ease;
}

.settings-bottom-overlay.visible .theme-settings-sheet,
.settings-bottom-overlay.visible .email-settings-sheet {
    transform: translateY(0);
}

.settings-bottom-header {
    display: grid;
    grid-template-columns: 1fr 36px;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.settings-bottom-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 880;
}

.settings-bottom-header button {
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 23px;
}

.theme-choice-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.theme-choice {
    display: grid;
    min-width: 0;
    padding: 0;
    justify-items: center;
    gap: 10px;
    border: 0;
    background: transparent;
    color: var(--text);
}

.theme-choice strong {
    font-size: 13px;
    font-weight: 850;
}

.theme-preview {
    position: relative;
    display: grid;
    width: 78px;
    height: 126px;
    padding: 9px 8px;
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: 10px 30px 14px 1fr;
    gap: 5px;
    overflow: hidden;
    border: 2px solid rgba(150, 170, 185, 0.28);
    border-radius: 11px;
}

.theme-preview i,
.theme-preview b {
    display: block;
    border-radius: 4px;
}

.theme-preview i:first-child {
    grid-column: 1 / 4;
}

.theme-preview i:nth-child(2) {
    grid-column: 1 / 4;
}

.theme-preview b {
    grid-column: 1 / 4;
}

.theme-preview.light {
    background: #f5f7fa;
}

.theme-preview.light i,
.theme-preview.light b {
    background: #d7dde4;
}

.theme-preview.dark {
    background: #0d151d;
}

.theme-preview.dark i,
.theme-preview.dark b {
    background: #354555;
}

.theme-preview.system {
    background: linear-gradient(90deg, #f5f7fa 50%, #0d151d 50%);
}

.theme-preview.system i,
.theme-preview.system b {
    background: linear-gradient(90deg, #d7dde4 50%, #354555 50%);
}

.security-settings-page,
.devices-settings-page {
    padding-bottom: calc(34px + var(--app-safe-bottom));
}

.security-settings-group,
.devices-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: linear-gradient(145deg, #1c2936, #17232e);
}

.security-setting-row,
.security-account-row {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 56px;
    padding: 8px 13px;
    align-items: center;
    gap: 11px;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
}

.security-setting-row {
    grid-template-columns: 34px minmax(0, 1fr) auto;
}

.security-account-row {
    grid-template-columns: 34px minmax(0, 1fr) 24px;
}

.security-setting-row + .security-setting-row::before,
.security-account-row + .security-account-row::before {
    position: absolute;
    top: 0;
    right: 14px;
    left: 58px;
    height: 1px;
    background: var(--line);
    content: "";
}

.security-setting-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    border-radius: 11px;
    background: rgba(102, 214, 106, 0.12);
    color: var(--green-bright);
}

.security-setting-icon svg,
.security-row-action {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.security-setting-row strong {
    font-size: 14px;
    font-weight: 830;
}

.settings-switch {
    position: relative;
    width: 45px;
    height: 26px;
    border-radius: 999px;
    background: #43515e;
    transition: background 160ms ease;
}

.settings-switch::after {
    position: absolute;
    top: 3px;
    left: 3px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #f5f8fa;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.28);
    content: "";
    transition: transform 160ms ease;
}

.security-setting-row[aria-pressed="true"] .settings-switch {
    background: var(--green);
}

.security-setting-row[aria-pressed="true"] .settings-switch::after {
    transform: translateX(19px);
}

.security-settings-hint,
.devices-expiry-note {
    margin: 8px 7px 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.settings-section-title {
    margin: 24px 8px 9px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.security-account-row > span:nth-child(2) {
    min-width: 0;
}

.security-account-row small,
.security-account-row strong {
    display: block;
}

.security-account-row small {
    color: var(--muted);
    font-size: 12px;
}

.security-account-row strong {
    margin-top: 2px;
    overflow: hidden;
    font-size: 14px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.security-row-action {
    color: var(--muted);
}

.security-email-status {
    display: block;
    margin-top: 3px;
    color: #ffb35a;
    font-size: 11px;
    font-style: normal;
    font-weight: 800;
}

.security-email-status.verified {
    color: var(--green-bright);
}

.email-settings-sheet p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

#emailSettingsForm,
#emailCodeForm {
    display: grid;
    gap: 12px;
}

#emailSettingsInput,
#emailCodeInput {
    width: 100%;
    height: 54px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 15px;
    outline: 0;
    background: #12202b;
    color: var(--text);
    -webkit-user-select: text !important;
    user-select: text !important;
    -webkit-touch-callout: default !important;
    touch-action: auto;
}

#emailSettingsInput:focus,
#emailCodeInput:focus {
    border-color: rgba(102, 214, 106, 0.5);
    box-shadow: 0 0 0 3px rgba(102, 214, 106, 0.09);
}

#emailCodeInput {
    text-align: center;
    font-size: 26px;
    font-weight: 900;
    letter-spacing: 0.28em;
}

.email-verification-mark {
    display: grid;
    width: 58px;
    height: 58px;
    margin: 2px auto 18px;
    place-items: center;
    border-radius: 19px;
    background: linear-gradient(145deg, rgba(76, 220, 102, 0.24), rgba(42, 150, 105, 0.12));
    box-shadow: 0 12px 34px rgba(42, 220, 112, 0.13);
    color: var(--green-bright);
    font-size: 27px;
    font-weight: 900;
}

.email-verification-secondary,
.email-verification-link {
    width: 100%;
    border: 0;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    font-weight: 800;
}

.email-verification-secondary {
    margin-top: 12px;
    padding: 12px;
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.055);
}

.email-verification-secondary:disabled {
    color: var(--muted);
    opacity: 0.75;
}

.email-verification-link {
    padding: 10px;
    color: var(--muted);
}

#emailSettingsOverlay.mandatory {
    z-index: 130;
}

#emailSettingsOverlay.mandatory #closeEmailSettings {
    visibility: hidden;
    pointer-events: none;
}

.device-card {
    position: relative;
    display: grid;
    min-height: 68px;
    padding: 11px 13px;
    grid-template-columns: 36px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
}

.device-card + .device-card::before {
    position: absolute;
    top: 0;
    right: 13px;
    left: 60px;
    height: 1px;
    background: var(--line);
    content: "";
}

.device-card-icon {
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    border-radius: 11px;
    background: rgba(102, 214, 106, 0.12);
    color: var(--green-bright);
}

.device-card-icon svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.device-card-copy {
    min-width: 0;
}

.device-card-copy strong,
.device-card-copy small {
    display: block;
}

.device-card-copy strong {
    overflow: hidden;
    font-size: 14px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.device-card-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.3;
}

.device-online {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(102, 214, 106, 0.13);
    color: var(--green-bright);
    font-size: 10px;
    font-weight: 850;
}

.device-revoke-button {
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 11px;
    background: rgba(255, 90, 90, 0.09);
    color: var(--danger);
}

.device-revoke-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.revoke-other-devices {
    width: 100%;
    min-height: 48px;
    margin-top: 10px;
    border: 1px solid rgba(255, 107, 107, 0.18);
    border-radius: 15px;
    background: rgba(255, 107, 107, 0.08);
    color: var(--danger);
    font-size: 13px;
    font-weight: 830;
}

.devices-expiry-note {
    margin-top: 22px;
    padding: 13px 14px;
    border: 1px solid rgba(102, 214, 106, 0.13);
    border-radius: 15px;
    background: rgba(102, 214, 106, 0.06);
}

.profile-settings-button:active,
.profile-summary-card:active,
.profile-menu-row:active {
    transform: scale(0.985);
}

@media (max-width: 380px) {
    .profile-main-avatar {
        width: 74px;
        height: 74px;
        font-size: 28px;
    }

    .profile-summary-card {
        min-height: 120px;
        padding: 14px;
    }

    .profile-menu-row {
        padding-right: 12px;
        padding-left: 12px;
    }

    .profile-menu-value {
        max-width: 32%;
        font-size: 12px;
    }
}


/* Wallet balance on the home screen */
.wallet-product-tabs {
    display: flex;
    max-width: 100%;
    align-items: stretch;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
}

.wallet-product-tabs::-webkit-scrollbar {
    display: none;
}

.wallet-name-chip {
    display: inline-flex;
    flex: 0 0 auto;
    max-width: 68%;
    min-height: 36px;
    align-items: center;
    gap: 7px;
    padding: 5px 10px 5px 6px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(145deg, #202f3c, #192631);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.14);
    color: var(--text);
}

.wallet-product-tab {
    display: inline-flex;
    min-height: 36px;
    flex: 0 0 auto;
    align-items: center;
    gap: 7px;
    padding: 5px 12px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: linear-gradient(145deg, #202b36, #1a242e);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.12);
    color: var(--muted);
    cursor: pointer;
}

.wallet-product-tab.is-active {
    border-color: rgba(116, 220, 126, 0.24);
    background: linear-gradient(145deg, #253744, #1c2b36);
    color: var(--text);
    cursor: default;
}

.wallet-product-switch {
    cursor: pointer;
}

.wallet-product-switch:active {
    transform: scale(0.98);
}

.wallet-name-chip:not(.is-active) {
    background: linear-gradient(145deg, #202b36, #1a242e);
    color: var(--muted);
}

.wallet-product-tab:active {
    transform: scale(0.98);
}

.wallet-product-tab strong {
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 500;
    white-space: nowrap;
}

.wallet-product-card-icon {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    color: #8ea0ad;
}

.wallet-product-exch-icon {
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    overflow: hidden;
    border-radius: 7px;
    background: #071018;
}

.wallet-product-exch-icon img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: scale(1.42);
}

.wallet-product-tab.is-loading {
    opacity: 0.68;
    pointer-events: none;
}

.wallet-product-card-icon svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.wallet-name-mark {
    display: grid;
    width: 25px;
    height: 25px;
    place-items: center;
    border-radius: 8px;
    border: 0;
    background: transparent;
    box-shadow: none;
    color: #07120b;
    font-size: 15px;
    font-weight: 950;
    overflow: hidden;
}

.wallet-name-mark img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.wallet-name-chip strong {
    overflow: hidden;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wallet-balance-card {
    margin-top: 12px;
    padding: 12px 14px 11px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background:
        radial-gradient(circle at 95% 0%, rgba(102, 214, 106, 0.15), transparent 37%),
        linear-gradient(150deg, #1d2d39, #17232e);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
}

.wallet-balance-heading {
    display: flex;
    min-height: 22px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 500;
}

.balance-visibility-button {
    display: grid;
    width: 26px;
    height: 26px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 17px;
    line-height: 1;
    position: relative;
}

.balance-eye-icon {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.balance-visibility-button.balance-hidden::after {
    position: absolute;
    width: 22px;
    height: 2px;
    border-radius: 999px;
    background: currentColor;
    content: "";
    transform: rotate(-45deg);
}

.wallet-balance-value {
    display: flex;
    width: 100%;
    min-height: 34px;
    align-items: baseline;
    gap: 7px;
    margin-top: 3px;
    color: var(--text);
    text-align: left;
}

.wallet-balance-value strong {
    min-width: 1ch;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 25px;
    font-weight: 700;
    letter-spacing: -0.025em;
}

.wallet-balance-currency-button {
    display: inline-flex;
    align-items: baseline;
    gap: 5px;
    margin: 0;
    padding: 3px 4px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
}

#walletBalanceCurrency {
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.wallet-balance-arrow {
    color: var(--green-bright);
    font-size: 17px;
    font-weight: 900;
    line-height: 0.75;
    transform: translateY(-1px);
}

.wallet-balance-currency-button:active {
    background: rgba(102, 214, 106, 0.08);
    transform: scale(0.97);
}

.wallet-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    margin: 14px 0 24px;
}

#homeView > .wallet-actions {
    margin: 0 0 var(--wallet-section-gap);
}

#homeView > .wallet-actions .wallet-action-button small {
    min-height: 0;
}

.wallet-action-button {
    display: flex;
    min-width: 0;
    align-items: center;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    flex-direction: column;
    text-align: center;
}

.wallet-action-icon {
    display: grid;
    width: 100%;
    height: 52px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: linear-gradient(145deg, #1c2a36, #16222d);
    color: var(--green-bright);
    font-size: 25px;
    font-weight: 500;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.13);
}

.wallet-action-icon.withdraw {
    font-size: 27px;
    font-weight: 600;
}

.wallet-action-p2p .nav-icon {
    width: 27px;
    height: 27px;
    margin: 0;
}

.wallet-action-exchange {
    overflow: hidden;
}

.wallet-action-exchange img {
    width: 31px;
    height: 31px;
    border-radius: 9px;
    object-fit: cover;
    transform: scale(1.28);
}

.wallet-action-button small {
    display: -webkit-box;
    width: 100%;
    min-height: 32px;
    margin-top: 7px;
    overflow: hidden;
    font-size: 11px;
    font-weight: 760;
    line-height: 1.2;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.wallet-action-button:active .wallet-action-icon,
.balance-visibility-button:active {
    transform: scale(0.96);
}

#homeView .wallet-name-chip,
#homeView .wallet-product-tab,
#homeView .wallet-balance-card,
#homeView .wallet-action-icon {
    border-color: transparent;
}

/* iOS-style liquid glass for the Wallet product switcher. */
.wallet-product-tabs > .wallet-name-chip,
.wallet-product-tabs > .wallet-product-tab {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border: 1px solid rgba(220, 244, 246, 0.11);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.105), rgba(255, 255, 255, 0.035) 48%, rgba(116, 221, 184, 0.055)),
        rgba(22, 39, 49, 0.42);
    box-shadow:
        0 9px 24px rgba(0, 0, 0, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.16),
        inset 0 -1px 0 rgba(111, 214, 177, 0.045);
    -webkit-backdrop-filter: blur(18px) saturate(155%);
    backdrop-filter: blur(18px) saturate(155%);
    transition:
        transform 150ms ease,
        border-color 180ms ease,
        background 180ms ease,
        box-shadow 180ms ease;
}

.wallet-product-tabs > .wallet-name-chip::before,
.wallet-product-tabs > .wallet-product-tab::before {
    position: absolute;
    z-index: -1;
    top: 0;
    right: 9px;
    left: 9px;
    height: 42%;
    border-radius: 999px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.11), transparent);
    content: "";
    pointer-events: none;
}

.wallet-product-tabs > .wallet-name-chip.is-active,
.wallet-product-tabs > .wallet-product-tab.is-active {
    border-color: rgba(156, 238, 205, 0.16);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.14), rgba(118, 221, 184, 0.055) 56%, rgba(255, 255, 255, 0.035)),
        rgba(24, 47, 57, 0.48);
    box-shadow:
        0 10px 27px rgba(0, 0, 0, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.21),
        0 0 20px rgba(69, 207, 145, 0.045);
}

.wallet-product-tabs > .wallet-product-tab:active {
    transform: scale(0.965);
    background:
        linear-gradient(135deg, rgba(255, 255, 255, 0.15), rgba(88, 197, 157, 0.075)),
        rgba(17, 36, 45, 0.56);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .wallet-product-tabs > .wallet-name-chip,
    .wallet-product-tabs > .wallet-product-tab {
        background: linear-gradient(145deg, rgba(38, 57, 68, 0.96), rgba(21, 36, 45, 0.96));
    }
}

.home-banner-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 3.74 / 1;
    margin: -10px 0 16px;
    overflow: hidden;
    border: 0;
    border-radius: 16px;
    background: #071520;
    box-shadow: 0 12px 26px rgba(0, 0, 0, 0.16);
    touch-action: pan-y;
    user-select: none;
}

.home-banner-track {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.34s cubic-bezier(0.22, 0.8, 0.26, 1);
    will-change: transform;
}

.home-banner-track.without-transition {
    transition: none;
}

.home-banner-slide {
    position: relative;
    display: block;
    min-width: 100%;
    height: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: #071520;
    color: #fff;
    cursor: pointer;
    text-align: left;
}

.home-banner-slide > img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    pointer-events: none;
}

.home-banner-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(90deg, rgba(3, 12, 21, 0.98) 0%, rgba(3, 12, 21, 0.82) 42%, rgba(3, 12, 21, 0.06) 78%),
        linear-gradient(0deg, rgba(3, 12, 21, 0.42), transparent 54%);
}

.home-banner-content {
    position: absolute;
    z-index: 1;
    inset: 11px auto 16px 14px;
    display: flex;
    width: 58%;
    min-width: 0;
    justify-content: center;
    flex-direction: column;
}

.home-banner-content strong {
    display: -webkit-box;
    overflow: hidden;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: clamp(13px, 3.8vw, 16px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -0.02em;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.home-banner-content small {
    display: block;
    margin-top: 3px;
    overflow: hidden;
    color: #b2c3cf;
    font-size: clamp(9px, 2.7vw, 11px);
    font-weight: 500;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-banner-cta {
    align-self: flex-start;
    max-width: 100%;
    margin-top: 7px;
    padding: 5px 10px;
    overflow: hidden;
    border: 1px solid rgba(104, 223, 124, 0.35);
    border-radius: 999px;
    background: rgba(72, 192, 95, 0.18);
    color: #8be69b;
    font-size: 9px;
    font-weight: 700;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.home-banner-indicators {
    position: absolute;
    z-index: 3;
    bottom: 7px;
    left: 50%;
    display: flex;
    align-items: center;
    gap: 5px;
    transform: translateX(-50%);
}

.home-banner-indicator {
    position: relative;
    width: 7px;
    height: 5px;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 999px;
    background: rgba(220, 233, 240, 0.34);
    transition: width 0.2s ease, background 0.2s ease;
}

.home-banner-indicator.active {
    width: 25px;
    background: rgba(220, 233, 240, 0.28);
}

.home-banner-indicator i {
    position: absolute;
    inset: 0;
    display: block;
    border-radius: inherit;
    background: #dfe9ef;
    transform: scaleX(0);
    transform-origin: left center;
}

.home-banner-indicator i.running {
    animation: home-banner-progress var(--banner-duration, 6000ms) linear forwards;
}

@keyframes home-banner-progress {
    to {
        transform: scaleX(1);
    }
}

/* Services tab */
.services-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.service-card {
    display: flex;
    min-height: 118px;
    min-width: 0;
    align-items: flex-start;
    gap: 12px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, #1d2b38, #17232e);
    color: var(--text);
    cursor: pointer;
    flex-direction: column;
    text-align: left;
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.service-card[hidden] {
    display: none !important;
}

.service-card-icon {
    display: grid;
    width: 39px;
    height: 39px;
    place-items: center;
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(102, 214, 106, 0.24), rgba(81, 179, 84, 0.12));
    color: var(--green-bright);
    font-size: 23px;
    line-height: 1;
}

.service-card-qr {
    font-size: 20px;
}

.service-card-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.service-card-copy strong {
    font-size: 15px;
    font-weight: 820;
}

.service-card-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.25;
}

.service-card:active {
    transform: scale(0.98);
}

.service-card-wide {
    position: relative;
    grid-column: 1 / -1;
    min-height: 92px;
    flex-direction: row;
    align-items: center;
}

.service-card-bank svg {
    width: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.service-coming-badge {
    margin-left: auto;
    padding: 6px 9px;
    border: 1px solid rgba(103, 220, 111, 0.22);
    border-radius: 999px;
    background: rgba(91, 199, 98, 0.1);
    color: var(--green-bright);
    font-size: 11px;
    font-weight: 700;
    white-space: nowrap;
}

/* P2P marketplace */
.p2p-view {
    padding-bottom: 8px;
}

.p2p-page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 15px;
}

.p2p-page-header h1 {
    margin: 0;
    font-size: 28px;
    line-height: 1;
}

.p2p-eyebrow {
    display: block;
    margin-bottom: 6px;
    color: var(--green-bright);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.p2p-verified-pill {
    display: inline-flex;
    max-width: 190px;
    align-items: center;
    gap: 7px;
    padding: 8px 10px;
    border: 1px solid rgba(102, 214, 106, 0.22);
    border-radius: 999px;
    background: rgba(81, 179, 84, 0.1);
    color: #b7c6d2;
    font-size: 11px;
    line-height: 1.15;
}

.p2p-verified-pill i {
    display: grid;
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    place-items: center;
    border-radius: 50%;
    background: var(--green-bright);
    color: #08140c;
    font-style: normal;
    font-weight: 900;
}

.p2p-side-switch {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 4px;
    padding: 4px;
    border-radius: 15px;
    background: #121d27;
}

.p2p-side-switch button {
    min-height: 42px;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 700;
}

.p2p-side-switch button.active {
    background: linear-gradient(145deg, #263746, #21313e);
    color: var(--text);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.18);
}

.p2p-filters {
    display: grid;
    grid-template-columns: 112px minmax(0, 1fr);
    gap: 9px;
    margin-top: 12px;
}

.p2p-asset-filter,
.p2p-amount-filter {
    min-width: 0;
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
}

.p2p-asset-filter {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 0 12px;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-weight: 700;
}

.usdt-token-mark {
    display: grid;
    width: 28px;
    height: 28px;
    place-items: center;
    border-radius: 50%;
    background: #51bfa3;
    color: #fff;
    font-size: 18px;
    font-weight: 800;
}

.p2p-amount-filter {
    position: relative;
    display: block;
    padding: 7px 12px 6px;
}

.p2p-amount-filter > span {
    display: block;
    color: var(--muted);
    font-size: 10px;
    line-height: 1;
}

.p2p-amount-filter input {
    min-height: 29px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 500;
}

.p2p-currency-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-top: 10px;
}

.p2p-currency-tabs button {
    display: flex;
    min-width: 0;
    min-height: 41px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 8px;
    border: 1px solid var(--line);
    border-radius: 13px;
    background: #14202b;
    color: var(--muted);
    cursor: pointer;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 700;
}

.p2p-currency-tabs button.active {
    border-color: rgba(102, 214, 106, 0.46);
    background: rgba(81, 179, 84, 0.14);
    color: var(--text);
}

.p2p-currency-tabs img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
}

.p2p-list-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 17px 2px 9px;
    color: var(--text);
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.p2p-list-heading small {
    display: grid;
    min-width: 23px;
    height: 23px;
    place-items: center;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 11px;
}

.p2p-offer-list {
    display: grid;
    gap: 10px;
}

.p2p-offer-card {
    overflow: hidden;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, #1c2a36, #16232e);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
}

.p2p-offer-merchant {
    display: flex;
    align-items: center;
    gap: 10px;
}

.p2p-merchant-logo {
    display: grid;
    width: 37px;
    height: 37px;
    flex: 0 0 37px;
    place-items: center;
    border-radius: 12px;
    background: linear-gradient(145deg, #62d66d, #4fcbb3);
    color: #0a1915;
    font-size: 21px;
    font-weight: 900;
}

.p2p-merchant-name {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 3px;
}

.p2p-merchant-name strong {
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 700;
}

.p2p-merchant-name small {
    overflow: hidden;
    color: var(--muted);
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.p2p-merchant-name i {
    display: inline-grid;
    width: 14px;
    height: 14px;
    place-items: center;
    border-radius: 50%;
    background: var(--green-bright);
    color: #09140c;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
}

.p2p-offer-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: end;
    gap: 10px;
    margin-top: 14px;
}

.p2p-offer-price {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.p2p-offer-price small,
.p2p-offer-price span {
    color: var(--muted);
    font-size: 10px;
}

.p2p-offer-price strong {
    margin: 2px 0 1px;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.1;
}

.p2p-offer-action {
    min-width: 122px;
    min-height: 42px;
    padding: 0 14px;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--green-bright), var(--green));
    color: #07120b;
    cursor: pointer;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 700;
    box-shadow: 0 8px 18px rgba(81, 179, 84, 0.2);
}

.p2p-offer-action:active {
    transform: scale(0.98);
}

.p2p-offer-details {
    display: grid;
    gap: 7px;
    margin-top: 14px;
    padding: 11px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.p2p-offer-details div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 11px;
}

.p2p-offer-details span {
    color: var(--muted);
}

.p2p-offer-details strong {
    overflow: hidden;
    font-weight: 600;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.p2p-offer-method {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 11px;
}

.p2p-offer-method img {
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    border-radius: 50%;
    object-fit: cover;
}

.p2p-offer-method span {
    display: flex;
    min-width: 0;
    flex-direction: column;
    gap: 2px;
}

.p2p-offer-method small {
    color: var(--muted);
    font-size: 10px;
}

.p2p-offer-method strong {
    overflow: hidden;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.p2p-empty {
    display: grid;
    min-height: 190px;
    place-items: center;
    align-content: center;
    gap: 10px;
    padding: 24px;
    border: 1px dashed rgba(145, 162, 178, 0.2);
    border-radius: 18px;
    color: var(--muted);
    text-align: center;
}

.p2p-empty > span {
    display: grid;
    width: 48px;
    height: 48px;
    place-items: center;
    border-radius: 16px;
    background: rgba(81, 179, 84, 0.12);
    color: var(--green-bright);
    font-size: 26px;
}

.p2p-empty strong {
    max-width: 290px;
    color: var(--text);
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.p2p-empty p {
    max-width: 290px;
    margin: 0;
    font-size: 11px;
    line-height: 1.45;
}

@media (max-width: 380px) {
    .p2p-verified-pill span {
        display: none;
    }

    .p2p-verified-pill {
        padding: 7px;
    }

    .p2p-offer-price strong {
        font-size: 21px;
    }

    .p2p-offer-action {
        min-width: 112px;
        padding-inline: 10px;
    }
}

/* Compact exchange-style P2P marketplace */
.p2p-view {
    padding: 8px 14px 18px;
}

body.p2p-view-open .topbar {
    display: none;
}

body.p2p-view-open .app-shell {
    padding:
        max(8px, var(--app-safe-top))
        8px
        calc(94px + var(--app-safe-bottom));
}

body.p2p-view-open .p2p-view {
    width: 100%;
    padding: 0 2px 18px;
}

.p2p-page-header {
    display: grid;
    grid-template-columns: 42px 1fr auto;
    align-items: center;
    margin: 0 0 8px;
}

.p2p-page-header h1 {
    margin: 0;
    font-size: 21px;
    line-height: 1.2;
    text-align: center;
}

.p2p-back-button,
.p2p-header-currency {
    border: 1px solid var(--line);
    background: rgba(20, 32, 43, 0.92);
    color: var(--text);
    cursor: pointer;
}

.p2p-back-button {
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border-radius: 50%;
    font-size: 20px;
    line-height: 1;
}

.p2p-header-currency {
    display: flex;
    min-width: 82px;
    height: 38px;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 0 10px;
    border-radius: 999px;
    font: 700 13px Roboto, "Segoe UI", sans-serif;
}

.p2p-header-currency img {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.p2p-header-currency i,
.p2p-filter-button i {
    color: var(--muted);
    font-style: normal;
    font-size: 11px;
}

.p2p-side-switch {
    display: inline-grid;
    width: 180px;
    grid-template-columns: 1fr 1fr;
    gap: 0;
    padding: 3px;
    border-radius: 999px;
    background: #111c25;
}

.p2p-side-switch button {
    min-height: 30px;
    border-radius: 999px;
    font-size: 13px;
}

.p2p-side-switch button.active {
    background: #334451;
    box-shadow: none;
}

.p2p-filters {
    display: flex;
    width: 100%;
    align-items: center;
    gap: 5px;
    margin: 8px 0 0;
    padding: 7px 0;
    border-top: 1px solid var(--line);
    border-bottom: 1px solid var(--line);
}

.p2p-filter-button,
.p2p-filter-reset {
    display: flex;
    min-width: 0;
    height: 36px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 0 7px;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font: 500 12px Roboto, "Segoe UI", sans-serif;
    white-space: nowrap;
}

.p2p-filter-button.asset { flex: 0 0 auto; }
.p2p-filter-button.payment {
    flex: 0 1 auto;
    justify-content: flex-start;
    padding-left: 2px;
    overflow: hidden;
}
.p2p-filter-button.payment span { overflow: hidden; text-overflow: ellipsis; }
.p2p-filter-button img { width: 22px; height: 22px; border-radius: 50%; }

.p2p-filter-reset {
    position: relative;
    flex: 0 0 34px;
    margin-left: auto;
    padding: 0;
}

.p2p-filter-reset::before {
    content: "";
    width: 18px;
    height: 13px;
    border: 1.8px solid var(--muted);
    border-top-width: 0;
    clip-path: polygon(0 0, 100% 0, 65% 100%, 35% 100%);
}

.p2p-list-heading { margin: 5px 2px 0; min-height: 24px; }
.p2p-list-heading small { background: transparent; }
.p2p-offer-list { display: block; }

.p2p-offer-card {
    padding: 14px 2px 15px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    box-shadow: none;
}

.p2p-offer-merchant { gap: 8px; }
.p2p-merchant-logo {
    width: 31px;
    height: 31px;
    flex-basis: 31px;
    border-radius: 50%;
    font-size: 16px;
    overflow: hidden;
    background: var(--surface-3);
}

.p2p-merchant-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.p2p-merchant-name { flex: 1; }
.p2p-merchant-name strong { font-size: 14px; }
.p2p-merchant-name small { font-size: 9px; }
.p2p-merchant-stats { color: var(--muted); font-size: 9px; text-align: right; line-height: 1.35; }

.p2p-offer-main {
    grid-template-columns: minmax(0, 1fr) 112px;
    gap: 8px;
    margin-top: 12px;
}

.p2p-offer-price strong { font-size: 25px; }
.p2p-offer-price small,
.p2p-offer-price span { font-size: 10px; }
.p2p-offer-action { min-width: 0; width: 112px; height: 39px; min-height: 39px; border-radius: 999px; }
.p2p-offer-action.buy {
    background: linear-gradient(135deg, #65d36f, #46ba75);
    color: #07120b;
    box-shadow: 0 8px 18px rgba(81, 179, 84, 0.2);
}
.p2p-offer-action.sell {
    background: linear-gradient(135deg, #ff5964, #ed3445);
    color: #fff;
    box-shadow: 0 8px 18px rgba(237, 52, 69, 0.22);
}

.p2p-offer-details {
    gap: 5px;
    margin: 10px 122px 0 0;
    padding: 0;
    border: 0;
}
.p2p-offer-details div { font-size: 10px; }
.p2p-offer-details strong { font-weight: 500; }

.p2p-offer-method {
    gap: 7px;
    padding-top: 8px;
    color: var(--text);
}
.p2p-offer-method::before {
    content: "";
    width: 3px;
    height: 14px;
    border-radius: 3px;
    background: var(--green-bright);
}
.p2p-offer-method img { display: none; }
.p2p-offer-method span { flex-direction: row; align-items: center; gap: 5px; }
.p2p-offer-method small { display: none; }
.p2p-offer-method strong { font-size: 11px; }
.p2p-offer-methods {
    display: flex;
    min-width: 0;
    flex-wrap: wrap;
    gap: 4px 9px !important;
}
.p2p-offer-methods strong {
    position: relative;
    white-space: nowrap;
}
.p2p-offer-methods strong + strong::before {
    content: "·";
    position: absolute;
    left: -6px;
    color: var(--muted);
}

.p2p-picker-overlay {
    position: fixed;
    z-index: 120;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: var(--telegram-safe-top, 0px);
    background: rgba(1, 7, 12, 0.68);
    backdrop-filter: blur(3px);
    transition: opacity 0.2s ease;
}

.p2p-picker-overlay[aria-hidden="true"] { visibility: hidden; opacity: 0; pointer-events: none; }
.p2p-picker-overlay[aria-hidden="false"] { visibility: visible; opacity: 1; }

.p2p-picker-sheet {
    width: min(100%, 430px);
    max-height: calc(100dvh - var(--telegram-safe-top, 0px) - 10px);
    overflow: hidden auto;
    padding: 14px 16px calc(22px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    background: #0c171f;
    box-shadow: 0 -18px 50px rgba(0, 0, 0, 0.34);
}

.p2p-picker-sheet.compact { max-height: 72dvh; }
.p2p-picker-sheet header { display: grid; grid-template-columns: 36px 1fr 36px; align-items: center; margin-bottom: 14px; }
.p2p-picker-sheet header h2 { margin: 0; font-size: 18px; text-align: center; }
.p2p-picker-sheet header button { width: 34px; height: 34px; border: 0; border-radius: 50%; background: var(--panel); color: var(--text); font-size: 22px; }
.p2p-picker-search { display: flex; min-height: 48px; align-items: center; gap: 8px; padding: 0 14px; border-radius: 14px; background: var(--panel); }
.p2p-picker-search span { color: var(--muted); font-size: 22px; }
.p2p-picker-search input { border: 0; background: transparent; }
.p2p-picker-context {
    margin: -4px 2px 10px;
    color: var(--muted);
    font-size: 12px;
}
.p2p-picker-list { margin-top: 12px; overflow: hidden; border-radius: 18px; background: var(--panel); }
.p2p-picker-option { display: flex; width: 100%; min-height: 60px; align-items: center; gap: 12px; padding: 9px 14px; border: 0; border-bottom: 1px solid var(--line); background: transparent; color: var(--text); text-align: left; }
.p2p-picker-option:last-child { border-bottom: 0; }
.p2p-picker-option img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.p2p-picker-option span { display: flex; min-width: 0; flex: 1; flex-direction: column; gap: 3px; }
.p2p-picker-option strong { font: 700 15px Roboto, "Segoe UI", sans-serif; }
.p2p-picker-option small { color: var(--muted); font-size: 11px; }
.p2p-picker-option i { width: 20px; height: 20px; border: 2px solid var(--muted); border-radius: 50%; }
.p2p-picker-option.active i { border: 6px solid var(--green-bright); }

.p2p-amount-sheet-field { display: flex; min-height: 62px; align-items: center; gap: 12px; padding: 0 15px; border: 1px solid var(--line); border-radius: 16px; background: var(--panel); }
.p2p-amount-sheet-field span { color: var(--muted); font-weight: 700; }
.p2p-amount-sheet-field input { border: 0; background: transparent; font-size: 20px; font-weight: 700; }
.p2p-picker-actions { display: grid; grid-template-columns: 1fr 1.7fr; gap: 10px; margin-top: 14px; }
.p2p-picker-actions button { min-height: 48px; border: 0; border-radius: 14px; background: var(--green-bright); color: #07120b; font-weight: 700; }
.p2p-picker-actions button.secondary { background: var(--panel); color: var(--text); }

.sbp-qr-view {
    min-height: calc(100dvh - 70px);
    padding-bottom: 24px;
}

.sbp-qr-status-card {
    position: relative;
    overflow: hidden;
    display: flex;
    min-height: 360px;
    align-items: center;
    justify-content: center;
    padding: 28px 20px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background:
        radial-gradient(circle at 50% 20%, rgba(86, 207, 101, 0.16), transparent 42%),
        linear-gradient(155deg, #1c2b37, #14202a);
    text-align: center;
    flex-direction: column;
    isolation: isolate;
    transition:
        border-color 260ms ease,
        box-shadow 260ms ease,
        background 260ms ease;
}

.sbp-qr-status-card::before,
.sbp-qr-status-card::after {
    position: absolute;
    z-index: -1;
    width: 180px;
    height: 180px;
    border: 1px solid transparent;
    border-radius: 50%;
    content: "";
    opacity: 0;
    pointer-events: none;
}

.sbp-qr-status-card.is-payment-success {
    border-color: rgba(91, 214, 104, 0.46);
    background:
        radial-gradient(circle at 50% 23%, rgba(86, 207, 101, 0.25), transparent 43%),
        linear-gradient(155deg, #1c2b37, #14202a);
    box-shadow:
        0 0 0 1px rgba(91, 214, 104, 0.08),
        0 24px 56px rgba(33, 156, 69, 0.12);
    animation: sbp-payment-card-arrive 620ms cubic-bezier(.2, .8, .2, 1);
}

.sbp-qr-status-card.is-payment-success::before {
    border-color: rgba(103, 229, 117, 0.33);
    animation: sbp-payment-ring 1.15s ease-out both;
}

.sbp-qr-status-card.is-payment-success::after {
    border-color: rgba(103, 229, 117, 0.2);
    animation: sbp-payment-ring 1.15s 180ms ease-out both;
}

.sbp-qr-status-card.is-payment-error {
    border-color: rgba(255, 92, 105, 0.4);
    box-shadow: 0 20px 48px rgba(174, 36, 49, 0.1);
    animation: sbp-payment-error-shake 420ms ease;
}

.sbp-qr-status-icon {
    position: relative;
    display: grid;
    width: 86px;
    height: 86px;
    margin-bottom: 18px;
    place-items: center;
    border-radius: 50%;
    background: rgba(88, 205, 101, 0.14);
    color: var(--green-bright);
    box-shadow: 0 0 0 0 rgba(91, 214, 104, 0);
    transition:
        background 260ms ease,
        color 260ms ease,
        box-shadow 260ms ease;
}

.sbp-qr-status-icon i {
    width: 38px;
    height: 38px;
    border: 4px solid rgba(102, 214, 106, 0.22);
    border-top-color: var(--green-bright);
    border-radius: 50%;
}

.sbp-qr-status-icon.is-loading i {
    animation: sbp-qr-spin 0.9s linear infinite;
}

.sbp-qr-status-icon.is-loading {
    background: transparent;
    box-shadow: none;
}

.sbp-qr-status-icon.is-success i,
.sbp-qr-status-icon.is-error i {
    width: auto;
    height: auto;
    border: 0;
    font-size: 42px;
    font-style: normal;
}

.sbp-qr-status-icon.is-success i::before {
    content: "✓";
}

.sbp-qr-status-icon.is-error {
    background: rgba(255, 92, 105, 0.14);
    color: #ff6673;
}

.sbp-qr-status-icon.is-success {
    background: linear-gradient(145deg, #75e982, #3fbe59);
    color: #07170c;
    box-shadow:
        0 0 0 9px rgba(91, 214, 104, 0.1),
        0 16px 34px rgba(46, 190, 76, 0.28);
    animation: sbp-payment-icon-pop 700ms cubic-bezier(.2, 1.6, .35, 1) both;
}

.sbp-qr-status-icon.is-success i {
    animation: sbp-payment-check-pop 560ms 140ms cubic-bezier(.2, 1.5, .35, 1) both;
}

.sbp-qr-status-icon.is-error i {
    animation: sbp-payment-check-pop 440ms cubic-bezier(.2, 1.4, .35, 1) both;
}

.sbp-qr-status-icon.is-error i::before {
    content: "×";
}

@keyframes sbp-qr-spin {
    to { transform: rotate(360deg); }
}

@keyframes sbp-payment-card-arrive {
    0% { transform: scale(0.985); }
    55% { transform: scale(1.006); }
    100% { transform: scale(1); }
}

@keyframes sbp-payment-icon-pop {
    0% { opacity: 0; transform: scale(0.42); }
    58% { opacity: 1; transform: scale(1.12); }
    100% { opacity: 1; transform: scale(1); }
}

@keyframes sbp-payment-check-pop {
    0% { opacity: 0; transform: scale(0.35) rotate(-14deg); }
    100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes sbp-payment-ring {
    0% { opacity: 0.72; transform: scale(0.24); }
    100% { opacity: 0; transform: scale(2.25); }
}

@keyframes sbp-payment-error-shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    50% { transform: translateX(5px); }
    75% { transform: translateX(-2px); }
}

.sbp-qr-request-number {
    min-height: 18px;
    color: var(--green-bright);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.sbp-qr-status-card h2 {
    margin: 8px 0 7px;
    font-size: 23px;
    line-height: 1.15;
}

.sbp-qr-status-card > p {
    max-width: 290px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.sbp-qr-calculation {
    width: 100%;
    margin-top: 24px;
    padding-top: 10px;
    border-top: 1px solid var(--line);
}

.sbp-qr-calculation > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 7px 0;
    text-align: left;
}

.sbp-qr-calculation span {
    color: var(--muted);
    font-size: 13px;
}

.sbp-qr-calculation strong {
    color: var(--text);
    font-size: 14px;
    text-align: right;
}

.sbp-qr-primary,
.sbp-qr-secondary {
    width: 100%;
    margin-top: 14px;
}

.sbp-qr-secondary {
    min-height: 52px;
    border: 1px solid var(--line);
    border-radius: 15px;
    background: var(--panel);
    color: var(--text);
    font: inherit;
    font-weight: 700;
}

.sbp-qr-live-scanner {
    position: fixed;
    z-index: 5000;
    inset: 0;
    overflow: hidden;
    background: #050a0e;
    color: #fff;
}

.sbp-qr-live-scanner[hidden] {
    display: none;
}

.sbp-qr-live-scanner video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.82) saturate(0.92);
}

.sbp-qr-live-shade {
    position: absolute;
    inset: 0;
    background:
        linear-gradient(180deg, rgba(3, 9, 13, 0.7), transparent 24%),
        linear-gradient(0deg, rgba(3, 9, 13, 0.82), transparent 32%);
    pointer-events: none;
}

.sbp-qr-live-frame {
    position: absolute;
    top: 42%;
    left: 50%;
    width: min(64vw, 270px);
    aspect-ratio: 1;
    border-radius: 30px;
    background:
        linear-gradient(var(--green-bright), var(--green-bright)) top left / 58px 4px no-repeat,
        linear-gradient(var(--green-bright), var(--green-bright)) top left / 4px 58px no-repeat,
        linear-gradient(var(--green-bright), var(--green-bright)) top right / 58px 4px no-repeat,
        linear-gradient(var(--green-bright), var(--green-bright)) top right / 4px 58px no-repeat,
        linear-gradient(var(--green-bright), var(--green-bright)) bottom left / 58px 4px no-repeat,
        linear-gradient(var(--green-bright), var(--green-bright)) bottom left / 4px 58px no-repeat,
        linear-gradient(var(--green-bright), var(--green-bright)) bottom right / 58px 4px no-repeat,
        linear-gradient(var(--green-bright), var(--green-bright)) bottom right / 4px 58px no-repeat;
    box-shadow:
        0 0 0 999px rgba(2, 7, 10, 0.34),
        0 0 28px rgba(91, 214, 104, 0.25);
    transform: translate(-50%, -50%);
    pointer-events: none;
}

.sbp-qr-live-frame::before,
.sbp-qr-live-frame::after {
    display: none;
}

.sbp-qr-live-header {
    position: absolute;
    top: max(12px, calc(var(--app-safe-top) + 2px));
    right: 18px;
    left: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

body.sbp-qr-scanner-open .toast {
    z-index: 5100;
}

.sbp-qr-live-header button {
    display: grid;
    width: 44px;
    height: 44px;
    padding: 0;
    place-items: center;
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-radius: 50%;
    background: rgba(10, 19, 25, 0.72);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    backdrop-filter: blur(12px);
}

.sbp-qr-live-header strong {
    font-size: 18px;
    font-weight: 700;
}

.sbp-qr-live-hint {
    position: absolute;
    z-index: 4;
    top: max(
        calc(var(--app-safe-top) + 62px),
        calc(42% - min(32vw, 135px) - 48px)
    );
    right: 28px;
    left: 28px;
    margin: 0;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.72);
    pointer-events: none;
}

.sbp-qr-live-error {
    position: absolute;
    z-index: 5;
    right: 24px;
    bottom: calc(296px + var(--app-safe-bottom));
    left: 24px;
    margin: 0;
    padding: 10px 14px;
    border: 1px solid rgba(255, 91, 104, 0.46);
    border-radius: 13px;
    background: rgba(69, 22, 29, 0.94);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.3);
    color: #ff8b95;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    backdrop-filter: blur(14px);
}

.sbp-qr-live-error.is-info {
    border-color: rgba(91, 214, 104, 0.42);
    background: rgba(16, 55, 37, 0.94);
    color: #8cf198;
}

.sbp-qr-live-error[hidden] {
    display: none;
}

.sbp-qr-gallery-button {
    position: static;
    min-height: 28px;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
    color: var(--green-bright);
    font: inherit;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: right;
    white-space: nowrap;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
}

.sbp-qr-gallery-button:active {
    opacity: 0.62;
}

.sbp-qr-live-wallet {
    position: absolute;
    z-index: 3;
    right: 0;
    bottom: 0;
    left: 0;
    overflow: hidden;
    padding: 18px 16px calc(88px + var(--app-safe-bottom));
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-bottom: 0;
    border-radius: 28px 28px 0 0;
    background:
        radial-gradient(circle at 50% -40%, rgba(81, 179, 84, 0.16), transparent 48%),
        rgba(17, 27, 37, 0.97);
    box-shadow: 0 -18px 45px rgba(0, 0, 0, 0.28);
    backdrop-filter: blur(22px);
}

.sbp-qr-live-wallet > header {
    display: flex;
    min-height: 28px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 12px;
}

.sbp-qr-live-wallet > header > div {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.sbp-qr-live-wallet > header small,
.sbp-qr-live-wallet > header span {
    color: var(--muted);
    font-size: 12px;
}

.sbp-qr-live-wallet > header strong {
    font-size: 16px;
}

.sbp-qr-live-wallet > header .sbp-qr-gallery-button {
    color: var(--green-bright);
    text-align: right;
}

.sbp-qr-live-assets {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.sbp-qr-live-assets button {
    position: relative;
    display: grid;
    min-width: 0;
    min-height: 82px;
    padding: 12px;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 4px 9px;
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 18px;
    background: rgba(29, 43, 56, 0.88);
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
    touch-action: manipulation;
}

.sbp-qr-live-assets button.is-selected {
    border-color: rgba(102, 214, 106, 0.4);
    box-shadow: inset 0 0 0 1px rgba(102, 214, 106, 0.08);
}

.sbp-qr-live-assets button:active {
    transform: scale(0.985);
}

.sbp-qr-live-assets img {
    width: 34px;
    height: 34px;
    grid-row: 1 / span 2;
    border-radius: 50%;
    object-fit: cover;
}

.sbp-qr-live-assets div {
    min-width: 0;
}

.sbp-qr-live-assets strong {
    display: block;
    font-size: 14px;
}

.sbp-qr-live-assets small {
    display: block;
    overflow: hidden;
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sbp-qr-live-assets b {
    min-width: 0;
    grid-column: 2;
    color: var(--text);
    font-size: 12px;
    font-weight: 600;
}

.sbp-qr-bottom-nav {
    z-index: 5006;
}

@media (max-height: 720px) {
    .sbp-qr-live-frame {
        top: 36%;
        width: min(52vw, 230px);
    }

    .sbp-qr-live-hint {
        top: max(
            calc(var(--app-safe-top) + 76px),
            calc(36% - min(26vw, 115px) - 42px)
        );
        right: 22px;
        left: 22px;
        font-size: 12px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .sbp-qr-status-card,
    .sbp-qr-status-card::before,
    .sbp-qr-status-card::after,
    .sbp-qr-status-icon,
    .sbp-qr-status-icon i,
    .sbp-qr-live-assets button {
        animation: none !important;
        transition: none !important;
    }
}

.cards-view.active {
    display: flex;
    min-height: calc(100dvh - 112px - var(--app-safe-top) - var(--app-safe-bottom));
    flex-direction: column;
}

body.cards-view-open .topbar {
    display: none;
}

body.cards-view-open .app-shell {
    padding-top: max(12px, var(--app-safe-top));
}

.cards-view-header {
    display: grid;
    min-height: 42px;
    margin-bottom: 8px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 8px;
}

.cards-view-header h1 {
    margin: 0;
    font-size: 20px;
    line-height: 1.1;
    text-align: center;
}

.cards-development-content {
    display: flex;
    flex: 1;
    align-items: center;
    padding: 0 0 4px;
    flex-direction: column;
    text-align: center;
}

.swapora-card-stage {
    position: relative;
    width: min(100%, 350px);
    padding: 22px 10px 26px;
}

.swapora-card-stage::before {
    position: absolute;
    inset: 4% 9% 0;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(92, 213, 103, 0.22), transparent 68%);
    content: "";
    filter: blur(15px);
}

.swapora-virtual-card {
    position: relative;
    width: 100%;
    aspect-ratio: 1.58;
    overflow: hidden;
    padding: 21px;
    border: 1px solid rgba(138, 234, 146, 0.28);
    border-radius: 24px;
    background:
        radial-gradient(circle at 88% 0%, rgba(94, 219, 112, 0.28), transparent 39%),
        linear-gradient(135deg, #162d31 0%, #11202a 50%, #1b2938 100%);
    box-shadow:
        0 25px 55px rgba(0, 0, 0, 0.35),
        inset 0 1px 0 rgba(255, 255, 255, 0.07);
    color: #f6fbf8;
    text-align: left;
    transform: perspective(900px) rotateX(3deg) rotateY(-4deg);
}

.swapora-card-glow {
    position: absolute;
    right: -15%;
    bottom: -45%;
    width: 70%;
    aspect-ratio: 1;
    border: 34px solid rgba(92, 218, 105, 0.09);
    border-radius: 50%;
}

.swapora-card-brand {
    position: relative;
    display: flex;
    align-items: center;
    gap: 9px;
}

.swapora-card-brand img {
    width: 27px;
    height: 27px;
    object-fit: contain;
}

.swapora-card-brand strong {
    font-size: 17px;
    font-weight: 700;
}

.swapora-card-chip {
    display: grid;
    width: 42px;
    height: 31px;
    margin-top: 25px;
    padding: 5px;
    grid-template-columns: repeat(2, 1fr);
    gap: 2px;
    border-radius: 8px;
    background: linear-gradient(145deg, #d9e6cf, #8eab93);
}

.swapora-card-chip i {
    border: 1px solid rgba(31, 62, 45, 0.32);
    border-radius: 2px;
}

.swapora-card-number {
    position: relative;
    margin-top: 15px;
    font-size: clamp(16px, 5vw, 21px);
    font-weight: 700;
    letter-spacing: 0.055em;
}

.swapora-card-footer {
    position: absolute;
    right: 21px;
    bottom: 18px;
    left: 21px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    color: rgba(238, 249, 241, 0.72);
    font-size: 9px;
    letter-spacing: 0.11em;
}

.swapora-card-footer b {
    color: #6cdf79;
    font-size: 11px;
}

.cards-development-badge {
    padding: 7px 12px;
    border: 1px solid rgba(103, 220, 111, 0.25);
    border-radius: 999px;
    background: rgba(91, 199, 98, 0.11);
    color: var(--green-bright);
    font-size: 12px;
    font-weight: 700;
}

.cards-development-content h2 {
    margin: 15px 0 8px;
    font-size: 25px;
    line-height: 1.12;
}

.cards-development-content > p {
    max-width: 330px;
    margin: 0;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.45;
}

.cards-feature-list {
    display: grid;
    width: min(100%, 360px);
    margin-top: 24px;
    gap: 8px;
}

.cards-feature-list div {
    display: flex;
    align-items: center;
    gap: 11px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
    text-align: left;
}

.cards-feature-list span {
    display: grid;
    width: 27px;
    height: 27px;
    flex: 0 0 27px;
    place-items: center;
    border-radius: 9px;
    background: rgba(91, 199, 98, 0.14);
    color: var(--green-bright);
    font-size: 12px;
    font-weight: 800;
}

.cards-feature-list strong {
    font-size: 13px;
    font-weight: 600;
}

.cards-development-button {
    width: min(100%, 360px);
    min-height: 50px;
    margin-top: auto;
    padding: 13px 18px;
    border: 1px solid rgba(102, 214, 106, 0.2);
    border-radius: 15px;
    background: rgba(91, 199, 98, 0.1);
    color: var(--green-bright);
    font: inherit;
    font-size: 14px;
    font-weight: 700;
}

.cards-live-content {
    width: 100%;
    padding-bottom: 18px;
}

.cards-live-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin: 2px 2px 10px;
    text-align: left;
}

.cards-live-heading span {
    color: var(--green-bright);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.15em;
}

.cards-live-heading h2 {
    margin: 3px 0 0;
    font-size: 24px;
    line-height: 1.08;
}

.cards-icon-button {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border: 0;
    border-radius: 15px;
    background: rgba(93, 211, 106, 0.1);
    color: var(--green-bright);
    font: inherit;
    font-size: 24px;
}

.cards-service-status {
    margin-top: 18px;
    padding: 18px;
    border-radius: 18px;
    background: var(--panel);
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

.cards-account-content {
    width: 100%;
}

.cards-selector-wrap {
    display: grid;
    margin: 9px 2px 0;
    gap: 5px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    text-align: left;
}

.cards-selector-wrap[hidden],
.cards-actions[hidden],
.cards-transactions[hidden] {
    display: none;
}

.cards-selector-wrap select,
.cards-issue-panel select,
.cards-issue-panel input,
.cards-fixed-product {
    width: 100%;
    min-height: 42px;
    padding: 0 13px;
    border: 1px solid rgba(135, 214, 148, 0.12);
    border-radius: 13px;
    outline: none;
    background: #172632;
    color: var(--text);
    font: inherit;
    font-size: 13px;
    font-weight: 700;
}

.cards-fixed-product {
    display: flex;
    align-items: center;
}

.cards-issue-panel input::placeholder {
    color: var(--muted);
}

.cards-live-content .swapora-card-stage {
    width: min(100%, 330px);
    margin-inline: auto;
    padding-top: 14px;
    padding-bottom: 18px;
}

.swapora-virtual-card.is-frozen {
    filter: saturate(0.45);
}

.cards-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
}

.cards-actions button {
    display: grid;
    min-width: 0;
    min-height: 70px;
    padding: 10px 5px;
    place-items: center;
    gap: 5px;
    border: 0;
    border-radius: 16px;
    background: var(--panel);
    color: var(--text);
    font: inherit;
}

.cards-actions button span {
    color: var(--green-bright);
    font-size: 22px;
    line-height: 1;
}

.cards-actions button strong {
    overflow: hidden;
    max-width: 100%;
    font-size: 11px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cards-transactions {
    display: grid;
    margin-top: 10px;
    padding: 8px 13px;
    border-radius: 16px;
    background: var(--panel);
    color: var(--muted);
    font-size: 12px;
    gap: 0;
}

.cards-transactions > div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}

.cards-transactions > div:last-child {
    border-bottom: 0;
}

.cards-transactions span {
    display: grid;
    min-width: 0;
    text-align: left;
}

.cards-transactions strong {
    overflow: hidden;
    color: var(--text);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.cards-transactions small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 10px;
}

.cards-transactions b {
    flex: 0 0 auto;
    color: var(--text);
    font-size: 12px;
}

.cards-issue-panel {
    display: grid;
    margin-top: 12px;
    padding: 14px;
    border-radius: 18px;
    background:
        radial-gradient(circle at 100% 0, rgba(83, 221, 127, 0.13), transparent 45%),
        var(--panel);
    gap: 10px;
    text-align: left;
}

.cards-issue-panel[hidden] {
    display: none;
}

.cards-issue-panel > div {
    display: grid;
    gap: 3px;
}

.cards-issue-panel strong {
    font-size: 14px;
}

.cards-issue-panel small {
    color: var(--muted);
    font-size: 11px;
}

.cards-primary-button {
    min-height: 46px;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, #20b96b 0%, #53df83 100%);
    box-shadow: 0 9px 24px rgba(41, 210, 119, 0.16);
    color: #06180e;
    font: inherit;
    font-size: 13px;
    font-weight: 800;
}

.cards-primary-button:disabled {
    opacity: 0.45;
}

.cards-world-section {
    margin-top: 18px;
    color: var(--text);
    font-family: Roboto, "Segoe UI", sans-serif;
    text-align: left;
}

.cards-world-section[hidden] {
    display: none;
}

.cards-world-label {
    margin: 0 12px 10px;
    color: #7181a1;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.035em;
}

.cards-world-card {
    padding: 20px 17px 13px;
    border-radius: 18px;
    background: linear-gradient(145deg, #1d2637 0%, #1b2232 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.cards-world-brands {
    display: flex;
    align-items: center;
    min-height: 37px;
    margin-bottom: 14px;
    gap: 16px;
}

.cards-mastercard-mark,
.cards-visa-mark {
    display: inline-flex;
    width: 46px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 5px;
}

.cards-mastercard-mark {
    position: relative;
    background: #f59b08;
}

.cards-mastercard-mark i {
    position: absolute;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: #eb001b;
}

.cards-mastercard-mark i:first-child {
    margin-left: -10px;
}

.cards-mastercard-mark i:last-child {
    margin-left: 10px;
    background: #ff5f00;
}

.cards-visa-mark {
    background: linear-gradient(135deg, #9148ec, #6530d8);
    color: #fff;
    font-size: 11px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: -0.035em;
}

.cards-world-card h2 {
    margin: 0 0 7px;
    font-size: 17px;
    font-weight: 800;
    line-height: 1.18;
}

.cards-world-card > p {
    margin: 0;
    color: #93a0b8;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.38;
}

.cards-world-button {
    width: 100%;
    min-height: 48px;
    margin-top: 20px;
    border: 0;
    border-radius: 10px;
    background: linear-gradient(135deg, #20b96b 0%, #53df83 100%);
    color: #06180e;
    font: 800 14px/1 Roboto, "Segoe UI", sans-serif;
}

.cards-world-button:disabled {
    opacity: 0.48;
}

.cards-market-view.active {
    display: block;
    min-height: calc(100dvh - max(12px, var(--app-safe-top)));
    padding-bottom: calc(22px + var(--app-safe-bottom));
    font-family: Roboto, "Segoe UI", sans-serif;
    animation: cards-market-enter 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.cards-market-header {
    display: grid;
    min-height: 42px;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 8px;
}

.cards-market-header h1 {
    margin: 0;
    font-size: 20px;
    font-weight: 700 !important;
    text-align: center;
}

.cards-market-icon-button {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    font: 400 25px/1 Roboto, "Segoe UI", sans-serif;
}

.cards-market-hero {
    position: relative;
    width: 92px;
    height: 76px;
    margin: 22px auto 7px;
}

.cards-market-hero-card {
    position: absolute;
    width: 72px;
    height: 50px;
    border: 2px solid rgba(255, 255, 255, 0.75);
    border-radius: 10px;
    background: linear-gradient(145deg, #206fff, #2b45cb);
    box-shadow: 0 12px 24px rgba(17, 45, 139, 0.28);
}

.cards-market-hero-card.is-back {
    top: 5px;
    left: 14px;
    transform: rotate(8deg);
}

.cards-market-hero-card.is-front {
    top: 15px;
    left: 7px;
    transform: rotate(-3deg);
}

.cards-market-hero-card.is-front i {
    position: absolute;
    top: 17px;
    right: 14px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #eb001b;
}

.cards-market-hero-card.is-front i:last-child {
    right: 3px;
    background: rgba(255, 158, 0, 0.88);
}

.cards-market-intro {
    margin: 0 auto 27px;
    text-align: center;
}

.cards-market-intro h2 {
    margin: 0 0 7px;
    font-size: 24px;
    font-weight: 700 !important;
}

.cards-market-intro p {
    max-width: 330px;
    margin: 0 auto;
    color: #96a2b9;
    font-size: 15px;
    line-height: 1.25;
}

.cards-market-list {
    display: grid;
    gap: 14px;
}

.cards-market-offer {
    padding: 17px 17px 13px;
    border-radius: 18px;
    background: linear-gradient(145deg, #20263a, #1d2234);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

.cards-market-offer-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 68px;
    align-items: start;
    gap: 10px;
}

.cards-market-offer h3 {
    margin: 0 0 5px;
    font-size: 18px;
    font-weight: 700 !important;
    line-height: 1.08;
}

.cards-market-offer-heading p {
    margin: 0;
    color: #98a4ba;
    font-size: 14px;
    line-height: 1.38;
}

.cards-market-brand {
    display: grid;
    width: 68px;
    height: 46px;
    place-items: center;
    border-radius: 11px;
}

.cards-market-brand.is-visa {
    background: linear-gradient(145deg, #994ce8, #7440d3);
    color: #fff;
    font-size: 17px;
    font-style: italic;
    font-weight: 900;
}

.cards-market-brand.is-mastercard {
    position: relative;
    background: linear-gradient(145deg, #0d2f56, #081e39);
}

.cards-market-brand.is-mastercard i {
    position: absolute;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #eb001b;
}

.cards-market-brand.is-mastercard i:first-child {
    margin-left: -14px;
}

.cards-market-brand.is-mastercard i:last-child {
    margin-left: 14px;
    background: #ff9f00;
}

.cards-market-tags {
    display: flex;
    margin-top: 14px;
    flex-wrap: wrap;
    gap: 6px;
}

.cards-market-tags span {
    padding: 4px 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.055);
    color: #f3f6fb;
    font-size: 12px;
    font-weight: 700;
}

.cards-market-specs {
    margin: 19px 0 0;
}

.cards-market-specs div {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.cards-market-specs dt {
    color: #94a0b7;
    font-size: 14px;
}

.cards-market-specs dd {
    margin: 0;
    color: #fff;
    font-size: 14px;
    font-weight: 700;
}

.cards-market-price-row {
    display: grid;
    margin-top: 27px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
}

.cards-market-price-row > span {
    display: grid;
    color: #94a0b7;
    font-size: 13px;
    gap: 4px;
}

.cards-market-price-row > span:last-child {
    text-align: right;
}

.cards-market-price-row strong {
    color: #fff;
    font-size: 16px;
    font-weight: 700;
}

.cards-market-details {
    width: 100%;
    min-height: 44px;
    margin-top: 25px;
    border: 0;
    border-radius: 9px;
    background: linear-gradient(135deg, #20b96b 0%, #53df83 100%);
    color: #06180e;
    font: 800 14px/1 Roboto, "Segoe UI", sans-serif;
}

.cards-market-details:disabled {
    opacity: 0.43;
}

@keyframes cards-market-enter {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (max-width: 350px) {
    .cards-live-heading h2 {
        font-size: 21px;
    }

    .cards-live-content .swapora-card-stage {
        width: min(100%, 300px);
    }

    .cards-actions button strong {
        font-size: 10px;
    }

    .cards-market-intro h2 {
        font-size: 21px;
    }

    .cards-market-offer {
        padding-inline: 14px;
    }

    .cards-market-offer-heading {
        grid-template-columns: minmax(0, 1fr) 58px;
    }

    .cards-market-brand {
        width: 58px;
        height: 42px;
    }
}

/* Fiat deposit and withdrawal flow */
body.fiat-flow-open .topbar,
body.fiat-flow-open .bottom-nav {
    display: none;
}

body.fiat-flow-open .app-shell {
    padding:
        max(12px, var(--app-safe-top))
        16px
        max(12px, var(--app-safe-bottom));
}

.fiat-flow-view.active {
    display: flex;
    min-height: calc(100vh - max(24px, var(--app-safe-top)) - max(24px, var(--app-safe-bottom)));
    flex-direction: column;
}

.fiat-flow-header {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 10px;
}

.fiat-flow-header h1 {
    margin: 0;
    overflow: hidden;
    font-size: 19px;
    font-weight: 850;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.withdrawal-flow-content {
    margin-top: 30px;
}

.withdrawal-section-label {
    margin: 0 0 10px 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 720;
    text-transform: uppercase;
}

.withdrawal-option-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 19px;
    background: linear-gradient(145deg, #1b2935, #15212c);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.withdrawal-option {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 72px;
    align-items: center;
    gap: 12px;
    padding: 11px 14px;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-align: left;
}

.withdrawal-option + .withdrawal-option::before {
    position: absolute;
    top: 0;
    right: 14px;
    left: 67px;
    height: 1px;
    background: var(--line);
    content: "";
}

.withdrawal-option:active {
    background: rgba(102, 214, 106, 0.06);
}

.withdrawal-option-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    overflow: hidden;
    border-radius: 13px;
    background: #22313d;
    color: var(--text);
    font-size: 18px;
    font-weight: 900;
}

.withdrawal-flag {
    border-radius: 50%;
}

.withdrawal-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.withdrawal-option-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.withdrawal-option-copy strong {
    font-size: 16px;
    font-weight: 850;
}

.withdrawal-option-copy small {
    margin-top: 4px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.withdrawal-method-form {
    display: flex;
    padding-top: 30px;
    flex: 1;
    flex-direction: column;
}

.withdrawal-method-panel[hidden] {
    display: none;
}

.withdrawal-bank-list {
    margin-bottom: 20px;
}

.bank-logo {
    background: transparent;
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.19);
}

.bank-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.payout-method-icon {
    background: rgba(102, 214, 106, 0.14);
    color: var(--green-bright);
    font-size: 22px;
}

.withdrawal-radio {
    width: 20px;
    height: 20px;
    flex: 0 0 20px;
    border: 2px solid #566676;
    border-radius: 50%;
}

.withdrawal-option.selected .withdrawal-radio {
    border: 5px solid var(--green-bright);
    background: var(--text);
}

.withdrawal-iban-field {
    display: grid;
    gap: 7px;
    padding: 15px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: linear-gradient(145deg, #1d2b38, #17232e);
    animation: payout-field-in 180ms ease-out;
}

.withdrawal-iban-field[hidden] {
    display: none;
}

.withdrawal-iban-field > span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 760;
}

.withdrawal-iban-field input {
    width: 100%;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.025em;
    text-transform: uppercase;
}

.withdrawal-iban-field input::placeholder {
    color: #667787;
}

.withdrawal-iban-field small {
    color: var(--muted);
    font-size: 12px;
}

.withdrawal-method-continue {
    margin-top: auto;
}

@keyframes payout-field-in {
    from {
        opacity: 0;
        transform: translateY(8px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.saved-details-view {
    padding-bottom: 18px;
}

.promotions-view {
    min-height: calc(100dvh - var(--safe-top, 0px) - 34px);
    padding-bottom: 18px;
}

.promotions-header {
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    align-items: center;
    padding: 8px 0 18px;
}

.promotions-header h1 {
    margin: 0;
    font: 500 20px/1.2 Roboto, "Segoe UI", sans-serif;
    text-align: center;
}

.promo-code-form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 8px;
    padding: 12px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background:
        radial-gradient(circle at 100% 0, rgba(102, 214, 106, 0.1), transparent 45%),
        linear-gradient(145deg, #1d2b38, #17232e);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.13);
}

.promo-code-form input {
    min-width: 0;
    height: 50px;
    padding: 0 16px;
    border: 1px solid rgba(151, 176, 194, 0.1);
    border-radius: 15px;
    outline: none;
    background: #22303d;
    color: var(--text);
    font: 500 16px/1 Roboto, "Segoe UI", sans-serif;
    text-transform: uppercase;
    transition: border-color 160ms ease, box-shadow 160ms ease;
}

.promo-code-form input::placeholder {
    color: #8293a3;
    text-transform: none;
}

.promo-code-form input:focus {
    border-color: rgba(89, 217, 104, 0.5);
    box-shadow: 0 0 0 3px rgba(89, 217, 104, 0.08);
}

.promo-code-form button {
    min-width: 90px;
    height: 50px;
    padding: 0 10px;
    border: 0;
    border-radius: 14px;
    background: transparent;
    color: var(--green-bright);
    font: 500 14px/1 Roboto, "Segoe UI", sans-serif;
}

.promo-code-form button:disabled {
    opacity: 0.5;
}

.promotions-illustration {
    position: relative;
    width: 230px;
    height: 230px;
    margin: 30px auto 12px;
}

.promo-orbit {
    position: absolute;
    border: 1px solid rgba(89, 217, 104, 0.18);
    border-radius: 50%;
}

.promo-orbit-one {
    inset: 18px;
    transform: rotate(-13deg);
}

.promo-orbit-two {
    inset: 46px 10px;
    transform: rotate(28deg);
}

.promo-gift {
    position: absolute;
    z-index: 2;
    top: 77px;
    left: 50%;
    width: 118px;
    height: 106px;
    transform: translateX(-50%) rotate(-2deg);
    filter: drop-shadow(0 22px 26px rgba(0, 0, 0, 0.32));
}

.promo-gift-box,
.promo-gift-lid {
    position: absolute;
    left: 50%;
    display: block;
    transform: translateX(-50%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    background: linear-gradient(145deg, #58d667, #2ebda5);
}

.promo-gift-box {
    bottom: 0;
    width: 100px;
    height: 78px;
    overflow: hidden;
    border-radius: 8px 8px 17px 17px;
}

.promo-gift-box img {
    position: absolute;
    right: -7px;
    bottom: -12px;
    width: 72px;
    height: 72px;
    object-fit: cover;
    border-radius: 20px;
    opacity: 0.9;
    mix-blend-mode: screen;
}

.promo-gift-lid {
    z-index: 3;
    top: 12px;
    width: 116px;
    height: 26px;
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(5, 18, 15, 0.25);
}

.promo-gift-ribbon {
    position: absolute;
    z-index: 4;
    top: 12px;
    left: 50%;
    width: 20px;
    height: 94px;
    transform: translateX(-50%);
    border-radius: 5px;
    background: linear-gradient(#d7f760, #9fe046);
}

.promo-coin {
    position: absolute;
    z-index: 3;
    display: grid;
    width: 47px;
    height: 47px;
    place-items: center;
    border: 4px solid rgba(255, 255, 255, 0.68);
    border-radius: 50%;
    background: linear-gradient(145deg, #59d86b, #35bcae);
    color: #fff;
    font: 800 21px/1 Roboto, "Segoe UI", sans-serif;
    box-shadow: 0 12px 26px rgba(23, 191, 122, 0.24);
}

.promo-coin-one {
    top: 22px;
    left: 38px;
    transform: rotate(-14deg);
}

.promo-coin-two {
    top: 23px;
    right: 40px;
    transform: rotate(16deg);
}

.promo-coin-three {
    top: 63px;
    right: 7px;
    width: 36px;
    height: 36px;
    font-size: 15px;
    transform: rotate(25deg);
}

.promotions-copy {
    max-width: 330px;
    margin: 0 auto;
    text-align: center;
}

.promotions-copy h2 {
    margin: 0;
    font: 700 21px/1.18 Roboto, "Segoe UI", sans-serif;
}

.promotions-copy p {
    margin: 10px 4px 0;
    color: var(--muted);
    font: 500 13px/1.35 Roboto, "Segoe UI", sans-serif;
}

.active-promos {
    display: grid;
    gap: 8px;
    margin-top: 18px;
}

.active-promos[hidden] {
    display: none;
}

.active-promo-card {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 11px 13px;
    border: 1px solid rgba(89, 217, 104, 0.25);
    border-radius: 17px;
    background: rgba(89, 217, 104, 0.08);
}

.active-promo-card > span {
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 12px;
    background: rgba(89, 217, 104, 0.15);
    color: var(--green-bright);
    font-size: 20px;
}

.active-promo-card strong,
.active-promo-card small {
    display: block;
}

.active-promo-card strong {
    font: 700 14px/1.2 Roboto, "Segoe UI", sans-serif;
}

.active-promo-card small {
    margin-top: 3px;
    color: var(--muted);
    font: 500 12px/1.3 Roboto, "Segoe UI", sans-serif;
}

.promo-channel-button {
    display: flex;
    width: 100%;
    height: 52px;
    align-items: center;
    justify-content: center;
    gap: 9px;
    margin-top: 20px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, #58d667, #3ec2a4);
    color: #06140d;
    font: 700 15px/1 Roboto, "Segoe UI", sans-serif;
    box-shadow: 0 13px 30px rgba(57, 197, 123, 0.22);
}

.promo-channel-button svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.saved-details-header {
    display: grid;
    grid-template-columns: 34px 1fr 34px;
    align-items: center;
    padding: 8px 0 20px;
}

.saved-details-header h1 {
    margin: 0;
    font-size: 19px;
    font-weight: 850;
    text-align: center;
}

.saved-details-hint {
    margin: 0 4px 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
}

.saved-details-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    margin-bottom: 16px;
}

.saved-details-tab {
    min-width: 0;
    height: 38px;
    padding: 0 10px;
    border: 1px solid rgba(151, 176, 194, 0.11);
    border-radius: 999px;
    background: #1c2a36;
    color: var(--muted);
    font: 800 13px/1 Roboto, "Segoe UI", sans-serif;
    transition: border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.saved-details-tab.active {
    border-color: rgba(102, 214, 106, 0.34);
    background: linear-gradient(135deg, #54cc68, #40bebe);
    color: #07120e;
    box-shadow: 0 8px 22px rgba(71, 197, 125, 0.18);
}

.saved-network-filter {
    display: inline-flex;
    height: 38px;
    margin: 0 0 16px;
    padding: 0 14px;
    align-items: center;
    gap: 7px;
    border: 1px solid rgba(151, 176, 194, 0.12);
    border-radius: 999px;
    background: #1c2a36;
    color: var(--text);
    font: 800 13px/1 Roboto, "Segoe UI", sans-serif;
}

.saved-network-filter[hidden] {
    display: none;
}

.saved-network-filter svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: var(--green-bright);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.saved-details-list {
    display: grid;
    gap: 10px;
}

.saved-detail-swipe {
    position: relative;
    overflow: hidden;
    border-radius: 18px;
}

.saved-detail-card,
.saved-details-empty {
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, #1c2a37, #17232e);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.saved-detail-card {
    position: relative;
    z-index: 2;
    display: grid;
    width: 100%;
    grid-template-columns: 44px minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 13px;
    touch-action: pan-y;
    transition: transform 180ms ease;
    will-change: transform;
}

.saved-detail-swipe.open .saved-detail-card {
    transform: translateX(-74px);
}

.saved-detail-delete {
    position: absolute;
    z-index: 1;
    top: 0;
    right: 0;
    display: grid;
    width: 74px;
    height: 100%;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 0 18px 18px 0;
    background: rgba(242, 67, 72, 0.16);
    color: #ff4f54;
}

.saved-detail-delete svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.saved-detail-delete:disabled {
    opacity: 0.45;
}

.saved-detail-bank-logo {
    width: 44px;
    height: 44px;
    overflow: hidden;
    border-radius: 14px;
}

.saved-detail-bank-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.saved-detail-bank-logo.wallets,
.saved-detail-bank-logo.numbers,
.saved-detail-bank-logo.generic {
    display: grid;
    padding: 9px;
    place-items: center;
    background: rgba(102, 214, 106, 0.12);
    color: var(--green-bright);
}

.saved-detail-bank-logo.wallets {
    padding: 5px;
    border-radius: 50%;
}

.saved-detail-bank-logo svg {
    width: 25px;
    height: 25px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.saved-detail-copy {
    min-width: 0;
}

.saved-detail-copy strong,
.saved-detail-copy small {
    display: block;
}

.saved-detail-copy strong {
    font-size: 15px;
    font-weight: 850;
}

.saved-detail-copy small {
    margin-top: 5px;
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.saved-detail-default {
    padding: 5px 8px;
    border-radius: 999px;
    background: rgba(102, 214, 106, 0.13);
    color: var(--green-bright);
    font-size: 10px;
    font-weight: 850;
}

.saved-detail-copy-button {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 12px;
    background: transparent;
    color: #91a2b1;
}

.saved-detail-copy-button svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.saved-detail-copy-button:active {
    background: rgba(102, 214, 106, 0.1);
    color: var(--green-bright);
    transform: scale(0.94);
}

.saved-details-empty {
    padding: 24px 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.disputes-view-hint {
    margin: -4px 2px 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.disputes-list {
    display: grid;
    gap: 12px;
}

.dispute-card,
.disputes-empty {
    border: 1px solid var(--line);
    border-radius: 19px;
    background: linear-gradient(145deg, #1c2a37, #17232e);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.dispute-card {
    padding: 16px;
}

.dispute-card.has-dialogue {
    position: relative;
    padding-right: 43px;
    cursor: pointer;
    transition:
        border-color 160ms ease,
        transform 160ms ease,
        background 160ms ease;
}

.dispute-card.has-dialogue::after {
    content: "›";
    position: absolute;
    top: 50%;
    right: 16px;
    color: var(--green-bright);
    font-size: 25px;
    font-weight: 500;
    line-height: 1;
    transform: translateY(-50%);
}

.dispute-card.has-dialogue:active {
    border-color: rgba(102, 214, 106, 0.35);
    transform: scale(0.985);
}

.dispute-card.has-dialogue:focus-visible {
    outline: 2px solid var(--green-bright);
    outline-offset: 2px;
}

.dispute-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.dispute-card-ticket {
    color: var(--muted);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.045em;
}

.dispute-card-status {
    min-height: 27px;
    padding: 6px 9px;
    border-radius: 999px;
    background: rgba(255, 199, 81, 0.12);
    color: #ffd477;
    font-size: 10px;
    font-weight: 900;
}

.dispute-card-status.resolved {
    background: rgba(102, 214, 106, 0.12);
    color: var(--green-bright);
}

.dispute-card-status.closed {
    background: rgba(151, 176, 194, 0.1);
    color: var(--muted);
}

.dispute-card h2 {
    margin: 13px 0 7px;
    font-size: 17px;
    font-weight: 900;
}

.dispute-card-description,
.dispute-card-resolution p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.dispute-card-resolution {
    margin-top: 14px;
    padding: 12px 13px;
    border: 1px solid rgba(102, 214, 106, 0.14);
    border-radius: 13px;
    background: rgba(102, 214, 106, 0.055);
}

.dispute-card-resolution strong {
    display: block;
    margin-bottom: 5px;
    color: var(--green-bright);
    font-size: 11px;
}

.dispute-card-time {
    display: block;
    margin-top: 13px;
    color: var(--muted);
    font-size: 10px;
}

.disputes-empty {
    padding: 28px 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.45;
    text-align: center;
}

.support-dialogue-overlay {
    position: fixed;
    z-index: 134;
    inset: 0;
    display: grid;
    align-items: end;
    justify-items: center;
    background: rgba(1, 7, 12, 0.82);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.support-dialogue-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.support-dialogue-sheet {
    width: min(100%, 480px);
    max-height: min(82dvh, 720px);
    padding: 10px 16px calc(18px + env(safe-area-inset-bottom));
    border: 1px solid var(--line);
    border-radius: 24px 24px 0 0;
    background:
        radial-gradient(circle at 92% 4%, rgba(102, 214, 106, 0.1), transparent 32%),
        #101b24;
    box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.38);
    transform: translateY(102%);
    transition: transform 220ms ease;
}

.support-dialogue-overlay.visible .support-dialogue-sheet {
    transform: translateY(0);
}

.support-dialogue-sheet .sheet-handle {
    margin-bottom: 10px;
}

.support-dialogue-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
}

.support-dialogue-header small {
    display: block;
    margin-bottom: 2px;
    color: var(--green-bright);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.04em;
}

.support-dialogue-header h2 {
    margin: 0;
    font-size: 21px;
    font-weight: 700;
}

.support-dialogue-close {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    font-size: 25px;
    line-height: 1;
}

.support-dialogue-status {
    display: inline-flex;
    align-items: center;
    min-height: 27px;
    margin-top: 13px;
    padding: 6px 10px;
    border-radius: 999px;
    background: rgba(255, 199, 81, 0.12);
    color: #ffd477;
    font-size: 11px;
    font-weight: 700;
}

.support-dialogue-status.resolved {
    background: rgba(102, 214, 106, 0.12);
    color: var(--green-bright);
}

.support-dialogue-status.closed {
    background: rgba(151, 176, 194, 0.1);
    color: var(--muted);
}

.support-dialogue-messages {
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: calc(min(82dvh, 720px) - 155px);
    margin-top: 14px;
    padding: 2px 2px 8px;
    overflow-y: auto;
    scrollbar-width: none;
    overscroll-behavior: contain;
}

.support-dialogue-messages::-webkit-scrollbar {
    display: none;
}

.support-dialogue-loading,
.support-dialogue-empty {
    padding: 28px 14px;
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.support-dialogue-message {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    max-width: 88%;
}

.support-dialogue-message.client {
    align-self: flex-end;
    align-items: flex-end;
}

.support-dialogue-message-label {
    margin: 0 8px 4px;
    color: var(--muted);
    font-size: 10px;
    font-weight: 700;
}

.support-dialogue-bubble {
    padding: 11px 13px;
    border: 1px solid var(--line);
    border-radius: 6px 16px 16px 16px;
    background: #1c2a37;
    color: var(--text);
    font-size: 13px;
    line-height: 1.48;
    white-space: pre-wrap;
    overflow-wrap: anywhere;
}

.support-dialogue-message.client .support-dialogue-bubble {
    border-color: rgba(102, 214, 106, 0.22);
    border-radius: 16px 6px 16px 16px;
    background: rgba(55, 112, 78, 0.32);
}

.support-dialogue-message time {
    margin: 4px 8px 0;
    color: var(--muted);
    font-size: 9px;
}

.saved-network-overlay {
    position: fixed;
    z-index: 113;
    inset: 0;
    display: grid;
    align-items: end;
    background: rgba(1, 7, 12, 0.82);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.saved-network-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.saved-network-sheet {
    width: min(100%, 480px);
    min-height: min(440px, 64vh);
    margin: 0 auto;
    padding: 8px 16px calc(16px + var(--app-safe-bottom));
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(160deg, #172631, #0c171f);
    box-shadow: 0 -24px 60px rgba(0, 0, 0, 0.44);
    transform: translateY(24px);
    transition: transform 180ms ease;
}

.saved-network-overlay.visible .saved-network-sheet {
    transform: translateY(0);
}

.saved-network-handle {
    width: 46px;
    height: 4px;
    margin: 0 auto 8px;
    border-radius: 999px;
    background: rgba(150, 172, 187, 0.38);
}

.saved-network-header {
    display: grid;
    grid-template-columns: 1fr 34px;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.saved-network-header h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 850;
}

.saved-network-close {
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 24px;
}

.saved-network-options {
    overflow: hidden;
    border: 1px solid rgba(151, 176, 194, 0.11);
    border-radius: 18px;
    background: #1a2935;
}

.saved-network-option {
    display: grid;
    width: 100%;
    min-height: 58px;
    padding: 8px 13px;
    grid-template-columns: 38px 1fr 22px;
    align-items: center;
    gap: 10px;
    border: 0;
    border-bottom: 1px solid rgba(151, 176, 194, 0.11);
    background: transparent;
    color: var(--text);
    text-align: left;
}

.saved-network-option:first-child {
    grid-template-columns: 1fr 22px;
}

.saved-network-option:last-child {
    border-bottom: 0;
}

.saved-network-option img {
    display: block;
    width: 34px;
    height: 34px;
}

.saved-network-option strong,
.saved-network-all {
    font-size: 15px;
    font-weight: 850;
}

.saved-network-radio {
    display: grid;
    width: 21px;
    height: 21px;
    place-items: center;
    border: 2px solid #607484;
    border-radius: 50%;
}

.saved-network-option.selected .saved-network-radio {
    border-color: var(--green-bright);
    background: var(--green-bright);
    box-shadow: inset 0 0 0 4px #1a2935;
}

.saved-network-apply {
    width: 100%;
    margin-top: 18px;
}

.saved-phone-sheet {
    min-height: min(330px, 52vh);
}

.saved-phone-contacts-list {
    display: grid;
    overflow: hidden;
    border: 1px solid rgba(151, 176, 194, 0.11);
    border-radius: 18px;
    background: #1a2935;
}

.saved-phone-contacts-list:empty {
    display: none;
}

.saved-phone-contact {
    display: grid;
    width: 100%;
    min-height: 64px;
    padding: 9px 13px;
    grid-template-columns: 40px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 11px;
    border: 0;
    border-bottom: 1px solid rgba(151, 176, 194, 0.11);
    background: transparent;
    color: var(--text);
    text-align: left;
}

.saved-phone-contact:last-child {
    border-bottom: 0;
}

.saved-phone-contact-icon {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    border-radius: 13px;
    background: rgba(102, 214, 106, 0.12);
    color: var(--green-bright);
}

.saved-phone-contact-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.saved-phone-contact strong,
.saved-phone-contact small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.saved-wallet-contact-icon img {
    display: block;
    width: 25px;
    height: 25px;
    object-fit: contain;
}

.saved-phone-contact strong {
    font-size: 14px;
    font-weight: 850;
}

.saved-phone-contact small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.saved-phone-contact-arrow {
    color: var(--muted);
    font-size: 26px;
}

.saved-phone-contacts-hint {
    max-width: 300px;
    margin: 38px auto 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.4;
    text-align: center;
}

.payout-verification-overlay {
    position: fixed;
    z-index: 112;
    inset: 0;
    display: grid;
    align-items: end;
    padding: 16px 12px calc(16px + var(--app-safe-bottom));
    background: rgba(1, 7, 12, 0.78);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
}

.payout-verification-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.payout-verification-sheet {
    position: relative;
    width: min(100%, 430px);
    margin: 0 auto;
    padding: 24px 18px 18px;
    border: 1px solid var(--line);
    border-radius: 24px;
    background: linear-gradient(155deg, #1d2c39, #101a23);
    box-shadow: 0 26px 70px rgba(0, 0, 0, 0.5);
    text-align: center;
    transform: translateY(22px);
    transition: transform 180ms ease;
}

.payout-verification-overlay.visible .payout-verification-sheet {
    transform: translateY(0);
}

.payout-verification-close {
    position: absolute;
    top: 13px;
    right: 13px;
    display: grid;
    width: 32px;
    height: 32px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: var(--text);
    font-size: 23px;
}

.payout-verification-icon {
    display: grid;
    width: 52px;
    height: 52px;
    margin: 0 auto 13px;
    place-items: center;
    border-radius: 16px;
    background: rgba(102, 214, 106, 0.14);
    color: var(--green-bright);
    font-size: 24px;
}

.payout-verification-sheet h2 {
    margin: 0;
    font-size: 20px;
}

#payoutVerificationSummary {
    margin: 9px 0 0;
    color: var(--text);
    font-size: 14px;
    font-weight: 750;
}

.payout-verification-note {
    margin: 10px auto 17px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

#payoutVerificationForm {
    display: grid;
    gap: 12px;
}

.payout-verification-code {
    width: 100%;
    height: 58px;
    border: 1px solid var(--line);
    border-radius: 16px;
    outline: 0;
    background: #12202b;
    color: var(--text);
    font: 800 25px/1 Roboto, "Segoe UI", sans-serif;
    letter-spacing: 0.55em;
    text-align: center;
    text-indent: 0.55em;
}

.payout-verification-code:focus {
    border-color: rgba(102, 214, 106, 0.52);
    box-shadow: 0 0 0 3px rgba(102, 214, 106, 0.08);
}

.fiat-back-button {
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    cursor: pointer;
    font-size: 30px;
    line-height: 1;
}

.fiat-exchange-form {
    display: flex;
    min-height: calc(100vh - 86px - var(--app-safe-top) - var(--app-safe-bottom));
    padding-top: clamp(54px, 11vh, 92px);
    flex: 1;
    flex-direction: column;
}

.fiat-amount-block > label,
.fiat-field-label {
    display: block;
    margin-bottom: 5px;
    color: var(--muted);
    font-size: 16px;
    font-weight: 580;
}

.fiat-amount-line {
    display: flex;
    min-width: 0;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

#fiatFromAmount,
#fiatToAmount {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: clamp(30px, 9vw, 38px);
    font-weight: 700;
    letter-spacing: -0.025em;
}

#fiatFromAmount::placeholder {
    color: #718397;
}

.fiat-currency-pill {
    display: inline-flex;
    min-width: 86px;
    min-height: 36px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.04);
    border-radius: 19px;
    background: #26333f;
    flex: 0 0 auto;
}

.fiat-currency-pill img {
    display: block;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    object-fit: cover;
}

.fiat-currency-pill img[src*="usdt"] {
    padding: 3px;
    background: #53ae94;
    box-sizing: border-box;
    object-fit: contain;
}

.fiat-currency-pill strong {
    font-size: 14px;
    font-weight: 820;
}

.fiat-max-button {
    gap: 6px;
    margin-top: 10px;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--muted);
    cursor: pointer;
    font-size: 14px;
}

.fiat-max-button:not([hidden]) {
    display: inline-flex;
}

.fiat-max-button strong {
    color: var(--green-bright);
    font-weight: 750;
}

.fiat-rate-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 32px 0;
}

.fiat-swap-button {
    display: grid;
    width: 42px;
    height: 42px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #23313d;
    color: var(--green-bright);
    cursor: pointer;
    font-size: 21px;
    font-weight: 850;
}

.fiat-swap-button[hidden] {
    display: none;
}

.fiat-rate-line {
    height: 1px;
    background: rgba(255, 255, 255, 0.16);
    flex: 1;
}

.fiat-rate-row > strong {
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.fiat-tier-text {
    display: block;
    margin: -24px 0 24px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
    text-align: right;
}

.fiat-tier-text.is-error {
    color: #ff6972;
}

.fiat-tier-text[hidden] {
    display: none;
}

.fiat-receive-block {
    margin-bottom: 34px;
}

.fiat-form-footer {
    display: grid;
    gap: 10px;
    margin-top: auto;
}

.fiat-selection-row,
.provider-row {
    display: flex;
    width: 100%;
    min-height: 66px;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: linear-gradient(145deg, #1d2b38, #17232e);
    color: var(--text);
    text-align: left;
}

.fiat-selection-row {
    cursor: pointer;
}

.fiat-selection-logo {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    overflow: hidden;
    border-radius: 12px;
}

.sbp-logo-box {
    background: #ffffff;
}

.sbp-logo-box img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transform: scale(2.15);
}

.country-method-logo {
    border-radius: 50%;
}

.country-method-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swapora-provider-logo {
    background: transparent;
}

.swapora-provider-logo img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fiat-selection-copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
}

.fiat-selection-copy strong {
    font-size: 16px;
    font-weight: 830;
}

.fiat-selection-copy small {
    margin-top: 3px;
    overflow: hidden;
    color: var(--muted);
    font-size: 13px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.fiat-selection-arrow {
    color: var(--muted);
    font-size: 25px;
}

.fiat-primary-button {
    width: 100%;
    min-height: 51px;
    padding: 12px 18px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, var(--green-bright), var(--green));
    color: #07130b;
    cursor: pointer;
    font-size: 16px;
    font-weight: 850;
    box-shadow: 0 12px 28px rgba(81, 179, 84, 0.2);
}

.fiat-primary-button:disabled {
    opacity: 0.55;
    cursor: wait;
}

.provider-content {
    display: grid;
    gap: 30px;
    margin-top: 28px;
}

.provider-section h2 {
    margin: 0 0 9px 12px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 720;
    text-transform: uppercase;
}

.provider-row-selected {
    min-height: 70px;
}

.provider-amount {
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.provider-radio {
    width: 19px;
    height: 19px;
    flex: 0 0 19px;
    border: 5px solid var(--green-bright);
    border-radius: 50%;
    background: var(--text);
}

.provider-apply-button {
    margin-top: auto;
}

.fiat-close-button {
    font-size: 23px;
}

.fiat-confirmation-content {
    display: grid;
    gap: 12px;
    margin-top: 24px;
}

.fiat-confirmation-summary,
.fiat-confirmation-rate-card,
.fiat-confirmation-payment-row {
    border: 1px solid var(--line);
    background: linear-gradient(145deg, #1d2b38, #17232e);
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.14);
}

.fiat-confirmation-summary {
    padding: 14px 16px 13px;
    border-radius: 19px;
}

.fiat-confirmation-asset-row {
    display: grid;
    min-height: 51px;
    grid-template-columns: 34px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
}

.fiat-confirmation-asset-icon {
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
}

.fiat-confirmation-asset-icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.fiat-confirmation-usdt {
    padding: 6px;
    background: #52b99e;
}

.fiat-confirmation-usdt img {
    object-fit: contain;
}

.fiat-confirmation-asset-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.fiat-confirmation-asset-copy small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 560;
}

.fiat-confirmation-asset-copy strong {
    margin-top: 3px;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 17px;
    font-weight: 700;
}

.fiat-confirmation-divider {
    height: 1px;
    margin: 2px 0 2px 45px;
    background: var(--line);
}

.fiat-confirmation-summary p {
    margin: 13px 0 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.35;
}

.fiat-confirmation-rate-card {
    display: flex;
    min-height: 61px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 13px 16px;
    border-radius: 17px;
}

.fiat-confirmation-rate-card span {
    color: var(--muted);
    font-size: 14px;
}

.fiat-confirmation-rate-card strong {
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 700;
    white-space: nowrap;
}

.fiat-confirmation-payment {
    margin-top: 22px;
}

.fiat-confirmation-payment h2 {
    margin: 0 0 9px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 720;
    text-transform: uppercase;
}

.fiat-confirmation-payment-row {
    display: flex;
    min-height: 66px;
    align-items: center;
    gap: 11px;
    padding: 10px 13px;
    border-radius: 17px;
}

.fiat-confirmation-submit {
    margin-top: auto;
}

.fiat-numus-view {
    padding-bottom: calc(18px + env(safe-area-inset-bottom));
}

.fiat-numus-content {
    display: grid;
    gap: 12px;
    padding: 8px 12px 104px;
}

.fiat-numus-card {
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 22px;
    background: var(--surface);
}

.fiat-numus-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-size: 14px;
}

.fiat-numus-heading strong {
    color: var(--text);
    font: 700 20px/1.15 Roboto, sans-serif;
}

.fiat-numus-qr-wrap {
    width: min(72vw, 276px);
    aspect-ratio: 1;
    margin: 22px auto;
    padding: 14px;
    border-radius: 24px;
    background: #fff;
    box-shadow: 0 14px 36px rgba(0, 0, 0, .22);
}

.fiat-numus-qr-wrap img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.fiat-numus-status {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    min-height: 50px;
    text-align: left;
}

.fiat-numus-status strong,
.fiat-numus-status small {
    display: block;
}

.fiat-numus-status strong {
    font: 500 16px/1.25 Roboto, sans-serif;
}

.fiat-numus-status small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.fiat-numus-spinner {
    width: 26px;
    height: 26px;
    flex: 0 0 26px;
    border: 3px solid rgba(89, 207, 101, .18);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: fiat-numus-spin .85s linear infinite;
}

.fiat-numus-status.is-completed .fiat-numus-spinner {
    border: 0;
    background: var(--accent);
    animation: none;
}

.fiat-numus-status.is-completed .fiat-numus-spinner::after {
    content: "✓";
    display: grid;
    place-items: center;
    height: 100%;
    color: #07140d;
    font-weight: 700;
}

.fiat-numus-status.is-failed .fiat-numus-spinner {
    border: 0;
    background: #ff5964;
    animation: none;
}

.fiat-numus-status.is-failed .fiat-numus-spinner::after {
    content: "×";
    display: grid;
    place-items: center;
    height: 100%;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
}

.fiat-numus-note {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.4;
}

.fiat-numus-submit {
    position: absolute;
    right: 12px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
}

@keyframes fiat-numus-spin {
    to { transform: rotate(360deg); }
}

@media (max-height: 620px) {
    .fiat-exchange-form {
        padding-top: 36px;
    }

    .fiat-rate-row {
        margin: 24px 0;
    }

    .fiat-confirmation-content {
        margin-top: 17px;
    }

    .fiat-confirmation-payment {
        margin-top: 8px;
    }
}

.digital-assets-section {
    margin-top: 2px;
}

body.assets-overview-open .topbar,
body.assets-overview-open .bottom-nav {
    display: none;
}

body.assets-overview-open .app-shell {
    padding:
        max(12px, var(--app-safe-top))
        16px
        max(18px, var(--app-safe-bottom));
}

.assets-overview-view.active {
    position: relative;
    display: flex;
    min-height: calc(100vh - max(12px, var(--app-safe-top)));
    min-height: calc(100dvh - max(12px, var(--app-safe-top)));
    flex-direction: column;
    animation: assets-overview-enter 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.assets-overview-header {
    display: grid;
    min-height: 40px;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
}

.assets-overview-header h1 {
    margin: 0;
    overflow: hidden;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 760;
    text-align: center;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assets-overview-back {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.045);
    color: var(--text);
    cursor: pointer;
    font-size: 20px;
    transition: transform 150ms ease, background 150ms ease;
}

.assets-overview-back:active {
    background: rgba(102, 214, 106, 0.1);
    transform: scale(0.94);
}

.assets-overview-balance {
    display: flex;
    min-height: 70px;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.assets-overview-balance > strong {
    overflow: hidden;
    max-width: calc(100% - 72px);
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 38px;
    font-weight: 500;
    letter-spacing: -0.035em;
    line-height: 1;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assets-overview-balance-currency {
    color: var(--muted);
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 1;
}

.assets-overview-used {
    display: flex;
    min-height: 18px;
    align-items: baseline;
    justify-content: center;
    gap: 5px;
    margin: -6px 0 10px;
    color: rgba(178, 192, 205, 0.64);
    font-size: 11px;
    line-height: 1.15;
}

.assets-overview-used strong {
    color: rgba(222, 231, 238, 0.76);
    font: inherit;
    font-weight: 650;
}

.assets-overview-card-shelf {
    position: relative;
    display: flex;
    width: 100%;
    min-height: 66px;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    overflow: hidden;
    margin: 0 0 8px;
    padding: 13px 17px 18px;
    border: 1px solid rgba(83, 223, 131, 0.18);
    border-radius: 24px 24px 17px 17px;
    background:
        radial-gradient(circle at 84% -30%, rgba(83, 223, 131, 0.3), transparent 48%),
        linear-gradient(135deg, rgba(31, 76, 62, 0.96), rgba(16, 36, 41, 0.98) 58%, rgba(12, 27, 34, 0.99));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
    color: var(--text);
    cursor: pointer;
    text-align: left;
}

.assets-overview-card-shelf[hidden] {
    display: none;
}

.assets-overview-card-shelf::after {
    position: absolute;
    right: 62px;
    bottom: -35px;
    width: 118px;
    height: 88px;
    border: 1px solid rgba(83, 223, 131, 0.12);
    border-radius: 50%;
    content: "";
    transform: rotate(-14deg);
}

.assets-overview-card-shelf:active {
    transform: scale(0.985);
}

.assets-overview-card-label {
    position: relative;
    z-index: 1;
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}

.assets-overview-card-label small,
.assets-overview-card-label strong {
    overflow: hidden;
    font-family: Roboto, "Segoe UI", sans-serif;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.assets-overview-card-label small {
    font-size: 15px;
    font-weight: 700;
}

.assets-overview-card-label strong {
    color: rgba(236, 245, 241, 0.78);
    font-size: 13px;
    font-weight: 600;
}

.assets-overview-card-network {
    position: relative;
    z-index: 1;
    flex: 0 0 auto;
    color: #fff;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 13px;
    font-style: italic;
    font-weight: 900;
    letter-spacing: 0.025em;
}

.assets-overview-actions {
    margin: 0 0 6px;
}

.assets-overview-actions .wallet-action-icon {
    height: 42px;
    border-radius: 999px;
    background: linear-gradient(145deg, rgba(25, 55, 72, 0.88), rgba(14, 37, 51, 0.94));
    box-shadow: none;
}

.assets-overview-actions .wallet-action-button small {
    min-height: 28px;
    margin-top: 5px;
    font-size: 10px;
}

.assets-overview-carousel {
    margin-top: 0;
}

.assets-overview-list-section {
    margin-top: 0;
}

@keyframes assets-overview-enter {
    from { opacity: 0; transform: translateX(14px); }
    to { opacity: 1; transform: translateX(0); }
}

@media (prefers-reduced-motion: reduce) {
    .assets-overview-view.active {
        animation: none;
    }
}

.digital-assets-section h2 {
    margin: 0 0 11px;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 18px;
    font-weight: 700;
}

.digital-assets-list {
    display: grid;
    gap: 0;
    overflow: hidden;
    border: 1px solid transparent;
    border-radius: 18px;
    background: linear-gradient(145deg, #1d2b38, #17232e);
    box-shadow: none;
}

.digital-asset-row {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 64px;
    grid-template-columns: 42px minmax(0, 1fr) auto;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font: inherit;
    box-shadow: none;
    text-align: left;
}

.digital-asset-row + .digital-asset-row::before {
    position: absolute;
    top: 0;
    right: 14px;
    left: 67px;
    height: 1px;
    background: var(--line);
    content: "";
    pointer-events: none;
}

.digital-asset-logo {
    display: block;
    width: 42px;
    height: 42px;
    padding: 6px;
    border-radius: 50%;
    background: #53ae94;
    box-sizing: border-box;
    object-fit: contain;
    object-position: center;
}

.digital-asset-row[data-asset-code="TON"] .digital-asset-logo {
    padding: 0;
    background: transparent;
}

.digital-asset-row[data-asset-code="BTC"] .digital-asset-logo {
    padding: 0;
    background: transparent;
}

.digital-asset-copy,
.digital-asset-values {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.digital-asset-copy strong,
.digital-asset-values strong {
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.digital-asset-copy small,
.digital-asset-values small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 13px;
    font-weight: 620;
}

.digital-asset-values {
    align-items: flex-end;
    text-align: right;
}

.digital-asset-row.upcoming {
    min-height: 62px;
    cursor: default;
    box-shadow: none;
}

.digital-asset-row.upcoming .digital-asset-logo {
    width: 38px;
    height: 38px;
    padding: 0;
    background: transparent;
}

.digital-asset-soon {
    display: inline-flex;
    min-height: 28px;
    align-items: center;
    justify-content: center;
    padding: 4px 11px;
    border: 1px solid rgba(143, 164, 179, 0.12);
    border-radius: 999px;
    background: rgba(143, 164, 179, 0.12);
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
    line-height: 1;
    white-space: nowrap;
}

body.asset-detail-open .topbar,
body.asset-detail-open .bottom-nav {
    display: none;
}

body.asset-detail-open .app-shell {
    padding:
        max(12px, var(--app-safe-top))
        16px
        max(0px, var(--app-safe-bottom));
}

.asset-detail-view.active {
    position: relative;
    display: flex;
    min-height: calc(100vh - max(12px, var(--app-safe-top)));
    min-height: calc(100dvh - max(12px, var(--app-safe-top)));
    flex-direction: column;
}

.asset-detail-back {
    position: absolute;
    z-index: 2;
    top: 2px;
    left: 0;
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.04);
    color: var(--text);
    font-size: 20px;
}

.asset-detail-hero {
    display: flex;
    align-items: center;
    padding: 2px 44px 0;
    flex-direction: column;
    text-align: center;
}

.asset-detail-hero img {
    display: block;
    width: 62px;
    height: 62px;
    padding: 0;
    border-radius: 50%;
    object-fit: contain;
}

.asset-detail-hero strong {
    margin-top: 13px;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 32px;
}

.asset-detail-hero span {
    margin-top: 1px;
    color: #8da6d6;
    font-size: 15px;
    font-weight: 650;
}

.asset-detail-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 9px;
    margin-top: 21px;
}

.asset-detail-action {
    display: grid;
    min-width: 0;
    padding: 0;
    place-items: center;
    gap: 7px;
    border: 0;
    background: transparent;
    color: var(--text);
}

.asset-detail-action-icon {
    display: grid;
    width: 100%;
    height: 52px;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: linear-gradient(145deg, #1d2a36, #17222d);
    color: var(--green-bright);
    box-shadow: 0 9px 20px rgba(0, 0, 0, 0.12);
}

.asset-detail-action-icon svg {
    width: 24px;
    height: 24px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.asset-detail-action-icon.qr svg path:nth-child(2) {
    fill: currentColor;
    stroke: none;
}

.asset-detail-action small {
    min-height: 30px;
    color: var(--text);
    font-size: 11px;
    font-weight: 650;
    line-height: 1.15;
    text-align: center;
}

.asset-detail-action:active .asset-detail-action-icon {
    transform: scale(0.97);
}

.asset-detail-wallets {
    margin-top: 23px;
}

.asset-detail-wallets > h2,
.asset-detail-history-panel > h2 {
    margin: 0 0 10px;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 17px;
    font-weight: 500;
}

.asset-detail-wallet-list {
    display: grid;
    gap: 8px;
}

.asset-wallet-loading,
.asset-wallet-card {
    display: grid;
    min-height: 72px;
    align-items: center;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: linear-gradient(145deg, #1d2b38, #17232e);
}

.asset-wallet-loading {
    padding: 12px 15px;
    grid-template-columns: 24px minmax(0, 1fr);
    gap: 11px;
    color: var(--muted);
    font-size: 13px;
}

.asset-wallet-loading > span {
    width: 20px;
    height: 20px;
    border: 2px solid rgba(102, 214, 106, 0.22);
    border-top-color: var(--green-bright);
    border-radius: 50%;
    animation: asset-wallet-spin 0.8s linear infinite;
}

@keyframes asset-wallet-spin {
    to {
        transform: rotate(360deg);
    }
}

.asset-wallet-card {
    padding: 10px 11px;
    grid-template-columns: 38px minmax(0, 1fr) auto;
    gap: 10px;
}

.asset-wallet-card.unavailable {
    grid-template-columns: 38px minmax(0, 1fr) auto;
    opacity: 0.82;
}

.asset-wallet-card.unavailable > img {
    width: 38px;
    height: 38px;
}

.asset-wallet-network-icon {
    position: relative;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    border-radius: 50%;
    background: rgba(102, 214, 106, 0.1);
}

.asset-wallet-network-icon img {
    width: 34px;
    height: 34px;
    object-fit: contain;
}

.asset-wallet-copy {
    display: flex;
    min-width: 0;
    flex-direction: column;
}

.asset-wallet-copy strong {
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 700;
}

.asset-wallet-copy code {
    max-width: 100%;
    margin-top: 2px;
    overflow: hidden;
    color: var(--text);
    font-family: Roboto Mono, ui-monospace, SFMono-Regular, Consolas, monospace;
    font-size: 12px;
    font-weight: 650;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.asset-wallet-copy small {
    margin-top: 3px;
    color: #8da6d6;
    font-size: 11px;
    font-weight: 600;
}

.asset-wallet-actions {
    display: flex;
    gap: 6px;
}

.asset-wallet-action,
.asset-wallet-retry {
    display: grid;
    place-items: center;
    border: 0;
    border-radius: 11px;
    background: rgba(255, 255, 255, 0.055);
    color: var(--muted);
}

.asset-wallet-action {
    width: 38px;
    height: 38px;
    padding: 0;
}

.asset-wallet-action svg {
    width: 21px;
    height: 21px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.asset-wallet-action svg path:nth-child(2):not(:only-child) {
    stroke: currentColor;
}

.asset-wallet-retry {
    min-height: 34px;
    padding: 0 10px;
    color: var(--green-bright);
    font-size: 11px;
    font-weight: 750;
}

.asset-detail-history-panel {
    min-height: 310px;
    margin: 28px -16px 0;
    padding:
        20px 16px
        calc(28px + var(--app-safe-bottom));
    flex: 1;
    border-top: 1px solid var(--line);
    border-radius: 22px 22px 0 0;
    background: linear-gradient(160deg, #16232f, #111a24);
}

.asset-detail-filter-bar {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 7px;
    margin-bottom: 20px;
}

.asset-detail-filter-bar .history-filter-chip {
    width: 100%;
    min-height: 36px;
}

.asset-history-empty {
    min-height: 170px;
}

@media (max-width: 360px) {
    .asset-detail-actions {
        gap: 6px;
    }

    .asset-detail-action-icon {
        height: 49px;
    }

    .asset-detail-action small {
        font-size: 10px;
    }

    .asset-wallet-card {
        padding-right: 8px;
    }

    .asset-wallet-actions {
        gap: 4px;
    }

    .asset-wallet-action {
        width: 34px;
        height: 36px;
    }
}

@media (max-width: 360px) {
    .wallet-actions {
        gap: 6px;
    }

    .wallet-action-icon {
        height: 48px;
        border-radius: 14px;
        font-size: 22px;
    }

    .wallet-action-button small {
        font-size: 10px;
    }
}


/* Balance currency selector and rate-based quote */
.currency-overlay {
    position: fixed;
    z-index: 98;
    inset: 0;
    overflow-y: auto;
    background: rgba(4, 9, 15, 0.74);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    backdrop-filter: blur(7px);
}

.currency-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.currency-sheet {
    width: min(100%, 560px);
    min-height: 100vh;
    margin: 0 auto;
    padding:
        max(18px, var(--app-safe-top))
        16px
        max(26px, calc(24px + var(--app-safe-bottom)));
    background:
        radial-gradient(circle at 82% -8%, rgba(102, 214, 106, 0.12), transparent 31%),
        var(--bg);
    color: var(--text);
    transform: translateX(16px);
    transition: transform 0.24s ease;
}

.currency-overlay.visible .currency-sheet {
    transform: translateX(0);
}

.currency-sheet-top {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 10px;
    margin-bottom: 18px;
}

.currency-sheet-top h2 {
    margin: 0;
    text-align: center;
    font-size: 19px;
    font-weight: 880;
}

.currency-search-field {
    display: flex;
    min-height: 52px;
    align-items: center;
    gap: 10px;
    margin-bottom: 12px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 17px;
    background: linear-gradient(145deg, #1d2a37, #18242f);
}

.currency-search-icon {
    color: var(--muted);
    font-size: 21px;
}

.currency-search-field input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 15px;
}

.currency-search-field input::placeholder {
    color: var(--muted);
}

.currency-list {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(145deg, #192632, #141f2a);
    box-shadow: 0 16px 38px rgba(0, 0, 0, 0.16);
}

.currency-row {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 72px;
    grid-template-columns: 42px minmax(0, 1fr) auto 20px;
    align-items: center;
    gap: 11px;
    padding: 10px 14px;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    text-align: left;
}

.currency-row + .currency-row::before {
    position: absolute;
    top: 0;
    right: 14px;
    left: 67px;
    height: 1px;
    background: var(--line);
    content: "";
}

.currency-row:disabled {
    opacity: 0.55;
    cursor: wait;
}

.currency-flag {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    overflow: hidden;
    border-radius: 50%;
    background: #202d39;
    font-size: 28px;
    line-height: 1;
}

.currency-flag img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.currency-row-copy {
    min-width: 0;
}

.currency-row-copy strong,
.currency-row-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.currency-row-copy strong {
    font-size: 16px;
    font-weight: 870;
}

.currency-row-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.currency-row-balance {
    max-width: 120px;
    overflow: hidden;
    color: var(--muted);
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.currency-radio {
    width: 19px;
    height: 19px;
    border: 2px solid #52606d;
    border-radius: 50%;
}

.currency-radio.selected {
    border: 5px solid var(--green-bright);
    background: #f6faf7;
}

.exchange-quote {
    display: grid;
    gap: 4px;
    padding: 14px;
    border: 1px solid rgba(102, 214, 106, 0.16);
    border-radius: 15px;
    background: rgba(102, 214, 106, 0.07);
}

.exchange-quote span,
.exchange-quote small {
    color: var(--muted);
    font-size: 12px;
}

.exchange-quote strong {
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 19px;
    font-weight: 700;
}

.exchange-view.active {
    display: flex;
    min-height: calc(
        100dvh
        - max(24px, var(--app-safe-top))
        - max(24px, var(--app-safe-bottom))
    );
    flex-direction: column;
    font-family: Roboto, "Segoe UI", sans-serif;
}

.exchange-page-header {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    align-items: center;
    margin-bottom: 20px;
}

.exchange-page-header .back-button {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border-radius: 50%;
    font-size: 19px;
    line-height: 1;
}

.exchange-page-header h1 {
    margin: 0;
    text-align: center;
    font-size: 20px;
    font-weight: 700;
    line-height: 1.2;
}

.exchange-form {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
}

.exchange-card {
    position: relative;
    padding: 13px 16px 15px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, var(--panel-soft), var(--panel));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.exchange-card-heading {
    display: flex;
    min-height: 24px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.exchange-card-heading > strong {
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.25;
}

.exchange-asset-picker {
    position: relative;
    display: inline-flex;
    width: auto;
    min-width: 86px;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    color: var(--text);
    cursor: pointer;
}

.exchange-asset-picker img {
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    border-radius: 50%;
    object-fit: cover;
}

.exchange-asset-picker b {
    font-size: 14px;
    font-weight: 700;
    line-height: 1;
}

.exchange-asset-picker i {
    margin-left: 1px;
    color: var(--muted);
    font-size: 22px;
    font-style: normal;
    font-weight: 500;
    line-height: 0.8;
}

.exchange-asset-picker select {
    position: absolute;
    z-index: 2;
    inset: 0;
    width: 100%;
    min-height: 0;
    padding: 0;
    border: 0;
    opacity: 0;
    cursor: pointer;
}

.exchange-amount-control {
    display: grid;
    min-height: 52px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 10px;
    margin-top: 9px;
    padding: 0 14px;
    border: 1px solid rgba(255, 255, 255, 0.035);
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.065);
}

.exchange-amount-control input {
    width: 100%;
    min-width: 0;
    min-height: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: transparent;
    color: var(--text);
    font-size: 18px;
    font-weight: 500;
    outline: 0;
}

.exchange-amount-control input::placeholder,
.exchange-receive-control input {
    color: var(--muted);
    opacity: 1;
}

.exchange-amount-control button {
    padding: 6px 0 6px 9px;
    border: 0;
    background: transparent;
    color: var(--green-bright);
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
}

.exchange-meta-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
    align-items: center;
    gap: 14px;
    margin-top: 11px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.25;
}

.exchange-meta-row + .exchange-meta-row {
    margin-top: 12px;
}

.exchange-meta-row strong {
    max-width: 230px;
    overflow: hidden;
    color: var(--text);
    font-size: 14px;
    font-weight: 700;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.exchange-swap-button {
    z-index: 2;
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    place-items: center;
    margin: -11px auto;
    padding: 0;
    border: 4px solid var(--bg);
    border-radius: 50%;
    background: #111c2b;
    color: var(--green-bright);
    cursor: pointer;
    font-size: 21px;
    line-height: 1;
}

.exchange-swap-button:active {
    transform: scale(0.96);
}

.exchange-rate-note {
    margin: 13px 1px 18px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 500;
    line-height: 1.3;
}

.exchange-continue-button {
    width: 100%;
    min-height: 52px;
    margin-top: auto;
    border: 0;
    border-radius: 13px;
    background: linear-gradient(135deg, var(--green-bright), var(--green));
    color: #07120b;
    cursor: pointer;
    font-size: 16px;
    font-weight: 700;
}

.exchange-continue-button:disabled {
    cursor: wait;
    opacity: 0.6;
}

@media (max-width: 400px) {
    .currency-row {
        grid-template-columns: 42px minmax(0, 1fr) 20px;
    }

    .currency-row-balance {
        grid-column: 2 / 3;
        margin-top: -8px;
    }

    .currency-radio {
        grid-column: 3;
        grid-row: 1 / span 2;
    }
}


/* Wallet top-up bottom sheet */
.top-up-overlay {
    position: fixed;
    /* Keep the complete modal, including its backdrop, above the floating
       navigation (z-index: 100) until the user closes the sheet. */
    z-index: 140;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow-x: hidden;
    background: rgba(3, 8, 13, 0.76);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    backdrop-filter: blur(6px);
}

.top-up-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.top-up-sheet {
    width: min(100%, 560px);
    max-height: min(72vh, 620px);
    overflow-x: hidden;
    overflow-y: auto;
    padding: 9px 12px max(18px, var(--app-safe-bottom));
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background:
        radial-gradient(circle at 80% 0%, rgba(102, 214, 106, 0.12), transparent 34%),
        #101a23;
    color: var(--text);
    box-shadow: 0 -24px 70px rgba(0, 0, 0, 0.38);
    transform: translateY(105%);
    transition: transform 0.28s cubic-bezier(0.2, 0.78, 0.2, 1);
}

.top-up-overlay.visible .top-up-sheet {
    transform: translateY(0);
}

.top-up-sheet .sheet-handle {
    margin-top: 1px;
    margin-bottom: 7px;
}

.top-up-sheet-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
}

.top-up-sheet-top h2 {
    margin: 0;
    overflow: hidden;
    font-size: 19px;
    font-weight: 880;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-up-close-button {
    display: grid;
    width: 38px;
    height: 38px;
    padding: 0;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    cursor: pointer;
    font-size: 25px;
    line-height: 1;
}

.top-up-options {
    display: grid;
    width: 100%;
    gap: 9px;
    overflow: hidden;
    padding: 0 6px;
}

.top-up-option {
    display: flex;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    min-height: 64px;
    align-items: center;
    gap: 10px;
    padding: 9px 12px;
    border: 0;
    border-radius: 18px;
    background: linear-gradient(145deg, #1d2b38, #17232e);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.018);
    outline: none;
}

.top-up-option-icon {
    display: grid;
    width: 40px;
    height: 40px;
    flex: 0 0 40px;
    place-items: center;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(102, 214, 106, 0.34), rgba(81, 179, 84, 0.18));
    color: #effff1;
}

.top-up-icon {
    position: relative;
    display: block;
    box-sizing: border-box;
}

.top-up-icon-wallet {
    width: 24px;
    height: 17px;
    margin-top: 3px;
    border: 2px solid currentColor;
    border-radius: 5px;
}

.top-up-icon-wallet::before {
    position: absolute;
    top: -7px;
    left: 2px;
    width: 15px;
    height: 6px;
    border: 2px solid currentColor;
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
    box-sizing: border-box;
    content: "";
}

.top-up-icon-wallet::after {
    position: absolute;
    top: 4px;
    right: -3px;
    width: 9px;
    height: 7px;
    border-radius: 4px;
    background: currentColor;
    content: "";
}

.top-up-icon-fiat {
    width: 24px;
    height: 16px;
    margin-top: 5px;
    border: 2px solid currentColor;
    border-radius: 5px;
}

.top-up-icon-fiat::before {
    position: absolute;
    top: -9px;
    left: 4px;
    display: grid;
    width: 13px;
    height: 13px;
    place-items: center;
    border-radius: 50%;
    background: currentColor;
    content: "";
}

.top-up-icon-fiat::after {
    position: absolute;
    top: -9px;
    left: 7px;
    color: #2b6f42;
    content: "+";
    font-size: 13px;
    font-weight: 900;
    line-height: 13px;
}

.top-up-option-copy {
    min-width: 0;
    flex: 1;
}

.top-up-option-copy strong,
.top-up-option-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.top-up-option-copy strong {
    font-size: 15px;
    font-weight: 850;
}

.top-up-option-copy small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 12px;
}

.top-up-option-arrow {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 24px;
    line-height: 1;
}

.top-up-option:active,
.top-up-close-button:active {
    transform: scale(0.98);
}


/* Personal custodial USDT deposit address */
.crypto-deposit-overlay {
    position: fixed;
    z-index: 110;
    inset: 0;
    overflow-y: auto;
    background: rgba(3, 8, 13, 0.88);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.22s ease;
    backdrop-filter: blur(7px);
}

.crypto-deposit-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.crypto-deposit-sheet {
    width: min(100%, 560px);
    min-height: 100%;
    margin: 0 auto;
    padding:
        max(18px, var(--app-safe-top))
        15px
        max(24px, calc(18px + var(--app-safe-bottom)));
    background:
        radial-gradient(circle at 95% 2%, rgba(102, 214, 106, 0.15), transparent 28%),
        var(--bg);
    color: var(--text);
    transform: translateY(14px);
    transition: transform 0.24s ease;
}

.crypto-deposit-overlay.visible .crypto-deposit-sheet {
    transform: translateY(0);
}

.crypto-deposit-select-sheet {
    display: flex;
    flex-direction: column;
    padding-bottom: max(12px, calc(8px + var(--app-safe-bottom)));
}

.crypto-deposit-select-top {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 10px;
}

.crypto-deposit-select-top h1 {
    margin: 0;
    text-align: center;
    font-size: 21px;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.crypto-deposit-select-section {
    display: grid;
    gap: 8px;
    margin-top: 24px;
}

.crypto-deposit-select-section.network-section {
    margin-top: 22px;
}

.crypto-deposit-select-section > h2 {
    margin: 0 0 8px;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.015em;
}

.crypto-asset-picker {
    display: grid;
    grid-auto-columns: 106px;
    grid-auto-flow: column;
    gap: 10px;
    overflow-x: auto;
    padding: 1px;
    scrollbar-width: none;
    overscroll-behavior-inline: contain;
    scroll-snap-type: inline mandatory;
}

.crypto-asset-picker::-webkit-scrollbar {
    display: none;
}

.crypto-asset-choice {
    position: relative;
    display: flex;
    min-width: 0;
    height: 106px;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    gap: 8px;
    padding: 12px 12px 10px;
    border: 1.5px solid var(--line);
    border-radius: 17px;
    background: linear-gradient(145deg, rgba(28, 51, 61, 0.98), rgba(19, 38, 47, 0.98));
    box-shadow: 0 0 0 1px rgba(102, 214, 106, 0.06) inset;
    color: var(--text);
    text-align: left;
    cursor: pointer;
    scroll-snap-align: start;
}

.crypto-asset-choice.selected {
    border-color: rgba(102, 214, 106, 0.82);
    box-shadow: 0 0 0 1px rgba(102, 214, 106, 0.1) inset,
        0 8px 24px rgba(38, 126, 70, 0.12);
}

.crypto-asset-choice > img {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.crypto-asset-choice > span {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 3px;
}

.crypto-asset-choice strong {
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 17px;
    font-weight: 700;
}

.crypto-asset-choice small {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crypto-asset-choice > i {
    position: absolute;
    top: 11px;
    right: 10px;
    display: grid;
    width: 18px;
    height: 18px;
    place-items: center;
    border-radius: 50%;
    background: var(--green-bright);
    color: #07120b;
    font-size: 11px;
    font-style: normal;
    font-weight: 950;
    opacity: 0;
}

.crypto-asset-choice.selected > i {
    opacity: 1;
}

.crypto-deposit-top {
    display: grid;
    grid-template-columns: 40px minmax(0, 1fr) 40px;
    align-items: center;
    gap: 10px;
}

.crypto-deposit-test-badge {
    justify-self: center;
    padding: 6px 10px;
    border: 1px solid rgba(255, 199, 81, 0.28);
    border-radius: 999px;
    background: rgba(255, 199, 81, 0.12);
    color: #ffd477;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.crypto-network-picker {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(145deg, #192936, #15222d);
}

.crypto-network-choice {
    position: relative;
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 20px;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 68px;
    padding: 10px 14px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.crypto-network-choice[hidden] {
    display: none;
}

.crypto-network-choice img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.crypto-network-choice span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.crypto-network-choice strong {
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 16px;
    font-weight: 700;
}

.crypto-network-choice small {
    overflow: hidden;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.crypto-network-choice i {
    width: 20px;
    height: 20px;
    border: 2px solid #617586;
    border-radius: 50%;
}

.crypto-network-choice.active {
    background: rgba(102, 214, 106, 0.055);
}

.crypto-network-choice.active i {
    border: 6px solid var(--green-bright);
    background: #fff;
}

.crypto-network-choice:last-child {
    border-bottom: 0;
}

.crypto-network-choice:active {
    transform: scale(0.98);
}

.crypto-deposit-continue {
    position: sticky;
    bottom: max(4px, var(--app-safe-bottom));
    width: 100%;
    min-height: 52px;
    margin-top: auto;
    padding: 0 18px;
    border: 0;
    border-radius: 16px;
    background: linear-gradient(145deg, var(--green-bright), #51b354);
    color: #07120b;
    box-shadow: 0 16px 38px rgba(64, 187, 91, 0.2);
    cursor: pointer;
    font-size: 16px;
    font-weight: 900;
}

.crypto-deposit-sheet > h1 {
    margin: 20px 0 18px;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 28px;
    font-weight: 700;
    line-height: 32px;
    letter-spacing: -0.02em;
}

.crypto-deposit-loading {
    display: grid;
    min-height: 280px;
    place-items: center;
    color: var(--muted);
    font-weight: 700;
}

.crypto-deposit-loading[hidden],
#cryptoDepositContent[hidden] {
    display: none !important;
}

.crypto-deposit-card {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 22px;
    background: linear-gradient(150deg, #1d2d39, #17232e);
    box-shadow: 0 18px 44px rgba(0, 0, 0, 0.22);
}

.crypto-deposit-qr-wrap {
    position: relative;
    display: grid;
    min-height: 236px;
    padding: 16px;
    place-items: center;
    background:
        radial-gradient(circle at 76% 10%, rgba(255, 255, 255, 0.13), transparent 30%),
        linear-gradient(145deg, #53c99f, #2eaa81);
}

#cryptoDepositQr {
    display: block;
    width: min(68vw, 214px);
    height: min(68vw, 214px);
    border: 8px solid #fff;
    border-radius: 18px;
    background: #fff;
    image-rendering: pixelated;
}

.crypto-deposit-qr-logo {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 36px;
    height: 36px;
    padding: 3px;
    border: 4px solid #fff;
    border-radius: 50%;
    background: #fff;
    object-fit: contain;
    transform: translate(-50%, -50%);
}

.crypto-deposit-address-row {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 16px 10px;
}

.crypto-deposit-address-row code {
    min-width: 0;
    flex: 1;
    overflow-wrap: anywhere;
    color: var(--text);
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 15px;
    font-weight: 700;
    line-height: 1.35;
}

.crypto-address-action {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #91a2b2;
    cursor: pointer;
    transition: color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.crypto-address-action svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.crypto-address-action:hover {
    background: rgba(145, 162, 178, 0.1);
    color: var(--text);
}

.crypto-address-action:active {
    transform: scale(0.92);
}

.crypto-address-action.copied {
    background: rgba(102, 214, 106, 0.13);
    color: var(--green-bright);
}

.crypto-deposit-card p {
    margin: 0;
    padding: 8px 16px 18px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.45;
}

.crypto-deposit-watcher-notice {
    margin: 12px 2px 0;
    padding: 11px 13px;
    border: 1px solid rgba(255, 199, 81, 0.2);
    border-radius: 13px;
    background: rgba(255, 199, 81, 0.08);
    color: #dec98f;
    font-size: 12px;
    line-height: 1.4;
}

.crypto-deposit-watcher-notice.active {
    border-color: rgba(102, 214, 106, 0.18);
    background: rgba(102, 214, 106, 0.07);
    color: #a9c9ae;
}

.crypto-deposit-fee-row {
    display: flex;
    min-height: 45px;
    align-items: center;
    gap: 7px;
    padding: 10px 4px 0;
    color: var(--muted);
    font-size: 12px;
}

.crypto-deposit-fee-info {
    display: grid;
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    place-items: center;
    border-radius: 50%;
    background: #81909f;
    color: #0e1821;
    font-size: 11px;
    font-weight: 900;
}

.crypto-deposit-fee-row strong {
    color: var(--text);
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 12px;
    font-weight: 700;
}

.crypto-deposit-fee-help {
    display: grid;
    width: 20px;
    height: 20px;
    padding: 0;
    place-items: center;
    border: 2px solid var(--green-bright);
    border-radius: 50%;
    background: rgba(102, 214, 106, 0.08);
    color: var(--green-bright);
    font-size: 12px;
    font-weight: 900;
    line-height: 1;
}

.crypto-deposit-fee-overlay {
    z-index: 118;
}

.crypto-deposit-fee-sheet {
    width: min(100%, 560px);
    max-height: calc(100dvh - 70px);
    margin: 0 auto;
    padding: 8px 20px calc(20px + var(--app-safe-bottom));
    overflow-y: auto;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 25px 25px 0 0;
    background: linear-gradient(155deg, #1c2a37, #101a23);
    box-shadow: 0 -28px 70px rgba(0, 0, 0, 0.52);
    transform: translateY(30px);
    transition: transform 190ms ease;
}

.settings-bottom-overlay.visible .crypto-deposit-fee-sheet {
    transform: translateY(0);
}

.crypto-deposit-fee-header {
    display: grid;
    grid-template-columns: 1fr 38px;
    align-items: center;
    margin: -2px 0 2px;
}

.crypto-deposit-fee-header button {
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.07);
    color: var(--text);
    font-size: 24px;
}

.crypto-deposit-fee-formula {
    width: fit-content;
    margin: 3px auto 14px;
    padding: 6px 11px;
    border-radius: 9px;
    background: var(--green-bright);
    color: #07120b;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 17px;
    font-weight: 700;
}

.crypto-deposit-fee-sheet > h2 {
    margin: 0 0 22px;
    font-size: 22px;
    font-weight: 900;
    text-align: center;
}

.crypto-deposit-fee-section + .crypto-deposit-fee-section {
    margin-top: 25px;
}

.crypto-deposit-fee-label {
    display: flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 12px;
}

.crypto-deposit-fee-label > span {
    display: grid;
    width: 31px;
    height: 31px;
    place-items: center;
    border-radius: 50%;
    background: rgba(102, 214, 106, 0.12);
    color: var(--green-bright);
    font-size: 14px;
    font-weight: 900;
}

.crypto-deposit-fee-label > strong {
    padding: 5px 10px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 13px;
    font-weight: 850;
}

.crypto-deposit-fee-label svg {
    width: 19px;
    height: 19px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.crypto-deposit-fee-section h3 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 900;
}

.crypto-deposit-fee-section p,
.crypto-deposit-fee-note {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 620;
    line-height: 1.48;
}

.crypto-deposit-fee-note {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px solid var(--line);
    text-align: center;
}

.crypto-deposit-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-top: 15px;
}

.crypto-deposit-actions button {
    min-height: 51px;
    padding: 10px 12px;
    border-radius: 15px;
    cursor: pointer;
    font-size: 15px;
    font-weight: 850;
}

.crypto-deposit-secondary {
    border: 1px solid var(--line);
    background: #192734;
    color: var(--green-bright);
}

.crypto-deposit-primary {
    border: 1px solid transparent;
    background: linear-gradient(145deg, var(--green-bright), #51b354);
    color: #07120b;
}

.crypto-address-action:active,
.crypto-deposit-actions button:active {
    transform: scale(0.98);
}

.history-page-header {
    margin: 2px 0 14px;
}

.history-page-header h1 {
    margin: 0;
    font-size: 23px;
    font-weight: 900;
    letter-spacing: -0.025em;
}

.history-filter-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    margin: 0 0 22px;
}

.history-filter-chip {
    display: flex;
    width: auto;
    min-width: 0;
    min-height: 34px;
    padding: 0 11px;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: rgba(27, 41, 53, 0.78);
    color: var(--text);
    font-size: 12px;
    font-weight: 820;
    white-space: nowrap;
}

.history-filter-chip > span {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-filter-chip i {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 12px;
    font-style: normal;
    transform: translateY(-1px);
}

@media (max-width: 360px) {
    .history-filter-bar {
        gap: 4px;
    }

    .history-filter-chip {
        min-height: 32px;
        padding: 0 9px;
        gap: 4px;
        font-size: 11px;
    }
}

.history-filter-chip.active {
    border-color: transparent;
    background: rgba(102, 214, 106, 0.11);
    color: var(--green-bright);
}

.transaction-history-list,
.history-date-group,
.history-date-list {
    display: grid;
}

.transaction-history-list {
    gap: 21px;
}

.history-date-group {
    gap: 8px;
}

.history-date-group h2 {
    margin: 0 3px;
    color: #8da6d6;
    font-size: 14px;
    font-weight: 720;
    text-transform: capitalize;
}

.history-date-list {
    gap: 3px;
}

.history-transaction-row {
    display: grid;
    width: 100%;
    min-height: 62px;
    padding: 7px 2px;
    grid-template-columns: 44px minmax(0, 1fr) max-content;
    align-items: center;
    gap: 10px;
    border: 0;
    border-radius: 15px;
    background: transparent;
    color: var(--text);
    text-align: left;
}

.history-transaction-row:active {
    background: rgba(102, 214, 106, 0.06);
    transform: scale(0.99);
}

.history-transaction-icon,
.history-mini-icon {
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: #1f2c39;
    color: var(--green-bright);
}

.history-transaction-icon {
    width: 42px;
    height: 42px;
}

.history-transaction-icon img {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    object-fit: contain;
}

.history-transaction-icon img[src*="sbp"] {
    width: 24px;
    height: 24px;
    border-radius: 7px;
}

.history-transaction-icon svg,
.transaction-details-icon svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.history-transaction-copy {
    min-width: 0;
}

.history-transaction-copy strong,
.history-transaction-copy small {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.history-transaction-copy strong {
    font-size: 14px;
    font-weight: 850;
}

.history-transaction-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.history-transaction-value {
    max-width: 128px;
    color: var(--text);
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 13px;
    font-weight: 700;
    text-align: right;
    white-space: nowrap;
}

.history-transaction-row.status-success.type-deposit .history-transaction-value,
.transaction-details-sheet h2.status-success,
.transaction-details-status.status-success,
.transaction-detail-row.status-success strong {
    color: #4cdd75;
}

.history-transaction-row.status-error .history-transaction-value,
.history-transaction-row.status-error .history-transaction-copy small,
.transaction-details-sheet h2.status-error,
.transaction-details-status.status-error,
.transaction-detail-row.status-error strong {
    color: #ff626c;
}

.history-transaction-row.status-pending .history-transaction-copy small,
.transaction-details-status.status-pending,
.transaction-detail-row.status-pending strong {
    color: #e3b94e;
}

.history-empty-state {
    display: grid;
    min-height: 230px;
    padding: 30px;
    place-items: center;
    align-content: center;
    gap: 13px;
    color: var(--muted);
    text-align: center;
}

.history-empty-state span {
    display: grid;
    width: 54px;
    height: 54px;
    place-items: center;
    border-radius: 18px;
    background: rgba(102, 214, 106, 0.1);
    color: var(--green-bright);
    font-size: 25px;
}

.history-empty-state strong {
    max-width: 260px;
    font-size: 14px;
    line-height: 1.45;
}

.history-filter-overlay {
    z-index: 108;
}

.history-filter-sheet {
    display: flex;
    width: min(100%, 560px);
    min-height: min(630px, calc(100dvh - 34px));
    max-height: calc(100dvh - 18px);
    margin: 0 auto;
    padding: 8px 16px calc(17px + var(--app-safe-bottom));
    flex-direction: column;
    overflow-y: auto;
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background: linear-gradient(160deg, #172631, #0d171f);
    box-shadow: 0 -28px 70px rgba(0, 0, 0, 0.5);
    transform: translateY(30px);
    transition: transform 190ms ease;
}

.settings-bottom-overlay.visible .history-filter-sheet {
    transform: translateY(0);
}

.history-filter-options {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, #1c2936, #17232e);
}

.history-filter-options.history-filter-single {
    overflow: visible;
    border: 0;
    border-radius: 0;
    background: transparent;
}

.history-filter-option {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 55px;
    padding: 8px 14px;
    grid-template-columns: auto minmax(0, 1fr) 22px;
    align-items: center;
    gap: 11px;
    border: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
}

.history-filter-option + .history-filter-option::before {
    position: absolute;
    top: 0;
    right: 14px;
    left: 14px;
    height: 1px;
    background: var(--line);
    content: "";
}

.history-filter-option:only-child,
.history-all-option {
    margin-bottom: 12px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: linear-gradient(145deg, #1c2936, #17232e);
}

.history-all-option {
    grid-template-columns: minmax(0, 1fr) 22px;
}

.history-filter-option strong,
.history-filter-option small {
    display: block;
}

.history-filter-option strong {
    font-size: 14px;
    font-weight: 850;
}

.history-filter-option small {
    margin-top: 3px;
    color: var(--muted);
    font-size: 11px;
}

.history-mini-icon {
    width: 34px;
    height: 34px;
    border-radius: 11px;
    font-size: 18px;
}

.history-mini-icon.credit {
    color: #4cdd75;
}

.history-mini-icon.debit {
    color: #55a9ff;
}

.history-filter-radio {
    width: 20px;
    height: 20px;
    border: 2px solid #586878;
    border-radius: 50%;
}

.history-filter-option.selected .history-filter-radio {
    border-color: var(--green-bright);
    background: var(--green-bright);
    box-shadow: inset 0 0 0 4px #17232e;
}

.history-currency-icon {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    object-fit: cover;
}

.history-calendar {
    padding: 14px 12px 16px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: linear-gradient(145deg, #1c2936, #17232e);
}

.history-calendar > header {
    display: grid;
    grid-template-columns: 38px 1fr 38px;
    align-items: center;
    margin-bottom: 13px;
}

.history-calendar > header strong {
    text-align: center;
    text-transform: capitalize;
}

.history-calendar > header button {
    display: grid;
    width: 36px;
    height: 36px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--text);
    font-size: 25px;
}

.history-calendar > header button:disabled {
    opacity: 0.25;
}

.history-calendar-weekdays,
.history-calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 3px;
}

.history-calendar-weekdays {
    margin-bottom: 5px;
}

.history-calendar-weekdays span {
    color: var(--muted);
    font-size: 11px;
    font-weight: 800;
    text-align: center;
}

.history-calendar-day {
    position: relative;
    display: grid;
    min-width: 0;
    aspect-ratio: 1;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--text);
    font-size: 13px;
    font-weight: 780;
}

.history-calendar-day.outside,
.history-calendar-day:disabled {
    color: #56626d;
}

.history-calendar-day.today::after {
    position: absolute;
    bottom: 3px;
    width: 4px;
    height: 4px;
    border-radius: 50%;
    background: var(--green-bright);
    content: "";
}

.history-calendar-day.selected {
    background: var(--green);
    color: #07120b;
}

.history-calendar-day.selected::after {
    background: #07120b;
}

.history-filter-apply {
    flex: 0 0 auto;
    margin-top: auto;
}

.transaction-details-overlay {
    z-index: 110;
}

.transaction-details-sheet {
    padding-right: 20px;
    padding-left: 20px;
}

.transaction-details-header {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 8px;
}

.transaction-details-header > strong {
    font-size: 13px;
    text-align: center;
}

.transaction-details-icon {
    position: relative;
    display: grid;
    width: 76px;
    height: 76px;
    margin: 28px auto 0;
    place-items: center;
    border-radius: 50%;
    background: #1d2936;
    color: var(--green-bright);
}

.transaction-details-icon img {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    object-fit: contain;
}

.transaction-details-icon img[src*="sbp"] {
    width: 42px;
    height: 42px;
    border-radius: 13px;
}

.transaction-details-icon.status-success::after {
    position: absolute;
    top: -2px;
    right: -2px;
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    border: 3px solid var(--bg);
    border-radius: 50%;
    background: #4cdd75;
    color: #07120b;
    content: "✓";
    font-size: 12px;
    font-weight: 900;
}

.transaction-details-sheet > h2 {
    margin: 27px 0 0;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 27px;
    font-weight: 700;
    text-align: center;
}

.transaction-details-status {
    margin: 7px 0 30px;
    font-size: 13px;
    font-weight: 800;
    text-align: center;
}

.transaction-details-group {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, #1c2936, #17232e);
}

.transaction-detail-row {
    position: relative;
    display: grid;
    min-height: 49px;
    padding: 10px 15px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
    align-items: center;
    gap: 14px;
}

.transaction-detail-row + .transaction-detail-row::before {
    position: absolute;
    top: 0;
    right: 15px;
    left: 15px;
    height: 1px;
    background: var(--line);
    content: "";
}

.transaction-detail-row span {
    color: var(--muted);
    font-size: 12px;
}

.transaction-detail-row strong {
    overflow: hidden;
    font-size: 12px;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transaction-save-detail-button {
    position: relative;
    display: flex;
    width: calc(100% - 28px);
    min-height: 42px;
    margin: 7px 14px 13px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border: 1px solid rgba(102, 214, 106, 0.28);
    border-radius: 12px;
    background: rgba(102, 214, 106, 0.1);
    color: var(--green-bright);
    font-size: 13px;
    font-weight: 850;
}

.transaction-save-detail-button::before {
    position: absolute;
    top: -8px;
    right: 1px;
    left: 1px;
    height: 1px;
    background: var(--line);
    content: "";
}

.transaction-save-detail-button svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.transaction-save-detail-button.saved {
    border-color: rgba(102, 214, 106, 0.14);
    background: rgba(102, 214, 106, 0.06);
    color: #91b998;
}

.transaction-id-group {
    display: grid;
    min-height: 58px;
    margin-top: 11px;
    padding: 10px 14px;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) 34px;
    align-items: center;
    gap: 9px;
}

.transaction-id-group > span {
    color: var(--muted);
    font-size: 12px;
}

.transaction-id-group > strong {
    overflow: hidden;
    font-size: 12px;
    text-align: right;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transaction-id-group button {
    display: grid;
    width: 34px;
    height: 34px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: rgba(102, 214, 106, 0.1);
    color: var(--green-bright);
}

.transaction-id-group svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

:root[data-theme="light"] {
    color-scheme: light;
    --bg: #f3f7f8;
    --panel: #ffffff;
    --panel-soft: #eaf1f3;
    --line: rgba(31, 55, 68, 0.11);
    --text: #14232d;
    --muted: #6f818c;
    --green: #43a94a;
    --green-bright: #4ec65a;
}

html[data-theme="light"],
html[data-theme="light"] body {
    background:
        radial-gradient(circle at 82% -8%, rgba(78, 198, 90, 0.13), transparent 34%),
        var(--bg);
}

html[data-theme="light"] .bottom-nav {
    border-color: rgba(31, 55, 68, 0.1);
    background: rgba(250, 253, 253, 0.96);
    box-shadow: 0 -12px 32px rgba(38, 69, 82, 0.1);
}

html[data-theme="light"]:not(.telegram-mobile) .bottom-nav {
    background: #fafdfd;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html[data-theme="light"] .profile-card,
html[data-theme="light"] .hero-card,
html[data-theme="light"] .form-card,
html[data-theme="light"] .settings-card,
html[data-theme="light"] .security-card,
html[data-theme="light"] .request-item,
html[data-theme="light"] .wallet-name-chip,
html[data-theme="light"] .wallet-product-tab,
html[data-theme="light"] .wallet-balance-card,
html[data-theme="light"] .wallet-action-icon,
html[data-theme="light"] .service-card,
html[data-theme="light"] .digital-assets-list,
html[data-theme="light"] .profile-settings-button,
html[data-theme="light"] .profile-summary-card,
html[data-theme="light"] .profile-menu-group,
html[data-theme="light"] .about-brand-card,
html[data-theme="light"] .about-detail-card,
html[data-theme="light"] .about-link-group,
html[data-theme="light"] .account-card,
html[data-theme="light"] .withdrawal-option-list,
html[data-theme="light"] .withdrawal-iban-field,
html[data-theme="light"] .saved-detail-card,
html[data-theme="light"] .saved-details-empty,
html[data-theme="light"] .dispute-card,
html[data-theme="light"] .disputes-empty,
html[data-theme="light"] .fiat-selection-row,
html[data-theme="light"] .provider-row,
html[data-theme="light"] .top-up-option,
html[data-theme="light"] .crypto-deposit-card,
html[data-theme="light"] .language-settings-list,
html[data-theme="light"] .security-settings-group,
html[data-theme="light"] .devices-list {
    border-color: var(--line);
    background: linear-gradient(145deg, #ffffff, #eef4f5);
    box-shadow: 0 12px 28px rgba(38, 69, 82, 0.07);
}

html[data-theme="light"] .crypto-asset-choice,
html[data-theme="light"] .crypto-network-picker {
    border-color: var(--line);
    background: linear-gradient(145deg, #ffffff, #eef4f5);
    box-shadow: 0 12px 28px rgba(38, 69, 82, 0.07);
}

html[data-theme="light"] .crypto-network-choice {
    color: var(--text);
}

html[data-theme="light"] .crypto-network-choice.active {
    background: rgba(78, 198, 90, 0.08);
}

html[data-theme="light"] .exchange-card {
    border-color: var(--line);
    background: linear-gradient(145deg, #ffffff, #eef4f5);
    box-shadow: 0 12px 28px rgba(38, 69, 82, 0.08);
}

html[data-theme="light"] .exchange-amount-control {
    border-color: rgba(31, 55, 68, 0.06);
    background: rgba(31, 55, 68, 0.055);
}

html[data-theme="light"] #exchangeView .exchange-amount-control input,
html[data-theme="light"] #exchangeView .exchange-asset-picker select {
    border: 0;
    background: transparent;
    color: var(--text);
}

html[data-theme="light"] #exchangeView .exchange-asset-picker select option {
    background: #ffffff;
    color: var(--text);
}

html[data-theme="light"] .exchange-swap-button {
    border-color: var(--bg);
    background: #ffffff;
    box-shadow: 0 6px 18px rgba(38, 69, 82, 0.12);
}

html[data-theme="light"] .settings-page-sheet,
html[data-theme="light"] .profile-settings-sheet,
html[data-theme="light"] .account-sheet,
html[data-theme="light"] .currency-sheet,
html[data-theme="light"] .security-sheet,
html[data-theme="light"] .saved-network-sheet,
html[data-theme="light"] .payout-verification-sheet,
html[data-theme="light"] .top-up-sheet,
html[data-theme="light"] .crypto-deposit-sheet,
html[data-theme="light"] .support-dialogue-sheet {
    background:
        radial-gradient(circle at 82% -8%, rgba(78, 198, 90, 0.11), transparent 32%),
        var(--bg);
}

html[data-theme="light"] .theme-settings-sheet,
html[data-theme="light"] .email-settings-sheet,
html[data-theme="light"] .history-filter-sheet,
html[data-theme="light"] .crypto-deposit-fee-sheet {
    border-color: var(--line);
    background: linear-gradient(155deg, #ffffff, #edf3f4);
    box-shadow: 0 -24px 54px rgba(38, 69, 82, 0.18);
}

html[data-theme="light"] .currency-search-field,
html[data-theme="light"] .currency-list,
html[data-theme="light"] .saved-network-options,
html[data-theme="light"] .saved-phone-contacts-list,
html[data-theme="light"] #emailSettingsInput,
html[data-theme="light"] #emailCodeInput,
html[data-theme="light"] .payout-verification-code,
html[data-theme="light"] .fiat-currency-pill,
html[data-theme="light"] .fiat-swap-button,
html[data-theme="light"] .saved-details-tab,
html[data-theme="light"] .saved-network-filter,
html[data-theme="light"] .crypto-deposit-secondary,
html[data-theme="light"] .support-dialogue-close,
html[data-theme="light"] .support-dialogue-bubble,
html[data-theme="light"] .toast {
    border-color: var(--line);
    background: #ffffff;
    color: var(--text);
}

html[data-theme="light"] .support-dialogue-message.client .support-dialogue-bubble {
    border-color: rgba(78, 198, 90, 0.25);
    background: rgba(78, 198, 90, 0.12);
}

html[data-theme="light"] .history-filter-chip,
html[data-theme="light"] .history-filter-options,
html[data-theme="light"] .history-filter-option:only-child,
html[data-theme="light"] .history-all-option,
html[data-theme="light"] .history-calendar,
html[data-theme="light"] .transaction-details-group,
html[data-theme="light"] .history-transaction-icon,
html[data-theme="light"] .history-mini-icon,
html[data-theme="light"] .transaction-details-icon,
html[data-theme="light"] .asset-detail-action-icon,
html[data-theme="light"] .asset-wallet-loading,
html[data-theme="light"] .asset-wallet-card {
    border-color: var(--line);
    background: linear-gradient(145deg, #ffffff, #edf3f4);
    color: var(--text);
}

html[data-theme="light"] .asset-detail-history-panel {
    border-color: var(--line);
    background: linear-gradient(160deg, #f8fbfb, #edf3f4);
}

html[data-theme="light"] .asset-detail-back,
html[data-theme="light"] .asset-wallet-action,
html[data-theme="light"] .asset-wallet-retry {
    border-color: var(--line);
    background: rgba(31, 55, 68, 0.06);
}

html[data-theme="light"] .history-filter-option.selected .history-filter-radio {
    box-shadow: inset 0 0 0 4px #ffffff;
}

html[data-theme="light"] .history-calendar > header button {
    background: rgba(31, 55, 68, 0.07);
}

html[data-theme="light"] .settings-page-overlay,
html[data-theme="light"] .settings-bottom-overlay,
html[data-theme="light"] .profile-settings-overlay,
html[data-theme="light"] .account-overlay,
html[data-theme="light"] .currency-overlay,
html[data-theme="light"] .security-overlay,
html[data-theme="light"] .saved-network-overlay,
html[data-theme="light"] .payout-verification-overlay,
html[data-theme="light"] .top-up-overlay,
html[data-theme="light"] .crypto-deposit-overlay {
    background: rgba(25, 44, 54, 0.45);
}

html[data-theme="light"] .settings-bottom-header button,
html[data-theme="light"] .account-back-button,
html[data-theme="light"] .saved-network-close,
html[data-theme="light"] .payout-verification-close,
html[data-theme="light"] .fiat-back-button,
html[data-theme="light"] .top-up-close-button {
    background: rgba(31, 55, 68, 0.07);
}

html[data-theme="light"] .language-settings-row.selected i,
html[data-theme="light"] .theme-choice.selected em {
    box-shadow: inset 0 0 0 4px #ffffff;
}

html[data-theme="light"] .settings-switch {
    background: #c5d0d5;
}

html[data-theme="light"] .verification-opportunities-card,
html[data-theme="light"] .verification-saved-country-card,
html[data-theme="light"] .verification-add-country,
html[data-theme="light"] .verification-country-list,
html[data-theme="light"] .verification-selected-country,
html[data-theme="light"] .identity-verification-field,
html[data-theme="light"] .verification-pending-card {
    border-color: var(--line);
    background: linear-gradient(145deg, #ffffff, #eef4f5);
    box-shadow: 0 12px 28px rgba(38, 69, 82, 0.07);
}

html[data-theme="light"] .verification-country-search {
    border-color: var(--line);
    background: #ffffff;
}

html[data-theme="light"] .identity-upload-card {
    background: rgba(78, 198, 90, 0.06);
}

html[data-theme="light"] .verification-feature-icon {
    border-color: var(--line);
    background: linear-gradient(145deg, #ffffff, #e8eff1);
    color: #617681;
}

html[data-theme="light"] .verification-feature-icon i {
    border-color: #f2f7f7;
}

html[data-theme="light"] .settings-switch::after {
    background: #ffffff;
}

/* USDT transfer flow */
.transfer-flow-view.active {
    display: flex;
    min-height: calc(100vh - max(24px, var(--app-safe-top)) - max(24px, var(--app-safe-bottom)));
    flex-direction: column;
}

.transfer-page-header {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.transfer-page-header h1 {
    margin: 0;
    text-align: center;
    font-size: 20px;
    font-weight: 900;
}

.transfer-page-header .back-button {
    width: 40px;
    height: 40px;
    font-size: 22px;
}

.transfer-page-content {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    gap: 15px;
    padding-bottom: 4px;
}

.transfer-asset-section {
    display: grid;
    gap: 10px;
}

.transfer-asset-section h2 {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.transfer-asset-picker {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 9px;
}

.transfer-asset-choice {
    display: flex;
    aspect-ratio: 1 / 1;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 6px;
    min-width: 0;
    min-height: 0;
    padding: 11px 10px 10px;
    overflow: hidden;
    border: 1px solid rgba(135, 155, 173, 0.13);
    border-radius: 15px;
    background: rgba(24, 39, 51, 0.9);
    color: var(--text);
    text-align: left;
    transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.transfer-asset-choice.active {
    border-color: rgba(102, 214, 106, 0.88);
    background: linear-gradient(145deg, #203640, #192c36);
    box-shadow: inset 0 0 0 1px rgba(102, 214, 106, 0.08);
}

.transfer-asset-choice[data-transfer-asset="USDT"] {
    border-color: rgba(83, 205, 166, 0.58);
}

.transfer-asset-choice[data-transfer-asset="TON"] {
    border-color: rgba(0, 152, 234, 0.58);
}

.transfer-asset-choice[data-transfer-asset="BTC"] {
    border-color: rgba(247, 147, 26, 0.62);
}

.transfer-asset-choice[data-transfer-asset="USDT"].active {
    border-color: #53cda6;
    box-shadow: inset 0 0 0 1px rgba(83, 205, 166, 0.14);
}

.transfer-asset-choice[data-transfer-asset="TON"].active {
    border-color: #0098ea;
    box-shadow: inset 0 0 0 1px rgba(0, 152, 234, 0.14);
}

.transfer-asset-choice[data-transfer-asset="BTC"].active {
    border-color: #f7931a;
    box-shadow: inset 0 0 0 1px rgba(247, 147, 26, 0.14);
}

.transfer-asset-choice img {
    width: 32px;
    height: 32px;
    flex: 0 0 32px;
    object-fit: contain;
}

.transfer-asset-choice span {
    display: grid;
    width: 100%;
    min-width: 0;
    gap: 2px;
}

.transfer-asset-choice strong {
    font-family: "Roboto", sans-serif;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.15;
}

.transfer-asset-choice small {
    display: block;
    width: 100%;
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.transfer-mode-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.transfer-mode-tabs button {
    min-height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 0 12px;
    border: 1px solid rgba(135, 155, 173, 0.1);
    border-radius: 12px;
    background: rgba(31, 44, 56, 0.86);
    color: var(--muted);
    font-size: 14px;
    font-weight: 830;
    transition: color 0.18s ease, background 0.18s ease, border-color 0.18s ease;
}

.transfer-mode-tabs button.active {
    border-color: rgba(102, 214, 106, 0.16);
    background: linear-gradient(145deg, #263946, #20313d);
    color: var(--text);
}

.transfer-tab-icon {
    display: block;
    width: 18px;
    height: 18px;
    flex: 0 0 18px;
    color: #748798;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.transfer-mode-tabs button.active .transfer-tab-icon {
    color: var(--green-bright);
}

.transfer-form {
    display: flex;
    min-height: 0;
    flex: 1;
    flex-direction: column;
    gap: 16px;
}

.transfer-form[hidden] {
    display: none;
}

.transfer-details-card {
    padding: 14px 16px 15px;
    border: 1px solid rgba(135, 155, 173, 0.13);
    border-radius: 18px;
    background: linear-gradient(145deg, rgba(29, 43, 54, 0.98), rgba(25, 38, 49, 0.98));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

.transfer-field-row {
    min-height: 51px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 14px;
    border-radius: 12px;
    background: rgba(49, 64, 78, 0.86);
}

.transfer-field-row + .transfer-field-row {
    margin-top: 8px;
}

.transfer-field-row input,
.transfer-phone-input input,
.transfer-amount-line input {
    width: 100%;
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 15px;
    font-weight: 650;
}

.transfer-field-row input::placeholder,
.transfer-phone-input input::placeholder,
.transfer-amount-line input::placeholder {
    color: #8292a2;
    opacity: 1;
}

.transfer-field-icons {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #8494a4;
}

.transfer-field-icon-button {
    width: 30px;
    height: 34px;
    display: grid;
    flex: 0 0 auto;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
}

.transfer-field-icon-button:active {
    background: rgba(102, 214, 106, 0.12);
    color: var(--green-bright);
    transform: scale(0.94);
}

.saved-wallet-trigger {
    display: grid;
    width: 38px;
    height: 40px;
    flex: 0 0 38px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 11px;
    background: transparent;
    color: inherit;
    transition: transform 120ms ease, background 120ms ease, color 120ms ease;
}

.saved-wallet-trigger .bookmark-line-icon {
    width: 18px;
    height: 22px;
}

.saved-wallet-trigger:active {
    background: rgba(102, 214, 106, 0.12);
    color: var(--green-bright);
    transform: scale(0.94);
}

.scan-corners-icon {
    width: 18px;
    height: 18px;
    display: block;
    background:
        linear-gradient(currentColor, currentColor) left top / 6px 2px no-repeat,
        linear-gradient(currentColor, currentColor) left top / 2px 6px no-repeat,
        linear-gradient(currentColor, currentColor) right top / 6px 2px no-repeat,
        linear-gradient(currentColor, currentColor) right top / 2px 6px no-repeat,
        linear-gradient(currentColor, currentColor) left bottom / 6px 2px no-repeat,
        linear-gradient(currentColor, currentColor) left bottom / 2px 6px no-repeat,
        linear-gradient(currentColor, currentColor) right bottom / 6px 2px no-repeat,
        linear-gradient(currentColor, currentColor) right bottom / 2px 6px no-repeat;
    border-radius: 2px;
}

.bookmark-line-icon {
    width: 15px;
    height: 19px;
    display: block;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
    vector-effect: non-scaling-stroke;
}

.transfer-helper {
    display: flex;
    align-items: flex-start;
    gap: 7px;
    margin: 9px 0 0;
    color: var(--muted);
    font-size: 10px;
    line-height: 1.35;
}

.transfer-helper > i {
    width: 13px;
    height: 13px;
    display: grid;
    flex: 0 0 13px;
    place-items: center;
    margin-top: 1px;
    border-radius: 50%;
    background: #8494a4;
    color: #182630;
    font-size: 9px;
    font-style: normal;
    font-weight: 900;
}

.transfer-card-divider {
    height: 1px;
    margin: 17px 0 14px;
    background: rgba(135, 155, 173, 0.18);
}

.transfer-network-summary {
    display: grid;
    grid-template-columns: 1fr auto;
    align-items: center;
    gap: 9px 14px;
    color: var(--muted);
    font-size: 13px;
}

.transfer-network-summary strong,
.transfer-network-button {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 6px;
    color: var(--text);
    font-size: 14px;
}

.transfer-network-summary strong img,
.transfer-network-button img {
    width: 17px;
    height: 17px;
}

.transfer-network-summary strong i,
.transfer-network-button i {
    color: var(--muted);
    font-size: 14px;
    font-style: normal;
}

.transfer-network-button {
    min-height: 28px;
    padding: 2px 0 2px 10px;
    border: 0;
    background: transparent;
    cursor: pointer;
    font-weight: 850;
}

.transfer-network-button:active {
    transform: scale(0.97);
}

.transfer-network-summary > b {
    color: var(--text);
    font-size: 14px;
    text-align: right;
}

.transfer-network-overlay {
    position: fixed;
    z-index: 125;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-top: 80px;
    background: rgba(2, 7, 12, 0.78);
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s ease;
    backdrop-filter: blur(5px);
}

.transfer-network-overlay.visible {
    opacity: 1;
    pointer-events: auto;
}

.transfer-network-sheet {
    width: min(100%, 560px);
    padding: 10px 16px max(20px, calc(14px + var(--app-safe-bottom)));
    border: 1px solid var(--line);
    border-bottom: 0;
    border-radius: 24px 24px 0 0;
    background:
        radial-gradient(circle at 96% 0, rgba(102, 214, 106, 0.12), transparent 31%),
        var(--bg);
    transform: translateY(28px);
    transition: transform 0.22s ease;
}

.transfer-network-overlay.visible .transfer-network-sheet {
    transform: translateY(0);
}

.transfer-network-sheet-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 40px;
    align-items: center;
    gap: 12px;
    margin: 8px 0 16px;
}

.transfer-network-sheet-top h2 {
    margin: 0;
    font-size: 20px;
    font-weight: 900;
}

.transfer-network-sheet .crypto-network-choice[disabled] {
    opacity: 0.46;
    cursor: not-allowed;
}

.transfer-phone-row {
    display: grid;
    grid-template-columns: 76px minmax(0, 1fr);
    gap: 8px;
}

.transfer-country-code,
.transfer-phone-input {
    min-height: 51px;
    display: flex;
    align-items: center;
    border-radius: 12px;
    background: rgba(49, 64, 78, 0.86);
}

.transfer-country-code {
    justify-content: center;
    gap: 8px;
}

.transfer-country-code img {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    object-fit: cover;
}

.transfer-country-code b {
    font-size: 15px;
}

.transfer-phone-input {
    gap: 10px;
    padding: 0 14px;
    color: #8494a4;
}

.saved-phone-trigger {
    display: grid;
    width: 36px;
    height: 40px;
    flex: 0 0 36px;
    padding: 0;
    place-items: center;
    border: 0;
    border-radius: 10px;
    background: transparent;
    color: #8494a4;
}

.saved-phone-trigger:active {
    background: rgba(102, 214, 106, 0.1);
    color: var(--green-bright);
}

.transfer-no-fee {
    margin: 13px 0 0;
    color: var(--green-bright);
    font-size: 13px;
    font-weight: 750;
}

.transfer-amount-bar {
    min-height: 51px;
    display: flex;
    align-items: center;
    margin-top: 22px;
    padding: 0 14px;
    border: 1px solid rgba(135, 155, 173, 0.11);
    border-radius: 13px;
    background: rgba(40, 54, 67, 0.96);
}

.phone-amount-bar {
    margin-top: 20px;
}

.transfer-amount-line {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr auto auto;
    align-items: center;
    gap: 8px;
}

.transfer-amount-line input {
    font-size: 15px;
    font-weight: 650;
}

.transfer-amount-line > b {
    color: var(--muted);
    font-size: 14px;
    font-weight: 650;
}

.transfer-amount-line button {
    padding: 8px 0 8px 2px;
    border: 0;
    background: transparent;
    color: var(--green-bright);
    font-size: 14px;
    font-weight: 750;
}

.transfer-recipient-preview {
    display: grid;
    grid-template-columns: 36px 1fr;
    align-items: center;
    gap: 10px;
    padding: 11px 14px;
    border: 1px solid rgba(102, 214, 106, 0.34);
    border-radius: 14px;
    background: rgba(81, 179, 84, 0.1);
}

.transfer-recipient-preview[hidden] {
    display: none;
}

.transfer-recipient-preview::before {
    content: "✓";
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: rgba(81, 179, 84, 0.2);
    color: var(--green-bright);
    font-weight: 900;
}

.transfer-recipient-preview strong,
.transfer-recipient-preview small {
    display: block;
}

.transfer-recipient-preview small {
    margin-top: 3px;
    color: var(--muted);
}

.transfer-submit {
    min-height: 51px;
    margin-top: auto;
    border: 0;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--green-bright), var(--green));
    color: #07120b;
    font-weight: 900;
    box-shadow: 0 10px 28px rgba(81, 179, 84, 0.2);
}

.transfer-submit:disabled {
    opacity: 0.52;
}

html[data-theme="light"] .transfer-details-card,
html[data-theme="light"] .transfer-amount-bar,
html[data-theme="light"] .transfer-mode-tabs button,
html[data-theme="light"] .transfer-asset-choice {
    border-color: var(--line);
    background: #ffffff;
}

html[data-theme="light"] .transfer-asset-choice.active {
    border-color: var(--green);
    background: rgba(78, 198, 90, 0.08);
}

html[data-theme="light"] .transfer-field-row,
html[data-theme="light"] .transfer-country-code,
html[data-theme="light"] .transfer-phone-input {
    background: #f3f7f7;
}

@media (max-width: 360px) {
    .transfer-page-header {
        margin-bottom: 16px;
    }

    .transfer-asset-picker {
        gap: 7px;
    }

    .transfer-asset-choice {
        padding: 9px 8px 8px;
        border-radius: 13px;
    }

    .transfer-asset-choice img {
        width: 29px;
        height: 29px;
        flex-basis: 29px;
    }

    .transfer-asset-choice strong {
        font-size: 14px;
    }

    .transfer-asset-choice small {
        font-size: 9.5px;
    }

    .transfer-mode-tabs {
        gap: 8px;
    }

    .transfer-mode-tabs button {
        min-height: 40px;
        padding: 0 8px;
        font-size: 13px;
    }

    .transfer-details-card {
        padding-right: 12px;
        padding-left: 12px;
    }
}

/* Profile: soft surfaces without visible outer contours. */
#profileView .profile-settings-button,
#profileView .profile-summary-card,
#profileView .profile-menu-group {
    border: 0 !important;
    outline: 0 !important;
}

#profileView .profile-settings-button {
    background: linear-gradient(145deg, rgba(32, 47, 60, 0.94), rgba(24, 36, 47, 0.94));
    box-shadow: 0 9px 24px rgba(0, 0, 0, 0.16);
}

#profileView .profile-summary-card,
#profileView .profile-menu-group {
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
}

/* Swapora referral program. */
.referral-view {
    padding-bottom: 28px;
}

.referral-header {
    display: grid;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
    margin-bottom: 4px;
}

.referral-header h1 {
    margin: 0;
    text-align: center;
    font-size: 19px;
    font-weight: 850;
}

.referral-orbit {
    position: relative;
    width: min(100%, 310px);
    height: 286px;
    margin: 2px auto 0;
}

.referral-orbit::before {
    position: absolute;
    inset: 54px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(53, 220, 119, 0.28), rgba(18, 117, 76, 0.08) 58%, transparent 72%);
    content: "";
    filter: blur(2px);
}

.referral-orbit-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    border: 1px solid rgba(94, 225, 143, 0.22);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.referral-orbit-ring.ring-one { width: 118px; height: 118px; border-color: rgba(99, 230, 151, 0.48); }
.referral-orbit-ring.ring-two { width: 204px; height: 204px; }
.referral-orbit-ring.ring-three { width: 278px; height: 278px; border-color: rgba(90, 217, 139, 0.1); }

.referral-orbit-logo,
.referral-orbit-node {
    position: absolute;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: linear-gradient(145deg, #163a32, #0b1d1b);
    box-shadow: 0 10px 30px rgba(21, 208, 104, 0.22);
    color: #6bea9c;
    font-weight: 900;
}

.referral-orbit-logo {
    top: 50%;
    left: 50%;
    width: 96px;
    height: 96px;
    padding: 16px;
    transform: translate(-50%, -50%);
    background: radial-gradient(circle at 36% 28%, #184c3d, #071412 72%);
}

.referral-orbit-logo img { width: 100%; height: 100%; object-fit: contain; }
.referral-orbit-node { width: 38px; height: 38px; border: 1px solid rgba(91, 230, 145, 0.18); }
.referral-orbit-node.node-one { top: 54px; right: 43px; }
.referral-orbit-node.node-two { top: 126px; left: 22px; }
.referral-orbit-node.node-three { right: 38px; bottom: 45px; }
.referral-orbit-node.node-four { bottom: 16px; left: 42px; }

.referral-hero-copy {
    margin-top: -2px;
    text-align: center;
}

.referral-hero-copy h2 {
    margin: 0;
    color: var(--text);
    font-size: clamp(25px, 7vw, 32px);
    font-weight: 900;
    line-height: 1.08;
    letter-spacing: -0.035em;
}

.referral-hero-copy p {
    max-width: 390px;
    margin: 16px auto 20px;
    color: var(--text);
    font-size: 14px;
    font-weight: 650;
    line-height: 1.38;
}

.referral-share-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.referral-share-card {
    display: grid;
    min-width: 0;
    min-height: 88px;
    padding: 14px 11px;
    border: 0;
    border-radius: 19px;
    grid-template-columns: 24px minmax(0, 1fr) 12px;
    gap: 8px;
    align-items: start;
    background: linear-gradient(145deg, rgba(26, 48, 53, 0.96), rgba(18, 32, 39, 0.98));
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.13);
    color: var(--text);
    cursor: pointer;
    text-align: left;
}

.referral-share-card:active { transform: scale(0.98); }
.referral-share-card > span:nth-child(2) { min-width: 0; }
.referral-share-card strong { display: block; font-size: 15px; font-weight: 850; }
.referral-share-card small { display: block; margin-top: 5px; overflow: hidden; color: var(--muted); font-size: 10px; line-height: 1.18; }
.referral-share-card > b { align-self: center; color: var(--green-bright); font-size: 24px; font-weight: 400; }
.referral-share-icon { color: var(--green-bright); }
.referral-share-icon svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.referral-panel {
    margin: 18px -16px -28px;
    padding: 20px 16px calc(34px + var(--app-safe-bottom));
    border-radius: 24px 24px 0 0;
    background: linear-gradient(180deg, rgba(19, 38, 43, 0.98), rgba(9, 22, 27, 0.99));
}

.referral-panel h3 {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-transform: uppercase;
}

.referral-stat-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.referral-stat-grid article {
    padding: 14px;
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.045);
}

.referral-stat-grid small { display: block; color: var(--muted); font-size: 10px; }
.referral-stat-grid strong { display: block; margin-top: 6px; color: #61e890; font-size: 19px; font-weight: 900; }

.referral-empty-state {
    margin-top: 10px;
    padding: 19px 12px;
    border-radius: 17px;
    background: rgba(255, 255, 255, 0.035);
    color: var(--muted);
    font-size: 13px;
    text-align: center;
}

.referral-people { display: grid; gap: 7px; margin-top: 10px; }
.referral-person { display: flex; align-items: center; justify-content: space-between; padding: 11px 13px; border-radius: 15px; background: rgba(255, 255, 255, 0.035); }
.referral-person strong { overflow: hidden; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.referral-person small { color: var(--muted); font-size: 10px; }
.referral-person small.active { color: #59df87; }

.referral-ranks-title { margin-top: 22px !important; }
.referral-ranks {
    display: grid;
    grid-auto-columns: min(88%, 340px);
    grid-auto-flow: column;
    gap: 10px;
    overflow-x: auto;
    padding: 0 1px 8px;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
}
.referral-ranks::-webkit-scrollbar { display: none; }

.referral-rank-card {
    position: relative;
    min-height: 150px;
    padding: 16px;
    overflow: hidden;
    border-radius: 21px;
    scroll-snap-align: start;
    background: linear-gradient(145deg, rgba(29, 48, 55, 0.98), rgba(22, 34, 43, 0.98));
}

.referral-rank-card.current { box-shadow: inset 0 0 0 1px rgba(76, 221, 119, 0.38), 0 12px 30px rgba(23, 206, 99, 0.1); }
.referral-rank-card.locked { opacity: 0.64; }
.referral-rank-top { display: flex; gap: 12px; align-items: center; }
.referral-rank-emblem { display: grid; width: 56px; height: 56px; flex: 0 0 56px; place-items: center; border-radius: 18px; background: linear-gradient(145deg, rgba(74, 219, 118, 0.24), rgba(27, 97, 72, 0.18)); color: #72eda0; font-size: 25px; font-weight: 900; }
.referral-rank-card.locked .referral-rank-emblem::after { position: absolute; content: "🔒"; font-size: 17px; }
.referral-rank-copy small { display: block; color: var(--muted); font-size: 10px; font-weight: 750; text-transform: uppercase; }
.referral-rank-copy strong { display: block; margin-top: 5px; font-size: 17px; font-weight: 900; }
.referral-rank-copy span { display: block; margin-top: 3px; color: var(--muted); font-size: 10px; }
.referral-rank-income { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; color: var(--muted); font-size: 11px; }
.referral-rank-income strong { color: var(--text); font-size: 16px; }
.referral-rank-current { color: #42d879 !important; }

.referral-terms-button,
.referral-primary-button {
    width: 100%;
    border: 0;
    border-radius: 16px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 850;
}
.referral-terms-button { min-height: 50px; margin-top: 16px; background: #f4f8f5; color: #08110d; }

.referral-overlay {
    position: fixed;
    z-index: 130;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 12px;
    background: rgba(2, 8, 10, 0.78);
    opacity: 0;
    pointer-events: none;
    transition: opacity 180ms ease;
    backdrop-filter: blur(8px);
}
.referral-overlay.visible { opacity: 1; pointer-events: auto; }
.referral-sheet { width: min(100%, 520px); padding: 21px; border-radius: 23px; background: linear-gradient(160deg, #14292f, #09171c); box-shadow: 0 24px 70px rgba(0, 0, 0, 0.42); transform: translateY(18px); transition: transform 180ms ease; }
.referral-overlay.visible .referral-sheet { transform: translateY(0); }
.referral-sheet header { display: flex; align-items: center; justify-content: space-between; }
.referral-sheet h2 { margin: 0; font-size: 19px; }
.referral-sheet header button { width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.07); color: var(--text); cursor: pointer; font-size: 23px; }
.referral-sheet > p { margin: 16px 0; color: var(--muted); font-size: 13px; line-height: 1.5; }
.referral-link-field { display: flex; min-height: 52px; padding: 8px 8px 8px 13px; border-radius: 15px; align-items: center; gap: 8px; background: rgba(255, 255, 255, 0.06); }
.referral-link-field strong { min-width: 0; overflow: hidden; flex: 1; font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.referral-link-field button { display: grid; width: 36px; height: 36px; border: 0; place-items: center; border-radius: 11px; background: rgba(80, 224, 132, 0.13); color: #60e58f; cursor: pointer; }
.referral-link-field svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 2; }
.referral-primary-button { display: flex; min-height: 52px; margin-top: 13px; align-items: center; justify-content: center; gap: 9px; background: linear-gradient(135deg, #20b96b, #53df83); color: #fff; box-shadow: 0 9px 26px rgba(41, 210, 119, 0.2); }
.referral-primary-button svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.referral-qr-image { display: block; width: 210px; height: 210px; margin: 4px auto 18px; padding: 10px; border-radius: 20px; background: #fff; }
.referral-qr-image[hidden] { display: none; }
.referral-terms-sheet ul { display: grid; gap: 9px; margin: 0; padding-left: 20px; color: var(--muted); font-size: 12px; line-height: 1.45; }
.referral-terms-sheet li strong { color: var(--text); }

@media (max-width: 350px) {
    .referral-orbit { height: 246px; transform: scale(0.86); margin-top: -13px; margin-bottom: -10px; }
    .referral-hero-copy h2 { font-size: 24px; }
    .referral-hero-copy p { font-size: 12px; }
    .referral-share-card { min-height: 82px; padding: 12px 9px; grid-template-columns: 20px minmax(0, 1fr) 9px; gap: 6px; }
    .referral-share-card strong { font-size: 13px; }
    .referral-share-icon svg { width: 19px; height: 19px; }
}

/* Floating wallet navigation and balance shortcuts */
.app-shell {
    /* 64px navigation + 10px bottom offset + 4px content clearance.
       Keep the iOS safe area, but do not count it twice: the previous 104px
       base left a visible empty scroll tail below the last wallet asset. */
    padding-bottom: calc(78px + var(--app-safe-bottom));
}

.wallet-balance-layout {
    position: relative;
    display: flex;
    min-width: 0;
    align-items: stretch;
    gap: 9px;
    margin-top: var(--wallet-section-gap);
}

#homeView .wallet-balance-layout {
    margin-top: 0;
}

.wallet-balance-layout .wallet-balance-card {
    min-width: 0;
    min-height: 118px;
    margin-top: 0;
    background: linear-gradient(150deg, #1d2d39, #17232e);
}

.wallet-balance-cards {
    display: grid;
    min-width: 0;
    flex: 1 1 auto;
    grid-template-columns: repeat(2, minmax(0, 140px));
    justify-content: start;
    gap: 9px;
}

.wallet-balance-tile {
    display: flex;
    width: 140px;
    max-width: 100%;
    min-height: 118px;
    flex-direction: column;
    justify-content: space-between;
    cursor: pointer;
    touch-action: pan-y;
    -webkit-touch-callout: none;
}

.wallet-balance-tile .wallet-balance-heading {
    align-items: flex-start;
    color: var(--text);
    font-size: 13px;
    font-weight: 760;
    line-height: 1.16;
}

.wallet-balance-tile .wallet-balance-value {
    min-height: 27px;
    margin-top: 18px;
    flex-wrap: nowrap;
}

.wallet-balance-tile .wallet-balance-value strong {
    overflow: hidden;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 500;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wallet-processing-inline {
    display: flex;
    min-width: 0;
    align-items: baseline;
    gap: 4px;
    margin-top: 3px;
    color: rgba(185, 199, 207, 0.34);
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 10px;
    font-weight: 500;
    line-height: 1.2;
    white-space: nowrap;
}

.wallet-processing-inline strong {
    overflow: hidden;
    color: #57e78c;
    font-size: 11px;
    font-weight: 700;
    text-overflow: ellipsis;
}

.wallet-processing-inline small {
    color: rgba(185, 199, 207, 0.34);
    font-size: 9px;
    font-weight: 650;
}

.savings-balance-tile {
    background:
        radial-gradient(circle at 86% 12%, rgba(76, 231, 137, 0.2), transparent 36%),
        linear-gradient(150deg, #1a2d38, #15232c) !important;
}

.savings-tile-icon {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: #63e996;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
}

.wallet-savings-caption {
    overflow: hidden;
    color: rgba(185, 199, 207, 0.56);
    font-size: 10px;
    font-weight: 600;
    line-height: 1.2;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.wallet-balance-currency {
    flex: 0 0 auto;
    color: var(--muted);
    font-size: 11px;
    font-weight: 750;
}

/* Goal-based savings account */
body.savings-view-open .topbar {
    display: none;
}

body.savings-view-open .app-shell {
    padding-top: max(10px, var(--app-safe-top));
}

.savings-view.active {
    display: block;
    padding-bottom: calc(96px + var(--app-safe-bottom));
}

.savings-header {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr) 42px;
    align-items: center;
    margin-bottom: 18px;
}

.savings-header h1 {
    margin: 0;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 760;
    text-align: center;
}

.savings-setup {
    padding-top: 5px;
}

.savings-intro-mark {
    display: grid;
    width: 68px;
    height: 68px;
    margin: 0 auto 15px;
    place-items: center;
    border-radius: 23px;
    background:
        radial-gradient(circle at 70% 16%, rgba(112, 250, 164, 0.34), transparent 44%),
        linear-gradient(145deg, #123b2d, #132831);
    box-shadow: 0 18px 34px rgba(0, 0, 0, 0.2);
    color: #64ed9a;
}

.savings-intro-mark svg {
    width: 39px;
    height: 39px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.45;
}

.savings-setup > h2 {
    margin: 0;
    font-size: 22px;
    text-align: center;
}

.savings-setup > p {
    max-width: 390px;
    margin: 8px auto 20px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.5;
    text-align: center;
}

.savings-form,
.savings-account {
    display: grid;
    gap: 12px;
}

.savings-form-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 94px;
    gap: 9px;
}

.savings-field {
    display: grid;
    gap: 7px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.savings-field[hidden] {
    display: none;
}

.savings-field input,
.savings-field select,
.savings-amount-input {
    width: 100%;
    min-height: 50px;
    padding: 0 14px;
    border: 0;
    border-radius: 15px;
    outline: 0;
    background: rgba(23, 37, 47, 0.78);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.025);
    color: var(--text);
    font: inherit;
    font-size: 15px;
}

.savings-field input:focus,
.savings-field select:focus,
.savings-amount-input:focus-within {
    box-shadow: 0 0 0 3px rgba(80, 224, 132, 0.08);
}

.savings-asset-field select {
    appearance: none;
    text-align: center;
}

.savings-lock-options {
    display: grid;
    gap: 8px;
    margin: 2px 0 0;
    padding: 0;
    border: 0;
}

.savings-lock-options legend {
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 650;
}

.savings-lock-option {
    display: grid;
    min-height: 68px;
    grid-template-columns: minmax(0, 1fr) 19px;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 0;
    border-radius: 17px;
    background: rgba(23, 37, 47, 0.72);
    cursor: pointer;
}

.savings-lock-option.selected {
    background: linear-gradient(145deg, rgba(39, 79, 66, 0.62), rgba(22, 42, 49, 0.82));
}

.savings-lock-option input {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.savings-lock-option span {
    display: grid;
    gap: 4px;
}

.savings-lock-option strong {
    font-size: 14px;
}

.savings-lock-option small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.savings-lock-option i {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(181, 199, 206, 0.34);
    border-radius: 50%;
}

.savings-lock-option.selected i {
    border: 5px solid #52e18a;
}

.savings-lock-warning {
    display: grid;
    gap: 3px;
    padding: 12px 14px;
    border-radius: 15px;
    background: rgba(231, 176, 72, 0.075);
}

.savings-lock-warning strong {
    color: #e8c172;
    font-size: 12px;
}

.savings-lock-warning span {
    color: rgba(203, 211, 216, 0.58);
    font-size: 11px;
    line-height: 1.4;
}

.savings-primary-button,
.savings-secondary-button {
    min-height: 50px;
    padding: 0 16px;
    border: 0;
    border-radius: 15px;
    background: linear-gradient(135deg, #2ac572, #5ce591);
    box-shadow: 0 12px 26px rgba(44, 207, 119, 0.18);
    color: #06160d;
    cursor: pointer;
    font-size: 14px;
    font-weight: 800;
}

.savings-primary-button:disabled,
.savings-secondary-button:disabled {
    box-shadow: none;
    cursor: default;
    opacity: 0.42;
}

.savings-secondary-button {
    background: rgba(77, 224, 132, 0.11);
    box-shadow: none;
    color: #65e895;
}

.savings-hero {
    position: relative;
    padding: 21px 19px 18px;
    overflow: hidden;
    border-radius: 22px;
    background:
        radial-gradient(circle at 92% 5%, rgba(77, 231, 137, 0.22), transparent 40%),
        linear-gradient(145deg, #1c3039, #14232d);
    box-shadow: 0 18px 38px rgba(0, 0, 0, 0.18);
}

.savings-hero-label {
    color: rgba(198, 213, 218, 0.56);
    font-size: 12px;
    font-weight: 650;
}

.savings-hero-balance {
    display: flex;
    align-items: baseline;
    gap: 7px;
    margin: 5px 0 24px;
}

.savings-hero-balance strong {
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 34px;
    font-weight: 500;
    letter-spacing: -0.025em;
}

.savings-hero-balance span {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.savings-goal-line {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    font-size: 13px;
}

.savings-goal-heading {
    display: flex;
    min-width: 0;
    align-items: center;
    gap: 7px;
}

.savings-goal-heading strong {
    overflow: hidden;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 500;
    line-height: 1.2;
    letter-spacing: -0.025em;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.savings-goal-heading button {
    display: grid;
    width: 30px;
    height: 30px;
    flex: 0 0 30px;
    place-items: center;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.075);
    color: rgba(220, 237, 229, 0.7);
}

.savings-goal-heading button:active {
    transform: scale(0.94);
    background: rgba(99, 235, 151, 0.16);
    color: #67ec98;
}

.savings-goal-heading svg {
    width: 15px;
    height: 15px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.savings-goal-line span {
    color: #61e993;
    font-weight: 800;
}

.savings-progress {
    height: 7px;
    margin-top: 9px;
    overflow: hidden;
    border-radius: 99px;
    background: rgba(255, 255, 255, 0.075);
}

.savings-progress i {
    display: block;
    width: 0;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, #26bd6c, #68ee9b);
    box-shadow: 0 0 16px rgba(81, 230, 140, 0.3);
    transition: width 300ms ease;
}

.savings-target-caption {
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    text-align: right;
}

.savings-lock-status,
.savings-operation-card {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    align-items: center;
    gap: 11px;
    padding: 14px;
    border-radius: 18px;
    background: rgba(21, 34, 44, 0.72);
}

.savings-lock-status-icon {
    display: grid;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 14px;
    background: rgba(83, 229, 139, 0.1);
    color: #60e891;
    font-size: 24px;
    font-weight: 800;
}

.savings-lock-status-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.8;
}

.savings-lock-status > div:last-child,
.savings-operation-card > div:first-child {
    display: grid;
    gap: 4px;
}

.savings-lock-status strong,
.savings-operation-card > div strong {
    font-size: 14px;
}

.savings-lock-status span,
.savings-operation-card > div small {
    color: var(--muted);
    font-size: 11px;
    line-height: 1.35;
}

.savings-operation-card {
    grid-template-columns: 1fr;
    gap: 11px;
}

.savings-amount-input {
    display: flex;
    align-items: center;
    gap: 8px;
}

.savings-amount-input input {
    min-width: 0;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--text);
    font-size: 20px;
    font-weight: 650;
}

.savings-amount-input span {
    color: var(--muted);
    font-size: 12px;
    font-weight: 750;
}

html[data-theme="light"] .savings-balance-tile,
html[data-theme="light"] .savings-hero {
    background:
        radial-gradient(circle at 88% 8%, rgba(38, 190, 99, 0.16), transparent 39%),
        linear-gradient(145deg, #edf5f1, #e2ece8) !important;
}

html[data-theme="light"] .savings-field input,
html[data-theme="light"] .savings-field select,
html[data-theme="light"] .savings-amount-input,
html[data-theme="light"] .savings-lock-option,
html[data-theme="light"] .savings-lock-status,
html[data-theme="light"] .savings-operation-card {
    background: rgba(229, 239, 235, 0.9);
}

html[data-theme="light"] .savings-lock-option.selected {
    background: linear-gradient(145deg, rgba(206, 237, 220, 0.96), rgba(226, 240, 234, 0.96));
}

/* Compact savings account controls */
.savings-hero-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(128px, 0.9fr);
    align-items: start;
    gap: 12px;
}

.savings-hero-lock {
    display: grid;
    grid-template-columns: 25px minmax(0, 1fr);
    align-items: center;
    gap: 7px;
    padding-top: 2px;
    color: #68ed9a;
}

.savings-hero-lock svg {
    width: 23px;
    height: 23px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.65;
}

.savings-hero-lock span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.savings-hero-lock strong {
    overflow: hidden;
    color: var(--text);
    font-size: 11px;
    line-height: 1.2;
    text-overflow: ellipsis;
}

.savings-hero-lock small {
    color: rgba(195, 211, 216, 0.56);
    font-size: 9px;
    line-height: 1.25;
}

.savings-quick-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

.savings-quick-action {
    display: flex;
    min-width: 0;
    min-height: 56px;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 0 12px;
    border: 0;
    border-radius: 17px;
    background: rgba(82, 225, 137, 0.1);
    color: #62e994;
    cursor: pointer;
    font-size: 13px;
    font-weight: 800;
}

.savings-quick-action-primary {
    background: linear-gradient(135deg, #2ac572, #5ce591);
    color: #06160d;
}

.savings-quick-action svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2;
}

.savings-quick-action:disabled {
    cursor: default;
    filter: saturate(0.45);
    opacity: 0.38;
}

.savings-operation-modal {
    position: fixed;
    z-index: 92;
    inset: 0;
}

.savings-operation-modal[hidden],
.savings-operation-form[hidden] {
    display: none;
}

.savings-operation-backdrop {
    position: absolute;
    border: 0;
    inset: 0;
    background: rgba(2, 8, 11, 0.68);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.savings-operation-sheet {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    max-width: 560px;
    margin: 0 auto;
    padding: 10px 18px calc(22px + var(--app-safe-bottom));
    border-radius: 25px 25px 0 0;
    background: #13212b;
    box-shadow: 0 -20px 52px rgba(0, 0, 0, 0.34);
    animation: savings-sheet-enter 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

.savings-operation-handle {
    display: block;
    width: 38px;
    height: 4px;
    margin: 0 auto 18px;
    border-radius: 99px;
    background: rgba(190, 205, 211, 0.18);
}

.savings-operation-sheet header {
    display: flex;
    align-items: start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 18px;
}

.savings-operation-sheet header > div {
    display: grid;
    gap: 4px;
}

.savings-operation-sheet header strong {
    font-size: 20px;
}

.savings-operation-sheet header small,
.savings-operation-detail {
    color: var(--muted);
    font-size: 11px;
}

.savings-operation-sheet header button {
    width: 34px;
    height: 34px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    color: var(--muted);
    font-size: 23px;
}

.savings-operation-form {
    display: grid;
    gap: 11px;
}

.savings-goal-edit-field {
    display: grid;
    gap: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
}

.savings-goal-edit-field input {
    min-height: 54px;
    padding: 0 16px;
    border: 0;
    border-radius: 16px;
    outline: none;
    background: rgba(255, 255, 255, 0.055);
    color: var(--text);
    font: inherit;
    font-size: 16px;
}

.savings-goal-edit-field input:focus {
    box-shadow: inset 0 0 0 1px rgba(95, 235, 149, 0.38);
}

body.savings-operation-open {
    overflow: hidden;
}

body.savings-operation-open .bottom-nav {
    display: none;
}

body.savings-operation-open .toast {
    z-index: 99;
}

@keyframes savings-sheet-enter {
    from { transform: translateY(24px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

html[data-theme="light"] .savings-operation-sheet {
    background: #eef4f1;
}

.home-payment-cards {
    position: relative;
    display: grid;
    width: 100%;
    min-height: 119px;
    grid-template-columns: minmax(92px, 0.72fr) minmax(176px, 1.28fr);
    margin: 10px 0 0;
    padding: 18px 0 0 18px;
    overflow: hidden;
    border: 0;
    border-radius: 21px;
    background:
        radial-gradient(circle at 83% 18%, rgba(79, 224, 137, 0.12), transparent 35%),
        linear-gradient(145deg, #1c2935, #16222d 70%);
    box-shadow: 0 14px 34px rgba(0, 0, 0, 0.16);
    color: var(--text);
    cursor: pointer;
    text-align: left;
    isolation: isolate;
    -webkit-tap-highlight-color: transparent;
}

.home-payment-cards::after {
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: linear-gradient(115deg, rgba(255, 255, 255, 0.035), transparent 42%);
    content: "";
    pointer-events: none;
}

.home-payment-cards-title {
    position: relative;
    z-index: 3;
    align-self: start;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 20px;
    font-weight: 720;
    letter-spacing: -0.025em;
    line-height: 1.1;
}

.home-payment-card-visual {
    position: absolute;
    z-index: 1;
    right: -13px;
    bottom: -35px;
    width: min(61%, 225px);
    height: 154px;
    overflow: hidden;
    border-radius: 19px;
    background:
        radial-gradient(circle at 88% 8%, rgba(98, 238, 153, 0.31), transparent 34%),
        linear-gradient(145deg, #123a32, #071d21 63%, #08161d);
    box-shadow:
        -14px 17px 30px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.13);
    color: #f4fff7;
    transform: rotate(-2.5deg) scale(0.9);
    transform-origin: right bottom;
}

.home-payment-card-orbit {
    position: absolute;
    width: 175px;
    height: 175px;
    right: -52px;
    top: -60px;
    border: 1px solid rgba(102, 236, 157, 0.18);
    border-radius: 50%;
    box-shadow:
        0 0 0 18px rgba(92, 229, 146, 0.035),
        0 0 0 39px rgba(92, 229, 146, 0.025);
}

.home-payment-card-brand {
    position: absolute;
    top: 16px;
    left: 17px;
    display: flex;
    align-items: center;
    gap: 7px;
}

.home-payment-card-brand img {
    width: 25px;
    height: 25px;
    border-radius: 8px;
    object-fit: cover;
}

.home-payment-card-brand b {
    font-size: 11px;
    font-weight: 850;
    letter-spacing: 0.04em;
}

.home-payment-card-chip {
    position: absolute;
    top: 59px;
    left: 19px;
    display: grid;
    width: 31px;
    height: 23px;
    grid-template-columns: repeat(2, 1fr);
    overflow: hidden;
    border-radius: 6px;
    background: linear-gradient(145deg, #7ff0ae, #2b9b67);
    box-shadow: inset 0 0 0 1px rgba(229, 255, 238, 0.35);
}

.home-payment-card-chip i {
    border-right: 1px solid rgba(8, 60, 40, 0.28);
    border-bottom: 1px solid rgba(8, 60, 40, 0.28);
}

.home-payment-card-contactless {
    position: absolute;
    top: 59px;
    left: 57px;
    display: flex;
    height: 25px;
    align-items: center;
    gap: 2px;
}

.home-payment-card-contactless i {
    display: block;
    width: 4px;
    height: 9px;
    border-right: 1.5px solid rgba(231, 255, 240, 0.8);
    border-radius: 50%;
}

.home-payment-card-contactless i:nth-child(2) { height: 15px; }
.home-payment-card-contactless i:nth-child(3) { height: 21px; }

.home-payment-card-number {
    position: absolute;
    right: 18px;
    bottom: 30px;
    font-size: 12px;
    font-weight: 760;
    letter-spacing: 0.08em;
}

.home-payment-cards:active {
    transform: scale(0.985);
}

html[data-theme="light"] .home-payment-cards {
    background:
        radial-gradient(circle at 83% 18%, rgba(36, 182, 96, 0.13), transparent 35%),
        linear-gradient(145deg, #eef5f2, #e1ece8 72%);
    box-shadow: 0 14px 32px rgba(43, 96, 72, 0.12);
}

/* On phones the balance row follows the same full content width as the
   action buttons below.  Give the primary balance a little more room while
   keeping both cards responsive on narrow devices. */
@media (max-width: 560px) {
    .wallet-balance-cards {
        width: 100%;
        grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
    }

    .wallet-balance-tile {
        width: auto;
    }
}

.balance-actions-menu {
    position: absolute;
    z-index: 115;
    bottom: calc(100% - 4px);
    left: 73px;
    width: 218px;
    overflow: hidden;
    border: 0;
    border-radius: 17px;
    background: rgba(29, 41, 52, 0.97);
    box-shadow: 0 18px 42px rgba(0, 0, 0, 0.34);
    animation: balance-menu-enter 150ms cubic-bezier(0.22, 1, 0.36, 1);
}

.balance-actions-menu[hidden] {
    display: none !important;
}

.balance-actions-menu button {
    display: flex;
    width: 100%;
    min-height: 52px;
    padding: 0 15px;
    align-items: center;
    gap: 11px;
    border: 0;
    background: transparent;
    color: var(--text);
    cursor: pointer;
    font-size: 14px;
    font-weight: 760;
    text-align: left;
}

.balance-actions-menu button + button {
    border-top: 1px solid rgba(255, 255, 255, 0.055);
}

.balance-actions-menu button:active {
    background: rgba(102, 214, 106, 0.08);
}

.balance-actions-menu svg {
    width: 21px;
    height: 21px;
    flex: 0 0 21px;
    fill: none;
    stroke: var(--muted);
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

@keyframes balance-menu-enter {
    from { opacity: 0; transform: translateY(5px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.balance-shortcuts {
    display: flex;
    width: 55px;
    flex: 0 0 55px;
    flex-direction: column;
    gap: 8px;
}

.balance-shortcut {
    position: relative;
    display: inline-flex;
    width: 55px;
    height: 55px;
    min-height: 55px;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    border: 0;
    border-radius: 17px;
    background:
        radial-gradient(circle at 25% 12%, rgba(112, 240, 165, 0.15), transparent 56%),
        linear-gradient(145deg, rgba(34, 64, 61, 0.82), rgba(18, 37, 38, 0.78));
    box-shadow:
        0 10px 26px rgba(0, 0, 0, 0.15),
        0 0 22px rgba(67, 218, 127, 0.035);
    color: #70e9a0;
    cursor: pointer;
    transition:
        transform 150ms ease,
        filter 150ms ease,
        box-shadow 150ms ease;
    -webkit-tap-highlight-color: transparent;
}

.balance-shortcut[hidden] {
    display: none !important;
}

.balance-shortcut svg {
    width: 27px;
    height: 27px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.85;
    shape-rendering: geometricPrecision;
}

.balance-shortcut-qr rect {
    fill: currentColor;
    stroke: none;
}

.balance-shortcut:hover {
    filter: brightness(1.07);
    box-shadow:
        0 12px 28px rgba(0, 0, 0, 0.23),
        0 0 20px rgba(67, 218, 127, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.11);
}

.balance-shortcut:active {
    transform: scale(0.94);
}

.balance-shortcut:focus-visible,
.nav-button:focus-visible {
    outline: 2px solid rgba(95, 235, 151, 0.72);
    outline-offset: 2px;
}

.bottom-nav {
    position: fixed;
    z-index: 100;
    right: auto;
    bottom: max(10px, calc(var(--app-safe-bottom) + 8px));
    left: 50%;
    display: grid;
    width: 210px;
    height: 64px;
    margin: 0;
    padding: 6px;
    grid-template-columns: repeat(3, 1fr);
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.085);
    border-radius: 999px;
    background: rgba(18, 30, 33, 0.69);
    box-shadow:
        0 14px 38px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.085);
    transform: translateX(-50%);
    backdrop-filter: blur(18px) saturate(135%);
    -webkit-backdrop-filter: blur(18px) saturate(135%);
    isolation: isolate;
}

html:not(.telegram-mobile) .bottom-nav {
    background: rgba(18, 30, 33, 0.91);
    box-shadow:
        0 14px 38px rgba(0, 0, 0, 0.34),
        inset 0 1px 0 rgba(255, 255, 255, 0.085);
}

.bottom-nav-indicator {
    position: absolute;
    z-index: -1;
    top: 6px;
    left: 6px;
    width: calc((100% - 12px) / 3);
    height: 50px;
    pointer-events: none;
    transform: translate3d(0, 0, 0);
    transition:
        transform 240ms cubic-bezier(0.22, 1, 0.36, 1),
        filter 180ms ease;
    will-change: transform;
}

.bottom-nav-indicator::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background:
        radial-gradient(circle at 34% 20%, rgba(110, 238, 159, 0.15), transparent 43%),
        linear-gradient(145deg, rgba(39, 73, 68, 0.98), rgba(20, 39, 40, 0.98));
    box-shadow:
        0 8px 22px rgba(0, 0, 0, 0.28),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    content: "";
    transform: translateX(-50%);
}

.bottom-nav[data-active-index="1"] .bottom-nav-indicator {
    transform: translate3d(100%, 0, 0);
}

.bottom-nav[data-active-index="2"] .bottom-nav-indicator {
    transform: translate3d(200%, 0, 0);
}

.bottom-nav .nav-button {
    position: relative;
    z-index: 1;
    display: inline-flex;
    width: 100%;
    min-width: 0;
    min-height: 52px;
    padding: 0;
    align-items: center;
    justify-content: center;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: rgba(201, 217, 218, 0.55);
    cursor: pointer;
    transition:
        color 180ms ease,
        transform 150ms ease,
        filter 180ms ease;
    -webkit-tap-highlight-color: transparent;
}

.bottom-nav .nav-button .nav-icon {
    position: absolute;
    top: 50%;
    left: 50%;
    display: block;
    width: 25px;
    height: 25px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
    filter: none;
    shape-rendering: geometricPrecision;
    transform: translate(-50%, -50%);
    transition:
        color 180ms ease,
        filter 180ms ease;
}

.bottom-nav .nav-button.active {
    color: #f2fff7;
}

.bottom-nav .nav-button.active .nav-icon {
    filter:
        drop-shadow(0 0 6px rgba(102, 229, 147, 0.48))
        drop-shadow(0 2px 5px rgba(0, 0, 0, 0.22));
}

.bottom-nav .nav-button:active {
    transform: scale(0.93);
}

html.telegram-android .bottom-nav {
    background:
        radial-gradient(circle at 18% -10%, rgba(90, 214, 139, 0.09), transparent 48%),
        linear-gradient(145deg, rgba(24, 40, 41, 0.985), rgba(13, 25, 29, 0.985));
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
}

html[data-theme="light"] .balance-shortcut {
    border: 0;
    background:
        radial-gradient(circle at 25% 12%, rgba(68, 211, 126, 0.12), transparent 56%),
        linear-gradient(145deg, rgba(236, 249, 242, 0.9), rgba(220, 241, 231, 0.86));
    color: #16884d;
    box-shadow:
        0 10px 26px rgba(27, 92, 61, 0.08);
}

html[data-theme="light"] .balance-actions-menu {
    background: rgba(244, 249, 247, 0.98);
    box-shadow: 0 18px 42px rgba(31, 67, 51, 0.18);
}

html[data-theme="light"] .balance-actions-menu button + button {
    border-top-color: rgba(31, 67, 51, 0.08);
}

html[data-theme="light"] .bottom-nav,
html[data-theme="light"]:not(.telegram-mobile) .bottom-nav {
    border-color: rgba(31, 86, 64, 0.1);
    background: rgba(239, 249, 244, 0.82);
    box-shadow:
        0 14px 38px rgba(25, 66, 49, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

html[data-theme="light"] .bottom-nav-indicator::before {
    background:
        radial-gradient(circle at 34% 20%, rgba(255, 255, 255, 0.72), transparent 45%),
        linear-gradient(145deg, rgba(51, 181, 104, 0.98), rgba(20, 126, 72, 0.98));
    box-shadow:
        0 9px 22px rgba(25, 128, 74, 0.2),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

html[data-theme="light"] .bottom-nav .nav-button {
    color: rgba(39, 69, 58, 0.5);
}

html[data-theme="light"] .bottom-nav .nav-button.active {
    color: #ffffff;
}

@media (max-width: 350px) {
    .wallet-balance-layout {
        gap: 7px;
    }

    .balance-shortcuts {
        width: 51px;
        flex-basis: 51px;
        gap: 7px;
    }

    .balance-shortcut {
        width: 51px;
        height: 51px;
        min-height: 51px;
        border-radius: 16px;
    }

    .balance-shortcut svg {
        width: 24px;
        height: 24px;
    }

    .wallet-balance-layout .wallet-balance-card {
        min-height: 109px;
        padding-right: 11px;
        padding-left: 11px;
    }

    .wallet-balance-cards {
        grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
        gap: 7px;
    }

    .wallet-balance-tile {
        width: auto;
        min-height: 109px;
    }

    .wallet-balance-tile .wallet-balance-heading {
        font-size: 11px;
    }

    .wallet-balance-tile .wallet-balance-value strong {
        font-size: 17px;
    }

    .balance-actions-menu {
        right: 0;
        left: auto;
        width: 210px;
    }

    .home-payment-cards {
        min-height: 112px;
        grid-template-columns: 88px 1fr;
        padding-top: 16px;
        padding-left: 15px;
    }

    .home-payment-cards-title {
        font-size: 18px;
    }

    .home-payment-card-visual {
        right: -18px;
        bottom: -39px;
        width: 61%;
        height: 148px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .bottom-nav-indicator,
    .bottom-nav .nav-button,
    .balance-shortcut {
        transition: none !important;
    }
}
