/* =====================================================================
   FUNIL AGRO TAIGO — estilos das interações adicionadas
   Carregado depois do CSS principal para complementar (não substituir)
   o layout já existente.
   ===================================================================== */

.funil-hidden { display: none !important; }

/* ---------------------------------------------------------------------
   Toast
   --------------------------------------------------------------------- */
.funil-toast-host {
  position: fixed;
  left: 50%;
  bottom: calc(84px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: min(92vw, 420px);
  pointer-events: none;
}

.funil-toast {
  background: #062f35;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
  text-align: center;
  padding: 12px 16px;
  border-radius: 14px;
  box-shadow: 0 14px 34px rgba(6, 47, 53, .28);
  opacity: 1;
  transform: translateY(0);
  transition: opacity .25s ease, transform .25s ease;
}

.funil-toast-error { background: #b42318; }
.funil-toast-out { opacity: 0; transform: translateY(6px); }

/* ---------------------------------------------------------------------
   Modal (regulamento / instalar aplicativo)
   --------------------------------------------------------------------- */
body.funil-no-scroll { overflow: hidden; }

.funil-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  background: rgba(6, 47, 53, .55);
  -webkit-backdrop-filter: blur(5px);
  backdrop-filter: blur(5px);
  padding: 0;
  animation: funil-fade-in .16s ease-out;
}

.funil-modal {
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 22px 22px 0 0;
  box-shadow: 0 -18px 60px rgba(6, 47, 53, .30);
  animation: funil-slide-up .22s cubic-bezier(.2, .8, .2, 1);
  overflow: hidden;
}

.funil-modal-out { animation: funil-fade-out .18s ease-in forwards; }

.funil-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid #e9edf0;
  background: #fff;
  flex-shrink: 0;
}

.funil-modal-title {
  font-size: 15px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: #062f35;
  margin: 0;
}

.funil-modal-close {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border: 1px solid #e2e6ea;
  border-radius: 999px;
  background: #fff;
  color: #5e6471;
  cursor: pointer;
  transition: background .15s ease, transform .15s ease;
}

.funil-modal-close:hover { background: #f3f5f7; }
.funil-modal-close:active { transform: scale(.95); }

.funil-modal-body {
  padding: 18px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  color: #4b5563;
  font-size: 13px;
  line-height: 1.65;
}

.funil-modal-body p { margin: 0 0 12px; }
.funil-modal-body p:last-child { margin-bottom: 0; }
.funil-modal-body strong { color: #111827; font-weight: 800; }

.funil-modal-body h3 {
  margin: 20px 0 8px;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
  color: #1f2937;
}

.funil-modal-body h3:first-of-type { margin-top: 16px; }

.funil-list {
  margin: 0 0 8px;
  padding: 0;
  list-style: none;
}

.funil-list li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 9px;
}

.funil-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #00b968;
}

.funil-steps {
  margin: 0 0 14px;
  padding-left: 20px;
}

.funil-steps li { margin-bottom: 8px; }

.funil-modal-text { color: #4b5563; }
.funil-modal-note {
  font-size: 11px;
  color: #8a909c;
  background: #f6f8f9;
  border-radius: 12px;
  padding: 10px 12px;
}

.funil-regulation-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 14px;
  border-radius: 12px;
  background: #effcf5;
  color: #076644;
  font-size: 11px;
  font-weight: 700;
}

.funil-regulation-head strong { font-weight: 900; color: #054d33; }

.funil-regulation-box {
  background: #f6f7f8;
  border: 1px solid #e6e9ed;
  border-radius: 14px;
  padding: 12px 14px;
  margin: 10px 0 14px;
}

.funil-regulation-box p { margin: 0 0 4px; }
.funil-regulation-box p:first-child { margin-top: 0; }

.funil-regulation-note {
  background: #e8fff2;
  color: #087044;
  border: 1px solid #c9f7df;
  border-radius: 14px;
  padding: 10px 12px;
  font-size: 12px;
  font-weight: 700;
}

@keyframes funil-fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes funil-fade-out { to { opacity: 0; } }
@keyframes funil-slide-up { from { transform: translateY(28px); opacity: .6; } to { transform: translateY(0); opacity: 1; } }

/* ---------------------------------------------------------------------
   Botões auxiliares
   --------------------------------------------------------------------- */
.funil-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 18px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform .15s ease, background .15s ease, opacity .15s ease;
}

.funil-btn:active { transform: scale(.98); }
.funil-btn-primary { background: #00b968; color: #fff; box-shadow: 0 8px 18px rgba(0, 185, 104, .22); }
.funil-btn-primary:hover { background: #00a85f; }
.funil-btn-ghost { background: #fff; color: #3f4754; border-color: #d9dde4; }
.funil-btn-ghost:hover { background: #f4f6f8; }

/* ---------------------------------------------------------------------
   Página da campanha
   --------------------------------------------------------------------- */
.package-choice-button.is-selected {
  border-color: #00b968 !important;
  background: #f1fff7 !important;
  box-shadow: 0 10px 22px rgba(0, 185, 104, .18);
}

.funil-desc-box {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-top: 16px;
  padding: 16px;
  border: 1px solid #c9f7df;
  border-radius: 18px;
  background: #f3fff8;
  animation: funil-fade-in .18s ease-out;
}

.funil-desc-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 12px;
  background: #00b968;
  color: #fff;
}

.funil-desc-title {
  margin: 0;
  font-size: 13px;
  font-weight: 900;
  color: #1f2937;
}

.funil-desc-text {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.6;
  color: #4b5563;
}

.funil-rotated { transform: rotate(180deg); }

.funil-prize-tab {
  cursor: pointer;
  border: 1px solid #e5e7eb !important;
  background: #f9fafb !important;
  color: #4b5563 !important;
}

.funil-prize-tab.funil-tab-active {
  border-color: #059669 !important;
  background: #e0f8e9 !important;
  color: #076442 !important;
}

.funil-empty {
  margin: 4px 0 0;
  padding: 18px 12px;
  text-align: center;
  font-size: 11px;
  line-height: 1.6;
  color: #6b7280;
  background: #f8faf9;
  border: 1px dashed #d7e3dc;
  border-radius: 14px;
}

/* ---------------------------------------------------------------------
   Minhas compras / Minha conta
   --------------------------------------------------------------------- */
#funil-pedido { padding: 0 20px 4px; scroll-margin-top: 92px; }

.funil-pending {
  position: relative;
  overflow: hidden;
  border: 1px solid #c9f1dc;
  border-radius: 20px;
  background: linear-gradient(135deg, #f4fff9 0%, #e9fff2 100%);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: 0 10px 26px rgba(0, 185, 104, .10);
}

.funil-pending-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.funil-pending-eyebrow {
  margin: 0;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #008b50;
}

.funil-pending-title {
  margin: 2px 0 0;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: -.03em;
  color: #054d33;
}

.funil-pending-text {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: #4b5563;
}

.funil-pending-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.funil-pending-actions .funil-btn { flex: 1 1 150px; }

.funil-error {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-radius: 12px;
  background: #fff1f0;
  border: 1px solid #fdc9c5;
  color: #b42318;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.5;
}

#funil-resultado { padding: 4px 20px 28px; scroll-margin-top: 92px; }
#funil-resultado:empty { padding: 0; }

.funil-results { margin-top: 4px; }

.funil-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border-radius: 18px;
  background: #eafff3;
  box-shadow: inset 0 0 0 1px #c9f5dd;
}

.funil-summary > div {
  background: #fff;
  border-radius: 12px;
  padding: 10px 6px;
  text-align: center;
}

.funil-summary span {
  display: block;
  font-size: 8px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #9aa1ad;
}

.funil-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 16px;
  font-weight: 900;
  color: #111827;
}

.funil-order-list { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }

.funil-order {
  border: 1px solid #e5e8ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(15, 23, 42, .04);
  overflow: hidden;
}

.funil-order-main { display: flex; gap: 12px; padding: 12px; }

.funil-order-thumb {
  width: 64px;
  height: 64px;
  flex-shrink: 0;
  border-radius: 14px;
  overflow: hidden;
  background: #f1f3f5;
}

.funil-order-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

.funil-order-info { min-width: 0; flex: 1; }

.funil-order-ref {
  margin: 0;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: #9aa1ad;
}

.funil-order-title {
  margin: 3px 0 0;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.35;
  color: #111827;
}

.funil-order-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin-top: 7px;
  font-size: 10px;
  color: #6b7280;
}

.funil-order-meta strong { font-size: 12px; font-weight: 900; color: #008f52; }

.funil-chip {
  display: inline-flex;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 900;
  line-height: 1;
  white-space: nowrap;
}

.funil-chip-pending { background: #fff4e5; color: #9a5b00; border: 1px solid #ffd7a1; }
.funil-chip-paid { background: #e8fff2; color: #087044; border: 1px solid #c9f7df; }

.funil-results-note {
  margin: 14px 0 0;
  font-size: 10px;
  line-height: 1.6;
  color: #8a909c;
  text-align: center;
}

.funil-results .funil-btn { width: 100%; margin-top: 10px; }

.funil-empty-card {
  margin-top: 14px;
  padding: 24px 18px;
  text-align: center;
  border: 1px dashed #d7dde4;
  border-radius: 18px;
  background: #fbfcfd;
}

.funil-empty-title { margin: 0; font-size: 14px; font-weight: 900; color: #374151; }
.funil-empty-text { margin: 6px 0 0; font-size: 11px; line-height: 1.6; color: #6b7280; }
.funil-empty-card .funil-btn {
  display: flex;
  width: 100%;
  margin-top: 10px;
}


.funil-terms {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin-top: 14px;
  font-size: 11px;
  line-height: 1.55;
  color: #6b7280;
}

.funil-terms input {
  width: 16px;
  height: 16px;
  margin-top: 1px;
  flex-shrink: 0;
  accent-color: #00b968;
}

.funil-terms a {
  color: #00854d;
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.funil-switch-link {
  display: block;
  margin-top: 12px;
  text-align: center;
  font-size: 11px;
  font-weight: 800;
  color: #00854d;
  text-decoration: none;
}

.funil-switch-link:hover { text-decoration: underline; }

.funil-success {
  margin-top: 14px;
  padding: 22px 18px;
  border: 1px solid #c9f1dc;
  border-radius: 20px;
  background: linear-gradient(135deg, #f4fff9 0%, #e9fff2 100%);
  text-align: center;
  box-shadow: 0 10px 26px rgba(0, 185, 104, .10);
}

.funil-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #00b968;
  color: #fff;
}

.funil-success-title {
  margin: 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.02em;
  color: #054d33;
}

.funil-success-text {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.6;
  color: #4b5563;
}

.funil-success .funil-btn { width: 100%; margin-top: 14px; }

.funil-tickets {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #eef1f3;
}

.funil-tickets summary {
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
  color: #00854d;
  list-style: none;
}

.funil-tickets summary::-webkit-details-marker { display: none; }
.funil-tickets summary::before { content: '▸'; font-size: 10px; }
.funil-tickets[open] summary::before { content: '▾'; }

.funil-ticket-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  margin-top: 8px;
  max-height: 320px;
  overflow-y: auto;
  padding-right: 4px;
}

.funil-ticket {
  padding: 6px 4px;
  border: 1px solid #e6e9ed;
  border-radius: 8px;
  background: #f6f7f8;
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 11px;
  font-weight: 800;
  color: #374151;
  font-variant-numeric: tabular-nums;
}


/* ---------------------------------------------------------------------
   PIX (API PHP)
   --------------------------------------------------------------------- */
.funil-mt-4 { margin-top: 16px; }

.funil-label {
  display: block;
  margin: 0;
  font-size: 11px;
  font-weight: 800;
  color: #4b5563;
}

.funil-input {
  width: 100%;
  height: 50px;
  margin-top: 8px;
  padding: 0 14px;
  border: 1px solid #d1d5db;
  border-radius: 12px;
  background: #fff;
  color: #1f2937;
  font-size: 14px;
  font-weight: 600;
  outline: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}

.funil-input:focus {
  border-color: #00b968;
  box-shadow: 0 0 0 4px rgba(0, 185, 104, .10);
}

.funil-order-actions {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eef1f3;
}

.funil-pay-btn {
  width: 100%;
  min-height: 42px;
}

.funil-pix-modal { max-width: 480px; }
.funil-pix-body { padding: 20px 18px 22px; }

.funil-pix-intro {
  margin: 0 0 16px;
  font-size: 12px;
  line-height: 1.6;
  color: #4b5563;
}

.funil-pix-primary { width: 100%; margin-top: 10px; }

.funil-pix-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 36px 10px;
  color: #4b5563;
  font-size: 12px;
  font-weight: 700;
}

.funil-spinner {
  width: 30px;
  height: 30px;
  border: 3px solid #d8efe2;
  border-top-color: #00b968;
  border-radius: 999px;
  animation: funil-spin .8s linear infinite;
}

@keyframes funil-spin { to { transform: rotate(360deg); } }

.funil-pix-summary { text-align: center; }

.funil-pix-eyebrow {
  margin: 0;
  font-size: 9px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .12em;
  color: #8a909c;
}

.funil-pix-amount {
  margin: 4px 0 0;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.03em;
  color: #054d33;
}

.funil-pix-hint {
  margin: 6px 0 0;
  font-size: 11px;
  line-height: 1.5;
  color: #6b7280;
}

.funil-pix-qr {
  display: flex;
  justify-content: center;
  margin: 16px auto 6px;
  padding: 10px;
  width: 216px;
  height: 216px;
  border: 1px solid #e5e8ec;
  border-radius: 18px;
  background: #fff;
}

.funil-pix-qr img, .funil-pix-qr canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
.funil-pix-qr img { image-rendering: pixelated; }
.funil-pix-qr-fail { display: flex; align-items: center; justify-content: center; width: 100%; padding: 10px; text-align: center; font-size: 11px; color: #6b7280; }

.funil-pix-codebox {
  margin-top: 12px;
  padding: 12px;
  border: 1px dashed #cfe3d7;
  border-radius: 14px;
  background: #f8fdfa;
}

.funil-pix-codebox code {
  display: block;
  max-height: 84px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 10px;
  line-height: 1.5;
  color: #374151;
  word-break: break-all;
}

.funil-pix-copy { width: 100%; min-height: 38px; margin-top: 8px; }

.funil-pix-expiry {
  margin: 12px 0 0;
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  color: #8a909c;
}

.funil-pix-expired { color: #b42318; }

.funil-pix-actions {
  display: flex;
  gap: 8px;
  margin-top: 14px;
}

.funil-pix-actions .funil-btn { flex: 1; margin-top: 0; }

.funil-pix-status {
  margin: 12px 0 0;
  text-align: center;
  font-size: 10px;
  color: #8a909c;
}

.funil-pix-error {
  text-align: center;
  padding: 10px 4px;
}

.funil-pix-error p {
  margin: 0 0 14px;
  font-size: 12px;
  line-height: 1.6;
  color: #b42318;
}

.funil-pix-paid { text-align: center; padding: 6px 0; }
.funil-pix-paid .funil-success-icon { margin-bottom: 10px; }

.funil-chip-canceled {
  background: #fff1f0;
  color: #b42318;
  border: 1px solid #fdc9c5;
}

/* ---------------------------------------------------------------------
   Destaque ao chegar por link direto (#slug) em Ganhadores
   --------------------------------------------------------------------- */
article:target,
.closed-campaign-link:target {
  scroll-margin-top: 135px;
  outline: 3px solid #00b968;
  outline-offset: 3px;
  border-radius: 18px;
  animation: funil-target 1.4s ease-out;
}

@keyframes funil-target {
  0% { box-shadow: 0 0 0 10px rgba(0, 185, 104, .25); }
  100% { box-shadow: 0 0 0 0 rgba(0, 185, 104, 0); }
}


/* ---------------------------------------------------------------------
   Carrossel de ganhadores com rolagem contínua
   --------------------------------------------------------------------- */
.funil-marquee-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.funil-marquee-actions a { white-space: nowrap; }

.funil-marquee-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border: 1px solid #dfe5e9;
  border-radius: 999px;
  background: #fff;
  color: #5e6471;
  cursor: pointer;
  transition: background .15s ease, color .15s ease, transform .15s ease;
  -webkit-tap-highlight-color: transparent;
}

.funil-marquee-toggle:hover { background: #f1f8f4; color: #00854d; }
.funil-marquee-toggle:active { transform: scale(.94); }
.funil-marquee-toggle:focus-visible { outline: 2px solid #00b968; outline-offset: 2px; }
.funil-marquee-toggle svg { display: block; }

[data-marquee="winners"]:focus-visible {
  outline: 2px solid #00b968;
  outline-offset: 4px;
  border-radius: 16px;
}

@media (max-width: 639px) {
  /* no celular o cabeçalho precisa da largura toda para o título não quebrar;
     a rolagem continua pausando ao toque, ao foco e com a barra de espaço */
  .funil-marquee-toggle { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  .funil-marquee-toggle { display: none; }
}

/* ---------------------------------------------------------------------
   Ajustes de toque
   --------------------------------------------------------------------- */
.funil-btn, .funil-modal-close, .package-choice-button { -webkit-tap-highlight-color: transparent; }

@media (min-width: 640px) {
  .funil-modal-overlay { align-items: center; padding: 24px; }
  .funil-modal { border-radius: 22px; }
  #funil-pedido { padding: 0 24px 4px; }
  #funil-resultado { padding: 4px 24px 32px; }
}

/* ---------------------------------------------------------------------
   Prêmio iPhone 18 Pro Max
   --------------------------------------------------------------------- */
.funil-prize-upsell {
  padding: 0 20px;
  background: linear-gradient(180deg, #f7fdf9 0%, #ffffff 100%);
  border-top: 1px solid #d9f2e4;
  border-bottom: 1px solid #e6f5ec;
}
.funil-prize-upsell-inner {
  display: flex;
  gap: 13px;
  padding: 16px 0;
}
.funil-prize-upsell-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 15px;
  background: #062f35;
  color: #a8f5cd;
}
.funil-prize-upsell-copy { min-width: 0; }
.funil-prize-upsell-badge {
  display: inline-block;
  padding: 3px 8px;
  border-radius: 999px;
  background: #d9fbe7;
  color: #087847;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.funil-prize-upsell-copy h2 {
  margin: 4px 0 0;
  font-size: 18px;
  font-weight: 900;
  letter-spacing: -.03em;
  color: #062f35;
}
.funil-prize-upsell-copy p {
  margin: 3px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: #52606d;
}
.funil-prize-upsell-copy p strong { color: #087847; }
.funil-prize-upsell-links {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 7px;
}
.funil-prize-upsell-links a {
  font-size: 10px;
  font-weight: 800;
  color: #087847;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.funil-prize-card {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 11px;
  border: 1px solid #c9f1dc;
  border-radius: 13px;
  background: linear-gradient(135deg, #f4fff9 0%, #eafff2 100%);
}
.funil-prize-card.is-paid {
  border-color: #bdebd3;
  background: #f0fff7;
}
.funil-prize-card.is-canceled {
  border-color: #e5e7eb;
  background: #f8f9fa;
}
.funil-prize-card-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: #062f35;
  color: #a8f5cd;
}
.funil-prize-card-copy { min-width: 0; flex: 1; }
.funil-prize-card-eyebrow {
  margin: 0;
  font-size: 8px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #087847;
}
.funil-prize-card-copy strong {
  display: block;
  font-size: 12px;
  font-weight: 900;
  color: #062f35;
}
.funil-prize-card-copy small {
  display: block;
  margin-top: 1px;
  font-size: 9px;
  line-height: 1.35;
  color: #657083;
}
.funil-prize-card-cta {
  flex-shrink: 0;
  padding: 7px 10px;
  border-radius: 999px;
  background: #00b968;
  color: #fff;
  font-size: 9px;
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

/* Página do prêmio */
.premio-hero {
  padding: 24px 20px 20px;
  background: linear-gradient(145deg, #062f35 0%, #0b4a47 60%, #0d5b4c 100%);
  color: #fff;
}
.premio-hero .premio-eyebrow { color: #a8f5cd; }
.premio-hero h1 {
  margin: 4px 0 0;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.045em;
  line-height: 1.05;
}
.premio-hero p {
  margin: 9px 0 0;
  max-width: 560px;
  font-size: 12px;
  line-height: 1.55;
  color: rgba(255,255,255,.8);
}
.premio-hero p strong { color: #fff; }
.premio-hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}
.premio-hero-pills span {
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.18);
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  color: rgba(255,255,255,.82);
}
.premio-eyebrow {
  margin: 0;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: #087847;
}
.premio-app { padding: 16px 16px 4px; }
.premio-panel {
  padding: 18px;
  border: 1px solid #e3e8ec;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 26px rgba(15,23,42,.05);
}
.premio-panel + .premio-panel { margin-top: 12px; }
.premio-panel-title {
  margin: 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.03em;
  color: #062f35;
}
.premio-panel-intro {
  margin: 6px 0 16px;
  font-size: 12px;
  line-height: 1.55;
  color: #657083;
}
.premio-panel-head {
  display: flex;
  align-items: center;
  gap: 11px;
  margin-bottom: 10px;
}
.premio-panel-head h2 {
  margin: 1px 0 0;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.03em;
  color: #062f35;
}
.premio-gift {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: #062f35;
  color: #a8f5cd;
}
.premio-number {
  margin: 8px 0 0;
  font-size: 11px;
  color: #657083;
}
.premio-number strong {
  display: inline-block;
  margin-left: 5px;
  color: #087847;
  font-size: 15px;
  letter-spacing: .08em;
}
.premio-verify {
  margin-top: 12px;
  padding: 11px 13px;
  border: 1px dashed #c9e9d8;
  border-radius: 13px;
  background: #f7fcf9;
}
.premio-verify strong {
  display: block;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: #087847;
}
.premio-verify p {
  margin: 4px 0 0;
  font-size: 10px;
  line-height: 1.5;
  color: #52606d;
}
.premio-section-title {
  margin: 20px 0 0;
  padding-top: 14px;
  border-top: 1px solid #eef1f3;
  font-size: 13px;
  font-weight: 900;
  color: #062f35;
}
.premio-grid-2 {
  display: grid;
  grid-template-columns: minmax(0, 1.8fr) minmax(0, .8fr);
  gap: 10px;
}
.premio-uf { max-width: 90px; text-transform: uppercase; }
.premio-shipping { display: grid; gap: 7px; margin-top: 10px; }
.premio-shipping-option {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border: 1px solid #dfe5ea;
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.premio-shipping-option.is-selected {
  border-color: #00b968;
  background: #f2fff8;
  box-shadow: 0 0 0 3px rgba(0,185,104,.07);
}
.premio-shipping-option input { accent-color: #00b968; }
.premio-shipping-copy { min-width: 0; flex: 1; }
.premio-shipping-copy strong { display: block; font-size: 11px; color: #062f35; }
.premio-shipping-copy small { display: block; margin-top: 1px; font-size: 9px; color: #8a909c; }
.premio-shipping-price { font-size: 12px; font-weight: 900; color: #087847; white-space: nowrap; }
.premio-consent {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  font-size: 10px;
  line-height: 1.5;
  color: #52606d;
}
.premio-consent input { margin-top: 2px; accent-color: #00b968; }
.premio-consent a { color: #087847; font-weight: 800; text-decoration: underline; text-underline-offset: 2px; }
.premio-primary { width: 100%; margin-top: 12px; }
.premio-form-error {
  margin: 10px 0 0;
  padding: 9px 11px;
  border: 1px solid #fdc9c5;
  border-radius: 10px;
  background: #fff1f0;
  font-size: 10px;
  line-height: 1.5;
  color: #b42318;
}
.premio-hint {
  margin: 12px 0 0;
  font-size: 9px;
  line-height: 1.5;
  color: #8a909c;
  text-align: center;
}
.premio-loading {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 34px 16px;
  color: #657083;
  font-size: 11px;
  font-weight: 700;
}
.premio-error, .premio-ineligible, .premio-success { text-align: center; }
.premio-error p, .premio-ineligible p, .premio-success p {
  margin: 0 0 12px;
  font-size: 12px;
  line-height: 1.6;
  color: #52606d;
}
.premio-ineligible h2, .premio-success h2 {
  margin: 0 0 6px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.03em;
  color: #062f35;
}
.premio-status-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #fff4e5;
  color: #9a5b00;
  font-size: 22px;
  font-weight: 900;
}
.premio-shipping-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: #f7fcf9;
  font-size: 10px;
  color: #52606d;
}
.premio-shipping-summary strong { font-size: 15px; color: #087847; }
.premio-qr {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 208px;
  height: 208px;
  margin: 14px auto 6px;
  padding: 8px;
  border: 1px solid #e5e8ec;
  border-radius: 18px;
  background: #fff;
}
.premio-qr img, .premio-qr canvas { width: 100%; height: 100%; object-fit: contain; display: block; }
.premio-codebox {
  margin-top: 10px;
  padding: 10px;
  border: 1px dashed #cfe3d7;
  border-radius: 12px;
  background: #f8fdfa;
}
.premio-codebox code {
  display: block;
  max-height: 70px;
  overflow: auto;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 9px;
  line-height: 1.45;
  color: #374151;
  word-break: break-all;
}
.premio-copy { width: 100%; min-height: 34px; margin-top: 7px; }
.premio-expiry {
  margin: 10px 0 0;
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  color: #8a909c;
}
.premio-expired { color: #b42318; }
.premio-status {
  margin: 8px 0 0;
  text-align: center;
  font-size: 9px;
  color: #8a909c;
}
.premio-actions { display: flex; gap: 8px; margin-top: 12px; }
.premio-actions .funil-btn { flex: 1; margin-top: 0; }
.premio-success-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  margin: 0 auto 10px;
  border-radius: 999px;
  background: #e8fff2;
  color: #087847;
}
.premio-success-summary {
  margin: 12px 0 14px;
  padding: 12px;
  border-radius: 12px;
  background: #f7fcf9;
  text-align: left;
}
.premio-success-summary p { margin: 0 0 4px; font-size: 11px; color: #52606d; }
.premio-success-summary p:last-child { margin-bottom: 0; }
.premio-footer {
  padding: 16px 20px 28px;
  text-align: center;
  font-size: 9px;
  line-height: 1.6;
  color: #8a909c;
}
.premio-footer a { color: #087847; text-decoration: underline; text-underline-offset: 2px; }
.premio-footer p + p { margin-top: 4px; }
.premio-legal {
  padding: 24px 20px 8px;
  max-width: 680px;
  margin: 0 auto;
}
.premio-legal h1 {
  margin: 4px 0 0;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.04em;
  color: #062f35;
}
.premio-legal h2 {
  margin: 22px 0 0;
  font-size: 14px;
  font-weight: 900;
  color: #062f35;
}
.premio-legal p, .premio-legal li {
  font-size: 12px;
  line-height: 1.65;
  color: #52606d;
}
.premio-legal p { margin: 8px 0 0; }
.premio-legal ul { margin: 8px 0 0; padding-left: 18px; }
.premio-legal li { margin-bottom: 4px; }
.premio-legal a { color: #087847; font-weight: 700; text-decoration: underline; text-underline-offset: 2px; }
.premio-legal-updated { margin-top: 6px !important; font-size: 9px !important; color: #8a909c !important; }
.premio-legal-note {
  margin-top: 22px !important;
  padding: 10px 12px;
  border: 1px dashed #e5c98a;
  border-radius: 10px;
  background: #fffbeb;
  font-size: 10px !important;
  color: #92400e !important;
}

@media (max-width: 460px) {
  .premio-hero h1 { font-size: 26px; }
  .premio-grid-2 { grid-template-columns: 1fr; gap: 0; }
  .premio-uf { max-width: none; }
  .funil-prize-card {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    align-items: center;
  }
  .funil-prize-card-copy { grid-column: 2; }
  .funil-prize-card-cta {
    grid-column: 1 / -1;
    margin-left: 0;
    text-align: center;
  }
}

/* Foto do produto no upsell/prêmio */
.funil-prize-upsell-photo {
  width: 66px;
  height: 66px;
  flex-shrink: 0;
  object-fit: contain;
  border: 1px solid #c9e9d8;
  border-radius: 14px;
  background: #fff;
}
.funil-prize-card-photo {
  width: 44px;
  height: 44px;
  flex-shrink: 0;
  object-fit: contain;
  border-radius: 10px;
  background: #fff;
}
.premio-hero-grid {
  display: flex;
  align-items: center;
  gap: 16px;
}
.premio-hero-copy { flex: 1; min-width: 0; }
.premio-hero-photo {
  width: 120px;
  height: 120px;
  flex-shrink: 0;
  object-fit: contain;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(0,0,0,.22);
}
@media (max-width: 460px) {
  .premio-hero-grid { align-items: flex-start; gap: 12px; }
  .premio-hero-photo { width: 100px; height: 100px; border-radius: 14px; }
}

/* CEP + frete sem PIX */
.premio-shipping-section {
  margin-top: 10px;
  padding: 12px;
  border: 1px solid #e3e8ec;
  border-radius: 13px;
  background: #f8fafb;
}
.premio-shipping-section.is-locked { background: #fbfcfd; border-style: dashed; }
.premio-shipping-lock {
  margin: 0;
  font-size: 10px;
  line-height: 1.5;
  color: #657083;
  text-align: center;
}
.premio-shipping-section .premio-shipping { margin-top: 0; }
.premio-cep-status {
  margin: 5px 0 0;
  font-size: 9px;
  line-height: 1.4;
  color: #8a909c;
}
.premio-cep-status.is-loading { color: #657083; }
.premio-cep-status.is-ok { color: #087847; font-weight: 700; }
.premio-cep-status.is-error { color: #b42318; font-weight: 700; }
.premio-panel-photo {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  object-fit: contain;
  border: 1px solid #e3e8ec;
  border-radius: 12px;
  background: #fff;
}
