/* ============================================================================
   NO VOLANTE 2026 — APPLE-GRADE DARK CHECKOUT (SYNC PAY • MAX CONVERSION)
   Inspired by Apple Pay / Stripe Dark Glass: zero clutter, crisp hairlines,
   grouped iOS inputs, tactile toggle bumps, and frictionless Pix screen.
   ============================================================================ */
:root {
  --ap-bg: #050507;
  --ap-surface: #111216;
  --ap-surface-2: #181a20;
  --ap-hairline: rgba(255, 255, 255, 0.09);
  --ap-hairline-strong: rgba(255, 255, 255, 0.16);
  --ap-text: #f5f5f7;
  --ap-muted: #8e8e93;
  --ap-subtle: #636366;
  --ap-green: #30d158;
  --ap-green-deep: #1fb84b;
  --ap-gold: #ffd60a;
  --ap-red: #ff453a;
  --ap-ease: cubic-bezier(0.23, 1, 0.32, 1);
}

.sheet.ck-sheet {
  top: 0;
  bottom: 0;
  max-height: 100%;
  border-radius: 0;
  border-top: 0;
  padding: 0;
  background: radial-gradient(120% 55% at 50% 0%, #141824 0%, var(--ap-bg) 55%);
  color: var(--ap-text);
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  scrollbar-width: none;
}
.sheet.ck-sheet::-webkit-scrollbar { display: none; }

/* ==================== STICKY FROSTED APPLE NAV BAR ==================== */
.ck-nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: calc(11px + env(safe-area-inset-top)) 14px 11px;
  background: rgba(10, 11, 14, 0.78);
  backdrop-filter: blur(22px) saturate(180%);
  -webkit-backdrop-filter: blur(22px) saturate(180%);
  border-bottom: 1px solid var(--ap-hairline);
}

.ck-nav-back {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 1px solid var(--ap-hairline);
  background: rgba(255, 255, 255, 0.05);
  color: var(--ap-text);
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform 0.14s var(--ap-ease), background 0.15s ease;
}
.ck-nav-back:active { transform: scale(0.92); background: rgba(255, 255, 255, 0.12); }

.ck-nav-mid {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ap-text);
  letter-spacing: -0.01em;
}
.ck-nav-mid svg { color: var(--ap-green); }

.ck-nav-timer {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 99px;
  background: rgba(255, 69, 58, 0.12);
  border: 1px solid rgba(255, 69, 58, 0.3);
  font-size: 12px;
  font-weight: 700;
  color: #ff9a94;
  font-variant-numeric: tabular-nums;
}
.ck-nav-timer i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--ap-red);
  box-shadow: 0 0 8px var(--ap-red);
}

/* ==================== MAIN CONTAINER ==================== */
.ck-body {
  padding: 16px 16px calc(32px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* ==================== APPLE BAG PRODUCT SUMMARY ==================== */
.ck-product-card {
  background: linear-gradient(180deg, rgba(28, 30, 38, 0.92), rgba(17, 18, 22, 0.96));
  border: 1px solid var(--ap-hairline-strong);
  border-radius: 20px;
  padding: 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 14px 34px rgba(0, 0, 0, 0.45);
}

.ck-product-top {
  display: flex;
  align-items: center;
  gap: 13px;
}

.ck-product-thumb {
  width: 64px;
  height: 64px;
  border-radius: 15px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.45);
}

.ck-product-info {
  flex: 1;
  min-width: 0;
}

.ck-save-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ap-green);
  background: rgba(48, 209, 88, 0.12);
  border: 1px solid rgba(48, 209, 88, 0.28);
  padding: 2px 7px;
  border-radius: 99px;
  margin-bottom: 5px;
}

.ck-product-info strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: #fff;
}

.ck-product-info span {
  display: block;
  font-size: 12px;
  color: var(--ap-muted);
  margin-top: 3px;
  line-height: 1.3;
}

.ck-product-price {
  text-align: right;
  flex-shrink: 0;
}
.ck-product-price s {
  display: block;
  font-size: 11.5px;
  color: var(--ap-subtle);
  font-variant-numeric: tabular-nums;
}
.ck-product-price b {
  display: block;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  font-variant-numeric: tabular-nums;
  margin-top: 1px;
}

.ck-product-meta {
  margin-top: 12px;
  padding-top: 11px;
  border-top: 1px solid var(--ap-hairline);
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  font-size: 11.5px;
  color: #c7c7cc;
}
.ck-product-meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}
.ck-product-meta svg { color: var(--ap-green); flex-shrink: 0; }

.ck-focus-strip {
  margin-top: 10px;
  padding: 9px 11px;
  border-radius: 12px;
  background: rgba(255, 214, 10, 0.07);
  border: 1px solid rgba(255, 214, 10, 0.2);
  font-size: 12px;
  line-height: 1.38;
  color: #e5e5ea;
}
.ck-focus-strip b { color: var(--ap-gold); font-weight: 700; }

/* ==================== SECTION HEADERS ==================== */
.ck-section-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--ap-muted);
  padding: 0 4px;
  margin-bottom: -8px;
}
.ck-section-label small {
  margin: 0;
  font-size: 11px;
  font-weight: 600;
  text-transform: none;
  letter-spacing: 0;
  color: var(--ap-green);
}

/* ==================== APPLE GROUPED INSET FORM ==================== */
.ck-group {
  background: var(--ap-surface);
  border: 1px solid var(--ap-hairline);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.ck-field-row {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 10px 14px 9px;
  border-bottom: 1px solid var(--ap-hairline);
  transition: background 0.16s ease;
}
.ck-field-row:last-child { border-bottom: 0; }
.ck-field-row:focus-within {
  background: rgba(255, 255, 255, 0.035);
}

.ck-field-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-bottom: 0;
}
.ck-field-split .ck-field-row {
  border-bottom: 0;
  border-right: 1px solid var(--ap-hairline);
}
.ck-field-split .ck-field-row:last-child { border-right: 0; }

.ck-field-row label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  color: var(--ap-muted);
  margin-bottom: 3px;
}
.ck-field-row.valid label::after {
  content: "✓";
  color: var(--ap-green);
  font-size: 12px;
  font-weight: 800;
}

.ck-field-row input {
  width: 100%;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 15.5px;
  font-weight: 500;
  line-height: 1.35;
  padding: 2px 0;
  outline: none;
  user-select: text;
  -webkit-user-select: text;
}
.ck-field-row input::placeholder {
  color: var(--ap-subtle);
  font-weight: 400;
}

/* ==================== APPLE ADD-ON ORDER BUMPS ==================== */
.ck-bumps-wrap {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ck-bump {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 18px;
  background: var(--ap-surface);
  border: 1px solid var(--ap-hairline);
  cursor: pointer;
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.14s var(--ap-ease), box-shadow 0.18s ease;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}
.ck-bump:active { transform: scale(0.985); }

.ck-bump.checked {
  border-color: rgba(48, 209, 88, 0.65);
  background: linear-gradient(180deg, rgba(48, 209, 88, 0.11), rgba(17, 26, 20, 0.95));
  box-shadow: inset 0 1px 0 rgba(48, 209, 88, 0.2), 0 8px 24px rgba(48, 209, 88, 0.12);
}

.ck-bump input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ck-bump-thumb {
  width: 56px;
  height: 56px;
  border-radius: 13px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--ap-hairline-strong);
}

.ck-bump-content {
  flex: 1;
  min-width: 0;
}

.ck-bump-badge {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ap-gold);
  background: rgba(255, 214, 10, 0.12);
  padding: 2px 7px;
  border-radius: 99px;
  margin-bottom: 4px;
}

.ck-bump-title {
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: #fff;
}

.ck-bump-desc {
  font-size: 11.5px;
  line-height: 1.35;
  color: var(--ap-muted);
  margin-top: 3px;
}

.ck-bump-pricing {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-top: 6px;
}
.ck-bump-old {
  font-size: 11px;
  color: var(--ap-subtle);
  text-decoration: line-through;
  font-variant-numeric: tabular-nums;
}
.ck-bump-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--ap-green);
  font-variant-numeric: tabular-nums;
}

/* iOS Check Toggle Circle */
.ck-bump-toggle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--ap-hairline-strong);
  background: rgba(255, 255, 255, 0.04);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  color: transparent;
  transition: all 0.18s var(--ap-ease);
}
.ck-bump.checked .ck-bump-toggle {
  border-color: var(--ap-green);
  background: var(--ap-green);
  color: #041509;
  transform: scale(1.05);
}

/* ==================== PAYMENT & ORDER SUMMARY CARD ==================== */
.ck-pay-card {
  background: var(--ap-surface);
  border: 1px solid var(--ap-hairline-strong);
  border-radius: 20px;
  padding: 15px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07), 0 16px 36px rgba(0, 0, 0, 0.45);
}

.ck-pix-pill {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 11px 13px;
  border-radius: 13px;
  background: rgba(48, 209, 88, 0.09);
  border: 1px solid rgba(48, 209, 88, 0.32);
  margin-bottom: 13px;
}
.ck-pix-pill-left {
  display: flex;
  align-items: center;
  gap: 9px;
}
.ck-pix-pill-left strong {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: #fff;
}
.ck-pix-pill-left span {
  display: block;
  font-size: 11px;
  color: #a1e8b5;
}
.ck-pix-badge {
  font-size: 10.5px;
  font-weight: 700;
  color: #041a0b;
  background: var(--ap-green);
  padding: 3px 9px;
  border-radius: 99px;
}

.ck-summary-rows {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding-bottom: 11px;
  border-bottom: 1px solid var(--ap-hairline);
  margin-bottom: 11px;
  font-size: 12.5px;
  color: var(--ap-muted);
}
.ck-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}
.ck-summary-row b {
  color: #e5e5ea;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.ck-total-line {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 14px;
}
.ck-total-line span {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ap-muted);
}
.ck-total-line b {
  font-size: 28px;
  font-weight: 800;
  letter-spacing: -0.035em;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.ck-err {
  background: rgba(255, 69, 58, 0.12);
  border: 1px solid rgba(255, 69, 58, 0.45);
  color: #ffb4ae;
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* Apple Primary CTA with Specular Sheen */
.ck-cta {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 54px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(180deg, #34d960 0%, #24b84d 100%);
  color: #04160a;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: -0.015em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.35), 0 10px 26px rgba(48, 209, 88, 0.32);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.14s var(--ap-ease), opacity 0.16s ease, box-shadow 0.16s ease;
}
.ck-cta::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 28%, rgba(255, 255, 255, 0.32) 50%, transparent 72%);
  transform: translate3d(-125%, 0, 0);
  animation: ckSheen 3.4s cubic-bezier(0.77, 0, 0.175, 1) infinite;
  pointer-events: none;
}
@keyframes ckSheen {
  0%, 62% { transform: translate3d(-125%, 0, 0); }
  100% { transform: translate3d(135%, 0, 0); }
}
.ck-cta:active { transform: scale(0.975); }
.ck-cta:disabled { opacity: 0.6; cursor: wait; }
.ck-cta:disabled::after { animation: none; }

.ck-trust-row {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
  font-size: 11px;
  font-weight: 600;
  color: var(--ap-muted);
}
.ck-trust-row span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==================== GUARANTEE & SOCIAL PROOF ==================== */
.ck-guar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--ap-surface);
  border: 1px solid var(--ap-hairline);
  border-radius: 18px;
  padding: 13px;
  font-size: 12px;
  line-height: 1.42;
  color: var(--ap-muted);
}
.ck-guar img {
  width: 50px;
  height: 50px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  border: 1px solid var(--ap-hairline-strong);
}
.ck-guar strong {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 2px;
}

.ck-review {
  background: var(--ap-surface);
  border: 1px solid var(--ap-hairline);
  border-radius: 16px;
  padding: 12px 13px;
  font-size: 12px;
  line-height: 1.45;
  color: #d1d1d6;
}
.ck-review-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
  font-size: 11.5px;
  font-weight: 700;
  color: #fff;
}
.ck-review-stars {
  color: var(--ap-gold);
  letter-spacing: 1px;
  font-size: 11px;
}

.ck-back-link {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ap-subtle);
  font-size: 12.5px;
  font-weight: 600;
  padding: 8px;
  cursor: pointer;
  text-align: center;
}

/* ==================== APPLE-GRADE PIX QR SCREEN ==================== */
.pix-hero {
  text-align: center;
  padding: 6px 0 4px;
}
.pix-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 99px;
  background: rgba(48, 209, 88, 0.12);
  border: 1px solid rgba(48, 209, 88, 0.3);
  font-size: 11.5px;
  font-weight: 700;
  color: #86efac;
  margin-bottom: 10px;
}
.pix-live-pill i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ap-green);
  box-shadow: 0 0 8px var(--ap-green);
  animation: blink 1.2s infinite;
}
.pix-amount-big {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.04em;
  color: #fff;
  line-height: 1.05;
  font-variant-numeric: tabular-nums;
}
.pix-sub-note {
  font-size: 12.5px;
  color: var(--ap-muted);
  margin-top: 4px;
}

.pix-qr-card {
  background: var(--ap-surface);
  border: 1px solid var(--ap-hairline-strong);
  border-radius: 22px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 16px 36px rgba(0, 0, 0, 0.5);
}
.pix-qr-frame {
  display: inline-block;
  background: #ffffff;
  padding: 12px;
  border-radius: 20px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.45);
  margin-bottom: 14px;
}
.pix-qr-frame img {
  display: block;
  width: 204px;
  height: 204px;
}

.pix-emv-box {
  background: #08090c;
  border: 1px solid var(--ap-hairline);
  border-radius: 12px;
  padding: 10px 12px;
  font: 500 11px/1.35 ui-monospace, SFMono-Regular, Menlo, monospace;
  color: #a1a1aa;
  word-break: break-all;
  max-height: 54px;
  overflow: hidden;
  text-align: left;
  margin-bottom: 13px;
  user-select: all;
  -webkit-user-select: all;
}

.pix-steps-card {
  background: var(--ap-surface);
  border: 1px solid var(--ap-hairline);
  border-radius: 18px;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.pix-step-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 12.5px;
  line-height: 1.4;
  color: #d1d1d6;
}
.pix-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
