/* ========== Modal Overlay ========== */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.75);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal-overlay.visible {
    display: flex;
}

/* ========== Modal Content ========== */
.modal-content {
    background-color: var(--bg-card);
    border-radius: var(--radius-3xl);
    padding: 24px;
    width: 85%;
    max-width: 380px;
    box-shadow: 0 25px 40px rgba(0, 0, 0, 0.3);
    animation: modalAppear 0.3s var(--ease-bounce);
}

@keyframes modalAppear {
    from {
        transform: scale(0.85);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

.modal-header {
    text-align: center;
    margin-bottom: var(--space-2xl);
    padding-bottom: var(--space-md);
    border-bottom: 2px solid #ffddd3;
}

.modal-title {
    font-size: var(--fs-heading);
    font-weight: bold;
    color: var(--text-accent);
}

/* ========== Platform Grid ========== */
.modal-platform-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 18px;
    margin-bottom: var(--space-2xl);
}

.modal-platform-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 16px 8px;
    border-radius: var(--radius-2xl);
    background-color: #fef7f2;
    border: 1px solid var(--border-card);
    cursor: pointer;
    transition: all 0.25s;
}

.modal-platform-btn:hover {
    background-color: #ffe4d8;
    transform: translateY(-5px);
    box-shadow: 0 12px 20px rgba(0, 0, 0, 0.1);
}

.modal-platform-btn:active {
    transform: scale(0.96);
}

.modal-platform-icon {
    width: 44px;
    height: 44px;
    margin-bottom: 8px;
    font-size: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-platform-name {
    font-size: 16px;
    font-weight: 600;
    color: var(--text-primary);
}

/* ========== Modal Footer ========== */
.modal-footer {
    text-align: center;
}

.modal-btn-cancel {
    padding: 10px 28px;
    background-color: #f1f2f6;
    border: none;
    border-radius: var(--radius-round);
    color: #747d8c;
    font-size: var(--fs-body);
    cursor: pointer;
    transition: all 0.2s;
}

.modal-btn-cancel:hover {
    background-color: #dfe4ea;
    color: var(--text-primary);
}

/* ========== Responsive ========== */
@media (max-width: 428px) {
    .modal-content {
        width: 90%;
        padding: 20px;
    }

    .modal-platform-grid {
        gap: 12px;
    }

    .modal-platform-btn {
        padding: 14px 6px;
    }
}
