/* صفحهٔ سیگنال زنده — موبایل‌محور */
:root {
  --live-bg: #070a12;
  --live-card: rgba(15, 23, 42, .78);
  --live-line: rgba(148, 163, 184, .18);
  --live-up: #22c55e;
  --live-down: #f43f5e;
  --live-text: #e8eefc;
  --live-dim: #93a4c4;
}

html, body.live-page {
  margin: 0;
  padding: 0;
  background: var(--live-bg);
  color: var(--live-text);
  font-family: Vazirmatn, system-ui, -apple-system, "Segoe UI", sans-serif;
  -webkit-text-size-adjust: 100%;
}

body.live-page {
  min-height: 100dvh;
  min-height: 100vh;
  padding: calc(10px + env(safe-area-inset-top)) calc(10px + env(safe-area-inset-right)) calc(20px + env(safe-area-inset-bottom)) calc(10px + env(safe-area-inset-left));
  box-sizing: border-box;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(139, 92, 246, .16), transparent 60%),
    radial-gradient(700px 380px at 10% 0%, rgba(34, 211, 238, .12), transparent 55%),
    var(--live-bg);
}

.live-wrap {
  max-width: 560px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* سربرگ */
.live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 2px 4px 6px;
}
.live-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--live-text);
  text-decoration: none;
  font-weight: 700;
  font-size: 15px;
}
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #86efac;
  background: rgba(34, 197, 94, .12);
  border: 1px solid rgba(34, 197, 94, .3);
  padding: 4px 10px;
  border-radius: 999px;
}
.live-badge i {
  width: 7px; height: 7px; border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, .6);
  animation: pulse 1.8s infinite;
}
.live-badge.off { color: #fca5a5; background: rgba(244, 63, 94, .12); border-color: rgba(244, 63, 94, .3); }
.live-badge.off i { background: #f43f5e; animation: none; }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .55); }
  70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); }
  100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

/* کارت اصلی */
.live-hero, .chart-card, .plan-card, .brain-card {
  background: var(--live-card);
  border: 1px solid var(--live-line);
  border-radius: 18px;
  padding: 14px;
  backdrop-filter: blur(8px);
}

.hero-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.hero-top h1 {
  margin: 0;
  font-size: 19px;
  line-height: 1.35;
}
.hero-sub {
  margin: 4px 0 0;
  font-size: 12.5px;
  color: var(--live-dim);
}
.hero-price { text-align: left; }
.hero-price strong {
  display: block;
  font-size: 20px;
  font-variant-numeric: tabular-nums;
}
.hero-price span { font-size: 12px; }

.up { color: var(--live-up); }
.down { color: var(--live-down); }

.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-top: 12px;
}
.hero-stats div {
  background: rgba(148, 163, 184, .07);
  border: 1px solid var(--live-line);
  border-radius: 12px;
  padding: 8px 6px;
  text-align: center;
}
.hero-stats small { display: block; font-size: 11px; color: var(--live-dim); margin-bottom: 3px; }
.hero-stats b { font-size: 14px; font-variant-numeric: tabular-nums; }
.stat-sub {
  display: block;
  font-size: 11px;
  margin-top: 2px;
  color: var(--live-dim);
  font-variant-numeric: tabular-nums;
}

.hero-result {
  margin: 10px 0 0;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--live-line);
  background: rgba(148, 163, 184, .07);
  font-size: 13px;
  line-height: 1.8;
  text-align: center;
}
.hero-result b { font-variant-numeric: tabular-nums; }

.live-age {
  font-variant-numeric: tabular-nums;
  color: #7dd3fc !important;
}
.live-age.stale { color: #fca5a5 !important; }

.progress {
  height: 6px;
  margin-top: 12px;
  border-radius: 99px;
  background: rgba(148, 163, 184, .16);
  overflow: hidden;
}
.progress span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #22d3ee, #22c55e);
  transition: width .25s linear;
}

/* نمودار */
.chart-card { padding: 8px 8px 10px; }
.chart-host {
  width: 100%;
  height: 42vh;
  min-height: 300px;
  max-height: 420px;
  border-radius: 14px;
  overflow: hidden;
}
.chart-note {
  margin: 8px 4px 0;
  font-size: 11.5px;
  color: var(--live-dim);
  line-height: 1.7;
}

/* پله‌ها */
.plan-card h2, .brain-card h2 {
  margin: 0 0 10px;
  font-size: 14.5px;
}
.ladder {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ladder li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 14px;
  border: 1px solid var(--live-line);
  background: rgba(148, 163, 184, .05);
}
.ladder li.current { border-color: rgba(34, 211, 238, .55); background: rgba(34, 211, 238, .08); }
.ladder li.done { border-color: rgba(34, 197, 94, .45); background: rgba(34, 197, 94, .08); }
.stage-icon {
  width: 26px; height: 26px;
  flex: 0 0 26px;
  display: grid;
  place-items: center;
  border-radius: 9px;
  background: rgba(148, 163, 184, .14);
  font-size: 12px;
  color: var(--live-dim);
}
.ladder li.done .stage-icon { background: rgba(34, 197, 94, .22); color: #86efac; }
.stage-body { flex: 1 1 auto; min-width: 0; }
.stage-body b { display: block; font-size: 13px; }
.stage-body small { display: block; font-size: 11px; color: var(--live-dim); line-height: 1.7; margin-top: 2px; }
.stage-body .eta { display: block; font-size: 11px; color: #7dd3fc; margin-top: 2px; font-variant-numeric: tabular-nums; }
.ladder em {
  font-style: normal;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  color: #cbd5f5;
  white-space: nowrap;
}

.brain-card p {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.9;
  color: #c8d4ee;
}

.live-foot { text-align: center; padding: 4px 6px 0; }
.live-foot p { margin: 2px 0; font-size: 11px; color: var(--live-dim); }
.live-foot .disclaimer { opacity: .7; }

@media (max-width: 380px) {
  .hero-top h1 { font-size: 17px; }
  .hero-price strong { font-size: 18px; }
  .ladder em { font-size: 11.5px; }
}
