/* =============================================
   QT Trading Lab — Slideshow Component Styles
   =============================================
   Import this file in any page that uses the 
   slideshow player. Works with qt-slideshow.js.
   ============================================= */

/* === THEME TOKENS === */
:root {
  --qt-bg: #0c0e13;
  --qt-bg-card: #14171e;
  --qt-bg-surface: #1c2029;
  --qt-bg-player: #0a0c10;
  --qt-border: #262b36;
  --qt-border-light: #2e3440;
  --qt-text: #e8eaf0;
  --qt-text-sec: #8b92a5;
  --qt-text-muted: #5c6378;
  --qt-blue: #4a9eff;
  --qt-blue-dim: #4a9eff15;
  --qt-blue30: #4a9eff30;
  --qt-green: #34d399;
  --qt-green-dim: #34d39915;
  --qt-green30: #34d39930;
  --qt-red: #f87171;
  --qt-red-dim: #f8717115;
  --qt-amber: #f59e0b;
  --qt-amber-dim: #f59e0b15;
  --qt-amber30: #f59e0b30;
  --qt-purple: #a78bfa;
  --qt-radius: 10px;
  --qt-radius-sm: 6px;
  --qt-font: 'Inter', -apple-system, sans-serif;
  --qt-mono: 'JetBrains Mono', monospace;
}


/* === PLAYER SHELL === */
.qt-player-wrap {
  width: min(100%, 1040px);
  max-height: calc(100vh - 48px);
}

.qt-player-label {
  font-family: var(--qt-mono);
  font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--qt-text-muted); margin-bottom: 10px;
  display: flex; align-items: center; gap: 8px;
}
.qt-player-label .qt-badge {
  background: var(--qt-blue-dim); color: var(--qt-blue);
  padding: 2px 8px; border-radius: 4px; font-weight: 600;
  border: 1px solid var(--qt-blue30);
}

.qt-player {
  background: var(--qt-bg-player);
  border: 1px solid var(--qt-border);
  border-radius: var(--qt-radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  max-height: inherit;
}


/* === SLIDE AREA === */
.qt-slide-area {
  aspect-ratio: 16 / 9;
  position: relative;
  overflow: hidden;
  flex: 1 1 auto;
  min-height: 0;
  max-height: calc(100vh - 136px);
}

.qt-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity 0.6s ease;
  pointer-events: none;
  display: flex;
}
.qt-slide.active { opacity: 1; pointer-events: auto; }


/* === ANIMATION CLASSES === */
/* Apply these to any element inside a slide.
   Animations trigger when parent .qt-slide gets .active class.
   Delays: d1=0.15s, d2=0.3s, d3=0.45s, d4=0.6s, d5=0.75s, d6=0.9s */

.qt-slide.active .anim-fade    { animation: qtFadeUp 0.6s ease both; }
.qt-slide.active .anim-fade-d1 { animation: qtFadeUp 0.6s 0.15s ease both; }
.qt-slide.active .anim-fade-d2 { animation: qtFadeUp 0.6s 0.3s ease both; }
.qt-slide.active .anim-fade-d3 { animation: qtFadeUp 0.6s 0.45s ease both; }
.qt-slide.active .anim-fade-d4 { animation: qtFadeUp 0.6s 0.6s ease both; }
.qt-slide.active .anim-fade-d5 { animation: qtFadeUp 0.6s 0.75s ease both; }
.qt-slide.active .anim-fade-d6 { animation: qtFadeUp 0.6s 0.9s ease both; }

.qt-slide.active .anim-scale    { animation: qtScaleIn 0.5s 0.2s ease both; }
.qt-slide.active .anim-scale-d1 { animation: qtScaleIn 0.5s 0.4s ease both; }
.qt-slide.active .anim-scale-d2 { animation: qtScaleIn 0.5s 0.6s ease both; }
.qt-slide.active .anim-scale-d3 { animation: qtScaleIn 0.5s 0.8s ease both; }

.qt-slide.active .anim-draw    { animation: qtDrawLine 1s 0.3s ease both; }
.qt-slide.active .anim-draw-d1 { animation: qtDrawLine 1s 0.6s ease both; }

.qt-slide.active .anim-count    { animation: qtCountPop 0.4s 0.3s ease both; }
.qt-slide.active .anim-count-d1 { animation: qtCountPop 0.4s 0.5s ease both; }
.qt-slide.active .anim-count-d2 { animation: qtCountPop 0.4s 0.7s ease both; }

.qt-slide.active .anim-glow { animation: qtGlowPulse 2s 0.5s ease infinite; }

@keyframes qtFadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes qtScaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to   { opacity: 1; transform: scale(1); }
}
@keyframes qtDrawLine {
  from { stroke-dashoffset: 300; }
  to   { stroke-dashoffset: 0; }
}
@keyframes qtCountPop {
  0%   { opacity: 0; transform: scale(0.5); }
  70%  { transform: scale(1.08); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes qtGlowPulse {
  0%, 100% { filter: drop-shadow(0 0 4px transparent); }
  50%      { filter: drop-shadow(0 0 12px #4a9eff40); }
}
@keyframes qtPulse {
  0%, 100% { opacity: 0.4; }
  50%      { opacity: 1; }
}


/* === SLIDE LAYOUT: TITLE === */
.qt-sl-title {
  flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 60px 80px;
  background: radial-gradient(ellipse at center, #4a9eff06 0%, transparent 70%);
}
.qt-sl-title .qt-eyebrow {
  font-family: var(--qt-mono);
  font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--qt-blue); margin-bottom: 20px;
}
.qt-sl-title h2 {
  font-size: 32px; font-weight: 700; letter-spacing: -0.02em;
  line-height: 1.2; margin-bottom: 20px; color: var(--qt-text);
}
.qt-sl-title .qt-divider {
  width: 48px; height: 2px; background: var(--qt-blue);
  border-radius: 1px; margin: 24px 0;
}
.qt-sl-title .qt-subtitle {
  font-size: 15px; color: var(--qt-text-sec); line-height: 1.7; max-width: 520px;
}


/* === SLIDE LAYOUT: SPLIT (text + visual) === */
.qt-sl-split { display: flex; }
.qt-sl-split .qt-text-side {
  flex: 1; padding: clamp(24px, 4vw, 44px) clamp(24px, 3.5vw, 36px);
  display: flex; flex-direction: column; justify-content: center;
}
.qt-sl-split .qt-visual-side {
  width: 44%; display: flex; align-items: center; justify-content: center;
  padding: 32px; flex-shrink: 0;
  background: radial-gradient(circle at center, #4a9eff04 0%, transparent 70%);
}
.qt-sl-split .qt-visual-side svg { width: 100%; height: auto; max-height: 100%; }


/* === SLIDE LAYOUT: COMPARISON === */
.qt-sl-compare {
  display: flex; flex-direction: column;
  padding: clamp(24px, 4vw, 44px) clamp(24px, 4vw, 48px);
}
.qt-compare-header { text-align: center; margin-bottom: 28px; }
.qt-compare-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 16px; flex: 1; align-items: start;
}
.qt-compare-card {
  padding: 24px; border-radius: var(--qt-radius);
  border: 1px solid var(--qt-border); background: var(--qt-bg-card);
}
.qt-compare-card .qt-card-label {
  font-family: var(--qt-mono);
  font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 12px; font-weight: 700;
}
.qt-compare-card .qt-card-item {
  font-size: 13px; color: var(--qt-text-sec);
  padding: 5px 0; border-bottom: 1px solid var(--qt-border); line-height: 1.5;
}
.qt-compare-card .qt-card-item:last-child { border-bottom: none; }
.qt-compare-card .qt-card-item strong { color: var(--qt-text); }


/* === SLIDE LAYOUT: SUMMARY === */
.qt-sl-summary {
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: clamp(24px, 4vw, 44px) clamp(24px, 5vw, 60px); text-align: center;
}
.qt-summary-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-top: 24px; text-align: left;
  width: 100%; max-width: 560px;
}
.qt-summary-item {
  display: flex; gap: 10px; align-items: start;
  padding: 12px 14px; border-radius: var(--qt-radius-sm);
  background: var(--qt-bg-card); border: 1px solid var(--qt-border);
}
.qt-summary-check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--qt-green-dim); border: 1px solid var(--qt-green30);
  display: flex; align-items: center; justify-content: center;
  color: var(--qt-green); font-size: 11px; flex-shrink: 0;
  font-weight: 700; margin-top: 1px;
}
.qt-summary-text { font-size: 12px; color: var(--qt-text-sec); line-height: 1.5; }


/* === SLIDE LAYOUT: CHART === */
.qt-sl-chart {
  display: grid;
  grid-template-columns: minmax(0, 0.78fr) minmax(0, 1.55fr);
  gap: 18px;
  padding: clamp(18px, 2.6vw, 28px) clamp(18px, 3vw, 30px);
  align-items: center;
}
.qt-chart-copy { min-width: 0; }
.qt-chart-copy .qt-body-text {
  margin-bottom: 12px;
  font-size: 13px;
  line-height: 1.6;
}
.qt-chart-copy .qt-body-text p { margin-bottom: 7px; }
.qt-chart-copy .qt-bullet {
  gap: 9px;
  padding: 7px 10px;
  margin-bottom: 6px;
}
.qt-chart-copy .qt-bullet-icon {
  width: 24px;
  height: 24px;
  font-size: 10px;
}
.qt-chart-copy .qt-bullet-text strong { font-size: 12px; }
.qt-chart-copy .qt-bullet-text span {
  font-size: 11px;
  line-height: 1.4;
}
.qt-chart-frame {
  min-width: 0;
  height: 100%;
  min-height: min(300px, 100%);
  background:
    linear-gradient(180deg, #101722 0%, #090d14 100%);
  border: 1px solid #263244;
  border-radius: var(--qt-radius-sm);
  overflow: hidden;
  position: relative;
  box-shadow:
    inset 0 1px 0 #ffffff10,
    inset 0 -1px 0 #00000070,
    0 18px 34px #00000026;
}
.qt-chart-frame::before,
.qt-full-chart-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #ffffff05 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #ffffff04 0 1px, transparent 1px 100%);
  background-size: 48px 48px, 48px 48px;
  opacity: 0.45;
}
.qt-chart-frame::after,
.qt-full-chart-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px #ffffff06,
    inset 0 22px 48px #ffffff05,
    inset 0 -30px 58px #0000004f;
}
.qt-chart-canvas {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  min-height: min(300px, 100%);
}
.qt-chart-band {
  position: absolute;
  z-index: 4;
  left: 0;
  right: 0;
  pointer-events: none;
  border-top: 1px solid currentColor;
  border-bottom: 1px solid currentColor;
  opacity: 0.16;
}
.qt-chart-annotation-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
}
.qt-chart-band-label {
  position: absolute;
  right: 10px;
  top: 3px;
  padding: 2px 6px;
  border-radius: 4px;
  background: #0a0c10d9;
  color: currentColor;
  font-family: var(--qt-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.qt-chart-callout {
  position: absolute;
  z-index: 8;
  max-width: min(210px, 38%);
  padding: 8px 10px;
  pointer-events: none;
  background: #111722eb;
  border: 1px solid currentColor;
  border-radius: 7px;
  box-shadow: 0 10px 24px #00000036;
  color: var(--qt-blue);
}
.qt-chart-callout::after {
  content: "";
  position: absolute;
  width: 34px;
  height: 1px;
  left: -34px;
  top: 50%;
  background: currentColor;
  opacity: 0.85;
}
.qt-chart-callout.right::after {
  left: auto;
  right: -34px;
}
.qt-chart-callout-title {
  font-family: var(--qt-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 3px;
}
.qt-chart-callout-text {
  color: var(--qt-text);
  font-size: 11px;
  line-height: 1.35;
  font-weight: 600;
}
.qt-chart-rule-card {
  position: absolute;
  z-index: 9;
  top: 12px;
  left: 12px;
  width: min(270px, calc(100% - 24px));
  padding: 10px 12px;
  border-radius: 8px;
  background: #0b1019e8;
  border: 1px solid var(--qt-border);
  box-shadow: 0 12px 30px #00000040;
  pointer-events: none;
}
.qt-chart-rule-label {
  font-family: var(--qt-mono);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--qt-blue);
  margin-bottom: 6px;
}
.qt-chart-rule-item {
  display: flex;
  gap: 7px;
  align-items: flex-start;
  color: var(--qt-text-sec);
  font-size: 11px;
  line-height: 1.35;
  margin-top: 4px;
}
.qt-chart-rule-dot {
  width: 6px;
  height: 6px;
  margin-top: 4px;
  border-radius: 50%;
  background: var(--qt-green);
  flex: 0 0 auto;
}
.qt-chart-segment {
  position: absolute;
  z-index: 7;
  height: 1px;
  min-width: 24px;
  background: currentColor;
  opacity: 0.82;
  pointer-events: none;
}
.qt-chart-segment::before,
.qt-chart-segment::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
}
.qt-chart-segment::before { left: -2px; }
.qt-chart-segment::after { right: -2px; }
.qt-chart-candle-highlight {
  position: absolute;
  z-index: 7;
  min-width: 12px;
  border: 1px solid #f59e0b;
  border-radius: 3px;
  background: #f59e0b1c;
  box-shadow: 0 0 18px #f59e0b20;
  pointer-events: none;
}
.qt-chart-candle-highlight-label {
  position: absolute;
  left: 50%;
  bottom: calc(100% + 6px);
  transform: translateX(-50%);
  white-space: nowrap;
  padding: 4px 7px;
  border-radius: 4px;
  background: #3b3b3f;
  color: #f4f4f5;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  box-shadow: 0 8px 18px #00000038;
}
.qt-chart-tag {
  position: absolute;
  z-index: 8;
  padding: 5px 7px;
  border-radius: 4px;
  background: #2e3035e8;
  color: #eef1f7;
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
  border: 1px solid #ffffff12;
  box-shadow: 0 6px 14px #00000030;
  pointer-events: none;
}
.qt-chart-script-label {
  position: absolute;
  z-index: 8;
  color: #f4f4f5;
  font-size: 18px;
  font-style: italic;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 8px #000000;
  pointer-events: none;
}
.qt-chart-plain-label {
  position: absolute;
  z-index: 8;
  color: #f4f4f5;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
  text-shadow: 0 2px 8px #000000;
  pointer-events: none;
}
.qt-chart-down-arrow {
  position: absolute;
  z-index: 8;
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 11px solid #f4f4f5;
  pointer-events: none;
}
.qt-chart-down-arrow::before {
  content: "";
  position: absolute;
  left: -4px;
  bottom: 8px;
  width: 8px;
  height: 24px;
  border-radius: 2px;
  background: #f4f4f5;
}
.qt-chart-error {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
  color: var(--qt-red);
  font-family: var(--qt-mono);
  font-size: 11px;
  line-height: 1.5;
  text-align: center;
}

/* === SLIDE LAYOUT: STATS === */
.qt-sl-stats {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(28px, 5vw, 56px);
  background: radial-gradient(ellipse at center, #34d39906 0%, transparent 70%);
}
.qt-sl-stats .qt-subtitle {
  font-size: 14px;
  color: var(--qt-text-sec);
  line-height: 1.6;
  max-width: 560px;
}
.qt-stat-row {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 26px;
}
.qt-stat-card {
  min-width: 132px;
  padding: 22px 24px;
  background: var(--qt-bg-card);
  border: 1px solid var(--qt-border);
  border-radius: var(--qt-radius);
}
.qt-stat-num {
  font-family: var(--qt-mono);
  font-size: 34px;
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}
.qt-stat-num.blue { color: var(--qt-blue); }
.qt-stat-num.green { color: var(--qt-green); }
.qt-stat-num.amber { color: var(--qt-amber); }
.qt-stat-num.red { color: var(--qt-red); }
.qt-stat-num.purple { color: var(--qt-purple); }
.qt-stat-label {
  font-size: 12px;
  color: var(--qt-text-sec);
  line-height: 1.4;
}

/* === SLIDE LAYOUT: QUOTE === */
.qt-sl-quote {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(36px, 7vw, 72px);
  background: radial-gradient(ellipse at center, #a78bfa06 0%, transparent 70%);
}
.qt-quote-mark {
  font-family: Georgia, serif;
  font-size: 54px;
  line-height: 0.8;
  color: var(--qt-blue);
  opacity: 0.22;
  margin-bottom: 12px;
}
.qt-quote-text {
  max-width: 620px;
  font-size: clamp(22px, 3.2vw, 34px);
  font-weight: 700;
  line-height: 1.35;
  color: var(--qt-text);
}
.qt-quote-attr {
  margin-top: 22px;
  font-family: var(--qt-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--qt-text-muted);
}

/* === SLIDE LAYOUT: DEFINITION === */
.qt-sl-definition {
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: clamp(32px, 6vw, 64px);
}
.qt-def-term {
  font-family: var(--qt-mono);
  font-size: clamp(34px, 6vw, 56px);
  font-weight: 800;
  line-height: 1;
  color: var(--qt-blue);
  margin-bottom: 10px;
}
.qt-def-full {
  font-family: var(--qt-mono);
  font-size: 11px;
  color: var(--qt-text-muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 20px;
}
.qt-def-text {
  max-width: 580px;
  font-size: 16px;
  color: var(--qt-text-sec);
  line-height: 1.7;
}
.qt-def-cat {
  display: inline-block;
  margin-top: 18px;
  padding: 4px 11px;
  border-radius: 999px;
  font-family: var(--qt-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.qt-def-cat.blue { background: var(--qt-blue-dim); color: var(--qt-blue); border: 1px solid var(--qt-blue30); }
.qt-def-cat.green { background: var(--qt-green-dim); color: var(--qt-green); border: 1px solid var(--qt-green30); }
.qt-def-cat.amber { background: var(--qt-amber-dim); color: var(--qt-amber); border: 1px solid var(--qt-amber30); }
.qt-def-cat.red { background: var(--qt-red-dim); color: var(--qt-red); border: 1px solid #f8717130; }

/* === SLIDE LAYOUT: STEPS === */
.qt-sl-steps {
  flex-direction: column;
  padding: clamp(24px, 4vw, 44px) clamp(22px, 4vw, 44px);
}
.qt-steps-header { text-align: center; }
.qt-steps-row {
  display: flex;
  gap: 0;
  align-items: flex-start;
  justify-content: center;
  margin-top: 26px;
}
.qt-step {
  position: relative;
  flex: 1;
  min-width: 0;
  text-align: center;
  padding: 0 8px;
}
.qt-step-line {
  position: absolute;
  top: 17px;
  left: calc(50% + 22px);
  right: calc(-50% + 22px);
  height: 2px;
  background: var(--qt-border);
}
.qt-step-num {
  width: 34px;
  height: 34px;
  margin: 0 auto 11px;
  border-radius: 50%;
  background: var(--qt-blue-dim);
  border: 2px solid var(--qt-blue);
  color: var(--qt-blue);
  font-family: var(--qt-mono);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}
.qt-step-num.green { background: var(--qt-green-dim); border-color: var(--qt-green); color: var(--qt-green); }
.qt-step-num.amber { background: var(--qt-amber-dim); border-color: var(--qt-amber); color: var(--qt-amber); }
.qt-step-num.red { background: var(--qt-red-dim); border-color: var(--qt-red); color: var(--qt-red); }
.qt-step-title {
  font-size: 12px;
  font-weight: 700;
  color: var(--qt-text);
  margin-bottom: 5px;
}
.qt-step-desc {
  font-size: 11px;
  color: var(--qt-text-sec);
  line-height: 1.45;
}

/* === SLIDE LAYOUT: BEFORE / AFTER === */
.qt-sl-before-after {
  flex-direction: column;
  padding: clamp(22px, 4vw, 42px) clamp(22px, 4vw, 48px);
}
.qt-ba-header { text-align: center; }
.qt-ba-grid {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
  margin-top: 22px;
}
.qt-ba-panel {
  padding: 20px;
  background: var(--qt-bg-card);
  border: 1px solid var(--qt-border);
  border-radius: var(--qt-radius);
}
.qt-ba-panel.before { border-color: #f8717130; }
.qt-ba-panel.after { border-color: #34d39930; }
.qt-ba-label {
  font-family: var(--qt-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.qt-ba-label.red,
.qt-ba-icon.red { color: var(--qt-red); }
.qt-ba-label.green,
.qt-ba-icon.green { color: var(--qt-green); }
.qt-ba-item {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  padding: 6px 0;
  font-size: 13px;
  color: var(--qt-text-sec);
  line-height: 1.45;
}
.qt-ba-icon {
  flex-shrink: 0;
  font-family: var(--qt-mono);
  font-weight: 800;
}
.qt-ba-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--qt-text-muted);
  font-size: 22px;
  padding: 0 4px;
}

/* === SLIDE LAYOUT: FULL CHART === */
.qt-sl-full-chart {
  display: grid;
  grid-template-columns: minmax(190px, 0.42fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 18px;
}
.qt-full-chart-copy {
  align-self: center;
  min-width: 0;
  padding: 8px 4px 8px 6px;
}
.qt-full-chart-copy .qt-body-text {
  font-size: 13px;
  line-height: 1.62;
}
.qt-full-chart-frame {
  min-width: 0;
  min-height: 0;
  background:
    linear-gradient(180deg, #101722 0%, #090d14 100%);
  border: 1px solid #263244;
  border-radius: var(--qt-radius-sm);
  overflow: hidden;
  position: relative;
  box-shadow:
    inset 0 1px 0 #ffffff10,
    inset 0 -1px 0 #00000070,
    0 18px 34px #00000026;
}
.qt-full-chart-frame .qt-chart-canvas {
  height: 100%;
  min-height: 260px;
}
.qt-full-chart-caption {
  grid-column: 1 / -1;
  color: var(--qt-text-sec);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

/* === SLIDE LAYOUT: TIMEFRAME STACK === */
.qt-sl-timeframe-stack {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 12px;
  padding: 18px;
}
.qt-tf-header {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 16px;
}
.qt-tf-header .qt-eyebrow {
  margin-bottom: 6px;
}
.qt-tf-header h2 {
  margin-bottom: 0;
}
.qt-tf-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}
.qt-tf-panel {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  background: #070b12;
  border: 1px solid #263244;
  border-radius: var(--qt-radius-sm);
  overflow: hidden;
  box-shadow:
    inset 0 1px 0 #ffffff0f,
    0 16px 28px #00000022;
}
.qt-tf-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 34px;
  padding: 7px 9px;
  background: #101722;
  border-bottom: 1px solid #263244;
}
.qt-tf-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 34px;
  height: 20px;
  padding: 0 7px;
  border-radius: 4px;
  background: var(--qt-blue-dim);
  border: 1px solid var(--qt-blue30);
  color: var(--qt-blue);
  font-family: var(--qt-mono);
  font-size: 10px;
  font-weight: 800;
}
.qt-tf-title {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--qt-text-sec);
  font-size: 11px;
  font-weight: 700;
}
.qt-tf-chart-frame {
  min-height: 0;
  position: relative;
  background: linear-gradient(180deg, #101722 0%, #090d14 100%);
  overflow: hidden;
}
.qt-tf-chart-frame::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, #ffffff05 0 1px, transparent 1px 100%),
    linear-gradient(180deg, #ffffff04 0 1px, transparent 1px 100%);
  background-size: 42px 42px, 42px 42px;
  opacity: 0.42;
}
.qt-tf-chart-frame .qt-chart-canvas {
  height: 100%;
  min-height: 260px;
}


/* === SHARED SLIDE ELEMENTS === */
.qt-eyebrow {
  font-family: var(--qt-mono);
  font-size: 10px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--qt-blue); margin-bottom: 14px;
}
.qt-slide h2 {
  font-size: 24px; font-weight: 700; letter-spacing: -0.01em;
  line-height: 1.25; margin-bottom: 16px; color: var(--qt-text);
}
.qt-body-text {
  font-size: 14px; color: var(--qt-text-sec); line-height: 1.75;
}
.qt-body-text p { margin-bottom: 10px; }

.qt-callout {
  margin-top: 18px; padding: 14px 16px;
  background: var(--qt-blue-dim);
  border-left: 3px solid var(--qt-blue);
  border-radius: 0 var(--qt-radius-sm) var(--qt-radius-sm) 0;
  font-size: 13px; color: var(--qt-text); line-height: 1.6;
}

/* Bullet items */
.qt-bullet {
  display: flex; gap: 12px; align-items: start;
  padding: 10px 14px; margin-bottom: 8px;
  border-radius: var(--qt-radius-sm);
  background: var(--qt-bg-card); border: 1px solid var(--qt-border);
}
.qt-bullet-icon {
  width: 28px; height: 28px; border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; flex-shrink: 0; font-weight: 700;
}
.qt-bullet-icon.blue  { background: var(--qt-blue-dim);  color: var(--qt-blue);  border: 1px solid var(--qt-blue30); }
.qt-bullet-icon.green { background: var(--qt-green-dim); color: var(--qt-green); border: 1px solid var(--qt-green30); }
.qt-bullet-icon.amber { background: var(--qt-amber-dim); color: var(--qt-amber); border: 1px solid var(--qt-amber30); }
.qt-bullet-icon.red   { background: var(--qt-red-dim);   color: var(--qt-red);   border: 1px solid #f8717130; }
.qt-bullet-text { flex: 1; }
.qt-bullet-text strong {
  color: var(--qt-text); font-size: 13px;
  display: block; margin-bottom: 2px;
}
.qt-bullet-text span {
  font-size: 12px; color: var(--qt-text-sec); line-height: 1.5;
}


/* === OVERLAY ELEMENTS === */
.qt-narr-indicator {
  position: absolute; top: 14px; right: 14px;
  display: flex; align-items: center; gap: 6px;
  font-size: 10px; font-family: var(--qt-mono);
  color: var(--qt-text-muted); opacity: 0; transition: opacity 0.3s;
  background: #0a0c10cc; padding: 4px 10px; border-radius: 12px;
}
.qt-narr-indicator.speaking { opacity: 1; }
.qt-narr-dot {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--qt-green); animation: qtPulse 1.2s infinite;
}

.qt-slide-counter {
  position: absolute; bottom: 14px; right: 14px;
  font-family: var(--qt-mono);
  font-size: 11px; color: var(--qt-text-muted);
  background: #0a0c10cc; padding: 3px 10px; border-radius: 10px;
}


/* === CONTROLS BAR === */
.qt-controls {
  border-top: 1px solid var(--qt-border);
  padding: 10px 16px;
  display: flex; align-items: center; gap: 10px;
  background: var(--qt-bg-card);
}
.qt-btn-play {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--qt-blue); border: none; color: #fff;
  font-size: 13px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.15s;
}
.qt-btn-play:hover { background: #3d8de6; }
.qt-btn-nav {
  width: 26px; height: 26px; border-radius: var(--qt-radius-sm);
  background: transparent; border: 1px solid var(--qt-border);
  color: var(--qt-text-sec); font-size: 12px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: all 0.15s;
}
.qt-btn-nav:hover { border-color: var(--qt-border-light); color: var(--qt-text); }
.qt-btn-nav:disabled { opacity: 0.3; pointer-events: none; }

.qt-progress-container { flex: 1; }
.qt-progress-segs { display: flex; gap: 3px; }
.qt-progress-seg {
  flex: 1; height: 3px; background: var(--qt-border);
  border-radius: 2px; transition: all 0.3s; cursor: pointer;
}
.qt-progress-seg:hover { background: var(--qt-border-light); height: 5px; }
.qt-progress-seg.done    { background: var(--qt-blue); }
.qt-progress-seg.current { background: var(--qt-green); height: 5px; }

.qt-ctrl-info {
  font-family: var(--qt-mono);
  font-size: 11px; color: var(--qt-text-muted);
  flex-shrink: 0; min-width: 40px; text-align: right;
}
.qt-speed-btn {
  font-family: var(--qt-mono);
  font-size: 11px; font-weight: 600;
  padding: 3px 8px; border-radius: 4px;
  background: var(--qt-bg-surface); border: 1px solid var(--qt-border);
  color: var(--qt-text-sec); cursor: pointer;
  flex-shrink: 0; transition: all 0.15s;
}
.qt-speed-btn:hover { color: var(--qt-text); border-color: var(--qt-border-light); }
.qt-voice-select {
  max-width: 150px;
  height: 25px;
  font-family: var(--qt-mono);
  font-size: 10px;
  padding: 3px 26px 3px 8px;
  border-radius: 4px;
  background: var(--qt-bg-surface);
  border: 1px solid var(--qt-border);
  color: var(--qt-text-sec);
  cursor: pointer;
  flex-shrink: 0;
}
.qt-voice-select:hover,
.qt-voice-select:focus {
  color: var(--qt-text);
  border-color: var(--qt-border-light);
  outline: none;
}


/* === RESPONSIVE === */
@media (max-width: 700px) {
  .qt-player-wrap { max-height: none; }
  .qt-slide-area { aspect-ratio: 3 / 2; max-height: none; }
  .qt-sl-split .qt-visual-side { display: none; }
  .qt-sl-split .qt-text-side { padding: 24px 20px; }
  .qt-sl-title { padding: 32px 24px; }
  .qt-sl-title h2 { font-size: 22px; }
  .qt-sl-compare { padding: 24px 20px; }
  .qt-compare-grid { grid-template-columns: 1fr; }
  .qt-sl-summary { padding: 24px 20px; }
  .qt-summary-grid { grid-template-columns: 1fr; }
  .qt-sl-chart {
    grid-template-columns: 1fr;
    padding: 18px 16px;
    gap: 10px;
  }
  .qt-chart-frame,
  .qt-chart-canvas {
    min-height: 210px;
  }
  .qt-sl-stats,
  .qt-sl-quote,
  .qt-sl-definition,
  .qt-sl-steps,
  .qt-sl-before-after {
    padding: 24px 20px;
  }
  .qt-stat-row {
    gap: 10px;
    margin-top: 18px;
  }
  .qt-stat-card {
    min-width: 110px;
    padding: 16px;
  }
  .qt-stat-num { font-size: 26px; }
  .qt-quote-text { font-size: 21px; }
  .qt-def-text { font-size: 14px; }
  .qt-steps-row {
    flex-direction: column;
    gap: 14px;
    margin-top: 18px;
  }
  .qt-step {
    display: grid;
    grid-template-columns: 38px 1fr;
    grid-template-rows: auto auto;
    column-gap: 10px;
    text-align: left;
    width: 100%;
    padding: 0;
  }
  .qt-step-line { display: none; }
  .qt-step-num {
    grid-row: 1 / 3;
    margin: 0;
  }
  .qt-ba-grid {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-top: 14px;
  }
  .qt-ba-divider {
    transform: rotate(90deg);
    padding: 0;
  }
  .qt-sl-full-chart {
    grid-template-columns: 1fr;
    grid-template-rows: auto minmax(210px, 1fr) auto;
    padding: 14px;
  }
  .qt-full-chart-frame .qt-chart-canvas {
    min-height: 210px;
  }
  .qt-controls { gap: 6px; padding: 8px 10px; }
  .qt-voice-select { max-width: 96px; }
}
