/* ==========================================================================
   OzQR Menü • Landing Page Motion Pack (12 Interactive Animations)
   Theme: Deep Espresso (#0E0C0A / #14110E) & Espresso Crema Gold (#F59E0B / #C69255)
   Respects prefers-reduced-motion & zero layout shift (CLS = 0)
   ========================================================================== */

:root {
  --oz-mp-bg: #0E0C0A;
  --oz-mp-card: #15120E;
  --oz-mp-card-elevated: #1D1813;
  --oz-mp-gold: #F59E0B;
  --oz-mp-crema: #C69255;
  --oz-mp-emerald: #10B981;
  --oz-mp-border: rgba(255, 255, 255, 0.09);
  --oz-mp-gold-border: rgba(245, 158, 11, 0.35);
}

.oz-tabular {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

/* ---------------- #01 HERO REVEAL ---------------- */
.oz-mp-hero-badge {
  opacity: 0;
  transform: translateY(-16px);
  transition: opacity 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}
.oz-mp-hero-badge.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.oz-mp-word {
  display: inline-block;
  opacity: 0;
  filter: blur(14px);
  transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              filter 0.65s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity, filter;
}
.oz-mp-word.is-revealed {
  opacity: 1;
  filter: blur(0px);
  transform: translateY(0);
}

.oz-mp-underline-wrap {
  position: relative;
  display: inline-block;
}
.oz-mp-underline-bar {
  position: relative;
  display: block;
  width: 100%;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, #F59E0B 0%, #FDE68A 50%, #C69255 100%);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
}
.oz-mp-underline-wrap .oz-mp-underline-bar {
  position: absolute;
  left: 0;
  bottom: -4px;
}
.oz-mp-underline-bar.is-revealed {
  transform: scaleX(1);
}

.oz-mp-spring-btn,
.oz-mp-cta-btn {
  position: relative;
  overflow: hidden;
}
.oz-mp-spring-btn {
  opacity: 0;
  transform: scale(0.65);
  transition: opacity 0.45s ease-out,
              transform 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
  will-change: transform, opacity;
}
.oz-mp-spring-btn.is-revealed {
  opacity: 1;
  transform: scale(1);
}

.oz-mp-btn-shine,
span.oz-mp-btn-shine {
  display: none !important;
}

.oz-mp-hero-phone-3d {
  transform-origin: center bottom;
  transform: perspective(1100px) rotateX(26deg) translateY(70px);
  opacity: 0;
  transition: transform 0.95s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.75s ease-out;
  will-change: transform, opacity;
}
.oz-mp-hero-phone-3d.is-revealed {
  transform: perspective(1100px) rotateX(0deg) translateY(0) !important;
  opacity: 1 !important;
}

/* ---------------- #02 WORD ROTATOR ---------------- */
.oz-mp-rotator-pill {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 2.65rem;
  padding: 0 1.1rem;
  border-radius: 0.95rem;
  background: linear-gradient(135deg, #1E1710 0%, #120E0A 100%);
  border: 1.5px solid rgba(245, 158, 11, 0.75);
  color: #FEF3C7 !important;
  font-weight: 800;
  overflow: hidden;
  vertical-align: middle;
  box-shadow: 0 6px 26px -4px rgba(245, 158, 11, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transition: width 0.52s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.oz-mp-rotator-strip {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  transition: transform 0.52s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.oz-mp-rotator-item {
  height: 2.65rem;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  padding: 0 1rem;
  font-size: 1.05rem !important;
  line-height: 1 !important;
  letter-spacing: -0.01em;
  color: #FDE68A !important;
  -webkit-text-fill-color: #FDE68A !important;
  background: none !important;
  text-shadow: 0 1px 10px rgba(245, 158, 11, 0.3);
  transition: opacity 0.35s ease;
}
@media (min-width: 640px) {
  .oz-mp-rotator-pill { height: 3.1rem; }
  .oz-mp-rotator-item { height: 3.1rem; font-size: 1.35rem !important; }
}

/* ---------------- #03 SALE PINGS ---------------- */
#mpSalePingFeed {
  height: 222px;
  min-height: 222px;
  max-height: 222px;
  overflow: hidden;
  position: relative;
}
.oz-mp-ping-card {
  transform-origin: top center;
  transition: transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.4s ease;
  animation: ozMpPingDropIn 0.52s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes ozMpPingDropIn {
  0% {
    opacity: 0;
    transform: translateY(-28px) scale(0.9);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* ---------------- #04 REVIEW SHUFFLE ---------------- */
.oz-mp-review-stack {
  position: relative;
  height: 250px;
  perspective: 1000px;
}
.oz-mp-review-card {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0 auto;
  max-width: 520px;
  border-radius: 24px;
  padding: 1.5rem;
  background: linear-gradient(145deg, #1E1813 0%, #14100D 100%);
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: 0 24px 48px -12px rgba(0, 0, 0, 0.75);
  transition: transform 0.6s cubic-bezier(0.65, 0, 0.35, 1),
              opacity 0.6s cubic-bezier(0.65, 0, 0.35, 1),
              filter 0.6s cubic-bezier(0.65, 0, 0.35, 1),
              border-color 0.4s ease;
  will-change: transform, opacity;
}
.oz-mp-review-card.is-swiping-out {
  transform: translate3d(-115%, 10px, 0) rotate(-7deg) scale(0.94) !important;
  opacity: 0 !important;
}
.oz-mp-star {
  display: inline-block;
  color: rgba(255, 255, 255, 0.18);
  transform: scale(0.8);
  transition: color 0.22s ease, transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.oz-mp-star.is-lit {
  color: #F59E0B;
  transform: scale(1);
}

/* ---------------- #05 COUNT-UP STATS BENTO ---------------- */
.oz-mp-ring-progress {
  transition: stroke-dashoffset 1.8s cubic-bezier(0.16, 1, 0.3, 1);
}
.oz-mp-stat-bar {
  transform-origin: bottom center;
  transform: scaleY(0.08);
  transition: transform 0.75s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.oz-mp-stat-bar.is-grown {
  transform: scaleY(1);
}

/* ---------------- #06 BENTO BUILD & SPOTLIGHT ---------------- */
.oz-mp-bento-grid {
  position: relative;
}
.oz-mp-bento-tile {
  position: relative;
  overflow: hidden;
  background: #14110E;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  transition: transform 0.65s cubic-bezier(0.34, 1.56, 0.64, 1),
              opacity 0.55s ease,
              border-color 0.3s ease;
}
.oz-mp-bento-tile::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    360px circle at var(--spot-x, 50%) var(--spot-y, 50%),
    rgba(245, 158, 11, 0.14),
    transparent 70%
  );
  pointer-events: none;
  z-index: 1;
}
.oz-mp-bento-tile > *:not(.absolute):not(.fixed) {
  position: relative;
  z-index: 2;
}
.oz-mp-caret {
  display: inline-block;
  width: 2px;
  height: 1.05em;
  background-color: #F59E0B;
  margin-left: 3px;
  vertical-align: middle;
  animation: ozMpBlink 0.9s steps(2, start) infinite;
}
@keyframes ozMpBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}
.oz-mp-orbit-ring-1 {
  animation: ozMpOrbitSpin 14s linear infinite;
}
.oz-mp-orbit-ring-2 {
  animation: ozMpOrbitSpinReverse 20s linear infinite;
}
@keyframes ozMpOrbitSpin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
@keyframes ozMpOrbitSpinReverse {
  from { transform: rotate(360deg); }
  to { transform: rotate(0deg); }
}
.oz-mp-pulse-ring {
  animation: ozMpPulseExpand 2.4s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}
@keyframes ozMpPulseExpand {
  0% { transform: scale(0.85); opacity: 0.75; }
  100% { transform: scale(1.65); opacity: 0; }
}

/* ---------------- #07 CURSOR TOUR (AUTO-ZOOM) ---------------- */
.oz-mp-tour-viewport,
.oz-mp-cursor-viewport {
  position: relative;
  overflow: hidden;
  border-radius: 28px;
  background: #120F0C;
  border: 1px solid rgba(245, 158, 11, 0.28);
  box-shadow: 0 25px 50px -15px rgba(0, 0, 0, 0.7);
}
.oz-mp-tour-stage,
.oz-mp-cursor-stage {
  position: relative;
  transform-origin: center center;
  transition: transform 0.75s cubic-bezier(0.65, 0, 0.35, 1);
  will-change: transform;
}
.oz-mp-fake-cursor {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 40;
  pointer-events: none;
  transition: transform 0.7s cubic-bezier(0.45, 0, 0.25, 1);
  filter: drop-shadow(0 6px 12px rgba(0, 0, 0, 0.65));
}
.oz-mp-cursor-ripple {
  position: absolute;
  top: -8px;
  left: -8px;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  border: 2px solid #F59E0B;
  opacity: 0;
  transform: scale(0.3);
}
.oz-mp-cursor-ripple.is-popping {
  animation: ozMpRipplePop 0.55s ease-out forwards;
}
@keyframes ozMpRipplePop {
  0% { opacity: 1; transform: scale(0.3); }
  100% { opacity: 0; transform: scale(2.2); }
}

/* ---------------- #09 BEFORE / AFTER SLIDER ---------------- */
.oz-mp-ba-container {
  position: relative;
  user-select: none;
  overflow: hidden;
  border-radius: 28px;
  border: 1px solid rgba(245, 158, 11, 0.3);
  touch-action: pan-y;
}
.oz-mp-ba-after-layer {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 var(--ba-pos, 50%));
  will-change: clip-path;
  z-index: 10;
}
.oz-mp-ba-before {
  position: absolute;
  inset: 0;
  clip-path: inset(0 calc(100% - var(--ba-pos, 50%)) 0 0);
  will-change: clip-path;
  z-index: 10;
}
.oz-mp-ba-divider {
  position: absolute;
  top: 0;
  bottom: 0;
  left: var(--ba-pos, 50%);
  width: 3px;
  background: linear-gradient(180deg, #FDE68A 0%, #F59E0B 50%, #C69255 100%);
  transform: translateX(-50%);
  z-index: 20;
  cursor: ew-resize;
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.8);
}
.oz-mp-ba-handle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: linear-gradient(135deg, #FBBF24 0%, #D97706 100%);
  color: #0E0C0A;
  font-weight: 900;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.65), 0 0 0 4px rgba(245, 158, 11, 0.25);
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.oz-mp-ba-divider:hover .oz-mp-ba-handle,
.oz-mp-ba-divider.is-active .oz-mp-ba-handle {
  transform: translate(-50%, -50%) scale(1.14);
}

/* ---------------- #10 PRICE ROLL (ODOMETER) ---------------- */
.oz-mp-odometer {
  display: inline-flex;
  align-items: flex-start;
  height: 3.6rem;
  overflow: hidden;
  line-height: 3.6rem;
  font-variant-numeric: tabular-nums;
  vertical-align: middle;
}
.oz-mp-digit-col {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: flex-start;
  width: 0.64em;
  height: 3.6rem;
  overflow: hidden;
}
.oz-mp-digit-strip {
  display: flex;
  flex-direction: column;
  transition: transform 0.75s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}
.oz-mp-digit-cell {
  height: 3.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------------- #11 US VS THEM ---------------- */
.oz-mp-uvt-row {
  opacity: 0;
  transform: translateX(-18px);
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}
.oz-mp-uvt-row.is-visible {
  opacity: 1;
  transform: translateX(0);
}
.oz-mp-uvt-check-circle {
  transform: scale(0);
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.oz-mp-uvt-row.is-visible .oz-mp-uvt-check-circle {
  transform: scale(1);
}
.oz-mp-svg-stroke {
  stroke-dasharray: 40;
  stroke-dashoffset: 40;
  transition: stroke-dashoffset 0.5s ease 0.15s;
}
.oz-mp-uvt-row.is-visible .oz-mp-svg-stroke {
  stroke-dashoffset: 0;
}

/* ---------------- #12 CLICK -> SUCCESS CONFETTI ---------------- */
.oz-mp-cta-morph-btn {
  position: relative;
  overflow: hidden;
  transition: all 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.oz-mp-cta-morph-btn:hover {
  transform: translateY(-4px);
}
.oz-mp-cta-morph-btn.is-squashed {
  transform: scale(0.94);
}
.oz-mp-confetti-piece {
  position: absolute;
  width: 8px;
  height: 12px;
  border-radius: 2px;
  pointer-events: none;
  z-index: 30;
}

/* ---------------- DASHBOARD & MENU UNIFIED EFFECTS (ZERO EXTRA DOM) ---------------- */
.oz-dash-theme {
  background-color: #0E0C0A !important;
  color: #FDFBF7;
}
.oz-dash-sidebar {
  background: linear-gradient(180deg, #14110E 0%, #0E0C0A 100%) !important;
  border-color: rgba(245, 158, 11, 0.16) !important;
}
.oz-dash-header {
  background: rgba(20, 17, 14, 0.82) !important;
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-color: rgba(245, 158, 11, 0.16) !important;
}
.oz-dash-spotlight {
  position: relative;
  overflow: hidden;
  background-color: #14110E !important;
  border-color: rgba(255, 255, 255, 0.09) !important;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1),
              border-color 0.3s ease,
              box-shadow 0.35s ease;
}
.oz-dash-spotlight:has(.dropdown),
.oz-dash-spotlight:has(details[open]),
.oz-dash-spotlight.overflow-visible {
  overflow: visible !important;
  z-index: 30;
}
.oz-dash-spotlight:hover {
  border-color: rgba(245, 158, 11, 0.35) !important;
  box-shadow: 0 18px 38px -12px rgba(0, 0, 0, 0.65), 0 0 24px -8px rgba(245, 158, 11, 0.18);
}
.oz-dash-spotlight::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    360px circle at var(--spot-x, 50%) var(--spot-y, 50%),
    rgba(245, 158, 11, 0.11),
    transparent 70%
  );
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 1;
}
.oz-dash-spotlight:hover::before {
  opacity: 1;
}
.oz-dash-spotlight > *:not(.absolute):not(.fixed) {
  position: relative;
  z-index: 2;
}

.oz-dash-subcard {
  background-color: #0E0C0A !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  transition: border-color 0.25s ease, transform 0.25s cubic-bezier(0.22, 1, 0.36, 1);
}
.oz-dash-subcard:hover {
  border-color: rgba(245, 158, 11, 0.32) !important;
}

.oz-dash-input {
  background-color: #0B0907 !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  transition: border-color 0.22s ease, box-shadow 0.22s ease;
}
.oz-dash-input:focus {
  border-color: #F59E0B !important;
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.15) !important;
  outline: none !important;
}

/* Reduced Motion Accessibility */
@media (prefers-reduced-motion: reduce) {
  .oz-mp-word,
  .oz-mp-hero-badge,
  .oz-mp-spring-btn,
  .oz-mp-hero-phone-3d,
  .oz-mp-uvt-row {
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
    transition: none !important;
    animation: none !important;
  }
  .oz-mp-underline-bar {
    transform: scaleX(1) !important;
  }
  .oz-mp-orbit-ring-1,
  .oz-mp-orbit-ring-2,
  .oz-mp-pulse-ring {
    animation: none !important;
  }
}
