/* Chống chớp text / giật giao diện (Anti-FOUC) */
html:not(.ready) body {
    opacity: 0 !important;
    visibility: hidden !important;
}

html.ready body {
    opacity: 1 !important;
    visibility: visible !important;
    transition: opacity 0.15s ease-out;
}

:root {
    --font-sans: 'Quicksand', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

body {
    font-family: var(--font-sans);
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-track {
    background: #fdfbf7;
}
::-webkit-scrollbar-thumb {
    background: #e7e5e4;
    border-radius: 9999px;
}
::-webkit-scrollbar-thumb:hover {
    background: #d6d3d1;
}

/* Animations */
@keyframes pulseSubtle {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.04); }
}

.animate-pulse-subtle {
    animation: pulseSubtle 3s infinite ease-in-out;
}
