.payment-irr-main, .payment-usdt-main {
    width: 100%;
    height: calc(100vh - 65px);
    overflow-x: hidden;
    overflow-y: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: center;
    background-color: var(--color-bg);
}

.payment-page-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    height: 100%;
    overflow-y: auto;
}

.payment-page-header {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 8px;
    width: 100%;
    padding: 16px 0;
    background-color: var(--color-secondary);
}

.payment-step-number-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    border: 2px solid var(--color-primary-hover);
    background-color: var(--color-bg-soft);
}
.payment-step-number-container p {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    text-align: right;
}

.payment-step-title {
    display: flex;
    justify-content: center;
    align-items: center;
}
.payment-step-title p {
    font-size: 16px;
    font-weight: 700;
    margin: 0;
    text-align: center;
    color: var(--color-primary-hover);
}

.payment-page-body {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: flex-start;
    width: 100%;
}

.payment-right-col, .payment-left-col {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    width: 50%;
}

.payment-amounts-container {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    padding: 16px;
    gap: 16px;
    width: 100%;
    box-sizing: border-box;
}

.payment-amount-item {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    padding: 16px;
    height: 58px;
    width: 100%;
    background-color: rgba(245, 245, 245, 0.9);
    backdrop-filter: blur(40px);
    border-radius: 14px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    box-sizing: border-box;
    cursor: pointer;
    border: 1px solid transparent;
    transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}
.payment-amount-item.active {
    border-color: var(--color-primary);
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.0);
    background-color: rgba(240, 240, 240, 0.9);
}
.payment-amount-item:hover {
    background-color: rgba(240, 240, 240, 0.9);;
}

.payment-amount-item-checkbox {
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: transparent;
    border-radius: 5px;
    transition: background-color 0.3s ease;
}
.payment-amount-item-checkbox img {
    width: 20px;
    height: 20px;
    user-select: none;
    pointer-events: none;
}
.payment-amount-item-checkbox.active {
    background-color: var(--color-primary);
}

.payment-amount-item-warning {
    display: flex;
    justify-content: center;
    align-items: center;
}
.payment-amount-item-warning p {
    font-size: 11px;
    font-weight: normal;
    color: var(--color-danger);
    margin: 0;
    text-align: right;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.payment-amount-item-number {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4px;
}
.payment-amount-item-number img {
    height: 20px;
    width: 20px;
    user-select: none;
    pointer-events: none;
}
.payment-amount-item-number p {
    font-size: 16px;
    font-weight: 700;
    text-align: center;
    color: var(--color-text);
    margin: 0;
}

.payment-amount-input {
    height: 31px;
    padding: 5px 10px;
    box-sizing: border-box;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    width: 100px;
    margin-right: -3px;
    direction: ltr;
    font-size: 14px;
    font-weight: 600;
    font-family: "PeydaWebVF", serif;
    color: var(--color-text);
}
.payment-amount-input:focus {
    outline: none;
}


.wallet-before-after-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.wallet-before-container, .wallet-after-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 16px;
    width: 100%;
    box-sizing: border-box;
}
.wallet-after-container {
    padding: 0 16px 16px 16px;
}

.wallet-before-header, .wallet-after-header {
    display: flex;
    flex-direction: row;
    width: 100%;
    justify-content: flex-start;
    align-items: center;
}
.wallet-before-header p, .wallet-after-header p {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    text-align: right;
}

.waller-before-body, .wallet-after-body {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    border-bottom: 1px solid rgba(10, 10, 10, 0.2);
}
.wallet-after-body {
    border: none;
}
.waller-before-body img, .wallet-after-body img {
    width: 25px;
    height: 25px;
}

.wallet-before-balance, .wallet-after-balance {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}
.wallet-before-balance p, .wallet-after-balance p {
    font-weight: 700;
    font-size: 16px;
    margin: 0;
    text-align: center;
    color: var(--color-text);
}

.payment-receipt-container {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: calc(100% - 32px);
    padding: 16px;
    box-sizing: border-box;
    gap: 16px;
    box-shadow: 0 0 2px rgba(0, 0, 0, 0.2);
    border-radius: 12px;
}

.payment-receipt-header {
    display: flex;
    flex-direction: row;
    gap: 4px;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}

.payment-receipt-header-title {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    text-align: right;
}
.payment-receipt-taz-title {
    margin: 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--color-text);
    text-align: right;
}

.payment-receipt-body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.payment-final-amount {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    gap: 4px;
    width: 100%;
    box-sizing: border-box;
    padding: 30px 0;
}
.payment-final-amount p {
    margin: 0;
    font-size: 16px;
    font-weight: 700;
    color: var(--color-text);
    text-align: right;
}
.payment-final-amount img {
    width: 20px;
    height: 20px;
}

.payment-final-warning {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    gap: 4px;
    width: 100%;
}
.payment-final-warning img {
    width: 25px;
    height: 25px;
}
.payment-final-warning p {
    margin: 0;
    font-size: 12px;
    font-weight: normal;
    color: var(--color-danger);
    text-align: right;
}

.payment-portals-selection {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
}

.payment-portals-header {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
}
.payment-portals-header p {
    margin: 0;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-text);
    text-align: right;
}

.payment-portals-body {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.payment-portal-slider {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: max-content;
    padding: 16px;
    scroll-snap-type: x mandatory;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scrollbar-width: none;
    gap: 16px;
}
.payment-portal-slider::-webkit-scrollbar {
    display: none;
}

.payment-portal-item {
    display: flex;
    flex-shrink: 0;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    scroll-snap-align: center;
    width: 120px;
    height: 160px;
    border: 1px solid transparent;
    border-radius: 8px;
    box-shadow: 0 0 4px rgba(0, 0, 0, 0.2);
    transition: border-color 0.3s ease, transform 0.3s ease;
}
.payment-portal-item.active {
    border-color: var(--color-primary-hover);
    transform: scale(1.05);
}
.payment-portal-item img {
    width: 100%;
    height: 100%;
}

.payment-goto-pay-container{
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    width: 100%;
    padding: 0 16px 16px 16px;
    box-sizing: border-box;
}

.payment-goto-pay-btn {
    display: flex;
    position: relative;
    flex-direction: row;
    gap: 6px;
    justify-content: center;
    align-items: center;
    width: 100%;
    background-color: var(--color-primary);
    border-radius: 8px;
    padding: 10px 0;
    opacity: 1;
    cursor: pointer;
    transition: background-color 0.3s ease, opacity 0.3s ease;
}
.payment-goto-pay-btn:hover {
    background-color: var(--color-primary-hover);
}
.payment-goto-pay-btn p {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    color: #FFFFFF;
}
.payment-goto-pay-btn img {
    width: 20px;
    height: 20px;
    pointer-events: none;
    user-select: none;
}
.payment-goto-pay-btn.disabled {
    pointer-events: none;
    opacity: 0.5;
}


.loading-spinner-pay {
    position: absolute;
    top: calc(50% - 10px);
    left: 8px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}
.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid var(--color-secondary);
    border-top-color: var(--color-bg-soft);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
.loading-spinner-pay.show {
    opacity: 1;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Mobile */
@media (max-width: 991.999px) {
    .payment-irr-main, .payment-usdt-main {
        height: calc(100vh - 133px);
    }
    .payment-page-body {
        flex-direction: column;
    }
    .payment-right-col, .payment-left-col {
        width: 100%;
    }
}