html {
    scroll-behavior: smooth;
}

body {
    text-rendering: optimizeLegibility;
    font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

::selection {
    background: #bcd7ff;
    color: #061b3f;
}

.no-scrollbar {
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.no-scrollbar::-webkit-scrollbar {
    display: none;
}

.line-clamp-1,
.line-clamp-2 {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.line-clamp-1 {
    -webkit-line-clamp: 1;
}

.line-clamp-2 {
    -webkit-line-clamp: 2;
}

.gallery-thumb.is-active {
    border-color: #0b3f9f !important;
    box-shadow: 0 0 0 2px rgba(11, 63, 159, 0.18);
}

.opacity-60 {
    opacity: 0.6;
}

.cursor-wait {
    cursor: wait !important;
}

input[type="number"]::-webkit-inner-spin-button,
input[type="number"]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type="number"] {
    -moz-appearance: textfield;
    appearance: textfield;
}

.spinner {
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255, 255, 255, 0.35);
    border-top-color: #ffffff;
    border-radius: 9999px;
    display: inline-block;
    animation: ac-spin 0.7s linear infinite;
}

@keyframes ac-spin {
    to {
        transform: rotate(360deg);
    }
}

.toast {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    border: 1px solid #e2e8f0;
    border-left-width: 4px;
    border-radius: 14px;
    background: #ffffff;
    padding: 12px 14px;
    box-shadow: 0 18px 45px -18px rgba(6, 27, 63, 0.4);
    color: #0f172a;
    font-size: 12px;
    line-height: 1.5;
    pointer-events: auto;
    animation: toast-in 0.22s ease-out both;
}

.toast-success {
    border-left-color: #10b981;
}

.toast-error {
    border-left-color: #f43f5e;
}

.toast-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    border-radius: 9999px;
    font-size: 12px;
    font-weight: 800;
    margin-top: 1px;
}

.toast-success .toast-icon {
    background: #d1fae5;
    color: #047857;
}

.toast-error .toast-icon {
    background: #ffe4e6;
    color: #be123c;
}

.toast.is-leaving {
    animation: toast-out 0.18s ease-in both;
}

@keyframes toast-in {
    from {
        opacity: 0;
        transform: translateY(8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

@keyframes toast-out {
    from {
        opacity: 1;
        transform: translateY(0);
    }
    to {
        opacity: 0;
        transform: translateY(6px);
    }
}

#pix-qrcode img,
#pix-qrcode canvas {
    display: block;
    width: 100% !important;
    height: auto !important;
    max-width: 216px;
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}
