.ev-arrow-carousel,
.ev-arrow-carousel * {
  box-sizing: border-box;
}

.ev-arrow-carousel {
  --line: rgba(132, 158, 255, 0.18);
  --line-pink: rgba(255, 111, 164, 0.16);
  --line-muted: rgba(255, 255, 255, 0.08);
  --arrow-head: rgba(160, 182, 255, 0.30);
  --card: rgba(15, 22, 38, 0.46);
  --card-hover: rgba(20, 29, 48, 0.72);
  --border: rgba(178, 199, 255, 0.13);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.28);
  --shadow-hover: 0 24px 62px rgba(0, 0, 0, 0.38);
  --parallax-x: 0px;
  --parallax-y: 0px;
  --arrows-x: 0px;
  --arrows-y: 0px;
  --magnet-x: 0px;
  --magnet-y: 0px;
  position: relative;
  width: min(100%, 560px);
  aspect-ratio: 1.18 / 1;
  min-height: 340px;
  margin-inline: auto;
  isolation: isolate;
  overflow: visible;
  touch-action: pan-y;
}

.ev-arrow-carousel__viewport {
  position: absolute;
  inset: 0;
  border-radius: 28px;
  overflow: visible;
}

.ev-arrow-carousel__ambient {
  position: absolute;
  inset: 0;
  z-index: -4;
  border-radius: 30px;
  background:
    radial-gradient(circle at 20% 20%, rgba(70, 154, 255, 0.12), transparent 25%),
    radial-gradient(circle at 82% 18%, rgba(255, 82, 144, 0.14), transparent 24%),
    radial-gradient(circle at 74% 84%, rgba(93, 104, 255, 0.10), transparent 26%);
  filter: blur(8px);
  pointer-events: none;
}

.ev-arrow-carousel__ambient::before,
.ev-arrow-carousel__ambient::after {
  content: "";
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.ev-arrow-carousel__ambient::before {
  inset: 9% 12%;
  border: 1px solid rgba(255, 255, 255, 0.035);
}

.ev-arrow-carousel__ambient::after {
  inset: 23% 27%;
  border: 1px solid rgba(255, 255, 255, 0.025);
}

.ev-arrow-carousel__arrows {
  position: absolute;
  inset: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  overflow: visible;
  transform: translate3d(var(--arrows-x), var(--arrows-y), 0);
  pointer-events: none;
}

.ev-arrow-carousel__arrow {
  fill: none;
  stroke: var(--line);
  stroke-width: 1.35;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0;
  stroke-dasharray: 1;
  stroke-dashoffset: 1;
  animation: evArrowLineIn 850ms cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: var(--line-delay, 0ms);
}

.ev-arrow-carousel__arrow--pink {
  stroke: var(--line-pink);
}

.ev-arrow-carousel__arrow--muted {
  stroke: var(--line-muted);
}

.ev-arrow-carousel__arrow-head {
  fill: var(--arrow-head);
}

.ev-arrow-carousel__hub {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 4;
  width: 20px;
  height: 20px;
  border-radius: 999px;
  transform: translate3d(calc(-50% + var(--parallax-x)), calc(-50% + var(--parallax-y)), 0);
  background: radial-gradient(circle at 35% 30%, #9fe0ff, #5b84ff 58%, #3c47a9);
  box-shadow:
    0 0 0 8px rgba(94, 132, 255, 0.08),
    0 0 0 23px rgba(94, 132, 255, 0.035),
    0 16px 38px rgba(0,0,0,0.32);
}

.ev-arrow-carousel__hub span {
  position: absolute;
  inset: -10px;
  border-radius: inherit;
  border: 1px solid rgba(255,255,255,0.07);
}

.ev-arrow-carousel__node {
  appearance: none;
  border: 0;
  background: transparent;
  padding: 0;
  position: absolute;
  left: var(--x);
  top: var(--y);
  z-index: calc(5 + var(--z, 1));
  transform: translate3d(calc(-50% + var(--parallax-x)), calc(-50% + var(--parallax-y)), 0);
  cursor: pointer;
  opacity: 0;
  animation: evArrowNodeIn 720ms cubic-bezier(.2,.8,.2,1) forwards;
  animation-delay: 110ms;
  -webkit-tap-highlight-color: transparent;
}

.ev-arrow-carousel__float {
  display: block;
  animation: evArrowFloat var(--float-duration, 17s) ease-in-out infinite alternate;
}

.ev-arrow-carousel__magnet {
  display: block;
  transform: translate3d(var(--magnet-x), var(--magnet-y), 0);
  transition: transform 220ms cubic-bezier(.2,.8,.2,1);
}

.ev-arrow-carousel__card {
  position: relative;
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent, #8fb1ff) 7%, transparent), transparent 68%),
    linear-gradient(180deg, rgba(255,255,255,0.04), rgba(255,255,255,0.012)),
    var(--card);
  border: 1px solid color-mix(in srgb, var(--accent, #8fb1ff) 22%, var(--border));
  box-shadow: var(--shadow);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform 220ms ease, background 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.ev-arrow-carousel__card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at 35% 25%, color-mix(in srgb, var(--accent, #8fb1ff) 26%, white), transparent 38%);
  opacity: 0.22;
}

.ev-arrow-carousel__node:hover .ev-arrow-carousel__card,
.ev-arrow-carousel__node:focus-visible .ev-arrow-carousel__card {
  transform: translateY(-4px) scale(1.045);
  background:
    radial-gradient(circle at 50% 50%, color-mix(in srgb, var(--accent, #8fb1ff) 10%, transparent), transparent 68%),
    linear-gradient(180deg, rgba(255,255,255,0.06), rgba(255,255,255,0.018)),
    var(--card-hover);
  border-color: color-mix(in srgb, var(--accent, #8fb1ff) 36%, var(--border));
  box-shadow: var(--shadow-hover);
}

.ev-arrow-carousel__icon {
  position: relative;
  z-index: 1;
  display: block;
  width: calc(var(--size) * 0.42);
  height: calc(var(--size) * 0.42);
  object-fit: contain;
}

.ev-arrow-carousel__label {
  position: absolute;
  left: 50%;
  top: calc(100% + 8px);
  transform: translateX(-50%) translateY(-4px);
  opacity: 0;
  white-space: nowrap;
  color: rgba(244, 248, 255, 0.74);
  font: 650 11px/1 Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: -0.01em;
  transition: opacity 180ms ease, transform 180ms ease;
  pointer-events: none;
}

.ev-arrow-carousel__node:hover .ev-arrow-carousel__label,
.ev-arrow-carousel__node:focus-visible .ev-arrow-carousel__label {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.ev-arrow-carousel__controls {
  position: absolute;
  left: 50%;
  bottom: -28px;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 10px;
  z-index: 12;
}

.ev-arrow-carousel__control {
  width: 30px;
  height: 30px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.04);
  color: rgba(244, 248, 255, 0.74);
  border-radius: 999px;
  display: grid;
  place-items: center;
  font: 700 20px/1 Inter, ui-sans-serif, system-ui;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.ev-arrow-carousel__control:hover {
  background: rgba(255,255,255,0.08);
  color: #fff;
  transform: translateY(-1px);
}

.ev-arrow-carousel__dots {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.ev-arrow-carousel__dots span {
  width: 5px;
  height: 5px;
  border-radius: 99px;
  background: rgba(255,255,255,0.22);
  transition: width 200ms ease, background 200ms ease;
}

.ev-arrow-carousel__dots span.is-active {
  width: 16px;
  background: rgba(255, 111, 164, 0.75);
}

.ev-arrow-carousel.is-changing .ev-arrow-carousel__card {
  animation: evArrowSwap 420ms ease both;
}

@keyframes evArrowLineIn {
  from { opacity: 0; stroke-dashoffset: 1; }
  to { opacity: 1; stroke-dashoffset: 0; }
}

@keyframes evArrowNodeIn {
  from {
    opacity: 0;
    transform: translate3d(calc(-50% + var(--parallax-x)), calc(-50% + 14px + var(--parallax-y)), 0) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translate3d(calc(-50% + var(--parallax-x)), calc(-50% + var(--parallax-y)), 0) scale(1);
  }
}

@keyframes evArrowFloat {
  0% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(var(--float-x, 7px), var(--float-y, -8px), 0); }
  100% { transform: translate3d(calc(var(--float-x, 7px) * -0.5), calc(var(--float-y, -8px) * -0.55), 0); }
}

@keyframes evArrowSwap {
  0% { opacity: 1; transform: scale(1); }
  45% { opacity: 0; transform: scale(0.92); }
  100% { opacity: 1; transform: scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .ev-arrow-carousel__arrow,
  .ev-arrow-carousel__node,
  .ev-arrow-carousel__float,
  .ev-arrow-carousel.is-changing .ev-arrow-carousel__card {
    animation: none !important;
    opacity: 1 !important;
  }
}

@media (max-width: 700px) {
  .ev-arrow-carousel {
    width: min(100%, 360px);
    aspect-ratio: 1 / 1;
    min-height: 320px;
  }

  .ev-arrow-carousel__node {
    --size: 58px !important;
  }

  .ev-arrow-carousel__node[data-mobile="hide"] {
    display: none;
  }

  .ev-arrow-carousel__icon {
    width: calc(var(--size) * 0.46);
    height: calc(var(--size) * 0.46);
  }

  .ev-arrow-carousel__controls {
    bottom: -22px;
  }
}
