/* ============================================================================
   KYANT0 ANDROID LIQUID GLASS — CRYSTAL-CLEAR LENS UI STYLES
   Zero heavy murky blur! Pure crystal clarity (blur 0–2px) + spherical rim
   refraction (circleMap) + opposing 45° white glass caustics + vibrant saturation.
   ============================================================================ */

/* Clean, minimal Apple dark background — zero colorful background blobs */
body {
  background: linear-gradient(180deg, #060911 0%, #020409 100%) !important;
}
body::before,
body::after {
  display: none !important;
  background: none !important;
}
.frame-header,
#payment-details-heading,
#payment-details-subtitle {
  display: none !important;
}

/* ==================== 1. CRYSTAL-CLEAR KYANT0 GLASS SHELL ==================== */
.checkout-frame.kyant-surface {
  border-radius: 32px !important;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.085) 0%,
    rgba(255, 255, 255, 0.015) 48%,
    rgba(255, 255, 255, 0.045) 100%
  ) !important;
  backdrop-filter: blur(4px) saturate(195%) brightness(1.06) !important;
  -webkit-backdrop-filter: blur(4px) saturate(195%) brightness(1.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.20) !important;
  box-shadow:
    0 32px 84px rgba(0, 0, 0, 0.68),
    0 8px 24px rgba(0, 0, 0, 0.42),
    inset 0 1px 0 rgba(255, 255, 255, 0.48),
    inset 0 -1px 0 rgba(255, 255, 255, 0.16) !important;
}

/* Keep internal panels crystal clear (never opaque dark gray!) */
.checkout-frame.kyant-surface .panel-left {
  background: rgba(6, 12, 26, 0.14) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.12) !important;
}
.checkout-frame.kyant-surface .panel-right {
  background: rgba(6, 10, 22, 0.10) !important;
}
.checkout-frame.kyant-surface .frame-header {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.01)) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14) !important;
}

/* Clean Optical Glass Layer (ZERO SVG feDisplacementMap RGB ghosting on mobile Chrome!) */
.kyant-lens-layer {
  display: none !important;
}
.kyant-glass-on .checkout-frame.kyant-surface > .kyant-lens-layer,
.kyant-glass-on .kyant-pill > .kyant-lens-layer {
  display: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

/* Kyant0 DefaultHighlightShader: Two-Sided Opposing 45° White Glass Caustic Rim */
.kyant-caustic-rim {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  pointer-events: none;
  z-index: 9;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
  /* Exact opposing 45° bright caustics (top-left 0% & bottom-right 100%, dark at 50% waist) */
  background: linear-gradient(
    var(--k-angle, 135deg),
    rgba(255, 255, 255, 0.85) 0%,
    rgba(255, 255, 255, 0.24) 22%,
    rgba(255, 255, 255, 0.04) 50%,
    rgba(255, 255, 255, 0.22) 78%,
    rgba(255, 255, 255, 0.72) 100%
  );
  mix-blend-mode: plus-lighter;
  opacity: 0.78;
}

/* Interactive Cursor Specular Glint */
.kyant-pointer-glint {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 2;
  opacity: 0;
  mix-blend-mode: screen;
  background: radial-gradient(
    circle 160px at var(--k-px, 50%) var(--k-py, 0%),
    rgba(255, 255, 255, 0.24) 0%,
    rgba(147, 197, 253, 0.07) 40%,
    transparent 70%
  );
  transition: opacity 0.16s ease-out;
}
.kyant-surface:hover > .kyant-pointer-glint,
.kyant-surface:focus-within > .kyant-pointer-glint {
  opacity: 1;
}

/* ==================== 2. KYANT0 LIQUID GLASS PILL SWITCHER ==================== */
.segmented-control.kyant-surface {
  position: relative;
  overflow: hidden;
  border-radius: 22px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.10), rgba(255, 255, 255, 0.025)) !important;
  backdrop-filter: blur(2px) saturate(210%) !important;
  -webkit-backdrop-filter: blur(2px) saturate(210%) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.50),
    inset 0 -1px 1px rgba(255, 255, 255, 0.14),
    0 10px 26px rgba(0, 0, 0, 0.34) !important;
}
.segmented-thumb {
  border-radius: 16px !important;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.32) 0%,
    rgba(255, 255, 255, 0.10) 55%,
    rgba(255, 255, 255, 0.18) 100%
  ) !important;
  border: 1px solid rgba(255, 255, 255, 0.52) !important;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.80),
    inset 0 -1px 1px rgba(255, 255, 255, 0.22),
    0 6px 18px rgba(0, 0, 0, 0.36) !important;
  backdrop-filter: blur(2px) saturate(220%) !important;
  -webkit-backdrop-filter: blur(2px) saturate(220%) !important;
}

/* ==================== 3. CRYSTAL LIQUID GLASS INPUTS (SINGLE ROUNDED CAPSULE) ==================== */
.input-box {
  border-radius: 16px !important;
  overflow: hidden;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02)) !important;
  backdrop-filter: blur(2px) saturate(190%) !important;
  -webkit-backdrop-filter: blur(2px) saturate(190%) !important;
  border: 1px solid rgba(255, 255, 255, 0.20) !important;
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 0.38),
    inset 0 -1px 0.5px rgba(255, 255, 255, 0.10),
    0 4px 14px rgba(0, 0, 0, 0.22) !important;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease !important;
}
.input-box .apple-input,
.input-box .apple-select {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  border-radius: inherit !important;
}
.input-box:focus-within {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)) !important;
  border-color: rgba(255, 214, 102, 0.85) !important;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.60),
    0 0 0 3px rgba(255, 198, 41, 0.20),
    0 10px 24px rgba(0, 0, 0, 0.32) !important;
}

/* ==================== 4. KYANT0 LIQUID GLASS CARDS ==================== */
.bump-box.kyant-surface,
.alt-method-note.kyant-surface,
.pix-code-bar.kyant-surface {
  position: relative;
  overflow: hidden;
  border-radius: 20px !important;
  background: linear-gradient(150deg, rgba(255, 255, 255, 0.10) 0%, rgba(255, 255, 255, 0.02) 100%) !important;
  backdrop-filter: blur(2px) saturate(210%) !important;
  -webkit-backdrop-filter: blur(2px) saturate(210%) !important;
  border: 1px solid rgba(255, 255, 255, 0.22) !important;
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.48),
    inset 0 -1px 1px rgba(255, 255, 255, 0.12),
    0 12px 28px rgba(0, 0, 0, 0.34) !important;
}
.bump-box.is-checked {
  background: linear-gradient(150deg, rgba(255, 198, 41, 0.18) 0%, rgba(255, 198, 41, 0.04) 100%) !important;
  border-color: rgba(255, 214, 102, 0.72) !important;
}

/* ==================== 5. KYANT0 SPECULAR CTA ==================== */
.cta-pay.kyant-surface {
  position: relative;
  overflow: hidden;
  border-radius: 16px !important;
  box-shadow:
    inset 0 1.5px 1px rgba(255, 255, 255, 0.78),
    inset 0 -2px 3px rgba(0, 0, 0, 0.22),
    0 14px 36px rgba(255, 198, 41, 0.36) !important;
  transition: transform 0.15s cubic-bezier(0.23, 1, 0.32, 1), box-shadow 0.18s ease !important;
}
.cta-pay.kyant-surface:active {
  transform: scale(0.968) !important;
}

/* ==================== 6. TOP OBJECTION-BREAKER HERO BANNER ==================== */
.obj-banner-wrap {
  padding: 14px 20px 0;
  position: relative;
  z-index: 2;
}
.checkout-frame.is-stage-mode .obj-banner-wrap {
  display: none;
}
.obj-banner {
  position: relative;
  overflow: hidden;
  border-radius: 22px;
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  aspect-ratio: 880 / 336;
  background: #060d24;
  border: 1px solid rgba(147, 197, 253, 0.28);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.45),
    0 18px 42px rgba(0, 0, 0, 0.52),
    0 0 28px rgba(45, 136, 255, 0.16);
}
.obj-banner-picture {
  display: block;
  width: 100%;
  height: 100%;
}
.obj-banner-video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  pointer-events: none;
}
@media (max-width: 680px) {
  .obj-banner-wrap {
    padding: 12px 14px 0;
  }
  .obj-banner {
    max-width: 100%;
    aspect-ratio: 16 / 9;
    border-radius: 18px;
  }
}

/* ==================== 8.5. PRODUCT HERO SHOWCASE (ABAIXO DO BANNER) ==================== */
.product-hero-card {
  position: relative;
  overflow: hidden;
  margin: 0 0 18px;
  padding: 14px 14px 12px;
  border-radius: 22px;
  background: linear-gradient(
    155deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.015) 60%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.36),
    0 14px 34px rgba(0, 0, 0, 0.44);
  text-align: center;
}
.product-hero-title {
  margin: 0 0 3px;
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-align: center;
}
.product-hero-title span {
  color: #ffc629;
}
.product-hero-sub {
  margin: 0 0 12px;
  font-size: 11.5px;
  font-weight: 600;
  color: rgba(226, 232, 240, 0.72);
  text-align: center;
}
.product-hero-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 16px;
  overflow: hidden;
  background: #050811;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.product-hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

/* ==================== 9. SELO DE GARANTIA 7 DIAS (RODAPÉ) ==================== */
.guarantee-seal-wrap {
  padding: 0 28px 24px;
  position: relative;
  z-index: 2;
}
.checkout-frame.is-stage-mode .guarantee-seal-wrap {
  display: none;
}
.guarantee-seal {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-radius: 22px;
  background: linear-gradient(
    145deg,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.02) 55%,
    rgba(255, 255, 255, 0.04) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    inset 0 1px 1px rgba(255, 255, 255, 0.38),
    0 14px 32px rgba(0, 0, 0, 0.38);
}
.guarantee-emblem {
  position: relative;
  width: 60px;
  height: 68px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  filter: drop-shadow(0 6px 16px rgba(52, 211, 153, 0.28));
}
.guarantee-shield-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.guarantee-emblem-text {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  line-height: 1;
  margin-top: -2px;
}
.guarantee-emblem-text strong {
  font-size: 24px;
  font-weight: 900;
  color: #ffffff;
  letter-spacing: -0.04em;
}
.guarantee-emblem-text span {
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.1em;
  color: #ffc629;
  margin-top: 1px;
}
.guarantee-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.guarantee-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  width: fit-content;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(52, 211, 153, 0.16);
  border: 1px solid rgba(52, 211, 153, 0.42);
  color: #6ee7b7;
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.guarantee-title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: -0.015em;
}
.guarantee-desc {
  margin: 0;
  font-size: 12px;
  line-height: 1.42;
  color: #cbd5f5;
}
.guarantee-desc b {
  color: #ffffff;
  font-weight: 700;
}
@media (max-width: 680px) {
  .guarantee-seal-wrap {
    padding: 0 14px 18px;
  }
  .guarantee-seal {
    padding: 14px 14px;
    gap: 12px;
    border-radius: 18px;
  }
  .guarantee-emblem {
    width: 52px;
    height: 60px;
  }
  .guarantee-emblem-text strong {
    font-size: 21px;
  }
  .guarantee-title {
    font-size: 13.5px;
  }
  .guarantee-desc {
    font-size: 11.5px;
  }
}

/* Hide explanatory text boxes on Pix, Apple Pay & Google Pay tabs */
#panel-pix,
#panel-applepay,
#panel-googlepay,
.alt-method-note {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .kyant-glass-on .kyant-lens-layer { backdrop-filter: none !important; }
  .kyant-pointer-glint { display: none !important; }
}
