/* ==========================================================================
   Aisthetic Pro WooCommerce Conversion Hero Slider [Elementor Pro Widget]
   Scoped to .ah for zero-conflict performance
   ========================================================================== */

.ah {
  --bg: #0a0f24;
  --surf: #121a2e;
  --line: #26314d;
  --text: #f4f7ff;
  --muted: #a3afc8;
  --blue: #2eb4ff;
  --violet: #7c5cff;
  --cyan: #22d3ee;
  --green: #14c48a;
  --amber: #ffb020;
  position: relative;
  overflow: hidden;
  background: var(--bg);
  color: var(--text);
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  line-height: 1.6;
  width: 100%;
}

.ah *,
.ah *::before,
.ah *::after {
  box-sizing: border-box;
}

.ah h1,
.ah h2,
.ah p {
  margin: 0;
}

.ah :focus-visible {
  outline: 3px solid var(--amber);
  outline-offset: 3px;
  border-radius: 8px;
}

.ah-slides {
  position: relative;
  min-height: clamp(680px, 88vh, 840px);
}

.ah-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.7s;
}

.ah-slide-inner {
  width: 100%;
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(50px, 6vh, 85px) clamp(24px, 4vw, 48px) clamp(110px, 10vh, 140px);
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
  gap: clamp(36px, 5vw, 76px);
  align-items: center;
  position: relative;
  z-index: 2;
}

/* Fallback for unnested slides */
.ah-slide:not(:has(.ah-slide-inner)) {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(24px, 4vw, 64px);
  padding: clamp(40px, 5vw, 70px) clamp(20px, 5vw, 80px) 96px;
}

.ah-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

.ah-bgfx {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: var(--g);
}

.ah-slide:nth-child(1) {
  --g: radial-gradient(760px 460px at 88% 8%, rgba(46, 180, 255, 0.34), transparent 62%), linear-gradient(135deg, #0a0f24, #1e1b4b);
}

.ah-slide:nth-child(2) {
  --g: radial-gradient(760px 460px at 8% 100%, rgba(124, 92, 255, 0.40), transparent 62%), linear-gradient(160deg, #0a0f24, #17184a);
}

.ah-slide:nth-child(3) {
  --g: radial-gradient(700px 440px at 92% 90%, rgba(34, 211, 238, 0.28), transparent 62%), linear-gradient(135deg, #0a1226, #1e1b4b);
}

.ah-slide:nth-child(4) {
  --g: radial-gradient(760px 460px at 10% 5%, rgba(46, 180, 255, 0.30), transparent 62%), radial-gradient(500px 360px at 95% 95%, rgba(124, 92, 255, 0.30), transparent 60%), linear-gradient(150deg, #0a0f24, #141a44);
}

/* text entrance animation */
.ah-in {
  opacity: 0;
}

.ah-slide.is-active .ah-in {
  animation: ah-up 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  animation-delay: calc(var(--d, 0) * 130ms + 200ms);
}

@keyframes ah-up {
  from {
    opacity: 0;
    transform: translateY(26px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.ah-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 9px 18px;
  border: 1px solid rgba(46, 180, 255, 0.35);
  border-radius: 999px;
  background: rgba(46, 180, 255, 0.12);
  color: var(--blue);
  font: 700 0.78rem 'Montserrat', sans-serif;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  box-shadow: 0 4px 16px rgba(46, 180, 255, 0.12);
  margin-bottom: 22px;
}

.ah-eyebrow i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 10px var(--green);
}

.ah-title {
  margin: 0 0 24px 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(2.3rem, 4vw, 3.6rem);
  line-height: 1.22;
  letter-spacing: -0.025em;
  max-width: 18ch;
  color: #fff;
}

.ah-title em {
  font-style: normal;
  background: linear-gradient(90deg, var(--blue), var(--violet));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.ah-copy {
  color: #cbd5e1;
  font-size: clamp(1.05rem, 1.25vw, 1.2rem);
  max-width: 50ch;
  margin-bottom: 38px;
  line-height: 1.75;
}

.ah-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  align-items: center;
}

.ah-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 16px 32px;
  border-radius: 14px;
  font: 700 1rem 'Montserrat', sans-serif;
  text-decoration: none !important;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s, border-color 0.25s;
  cursor: pointer;
  min-height: 52px;
}

.ah-btn:hover {
  transform: translateY(-2px);
}

.ah-p {
  background: linear-gradient(120deg, var(--blue), var(--violet));
  color: #fff !important;
  box-shadow: 0 10px 30px rgba(46, 180, 255, 0.28);
  border: none;
}

.ah-p:hover {
  box-shadow: 0 14px 38px rgba(124, 92, 255, 0.42);
}

.ah-g {
  border: 1px solid var(--line);
  color: var(--text) !important;
  background: rgba(255, 255, 255, 0.04);
}

.ah-g:hover {
  border-color: var(--blue);
  background: rgba(255, 255, 255, 0.08);
}

/* visuals container */
.ah-vis {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 380px;
}

.ah-card {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.4);
}

.ah-slide .ah-vis > * {
  opacity: 0;
}

.ah-slide.is-active .ah-vis > * {
  animation: ah-pop 0.8s cubic-bezier(0.2, 0.7, 0.2, 1) 0.3s both;
}

@keyframes ah-pop {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ==========================================================================
   Slide 1 Visual: Chips collapsing into Core Engine
   ========================================================================== */
.v1 {
  width: min(440px, 100%);
  display: grid;
  gap: 22px;
}

.v1-stage {
  position: relative;
  width: 100%;
  min-height: 154px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.v1-chips {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  width: 100%;
}

.v1-chips span {
  padding: 11px 14px;
  border-radius: 12px;
  background: var(--surf);
  border: 1px solid var(--line);
  color: var(--muted);
  font: 600 0.86rem 'Montserrat', sans-serif;
  text-align: center;
}

.ah-slide.is-active .v1-chips span {
  animation: ah-chipin 0.5s ease both, ah-chipout 0.65s cubic-bezier(0.4, 0, 0.2, 1) both;
  animation-delay: calc(var(--i) * 0.12s + 0.3s), calc(2.8s + var(--i) * 0.04s);
}

@keyframes ah-chipin {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ah-chipout {
  0% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(50px) scale(0.6);
    pointer-events: none;
    visibility: hidden;
  }
}

/* ==========================================================================
   Slide 1: Aisthetic Logo Reveal (Replaces chips on top)
   ========================================================================== */
.v1-logo-reveal {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  opacity: 0;
  z-index: 3;
}

.v1-logo-glow {
  position: absolute;
  width: 220px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(ellipse at center, rgba(124, 92, 255, 0.6) 0%, rgba(46, 180, 255, 0.3) 50%, transparent 72%);
  filter: blur(24px);
  pointer-events: none;
  opacity: 0;
}

.v1-logo-img {
  position: relative;
  max-height: 124px;
  max-width: 250px;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
  background: transparent;
  mix-blend-mode: screen;
  filter: drop-shadow(0 0 25px rgba(124, 92, 255, 0.5)) drop-shadow(0 0 45px rgba(46, 180, 255, 0.35));
}

.ah-slide.is-active .v1-logo-reveal {
  animation: ah-logo-reveal 0.85s cubic-bezier(0.16, 1, 0.3, 1) 3.3s both;
}

.ah-slide.is-active .v1-logo-img {
  animation: ah-logo-float 3.6s ease-in-out 4.15s infinite alternate;
}

.ah-slide.is-active .v1-logo-glow {
  animation: ah-glow-pulse 3.6s ease-in-out 3.3s infinite alternate;
}

@keyframes ah-logo-reveal {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.7);
  }
  65% {
    opacity: 1;
    transform: translateY(-4px) scale(1.04);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes ah-logo-float {
  0% {
    transform: translateY(0) scale(1);
  }
  100% {
    transform: translateY(-8px) scale(1.03);
  }
}

@keyframes ah-glow-pulse {
  0% {
    opacity: 0.5;
    transform: scale(0.85);
  }
  100% {
    opacity: 0.85;
    transform: scale(1.2);
  }
}


.v1-core {
  padding: 24px;
  text-align: center;
  border-color: rgba(46, 180, 255, 0.5);
  background: linear-gradient(160deg, #142046, #121a2e);
}

.v1-core b {
  display: block;
  font: 800 1.5rem 'Montserrat', sans-serif;
  color: #fff;
}

.v1-core span {
  color: var(--muted);
  font-size: 0.92rem;
}

.ah-slide.is-active .v1-core {
  animation: ah-glow 2.4s ease-in-out 3.4s infinite;
}

@keyframes ah-glow {
  50% {
    box-shadow: 0 0 0 1px rgba(46, 180, 255, 0.6), 0 0 46px rgba(46, 180, 255, 0.4);
  }
}

/* ==========================================================================
   Slide 2 Visual: Interactive Theme Modules Manager Dashboard
   ========================================================================== */
.v2-dashboard {
  width: min(490px, 100%);
  padding: 0;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(14, 20, 38, 0.94);
  border: 1px solid rgba(46, 180, 255, 0.22);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.65), 0 0 32px rgba(46, 180, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.v2-dash-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 13px 18px;
  background: rgba(18, 26, 46, 0.96);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.v2-win-dots {
  display: flex;
  gap: 6px;
}

.v2-win-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.v2-win-dots .dot-red { background: #ef4444; }
.v2-win-dots .dot-yel { background: #f59e0b; }
.v2-win-dots .dot-grn { background: #10b981; }

.v2-dash-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font: 700 0.82rem 'Montserrat', sans-serif;
  color: #fff;
  letter-spacing: 0.02em;
}

.v2-dash-title svg {
  color: var(--blue);
}

.v2-dash-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(20, 196, 138, 0.12);
  border: 1px solid rgba(20, 196, 138, 0.3);
  font: 700 0.74rem 'Montserrat', sans-serif;
  color: #22d3ee;
}

.v2-pulse-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #14c48a;
  box-shadow: 0 0 8px #14c48a;
  animation: ah-pulse-green 1.8s infinite;
}

@keyframes ah-pulse-green {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}

.v2-dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 10px 18px;
  background: rgba(10, 15, 36, 0.5);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.v2-stat-pill {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font: 600 0.72rem 'Montserrat', sans-serif;
  color: var(--muted);
  white-space: nowrap;
}

.v2-stat-pill.v2-stat-green {
  color: #14c48a;
  border-color: rgba(20, 196, 138, 0.25);
  background: rgba(20, 196, 138, 0.06);
}

.v2-stat-icon {
  font-size: 0.8rem;
}

.v2-module-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 18px;
}

.v2-module-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid rgba(255, 255, 255, 0.05);
  transition: all 0.25s ease;
  cursor: pointer;
}

.v2-module-item:hover {
  background: rgba(46, 180, 255, 0.06);
  border-color: rgba(46, 180, 255, 0.25);
  transform: translateX(3px);
}

.v2-module-item.is-active {
  background: rgba(24, 34, 61, 0.5);
  border-color: rgba(46, 180, 255, 0.18);
}

.v2-module-icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(46, 180, 255, 0.12);
  color: var(--blue);
  border: 1px solid rgba(46, 180, 255, 0.2);
}

.v2-module-icon svg {
  width: 16px;
  height: 16px;
}

.mod-cart { background: rgba(46, 180, 255, 0.14); color: #2eb4ff; }
.mod-search { background: rgba(34, 211, 238, 0.14); color: #22d3ee; }
.mod-swatches { background: rgba(124, 92, 255, 0.14); color: #a78bfa; }
.mod-quickview { background: rgba(20, 196, 138, 0.14); color: #14c48a; }
.mod-sticky { background: rgba(255, 176, 32, 0.14); color: #ffb020; }
.mod-timer { background: rgba(244, 63, 94, 0.14); color: #fb7185; }

.v2-module-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.v2-module-name {
  font: 700 0.84rem 'Montserrat', sans-serif;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-module-desc {
  font-size: 0.72rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.v2-toggle-btn {
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
}

.v2-toggle-track {
  display: block;
  width: 38px;
  height: 22px;
  border-radius: 999px;
  background: #1e293b;
  position: relative;
  transition: background 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.v2-toggle-thumb {
  position: absolute;
  top: 2px;
  left: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #94a3b8;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease;
}

.v2-toggle-btn.is-on .v2-toggle-track,
.v2-module-item.is-active .v2-toggle-track {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-color: rgba(46, 180, 255, 0.5);
  box-shadow: 0 0 12px rgba(46, 180, 255, 0.4);
}

.v2-toggle-btn.is-on .v2-toggle-thumb,
.v2-module-item.is-active .v2-toggle-thumb {
  transform: translateX(16px);
  background: #ffffff;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}

.v2-dash-footer {
  padding: 10px 18px 14px;
  background: rgba(12, 18, 34, 0.95);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.v2-matrix-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font: 600 0.72rem 'Montserrat', sans-serif;
  color: var(--muted);
  margin-bottom: 8px;
}

.v2-matrix-hint {
  color: var(--blue);
  font-size: 0.68rem;
}

.v2-matrix-dots {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.v2-mdot {
  width: 8px;
  height: 8px;
  border-radius: 2px;
  background: #18223d;
  border: 1px solid rgba(255, 255, 255, 0.08);
  transition: all 0.2s ease;
}

.v2-mdot.is-on {
  background: linear-gradient(135deg, var(--blue), var(--violet));
  border-color: rgba(46, 180, 255, 0.4);
  box-shadow: 0 0 6px rgba(46, 180, 255, 0.3);
}

.v2-mdot:hover {
  transform: scale(1.3);
  border-color: #fff;
}

/* Backwards compatibility for .v2 */
.v2 {
  width: min(430px, 100%);
  padding: 26px;
  text-align: center;
}

/* ==========================================================================
   Slide 3 Visual: Slide-Out Cart Drawer Simulation
   ========================================================================== */
.v3 {
  width: min(390px, 100%);
  padding: 24px;
  display: grid;
  gap: 16px;
  background: rgba(14, 20, 38, 0.94);
  border: 1px solid rgba(46, 180, 255, 0.22);
  border-radius: 20px;
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.65), 0 0 32px rgba(46, 180, 255, 0.1);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.v3-h {
  display: flex;
  justify-content: space-between;
  font: 700 0.95rem 'Montserrat', sans-serif;
  color: #fff;
}

.v3-item {
  display: grid;
  grid-template-columns: 46px 1fr auto;
  gap: 12px;
  align-items: center;
  font-size: 0.88rem;
}

.v3-item i {
  width: 46px;
  height: 46px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1e3a8a, #2eb4ff);
}

.v3-item:nth-of-type(3) i {
  background: linear-gradient(135deg, #14532d, #14c48a);
}

.v3-item small {
  display: block;
  color: var(--muted);
}

.v3-ship {
  padding: 12px;
  border-radius: 12px;
  background: #0e1630;
  border: 1px solid var(--line);
  font-size: 0.84rem;
}

.v3-bar {
  height: 8px;
  margin-top: 9px;
  border-radius: 8px;
  background: #1b2745;
  overflow: hidden;
}

.v3-bar i {
  display: block;
  height: 100%;
  width: 86%;
  border-radius: 8px;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.ah-slide.is-active .v3-bar i {
  animation: ah-fill 1s ease 2.2s both;
}

@keyframes ah-fill {
  to {
    width: 100%;
  }
}

.v3-l2 {
  display: none;
  color: var(--green);
  font-weight: 600;
}

.ah-slide.is-active .v3-l1 {
  animation: ah-hide 0.1s 3s forwards;
}

.ah-slide.is-active .v3-l2 {
  display: block;
  opacity: 0;
  animation: ah-show 0.5s 3.1s forwards;
}

@keyframes ah-hide {
  to {
    display: none;
    opacity: 0;
    height: 0;
    overflow: hidden;
  }
}

@keyframes ah-show {
  to {
    opacity: 1;
  }
}

.v3-t {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.84rem;
  color: var(--muted);
}

.v3-t b {
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(255, 176, 32, 0.14);
  color: var(--amber);
  font: 700 0.9rem 'Montserrat', sans-serif;
  font-variant-numeric: tabular-nums;
}

.v3-btn {
  padding: 13px;
  border-radius: 12px;
  text-align: center;
  background: linear-gradient(120deg, var(--blue), var(--violet));
  font: 700 0.92rem 'Montserrat', sans-serif;
  color: #fff;
  cursor: pointer;
}

/* ==========================================================================
   Slide 4 Visual: Color Swatches & Quick View Interaction
   ========================================================================== */
@property --acc {
  syntax: '<color>';
  inherits: true;
  initial-value: #3b6df0;
}

@property --on {
  syntax: '<color>';
  inherits: true;
  initial-value: #ffffff;
}

.v4 {
  --pf: 'Playfair Display', Georgia, serif;
  --pu: 'Poppins', 'Open Sans', sans-serif;
  position: relative;
  width: min(400px, 100%);
  height: 360px;
  font-family: var(--pu);
}

.v4-in {
  position: absolute;
  inset: 0;
  --acc: #3b6df0;
  --on: #fff;
}

.ah-slide.is-active .v4-in {
  animation: ah-acc 3.6s ease-in-out 0.8s infinite;
}

@keyframes ah-acc {
  0%, 28% {
    --acc: #3b6df0;
    --on: #fff;
  }
  33%, 61% {
    --acc: #14c48a;
    --on: #03120d;
  }
  66%, 94% {
    --acc: #e0c78a;
    --on: #2b2412;
  }
  100% {
    --acc: #3b6df0;
    --on: #fff;
  }
}

.v4-prod {
  position: absolute;
  left: 0;
  top: 0;
  width: 230px;
  padding: 14px;
}

.v4-img {
  position: relative;
  height: 170px;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 12px;
  background: linear-gradient(135deg, #1e3a8a, #3b6df0);
}

.v4-img i {
  position: absolute;
  inset: 0;
  opacity: 0;
}

.v4-img .g {
  background: linear-gradient(135deg, #0b6b4b, #14c48a);
}

.v4-img .s {
  background: linear-gradient(135deg, #a8925a, #e8dcc0);
}

.v4-img svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  padding: 20px;
}

.ah-slide.is-active .v4-img .g {
  animation: ah-lay 3.6s ease-in-out 2s infinite;
}

.ah-slide.is-active .v4-img .s {
  animation: ah-lay 3.6s ease-in-out 3.2s infinite;
}

@keyframes ah-lay {
  0% {
    opacity: 0;
  }
  6%, 30% {
    opacity: 1;
  }
  38%, 100% {
    opacity: 0;
  }
}

.v4-prod b {
  display: block;
  font: 700 1.2rem/1.2 var(--pf);
  letter-spacing: 0.01em;
  color: #fff;
}

.v4-name {
  position: relative;
  height: 22px;
  margin-top: 4px;
  font: 500 0.86rem var(--pu);
  color: var(--muted);
}

.v4-name span {
  position: absolute;
  left: 0;
  top: 0;
  white-space: nowrap;
  opacity: 0;
}

.v4-name span:first-child {
  opacity: 1;
}

.ah-slide.is-active .v4-name span:nth-child(1) {
  animation: ah-nm0 3.6s ease-in-out 0.8s infinite;
}

.ah-slide.is-active .v4-name span:nth-child(2) {
  animation: ah-lay 3.6s ease-in-out 2s infinite;
}

.ah-slide.is-active .v4-name span:nth-child(3) {
  animation: ah-lay 3.6s ease-in-out 3.2s infinite;
}

@keyframes ah-nm0 {
  0%, 28% {
    opacity: 1;
  }
  36%, 92% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}

.v4-sw {
  display: flex;
  gap: 10px;
  margin-top: 10px;
}

.v4-sw i {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  position: relative;
  background: var(--c);
}

.v4-sw i::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 2px solid var(--text);
  border-radius: 50%;
  opacity: 0;
}

.v4-sw i:first-child::after {
  opacity: 1;
}

.ah-slide.is-active .v4-sw i::after {
  animation: ah-ring 3.6s ease-in-out calc(var(--i) * 1.2s + 0.8s) infinite;
}

@keyframes ah-ring {
  0%, 30% {
    opacity: 1;
  }
  33%, 100% {
    opacity: 0;
  }
}

.v4-qv {
  position: absolute;
  right: 0;
  top: 34px;
  width: 214px;
  padding: 16px;
  display: grid;
  gap: 11px;
}

.ah-slide.is-active .v4-qv {
  opacity: 0;
  animation: ah-slide 0.7s cubic-bezier(0.2, 0.7, 0.2, 1) 2.4s both;
}

@keyframes ah-slide {
  from {
    opacity: 0;
    transform: translateX(60px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.v4-qv b {
  font: 700 1.05rem var(--pf);
  color: #fff;
}

.v4-sz {
  display: flex;
  gap: 7px;
}

.v4-sz i {
  padding: 6px 11px;
  border-radius: 8px;
  border: 1px solid var(--line);
  font: 500 0.78rem var(--pu);
  font-style: normal;
  color: var(--muted);
}

.v4-sz i:nth-child(2) {
  border-color: var(--acc);
  color: var(--text);
  box-shadow: 0 0 0 1px var(--acc) inset;
}

.v4-add {
  padding: 11px;
  border-radius: 10px;
  text-align: center;
  background: var(--acc);
  background: linear-gradient(120deg, var(--acc), color-mix(in srgb, var(--acc) 62%, #7c5cff));
  color: var(--on);
  font: 600 0.86rem var(--pu);
}

.ah-slide.is-active .v4-add {
  animation: ah-btn 1.2s ease 3.6s 2;
}

@keyframes ah-btn {
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 28px color-mix(in srgb, var(--acc) 55%, transparent);
  }
}

.v4-toast {
  position: absolute;
  left: 50%;
  bottom: 0;
  padding: 10px 18px;
  border-radius: 999px;
  background: var(--green);
  color: #03120d;
  font: 600 0.84rem var(--pu);
  transform: translateX(-50%);
}

.ah-slide.is-active .v4-toast {
  opacity: 0;
  animation: ah-toast 0.6s cubic-bezier(0.2, 0.9, 0.3, 1.3) 4.4s both;
}

@keyframes ah-toast {
  from {
    opacity: 0;
    transform: translate(-50%, 20px);
  }
  to {
    opacity: 1;
    transform: translate(-50%, 0);
  }
}

/* ==========================================================================
   Slider Controls (Progress Dots & Navigation)
   ========================================================================== */
.ah-ctrl {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 26px;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
}

.ah-dots {
  display: flex;
  gap: 10px;
}

.ah-dot {
  width: 44px;
  height: 22px;
  padding: 8px 0;
  border: 0;
  background: none;
  cursor: pointer;
}

.ah-dot span {
  display: block;
  position: relative;
  height: 5px;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.2);
  overflow: hidden;
}

.ah-dot i {
  position: absolute;
  inset: 0;
  transform-origin: left;
  transform: scaleX(0);
  background: linear-gradient(90deg, var(--blue), var(--violet));
}

.ah-dot.is-active i {
  animation: ah-prog var(--dur, 8s) linear forwards;
}

.ah.is-paused .ah-dot.is-active i {
  animation-play-state: paused;
}

@keyframes ah-prog {
  to {
    transform: scaleX(1);
  }
}

.ah-ico {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(10, 15, 36, 0.6);
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.2s, background 0.2s;
}

.ah-ico:hover {
  border-color: var(--blue);
  background: rgba(46, 180, 255, 0.14);
}

.ah-ico svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.ah-ico .pl {
  display: none;
}

.ah.is-paused .ah-ico .pl {
  display: block;
}

.ah.is-paused .ah-ico .pa {
  display: none;
}

/* Responsive */
@media (max-width: 1024px) {
  .ah-slides {
    min-height: 940px;
  }
  .ah-slide-inner {
    grid-template-columns: 1fr;
    gap: 36px;
    padding-top: 36px;
    text-align: center;
  }
  .ah-content {
    margin: 0 auto;
  }
  .ah-cta {
    justify-content: center;
  }
  .ah-vis {
    min-height: 340px;
    display: flex;
    justify-content: center;
  }
  .ah-title {
    max-width: 22ch;
    margin-left: auto;
    margin-right: auto;
  }
  .ah-copy {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .ah-btn {
    width: 100%;
    justify-content: center;
  }
  .ah-dot {
    width: 34px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ah *,
  .ah *::before,
  .ah *::after {
    animation: none !important;
    transition: none !important;
  }
  .ah-in,
  .ah-slide .ah-vis > *,
  .ah-slide .v4-qv,
  .ah-slide .v4-toast {
    opacity: 1 !important;
  }
  .v1-chips span {
    opacity: 0.85;
  }
  .v1-logo-reveal {
    opacity: 1;
    position: relative;
  }
  .v3-l2,
  .ah-dot .pa {
    display: none;
  }
  .ah-dot.is-active i {
    transform: scaleX(1);
  }
}

/* ==========================================================================
   Light Mode Conversion Hero Slider (.ah)
   ========================================================================== */
html[data-color-mode*="light"] .ah {
  --bg: #F8FAFC;
  --surf: #FFFFFF;
  --line: #E2E8F0;
  --text: #0F172A;
  --muted: #64748B;
  --blue: #0284C7;
  --violet: #7C3AED;
  --cyan: #0891B2;
  --green: #10B981;
  --amber: #D97706;
  background: #F8FAFC !important;
  color: #0F172A !important;
}

html[data-color-mode*="light"] .ah .ah-slide:nth-child(1) {
  --g: radial-gradient(760px 460px at 88% 8%, rgba(2, 132, 199, 0.12), transparent 65%), linear-gradient(135deg, #FFFFFF, #EFF6FF) !important;
}
html[data-color-mode*="light"] .ah .ah-slide:nth-child(2) {
  --g: radial-gradient(760px 460px at 8% 100%, rgba(124, 58, 237, 0.12), transparent 65%), linear-gradient(160deg, #FFFFFF, #F5F3FF) !important;
}
html[data-color-mode*="light"] .ah .ah-slide:nth-child(3) {
  --g: radial-gradient(700px 440px at 92% 90%, rgba(8, 145, 178, 0.12), transparent 65%), linear-gradient(135deg, #FFFFFF, #ECFEFF) !important;
}
html[data-color-mode*="light"] .ah .ah-slide:nth-child(4) {
  --g: radial-gradient(760px 460px at 10% 5%, rgba(2, 132, 199, 0.10), transparent 65%), radial-gradient(500px 360px at 95% 95%, rgba(124, 58, 237, 0.10), transparent 60%), linear-gradient(150deg, #FFFFFF, #F8FAFC) !important;
}

html[data-color-mode*="light"] .ah .ah-title {
  color: #0F172A !important;
}
html[data-color-mode*="light"] .ah .ah-copy {
  color: #475569 !important;
}

html[data-color-mode*="light"] .ah .ah-eyebrow {
  background: rgba(2, 132, 199, 0.08) !important;
  border-color: rgba(2, 132, 199, 0.25) !important;
  color: #0284C7 !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.08) !important;
}

html[data-color-mode*="light"] .ah .ah-g {
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
  background: #FFFFFF !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}
html[data-color-mode*="light"] .ah .ah-g:hover {
  border-color: #0284C7 !important;
  background: #F1F5F9 !important;
}

html[data-color-mode*="light"] .ah .ah-card {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12), 0 0 1px 1px rgba(0, 0, 0, 0.03) !important;
}

/* Slide 1 in Light Mode */
html[data-color-mode*="light"] .ah .v1-chips span {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  color: #475569 !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.04) !important;
}
html[data-color-mode*="light"] .ah .v1-core {
  background: linear-gradient(160deg, #FFFFFF, #F1F5F9) !important;
  border-color: rgba(2, 132, 199, 0.4) !important;
  box-shadow: 0 10px 30px rgba(2, 132, 199, 0.12) !important;
}
html[data-color-mode*="light"] .ah .v1-core b {
  color: #0F172A !important;
}
html[data-color-mode*="light"] .ah .v1-core span {
  color: #64748B !important;
}

/* Slide 2 in Light Mode */
html[data-color-mode*="light"] .ah .v2-dashboard {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.12) !important;
}
html[data-color-mode*="light"] .ah .v2-dash-header {
  background: #F8FAFC !important;
  border-bottom: 1px solid #E2E8F0 !important;
}
html[data-color-mode*="light"] .ah .v2-dash-title {
  color: #0F172A !important;
}
html[data-color-mode*="light"] .ah .v2-dash-stats {
  background: #F1F5F9 !important;
  border-bottom: 1px solid #E2E8F0 !important;
}
html[data-color-mode*="light"] .ah .v2-stat-pill {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  color: #475569 !important;
}
html[data-color-mode*="light"] .ah .v2-module-item {
  background: #FFFFFF !important;
  border-color: #E2E8F0 !important;
  color: #0F172A !important;
}
html[data-color-mode*="light"] .ah .v2-module-item:hover {
  background: #F8FAFC !important;
  border-color: #0284C7 !important;
}
html[data-color-mode*="light"] .ah .v2-module-name {
  color: #0F172A !important;
}
html[data-color-mode*="light"] .ah .v2-module-desc {
  color: #64748B !important;
}
html[data-color-mode*="light"] .ah .v2-matrix-header {
  border-top: 1px solid #E2E8F0 !important;
  color: #0F172A !important;
}
html[data-color-mode*="light"] .ah .v2-matrix-title {
  color: #0F172A !important;
}
html[data-color-mode*="light"] .ah .v2-matrix-hint {
  color: #64748B !important;
}

/* Slide 3 in Light Mode */
html[data-color-mode*="light"] .ah .v3-h {
  color: #0F172A !important;
}
html[data-color-mode*="light"] .ah .v3-item {
  color: #0F172A !important;
}
html[data-color-mode*="light"] .ah .v3-item small {
  color: #64748B !important;
}
html[data-color-mode*="light"] .ah .v3-ship {
  background: #F8FAFC !important;
  border-color: #E2E8F0 !important;
  color: #1E293B !important;
}
html[data-color-mode*="light"] .ah .v3-bar {
  background: #E2E8F0 !important;
}
html[data-color-mode*="light"] .ah .v3-t {
  color: #64748B !important;
}
html[data-color-mode*="light"] .ah .v3-t b {
  background: rgba(217, 119, 6, 0.12) !important;
  color: #B45309 !important;
}

/* Slide 4 in Light Mode */
html[data-color-mode*="light"] .ah .v4-prod b {
  color: #0F172A !important;
}
html[data-color-mode*="light"] .ah .v4-name {
  color: #64748B !important;
}
html[data-color-mode*="light"] .ah .v4-qv {
  background: #FFFFFF !important;
  border: 1px solid #E2E8F0 !important;
  box-shadow: 0 15px 35px rgba(15, 23, 42, 0.1) !important;
}
html[data-color-mode*="light"] .ah .v4-qv b {
  color: #0F172A !important;
}
html[data-color-mode*="light"] .ah .v4-sz i {
  background: #F8FAFC !important;
  border-color: #CBD5E1 !important;
  color: #475569 !important;
}

/* Slider Controls in Light Mode */
html[data-color-mode*="light"] .ah .ah-dot span {
  background: #CBD5E1 !important;
}
html[data-color-mode*="light"] .ah .ah-ico {
  background: #FFFFFF !important;
  border-color: #CBD5E1 !important;
  color: #0F172A !important;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08) !important;
}
html[data-color-mode*="light"] .ah .ah-ico:hover {
  border-color: #0284C7 !important;
  background: #F1F5F9 !important;
}
