/* mod/afiliado.css — Indique e Ganha / afiliados (classe af-). Vive no stage escuro (body.is-home). */
.af-wrap { color: #fff; display: grid; gap: 24px; align-content: start; }
.af-wrap h1 { margin: 0; font-size: 36px; line-height: 44px; font-weight: 600; letter-spacing: -.5px; }
.af-wrap h2 { margin: 0; font-size: 20px; line-height: 24px; font-weight: 600; }
.af-muted { color: var(--soft); margin: 0; }

/* hero */
.af-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 24px;
  border-radius: 24px;
  padding: 32px;
  background: linear-gradient(120deg, #0075ff 0%, #0a52c8 55%, #00b24b 160%);
}
.af-hero-copy { flex: 1; min-width: 0; display: grid; gap: 12px; }
.af-hero-copy h1 em { font-style: normal; color: #ffe27a; }
.af-hero-copy p { margin: 0; max-width: 560px; color: rgba(255, 255, 255, .88); font-size: 15px; line-height: 22px; }
.af-eyebrow {
  justify-self: start;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  border-radius: 999px;
  padding: 4px 12px;
}
.af-hero-art {
  flex: none;
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  border-radius: 24px;
  color: #fff;
  background: rgba(255, 255, 255, .16);
}

/* cartões brancos sobre o fundo escuro */
.af-card {
  background: var(--card);
  color: var(--ink);
  border-radius: 20px;
  padding: 20px;
  display: grid;
  gap: 14px;
}

/* link + compartilhamento */
.af-linkrow { display: flex; gap: 8px; flex-wrap: wrap; }
.af-linkin {
  flex: 1;
  min-width: 0;
  height: 44px;
  border: 1px solid #e3e6ec;
  background: var(--odd);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--ink);
  text-overflow: ellipsis;
}
.af-linkin:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.af-copy {
  flex: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 44px;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: var(--blue);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.af-copy:hover { background: #006eec; }
.af-copy.ok { background: var(--green); }
.af-copy svg { display: block; }
.af-share { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.af-share-lb { font-size: 13px; color: var(--muted); }
.af-sh {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 36px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #fff;
}
.af-sh svg { display: block; }
.af-sh.wa { background: #25d366; color: #073b20; }
.af-sh.tg { background: #2aabee; }
.af-code { margin: 0; font-size: 13px; color: var(--muted); }
.af-code b { color: var(--ink); letter-spacing: .5px; }

/* números (só do admin) */
.af-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.af-stat {
  background: var(--card);
  color: var(--ink);
  border-radius: 16px;
  padding: 18px;
  display: grid;
  gap: 4px;
  align-content: start;
}
.af-stat i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--blue-2); color: var(--blue); margin-bottom: 6px; }
.af-stat b { font-size: 26px; line-height: 30px; font-weight: 700; }
.af-stat small { font-size: 13px; color: var(--muted); }
.af-stat.af-gain i { background: var(--green-2); color: var(--green); }
.af-stat.af-gain b { color: var(--green); }

/* como funciona */
.af-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.af-steps li { display: flex; gap: 12px; align-items: flex-start; }
.af-steps li > span {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: grid;
  place-items: center;
}
.af-steps b { display: block; font-size: 15px; font-weight: 600; color: var(--ink); }
.af-steps p { margin: 2px 0 0; font-size: 14px; line-height: 20px; color: var(--muted); }
.af-fine { margin: 0; font-size: 12px; line-height: 18px; color: var(--muted); }
/* a nota de "previstas" fica no stage escuro (fora dos cartões brancos) */
.af-fine.af-prev { color: var(--soft); }
.af-fine.af-prev b { color: #fff; }

/* estados (deslogado, indisponível, erro) */
.af-state {
  background: var(--card);
  color: var(--ink);
  border-radius: 24px;
  padding: 48px 24px;
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
}
.af-state-ic { display: grid; place-items: center; width: 72px; height: 72px; border-radius: 20px; background: var(--blue-2); color: var(--blue); }
.af-state h1 { font-size: 24px; line-height: 28px; }
.af-state p { margin: 0; max-width: 420px; color: var(--muted); font-size: 15px; line-height: 22px; }
.af-btn {
  margin-top: 8px;
  border: 0;
  border-radius: 12px;
  height: 44px;
  padding: 0 28px;
  background: var(--blue);
  color: #fff;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.af-btn:hover { background: #006eec; }
.af-btn.ghost { background: var(--odd); color: var(--ink); }
.af-btn.ghost:hover { background: #e7eaf0; }

/* esqueleto de carga */
.af-skl { display: block; height: 14px; border-radius: 8px; background: rgba(255, 255, 255, .14); }
.af-card .af-skl, .af-stat .af-skl { background: #eef1f5; }
.af-skl + .af-skl { margin-top: 10px; }
.af-skl.tall { height: 64px; }
.af-skl.w30 { width: 30%; }
.af-skl.w40 { width: 40%; }
.af-skl.w60 { width: 60%; }
.af-skl.w80 { width: 80%; }
.af-skl.w100 { width: 100%; }
.af-hero.af-sk { background: var(--side-card); }

@media (max-width: 1100px) {
  .af-wrap h1 { font-size: 28px; line-height: 34px; }
  .af-hero { flex-direction: column; align-items: flex-start; padding: 24px; }
  .af-hero-art { width: 64px; height: 64px; border-radius: 18px; }
  .af-hero-art svg { width: 32px; height: 32px; }
}
@media (max-width: 560px) {
  .af-stats { grid-template-columns: 1fr; }
  /* link ocupa a linha toda; Copiar desce para baixo em largura cheia */
  .af-linkin { flex: 1 1 100%; }
  .af-copy { flex: 1; justify-content: center; }
  .af-stat b { font-size: 22px; line-height: 26px; }
}
