/* ================================================================
   کارنیلا — استایل‌های خلاقانه صفحه اول (کهکشان ۲)
   هیرو زنده · تیکر تراکنش‌ها · اودومتر · صحنه تاکسی شبانه ·
   بازنشستگی پوز · کهکشان امکانات تعاملی
   ================================================================ */

html { scroll-behavior: smooth; }

/* ================= ۰) هیرو جدید ================= */
.hero-gx {
  position: relative;
  min-height: calc(100svh - 74px);
  display: flex;
  align-items: center;
  padding: 56px 0 96px;
  overflow: hidden;
}
#heroCanvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
}
.hero-gx .container { position: relative; z-index: 2; }
.hero-gx .hero-grid { width: 100%; }

.grad-anim {
  background: linear-gradient(100deg, #A29BFE 0%, #6FE7C8 30%, #FDCB6E 55%, #A29BFE 80%);
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: gradFlow 6s linear infinite alternate;
}
@keyframes gradFlow { from { background-position: 0% 0; } to { background-position: 100% 0; } }

/* --- چرخاننده کلمات --- */
.h-rotline {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 18px;
  font-size: 1.06rem;
  color: var(--muted);
  font-weight: 600;
}
.h-rot-box {
  display: inline-block;
  min-width: 128px;
  text-align: center;
  padding: 6px 18px;
  border-radius: 999px;
  border: 1px solid rgba(162, 155, 254, 0.35);
  background: linear-gradient(140deg, rgba(108, 92, 231, 0.22), rgba(0, 184, 148, 0.12));
  box-shadow: 0 10px 26px -12px rgba(108, 92, 231, 0.6);
  overflow: hidden;
  height: 2.35em;
}
.h-rot {
  display: block;
  color: var(--text);
  font-weight: 800;
  font-size: 1.02rem;
  line-height: 2.1em;
  transition: transform 0.45s cubic-bezier(0.22, 0.7, 0.3, 1), opacity 0.35s ease;
}
.h-rot.swap { transform: translateY(-110%); opacity: 0; }
.h-rot.swap-in { transform: translateY(110%); opacity: 0; transition: none; }

/* --- نوار اعتماد جمع‌وجور --- */
.trust-mini {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  font-size: 0.82rem;
  color: var(--faint);
}
.trust-mini span { display: inline-flex; align-items: center; gap: 7px; }
.trust-mini svg { width: 14px; height: 14px; color: var(--accent-light); flex-shrink: 0; }

/* ================= گوشی زنده هیرو ================= */
.hero-visual { perspective: 1100px; }

.h-phone {
  position: relative;
  width: min(272px, 74vw);
  aspect-ratio: 9 / 19;
  border-radius: 44px;
  background: linear-gradient(160deg, #2A2350, #17122E 40%, #100C22);
  border: 1px solid rgba(162, 155, 254, 0.28);
  box-shadow:
    0 40px 90px -30px rgba(108, 92, 231, 0.55),
    0 0 0 8px rgba(13, 11, 20, 0.85),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
  transform-style: preserve-3d;
  transition: transform 0.35s ease-out;
  animation: phoneFloat 7s ease-in-out infinite alternate;
}
@keyframes phoneFloat {
  from { translate: 0 -8px; }
  to { translate: 0 10px; }
}
.h-cam {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 13px; height: 13px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #3A3466, #0B0920 70%);
  box-shadow: inset 0 0 0 2px #060410, 0 0 0 2px rgba(255,255,255,0.05);
  z-index: 6;
}
.h-screen {
  position: absolute;
  inset: 9px;
  border-radius: 36px;
  background: linear-gradient(165deg, #191438 0%, #100D24 55%, #0D0A1E 100%);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.h-status {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 26px 20px 6px;
  font-size: 0.66rem;
  color: var(--faint);
  letter-spacing: 0.4px;
}
.h-app { flex: 1; display: flex; flex-direction: column; gap: 13px; padding: 16px 16px 12px; }

.h-merchant {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
}
.h-avatar {
  width: 42px; height: 42px;
  border-radius: 14px;
  display: grid; place-items: center;
  font-size: 21px;
  background: linear-gradient(140deg, #6C5CE7, #4834B8);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.25), 0 8px 18px -8px rgba(108,92,231,0.7);
  flex-shrink: 0;
}
.h-merchant small { display: block; color: var(--faint); font-size: 0.66rem; }
.h-merchant strong { font-size: 0.86rem; }

.h-amount-box {
  border-radius: 20px;
  border: 1px dashed rgba(162, 155, 254, 0.3);
  background: rgba(108, 92, 231, 0.07);
  padding: 16px 16px 14px;
  text-align: center;
}
.h-amount-box > small { color: var(--faint); font-size: 0.7rem; display: block; margin-bottom: 8px; }
.h-amount {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  direction: ltr;
  font-size: 2.05rem;
  font-weight: 800;
  min-height: 1.35em;
  color: var(--text);
  font-variant-numeric: tabular-nums;
}
.h-amount .unit { font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-left: 6px; }
.h-caret {
  width: 3px; height: 1.1em;
  border-radius: 3px;
  background: var(--accent-light);
  animation: caretBlink 0.85s steps(1) infinite;
}
@keyframes caretBlink { 50% { opacity: 0; } }

.h-pay {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 52px;
  border-radius: 16px;
  font-weight: 800;
  font-size: 0.98rem;
  color: #fff;
  background: linear-gradient(140deg, #8B7BF7, #6C5CE7 55%, #5A48D6);
  box-shadow: 0 16px 34px -14px rgba(108, 92, 231, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  opacity: 0.45;
  transition: opacity 0.3s ease, transform 0.15s ease;
}
.h-pay svg { width: 18px; height: 18px; }
.h-pay.ready { opacity: 1; animation: payPulse 1.4s ease-in-out infinite; }
.h-pay.pressed { transform: scale(0.96); animation: none; }
.h-pay.paid { opacity: 1; animation: none; background: linear-gradient(140deg, #00B894, #009E7E); }
@keyframes payPulse {
  0%, 100% { box-shadow: 0 16px 34px -14px rgba(108, 92, 231, 0.85), 0 0 0 0 rgba(139, 123, 247, 0.5); }
  50% { box-shadow: 0 16px 34px -14px rgba(108, 92, 231, 0.95), 0 0 0 12px rgba(139, 123, 247, 0); }
}

.h-done {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(0, 184, 148, 0.1);
  border: 1px solid rgba(111, 231, 200, 0.3);
  min-height: 72px;
  visibility: hidden;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease;
}
.h-done.show { visibility: visible; opacity: 1; transform: none; }
.h-check { width: 40px; height: 40px; flex-shrink: 0; }
.h-check circle { stroke: var(--accent-light); stroke-width: 1.6; fill: none; opacity: 0.4; }
.h-check path {
  stroke: var(--accent-light); stroke-width: 2.2; fill: none;
  stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 26; stroke-dashoffset: 26;
  transition: stroke-dashoffset 0.55s ease 0.1s;
}
.h-done.show .h-check path { stroke-dashoffset: 0; }
.h-done strong { display: block; font-size: 0.9rem; }
.h-done small { color: var(--muted); font-size: 0.72rem; }

.h-spark {
  position: absolute;
  width: 6px; height: 6px;
  border-radius: 50%;
  pointer-events: none;
  animation: sparkFly 0.65s ease-out forwards;
}
@keyframes sparkFly {
  from { transform: translate(0, 0) scale(1); opacity: 1; }
  to { transform: translate(var(--dx), var(--dy)) scale(0.2); opacity: 0; }
}

/* اعلان بالای گوشی */
.h-notif {
  position: absolute;
  top: 38px; left: 12px; right: 12px;
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 13px;
  border-radius: 16px;
  background: rgba(24, 20, 46, 0.96);
  border: 1px solid rgba(162, 155, 254, 0.3);
  box-shadow: 0 22px 44px -16px rgba(0, 0, 0, 0.7);
  transform: translateY(-130%);
  transition: transform 0.55s cubic-bezier(0.34, 1.45, 0.5, 1);
}
.h-notif.in { transform: translateY(0); }
.hn-icon {
  width: 34px; height: 34px;
  border-radius: 11px;
  display: grid; place-items: center;
  font-size: 16px;
  background: linear-gradient(140deg, #6C5CE7, #4834B8);
  flex-shrink: 0;
}
.h-notif strong { display: block; font-size: 0.78rem; }
.h-notif small { color: var(--faint); font-size: 0.64rem; }
.hn-wave { margin-inline-start: auto; font-size: 14px; color: var(--accent-light); }

/* حباب صوتی گوشی راننده (بیرون گوشی) */
.h-voice-pop {
  position: absolute;
  bottom: -66px;
  right: -14px;
  width: 252px;
  padding: 12px 14px;
  border-radius: 18px;
  background: rgba(20, 16, 38, 0.94);
  border: 1px solid rgba(111, 231, 200, 0.3);
  box-shadow: 0 24px 50px -18px rgba(0, 184, 148, 0.4);
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.4s ease, transform 0.45s cubic-bezier(0.34, 1.45, 0.5, 1);
  z-index: 8;
}
.h-voice-pop::before {
  content: "";
  position: absolute;
  top: -7px; right: 34px;
  width: 14px; height: 14px;
  transform: rotate(45deg);
  background: rgba(20, 16, 38, 0.94);
  border-left: 1px solid rgba(111, 231, 200, 0.3);
  border-top: 1px solid rgba(111, 231, 200, 0.3);
}
.h-voice-pop.in { opacity: 1; transform: translateY(0); }
.hvp-head {
  display: flex; align-items: center; gap: 6px;
  font-size: 0.68rem; color: var(--accent-light);
  font-weight: 700; margin-bottom: 8px;
}
.hvp-body { display: flex; align-items: center; gap: 10px; }
.hvp-text { font-size: 0.78rem; font-weight: 600; min-height: 1.4em; }

/* موج صوتی مشترک */
.wavebars { display: inline-flex; align-items: flex-end; gap: 3px; height: 20px; flex-shrink: 0; }
.wavebars i {
  width: 3.5px; height: 100%;
  border-radius: 4px;
  background: linear-gradient(var(--accent-light), var(--accent));
  transform: scaleY(0.3);
  transform-origin: bottom;
  animation: waveBar 0.7s ease-in-out calc(var(--wd) * 1s) infinite alternate;
  animation-play-state: paused;
}
.speaking .wavebars i, .wavebars.live i { animation-play-state: running; }
@keyframes waveBar { from { transform: scaleY(0.25); } to { transform: scaleY(1); } }

/* چیپ‌های شناور دور گوشی */
.h-chip {
  position: absolute;
  z-index: 9;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 9px 15px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  white-space: nowrap;
  background: rgba(19, 16, 34, 0.85);
  border: 1px solid rgba(162, 155, 254, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 14px 30px -14px rgba(0, 0, 0, 0.6);
  animation: chipBob 4.5s ease-in-out infinite alternate;
  transition: translate 0.25s ease-out;
}
.h-chip-1 { top: 9%; right: -7%; animation-delay: 0.2s; }
.h-chip-2 { bottom: 24%; left: -13%; animation-delay: 1.1s; }
.h-chip-3 { bottom: -2%; right: 6%; animation-delay: 2s; }
@keyframes chipBob { from { transform: translateY(-6px); } to { transform: translateY(7px); } }

/* نشان اسکرول */
.scroll-cue {
  position: absolute;
  bottom: 26px; left: 50%;
  transform: translateX(-50%);
  z-index: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  color: var(--faint);
  font-size: 0.72rem;
  letter-spacing: 2px;
}
.scroll-cue span {
  width: 24px; height: 38px;
  border-radius: 14px;
  border: 1.5px solid rgba(162, 155, 254, 0.4);
  position: relative;
}
.scroll-cue span::before {
  content: "";
  position: absolute;
  top: 7px; left: 50%;
  width: 4px; height: 8px;
  margin-left: -2px;
  border-radius: 4px;
  background: var(--primary-light);
  animation: cueDrop 1.6s ease-in-out infinite;
}
@keyframes cueDrop {
  0% { transform: translateY(0); opacity: 1; }
  70% { transform: translateY(12px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

/* ================= ۱) تیکر زنده ================= */
.ticker-sec {
  position: relative;
  z-index: 2;
  border-block: 1px solid var(--border);
  background: rgba(19, 16, 34, 0.6);
  padding: 13px 0;
  overflow: hidden;
}
.ticker-inner {
  width: min(1180px, 92%);
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 22px;
}
.ticker-label {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--accent-light);
  white-space: nowrap;
}
.gx-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
  position: relative;
  flex-shrink: 0;
}
.gx-dot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--accent);
  animation: dotPulse 1.6s ease-out infinite;
}
@keyframes dotPulse { to { transform: scale(2.6); opacity: 0; } }

.ticker-wrap {
  flex: 1;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.ticker-track {
  display: flex;
  gap: 12px;
  width: max-content;
  animation: tickerRoll 42s linear infinite;
}
.ticker-wrap:hover .ticker-track { animation-play-state: paused; }
@keyframes tickerRoll { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.tk {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 15px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.035);
  font-size: 0.82rem;
  white-space: nowrap;
  color: var(--muted);
}
.tk i { font-style: normal; font-size: 0.95rem; }
.tk b { color: var(--accent-light); font-weight: 700; }
.tk small { color: var(--faint); font-size: 0.7rem; }

/* ================= ۲) شمارنده‌های اودومتر ================= */
.gx-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 22px;
}
.gx-card {
  padding: 28px 22px;
  border-radius: var(--radius);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.gx-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, transparent, var(--primary-light), var(--accent-light), transparent);
  opacity: 0.7;
}
.gx-icon {
  display: inline-grid;
  place-items: center;
  width: 56px; height: 56px;
  border-radius: 18px;
  font-size: 26px;
  background: linear-gradient(150deg, rgba(108, 92, 231, 0.25), rgba(0, 184, 148, 0.14));
  border: 1px solid rgba(162, 155, 254, 0.25);
  margin-bottom: 16px;
}
.gx-card small { display: block; color: var(--muted); margin-top: 10px; font-size: 0.92rem; }

.odo {
  direction: ltr;
  display: inline-flex;
  align-items: center;
  font-size: clamp(1.9rem, 3.4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
  color: var(--text);
}
.odo-reel {
  display: inline-block;
  width: 0.64em;
  height: 1.2em;
  overflow: hidden;
  text-align: center;
}
.odo-strip { display: flex; flex-direction: column; }
.odo-strip b {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 1.2em;
  font-weight: 800;
}
.odo-sep { display: inline-block; width: 0.36em; text-align: center; }
.odo-plus { color: var(--accent-light); margin-left: 4px; font-size: 0.75em; font-weight: 800; }

/* پنل تسویه */
.gx-settle {
  border-radius: var(--radius);
  padding: 26px 28px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  position: relative;
  overflow: hidden;
}
.gx-settle::after {
  content: "";
  position: absolute;
  left: -70px; bottom: -110px;
  width: 300px; height: 300px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(108, 92, 231, 0.22), transparent 65%);
  pointer-events: none;
}
.gx-settle-head { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 14px; grid-column: 1 / -1; }
.gx-settle-head small { color: var(--faint); font-size: 0.82rem; display: block; }
.gx-settle-title { font-size: 1.05rem; font-weight: 700; }
.gx-live-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--accent-light);
  border: 1px solid rgba(111, 231, 200, 0.3);
  background: rgba(0, 184, 148, 0.1);
  white-space: nowrap;
}
.gx-live-chip.idle { color: var(--faint); border-color: var(--border); background: rgba(255,255,255,0.03); }
.gx-live-chip.idle .gx-dot, .gx-live-chip.idle .gx-dot::after { background: var(--faint); animation: none; }

.gx-tabs { display: inline-flex; gap: 6px; padding: 5px; border-radius: 14px; background: rgba(255, 255, 255, 0.045); border: 1px solid var(--border); margin-bottom: 16px; }
.gx-tab {
  border: 0;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 0.86rem;
  font-weight: 700;
  padding: 8px 20px;
  border-radius: 10px;
  cursor: pointer;
  min-height: 40px;
  transition: background 0.25s ease, color 0.25s ease;
}
.gx-tab:hover { color: var(--text); }
.gx-tab[aria-selected="true"] {
  color: #fff;
  background: linear-gradient(140deg, #6C5CE7, #5A48D6);
  box-shadow: 0 8px 20px -8px rgba(108, 92, 231, 0.8);
}

.gx-settle-num {
  display: flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  position: relative;
}
#settleNum {
  font-size: clamp(1.7rem, 3.2vw, 2.45rem);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  transition: color 0.3s ease;
}
#settleNum.tick { color: var(--accent-light); }
.gx-settle-num > small { color: var(--muted); font-size: 0.95rem; font-weight: 600; }
.gx-delta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--accent-light);
  background: rgba(0, 184, 148, 0.12);
  border: 1px solid rgba(111, 231, 200, 0.25);
  padding: 4px 12px;
  border-radius: 999px;
}
.gx-float-plus {
  position: absolute;
  top: -8px;
  right: 0;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--accent-light);
  pointer-events: none;
  animation: floatPlus 1.6s ease-out forwards;
}
@keyframes floatPlus {
  from { transform: translateY(0); opacity: 1; }
  to { transform: translateY(-26px); opacity: 0; }
}

.spark-wrap {
  position: relative;
  height: 132px;
  min-width: min(360px, 100%);
  border-radius: 16px;
  border: 1px solid var(--border);
  background: rgba(13, 11, 20, 0.5);
  padding: 12px 14px;
}
#spark { width: 100%; height: 100%; display: block; }
.gx-settle-note { grid-column: 1 / -1; color: var(--faint); font-size: 0.76rem; margin-top: -6px; }

/* ================= ۳) داستان: یک روز با کارنیلا ================= */
.st-player { --stg: cubic-bezier(0.34, 1.45, 0.5, 1); }

.st-stage {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  border: 1px solid rgba(162, 155, 254, 0.18);
  background: #0B0920;
  box-shadow: 0 40px 90px -40px rgba(108, 92, 231, 0.4);
}
.st-scene { display: none; }
.st-scene.active { display: block; animation: stSceneIn 0.55s ease both; }
@keyframes stSceneIn { from { opacity: 0; transform: scale(1.015); } to { opacity: 1; transform: none; } }
.st-scene svg { display: block; width: 100%; height: auto; }
.st-scene text { font-family: inherit; }

/* نوار پیشرفت (مثل استوری‌ها) */
.st-segs { position: absolute; top: 14px; right: 14px; left: 14px; display: flex; gap: 8px; z-index: 12; }
.st-seg { flex: 1; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.18); overflow: hidden; }
.st-seg i { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, #A29BFE, #6FE7C8); transform: scaleX(0); transform-origin: right; }

/* دکمه‌های کنترل */
.st-ctl { position: absolute; bottom: 14px; left: 14px; display: flex; gap: 10px; z-index: 12; }
.st-btn {
  width: 42px; height: 42px;
  border-radius: 14px;
  border: 1px solid rgba(162, 155, 254, 0.35);
  background: rgba(13, 11, 32, 0.72);
  color: #F5F3FF;
  display: grid; place-items: center;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.25s ease;
}
.st-btn svg { width: 20px; height: 20px; }
.st-btn:hover { border-color: rgba(162, 155, 254, 0.6); transform: translateY(-2px); }
.st-btn.on { border-color: rgba(111, 231, 200, 0.6); color: #6FE7C8; background: rgba(0, 184, 148, 0.16); }
#stPlay .ic-play { display: none; }
.st-player.paused #stPlay .ic-play { display: block; }
.st-player.paused #stPlay .ic-pause { display: none; }
#stSound .sw1, #stSound .sw2 { opacity: 0.25; transition: opacity 0.3s ease; }
#stSound.on .sw1, #stSound.on .sw2 { opacity: 1; animation: stSw 1s ease-in-out infinite alternate; }
@keyframes stSw { to { opacity: 0.4; } }

/* واترمارک */
.st-watermark {
  position: absolute; bottom: 16px; right: 18px; z-index: 12;
  display: flex; align-items: center; gap: 7px;
  font-size: 0.8rem; font-weight: 800; color: rgba(245, 243, 255, 0.65);
  pointer-events: none;
}
.st-watermark svg { width: 18px; height: 18px; color: #A29BFE; }

/* زیرنویس همزمان صحنه */
.st-caption {
  display: flex; align-items: center; gap: 14px;
  margin-top: 16px; padding: 15px 18px;
  border-radius: 18px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
}
.st-chip {
  flex-shrink: 0;
  padding: 8px 15px;
  border-radius: 999px;
  font-size: 0.8rem; font-weight: 800;
  color: #EDEAFF;
  background: rgba(108, 92, 231, 0.18);
  border: 1px solid rgba(162, 155, 254, 0.35);
  white-space: nowrap;
}
#stCaption { font-size: 0.95rem; color: var(--text); min-height: 1.65em; font-weight: 600; }
#stCaption.pop { animation: stCapPop 0.5s ease both; }
@keyframes stCapPop { from { opacity: 0; transform: translateY(7px); } to { opacity: 1; transform: none; } }

/* تب صحنه‌ها */
.st-tabs { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin-top: 14px; }
.st-tab {
  display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 8px;
  border-radius: 14px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  color: var(--muted);
  font: inherit; font-size: 0.85rem; font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
}
.st-tab b {
  width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center;
  font-size: 0.7rem;
  background: rgba(255, 255, 255, 0.08);
  flex-shrink: 0;
}
.st-tab:hover { color: var(--text); border-color: rgba(162, 155, 254, 0.4); transform: translateY(-2px); }
.st-tab.on { color: #fff; border-color: rgba(111, 231, 200, 0.5); background: rgba(0, 184, 148, 0.13); }
.st-tab.on b { background: var(--accent); color: #fff; }

/* توقف کامل انیمیشن‌ها هنگام pause */
.st-player.paused .st-scene.active,
.st-player.paused .st-scene.active * { animation-play-state: paused !important; }

/* حرکت کاهش‌یافته: همه‌چیز به حالت نهایی می‌رود */
.st-player.reduced .st-scene,
.st-player.reduced .st-scene * {
  animation-duration: 0.01s !important;
  animation-delay: 0s !important;
  animation-iteration-count: 1 !important;
}

/* ---------- صحنه ۱: خیابان — شروع شیفت ---------- */
.st-scene .s0-far { animation: s0Far 42s linear infinite; }
@keyframes s0Far { to { transform: translateX(-960px); } }
.st-scene .s0-near { animation: s0Near 17s linear infinite; }
@keyframes s0Near { to { transform: translateX(-960px); } }
.st-scene .s0-tw { animation: s0Twinkle 2.6s ease-in-out infinite; }
@keyframes s0Twinkle { 0%, 100% { opacity: 0.35; } 50% { opacity: 1; } }
.st-scene .s0-dash { animation: s0Dash 0.72s linear infinite; }
@keyframes s0Dash { to { stroke-dashoffset: 90; } }
.st-scene .s0-wheel { transform-box: fill-box; transform-origin: center; animation: s0Wheel 0.72s linear infinite; }
@keyframes s0Wheel { to { transform: rotate(360deg); } }
.st-scene .s0-car { animation: s0Car 2.2s ease-in-out infinite alternate; }
@keyframes s0Car { from { transform: translateY(0); } to { transform: translateY(2.5px); } }
.s0-streak { opacity: 0; }
.st-scene .s0-streak { animation: s0Streak 1.15s ease-out infinite; }
@keyframes s0Streak { 0% { opacity: 0; transform: translateX(36px); } 25% { opacity: 0.85; } 100% { opacity: 0; transform: translateX(-80px); } }
.s0-badge { opacity: 0; }
.st-scene.active .s0-badge { animation: stPop 0.6s var(--stg) 0.9s both; }

/* ---------- صحنه ۲: داخل تاکسی (برش جانبی) ---------- */
.st-scene .s1-city { animation: s1City 22s linear infinite; }
@keyframes s1City { to { transform: translateX(-960px); } }
.st-scene .s1-bob { animation: s1Bob 3s ease-in-out infinite alternate; }
@keyframes s1Bob { from { transform: translateY(0); } to { transform: translateY(3px); } }

/* خم‌شدن مسافر به جلو و بالا آمدن گوشی */
.s1-arm { transform-box: fill-box; transform-origin: 2% 100%; }
.st-scene.active .s1-arm { animation: s1ArmUp 1.1s cubic-bezier(0.34, 1.4, 0.5, 1) 0.5s both; }
@keyframes s1ArmUp { from { transform: translate(30px, 58px) rotate(-16deg); } to { transform: none; } }

/* تکان آرام مسافر آزاد */
.s1-idle { transform-box: fill-box; transform-origin: 50% 100%; }
.st-scene.active .s1-idle { animation: s1IdleSway 4.2s ease-in-out infinite alternate; }
@keyframes s1IdleSway { from { transform: rotate(-1deg); } to { transform: rotate(1.2deg); } }

/* باریکه اسکن */
.s1-beam { opacity: 0; }
.st-scene.active .s1-beam { animation: s1BeamSeq 4.6s ease 1.6s both; }
@keyframes s1BeamSeq { 0% { opacity: 0; } 12% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; } }
@keyframes stFadeIn { to { opacity: 1; } }
@keyframes stFadeOut { to { opacity: 0; } }

/* خط اسکن روی بارکد و داخل گوشی */
.s1-scanline { opacity: 0; }
.st-scene.active .s1-scanline { animation: s1Scan 1.15s ease-in-out 1.7s 3 both; }
@keyframes s1Scan { 0% { opacity: 0.95; transform: translateY(0); } 50% { transform: translateY(32px); } 100% { opacity: 0.95; transform: translateY(0); } }
.s1-pline { animation: s1Pline 1.15s ease-in-out 1.7s 3 both; }
@keyframes s1Pline { 0% { transform: translateY(0); } 50% { transform: translateY(15px); } 100% { transform: translateY(0); } }

.s1-qr-glow { opacity: 0; transform-box: fill-box; transform-origin: center; }
.st-scene.active .s1-qr-glow { animation: s1GlowPulse 1.4s ease-in-out 1.7s infinite; }
@keyframes s1GlowPulse { 0%, 100% { opacity: 0.35; transform: scale(0.92); } 50% { opacity: 1; transform: scale(1.06); } }

/* حالت‌های صفحه گوشی مسافر: اسکن ← مبلغ ← موفق */
.s1-pp-amount, .s1-pp-ok { opacity: 0; }
.st-scene.active .s1-pp-scan { animation: stFadeOut 0.35s ease 3.1s both; }
.st-scene.active .s1-pp-amount { animation: stFadeIn 0.35s ease 3.1s both, stFadeOut 0.35s ease 4.8s both; }
.st-scene.active .s1-pp-ok { animation: stFadeIn 0.35s ease 4.8s both; }

/* فشردن دکمه پرداخت */
.s1-paybtn { transform-box: fill-box; transform-origin: center; }
.st-scene.active .s1-paybtn { animation: s1PayPress 0.55s ease-in-out 4.2s 2; }
@keyframes s1PayPress { 50% { transform: scale(1.12); } }

/* جرقه‌های موفقیت */
.s1-sp1, .s1-sp2, .s1-sp3 { opacity: 0; transform-box: fill-box; transform-origin: center; }
.st-scene.active .s1-sp1 { animation: s1Spark 0.8s ease-out 4.9s both; }
.st-scene.active .s1-sp2 { animation: s1Spark 0.8s ease-out 5.1s both; }
.st-scene.active .s1-sp3 { animation: s1Spark 0.8s ease-out 5.3s both; }
@keyframes s1Spark { 0% { opacity: 0; transform: scale(0.4); } 35% { opacity: 1; } 100% { opacity: 0; transform: scale(1.3); } }

/* روشن شدن گوشی راننده و تاکسیمتر */
.s1-dp-on { opacity: 0; }
.s1-meter { opacity: 0; }
.st-scene.active .s1-dp-idle { animation: stFadeOut 0.3s ease 5.6s both; }
.st-scene.active .s1-dp-on { animation: stFadeIn 0.4s ease 5.6s both; }
.st-scene.active .s1-meter { animation: stFadeIn 0.4s ease 5.6s both; }
.s1-dp-check { stroke-dasharray: 40; stroke-dashoffset: 40; }
.st-scene.active .s1-dp-check { animation: s1CheckDraw 0.55s ease 6.1s both; }
@keyframes s1CheckDraw { to { stroke-dashoffset: 0; } }

.s1-dglow { opacity: 0; }
.st-scene.active .s1-dglow { animation: s1DglowPulse 1.5s ease-in-out 5.7s infinite; }
@keyframes s1DglowPulse { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }

/* نور صفحه گوشیِ مسافر دوم */
.s1-bglow { opacity: 0; }
.st-scene.active .s1-bglow { animation: s1DglowPulse 2.6s ease-in-out infinite; }

.s1-w1, .s1-w2, .s1-w3 { opacity: 0; }
.st-scene.active .s1-w1 { animation: s1Wave 1.5s ease-out 6.6s infinite; }
.st-scene.active .s1-w2 { animation: s1Wave 1.5s ease-out 6.82s infinite; }
.st-scene.active .s1-w3 { animation: s1Wave 1.5s ease-out 7.04s infinite; }
@keyframes s1Wave { 0% { opacity: 0; } 25% { opacity: 1; } 100% { opacity: 0; } }

/* چیپ مبلغ شناور */
.s1-plus { opacity: 0; }
.st-scene.active .s1-plus { animation: s1Plus 2.3s ease-out 7s both; }
@keyframes s1Plus { 0% { opacity: 0; transform: translateY(10px); } 12% { opacity: 1; } 100% { opacity: 0; transform: translateY(-44px); } }

/* حباب اعلام مبلغ (کرایه خوانده می‌شود) */
.s1-speech { opacity: 0; }
.st-scene.active .s1-speech { animation: stPop 0.55s var(--stg) 7.5s both; }
@keyframes stPop { from { opacity: 0; transform: translateY(14px) scale(0.9); } to { opacity: 1; transform: none; } }

/* ---------- صحنه ۳: جایگاه سوخت ---------- */
.s2-lights { animation: s2Flicker 4s ease-in-out infinite; }
@keyframes s2Flicker { 0%, 100% { opacity: 0.85; } 50% { opacity: 1; } }

.st-scene.active .s2-phone { animation: s2Raise 0.8s var(--stg) 0.7s both; }
@keyframes s2Raise { from { transform: translate(-26px, 64px) rotate(-10deg); } to { transform: none; } }

.s2-beam { opacity: 0; }
.st-scene.active .s2-beam { animation: stFadeIn 0.5s ease 2s both; }
.s2-qr-glow { opacity: 0; transform-box: fill-box; transform-origin: center; }
.st-scene.active .s2-qr-glow { animation: s1GlowPulse 1.5s ease-in-out 2s infinite; }

.s2-pp-ok { opacity: 0; }
.st-scene.active .s2-pp-scan { animation: stFadeOut 0.4s ease 2.8s both; }
.st-scene.active .s2-pp-ok { animation: stFadeIn 0.4s ease 2.8s both; }

/* جریان سوخت در شلنگ */
.s2-flow { opacity: 0; stroke-dasharray: 3 15; }
.st-scene.active .s2-flow { animation: s2FlowOn 0.5s ease 3s both, s2FlowMove 1s linear 3s infinite; }
@keyframes s2FlowOn { to { opacity: 1; } }
@keyframes s2FlowMove { to { stroke-dashoffset: -36; } }

/* تیک باک پُر */
.s2-full { opacity: 0; }
.st-scene.active .s2-full { animation: stPop 0.5s var(--stg) 5.9s both; }

/* جشن اپراتور: پرش و شست بالا */
.st-scene.active .s2-hopwrap { animation: s2Hop 0.5s ease-in-out 6.4s 2; }
@keyframes s2Hop { 50% { transform: translateY(-10px); } }
.s2-op { opacity: 0; transform-box: fill-box; transform-origin: 40% 95%; }
.st-scene.active .s2-op { animation: stPop 0.55s var(--stg) 6.5s both; }

/* نمایش «پرداخت شد» روی نمایشگر پمپ */
.s2-paidok { opacity: 0; }
.s2-amtwrap, .s2-paidok { transition: opacity 0.35s ease; }
.s2-disp.paid .s2-amtwrap { opacity: 0; }
.s2-disp.paid .s2-paidok { opacity: 1; }

/* ---------- صحنه ۳: سوپرمارکت ---------- */
.s3-beltline { stroke-dasharray: 14 18; animation: s3Belt 1.1s linear infinite; }
@keyframes s3Belt { to { stroke-dashoffset: -32; } }

.st-scene.active .s3-items { animation: s3Items 3.3s linear 0.4s both; }
@keyframes s3Items { to { transform: translateX(255px); } }

.st-scene.active .s3-phone { animation: s2Raise 0.75s var(--stg) 1.2s both; }

.s3-beam { opacity: 0; }
.st-scene.active .s3-beam { animation: s3BeamSeq 4.4s ease 2.6s both; }
@keyframes s3BeamSeq { 0% { opacity: 0; } 10% { opacity: 1; } 82% { opacity: 1; } 100% { opacity: 0; } }

.s3-qr-glow { opacity: 0; transform-box: fill-box; transform-origin: center; }
.st-scene.active .s3-qr-glow { animation: s1GlowPulse 1.5s ease-in-out 2.6s infinite; }

.s3-pp-ok { opacity: 0; }
.st-scene.active .s3-pp-scan { animation: stFadeOut 0.4s ease 3.4s both; }
.st-scene.active .s3-pp-ok { animation: stFadeIn 0.4s ease 3.4s both; }

.s3-baghand { opacity: 0; }
.st-scene.active .s3-baghand { animation: stPop 0.5s var(--stg) 5.2s both; }

.s3-thanks { opacity: 0; }
.st-scene.active .s3-thanks { animation: stPop 0.5s var(--stg) 5.4s both; }

.st-scene.active .s3-walkg { animation: s3Walk 2s ease-in-out 6.2s both; }
@keyframes s3Walk {
  0% { transform: translateX(0); }
  20% { transform: translateX(-40px) translateY(-4px); }
  40% { transform: translateX(-80px) translateY(0); }
  60% { transform: translateX(-120px) translateY(-4px); }
  80% { transform: translateX(-160px) translateY(0); }
  100% { transform: translateX(-175px) translateY(0); }
}

.s3-reg .s3-paidok { opacity: 0; }
.s3-reg .s3-total, .s3-reg .s3-paidok { transition: opacity 0.35s ease; }
.s3-reg.paid .s3-total { opacity: 0; }
.s3-reg.paid .s3-paidok { opacity: 1; }

/* ---------- صحنه ۴: خانه ---------- */
.s4-lampglow { transform-box: fill-box; transform-origin: center; animation: s4LampPulse 3.5s ease-in-out infinite alternate; }
@keyframes s4LampPulse { from { opacity: 0.55; transform: scale(0.94); } to { opacity: 0.9; transform: scale(1.05); } }

.s4-door { transform-box: fill-box; transform-origin: right center; }
.st-scene.active .s4-door { animation: s4Door 0.8s ease 0.4s both; }
@keyframes s4Door { from { transform: scaleX(1); } to { transform: scaleX(0.14); } }

.s4-spill { opacity: 0; transform-box: fill-box; transform-origin: right center; }
.st-scene.active .s4-spill { animation: s4Spill 1s ease 0.5s both; }
@keyframes s4Spill { from { opacity: 0; transform: scaleX(0.25); } to { opacity: 0.5; transform: scaleX(1); } }

.st-scene.active .s4-walkg { animation: s4Walk 2.4s ease-in-out 0.8s both; }
@keyframes s4Walk {
  0% { transform: translateX(0); }
  15% { transform: translateX(-40px) translateY(-5px); }
  30% { transform: translateX(-80px) translateY(0); }
  45% { transform: translateX(-120px) translateY(-5px); }
  60% { transform: translateX(-160px) translateY(0); }
  78% { transform: translateX(-195px) translateY(-4px); }
  100% { transform: translateX(-205px) translateY(0); }
}

.st-scene.active .s4-kid { animation: s4Kid 0.8s ease-in-out 3.2s 3; }
@keyframes s4Kid { 50% { transform: translateY(-9px); } }

.s4-h1, .s4-h2, .s4-h3 { opacity: 0; }
.st-scene.active .s4-h1 { animation: s4Heart 2.3s ease-in 4.2s both; }
.st-scene.active .s4-h2 { animation: s4Heart 2.3s ease-in 4.45s both; }
.st-scene.active .s4-h3 { animation: s4Heart 2.3s ease-in 4.7s both; }
@keyframes s4Heart { 0% { opacity: 0; transform: translateY(0) scale(0.6); } 15% { opacity: 1; } 100% { opacity: 0; transform: translateY(-90px) scale(1.1); } }

.s4-report { opacity: 0; }
.st-scene.active .s4-report { animation: stPop 0.55s var(--stg) 3.4s both; }

.s4-bars rect { transform-box: fill-box; transform-origin: bottom; transform: scaleY(0); }
.st-scene.active .s4-bars rect { animation: s4Bar 0.7s var(--stg) both; }
.st-scene.active .s4-bars .b1 { animation-delay: 4.6s; }
.st-scene.active .s4-bars .b2 { animation-delay: 4.72s; }
.st-scene.active .s4-bars .b3 { animation-delay: 4.84s; }
.st-scene.active .s4-bars .b4 { animation-delay: 4.96s; }
.st-scene.active .s4-bars .b5 { animation-delay: 5.08s; }
@keyframes s4Bar { to { transform: scaleY(1); } }

.s4-chiprow { opacity: 0; }
.st-scene.active .s4-chiprow { animation: stPop 0.5s var(--stg) 5.6s both; }

.s4-end { opacity: 0; }
.st-scene.active .s4-end { animation: stFadeIn 1s ease 8.6s both; }

/* چیپ‌های کسب‌وکار خرد */
.gx-chips-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.gx-chips-row span {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  color: var(--muted);
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.03);
  transition: all 0.25s ease;
}
.gx-chips-row span:hover { color: var(--text); border-color: rgba(162, 155, 254, 0.4); transform: translateY(-2px); }
.gx-scene-note { text-align: center; color: var(--faint); font-size: 0.85rem; margin-top: 18px; }

/* ================= ۴) بازنشستگی پوز ================= */
.gx-pos-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  align-items: stretch;
}
.pos-card {
  padding: 22px 20px;
  border-radius: 20px;
  border: 1px solid var(--border);
  background: rgba(19, 16, 34, 0.55);
  position: relative;
  overflow: hidden;
}
.pos-anim {
  height: 132px;
  margin-bottom: 18px;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: rgba(13, 11, 20, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.05);
  overflow: hidden;
}
.pos-card h3 { font-size: 1.02rem; margin-bottom: 8px; }
.pos-card p { color: var(--muted); font-size: 0.84rem; line-height: 1.9; }

/* برق */
.pos-device {
  width: 62px; height: 86px;
  border-radius: 10px;
  background: linear-gradient(160deg, #3A3358, #221D42);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  display: grid;
  place-items: center;
}
.pos-screen-lit {
  position: absolute;
  inset: 10px 8px 26px;
  border-radius: 6px;
  background: linear-gradient(160deg, #9BF3D9, #4AD6B0);
  box-shadow: 0 0 18px rgba(74, 214, 176, 0.5);
  animation: screenDie 4.8s linear infinite;
}
@keyframes screenDie {
  0%, 24% { opacity: 1; }
  26% { opacity: 0.15; } 28% { opacity: 0.9; } 31% { opacity: 0.1; }
  34% { opacity: 0.75; } 38%, 100% { opacity: 0; }
}
.pos-device::after {
  content: "";
  position: absolute;
  bottom: 12px; left: 50%;
  transform: translateX(-50%);
  width: 26px; height: 5px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.16);
}
.pos-spark {
  position: absolute;
  top: 22px; right: 20px;
  font-size: 22px;
  animation: sparkFlash 4.8s linear infinite;
}
@keyframes sparkFlash {
  0%, 23% { opacity: 0; transform: scale(0.6); }
  25%, 33% { opacity: 1; transform: scale(1.2); }
  36%, 100% { opacity: 0; transform: scale(0.6); }
}
.pos-cable {
  position: absolute;
  bottom: 24px; left: 18px;
  width: 44px; height: 16px;
  border-top: 3px solid rgba(162, 155, 254, 0.3);
  border-left: 3px solid rgba(162, 155, 254, 0.3);
  border-radius: 10px 0 0 0;
}
.pos-off-chip {
  position: absolute;
  bottom: 12px; right: 12px;
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--danger-light);
  background: rgba(214, 48, 49, 0.14);
  border: 1px solid rgba(255, 138, 137, 0.3);
  padding: 3px 10px;
  border-radius: 999px;
  animation: chipBlink 4.8s linear infinite;
}
@keyframes chipBlink { 0%, 36% { opacity: 0; } 40%, 92% { opacity: 1; } 96%, 100% { opacity: 0; } }

/* اینترنت */
.wifi-bars { display: flex; align-items: flex-end; gap: 5px; height: 52px; }
.wifi-bars i {
  width: 9px;
  border-radius: 4px;
  background: linear-gradient(var(--primary-light), var(--primary));
}
.wifi-bars i:nth-child(1) { height: 18px; animation: barLost 5.4s linear infinite; }
.wifi-bars i:nth-child(2) { height: 32px; animation: barLost 5.4s linear 0.55s infinite; }
.wifi-bars i:nth-child(3) { height: 46px; animation: barLost 5.4s linear 1.1s infinite; }
@keyframes barLost { 0%, 8% { opacity: 1; } 14%, 100% { opacity: 0.08; } }
.wifi-warn {
  position: absolute;
  top: 14px; right: 14px;
  font-size: 20px;
  animation: chipBlink 5.4s linear infinite;
}
.pos-spinner {
  position: absolute;
  bottom: 14px; left: 14px;
  display: flex; align-items: center; gap: 7px;
  font-size: 0.68rem;
  color: var(--faint);
}
.pos-spinner i {
  width: 13px; height: 13px;
  border-radius: 50%;
  border: 2px solid rgba(162, 155, 254, 0.25);
  border-top-color: var(--primary-light);
  animation: spin 0.9s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* کاغذ */
.pos-paper-box {
  width: 66px; height: 90px;
  border-radius: 10px;
  background: linear-gradient(160deg, #3A3358, #221D42);
  border: 1px solid rgba(255, 255, 255, 0.12);
  position: relative;
  display: grid;
  place-items: center;
  overflow: visible;
}
.pos-receipt {
  width: 34px; height: 52px;
  background: #F4F1E8;
  border-radius: 3px 3px 6px 6px;
  position: relative;
  transform: translateY(6px);
  animation: paperOut 5.6s ease-in-out infinite;
}
.pos-receipt::before {
  content: "";
  position: absolute;
  inset: 8px 5px 8px;
  background-image: repeating-linear-gradient(180deg, rgba(60, 55, 100, 0.4) 0 3px, transparent 3px 9px);
}
@keyframes paperOut {
  0%, 12% { transform: translateY(6px) scaleY(1); opacity: 1; }
  55%, 68% { transform: translateY(30px) scaleY(0.12); opacity: 1; }
  72%, 100% { transform: translateY(30px) scaleY(0.05); opacity: 0; }
}
.paper-empty {
  position: absolute;
  bottom: 12px; right: 12px;
  font-size: 0.66rem;
  font-weight: 800;
  color: var(--warn);
  background: rgba(253, 203, 110, 0.12);
  border: 1px solid rgba(253, 203, 110, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
  animation: chipBlink 5.6s linear infinite;
}

/* کارت کارنیلا */
.pos-card.pos-hero {
  border: 1px solid rgba(111, 231, 200, 0.35);
  background:
    radial-gradient(140% 120% at 80% -10%, rgba(0, 184, 148, 0.16), transparent 55%),
    rgba(19, 16, 34, 0.75);
  display: flex;
  flex-direction: column;
}
.pos-hero h3 { color: var(--accent-light); }
.always-on { position: relative; display: grid; place-items: center; }
.always-phone {
  width: 56px; height: 92px;
  border-radius: 12px;
  background: linear-gradient(160deg, #2A2350, #17122E);
  border: 1.5px solid rgba(111, 231, 200, 0.5);
  display: grid;
  place-items: center;
  font-size: 22px;
  z-index: 2;
  animation: phoneFloat 5s ease-in-out infinite alternate;
}
.always-ring {
  position: absolute;
  width: 56px; height: 92px;
  border-radius: 12px;
  border: 1.5px solid rgba(111, 231, 200, 0.5);
  animation: ringPulse 2.2s ease-out infinite;
}
.always-ring.r2 { animation-delay: 1.1s; }
@keyframes ringPulse {
  from { transform: scale(1); opacity: 0.8; }
  to { transform: scale(1.55); opacity: 0; }
}
.online-chip {
  position: absolute;
  bottom: -6px;
  z-index: 3;
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--accent-light);
  background: rgba(0, 184, 148, 0.16);
  border: 1px solid rgba(111, 231, 200, 0.4);
  padding: 3px 10px;
  border-radius: 999px;
  white-space: nowrap;
}
.pos-hero ul { list-style: none; margin: 14px 0 18px; display: grid; gap: 9px; flex: 1; }
.pos-hero li { display: flex; align-items: center; gap: 9px; font-size: 0.84rem; color: var(--muted); }
.pos-hero li svg { width: 16px; height: 16px; color: var(--accent-light); flex-shrink: 0; }
.pos-hero .btn { width: 100%; justify-content: center; }

/* ================= ۵) کهکشان امکانات ================= */
.gx-galaxy-wrap {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 40px;
  align-items: center;
}
.gx-orbit {
  position: relative;
  width: 100%;
  max-width: 560px;
  aspect-ratio: 1 / 1;
  margin-inline: auto;
}
#orbitCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.gx-core {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 96px; height: 96px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.28), transparent 45%),
    linear-gradient(150deg, #8B7BF7, #6C5CE7 55%, #4834B8);
  box-shadow: 0 0 60px -8px rgba(108, 92, 231, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.4);
  display: grid;
  place-items: center;
  z-index: 3;
  cursor: default;
}
.gx-core svg { width: 34px; height: 34px; }
.gx-core::after {
  content: "";
  position: absolute;
  inset: -9px;
  border-radius: 50%;
  border: 1px dashed rgba(162, 155, 254, 0.4);
  animation: coreSpin 22s linear infinite;
}
@keyframes coreSpin { to { transform: rotate(360deg); } }

.gx-node {
  position: absolute;
  width: 58px; height: 58px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 23px;
  background: rgba(24, 20, 44, 0.94);
  border: 1px solid rgba(162, 155, 254, 0.32);
  cursor: pointer;
  z-index: 3;
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.5, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}
.gx-node:hover { transform: translate(-50%, -50%) scale(1.14); border-color: rgba(162, 155, 254, 0.6); }
.gx-node.active {
  transform: translate(-50%, -50%) scale(1.2);
  border-color: rgba(111, 231, 200, 0.7);
  box-shadow: 0 0 0 5px rgba(0, 184, 148, 0.15), 0 0 34px rgba(0, 184, 148, 0.4);
}
.gx-node .gxl {
  position: absolute;
  top: calc(100% + 7px);
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.64rem;
  font-weight: 700;
  color: var(--muted);
  background: rgba(13, 11, 20, 0.85);
  padding: 3px 9px;
  border-radius: 8px;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  border: 1px solid var(--border);
}
.gx-node:hover .gxl, .gx-node.active .gxl { opacity: 1; }

.gx-detail {
  border-radius: var(--radius);
  padding: 30px 30px 24px;
  min-height: 264px;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
}
.gx-detail::before {
  content: "";
  position: absolute;
  top: -80px; left: -60px;
  width: 240px; height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(0, 184, 148, 0.14), transparent 65%);
}
.gxd-ic {
  width: 62px; height: 62px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 29px;
  background: linear-gradient(150deg, rgba(108, 92, 231, 0.28), rgba(0, 184, 148, 0.16));
  border: 1px solid rgba(162, 155, 254, 0.3);
  margin-bottom: 16px;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.5, 1);
}
.gx-detail h3 { font-size: 1.25rem; margin-bottom: 10px; }
.gx-detail p { color: var(--muted); line-height: 2.05; font-size: 0.95rem; flex: 1; }
.gx-detail-inner { transition: opacity 0.25s ease, transform 0.3s ease; }
.gx-detail-inner.swap { opacity: 0; transform: translateY(10px); }
.gxd-nav { display: flex; align-items: center; justify-content: space-between; margin-top: 22px; }
.gxd-count { font-size: 0.78rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.gxd-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-size: 1.15rem;
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: all 0.22s ease;
}
.gxd-btn:hover { border-color: rgba(162, 155, 254, 0.55); background: rgba(108, 92, 231, 0.18); transform: translateY(-2px); }

/* ================= ریسپانسیو ================= */
@media (max-width: 1120px) {
  .gx-galaxy-wrap { grid-template-columns: 1fr; gap: 30px; }
  .gx-orbit { max-width: 440px; }
  .gx-pos-grid { grid-template-columns: 1fr 1fr; }
  .pos-card.pos-hero { grid-column: 1 / -1; }
}

@media (max-width: 980px) {
  .hero-gx { min-height: 0; padding: 44px 0 80px; }
  .hero-gx .hero-grid { grid-template-columns: 1fr; gap: 56px; }
  .hero-gx .hero-content { text-align: center; }
  .h-rotline, .hero-gx .hero-cta, .trust-mini { justify-content: center; }
  .hero-gx .hero-sub { margin-inline: auto; }
  .hero-visual { margin-top: 8px; }
  .h-chip-2 { left: -4%; }
  .h-chip-1 { right: -2%; }
  .h-voice-pop { right: 4px; }
  .st-caption { flex-direction: column; align-items: flex-start; gap: 10px; }
  .gx-cards { grid-template-columns: 1fr; }
  .gx-settle { grid-template-columns: 1fr; }
  .spark-wrap { min-width: 0; }
}

@media (max-width: 640px) {
  .ticker-inner { flex-direction: column; gap: 10px; }
  .ticker-label { font-size: 0.78rem; }
  .h-chip { font-size: 0.72rem; padding: 7px 12px; }
  .h-chip-2 { bottom: 20%; left: -6%; }
  .h-voice-pop { width: 224px; bottom: -74px; }
  .st-stage { border-radius: 20px; }
  .st-segs { top: 10px; right: 10px; left: 10px; }
  .st-ctl { bottom: 10px; left: 10px; }
  .st-btn { width: 38px; height: 38px; border-radius: 12px; }
  .st-btn svg { width: 17px; height: 17px; }
  .st-watermark { display: none; }
  .st-caption { padding: 12px 14px; }
  #stCaption { font-size: 0.88rem; }
  .st-tabs { grid-template-columns: repeat(2, 1fr); }
  .st-tab { padding: 10px 6px; font-size: 0.74rem; gap: 6px; }
  .gx-pos-grid { grid-template-columns: 1fr; }
  .gx-orbit { max-width: 350px; }
  .gx-node { width: 50px; height: 50px; font-size: 20px; }
  .gx-core { width: 80px; height: 80px; }
  .gx-core svg { width: 28px; height: 28px; }
  .gx-detail { padding: 24px 22px 20px; min-height: 0; }
  .gx-settle { padding: 22px 18px; }
  .gx-tabs { width: 100%; justify-content: center; }
  .gx-tab { padding: 8px 14px; }
  .gx-live-chip { display: none; }
}

/* ================= حرکت کاهش‌یافته ================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker-track, .h-rot, .grad-anim, .gx-dot::after, .h-caret,
  .wavebars i,
  .pos-screen-lit, .pos-spark, .pos-receipt, .wifi-bars i, .always-ring,
  .always-phone, .coreSpin, .gx-core::after, .h-phone, .h-chip, .scroll-cue span::before {
    animation: none !important;
  }
  .st-player .st-scene,
  .st-player .st-scene * {
    animation-duration: 0.01s !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
  }
  .h-notif, .h-voice-pop { transition: none !important; }
  .wavebars i { transform: scaleY(0.85); }
}
