:root {
  --royal: #8B3A62;
  --gold: #D4AF37;
  --copper: #B87333;
  --cream: #F5F1E8;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--cream);
  background-image:
    radial-gradient(circle at 15% 20%, rgba(212,175,55,0.06), transparent 40%),
    radial-gradient(circle at 85% 75%, rgba(139,58,98,0.06), transparent 40%);
  color: #3a2230;
  -webkit-font-smoothing: antialiased;
}

body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: -1;
  opacity: 0.4;
  background-image: repeating-linear-gradient(45deg,
    rgba(212,175,55,0.03) 0px,
    rgba(212,175,55,0.03) 1px,
    transparent 1px,
    transparent 22px);
}

::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: var(--cream); }
::-webkit-scrollbar-thumb { background: linear-gradient(var(--royal), var(--copper)); border-radius: 10px; }

.stagger .fade-item {
  opacity: 0;
  transform: translateY(16px);
  animation: fadeUp 0.6s ease forwards;
}
.stagger .fade-item:nth-child(1) { animation-delay: 0.05s; }
.stagger .fade-item:nth-child(2) { animation-delay: 0.12s; }
.stagger .fade-item:nth-child(3) { animation-delay: 0.19s; }
.stagger .fade-item:nth-child(4) { animation-delay: 0.26s; }
.stagger .fade-item:nth-child(5) { animation-delay: 0.33s; }
.stagger .fade-item:nth-child(6) { animation-delay: 0.40s; }
.stagger .fade-item:nth-child(7) { animation-delay: 0.47s; }
.stagger .fade-item:nth-child(n+8) { animation-delay: 0.5s; }

.fade-item { animation: fadeUp 0.4s ease; }

@keyframes fadeUp {
  to { opacity: 1; transform: translateY(0); }
}

.toast-in {
  animation: toastIn 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

.shimmer {
  position: relative;
  overflow: hidden;
}
.shimmer::after {
  content: '';
  position: absolute;
  top: 0;
  left: -60%;
  width: 40%;
  height: 100%;
  background: linear-gradient(120deg, transparent, rgba(255,255,255,0.5), transparent);
  transform: skewX(-20deg);
}
.shimmer:hover::after {
  animation: sweep 0.8s ease;
}
@keyframes sweep {
  from { left: -60%; }
  to { left: 130%; }
}

input:focus, select:focus, textarea:focus {
  box-shadow: 0 0 0 3px rgba(139,58,98,0.12);
}

::selection { background: var(--gold); color: var(--royal); }