/* ========================================
   AI INFLUENCERS & CONTENT PAGE — clean cube layout
   ======================================== */

/* Make all sections transparent so the video bg shows through */
.aii-hero,
.aiw-section,
body .sales-final {
  background: transparent !important;
}

/* HERO LAYOUT */
.aii-hero {
  min-height: 100vh;
  padding: 200px 32px 70px;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  position: relative;
  overflow-x: hidden;
  overflow-y: visible;
}

.aii-hero-grid {
  width: 100%;
  max-width: 1240px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}

.aii-hero-copy { text-align: left; }

.aii-hero-copy .sales-headline {
  font-size: 56px;
  line-height: 1.05;
  margin-bottom: 24px;
}

.aii-hero-copy .sales-sub {
  margin: 0 0 32px;
  max-width: 540px;
}

/* Visual column — cube + typewriter caption */
.aii-visual {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-orient: vertical;
  -webkit-box-direction: normal;
  -ms-flex-direction: column;
  flex-direction: column;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 26px;
}

/* CUBE WRAP */
.aii-cube-wrap {
  position: relative;
  width: 320px;
  height: 320px;
  margin: 0 auto;
  -webkit-perspective: 1200px;
  perspective: 1200px;
}

/* Typewriter caption */
.aii-cube-caption {
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 17px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.88);
  letter-spacing: 0.005em;
  text-align: center;
  min-height: 36px;
  max-width: 360px;
  line-height: 1.6;
  padding: 4px 8px;
  overflow: visible;
}

.aii-type-cursor {
  display: inline-block;
  margin-left: 2px;
  color: var(--purple);
  font-weight: 400;
  -webkit-animation: aiiCursorBlink 1s steps(2) infinite;
  animation: aiiCursorBlink 1s steps(2) infinite;
}

@-webkit-keyframes aiiCursorBlink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@keyframes aiiCursorBlink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

/* Animated glow halo — subtle, doesn't overtake the page */
.aii-cube-glow {
  position: absolute;
  top: -10px;
  left: -10px;
  right: -10px;
  bottom: -10px;
  border-radius: 28px;
  background: -webkit-linear-gradient(135deg,
    rgba(139, 92, 246, 0.55) 0%,
    rgba(192, 132, 252, 0.75) 50%,
    rgba(139, 92, 246, 0.55) 100%);
  background: linear-gradient(135deg,
    rgba(139, 92, 246, 0.55) 0%,
    rgba(192, 132, 252, 0.75) 50%,
    rgba(139, 92, 246, 0.55) 100%);
  background-size: 300% 300%;
  -webkit-filter: blur(18px);
  filter: blur(18px);
  opacity: 0.32;
  z-index: 0;
  -webkit-animation: aiiGlowSweep 7s ease-in-out infinite;
  animation: aiiGlowSweep 7s ease-in-out infinite;
}

@-webkit-keyframes aiiGlowSweep {
  0%, 100% { background-position: 0% 50%; opacity: 0.25; }
  50%      { background-position: 100% 50%; opacity: 0.4; }
}
@keyframes aiiGlowSweep {
  0%, 100% { background-position: 0% 50%; opacity: 0.25; }
  50%      { background-position: 100% 50%; opacity: 0.4; }
}

/* The cube itself */
.aii-cube {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 22px;
  overflow: hidden;
  background: #000;
  border: 1.5px solid rgba(139, 92, 246, 0.45);
  -webkit-box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(139, 92, 246, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.55),
    0 0 24px rgba(139, 92, 246, 0.18),
    inset 0 0 0 1px rgba(255, 255, 255, 0.04);
  z-index: 1;
  -webkit-transform: rotateX(2deg) rotateY(-4deg);
  transform: rotateX(2deg) rotateY(-4deg);
  -webkit-animation: aiiCubeFloat 7s ease-in-out infinite;
  animation: aiiCubeFloat 7s ease-in-out infinite;
}

@-webkit-keyframes aiiCubeFloat {
  0%, 100% { -webkit-transform: rotateX(2deg) rotateY(-4deg) translateY(0); transform: rotateX(2deg) rotateY(-4deg) translateY(0); }
  50%      { -webkit-transform: rotateX(2deg) rotateY(-4deg) translateY(-10px); transform: rotateX(2deg) rotateY(-4deg) translateY(-10px); }
}
@keyframes aiiCubeFloat {
  0%, 100% { transform: rotateX(2deg) rotateY(-4deg) translateY(0); }
  50%      { transform: rotateX(2deg) rotateY(-4deg) translateY(-10px); }
}

.aii-cube video {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  display: block;
}

/* Floating livestream-style heart particles (bottom-left) */
.aii-hearts {
  position: absolute;
  left: 8px;
  bottom: 8px;
  width: 60px;
  height: 100%;
  pointer-events: none;
  z-index: 4;
  overflow: visible;
}

.aii-heart {
  position: absolute;
  bottom: 0;
  display: block;
  opacity: 0.7;
  -webkit-filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.7)) drop-shadow(0 0 14px rgba(139, 92, 246, 0.4));
  filter: drop-shadow(0 0 6px rgba(192, 132, 252, 0.7)) drop-shadow(0 0 14px rgba(139, 92, 246, 0.4));
  -webkit-animation: aiiHeartFloat var(--dur, 2600ms) ease-out forwards;
  animation: aiiHeartFloat var(--dur, 2600ms) ease-out forwards;
  will-change: transform, opacity;
}

.aii-heart svg {
  width: 100%;
  height: 100%;
  display: block;
}

@-webkit-keyframes aiiHeartFloat {
  0%   { -webkit-transform: translate(0, 0) scale(0.6); transform: translate(0, 0) scale(0.6); opacity: 0; }
  18%  { -webkit-transform: translate(0, -20px) scale(1); transform: translate(0, -20px) scale(1); opacity: 0.7; }
  60%  { opacity: 0.55; }
  100% { -webkit-transform: translate(var(--drift, 12px), -180px) scale(0.7); transform: translate(var(--drift, 12px), -180px) scale(0.7); opacity: 0; }
}
@keyframes aiiHeartFloat {
  0%   { transform: translate(0, 0) scale(0.6); opacity: 0; }
  18%  { transform: translate(0, -20px) scale(1); opacity: 0.7; }
  60%  { opacity: 0.55; }
  100% { transform: translate(var(--drift, 12px), -180px) scale(0.7); opacity: 0; }
}

/* Eye + view counter pill, top-right of cube */
.aii-cube-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  display: -webkit-inline-box;
  display: -ms-inline-flexbox;
  display: inline-flex;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: rgba(8, 6, 16, 0.78);
  border: 1px solid rgba(192, 132, 252, 0.55);
  border-radius: 100px;
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  font-family: 'Inter', sans-serif;
  z-index: 5;
  -webkit-box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

.aii-eye {
  width: 16px;
  height: 16px;
  color: #c084fc;
  flex-shrink: 0;
}

#aiiViews {
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.01em;
}

/* MOBILE / TABLET */
@media (max-width: 1024px) {
  .aii-hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
    text-align: center;
  }
  .aii-hero-copy { text-align: center; }
  .aii-hero-copy .sales-sub { margin-left: auto; margin-right: auto; }
  .aii-cube-wrap { margin: 0 auto; }
}

@media (max-width: 768px) {
  .aii-hero {
    padding: 180px 20px 40px;
    min-height: auto;
  }
  .aii-hero-grid { gap: 36px; }
  .aii-hero-copy .sales-headline { font-size: 38px; }
  .aii-hero-copy .sales-sub { font-size: 16px; }

  .aii-cube-wrap {
    width: 260px;
    height: 260px;
  }
  .aii-cube {
    border-radius: 20px;
    -webkit-transform: none;
    transform: none;
  }
  @-webkit-keyframes aiiCubeFloat {
    0%, 100% { -webkit-transform: translateY(0); transform: translateY(0); }
    50%      { -webkit-transform: translateY(-6px); transform: translateY(-6px); }
  }
  @keyframes aiiCubeFloat {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-6px); }
  }
  .aii-cube-glow {
    top: -8px; left: -8px; right: -8px; bottom: -8px;
    border-radius: 24px;
    -webkit-filter: blur(14px);
    filter: blur(14px);
  }
  .aii-cube-counter {
    top: 10px;
    right: 10px;
    font-size: 12px;
    padding: 5px 10px;
  }
  .aii-eye { width: 14px; height: 14px; }

  .aii-visual { gap: 20px; }
  .aii-cube-caption { font-size: 15px; max-width: 280px; }
}

@media (max-width: 380px) {
  .aii-cube-wrap { width: 220px; height: 220px; }
}

/* ========================================
   AI INFLUENCERS — multi-step wizard
   ======================================== */

/* Each section is a panel. Hidden by default, only .is-active is visible. */
.aii-form .aii-form-section {
  display: none;
  padding: 4px 0 6px;
  border-top: none;
}
.aii-form .aii-form-section.is-active {
  display: block;
  -webkit-animation: aiiStepFadeIn 0.32s ease both;
  animation: aiiStepFadeIn 0.32s ease both;
}

@-webkit-keyframes aiiStepFadeIn {
  from { opacity: 0; -webkit-transform: translateY(8px); transform: translateY(8px); }
  to   { opacity: 1; -webkit-transform: translateY(0); transform: translateY(0); }
}
@keyframes aiiStepFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Step pill (kept) */
.aii-form-step {
  display: inline-block;
  font-family: 'Inter', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #c084fc;
  margin-bottom: 16px;
  padding: 5px 14px;
  border: 1px solid rgba(139, 92, 246, 0.4);
  border-radius: 100px;
  background: rgba(139, 92, 246, 0.08);
  -webkit-box-shadow: 0 0 14px rgba(139, 92, 246, 0.15);
  box-shadow: 0 0 14px rgba(139, 92, 246, 0.15);
}

/* Progress dots row at top of form */
.aii-progress {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -webkit-box-pack: center;
  -ms-flex-pack: center;
  justify-content: center;
  gap: 8px;
  margin: 4px 0 22px;
}
.aii-progress-dot {
  width: 28px;
  height: 4px;
  border-radius: 100px;
  background: rgba(139, 92, 246, 0.22);
  -webkit-transition: background 0.3s ease, box-shadow 0.3s ease;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.aii-progress-dot.is-done {
  background: rgba(192, 132, 252, 0.65);
}
.aii-progress-dot.is-active {
  background: #c084fc;
  -webkit-box-shadow: 0 0 12px rgba(192, 132, 252, 0.6);
  box-shadow: 0 0 12px rgba(192, 132, 252, 0.6);
}

/* Step navigation row (Back / Continue) */
.aii-step-nav {
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  gap: 12px;
  margin-top: 26px;
  padding-top: 6px;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
}
.aii-step-spacer { -webkit-box-flex: 1; -ms-flex: 1 1 auto; flex: 1 1 auto; }

.aii-step-back,
.aii-step-next {
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 15px;
  letter-spacing: 0.005em;
  padding: 14px 24px;
  border-radius: 100px;
  cursor: pointer;
  -webkit-transition: all 0.25s ease;
  transition: all 0.25s ease;
  border: 1px solid rgba(139, 92, 246, 0.45);
}

.aii-step-back {
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  -webkit-box-flex: 0;
  -ms-flex: 0 0 auto;
  flex: 0 0 auto;
}
.aii-step-back:hover {
  background: rgba(139, 92, 246, 0.1);
  color: #fff;
  border-color: rgba(192, 132, 252, 0.6);
}

.aii-step-next {
  background: -webkit-linear-gradient(135deg, #8b5cf6 0%, #c084fc 100%);
  background: linear-gradient(135deg, #8b5cf6 0%, #c084fc 100%);
  color: #fff;
  border-color: transparent;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
  -webkit-box-shadow: 0 0 22px rgba(139, 92, 246, 0.42);
  box-shadow: 0 0 22px rgba(139, 92, 246, 0.42);
}
.aii-step-next:hover {
  -webkit-transform: translateY(-2px);
  transform: translateY(-2px);
  -webkit-box-shadow: 0 0 32px rgba(139, 92, 246, 0.6);
  box-shadow: 0 0 32px rgba(139, 92, 246, 0.6);
}

/* Final step — Back + Submit side-by-side; submit takes flex:1 */
.aii-step-nav-final {
  margin-top: 18px;
}
.aii-step-nav-final .aii-submit-inline {
  margin: 0;
  -webkit-box-flex: 1;
  -ms-flex: 1 1 auto;
  flex: 1 1 auto;
}

@media (max-width: 768px) {
  .aii-progress { margin: 2px 0 18px; gap: 6px; }
  .aii-progress-dot { width: 22px; height: 4px; }
  .aii-form-step {
    font-size: 10px;
    padding: 4px 12px;
    margin-bottom: 12px;
  }
  .aii-step-nav { margin-top: 22px; gap: 10px; }
  .aii-step-back,
  .aii-step-next {
    font-size: 14px;
    padding: 12px 18px;
  }
}
