@keyframes popIn {
    0% {
        transform: translate(-50%, -50%) scale(0.5);
        opacity: 0;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.05);
    }
    70% {
        transform: translate(-50%, -50%) scale(0.95);
    }
    100% {
        transform: translate(-50%, -50%) scale(1);
        opacity: 1;
    }
}

@keyframes vibrate {
    0% { transform: translate(-50%, -50%) rotate(0deg); }
    25% { transform: translate(-50%, -50%) rotate(0.5deg); }
    50% { transform: translate(-50%, -50%) rotate(0deg); }
    75% { transform: translate(-50%, -50%) rotate(-0.5deg); }
    100% { transform: translate(-50%, -50%) rotate(0deg); }
}

.flash-alert {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
}

.flash-alert.show {
    opacity: 1;
    animation: popIn 0.5s ease forwards, vibrate 0.15s ease-in-out 0.5s 3;
}

.flash-content {
    text-align: center;
    position: relative;
    padding-top: 20px;
}

.flash-logo {
    position: absolute;
    top: -15px;
    right: -15px;
    max-width: 42px; /* Reduced by 30% from original 60px */
    height: auto;
}

.flash-title {
    font-size: 24px;
    margin-bottom: 15px;
    color: #333;
}

.flash-message {
    font-size: 16px;
    line-height: 1.5;
    margin-bottom: 20px;
    color: #666;
}

.flash-buttons {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.continue-btn {
    padding: 12px 30px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    font-size: 16px;
    color: white;
    background: linear-gradient(135deg, #cf13e4, #2e08f4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.continue-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 8px rgba(0, 0, 0, 0.15);
}

.flash-signature {
    position: absolute;
    bottom: -20px;
    left: 0;
    font-style: italic;
    font-size: 14px;
    color: #666;
}

@media (max-width: 480px) {
    .flash-alert {
        width: 95%;
        padding: 20px;
    }

    .flash-title {
        font-size: 20px;
    }

    .flash-message {
        font-size: 14px;
    }

    .continue-btn {
        padding: 10px 20px;
        font-size: 14px;
    }

    .flash-logo {
        max-width: 29px; /* Reduced by 30% from original 42px for mobile */
    }
}
