:root {
    --color-background: #ebebeb;
    --color-payment-block-background: #f3f3f3;
    --color-green-start: #00e755;
    --color-green-end: #008130;
    --color-green-inner-start: #079834;
    --color-green-inner-end: #057b2a;
    --color-text-light: #ffffff;
    --color-text-dark: #1b1b1b;
    --color-border-soft: #d9d9d9;
    --color-shadow: rgba(0, 0, 0, 0.16);
    --color-shadow-strong: rgba(0, 0, 0, 0.2);
    --color-danger: #d93025;
    --radius-card: 42px;
    --radius-xl: 22px;
    --radius-lg: 18px;
    --radius-md: 14px;
    --radius-sm: 8px;
    --container-padding: 16px;
    color-scheme: light;
}

*,
*::before,
*::after {
    box-sizing: border-box;
}

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
    scroll-behavior: smooth;
}

html,
body,
#app {
    margin: 0;
    padding: 0;
    width: 100%;
    min-width: 320px;
    min-height: 100dvh;
    overflow-x: hidden;
    background: #dcdcdc;
    font-family: "Montserrat", sans-serif;
}

body {
    color: var(--color-text-dark);
}

img,
svg {
    max-width: 100%;
    height: auto;
    display: block;
}

button,
input,
select,
textarea {
    font: inherit;
}

button {
    -webkit-tap-highlight-color: transparent;
}

input {
    min-width: 0;
}

.layout-wrapper {
    min-height: 100dvh;
    background-color: var(--color-background);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: max(28px, env(safe-area-inset-top)) max(16px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
}

.payment-card {
    width: 100%;
    max-width: 640px;
    margin: 0 auto;
    background: #efefef;
    border-radius: var(--radius-card);
    box-shadow: 0 8px 18px var(--color-shadow);
    overflow: hidden;
    min-height: 610px;
    animation: cardFadeIn 0.45s ease;
    position: relative;
}

.payment-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 0;
}

.header-top {
    min-height: 92px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 36px;
    gap: 16px;
}

.header-icon {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .header-icon img,
    .header-icon svg {
        width: 40px;
        height: 40px;
        object-fit: contain;
    }

.divider {
    width: 100%;
    height: 1px;
    background: #e4e4e4;
    margin: 0;
}

.currency-select {
    position: relative;
    min-width: 82px;
    min-height: 46px;
    padding: 0 16px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    border-radius: 22px;
    background: #5a5a5a;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.18);
    cursor: pointer;
    user-select: none;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
    z-index: 100;
}

    .currency-select:hover {
        transform: translateY(-1px);
        box-shadow: 0 6px 12px rgba(0, 0, 0, 0.2);
        background: #505050;
    }

    .currency-select:active {
        transform: translateY(0);
    }

.selected-language {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1;
    letter-spacing: 0;
    text-align: center;
}

.arrow {
    width: 0;
    height: 0;
    margin-top: 2px;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #ffffff;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

    .arrow.open {
        transform: rotate(180deg);
    }

.currency-dropdown {
    position: absolute;
    top: calc(100% + 8px);
    right: 0;
    min-width: 82px;
    overflow: hidden;
    border-radius: 18px;
    background: #5a5a5a;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.18);
    z-index: 200;
    animation: dropdownFade 0.18s ease;
}

.currency-option {
    padding: 11px 16px;
    text-align: center;
    color: #ffffff;
    font-size: 15px;
    cursor: pointer;
    white-space: nowrap;
    font-family: "Montserrat", sans-serif;
    transition: background-color 0.18s ease;
}

    .currency-option:hover {
        background: rgba(255, 255, 255, 0.08);
    }

.payment-title {
    padding: 30px 52px 14px;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: clamp(20px, 2.2vw, 22px);
    line-height: 1.15;
    letter-spacing: 0;
    color: var(--color-text-dark);
    word-break: break-word;
}

.amount-form {
    padding: 0 42px 22px;
    margin-bottom: 0;
}

.amount-label {
    display: none;
}

.amount-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
}

.amount-input {
    flex: 1 1 auto;
    min-width: 0;
    height: 42px;
    border: 1px solid #a8a8a8;
    border-radius: 17px;
    background: #f1f1f1;
    padding: 0 18px;
    outline: none;
    color: #333333;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1;
    transition: border-color 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease;
}

    .amount-input::placeholder {
        color: #979797;
        font-family: "Montserrat", sans-serif;
        font-weight: 400;
        font-size: 18px;
        line-height: 1;
    }

    .amount-input:focus {
        border-color: #7f7f7f;
        box-shadow: 0 0 0 3px rgba(0, 231, 85, 0.12);
        background: #f7f7f7;
    }

.amount-submit {
    min-width: 146px;
    height: 42px;
    border: none;
    border-radius: 17px;
    background: linear-gradient(90deg, var(--color-green-start) 0%, var(--color-green-end) 100%);
    color: #ffffff;
    box-shadow: 0 4px 10px rgba(0, 231, 85, 0.28);
    cursor: pointer;
    white-space: nowrap;
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    font-family: "Abhaya Libre", serif;
    font-weight: 800;
    font-size: clamp(18px, 2.4vw, 21px);
    line-height: 1;
    letter-spacing: 0;
    padding: 0 18px;
}

    .amount-submit:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(0, 231, 85, 0.34);
        filter: brightness(1.03);
    }

    .amount-submit:active {
        transform: translateY(0);
        box-shadow: 0 4px 10px rgba(0, 231, 85, 0.24);
    }

    .amount-submit:disabled {
        opacity: 0.7;
        cursor: default;
        transform: none;
        filter: none;
    }

.amount-error {
    margin-top: 10px;
    color: var(--color-danger);
    font-size: 14px;
    font-family: "Montserrat", sans-serif;
    line-height: 1.35;
}

.info-card {
    width: 100%;
    min-width: 0;
    background: transparent;
    border-radius: 0;
    padding: 0 46px 14px;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.info-row {
    min-height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 0 16px;
    background: linear-gradient(90deg, var(--color-green-start) 0%, var(--color-green-end) 100%);
    border-radius: 20px;
    box-shadow: 0 4px 7px rgba(0, 0, 0, 0.16);
    transition: transform 0.18s ease, box-shadow 0.18s ease, filter 0.18s ease;
    animation: rowFadeUp 0.4s ease both;
    min-width: 0;
}

    .info-row:nth-child(2) {
        animation-delay: 0.05s;
    }

    .info-row:nth-child(3) {
        animation-delay: 0.1s;
    }

    .info-row:nth-child(4) {
        animation-delay: 0.15s;
    }

    .info-row:hover {
        transform: translateY(-2px);
        box-shadow: 0 8px 16px rgba(0, 231, 85, 0.2);
        filter: brightness(1.02);
    }

.info-row__label {
    flex: 0 1 130px;
    min-width: 110px;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 16px;
    line-height: 1.2;
    letter-spacing: 0;
    white-space: nowrap;
}

.info-row__value-wrap {
    flex: 1 1 auto;
    min-width: 0;
    margin-left: auto;
    min-height: 26px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 4px 12px;
    background: linear-gradient(90deg, #079834 0%, #057b2a 100%);
    border-radius: 8px;
    overflow: hidden;
    transition: filter 0.18s ease;
    width: auto;
    max-width: 100%;
}

.info-row:hover .info-row__value-wrap {
    filter: brightness(1.04);
}

.info-row__value {
    flex: 1 1 auto;
    min-width: 0;
    color: #ffffff;
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.info-row__copy-btn {
    width: 16px;
    height: 16px;
    flex: 0 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    background: transparent;
    cursor: pointer;
    transition: transform 0.18s ease, opacity 0.18s ease;
}

    .info-row__copy-btn:hover {
        transform: scale(1.08);
        opacity: 0.9;
    }

    .info-row__copy-btn:active {
        transform: scale(0.96);
    }

.copy-icon {
    width: 12px;
    height: 12px;
    display: block;
}

.order-status-message {
    margin: 10px 38px 0;
    padding: 12px 14px;
    border-radius: 14px;
    background: #f3f4f6;
    font-size: 14px;
    color: #111827;
    font-family: "Montserrat", sans-serif;
    animation: fadeIn 0.25s ease;
    line-height: 1.4;
}

.timer-section {
    display: flex;
    justify-content: center;
    margin: 2px 0 12px;
    padding: 0 12px;
}

.timer-circle {
    min-width: 138px;
    height: 34px;
    padding: 0 18px;
    border-radius: 14px;
    background: linear-gradient(90deg, #5b5b5b 0%, #9b9b9b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.18);
    border: none;
}

    .timer-circle span {
        color: #ffffff;
        font-size: 17px;
        font-weight: 400;
        line-height: 1;
        letter-spacing: 0;
        font-family: "Montserrat", sans-serif;
    }

.warning-card {
    width: calc(100% - 92px);
    margin: 0 auto 34px;
    background: linear-gradient(90deg, var(--color-green-start) 0%, var(--color-green-end) 100%);
    border-radius: 22px;
    padding: 14px 16px 14px;
    color: #ffffff;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16);
}

.warning-title {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-align: center;
    font-size: 13px;
    line-height: 1.3;
    font-weight: 400;
    margin-bottom: 14px;
    font-family: "Montserrat", sans-serif;
}

.warning-icon {
    color: #ff2b2b;
    font-size: 16px;
    font-weight: 700;
    line-height: 1;
    flex-shrink: 0;
}

.warning-columns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px;
}

.warning-column {
    background: linear-gradient(90deg, var(--color-green-inner-start) 0%, var(--color-green-inner-end) 100%);
    border-radius: 12px;
    padding: 12px 14px;
    min-height: 86px;
    display: block;
}

.warning-list {
    margin: 0;
    padding-left: 16px;
    display: block;
    column-gap: 18px;
    row-gap: 4px;
    font-size: 14px;
    line-height: 1.35;
    font-family: "Montserrat", sans-serif;
    list-style: disc;
}

    .warning-list li {
        margin: 0 0 12px 0;
        display: list-item;
    }

        .warning-list li:last-child {
            margin-bottom: 0;
        }

        .warning-list li::marker {
            color: #ffffff;
        }

.action-buttons {
    display: flex;
    justify-content: center;
    gap: 34px;
    flex-wrap: nowrap;
    padding: 0 16px 18px;
}

.btn-paid,
.btn-cancel {
    min-width: 188px;
    min-height: 44px;
    border: none;
    border-radius: 14px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.25;
    cursor: pointer;
    transition: transform 0.15s ease, opacity 0.15s ease, box-shadow 0.15s ease;
    font-family: "Montserrat", sans-serif;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.16);
    text-align: center;
}

    .btn-paid:hover,
    .btn-cancel:hover {
        transform: translateY(-1px);
        opacity: 0.96;
    }

.btn-paid {
    background: linear-gradient(90deg, var(--color-green-start) 0%, var(--color-green-end) 100%);
    color: #ffffff;
}

.btn-cancel {
    background: linear-gradient(90deg, #575757 0%, #a5a5a5 100%);
    color: #ffffff;
}

.payment-logos {
    display: flex;
    justify-content: center;
    padding: 2px 0 10px;
    margin-top: 6px;
    margin-bottom: 12px;
}

    .payment-logos img {
        height: 22px;
        width: auto;
        display: block;
        object-fit: contain;
        opacity: 0.95;
    }

.modal-backdrop {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    padding: 16px;
    animation: fadeIn 0.18s ease;
}

.timeout-modal {
    position: relative;
    width: 100%;
    max-width: 420px;
    background: #ffffff;
    border-radius: 16px;
    padding: 24px 20px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.2);
    animation: modalUp 0.22s ease;
}

.modal-close {
    position: absolute;
    top: 10px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    line-height: 1;
}

.modal-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    font-family: "Montserrat", sans-serif;
    line-height: 1.2;
}

.modal-text {
    font-size: 15px;
    color: #555555;
    line-height: 1.5;
    font-family: "Montserrat", sans-serif;
}

.final-status-screen {
    min-height: 610px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    text-align: center;
    padding: 40px 20px;
}

.final-status-icon {
    width: 88px;
    height: 88px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 42px;
    font-weight: 700;
}

    .final-status-icon.success {
        background: #eafaf0;
        color: #22a06b;
        border: 2px solid #22a06b;
    }

    .final-status-icon.failed {
        background: #fff1f1;
        color: #d92d20;
        border: 2px solid #d92d20;
    }

.final-status-text {
    font-size: 24px;
    font-weight: 600;
    color: #1f2937;
    font-family: "Montserrat", sans-serif;
    line-height: 1.25;
}

.payment-loader {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 4px solid transparent;
    border-top-color: #3b82f6;
    border-left-color: #3b82f6;
    animation: spin 1.2s cubic-bezier(0.4, 0, 0.2, 1) infinite, pulse 1.6s ease-in-out infinite;
    margin: 0 auto 16px;
}

#blazor-error-ui {
    background: lightyellow;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
}

    #blazor-error-ui .dismiss {
        cursor: pointer;
        position: absolute;
        right: 0.75rem;
        top: 0.5rem;
    }

.loading-progress {
    position: fixed;
    top: 50%;
    left: 50%;
    width: 8rem;
    height: 8rem;
    margin-top: -4rem;
    margin-left: -4rem;
}

    .loading-progress circle {
        fill: none;
        stroke-width: 0.6rem;
        transform-origin: 50% 50%;
        transform: rotate(-90deg);
    }

        .loading-progress circle:first-child {
            stroke: #e5e7eb;
        }

        .loading-progress circle:last-child {
            stroke: #16a34a;
            stroke-linecap: round;
            stroke-dasharray: 188.4;
            stroke-dashoffset: 75;
            animation: loading-progress 1.2s ease-in-out infinite;
        }

.loading-progress-text {
    position: fixed;
    top: calc(50% + 5rem);
    left: 50%;
    transform: translateX(-50%);
    font-size: 14px;
    color: #6b7280;
    font-weight: 600;
    font-family: "Montserrat", sans-serif;
    text-align: center;
    padding: 0 12px;
}

    .loading-progress-text::after {
        content: "Загрузка...";
    }

.success-screen {
    flex-direction: column;
    gap: 20px;
    text-align: center;
}

.failed-screen {
    padding: 0;
}

.failed-status-box {
    width: 100%;
    max-width: 285px;
    min-height: 160px;
    background: #d9d9d9;
    border-radius: 34px;
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 14px;
    padding: 26px 20px 18px;
}

.failed-status-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
}

.failed-status-icon-img {
    width: 88px;
    height: 88px;
    object-fit: contain;
    display: block;
}

.failed-status-text {
    font-family: "Montserrat", sans-serif;
    font-weight: 400;
    font-size: 18px;
    line-height: 1.1;
    color: #3a3a3a;
    text-align: center;
}

/* Focus states */
.amount-submit:focus-visible,
.btn-paid:focus-visible,
.btn-cancel:focus-visible,
.currency-select:focus-visible,
.info-row__copy-btn:focus-visible,
.modal-close:focus-visible {
    outline: 3px solid rgba(0, 231, 85, 0.26);
    outline-offset: 2px;
}

/* Animations */
@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }

    50% {
        opacity: 0.6;
    }
}

@keyframes loading-progress {
    0% {
        stroke-dashoffset: 188.4;
    }

    50% {
        stroke-dashoffset: 47.1;
    }

    100% {
        stroke-dashoffset: 188.4;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-6px);
    }

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

@keyframes modalUp {
    from {
        opacity: 0;
        transform: translateY(14px) scale(0.98);
    }

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

@keyframes rowFadeUp {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

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

@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

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

/* ========== 768px ========== */
@media (max-width: 768px) {
    .layout-wrapper {
        min-height: 100dvh;
        align-items: center;
        justify-content: center;
        padding: max(20px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(20px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    }

    .payment-card {
        border-radius: 28px;
        min-height: auto;
    }

    .header-top {
        padding-left: 24px;
        padding-right: 24px;
    }

    .payment-title {
        padding-left: 28px;
        padding-right: 28px;
        padding-top: 26px;
        font-size: 22px;
    }

    .amount-form {
        padding-left: 24px;
        padding-right: 24px;
    }

    .info-card {
        padding-left: 28px;
        padding-right: 28px;
    }

    .selected-language {
        font-size: 18px;
    }

    .info-row__label {
        min-width: 104px;
        font-size: 15px;
    }

    .info-row__value {
        font-size: 13px;
    }

    .warning-card {
        width: calc(100% - 48px);
    }

    .action-buttons {
        gap: 20px;
    }

    .btn-paid,
    .btn-cancel {
        min-width: 160px;
    }

    .final-status-screen {
        min-height: auto;
    }
}

/* ========== 600px ========== */
@media (max-width: 600px) {
    .layout-wrapper {
        min-height: 100dvh;
        align-items: center;
        justify-content: center;
        padding: max(12px, env(safe-area-inset-top)) max(12px, env(safe-area-inset-right)) max(12px, env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
    }

    .payment-card {
        border-radius: 22px;
    }

    .header-top {
        min-height: 84px;
        padding-top: 18px;
        padding-bottom: 18px;
    }

    .payment-title {
        font-size: 20px;
        padding-top: 24px;
        padding-bottom: 12px;
    }

    .selected-language {
        font-size: 18px;
    }

    .amount-input {
        font-size: 16px;
    }

        .amount-input::placeholder {
            font-size: 16px;
        }

    .amount-form {
        padding-bottom: 18px;
    }

    .amount-input-row {
        flex-direction: column;
        align-items: stretch;
    }

    .amount-submit {
        width: 100%;
        min-width: 0;
    }

    .info-card {
        gap: 12px;
        padding-bottom: 16px;
    }

    .info-row {
        min-height: 54px;
        padding: 0 14px;
        gap: 10px;
    }

    .info-row__label {
        min-width: 92px;
        font-size: 15px;
    }

    .info-row__value-wrap {
        min-height: 28px;
        padding: 4px 12px;
    }

    .info-row__value {
        font-size: 13px;
    }

    .timer-circle {
        min-width: 118px;
        height: 32px;
    }

        .timer-circle span {
            font-size: 16px;
        }

    .warning-card {
        width: calc(100% - 32px);
        border-radius: 16px;
        padding: 12px 16px;
    }

    .warning-title {
        justify-content: flex-start;
        text-align: left;
        font-size: 12px;
        margin-bottom: 10px;
    }

    .warning-columns {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .warning-list {
        font-size: 12px;
    }

    .action-buttons {
        flex-wrap: wrap;
        gap: 12px;
        padding-bottom: 18px;
    }

    .btn-paid,
    .btn-cancel {
        min-width: 0;
        width: calc(50% - 6px);
    }

    .failed-status-box {
        max-width: 250px;
        min-height: 145px;
        border-radius: 28px;
        padding: 22px 16px 16px;
    }

    .failed-status-icon-img {
        width: 74px;
        height: 74px;
    }

    .failed-status-text {
        font-size: 16px;
    }
}

/* ========== 480px ========== */
/* ========== 480px ========== */
@media (max-width: 480px) {
    .header-top {
        padding-left: 18px;
        padding-right: 18px;
        gap: 12px;
    }

    .payment-title {
        padding-left: 18px;
        padding-right: 18px;
        font-size: 19px;
    }

    .amount-form,
    .info-card {
        padding-left: 18px;
        padding-right: 18px;
    }

    .order-status-message {
        margin-left: 18px;
        margin-right: 18px;
        font-size: 13px;
    }

    .info-card {
        gap: 12px;
    }

    .info-row {
        flex-direction: column;
        align-items: stretch;
        justify-content: flex-start;
        padding: 12px;
        min-height: unset;
        border-radius: 22px;
        gap: 6px;
        box-shadow: 0 4px 10px rgba(0, 0, 0, 0.14);
    }

    .info-row__label {
        flex: none;
        min-width: 0;
        width: 100%;
        padding: 0 2px;
        font-size: 12px;
        line-height: 1.2;
        white-space: normal;
        color: rgba(255, 255, 255, 0.92);
    }

    .info-row__value-wrap {
        flex: none;
        width: 100%;
        max-width: 100%;
        margin-left: 0;
        min-height: 42px;
        padding: 0 12px;
        border-radius: 14px;
        display: flex;
        align-items: center;
        gap: 8px;
        box-shadow: inset 0 1px 0 rgba(255,255,255,0.08);
    }

    .info-row__value {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        word-break: normal;
        overflow-wrap: normal;
        line-height: 1.2;
        font-size: 14px;
    }

    .info-row__copy-btn {
        width: 20px;
        height: 20px;
        flex: 0 0 20px;
        opacity: 0.92;
    }

    .copy-icon {
        width: 14px;
        height: 14px;
    }

    .warning-card {
        width: calc(100% - 24px);
    }

    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }

    .btn-paid,
    .btn-cancel {
        width: 100%;
    }

    .modal-backdrop {
        padding: 12px;
    }

    .timeout-modal {
        padding: 22px 18px;
        border-radius: 14px;
    }

    .modal-title {
        font-size: 18px;
    }

    .modal-text {
        font-size: 14px;
    }

    .final-status-icon {
        width: 76px;
        height: 76px;
        font-size: 36px;
    }

    .final-status-text {
        font-size: 21px;
    }
}

/* ========== 380px ========== */
/* ========== 380px ========== */
@media (max-width: 380px) {
    .layout-wrapper {
        min-height: 100dvh;
        align-items: center;
        justify-content: center;
        padding: max(8px, env(safe-area-inset-top)) max(8px, env(safe-area-inset-right)) max(8px, env(safe-area-inset-bottom)) max(8px, env(safe-area-inset-left));
    }

    .payment-card {
        border-radius: 18px;
    }

    .header-top {
        padding-left: 16px;
        padding-right: 16px;
    }

    .payment-title {
        padding-left: 16px;
        padding-right: 16px;
        font-size: 18px;
    }

    .amount-form,
    .info-card {
        padding-left: 16px;
        padding-right: 16px;
    }

    .currency-select {
        min-width: 82px;
        min-height: 42px;
        padding: 0 12px;
    }

    .selected-language {
        font-size: 16px;
    }

    .amount-input {
        font-size: 14px;
    }

        .amount-input::placeholder {
            font-size: 14px;
        }

    .info-row {
        padding: 10px;
        border-radius: 18px;
    }

    .info-row__label {
        font-size: 11px;
    }

    .info-row__value-wrap {
        min-height: 40px;
        padding: 0 10px;
        border-radius: 12px;
    }

    .info-row__value {
        font-size: 13px;
    }

    .warning-title {
        font-size: 11px;
    }

    .warning-list {
        font-size: 11px;
    }

    .warning-card {
        width: calc(100% - 20px);
        padding: 12px;
    }

    .btn-paid,
    .btn-cancel {
        font-size: 12px;
        min-height: 42px;
    }
}

/* ========== 340px ========== */
@media (max-width: 340px) {
    .payment-title {
        font-size: 17px;
    }

    .header-icon img,
    .header-icon svg {
        width: 34px;
        height: 34px;
    }

    .currency-select {
        min-width: 74px;
        padding: 0 10px;
    }

    .selected-language {
        font-size: 14px;
    }

    .amount-submit {
        font-size: 17px;
    }

    .timer-circle {
        min-width: 100%;
    }

    .failed-status-box {
        max-width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation: none !important;
        transition: none !important;
        scroll-behavior: auto !important;
    }
}

.amount-input-row {
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.amount-input {
    flex: 1 1 0;
    min-width: 0;
    width: 0;
    position: relative;
    z-index: 1;
}

.amount-submit {
    flex: 0 0 146px;
    width: 146px;
    min-width: 146px;
    position: relative;
    z-index: 2;
    pointer-events: auto;
}