.carcash-ad-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 10px auto clamp(24px, 4vw, 46px);
}

.carcash-ad {
  position: relative;
  isolation: isolate;
  display: block;
  width: 100%;
  aspect-ratio: 1750 / 353;
  overflow: hidden;
  border: 1px solid rgba(207, 160, 59, 0.72);
  border-radius: 10px;
  background: #0c0e0d;
  box-shadow: 0 18px 42px rgba(7, 12, 10, 0.2), 0 4px 12px rgba(207, 160, 59, 0.12);
  transform: translateZ(0);
  transition: transform 220ms ease, border-color 220ms ease, box-shadow 220ms ease;
}

.carcash-ad:hover {
  transform: translateY(-2px);
  border-color: rgba(235, 194, 91, 0.96);
  box-shadow: 0 22px 50px rgba(7, 12, 10, 0.27), 0 6px 18px rgba(207, 160, 59, 0.2);
}

.carcash-ad:focus-visible {
  outline: 3px solid rgba(224, 177, 70, 0.42);
  outline-offset: 4px;
}

.carcash-ad-image {
  position: relative;
  z-index: 0;
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  border: 0;
}

.carcash-ad-city-layer,
.carcash-ad-car-layer,
.carcash-ad-particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: url("/carcashbanner.png") center / 100% 100% no-repeat;
}

.carcash-ad-city-layer {
  z-index: 1;
  opacity: 0.2;
  mix-blend-mode: screen;
  -webkit-mask-image: radial-gradient(ellipse 30% 52% at 90% 28%, #000 28%, transparent 74%);
  mask-image: radial-gradient(ellipse 30% 52% at 90% 28%, #000 28%, transparent 74%);
  animation: carcash-city-drift 20s ease-in-out infinite;
}

.carcash-ad-car-layer {
  z-index: 2;
  transform-origin: 73% 63%;
  -webkit-mask-image: radial-gradient(ellipse 25% 48% at 73% 61%, #000 44%, transparent 76%);
  mask-image: radial-gradient(ellipse 25% 48% at 73% 61%, #000 44%, transparent 76%);
  animation: carcash-car-breathe 6.5s ease-in-out infinite;
}

.carcash-ad-logo-shine {
  position: absolute;
  top: 13%;
  left: 2.2%;
  z-index: 4;
  width: 19%;
  height: 70%;
  overflow: hidden;
  border-radius: 8px;
  pointer-events: none;
}

.carcash-ad-logo-shine::before {
  content: "";
  position: absolute;
  inset: -30% auto -30% 0;
  width: 42%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 220, 130, 0.08) 28%, rgba(255, 236, 172, 0.62) 50%, rgba(255, 220, 130, 0.08) 72%, transparent 100%);
  filter: blur(2px);
  mix-blend-mode: screen;
  animation: carcash-logo-glint 7.5s ease-in-out infinite;
}

.carcash-ad-particles {
  z-index: 3;
  opacity: 0.18;
  background:
    radial-gradient(circle at 13% 22%, rgba(255, 220, 119, 0.65) 0 1px, transparent 1.6px),
    radial-gradient(circle at 31% 79%, rgba(255, 201, 78, 0.5) 0 1px, transparent 1.5px),
    radial-gradient(circle at 57% 24%, rgba(255, 231, 160, 0.55) 0 1px, transparent 1.4px),
    radial-gradient(circle at 69% 77%, rgba(255, 205, 89, 0.48) 0 1px, transparent 1.7px),
    radial-gradient(circle at 92% 38%, rgba(255, 226, 139, 0.5) 0 1px, transparent 1.5px);
  animation: carcash-particle-drift 15s ease-in-out infinite;
}

.carcash-ad-label {
  position: absolute;
  top: 7%;
  left: 1.2%;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 10px;
  border: 1px solid rgba(229, 184, 77, 0.7);
  border-radius: 999px;
  color: #ffe7a3;
  background: rgba(8, 10, 9, 0.82);
  box-shadow: 0 5px 16px rgba(0, 0, 0, 0.28);
  font-size: 0.68rem;
  font-weight: 820;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  backdrop-filter: blur(5px);
}

.carcash-ad-benefits,
.carcash-ad-button-shine {
  position: absolute;
  inset: 0;
  z-index: 5;
  pointer-events: none;
}

.carcash-ad-benefit-glow {
  position: absolute;
  top: 57%;
  width: 5.2%;
  aspect-ratio: 1;
  border-radius: 50%;
  pointer-events: auto;
  background: radial-gradient(circle, rgba(255, 218, 116, 0.04), transparent 68%);
  box-shadow: 0 0 0 rgba(229, 184, 77, 0);
  transition: background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
}

.carcash-ad-benefit-glow:nth-child(1) {
  left: 22.4%;
}

.carcash-ad-benefit-glow:nth-child(2) {
  left: 34.3%;
}

.carcash-ad-benefit-glow:nth-child(3) {
  left: 47.1%;
}

.carcash-ad-benefit-glow:hover {
  transform: scale(1.08);
  background: radial-gradient(circle, rgba(255, 223, 125, 0.22), transparent 70%);
  box-shadow: 0 0 22px rgba(229, 184, 77, 0.42);
}

.carcash-ad-button-shine {
  inset: 65.6% 1.5% 13.8% 82.8%;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 3px;
  pointer-events: auto;
  transition: border-color 220ms ease, box-shadow 220ms ease;
}

.carcash-ad-button-shine::before {
  content: "";
  position: absolute;
  inset: -55% auto -55% -55%;
  width: 35%;
  background: linear-gradient(105deg, transparent, rgba(255, 237, 175, 0.75), transparent);
  transform: translateX(0) skewX(-18deg);
  transition: transform 850ms ease;
}

.carcash-ad:hover .carcash-ad-button-shine,
.carcash-ad-button-shine:hover {
  border-color: rgba(244, 204, 105, 0.6);
  box-shadow: inset 0 0 20px rgba(224, 177, 70, 0.16), 0 0 16px rgba(224, 177, 70, 0.16);
}

.carcash-ad:hover .carcash-ad-button-shine::before,
.carcash-ad-button-shine:hover::before {
  transform: translateX(520%) skewX(-18deg);
}

@keyframes carcash-logo-glint {
  0%,
  70% {
    opacity: 0;
    transform: translateX(-150%) skewX(-18deg);
  }
  75% {
    opacity: 0.75;
  }
  86% {
    opacity: 0.55;
    transform: translateX(350%) skewX(-18deg);
  }
  88%,
  100% {
    opacity: 0;
    transform: translateX(350%) skewX(-18deg);
  }
}

@keyframes carcash-car-breathe {
  0%,
  100% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.01);
  }
}

@keyframes carcash-city-drift {
  0%,
  100% {
    transform: translate3d(-1px, 0, 0);
  }
  50% {
    transform: translate3d(3px, 1px, 0);
  }
}

@keyframes carcash-particle-drift {
  0%,
  100% {
    transform: translate3d(0, 1px, 0);
  }
  50% {
    transform: translate3d(2px, -2px, 0);
  }
}

@media (max-width: 680px) {
  .carcash-ad-shell {
    width: min(100% - 28px, 1180px);
    margin-top: 6px;
    margin-bottom: 24px;
  }

  .carcash-ad {
    border-radius: 7px;
  }

  .carcash-ad-label {
    top: 8%;
    left: 1.8%;
    min-height: 17px;
    padding: 3px 6px;
    font-size: 0.48rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .carcash-ad,
  .carcash-ad-city-layer,
  .carcash-ad-car-layer,
  .carcash-ad-logo-shine::before,
  .carcash-ad-particles,
  .carcash-ad-benefit-glow,
  .carcash-ad-button-shine,
  .carcash-ad-button-shine::before {
    animation: none !important;
    transition: none !important;
    transform: none !important;
  }
}
