:root {
  --bg1: #1e1b4b;
  --bg2: #0f172a;
  --accent: #22d3ee;
}
* { font-family: 'Vazirmatn', system-ui, sans-serif; box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(139,92,246,0.25), transparent),
    radial-gradient(900px 500px at 0% 10%, rgba(34,211,238,0.18), transparent),
    linear-gradient(160deg, var(--bg1), var(--bg2) 60%);
  background-attachment: fixed;
  color: #f1f5f9;
}

.header-bg { background: rgba(15, 23, 42, 0.6); }

.glass {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  backdrop-filter: blur(10px);
}
.glass-solid {
  background: linear-gradient(160deg, rgba(30,27,75,0.95), rgba(15,23,42,0.97));
  border: 1px solid rgba(255,255,255,0.1);
  backdrop-filter: blur(14px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.5);
}

.card-hover { transition: transform .25s ease, box-shadow .25s ease, border-color .25s; }
.card-hover:hover {
  transform: translateY(-6px);
  border-color: rgba(34,211,238,0.4);
  box-shadow: 0 18px 40px rgba(34,211,238,0.12);
}

.cb-input {
  width: 100%;
  background: rgba(0,0,0,0.25);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 0.9rem;
  padding: 0.75rem 1rem;
  color: #f1f5f9;
  outline: none;
  transition: border-color .2s;
}
.cb-input:focus { border-color: var(--accent); }
.cb-input::placeholder { color: #94a3b8; }

/* Hero glow */
.hero-glow {
  position: absolute; inset: 0;
  background: radial-gradient(600px 300px at 50% 0%, rgba(34,211,238,0.25), transparent 70%);
  pointer-events: none;
  animation: pulseGlow 5s ease-in-out infinite;
}
@keyframes pulseGlow { 0%,100%{opacity:.6} 50%{opacity:1} }

/* Entrance animations */
.fade-up { opacity: 0; animation: fadeUp .6s ease forwards; }
.fade-up.delay-1 { animation-delay: .15s; }
.fade-up.delay-2 { animation-delay: .3s; }
@keyframes fadeUp { from { opacity:0; transform: translateY(16px);} to { opacity:1; transform:none;} }

.drawer-in { animation: drawerIn .3s ease forwards; }
@keyframes drawerIn { from { transform: translateX(-100%);} to { transform:none;} }

.modal-in { animation: modalIn .3s cubic-bezier(.2,.8,.2,1) forwards; }
@keyframes modalIn { from { opacity:0; transform: scale(.9);} to { opacity:1; transform:none;} }

.toast-in { animation: toastIn .3s ease; }
@keyframes toastIn { from { opacity:0; transform: translate(50%, 20px);} to { opacity:1; transform: translate(50%,0);} }

.badge-pop { animation: pop .3s ease; }
.pop { animation: pop .5s ease; }
@keyframes pop { 0%{transform:scale(.4)} 60%{transform:scale(1.25)} 100%{transform:scale(1)} }

/* Spinner */
.spinner {
  width: 18px; height: 18px;
  border: 3px solid rgba(15,23,42,0.3);
  border-top-color: #0f172a;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg);} }

/* Confetti */
.confetti-box { position: fixed; inset: 0; pointer-events: none; z-index: 100; overflow: hidden; }
.confetti {
  position: absolute; top: -10px;
  width: 10px; height: 14px; border-radius: 2px;
  animation: fall 3s linear forwards;
}
@keyframes fall {
  to { transform: translateY(110vh) rotate(720deg); opacity: 0.9; }
}

::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.15); border-radius: 8px; }