* { margin: 0; padding: 0; box-sizing: border-box; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes slideIn {
  from { opacity: 0; transform: translateX(-20px); }
  to { opacity: 1; transform: translateX(0); }
}
@keyframes slideUp {
  from { opacity: 0; transform: translateY(30px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  10%, 30%, 50%, 70%, 90% { transform: translateX(-5px); }
  20%, 40%, 60%, 80% { transform: translateX(5px); }
}
@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 5px rgba(37,99,235,0.3); }
  50% { box-shadow: 0 0 20px rgba(37,99,235,0.6); }
}
@keyframes checkmark {
  0% { stroke-dashoffset: 50; }
  100% { stroke-dashoffset: 0; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes breathe {
  0%, 100% { box-shadow: 0 4px 15px rgba(0,0,0,0.1); }
  50% { box-shadow: 0 8px 30px rgba(0,0,0,0.15); }
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
@keyframes toast-in {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes toast-out {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(100%); opacity: 0; }
}
@keyframes scaleIn {
  from { transform: scale(0.9); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.animate-fade-in { animation: fadeIn 0.5s ease-out forwards; }
.animate-slide-in { animation: slideIn 0.4s ease-out forwards; }
.animate-slide-up { animation: slideUp 0.5s ease-out forwards; }
.animate-shake { animation: shake 0.5s ease-in-out; }
.animate-breathe { animation: breathe 3s ease-in-out infinite; }
.animate-spin-slow { animation: spin 1s linear infinite; }
.animate-toast-in { animation: toast-in 0.3s ease-out forwards; }
.animate-toast-out { animation: toast-out 0.3s ease-in forwards; }
.animate-scale-in { animation: scaleIn 0.3s ease-out forwards; }
.animate-checkmark path { stroke-dasharray: 50; animation: checkmark 0.5s ease-out forwards; }

.stagger-1 { animation-delay: 0.05s; opacity: 0; }
.stagger-2 { animation-delay: 0.1s; opacity: 0; }
.stagger-3 { animation-delay: 0.15s; opacity: 0; }
.stagger-4 { animation-delay: 0.2s; opacity: 0; }
.stagger-5 { animation-delay: 0.25s; opacity: 0; }
.stagger-6 { animation-delay: 0.3s; opacity: 0; }
.stagger-7 { animation-delay: 0.35s; opacity: 0; }
.stagger-8 { animation-delay: 0.4s; opacity: 0; }

.gradient-blue { background: linear-gradient(135deg, #1E40AF 0%, #3B82F6 100%); }
.gradient-green { background: linear-gradient(135deg, #065F46 0%, #10B981 100%); }
.gradient-purple { background: linear-gradient(135deg, #5B21B6 0%, #8B5CF6 100%); }
.gradient-login { background: linear-gradient(135deg, #0A1628 0%, #1E293B 50%, #0F172A 100%); }

.otp-input {
  width: 48px; height: 56px;
  text-align: center; font-size: 1.5rem; font-weight: 700;
  border: 2px solid #334155; border-radius: 12px;
  background: rgba(255,255,255,0.05); color: #E2E8F0;
  outline: none; transition: all 0.2s;
  font-family: 'JetBrains Mono', monospace;
}
.otp-input:focus { border-color: #2563EB; box-shadow: 0 0 0 3px rgba(37,99,235,0.3); }

input::-ms-reveal, input::-ms-clear { display: none; }

.sidebar-item { transition: all 0.2s ease; position: relative; }
.sidebar-item::before {
  content: ''; position: absolute; left: 0; top: 0; bottom: 0;
  width: 3px; background: #2563EB; border-radius: 0 3px 3px 0;
  transform: scaleY(0); transition: transform 0.2s ease;
}
.sidebar-item.active::before { transform: scaleY(1); }
.sidebar-item.active { background: rgba(37,99,235,0.1); color: #3B82F6; }

.quick-action-btn { transition: all 0.2s ease; }
.quick-action-btn:hover { transform: scale(1.08); box-shadow: 0 8px 25px rgba(0,0,0,0.15); }

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: #475569; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #64748B; }

.dark .input-field { background: #1E293B; border-color: #334155; color: #E2E8F0; }
.dark .input-field:focus { border-color: #2563EB; }

.tab-active { color: #2563EB; border-bottom: 2px solid #2563EB; }

@media (max-width: 768px) {
  .otp-input { width: 42px; height: 48px; font-size: 1.25rem; }
}