.qr-container {
    width: 300px;
    height: 300px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.qr-code {
    position: absolute;
    top: -10px;
    left: -10px;
    right: -10px;
    bottom: -10px;
    background-size: cover;
    background-position: center;
    filter: blur(5px) opacity(0.2);
    transition: filter 0.8s ease;
    z-index: 1;
}

/* Класс для отключения фильтра */
.qr-active .qr-code {
    filter: none !important;
}

/* Контент */
.qr-icon {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 2;
    gap: 20px;
}

/* Иконка */
.card-icon {
    font-size: 200px;
    color: white;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6));
    transition: opacity 0.8s ease;
}

/* green success icon on QR */
.card-icon.bi-check-circle-fill {
    color: #1987549e;
}

/* Скрываем иконку при отсутствии фильтра */
.qr-active .card-icon {
    opacity: 0 !important;
    pointer-events: none;
}

.error-page {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f8f9fa;
}

.error-card {
    max-width: 500px;
    padding: 2rem;
    border: none;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.error-icon {
    font-size: 5rem;
    color: #dc3545;
    margin-bottom: 1.5rem;
}

/* Responsive toast container */
.copy-toast-container {
    width: 100%;
    max-width: 100%;
    left: 0;
    right: 0;
    top: 3.5rem;
}

.copy-toast-container .toast {
    width: 100%;
    max-width: 100%;
}

@media (min-width: 576px) {
    .copy-toast-container {
        width: auto;
        max-width: 420px;
        left: auto;
        right: 0;
        top: 3.5rem;
    }

    .copy-toast-container .toast {
        width: 360px;
        max-width: 100%;
    }
}

.transaction-card.animated {
    animation: tilt-shaking 0.4s ease-in-out 1;
}

@keyframes tilt-shaking {
    0%   { transform: rotate(0deg); }
    20%  { transform: rotate(3deg); }
    40%  { transform: rotate(0deg); }
    60%  { transform: rotate(-3deg); }
    80%  { transform: rotate(0deg); }
    90%  { transform: rotate(1.5deg); }
    100% { transform: rotate(0deg); }
}