/* etod-live-demo.css — دمو کلاس آنلاین EduPlus Live */
html.live-demo-page,
body.live-demo-app {
  margin: 0;
  min-height: 100%;
}

body.live-demo-app {
  --bg: #0b1c2b;
  --bg2: #102536;
  --surface: #132333;
  --card: #162a3d;
  --border: rgba(158, 184, 198, 0.18);
  --mint: #62d5ae;
  --mint-dim: rgba(98, 213, 174, 0.14);
  --text: #e8f4f8;
  --text2: #9eb8c6;
  --text3: #6f8fa0;
  --amber: #f5c865;
  --r: 16px;
  font-family: 'Vazirmatn', system-ui, sans-serif;
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(98, 213, 174, 0.16), transparent 55%),
    radial-gradient(700px 380px at 0% 20%, rgba(56, 140, 200, 0.14), transparent 50%),
    linear-gradient(180deg, #0b1c2b 0%, #0e2233 45%, #0b1c2b 100%);
  color: var(--text);
  direction: rtl;
}

body.live-demo-app *,
body.live-demo-app *::before,
body.live-demo-app *::after {
  box-sizing: border-box;
}

.ld-top {
  position: sticky;
  top: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  padding: 12px 20px;
  background: rgba(11, 28, 43, 0.88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.ld-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 160px;
}

.ld-brand strong {
  display: block;
  font-size: 1.05rem;
  font-weight: 800;
}

.ld-brand small {
  color: var(--text2);
  font-size: 0.78rem;
}

.ld-live-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #ef4444;
  box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.55);
  animation: ldPulse 1.6s ease-out infinite;
}

@keyframes ldPulse {
  0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.5); }
  70% { box-shadow: 0 0 0 12px rgba(239, 68, 68, 0); }
  100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.ld-roles {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex: 1;
}

.ld-roles a {
  text-decoration: none;
  color: var(--text2);
  font-size: 0.82rem;
  font-weight: 600;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid transparent;
  transition: 0.15s ease;
}

.ld-roles a:hover,
.ld-roles a.is-active {
  color: var(--text);
  border-color: var(--border);
  background: var(--mint-dim);
}

.ld-roles a.is-active {
  color: var(--mint);
}

.ld-top-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.ld-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  border-radius: 999px;
  padding: 10px 16px;
  transition: transform 0.15s ease, background 0.15s ease;
}

.ld-btn:active { transform: scale(0.98); }

.ld-btn-primary {
  background: linear-gradient(120deg, #1aa87a, #0e9d75);
  color: #04151a;
}

.ld-btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
  border: 1px solid var(--border);
}

.ld-btn-lg {
  padding: 13px 22px;
  font-size: 1rem;
}

.ld-main {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
  padding: 28px 0 64px;
}

.ld-hero {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px;
  align-items: center;
  margin-bottom: 48px;
}

.ld-kicker {
  display: inline-block;
  color: var(--mint);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  margin-bottom: 10px;
}

.ld-hero h1 {
  margin: 0 0 12px;
  font-size: clamp(1.45rem, 2.6vw, 2.1rem);
  line-height: 1.35;
  font-weight: 900;
}

.ld-summary {
  color: var(--text2);
  line-height: 1.85;
  margin: 0 0 18px;
  font-size: 0.98rem;
}

.ld-hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.ld-hero-meta span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.8rem;
  color: var(--text2);
}

.ld-hero-meta i { color: var(--mint); }

.ld-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 12px;
}

.ld-hint {
  color: var(--text3);
  font-size: 0.8rem;
  line-height: 1.7;
  margin: 0;
}

.ld-hint code {
  color: var(--amber);
  font-size: 0.78rem;
}

.ld-hero-stage {
  position: relative;
  background: linear-gradient(160deg, #122536, #0d1d2c);
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
}

.ld-hero-stage .live-demo {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.ld-hero-stage .ui-frame { fill: #0f1f2e; stroke: #2a4558; }
.ld-hero-stage .ui-bar { fill: #162433; }
.ld-hero-stage .label,
.ld-hero-stage .tiny,
.ld-hero-stage .caption,
.ld-hero-stage .dock-lbl { fill: #9eb8c6; font-size: 11px; font-family: Vazirmatn, Tahoma, sans-serif; }
.ld-hero-stage .dock-chat { fill: #0e9d75; }

.ld-stage-play {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-decoration: none;
  color: #fff;
  background: rgba(6, 18, 28, 0.28);
  border-radius: 22px;
  opacity: 0;
  transition: opacity 0.2s ease;
}

.ld-hero-stage:hover .ld-stage-play,
.ld-hero-stage:focus-within .ld-stage-play {
  opacity: 1;
}

.ld-stage-play i {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0e9d75;
  color: #04151a;
  font-size: 1.2rem;
  box-shadow: 0 10px 30px rgba(14, 157, 117, 0.45);
}

.ld-stage-play span {
  font-weight: 800;
  background: rgba(8, 20, 32, 0.75);
  padding: 6px 14px;
  border-radius: 999px;
}

.ld-section {
  margin-bottom: 42px;
  padding: 28px;
  background: rgba(19, 35, 51, 0.72);
  border: 1px solid var(--border);
  border-radius: 22px;
}

.ld-section-head {
  margin-bottom: 18px;
}

.ld-section-head h2 {
  margin: 0 0 8px;
  font-size: 1.25rem;
  font-weight: 800;
}

.ld-section-head p {
  margin: 0;
  color: var(--text2);
  line-height: 1.75;
  font-size: 0.92rem;
}

.ld-section-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.ld-feat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 16px;
}

.ld-feat {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 14px;
}

.ld-feat i {
  color: var(--mint);
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.ld-feat h3 {
  margin: 0 0 6px;
  font-size: 0.95rem;
}

.ld-feat p {
  margin: 0;
  color: var(--text2);
  font-size: 0.8rem;
  line-height: 1.6;
}

.ld-bullet-list {
  margin: 0;
  padding: 0 18px 0 0;
  color: var(--text2);
  line-height: 1.85;
}

.ld-bullet-list li + li { margin-top: 6px; }

.ld-note {
  margin: 12px 0 0;
  color: var(--amber);
  font-size: 0.85rem;
}

.ld-card-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.ld-card {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 12px 14px;
  color: var(--text2);
  font-size: 0.88rem;
  line-height: 1.7;
}

.ld-card i {
  color: var(--mint);
  margin-top: 4px;
}

.ld-sample-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 22px;
}

.ld-sample-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 16px;
}

.ld-sample-live {
  border-color: rgba(98, 213, 174, 0.45);
  background: linear-gradient(160deg, rgba(14, 157, 117, 0.16), rgba(255, 255, 255, 0.02));
}

.ld-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  color: #04151a;
  background: var(--mint);
  border-radius: 999px;
  padding: 3px 10px;
  margin-bottom: 10px;
}

.ld-badge-muted {
  background: rgba(158, 184, 198, 0.22);
  color: var(--text2);
}

.ld-sample-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.ld-sample-card p {
  margin: 0 0 14px;
  color: var(--text2);
  font-size: 0.84rem;
}

.ld-students h3 {
  margin: 0 0 12px;
  font-size: 1rem;
}

.ld-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ld-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  font-size: 0.82rem;
  color: var(--text2);
}

.ld-chip.is-hand { border-color: rgba(245, 200, 101, 0.5); color: var(--amber); }
.ld-chip.is-speak { border-color: rgba(98, 213, 174, 0.5); color: var(--mint); }

.ld-scenario-list {
  margin: 0;
  padding: 0 20px 0 0;
  color: var(--text2);
  line-height: 1.85;
}

.ld-scenario-list li + li { margin-top: 10px; }

.ld-table-wrap {
  overflow-x: auto;
  border-radius: 14px;
  border: 1px solid var(--border);
}

.ld-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 720px;
  font-size: 0.84rem;
}

.ld-table th,
.ld-table td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  text-align: right;
  vertical-align: top;
  line-height: 1.65;
}

.ld-table th {
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  font-weight: 700;
}

.ld-table td { color: var(--text2); }
.ld-table tr td:last-child { color: var(--mint); font-weight: 600; }
.ld-table tr:last-child td { border-bottom: none; }

.ld-cta-final {
  text-align: center;
  background: linear-gradient(160deg, rgba(14, 157, 117, 0.18), rgba(19, 35, 51, 0.8));
}

.ld-cta-final h2 { margin: 0 0 8px; }
.ld-cta-final > p { color: var(--text2); margin: 0 0 18px; }
.ld-cta-final .ld-cta-row { justify-content: center; }

.ld-foot {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto 28px;
  color: var(--text3);
  font-size: 0.8rem;
}

.ld-foot a {
  color: var(--text2);
  text-decoration: none;
}

.ld-foot a:hover { color: var(--mint); }

@media (max-width: 960px) {
  .ld-hero,
  .ld-section-split,
  .ld-feat-grid,
  .ld-sample-grid,
  .ld-card-grid {
    grid-template-columns: 1fr 1fr;
  }
  .ld-feat-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .ld-top { padding: 10px 12px; }
  .ld-main { width: calc(100% - 20px); padding-top: 18px; }
  .ld-hero,
  .ld-section-split,
  .ld-feat-grid,
  .ld-sample-grid,
  .ld-card-grid {
    grid-template-columns: 1fr;
  }
  .ld-section { padding: 18px; }
  .ld-roles { order: 3; width: 100%; }
  .ld-stage-play { opacity: 1; background: rgba(6, 18, 28, 0.18); }
}
