/* Modal Backdrop */
.modal-backdrop {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(18, 1, 16, 0.5); /* #12011080 */
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
    backdrop-filter: blur(5px);
}

.modal-backdrop.is-open {
    display: flex;
}

/* Modal Container */
.modal {
    background-color: #fcf9fc;
    border-radius: 50px;
    width: 100%;
    max-width: 492px;
    padding: 40px 0;
    position: relative;
    overflow: hidden;
    animation: modal-appear 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

@keyframes modal-appear {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

/* Close Button */
.modal__close {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 30px;
    color: #343434;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    z-index: 10;
}

.modal__header {
    text-align: center;
    padding: 0 20px;
    margin-bottom: 40px;
}

.modal__heart {
    width: 49px;
    height: 42px;
    margin: 0 auto;
    margin-bottom: 20px;
    animation: heartbeat 2.5s infinite ease-in-out;
}

.modal__title {
    font-size: 50px;
    font-weight: 800;
    color: var(--color-secondary);
    line-height: 55px;
    margin-bottom: 10px;
}

.modal__subtitle {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text-dark);
    line-height: 18px;
}

/* List Items */
.modal__list {
    display: flex;
    flex-direction: column;
}

.modal__item {
    display: flex;
    align-items: center;
    padding: 15px 20px;
    background-color: #ffffff;
    border-bottom: 1px solid rgba(109, 44, 108, 0.2); /* #6d2c6c33 */
    text-decoration: none;
    transition: background-color 0.2s;
    cursor: pointer;
    position: relative;
}

.modal__item:last-child {
    border-bottom: none;
}

.modal__item:hover {
    background-color: #f5f5f5;
}

.modal__item-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 20px;
    flex-shrink: 0;
}

.modal__item-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.modal__item-icon--mono {
    background-color: #111111;
    padding: 0;
}

.modal__item-icon--mono img {
    /* filter: brightness(0) invert(1); */
}

.modal__item-icon--privat {
    background-color: #ffffff;
    border: 2px solid #71bd3b;
    color: #71bd3b;
    font-size: 28px;
    font-weight: 700;
}

.modal__item-icon--paypal {
    background-color: #ffffff;
    padding: 5px;
}

.modal__item-icon--wfp {
    background-color: #004ede;
    color: #ffffff;
    font-size: 42px;
    font-weight: 700;
}

.modal__item-info {
    flex-grow: 1;
}

.modal__item-name {
    font-size: 20px;
    font-weight: 700;
    color: var(--color-text-dark);
    margin-bottom: 5px;
}

.modal__item-desc {
    font-size: 16px;
    font-weight: 500;
    color: rgba(52, 52, 52, 0.5); /* #34343480 */
}

.modal__item-copy-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal__item-copy-icon {
    width: 20px;
    height: 20px;
}

.modal__item-arrow {
    width: 30px;
    transform: rotate(-90deg);
}

/* Tooltip for copy */
.modal__copy-tooltip {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(67, 23, 66, 0.9);
    color: #fff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 14px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    pointer-events: none;
}

.modal__copy-tooltip.show {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -70%);
}

/* Fixed Bottom Bar */
.fixed-bar {
    position: fixed;
    bottom: -150px; /* Hidden by default */
    left: 0;
    width: 100%;
    height: 147px;
    background-color: #421542;
    border-radius: 50px 50px 0 0;
    display: flex;
    align-items: center;
    z-index: 999;
    transition: bottom 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 -10px 30px rgba(0,0,0,0.1);
}

.fixed-bar.is-visible {
    bottom: 0;
}

.fixed-bar__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 100px;
    width: 100%;
}

.fixed-bar__bottom {
    display: contents; /* For desktop side-by-side */
}

.fixed-bar__text {
    font-size: 35px;
    font-weight: 600;
    color: #ffffff;
}

.btn--fixed {
    height: 85px;
    padding: 0 57px;
    border-radius: 57px;
    font-size: 20px;
    white-space: nowrap;
    order: 2;
}

.fixed-bar__close {
    position: absolute;
    top: 15px;
    right: 25px;
    color: #ffffff;
    background: none;
    border: none;
    cursor: pointer;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.fixed-bar__close svg {
    width: 35px;
    height: 35px;
}

/* Mobile Adjustments */
@media (max-width: 991px) {
    .modal {
        border-radius: 30px;
        max-width: 370px;
        padding: 30px 0;
    }

    .modal__title {
        font-size: 36px;
        line-height: 1.1;
    }

    .modal__item-icon {
        width: 60px;
        height: 60px;
    }

    .modal__item-name {
        font-size: 18px;
    }

    .modal__item-desc {
        font-size: 14px;
    }

    .fixed-bar {
        height: 127px;
        border-radius: 40px 40px 0 0;
        backdrop-filter: blur(5px);
        padding: 10px 0;
    }

    .fixed-bar .container {
        padding: 0 10px;
    }

    .fixed-bar__inner {
        gap: 10px;
        flex-direction: column;
        padding: 0;
    }

    .fixed-bar__bottom {
        display: flex;
        align-items: center;
        justify-content: space-between;
        width: 100%;
        align-self: stretch;
    }

    .fixed-bar__text {
        font-size: 12px;
        text-align: left;
        max-width: none;
        line-height: 13px;
        margin: 0;
    }

    .btn--fixed {
        height: 72px;
        width: 100%;
        max-width: 370px;
        padding: 24px 48px;
        font-size: 17px;
        order: -1;
    }

    .fixed-bar__close {
        position: relative;
        top: auto;
        right: auto;
    }

    .fixed-bar__close svg {
        width: 25px;
        height: 25px;
    }
}
