/* ── Checkout Page Styles ── */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700;800;900&family=Playfair+Display:wght@700;800;900&display=swap');

:root {
  --lv-black: #0B0B0D;
  --lv-gold: #C8A24A;
  --lv-gold-soft: #E7D7A6;
  --lv-card: #111114;
  --lv-border: rgba(255, 255, 255, .10);
  --lv-pink: #E81074;
  --lv-text: #F3F4F6;
  --lv-err: #ff2d55;
  --lv-green: linear-gradient(135deg, #22c55e, #16a34a);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--lv-black);
  color: var(--lv-text);
  margin: 0;
  position: relative;
  overflow-x: hidden;
}

/* Ambient Background Wave Animation */
.ambient-bg {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  z-index: -1;
  pointer-events: none;
  overflow: hidden;
  /* Very subtle backdrop */
  background: radial-gradient(circle at 50% 120%, rgba(200, 162, 74, 0.05), transparent 70%), var(--lv-black);
}

.ambient-svg {
  width: 100%;
  height: 100%;
  opacity: 0.6;
}

.parallax-layer {
  will-change: transform;
}

.parallax-back {
  animation: wavePan 30s linear infinite;
}

.parallax-mid {
  animation: wavePanReverse 22s linear infinite;
}

.parallax-front {
  animation: wavePan 15s linear infinite;
}

@keyframes wavePan {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-1440px);
  }
}

@keyframes wavePanReverse {
  0% {
    transform: translateX(-1440px);
  }

  100% {
    transform: translateX(0);
  }
}

/* Utility classes */
.lv-gold {
  color: var(--lv-gold);
}

.lv-mega-bold {
  font-weight: 900;
  -webkit-text-stroke: 1px currentColor;
  paint-order: stroke fill;
}

.lv-pink {
  color: var(--lv-pink);
}

.lv-border {
  border-color: var(--lv-border);
}

.lv-muted {
  color: rgba(243, 244, 246, .75);
}

.lv-small {
  font-size: 14px;
  line-height: 1.4;
  color: rgba(243, 244, 246, .70);
}

.lv-card {
  background: rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(4px) url(#liquid_glass_filter);
  -webkit-backdrop-filter: blur(4px) url(#liquid_glass_filter);
  border-radius: 12px;
  box-shadow:
    inset 0 2px 4px rgba(255, 255, 255, 0.25),
    inset 0 -4px 10px rgba(0, 0, 0, 0.5),
    inset 2px 0 10px rgba(255, 255, 255, 0.05),
    inset -2px 0 10px rgba(0, 0, 0, 0.2),
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 20px 80px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lv-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 3px 6px rgba(255, 255, 255, 0.3),
    inset 0 -6px 15px rgba(0, 0, 0, 0.6),
    inset 3px 0 15px rgba(255, 255, 255, 0.08),
    inset -3px 0 15px rgba(0, 0, 0, 0.25),
    0 15px 50px rgba(0, 0, 0, 0.6),
    0 30px 100px rgba(0, 0, 0, 0.4);
}

.lv-btn {
  color: #fff;
  background: linear-gradient(-75deg, rgba(200, 162, 74, 0.15), rgba(200, 162, 74, 0.4), rgba(200, 162, 74, 0.15));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow:
    inset 0 0.125em 0.125em rgba(0, 0, 0, 0.1),
    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.4),
    0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.3),
    inset 0 0 0.1em 0.25em rgba(255, 255, 255, 0.3);
  text-shadow: 0 0.05em 0.05em rgba(0, 0, 0, 0.2);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

.lv-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.lv-btn:hover {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transform: scale(0.975);
  box-shadow:
    inset 0 0.125em 0.125em rgba(0, 0, 0, 0.1),
    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.4),
    0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.3),
    inset 0 0 0.05em 0.1em rgba(255, 255, 255, 0.4);
}

.lv-btn:active {
  transform: scale(0.95);
  box-shadow:
    inset 0 0.125em 0.125em rgba(0, 0, 0, 0.1),
    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.4),
    0 0.125em 0.125em -0.125em rgba(0, 0, 0, 0.3),
    inset 0 0 0.1em 0.25em rgba(255, 255, 255, 0.3),
    inset 0 0.25em 0.05em rgba(0, 0, 0, 0.15);
}

/* FAQ accordion */
.faq-answer {
  display: none;
}

.faq-item[data-open="true"] .faq-answer {
  display: block;
}

.faq-item[data-open="true"] .faq-icon {
  transform: rotate(45deg);
}

/* Validation */
.is-invalid {
  border: 2px solid var(--lv-err) !important;
  box-shadow: 0 0 0 3px rgba(255, 45, 85, .12);
}

.field-error-msg {
  color: var(--lv-err);
  font-size: 14px;
  margin-top: 6px;
  display: none;
}

.section-error {
  border: 2px solid var(--lv-err);
  border-radius: 14px;
  padding: 14px;
}

/* Terms error — shake + red highlight */
.terms-error {
  animation: termsShake 0.4s ease;
}

.terms-error label {
  color: var(--lv-err);
}

.terms-error #terms-consent {
  outline: 2px solid var(--lv-err);
  outline-offset: 2px;
}

@keyframes termsShake {

  0%,
  100% {
    transform: translateX(0);
  }

  20% {
    transform: translateX(-6px);
  }

  40% {
    transform: translateX(6px);
  }

  60% {
    transform: translateX(-4px);
  }

  80% {
    transform: translateX(4px);
  }
}

/* Checkmark — CSS-only green badge */
.lv-check,
.lv-check-inline {
  flex-shrink: 0;
  border-radius: 6px;
  background: var(--lv-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.lv-check {
  width: 22px;
  height: 22px;
  box-shadow: 0 2px 6px rgba(34, 197, 94, .25);
}

.lv-check-inline {
  width: 18px;
  height: 18px;
  border-radius: 4px;
  vertical-align: middle;
  margin-right: 6px;
  box-shadow: 0 1px 4px rgba(34, 197, 94, .2);
}

.lv-check svg,
.lv-check-inline svg {
  fill: none;
  stroke: #fff;
  stroke-width: 2.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.lv-check svg {
  width: 14px;
  height: 14px;
}

.lv-check-inline svg {
  width: 12px;
  height: 12px;
}

/* Place Order CTA — Premium Button */
.place-order {
  width: 100%;
  padding: 18px 16px;
  font-size: 28px;
  font-weight: 800;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;

  /* Glassmorphism styling */
  color: #fff;
  background: linear-gradient(-75deg, rgba(200, 162, 74, 0.15), rgba(200, 162, 74, 0.45), rgba(200, 162, 74, 0.15));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 0.125em 0.125em rgba(0, 0, 0, 0.15),
    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.4),
    0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.3),
    inset 0 0 0.1em 0.25em rgba(255, 255, 255, 0.3);
  text-shadow: 0 0.05em 0.05em rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

.place-order::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.button-lock-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}

/* Hover — scale down and clear blur to reveal background */
.place-order:hover {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transform: scale(0.975);
  box-shadow:
    inset 0 0.125em 0.125em rgba(0, 0, 0, 0.15),
    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.4),
    0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.3),
    inset 0 0 0.05em 0.1em rgba(255, 255, 255, 0.4);
}

/* Press — indent inner shadow deeper */
.place-order:active {
  transform: scale(0.95);
  box-shadow:
    inset 0 0.125em 0.125em rgba(0, 0, 0, 0.15),
    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.4),
    0 0.125em 0.125em -0.125em rgba(0, 0, 0, 0.3),
    inset 0 0 0.1em 0.25em rgba(255, 255, 255, 0.3),
    inset 0 0.25em 0.05em rgba(0, 0, 0, 0.25);
}

.place-order:hover::after {
  left: 100%;
}

/* Disabled state */
.place-order:disabled {
  transform: none;
  box-shadow: none;
  cursor: not-allowed;
}

/* Order bump */
.order-bump-card {
  background: rgba(200, 162, 74, 0.04);
  backdrop-filter: blur(4px) url(#liquid_glass_filter);
  -webkit-backdrop-filter: blur(4px) url(#liquid_glass_filter);
  border-radius: 12px;
  box-shadow:
    inset 0 2px 4px rgba(200, 162, 74, 0.35),
    inset 0 -4px 10px rgba(0, 0, 0, 0.6),
    inset 2px 0 10px rgba(200, 162, 74, 0.1),
    inset -2px 0 10px rgba(0, 0, 0, 0.3),
    0 10px 40px rgba(0, 0, 0, 0.5),
    0 20px 80px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.order-bump-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 20px rgba(200, 162, 74, 0.15);
  pointer-events: none;
}

.order-bump-badge {
  display: inline-block;
  background: var(--lv-pink);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: .05em;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 8px;
}


/* Trust badges — always one row */
.trust-badges {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: center;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(243, 244, 246, .55);
  padding: 5px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, .03);
  border: 1px solid rgba(255, 255, 255, .06);
  white-space: nowrap;
  flex: 1;
  justify-content: center;
}

.trust-badge svg {
  width: 14px;
  height: 14px;
  fill: currentColor;
  opacity: .7;
}

/* Scroll CTA */
.scroll-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 16px;
  transition: all .2s ease;
}

.scroll-cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 15px rgba(200, 162, 74, .3);
}

/* Payment method selector */
.pay-method-group {
  display: flex;
  gap: 10px;
}

.pay-method-card {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--lv-border);
  background: rgba(255, 255, 255, .03);
  cursor: pointer;
  transition: all .2s ease;
}

.pay-method-card:hover {
  border-color: rgba(200, 162, 74, .4);
}

.pay-method-card.active {
  border-color: var(--lv-gold);
  background: rgba(200, 162, 74, .08);
  box-shadow: 0 0 0 1px var(--lv-gold);
}

.pay-method-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, .3);
  flex-shrink: 0;
  position: relative;
  transition: all .2s ease;
}

.pay-method-card.active .pay-method-radio {
  border-color: var(--lv-gold);
}

.pay-method-card.active .pay-method-radio::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--lv-gold);
}

.pay-method-icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
  opacity: .6;
}

.pay-method-card.active .pay-method-icon {
  opacity: 1;
  color: var(--lv-gold);
}

.pay-method-label {
  font-size: 14px;
  font-weight: 600;
}

/* Mobile: stack payment method buttons vertically */
@media (max-width: 480px) {
  #paymentMethodSection>div[style] {
    flex-direction: column !important;
  }

  #paymentMethodSection>div[style]>label {
    flex: unset !important;
    width: 100% !important;
  }
}

/* Input shared */
.lv-input {
  width: 100%;
  border-radius: 12px;
  background: rgba(0, 0, 0, .30);
  border: 1px solid var(--lv-border);
  padding: 12px 16px;
  outline: none;
  color: var(--lv-text);
  font-size: 16px;
}

.lv-input:focus {
  box-shadow: 0 0 0 2px var(--lv-gold);
}

/* Autofill detection — Chrome applies :-webkit-autofill on autofill;
   this dummy animation lets JS detect it via animationstart event */
@keyframes onAutoFillStart {
  from {}

  to {}
}

input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
  animation-name: onAutoFillStart !important;
  animation-duration: 0.01s !important;
  animation-fill-mode: both !important;
}

/* ──────────────────────────────────────────────────────────────
   PayPal overlay — matches checkout card + button patterns
   ────────────────────────────────────────────────────────────── */
.lv-paypal-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(11, 11, 13, 0.65);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  opacity: 1;
  transition: opacity 0.5s ease;
  animation: overlayFadeIn 0.3s ease;
}

@keyframes overlayFadeIn {
  from {
    opacity: 0;
  }

  to {
    opacity: 1;
  }
}

.lv-paypal-overlay.hidden {
  opacity: 0;
  pointer-events: none;
}

/* CSS failsafe: data-active overrides .hidden — overlay MUST be visible during a transaction */
.lv-paypal-overlay[data-active="true"] {
  opacity: 1 !important;
  pointer-events: all !important;
}

/* Card — same lv-card pattern as checkout */
.lv-paypal-overlay-card {
  width: min(420px, 92%);
  border-radius: 24px;
  border: 1px solid var(--lv-border);
  background: linear-gradient(180deg, rgba(255, 255, 255, .06), rgba(255, 255, 255, .02));
  box-shadow: 0 30px 80px rgba(0, 0, 0, .45);
  padding: clamp(32px, 5vw, 44px) clamp(24px, 4vw, 36px);
  text-align: center;
  animation: cardSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes cardSlideUp {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* Spinner */
.lv-overlay-spinner {
  display: inline-block;
  width: 32px;
  height: 32px;
  border: 2.5px solid rgba(200, 162, 74, 0.12);
  border-top-color: var(--lv-gold);
  border-radius: 50%;
  animation: lvSpin 0.8s linear infinite;
  margin-bottom: 20px;
}

@keyframes lvSpin {
  to {
    transform: rotate(360deg);
  }
}

/* PayPal Logo */
.lv-paypal-overlay-logo {
  margin-bottom: 20px;
  line-height: 1;
}

.lv-paypal-overlay-logo svg {
  height: 34px;
  width: auto;
  opacity: 0.88;
}

/* Gold divider */
.lv-overlay-divider {
  width: 48px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(200, 162, 74, 0.3), transparent);
  margin: 0 auto 20px;
}

/* Text */
.lv-paypal-overlay-text {
  margin: 0 0 6px;
  color: rgba(243, 244, 246, 0.82);
  font-size: 16px;
  line-height: 1.6;
  font-weight: 500;
}

.lv-paypal-overlay-subtext {
  margin: 0 0 28px;
  color: rgba(243, 244, 246, 0.40);
  font-size: 14px;
  line-height: 1.5;
  font-weight: 400;
}

/* Actions */
.lv-paypal-overlay-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  align-items: center;
}

/* CTA — same pattern as .place-order */
.lv-overlay-btn {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 16px 16px;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
  letter-spacing: 0.01em;

  /* Glassmorphism styling */
  color: #fff;
  background: linear-gradient(-75deg, rgba(200, 162, 74, 0.15), rgba(200, 162, 74, 0.45), rgba(200, 162, 74, 0.15));
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow:
    inset 0 0.125em 0.125em rgba(0, 0, 0, 0.15),
    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.4),
    0 0.25em 0.125em -0.125em rgba(0, 0, 0, 0.3),
    inset 0 0 0.1em 0.25em rgba(255, 255, 255, 0.3);
  text-shadow: 0 0.05em 0.05em rgba(0, 0, 0, 0.3);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  overflow: hidden;
}

.lv-overlay-btn::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.6), rgba(255, 255, 255, 0.1));
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.lv-overlay-btn:hover {
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  transform: scale(0.975);
  box-shadow:
    inset 0 0.125em 0.125em rgba(0, 0, 0, 0.15),
    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.4),
    0 0.15em 0.05em -0.1em rgba(0, 0, 0, 0.3),
    inset 0 0 0.05em 0.1em rgba(255, 255, 255, 0.4);
}

.lv-overlay-btn:active {
  transform: scale(0.95);
  box-shadow:
    inset 0 0.125em 0.125em rgba(0, 0, 0, 0.15),
    inset 0 -0.125em 0.125em rgba(255, 255, 255, 0.4),
    0 0.125em 0.125em -0.125em rgba(0, 0, 0, 0.3),
    inset 0 0 0.1em 0.25em rgba(255, 255, 255, 0.3),
    inset 0 0.25em 0.05em rgba(0, 0, 0, 0.25);
}

/* Cancel link */
.lv-overlay-link {
  background: transparent;
  border: 0;
  color: rgba(243, 244, 246, 0.45);
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  transition: color 0.2s ease;
  padding: 4px 0;
}

.lv-overlay-link:hover {
  color: rgba(243, 244, 246, 0.75);
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* Trust row — same as checkout .trust-badge */
.lv-overlay-trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 20px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(243, 244, 246, 0.50);
}

.lv-overlay-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 5px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.06);
  white-space: nowrap;
}

.lv-overlay-trust-badge svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
  opacity: 0.65;
}

/* Upsell Pulse Animation */
.lv-pulse-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lv-pulse-ring {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  height: 100%;
  border-radius: 4px;
  border: 5px solid var(--lv-gold);
  opacity: 0;
  animation: lvWave 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
  pointer-events: none;
}

input:checked+.lv-pulse-ring {
  display: none;
}

@keyframes lvWave {
  0% {
    width: 100%;
    height: 100%;
    opacity: 0.6;
  }

  100% {
    width: 220%;
    height: 220%;
    opacity: 0;
  }
}

.button-lock-icon {
  width: 32px;
  height: 32px;
  flex-shrink: 0;
}