/* === Random App Modal Styles === */
.random-modal {
    display: none;
    position: fixed;
    z-index: 3000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(6px);
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.random-modal-box {
    background: #1a1a1a;
    border: 2px solid #0ff;
    box-shadow: 0 0 30px rgba(0, 255, 255, 0.4);
    border-radius: 16px;
    padding: 30px;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    animation: slideUp 0.3s ease;
}

.random-modal-box h2 {
    color: #0ff;
    margin: 0 0 20px 0;
    text-shadow: 0 0 10px #0ff;
}

/* Reuse your existing .card styles, but override width for modal */
.random-modal-box .card {
    margin: 0 auto;
    max-width: 280px;
}

.random-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: transparent;
    border: none;
    color: #0ff;
    font-size: 28px;
    cursor: pointer;
    line-height: 1;
}
.random-modal-close:hover {
    color: #fff;
    text-shadow: 0 0 10px #0ff;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes slideUp {
    from { transform: translateY(30px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* Mobile */
@media (max-width: 480px) {
    .random-modal-box {
        padding: 20px;
    }
}