.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    padding: 2rem;
    z-index: 2000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(5px);
    }
}

.modal-content {
    background: linear-gradient(135deg, var(--bg-secondary), var(--bg-tertiary));
    padding: 2.5rem;
    border-radius: 20px;
    width: min(850px, 95%);
    max-height: 85vh;
    overflow-y: auto;
    text-align: left;
    border: 1px solid var(--border);
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
    animation: slideUpModal 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
    position: relative;
}

@keyframes slideUpModal {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

#close {
    cursor: pointer;
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.8rem;
    color: var(--text-muted);
    transition: all 0.2s ease;
    line-height: 0;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid transparent;
}

#close:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.1);
}

#modal-title {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 2rem;
    background: linear-gradient(135deg, var(--accent-primary), var(--accent-secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.intro-text {
    font-size: 1.1rem;
    margin-bottom: 2rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

.section-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.section-card {
    background: rgba(59, 130, 246, 0.1);
    padding: 1.5rem;
    border-radius: 12px;
    border-left: 3px solid var(--accent-primary);
    transition: all 0.3s ease;
}

.section-card:hover {
    background: rgba(59, 130, 246, 0.15);
    transform: translateX(5px);
}

.section-card h3 {
    margin-top: 0;
    color: var(--accent-secondary);
}

.section-card p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0.8rem 0 0 0;
}

.facts {
    margin-top: 2rem;
    padding: 1.5rem;
    border-left: 4px solid var(--success);
    background: rgba(16, 185, 129, 0.1);
    border-radius: 10px;
}

.facts h3 {
    margin-top: 0;
    color: var(--success);
}

.facts ul {
    margin: 0;
    padding-left: 1.5rem;
    list-style: none;
}

.facts li {
    color: var(--text-secondary);
    margin: 0.8rem 0;
    padding-left: 1.5rem;
    position: relative;
}

.facts li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--success);
    font-weight: bold;
}

.modal-content::-webkit-scrollbar {
    width: 8px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: var(--accent-primary);
    border-radius: 10px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: var(--accent-secondary);
}

@media (max-width: 768px) {
    .modal-content {
        padding: 1.5rem;
        width: 95%;
    }

    #modal-title {
        font-size: 1.5rem;
    }

    .section-grid {
        grid-template-columns: 1fr;
    }
}