body { font-family: 'Inter', sans-serif; -webkit-tap-highlight-color: transparent; }

/* Strict Visibility Enforcements */
.tab-content:not(.active) { display: none !important; }

/* Custom Scrollbars */
.custom-scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.custom-scrollbar::-webkit-scrollbar-track { background: transparent; }
.custom-scrollbar::-webkit-scrollbar-thumb { background-color: #cbd5e1; border-radius: 20px; }
.custom-scrollbar::-webkit-scrollbar-thumb:hover { background-color: #94a3b8; }
.hide-scrollbar::-webkit-scrollbar { display: none; }
.hide-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

/* Animations */
@keyframes fadeIn { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
.animate-fade-in { animation: fadeIn 0.2s ease-out forwards; }

@keyframes pulse-border { 0% { border-color: #a5b4fc; box-shadow: 0 0 0 0 rgba(99, 102, 241, 0.4); } 70% { border-color: #6366f1; box-shadow: 0 0 0 6px rgba(99, 102, 241, 0); } 100% { border-color: #a5b4fc; box-shadow: 0 0 0 0 rgba(99, 102, 241, 0); } }
.border-pulse-active { animation: pulse-border 2s infinite; border-width: 2px; }

@keyframes toastSlide { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
.toast-enter { animation: toastSlide 0.3s cubic-bezier(0.16, 1, 0.3, 1) forwards; }

/* Range Slider Styling */
input[type=range] { -webkit-appearance: none; background: transparent; }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; height: 20px; width: 20px; border-radius: 50%; background: #6366f1; cursor: pointer; margin-top: -8px; box-shadow: 0 2px 4px rgba(0,0,0,0.1); }
input[type=range]::-webkit-slider-runnable-track { width: 100%; height: 6px; cursor: pointer; background: #e2e8f0; border-radius: 4px; }

/* Accordion Enhancements */
details > summary { list-style: none; }
details > summary::-webkit-details-marker { display: none; }

/* Mobile Safe Area */
.pb-safe { padding-bottom: max(1rem, env(safe-area-inset-bottom)); }