/* Live X reply preview inside Launch Studio + Homepage X Tutorial Demo */
.studio-x-guide {
  margin-top: 14px;
  padding: 14px;
  border-radius: 10px;
  background: #0f1419;
  color: #e7e9ea;
  border: 1px solid #24303f;
}
.studio-x-guide-title {
  margin: 0 0 10px;
  font-size: 12px;
  font-weight: 600;
  color: #9fb0c7;
  letter-spacing: 0.01em;
}
.studio-x-thread {
  display: grid;
  gap: 10px;
}
.studio-x-row {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.studio-x-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 5px;
  background: #536471;
}
.studio-x-dot.is-blue { background: #1d9bf0; }
.studio-x-dot.is-sapphire { background: #315cff; box-shadow: 0 0 0 3px rgba(49, 92, 255, 0.22); }
.studio-x-body {
  min-width: 0;
  display: grid;
  gap: 4px;
}
.studio-x-handle {
  font-size: 12px;
  font-weight: 600;
  color: #f7f9f9;
}
.studio-x-text {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #9fb0c7;
}
.studio-x-cmd {
  display: block;
  padding: 7px 9px;
  border-radius: 6px;
  background: #16202a;
  border: 1px solid #283848;
  color: #7cc4fa;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}
.studio-x-bot-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.studio-x-badge {
  font-size: 10px;
  padding: 1px 6px;
  border-radius: 4px;
  background: rgba(49, 92, 255, 0.24);
  color: #9cb4ff;
  font-weight: 600;
}
.studio-x-link {
  font-size: 11px;
  color: #8ab4ff;
  overflow-wrap: anywhere;
}
.studio-x-split {
  margin: 0;
  font-size: 11px;
  color: #d7be82;
}
.studio-x-tip {
  margin: 11px 0 0;
  padding-top: 9px;
  border-top: 1px solid #202c3a;
  font-size: 11px;
  line-height: 1.5;
  color: #8b9bb0;
}

/* Homepage X Tutorial Showcase */
.x-tutorial-showcase {
  margin-top: 28px;
  margin-bottom: 28px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-top: 1px solid rgba(23, 36, 64, 0.09);
  border-bottom: 1px solid rgba(23, 36, 64, 0.09);
}
.x-tutorial-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.08fr);
  gap: 28px;
  align-items: center;
}
.x-tutorial-heading {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #121c32;
}
.x-tutorial-lead {
  margin: 0 0 18px;
  font-size: 15px;
  line-height: 1.6;
  color: #4a5b78;
  max-width: 54ch;
}
.x-tutorial-steps {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}
.x-tutorial-step {
  width: 100%;
  text-align: left;
  padding: 11px 14px;
  border-radius: 10px;
  border: 1px solid #dde5f2;
  background: #ffffff;
  color: #24334d;
  display: grid;
  gap: 3px;
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease;
}
.x-tutorial-step:hover {
  border-color: #9cb4f5;
}
.x-tutorial-step.is-active {
  border-color: #315cff;
  background: #f2f6ff;
}
.x-step-title {
  font-size: 14px;
  font-weight: 650;
  color: #13203b;
}
.x-step-desc {
  font-size: 12.5px;
  line-height: 1.5;
  color: #4f617f;
}
.x-tutorial-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.x-demo-stage {
  min-width: 0;
}
.x-demo-video-wrap {
  border-radius: 14px;
  overflow: hidden;
  background: #0b0f19;
  border: 1px solid #223047;
  box-shadow: 0 18px 42px rgba(13, 24, 48, 0.16);
}
.x-demo-video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
}

.x-demo-window {
  border-radius: 14px;
  background: #0f1419;
  color: #e7e9ea;
  border: 1px solid #263341;
  box-shadow: 0 18px 42px rgba(13, 24, 48, 0.15);
  overflow: hidden;
}
.x-demo-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #161d24;
  border-bottom: 1px solid #253240;
  font-size: 12px;
  color: #8b98a5;
}
.x-demo-dots {
  display: flex;
  gap: 5px;
}
.x-demo-dots i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #384654;
  display: block;
}
.x-demo-step-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(49, 92, 255, 0.22);
  color: #adc2ff;
  font-weight: 600;
  font-size: 11px;
}
.x-demo-body {
  padding: 14px;
  display: grid;
  gap: 11px;
}
.x-tweet-card,
.x-composer-box,
.x-bot-reply-box {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}
.x-avatar {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  background: #33465c;
}
.x-avatar-you { background: #1d9bf0; }
.x-avatar-bot { background: #315cff; }
.x-tweet-main,
.x-composer-main {
  min-width: 0;
}
.x-tweet-head {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 13px;
}
.x-tweet-head span {
  color: #8b98a5;
  font-size: 12px;
}
.x-tweet-text {
  margin: 4px 0 8px;
  font-size: 13px;
  line-height: 1.45;
  color: #e7e9ea;
}
.x-meme-box {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  background: #17202a;
  border: 1px solid #283645;
}
.x-meme-art {
  flex: none;
  width: 64px;
  height: 44px;
  border-radius: 7px;
  background: linear-gradient(135deg, #2144b8, #315cff);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  color: #ffffff;
  font-size: 11px;
}
.x-meme-caption {
  font-size: 11.5px;
  color: #97a8ba;
  line-height: 1.4;
}

.x-composer-box,
.x-bot-reply-box,
.x-terminal-mini,
.x-payout-mini {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #253444;
  background: #141d26;
  transition: border-color 0.2s ease, opacity 0.2s ease;
}
.x-demo-window[data-active-step="0"] [data-phase-box="0"],
.x-demo-window[data-active-step="1"] [data-phase-box="1"],
.x-demo-window[data-active-step="2"] [data-phase-box="2"],
.x-demo-window[data-active-step="3"] [data-phase-box="3"] {
  border-color: #4c74ff;
  background: #172333;
}
.x-demo-window[data-active-step="0"] [data-phase-box="2"],
.x-demo-window[data-active-step="0"] [data-phase-box="3"],
.x-demo-window[data-active-step="1"] [data-phase-box="2"],
.x-demo-window[data-active-step="1"] [data-phase-box="3"] {
  display: none;
}
.x-demo-window[data-active-step="2"] [data-phase-box="0"],
.x-demo-window[data-active-step="2"] [data-phase-box="3"],
.x-demo-window[data-active-step="3"] [data-phase-box="0"],
.x-demo-window[data-active-step="3"] [data-phase-box="2"] {
  display: none;
}

.x-composer-input {
  display: block;
  font-size: 12.5px;
  line-height: 1.5;
  color: #8ed0ff;
  overflow-wrap: anywhere;
}
.x-bounty-hl {
  font-style: normal;
  color: #ebd08f;
}
.x-composer-bar {
  margin-top: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.x-composer-hint {
  font-size: 11px;
  color: #7f91a4;
}
.x-reply-pill {
  padding: 4px 12px;
  border-radius: 999px;
  background: #1d9bf0;
  color: #ffffff;
  font-size: 12px;
  font-weight: 650;
}
.x-bot-tag {
  padding: 1px 5px;
  border-radius: 4px;
  background: rgba(49, 92, 255, 0.25);
  color: #a9c0ff !important;
  font-weight: 600;
}
.x-og-mini-card {
  margin-top: 6px;
  padding: 10px 12px;
  border-radius: 9px;
  background: #f5f8ff;
  color: #15223c;
  display: grid;
  gap: 5px;
}
.x-og-mini-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  font-size: 10.5px;
  font-weight: 700;
  color: #315cff;
}
.x-og-mini-top code {
  color: #4f617f;
  font-weight: 500;
}
.x-og-mini-title {
  font-size: 14px;
  color: #121e36;
}
.x-og-mini-title span {
  font-size: 12px;
  color: #526482;
}
.x-og-mini-cta {
  font-size: 12px;
  font-weight: 650;
  color: #2548be;
}

.x-terminal-head,
.x-payout-head {
  font-size: 12px;
  font-weight: 600;
  color: #9cb1ca;
  margin-bottom: 8px;
}
.x-terminal-chips {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}
.x-terminal-chips span {
  padding: 5px 10px;
  border-radius: 6px;
  font-size: 12px;
  background: #0f161f;
  border: 1px solid #2b3b4e;
  color: #b7c6d8;
}
.x-terminal-chips span.is-picked {
  border-color: #315cff;
  background: rgba(49, 92, 255, 0.24);
  color: #ffffff;
  font-weight: 650;
}
.x-terminal-confirm {
  padding: 8px 12px;
  border-radius: 7px;
  background: #315cff;
  color: #ffffff;
  font-size: 12.5px;
  font-weight: 650;
  text-align: center;
}
.x-terminal-sub,
.x-payout-sub {
  margin: 7px 0 0;
  font-size: 11.5px;
  color: #8fa2b7;
}
.x-payout-mini {
  background: linear-gradient(145deg, #111622, #1b2232);
  border-color: #9f8450;
}
.x-payout-amount {
  font-size: 24px;
  font-weight: 750;
  color: #ebd08f;
  letter-spacing: -0.02em;
}

@media (max-width: 860px) {
  .x-tutorial-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }
}
