/* ============================================================
   TG — Área de Afiliados (Renda Extra)
   ============================================================ */
:root { --tg-aff-brand: #E65C00; --tg-aff-brand-dark: #B84800; }

/* Layout de "rodapé grudado no fim": coluna flex com o main crescendo.
   Sem isso, com conteúdo curto o app ficava com 100vh e sobrava um vazio
   ABAIXO do rodapé. O 100dvh evita o scroll extra criado pela barra de
   endereço dos navegadores mobile (onde 100vh > área visível). */
#tg-aff-app {
  font-family: Arial, Helvetica, sans-serif;
  color: #1A1108;
  background: #F7F4F0;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
  box-sizing: border-box;
}
#tg-aff-app > .tg-aff-main { flex: 1 0 auto; }
#tg-aff-app > .tg-aff-footer { flex-shrink: 0; margin-top: auto; }
#tg-aff-app *, #tg-aff-app *::before, #tg-aff-app *::after { box-sizing: border-box; }
/* Neutraliza estilos de botão/campo herdados do tema (Hello Elementor/Elementor) */
#tg-aff-app button, #tg-aff-app input, #tg-aff-app textarea {
  font-family: inherit; -webkit-appearance: none; appearance: none; margin: 0;
}
#tg-aff-app select { font-family: inherit; margin: 0; }
#tg-aff-app button { line-height: normal; }

/* Deriva um tom escuro da marca para gradientes/hover */
#tg-aff-app { --tg-aff-brand-dark: color-mix(in srgb, var(--tg-aff-brand) 78%, #000); }

/* ── Header / topbar ── */
.tg-aff-topbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; padding: 12px 20px;
  background: #fff; border-bottom: 1px solid #EDE6DE;
  position: sticky; top: 0; z-index: 20;
}
.tg-aff-brand { display: flex; align-items: center; text-decoration: none; }
.tg-aff-brand-logo { max-height: 42px; width: auto; display: block; }
.tg-aff-brand-name { font-family: Georgia, serif; font-size: 22px; font-weight: bold; color: var(--tg-aff-brand-dark); letter-spacing: .5px; }
.tg-aff-nav-link {
  text-decoration: none; color: var(--tg-aff-brand-dark); font-weight: bold; font-size: 14px;
  border: 1.5px solid var(--tg-aff-brand); border-radius: 999px; padding: 8px 16px; white-space: nowrap;
  transition: .15s;
}
.tg-aff-nav-link:hover { background: var(--tg-aff-brand); color: #fff; }

/* ── Hero ── */
.tg-aff-hero {
  background: linear-gradient(135deg, var(--tg-aff-brand), var(--tg-aff-brand-dark));
  color: #fff; text-align: center; padding: 44px 20px 38px;
}
.tg-aff-hero-eyebrow {
  display: inline-block; font-size: 12px; font-weight: bold; letter-spacing: 1.5px;
  text-transform: uppercase; opacity: .85; margin-bottom: 10px;
  border: 1px solid rgba(255,255,255,.35); border-radius: 999px; padding: 4px 14px;
}
.tg-aff-hero-title {
  margin: 0; font-family: Georgia, serif; font-size: 34px; font-weight: bold; line-height: 1.22;
}
.tg-aff-hero-title strong { color: #7BE8A8; }
.tg-aff-hero-sub { margin: 12px auto 0; max-width: 580px; font-size: 16px; opacity: .95; line-height: 1.55; }
.tg-aff-hero-pills {
  display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px;
}
.tg-aff-hero-pills span {
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22);
  border-radius: 999px; padding: 6px 14px; font-size: 13px; font-weight: bold;
}

/* ── Landing: pitch + formulário ── */
.tg-aff-landing { display: block; }
.tg-aff-landing .tg-aff-card { margin: 0 auto; }
.tg-aff-pitch { margin-top: 20px; }
.tg-aff-pitch h3 { margin: 0 0 12px; font-size: 17px; }

/* Simulador de ganhos */
.tg-aff-sim {
  background: #fff; border: 2px solid var(--tg-aff-brand); border-radius: 16px;
  padding: 18px 20px; margin-bottom: 18px; box-shadow: 0 6px 20px rgba(0,0,0,.06);
}
.tg-aff-sim-lead { margin: 0 0 14px; font-size: 14px; color: #6B6158; }
.tg-aff-sim-lead strong { color: var(--tg-aff-brand-dark); font-size: 16px; }
/* Slider do simulador — estilizado à mão porque o reset de appearance do app
   remove a aparência nativa (senão a barra fica invisível). */
#tg-aff-sim-range {
  -webkit-appearance: none; appearance: none;
  width: 100%; height: 10px; border-radius: 999px;
  background: #EFE7DD; outline: none; cursor: pointer;
  margin: 4px 0 6px; padding: 0; border: 0;
}
#tg-aff-sim-range::-webkit-slider-runnable-track {
  height: 10px; border-radius: 999px; background: transparent;
}
#tg-aff-sim-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 26px; height: 26px; margin-top: -8px; border-radius: 50%;
  background: var(--tg-aff-brand); border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.28); cursor: grab;
}
#tg-aff-sim-range::-webkit-slider-thumb:active { cursor: grabbing; transform: scale(1.06); }
#tg-aff-sim-range::-moz-range-track {
  height: 10px; border-radius: 999px; background: #EFE7DD; border: 0;
}
#tg-aff-sim-range::-moz-range-progress {
  height: 10px; border-radius: 999px; background: var(--tg-aff-brand);
}
#tg-aff-sim-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--tg-aff-brand); border: 3px solid #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.28); cursor: grab;
}
.tg-aff-sim-scale {
  display: flex; justify-content: space-between; font-size: 11.5px; color: #6B6158; margin-bottom: 12px;
}
.tg-aff-sim-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.tg-aff-sim-box {
  background: #FAF7F3; border: 1px solid #EFE7DD; border-radius: 12px; padding: 12px; text-align: center;
}
.tg-aff-sim-box span { display: block; font-size: 12px; color: #6B6158; margin-bottom: 3px; }
.tg-aff-sim-box strong { font-size: 20px; color: #1A1108; }
.tg-aff-sim-box.win { background: #F4FBF6; border-color: #CDEBD6; }
.tg-aff-sim-box.win strong { color: #1E7E34; }
.tg-aff-sim-note { margin: 12px 0 0; font-size: 12px; color: #6B6158; line-height: 1.5; }

/* Prova social (números reais + depoimentos cadastrados) */
.tg-aff-proof {
  background: #fff; border: 1px solid #EDE6DE; border-radius: 16px;
  padding: 18px 20px; margin-bottom: 18px;
}
.tg-aff-proof-stats {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px; margin-bottom: 14px;
}
.tg-aff-proof-stat {
  background: #FAF7F3; border: 1px solid #EFE7DD; border-radius: 12px;
  padding: 12px 10px; text-align: center;
}
.tg-aff-proof-ico { font-size: 18px; display: block; }
.tg-aff-proof-stat strong {
  display: block; font-size: 19px; color: var(--tg-aff-brand-dark); margin: 3px 0 2px; line-height: 1.1;
}
.tg-aff-proof-lbl { font-size: 11.5px; color: #6B6158; line-height: 1.3; display: block; }
.tg-aff-depo {
  margin: 0 0 10px; padding: 12px 14px; background: #FAF7F3;
  border-left: 3px solid var(--tg-aff-brand); border-radius: 0 10px 10px 0;
}
.tg-aff-depo:last-child { margin-bottom: 0; }
.tg-aff-depo blockquote {
  margin: 0; font-size: 13.5px; line-height: 1.55; color: #3d342b; font-style: italic;
}
.tg-aff-depo figcaption { display: block; margin-top: 7px; font-size: 12.5px; color: #6B6158; }

/* Passo a passo */
.tg-aff-steps {
  background: #fff; border: 1px solid #EDE6DE; border-radius: 16px; padding: 18px 20px; margin-bottom: 18px;
}
.tg-aff-step { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 14px; }
.tg-aff-step:last-child { margin-bottom: 0; }
.tg-aff-step-n {
  flex: 0 0 28px; height: 28px; border-radius: 50%; background: var(--tg-aff-brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: bold; font-size: 14px;
}
.tg-aff-step-txt strong { display: block; font-size: 14.5px; }
.tg-aff-step-txt span { font-size: 13px; color: #6B6158; line-height: 1.45; }

/* Por que vale a pena */
.tg-aff-why { background: #fff; border: 1px solid #EDE6DE; border-radius: 16px; padding: 18px 20px; }
.tg-aff-why .tg-aff-benefits { background: none; border: 0; padding: 0; margin: 0; }
.tg-aff-why .tg-aff-benefits li { padding: 6px 0; font-size: 14px; }

@media (min-width: 900px) {
  .tg-aff-landing {
    display: grid; grid-template-columns: 1fr 440px; gap: 24px; align-items: start;
  }
  .tg-aff-pitch { order: -1; margin-top: 0; }   /* pitch à esquerda, form à direita */
  .tg-aff-landing .tg-aff-card { position: sticky; top: 84px; max-width: 440px; }
}
@media (max-width: 520px) {
  .tg-aff-hero-title { font-size: 27px; }
  .tg-aff-br { display: none; }
}

/* ── Área principal ── */
.tg-aff-main {
  max-width: 720px; margin: 0 auto; padding: 24px 16px 40px;
}
/* Só o card de autenticação sobe sobre o hero (efeito de destaque).
   O painel do afiliado fica com espaçamento normal — sem sobreposição. */
.tg-aff-main > .tg-aff-card { margin-top: -46px; position: relative; z-index: 5; }
.tg-aff-loading { text-align: center; padding: 50px 0; color: #6B6158; }

/* ── Card de autenticação ── */
.tg-aff-card {
  background: #fff; border: 1px solid #EDE6DE; border-radius: 16px;
  box-shadow: 0 10px 34px rgba(0,0,0,.08); overflow: hidden; max-width: 460px; margin: 0 auto;
}
.tg-aff-tabs { display: flex; border-bottom: 1px solid #EDE6DE; }
.tg-aff-tab {
  flex: 1; padding: 15px; border: 0; background: #FAF7F3; cursor: pointer;
  font-size: 15px; font-weight: bold; color: #6B6158; transition: .15s;
}
.tg-aff-tab.on { background: #fff; color: var(--tg-aff-brand-dark); box-shadow: inset 0 -3px 0 var(--tg-aff-brand); }
#tg-aff-authbody { padding: 24px; }
#tg-aff-authbody h2 { margin: 0 0 6px; font-size: 20px; }
.tg-aff-lead { margin: 0 0 18px; color: #6B6158; font-size: 14px; line-height: 1.5; }

/* ── Formulários ── */
.tg-aff-form { display: flex; flex-direction: column; gap: 12px; }
.tg-aff-flabel { font-size: 13px; color: #6B6158; font-weight: bold; margin: 4px 0 -6px; }
.tg-aff-form input,
.tg-aff-linkrow input,
.tg-aff-pixkey, .tg-aff-pixtype, .tg-aff-select, .tg-aff-searchinp {
  width: 100%; padding: 13px 14px; border: 1.5px solid #E0D8CE !important; border-radius: 10px !important;
  font-size: 15px; background: #fff !important; color: #1A1108 !important; transition: border-color .15s;
  box-shadow: none !important;
}
.tg-aff-form input:focus, .tg-aff-linkrow input:focus,
.tg-aff-pixkey:focus, .tg-aff-pixtype:focus, .tg-aff-select:focus, .tg-aff-searchinp:focus {
  outline: none; border-color: var(--tg-aff-brand) !important;
}
.tg-aff-btn {
  display: block; width: 100%; padding: 14px !important; border: 0 !important; border-radius: 10px !important;
  cursor: pointer; background: var(--tg-aff-brand) !important; color: #fff !important;
  font-size: 16px !important; font-weight: bold !important; text-transform: none !important;
  letter-spacing: normal !important; box-shadow: none !important; transition: filter .15s;
}
.tg-aff-btn:hover { filter: brightness(1.06); background: var(--tg-aff-brand) !important; color: #fff !important; }
.tg-aff-btn:disabled { opacity: .6; cursor: default; }
.tg-aff-btn.small { display: inline-block; padding: 11px 18px !important; font-size: 14px !important; margin-top: 10px; width: auto; }
.tg-aff-link { display: inline-block; margin-top: 14px; color: var(--tg-aff-brand-dark); font-size: 14px; text-decoration: none; }
.tg-aff-link:hover { text-decoration: underline; }

.tg-aff-msg { padding: 11px 14px; border-radius: 10px; font-size: 14px; margin-bottom: 14px; }
.tg-aff-msg.err { background: #FDECEA; color: #B3261E; border: 1px solid #F5C6CB; }
.tg-aff-msg.ok  { background: #E6F4EA; color: #1E7E34; border: 1px solid #C3E6CB; }

/* ── Linha do PIX (tipo + chave) ── */
.tg-aff-pixrow { display: flex; gap: 8px; }
.tg-aff-pixtype { width: 130px; flex: 0 0 130px; }
.tg-aff-pixkey { flex: 1; }

/* ── Painel ── */
.tg-aff-welcome { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.tg-aff-welcome h2 { margin: 0 0 2px; font-size: 22px; }
.tg-aff-logout {
  border: 1.5px solid #E0D8CE; background: #fff; color: #6B6158; border-radius: 10px;
  padding: 9px 16px; cursor: pointer; font-size: 14px; font-weight: bold; white-space: nowrap;
}
.tg-aff-logout:hover { border-color: #c9302c; color: #c9302c; }

.tg-aff-linkbox {
  background: linear-gradient(135deg, var(--tg-aff-brand), var(--tg-aff-brand-dark));
  border-radius: 16px; padding: 20px; color: #fff; margin-bottom: 20px;
}
.tg-aff-linkbox label { display: block; font-size: 13px; opacity: .9; margin-bottom: 8px; font-weight: bold; }
.tg-aff-linkrow { display: flex; gap: 8px; }
.tg-aff-linkbox .tg-aff-linkrow input { border: 0; }
.tg-aff-copy {
  border: 0; border-radius: 10px; padding: 0 18px; cursor: pointer; white-space: nowrap;
  background: #1A1108; color: #fff; font-weight: bold; font-size: 14px;
}
.tg-aff-copy:hover { filter: brightness(1.3); }
.tg-aff-copy.small { padding: 8px 14px; font-size: 13px; background: var(--tg-aff-brand); }
.tg-aff-copy.small.ghost { background: transparent; color: var(--tg-aff-brand-dark); border: 1.5px solid #E0D8CE; }
.tg-aff-copy.small.ghost:hover { border-color: var(--tg-aff-brand); filter: none; }
.tg-aff-copy.done { background: #1E7E34 !important; color: #fff !important; }

/* Botão compartilhar (verde WhatsApp) */
.tg-aff-share {
  border: 0; border-radius: 10px; cursor: pointer; white-space: nowrap;
  background: #25D366; color: #fff; font-weight: bold; font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px; justify-content: center;
}
.tg-aff-share:hover { filter: brightness(1.05); }
.tg-aff-share.small { padding: 8px 12px; font-size: 13px; }
.tg-aff-linkbox .tg-aff-share { padding: 0 14px; }
.tg-aff-hint { margin: 12px 0 0; font-size: 13px; opacity: .92; line-height: 1.5; }
.tg-aff-hint code { background: rgba(255,255,255,.18); padding: 2px 6px; border-radius: 5px; }
.tg-aff-hint-dark { color: #6B6158; opacity: 1; }
.tg-aff-hint-dark code { background: #F2ECE4; }

/* ── Cards de estatística ── */
.tg-aff-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 20px; }
.tg-aff-stat { background: #fff; border: 1px solid #EDE6DE; border-radius: 14px; padding: 16px 14px; text-align: center; }
.tg-aff-stat-ico { font-size: 22px; }
.tg-aff-stat-val { font-size: 22px; font-weight: bold; margin: 4px 0 2px; color: var(--tg-aff-brand-dark); }
.tg-aff-stat-lbl { font-size: 12px; color: #6B6158; }

/* ── Painéis genéricos ── */
.tg-aff-panel { background: #fff; border: 1px solid #EDE6DE; border-radius: 16px; padding: 18px 20px; margin-bottom: 18px; }
.tg-aff-panel h3 { margin: 0 0 8px; font-size: 16px; }
.tg-aff-empty { color: #6B6158; font-size: 14px; margin: 0; padding: 14px 0; text-align: center; }

/* ── Saque ── */
.tg-aff-saque .tg-aff-btn { margin-top: 4px; }
.tg-aff-balance {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  background: #F4FBF6; border: 1px solid #CDEBD6; border-radius: 12px;
  padding: 12px 14px; margin-bottom: 12px;
}
.tg-aff-balance span { font-size: 13px; color: #4a6b55; font-weight: bold; }
.tg-aff-balance strong { font-size: 22px; color: #1E7E34; }
.tg-aff-saque-pending {
  background: #FFF6EC; border: 1px solid #F5D9BE; color: #8A4B00;
  border-radius: 12px; padding: 12px 14px; font-size: 13.5px; line-height: 1.5;
}

/* ── Gerador de link por produto ── */
.tg-aff-panel-primary { border: 2px solid var(--tg-aff-brand); box-shadow: 0 6px 20px rgba(0,0,0,.06); }
.tg-aff-feat {
  background: #FFF6EC; border: 1px solid #F5D9BE; color: #8A4B00;
  border-radius: 10px; padding: 10px 12px; font-size: 13px; margin: 4px 0 12px; line-height: 1.4;
}
.tg-aff-filters { display: flex; gap: 8px; margin: 12px 0 14px; }
.tg-aff-select { flex: 0 0 46%; }
.tg-aff-searchinp { flex: 1; }
/* A lista rola por dentro (max-height + overflow). O `position: relative` é
   ESSENCIAL: sem ele, num container de scroll `static` os itens que
   transbordam ainda somam no scrollHeight do <html>, criando um vazio enorme
   abaixo do rodapé ao abrir categorias com muitos produtos. */
.tg-aff-prodlist {
  display: flex; flex-direction: column; gap: 10px;
  max-height: 420px; overflow-y: auto;
  position: relative; contain: paint;
}
.tg-aff-prod {
  display: flex; align-items: center; gap: 12px; padding: 10px;
  border: 1px solid #F0EAE2; border-radius: 12px; background: #FDFBF9;
}
.tg-aff-prod-img { width: 52px; height: 52px; object-fit: cover; border-radius: 8px; flex: 0 0 52px; background: #fff; }
.tg-aff-prod-info { flex: 1; min-width: 0; }
.tg-aff-prod-actions { display: flex; flex-direction: column; gap: 6px; flex: 0 0 auto; }
.tg-aff-prod-actions .tg-aff-share, .tg-aff-prod-actions .tg-aff-copy { width: 100%; }
.tg-aff-prod-name { font-size: 14px; font-weight: bold; line-height: 1.3; }
.tg-aff-prod-price { font-size: 13px; color: var(--tg-aff-brand-dark); margin-top: 2px; }
.tg-aff-prod-price del { color: #9a8f83; font-weight: normal; }

/* ── Botão "Imagem p/ Story" ── */
.tg-aff-story {
  border: 0; border-radius: 10px; cursor: pointer; white-space: nowrap; width: 100%;
  background: #8250df; color: #fff; font-weight: bold; font-size: 13px; padding: 8px 12px;
}
.tg-aff-story:hover { filter: brightness(1.06); }

/* ── Mini gráfico de evolução (painel do afiliado) ── */
.tg-aff-minichart {
  display: flex; align-items: flex-end; gap: 3px; height: 90px; padding-top: 6px;
  border-bottom: 1px solid #F0EAE2; margin-bottom: 12px;
}
.tg-aff-cbar { flex: 1; min-height: 3px; background: var(--tg-aff-brand); border-radius: 3px 3px 0 0; opacity: .85; }
.tg-aff-cbar:hover { opacity: 1; }
.tg-aff-evostats { display: flex; gap: 10px; text-align: center; }
.tg-aff-evostats > div { flex: 1; background: #FAF7F3; border-radius: 10px; padding: 10px 6px; }
.tg-aff-evostats strong { display: block; font-size: 20px; color: var(--tg-aff-brand-dark); }
.tg-aff-evostats span { font-size: 11px; color: #6B6158; }

/* ── Modal da imagem de Story ── */
.tg-aff-modal {
  position: fixed; inset: 0; z-index: 99999; background: rgba(0,0,0,.72);
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.tg-aff-modal-box {
  background: #fff; border-radius: 16px; padding: 16px; max-width: 420px; width: 100%;
  max-height: 94vh; overflow-y: auto; text-align: center;
}
.tg-aff-modal-canvas {
  width: 100%; max-width: 300px; height: auto; border-radius: 12px;
  box-shadow: 0 6px 24px rgba(0,0,0,.18); display: block; margin: 0 auto 14px;
}
.tg-aff-modal-actions { display: flex; flex-direction: column; gap: 8px; }
.tg-aff-modal-actions .ghostbtn { background: #fff !important; color: var(--tg-aff-brand-dark) !important; border: 1.5px solid #E0D8CE !important; }
.tg-aff-modal-close {
  background: none; border: 0; color: #6B6158; cursor: pointer; font-size: 14px; padding: 8px; text-decoration: underline;
}

/* ── Tabela de comissões ── */
.tg-aff-tablewrap { overflow-x: auto; }
.tg-aff-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.tg-aff-table th { text-align: left; padding: 10px 12px; color: #6B6158; font-size: 12px; text-transform: uppercase; border-bottom: 2px solid #EDE6DE; white-space: nowrap; }
.tg-aff-table td { padding: 11px 12px; border-bottom: 1px solid #F2ECE4; white-space: nowrap; }
.tg-aff-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 12px; font-weight: bold; }
.tg-aff-badge.approved  { background: #FFF3CD; color: #856404; }
.tg-aff-badge.paid      { background: #D4EDDA; color: #145C2E; }
.tg-aff-badge.cancelled { background: #F8D7DA; color: #721C24; }

/* ── Footer ── */
.tg-aff-footer { background: #1A1108; color: #E8DFD5; margin-top: 20px; }
.tg-aff-footer-inner { max-width: 720px; margin: 0 auto; padding: 30px 20px; text-align: center; }
.tg-aff-footer-logo { max-height: 40px; width: auto; opacity: .95; margin-bottom: 10px; }
.tg-aff-footer-name { font-family: Georgia, serif; font-size: 20px; font-weight: bold; margin-bottom: 10px; }
.tg-aff-footer-links { display: flex; gap: 22px; justify-content: center; margin-bottom: 14px; }
.tg-aff-footer-links a { color: #fff; text-decoration: none; font-size: 14px; font-weight: bold; }
.tg-aff-footer-links a:hover { color: var(--tg-aff-brand); }
.tg-aff-footer-info { font-size: 12px; color: #A99E92; line-height: 1.6; margin: 0 0 10px; }
.tg-aff-footer-copy { font-size: 12px; color: #8C8175; margin: 0; }

/* ── Benefícios (tela de cadastro) ── */
.tg-aff-benefits {
  list-style: none; margin: 0 0 16px; padding: 12px 14px;
  background: #FBF7F2; border: 1px solid #EFE7DD; border-radius: 12px;
}
.tg-aff-benefits li { font-size: 13.5px; color: #3d342b; padding: 4px 0; line-height: 1.4; }

/* ── Kit de divulgação (legendas prontas) ── */
.tg-aff-cap {
  border: 1px solid #F0EAE2; border-radius: 12px; padding: 12px; background: #FDFBF9; margin-bottom: 10px;
}
.tg-aff-cap:last-child { margin-bottom: 0; }
.tg-aff-cap-txt { font-size: 13px; line-height: 1.5; margin: 0 0 10px; color: #3d342b; word-break: break-word; }
.tg-aff-cap-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.tg-aff-cap-actions .tg-aff-share, .tg-aff-cap-actions .tg-aff-copy { flex: 1; min-width: 130px; }

/* ── Layout do painel: coluna única no mobile, 2 colunas no desktop ── */
.tg-aff-col { display: block; }

@media (min-width: 900px) {
  .tg-aff-main { max-width: 1140px; }
  .tg-aff-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 22px; align-items: start; }
  .tg-aff-hero { padding: 48px 20px 40px; }
}

@media (max-width: 520px) {
  .tg-aff-welcome { flex-direction: column; align-items: flex-start; }
  .tg-aff-filters { flex-direction: column; }
  .tg-aff-select, .tg-aff-searchinp { flex: 1 1 auto; }
  .tg-aff-pixtype { flex: 0 0 116px; width: 116px; }
  .tg-aff-hero-title { font-size: 25px; }
}
