/* Modal */
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    background: rgba(18, 18, 18, 0.95);
    backdrop-filter: blur(8px);
    z-index: 1000;
    overflow: auto;
}

.modal.hidden {
    display: none;
}

.modal-content {
    background: rgba(30, 30, 30, 0.95);
    padding: 24px;
    border-radius: 16px;
    width: 95%;
    max-width: 800px;
    text-align: center;
    position: relative;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
    animation: fadeIn 0.2s ease;
    max-height: 90vh;
    display: flex;
    flex-direction: column;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.modal-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-bottom: 16px;
}

.modal-icon {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    background-size: cover;
    background-position: center;
    margin-bottom: 12px;
}

.modal h2 {
    margin: 0;
    font-size: 1.6rem;
}

.modal-tabs {
    display: flex;
    justify-content: center;
    margin: 16px 0;
    gap: 12px;
}

.modal-tab {
    padding: 6px 16px;
    border-radius: 12px;
    cursor: pointer;
    background: rgba(255, 255, 255, 0.1);
    transition: background 0.2s;
    font-weight: bold;
}

.modal-tab.active {
    background: #1e88e5;
    color: #fff;
}

.modal-description {
    color: #eaeaea;
    text-align: left;
    overflow-y: auto;
    padding: 8px 0;
    flex-grow: 1;
    max-height: 50vh;
}

.modal small {
    display: block;
    margin-top: 8px;
    color: #777;
}

.modal-btn {
    display: inline-block;
    margin-top: 20px;
    padding: 12px 24px;
    background: #1e88e5;
    color: #fff;
    border-radius: 12px;
    text-decoration: none;
    transition: background 0.2s;
}

.modal-btn:hover {
    background: #1565c0;
}

.close {
    position: absolute;
    top: 12px;
    right: 16px;
    font-size: 22px;
    cursor: pointer;
}

.hidden {
    display: none !important;
}

