/* ===== IG Welcome Popup Styles ===== */

/* Overlay */
.ig-welcome-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.4s ease;
}

.ig-welcome-overlay.ig-show {
    opacity: 1;
    visibility: visible;
}

.ig-welcome-overlay.ig-hide {
    opacity: 0;
    visibility: hidden;
}

/* Popup Container */
.ig-welcome-popup {
    background: linear-gradient(145deg, #ffffff 0%, var(--yb-sf-surface, #fffaf1) 100%);
    border-radius: 24px;
    max-width: 420px;
    width: 100%;
    position: relative;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.25),
        0 10px 30px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transform: scale(0.8) translateY(30px);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    overflow: hidden;
}

.ig-welcome-overlay.ig-show .ig-welcome-popup {
    transform: scale(1) translateY(0);
}

.ig-welcome-overlay.ig-hide .ig-welcome-popup {
    transform: scale(0.9) translateY(-20px);
}

/* Confetti Container */
#ig-confetti-container {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
    z-index: 100;
}

.ig-confetti {
    position: absolute;
    width: 10px;
    height: 10px;
    top: -10px;
    animation: igConfettiFall linear forwards;
}

@keyframes igConfettiFall {
    0% {
        transform: translateY(0) rotate(0deg);
        opacity: 1;
    }
    100% {
        transform: translateY(600px) rotate(720deg);
        opacity: 0;
    }
}

/* Close Button */
.ig-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border: none;
    background: rgba(0, 0, 0, 0.05);
    border-radius: 50%;
    font-size: 20px;
    color: var(--yb-sf-muted, #8a6a72);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    z-index: 10;
}

.ig-close-btn:hover {
    background: rgba(0, 0, 0, 0.1);
    transform: rotate(90deg);
}

/* Header */
.ig-popup-header {
    background: linear-gradient(135deg, var(--yb-sf-brand, #82213e) 0%, var(--yb-sf-brand-dark, #5c1529) 55%, var(--yb-sf-accent, #e9c9cc) 100%);
    padding: 35px 25px 30px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.ig-popup-header::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 60%);
    animation: igShimmer 3s ease-in-out infinite;
}

@keyframes igShimmer {
    0%, 100% { transform: translate(0, 0); }
    50% { transform: translate(10%, 10%); }
}

.ig-wave {
    font-size: 48px;
    margin-bottom: 12px;
    animation: igWave 1.5s ease-in-out infinite;
    display: inline-block;
}

@keyframes igWave {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(20deg); }
    75% { transform: rotate(-15deg); }
}

.ig-popup-header h2 {
    color: #fff;
    font-size: 22px;
    font-weight: 700;
    margin: 0 0 8px 0;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    position: relative;
}

.ig-brand {
    background: linear-gradient(90deg, #ffffff, var(--yb-sf-accent, #e9c9cc));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-weight: 800;
}

.ig-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
    position: relative;
}

/* Body */
.ig-popup-body {
    padding: 25px 20px 20px;
}

.ig-cta-text {
    text-align: center;
    color: var(--yb-sf-ink, #82213e);
    font-size: 15px;
    font-weight: 600;
    margin: 0 0 20px 0;
    padding: 12px 15px;
    background: linear-gradient(135deg, var(--yb-sf-surface, #fffaf1) 0%, var(--yb-sf-accent, #e9c9cc) 100%);
    border-radius: 12px;
    border: 1px solid var(--yb-sf-line, #f0e4e5);
}

.ig-progress {
    color: var(--yb-sf-brand, #82213e);
    font-weight: 700;
}

/* Social Links */
.ig-social-links {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ig-social-card {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: #fff;
    border-radius: 14px;
    text-decoration: none;
    border: 2px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
}

.ig-social-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    opacity: 0;
    transition: opacity 0.3s;
}

.ig-social-card:hover {
    transform: translateX(5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.ig-social-card:hover::before {
    opacity: 0.05;
}

/* Task Done State */
.ig-social-card.ig-task-done {
    border-color: var(--yb-sf-brand, #82213e) !important;
    background: linear-gradient(135deg, var(--yb-sf-surface, #fffaf1) 0%, var(--yb-sf-accent, #e9c9cc) 100%) !important;
}

.ig-social-card.ig-task-done .ig-join-badge {
    display: none;
}

.ig-social-card.ig-task-done .ig-done-badge {
    display: inline-block;
}

.ig-social-card.ig-task-just-done {
    animation: igTaskDone 0.6s ease;
}

@keyframes igTaskDone {
    0% { transform: scale(1); }
    50% { transform: scale(1.05); }
    100% { transform: scale(1); }
}

.ig-done-badge {
    display: none;
    padding: 6px 14px;
    background: linear-gradient(135deg, var(--yb-sf-brand, #82213e), var(--yb-sf-brand-dark, #5c1529)) !important;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(130, 33, 62, 0.3);
}

/* WhatsApp */
.ig-social-card.ig-whatsapp::before { background: #25D366; }
.ig-social-card.ig-whatsapp .ig-social-icon { background: linear-gradient(135deg, #25D366, #128C7E); }
.ig-social-card.ig-whatsapp .ig-join-badge { background: linear-gradient(135deg, #25D366, #128C7E); }

/* Instagram */
.ig-social-card.ig-instagram::before { background: #E4405F; }
.ig-social-card.ig-instagram .ig-social-icon { background: linear-gradient(135deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }
.ig-social-card.ig-instagram .ig-join-badge { background: linear-gradient(135deg, #f09433, #dc2743); }

/* Telegram */
.ig-social-card.ig-telegram::before { background: #0088cc; }
.ig-social-card.ig-telegram .ig-social-icon { background: linear-gradient(135deg, #0088cc, #0077b5); }
.ig-social-card.ig-telegram .ig-join-badge { background: linear-gradient(135deg, #0088cc, #0077b5); }

/* Facebook */
.ig-social-card.ig-facebook::before { background: #1877F2; }
.ig-social-card.ig-facebook .ig-social-icon { background: linear-gradient(135deg, #1877F2, #0d65d9); }
.ig-social-card.ig-facebook .ig-join-badge { background: linear-gradient(135deg, #1877F2, #0d65d9); }

.ig-social-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.ig-social-icon svg {
    width: 24px;
    height: 24px;
    color: #fff;
}

.ig-social-info {
    flex: 1;
    margin-left: 14px;
    display: flex;
    flex-direction: column;
}

.ig-social-name {
    font-size: 15px;
    font-weight: 600;
    color: var(--yb-sf-ink, #82213e);
}

.ig-social-desc {
    font-size: 12px;
    color: var(--yb-sf-muted, #8a6a72);
    margin-top: 2px;
}

.ig-join-badge {
    padding: 6px 14px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    border-radius: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.2s, box-shadow 0.2s;
}

.ig-social-card:hover .ig-join-badge {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.25);
}

/* ===== Reward Section ===== */
.ig-reward-section {
    text-align: center;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ig-reward-section.ig-reward-show {
    opacity: 1;
    transform: translateY(0);
}

.ig-reward-header {
    margin-bottom: 25px;
}

.ig-reward-emoji {
    font-size: 60px;
    animation: igBounce 0.6s ease infinite;
}

@keyframes igBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

.ig-reward-header h3 {
    color: var(--yb-sf-ink, #82213e);
    font-size: 22px;
    font-weight: 700;
    margin: 15px 0 8px;
}

.ig-reward-header p {
    color: var(--yb-sf-muted, #8a6a72);
    font-size: 15px;
    margin: 0;
}

/* Coupon Card */
.ig-coupon-card {
    background: linear-gradient(135deg, var(--yb-sf-brand, #82213e) 0%, var(--yb-sf-brand-dark, #5c1529) 100%);
    border-radius: 0;
    padding: 25px;
    margin: 0 10px;
    position: relative;
    overflow: hidden;
}

.ig-coupon-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23ffffff' fill-opacity='0.1'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    opacity: 0.5;
}

.ig-coupon-label {
    color: rgba(255, 255, 255, 0.8);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 10px;
    position: relative;
}

.ig-coupon-code {
    font-size: 36px;
    font-weight: 800;
    color: #fff;
    letter-spacing: 4px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    margin-bottom: 15px;
    position: relative;
    font-family: 'Courier New', monospace;
}

.ig-copy-coupon {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.4);
    color: #fff;
    padding: 8px 20px;
    border-radius: 25px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    position: relative;
}

.ig-copy-coupon:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.05);
}

.ig-copy-coupon.ig-copied {
    background: var(--yb-sf-brand, #82213e);
    border-color: var(--yb-sf-brand, #82213e);
}

.ig-coupon-desc {
    margin-top: 20px;
    color: var(--yb-sf-muted, #8a6a72);
    font-size: 14px;
    line-height: 1.6;
}

.ig-coupon-desc strong {
    color: var(--yb-sf-brand, #82213e);
    font-size: 18px;
}

/* Footer */
.ig-popup-footer {
    padding: 0 20px 20px;
    text-align: center;
}

.ig-skip-btn {
    background: none;
    border: none;
    color: var(--yb-sf-muted, #8a6a72);
    font-size: 13px;
    cursor: pointer;
    padding: 10px 20px;
    transition: color 0.2s;
}

.ig-skip-btn:hover {
    color: var(--yb-sf-brand, #82213e);
}

.ig-shop-btn {
    background: linear-gradient(135deg, var(--yb-sf-brand, #82213e) 0%, var(--yb-sf-brand-dark, #5c1529) 100%);
    border: none;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
    padding: 14px 40px;
    border-radius: 30px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(130, 33, 62, 0.4);
    transition: all 0.3s;
}

.ig-shop-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(130, 33, 62, 0.5);
}

/* Mobile Responsive */
@media (max-width: 480px) {
    .ig-welcome-popup {
        max-width: 100%;
        border-radius: 20px;
        margin: 10px;
    }
    
    .ig-popup-header {
        padding: 28px 20px 25px;
    }
    
    .ig-wave {
        font-size: 40px;
    }
    
    .ig-popup-header h2 {
        font-size: 19px;
    }
    
    .ig-popup-body {
        padding: 20px 15px 15px;
    }
    
    .ig-social-card {
        padding: 12px 14px;
    }
    
    .ig-social-icon {
        width: 40px;
        height: 40px;
    }
    
    .ig-social-icon svg {
        width: 20px;
        height: 20px;
    }
    
    .ig-social-name {
        font-size: 14px;
    }
    
    .ig-join-badge,
    .ig-done-badge {
        padding: 5px 12px;
        font-size: 11px;
    }
    
    .ig-coupon-code {
        font-size: 28px;
        letter-spacing: 3px;
    }
    
    .ig-reward-emoji {
        font-size: 50px;
    }
    
    .ig-reward-header h3 {
        font-size: 19px;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .ig-popup-header h2 {
        font-size: 17px;
    }
    
    .ig-subtitle {
        font-size: 13px;
    }
    
    .ig-social-info {
        margin-left: 10px;
    }
    
    .ig-coupon-code {
        font-size: 24px;
    }
}








