* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body { transition: background-color 0.3s, color 0.3s; }
body.dark-mode { background: #0F172A; color: #F1F5F9; }
body.light-mode { background: #F8FAFC; color: #0F172A; }

@keyframes fadeIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideUp { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: translateY(0); } }
@keyframes slideRight { from { opacity: 0; transform: translateX(-20px); } to { opacity: 1; transform: translateX(0); } }
@keyframes slideInRight { from { transform: translateX(100%); } to { transform: translateX(0); } }
@keyframes pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes countUp { from { opacity: 0; } to { opacity: 1; } }
@keyframes checkDraw { 0% { stroke-dashoffset: 50; } 100% { stroke-dashoffset: 0; } }
@keyframes toastIn { from { transform: translateX(100%); opacity: 0; } to { transform: translateX(0); opacity: 1; } }
@keyframes toastOut { from { transform: translateX(0); opacity: 1; } to { transform: translateX(100%); opacity: 0; } }
@keyframes shimmer { 0% { background-position: -200% 0; } 100% { background-position: 200% 0; } }
@keyframes spin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }
@keyframes ripple { 0% { transform: scale(0); opacity: 0.5; } 100% { transform: scale(4); opacity: 0; } }
@keyframes confetti { 0% { transform: translateY(0) rotateZ(0); opacity: 1; } 100% { transform: translateY(200px) rotateZ(720deg); opacity: 0; } }
@keyframes gradientMove { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }

.animate-fade-in { animation: fadeIn 0.3s ease-out forwards; }
.animate-slide-up { animation: slideUp 0.4s ease-out forwards; }
.animate-slide-right { animation: slideRight 0.3s ease-out forwards; }
.animate-slide-in-right { animation: slideInRight 0.3s ease-out; }
.animate-pulse-badge { animation: pulse 2s ease-in-out infinite; }
.animate-toast-in { animation: toastIn 0.3s ease-out; }
.animate-toast-out { animation: toastOut 0.3s ease-in forwards; }
.animate-spin { animation: spin 1s linear infinite; }

.stagger-1 { animation-delay: 0.05s; }
.stagger-2 { animation-delay: 0.1s; }
.stagger-3 { animation-delay: 0.15s; }
.stagger-4 { animation-delay: 0.2s; }
.stagger-5 { animation-delay: 0.25s; }

.glass { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.12); }
.glass-light { backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); background: rgba(255,255,255,0.7); border: 1px solid rgba(255,255,255,0.5); }

.skeleton { background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; }
.dark .skeleton { background: linear-gradient(90deg, #1e293b 25%, #334155 50%, #1e293b 75%); background-size: 200% 100%; }

.login-bg { background: linear-gradient(135deg, #0A1628 0%, #1A2744 40%, #0F172A 70%, #162033 100%); background-size: 400% 400%; animation: gradientMove 15s ease infinite; }

.card-hover { transition: transform 0.2s, box-shadow 0.2s; }
.card-hover:hover { transform: translateY(-2px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }

.scrollbar-hide { -ms-overflow-style: none; scrollbar-width: none; }
.scrollbar-hide::-webkit-scrollbar { display: none; }

input:focus, select:focus, textarea:focus { outline: none; }

.gradient-blue { background: linear-gradient(135deg, #2563EB, #1D4ED8); }
.gradient-green { background: linear-gradient(135deg, #10B981, #059669); }
.gradient-purple { background: linear-gradient(135deg, #7C3AED, #6D28D9); }

.btn-primary { background: linear-gradient(135deg, #2563EB, #1D4ED8); transition: all 0.2s; }
.btn-primary:hover { box-shadow: 0 0 24px rgba(37,99,235,0.4); transform: translateY(-1px); }

.credit-card { perspective: 1000px; }
.credit-card-inner { transition: transform 0.6s; transform-style: preserve-3d; }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #94a3b8; border-radius: 3px; }
.dark ::-webkit-scrollbar-thumb { background: #475569; }

@media (max-width: 768px) {
  .mobile-bottom-nav { position: fixed; bottom: 0; left: 0; right: 0; z-index: 50; }
}