/* =========================================
   PAYMENT MODAL — BASE / DESKTOP
========================================= */

.payment-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-payment-modal);

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 20px;

    opacity: 0;
    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.35s ease,
        visibility 0.35s ease;
}

.payment-modal.active {
    opacity: 1;
    visibility: visible;

    pointer-events: auto;
}

.payment-modal__overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, 0.45);

    backdrop-filter: blur(11px);
    -webkit-backdrop-filter: blur(11px);
}

.payment-modal__card {
    position: relative;
    z-index: 2;

    width: min(560px, 100%);

     padding: 58px 30px 38px;

    border-radius: 28px;

    overflow: hidden;

    background:
        linear-gradient(
            rgba(15, 18, 20, 0.84),
            rgba(15, 18, 20, 0.84)
        ),
        url("../images/about/about-glow.webp");

    background-size: cover;
    background-position: center;

    border: 1px solid rgba(255, 255, 255, 0.18);

    box-shadow:
        0 30px 90px rgba(0, 0, 0, 0.65),
        inset 0 1px 0 rgba(255, 255, 255, 0.08);

    color: #fff;
    text-align: center;

    transform: translateY(25px) scale(0.96);
    opacity: 0;

    transition:
        transform 0.35s ease,
        opacity 0.35s ease;
}

.payment-modal.active .payment-modal__card {
    transform: translateY(0) scale(1);
    opacity: 1;
}

.payment-modal__card h2 {
    margin-bottom: 14px;

    font-size: 42px;
    font-weight: 500;
    line-height: 1.05;
}

.payment-modal__subtitle {
    max-width: 420px;
    margin: 0 auto 42px;

    color: rgba(255, 255, 255, 0.72);

    font-size: 22px;
    line-height: 1.45;
}


/* =========================================
   PAYMENT ROWS
========================================= */

.payment-row {
    display: grid;
    grid-template-columns: 58px 1fr auto;
    align-items: center;

    gap: 18px;

    min-height: 96px;
    padding: 16px 18px;
    margin-bottom: 14px;

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            rgba(255, 255, 255, 0.06),
            rgba(255, 255, 255, 0.03)
        );

    border: 1px solid rgba(255, 255, 255, 0.08);

    text-align: left;

    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
}

.payment-icon {
    width: 50px;
    height: 50px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: var(--accent-soft);
    border: 1px solid rgba(86, 192, 141, 0.14);
}

.payment-icon i {
    color: var(--accent-color);

    font-size: 20px;

    filter: drop-shadow(0 0 12px rgba(86, 192, 141, 0.45));
}

.payment-info {
    text-align: left;
}

.payment-info span {
    display: block;

    margin-bottom: 6px;

    color: rgba(255, 255, 255, 0.58);

    font-size: 14px;

    line-height: 1.3;
}

.payment-info strong {
    font-size: 17px;
    font-weight: 500;

    line-height: 1.3;

    letter-spacing: 0.2px;
}

.copy-btn {
    width: 50px;
    height: 50px;

    padding: 0;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.03);

    border: 1px solid rgba(255, 255, 255, 0.08);

    color: #fff;

    cursor: pointer;

    transition:
        background 0.3s ease,
        border-color 0.3s ease;
}

.copy-btn:hover {
    background: rgba(52, 195, 124, 0.18);

    border-color: rgba(52, 195, 124, 0.55);
}

.copy-btn i {
    font-size: 19px;
}


/* =========================================
   PAYMENT NOTE — DESKTOP
========================================= */

.payment-note {
    position: relative;

    margin-top: 28px;
    padding: 20px 42px;

    background: transparent;
    border: none;

    color: rgba(255, 255, 255, 0.74);

    font-size: 17px;
    font-weight: 300;

    letter-spacing: 0.1px;
    line-height: 1.5;

    text-align: center;
}

.note-corner {
    position: absolute;

    width: 22px;
    height: 22px;

    pointer-events: none;
}

.note-corner::before,
.note-corner::after {
    content: "";

    position: absolute;

    background: #56c08d;

    border-radius: 999px;

    box-shadow:
        0 0 10px rgba(86, 192, 141, 0.28),
        0 0 18px rgba(86, 192, 141, 0.12);
}

.note-corner--tl {
    top: 14px;
    left: 58px;
}

.note-corner--tl::before {
    top: 0;
    left: 0;

    width: 15px;
    height: 2px;
}

.note-corner--tl::after {
    top: 0;
    left: 0;

    width: 2px;
    height: 15px;
}

.note-corner--tr {
    top: 14px;
    right: 58px;
}

.note-corner--tr::before {
    top: 0;
    right: 0;

    width: 15px;
    height: 2px;
}

.note-corner--tr::after {
    top: 0;
    right: 0;

    width: 2px;
    height: 15px;
}

.note-corner--bl {
    bottom: 14px;
    left: 58px;
}

.note-corner--bl::before {
    bottom: 0;
    left: 0;

    width: 15px;
    height: 2px;
}

.note-corner--bl::after {
    bottom: 0;
    left: 0;

    width: 2px;
    height: 15px;
}

.note-corner--br {
    bottom: 14px;
    right: 58px;
}

.note-corner--br::before {
    bottom: 0;
    right: 0;

    width: 15px;
    height: 2px;
}

.note-corner--br::after {
    bottom: 0;
    right: 0;

    width: 2px;
    height: 15px;
}

/* =========================================
   MOBILE
========================================= */

@media (max-width: 600px) {
    .payment-modal {
        padding: 14px;
    }

    .payment-modal__card {
        width: min(386px, 100%);
        padding: 66px 20px 28px;
        border-radius: 26px;
    }

    .payment-modal__card h2 {
        margin: 0 auto 18px;

        font-size: 31px;
        line-height: 1.08;
        white-space: nowrap;
    }

    .payment-modal__subtitle {
        max-width: 280px;
        margin: 0 auto 34px;

        font-size: 17px;
        line-height: 1.35;
    }

    .payment-row {
        grid-template-columns: 50px 1fr 44px;

        min-height: 86px;
        gap: 14px;

        padding: 16px 14px;
        margin-bottom: 14px;

        border-radius: 20px;
    }

    .payment-icon {
        width: 50px;
        height: 50px;
        border-radius: 14px;
    }

    .payment-icon i {
        font-size: 22px;
    }

    .payment-info span {
        margin-bottom: 6px;
        font-size: 14px;
    }

    .payment-info strong {
        font-size: 16px;
        line-height: 1.25;
    }

    .copy-btn {
        width: 44px;
        height: 44px;
        border-radius: 14px;
    }

    .copy-btn i {
        font-size: 18px;
    }

    .payment-note {
        margin-top: 26px;
        padding: 18px 28px;

        max-width: none;
        width: 100%;

        font-size: 13px;
        line-height: 1.42;

        text-align: center;
    }

    .note-corner--tl {
        top: 12px;
        left: 22px;
    }

    .note-corner--tr {
        top: 12px;
        right: 22px;
    }

    .note-corner--bl {
        bottom: 12px;
        left: 22px;
    }

    .note-corner--br {
        bottom: 12px;
        right: 22px;
    }

    .payment-modal .modal-close {
        top: 18px;
        right: 18px;

        width: 44px;
        height: 44px;

        font-size: 28px;
    }
}

/* =========================================
   ACCESSIBILITY / FOCUS
========================================= */

.copy-btn:focus-visible,
.support-button:focus-visible {
    outline: 1px solid rgba(86, 192, 141, 0.85);
    outline-offset: 4px;
}