/* Professional motion ads — replace static 3D stages with section-specific reels */
.ad-reel {
  --ad-ink: #2c2118;
  --ad-cream: #fff8ef;
  --ad-accent: #8c5a32;
  position: relative;
  width: 100%;
  max-width: 520px;
  aspect-ratio: 16 / 10;
  margin: 0 auto 22px;
  border-radius: 22px;
  overflow: hidden;
  isolation: isolate;
  box-shadow: 0 22px 48px #5c3a2120;
  background: #1a120c;
}

.ad-reel[data-ad="seller"] { max-width: min(100%, 560px); }
.ad-reel[data-ad="rider"] { max-width: min(100%, 420px); aspect-ratio: 16 / 11; }
.ad-reel[data-ad="desk"] { max-width: min(100%, 640px); margin: 12px 0 24px; }
.ad-reel[data-ad="shop"] { max-width: min(100%, 440px); }

.ad-reel-stage {
  position: absolute;
  inset: 0;
  transform-style: preserve-3d;
}

.ad-reel-layer {
  position: absolute;
  inset: -8%;
  background-size: cover;
  background-position: center;
  will-change: transform;
}

.ad-reel-bg {
  background:
    radial-gradient(ellipse 80% 60% at 20% 80%, #5c3a2140, transparent 55%),
    linear-gradient(145deg, #2a1c14 0%, #4a3224 42%, #1a120c 100%);
  animation: ad-drift 14s ease-in-out infinite alternate;
}

.ad-reel-mid::before,
.ad-reel-mid::after,
.ad-reel-fg::before,
.ad-reel-fg::after {
  content: "";
  position: absolute;
  border-radius: 14px;
  box-shadow: 0 18px 36px #00000055;
}

/* Seller: counter + devices */
.ad-reel[data-ad="seller"] .ad-reel-mid::before {
  width: 42%;
  height: 58%;
  left: 10%;
  bottom: 14%;
  background: linear-gradient(180deg, #f4e2cb, #c9a57a);
  animation: ad-float 5.5s ease-in-out infinite;
}
.ad-reel[data-ad="seller"] .ad-reel-mid::after {
  width: 22%;
  height: 36%;
  right: 16%;
  bottom: 22%;
  background: linear-gradient(160deg, #1e2936, #0b1220);
  border: 2px solid #94a3b8;
  animation: ad-float 6.2s ease-in-out infinite reverse;
}
.ad-reel[data-ad="seller"] .ad-reel-fg::before {
  width: 16%;
  height: 16%;
  right: 28%;
  top: 22%;
  border-radius: 10px;
  background: linear-gradient(135deg, #d4a017, #7a5a12);
  animation: ad-pulse 3.2s ease-in-out infinite;
}

/* Rider: road + sealed bag */
.ad-reel[data-ad="rider"] .ad-reel-bg {
  background:
    linear-gradient(180deg, #1c2834 0%, #2f4150 45%, #1a120c 100%);
}
.ad-reel[data-ad="rider"] .ad-reel-mid::before {
  width: 120%;
  height: 28%;
  left: -10%;
  bottom: 8%;
  border-radius: 0;
  background: repeating-linear-gradient(90deg, #f8efe4 0 28px, #2c2118 28px 48px);
  opacity: 0.35;
  animation: ad-road 2.4s linear infinite;
}
.ad-reel[data-ad="rider"] .ad-reel-fg::before {
  width: 34%;
  height: 28%;
  left: 18%;
  bottom: 26%;
  background: linear-gradient(160deg, #3f6b4e, #243d2c);
  animation: ad-scoot 4.8s ease-in-out infinite;
}
.ad-reel[data-ad="rider"] .ad-reel-fg::after {
  width: 18%;
  height: 30%;
  right: 22%;
  bottom: 24%;
  background: linear-gradient(160deg, #111827, #374151);
  border: 2px solid #9ca3af;
  animation: ad-float 5s ease-in-out infinite reverse;
}

/* Desk / ops */
.ad-reel[data-ad="desk"] .ad-reel-bg {
  background: linear-gradient(125deg, #24180f, #5c3a21 50%, #1a120c);
}
.ad-reel[data-ad="desk"] .ad-reel-mid::before {
  width: 48%;
  height: 46%;
  left: 12%;
  bottom: 18%;
  background: linear-gradient(180deg, #fffaf4, #e8d5bc);
  animation: ad-float 6s ease-in-out infinite;
}
.ad-reel[data-ad="desk"] .ad-reel-fg::before {
  width: 26%;
  height: 8%;
  right: 14%;
  top: 30%;
  border-radius: 999px;
  background: #3f6b4e;
  animation: ad-pulse 2.8s ease-in-out infinite;
}
.ad-reel[data-ad="desk"] .ad-reel-fg::after {
  width: 20%;
  height: 8%;
  right: 18%;
  top: 44%;
  border-radius: 999px;
  background: #8c5a32;
  animation: ad-pulse 2.8s ease-in-out infinite 0.4s;
}

/* Shop browse */
.ad-reel[data-ad="shop"] .ad-reel-mid::before {
  width: 28%;
  height: 48%;
  left: 18%;
  bottom: 16%;
  background: linear-gradient(160deg, #0f172a, #334155);
  border: 2px solid #cbd5e1;
  animation: ad-float 5s ease-in-out infinite;
}
.ad-reel[data-ad="shop"] .ad-reel-fg::before {
  width: 36%;
  height: 22%;
  right: 14%;
  bottom: 20%;
  background: linear-gradient(180deg, #f8efe4, #d4b896);
  animation: ad-float 5.6s ease-in-out infinite reverse;
}

.ad-reel-copy {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 18px 20px 16px;
  background: linear-gradient(180deg, transparent, #0c090780 28%, #0c0908d0);
  color: var(--ad-cream);
  z-index: 2;
}
.ad-reel-copy .ad-kicker {
  display: block;
  font-size: 11px;
  letter-spacing: 1.6px;
  text-transform: uppercase;
  color: #e8c99a;
  font-weight: 800;
  margin-bottom: 4px;
}
.ad-reel-copy strong {
  font-family: Palatino, "Palatino Linotype", Georgia, serif;
  font-size: clamp(18px, 3.2vw, 26px);
  font-weight: 600;
  line-height: 1.2;
}

.ad-reel-chrome {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 3;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 2px solid #fff8ef88;
  background: #fff8ef22;
  display: grid;
  place-items: center;
  pointer-events: none;
}
.ad-reel-chrome::before {
  content: "";
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 6px 0 6px 10px;
  border-color: transparent transparent transparent #fff8ef;
  margin-left: 2px;
  animation: ad-blink 2.4s ease-in-out infinite;
}

@keyframes ad-drift {
  from { transform: scale(1.05) translate3d(-2%, 0, 0); }
  to { transform: scale(1.12) translate3d(2%, -2%, 0); }
}
@keyframes ad-float {
  0%, 100% { transform: translate3d(0, 0, 0) rotate(-2deg); }
  50% { transform: translate3d(0, -10px, 0) rotate(2deg); }
}
@keyframes ad-pulse {
  0%, 100% { opacity: 0.75; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.06); }
}
@keyframes ad-road {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-48px, 0, 0); }
}
@keyframes ad-scoot {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(28px, -6px, 0); }
}
@keyframes ad-blink {
  0%, 70%, 100% { opacity: 1; }
  80% { opacity: 0.35; }
}

@media (prefers-reduced-motion: reduce) {
  .ad-reel-bg,
  .ad-reel-mid::before,
  .ad-reel-mid::after,
  .ad-reel-fg::before,
  .ad-reel-fg::after,
  .ad-reel-chrome::before { animation: none !important; }
}
