/* ===== POP-UP MODAL STYLE ===== */
.popup-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(8px);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    animation: modalFadeIn 0.5s forwards;
    animation-delay: 0.5s;
}

@keyframes modalFadeIn {
    0% {
        opacity: 0;
        visibility: hidden;
    }
    100% {
        opacity: 1;
        visibility: visible;
    }
}

@keyframes modalFadeOut {
    0% {
        opacity: 1;
        visibility: visible;
    }
    100% {
        opacity: 0;
        visibility: hidden;
    }
}

.modal-content {
    background: rgba(20, 10, 40, 0.95);
    backdrop-filter: blur(20px);
    border: 2px solid var(--primary);
    border-radius: 40px;
    padding: 2rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 0 100px var(--primary);
    transform: translateY(50px);
    animation: modalSlideUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
    animation-delay: 0.8s;
    opacity: 0;
}

@keyframes modalSlideUp {
    0% {
        transform: translateY(50px);
        opacity: 0;
    }
    100% {
        transform: translateY(0);
        opacity: 1;
    }
}

.modal-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
    position: relative;
}

.modal-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: white;
    animation: modalIconPulse 2s infinite;
}

@keyframes modalIconPulse {
    0%, 100% {
        box-shadow: 0 0 30px var(--primary);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 60px var(--secondary);
        transform: scale(1.05);
    }
}

.modal-header h2 {
    font-size: 1.8rem;
    color: white;
    flex: 1;
}

.modal-close {
    background: transparent;
    border: none;
    color: var(--gray);
    font-size: 1.5rem;
    cursor: pointer;
    transition: 0.3s;
    padding: 0.5rem;
}

.modal-close:hover {
    color: white;
    transform: rotate(90deg);
}

.modal-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.modal-stat {
    background: rgba(107, 78, 255, 0.1);
    border: 1px solid var(--border-glow);
    border-radius: 20px;
    padding: 1rem 0.5rem;
    text-align: center;
    transition: 0.3s;
}

.modal-stat:hover {
    background: rgba(107, 78, 255, 0.2);
    transform: translateY(-5px);
}

.modal-stat i {
    font-size: 1.5rem;
    color: var(--primary);
    margin-bottom: 0.5rem;
    display: block;
}

.modal-stat span {
    font-size: 0.9rem;
    color: white;
}

.modal-description {
    color: var(--gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.modal-features {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 30px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    animation: featureSlide 0.5s forwards;
    opacity: 0;
    transform: translateX(-20px);
}

.feature-item:nth-child(1) {
    animation-delay: 1s;
}
.feature-item:nth-child(2) {
    animation-delay: 1.2s;
}
.feature-item:nth-child(3) {
    animation-delay: 1.4s;
}

@keyframes featureSlide {
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.feature-item i {
    color: var(--primary);
    font-size: 1.2rem;
}

.feature-item span {
    color: white;
}

.modal-footer {
    display: flex;
    gap: 1rem;
}

.modal-btn {
    flex: 1;
    padding: 1rem;
    border-radius: 40px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: 0.3s;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.modal-btn.primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.modal-btn.primary:hover {
    transform: scale(1.02);
    box-shadow: 0 10px 30px rgba(107, 78, 255, 0.5);
}

.modal-btn.secondary {
    background: transparent;
    border: 2px solid var(--primary);
    color: white;
}

.modal-btn.secondary:hover {
    background: var(--primary);
    transform: scale(1.02);
}

/* Prevent body scroll when modal is open */
body.modal-open {
    overflow: hidden;
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.4rem;
    }

    .modal-icon {
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .modal-stats {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .modal-stat {
        display: flex;
        align-items: center;
        gap: 1rem;
        padding: 0.8rem;
    }

    .modal-stat i {
        margin-bottom: 0;
        font-size: 1.2rem;
    }

    .modal-footer {
        flex-direction: column;
    }
}

@media (max-width: 480px) {
    .modal-content {
        padding: 1rem;
    }
    
    .modal-header h2 {
        font-size: 1.2rem;
    }
    
    .modal-icon {
        width: 40px;
        height: 40px;
        font-size: 1.2rem;
    }
}