/* Scoped SEO modals hero — CreationPrompt personality + dual-pane model picker. */
.seo-modals-page {
  --sm-panel: rgba(18, 22, 30, 0.88);
  --sm-panel-2: #1c1c1f;
  --sm-trigger: #181d27;
  --sm-border: #343b49;
  --sm-text: #f5f6f7;
  --sm-muted: #bac3d0;
  --sm-active: #465fff;
  --sm-purple: #6941c6;
  --sm-purple-brand: #6a3bff;
}

.seo-modals-hero {
  position: relative;
  overflow: visible;
  display: flex;
  flex-shrink: 0;
  box-sizing: border-box;
  width: 100%;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  /* 64px = fixed site header (.hv3-header-fixed) */
  padding: calc(64px + 48px) 24px 48px;
  background: #0a0d12;
  color: #fff;
}

/* Stacked LPs still fill the first screen; only skip a huge extra pad under the hero */
.seo-modals-hero.seo-modals-hero--section-stack {
  flex-shrink: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 48px;
}

.seo-modals-hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(
      ellipse 80% 55% at 50% 35%,
      rgba(106, 59, 255, 0.28),
      transparent 60%
    ),
    radial-gradient(
      ellipse 60% 40% at 20% 80%,
      rgba(52, 89, 255, 0.18),
      transparent 55%
    ),
    #0a0d12;
  pointer-events: none;
}

/* Soft blur + fade into the next dark section */
.seo-modals-hero-bg::after {
  content: '';
  position: absolute;
  inset-inline: 0;
  bottom: 0;
  z-index: 1;
  height: min(280px, 42%);
  pointer-events: none;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(10, 13, 18, 0.35) 40%,
    rgba(10, 13, 18, 0.82) 72%,
    #0a0d12 100%
  );
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  mask-image: linear-gradient(to bottom, transparent 0%, black 55%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 55%);
}

.seo-modals-hero-bg img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.35;
  mix-blend-mode: luminosity;
}

.seo-modals-hero-bg img.seo-modals-hero-bg-custom {
  opacity: 1;
  mix-blend-mode: normal;
}

.seo-modals-hero-bg--photo {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.seo-modals-hero-bg--photo::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(
      ellipse 80% 55% at 50% 35%,
      rgba(106, 59, 255, 0.22),
      transparent 60%
    ),
    linear-gradient(
      to bottom,
      rgba(10, 13, 18, 0.32) 0%,
      rgba(10, 13, 18, 0.58) 100%
    );
}

/* Stronger bottom blur so a photo hero melts into the next section */
.seo-modals-hero--bottom-blend .seo-modals-hero-bg::after {
  height: min(340px, 52%);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(10, 13, 18, 0.4) 28%,
    rgba(10, 13, 18, 0.86) 64%,
    #0a0d12 100%
  );
  mask-image: linear-gradient(to bottom, transparent 0%, black 40%);
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 40%);
}

.seo-modals-hero--ttv.seo-modals-hero--bottom-blend .seo-modals-hero-bg::after {
  height: min(160px, 26%);
}

/* Text-to-video: dark scrim over hero video (no purple wash). */
.seo-modals-hero--ttv .seo-modals-hero-bg {
  background: #0a0d12;
}

.seo-modals-hero--ttv .seo-modals-hero-bg--photo::before {
  background: rgba(0, 0, 0, 0.45);
}

/* Sit title + prompt higher in the viewport. */
.seo-modals-hero.seo-modals-hero--ttv.seo-modals-hero--section-stack {
  padding-top: calc(64px + 24px);
  padding-bottom: 120px;
}

.seo-modals-hero--ttv .seo-modals-hero-inner {
  padding-top: 0;
}

.seo-modals-hero--ttv .seo-modals-hero-title-line,
.seo-modals-hero--ttv .seo-modals-hero-title-line--gradient {
  background: none;
  background-image: none;
  background-clip: unset;
  -webkit-background-clip: unset;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

/* AI Photo Editor: solid white hero title. */
.seo-modals-hero--photo-editor .seo-modals-hero-title-line,
.seo-modals-hero--photo-editor .seo-modals-hero-title-line--gradient {
  background: none;
  background-image: none;
  background-clip: unset;
  -webkit-background-clip: unset;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

/* AI Art Generator: solid white title + subtitle over hero video. */
.seo-modals-hero--art-gen .seo-modals-hero-title-line,
.seo-modals-hero--art-gen .seo-modals-hero-title-line--gradient {
  background: none;
  background-image: none;
  background-clip: unset;
  -webkit-background-clip: unset;
  color: #fff;
  -webkit-text-fill-color: #fff;
}

.seo-modals-hero--art-gen .seo-modals-hero-inner > .seo-modals-sub {
  color: #fff;
}

.seo-modals-hero--art-gen .seo-modals-hero-bg--photo::before {
  background: rgba(0, 0, 0, 0.85);
}

.seo-modals-hero-bg-video {
  display: block;
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.45;
}

.seo-modals-hero-bg-video--with-poster {
  opacity: 1;
  z-index: 0;
}

.seo-modals-hero--ai-image .seo-modals-hero-bg-video--with-poster {
  opacity: 1;
}

.seo-modals-hero-bg-fallback {
  display: none;
}

/* Layered 3D scene — image-to-video-ad (bgBackdrop / --stack-bg only) */
.seo-modals-hero.seo-modals-hero--stack-bg {
  overflow: hidden;
  align-items: flex-start;
  flex-shrink: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  padding-top: calc(64px + 24px);
  padding-bottom: 0;
  background: #05060c;
}

.seo-modals-hero--stack-bg.seo-modals-hero--section-stack {
  flex-shrink: 0;
  height: 100vh;
  height: 100dvh;
  min-height: 100vh;
  min-height: 100dvh;
  padding-bottom: 0;
}

.seo-modals-hero--stack-bg .seo-modals-hero-bg {
  z-index: 0;
  background:
    radial-gradient(
      circle at 50% 35%,
      rgba(77, 45, 170, 0.16),
      transparent 45%
    ),
    #05060c;
}

.seo-modals-hero--stack-bg .seo-modals-hero-bg::after {
  display: none;
}

/* Match stacked-hero fill to the page (`bg-primary`) instead of #05060c. */
.seo-modals-hero--page-bg.seo-modals-hero,
.seo-modals-hero--page-bg.seo-modals-hero--stack-bg,
.seo-modals-hero--page-bg.seo-modals-hero--stack-bg.seo-modals-hero--section-stack {
  background: var(--color-primary);
}

.seo-modals-hero--page-bg.seo-modals-hero--stack-bg .seo-modals-hero-bg {
  background: var(--color-primary);
}

.seo-modals-hero-scene {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  isolation: isolate;
}

.seo-modals-hero-glow {
  position: absolute;
  left: 50%;
  bottom: 36px;
  z-index: 0;
  width: 980px;
  height: 460px;
  pointer-events: none;
  background: radial-gradient(
    ellipse,
    rgba(99, 55, 220, 0.42) 0%,
    rgba(80, 42, 190, 0.2) 38%,
    transparent 72%
  );
  filter: blur(18px);
  transform: translateX(-50%);
}

.seo-modals-hero-floor {
  position: absolute;
  left: -15%;
  bottom: -12%;
  z-index: 2;
  width: 130%;
  height: 52%;
  pointer-events: none;
  background-color: rgba(18, 8, 48, 0.18);
  background-image:
    repeating-linear-gradient(
      90deg,
      rgba(140, 96, 255, 0.48) 0,
      rgba(140, 96, 255, 0.48) 1px,
      transparent 1px,
      transparent 80px
    ),
    repeating-linear-gradient(
      0deg,
      rgba(140, 96, 255, 0.4) 0,
      rgba(140, 96, 255, 0.4) 1px,
      transparent 1px,
      transparent 48px
    );
  transform: perspective(650px) rotateX(62deg) scaleX(1.15);
  transform-origin: center top;
  mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0.75) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
  -webkit-mask-image: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 1),
    rgba(0, 0, 0, 0.75) 50%,
    rgba(0, 0, 0, 0.2) 100%
  );
}

.seo-modals-hero-card-scene {
  position: absolute;
  left: 50%;
  top: 36%;
  bottom: -8%;
  z-index: 10;
  display: flex;
  width: max-content;
  min-width: 112vw;
  align-items: flex-start;
  justify-content: center;
  gap: clamp(4px, 0.4vw, 10px);
  pointer-events: none;
  user-select: none;
  perspective: 1400px;
  transform: translateX(-50%) scale(1.16);
  transform-origin: center top;
  transform-style: preserve-3d;
}

.seo-modals-hero-fan-card {
  position: relative;
  flex-shrink: 0;
  width: clamp(190px, 14vw, 270px);
  height: clamp(340px, 32vw, 500px);
  margin-inline: -6px;
  overflow: hidden;
  border-radius: 16px;
  transform-origin: bottom center;
}

.seo-modals-hero-fan-card > * {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.itv-hero-card-scene {
  --itv-card-w: clamp(190px, 14vw, 270px);
  --itv-card-h: clamp(340px, 32vw, 500px);
  --itv-edge-bump: 30px;
  --itv-edge-gap: 18px;
  gap: 24px;
}

.itv-hero-card-scene .seo-modals-hero-fan-card {
  --itv-sx: var(--itv-card-scale, 1);
  --itv-sy: var(--itv-card-scale, 1);
  width: var(--itv-card-w);
  height: var(--itv-card-h);
  margin-inline: calc(var(--itv-card-w) * (var(--itv-sx) - 1) / 2);
  transform-origin: bottom center;
  transform: rotateY(var(--itv-ry, 0deg)) scaleX(var(--itv-sx))
    scaleY(var(--itv-sy));
}

.itv-hero-card-scene .seo-modals-hero-fan-card:nth-child(2),
.itv-hero-card-scene .seo-modals-hero-fan-card:nth-child(6) {
  --itv-card-scale: 1.06;
}

.itv-hero-card-scene .seo-modals-hero-fan-card:nth-child(3),
.itv-hero-card-scene .seo-modals-hero-fan-card:nth-child(5) {
  --itv-card-scale: 0.98;
}

.itv-hero-card-scene .seo-modals-hero-fan-card:nth-child(4) {
  --itv-card-scale: 0.91;
}

/* Outermost: same scale as previous, +30px height, pulled up so bottoms stay on the floor. */
.itv-hero-card-scene .seo-modals-hero-fan-card:nth-child(1),
.itv-hero-card-scene .seo-modals-hero-fan-card:nth-child(7) {
  --itv-sx: 1.06;
  --itv-sy: 1.06;
  height: calc(var(--itv-card-h) + var(--itv-edge-bump));
  margin-top: calc(var(--itv-edge-bump) * -1);
}

.itv-hero-card-scene .seo-modals-hero-fan-card:nth-child(1) {
  margin-inline-end: calc(
    var(--itv-card-w) * (var(--itv-sx) - 1) / 2 + var(--itv-edge-gap)
  );
}

.itv-hero-card-scene .seo-modals-hero-fan-card:nth-child(7) {
  margin-inline-start: calc(
    var(--itv-card-w) * (var(--itv-sx) - 1) / 2 + var(--itv-edge-gap)
  );
}

.itv-hero-fan-media {
  position: relative;
  height: 100%;
  width: 100%;
  overflow: hidden;
}

.itv-hero-fan-media-layer {
  position: absolute;
  inset: 0;
}

.itv-hero-fan-media-layer > * {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

.seo-modals-hero--stack-bg .seo-modals-hero-inner {
  z-index: 30;
  padding-top: 8px;
  background: transparent;
}

.seo-modals-hero.seo-modals-hero--rtv,
.seo-modals-hero--rtv.seo-modals-hero--stack-bg,
.seo-modals-hero--rtv.seo-modals-hero--section-stack,
.seo-modals-hero--rtv.seo-modals-hero--stack-bg.seo-modals-hero--section-stack {
  z-index: 40;
  height: auto;
  min-height: 0;
  overflow: visible;
  padding-bottom: 0;
  background: transparent;
}

.seo-modals-hero--rtv .seo-modals-hero-bg,
.seo-modals-hero--rtv.seo-modals-hero--stack-bg .seo-modals-hero-bg {
  background: transparent;
}

.seo-modals-hero--rtv .seo-modals-hero-bg::after {
  display: none;
}

.seo-modals-hero--rtv {
  color: var(--color-txt-primary-df);
}

.seo-modals-hero--rtv .seo-modals-hero-inner h1,
.seo-modals-hero--rtv
  .seo-modals-hero-title-line:not(.seo-modals-hero-title-line--gradient) {
  color: var(--color-txt-primary-df);
}

.seo-modals-hero--rtv .seo-modals-hero-inner > .seo-modals-sub {
  color: var(--color-txt-700);
}

.seo-modals-hero--rtv.seo-modals-hero--stack-bg .seo-modals-hero-inner {
  padding-top: 140px;
}

.seo-modals-hero--rtv.seo-modals-hero--stack-bg .seo-modals-prompt {
  margin-top: 32px;
}

.seo-modals-hero--stack-bg .seo-modals-hero-inner > .seo-modals-sub {
  margin-bottom: 20px;
}

.seo-modals-hero--stack-bg .seo-modals-hero-title-line--gradient {
  background-image: linear-gradient(90deg, #8b6cff, #a66cff, #e984da);
}

.seo-modals-hero--stack-bg .seo-modals-prompt {
  z-index: 30;
  margin-top: 12px;
}

.seo-modals-hero-actions {
  z-index: 30;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 12px;
}

.seo-modals-hero--stack-bg .seo-modals-prompt-body {
  border: 1px solid rgba(140, 110, 255, 0.38);
  border-radius: 20px;
  background: rgba(18, 22, 30, 0.88);
  box-shadow:
    0 0 0 1px rgba(124, 108, 255, 0.08),
    0 18px 50px rgba(70, 40, 160, 0.22),
    0 0 40px rgba(100, 70, 220, 0.12);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

@media (max-width: 900px) {
  .seo-modals-hero-fan-card:nth-child(1),
  .seo-modals-hero-fan-card:nth-child(7) {
    display: none;
  }

  .itv-hero-card-scene .seo-modals-hero-fan-card:nth-child(2),
  .itv-hero-card-scene .seo-modals-hero-fan-card:nth-child(6) {
    --itv-sx: 0.98;
    --itv-sy: 0.98;
    height: calc(var(--itv-card-h) + var(--itv-edge-bump));
    margin-top: calc(var(--itv-edge-bump) * -1);
  }

  .itv-hero-card-scene .seo-modals-hero-fan-card:nth-child(2) {
    margin-inline-end: calc(
      var(--itv-card-w) * (var(--itv-sx) - 1) / 2 + var(--itv-edge-gap)
    );
  }

  .itv-hero-card-scene .seo-modals-hero-fan-card:nth-child(6) {
    margin-inline-start: calc(
      var(--itv-card-w) * (var(--itv-sx) - 1) / 2 + var(--itv-edge-gap)
    );
  }

  .seo-modals-hero-floor {
    opacity: 0.7;
  }

  .seo-modals-hero-card-scene {
    top: 42%;
    transform: translateX(-50%) scale(1.08);
  }
}

@media (max-width: 720px) {
  .seo-modals-hero-fan-card:nth-child(2),
  .seo-modals-hero-fan-card:nth-child(6) {
    display: none;
  }

  .seo-modals-hero-floor {
    opacity: 0.4;
  }

  .seo-modals-hero-card-scene {
    top: 46%;
    transform: translateX(-50%) scale(1.04);
  }

  .seo-modals-hero-fan-card {
    width: clamp(150px, 26vw, 200px);
    height: clamp(260px, 38vw, 380px);
  }

  .itv-hero-card-scene {
    --itv-card-w: clamp(150px, 26vw, 200px);
    --itv-card-h: clamp(260px, 38vw, 380px);
    gap: 16px;
  }

  .itv-hero-card-scene .seo-modals-hero-fan-card:nth-child(3),
  .itv-hero-card-scene .seo-modals-hero-fan-card:nth-child(5) {
    --itv-sx: 0.91;
    --itv-sy: 0.91;
    height: calc(var(--itv-card-h) + var(--itv-edge-bump));
    margin-top: calc(var(--itv-edge-bump) * -1);
  }

  .itv-hero-card-scene .seo-modals-hero-fan-card:nth-child(3) {
    margin-inline-end: calc(
      var(--itv-card-w) * (var(--itv-sx) - 1) / 2 + var(--itv-edge-gap)
    );
  }

  .itv-hero-card-scene .seo-modals-hero-fan-card:nth-child(5) {
    margin-inline-start: calc(
      var(--itv-card-w) * (var(--itv-sx) - 1) / 2 + var(--itv-edge-gap)
    );
  }
}

.seo-modals-hero-inner {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  margin: 0 auto;
  padding-top: 40px;
  text-align: center;
}

.seo-modals-hero-inner h1 {
  margin: 0 0 16px;
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 700;
  letter-spacing: -1.2px;
  line-height: 1.1;
  color: #fff;
}

.seo-modals-hero-title-line {
  display: block;
  color: #fff;
}

.seo-modals-hero-title-line--gradient {
  background-image: linear-gradient(to bottom, #ffffff 28%, #717680 92%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

@media (min-width: 1024px) {
  .seo-modals-hero-inner h1 {
    margin-bottom: 12px;
  }
}

.seo-modals-hero-inner > .seo-modals-sub {
  margin: 0 auto 40px;
  max-width: min(760px, 100%);
  color: rgba(255, 255, 255, 0.82);
  font-size: 18px;
  line-height: 28px;
  white-space: pre-line;
}

.seo-modals-prompt {
  position: relative;
  z-index: 3;
  width: min(938px, 100%);
  margin-inline: auto;
  text-align: left;
  color: var(--sm-text);
}

/* Visible on first paint, until the Work Composer script replaces it. */
.seo-modals-prompt-shell {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  gap: 5px;
  min-height: 184px;
  pointer-events: none;
}

.seo-modals-prompt-shell-rail {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 5px;
  border: 1px solid #3d3d3d;
  border-radius: 24px;
  background: #12161e;
}

.seo-modals-prompt-shell-rail span {
  width: 44px;
  height: 36px;
  border-radius: 20px;
}

.seo-modals-prompt-shell-rail span:nth-child(2) {
  background: #252b37;
}

.seo-modals-prompt-shell-card {
  display: flex;
  min-height: 168px;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 16px 14px;
  border: 1px solid #3d3d3d;
  border-radius: 24px;
  background: #12161e;
}

.seo-modals-prompt-shell-card p {
  margin: 0;
  color: #717680;
  font-size: 16px;
  line-height: 24px;
}

.seo-modals-prompt-shell-bar {
  display: flex;
  align-items: center;
  gap: 8px;
}

.seo-modals-prompt-shell-bar > span {
  display: inline-flex;
  height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 20px;
  background: #252b37;
  color: #e9eaeb;
  font-size: 12px;
  line-height: 28px;
  white-space: nowrap;
}

.seo-modals-prompt-shell-bar > .seo-modals-prompt-shell-generate {
  height: 44px;
  margin-left: auto;
  padding: 0 18px;
  border-radius: 24px;
  background: #6a3bff;
  font-size: 14px;
  line-height: 44px;
}

.seo-modals-prompt-body {
  position: relative;
  display: flex;
  min-height: 220px;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 18px 18px;
  overflow: visible;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 16px;
  background: var(--sm-panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.seo-modals-prompt-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 0 10px;
}

.seo-modals-uploads {
  display: flex;
  max-width: 280px;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 8px;
}

.seo-modals-add {
  display: grid;
  width: 56px;
  height: 72px;
  flex: 0 0 56px;
  place-items: center;
  border: 1px dashed rgba(134, 134, 140, 0.6);
  border-radius: 8px;
  background: #252b37;
  color: #64748b;
  cursor: pointer;
  transition: border-color 0.2s;
}

.seo-modals-add:hover {
  border-color: #6c7cff;
}

.seo-modals-thumb {
  position: relative;
  width: 56px;
  height: 72px;
  flex: 0 0 56px;
  overflow: visible;
  border: 1px solid #343b49;
  border-radius: 8px;
  background: #252b37;
}

.seo-modals-thumb > img {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}

.seo-modals-thumb > button {
  position: absolute;
  z-index: 5;
  top: -7px;
  right: -7px;
  display: flex;
  width: 18px;
  height: 18px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  color: #fff;
  cursor: pointer;
}

.seo-modals-prompt-main textarea {
  width: 100%;
  min-height: 96px;
  flex: 1;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--sm-text);
  font:
    500 16px/22px Inter,
    system-ui,
    sans-serif;
}

.seo-modals-prompt-main textarea::placeholder {
  color: var(--sm-muted);
  opacity: 1;
}

.seo-modals-prompt-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 0 6px 0 10px;
}

.seo-modals-prompt-controls {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.seo-modals-trigger {
  display: inline-flex;
  max-width: 240px;
  height: 40px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  overflow: hidden;
  border: 0;
  border-radius: 4px;
  background: var(--sm-trigger);
  color: #fff;
  font:
    500 14px/18px Inter,
    system-ui,
    sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.seo-modals-trigger > span {
  overflow: hidden;
  text-overflow: ellipsis;
}

.seo-modals-trigger svg:last-child {
  width: 16px;
  height: 16px;
  margin-left: auto;
  flex: 0 0 16px;
  opacity: 0.8;
}

.seo-modals-param {
  display: inline-flex;
  height: 40px;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border: 0;
  border-radius: 4px;
  background: var(--sm-trigger);
  color: #fff;
  font:
    500 14px/18px Inter,
    system-ui,
    sans-serif;
  cursor: pointer;
}

.seo-modals-param i {
  width: 1px;
  height: 18px;
  background: #64748b;
  opacity: 0.8;
}

.seo-modals-params-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  display: flex;
  min-width: 280px;
  max-width: min(420px, calc(100vw - 48px));
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--sm-border);
  border-radius: 12px;
  background: var(--sm-panel-2);
  box-shadow:
    0 0 2px rgba(255, 255, 255, 0.3),
    0 16px 48px rgba(0, 0, 0, 0.45);
  transform-origin: top left;
  animation: seo-modals-menu-in 1s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes seo-modals-menu-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.98);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.seo-modals-param-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seo-modals-param-group > b {
  color: #f5f6f7;
  font-size: 13px;
  font-weight: 600;
}

.seo-modals-param-group > div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.seo-modals-param-group button {
  position: relative;
  overflow: hidden;
  min-width: 48px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid var(--sm-border);
  border-radius: 6px;
  background: var(--sm-trigger);
  color: #d5d7da;
  font:
    500 13px/18px Inter,
    system-ui,
    sans-serif;
  cursor: pointer;
  transition:
    color 1s cubic-bezier(0.22, 1, 0.36, 1),
    border-color 1s cubic-bezier(0.22, 1, 0.36, 1),
    background-color 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.seo-modals-param-group button:hover {
  background: #303036;
  color: #fff;
}

.seo-modals-param-group button.is-active {
  border-color: var(--sm-active);
  color: #fff;
}

.seo-modals-param-group .filter-choice-pill {
  position: absolute;
  inset: 0;
  z-index: 0;
  border-radius: 6px;
  background: var(--sm-active);
}

.seo-modals-param-group .filter-choice-label {
  position: relative;
  z-index: 1;
}

.seo-modals-submit-wrap {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 10px;
}

.seo-modals-credits {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #bac3d0;
  font:
    500 14px/20px Inter,
    system-ui,
    sans-serif;
  white-space: nowrap;
  user-select: none;
}

.seo-modals-credits em {
  font-style: normal;
}

.seo-modals-submit {
  display: inline-flex;
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: var(--sm-purple);
  color: #fff;
  cursor: pointer;
  transition: opacity 0.2s;
}

.seo-modals-submit:hover {
  opacity: 0.9;
}

.seo-modals-submit:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.seo-modals-history {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.seo-modals-history a {
  color: rgba(255, 255, 255, 0.65);
  font-size: 14px;
  text-decoration: none;
}

.seo-modals-history a:hover {
  color: #fff;
}

.seo-modals-dropdown-wrap {
  position: relative;
  flex: 0 0 auto;
}

/* Dual-pane model dropdown (screenshot 2 layout, anchored like home CreationPrompt) */
.seo-modals-dropdown {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  bottom: auto;
  left: 0;
  display: grid;
  width: min(640px, calc(100vw - 48px));
  height: min(480px, 70vh);
  max-height: min(480px, 70vh);
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--sm-border);
  border-radius: 12px;
  background: var(--sm-panel-2);
  box-shadow:
    0 0 2px rgba(255, 255, 255, 0.3),
    0 16px 48px rgba(0, 0, 0, 0.45);
  transform-origin: top left;
  animation: seo-modals-menu-in 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.seo-modals-dropdown-pane {
  display: flex;
  height: 100%;
  min-height: 0;
  flex-direction: column;
  overflow: hidden;
  border-right: 1px solid var(--sm-border);
}

.seo-modals-dropdown-pane:last-child {
  border-right: 0;
}

.seo-modals-search {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 12px;
  padding: 10px 12px;
  border: 1px solid var(--sm-border);
  border-radius: 10px;
  background: var(--sm-trigger);
  color: var(--sm-muted);
}

.seo-modals-search input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--sm-text);
  font:
    500 14px/20px Inter,
    system-ui,
    sans-serif;
}

.seo-modals-pane-title {
  padding: 4px 16px 8px;
  color: var(--sm-muted);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.seo-modals-list {
  display: flex;
  min-height: 0;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  padding: 0 8px 36px;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
}

.seo-modals-row {
  display: flex;
  width: 100%;
  min-height: 58px;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: 10px 12px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #d5d7da;
  text-align: left;
  cursor: pointer;
  transition:
    background-color 1s cubic-bezier(0.22, 1, 0.36, 1),
    color 1s cubic-bezier(0.22, 1, 0.36, 1);
}

.seo-modals-row:hover,
.seo-modals-row.is-active {
  background: #303036;
  color: #fff;
}

.seo-modals-row-head {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 8px;
}

.seo-modals-row-head svg {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.seo-modals-row-head b {
  min-width: 0;
  overflow: hidden;
  color: #f5f6f7;
  font-size: 14px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-modals-row-head .chevron {
  margin-left: auto;
  width: 16px;
  height: 16px;
  opacity: 0.7;
}

.seo-modals-badge {
  padding: 1px 6px;
  border-radius: 4px;
  background: #5d5fef;
  color: #fff;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.seo-modals-badge.is-new {
  background: #12b76a;
}

.seo-modals-badge.is-popular {
  background: #ee46bc;
}

.seo-modals-row small {
  overflow: hidden;
  color: var(--sm-muted);
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-modals-row-meta {
  color: #717680;
  font-size: 12px;
}

@media (max-width: 720px) {
  .seo-modals-hero {
    align-items: flex-start;
    height: 100vh;
    height: 100dvh;
    min-height: 100vh;
    min-height: 100dvh;
    padding: calc(64px + 24px) 16px 40px;
  }

  .seo-modals-hero.seo-modals-hero--stack-bg {
    padding: calc(64px + 12px) 16px 0;
  }

  .seo-modals-hero-inner {
    padding-top: 24px;
  }

  .seo-modals-dropdown {
    width: min(360px, calc(100vw - 32px));
    height: min(520px, 75vh);
    max-height: min(520px, 75vh);
    grid-template-columns: 1fr;
    grid-template-rows: minmax(0, 1fr) minmax(0, 1fr);
  }

  .seo-modals-dropdown-pane {
    border-right: 0;
    border-bottom: 1px solid var(--sm-border);
    height: auto;
    min-height: 0;
  }

  .seo-modals-dropdown-pane:last-child {
    border-bottom: 0;
  }
}

/* VidAU AI Image page column — Figma frame is 1400px. */
.vidau-ai-image-page .max-w-\[1600px\],
.vidau-ai-image-page .max-w-\[1402px\],
.vidau-ai-video-page .max-w-\[1600px\],
.vidau-ai-video-page .max-w-\[1402px\] {
  max-width: 1400px;
}

/* VidAU AI Image hero — Figma composer on the photo, logos pinned to the bottom. */
.seo-modals-hero.seo-modals-hero--ai-image.seo-modals-hero--section-stack,
.seo-modals-hero.seo-modals-hero--ai-video.seo-modals-hero--section-stack {
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: auto;
  min-height: calc(100vh - 64px);
  min-height: calc(100dvh - 64px);
  padding-bottom: 28px;
  overflow: visible;
}

.seo-modals-hero--ai-image .seo-modals-hero-inner,
.seo-modals-hero--ai-video .seo-modals-hero-inner {
  margin-top: auto;
  margin-bottom: auto;
}

/* The photo tint stays inside the background. Title, subtitle, and buttons paint above it.
   Header shell is z-index 9999. Only the open model menu sits above the logo strip. */
.seo-modals-hero--ai-image .seo-modals-hero-bg,
.seo-modals-hero--ai-video .seo-modals-hero-bg {
  z-index: 0;
}

.seo-modals-hero--ai-image .seo-modals-hero-inner,
.seo-modals-hero--ai-video .seo-modals-hero-inner,
.seo-modals-hero--ai-image .seo-modals-prompt,
.seo-modals-hero--ai-video .seo-modals-prompt,
.seo-modals-prompt vidau-work-composer,
.seo-modals-prompt vidau-work-composer form {
  z-index: auto;
}

/* Chat, image, and video tab icons sit in the center of the prompt pill. */
.seo-modals-prompt vidau-work-composer form > .flex.flex-row.justify-start {
  justify-content: center;
}

.seo-modals-hero--ai-image .seo-modals-hero-footer,
.seo-modals-hero--ai-video .seo-modals-hero-footer {
  position: relative;
  z-index: 2;
  right: auto;
  bottom: auto;
  left: auto;
  width: 100%;
  flex-shrink: 0;
  margin-top: 28px;
}

.seo-modals-prompt [data-work-composer-model-menu] {
  z-index: 1000;
}

.seo-modals-prompt [data-work-composer-model-menu] {
  position: absolute;
}

/* Figma marks are mixed black/white. Force them white on the dark chips. */
.seo-modals-prompt [data-work-composer-model-menu] img,
.seo-modals-prompt button[aria-expanded] > span.bg-black > img {
  filter: brightness(0) invert(1);
}

/* Auto ships as a cube on a light chip. Paint the VidAU mark on a dark chip. */
.seo-modals-prompt button[aria-expanded] > span.bg-\[\#fafafa\] {
  background-color: #12161e !important;
  background-image: var(--seo-auto-logo);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 8px 12px;
}

.seo-modals-prompt button[aria-expanded] > span.bg-\[\#fafafa\] svg {
  visibility: hidden;
}

.seo-modals-prompt [data-work-composer-model-menu] span.bg-\[\#12161e\] {
  background-image: var(--seo-auto-logo);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 11px 16px;
}

.seo-modals-prompt [data-work-composer-model-menu] span.bg-\[\#12161e\] svg,
.seo-modals-prompt [data-work-composer-model-menu] span.bg-\[\#12161e\] img {
  visibility: hidden;
}

.seo-modals-hero--ai-image .seo-modals-hero-bg--photo::before {
  z-index: 1;
  background: rgba(0, 0, 0, 0.45);
}

.seo-modals-hero--ai-image .seo-modals-hero-bg::after {
  height: 140px;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  mask-image: none;
  -webkit-mask-image: none;
  background: linear-gradient(to bottom, transparent, #0a0d12);
}

.seo-modals-hero--ai-image .seo-modals-hero-inner {
  width: min(980px, 100%);
  padding-top: 0;
}

.seo-modals-hero--ai-image .seo-modals-hero-inner h1 {
  margin: 0 0 10px;
  font-size: clamp(28px, 4.2vw, 48px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.96px;
}

@media (min-width: 900px) {
  .seo-modals-hero--ai-image .seo-modals-hero-inner h1 {
    white-space: nowrap;
  }
}

.seo-modals-hero--ai-image .seo-modals-hero-kicker {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 10px;
  color: #fff;
  font-size: clamp(18px, 2.4vw, 24px);
  font-weight: 400;
  line-height: 32px;
  text-align: center;
}

.seo-modals-hero--ai-image .seo-modals-hero-kicker-line {
  display: block;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .seo-modals-hero--ai-image .seo-modals-hero-kicker {
    width: 100%;
    align-items: stretch;
  }

  .seo-modals-hero--ai-image .seo-modals-hero-kicker-line {
    white-space: normal;
  }
}

.seo-modals-hero--ai-image .seo-modals-hero-inner > .seo-modals-sub {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: max-content;
  max-width: 100%;
  margin: 0 auto 28px;
  color: #fff;
  font-size: 14px;
  line-height: 20px;
  text-align: center;
}

.seo-modals-hero--ai-image .seo-modals-hero-sub-line {
  display: block;
  white-space: nowrap;
}

@media (max-width: 700px) {
  .seo-modals-hero--ai-image .seo-modals-hero-inner > .seo-modals-sub {
    width: 100%;
    align-items: stretch;
  }

  .seo-modals-hero--ai-image .seo-modals-hero-sub-line {
    white-space: normal;
  }
}

.seo-modals-hero--ai-image .seo-modals-prompt {
  width: min(938px, 100%);
}

/* AI Video H1 is longer — keep one line by scaling type slightly. */
.seo-modals-hero--ai-video .seo-modals-hero-inner {
  width: min(1100px, 100%);
}

.seo-modals-hero--ai-video .seo-modals-hero-inner h1 {
  font-size: clamp(24px, 3.6vw, 42px);
}

.seo-modals-hero-footer {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 28px;
  left: 0;
}

.ai-image-composer {
  position: relative;
  display: flex;
  gap: 5px;
  align-items: flex-start;
}

.ai-image-rail {
  position: absolute;
  top: 0;
  right: calc(100% + 5px);
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
  flex: 0 0 auto;
  padding: 5px;
  border: 1px solid #3d3d3d;
  border-radius: 24px;
  background: #12161e;
}

.ai-image-rail-btn {
  display: flex;
  width: 44px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 20px;
  background: transparent;
  color: #fff;
  cursor: pointer;
}

.ai-image-agent-icon {
  position: relative;
  display: block;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
}

.ai-image-agent-icon img {
  position: absolute;
  top: -2.53px;
  left: 0.89px;
  width: 19.1178px;
  height: 23.5294px;
  max-width: none;
}

.ai-image-rail-label {
  display: none;
  overflow: hidden;
  color: #fff;
  font:
    400 12px/18px Inter,
    system-ui,
    sans-serif;
  white-space: nowrap;
}

.ai-image-rail:hover .ai-image-rail-btn,
.ai-image-rail:focus-within .ai-image-rail-btn {
  width: auto;
  flex-direction: row-reverse;
  justify-content: flex-start;
}

.ai-image-rail:hover .ai-image-rail-label,
.ai-image-rail:focus-within .ai-image-rail-label {
  display: inline;
}

.ai-image-rail-btn.is-active {
  position: relative;
  border-color: #9f52ff;
  background: linear-gradient(180deg, #180f47 0%, #100e1c 50%, #1a1537 100%);
  box-shadow: inset 0 -3px 1.1px rgba(0, 0, 0, 0.32);
}

.ai-image-card {
  display: flex;
  min-height: 184px;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  justify-content: space-between;
  gap: 23px;
  padding: 16px 19px 16px;
  border: 1px solid #3d3d3d;
  border-radius: 24px;
  background: rgba(18, 22, 30, 0.88);
  box-shadow: inset 0 -2px 3.9px rgba(107, 107, 107, 0.25);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.ai-image-card-top {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ai-image-refs {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ai-image-add {
  display: flex;
  width: 55px;
  height: 55px;
  flex: 0 0 55px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0.5px dashed #717680;
  border-radius: 12px;
  background: #12161e;
  cursor: pointer;
}

.ai-image-slots {
  display: flex;
  gap: 10px;
  align-items: center;
}

.ai-image-slot {
  position: relative;
  display: inline-flex;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 0.5px dashed #717680;
  border-radius: 10px;
  background: #12161e;
  color: #717680;
  font:
    400 12px/18px Inter,
    system-ui,
    sans-serif;
}

.ai-image-slot > button:not(.ai-image-slot-remove) {
  display: inline-flex;
  height: 100%;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  cursor: pointer;
}

.ai-image-slot.is-filled {
  padding-left: 6px;
}

.ai-image-slot img {
  width: 26px;
  height: 26px;
  border-radius: 6px;
  object-fit: cover;
}

.ai-image-slot-remove {
  position: absolute;
  top: -6px;
  right: -6px;
  display: flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  cursor: pointer;
}

.ai-image-audio {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 0;
  border-radius: 20px;
  background: transparent;
  color: #717680;
  font:
    400 12px/18px Inter,
    system-ui,
    sans-serif;
  cursor: pointer;
}

.ai-image-switch {
  position: relative;
  width: 32px;
  height: 16px;
  border-radius: 999px;
  background: #3d3d3d;
}

.ai-image-switch.is-on {
  background: #b8c4ff;
}

.ai-image-switch i {
  position: absolute;
  top: 0;
  left: 0;
  width: 16px;
  height: 16px;
  border: 1px solid #d5d7da;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(10, 13, 18, 0.05);
}

.ai-image-switch.is-on i {
  left: 16px;
}

.ai-image-mode.is-crew {
  gap: 8px;
  min-width: 0;
  width: auto;
  padding: 0 12px;
}

.ai-image-crew-avatar,
.ai-image-crew-option img {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  object-fit: cover;
}

.ai-image-crew-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ai-image-thumb {
  position: relative;
  width: 55px;
  height: 55px;
  flex: 0 0 55px;
  overflow: hidden;
  border-radius: 12px;
}

.ai-image-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ai-image-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(1, 1, 1, 0), rgba(0, 0, 0, 0.8));
  pointer-events: none;
}

.ai-image-thumb > span {
  position: absolute;
  z-index: 1;
  right: 0;
  bottom: 2px;
  left: 0;
  color: #fafafa;
  font-size: 10px;
  font-weight: 500;
  line-height: 14px;
  text-align: center;
}

.ai-image-thumb > button {
  position: absolute;
  z-index: 2;
  top: -6px;
  right: -6px;
  display: flex;
  width: 16px;
  height: 16px;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  cursor: pointer;
}

.ai-image-card textarea {
  width: 100%;
  min-height: 20px;
  resize: none;
  border: 0;
  outline: 0;
  background: transparent;
  color: #f5f6f7;
  font:
    400 14px/20px Inter,
    system-ui,
    sans-serif;
}

.ai-image-card textarea::placeholder {
  color: #a4a7ae;
  opacity: 1;
}

.ai-image-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.ai-image-bar-left,
.ai-image-bar-right {
  display: flex;
  gap: 20px;
  align-items: center;
  min-width: 0;
}

.ai-image-bar-right {
  gap: 10px;
  flex: 0 0 auto;
}

.ai-image-mode,
.ai-image-params {
  display: inline-flex;
  height: 31px;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  color: #a4a7ae;
  font:
    400 12px/18px Inter,
    system-ui,
    sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.ai-image-mode {
  justify-content: center;
  min-width: 180px;
  padding: 0 10px;
  border-radius: 24px;
  background: #252b37;
}

.ai-image-model {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #a4a7ae;
  font:
    500 12px/18px Inter,
    system-ui,
    sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.ai-image-model-icon {
  display: flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #252b37;
  color: #fff;
}

.ai-image-divider {
  width: 1px;
  height: 12px;
  background: #3d3d3d;
}

.ai-image-credits {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  color: #a4a7ae;
  font:
    400 12px/18px Inter,
    system-ui,
    sans-serif;
}

.ai-image-credits em {
  font-style: normal;
}

.ai-image-generate {
  display: inline-flex;
  height: 44px;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 8px 12px;
  border: 0;
  border-radius: 12px;
  background-image:
    linear-gradient(185deg, rgba(106, 59, 255, 0) 12.7%, #6a3bff 75.8%),
    linear-gradient(90deg, #9d80ff 0%, #6e21ff 100%);
  box-shadow:
    0 6px 4px rgba(0, 0, 0, 0.25),
    0 13px 10.8px rgba(0, 0, 0, 0.15),
    inset 0 -3px 0 rgba(0, 0, 0, 0.32);
  color: #fdfdfd;
  font:
    500 14px/20px Inter,
    system-ui,
    sans-serif;
  white-space: nowrap;
  cursor: pointer;
}

.ai-image-generate:disabled {
  opacity: 1;
  cursor: default;
}

.ai-image-mode-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 0;
  display: flex;
  min-width: 180px;
  flex-direction: column;
  padding: 6px;
  border: 1px solid #3d3d3d;
  border-radius: 12px;
  background: #1c1c1f;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.45);
}

.ai-image-mode-menu button {
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #f5f6f7;
  font:
    500 13px/18px Inter,
    system-ui,
    sans-serif;
  text-align: left;
  cursor: pointer;
}

.ai-image-mode-menu button:hover {
  background: #252b37;
}

@media (max-width: 900px) {
  .seo-modals-hero.seo-modals-hero--ai-image.seo-modals-hero--section-stack {
    display: block;
    height: auto;
    min-height: calc(100dvh - 64px);
    padding-bottom: 32px;
  }

  .seo-modals-hero--ai-image .seo-modals-hero-footer {
    position: relative;
    z-index: 3;
    margin-top: 36px;
  }

  /* Mode tabs are a full-width pill. Center the icons inside it. */
  .seo-modals-hero--ai-image vidau-work-composer form > .flex.flex-row.justify-start {
    justify-content: center;
  }

  .ai-image-composer {
    flex-direction: column;
  }

  .ai-image-rail {
    position: static;
    right: auto;
    flex-direction: row;
    align-items: center;
    width: fit-content;
  }

  .ai-image-bar {
    flex-wrap: wrap;
  }

  .ai-image-bar-left {
    flex-wrap: wrap;
    gap: 10px;
  }

  .ai-image-mode {
    min-width: 0;
  }

  .ai-image-rail:hover .ai-image-rail-label,
  .ai-image-rail:focus-within .ai-image-rail-label {
    display: none;
  }

  .ai-image-rail:hover .ai-image-rail-btn,
  .ai-image-rail:focus-within .ai-image-rail-btn {
    width: 44px;
    flex-direction: row;
    justify-content: center;
  }
}

/* AI Image and AI Video: on mobile, copy fills a rectangular block instead of the desktop line breaks. */
@media (max-width: 767px) {
  .vidau-ai-image-page .seo-modals-hero-inner h1,
  .vidau-ai-video-page .seo-modals-hero-inner h1,
  .vidau-ai-image-page .seo-modals-hero-kicker,
  .vidau-ai-video-page .seo-modals-hero-kicker,
  .vidau-ai-image-page .seo-modals-hero-inner > .seo-modals-sub,
  .vidau-ai-video-page .seo-modals-hero-inner > .seo-modals-sub,
  .vidau-ai-image-page .whitespace-pre-line,
  .vidau-ai-video-page .whitespace-pre-line,
  .vidau-ai-image-page .w-max.flex-col,
  .vidau-ai-video-page .w-max.flex-col {
    width: 100%;
    max-width: 100%;
    text-align: left;
    text-wrap: pretty;
  }

  .vidau-ai-image-page .whitespace-pre-line,
  .vidau-ai-video-page .whitespace-pre-line {
    white-space: normal;
  }

  .vidau-ai-image-page .seo-modals-hero-kicker,
  .vidau-ai-video-page .seo-modals-hero-kicker,
  .vidau-ai-image-page .seo-modals-hero-inner > .seo-modals-sub,
  .vidau-ai-video-page .seo-modals-hero-inner > .seo-modals-sub,
  .vidau-ai-image-page .w-max.flex-col,
  .vidau-ai-video-page .w-max.flex-col {
    display: block;
  }

  .vidau-ai-image-page .seo-modals-hero-kicker-line,
  .vidau-ai-video-page .seo-modals-hero-kicker-line,
  .vidau-ai-image-page .seo-modals-hero-sub-line,
  .vidau-ai-video-page .seo-modals-hero-sub-line,
  .vidau-ai-image-page .w-max.flex-col > span,
  .vidau-ai-video-page .w-max.flex-col > span {
    display: inline;
    white-space: normal;
  }

  .vidau-ai-image-page .seo-modals-hero-kicker-line::after,
  .vidau-ai-video-page .seo-modals-hero-kicker-line::after,
  .vidau-ai-image-page .seo-modals-hero-sub-line::after,
  .vidau-ai-video-page .seo-modals-hero-sub-line::after,
  .vidau-ai-image-page .w-max.flex-col > span::after,
  .vidau-ai-video-page .w-max.flex-col > span::after {
    content: ' ';
  }
}

/* Mobile content images on SEO and tools pages stay at least 350px tall. */
@media (max-width: 639px) {
  .seo-modals-page .relative.overflow-hidden:has(img):not(.rounded-full),
  .seo-lp .relative.overflow-hidden:has(img):not(.rounded-full),
  .vidau-ai-image-page .relative.overflow-hidden:has(img):not(.rounded-full),
  .vidau-ai-video-page .relative.overflow-hidden:has(img):not(.rounded-full) {
    min-height: 350px;
  }

  .seo-modals-hero .relative.overflow-hidden:has(img) {
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .seo-modals-params-menu,
  .seo-modals-dropdown {
    animation: none;
  }

  .seo-modals-param-group button,
  .seo-modals-row {
    transition: none;
  }
}

