/* ═══════════════════════════════════════════════════════════════
   ELEVATE MEDCLUB — Checkout Dark Glass
   Palette: #1F1F1F · #C79F67 · #FFFFFF
   ═══════════════════════════════════════════════════════════════ */

/* ── Variables ─────────────────────────────────────────────── */
:root {
  --font-serif: 'Playfair Display', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;

  /* Dark theme (default) */
  --bg:            #1c1c1e;
  --bg-panel:      #161618;
  --surface:       rgba(255, 255, 255, 0.04);
  --surface-hover: rgba(255, 255, 255, 0.07);
  --border:        rgba(255, 255, 255, 0.09);
  --border-mid:    rgba(255, 255, 255, 0.14);
  --text:          #f2f2f7;
  --text-mid:      rgba(242, 242, 247, 0.60);
  --text-soft:     rgba(242, 242, 247, 0.35);
  --accent:        #C79F67;
  --accent-dim:    rgba(199, 159, 103, 0.12);
  --accent-glow:   rgba(199, 159, 103, 0.28);
  --error:         #FF5A5A;
  --card-bg-a:     #252535;
  --card-bg-b:     #111120;
  --glass-bg:      rgba(255, 255, 255, 0.04);
  --glass-border:  rgba(255, 255, 255, 0.08);
  --glass-blur:    blur(24px) saturate(1.4);
  --summary-bg:    #1a1a1a;
  --summary-grad:  rgba(199, 159, 103, 0.07);
  --overlay-bg:    rgba(28, 28, 28, 0.95);
  --select-option: #2a2a2a;
  --disabled-bg:   #2a4a3e;
  --disabled-text: rgba(255,255,255,0.35);

  --r:    10px;
  --r-lg: 18px;
  --r-xl: 24px;
}

/* ── Light theme ────────────────────────────────────────────── */
[data-theme="light"] {
  --bg:            #f5f6f8;
  --bg-panel:      #ffffff;
  --surface:       rgba(0, 0, 0, 0.03);
  --surface-hover: rgba(0, 0, 0, 0.055);
  --border:        rgba(0, 0, 0, 0.08);
  --border-mid:    rgba(0, 0, 0, 0.14);
  --text:          #111827;
  --text-mid:      rgba(17, 24, 39, 0.60);
  --text-soft:     rgba(17, 24, 39, 0.40);
  --accent:        #C79F67;
  --accent-dim:    rgba(199, 159, 103, 0.10);
  --accent-glow:   rgba(199, 159, 103, 0.22);
  --error:         #e03e3e;
  --glass-bg:      rgba(255, 255, 255, 0.82);
  --glass-border:  rgba(0, 0, 0, 0.07);
  --glass-blur:    blur(24px) saturate(1.6);
  --summary-bg:    #f0f7f5;
  --summary-grad:  rgba(199, 159, 103, 0.08);
  --overlay-bg:    rgba(255, 255, 255, 0.96);
  --select-option: #f5f6f8;
  --disabled-bg:   #d1e8df;
  --disabled-text: rgba(0,0,0,0.35);
}

/* ── Reset ─────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font-sans); background: var(--bg); color: var(--text); line-height: 1.55; min-height: 100vh; }

/* ═══════════════════════════════════════════════════════════════
   LAYOUT
   ═══════════════════════════════════════════════════════════════ */
.checkout-layout {
  display: grid;
  grid-template-columns: clamp(300px, 36%, 420px) 1fr;
  min-height: 100vh;
  max-width: 1100px;
  margin: 0 auto;
}

/* ═══════════════════════════════════════════════════════════════
   SUMMARY PANEL — Left
   ═══════════════════════════════════════════════════════════════ */
.summary-panel {
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
  background:
    radial-gradient(ellipse at 50% 0%, var(--summary-grad) 0%, transparent 60%),
    var(--summary-bg);
}

.summary-content {
  padding: clamp(28px, 4vw, 44px) clamp(24px, 4vw, 38px);
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: center;
}

/* ── Mentor circles ─────────────────────────────────────────── */
.mentor-circles {
  display: flex;
  gap: 14px;
  margin-bottom: 32px;
}

.mentor-circle--single {
  width: 130px;
  height: 130px;
}

.mentor-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow:
    0 0 0 4px rgba(199, 159, 103, 0.10),
    0 0 20px rgba(199, 159, 103, 0.15),
    0 8px 24px rgba(0, 0, 0, 0.50);
}

.mentor-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

/* Brand */
.brand-lockup {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 22px;
}

.brand-symbol {
  font-size: 18px;
  color: var(--accent);
  line-height: 1;
  filter: drop-shadow(0 0 8px var(--accent-glow));
}

.brand-text {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.brand-elevate {
  font-family: var(--font-sans);
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--text);
}

.brand-medclub {
  font-family: var(--font-serif);
  font-size: 21px;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
}

/* Separator */
.summary-sep {
  width: 32px;
  height: 1px;
  background: var(--border-mid);
  margin-bottom: 22px;
}

/* Pricing */
.pricing-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.13em;
  color: var(--text-soft);
  margin-bottom: 6px;
}

.pricing-value {
  font-family: var(--font-serif);
  font-size: 34px;
  font-weight: 600;
  letter-spacing: -0.5px;
  color: var(--text);
  line-height: 1.1;
  margin-bottom: 5px;
}

.pricing-install {
  font-size: 13px;
  color: var(--text-mid);
}

/* Quick features */
.quick-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 11px;
  margin-bottom: 22px;
}

.quick-features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-mid);
}

.qf-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  flex-shrink: 0;
  color: var(--text-mid);
}

.qf-icon svg { width: 14px; height: 14px; }
.qf-icon.pix-color { color: var(--accent); }

/* Trust row */
.trust-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--text-soft);
}

.trust-pagarme {
  font-weight: 600;
  color: var(--text-mid);
}

.trust-dot { color: var(--border-mid); }

/* ═══════════════════════════════════════════════════════════════
   FORM PANEL — Right
   ═══════════════════════════════════════════════════════════════ */
.form-panel {
  background: var(--bg-panel);
  border-left: 1px solid var(--border);
}

.form-content {
  padding: clamp(24px, 5vw, 48px) clamp(20px, 5vw, 52px);
  max-width: 560px;
}

/* Mobile summary (hidden on desktop) */
.mobile-summary { display: none; }

/* Form header */
.form-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 36px;
}

.form-title {
  font-family: var(--font-serif);
  font-size: 24px;
  font-weight: 500;
  color: var(--text);
}

.secure-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  color: var(--text-soft);
}

/* Form sections */
.form-section { margin-bottom: 30px; }

.section-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.10em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 16px;
}

/* ── Floating label fields (dark) ─────────────────────────── */
.field-wrap {
  position: relative;
  margin-bottom: 14px;
}

.field {
  width: 100%;
  height: 48px;
  padding: 17px 14px 6px;
  font-family: var(--font-sans);
  font-size: 14px;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  outline: none;
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s;
  appearance: none;
  -webkit-appearance: none;
  caret-color: var(--accent);
}

.field::placeholder { color: transparent; }

.field:hover { border-color: var(--border-mid); }

.field:focus {
  border-color: var(--accent);
  background: rgba(199, 159, 103, 0.04);
  box-shadow: 0 0 0 3px var(--accent-dim);
}

.field.error {
  border-color: var(--error);
  background: rgba(255, 90, 90, 0.05);
}

/* Floating label */
.label {
  position: absolute;
  top: 50%;
  left: 14px;
  transform: translateY(-50%);
  font-size: 13px;
  color: var(--text-soft);
  pointer-events: none;
  transition: all 0.15s ease;
}

.field:focus ~ .label,
.field:not(:placeholder-shown) ~ .label {
  top: 7px;
  transform: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--text-soft);
}

.field:focus ~ .label { color: var(--accent); }

/* Select */
.field--select {
  padding-right: 38px;
  cursor: pointer;
  color: var(--text);
}

.field--select option {
  background: var(--select-option);
  color: var(--text);
}

.field-wrap--select::after {
  content: '';
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-25%);
  border: 5px solid transparent;
  border-top-color: var(--text-soft);
  pointer-events: none;
}

.label--up {
  top: 7px;
  transform: none;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--accent);
}

/* Row */
.fields-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

/* Error */
.field-error {
  font-size: 11.5px;
  color: var(--error);
  padding-left: 14px;
  margin-top: -8px;
  margin-bottom: 8px;
  display: block;
}

/* ── Method tabs ───────────────────────────────────────────── */
.method-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}

.method-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 42px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: all 0.15s;
}

.method-tab:hover {
  border-color: var(--border-mid);
  color: var(--text-mid);
  background: var(--surface-hover);
}

.method-tab.active {
  background: var(--accent-dim);
  border-color: var(--accent);
  color: var(--accent);
}

.method-panel { display: none; }
.method-panel.active { display: block; }

/* ── Card 3D Visual ────────────────────────────────────────── */
.card-scene {
  perspective: 1200px;
  height: 158px;
  margin-bottom: 18px;
}

.card-3d {
  width: 100%;
  height: 100%;
  position: relative;
  transform-style: preserve-3d;
  transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 16px;
}

.card-3d.flipped { transform: rotateY(180deg); }

.card-face {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  overflow: hidden;
  box-shadow:
    0 4px 8px rgba(0,0,0,0.4),
    0 20px 60px rgba(0,0,0,0.5),
    inset 0 1px 0 rgba(255,255,255,0.08);
}

/* Card front */
.card-face.front {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(199, 159, 103, 0.22) 0%, transparent 55%),
    radial-gradient(ellipse at 85% 100%, rgba(199, 159, 103, 0.10) 0%, transparent 45%),
    linear-gradient(145deg, var(--card-bg-a) 0%, #1d1d2e 45%, var(--card-bg-b) 100%);
  padding: 16px 20px 14px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  border: 1px solid rgba(255,255,255,0.10);
}

/* Holographic shimmer */
.card-shimmer {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(199, 159, 103, 0.08) 47%,
    rgba(255,255,255,0.06) 50%,
    rgba(199, 159, 103, 0.08) 53%,
    transparent 65%
  );
  background-size: 250% 250%;
  animation: shimmer 4s ease-in-out infinite;
  pointer-events: none;
}

/* Noise texture */
.card-noise {
  position: absolute;
  inset: 0;
  border-radius: 16px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none;
  opacity: 0.5;
}

/* Stripe on front edge (top highlight) */
.card-face.front::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 40%;
  background: linear-gradient(to bottom, rgba(255,255,255,0.05), transparent);
  border-radius: 16px 16px 0 0;
  pointer-events: none;
}

.card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

/* EMV Chip */
.card-chip {
  width: 36px;
  height: 28px;
}

.chip-body {
  width: 36px;
  height: 28px;
  background: linear-gradient(135deg,
    #e8c96a 0%,
    #f5e08c 18%,
    #d4a820 35%,
    #f5e08c 55%,
    #c89518 70%,
    #f0d060 85%,
    #d4a820 100%
  );
  border-radius: 7px;
  position: relative;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.35),
    inset 0 -1px 0 rgba(0,0,0,0.20),
    0 1px 3px rgba(0,0,0,0.4);
}

.chip-line {
  position: absolute;
  background: rgba(0,0,0,0.14);
  border-radius: 1px;
}
.chip-line--h { top: 46%; left: 0; right: 0; height: 1px; }
.chip-line--v { left: 34%; top: 0; bottom: 0; width: 1px; }

.chip-center {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 18px;
  height: 14px;
  background: linear-gradient(135deg, #c8941a, #f0cc50, #c8941a);
  border-radius: 3px;
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.12);
}

.card-top-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 5px;
}

/* Contactless symbol */
.card-contactless {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.card-contactless svg { width: 22px; height: 22px; }

.card-brand-logo {
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: rgba(255,255,255,0.90);
  min-height: 18px;
  display: flex;
  align-items: center;
}

/* Card number */
.card-number-row {
  font-size: 13.5px;
  letter-spacing: 0.20em;
  font-family: 'Courier New', Courier, monospace;
  color: rgba(255,255,255,0.92);
  text-align: center;
  position: relative;
  z-index: 1;
  text-shadow: 0 1px 3px rgba(0,0,0,0.5);
}

/* Card bottom */
.card-bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}

.card-field {}
.card-field--right { text-align: right; }

.card-field-label {
  font-size: 8.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.38);
  margin-bottom: 3px;
}

.card-field-value {
  font-size: 10.5px;
  font-weight: 500;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,0.88);
  text-transform: uppercase;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-shadow: 0 1px 2px rgba(0,0,0,0.4);
}

.card-field-value.mono {
  font-family: 'Courier New', monospace;
  letter-spacing: 0.1em;
}

/* Card back */
.card-face.back {
  background: linear-gradient(145deg, #1e1e2e 0%, #15152a 50%, #0e0e1a 100%);
  transform: rotateY(180deg);
  border: 1px solid rgba(255,255,255,0.08);
}

.card-magstripe {
  width: 100%;
  height: 36px;
  background: linear-gradient(to bottom,
    #0a0a0a 0%, #111 30%, #0a0a0a 70%, #111 100%
  );
  margin-top: 28px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.6);
}

.card-cvv-area {
  padding: 10px 16px;
  display: flex;
  justify-content: flex-end;
}

.card-signature {
  background: linear-gradient(to right,
    rgba(255,255,255,0.88),
    rgba(255,255,255,0.92),
    rgba(255,255,255,0.88)
  );
  border-radius: 4px;
  padding: 6px 14px;
  display: flex;
  align-items: center;
  gap: 16px;
  width: 68%;
  box-shadow: 0 1px 3px rgba(0,0,0,0.3);
}

.cvv-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #555;
}

.cvv-value {
  font-size: 15px;
  letter-spacing: 0.16em;
  font-family: 'Courier New', monospace;
  color: #111;
  margin-left: auto;
  font-style: italic;
}

.card-back-brand {
  position: absolute;
  bottom: 16px;
  right: 20px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: rgba(255,255,255,0.25);
}

/* ── Info cards (PIX / Boleto) ─────────────────────────────── */
.info-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 26px;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.info-card__icon {
  margin-bottom: 16px;
  display: flex;
  align-items: center;
}

.pix-icon-wrap svg {
  width: 40px;
  height: 40px;
}

.info-card h4 {
  font-family: var(--font-serif);
  font-size: 17px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 8px;
}

.info-card p {
  font-size: 13.5px;
  color: var(--text-mid);
  line-height: 1.6;
  margin-bottom: 10px;
}

.info-price {
  font-family: var(--font-serif);
  font-size: 26px;
  font-weight: 600;
  color: var(--accent);
  margin-top: 16px;
  text-shadow: 0 0 20px var(--accent-glow);
}

.info-warning {
  font-size: 12px;
  color: rgba(255, 200, 80, 0.85);
  background: rgba(255, 180, 0, 0.08);
  border: 1px solid rgba(255, 180, 0, 0.15);
  border-radius: 6px;
  padding: 8px 12px;
  line-height: 1.5;
}
.info-warning.small { margin-top: 14px; }

.steps-list {
  list-style: none;
  counter-reset: steps;
  display: flex;
  flex-direction: column;
  gap: 9px;
  margin-bottom: 4px;
}

.steps-list li {
  counter-increment: steps;
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--text-mid);
}

.steps-list li::before {
  content: counter(steps);
  display: inline-flex;
  width: 20px;
  height: 20px;
  background: var(--accent-dim);
  border: 1px solid rgba(199,159,103,0.25);
  border-radius: 50%;
  font-size: 10.5px;
  font-weight: 600;
  color: var(--accent);
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ── Doctor question ───────────────────────────────────────── */
.doctor-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}
.doctor-question__label {
  font-size: 14px;
  color: var(--text);
}
.doctor-toggle {
  display: flex;
  gap: 6px;
}
.doctor-btn {
  padding: 6px 18px;
  border-radius: 20px;
  border: 1.5px solid var(--border-mid);
  background: transparent;
  color: var(--text-mid);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all .18s;
}
.doctor-btn.active {
  border-color: var(--accent);
  background: rgba(199,159,103,0.12);
  color: var(--accent);
}
.doctor-specialty { margin-top: 4px; }

/* ── Ocultar preço no step 1 ───────────────────────────────── */
body.step-1 .pricing-block,
body.step-1 .quick-features,
body.step-1 .summary-sep:not(:first-of-type) {
  visibility: hidden;
  opacity: 0;
  transition: opacity .3s, visibility .3s;
}
body.step-2 .pricing-block,
body.step-2 .quick-features,
body.step-2 .summary-sep:not(:first-of-type) {
  visibility: visible;
  opacity: 1;
  transition: opacity .4s .1s, visibility .4s .1s;
}

/* Mobile: esconder preço no topo do form no step 1 */
body.step-1 .mobile-price { visibility: hidden; opacity: 0; }
body.step-2 .mobile-price { visibility: visible; opacity: 1; transition: opacity .3s; }

/* ── Step indicator ────────────────────────────────────────── */
.step-indicator {
  display: flex;
  align-items: center;
  gap: 0;
  margin-bottom: 24px;
}
.step {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-soft);
  transition: color .2s;
}
.step.active { color: var(--accent); }
.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1.5px solid var(--border-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  transition: all .2s;
}
.step.active .step-num {
  background: var(--accent);
  border-color: var(--accent);
  color: #1F1F1F;
}
.step.done .step-num {
  background: rgba(199,159,103,0.2);
  border-color: var(--accent);
  color: var(--accent);
}
.step.done { color: var(--text-mid); }
.step-line {
  flex: 1;
  height: 1.5px;
  background: var(--border);
  margin: 0 10px;
}

/* ── Back button ────────────────────────────────────────────── */
/* ── Banner parabéns (cupom 100%) ── */
#free-order-banner {
  text-align: center;
  padding: 28px 24px 24px;
  margin-bottom: 4px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(212,168,83,0.10) 0%, rgba(212,168,83,0.04) 100%);
  border: 1px solid rgba(212,168,83,0.25);
}
.free-banner-icon {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(212,168,83,0.15);
  border: 1px solid rgba(212,168,83,0.30);
  color: var(--gold);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 16px;
}
.free-banner-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--gold);
  margin-bottom: 8px;
  letter-spacing: 0.01em;
}
.free-banner-sub {
  font-size: 13px;
  color: var(--text-mid);
  line-height: 1.6;
  max-width: 320px;
  margin: 0 auto;
}

.btn-back {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 12px;
  padding: 0;
  background: none;
  border: none;
  color: var(--text-soft);
  font-size: 13px;
  cursor: pointer;
  transition: color .18s;
}
.btn-back:hover { color: var(--text-mid); }

/* ── Submit button ─────────────────────────────────────────── */
.btn-submit {
  width: 100%;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background: var(--accent);
  color: #0D1A15;
  font-family: var(--font-sans);
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.04em;
  border: none;
  border-radius: var(--r);
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s, transform 0.1s;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}

.btn-submit::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, transparent 0%, rgba(255,255,255,0.12) 50%, transparent 100%);
  transform: translateX(-100%);
  transition: transform 0.5s;
}

.btn-submit:hover::before { transform: translateX(100%); }

.btn-submit:hover {
  background: #b5884e;
  box-shadow: 0 0 28px var(--accent-glow), 0 4px 16px rgba(0,0,0,0.3);
}

.btn-submit:active { transform: scale(0.99); }
.btn-submit:disabled { background: var(--disabled-bg); color: var(--disabled-text); cursor: not-allowed; }
.btn-submit:disabled:hover { box-shadow: none; }

.btn-spinner {
  width: 20px;
  height: 20px;
  animation: spin 0.75s linear infinite;
  flex-shrink: 0;
}

/* Footer note */
.form-footer-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  font-size: 11.5px;
  color: var(--text-soft);
  text-align: center;
}

/* ═══════════════════════════════════════════════════════════════
   OVERLAYS
   ═══════════════════════════════════════════════════════════════ */
.overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 10, 10, 0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  padding: 20px;
}

.overlay.hidden { display: none; }

.overlay-box {
  background: var(--overlay-bg);
  backdrop-filter: var(--glass-blur);
  -webkit-backdrop-filter: var(--glass-blur);
  border: 1px solid var(--border-mid);
  border-radius: var(--r-xl);
  padding: 40px;
  max-width: 440px;
  width: 100%;
  box-shadow:
    0 0 0 1px rgba(255,255,255,0.04),
    0 24px 80px rgba(0,0,0,0.7);
  text-align: center;
}

.overlay-box h3 {
  font-family: var(--font-serif);
  font-size: 22px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 10px;
}

.overlay-box p {
  font-size: 14px;
  color: var(--text-mid);
  line-height: 1.65;
}

/* Loading */
.overlay-spinner {
  width: 44px;
  height: 44px;
  margin: 0 auto 20px;
  animation: spin 0.8s linear infinite;
  display: block;
}

/* Success */
.success-circle {
  width: 64px;
  height: 64px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  box-shadow: 0 0 32px var(--accent-glow);
  animation: pop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.success-circle svg { width: 28px; height: 28px; }

.order-id-display {
  margin-top: 12px;
  font-size: 11.5px;
  color: var(--text-soft);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 6px 14px;
  display: inline-block;
  font-family: monospace;
}

/* PIX overlay */
.pix-result-header { margin-bottom: 18px; }

.pix-result-logo {
  width: 40px;
  height: 40px;
  margin: 0 auto 12px;
  display: block;
  filter: drop-shadow(0 0 10px var(--accent-glow));
}

.pix-box p { color: var(--text-mid); }
.pix-box p strong { color: var(--text); }

.pix-qr-wrap {
  background: #FFFFFF;
  border-radius: var(--r);
  padding: 16px;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
}

.pix-qr-wrap img {
  max-width: 180px;
  max-height: 180px;
  display: block;
}

.pix-copy-wrap {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

.pix-code-display {
  flex: 1;
  font-size: 11px;
  font-family: monospace;
  color: var(--text-mid);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: left;
}

.btn-copy {
  height: 40px;
  padding: 0 16px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(199,159,103,0.2);
  border-radius: 7px;
  cursor: pointer;
  transition: background 0.1s;
  white-space: nowrap;
  flex-shrink: 0;
}

.btn-copy:hover { background: rgba(199,159,103,0.18); }
.btn-copy.copied { color: #fff; background: rgba(199,159,103,0.3); }

.pix-waiting-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 12px;
  color: var(--text-soft);
}

.pulsing-dot {
  width: 8px;
  height: 8px;
  background: var(--accent);
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 6px var(--accent);
  animation: pulse-dot 1.4s ease-in-out infinite;
}

/* Boleto overlay */
.boleto-barcode {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px;
  font-size: 10.5px;
  font-family: monospace;
  color: var(--text-mid);
  word-break: break-all;
  text-align: left;
  margin: 14px 0;
  line-height: 1.8;
}

.boleto-actions {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
}

.btn-outline {
  flex: 1;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text-mid);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  cursor: pointer;
  transition: background 0.1s, border-color 0.1s;
}
.btn-outline:hover { border-color: var(--border-mid); color: var(--text); }

.btn-accent-link {
  flex: 1;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 12.5px;
  font-weight: 700;
  color: #0D1A15;
  background: var(--accent);
  border-radius: var(--r);
  text-decoration: none;
  transition: background 0.1s, box-shadow 0.1s;
}
.btn-accent-link:hover { background: #b5884e; box-shadow: 0 0 16px var(--accent-glow); }

/* ═══════════════════════════════════════════════════════════════
   ANIMATIONS
   ═══════════════════════════════════════════════════════════════ */
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes shimmer { 0%,100% { background-position: 200% center; } 50% { background-position: -100% center; } }
@keyframes pop     { 0% { transform: scale(0); opacity:0; } 80% { transform: scale(1.1); } 100% { transform: scale(1); opacity:1; } }
@keyframes pulse-dot { 0%,100% { opacity:1; transform:scale(1); } 50% { opacity:0.35; transform:scale(0.75); } }

/* ── PIX/Boleto "próximos passos" button ────────────────────── */
.btn-pix-done {
  display: block;
  width: 100%;
  margin-top: 14px;
  padding: 12px;
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-dim);
  border: 1px solid rgba(199, 159, 103, 0.20);
  border-radius: var(--r);
  cursor: pointer;
  transition: background 0.15s, box-shadow 0.15s;
  text-align: center;
}

.btn-pix-done:hover {
  background: rgba(199, 159, 103, 0.18);
  box-shadow: 0 0 16px rgba(199, 159, 103, 0.18);
}

/* ── Utils ─────────────────────────────────────────────────── */
.hidden { display: none !important; }

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE
   ═══════════════════════════════════════════════════════════════ */
/* ─── Tablet (900px) — collapse to single column ─── */
@media (max-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr;
  }

  .summary-panel {
    position: static;
    height: auto;
  }

  .summary-content {
    padding: 28px 24px 24px;
    height: auto;
    justify-content: flex-start;
  }

  .mentor-circles { margin-bottom: 20px; }
  .mentor-circle  { width: 64px; height: 64px; }
  .pricing-value  { font-size: 28px; }
  .quick-features { gap: 9px; }

  .form-panel { border-left: none; border-top: 1px solid var(--border); }
  .form-content { padding: 28px 24px; max-width: 100%; }

  .mobile-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 18px;
    margin-bottom: 22px;
    border-bottom: 1px solid var(--border);
  }

  .mobile-brand {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.06em;
    color: var(--accent);
  }

  .mobile-price {
    font-family: var(--font-serif);
    font-size: 17px;
    font-weight: 600;
    color: var(--text);
  }
}

/* ─── Small tablet / large phone (600px) ─── */
@media (max-width: 600px) {
  .summary-content { padding: 22px 20px 20px; }

  .mentor-circle   { width: 58px; height: 58px; }
  .pricing-value   { font-size: 26px; }

  .form-content    { padding: 22px 18px; }
  .form-title      { font-size: 20px; }
  .form-header     { margin-bottom: 24px; }
  .form-section    { margin-bottom: 22px; }

  .field           { height: 50px; font-size: 14px; }
  .label           { font-size: 13px; }

  .method-tab      { height: 44px; font-size: 12px; }
  .card-scene      { height: 180px; }
}

/* ─── Mobile (480px) ─── */
@media (max-width: 480px) {
  .mentor-circle { width: 54px; height: 54px; }

  .form-content  { padding: 18px 16px; }
  .form-title    { font-size: 19px; }

  .method-tab span { display: none; }
  .method-tab svg  { width: 17px; height: 17px; }
  .method-tab      { height: 46px; }

  .fields-row { grid-template-columns: 1fr; gap: 0; }

  .pix-copy-wrap  { flex-direction: column; }
  .boleto-actions { flex-direction: column; }

  .card-scene      { height: 148px; }
  .card-number-row { font-size: 12px; letter-spacing: 0.14em; }

  .overlay-box { padding: 24px 18px; }
}

/* ── Theme toggle ───────────────────────────────────────────── */
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
  flex-shrink: 0;
}

.theme-toggle:hover {
  background: var(--surface-hover);
  border-color: var(--border-mid);
  color: var(--text);
}

.theme-toggle svg { width: 16px; height: 16px; pointer-events: none; }

.icon-sun  { display: none; }
.icon-moon { display: block; }
[data-theme="light"] .icon-sun  { display: block; }
[data-theme="light"] .icon-moon { display: none; }
