* {
  scrollbar-width: thin;
  scrollbar-color: #263fbb #e2e8f0;
}

::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #070d24, #263fbb, #ec4899);
  border: 2px solid #f8fafc;
  border-radius: 999px;
}

::-webkit-scrollbar-track {
  background: #f8fafc;
}

::selection {
  background: rgb(184 204 255 / 0.56);
  color: #070d24;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes fadeOut {
  from { opacity: 1; }
  to { opacity: 0; }
}

@keyframes slideUp {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-14px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes slideInRight {
  from { transform: translateX(100%); }
  to { transform: translateX(0); }
}

@keyframes slideOutRight {
  from { transform: translateX(0); }
  to { transform: translateX(100%); }
}

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes scaleOut {
  from { opacity: 1; transform: scale(1); }
  to { opacity: 0; transform: scale(0.97); }
}

@keyframes shimmer {
  0% { background-position: -220% 0; }
  100% { background-position: 220% 0; }
}

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

.transition-height {
  transition: height 280ms cubic-bezier(0.2, 0, 0, 1);
}

.transition-transform {
  transition: transform 220ms cubic-bezier(0.2, 0, 0, 1);
}

.bottom-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgb(15 23 42 / 0.44);
  backdrop-filter: blur(8px);
}

.bottom-sheet-container {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 90vh;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
  border: 1px solid rgb(226 232 240 / 0.88);
  background: rgb(255 255 255 / 0.96);
  box-shadow: 0 -28px 80px -48px rgb(7 13 36 / 0.48);
}

.bottom-sheet-handle {
  width: 56px;
  height: 5px;
  margin: 12px auto;
  border-radius: 999px;
  background: linear-gradient(90deg, #b8ccff, #fbcfe8);
}

.bottom-sheet-content {
  overflow: auto;
}

.toast-stack {
  position: fixed;
  top: 1rem;
  right: 1rem;
  z-index: 100;
}

.pb-safe {
  padding-bottom: env(safe-area-inset-bottom);
}

.img-lazy {
  filter: blur(16px);
  transform: scale(1.01);
  transition: filter 420ms ease, transform 420ms ease;
}

.img-lazy.loaded {
  filter: blur(0);
  transform: scale(1);
}

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

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

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

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

@keyframes badgePulse {
  0% { box-shadow: 0 0 0 0 rgb(236 72 153 / 0.42); }
  100% { box-shadow: 0 0 0 12px rgb(236 72 153 / 0); }
}

.badge-pulse {
  animation: badgePulse 1.7s infinite;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 1ms !important;
  }
}
