/* ===== LEAD POPUP STYLES ===== */
#lead-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.75);
    backdrop-filter: blur(8px);
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    animation: popupFadeIn 0.4s ease forwards;
}

@keyframes popupFadeIn {
    to { opacity: 1; }
}

#lead-popup {
    position: relative;
    background: linear-gradient(145deg, #0a0c14 0%, #0f111a 50%, #0a0e18 100%);
    border: 1px solid rgba(0, 240, 255, 0.2);
    border-radius: 24px;
    padding: 45px 40px;
    max-width: 460px;
    width: 92%;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 25px 80px rgba(0, 0, 0, 0.8), 0 0 60px rgba(0, 240, 255, 0.08);
    animation: popupSlideUp 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    transform: translateY(40px);
}

@keyframes popupSlideUp {
    to { transform: translateY(0); }
}

/* Glow Effects */
.popup-glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    pointer-events: none;
}
.popup-glow-1 {
    width: 200px; height: 200px;
    background: #00F0FF;
    top: -60px; right: -60px;
    animation: glowFloat 6s ease-in-out infinite alternate;
}
.popup-glow-2 {
    width: 150px; height: 150px;
    background: #7000ff;
    bottom: -40px; left: -40px;
    animation: glowFloat 8s ease-in-out infinite alternate-reverse;
}
@keyframes glowFloat {
    0% { transform: translate(0, 0); }
    100% { transform: translate(15px, -15px); }
}

/* Close */
#lead-popup-close {
    position: absolute;
    top: 15px; right: 18px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    color: #888;
    font-size: 1.5rem;
    width: 36px; height: 36px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}
#lead-popup-close:hover {
    background: rgba(255,50,50,0.2);
    border-color: rgba(255,50,50,0.4);
    color: #ff5555;
    transform: rotate(90deg);
}

/* Badge */
.popup-badge {
    display: inline-block;
    background: linear-gradient(135deg, #ff4444, #cc0000);
    color: #fff;
    padding: 6px 20px;
    border-radius: 30px;
    font-size: 0.85rem;
    font-weight: 800;
    margin-bottom: 20px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(255, 50, 50, 0.3);
    animation: badgePulse 2s ease-in-out infinite;
}
@keyframes badgePulse {
    0%, 100% { box-shadow: 0 4px 15px rgba(255, 50, 50, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(255, 50, 50, 0.6); }
}

/* Title */
.popup-title {
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    color: #fff;
    margin: 0 0 12px;
    line-height: 1.3;
}
.popup-highlight {
    color: #00F0FF;
    text-shadow: 0 0 20px rgba(0, 240, 255, 0.4);
}

/* Description */
.popup-desc {
    color: #8892a4;
    font-size: 0.95rem;
    line-height: 1.7;
    margin: 0 0 25px;
}

/* Toggle */
.popup-toggle {
    display: flex;
    background: rgba(0,0,0,0.4);
    border-radius: 14px;
    padding: 4px;
    margin-bottom: 20px;
    border: 1px solid rgba(255,255,255,0.05);
}
.popup-toggle-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: #666;
    padding: 10px;
    border-radius: 12px;
    font-size: 0.9rem;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.popup-toggle-btn.active {
    background: rgba(0, 240, 255, 0.1);
    color: #00F0FF;
    box-shadow: 0 0 15px rgba(0, 240, 255, 0.1);
}

/* Input */
.popup-input-wrap {
    position: relative;
    margin-bottom: 15px;
}
.popup-input-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #00F0FF;
    font-size: 1.1rem;
    pointer-events: none;
}
#lead-input {
    width: 100%;
    background: rgba(255,255,255,0.04);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 14px;
    padding: 15px 50px 15px 20px;
    color: #fff;
    font-size: 1.05rem;
    font-family: inherit;
    outline: none;
    transition: all 0.3s;
    box-sizing: border-box;
    text-align: left;
}
#lead-input:focus {
    border-color: rgba(0, 240, 255, 0.5);
    background: rgba(0, 240, 255, 0.03);
    box-shadow: 0 0 20px rgba(0, 240, 255, 0.08);
}
#lead-input::placeholder {
    color: #555;
    text-align: left;
}

/* Submit */
.popup-submit-btn {
    width: 100%;
    background: linear-gradient(135deg, #00F0FF, #00c4cc);
    color: #000;
    border: none;
    border-radius: 14px;
    padding: 15px;
    font-size: 1.1rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.3s;
    font-family: inherit;
    box-shadow: 0 8px 25px rgba(0, 240, 255, 0.25);
}
.popup-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 35px rgba(0, 240, 255, 0.4);
}
.popup-submit-btn:active {
    transform: translateY(0);
}

/* Divider */
.popup-divider {
    display: flex;
    align-items: center;
    gap: 15px;
    margin: 20px 0;
    color: #444;
    font-size: 0.85rem;
}
.popup-divider::before,
.popup-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
}

/* WhatsApp */
.popup-whatsapp-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    background: #25d366;
    color: #fff;
    border: none;
    border-radius: 14px;
    padding: 14px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.25);
}
.popup-whatsapp-btn:hover {
    background: #22c55e;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(37, 211, 102, 0.4);
    color: #fff;
}
.popup-whatsapp-btn i {
    font-size: 1.3rem;
}

/* Trust */
.popup-trust {
    color: #555;
    font-size: 0.8rem;
    margin-top: 18px;
    margin-bottom: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}
.popup-trust i {
    color: #25d366;
}

/* Success */
.popup-success-icon {
    font-size: 4rem;
    margin-bottom: 15px;
    animation: successBounce 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes successBounce {
    0% { transform: scale(0); }
    60% { transform: scale(1.2); }
    100% { transform: scale(1); }
}

/* Error shake */
@keyframes inputShake {
    0%, 100% { transform: translateX(0); }
    20%, 60% { transform: translateX(-8px); }
    40%, 80% { transform: translateX(8px); }
}
.input-error {
    animation: inputShake 0.4s ease;
    border-color: #ff4444 !important;
}

/* Mobile */
@media (max-width: 480px) {
    #lead-popup {
        padding: 35px 25px;
        margin: 15px;
    }
    .popup-title {
        font-size: 1.6rem;
    }
}
/* ===== COUNTRY POPUP STYLES ===== */
#country-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
}

#country-popup {
    background: linear-gradient(145deg, #0a0c14 0%, #0f111a 50%, #0a0e18 100%);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 20px;
    padding: 40px;
    max-width: 500px;
    width: 90%;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(0, 240, 255, 0.1);
    animation: popupFadeIn 0.3s ease-out forwards;
}

.country-popup-title {
    color: #fff;
    font-family: 'Cairo', 'Tajawal', sans-serif;
    font-size: 2rem;
    font-weight: 900;
    margin-top: 0;
    margin-bottom: 10px;
}

.country-popup-desc {
    color: #8892a4;
    font-size: 1rem;
    margin-bottom: 30px;
}

.country-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px;
}

.country-btn {
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 15px 10px;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: #fff;
    font-family: inherit;
    font-weight: 700;
}

.country-btn img {
    width: 40px;
    height: auto;
    border-radius: 4px;
    object-fit: cover;
}

.country-btn:hover {
    background: rgba(0, 240, 255, 0.1);
    border-color: #00F0FF;
    transform: translateY(-3px);
    box-shadow: 0 10px 20px rgba(0, 240, 255, 0.15);
}

@media (max-width: 480px) {
    .country-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    #country-popup {
        padding: 30px 20px;
    }
}
.iptv-fomo-popup {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: rgba(15, 17, 26, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 240, 255, 0.3);
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.5), 0 0 15px rgba(0, 240, 255, 0.1);
    z-index: 9999;
    transform: translateY(150px);
    opacity: 0;
    transition: all 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 320px;
    direction: ltr;
}
.iptv-fomo-popup.show-fomo {
    transform: translateY(0);
    opacity: 1;
}
.fomo-content { display: flex; align-items: center; gap: 12px; }
.fomo-icon {
    background: linear-gradient(135deg, #00F0FF, #0088ff);
    color: #000;
    width: 40px; height: 40px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}
.fomo-text p { margin: 0; font-family: 'Tajawal', sans-serif; line-height: 1.4; }
.fomo-title { color: #fff; font-size: 0.9rem; }
.fomo-highlight { font-weight: 700; color: #00F0FF; }
.fomo-plan { color: #8892a4; font-size: 0.85rem; font-weight: 600; margin: 2px 0 !important; }
.fomo-time { color: #555; font-size: 0.75rem; display: flex; align-items: center; gap: 5px; }
.fomo-verified { color: #25d366; }
@media (max-width: 768px) {
    .iptv-fomo-popup { bottom: 85px; left: 15px; right: 15px; max-width: none; }
}
.iptv-smart-wa {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9998;
    display: flex;
    align-items: flex-end;
    gap: 15px;
    direction: ltr;
}
.wa-float-btn {
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    text-align: center;
    font-size: 35px;
    box-shadow: 0 4px 20px rgba(37, 211, 102, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    animation: waPulse 2s infinite;
}
.wa-float-btn:hover { background-color: #1ebd5a; color:#fff; transform: scale(1.1); }
@keyframes waPulse {
    0% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.7); }
    70% { box-shadow: 0 0 0 15px rgba(37, 211, 102, 0); }
    100% { box-shadow: 0 0 0 0 rgba(37, 211, 102, 0); }
}
.wa-msg-bubble {
    background: #fff;
    color: #000;
    padding: 12px 20px;
    border-radius: 15px;
    border-bottom-left-radius: 4px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    position: relative;
    font-family: 'Cairo', sans-serif;
    font-weight: 700;
    max-width: 200px;
    font-size: 0.95rem;
    line-height: 1.4;
    opacity: 0;
    transform: translateX(20px);
    animation: waMsgIn 0.5s forwards 2s;
}
.wa-msg-bubble::after {
    content: '';
    position: absolute;
    right: -8px;
    bottom: 10px;
    border-width: 10px 0 0 10px;
    border-style: solid;
    border-color: transparent transparent transparent #fff;
}
.wa-msg-bubble p { margin: 0; }
.wa-msg-close {
    position: absolute;
    top: 2px;
    left: 5px;
    cursor: pointer;
    color: #999;
    font-size: 1.2rem;
    line-height: 1;
}
.wa-msg-close:hover { color: #ff4444; }
@keyframes waMsgIn {
    to { opacity: 1; transform: translateX(0); }
}
@media (max-width: 768px) {
    .iptv-smart-wa { bottom: 15px; right: 15px; }
    .wa-float-btn { width: 55px; height: 55px; font-size: 32px; }
}
