/* YouTube-style rewards layout for the funnel pages (presentation only) */
:root {
  --ytr-bg: #0f0f0f;
  --ytr-elev: #272727;
  --ytr-elev-2: #3f3f3f;
  --ytr-text: #f1f1f1;
  --ytr-dim: #aaaaaa;
}

html.yt-shell-on body,
html.yt-shell-on .elementor,
html.yt-shell-on .e-con.e-parent {
  background-color: var(--ytr-bg) !important;
  background-image: none !important;
}

html.yt-shell-on body,
html.yt-shell-on .elementor-heading-title,
html.yt-shell-on .elementor-image-box-title,
html.yt-shell-on .elementor-image-box-description,
html.yt-shell-on .elementor-button-text {
  font-family: "Roboto", "Arial", system-ui, -apple-system, sans-serif !important;
  color: var(--ytr-text);
}

/* ---------------- Balance line ---------------- */
html.yt-shell-on .e-con:has(> #saldo),
html.yt-shell-on .e-con-inner:has(> #saldo) {
  background: transparent !important;
  background-image: none !important;
  border: none !important;
  box-shadow: none !important;
}

/* ---------------- Question card ---------------- */
html.yt-shell-on .e-con.e-child[class*="pergunta"] {
  max-width: 480px;
  margin-inline: auto !important;
  padding: 8px 12px 32px !important;
  gap: 14px;
}

html.yt-shell-on .ytr-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

html.yt-shell-on .ytr-thumb {
  position: relative;
  width: 100%;
  border-radius: 14px;
  overflow: hidden;
  background: #000;
}

html.yt-shell-on .ytr-thumb .elementor-widget-image,
html.yt-shell-on .ytr-thumb .elementor-widget-container {
  width: 100%;
  height: 100%;
  margin: 0 !important;
}

html.yt-shell-on .ytr-thumb img {
  width: 100% !important;
  height: auto !important;
  display: block;
  border-radius: 0 !important;
}

html.yt-shell-on .ytr-badge {
  position: absolute;
  right: 8px;
  bottom: 8px;
  background: rgba(0, 0, 0, 0.8);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  padding: 4px 5px;
  border-radius: 4px;
}

html.yt-shell-on .ytr-cc {
  position: absolute;
  right: 8px;
  top: 8px;
  background: #fff;
  color: #0f0f0f;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 5px;
  border-radius: 4px;
  letter-spacing: 0.5px;
}

html.yt-shell-on .ytr-meta {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

html.yt-shell-on .ytr-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #5b2d8e;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

html.yt-shell-on .ytr-avatar svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

html.yt-shell-on .ytr-metatext {
  flex: 1;
  min-width: 0;
}

html.yt-shell-on .ytr-title,
html.yt-shell-on .ytr-metatext .elementor-heading-title {
  font-size: 17px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: var(--ytr-text) !important;
  margin: 0 !important;
  text-align: left !important;
}

html.yt-shell-on .ytr-sub {
  font-size: 13px;
  color: var(--ytr-dim);
  margin-top: 4px;
}

html.yt-shell-on .ytr-sub b {
  color: var(--ytr-text);
  font-weight: 600;
}

html.yt-shell-on .ytr-kebab {
  color: var(--ytr-text);
  flex: none;
  padding-top: 4px;
}

html.yt-shell-on .ytr-kebab svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

/* ---------------- Prompt + option pills ---------------- */
html.yt-shell-on .ytr-prompt .elementor-heading-title {
  font-size: 14px !important;
  font-weight: 500 !important;
  color: var(--ytr-dim) !important;
  text-align: center !important;
  margin: 0 !important;
}

html.yt-shell-on .e-con[class*="pergunta"] .e-con-full:has(.atualizar-saldo),
html.yt-shell-on .ytr-options {
  display: flex !important;
  flex-direction: row !important;
  gap: 10px !important;
  width: 100% !important;
  justify-content: center;
}

html.yt-shell-on .atualizar-saldo {
  flex: 1 1 0 !important;
  width: auto !important;
  max-width: none !important;
  margin: 0 !important;
}

html.yt-shell-on .atualizar-saldo .elementor-button {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 48px;
  padding: 0 !important;
  border-radius: 999px !important;
  background: var(--ytr-elev) !important;
  color: var(--ytr-text) !important;
  border: none !important;
  transition: background 0.15s ease, transform 0.15s ease, color 0.15s ease;
}

html.yt-shell-on .atualizar-saldo .elementor-button:hover {
  background: var(--ytr-elev-2) !important;
}

html.yt-shell-on .atualizar-saldo .elementor-button svg {
  width: 26px;
  height: 26px;
  fill: currentColor;
}

html.yt-shell-on .atualizar-saldo .elementor-button.ytr-selected {
  background: #ffffff !important;
  color: #0f0f0f !important;
  transform: scale(1.04);
}

/* Intro / final steps */
html.yt-shell-on .elementor-image-box-title {
  font-size: 24px !important;
  font-weight: 700 !important;
  text-align: center;
}

html.yt-shell-on .elementor-image-box-description {
  color: var(--ytr-dim) !important;
  text-align: center;
  font-size: 16px !important;
  font-weight: 400 !important;
}

html.yt-shell-on .e-con[class*="pergunta"] .elementor-button-text {
  font-size: 15px !important;
  font-weight: 600 !important;
}

html.yt-shell-on
  .e-con[class*="pergunta"]
  .elementor-widget-button:not(.atualizar-saldo)
  .elementor-button {
  background: #ff0033 !important;
  color: #fff !important;
  border-radius: 14px !important;
  min-height: 52px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 32px -16px rgba(255, 0, 51, 0.95);
}

/* Hide the default SweetAlert popup — replaced by the custom earnings overlay */
html.yt-shell-on .swal2-container {
  display: none !important;
}

/* ---------------- Earnings animation ---------------- */
.ytr-earn {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease;
  z-index: 2147483400;
}

.ytr-earn.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ytr-earn__card {
  background: #212121;
  border-radius: 18px;
  padding: 28px 32px;
  text-align: center;
  color: #f1f1f1;
  font-family: "Roboto", Arial, sans-serif;
  min-width: 240px;
  transform: scale(0.9);
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.3, 1.3);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.7);
}

.ytr-earn.is-open .ytr-earn__card {
  transform: scale(1);
}

.ytr-earn__plus {
  font-size: 40px;
  font-weight: 700;
  color: #2ba640;
  animation: ytr-pop 0.6s ease;
}

.ytr-earn__label {
  font-size: 13px;
  color: #aaa;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-top: 10px;
}

.ytr-earn__balance {
  font-size: 26px;
  font-weight: 700;
  margin-top: 2px;
}

.ytr-earn__bar {
  height: 3px;
  border-radius: 2px;
  background: #2ba640;
  margin-top: 18px;
  animation: ytr-bar 1.5s linear forwards;
}

@keyframes ytr-pop {
  0% { transform: translateY(14px) scale(0.8); opacity: 0; }
  60% { transform: translateY(-4px) scale(1.08); opacity: 1; }
  100% { transform: translateY(0) scale(1); opacity: 1; }
}

@keyframes ytr-bar {
  from { width: 100%; }
  to { width: 0%; }
}

/* Keep steps near the top instead of vertically centered in the viewport */
html.yt-shell-on .e-con.e-child[class*="pergunta"] {
  min-height: 0 !important;
  height: auto !important;
  justify-content: flex-start !important;
  position: static !important;
}

html.yt-shell-on .e-con.e-parent {
  min-height: 0 !important;
  padding-top: 0 !important;
}

html.yt-shell-on .e-con.e-child[class*="pergunta"] {
  background-color: transparent !important;
  background-image: none !important;
}

/* ---------------- Wallet card ---------------- */
/* Hidden on the intro screen — the balance is only surfaced through the
   earnings popup during evaluations and the final summary. The #saldo
   element itself stays in the DOM so the funnel balance script keeps working. */
html.yt-shell-on .ytr-wallet,
html.yt-shell-on #saldo {
  display: none !important;
}

html.yt-shell-on .ytr-wallet {
  width: calc(100% - 24px);
  max-width: 480px;
  margin: 14px auto 6px;
  padding: 14px 16px 12px;
  border-radius: 18px;
  background:
    radial-gradient(120% 100% at 100% 0%, rgba(255, 0, 0, 0.22), transparent 60%),
    linear-gradient(160deg, #232323 0%, #171717 60%, #101010 100%);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.55);
}

html.yt-shell-on .ytr-wallet__head {
  display: flex;
  align-items: center;
  gap: 8px;
}

html.yt-shell-on .ytr-wallet__logo svg {
  width: 26px;
  height: 18px;
  display: block;
}

html.yt-shell-on .ytr-wallet__brand {
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.2px;
  color: var(--ytr-text);
}

html.yt-shell-on .ytr-wallet__live {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: #2ba640;
}

html.yt-shell-on .ytr-wallet__live i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #2ba640;
  animation: ytr-blink 1.4s ease-in-out infinite;
}

@keyframes ytr-blink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

html.yt-shell-on .ytr-wallet__label {
  margin-top: 10px;
  font-size: 12px;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  color: var(--ytr-dim);
  font-weight: 500;
}

html.yt-shell-on .ytr-wallet #saldo {
  background: transparent !important;
  padding: 0 !important;
  margin: 2px 0 0 !important;
  align-items: flex-start !important;
  border-radius: 0;
}

html.yt-shell-on .ytr-wallet #saldo::before {
  content: none;
}

html.yt-shell-on .ytr-wallet #saldo .elementor-heading-title {
  font-size: 40px !important;
  letter-spacing: -1px;
  color: #ffffff !important;
  text-align: left !important;
}

html.yt-shell-on .ytr-wallet #saldo.zoom-in .elementor-heading-title {
  animation: ytr-pop 0.5s ease;
}

html.yt-shell-on .ytr-wallet__foot {
  display: flex;
  gap: 8px;
  margin-top: 12px;
  flex-wrap: wrap;
}

html.yt-shell-on .ytr-wallet__chip {
  font-size: 11px;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(43, 166, 64, 0.16);
  color: #6ee787;
}

html.yt-shell-on .ytr-wallet__chip.is-pending {
  background: rgba(255, 193, 7, 0.14);
  color: #ffd166;
}

/* ---------------- Reaction pills ---------------- */
html.yt-shell-on .atualizar-saldo .elementor-button.ytr-opt {
  flex-direction: column;
  gap: 4px;
  height: auto;
  padding: 10px 6px 9px !important;
  background: #272727 !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 18px !important;
}

html.yt-shell-on .atualizar-saldo .elementor-button.ytr-opt:hover {
  background: #3f3f3f !important;
}

html.yt-shell-on .ytr-opt__face svg {
  width: 38px !important;
  height: 38px !important;
  display: block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.45));
  transition: transform 0.18s ease;
}

html.yt-shell-on .atualizar-saldo .elementor-button.ytr-opt:hover .ytr-opt__face svg {
  transform: scale(1.08);
}

html.yt-shell-on .ytr-opt__label {
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  color: inherit;
}

html.yt-shell-on .atualizar-saldo .elementor-button.ytr-opt.ytr-selected {
  background: #ffffff !important;
  color: #0f0f0f !important;
  border-color: #ffffff !important;
}

html.yt-shell-on .atualizar-saldo .elementor-button.ytr-opt.ytr-selected .ytr-opt__face svg {
  transform: scale(1.14);
}

/* ---------------- Earnings overlay (enhanced) ---------------- */
.ytr-earn__card {
  position: relative;
  overflow: hidden;
  min-width: 268px;
  background: linear-gradient(165deg, #262626 0%, #171717 100%);
  border: 1px solid rgba(255, 255, 255, 0.09);
}

.ytr-earn__burst {
  position: absolute;
  inset: -40% -40% auto -40%;
  height: 220px;
  background: radial-gradient(closest-side, rgba(43, 166, 64, 0.35), transparent);
  animation: ytr-glow 1.4s ease-out;
  pointer-events: none;
}

@keyframes ytr-glow {
  0% { opacity: 0; transform: scale(0.6); }
  40% { opacity: 1; }
  100% { opacity: 0.25; transform: scale(1.2); }
}

.ytr-earn__coin {
  width: 56px;
  height: 56px;
  margin: 0 auto 6px;
  animation: ytr-coin 0.7s cubic-bezier(0.2, 0.9, 0.3, 1.4);
}

.ytr-earn__coin svg { width: 100%; height: 100%; display: block; }

@keyframes ytr-coin {
  0% { transform: translateY(24px) rotateY(0deg) scale(0.6); opacity: 0; }
  100% { transform: translateY(0) rotateY(360deg) scale(1); opacity: 1; }
}

.ytr-earn__msg {
  font-size: 12.5px;
  color: #aaa;
  margin-top: 4px;
}

.ytr-confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 2147483500;
}

/* ---------------- Final screen ---------------- */
html.yt-shell-on .ytr-final {
  max-width: 480px;
  margin-inline: auto !important;
  padding: 12px 14px 40px !important;
  gap: 12px;
}

html.yt-shell-on .ytr-final img[src*="verify"] {
  width: 74px !important;
  height: auto;
  margin: 0 auto;
  display: block;
}

html.yt-shell-on .ytr-final .elementor-heading-title {
  text-align: center !important;
}

html.yt-shell-on .ytr-summary {
  background: linear-gradient(165deg, #232323, #161616);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 14px 16px;
  margin: 6px 0 4px;
}

html.yt-shell-on .ytr-summary__row,
html.yt-shell-on .ytr-summary__total {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  color: var(--ytr-dim);
  padding: 7px 0;
}

html.yt-shell-on .ytr-summary__row b { color: var(--ytr-text); font-weight: 600; }

html.yt-shell-on .ytr-summary__total {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  margin-top: 4px;
  padding-top: 12px;
  font-size: 15px;
  color: var(--ytr-text);
}

html.yt-shell-on .ytr-summary__total b {
  font-size: 26px;
  font-weight: 700;
  color: #2ba640;
}

html.yt-shell-on .ytr-final .elementor-button,
html.yt-shell-on .ytr-final .ytr-cta {
  background: #ff0000 !important;
  color: #ffffff !important;
  border-radius: 999px !important;
  height: 54px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 700 !important;
  box-shadow: 0 10px 26px rgba(255, 0, 0, 0.32);
  animation: ytr-cta-pulse 2.2s ease-in-out infinite;
}

html.yt-shell-on .ytr-final .elementor-button-text {
  color: #ffffff !important;
  font-size: 16px !important;
  letter-spacing: 0.2px;
}

html.yt-shell-on .ytr-play svg {
  width: 22px;
  height: 22px;
  display: block;
  color: #ffffff;
}

@keyframes ytr-cta-pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 10px 26px rgba(255, 0, 0, 0.32); }
  50% { transform: scale(1.02); box-shadow: 0 14px 34px rgba(255, 0, 0, 0.45); }
}

/* ---------------- Footer ---------------- */
html.yt-shell-on body {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
}

html.yt-shell-on .ytr-footer {
  margin-top: auto;
  width: 100%;
  text-align: center;
  padding: 22px 16px calc(86px + env(safe-area-inset-bottom, 0px));
  font-family: "Roboto", Arial, sans-serif;
}

html.yt-shell-on .ytr-footer__brand {
  font-size: 15px;
  font-weight: 700;
  color: var(--ytr-text);
  letter-spacing: 0.2px;
}

html.yt-shell-on .ytr-footer__links {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-top: 8px;
  font-size: 12.5px;
  color: var(--ytr-dim);
}

html.yt-shell-on .ytr-footer__copy {
  margin-top: 6px;
  font-size: 11.5px;
  color: #717171;
}

/* Final-screen CTA must win over the generic blue button styling */
html.yt-shell-on .e-con[class*="pergunta"].ytr-final .elementor-widget-button .elementor-button {
  background: #ff0000 !important;
  color: #ffffff !important;
}

html.yt-shell-on .ytr-final .ytr-summary__total b { white-space: nowrap; }
html.yt-shell-on .ytr-final .ytr-summary__total span { padding-right: 12px; }

html.yt-shell-on .ytr-final,
html.yt-shell-on .ytr-final .e-con {
  background-color: transparent !important;
  background-image: none !important;
}

html.yt-shell-on .ytr-final #resultadov .elementor-heading-title {
  background: transparent !important;
  color: var(--ytr-dim) !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 0 !important;
}

html.yt-shell-on .ytr-final .elementor-element#resultadov,
html.yt-shell-on .ytr-final #resultadov.text-decoration,
html.yt-shell-on .ytr-final #resultadov .elementor-widget-container,
html.yt-shell-on .ytr-final #resultadov h2.elementor-heading-title {
  background: none !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  border: 0 !important;
  color: #aaaaaa !important;
  font-size: 14px !important;
  font-weight: 500 !important;
  padding: 0 !important;
  -webkit-text-fill-color: #aaaaaa;
}

/* =================================================================
   Apple-inspired responsive polish layer
   Fluid spacing, safe-area gutters, softer surfaces, refined type.
   Presentation only — no behavior changes.
   ================================================================= */
:root {
  --ytr-gutter: clamp(16px, 5vw, 28px);
  --ytr-gap: clamp(12px, 3.2vw, 20px);
  --ytr-radius: clamp(16px, 4vw, 22px);
  --ytr-radius-lg: clamp(20px, 5vw, 28px);
  --ytr-hairline: rgba(255, 255, 255, 0.08);
  --ytr-surface: rgba(255, 255, 255, 0.05);
  --ytr-shadow: 0 12px 40px -18px rgba(0, 0, 0, 0.9);
  --ytr-font:
    -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, system-ui, sans-serif;
}

html.yt-shell-on body,
html.yt-shell-on .elementor-heading-title,
html.yt-shell-on .elementor-image-box-title,
html.yt-shell-on .elementor-image-box-description,
html.yt-shell-on .elementor-button-text,
html.yt-shell-on .ytr-opt__label,
html.yt-shell-on .ytr-sub {
  font-family: var(--ytr-font) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Consistent safe gutters + breathable rhythm on every step */
html.yt-shell-on .e-con.e-child[class*="pergunta"],
html.yt-shell-on .ytr-final {
  padding-inline: max(var(--ytr-gutter), env(safe-area-inset-left, 0px))
    !important;
  padding-block: clamp(8px, 2.5vw, 20px) clamp(28px, 8vw, 44px) !important;
  row-gap: var(--ytr-gap);
  max-width: 520px;
}

/* Wallet, card and summary share one column width and soft Apple surfaces */
html.yt-shell-on .ytr-wallet,
html.yt-shell-on .ytr-card,
html.yt-shell-on .ytr-summary {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  border-radius: var(--ytr-radius-lg);
}

html.yt-shell-on .ytr-wallet {
  margin-block: clamp(10px, 3vw, 18px) clamp(6px, 2vw, 12px);
  padding: clamp(14px, 4vw, 20px) clamp(16px, 4.5vw, 22px)
    clamp(12px, 3.5vw, 18px);
  border: 1px solid var(--ytr-hairline);
  box-shadow: var(--ytr-shadow);
}

html.yt-shell-on .ytr-card {
  row-gap: clamp(10px, 2.6vw, 14px);
}

html.yt-shell-on .ytr-thumb img {
  border-radius: var(--ytr-radius);
}

html.yt-shell-on .ytr-summary {
  padding: clamp(14px, 4vw, 20px) clamp(16px, 4.5vw, 20px);
  border: 1px solid var(--ytr-hairline);
  background: var(--ytr-surface);
}

/* Options: never cramped, never overflowing */
html.yt-shell-on .ytr-options {
  gap: clamp(8px, 2.4vw, 14px);
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
}

html.yt-shell-on .atualizar-saldo {
  min-width: 0;
}

html.yt-shell-on .atualizar-saldo .elementor-button.ytr-opt {
  min-height: 48px;
  padding-inline: clamp(8px, 2.5vw, 16px) !important;
  border-radius: 999px;
  transition:
    background-color 0.22s cubic-bezier(0.32, 0.72, 0, 1),
    transform 0.22s cubic-bezier(0.32, 0.72, 0, 1);
}

html.yt-shell-on .atualizar-saldo .elementor-button.ytr-opt:active {
  transform: scale(0.96);
}

html.yt-shell-on .ytr-opt__label {
  font-size: clamp(11px, 3.2vw, 14px);
  letter-spacing: -0.01em;
  white-space: nowrap;
}

/* Typography scale tuned per viewport */
html.yt-shell-on .ytr-metatext .elementor-heading-title,
html.yt-shell-on .ytr-prompt .elementor-heading-title {
  font-size: clamp(15px, 4.2vw, 19px);
  line-height: 1.3;
  letter-spacing: -0.015em;
}

html.yt-shell-on .ytr-final .elementor-heading-title {
  font-size: clamp(19px, 5.4vw, 26px);
  line-height: 1.2;
  letter-spacing: -0.02em;
}

/* CTA: comfortable tap target, safe bottom spacing */
html.yt-shell-on .ytr-final .ytr-cta {
  width: 100%;
  max-width: 520px;
  margin-inline: auto;
  min-height: 54px;
  border-radius: 16px;
  letter-spacing: -0.01em;
}

/* Footer keeps clear of the floating bottom nav on all devices */
html.yt-shell-on .ytr-footer {
  padding: clamp(18px, 5vw, 26px) var(--ytr-gutter)
    calc(clamp(84px, 18vw, 100px) + env(safe-area-inset-bottom, 0px));
}

/* Earnings overlay scales with the viewport instead of overflowing */
.ytr-earn__card {
  width: min(92vw, 380px);
  padding: clamp(20px, 6vw, 30px) clamp(18px, 6vw, 32px);
  border-radius: clamp(20px, 6vw, 28px);
  border: 1px solid var(--ytr-hairline);
}

/* Tablet and up: roomier column, larger surfaces */
@media (min-width: 768px) {
  html.yt-shell-on .e-con.e-child[class*="pergunta"],
  html.yt-shell-on .ytr-final,
  html.yt-shell-on .ytr-wallet,
  html.yt-shell-on .ytr-card,
  html.yt-shell-on .ytr-summary,
  html.yt-shell-on .ytr-options,
  html.yt-shell-on .ytr-final .ytr-cta {
    max-width: 600px;
  }
}

@media (min-width: 1280px) {
  html.yt-shell-on .e-con.e-child[class*="pergunta"],
  html.yt-shell-on .ytr-final,
  html.yt-shell-on .ytr-wallet,
  html.yt-shell-on .ytr-card,
  html.yt-shell-on .ytr-summary,
  html.yt-shell-on .ytr-options,
  html.yt-shell-on .ytr-final .ytr-cta {
    max-width: 660px;
  }
}

/* Very short/wide screens (landscape phones): tighten vertical rhythm */
@media (max-height: 520px) {
  html.yt-shell-on .e-con.e-child[class*="pergunta"],
  html.yt-shell-on .ytr-final {
    padding-block: 6px 20px !important;
    row-gap: 8px;
  }

  html.yt-shell-on .ytr-wallet {
    margin-block: 6px 4px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html.yt-shell-on .atualizar-saldo .elementor-button.ytr-opt {
    transition: none;
  }
}

/* ---- Neutralize legacy Elementor surfaces (intro + leftover bands) ---- */
html.yt-shell-on .elementor-element-38e82d17,
html.yt-shell-on .elementor-element-47514039 {
  background-color: transparent !important;
  background-image: none !important;
}

html.yt-shell-on .elementor-element-47514039 {
  padding-block: 0 !important;
  min-height: 0 !important;
}

/* Highlight callout ("You have already earned…") as a dark Apple-style card */
html.yt-shell-on .e-con.e-parent .elementor-widget-container:has(> p),
html.yt-shell-on .elementor-widget-text-editor .elementor-widget-container {
  border-radius: 16px;
}

html.yt-shell-on
  .elementor-widget-text-editor
  .elementor-widget-container[style*="212, 237, 218"],
html.yt-shell-on .elementor-widget-container[style*="#d4edda"] {
  background: rgba(48, 209, 88, 0.12) !important;
  border: 1px solid rgba(48, 209, 88, 0.3) !important;
  color: #4ade80 !important;
}

/* Intro CTA follows the same red pill language as the final CTA */
html.yt-shell-on
  .e-con.e-parent
  .elementor-widget-button
  .elementor-button-link {
  background-color: #ff0033 !important;
  color: #fff !important;
  border-radius: 14px !important;
  min-height: 52px;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 10px 30px -14px rgba(255, 0, 51, 0.9);
  transition: transform 0.2s cubic-bezier(0.32, 0.72, 0, 1);
}

html.yt-shell-on
  .e-con.e-parent
  .elementor-widget-button
  .elementor-button-link:active {
  transform: scale(0.97);
}

/* Intro highlight callout + intro CTA (specific legacy elements) */
html.yt-shell-on .elementor-element-6aeed112 .elementor-widget-container {
  background: rgba(48, 209, 88, 0.12) !important;
  border: 1px solid rgba(48, 209, 88, 0.28) !important;
  border-radius: 16px !important;
  padding: 14px 16px !important;
}

html.yt-shell-on
  .elementor-element-6aeed112
  .elementor-widget-container
  .elementor-heading-title {
  color: #4ade80 !important;
}

html.yt-shell-on .elementor-button.elementor-button-link {
  background-color: #ff0033 !important;
  color: #fff !important;
  border-radius: 14px !important;
  min-height: 52px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  letter-spacing: -0.01em;
  box-shadow: 0 12px 32px -16px rgba(255, 0, 51, 0.95);
}

html.yt-shell-on .elementor-button.elementor-button-link .elementor-button-text {
  color: #fff !important;
}

html.yt-shell-on body .elementor .elementor-element .elementor-button.elementor-button-link,
html.yt-shell-on body a.elementor-button-link {
  background-color: #ff0033 !important;
  background-image: none !important;
  color: #fff !important;
  border-radius: 14px !important;
}

/* =================================================================
   Fix pass — intro CTA, reaction pills, scroll lock
   ================================================================= */

/* 1) Intro CTA: pure red pill, no grey borders, responsive width */
html.yt-shell-on .elementor-widget-button .elementor-widget-container,
html.yt-shell-on .elementor-button-wrapper {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}

html.yt-shell-on body a.elementor-button-link,
html.yt-shell-on body .elementor-button.elementor-button-link {
  border: 0 !important;
  outline: 0 !important;
  border-radius: clamp(12px, 3.4vw, 16px) !important;
  width: min(100%, 460px) !important;
  margin-inline: auto !important;
  min-height: clamp(48px, 12vw, 56px) !important;
  padding-inline: clamp(18px, 5vw, 28px) !important;
  font-size: clamp(14px, 3.9vw, 16px) !important;
  text-transform: uppercase;
}

html.yt-shell-on body a.elementor-button-link:focus,
html.yt-shell-on body a.elementor-button-link:focus-visible {
  outline: 0 !important;
  box-shadow: 0 0 0 3px rgba(255, 0, 51, 0.35) !important;
}

/* 5) Reaction options: white surface, coloured symbols, more compact */
html.yt-shell-on .ytr-options {
  gap: clamp(8px, 2.2vw, 12px);
  max-width: 420px;
}

html.yt-shell-on .atualizar-saldo .elementor-button.ytr-opt {
  background: #ffffff !important;
  color: #0f0f0f !important;
  border: 0 !important;
  min-height: 0 !important;
  padding: 8px 6px 7px !important;
  border-radius: 14px !important;
  gap: 2px;
  box-shadow: 0 6px 18px -12px rgba(0, 0, 0, 0.8);
}

html.yt-shell-on .atualizar-saldo .elementor-button.ytr-opt:hover {
  background: #f2f2f2 !important;
}

html.yt-shell-on .ytr-opt__face svg {
  width: clamp(24px, 7vw, 28px) !important;
  height: clamp(24px, 7vw, 28px) !important;
  filter: none;
}

html.yt-shell-on .ytr-opt__label {
  font-size: clamp(10px, 2.9vw, 12px);
  font-weight: 600;
  color: #0f0f0f;
}

html.yt-shell-on .atualizar-saldo .elementor-button.ytr-opt.ytr-selected {
  background: #ffffff !important;
  box-shadow: 0 0 0 2px #ff0033, 0 8px 22px -12px rgba(255, 0, 51, 0.9);
}

/* 4) Never let third-party dialogs lock page scrolling */
html.swal2-shown,
body.swal2-shown,
html.swal2-height-auto,
body.swal2-height-auto {
  overflow: auto !important;
  height: auto !important;
  padding-right: 0 !important;
}

/* Reaction pills override the global red button rule */
html.yt-shell-on body .elementor .elementor-element .atualizar-saldo .elementor-button.ytr-opt,
html.yt-shell-on body a.elementor-button-link.ytr-opt,
html.yt-shell-on body .atualizar-saldo .elementor-button.ytr-opt {
  background: #ffffff !important;
  background-image: none !important;
  color: #0f0f0f !important;
  border: 0 !important;
  box-shadow: 0 6px 18px -12px rgba(0, 0, 0, 0.8) !important;
  border-radius: 14px !important;
  min-height: 0 !important;
  width: auto !important;
  padding: 8px 6px 7px !important;
  text-transform: none !important;
}

html.yt-shell-on body .atualizar-saldo .elementor-button.ytr-opt .elementor-button-text,
html.yt-shell-on body .atualizar-saldo .elementor-button.ytr-opt .ytr-opt__label {
  color: #0f0f0f !important;
}

html.yt-shell-on body .atualizar-saldo .elementor-button.ytr-opt.ytr-selected {
  box-shadow: 0 0 0 2px #ff0033, 0 8px 22px -12px rgba(255, 0, 51, 0.9) !important;
}

/* =================================================================
   Fix pass — intro CTA framing, single-line balance
   ================================================================= */

/* 1) Intro CTA: kill the legacy grey widget surface behind the red pill */
html.yt-shell-on .elementor-widget-button,
html.yt-shell-on .elementor-widget-button .elementor-widget-container,
html.yt-shell-on .elementor-widget-button .elementor-button-wrapper {
  background-color: transparent !important;
  background-image: none !important;
  border: 0 !important;
  box-shadow: none !important;
  overflow: visible !important;
}

html.yt-shell-on .elementor-widget-button {
  width: 100% !important;
  display: flex !important;
  justify-content: center;
  padding: clamp(4px, 1.6vw, 8px) 0 !important;
  margin: 0 !important;
}

html.yt-shell-on .elementor-widget-button .elementor-button-wrapper {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* 2) Balance: hidden until the lead starts, then a premium wallet card */
html.yt-shell-on .ytr-wallet,
html.yt-shell-on #saldo {
  display: none !important;
}

html.yt-shell-on.ytr-started .ytr-wallet {
  position: relative;
  display: flex !important;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  width: min(100%, 440px);
  margin: clamp(10px, 3vw, 14px) auto 10px !important;
  padding: clamp(14px, 4vw, 18px) clamp(16px, 4.4vw, 20px)
    clamp(15px, 4.2vw, 19px) !important;
  border-radius: 22px;
  background:
    radial-gradient(
      120% 130% at 0% 0%,
      rgba(255, 0, 0, 0.16) 0%,
      rgba(255, 0, 0, 0) 55%
    ),
    linear-gradient(158deg, #272727 0%, #1a1a1a 52%, #0f0f0f 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.08) inset,
    0 14px 32px rgba(0, 0, 0, 0.5) !important;
  text-align: left;
  overflow: hidden;
}

/* ---- Row 1: brand line (logo + name, status chip on the right) --------- */
html.yt-shell-on.ytr-started .ytr-wallet__head {
  display: flex !important;
  align-items: center;
  gap: clamp(9px, 2.6vw, 11px);
  width: 100%;
  padding: 0 0 clamp(12px, 3.4vw, 15px) !important;
  margin: 0 0 clamp(12px, 3.4vw, 15px) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: none;
  border-radius: 0;
}

html.yt-shell-on.ytr-started .ytr-wallet__logo {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: clamp(30px, 8vw, 34px);
  height: clamp(30px, 8vw, 34px);
  border-radius: 11px;
  background: linear-gradient(
    160deg,
    rgba(255, 255, 255, 0.14) 0%,
    rgba(255, 255, 255, 0.05) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.1);
  line-height: 0;
}

html.yt-shell-on.ytr-started .ytr-wallet__logo svg {
  width: clamp(16px, 4.4vw, 19px);
  height: auto;
  display: block;
}

html.yt-shell-on.ytr-started .ytr-wallet__brand {
  display: block !important;
  flex: 1 1 auto;
  min-width: 0;
  margin: 0 !important;
  font-size: clamp(11.5px, 3.2vw, 13px);
  font-weight: 600;
  letter-spacing: 0.1px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html.yt-shell-on.ytr-started .ytr-wallet__live {
  position: absolute;
  top: clamp(11px, 3vw, 14px);
  right: clamp(13px, 3.4vw, 16px);
  flex: none;
  display: inline-flex !important;
  align-items: center;
  gap: 5px;
  margin: 0 !important;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: clamp(8px, 2.3vw, 9.5px);
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  color: #8ceda0;
  background: rgba(43, 166, 64, 0.16);
  border: 1px solid rgba(43, 166, 64, 0.3);
  white-space: nowrap;
  line-height: 1;
  z-index: 3;
}

html.yt-shell-on.ytr-started .ytr-wallet__live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #2ba640;
  box-shadow: 0 0 7px rgba(43, 166, 64, 0.85);
  display: inline-block;
}

/* ---- Row 2: label ------------------------------------------------------ */
html.yt-shell-on.ytr-started .ytr-wallet__label {
  display: block !important;
  width: 100%;
  margin: 0 0 4px !important;
  padding: 0 !important;
  font-size: clamp(9.5px, 2.7vw, 11px);
  font-weight: 600;
  letter-spacing: 0.85px;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.5);
  line-height: 1.2;
}

html.yt-shell-on.ytr-started .ytr-wallet__foot {
  display: none !important;
}

/* ---- Row 3: amount ----------------------------------------------------- */
html.yt-shell-on.ytr-started #saldo {
  display: block !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding: 0 !important;
  background: none !important;
  border: 0 !important;
  text-align: left !important;
  line-height: 1;
}

html.yt-shell-on.ytr-started #saldo > * {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

html.yt-shell-on.ytr-started #saldo .elementor-widget-container {
  margin: 0 !important;
  padding: 0 !important;
  width: auto !important;
  text-align: left !important;
}

html.yt-shell-on.ytr-started #saldo .elementor-heading-title {
  display: block !important;
  margin: 0 !important;
  font-size: clamp(30px, 9vw, 40px) !important;
  font-weight: 700 !important;
  letter-spacing: -1.2px;
  line-height: 1.05 !important;
  color: #ffffff !important;
  font-variant-numeric: tabular-nums;
  transition: color 0.25s ease;
}

html.yt-shell-on.ytr-started #saldo.zoom-in .elementor-heading-title {
  color: #46d160 !important;
}
