.promo-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.promo-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.promo-popup {
    background: linear-gradient(to bottom, #FFFFFF, #E4FDF1);
    border-radius: 20px;
    max-width: 450px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.8);
    transition: transform 0.3s ease;
    overflow: hidden;
}

.promo-popup-overlay.active .promo-popup {
    transform: scale(1);
}

.popup-content {
    padding: 50px 30px 30px;
}

.popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    color: #2F5D61;
    font-size: 18px;
    font-weight: 900;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity 0.3s;
    line-height: 1;
}

.popup-close:hover {
    opacity: 1;
}

.promo-popup h3 {
    font-size: 32px;
    font-weight: 900;
    color: #2F5D61;
    margin-bottom: 5px;
}

.promo-popup h4 {
    font-size: 18px;
    font-weight: 400;
    color: #2F5D61;
    margin-bottom: 15px;
}

.promo-popup .tagline {
    display: inline-block;
    color: #2F5D61;
    font-size: 14px;
    font-weight: 400;
    padding: 8px 15px;
    margin-bottom: 25px;
}

.coupon-row {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 0;
    margin-bottom: 20px;
    border-radius: 5px;
    overflow: hidden;
    max-width: 320px;
    margin-left: auto;
    margin-right: auto;
}

.coupon-code {
    background: #fff;
    color: #2F5D61;
    border: dashed 2px #2F5D61;
    border-radius: 100px 0px 0px 100px;
    font-size: 20px;
    font-weight: 900;
    padding: 15px 25px;
    letter-spacing: 1px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 1;
    border-right: 1px solid #ddd;
}

.copy-btn {
    padding: 15px 20px;
    background: #2F5D61;
    border: none;
    border-radius: 0px 100px 100px 0px;
    color: #99FF00;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.copy-btn:hover {
    background: #99FF00;
    color: #2F5D61;
}

.redeem-btn {
    display: block;
    width: 100%;
    max-width: 320px;
    margin: 0 auto;
    padding: 18px 15px;
    background: linear-gradient(90deg, rgba(63,146,118,1) 0%, rgba(137,201,0,1) 100%);
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    text-transform: uppercase;
}

.redeem-btn:hover {
    transform: scale(1.02);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
    background: linear-gradient(90deg, #43A047 0%, #5CB85C 100%);
}

.tc-btn {
    display: block;
    width: 100%;
    max-width: 200px;
    margin: 15px auto 0;
    padding: 15px;
    background: #edf9eb;
    border: 2px solid #2F5D61;
    color: #2F5D61;
    font-size: 14px;
    font-weight: 600;
    border-radius: 50px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tc-btn:hover {
    background: #f5f5f5;
    border-color: #ccc;
}

.popup-terms {
    background: #a4bda0;
    padding: 0;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.popup-terms.show {
    padding: 15px 20px;
    max-height: 100px;
}

.popup-terms p {
    font-size: 13px;
    color: #2F5D61;
    margin: 0;
}

@media screen and (max-width: 450px) {

    .popup-content {
        padding: 40px 20px 25px;
    }

    .promo-popup h3 {
        font-size: 24px;
    }

    .promo-popup h4 {
        font-size: 16px;
    }

    .coupon-row {
        flex-direction: row;
        max-width: 280px;
        margin: 0 auto 20px auto;
    }

    .coupon-code {
        font-size: 14px;
        padding: 12px 15px;
        border-radius: 100px 0 0 100px;
    }

    .copy-btn {
        padding: 12px 12px;
        font-size: 12px;
        border-radius: 0 100px 100px 0;
    }

    .redeem-btn {
        max-width: 280px;
        margin: 0 auto;
        font-size: 14px;
        padding: 15px;
    }

    .tc-btn {
        max-width: 180px;
        margin: 15px auto 0 auto;
        padding: 12px;
        font-size: 13px;
    }

}
