/* Message Modal Styles */
.message-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.6);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 5000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s;
}

/* Message modal within hatch modal (lower z-index to stay behind) */
.message-modal.in-hatch-modal {
    z-index: 2500;
    background: rgba(0,0,0,0.5);
}

.message-modal.active {
    opacity: 1;
    pointer-events: auto;
}

.message-modal-content {
    background: white;
    padding: 0;
    border-radius: 25px;
    text-align: center;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
    transform: scale(0.8);
    transition: transform 0.3s;
    max-width: 450px;
    width: 92%;
    min-height: auto;
    overflow: hidden;
    animation: messageSlideIn 0.3s ease-out forwards;
}

@keyframes messageSlideIn {
    from {
        transform: scale(0.8) translateY(-20px);
        opacity: 0;
    }
    to {
        transform: scale(1) translateY(0);
        opacity: 1;
    }
}

.message-modal.active .message-modal-content {
    transform: scale(1);
}

.message-icon {
    font-size: 48px;
    margin-bottom: 12px;
    margin-top: 28px;
    animation: iconBounce 0.5s ease-out;
}

@keyframes iconBounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.message-modal h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 700;
}

.message-modal p {
    font-size: 15px;
    color: #666;
    margin-bottom: 25px;
    line-height: 1.6;
    padding: 0 30px;
}

.message-modal-btn {
    padding: 12px 35px;
    background: linear-gradient(135deg, #1e90ff 0%, #0066cc 100%);
    color: white;
    border: none;
    border-radius: 50px;
    font-family: 'Fredoka', sans-serif;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 5px 20px rgba(30, 144, 255, 0.4);
    margin-bottom: 28px;
}

.message-modal-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(30, 144, 255, 0.5);
}

.message-modal-btn.error {
    background: linear-gradient(135deg, #FF6B6B 0%, #ee5a5a 100%);
    box-shadow: 0 5px 20px rgba(255, 107, 107, 0.4);
}

.message-modal-btn.error:hover {
    box-shadow: 0 8px 25px rgba(255, 107, 107, 0.5);
}

.message-modal-btn.success {
    background: linear-gradient(135deg, #4CAF50 0%, #45a049 100%);
    box-shadow: 0 5px 20px rgba(76, 175, 80, 0.4);
}

.message-modal-btn.success:hover {
    box-shadow: 0 8px 25px rgba(76, 175, 80, 0.5);
}
