/* ── Fade in ─────────────────────────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in { animation: fadeUp .5s ease both; }

.stagger > * { animation: fadeUp .5s ease both; }
.stagger > *:nth-child(1) { animation-delay: .05s; }
.stagger > *:nth-child(2) { animation-delay: .10s; }
.stagger > *:nth-child(3) { animation-delay: .15s; }
.stagger > *:nth-child(4) { animation-delay: .20s; }
.stagger > *:nth-child(5) { animation-delay: .25s; }
.stagger > *:nth-child(6) { animation-delay: .30s; }
.stagger > *:nth-child(7) { animation-delay: .35s; }
.stagger > *:nth-child(8) { animation-delay: .40s; }

/* ── Drawer ──────────────────────────────────────────────────── */
.drawer {
  position: fixed;
  top: 0; right: 0; bottom: 0;
  width: min(440px, 100vw);
  background: var(--drawer-bg, var(--color-bg));
  z-index: 200;
  box-shadow: var(--shadow-xl);
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--t-slow);
}
.drawer.open { transform: translateX(0); }

.drawer__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: var(--sp-5) var(--sp-6);
  border-bottom: 1px solid var(--color-border);
  flex-shrink: 0;
}
.drawer__title { font-size: 1.1rem; font-weight: 700; }
.drawer__close {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: var(--r);
  font-size: 1.2rem;
  transition: background var(--t);
  cursor: pointer;
}
.drawer__close:hover { background: var(--color-surface); }

.drawer__body {
  flex: 1;
  overflow-y: auto;
  padding: var(--sp-5) var(--sp-6);
}
.drawer__footer {
  padding: var(--sp-5) var(--sp-6);
  border-top: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
  flex-shrink: 0;
}

/* ── Overlay ─────────────────────────────────────────────────── */
.overlay {
  position: fixed; inset: 0;
  background: rgba(0,0,0,.5);
  z-index: 199;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--t-slow);
}
.overlay.open { opacity: 1; pointer-events: all; }

/* ── Badge pulse ─────────────────────────────────────────────── */
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50%      { transform: scale(1.2); }
}
.badge--new { animation: pulse 2.5s ease infinite; }

/* ── Float ───────────────────────────────────────────────────── */
@keyframes float {
  0%,100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

/* ── Skeleton ────────────────────────────────────────────────── */
@keyframes shimmer {
  from { background-position: -200% 0; }
  to   { background-position:  200% 0; }
}
.skeleton {
  background: linear-gradient(90deg, var(--color-surface) 25%, var(--color-border) 50%, var(--color-surface) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--r);
}
