:root {
  --bg: #f0f2f5;
  --text: #111827;
  --muted: #65676b;
  --line: #e4e6eb;
  --blue: #1877f2;
  --green: #16a34a;
  --red: #dc2626;
  --shadow: 0 3px 12px rgba(15, 23, 42, .12);
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.35;
}
button, input, select { font: inherit; }
button { cursor: pointer; }
.hidden { display: none !important; }
.mobile-only { display: none; }

.page-shell {
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 0 16px 42px;
}

.brand-strip {
  height: 56px;
  display: grid;
  grid-template-columns: 150px 180px 1fr;
  align-items: center;
  gap: 22px;
  border-bottom: 1px solid #dddfe2;
}
.fb-logo { width: 140px; height: auto; display: block; }
.mini-badge { width: 104px; height: auto; }

.live-grid {
  display: grid;
  grid-template-columns: minmax(340px, 440px) minmax(360px, 580px);
  justify-content: center;
  gap: 34px;
}
.main-title,
.mobile-title {
  margin: 0 0 14px;
  font-family: "Arial Narrow", "Roboto Condensed", Arial, sans-serif;
  font-size: clamp(26px, 2.6vw, 38px);
  font-weight: 800;
  text-align: center;
  line-height: 1.08;
  letter-spacing: 0;
}
.main-title span,
.mobile-title span { color: #f33; }

.video-card {
  position: relative;
  width: min(400px, 100%);
  aspect-ratio: 3 / 4;
  margin: 0 auto;
  overflow: hidden;
  border-radius: 8px;
  background: #000;
  box-shadow: 0 4px 15px rgba(0,0,0,.3);
}
.vsl-player {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  background: #000;
}
.video-overlay,
.pause-overlay {
  position: absolute;
  inset: 0;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  color: white;
  border: 0;
  background: rgba(0, 0, 0, .65);
  text-align: center;
  text-shadow: 2px 2px 4px rgba(0,0,0,.8);
}
.pause-overlay { display: none; z-index: 4; }
.sound-icon {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: rgba(220, 38, 38, .92);
  box-shadow: 0 0 20px rgba(220,38,38,.5);
  font-size: 35px;
  padding-left: 5px;
  animation: pulse 1.45s infinite;
}
.sound-icon.secondary {
  background: rgba(255,255,255,.2);
  backdrop-filter: blur(4px);
  animation: none;
}
.video-overlay strong,
.pause-overlay strong { font-size: 21px; }
.video-overlay small,
.pause-overlay small {
  display: inline-block;
  padding: 5px 13px;
  border-radius: 999px;
  background: rgba(0,0,0,.5);
  font-size: 15px;
}
.pause-overlay small { background: rgba(220,38,38,.8); }
@keyframes pulse {
  0%,100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

.chat-column { min-width: 0; }
.live-meta {
  display: flex;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    flex-direction: column;
    flex-wrap: nowrap;
    align-content: center;
    justify-content: center;
}
.live-meta img { max-width: 75%; height: auto; justify-self: center; }
.live-meta .meta-logo { width: 140px; }

.host-row {
  min-height: 78px;
  display: grid;
  grid-template-columns: 54px 1fr 50px;
  align-items: center;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px 8px 0 0;
  padding: 9px 12px;
}
.host-row > img:first-child {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 50%;
}
.host-row strong { display: block; font-size: 17px; color: #050505; }
.host-row span { color: var(--muted); font-size: 14px; }
.host-action { width: 42px; justify-self: end; }
.viewer-count {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 14px;
  background: #fff;
  border-left: 1px solid var(--line);
  border-right: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  margin-top: 10px;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #31a24c;
}

.chat-box {
  position: relative;
  display: grid;
  grid-template-rows: 44px minmax(0, 1fr) auto;
  height: 600px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0 0 8px 8px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.chat-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
  border-bottom: 1px solid var(--line);
}
#chat-options-btn {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: #f2f3f5;
  font-size: 22px;
  line-height: 1;
}
.chat-profile {
  position: absolute;
  top: 40px;
  right: 10px;
  z-index: 8;
  display: none;
  width: 252px;
  padding: 13px;
  background: #fff;
  border: 1px solid #ccd0d5;
  border-radius: 8px;
  box-shadow: var(--shadow);
}
.chat-profile.open { display: block; }
.chat-profile label {
  display: block;
  margin: 5px 0;
  font-size: 12px;
  color: var(--muted);
}
.chat-profile input,
.chat-profile button {
  width: 100%;
  min-height: 34px;
  margin-bottom: 8px;
}
.chat-profile button {
  color: #fff;
  border: 0;
  border-radius: 4px;
  background: #2563eb;
  font-weight: 700;
}
.chat-feed {
  overflow: hidden;
  padding: 10px 12px 4px;
}
.comment {
  display: grid;
  grid-template-columns: 32px 1fr;
  gap: 8px;
  margin-bottom: 9px;
}
.comment-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: #fff;
  background: #8b5cf6;
  font-size: 12px;
  font-weight: 800;
}
.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.comment-bubble {
  max-width: 100%;
  padding: 7px 10px;
  background: #f0f2f5;
  border-radius: 14px;
  color: #050505;
  font-size: 14px;
}
.comment-bubble strong {
  display: block;
  margin-bottom: 2px;
  color: #385898;
  font-size: 13px;
}
.chat-input {
  display: grid;
  grid-template-columns: 1fr 72px;
  gap: 8px;
  min-height: 58px;
  padding: 8px;
  border-top: 1px solid var(--line);
}
.chat-input input {
  border: 1px solid #ccd0d5;
  border-radius: 999px;
  padding: 0 13px;
  outline: none;
}
.chat-input button {
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: #111;
  font-weight: 700;
}
.chat-pause {
  position: absolute;
  inset: 44px 0 48px;
  z-index: 6;
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  color: #fff;
  background: rgba(0,0,0,.76);
  text-align: center;
  font-weight: 800;
}
.chat-pause.show { display: flex; }

.cta-card {
  width: min(420px, 100%);
  padding: 0 18px 18px;
  background: #fff;
  border: 1px solid #d9dde3;
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
  text-align: center;
}
.cta-card h2 {
  margin: 18px 0 4px;
  font-size: 22px;
}
.cta-link {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 14px;
  text-decoration: none;
}
.checkout-page {
  min-height: 100vh;
  background: var(--bg);
}
.checkout-page-shell {
  width: min(480px, 100%);
  min-height: 100vh;
  margin: 0 auto;
  padding: 18px 12px 42px;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}
.checkout-page .checkout-section {
  display: flex;
  width: 100%;
  padding-top: 0;
}
.checkout-page .checkout-card {
  margin: 0 auto;
}
.checkout-section {
  display: none;
  justify-content: center;
  padding: 18px 0 0;
}
.checkout-section.revealed { display: flex; }
.checkout-card {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #d9dde3;
  border-radius: 10px;
  box-shadow: var(--shadow);
  overflow: hidden;
}
.timer-banner {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  padding: 11px 14px;
  color: #7f1d1d;
  background: #fee2e2;
  border-bottom: 1px solid #fecaca;
  font-size: 14px;
}
.checkout-card h2 {
  margin: 18px 18px 4px;
  font-size: 22px;
  text-align: center;
}
.checkout-subtitle {
  margin: 0 18px 14px;
  color: #4b5563;
  text-align: center;
  font-size: 14px;
}
#checkout-form { padding: 0 18px 18px; }
.payment-methods {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.method-btn {
  min-height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  color: #374151;
  font-weight: 800;
}
.method-btn.active {
  color: #fff;
  border-color: var(--green);
  background: var(--green);
}
.info-box {
  padding: 12px;
  margin-bottom: 14px;
  color: #4b5563;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  font-size: 14px;
}
.info-box strong { display: block; color: #111827; margin-bottom: 4px; }
label {
  display: block;
  margin: 10px 0 5px;
  color: #374151;
  font-weight: 700;
  font-size: 13px;
}
input, select {
  width: 100%;
  min-height: 44px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 12px;
  background: #fff;
  outline: none;
}
input:focus,
select:focus { border-color: var(--blue); box-shadow: 0 0 0 3px rgba(24,119,242,.12); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.price-box {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e5e7eb;
}
.price-box strong {
  display: block;
  font-size: 29px;
  line-height: 1;
}
.price-box span {
  display: block;
  margin-top: 4px;
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}
.error-msg {
  margin: 13px 0;
  padding: 10px;
  color: #991b1b;
  background: #fee2e2;
  border: 1px solid #fecaca;
  border-radius: 8px;
  font-size: 14px;
}
.btn-buy,
.btn-copy {
  width: 100%;
  min-height: 52px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: var(--green);
  font-size: 16px;
  font-weight: 900;
  box-shadow: 0 4px 6px rgba(22,163,74,.32);
}
.btn-buy:disabled { opacity: .65; cursor: wait; }
.guarantee {
  margin: 13px 0 0;
  color: #4b5563;
  text-align: center;
  font-size: 12px;
}
.guarantee strong { color: var(--green); }
.loading {
  margin-top: 13px;
  padding: 11px;
  color: #374151;
  background: #f3f4f6;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
}
.pix-area { padding: 18px; }
.back-btn {
  border: 0;
  color: #4b5563;
  background: transparent;
  font-size: 14px;
  font-weight: 800;
}
.pix-area h2 { margin-top: 10px; }
.pix-timer-row {
  margin: 10px 0;
  padding: 10px;
  color: #7f1d1d;
  background: #fee2e2;
  border-radius: 8px;
  text-align: center;
}
.pix-qr {
  width: 250px;
  height: 250px;
  display: block;
  margin: 12px auto;
  border: 8px solid #fff;
  box-shadow: 0 0 0 1px #e5e7eb;
}
.pix-code {
  height: 70px;
  padding: 10px;
  resize: none;
  font-size: 12px;
}
.btn-copy { margin-top: 10px; }
.steps {
  margin-top: 14px;
  padding: 12px;
  background: #f9fafb;
  border-radius: 8px;
  font-size: 14px;
}
.steps p {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 7px;
  margin: 10px 0 0;
}
.steps span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: var(--green);
  font-weight: 900;
}
.pay-note,
.secure-footer {
  color: #4b5563;
  text-align: center;
  font-size: 13px;
}
.secure-footer {
  padding: 14px 18px 18px;
  border-top: 1px solid #e5e7eb;
}

.mobile-shell { display: none; }

@media (max-width: 768px) {
  .desktop-only { display: none !important; }
  .mobile-only { display: block; }
  .page-shell {
    padding: 0 10px 36px;
     background: #ffff;
  }
  .mobile-shell {
    display: block;
    margin: 0 auto;
    padding: 0 10px;
    background: #ffff;
  }
  .mobile-topbar {
    position: relative;
    display: grid;
    grid-template-columns: 1fr 100px 6fr;
    align-items: center;
    margin: 0 -10px 8px;
    padding: 10px 12px;
    background-color: #f0f2f5;
    border-bottom: 1px solid #e0e0e0;
  }
  .mobile-avatar {
    width: 50px;
    justify-self: start;
    border-radius: 10px;
  }
  .mobile-live-count {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    font-size: 13px;
    font-weight: 800;
    justify-content: center;
  }
  .mobile-live-count img {
    width: 20px;
    height: 20px;
    object-fit: contain;
  }
  .mobile-host {
    width: 58px;
    height: 58px;
    justify-self: end;
    object-fit: cover;
    border-radius: 50%;
  }
  .mobile-title {
    font-size: 23px;
    margin: 8px 0 12px;
  }
  .video-card {
    max-width: 400px;
    border-radius: 8px;
  }
  .live-grid {
    display: block;
  }
  
  .live-meta .meta-logo { width: 92px; }
  .host-row { border-radius: 8px 8px 0 0; }
  .chat-box {
    height: 500px;
  }
  .checkout-section {
    padding-top: 14px;
  }
}
/* CTAs are hidden until the VSL reaches the reveal point or ?show_cta=1 is used. */
.checkout-section[data-delayed-cta] {
  display: none;
}
.checkout-section[data-delayed-cta].revealed {
  display: flex;
}

.checkout-page .section-title {
  margin: 0 0 16px;
  padding: 12px;
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
  border-radius: 8px;
  text-align: center;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
}
.checkout-page .method-btn {
  position: relative;
  display: flex;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  gap: 3px;
  flex-direction: column;
  padding: 7px 6px;
  line-height: 1.05;
}
.checkout-page .method-btn .icon {
  display: block;
  font-size: 18px;
  line-height: 1;
}
.checkout-page .discount-badge {
  position: absolute;
  top: -10px;
  right: 5px;
  max-width: calc(100% - 10px);
  padding: 2px 6px;
  color: #166534;
  background: #dcfce7;
  border: 1px solid #86efac;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 900;
  line-height: 1.1;
  white-space: nowrap;
  box-shadow: 0 1px 2px rgba(15, 23, 42, .1);
}
.checkout-page .pix-info-box {
  margin-bottom: 20px;
  padding: 12px;
  color: #4b5563;
  background: #f9fafb;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
}
.checkout-page .pix-justification {
  text-align: left;
  color: #4b5563;
  font-size: 14px;
  line-height: 1.5;
}
.checkout-page .pix-justification > strong {
  display: block;
  margin-bottom: 8px;
  color: #111827;
  font-size: 15px;
}
.checkout-page .pix-justification div {
  margin-bottom: 4px;
}
.checkout-page .pix-justification div:last-child {
  margin-bottom: 0;
}
.checkout-page .card-fee-note {
  margin-top: 12px;
  padding-top: 12px;
  color: #6b7280;
  border-top: 1px solid #e5e7eb;
  font-size: 13px;
}
.checkout-page .form-group {
  margin-bottom: 12px;
}
.checkout-page .form-group-spaced {
  margin-bottom: 20px;
}
.checkout-page .form-group label {
  margin: 0 0 4px;
}
.checkout-page .half {
  min-width: 0;
}
.checkout-page .installments-select {
  min-height: 44px;
}
.checkout-page .pix-info-price {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-top: 10px;
  padding-top: 15px;
  border-top: 1px solid #e5e7eb;
}
.checkout-page .price-line {
  display: flex;
  align-items: baseline;
  gap: 8px;
}
.checkout-page .price-line span {
  color: #1f2937;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}
.checkout-page .pix-info-price p {
  margin: 4px 0 0;
  color: #16a34a;
  font-size: 13px;
  font-weight: 700;
}
.checkout-page .guarantee-box {
  margin: 12px 0 10px;
  text-align: center;
}
.checkout-page .guarantee-box span {
  display: block;
  margin-bottom: 4px;
  color: #16a34a;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
}
.checkout-page .guarantee-box p {
  margin: 0;
  color: #4b5563;
  font-size: 12px;
  line-height: 1.35;
}
.checkout-page .contribution-info-collapsible {
  margin: 12px 0 0;
  padding: 0;
  overflow: hidden;
}
.checkout-page .contribution-info-collapsible summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  padding: 0 12px;
  color: #111827;
  font-size: 14px;
  font-weight: 800;
  list-style: none;
  cursor: pointer;
}
.checkout-page .contribution-info-collapsible summary::-webkit-details-marker {
  display: none;
}
.checkout-page .contribution-info-collapsible summary::after {
  content: "+";
  width: 22px;
  height: 22px;
  flex: 0 0 22px;
  display: grid;
  place-items: center;
  color: #166534;
  background: #dcfce7;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}
.checkout-page .contribution-info-collapsible[open] summary {
  border-bottom: 1px solid #e5e7eb;
}
.checkout-page .contribution-info-collapsible[open] summary::after {
  content: "-";
}
.checkout-page .contribution-info-collapsible .pix-justification {
  padding: 12px;
}
.checkout-page .contribution-info-collapsible .card-fee-note {
  margin-bottom: 0;
}