:root {
  --bg: #0d0d0f;
  --accent: #f43f5e;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  font-family: "Vazirmatn", sans-serif;
  color: #e5e5e5;
  -webkit-font-smoothing: antialiased;
}

body {
  background:
    radial-gradient(circle at 15% 0%, rgba(244,63,94,0.10), transparent 40%),
    radial-gradient(circle at 85% 5%, rgba(219,39,119,0.10), transparent 45%),
    var(--bg);
  min-height: 100vh;
}

/* ---- Brand title ---- */
.brand-title {
  font-family: "Monoton", "Righteous", cursive;
  font-size: clamp(3.2rem, 13vw, 7rem);
  line-height: 1;
  font-weight: 400;
  letter-spacing: 0.02em;
  background: linear-gradient(90deg, #fb7185, #f43f5e, #db2777, #fb7185);
  background-size: 300% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 4px 24px rgba(244,63,94,0.35));
  animation: shimmer 6s linear infinite;
}
@keyframes shimmer {
  to { background-position: 300% 0; }
}

.glow-orb {
  position: absolute;
  top: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 340px;
  height: 340px;
  background: radial-gradient(circle, rgba(244,63,94,0.25), transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  animation: pulseGlow 5s ease-in-out infinite;
}
@keyframes pulseGlow {
  0%,100% { opacity: 0.6; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.1); }
}

/* ---- Masonry (Pinterest columns) ---- */
.masonry {
  column-count: 2;
  column-gap: 14px;
}
@media (min-width: 640px) { .masonry { column-count: 3; } }
@media (min-width: 900px) { .masonry { column-count: 4; } }
@media (min-width: 1200px) { .masonry { column-count: 5; } }

.masonry-item {
  break-inside: avoid;
  margin-bottom: 14px;
  animation: fadeUp 0.5s ease both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ---- Spinners ---- */
.spinner {
  width: 18px; height: 18px;
  border: 2.5px solid rgba(255,255,255,0.4);
  border-top-color: #fff;
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.7s linear infinite;
}
.spinner-lg {
  width: 42px; height: 42px;
  border: 4px solid rgba(244,63,94,0.25);
  border-top-color: var(--accent);
  border-radius: 50%;
  display: inline-block;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ---- Toast / modal animations ---- */
.toast-in { animation: toastIn 0.3s ease both; }
@keyframes toastIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
.lb-in { animation: fadeIn 0.2s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.shake { animation: shake 0.45s; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20%,60% { transform: translateX(-8px); }
  40%,80% { transform: translateX(8px); }
}

/* scrollbar */
::-webkit-scrollbar { width: 10px; }
::-webkit-scrollbar-track { background: #0d0d0f; }
::-webkit-scrollbar-thumb { background: #2a2a2e; border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }