: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;
    --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)
    );
}

* {
    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;
}

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 {
    touch-action: pan-y;
    overscroll-behavior-x: 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);
}

.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-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;
    right: 4px;
    bottom: 3px;
    left: 4px;
    height: 13px;
    border: 2px solid currentColor;
    border-radius: 5px 5px 4px 4px;
    box-sizing: border-box;
    content: "";
}

.nav-icon-home::after {
    position: absolute;
    top: 3px;
    left: 8px;
    width: 8px;
    height: 8px;
    border-top: 2px solid currentColor;
    border-left: 2px solid currentColor;
    border-radius: 2px 0 0;
    content: "";
    transform: rotate(45deg);
}

.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-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;
    flex: 1;
    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: 14px;
    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: 4px;
    min-width: 0;
    flex: 0 1 auto;
}

.account-header-username {
    min-width: 0;
    overflow: hidden;
    font-size: 17px;
    font-weight: 850;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.account-header-arrow {
    flex: 0 0 auto;
    color: var(--green-bright);
    font-size: 18px;
    line-height: 1;
}

.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-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 {
    margin: 20px 4px 10px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

.account-card {
    width: 100%;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, #20293b, #1a2433);
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.account-static-card {
    padding: 15px 16px;
}

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

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

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

.account-row-icon {
    display: grid;
    width: 34px;
    height: 34px;
    flex: 0 0 34px;
    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;
    }
}


/* 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;
    border-color: rgba(102, 214, 106, 0.18);
    background:
        radial-gradient(circle at 0 50%, rgba(102, 214, 106, 0.08), transparent 35%),
        linear-gradient(145deg, #202d39, #18242f);
}

.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;
}

.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 {
    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;
    }
}

.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);
}

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

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

#emailSettingsInput {
    width: 100%;
    height: 54px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 15px;
    outline: 0;
    background: #12202b;
    color: var(--text);
}

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

.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-name-chip {
    display: inline-flex;
    max-width: 100%;
    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);
}

.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: 16px 17px 15px;
    border: 1px solid var(--line);
    border-radius: 19px;
    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: 25px;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    color: var(--muted);
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 14px;
    font-weight: 500;
}

.balance-visibility-button {
    display: grid;
    width: 30px;
    height: 30px;
    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: 19px;
    height: 19px;
    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: 39px;
    align-items: baseline;
    gap: 7px;
    margin-top: 6px;
    color: var(--text);
    text-align: left;
}

.wallet-balance-value strong {
    min-width: 1ch;
    font-family: Roboto, "Segoe UI", sans-serif;
    font-size: 27px;
    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: 15px;
    font-weight: 700;
}

.wallet-balance-arrow {
    color: var(--green-bright);
    font-size: 19px;
    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;
}

.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-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);
}

.home-banner-carousel {
    position: relative;
    width: 100%;
    aspect-ratio: 3.74 / 1;
    margin: -6px 0 20px;
    overflow: hidden;
    border: 1px solid rgba(108, 151, 171, 0.22);
    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-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);
}

/* 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;
}

.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-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[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;
}

@media (max-height: 620px) {
    .fiat-exchange-form {
        padding-top: 36px;
    }

    .fiat-rate-row {
        margin: 24px 0;
    }
}

.digital-assets-section {
    margin-top: 2px;
}

.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 var(--line);
    border-radius: 18px;
    background: linear-gradient(145deg, #1d2b38, #17232e);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.14);
}

.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-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 {
    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;
    z-index: 99;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    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-y: auto;
    padding: 9px 16px 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;
    gap: 11px;
}

.top-up-option {
    display: flex;
    width: 100%;
    min-height: 72px;
    align-items: center;
    gap: 12px;
    padding: 12px 14px;
    border: 1px solid var(--line);
    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.14);
}

.top-up-option-icon {
    display: grid;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    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: 16px;
    font-weight: 850;
}

.top-up-option-copy small {
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
}

.top-up-option-arrow {
    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;
}

.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: 10px;
    margin-top: 34px;
}

.crypto-deposit-select-section.network-section {
    margin-top: 30px;
}

.crypto-deposit-select-section > h2 {
    margin: 0 0 14px;
    font-size: 17px;
    font-weight: 900;
    letter-spacing: -0.015em;
}

.crypto-asset-choice {
    display: grid;
    grid-template-columns: 48px minmax(0, 1fr) 24px;
    align-items: center;
    gap: 13px;
    min-height: 86px;
    padding: 14px 16px;
    border: 1.5px solid var(--line);
    border-radius: 19px;
    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;
}

.crypto-asset-choice.selected {
    border-color: rgba(102, 214, 106, 0.62);
}

.crypto-asset-choice > img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.crypto-asset-choice > span {
    display: grid;
    gap: 5px;
}

.crypto-asset-choice strong {
    font-size: 18px;
    font-weight: 900;
}

.crypto-asset-choice small {
    color: var(--muted);
    font-size: 13px;
    font-weight: 700;
}

.crypto-asset-choice > i {
    display: grid;
    width: 22px;
    height: 22px;
    place-items: center;
    border-radius: 50%;
    background: var(--green-bright);
    color: #07120b;
    font-size: 13px;
    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: 48px minmax(0, 1fr) 22px;
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 84px;
    padding: 15px 16px;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: var(--text);
    text-align: left;
    cursor: pointer;
}

.crypto-network-choice img {
    width: 48px;
    height: 48px;
    object-fit: contain;
}

.crypto-network-choice span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.crypto-network-choice strong {
    font-size: 17px;
    font-weight: 900;
}

.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: 54px;
    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: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 0 -2px 22px;
    padding: 0 2px;
}

.history-filter-chip {
    display: flex;
    width: 100%;
    min-width: 0;
    min-height: 40px;
    padding: 0 7px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    border: 1px solid var(--line);
    border-radius: 999px;
    background: linear-gradient(145deg, #1c2a36, #16222d);
    color: var(--text);
    font-size: 13px;
    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: 14px;
    font-style: normal;
    transform: translateY(-1px);
}

@media (max-width: 360px) {
    .history-filter-bar {
        gap: 4px;
    }

    .history-filter-chip {
        min-height: 38px;
        padding: 0 5px;
        gap: 4px;
        font-size: 12px;
    }
}

.history-filter-chip.active {
    border-color: rgba(102, 214, 106, 0.3);
    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-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"] .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-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"] .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: 1fr 1fr;
    gap: 10px;
}

.transfer-asset-choice {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr);
    align-items: center;
    gap: 9px;
    min-width: 0;
    min-height: 68px;
    padding: 10px 11px;
    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;
}

.transfer-asset-choice.active {
    border-color: rgba(102, 214, 106, 0.52);
    background: linear-gradient(145deg, #203640, #192c36);
}

.transfer-asset-choice img {
    width: 38px;
    height: 38px;
    object-fit: contain;
}

.transfer-asset-choice span {
    display: grid;
    min-width: 0;
    gap: 2px;
}

.transfer-asset-choice strong {
    font-size: 15px;
    font-weight: 800;
}

.transfer-asset-choice small {
    overflow: hidden;
    color: var(--muted);
    font-size: 11px;
    font-weight: 600;
    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);
}

.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 {
    border-color: var(--line);
    background: #ffffff;
}

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-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;
    }
}
