/* Popup Overlay */
.gift-popup-overlay {
    position: fixed !important;
    inset: 0;
    background: rgba(10, 82, 81, 0.75);
    backdrop-filter: blur(6px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    z-index: 9999999 !important;
    opacity: 0;
    visibility: hidden;
    transition: all 0.28s ease;
}

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

/* Popup Container */
.gift-popup {
    width: 100%;
    max-width: 860px;
    background: #ffffff;
    border-radius: 28px;
    position: relative;
    overflow: hidden;
    box-shadow:
        0 25px 80px rgba(10, 82, 81, 0.25),
        0 8px 30px rgba(0, 0, 0, 0.08);
    transform: translateY(20px) scale(.98);
    transition: all 0.28s ease;
}

.gift-popup-overlay.active .gift-popup {
    transform: translateY(0) scale(1);
}

/* Close Button */
.gift-popup-close {
    position: absolute;
    top: 18px;
    right: 18px;
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: #f3f4f6;
    color: #111827;
    font-size: 28px;
    cursor: pointer;
    transition: .2s ease;
    z-index: 10;
}

.gift-popup-close:hover {
    background: #0a5251;
    color: #fff;
}

/* Content */
.gift-popup-content {
    padding: 48px;
}

/* Badge */
.gift-popup-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #bdeff2;
    color: #0a5251;
    padding: 8px 16px;
    border-radius: 999px;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 18px;
}

/* Title */
.gift-popup-title {
    font-size: 42px;
    line-height: 1.1;
    font-weight: 700;
    color: #0a5251;
    margin: 0 0 32px;
}

/* Text Content */
.gift-popup-text {
    display: flex;
    flex-direction: column;
    gap: 28px;
}

/* Step */
.gift-popup-step {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-left: 72px;
    position: relative;
}

/* Step Number */
.gift-popup-step-number {
    position: absolute;
    left: 0;
    top: 0;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #0a5251;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 18px;
    box-shadow: 0 10px 25px rgba(10, 82, 81, 0.28);
}

.gift-popup-step p {
    margin: 0 0 8px 0;
    font-size: 17px;
    line-height: 1.75;
    color: #374151;
}

.gift-popup-step p:last-child {
    margin-bottom: 0;
}

/* Actions */
.gift-popup-actions {
    display: flex;
    justify-content: space-between;
    gap: 20px;
    margin-top: 42px;
}

/* Popup Buttons (separate from gif-btn to avoid conflicts) */
.gift-popup-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 220px;
    height: 58px;
    padding: 0 28px;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
    text-align: center;
    border: none;
    cursor: pointer;
}

.gift-popup-btn-primary {
    background: #0a5251;
    color: #fff;
    box-shadow: 0 10px 25px rgba(10, 82, 81, 0.28);
}

.gift-popup-btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 35px rgba(10, 82, 81, 0.35);
    background: #0d6765;
}

.gift-popup-btn-outline {
    border: 1px solid #0a5251;
    background: #fff;
    color: #0a5251;
}

.gift-popup-btn-outline:hover {
    border-color: #0a5251;
    background: #0a5251;
    color: #fff;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gift-popup-content {
        padding: 32px 22px;
    }

    .gift-popup-title {
        font-size: 32px;
    }

    .gift-popup-step {
        padding-left: 60px;
    }

    .gift-popup-step p {
        font-size: 15px;
        line-height: 1.65;
    }

    .gift-popup-actions {
        flex-direction: column;
    }

    .gift-popup-btn {
        width: 100%;
    }
}
