/* Página /afiliados — jornada passo a passo, tipografia limpa */

html.landing-page-body,
html.landing-page-body body.landing-page-body,
body.landing-page-body.affiliate-page {
  overflow-x: hidden !important;
  overflow-y: auto !important;
  height: auto !important;
  min-height: 100dvh !important;
  max-height: none !important;
  position: static !important;
  width: 100% !important;
  max-width: none !important;
  left: auto !important;
  transform: none !important;
}

.affiliate-page {
  --aff-bg: none;
  --aff-ink: #fff5f8;
  --aff-muted: rgba(255, 220, 232, 0.72);
  --aff-line: rgba(255, 140, 180, 0.22);
  --aff-red: #ff4d94;
  --aff-red-deep: #e61e6e;
  --aff-glass: rgba(10, 4, 12, 0.58);
  font-family: Manrope, system-ui, sans-serif;
  color: var(--aff-ink);
  background: #09060a;
}

.affiliate-page__shell {
  position: relative;
  z-index: 1;
  isolation: isolate;
  height: auto !important;
  min-height: 100dvh;
  max-height: none !important;
  overflow: visible;
  background: #09060a;
}

.affiliate-page__backdrop {
  position: fixed;
  inset: 0;
  z-index: 0;
  background-image: var(--aff-bg);
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  transform: scale(1.03);
  filter: saturate(1.12) contrast(1.06);
  pointer-events: none;
}

.affiliate-page__veil {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 2, 8, 0.72) 0%, rgba(6, 2, 8, 0.82) 45%, rgba(6, 2, 8, 0.94) 100%),
    radial-gradient(ellipse 60% 35% at 50% 0%, rgba(255, 77, 148, 0.22), transparent 70%);
}

.affiliate-page__main,
.affiliate-page__shell > .affiliate-home-chrome,
.affiliate-page__shell > .site-footer {
  position: relative;
  z-index: 1;
}

.affiliate-home-chrome {
  position: sticky;
  top: 0;
  z-index: 40;
  height: auto !important;
  min-height: 0 !important;
  background: transparent;
  border-bottom: 0;
}

.affiliate-home-chrome .home-top-bar,
.affiliate-home-chrome .home-top-bar.home-header-extended-bg,
.affiliate-home-chrome .catalog-row,
.affiliate-home-chrome .home-promo-row {
  position: relative !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  width: 100%;
  background: rgba(6, 2, 8, 0.45) !important;
  backdrop-filter: blur(14px) saturate(1.15) !important;
  -webkit-backdrop-filter: blur(14px) saturate(1.15) !important;
  box-shadow: none !important;
  border-bottom: 1px solid rgba(255, 120, 170, 0.12) !important;
}

.affiliate-home-chrome .home-top-bar {
  pointer-events: auto;
}

/* Programa de afiliados: sem abas Vídeo/Imagem */
.affiliate-home-chrome .home-primary-tab-row,
.affiliate-page .home-primary-tab-row {
  display: none !important;
}

.affiliate-home-chrome a.home-tab-button,
.affiliate-home-chrome a.home-catalog-pill,
.affiliate-home-chrome a.home-promo-banner {
  text-decoration: none;
  color: inherit;
  box-sizing: border-box;
}

.affiliate-page__main {
  max-width: 40rem;
  padding: 1.5rem 1.15rem 4.5rem;
  margin: 0 auto;
}

/* Intro compacto */
.aff-intro {
  display: grid;
  gap: 0.75rem;
  justify-items: center;
  text-align: center;
  padding: 1.1rem 0 1.75rem;
}

.aff-intro__logo {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 0.15rem;
  filter: drop-shadow(0 0.55rem 1.4rem rgba(0, 0, 0, 0.5));
}

.aff-intro__kicker {
  margin: 0;
  color: rgba(255, 210, 225, 0.55);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.aff-intro h1 {
  margin: 0;
  max-width: 20ch;
  font-family: Manrope, system-ui, sans-serif;
  font-size: clamp(1.55rem, 4.5vw, 2.1rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.02em;
  color: #fff;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.4);
}

.aff-lead {
  margin: 0;
  max-width: 36rem;
  color: var(--aff-muted);
  font-size: 0.98rem;
  line-height: 1.6;
}

.affiliate-page .aff-cta {
  margin-top: 0.35rem;
  min-height: 2.75rem;
  padding: 0 1.25rem;
  border-radius: 999px !important;
  font-size: 0.9rem;
  font-weight: 800;
  box-shadow: 0 0.45rem 1.4rem rgba(255, 77, 148, 0.28) !important;
}

/* Jornada vertical */
.aff-journey {
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 140, 180, 0.16);
}

.aff-journey h2,
.aff-perks h2,
.aff-activate h2,
.aff-faq h2 {
  margin: 0 0 1.15rem;
  font-family: Manrope, system-ui, sans-serif;
  font-size: clamp(1.15rem, 2.5vw, 1.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}

.aff-journey__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0;
}

.aff-journey__step {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: stretch;
}

.aff-journey__rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.aff-journey__num {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  flex-shrink: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8fb8, var(--aff-red-deep));
  color: #12060e;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 0 0.75rem rgba(255, 77, 148, 0.4);
}

.aff-journey__line {
  flex: 1 1 auto;
  width: 2px;
  min-height: 1.4rem;
  margin: 0.35rem 0;
  background: linear-gradient(180deg, rgba(255, 77, 148, 0.65), rgba(255, 140, 180, 0.12));
  border-radius: 999px;
}

.aff-journey__body {
  padding: 0.15rem 0 1.35rem;
}

.aff-journey__body p {
  margin: 0.2rem 0 0;
  color: #f0d6e2;
  font-size: 0.96rem;
  line-height: 1.55;
}

/* Benefícios em faixa vertical limpa */
.aff-perks {
  margin-top: 0.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 140, 180, 0.16);
}

.aff-perks__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.aff-perks__item {
  padding: 0 0 0 0.85rem;
  border-left: 2px solid rgba(255, 77, 148, 0.55);
}

.aff-perks__item strong {
  display: block;
  margin-bottom: 0.25rem;
  font-size: 1rem;
  font-weight: 800;
  color: #fff;
}

.aff-perks__item p {
  margin: 0;
  color: var(--aff-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

/* Passo final: ativar link */
.aff-activate {
  margin-top: 1.25rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 140, 180, 0.16);
}

.aff-activate__head {
  display: grid;
  grid-template-columns: 2.6rem minmax(0, 1fr);
  gap: 0.85rem;
  align-items: start;
  margin-bottom: 1.1rem;
}

.aff-activate__step {
  display: inline-grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8fb8, var(--aff-red-deep));
  color: #12060e;
  font-size: 0.85rem;
  font-weight: 800;
  box-shadow: 0 0 0.75rem rgba(255, 77, 148, 0.4);
}

.aff-activate__head h2 {
  margin: 0 0 0.35rem;
}

.aff-activate__head p {
  margin: 0;
  color: var(--aff-muted);
  font-size: 0.92rem;
  line-height: 1.5;
}

.affiliate-page__signup-panel {
  display: grid;
  gap: 1rem;
  padding: 1.2rem 1.1rem 1.25rem;
  border-radius: 1.15rem;
  border: 1px solid rgba(255, 140, 180, 0.28);
  background:
    linear-gradient(145deg, rgba(255, 77, 148, 0.16), transparent 42%),
    var(--aff-glass);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 1.1rem 2.4rem rgba(0, 0, 0, 0.4);
}

.affiliate-page .landing-page__affiliate-form,
.affiliate-page .landing-page__affiliate-result {
  max-width: none;
  margin-top: 0;
}

.affiliate-page .landing-page__affiliate-form[hidden],
.affiliate-page .landing-page__affiliate-result[hidden] {
  display: none !important;
}

.affiliate-page .landing-page__affiliate-field span {
  color: rgba(255, 210, 225, 0.7);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.affiliate-page .landing-page__affiliate-field input,
.affiliate-page .landing-page__affiliate-field textarea {
  border-radius: 0.75rem !important;
  border-color: rgba(255, 140, 180, 0.22) !important;
  background: rgba(4, 1, 6, 0.72) !important;
  color: #fff !important;
}

.affiliate-page .landing-page__affiliate-field input:focus {
  border-color: rgba(255, 77, 148, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(255, 77, 148, 0.18) !important;
}

.affiliate-page__earnings {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
  margin: 0.2rem 0;
}

.affiliate-page__earnings[hidden] {
  display: none !important;
}

.affiliate-page__earning {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.75rem 0.8rem;
  border: 1px solid var(--aff-line);
  border-radius: 0.85rem;
  background: rgba(4, 1, 6, 0.55);
}

.affiliate-page__earning span {
  color: rgba(255, 210, 225, 0.55);
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.affiliate-page__earning strong {
  color: #fff;
  font-size: 1.05rem;
  font-weight: 800;
  font-variant-numeric: tabular-nums;
}

.affiliate-page__earning:first-child strong {
  color: #ff9ec0;
}

.affiliate-page__signup-panel.is-success {
  grid-template-columns: 1fr;
}

.affiliate-page__submit {
  width: 100%;
  min-height: 2.85rem;
  border: 0;
  border-radius: 999px !important;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
  background: linear-gradient(135deg, #ff7ab0, var(--aff-red-deep)) !important;
  box-shadow: 0 0.55rem 1.5rem rgba(255, 77, 148, 0.35) !important;
}

.affiliate-page__submit:hover {
  filter: brightness(1.06);
}

/* FAQ */
.aff-faq {
  margin-top: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(255, 140, 180, 0.16);
}

.affiliate-page .landing-page__faq details {
  background: rgba(8, 2, 10, 0.5) !important;
  border-radius: 0.85rem !important;
  border: 1px solid var(--aff-line) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.affiliate-page .landing-page__faq details[open] {
  border-color: rgba(255, 77, 148, 0.5) !important;
}

.affiliate-page .landing-page__faq summary {
  font-family: Manrope, system-ui, sans-serif;
  font-weight: 700;
}

@media (min-width: 720px) {
  .aff-perks__list {
    grid-template-columns: 1fr;
  }
}
