/* =====================================================
   MyToon WebApp — استایل و انیمیشن‌ها
   ===================================================== */

@font-face {
  font-family: 'Vazirmatn';
  src: local('Vazirmatn');
  font-display: swap;
}

:root {
  --bg: #0f1115;
  --bg-soft: #161922;
  --surface: #1b1f2a;
  --surface-2: #232838;
  --border: #2a2f3d;
  --text: #f3f4f6;
  --text-dim: #9aa1b1;
  --text-faint: #6b7280;
  --accent: #6366f1;
  --accent-2: #8b5cf6;
  --accent-grad: linear-gradient(135deg, #6366f1, #8b5cf6);
  --success: #22c55e;
  --danger: #ef4444;
  --warning: #f59e0b;
  --gold: #fbbf24;
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --shadow: 0 8px 30px rgba(0,0,0,.35);
  --tg-safe-top: env(safe-area-inset-top, 0px);
  --tg-safe-bottom: env(safe-area-inset-bottom, 0px);
  --ease: cubic-bezier(.22,1,.36,1);
  --ease-spring: cubic-bezier(.34,1.56,.64,1);
  --bar-bg: rgba(15,17,21,.85);
  --particle-color: 255,255,255;
  --particle-op: .85;
}

[data-theme="light"] {
  --bg: #f4f5f9;
  --bg-soft: #eceef4;
  --surface: #ffffff;
  --surface-2: #f1f2f8;
  --border: #e2e4ee;
  --text: #1a1d29;
  --text-dim: #5b6072;
  --text-faint: #8a8fa3;
  --shadow: 0 8px 26px rgba(30,35,60,.1);
  --bar-bg: rgba(255,255,255,.82);
  --particle-color: 99,102,241;
  --particle-op: .35;
}
[data-theme="light"] .cat-card img { filter: brightness(.85); }
[data-theme="light"] .series-hero .grad { background: linear-gradient(180deg, rgba(244,245,249,0) 40%, var(--bg) 96%); }

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body {
  margin: 0; padding: 0; height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Vazirmatn', Tahoma, sans-serif;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: none;
}
body { direction: rtl; }
img { -webkit-user-drag: none; user-select: none; }
button { font-family: inherit; }
a { color: inherit; text-decoration: none; }
::-webkit-scrollbar { width: 0; height: 0; }

#app {
  max-width: 520px;
  margin: 0 auto;
  min-height: 100vh;
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  background: transparent;
  overflow: hidden;
}

/* ---------- پس‌زمینه‌ی متحرک سراسری (ذرات/ستاره‌های شناور) ---------- */
.bg-fx {
  position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
}
.bg-fx .blob {
  position: absolute; border-radius: 50%; filter: blur(70px); opacity: .18;
}
.bg-fx .blob.b1 { width: 320px; height: 320px; background: var(--accent-grad); top: -6%; right: -8%; animation: bgBlobDrift 22s ease-in-out infinite; }
.bg-fx .blob.b2 { width: 280px; height: 280px; background: radial-gradient(circle, var(--gold), transparent 70%); bottom: 4%; left: -10%; animation: bgBlobDrift 26s ease-in-out infinite reverse; }
@keyframes bgBlobDrift {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(30px,-40px) scale(1.12); }
}
.bg-fx .star {
  position: absolute; border-radius: 50%;
  background: rgba(var(--particle-color), var(--particle-op));
  animation: starTwinkle linear infinite;
}
@keyframes starTwinkle {
  0%, 100% { opacity: .15; transform: scale(.8); }
  50%      { opacity: 1;  transform: scale(1.15); }
}
@keyframes starDrift {
  from { transform: translateY(0); }
  to   { transform: translateY(-40px); }
}

/* ---------- اسپلش / لودینگ اولیه ---------- */
#splash {
  position: fixed; inset: 0; z-index: 9999;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: radial-gradient(circle at 50% 30%, #1c1f2c, #0b0c10 75%);
  transition: opacity .5s var(--ease), visibility .5s;
  overflow: hidden;
}
#splash.hide { opacity: 0; visibility: hidden; pointer-events: none; }

/* بلوب‌های نورانی پس‌زمینه */
.splash-glow {
  position: absolute; border-radius: 50%; filter: blur(60px); opacity: .35; pointer-events: none;
}
.splash-glow.g1 {
  width: 260px; height: 260px; background: var(--accent-grad);
  top: 10%; left: 15%; animation: glowDrift 9s ease-in-out infinite;
}
.splash-glow.g2 {
  width: 220px; height: 220px; background: radial-gradient(circle, var(--gold), transparent 70%);
  bottom: 8%; right: 12%; animation: glowDrift 11s ease-in-out infinite reverse;
}
@keyframes glowDrift {
  0%, 100% { transform: translate(0,0) scale(1); }
  50%      { transform: translate(20px,-25px) scale(1.15); }
}

/* ذرات شناور */
.splash-particles { position: absolute; inset: 0; pointer-events: none; }
.splash-particles span {
  position: absolute; width: 4px; height: 4px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 8px 1px rgba(251,191,36,.7);
  opacity: 0; animation: particleFloat 4.5s ease-in infinite;
}
.splash-particles span:nth-child(1) { left: 12%; bottom: 10%; animation-delay: .1s; }
.splash-particles span:nth-child(2) { left: 22%; bottom: 25%; animation-delay: 1.4s; background: var(--accent); box-shadow: 0 0 8px 1px rgba(99,102,241,.7); }
.splash-particles span:nth-child(3) { left: 35%; bottom: 5%;  animation-delay: .7s; }
.splash-particles span:nth-child(4) { left: 48%; bottom: 20%; animation-delay: 2.1s; background: var(--accent-2); box-shadow: 0 0 8px 1px rgba(139,92,246,.7); }
.splash-particles span:nth-child(5) { left: 60%; bottom: 8%;  animation-delay: .3s; }
.splash-particles span:nth-child(6) { left: 70%; bottom: 28%; animation-delay: 1.8s; }
.splash-particles span:nth-child(7) { left: 80%; bottom: 12%; animation-delay: 2.6s; background: var(--accent); box-shadow: 0 0 8px 1px rgba(99,102,241,.7); }
.splash-particles span:nth-child(8) { left: 88%; bottom: 22%; animation-delay: .9s; }
.splash-particles span:nth-child(9) { left: 6%;  bottom: 32%; animation-delay: 1.6s; background: var(--accent-2); box-shadow: 0 0 8px 1px rgba(139,92,246,.7); }
.splash-particles span:nth-child(10){ left: 92%; bottom: 6%;  animation-delay: 2.3s; }
@keyframes particleFloat {
  0%   { transform: translateY(0) scale(.6); opacity: 0; }
  15%  { opacity: 1; }
  85%  { opacity: .6; }
  100% { transform: translateY(-140px) scale(1); opacity: 0; }
}

/* دایره‌ی جادویی دور لوگو */
.magic-circle { position: relative; width: 148px; height: 148px; display: flex; align-items: center; justify-content: center; }
.mc-ring { position: absolute; border-radius: 50%; }
.mc-ring-outer {
  inset: 0; border: 2px dashed rgba(99,102,241,.4);
  animation: mcSpin 7s linear infinite;
}
.mc-ring-inner {
  inset: 16px; border-radius: 50%;
  border: 3px solid transparent;
  border-top-color: var(--accent); border-right-color: var(--gold);
  filter: drop-shadow(0 0 6px rgba(99,102,241,.55));
  animation: mcSpin 1.7s linear infinite reverse;
}
@keyframes mcSpin { to { transform: rotate(360deg); } }
.mc-orbit { position: absolute; inset: -6px; animation: mcSpin 3.2s linear infinite; }
.mc-orbit-2 { inset: -6px; animation-duration: 4.6s; animation-direction: reverse; }
.mc-dot {
  position: absolute; top: 0; left: 50%; width: 7px; height: 7px; border-radius: 50%;
  transform: translate(-50%, -50%);
}
.mc-dot-gold   { background: var(--gold); box-shadow: 0 0 10px 2px rgba(251,191,36,.8); }
.mc-dot-accent { background: var(--accent-2); box-shadow: 0 0 10px 2px rgba(139,92,246,.8); }
.splash-logo {
  width: 82px; height: 82px; border-radius: 22px; object-fit: cover; z-index: 1;
  animation: splashPulse 1.8s ease-in-out infinite, splashIn .6s var(--ease-spring);
}
@keyframes splashIn { from { transform: scale(.4) rotate(-8deg); opacity:0 } to { transform: scale(1) rotate(0); opacity:1 } }
@keyframes splashPulse {
  0%   { box-shadow: 0 0 0 0 rgba(99,102,241,.45); }
  70%  { box-shadow: 0 0 0 22px rgba(99,102,241,0); }
  100% { box-shadow: 0 0 0 0 rgba(99,102,241,0); }
}

.splash-text {
  margin-top: 22px; font-size: 13px; font-weight: 600; color: var(--text-dim);
  animation: fadeIn .6s var(--ease) .2s both; transition: opacity .26s ease, transform .26s ease;
  min-height: 18px;
}
.splash-text.fading { opacity: 0; transform: translateY(4px); }

/* نوار پیشرفت */
.splash-progress {
  width: 180px; height: 7px; border-radius: 999px; margin-top: 20px;
  background: var(--surface-2); overflow: hidden; position: relative;
  box-shadow: inset 0 1px 3px rgba(0,0,0,.5), 0 0 0 1px var(--border);
}
.splash-progress-fill {
  position: absolute; top: 0; bottom: 0; width: 42%; border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2), var(--gold));
  background-size: 220% 100%;
  box-shadow: 0 0 12px rgba(99,102,241,.7);
  animation: splashBarSlide 1.5s cubic-bezier(.45,0,.55,1) infinite, splashBarGradient 2.4s linear infinite;
}
.splash-progress-fill::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,.35) 0 5px, transparent 5px 10px);
  background-size: 14px 14px; opacity: .5;
  animation: splashStripes 1s linear infinite;
}
@keyframes splashBarSlide {
  0%   { left: -42%; }
  100% { left: 100%; }
}
@keyframes splashBarGradient { to { background-position: -220% 0; } }
@keyframes splashStripes { to { background-position: 14px 0; } }

/* ---------- هدر ---------- */
#topbar {
  position: sticky; top:0; z-index: 50;
  display:flex; align-items:center; gap:10px;
  padding: calc(10px + var(--tg-safe-top)) 14px 10px;
  background: var(--bar-bg);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: transform .35s var(--ease), box-shadow .3s, background .3s;
}
#topbar.scrolled { box-shadow: 0 6px 18px rgba(0,0,0,.25); }
.tb-back {
  width:36px;height:36px;border-radius:50%;display:flex;align-items:center;justify-content:center;
  background: var(--surface); border:1px solid var(--border); flex-shrink:0;
  transition: transform .15s var(--ease), background .2s;
}
.tb-back:active { transform: scale(.85) rotate(8deg); background: var(--surface-2); }
.tb-title { font-weight:700; font-size:16px; flex:1; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; animation: slideFadeIn .35s var(--ease); }
.tb-wallet {
  display:flex; align-items:center; gap:6px; background: var(--surface-2);
  border:1px solid var(--border); border-radius: 999px; padding:6px 12px; font-size:13px; font-weight:700;
  color: var(--gold); cursor:pointer; transition: transform .15s var(--ease-spring), background .2s;
  flex-shrink:0;
}
.tb-wallet:active { transform: scale(.92); }
.tb-coins {
  position: relative; overflow: hidden;
  display:flex; align-items:center; gap:6px;
  background: linear-gradient(135deg, rgba(240,185,62,.16), rgba(240,185,62,.05));
  border:1px solid rgba(240,185,62,.55); border-radius: 999px; padding:6px 12px; font-size:13px; font-weight:700;
  color: #ffd77a; cursor:pointer; transition: transform .15s var(--ease-spring), background .2s;
  box-shadow: 0 0 0 1px rgba(240,185,62,.12) inset, 0 0 10px rgba(240,185,62,.28);
  flex-shrink:0;
}
.tb-coins:active { transform: scale(.92); }
.tb-coins::after {
  content:''; position:absolute; top:0; left:-70%; width:35%; height:100%;
  background: linear-gradient(115deg, transparent, rgba(255,255,255,.65), transparent);
  transform: skewX(-20deg); pointer-events:none;
  animation: coinsShine 3.4s ease-in-out infinite;
}
.tb-wallet .coin { animation: coinSpin 3s linear infinite; display:inline-block; }
.tb-coins .coin { display:inline-block; animation: diamondGlint 2.6s ease-in-out infinite; filter: drop-shadow(0 0 3px rgba(255,255,255,.55)); }
@keyframes coinSpin { from{ transform: rotateY(0) } to{ transform: rotateY(360deg) } }
@keyframes diamondGlint {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.14) rotate(-8deg); }
}
@keyframes coinsShine {
  0% { left:-70%; }
  45% { left:130%; }
  100% { left:130%; }
}

/* ---------- محتوای صفحات + ترنزیشن ---------- */
#view {
  flex:1; overflow-y:auto; padding-bottom: calc(78px + var(--tg-safe-bottom));
  scroll-behavior:smooth;
}
.page { animation: pageIn .38s var(--ease) both; padding: 14px 14px 6px; }
.page.leaving { animation: pageOut .25s var(--ease) both; }
@keyframes pageIn { from{ opacity:0; transform: translateY(14px) scale(.99); } to{ opacity:1; transform:none; } }
@keyframes pageOut { from{ opacity:1; transform:none; } to{ opacity:0; transform: translateY(-10px) scale(.99); } }
@keyframes slideFadeIn { from{ opacity:0; transform: translateX(8px) } to{ opacity:1; transform:none } }
@keyframes fadeIn { from{ opacity:0 } to{ opacity:1 } }
@keyframes fadeInUp { from{ opacity:0; transform: translateY(10px) } to{ opacity:1; transform:none } }

/* ---------- استاگرِ ورود لیست‌ها ---------- */
.stagger > * { opacity:0; animation: fadeInUp .45s var(--ease) forwards; }
.stagger > *:nth-child(1){animation-delay:.02s} .stagger > *:nth-child(2){animation-delay:.06s}
.stagger > *:nth-child(3){animation-delay:.10s} .stagger > *:nth-child(4){animation-delay:.14s}
.stagger > *:nth-child(5){animation-delay:.18s} .stagger > *:nth-child(6){animation-delay:.22s}
.stagger > *:nth-child(7){animation-delay:.26s} .stagger > *:nth-child(8){animation-delay:.30s}
.stagger > *:nth-child(n+9){animation-delay:.33s}

/* ---------- جستجو ---------- */
.search-bar {
  display:flex; align-items:center; gap:8px; background: var(--surface);
  border:1px solid var(--border); border-radius: var(--radius-lg); padding:11px 16px; margin-bottom:16px;
  transition: border-color .2s, box-shadow .2s;
}
.search-bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.18); }
.search-bar input { background:none; border:none; outline:none; color:var(--text); flex:1; font-size:14px; font-family:inherit; }
.search-bar svg { flex-shrink:0; color:var(--text-dim); }

.search-suggest {
  position:absolute; top: calc(100% + 8px); left:0; right:0; z-index:40;
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius);
  box-shadow: 0 12px 30px rgba(0,0,0,.35); overflow:hidden;
  max-height:0; opacity:0; pointer-events:none; transition: max-height .22s var(--ease), opacity .18s;
}
.search-suggest.open { max-height:320px; opacity:1; pointer-events:auto; overflow-y:auto; }
.suggest-row { display:flex; align-items:center; gap:10px; padding:9px 12px; cursor:pointer; transition: background .15s; }
.suggest-row:active, .suggest-row:hover { background: var(--surface-2); }
.suggest-row img { width:30px; height:42px; border-radius:6px; object-fit:cover; background: var(--surface-2); flex-shrink:0; }
.suggest-row span { font-size:13px; font-weight:600; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

/* ---------- بخش‌ها/تیتر ---------- */
.section-title {
  font-size:15px; font-weight:800; margin: 18px 2px 12px; display:flex; align-items:center; justify-content:space-between;
  position: relative; padding-right: 12px;
}
.section-title::before {
  content:''; position:absolute; right:0; top:50%; transform:translateY(-50%);
  width:4px; height:16px; border-radius:99px;
  background: linear-gradient(180deg, var(--accent), var(--gold));
  box-shadow: 0 0 8px rgba(99,102,241,.7);
}
.section-title .more { font-size:12px; color:var(--accent); font-weight:600; }

/* ---------- کارت ژانر ---------- */
.cat-grid { display:grid; grid-template-columns: repeat(2,1fr); gap:12px; }
.cat-card {
  position:relative; aspect-ratio: 16/10; border-radius: var(--radius); overflow:hidden;
  background: var(--surface); border:1px solid var(--border); cursor:pointer;
  transition: transform .25s var(--ease-spring), box-shadow .25s, border-color .25s;
  box-shadow: 0 4px 18px rgba(0,0,0,.25);
}
.cat-card::after {
  content:''; position:absolute; inset:0; border-radius:inherit; padding:1px;
  background: linear-gradient(120deg, rgba(99,102,241,.55), transparent 35%, transparent 65%, rgba(251,191,36,.5));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity:.7; pointer-events:none;
}
.cat-card:active { transform: scale(.95); box-shadow: 0 4px 22px rgba(99,102,241,.35); }
.cat-card img { width:100%; height:100%; object-fit:cover; transition: transform .5s var(--ease), filter .4s; filter: brightness(.7); }
.cat-card:active img { transform: scale(1.08); }
.cat-card .overlay { position:absolute; inset:0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.75)); }
.cat-card .label { position:absolute; bottom:10px; right:12px; left:12px; font-weight:800; font-size:14px; display:flex; align-items:center; gap:6px; }
.cat-card .count { position:absolute; top:8px; left:8px; background:rgba(0,0,0,.5); border-radius:999px; padding:3px 9px; font-size:11px; backdrop-filter: blur(4px); }
.cat-card.skeleton { background: linear-gradient(100deg, var(--surface) 30%, var(--surface-2) 50%, var(--surface) 70%); background-size: 200% 100%; animation: shimmer 1.4s linear infinite; }
@keyframes shimmer { from{ background-position: 150% 0 } to{ background-position: -50% 0 } }

/* ---------- کارت سریال/فیلم (لیست عمودی) ---------- */
.series-row {
  display:flex; gap:12px; padding:10px; border-radius: var(--radius); background: var(--surface);
  border:1px solid var(--border); margin-bottom:10px; cursor:pointer; position:relative; overflow:hidden;
  transition: transform .2s var(--ease-spring), background .2s, box-shadow .2s;
}
.series-row::before {
  content:''; position:absolute; top:0; left:0; right:0; height:1px;
  background: linear-gradient(90deg, transparent, rgba(139,92,246,.5), transparent);
  opacity:0; transition: opacity .25s;
}
.series-row:active { transform: scale(.97); background: var(--surface-2); box-shadow: 0 6px 24px rgba(99,102,241,.18); }
.series-row:active::before { opacity:1; }
.series-row .poster { width:64px; height:88px; border-radius: var(--radius-sm); object-fit:cover; flex-shrink:0; background: var(--surface-2); transition: opacity .4s; box-shadow: 0 4px 14px rgba(0,0,0,.35); }
.series-row .poster.loading { opacity:0; }
.series-row .info { flex:1; min-width:0; display:flex; flex-direction:column; justify-content:center; gap:5px; }
.series-row .title { font-weight:700; font-size:14.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.series-row .desc { font-size:12px; color:var(--text-dim); display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; line-height:1.5; }
.series-row .meta { display:flex; align-items:center; gap:8px; font-size:11px; color:var(--text-faint); margin-top:2px; }
.progress-pill { display:flex; align-items:center; gap:5px; }
.progress-track { width:46px; height:5px; border-radius:99px; background: var(--border); overflow:hidden; }
.progress-fill { height:100%; background: var(--accent-grad); border-radius:99px; transition: width .6s var(--ease); }

/* ---------- گرید کارت‌های فشرده برای جستجو ---------- */
.grid-2 { display:grid; grid-template-columns: repeat(2,1fr); gap:12px; }
.poster-card { border-radius: var(--radius); overflow:hidden; background:var(--surface); border:1px solid var(--border); cursor:pointer; transition: transform .2s var(--ease-spring), box-shadow .2s; box-shadow: 0 4px 16px rgba(0,0,0,.3); }
.poster-card:active { transform: scale(.95); box-shadow: 0 6px 24px rgba(99,102,241,.3); }
.poster-card img { width:100%; aspect-ratio:2/3; object-fit:cover; display:block; background:var(--surface-2); }
.poster-card .pc-title { padding:8px 10px; font-size:12.5px; font-weight:700; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }

/* ---------- بنر صفحه‌ی سریال ---------- */
.series-hero { position:relative; margin:-14px -14px 14px; border-radius:0 0 var(--radius-lg) var(--radius-lg); overflow:hidden; }
.series-hero img { width:100%; aspect-ratio: 3/2; object-fit:cover; display:block; animation: heroIn .5s var(--ease); }
@keyframes heroIn { from{ opacity:0; transform: scale(1.06) } to{ opacity:1; transform:none } }
.series-hero .grad { position:absolute; inset:0; background: linear-gradient(180deg, rgba(15,17,21,0) 40%, var(--bg) 96%); }
.series-hero .hero-info { position:absolute; bottom:14px; right:16px; left:16px; }
.series-hero .hero-title { font-size:20px; font-weight:800; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.series-hero .hero-badge { display:inline-flex; align-items:center; gap:4px; background:rgba(0,0,0,.5); backdrop-filter: blur(6px); padding:4px 10px; border-radius:999px; font-size:11px; margin-bottom:8px; }
.series-desc { font-size:13px; color:var(--text-dim); line-height:1.9; margin-bottom:16px; animation: fadeInUp .4s var(--ease) .05s both; }

/* ---------- نوارابزار قسمت‌ها ---------- */
.ep-toolbar { display:flex; gap:8px; margin-bottom:14px; }
.chip {
  display:flex; align-items:center; gap:6px; padding:9px 14px; border-radius:999px; font-size:12.5px; font-weight:700;
  background: var(--surface); border:1px solid var(--border); cursor:pointer; transition: all .2s var(--ease-spring);
  flex:1; justify-content:center;
}
.chip:active { transform: scale(.94); }
.chip.active { background: var(--accent-grad); border-color: transparent; box-shadow: 0 4px 14px rgba(99,102,241,.35); }
.chip.outline { background:transparent; border:1.5px dashed var(--border); color:var(--text-dim); }

/* ---------- ردیف قسمت ---------- */
.ep-row {
  display:flex; align-items:center; gap:12px; padding:13px 14px; border-radius: var(--radius); background:var(--surface);
  border:1px solid var(--border); margin-bottom:9px; cursor:pointer; transition: transform .18s var(--ease-spring), border-color .2s, box-shadow .2s;
  position:relative; overflow:hidden;
}
.ep-row:active { transform: scale(.97); box-shadow: 0 6px 20px rgba(99,102,241,.16); }
.ep-row.owned { border-color: rgba(34,197,94,.35); box-shadow: 0 0 0 1px rgba(34,197,94,.12), 0 4px 16px rgba(34,197,94,.1); }
.ep-row .ep-num {
  width:38px; height:38px; border-radius:12px; background:var(--surface-2); display:flex; align-items:center; justify-content:center;
  font-weight:800; font-size:13px; color:var(--text-dim); flex-shrink:0;
}
.ep-row.owned .ep-num { background: rgba(34,197,94,.15); color:var(--success); }
.ep-row .ep-info { flex:1; min-width:0; }
.ep-row .ep-title { font-weight:700; font-size:13.5px; white-space:nowrap; overflow:hidden; text-overflow:ellipsis; }
.ep-row .ep-price { font-size:12px; color:var(--text-dim); margin-top:3px; display:flex; align-items:center; gap:6px; }
.ep-row .ep-price .old { text-decoration:line-through; opacity:.55; }
.ep-row .ep-price .pct { background: rgba(239,68,68,.15); color:#f87171; padding:1px 7px; border-radius:999px; font-weight:700; font-size:10.5px; }
.ep-row .ep-status { font-size:11px; flex-shrink:0; }
.ep-row .chev { color: var(--text-faint); flex-shrink:0; transition: transform .2s; }
.ep-row:active .chev { transform: translateX(-3px); }
.ep-row.owned .ep-status { color: var(--success); font-weight:700; }

/* ---------- صفحه‌بندی ---------- */
.pager { display:flex; align-items:center; justify-content:center; gap:8px; margin: 18px 0 4px; }
.pager button {
  width:38px; height:38px; border-radius:12px; background:var(--surface); border:1px solid var(--border); color:var(--text);
  display:flex; align-items:center; justify-content:center; transition: transform .15s var(--ease-spring), opacity .2s;
}
.pager button:active { transform: scale(.88); }
.pager button:disabled { opacity:.35; }
.pager .pg-info { font-size:12.5px; color:var(--text-dim); padding:0 6px; min-width:64px; text-align:center; }

/* ---------- دکمه‌ها ---------- */
.btn {
  display:flex; align-items:center; justify-content:center; gap:8px; width:100%; padding:14px 18px; border-radius: var(--radius-sm);
  font-weight:800; font-size:14.5px; border:none; cursor:pointer; position:relative; overflow:hidden;
  transition: transform .16s var(--ease-spring), box-shadow .2s, filter .2s;
}
.btn:active { transform: scale(.96); }
.btn.primary { background: var(--accent-grad); color:#fff; box-shadow: 0 8px 22px rgba(99,102,241,.35); }
.btn.primary:active { box-shadow: 0 4px 12px rgba(99,102,241,.3); }
.btn.success { background: linear-gradient(135deg,#22c55e,#16a34a); color:#fff; box-shadow: 0 8px 22px rgba(34,197,94,.3); }
.btn.ghost { background: var(--surface); color:var(--text); border:1px solid var(--border); }
.btn.danger-ghost { background: rgba(239,68,68,.1); color:#f87171; border:1px solid rgba(239,68,68,.25); }
.btn:disabled { opacity:.45; pointer-events:none; }
.btn .spinner { display:none; }
.btn.loading .btn-label { opacity:0; }
.btn.loading .spinner { display:block; position:absolute; }
.btn-row { display:flex; gap:10px; }
.btn-row .btn { flex:1; }

.ripple { position:absolute; border-radius:50%; background:rgba(255,255,255,.35); transform:scale(0); animation: rippleAnim .55s ease-out; pointer-events:none; }
@keyframes rippleAnim { to { transform:scale(2.6); opacity:0; } }

/* ---------- اسپینر ---------- */
.spinner { width:20px; height:20px; border-radius:50%; border:2.5px solid rgba(255,255,255,.3); border-top-color:#fff; animation: spin .7s linear infinite; }
.spinner.dark { border-color: rgba(0,0,0,.15); border-top-color: var(--accent); }
@keyframes spin { to { transform: rotate(360deg); } }
.center-spin { display:flex; align-items:center; justify-content:center; padding:50px 0; }

/* ---------- باتم‌شیت (مودال) ---------- */
.sheet-backdrop {
  position:fixed; inset:0; background: rgba(0,0,0,.55); backdrop-filter: blur(2px); z-index:200;
  opacity:0; pointer-events:none; transition: opacity .25s var(--ease);
}
.sheet-backdrop.open { opacity:1; pointer-events:auto; }
.sheet {
  position:fixed; right:0; left:0; bottom:0; z-index:201; max-width:520px; margin:0 auto;
  background: var(--bg-soft); border-radius: 26px 26px 0 0; padding: 18px 18px calc(20px + var(--tg-safe-bottom));
  transform: translateY(105%); transition: transform .38s var(--ease-spring);
  box-shadow: 0 -10px 40px rgba(0,0,0,.5); max-height:86vh; overflow-y:auto;
}
.sheet.open { transform: translateY(0); }
.sheet-handle { width:38px; height:4px; border-radius:99px; background: var(--border); margin: 0 auto 14px; }
.sheet-title { font-weight:800; font-size:16px; margin-bottom:14px; display:flex; align-items:center; gap:8px; }

/* ---------- اینپوت‌ها ---------- */
.field { margin-bottom:14px; }
.field label { display:block; font-size:12.5px; color:var(--text-dim); margin-bottom:7px; font-weight:600; }
.field input, .field textarea {
  width:100%; background: var(--surface); border:1.5px solid var(--border); border-radius: var(--radius-sm);
  padding:12px 14px; color:var(--text); font-size:14px; font-family:inherit; outline:none;
  transition: border-color .2s, box-shadow .2s; direction: ltr; text-align:right;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.15); }
.field-row { display:flex; gap:10px; }
.field-row .field { flex:1; }
.amount-chips { display:flex; flex-wrap:wrap; gap:8px; margin-bottom:14px; }
.amount-chip {
  padding:9px 14px; border-radius:999px; background:var(--surface); border:1.5px solid var(--border); font-size:13px; font-weight:700;
  cursor:pointer; transition: all .18s var(--ease-spring);
}
.amount-chip.active { background: var(--accent-grad); border-color:transparent; color:#fff; transform: scale(1.04); }
.amount-chip:active { transform: scale(.92); }

/* ---------- کوتیشن خرید گروهی ---------- */
.quote-box { background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:16px; margin:14px 0; animation: fadeInUp .3s var(--ease); box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.quote-row { display:flex; justify-content:space-between; font-size:13px; padding:6px 0; color:var(--text-dim); }
.quote-row.total { border-top:1px dashed var(--border); margin-top:6px; padding-top:12px; font-weight:800; color:var(--text); font-size:15px; }
.quote-row .badge-discount { background: rgba(34,197,94,.15); color:var(--success); padding:1px 8px; border-radius:999px; font-size:11px; font-weight:700; }

/* ---------- صفحه‌ی قسمت/پخش ---------- */
.player-wrap { border-radius: var(--radius); overflow:hidden; background:#000; margin-bottom:16px; animation: fadeInUp .4s var(--ease); position:relative; box-shadow: 0 8px 30px rgba(0,0,0,.5); }
.player-wrap video, .player-wrap audio { width:100%; display:block; }
.link-btn-list { display:flex; flex-direction:column; gap:9px; }
.link-btn { display:flex; align-items:center; gap:10px; padding:13px 16px; border-radius: var(--radius-sm); background:var(--surface); border:1px solid var(--border); font-weight:700; font-size:13.5px; transition: transform .18s var(--ease-spring), box-shadow .18s; }
.link-btn:active { transform: scale(.96); box-shadow: 0 4px 16px rgba(99,102,241,.2); }

.price-box { display:flex; align-items:center; justify-content:space-between; background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:16px; margin-bottom:14px; }
.price-box .big { font-size:22px; font-weight:800; }
.price-box .old { font-size:13px; color:var(--text-faint); text-decoration:line-through; }

/* ---------- ناوبری پایین ---------- */
#bottomnav {
  position:fixed; bottom:0; right:0; left:0; max-width:520px; margin:0 auto; z-index:60;
  display:flex; background: var(--bar-bg); backdrop-filter: blur(16px);
  border-top:1px solid var(--border); padding: 8px 6px calc(8px + var(--tg-safe-bottom));
  box-shadow: 0 -8px 30px rgba(0,0,0,.3);
}
#bottomnav::before {
  content:''; position:absolute; top:0; left:10%; right:10%; height:1px;
  background: linear-gradient(90deg, transparent, rgba(99,102,241,.5), rgba(251,191,36,.4), transparent);
}
.nav-item {
  flex:1; display:flex; flex-direction:column; align-items:center; gap:4px; padding:6px 0; color:var(--text-faint);
  font-size:10.5px; font-weight:700; position:relative; transition: color .25s, transform .2s var(--ease-spring);
  background:none; border:none;
}
.nav-item svg { width:22px; height:22px; transition: transform .3s var(--ease-spring); }
.nav-item.active { color: var(--accent); }
.nav-item.active svg { transform: translateY(-2px) scale(1.08); filter: drop-shadow(0 0 6px rgba(99,102,241,.7)); }
.nav-item.active::after {
  content:''; position:absolute; top:-2px; left:50%; transform:translateX(-50%);
  width:5px; height:5px; border-radius:50%; background: var(--gold);
  box-shadow: 0 0 8px 2px rgba(251,191,36,.8); animation: navDotPop .3s var(--ease-spring);
}
@keyframes navDotPop { from{ transform: translateX(-50%) scale(0); } to{ transform: translateX(-50%) scale(1); } }
.nav-item:active { transform: scale(.88); }

/* ---------- توست ---------- */
#toast-wrap { position:fixed; top: calc(10px + var(--tg-safe-top)); right:0; left:0; max-width:520px; margin:0 auto; z-index:500; display:flex; flex-direction:column; gap:8px; pointer-events:none; padding:0 14px; }
.toast {
  background: var(--surface-2); border:1px solid var(--border); border-radius: var(--radius-sm); padding:12px 16px;
  font-size:13px; display:flex; align-items:center; gap:8px; box-shadow: var(--shadow);
  transform: translateY(-30px) scale(.9); opacity:0; animation: toastIn .35s var(--ease-spring) forwards;
}
.toast.out { animation: toastOut .3s var(--ease) forwards; }
.toast.success { border-color: rgba(34,197,94,.4); }
.toast.error { border-color: rgba(239,68,68,.4); }
@keyframes toastIn { to { transform:none; opacity:1; } }
@keyframes toastOut { to { transform: translateY(-20px) scale(.92); opacity:0; } }

/* ---------- استیت‌های خالی/خطا ---------- */
.empty-state { display:flex; flex-direction:column; align-items:center; text-align:center; padding:50px 20px; color:var(--text-dim); animation: fadeInUp .4s var(--ease); }
.empty-state .emoji { font-size:46px; margin-bottom:14px; animation: floatY 3s ease-in-out infinite; }
@keyframes floatY { 0%,100%{ transform: translateY(0) } 50%{ transform: translateY(-8px) } }
.empty-state .title { font-weight:800; color:var(--text); margin-bottom:6px; font-size:15px; }
.empty-state .sub { font-size:12.5px; line-height:1.8; max-width:280px; }

/* ---------- موفقیت / کانفتی ---------- */
.success-burst { display:flex; flex-direction:column; align-items:center; padding:40px 0; }
.success-circle {
  width:88px; height:88px; border-radius:50%; background: rgba(34,197,94,.12); display:flex; align-items:center; justify-content:center;
  margin-bottom:18px; animation: successPop .5s var(--ease-spring);
}
@keyframes successPop { from{ transform:scale(0); } to{ transform:scale(1); } }
.confetti-piece { position:fixed; top:-10px; width:8px; height:14px; z-index:600; pointer-events:none; animation: confettiFall linear forwards; }
@keyframes confettiFall { to { transform: translateY(105vh) rotate(540deg); opacity:.2; } }

/* ---------- قفل تلفن/عضویت ---------- */
.gate-screen { display:flex; flex-direction:column; align-items:center; justify-content:center; min-height:80vh; text-align:center; padding:24px; animation: fadeInUp .4s var(--ease); }
.gate-screen .icon-wrap { width:84px; height:84px; border-radius:50%; background: var(--surface); display:flex; align-items:center; justify-content:center; margin-bottom:18px; animation: floatY 3.2s ease-in-out infinite; border:1px solid var(--border); }

/* ---------- پروفایل/تنظیمات ---------- */
.profile-card { display:flex; align-items:center; gap:14px; background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:16px; margin-bottom:16px; box-shadow: 0 4px 20px rgba(0,0,0,.25); }
.avatar { width:54px; height:54px; border-radius:50%; background: var(--accent-grad); display:flex; align-items:center; justify-content:center; font-weight:800; font-size:20px; flex-shrink:0; box-shadow: 0 0 0 3px rgba(99,102,241,.15), 0 4px 14px rgba(99,102,241,.4); }
.list-item { display:flex; align-items:center; gap:12px; padding:14px; background:var(--surface); border:1px solid var(--border); border-radius:var(--radius-sm); margin-bottom:9px; transition: transform .18s var(--ease-spring), box-shadow .18s; cursor:pointer; }
.list-item:active { transform: scale(.97); box-shadow: 0 4px 16px rgba(99,102,241,.15); }
.switch { width:46px; height:26px; border-radius:99px; background:var(--border); position:relative; transition: background .25s, box-shadow .25s; flex-shrink:0; }
.switch.on { background: var(--accent-grad); box-shadow: 0 0 12px rgba(99,102,241,.5); }
.switch .dot { position:absolute; top:3px; right:3px; width:20px; height:20px; border-radius:50%; background:#fff; transition: transform .25s var(--ease-spring); box-shadow: 0 2px 4px rgba(0,0,0,.3); }
.switch.on .dot { transform: translateX(-20px); }

/* ---------- بنر تخفیف گروهی ---------- */
.tier-banner { display:flex; align-items:center; gap:10px; background: linear-gradient(135deg, rgba(99,102,241,.15), rgba(139,92,246,.1)); border:1px solid rgba(99,102,241,.3); border-radius: var(--radius); padding:13px 15px; margin-bottom:14px; font-size:12.5px; }
.tier-banner .tg-icon { font-size:20px; animation: floatY 2.6s ease-in-out infinite; }

/* ---------- آپلود رسید ---------- */
.upload-box { border:1.5px dashed var(--border); border-radius: var(--radius); padding:22px; text-align:center; cursor:pointer; transition: border-color .2s, background .2s; }
.upload-box.dragover { border-color: var(--accent); background: rgba(99,102,241,.06); }
.upload-preview { width:100%; border-radius: var(--radius-sm); margin-top:12px; animation: fadeInUp .3s var(--ease); }

@media (max-width:360px) {
  .cat-grid, .grid-2 { gap:9px; }
  .page { padding:12px 12px 4px; }
}

#gate-overlay {
  position: fixed; inset:0; z-index: 8000; background: var(--bg);
  display:flex; align-items:center; justify-content:center;
  animation: fadeIn .35s var(--ease);
}
.tb-back { display:none; }

/* ---------- آیکون جستجو در هدر ---------- */
.icon-btn {
  width:36px; height:36px; border-radius:50%; display:flex; align-items:center; justify-content:center;
  background: var(--surface); border:1px solid var(--border); color:var(--text-dim); flex-shrink:0; cursor:pointer;
  transition: transform .18s var(--ease-spring), background .2s, color .2s;
}
.icon-btn:active { transform: scale(.85); background: var(--surface-2); color:var(--accent); }

/* ---------- آمار کوچک (خانه/پروفایل) ---------- */
.stat-row { display:flex; gap:10px; margin-bottom:18px; }
.stat-chip {
  flex:1; background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:14px 10px;
  text-align:center; cursor:pointer; transition: transform .18s var(--ease-spring), box-shadow .18s; animation: fadeInUp .4s var(--ease);
  box-shadow: 0 4px 16px rgba(0,0,0,.25);
}
.stat-chip:active { transform: scale(.95); box-shadow: 0 6px 22px rgba(99,102,241,.25); }
.stat-num { font-weight:800; font-size:15px; margin-bottom:4px; }
.stat-label { font-size:10.5px; color:var(--text-dim); }

/* ---------- عکس پروفایل واقعی ---------- */
.avatar-img { width:54px; height:54px; border-radius:50%; object-fit:cover; flex-shrink:0; border:2px solid var(--accent); box-shadow: 0 0 0 3px rgba(99,102,241,.15), 0 4px 14px rgba(99,102,241,.4); }

/* ---------- پنل ادمین: کارت‌های آماری ---------- */
.admin-grid { display:grid; grid-template-columns:repeat(2,1fr); gap:10px; margin-bottom:16px; }
.admin-stat {
  background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:14px;
  animation: fadeInUp .4s var(--ease);
}
.admin-stat .as-val { font-size:17px; font-weight:800; }
.admin-stat .as-label { font-size:11px; color:var(--text-dim); margin-top:4px; }
.admin-stat .as-sub { font-size:10px; color:var(--success); margin-top:3px; }

.chart-box { background: var(--surface); border:1px solid var(--border); border-radius: var(--radius); padding:14px 10px 6px; margin-bottom:16px; }
.chart-box canvas { width:100%; display:block; }

.admin-menu-list { display:flex; flex-direction:column; gap:9px; margin-bottom:10px; }
.badge-count {
  background: var(--danger); color:#fff; font-size:10.5px; font-weight:800; border-radius:999px;
  padding:2px 8px; margin-left:6px; flex-shrink:0;
}

/* =====================================================
   موبایل‌فرندلی — رفع مشکل overflow و text-overlap
   ===================================================== */

* { min-width: 0; }

/* stat chips */
.stat-row { flex-wrap: wrap; }
.stat-chip { flex: 1 1 calc(50% - 5px); }
.stat-num { font-size: clamp(11px, 3.5vw, 15px); word-break: break-word; white-space: normal; line-height: 1.3; }

/* admin stat cards */
.admin-stat .as-val { font-size: clamp(11px, 3.5vw, 17px); word-break: break-word; white-space: normal; line-height: 1.3; }

/* series row */
.series-row .info { min-width: 0; overflow: hidden; }
.series-row .title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.series-row .meta { flex-wrap: wrap; gap: 4px; }

/* episode row */
.ep-row .ep-info { min-width: 0; overflow: hidden; }
.ep-row .ep-title { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ep-row .ep-price { flex-wrap: wrap; gap: 4px; font-size: 11px; }

/* price box */
.price-box { flex-wrap: wrap; gap: 10px; }
.price-box .big { font-size: clamp(16px, 5vw, 22px); }

/* quote box */
.quote-row { flex-wrap: wrap; gap: 4px; font-size: 12.5px; }
.quote-row.total { font-size: clamp(13px, 4vw, 15px); }

/* fields side by side */
.field-row { flex-wrap: wrap; }
.field-row .field { flex: 1 1 calc(50% - 5px); min-width: 120px; }

/* hero title */
.series-hero .hero-title { font-size: clamp(14px, 5vw, 20px); }

/* profile card text */
.profile-card > div:not(.avatar):not(.avatar-img) { min-width: 0; overflow: hidden; }
.profile-card > div:not(.avatar):not(.avatar-img) > div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* list item text */
.list-item { flex-wrap: nowrap; overflow: hidden; }
.list-item > div { min-width: 0; }

/* buttons side by side */
.btn-row .btn { flex: 1 1 calc(50% - 5px); min-width: 100px; font-size: 12.5px; padding: 12px 8px; }

/* amount chips */
.amount-chip { font-size: 12px; padding: 8px 10px; }

/* episode toolbar */
.ep-toolbar .chip { font-size: 11.5px; padding: 8px 10px; }

/* topbar */
.tb-title { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tb-wallet, .tb-coins { padding: 5px 9px; font-size: 11.5px; flex-shrink: 0; }

/* bottom nav */
.nav-item { font-size: 9.5px; }
.nav-item svg { width: 20px; height: 20px; }

/* sheet max height */
.sheet { max-height: 92vh; }

/* progress track */
.progress-track { width: 36px; }

/* chart */
.chart-box { padding: 10px 6px 4px; }

/* very small screens < 360px */
@media (max-width: 359px) {
  .field-row { flex-direction: column; }
  .btn-row { flex-direction: column; }
  .btn-row .btn { min-width: 100%; }
  .ep-toolbar { flex-wrap: wrap; }
  .stat-chip { flex: 1 1 100%; }
  .amount-chips { gap: 5px; }
  .amount-chip { font-size: 11px; padding: 7px 8px; }
}

/* =====================================================
   کارت شیشه‌ای (Glassmorphism) — دسته‌بندی با والپیپر
   ===================================================== */

.series-row--glass {
  background: rgba(255,255,255,.07);
  backdrop-filter: blur(14px) saturate(1.8);
  -webkit-backdrop-filter: blur(14px) saturate(1.8);
  border: 1px solid rgba(255,255,255,.14);
  box-shadow:
    0 4px 24px rgba(0,0,0,.35),
    inset 0 1px 0 rgba(255,255,255,.12);
  transition: transform .2s var(--ease-spring), box-shadow .2s, background .2s;
}
.series-row--glass:active {
  transform: scale(.97);
  background: rgba(255,255,255,.12);
  box-shadow:
    0 8px 32px rgba(99,102,241,.3),
    inset 0 1px 0 rgba(255,255,255,.2);
}
.series-row--glass .title { color: #fff; text-shadow: 0 1px 8px rgba(0,0,0,.5); }
.series-row--glass .desc  { color: rgba(255,255,255,.6); }
.series-row--glass .meta  { color: rgba(255,255,255,.45); }
.series-row--glass .chev  { color: rgba(255,255,255,.4); }
.series-row--glass .progress-fill { background: linear-gradient(90deg,#a5b4fc,#c4b5fd); }
.series-row--glass .progress-track { background: rgba(255,255,255,.15); }

/* =====================================================
   دکمه‌ی خرید نئونی (اعمال در صفحه‌ی قسمت)
   ===================================================== */
.btn.primary {
  position: relative;
  background: linear-gradient(135deg, #6366f1 0%, #8b5cf6 50%, #a78bfa 100%);
  box-shadow:
    0 0 0 1px rgba(139,92,246,.5),
    0 4px 16px rgba(99,102,241,.4),
    0 8px 32px rgba(139,92,246,.25),
    inset 0 1px 0 rgba(255,255,255,.2);
  overflow: hidden;
}
.btn.primary::before {
  content: '';
  position: absolute;
  top: -50%; left: -50%;
  width: 200%; height: 200%;
  background: conic-gradient(
    transparent 0deg,
    rgba(255,255,255,.06) 60deg,
    transparent 120deg
  );
  animation: neonRotate 4s linear infinite;
  pointer-events: none;
}
.btn.primary:active {
  transform: scale(.96);
  box-shadow:
    0 0 0 1px rgba(139,92,246,.7),
    0 2px 8px rgba(99,102,241,.5),
    0 0 20px rgba(139,92,246,.4),
    inset 0 1px 0 rgba(255,255,255,.15);
}
@keyframes neonRotate { to { transform: rotate(360deg); } }

/* درخشش خاص دکمه‌ی خرید قبل از tap */
.btn.primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,.1) 0%, transparent 60%);
  pointer-events: none;
  border-radius: inherit;
}

/* دکمه‌ی موفقیت (پس از خرید) */
.btn.success {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  box-shadow:
    0 0 0 1px rgba(34,197,94,.4),
    0 4px 16px rgba(34,197,94,.35),
    0 8px 32px rgba(22,163,74,.2),
    inset 0 1px 0 rgba(255,255,255,.2);
}
.btn.success:active {
  box-shadow:
    0 0 0 1px rgba(34,197,94,.6),
    0 0 20px rgba(34,197,94,.4);
}

/* =====================================================
   کارت قیمت نئونی (صفحه‌ی قسمت)
   ===================================================== */
.price-box {
  background: linear-gradient(135deg,
    rgba(99,102,241,.12) 0%,
    rgba(139,92,246,.08) 100%);
  border: 1px solid rgba(99,102,241,.3);
  box-shadow:
    0 0 0 1px rgba(99,102,241,.1),
    0 4px 24px rgba(99,102,241,.12),
    inset 0 1px 0 rgba(255,255,255,.06);
  position: relative;
  overflow: hidden;
}
.price-box::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(139,92,246,.6), transparent);
}

/* =====================================================
   سرتیتر صفحه‌ی دسته‌بندی
   ===================================================== */
.cat-page-header {
  animation: fadeInUp .4s var(--ease);
}