/*
 * Home enhancer landing screen (partials/home-landing.blade.php).
 * Every rule is scoped under .ae-landing / .vai__view.ae-landing-active so the
 * rest of the page (header, footer, the tool's other screens) is untouched.
 */

.ae-landing,
.ae-flow {
  --ae-brand: #7A3BE8;
  --ae-brand-dark: #6A2ED6;
  --ae-brand-deep: #5B21B6;
  --ae-brand-light: #8B4FF0;
  --ae-ink: #1A1A1A;
  --ae-muted: #6E6880;
  --ae-muted-2: #55506A;
  --ae-line: #E2DEEA;
  --ae-line-soft: #EDE8F7;
  --ae-lilac: #F5F1FE;
  --ae-lilac-line: #E4DCFA;
  --ae-yellow: #FBC901;
  --ae-red: #F5333F;
  --ae-display: 'Baloo 2', 'Poppins', sans-serif;

  width: 100%;
  font-family: 'Poppins', sans-serif;
  color: var(--ae-ink);
  text-align: left;
}

/* ------------------------------------------------ tool wrapper, landing on */
:is(.vai__view.ae-landing-active, .vai__view.ae-tool) {
  padding-bottom: 40px;
}
:is(.vai__view.ae-landing-active, .vai__view.ae-tool) .vai__tool_wrapper {
  max-width: 1180px;
}
:is(.vai__view.ae-landing-active, .vai__view.ae-tool) .vai_tool_container {
  background-image: none;
  background-color: transparent;
  min-height: 0;
  border-radius: 0;
}
.vai__view.ae-landing-active .vai_tool_col_right {
  display: none !important;
}
:is(.vai__view.ae-landing-active, .vai__view.ae-tool) .vai_tool_container > .row {
  margin: 0;
}

:is(.ae-landing, .ae-flow) *,
:is(.ae-landing, .ae-flow) *::before,
:is(.ae-landing, .ae-flow) *::after {
  box-sizing: border-box;
}
:is(.ae-landing, .ae-flow) svg {
  display: block;
  flex: none;
}
.ae-sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.ae-nowrap {
  white-space: nowrap;
}
.ae-landing__file {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

/* The enhancer JS re-shows #inputs-screen with display:flex; keep the grid full width. */
.ae-landing__grid {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
  column-gap: 56px;
  row-gap: 30px;
  align-items: stretch;
  animation: ae-rise .3s ease-out;
}

/* ================================================================ hero */
.ae-hero {
  grid-column: 1;
  grid-row: 1;
  position: relative;
  z-index: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
  padding: 44px 40px;
  border-radius: 40px;
  color: #fff;
  background: radial-gradient(130% 110% at 18% 0%, #8F55F2 0%, #7A3BE8 40%, #5B21B6 100%);
}
.ae-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 40px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
  pointer-events: none;
}
.ae-hero__float {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--ae-line-soft);
  box-shadow: 0 10px 26px rgba(40, 10, 80, .24);
  animation: ae-floaty 4.4s ease-in-out infinite;
}
.ae-hero__float--1 { top: -24px; left: -22px; width: 54px; height: 54px; }
.ae-hero__float--2 { top: 64px; right: -24px; width: 48px; height: 48px; animation-duration: 5.2s; animation-delay: .5s; }
.ae-hero__float--3 { bottom: 52px; left: -24px; width: 48px; height: 48px; animation-duration: 4.8s; animation-delay: 1s; }
.ae-hero__float--4 { top: -16px; right: 44px; width: 42px; height: 42px; animation-duration: 5.6s; animation-delay: 1.6s; }

.ae-hero__eq {
  position: absolute;
  bottom: -20px;
  right: 44px;
  z-index: -1;
  display: flex;
  align-items: flex-end;
  gap: 5px;
}
.ae-hero__eq span {
  width: 6px;
  border-radius: 999px;
  transform-origin: bottom;
  animation: ae-eqbounce 1.15s ease-in-out infinite;
}
.ae-hero__eq span:nth-child(odd) { background: var(--ae-brand-dark); }
.ae-hero__eq span:nth-child(even) { background: var(--ae-brand-light); }
.ae-hero__eq span:nth-child(1) { height: 30px; }
.ae-hero__eq span:nth-child(2) { height: 42px; animation-duration: 1.35s; animation-delay: .18s; }
.ae-hero__eq span:nth-child(3) { height: 24px; animation-duration: .95s; animation-delay: .36s; }
.ae-hero__eq span:nth-child(4) { height: 36px; animation-duration: 1.25s; animation-delay: .54s; }
.ae-hero__eq span:nth-child(5) { height: 27px; animation-duration: 1.05s; animation-delay: .72s; }

.ae-landing .ae-hero__title {
  position: relative;
  margin: 0;
  padding: 0;
  font-family: var(--ae-display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1.14;
  letter-spacing: -.4px;
  color: #fff;
  text-wrap: pretty;
}
.ae-hero__dash {
  background: linear-gradient(90deg, #FFE89B, #FBC901);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ae-landing .ae-hero__lead {
  position: relative;
  max-width: 430px;
  margin: 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: #fff;
}
.ae-hero__wave {
  position: relative;
  height: 96px;
  margin-top: 10px;
  overflow: hidden;
  pointer-events: none;
}
.ae-hero__wave-track {
  position: absolute;
  top: 0;
  left: 0;
  width: 200%;
  height: 96px;
  display: flex;
  align-items: center;
  gap: 8.69px;
  animation: ae-wavedrift 52s linear infinite;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 22%, #000 62%, rgba(0, 0, 0, 0) 100%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0) 0%, #000 22%, #000 62%, rgba(0, 0, 0, 0) 100%);
}
.ae-hero__wave-track span {
  flex: none;
  width: 4px;
  border-radius: 999px;
  transform-origin: center;
  animation-name: ae-barbreathe;
  animation-timing-function: cubic-bezier(.45, .05, .55, .95);
  animation-iteration-count: infinite;
}
.ae-hero__wave-glow {
  position: absolute;
  top: 47px;
  left: 6%;
  right: 6%;
  height: 1px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 255, 255, .55), rgba(255, 255, 255, 0));
  animation: ae-bandglow 5.5s ease-in-out infinite;
}
.ae-hero__stats {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 26px;
  margin-top: 4px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, .22);
}
.ae-hero__stats div {
  display: flex;
  flex-direction: column;
  gap: 1px;
}
.ae-hero__stats strong {
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.15;
  letter-spacing: -.2px;
}
.ae-hero__stats span {
  font-size: 11px;
  letter-spacing: .2px;
  opacity: .92;
}

.ae-hero__chips {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.ae-hero__chip {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .32);
  background: rgba(255, 255, 255, .15);
  font-size: 12.5px;
  font-weight: 500;
}

/* ------------------------------------------------------------- history */
.ae-history {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 6px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, .26);
  background: rgba(255, 255, 255, .13);
}
.ae-history__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px 8px;
}
.ae-history__title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 1.2px;
}
.ae-landing .ae-history__all {
  padding: 0;
  border: 0;
  background: none;
  color: #fff;
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .3px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ae-history__list {
  display: flex;
  flex-direction: column;
}
.ae-history__list.is-expanded {
  max-height: 260px;
  overflow-y: auto;
}
.ae-history__empty {
  padding: 14px;
  font-size: 12px;
  color: rgba(255, 255, 255, .85);
}
.ae-history__item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 14px;
  border-bottom: 1px solid rgba(255, 255, 255, .14);
}
.ae-history__item:last-child {
  border-bottom: 0;
}
.ae-history__file {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: rgba(255, 255, 255, .2);
}
.ae-history__meta {
  flex: 1;
  min-width: 0;
}
.ae-history__name {
  overflow: hidden;
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 13px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ae-history__sub {
  padding-top: 1px;
  font-size: 10.5px;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ae-history__actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}
.ae-landing .ae-history__btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
  cursor: pointer;
  transition: background .15s ease;
}
.ae-landing .ae-history__btn:hover,
.ae-landing .ae-history__btn:focus-visible {
  background: rgba(255, 255, 255, .34);
}
.ae-landing .ae-history__btn--delete:hover,
.ae-landing .ae-history__btn--delete:focus-visible {
  background: rgba(245, 51, 63, .75);
}
.ae-landing .ae-history__btn[disabled] {
  opacity: .45;
  cursor: default;
}
.ae-history__note {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px 8px;
  font-size: 10.5px;
  line-height: 1.45;
}

/* ============================================================ dropzone */
.ae-dz {
  grid-column: 2;
  grid-row: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  padding: 42px 48px 42px;
  border: 2.5px dashed #000;
  border-radius: 44px;
  background: transparent;
  cursor: pointer;
  transition: border-color .2s, background-color .2s;
}
.ae-dz:hover,
.ae-dz.bg-blue-100 {
  border-color: var(--ae-brand);
  background: #F7F3FE;
}

.ae-dz__formats {
  position: absolute;
  top: 22px;
  right: 28px;
  z-index: 5;
  cursor: default;
}
.ae-landing .ae-dz__formats-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ae-ink);
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .5px;
  line-height: 1.3;
  white-space: nowrap;
  cursor: pointer;
}
.ae-dz__i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #000;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 13px;
  font-style: italic;
  font-weight: 700;
}
.ae-dz__formats-pop {
  position: absolute;
  top: 38px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 420px;
  max-width: calc(100vw - 48px);
  padding: 16px 20px;
  border-radius: 14px;
  background: #000;
  color: #fff;
  font-size: 11px;
  line-height: 1.6;
  text-align: left;
  animation: ae-rise .2s ease-out;
}
.ae-dz__formats-pop[hidden] {
  display: none;
}
.ae-dz__formats-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.ae-dz__formats-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--ae-display);
  font-weight: 700;
  letter-spacing: 1px;
  color: #938CE5;
}
.ae-dz__formats-sep {
  height: 1px;
  background: rgba(255, 255, 255, .16);
}
.ae-dz__formats-foot {
  padding-top: 2px;
  color: #B7B2C6;
}

.ae-landing .ae-dz__main {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  width: 100%;
  min-height: 0;
  padding: 0;
  background: none;
  border-radius: 0;
  text-align: center;
}
.ae-dz__actions {
  display: flex;
  justify-content: center;
  gap: 96px;
}
.ae-landing .ae-dz__action {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  position: static;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: inherit;
  font-size: inherit;
  cursor: pointer;
  outline: none;
}
.ae-dz__circle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  transition: transform .18s ease, filter .18s ease;
}
.ae-dz__circle--upload { background: var(--ae-brand); }
.ae-dz__circle--record { background: var(--ae-red); }
.ae-dz__action:hover .ae-dz__circle,
.ae-dz__action:focus-visible .ae-dz__circle {
  filter: brightness(1.08);
  transform: translateY(-3px);
}
.ae-dz__action:focus-visible .ae-dz__circle {
  box-shadow: 0 0 0 4px rgba(122, 59, 232, .35);
}
.ae-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 23px 10px 24px;
  border: 1.5px solid var(--ae-brand);
  border-radius: 999px;
  background: var(--ae-lilac);
  color: var(--ae-brand-dark);
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  line-height: 1;
  text-transform: uppercase;
}
.ae-dz__foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}
.ae-dz__hint {
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 14px;
  color: var(--ae-muted-2);
}

.ae-quota {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  max-width: 460px;
}
.ae-quota__segs {
  display: flex;
  gap: 7px;
}
.ae-quota__segs span {
  flex: 1;
  height: 10px;
  border-radius: 999px;
  background: var(--ae-line);
  transition: background .2s ease;
}
.ae-quota__segs span.is-on { background: var(--ae-brand); }
.ae-quota.is-last .ae-quota__segs span.is-on { background: #E0B000; }
.ae-quota__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ae-quota__label {
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .5px;
  color: #8B84A3;
  text-align: left;
}
.ae-quota.is-last .ae-quota__label { color: #946200; }
.ae-quota.is-empty .ae-quota__label { color: #E11D2E; }
.ae-quota__note {
  font-size: 12.5px;
  color: #8B84A3;
  white-space: nowrap;
}

.ae-dz__chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.ae-landing .ae-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 6px 16px;
  border: 1.5px solid var(--ae-line);
  border-radius: 999px;
  color: var(--ae-muted-2);
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .5px;
  line-height: 1.4;
  white-space: nowrap;
  text-decoration: none;
}
.ae-landing a.ae-chip--link {
  color: var(--ae-muted);
  transition: border-color .15s ease, color .15s ease;
}
.ae-landing a.ae-chip--link:hover {
  border-color: var(--ae-brand);
  color: var(--ae-brand);
}
.ae-landing .ae-chip--outline-brand {
  border: 2px solid var(--ae-brand);
  background: var(--ae-lilac);
  color: var(--ae-brand);
}
.ae-landing .ae-chip--brand {
  border: 2px solid var(--ae-brand);
  background: var(--ae-brand);
  color: #fff;
}

/* ------------------------------------------ recording (legacy tool JS) */
.ae-landing .vai_recording_section {
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 200px;
  padding: 0;
  background: none;
  cursor: default;
}
.ae-landing .vai_recording_progress {
  align-items: center;
  max-width: 460px;
  padding: 12px 20px;
  border: 1.5px solid var(--ae-lilac-line);
  background: var(--ae-lilac);
  font-family: var(--ae-display);
  font-weight: 700;
  color: var(--ae-ink);
}
.ae-landing .vai_recording_output {
  max-width: 460px;
}

/* ================================================================ cards */
.ae-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1.5px solid var(--ae-lilac-line);
  border-radius: 32px;
  background: linear-gradient(180deg, #FBF9FF, #F3EDFE);
}
.ae-card__title {
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .2px;
}
.ae-card__sub {
  padding-top: 2px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--ae-muted);
}
.ae-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--ae-brand);
  color: #fff;
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 9px;
  letter-spacing: .5px;
}
.ae-tag--soft {
  padding: 6px 13px;
  border: 1px solid var(--ae-lilac-line);
  background: var(--ae-lilac);
  color: var(--ae-brand-dark);
  font-size: 10.5px;
  letter-spacing: 1px;
}
.ae-tag--dark {
  padding: 4px 13px;
  background: #000;
  font-size: 10.5px;
  letter-spacing: 1px;
}

:is(.ae-landing, .ae-flow) .ae-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  font-family: var(--ae-display);
  font-weight: 700;
  letter-spacing: .3px;
  text-decoration: none;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
:is(.ae-landing, .ae-flow) .ae-btn--primary {
  background: linear-gradient(180deg, var(--ae-brand-light), var(--ae-brand-dark));
  color: #fff;
}
:is(.ae-landing, .ae-flow) .ae-btn--primary:hover,
:is(.ae-landing, .ae-flow) .ae-btn--primary:focus-visible {
  color: #fff;
  filter: brightness(1.07);
  transform: translateY(-2px);
}
:is(.ae-landing, .ae-flow) .ae-btn--block {
  width: 100%;
  padding: 13px 0;
  font-size: 14.5px;
}
:is(.ae-landing, .ae-flow) .ae-btn--sm {
  flex: none;
  padding: 11px 22px;
  font-size: 12.5px;
  letter-spacing: .4px;
  box-shadow: 0 6px 18px rgba(122, 59, 232, .28);
}

/* sample (visitor + premium, row 2 left) */
.ae-sample {
  grid-column: 1;
  grid-row: 2;
  justify-content: center;
  padding: 22px 26px 24px;
  border-color: var(--ae-line);
  background: #fff;
}
.ae-sample__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.ae-sample__player {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 18px;
  border: 1.5px solid var(--ae-lilac-line);
  border-radius: 22px;
  background: linear-gradient(180deg, #FBF9FF, #F3EDFE);
}
.ae-landing .ae-sample__play {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--ae-brand-light), var(--ae-brand-dark));
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.ae-landing .ae-sample__play:hover,
.ae-landing .ae-sample__play:focus-visible {
  background: linear-gradient(180deg, var(--ae-brand-light), var(--ae-brand-dark));
  filter: brightness(1.07);
  transform: translateY(-2px);
}
.ae-sample__icon-pause {
  display: none;
  gap: 5px;
}
.ae-sample__icon-pause i {
  width: 6px;
  height: 20px;
  border-radius: 3px;
  background: #fff;
}
.ae-sample.is-playing .ae-sample__icon-play { display: none; }
.ae-sample.is-playing .ae-sample__icon-pause { display: flex; }
.ae-sample__bars {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  flex: 1;
  min-width: 0;
  height: 60px;
  padding: 0 2px;
  overflow: hidden;
}
.ae-sample__bars span {
  flex: none;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #A97CF8, #6A2ED6 45%, #A97CF8);
  transition: height .28s cubic-bezier(.4, 0, .2, 1);
}
.ae-sample.is-playing .ae-sample__bars span {
  animation: ae-wob .5s ease-in-out infinite alternate;
}
.ae-sample__switch {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
}
.ae-sample__lbl {
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
  color: var(--ae-muted);
}
.ae-sample__lbl.is-active { color: var(--ae-brand); }
.ae-sample:not(.is-enhanced) [data-ae-lbl-orig] { color: var(--ae-ink); }
.ae-landing .ae-toggle {
  position: relative;
  width: 62px;
  height: 32px;
  padding: 0;
  border: 1.5px solid #DDD6EA;
  border-radius: 999px;
  background: #fff;
  cursor: pointer;
  transition: background .2s;
}
.ae-landing .ae-toggle:hover,
.ae-landing .ae-toggle:focus-visible {
  background: #fff;
}
.ae-landing .ae-toggle.is-on,
.ae-landing .ae-toggle.is-on:hover,
.ae-landing .ae-toggle.is-on:focus-visible {
  background: var(--ae-brand);
}
.ae-toggle span {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: #000;
  box-shadow: 0 2px 6px rgba(0, 0, 0, .16);
  transition: left .2s;
}
.ae-toggle.is-on span {
  left: 31px;
  background: #fff;
}

/* tools (visitor + premium, row 2 right) */
.ae-tools {
  grid-column: 2;
  grid-row: 2;
  justify-content: center;
  gap: 14px;
  padding: 20px;
  border-radius: 28px;
}
.ae-tools__title {
  padding: 0 4px;
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 1.4px;
  color: var(--ae-brand-dark);
}
.ae-tools__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.ae-landing .ae-tool {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 13px 16px;
  border: 1.5px solid var(--ae-line-soft);
  border-radius: 18px;
  background: #fff;
  color: var(--ae-ink);
  font-weight: 500;
  font-size: 14.5px;
  letter-spacing: -.1px;
  text-decoration: none;
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.ae-landing .ae-tool > span:last-child {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ae-landing a.ae-tool:hover,
.ae-landing a.ae-tool:focus-visible {
  color: var(--ae-ink);
  border-color: var(--ae-brand);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(40, 10, 80, .08);
}
.ae-tool__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 36px;
}

/* premium plan (free, row 2 left) */
.ae-plan {
  grid-column: 1;
  grid-row: 2;
  justify-content: space-between;
  gap: 14px;
  padding: 26px 28px 24px;
}
.ae-plan__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.ae-plan__name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .1px;
}
.ae-plan__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 6px;
}
.ae-plan__price strong {
  font-family: var(--ae-display);
  font-weight: 600;
  font-size: 34px;
  line-height: 1;
  color: var(--ae-brand-dark);
}
.ae-plan__price span {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ae-muted);
}
.ae-plan__deal {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
  flex: none;
}
.ae-plan__off {
  padding: 4px 12px;
  border-radius: 999px;
  background: linear-gradient(90deg, #FBC901 0%, #FBC901 77%, #D09700 100%);
  color: var(--ae-ink);
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .6px;
}
.ae-plan__was {
  font-size: 12.5px;
  color: var(--ae-muted);
  text-decoration: line-through;
}
.ae-landing .ae-plan__features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px 18px;
  margin: 0;
  padding: 18px 0;
  border-top: 1px solid var(--ae-lilac-line);
  border-bottom: 1px solid var(--ae-lilac-line);
  list-style: none;
}
.ae-landing .ae-plan__features li {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0;
  font-size: 12.5px;
  font-weight: 500;
}
.ae-landing a.ae-plan__compare {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding-top: 2px;
  color: var(--ae-brand-dark);
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 12.5px;
  text-decoration: none;
}
.ae-landing a.ae-plan__compare:hover {
  color: #55199F;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* fine-tune teaser (free, row 2 right) */
.ae-tune {
  grid-column: 2;
  grid-row: 2;
  justify-content: center;
  padding: 22px;
  border-radius: 28px;
}
.ae-tune__head,
.ae-tune__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.ae-tune__sliders {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-radius: 20px;
  background: #fff;
}
.ae-slider__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 13.5px;
  letter-spacing: .4px;
}
.ae-slider__val { color: var(--ae-brand); }
.ae-slider__track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: var(--ae-line);
}
.ae-slider__fill {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ae-brand-light), var(--ae-brand-dark));
}
.ae-slider__knob {
  position: absolute;
  top: 50%;
  width: 20px;
  height: 20px;
  border: 2px solid #fff;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--ae-brand-light), var(--ae-brand-deep));
  box-shadow: 0 2px 6px rgba(122, 59, 232, .28);
  transform: translate(-50%, -50%);
}
.ae-slider__ends {
  display: flex;
  justify-content: space-between;
  margin-top: 5px;
  font-size: 10.5px;
  font-weight: 500;
  color: var(--ae-muted);
}

/* app badges (row 3) */
.ae-apps {
  grid-column: 1 / -1;
  grid-row: 3;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 18px;
}
.ae-landing a.ae-app {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 22px;
  border-radius: 14px;
  background: linear-gradient(180deg, #2E2E2E, #111);
  box-shadow: 0 6px 18px rgba(0, 0, 0, .2);
  color: #fff;
  text-decoration: none;
  transition: transform .15s ease;
}
.ae-landing a.ae-app:hover,
.ae-landing a.ae-app:focus-visible {
  color: #fff;
  transform: translateY(-2px);
}
.ae-app > span {
  display: flex;
  flex-direction: column;
  font-weight: 500;
  font-size: 15px;
  letter-spacing: -.1px;
  line-height: 1.15;
}
.ae-app small {
  font-size: 8.5px;
  font-weight: 400;
  letter-spacing: .9px;
  line-height: 1.3;
  color: rgba(255, 255, 255, .58);
}

/* ========================================================== responsive */
@media (max-width: 1100px) {
  .ae-landing__grid { column-gap: 32px; }
  .ae-dz { padding: 52px 28px 28px; }
  .ae-dz__actions { gap: 56px; }
  .ae-hero { padding: 40px 32px; }
}

@media (max-width: 991px) {
  .ae-landing__grid {
    grid-template-columns: minmax(0, 1fr);
    row-gap: 24px;
  }
  .ae-hero,
  .ae-dz,
  .ae-sample,
  .ae-tools,
  .ae-plan,
  .ae-tune,
  .ae-apps {
    grid-column: 1;
    grid-row: auto;
  }
  .ae-hero__float--2,
  .ae-hero__float--3 { display: none; }
}

@media (max-width: 600px) {
  .ae-hero {
    padding: 32px 22px;
    border-radius: 28px;
  }
  .ae-hero::before { border-radius: 28px; }
  .ae-hero__float--1 { top: -16px; left: -8px; width: 42px; height: 42px; }
  .ae-hero__float--4 { top: -14px; right: 20px; }
  .ae-landing .ae-hero__title { font-size: 27px; }
  .ae-landing .ae-hero__title .ae-nowrap { white-space: normal; }
  .ae-landing .ae-hero__lead { font-size: 15px; }
  .ae-hero__wave { height: 72px; }
  .ae-dz {
    gap: 24px;
    padding: 60px 16px 24px;
    border-radius: 28px;
  }
  .ae-dz__formats { right: 18px; top: 18px; }
  .ae-dz__formats-pop { right: -8px; }
  .ae-dz__actions { gap: 36px; }
  .ae-dz__circle { width: 76px; height: 76px; }
  .ae-dz__circle svg { width: 34px; height: 34px; }
  .ae-quota__row { flex-direction: column; align-items: flex-start; gap: 2px; }
  .ae-landing .ae-chip { white-space: normal; text-align: center; }
  .ae-sample, .ae-plan, .ae-tune, .ae-tools { padding: 20px 18px; border-radius: 24px; }
  .ae-tools__grid { grid-template-columns: 1fr; }
  .ae-landing .ae-plan__features { grid-template-columns: 1fr; gap: 10px; }
  .ae-tune__foot { flex-direction: column; align-items: stretch; text-align: center; }
  .ae-sample__player { gap: 12px; padding: 12px; }
  .ae-landing .ae-sample__play { width: 52px; height: 52px; }
  .ae-sample__bars span:nth-child(n+42) { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .ae-landing *,
  .ae-landing *::before {
    animation: none !important;
    transition: none !important;
  }
}

/* ========================================================== keyframes */
@keyframes ae-rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
@keyframes ae-wob { from { transform: scaleY(.45); } to { transform: scaleY(1.12); } }
@keyframes ae-floaty { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-7px) rotate(4deg); } }
@keyframes ae-eqbounce { 0%, 100% { transform: scaleY(.4); } 50% { transform: scaleY(1); } }
@keyframes ae-wavedrift { 0% { transform: translateX(0); } 100% { transform: translateX(-50%); } }
@keyframes ae-barbreathe { 0%, 100% { transform: scaleY(.28); } 50% { transform: scaleY(1); } }
@keyframes ae-bandglow { 0%, 100% { opacity: .42; } 50% { opacity: .72; } }

/* =====================================================================
 * Flow screens for free viewers (partials/home-tool-screens.blade.php):
 * S05 setup, S07 processing, S08 result, S09 download modal.
 * ===================================================================== */

.ae-flow[hidden],
.ae-flow [hidden] {
  display: none !important;
}
.ae-flow {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  padding: 4px 0 8px;
}
.ae-flow button {
  font-family: inherit;
}
.ae-center { text-align: center; }

/* ------------------------------------------------------------ stepper */
.ae-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ae-steps li { margin: 0; }
.ae-step {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ae-step__dot {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 1.5px solid var(--ae-line);
  border-radius: 50%;
  background: #fff;
  color: #8B84A3;
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 14px;
}
.ae-step__dot::before { content: attr(data-num); }
.ae-step__label {
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: 1px;
  color: #8B84A3;
}
.ae-step.is-current .ae-step__dot,
.ae-step.is-done .ae-step__dot {
  border: 2px solid var(--ae-brand);
  background: var(--ae-brand);
  color: #fff;
}
.ae-step.is-done .ae-step__dot::before { content: "\2713"; }
.ae-step.is-current .ae-step__label { color: var(--ae-ink); }
.ae-step.is-done .ae-step__label { color: var(--ae-brand); }

/* ------------------------------------------------------------ shared */
.ae-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  animation: ae-rise .3s ease-out;
}
.ae-flow .ae-screen__title {
  margin: 0;
  font-family: var(--ae-display);
  font-weight: 600;
  font-size: 28px;
  letter-spacing: 1.5px;
  color: var(--ae-brand);
  text-align: center;
}
.ae-flow .ae-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ae-muted);
  font-size: 13px;
  font-weight: 400;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ae-flow .ae-link:hover,
.ae-flow .ae-link:focus-visible {
  background: none;
  color: var(--ae-brand);
}
.ae-flow .ae-go {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  flex: none;
  padding: 18px 38px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--ae-brand-light), var(--ae-brand-dark));
  box-shadow: 0 6px 18px rgba(122, 59, 232, .30);
  color: #fff;
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: .6px;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease, opacity .15s ease;
}
.ae-flow .ae-go:hover,
.ae-flow .ae-go:focus-visible {
  background: linear-gradient(180deg, var(--ae-brand-light), var(--ae-brand-dark));
  color: #fff;
  filter: brightness(1.07);
  transform: translateY(-2px);
}
.ae-flow .ae-go[disabled] {
  opacity: .45;
  filter: none;
  transform: none;
  cursor: not-allowed;
}
.ae-radio {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 22px;
  height: 22px;
  border: 2px solid #C9C4D8;
  border-radius: 50%;
}
.ae-radio span {
  display: none;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--ae-brand-light), var(--ae-brand-deep));
}
.is-selected > .ae-radio { border-color: var(--ae-brand); }
.is-selected > .ae-radio span { display: block; }
.ae-badge {
  flex: none;
  padding: 4px 14px;
  border-radius: 999px;
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .5px;
}
.ae-badge--free { background: #E7F9EF; color: #16A34A; }
.ae-badge--dark { background: #000; color: #fff; }

/* ------------------------------------------------------------ player */
.ae-player {
  display: flex;
  align-items: center;
  gap: 20px;
  width: 100%;
  padding: 18px 22px;
  border: 1.5px solid var(--ae-lilac-line);
  border-radius: 28px;
  background: linear-gradient(180deg, #FBF9FF, #F3EDFE);
}
.ae-flow .ae-player__play {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 68px;
  height: 68px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--ae-brand-light), var(--ae-brand-deep));
  box-shadow: 0 10px 26px rgba(122, 59, 232, .34);
  cursor: pointer;
  transition: transform .16s ease, filter .16s ease;
}
.ae-flow .ae-player__play:hover,
.ae-flow .ae-player__play:focus-visible {
  background: linear-gradient(180deg, var(--ae-brand-light), var(--ae-brand-deep));
  filter: brightness(1.08);
  transform: translateY(-2px);
}
.ae-icon-pause { display: none; gap: 5px; }
.ae-icon-pause i { width: 6px; height: 22px; border-radius: 3px; background: #fff; }
.ae-player.is-playing .ae-icon-play { display: none; }
.ae-player.is-playing .ae-icon-pause { display: flex; }
.ae-player__bars {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  flex: 1;
  min-width: 0;
  height: 64px;
  overflow: hidden;
}
.ae-player__bars span {
  flex: none;
  width: 3px;
  border-radius: 999px;
  background: linear-gradient(180deg, #A97CF8, #6A2ED6 45%, #A97CF8);
  transition: height .2s ease, opacity .15s ease;
}
[data-ae-setup-bars] span.is-played { opacity: .45; }
.ae-player__bars--seek { cursor: pointer; }
.ae-player__bars--seek span { background: #C9C4D8; }
.ae-player__bars--seek span.is-played { background: var(--ae-brand); }
.ae-player__bars--seek.is-original span { background: #B7B2C6; }
.ae-player__bars--seek.is-original span.is-played { background: var(--ae-muted-2); }
.ae-player__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
}
.ae-flow .ae-round-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1.5px solid var(--ae-lilac-line);
  border-radius: 50%;
  background: #fff;
  cursor: help;
  transition: border-color .15s ease, background .15s ease;
}
.ae-flow .ae-round-btn:hover { border-color: var(--ae-brand); background: #fff; }
.ae-flow .ae-round-btn--danger { border-color: #F3C7CB; cursor: pointer; }
.ae-flow .ae-round-btn--danger:hover,
.ae-flow .ae-round-btn--danger:focus-visible { border-color: var(--ae-red); background: #FFF0F1; }

/* --------------------------------------------------------- S05 setup */
.ae-setup__card {
  display: flex;
  flex-direction: column;
  gap: 32px;
  width: 100%;
  max-width: 900px;
  padding: 48px 64px;
  border: 2.5px dashed #000;
  border-radius: 44px;
}
.ae-setup__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.ae-file {
  display: flex;
  align-items: center;
  gap: 15px;
  flex: 1 1 auto;
  min-width: 0;
}
.ae-file__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: linear-gradient(180deg, var(--ae-brand-light), var(--ae-brand-dark));
  box-shadow: 0 8px 20px rgba(122, 59, 232, .28);
}
.ae-file__text { min-width: 0; }
.ae-file__name {
  overflow: hidden;
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 19px;
  letter-spacing: .1px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ae-file__meta {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-top: 2px;
  font-size: 12px;
  color: var(--ae-muted);
}
.ae-file__meta i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #C9C4D8;
}
.ae-ready {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: none;
  padding: 7px 16px;
  border-radius: 999px;
  background: #EBF9F0;
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .6px;
  color: #15803D;
}
.ae-setup__add {
  display: flex;
  justify-content: center;
}
.ae-flow .ae-add {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 36px;
  border: 1.5px solid #DDD6EA;
  border-radius: 999px;
  background: #fff;
  color: var(--ae-ink);
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 1px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.ae-flow .ae-add:hover,
.ae-flow .ae-add:focus-visible {
  background: var(--ae-lilac);
  color: var(--ae-ink);
  transform: translate(-1px, -1px);
}
.ae-add__plus {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--ae-brand-light), var(--ae-brand-deep));
  box-shadow: 0 2px 6px rgba(122, 59, 232, .28);
  color: #fff;
  font-size: 20px;
  line-height: 1;
}
.ae-modes {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}
.ae-flow .ae-mode {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 20px;
  border: 2px solid #EEE9F6;
  border-radius: 20px;
  background: #fff;
  color: var(--ae-ink);
  text-align: left;
  text-decoration: none;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.ae-flow .ae-mode.is-selected {
  border-color: var(--ae-brand);
  background: var(--ae-lilac);
  cursor: default;
}
.ae-flow .ae-mode:hover,
.ae-flow .ae-mode:focus-visible {
  color: var(--ae-ink);
  background: var(--ae-lilac);
}
.ae-flow .ae-mode--locked { color: var(--ae-muted); }
.ae-flow .ae-mode--locked svg { color: var(--ae-muted); }
.ae-mode__text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.ae-mode__text strong {
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .5px;
}
.ae-mode__text small {
  font-size: 12px;
  line-height: 1.4;
  color: var(--ae-muted);
}
.ae-flow .ae-fixes {
  display: flex;
  flex-direction: column;
  gap: 26px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}
.ae-fixes__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px 40px;
}
.ae-flow .ae-fix {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  cursor: pointer;
}
.ae-fix input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.ae-fix__box {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border: 1.5px solid #B7B2C6;
  border-radius: 6px;
  background: #fff;
  transition: background .15s ease, border-color .15s ease;
}
.ae-fix__box svg { opacity: 0; }
.ae-fix input:checked + .ae-fix__box {
  border-color: var(--ae-brand);
  background: var(--ae-brand);
}
.ae-fix input:checked + .ae-fix__box svg { opacity: 1; }
.ae-fix input:focus-visible + .ae-fix__box { box-shadow: 0 0 0 3px rgba(122, 59, 232, .3); }
.ae-fix__label {
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .5px;
}
.ae-setup__go {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}
.ae-plan-note {
  font-size: 13px;
  color: var(--ae-muted);
}
.ae-plan-note strong {
  color: var(--ae-brand-dark);
  font-weight: 600;
}

/* ---------------------------------------------------- S07 processing */
.ae-proc__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
  width: 100%;
  max-width: 720px;
  padding: 48px 72px;
  border: 2.5px dashed #000;
  border-radius: 44px;
}
.ae-proc__orb {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: radial-gradient(130% 110% at 18% 0%, #8F55F2 0%, #7A3BE8 40%, #5B21B6 100%);
  box-shadow: 0 12px 30px rgba(122, 59, 232, .35);
}
.ae-proc__orb span {
  width: 6px;
  height: 36px;
  border-radius: 999px;
  background: #fff;
  transform-origin: center;
  animation: ae-eqbounce 1s ease-in-out infinite;
}
.ae-proc__orb span:nth-child(2) { animation-delay: .15s; height: 48px; }
.ae-proc__orb span:nth-child(3) { animation-delay: .3s; height: 28px; }
.ae-proc__orb span:nth-child(4) { animation-delay: .45s; height: 42px; }
.ae-proc__orb span:nth-child(5) { animation-delay: .6s; height: 24px; }
.ae-proc__bars {
  display: flex;
  align-items: center;
  gap: 3px;
  height: 64px;
}
.ae-proc__bars span {
  width: 4px;
  border-radius: 3px;
  background: #C9C4D8;
  transition: height .3s ease, background .3s ease;
}
.ae-proc__bars span.is-clean { background: var(--ae-brand); }
.ae-proc__bars span.is-edge {
  background: #FFD34E;
  animation: ae-wob .4s ease-in-out infinite alternate;
}
.ae-proc__msg {
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
  color: var(--ae-brand);
  text-align: center;
}
.ae-proc__track {
  width: 100%;
  height: 16px;
  overflow: hidden;
  border: 1.5px solid #DDD6EA;
  border-radius: 999px;
}
.ae-proc__fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--ae-brand-light), var(--ae-brand-dark));
  transition: width .2s linear;
}
.ae-proc__pct {
  padding: 4px 24px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.ae-flow .ae-stages {
  display: flex;
  flex-direction: column;
  gap: 11px;
  align-self: stretch;
  margin: 0;
  padding: 0 24px;
  list-style: none;
}
.ae-flow .ae-stage {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
  color: #B7B2C6;
}
.ae-stage__mark {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 24px;
  height: 24px;
  border: 1.5px solid var(--ae-line);
  border-radius: 50%;
}
.ae-stage__mark svg { display: none; }
.ae-flow .ae-stage.is-current { color: var(--ae-ink); }
.ae-stage.is-current .ae-stage__mark {
  border: 2px solid var(--ae-brand);
  border-top-color: transparent;
  animation: ae-spin .9s linear infinite;
}
.ae-flow .ae-stage.is-done { color: #16A34A; }
.ae-stage.is-done .ae-stage__mark {
  border: 0;
  background: #22C55E;
  animation: none;
}
.ae-flow .ae-stage.is-done .ae-stage__mark svg { display: block; }

/* -------------------------------------------------------- S08 result */
.ae-result {
  gap: 34px;
  max-width: 1020px;
}
.ae-result__head {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
}
.ae-flow .ae-result__title {
  margin: 0;
  font-family: var(--ae-display);
  font-weight: 600;
  font-size: 38px;
  line-height: 1.1;
  letter-spacing: .1px;
  color: var(--ae-ink);
  text-align: center;
}
.ae-result__sub {
  font-size: 13.5px;
  color: var(--ae-muted);
  text-align: center;
  overflow-wrap: anywhere;
}
.ae-result__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  gap: 28px;
  align-items: stretch;
  width: 100%;
}
.ae-result__card {
  display: flex;
  flex-direction: column;
  gap: 22px;
  min-width: 0;
  padding: 30px 34px;
  border: 1.5px solid var(--ae-lilac-line);
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(40, 10, 80, .06);
}
.ae-result__tune { padding: 28px 30px; }
.ae-result__tune .ae-tune__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ae-result__tune .ae-card__title { font-size: 19px; }
.ae-tune__sliders--plain {
  flex: 1;
  padding: 0;
  gap: 20px;
}
.ae-sources {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.ae-flow .ae-source {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 18px;
  border: 1.5px solid #EEE9F6;
  border-radius: 20px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}
.ae-flow .ae-source:hover,
.ae-flow .ae-source:focus-visible { background: #FBF9FF; }
.ae-source__name {
  flex: none;
  width: 86px;
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .4px;
  color: #B7B2C6;
  text-align: left;
}
.ae-source__bars {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  flex: 1;
  min-width: 0;
  height: 30px;
  overflow: hidden;
}
.ae-source__bars span {
  flex: none;
  width: 3px;
  border-radius: 2px;
  background: #B7B2C6;
}
[data-ae-source="enh"] .ae-source__bars span { background: var(--ae-brand); }
.ae-source__note {
  flex: none;
  font-size: 11px;
  font-weight: 600;
  color: var(--ae-muted);
}
[data-ae-source="enh"] .ae-source__note { color: var(--ae-brand); }
.ae-flow .ae-source.is-active {
  border-color: #000;
  background: var(--ae-lilac);
}
.ae-flow .ae-source.is-active .ae-source__name { color: #000; }
.ae-flow [data-ae-source="enh"].is-active { border-color: var(--ae-brand); }
.ae-flow [data-ae-source="enh"].is-active .ae-source__name { color: var(--ae-brand); }
.ae-flow .ae-result__card .ae-player__play { width: 64px; height: 64px; }
.ae-result__card .ae-icon-pause i { height: 20px; }
.ae-result__controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ae-result__status {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
.ae-time {
  display: inline-flex;
  align-items: baseline;
  gap: 3px;
  padding: 6px 12px;
  border-radius: 10px;
  background: var(--ae-lilac);
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.ae-time small {
  font-size: 11.5px;
  font-weight: 500;
  color: var(--ae-muted);
}
.ae-now {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: #EBF9F0;
  color: var(--ae-brand);
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 1px;
}
.ae-now i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: ae-pulse 1.4s ease-in-out infinite;
}
.ae-now.is-original {
  background: #F1EEF8;
  color: var(--ae-muted-2);
}
.ae-hold-hint {
  font-size: 12px;
  color: var(--ae-muted);
}
.ae-flow .ae-hold {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 22px;
  border: 0;
  border-radius: 999px;
  background: #fff;
  box-shadow: inset 0 0 0 1.5px #DDD6EA;
  color: var(--ae-ink);
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .6px;
  cursor: pointer;
  user-select: none;
  touch-action: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.ae-flow .ae-hold:hover { background: #fff; color: var(--ae-ink); transform: translateY(-1px); }
.ae-flow .ae-hold.is-holding,
.ae-flow .ae-hold.is-holding:hover {
  background: linear-gradient(180deg, #2E2E2E, #111);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .26);
  color: #fff;
}
.ae-result__actions {
  display: flex;
  justify-content: center;
  gap: 20px;
}
.ae-flow .ae-result__actions .ae-go {
  padding: 14px 32px;
  font-size: 16px;
  letter-spacing: .5px;
  box-shadow: none;
}
.ae-flow .ae-go.is-saved,
.ae-flow .ae-go.is-saved:hover {
  background: #fff;
  box-shadow: inset 0 0 0 2px #22C55E;
  color: #16A34A;
}
.ae-flow .ae-go.is-saved svg { display: none; }

/* ------------------------------------------------ S09 download modal */
.ae-flow .ae-modal {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgba(26, 16, 48, .45);
  animation: ae-fade .2s ease-out;
}
.ae-modal__panel {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 420px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  padding: 36px;
  border-radius: 28px;
  background: #fff;
  box-shadow: 0 24px 60px rgba(40, 10, 80, .25);
  animation: ae-rise .25s ease-out;
}
.ae-modal__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.ae-modal__title {
  font-family: var(--ae-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: .5px;
}
.ae-flow .ae-modal__close {
  padding: 0 4px;
  border: 0;
  background: none;
  color: var(--ae-muted);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}
.ae-flow .ae-modal__close:hover { background: none; color: var(--ae-ink); }
.ae-flow .ae-format {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0;
  padding: 13px 18px;
  border: 2px solid var(--ae-line);
  border-radius: 20px;
  background: #fff;
  color: var(--ae-ink);
  text-decoration: none;
  cursor: pointer;
}
.ae-flow .ae-format.is-selected {
  border-color: var(--ae-brand);
  background: var(--ae-lilac);
}
.ae-format input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.ae-flow .ae-format--locked { color: var(--ae-muted); }
.ae-flow .ae-format--locked:hover { color: var(--ae-muted); border-color: #C9C4D8; }
.ae-format__text {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.ae-format__text strong {
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 16px;
}
.ae-format__text small {
  font-size: 11px;
  color: var(--ae-muted);
}
.ae-format__tag {
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .5px;
  color: var(--ae-muted);
}
.ae-format__tag--free { color: #22C55E; }
.ae-flow .ae-modal__panel .ae-btn--block {
  margin-top: 4px;
  padding: 15px 0;
  border: 0;
  font-size: 16px;
  letter-spacing: 1px;
}
.ae-flow a.ae-modal__upsell {
  color: var(--ae-brand);
  font-size: 12px;
  font-weight: 600;
  text-align: center;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---------------------------------------------------------- toast */
.ae-flow .ae-toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  z-index: 100001;
  max-width: calc(100vw - 32px);
  padding: 12px 22px;
  border-radius: 999px;
  background: #1A1A1A;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
  color: #fff;
  font-family: var(--ae-display);
  font-weight: 600;
  font-size: 14px;
  transform: translateX(-50%);
}

/* --------------------------------------------- sweetalert contents */
.ae-swal-text {
  margin: 18px 0 0;
  color: #000;
  font-size: 18px;
  font-weight: 400;
  line-height: 1.5;
}
.ae-captcha {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  margin-top: 8px;
}
.ae-captcha p {
  margin: 0;
  color: #000;
  font-size: 14px;
}

/* ------------------------------------------------------ responsive */
@media (max-width: 991px) {
  .ae-setup__card { padding: 40px 32px; }
  .ae-result__grid { grid-template-columns: minmax(0, 1fr); }
  .ae-proc__card { padding: 40px 32px; }
}

@media (max-width: 600px) {
  .ae-flow { gap: 20px; }
  .ae-steps { gap: 6px; }
  .ae-step { gap: 5px; }
  .ae-step__dot { width: 26px; height: 26px; font-size: 12px; }
  .ae-step__label { font-size: 11px; letter-spacing: .5px; }
  .ae-step__arrow svg { width: 18px; }
  .ae-setup__card { gap: 24px; padding: 24px 16px; border-radius: 28px; }
  .ae-setup__head { flex-direction: column; align-items: stretch; gap: 12px; }
  .ae-ready { align-self: flex-start; }
  .ae-player { gap: 12px; padding: 12px 14px; border-radius: 22px; }
  .ae-flow .ae-player__play,
  .ae-flow .ae-result__card .ae-player__play { width: 52px; height: 52px; }
  .ae-player__bars { height: 48px; }
  .ae-player__bars span:nth-child(n+40) { display: none; }
  .ae-flow .ae-round-btn { width: 34px; height: 34px; }
  .ae-modes,
  .ae-fixes__grid { grid-template-columns: minmax(0, 1fr); }
  .ae-fixes__grid { gap: 12px; }
  .ae-setup__go { flex-direction: column; align-items: stretch; text-align: center; }
  .ae-flow .ae-go { width: 100%; padding: 16px 24px; }
  .ae-flow .ae-add { font-size: 16px; padding: 10px 26px; }
  .ae-flow .ae-screen__title { font-size: 21px; letter-spacing: 1px; }
  .ae-proc__card { gap: 20px; padding: 28px 16px; border-radius: 28px; }
  .ae-proc__bars span:nth-child(n+26) { display: none; }
  .ae-flow .ae-stages { padding: 0; }
  .ae-flow .ae-result__title { font-size: 28px; }
  .ae-result__card { padding: 20px 16px; border-radius: 24px; }
  .ae-source__name { width: 70px; font-size: 12px; }
  .ae-source__note { display: none; }
  .ae-modal__panel { padding: 24px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .ae-flow *,
  .ae-flow *::before {
    animation: none !important;
    transition: none !important;
  }
}

@keyframes ae-spin { to { transform: rotate(360deg); } }
@keyframes ae-pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
@keyframes ae-fade { from { opacity: 0; } to { opacity: 1; } }

/* =====================================================================
 * Stop screens + upgrade modal (step 3): S10 out of credits, S11 file too
 * long, S12 unsupported file, S13 video, S16 upgrade modal.
 * ===================================================================== */

.ae-notice__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
  width: 100%;
  max-width: 720px;
  padding: 56px 72px;
  border: 2.5px dashed #000;
  border-radius: 44px;
  text-align: center;
}
.ae-notice__card--wide {
  max-width: 760px;
  padding: 48px 64px;
}
.ae-notice__heading {
  font-family: var(--ae-display);
  font-weight: 600;
  font-size: 24px;
  letter-spacing: .5px;
  line-height: 1.25;
}
.ae-flow .ae-notice__text {
  max-width: 440px;
  margin: 0;
  color: var(--ae-muted-2);
  font-size: 14.5px;
  line-height: 1.6;
}
.ae-flow .ae-notice__text--wide { max-width: none; }
.ae-pill-dark {
  padding: 6px 18px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: 1px;
}
.ae-notice__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.ae-flow .ae-go--md { padding: 14px 36px; font-size: 18px; letter-spacing: .5px; }
.ae-flow .ae-go--sm { padding: 14px 32px; font-size: 16px; letter-spacing: .5px; }
.ae-flow .ae-ghost {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 32px;
  border: 1.5px solid #DDD6EA;
  border-radius: 999px;
  background: #fff;
  color: var(--ae-ink);
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .5px;
  line-height: 1.2;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.ae-flow .ae-ghost:hover,
.ae-flow .ae-ghost:focus-visible {
  background: var(--ae-lilac);
  color: var(--ae-ink);
  transform: translate(-1px, -1px);
}
.ae-flow .ae-ghost--sm { padding: 12px 28px; font-size: 14px; }

/* S10 */
.ae-quota-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.ae-quota-dots span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #22C55E;
}

/* file cards (S11-S13) */
.ae-filecard {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 16px 24px;
  border: 1.5px solid #DDD6EA;
  border-radius: 20px;
  text-align: left;
}
.ae-filecard__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: var(--ae-lilac);
}
.ae-filecard__icon--bad { background: #FFF0F1; }
.ae-filecard__icon--video { width: 56px; height: 42px; background: #000; }
.ae-filecard__text { flex: 1; min-width: 0; }
.ae-filecard__name {
  overflow: hidden;
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 18px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ae-filecard__meta {
  font-size: 12px;
  color: var(--ae-muted);
}
.ae-filecard__ok {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #22C55E;
}
.ae-flag {
  flex: none;
  padding: 4px 14px;
  border-radius: 999px;
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .5px;
}
.ae-flag--warn { background: #FFF3CD; color: #946200; }
.ae-flag--bad { background: #FFF0F1; color: var(--ae-red); }

/* S11 */
.ae-split {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
}
.ae-split__bar {
  display: flex;
  height: 14px;
  overflow: hidden;
  border: 1.5px solid #DDD6EA;
  border-radius: 999px;
}
.ae-split__free {
  flex: none;
  background: var(--ae-brand);
}
.ae-split__rest {
  flex: 1;
  background: repeating-linear-gradient(45deg, #EEE9F6, #EEE9F6 6px, #fff 6px, #fff 12px);
}
.ae-split__legend {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ae-muted);
}
.ae-split__lfree { color: var(--ae-brand); }

/* S12 */
.ae-formats {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  width: 100%;
}
.ae-formats__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 9px;
}
.ae-formats__label {
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 1px;
  color: var(--ae-muted);
}
.ae-formats__video {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 5px 14px 5px 12px;
  border-radius: 999px;
  background: linear-gradient(180deg, #2E2E2E, #111);
  color: #fff;
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 1.2px;
}
.ae-formats__video em {
  color: var(--ae-yellow);
  font-style: normal;
}
.ae-fchip {
  padding: 4px 14px;
  border: 1.5px solid #DDD6EA;
  border-radius: 999px;
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .5px;
}
.ae-fchip--muted {
  border-color: var(--ae-line);
  color: var(--ae-muted);
}
.ae-formats__more {
  font-size: 11px;
  color: #B7B2C6;
}

/* S13 */
.ae-upsell {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 22px 28px;
  border-radius: 20px;
  background: linear-gradient(180deg, #FBF9FF, #F3EDFE);
}
.ae-upsell__title {
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .5px;
}
.ae-upsell__note {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--ae-brand);
  font-size: 12px;
  font-weight: 600;
  text-align: left;
}

/* S16 upgrade modal */
.ae-upgrade {
  display: flex;
  flex-direction: column;
  width: 100%;
  max-width: 452px;
  max-height: calc(100vh - 32px);
  overflow: auto;
  border-radius: 30px;
  background: #fff;
  box-shadow: 0 26px 70px rgba(40, 10, 80, .3);
  animation: ae-rise .25s ease-out;
}
.ae-upgrade__head {
  position: relative;
  padding: 28px 32px 26px;
  background: linear-gradient(155deg, #8B4FF0 0%, #6A2ED6 52%, #4C1D95 100%);
  color: #fff;
}
.ae-upgrade__head::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(120% 90% at 15% -10%, rgba(255, 255, 255, .22) 0%, rgba(255, 255, 255, 0) 62%);
  pointer-events: none;
}
.ae-upgrade__top {
  position: relative;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}
.ae-upgrade__tag {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 13px;
  border: 1px solid rgba(255, 255, 255, .32);
  border-radius: 999px;
  background: rgba(255, 255, 255, .15);
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 10.5px;
  letter-spacing: 1.6px;
}
.ae-flow .ae-upgrade__close {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, .16);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
}
.ae-flow .ae-upgrade__close:hover,
.ae-flow .ae-upgrade__close:focus-visible {
  background: rgba(255, 255, 255, .28);
  color: #fff;
}
.ae-upgrade__price {
  position: relative;
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding-top: 18px;
}
.ae-upgrade__price strong {
  font-family: var(--ae-display);
  font-weight: 600;
  font-size: 46px;
  line-height: 1;
}
.ae-upgrade__price span {
  color: rgba(255, 255, 255, .76);
  font-size: 13.5px;
}
.ae-upgrade__sub {
  position: relative;
  padding-top: 4px;
  color: rgba(255, 255, 255, .72);
  font-size: 12.5px;
}
.ae-upgrade__body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 26px 32px 30px;
}
.ae-flow .ae-upgrade__features {
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ae-flow .ae-upgrade__features li {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.45;
}
.ae-upgrade__features svg { margin-top: 3px; }
.ae-upgrade__reason {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  border: 1.5px solid var(--ae-lilac-line);
  border-radius: 18px;
  background: linear-gradient(180deg, #FBF9FF, #F3EDFE);
  font-size: 12.5px;
  line-height: 1.5;
}
.ae-flow .ae-upgrade__cta {
  padding: 16px 0;
  box-shadow: 0 8px 22px rgba(122, 59, 232, .34);
  font-size: 17px;
  letter-spacing: .8px;
}
.ae-upgrade__foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  color: var(--ae-muted);
  font-size: 11.5px;
}
.ae-upgrade__foot i {
  width: 1px;
  height: 12px;
  background: var(--ae-line);
}
.ae-upgrade__secure {
  display: flex;
  align-items: center;
  gap: 6px;
}
.ae-flow .ae-upgrade__foot a,
.ae-flow .ae-upgrade__foot button {
  padding: 0;
  border: 0;
  background: none;
  color: var(--ae-brand-dark);
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ae-flow .ae-upgrade__foot button:hover { background: none; color: var(--ae-brand); }

@media (max-width: 991px) {
  .ae-notice__card,
  .ae-notice__card--wide { padding: 40px 32px; }
}

@media (max-width: 600px) {
  .ae-notice__card,
  .ae-notice__card--wide { gap: 18px; padding: 28px 16px; border-radius: 28px; }
  .ae-notice__heading { font-size: 19px; }
  .ae-flow .ae-notice__text { font-size: 13.5px; }
  .ae-notice__actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .ae-flow .ae-ghost { justify-content: center; }
  .ae-flow .ae-go--md { font-size: 16px; }
  .ae-quota-dots span { width: 32px; height: 32px; }
  .ae-filecard { flex-wrap: wrap; padding: 14px; }
  .ae-filecard__text { flex-basis: calc(100% - 60px); }
  .ae-filecard__name { font-size: 16px; }
  .ae-flag { margin-left: 60px; }
  .ae-upsell { padding: 18px 14px; }
  .ae-upsell__title { font-size: 15px; }
  .ae-upgrade__head { padding: 24px 22px 22px; }
  .ae-upgrade__body { padding: 22px 20px 24px; }
  .ae-upgrade__price strong { font-size: 38px; }
}

/* =====================================================================
 * Recording (step 4): S02 microphone blocked, S03 recording, S04 review.
 * ===================================================================== */

.ae-mic-off {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 88px;
  height: 88px;
  border: 2px solid var(--ae-red);
  border-radius: 50%;
  background: #FFF0F1;
}

.ae-rec { gap: 32px; }
.ae-rec__controls {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 32px;
}
.ae-flow .ae-rec__btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 32px;
  border: 1.5px solid #DDD6EA;
  border-radius: 999px;
  background: #fff;
  color: var(--ae-ink);
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1.3;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease;
}
.ae-flow .ae-rec__btn:hover,
.ae-flow .ae-rec__btn:focus-visible {
  background: var(--ae-lilac);
  color: var(--ae-ink);
  transform: translate(-1px, -1px);
}
.ae-flow .ae-rec__btn--end:hover,
.ae-flow .ae-rec__btn--end:focus-visible { background: #FFF5F5; }
.ae-rec__pause-icon {
  display: flex;
  gap: 4px;
}
.ae-rec__pause-icon i {
  width: 5px;
  height: 18px;
  border-radius: 2px;
  background: #000;
}
.ae-rec__resume-icon { display: none; }
.ae-rec__btn.is-paused .ae-rec__pause-icon { display: none; }
.ae-rec__btn.is-paused .ae-rec__resume-icon { display: flex; }
.ae-rec__dot {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: linear-gradient(180deg, #FF5A64, #DC2029);
  box-shadow: 0 0 0 3px #FFD3D6;
}
.ae-rec__dot.is-live { animation: ae-pulse 1.2s infinite; }
.ae-rec__meter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 100%;
  height: 72px;
  padding: 20px 32px;
  overflow: hidden;
  border-radius: 999px;
  background: #000;
}
.ae-rec__meter span {
  flex: none;
  width: 4px;
  height: 4px;
  border-radius: 3px;
  background: #fff;
  transition: height .08s linear;
}
.ae-rec__time {
  padding: 4px 34px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 18px;
  font-variant-numeric: tabular-nums;
  transition: background .3s;
}
.ae-rec__time small {
  font-size: 14px;
  opacity: .6;
}
.ae-rec__time.is-warning { background: var(--ae-red); }
.ae-rec__warn {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 10px;
  padding: 6px 20px;
  border: 2px solid #E0B000;
  border-radius: 999px;
  background: #FFF3CD;
  color: #946200;
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 13px;
  letter-spacing: .5px;
  animation: ae-rise .3s ease-out;
}
.ae-flow .ae-rec__warn button {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  letter-spacing: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ae-flow .ae-rec__warn button:hover { background: none; color: #6B4700; }

.ae-review { gap: 28px; }
.ae-player__bars--review span.is-played { opacity: .45; }
.ae-time--lg {
  padding: 7px 16px;
  border-radius: 12px;
  font-size: 16px;
}
.ae-time--lg small { font-size: 12.5px; }
.ae-review__actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 56px;
}
.ae-flow .ae-review__discard,
.ae-flow .ae-review__accept {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 72px;
  height: 72px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  transition: transform .15s ease, filter .15s ease;
}
.ae-flow .ae-review__discard {
  background: linear-gradient(180deg, #FF5A64, #DC2029);
  box-shadow: 0 10px 26px rgba(220, 32, 41, .3);
}
.ae-flow .ae-review__accept { background: #22C55E; }
.ae-flow .ae-review__discard:hover,
.ae-flow .ae-review__discard:focus-visible,
.ae-flow .ae-review__accept:hover,
.ae-flow .ae-review__accept:focus-visible {
  filter: brightness(1.07);
  transform: translateY(-2px);
}
.ae-flow .ae-review__discard:hover,
.ae-flow .ae-review__discard:focus-visible { background: linear-gradient(180deg, #FF5A64, #DC2029); }
.ae-flow .ae-review__accept:hover,
.ae-flow .ae-review__accept:focus-visible { background: #22C55E; }
.ae-flow .ae-review__confirm {
  padding: 14px 24px;
  border: 0;
  border-radius: 999px;
  background: var(--ae-red);
  color: #fff;
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 14px;
  letter-spacing: .5px;
  cursor: pointer;
  animation: ae-rise .2s ease-out;
}
.ae-flow .ae-review__confirm:hover,
.ae-flow .ae-review__confirm:focus-visible {
  background: #DC2029;
  color: #fff;
}

@media (max-width: 600px) {
  .ae-rec { gap: 22px; }
  .ae-rec__controls { gap: 12px; }
  .ae-flow .ae-rec__btn { padding: 9px 22px; font-size: 17px; }
  .ae-rec__meter { height: 60px; padding: 14px 18px; }
  .ae-rec__meter span:nth-child(-n+10),
  .ae-rec__meter span:nth-last-child(-n+10) { display: none; }
  .ae-rec__warn { border-radius: 18px; text-align: center; }
  .ae-review__actions { gap: 32px; }
  .ae-flow .ae-review__discard,
  .ae-flow .ae-review__accept { width: 64px; height: 64px; }
  .ae-player__bars--review span:nth-child(n+40) { display: none; }
}

/* =====================================================================
 * Premium flow (step 5): S15 batch queue, S14 video result, plan cost,
 * export status.
 * ===================================================================== */

.ae-badge--brand { background: var(--ae-lilac); color: var(--ae-brand); }
.ae-plan-cost {
  margin-top: -6px;
  color: var(--ae-muted);
  font-size: 12.5px;
  text-align: right;
}
.ae-plan-cost:empty { display: none; }
.ae-plan-cost.is-short { color: var(--ae-red); font-weight: 600; }
.ae-flow div.ae-mode--locked { cursor: default; }

/* S15 */
.ae-flow .ae-batch__card {
  align-items: stretch;
  gap: 22px;
  max-width: 760px;
  padding: 44px 52px;
  text-align: left;
}
.ae-flow .ae-batch__list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ae-flow .ae-bfile {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0;
  padding: 14px 22px;
  border: 1.5px solid #DDD6EA;
  border-radius: 20px;
  background: #fff;
}
.ae-bfile__state {
  position: relative;
  flex: none;
  width: 32px;
  height: 32px;
  border: 1.5px solid var(--ae-line);
  border-radius: 50%;
}
.ae-bfile.is-uploading .ae-bfile__state,
.ae-bfile.is-processing .ae-bfile__state {
  border: 2px solid var(--ae-brand);
  border-top-color: transparent;
  animation: ae-spin .9s linear infinite;
}
.ae-bfile.is-done .ae-bfile__state { border: 0; background: #22C55E; }
.ae-bfile.is-done .ae-bfile__state::after {
  content: "";
  position: absolute;
  left: 11px;
  top: 7px;
  width: 8px;
  height: 14px;
  border: solid #fff;
  border-width: 0 3px 3px 0;
  transform: rotate(45deg);
}
.ae-bfile.is-failed .ae-bfile__state { border: 0; background: #FFF0F1; }
.ae-bfile.is-failed .ae-bfile__state::after {
  content: "!";
  position: absolute;
  inset: 0;
  color: var(--ae-red);
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 18px;
  line-height: 32px;
  text-align: center;
}
.ae-bfile__text { flex: 1; min-width: 0; }
.ae-bfile__name {
  overflow: hidden;
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ae-bfile__meta { font-size: 12px; color: var(--ae-muted); }
.ae-bfile.is-failed .ae-bfile__meta { color: var(--ae-red); }
.ae-flow .ae-bfile__link {
  flex: none;
  padding: 0;
  border: 0;
  background: none;
  color: var(--ae-brand);
  font-size: 13px;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ae-flow .ae-bfile__link:hover,
.ae-flow .ae-bfile__link:focus-visible { background: none; color: var(--ae-brand-deep); }
.ae-flow .ae-bfile__remove {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid var(--ae-red);
  border-radius: 50%;
  background: #fff;
  color: var(--ae-red);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
}
.ae-flow .ae-bfile__remove:hover,
.ae-flow .ae-bfile__remove:focus-visible { background: #FFF0F1; color: var(--ae-red); }
.ae-batch__add {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
}
.ae-flow .ae-batch__add .ae-add { font-size: 16px; padding: 10px 30px; }
.ae-batch__count { font-size: 12.5px; color: var(--ae-muted); }
.ae-flow .ae-batch__fixes { margin: 0; }
.ae-batch__progress {
  display: flex;
  align-items: center;
  gap: 20px;
}
.ae-batch__overall { flex: 1; min-width: 0; }
.ae-batch__overall-head {
  display: flex;
  justify-content: space-between;
  margin-bottom: 6px;
  color: var(--ae-muted-2);
  font-size: 12px;
  font-weight: 600;
}
.ae-batch__track {
  height: 14px;
  overflow: hidden;
  border: 1.5px solid #DDD6EA;
  border-radius: 999px;
}
.ae-batch__fill {
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--ae-brand-light), var(--ae-brand-dark));
  transition: width .3s ease;
}
.ae-flow .ae-batch__progress .ae-go { gap: 10px; padding: 13px 26px; font-size: 14px; box-shadow: none; }

/* S14 video result */
.ae-video {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  border-radius: 20px;
  background: #000;
}
.ae-video video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: pointer;
}
.ae-flow .ae-video__play {
  position: absolute;
  left: 50%;
  top: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--ae-brand-light), var(--ae-brand-deep));
  box-shadow: 0 10px 26px rgba(122, 59, 232, .32);
  transform: translate(-50%, -50%);
  cursor: pointer;
  transition: opacity .2s ease;
}
.ae-flow .ae-video__play:hover,
.ae-flow .ae-video__play:focus-visible {
  background: linear-gradient(180deg, var(--ae-brand-light), var(--ae-brand-deep));
  filter: brightness(1.1);
}
.ae-video.is-playing .ae-video__play { opacity: 0; }
.ae-video.is-playing:hover .ae-video__play { opacity: 1; background: rgba(122, 59, 232, .7); }
.ae-video.is-playing .ae-icon-play { display: none; }
.ae-video.is-playing .ae-icon-pause { display: flex; }
.ae-video__pill {
  position: absolute;
  bottom: 16px;
  padding: 5px 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 999px;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: .5px;
  pointer-events: none;
}
.ae-video__pill--time { left: 22px; }
.ae-video__pill--now { right: 22px; }
.ae-result.is-video .ae-result__grid { grid-template-columns: minmax(0, 1fr); max-width: 860px; margin: 0 auto; }
.ae-result.is-video .ae-result__tune,
.ae-result.is-video .ae-sources { display: none; }
.ae-result.is-video .ae-result__title { text-transform: uppercase; font-size: 36px; }
.ae-flow .ae-result__actions { flex-wrap: wrap; }
.ae-flow .ae-result__actions .ae-ghost { padding: 13px 28px; font-size: 14px; }

/* S09 export status */
.ae-export-status {
  padding: 10px 14px;
  border-radius: 14px;
  background: var(--ae-lilac);
  color: var(--ae-brand-dark);
  font-size: 13px;
  font-weight: 600;
  text-align: center;
}
.ae-flow .ae-modal__panel .ae-btn--block[disabled] { opacity: .6; cursor: progress; }


@media (max-width: 600px) {
  .ae-flow .ae-batch__card { padding: 24px 16px; border-radius: 28px; }
  .ae-flow .ae-bfile { flex-wrap: wrap; gap: 10px 12px; padding: 12px 14px; }
  .ae-bfile__text { flex-basis: calc(100% - 90px); }
  .ae-batch__progress { flex-direction: column; align-items: stretch; }
  .ae-plan-cost { text-align: left; }
  .ae-flow .ae-video__play { width: 60px; height: 60px; }
  .ae-video__pill { bottom: 10px; font-size: 11px; padding: 3px 10px; }
  .ae-video__pill--time { left: 10px; }
  .ae-video__pill--now { right: 10px; }
  .ae-result.is-video .ae-result__title { font-size: 26px; }
}

/* =====================================================================
 * S06 queue (free users; presentational countdown while the job runs)
 * ===================================================================== */
.ae-flow .ae-queue__card { gap: 26px; max-width: 760px; padding: 48px 64px; }
.ae-queue__pos {
  padding: 6px 28px;
  border-radius: 999px;
  background: #000;
  color: #fff;
  font-family: var(--ae-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: .5px;
  animation: ae-rise .3s ease-out;
}
.ae-queue__track {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ae-queue__file {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 44px;
  height: 44px;
  border: 2px solid var(--ae-brand);
  border-radius: 12px;
  background: var(--ae-lilac);
}
.ae-queue__dots {
  display: flex;
  align-items: center;
  gap: 8px;
}
.ae-queue__dots i {
  display: block;
  flex: none;
  border-radius: 50%;
  background: #B7B2C6;
  transition: all .4s ease;
}
.ae-queue__dots i.is-passed { background: #E2DEEA; }
.ae-queue__go {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(180deg, var(--ae-brand-light), var(--ae-brand-deep));
  box-shadow: 0 2px 6px rgba(122, 59, 232, .28);
}
.ae-queue__go svg { width: 18px; height: 18px; }
.ae-queue__note { font-size: 13px; color: var(--ae-muted); }
.ae-queue__heard {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 18px 24px;
  border-radius: 20px;
  background: linear-gradient(180deg, #FBF9FF, #F3EDFE);
  text-align: left;
}
.ae-flow .ae-queue__heard p {
  flex: 1;
  margin: 0;
  color: var(--ae-ink);
  font-size: 13px;
  line-height: 1.55;
}
.ae-flow a.ae-queue__skip { gap: 10px; text-decoration: none; }
.ae-flow a.ae-queue__skip:hover,
.ae-flow a.ae-queue__skip:focus-visible { text-decoration: none; }

@media (max-width: 600px) {
  .ae-flow .ae-queue__card { padding: 28px 16px; border-radius: 28px; }
  .ae-queue__dots { gap: 5px; }
  .ae-queue__heard { padding: 14px 16px; }
  .ae-flow a.ae-queue__skip { white-space: normal; text-align: center; }
}
