/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(10, 14, 39, 0.95);
    backdrop-filter: blur(10px);
    animation: fadeIn 0.3s;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-content {
    background: var(--dark-card);
    margin: auto;
    padding: 0;
    border-radius: 15px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5),
                0 0 60px rgba(0, 243, 255, 0.3),
                0 0 100px rgba(176, 38, 255, 0.2);
    border: 1px solid rgba(0, 243, 255, 0.3);
    animation: slideUp 0.3s;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}

.modal-content::before {
    content: '';
    position: absolute;
    top: -2px;
    left: -2px;
    right: -2px;
    bottom: -2px;
    background: linear-gradient(45deg, var(--neon-cyan), var(--neon-purple), var(--neon-pink), var(--neon-cyan));
    border-radius: 15px;
    z-index: -1;
    opacity: 0.5;
    background-size: 400% 400%;
    animation: gradientShift 3s ease infinite;
}

.modal-header {
    background: linear-gradient(135deg, rgba(0, 243, 255, 0.2), rgba(176, 38, 255, 0.2));
    color: var(--neon-cyan);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-radius: 15px 15px 0 0;
    border-bottom: 1px solid rgba(0, 243, 255, 0.3);
    box-shadow: 0 2px 20px rgba(0, 243, 255, 0.2);
    position: relative;
}

.modal-header::before {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.modal-header h2 {
    margin: 0;
    font-size: 1.8rem;
    text-shadow: 0 0 15px rgba(0, 243, 255, 0.6);
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-purple));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.modal-close {
    color: var(--neon-cyan);
    font-size: 2rem;
    font-weight: bold;
    cursor: pointer;
    background: rgba(0, 243, 255, 0.1);
    border: 1px solid rgba(0, 243, 255, 0.3);
    padding: 0;
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.modal-close:hover {
    background: rgba(0, 243, 255, 0.2);
    border-color: var(--neon-cyan);
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.6);
    transform: rotate(90deg) scale(1.1);
}

.modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
    color: var(--dark-text);
}

.modal-body h3 {
    color: var(--neon-cyan);
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
    text-shadow: 0 0 10px rgba(0, 243, 255, 0.5);
}

.modal-body h3:first-child {
    margin-top: 0;
}

.modal-body p {
    color: var(--dark-text-secondary);
    line-height: 1.8;
    margin-bottom: 1rem;
}

.modal-body ul {
    margin-left: 1.5rem;
    margin-bottom: 1rem;
    color: var(--dark-text-secondary);
    line-height: 1.8;
}

.modal-body li {
    margin-bottom: 0.5rem;
}

.modal-body strong {
    color: var(--dark-text);
}

.modal-footer {
    padding: 1rem 2rem;
    background: rgba(0, 243, 255, 0.05);
    border-top: 1px solid rgba(0, 243, 255, 0.2);
    text-align: center;
    border-radius: 0 0 15px 15px;
    position: relative;
}

.modal-footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--neon-cyan), transparent);
    box-shadow: 0 0 10px var(--neon-cyan);
}

.modal-footer button {
    padding: 0.8rem 2rem;
    background: linear-gradient(135deg, var(--neon-cyan), var(--neon-blue));
    color: var(--dark-bg);
    border: 2px solid var(--neon-cyan);
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 0 20px rgba(0, 243, 255, 0.5);
    position: relative;
    overflow: hidden;
}

.modal-footer button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.modal-footer button:hover::before {
    width: 300px;
    height: 300px;
}

.modal-footer button:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 0 30px rgba(0, 243, 255, 0.8),
                0 10px 30px rgba(0, 243, 255, 0.4);
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes gradientShift {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }

    .modal-header {
        padding: 1rem 1.5rem;
    }

    .modal-header h2 {
        font-size: 1.4rem;
    }

    .modal-body {
        padding: 1.5rem;
    }

    .modal-body h3 {
        font-size: 1.1rem;
    }

    .modal-footer {
        padding: 1rem 1.5rem;
    }
}

