.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

.modal-card {
    background: var(--card);
    padding: 30px;
    border-radius: var(--radius);
    border: 1px solid var(--line);
    text-align: center;
    max-width: 400px;
    width: 90%;
    box-shadow: var(--shadow);
}

.modal-card h3 {
    margin-top: 0;
}

.modal-actions {
    display: flex;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.slide-forward #stepWrapper {
    animation: slideInRight 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

.slide-backward #stepWrapper {
    animation: slideInLeft 0.4s cubic-bezier(0.4, 0, 0.2, 1) forwards;
}

@keyframes slideInRight {
    from {
        opacity: 0;
        transform: translateX(50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

@keyframes slideInLeft {
    from {
        opacity: 0;
        transform: translateX(-50px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.btn-primary:hover {
    background: var(--accent2);
    transform: translateY(-2px);
}

.btn-full-width {
    width: 100%;
}

.error-msg {
    display: none;
    color: #ff4444;
    font-size: 0.85rem;
    margin-top: 4px;
    animation: shake 0.35s ease-in-out;
}

.input-group input.invalid {
    border-color: #ff4444 !important;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.18) !important;
    animation: shake 0.35s ease-in-out;
}

.input-group input.invalid:focus {
    border-color: #ff4444 !important;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.22) !important;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-4px);
    }

    40% {
        transform: translateX(4px);
    }

    60% {
        transform: translateX(-3px);
    }

    80% {
        transform: translateX(3px);
    }
}

.receipt-card[style*="ff4444"] {
    animation: shake 0.4s ease;
}

.modal-input-verify.invalid {
    border-color: #ff4444 !important;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.18) !important;
    animation: shake 0.35s ease-in-out;
}

.modal-input-verify.invalid:focus {
    border-color: #ff4444 !important;
    box-shadow: 0 0 0 3px rgba(255, 68, 68, 0.22) !important;
}

.error-msg {
    display: none;
    color: #ff4444;
    font-size: 0.85rem;
    margin-top: 4px;
    animation: shake 0.35s ease-in-out;
}

@keyframes shake {

    0%,
    100% {
        transform: translateX(0);
    }

    20% {
        transform: translateX(-4px);
    }

    40% {
        transform: translateX(4px);
    }

    60% {
        transform: translateX(-3px);
    }

    80% {
        transform: translateX(3px);
    }
}

.error-msg {
    display: none;
    color: #ff4444;
    font-size: 0.85rem;
    margin-top: 5px;
    text-align: left;
}

.error-msg.visible {
    display: block;
}