:root { --accent: #10b981; }

* { scroll-behavior: smooth; }

body { -webkit-font-smoothing: antialiased; }

::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0a0e14; }
::-webkit-scrollbar-thumb { background: #1e293b; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: #334155; }

/* Hero atmospheric background */
.hero-bg {
  background:
    radial-gradient(ellipse 60% 50% at 30% 0%, rgba(16,185,129,0.10), transparent),
    radial-gradient(ellipse 50% 50% at 90% 30%, rgba(212,175,55,0.08), transparent);
}

/* Ticker scroll (RTL friendly) */
.ticker-track {
  animation: ticker 30s linear infinite;
  width: max-content;
}
@keyframes ticker {
  from { transform: translateX(0); }
  to { transform: translateX(50%); }
}
.ticker-track:hover { animation-play-state: paused; }

/* Fade up on load */
.fade-up {
  animation: fadeUp .8s cubic-bezier(.2,.7,.3,1) both;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
.fade-in { animation: fadeIn .6s ease both; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

/* Growing bars for win-rate */
.bar-grow {
  width: 0;
  animation: barGrow 1.4s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes barGrow { to { width: var(--w); } }

/* Growing columns for monthly chart */
.col-grow {
  height: 0;
  animation: colGrow 1.2s cubic-bezier(.2,.7,.3,1) forwards;
}
@keyframes colGrow { to { height: var(--hh); } }

/* Admin login error shake */
.shake { animation: shake .4s ease; }
@keyframes shake {
  0%,100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}

/* Customer drawer slide-in from right (RTL) */
.drawer-in { animation: drawerIn .3s cubic-bezier(.2,.7,.3,1) both; }
@keyframes drawerIn {
  from { transform: translateX(30px); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Donut segment draw-in */
.donut-seg {
  transition: stroke-dashoffset .6s ease;
  animation: donutIn 1s ease both;
}
@keyframes donutIn { from { opacity: 0; } to { opacity: 1; } }

/* Persian text refinements */
h1, h2, h3 { line-height: 1.5; }
input, button, select, table { font-family: 'Vazirmatn', sans-serif; }