.site-popup-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw !important;
    height: 100vh !important;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}


.site-popup-container.active {
    opacity: 1;
    pointer-events: auto;
}


.site-popup-content {
    background: #ffffff;
    /* White background */
    border: none;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    width: 85%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: scale(0.9);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    color: #444;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    border: 1px solid rgba(255, 107, 157, 0.1);

}

.site-popup-container.active .site-popup-content {
    transform: scale(1);
}


.popup-header {
    padding: 20px;
    background: linear-gradient(180deg, #ff89bc 0%, #ff54a1 100%);
    /* Vibrant Pink Gradient from reference */

    display: flex;
    justify-content: space-between;
    align-items: center;
}

.popup-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #ffffff;
}

.popup-close {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.8);
    cursor: pointer;
    font-size: 24px;
    padding: 0;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.popup-close:hover {
    color: #fff;
}

.popup-body {
    padding: 25px 20px;
    font-size: 14px;
    line-height: 1.5;
    color: #333333;
    text-align: center;
    min-height: 80px;
    background: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.popup-body img {
    max-width: 100%;
    border-radius: 8px;
    margin-top: 10px;
}

.popup-footer {
    padding: 0 20px 25px 20px;
    background: #fff;
    text-align: center;
}

.popup-btn {
    background: linear-gradient(180deg, #ff89bc 0%, #ff54a1 100%);
    /* Pink Gradient */
    border: none;
    padding: 12px 40px;
    border-radius: 30px;

    color: #fff;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s, box-shadow 0.2s;
    box-shadow: 0 4px 15px rgba(255, 84, 161, 0.3);
}

.popup-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 84, 161, 0.5);
}


.popup-btn:active {
    transform: translateY(0);
}

/* Reward Popup Redesign (Container uses shared .site-popup-container) */
#reward-popup-container {
    z-index: 10001; /* Slightly higher than alert */
}


.reward-popup {
    background: #ffffff;
    border: none;
    box-shadow: 0 30px 60px rgba(0,0,0,0.3);
    border-radius: 30px !important;
    width: 90% !important;
    max-width: 360px !important;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(255,255,255,0.4);
}

.reward-popup .popup-header {
    background: linear-gradient(135deg, #ff89bc 0%, #ff54a1 100%);
    padding: 25px 20px;
    position: relative;
    border-bottom: none;
}

.reward-popup .popup-header::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.2) 0%, transparent 60%);
    pointer-events: none;
}

.reward-popup .popup-title {
    font-size: 22px;
    font-weight: 800;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.reward-popup .popup-body {
    padding: 40px 30px 20px;
    background: #fff;
}

.reward-popup .congrats-text {
    color: #888;
    font-size: 14px;
    margin-bottom: 5px;
    font-weight: 500;
}

.reward-amount-wrap {
    margin: 15px 0;
}

.reward-popup .reward-amount {
    color: #ff54a1;
    font-size: 48px !important;
    font-weight: 900;
    display: block;
    line-height: 1;
    text-shadow: 0 4px 10px rgba(255, 84, 161, 0.2);
}

.reward-popup .reward-desc {
    color: #bbb;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-top: 10px;
}

.reward-popup .reward-icon-box {
    margin: 30px 0;
    position: relative;
    height: 100px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.reward-popup .reward-icon {
    font-size: 80px;
    z-index: 2;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    animation: floating 3s ease-in-out infinite;
}

.reward-popup .icon-bg-circle {
    position: absolute;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(255, 84, 161, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
}

@keyframes floating {
    0% { transform: translateY(0px) rotate(0deg); }
    50% { transform: translateY(-15px) rotate(5deg); }
    100% { transform: translateY(0px) rotate(0deg); }
}

.reward-popup .popup-footer {
    padding: 0 30px 40px;
    background: #fff;
}

.reward-popup .claim-btn {
    width: 100%;
    background: linear-gradient(180deg, #ff89bc 0%, #ff54a1 100%) !important;
    height: 60px;
    border-radius: 50px !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    letter-spacing: 2px;
    box-shadow: 0 10px 25px rgba(255, 84, 161, 0.4) !important;
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    overflow: hidden;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.reward-popup .claim-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 15px 35px rgba(255, 84, 161, 0.5) !important;
}

.reward-popup .claim-btn:active {
    transform: translateY(-1px);
}

.reward-popup .claim-btn::after {
    content: "";
    position: absolute;
    top: -50%;
    left: -60%;
    width: 20%;
    height: 200%;
    background: rgba(255,255,255,0.3);
    transform: rotate(30deg);
    animation: btnShine 3s infinite;
}

@keyframes btnShine {
    0% { left: -60%; }
    20% { left: 140%; }
    100% { left: 140%; }
}

.app-alert-content .popup-body {
    padding: 35px 25px;
    font-weight: 500;
    font-size: 16px;
    color: #555;
    line-height: 1.6;
}

.app-alert-content .popup-footer {
    padding-bottom: 30px;
}

#app-modal-ok {
    width: 140px;
    height: 45px;
    border-radius: 25px;
    font-size: 16px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    box-shadow: 0 4px 15px rgba(255, 84, 161, 0.3);
}


/* Decorative Sparkles */
.reward-popup::before, .reward-popup::after {
    content: "✨";
    position: absolute;
    font-size: 24px;
    animation: sparkle 2s infinite alternate;
}

.reward-popup::before {
    top: 10px;
    left: 20px;
}

.reward-popup::after {
    bottom: 20px;
    right: 20px;
    animation-delay: 1s;
}

@keyframes sparkle {
    0% { transform: scale(0.8) translateY(0); opacity: 0.5; }
    100% { transform: scale(1.2) translateY(-10px); opacity: 1; }
}



