/* ==========================================================================
   JANELA "TABELA DE INVESTIMENTO" (aberta pelo botão da seção de anúncios)
   Arquivo independente: não altera nenhum outro estilo do site.
   ========================================================================== */
.ti-overlay {
  --ti-bg: #0a1118;
  --ti-surface: #111d27;
  --ti-surface-2: #182835;
  --ti-surface-3: #1e3141;
  --ti-text: #f8fafc;
  --ti-text-2: #cbd5e1;
  --ti-text-3: #94a3b8;
  --ti-line: rgba(255, 255, 255, .08);
  --ti-line-2: rgba(255, 255, 255, .14);
  --ti-gold: #e59838;
  --ti-gold-hi: #f3a949;
  --ti-wa: #25d366;
  --ti-wa-ink: #05210f;
  --ti-ease: cubic-bezier(.16, 1, .3, 1);

  position: fixed;
  inset: 0;
  z-index: 2500;
  display: grid;
  place-items: center;
  padding: 28px 84px;
  background: rgba(5, 9, 13, .78);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  opacity: 0;
  visibility: hidden;
  transition: opacity .35s var(--ti-ease), visibility .35s;
  font-family: 'Plus Jakarta Sans', system-ui, sans-serif;
  color: var(--ti-text);
  line-height: 1.55;
}
.ti-overlay.is-open { opacity: 1; visibility: visible; }
.ti-overlay *, .ti-overlay *::before, .ti-overlay *::after { box-sizing: border-box; }

html.ti-lock, html.ti-lock body { overflow: hidden; }

.ti-shell { position: relative; width: min(1120px, 100%); }

.ti-modal {
  width: 100%;
  max-height: calc(100vh - 56px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: none;
  background: var(--ti-surface);
  border: 1px solid var(--ti-line-2);
  border-radius: 30px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .8);
  transform: translateY(22px) scale(.985);
  transition: transform .5s var(--ti-ease);
}
.ti-modal::-webkit-scrollbar { display: none; }
.ti-overlay.is-open .ti-modal { transform: none; }

/* ---- setas de rolagem (por fora do modal) ---- */
.ti-nav {
  position: absolute;
  left: calc(100% + 16px);
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.ti-nav button {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1px solid var(--ti-line-2);
  background: var(--ti-surface-2);
  color: var(--ti-text);
  cursor: pointer;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 24px -12px rgba(0, 0, 0, .7);
  transition: background .25s var(--ti-ease), color .25s, transform .25s var(--ti-ease), opacity .25s, border-color .25s;
  touch-action: manipulation;
}
.ti-nav button svg { width: 22px; height: 22px; }
.ti-nav button:hover:not(:disabled) { background: var(--ti-gold); color: #0d1720; border-color: var(--ti-gold); transform: scale(1.07); }
.ti-nav button:active:not(:disabled) { transform: scale(.96); }
.ti-nav button:disabled { opacity: .25; cursor: default; }

/* ---- cabeçalho ---- */
.ti-head { position: relative; padding: 44px 56px 30px; text-align: center; }
.ti-head h2 {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: clamp(1.9rem, 3.2vw, 2.6rem);
  letter-spacing: -.02em;
  line-height: 1.1;
  text-wrap: balance;
  margin: 0;
  color: var(--ti-text);
}
.ti-head p { margin: 12px auto 0; max-width: 56ch; color: var(--ti-text-2); text-wrap: balance; font-size: 1rem; }
.ti-close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--ti-surface-2);
  border: 1px solid var(--ti-line-2);
  color: var(--ti-text);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: background .25s, transform .25s var(--ti-ease), color .25s;
}
.ti-close:hover { background: var(--ti-gold); color: #0d1720; transform: rotate(90deg); }
.ti-close svg { width: 18px; height: 18px; }

.ti-overlay :focus-visible { outline: 2px solid var(--ti-gold); outline-offset: 3px; }

/* ---- cards de formato ---- */
.ti-formats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; padding: 0 40px 12px; }
.ti-fmt {
  background: var(--ti-surface-2);
  border: 1px solid var(--ti-line);
  border-radius: 22px;
  padding: 14px 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: border-color .3s var(--ti-ease), transform .3s var(--ti-ease);
}
.ti-fmt:hover { border-color: rgba(229, 152, 56, .45); transform: translateY(-3px); }

.ti-locator {
  display: grid;
  grid-template-columns: 1.22fr 1fr 1fr 1fr;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  height: 96px;
  background: var(--ti-bg);
  border-radius: 14px;
  padding: 8px;
}
.ti-locator i { border-radius: 5px; background: rgba(255, 255, 255, .07); }
.ti-locator i:nth-child(1) { grid-column: 1; grid-row: 1 / span 2; }
.ti-locator i:nth-child(2) { grid-column: 2 / span 3; grid-row: 1; }
.ti-locator i:nth-child(3) { grid-column: 2; grid-row: 2; }
.ti-locator i:nth-child(4) { grid-column: 3 / span 2; grid-row: 2; }
.ti-locator i.on { background: linear-gradient(135deg, var(--ti-gold-hi), var(--ti-gold)); box-shadow: 0 6px 14px -6px rgba(229, 152, 56, .7); }

.ti-fmt h3 {
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.28rem;
  line-height: 1.15;
  letter-spacing: -.01em;
  margin: 0;
  color: var(--ti-text);
}
.ti-dim {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  margin-top: -6px;
  font-size: .8rem;
  font-weight: 600;
  color: var(--ti-text-2);
  font-variant-numeric: tabular-nums;
  padding: 5px 11px;
  border-radius: 999px;
  background: var(--ti-bg);
  border: 1px solid var(--ti-line);
}
.ti-dim svg { width: 13px; height: 13px; color: var(--ti-gold); flex-shrink: 0; }

.ti-prices { display: grid; gap: 8px; }
.ti-price { background: var(--ti-bg); border: 1px solid var(--ti-line); border-radius: 14px; padding: 12px 14px; }
.ti-price small { display: block; font-size: .66rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; color: var(--ti-text-3); }
.ti-price b {
  display: block;
  font-family: 'Outfit', sans-serif;
  font-weight: 700;
  font-size: 1.55rem;
  letter-spacing: -.015em;
  line-height: 1.2;
  margin-top: 2px;
  font-variant-numeric: tabular-nums;
  color: var(--ti-text);
}
.ti-price.hi { border-color: rgba(229, 152, 56, .4); background: linear-gradient(180deg, rgba(229, 152, 56, .12), rgba(229, 152, 56, .03)); }
.ti-price.hi b { color: var(--ti-gold-hi); }

.ti-want {
  margin-top: auto;
  justify-content: center;
  background: var(--ti-wa);
  color: var(--ti-wa-ink);
  box-shadow: 0 8px 16px -8px rgba(37, 211, 102, .55);
  font: 700 .86rem 'Plus Jakarta Sans', sans-serif;
  padding: 12px 16px;
  border-radius: 999px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  transition: transform .25s var(--ti-ease), background .25s;
}
.ti-want:hover { background: #3be07c; transform: translateY(-1px); color: var(--ti-wa-ink); }
.ti-want svg { width: 17px; height: 17px; flex-shrink: 0; }

.ti-note { padding: 8px 56px 0; text-align: center; font-size: .78rem; color: var(--ti-text-3); margin: 0; }

/* ---- como funciona ---- */
.ti-how { margin: 34px 40px 0; border-top: 1px solid var(--ti-line); padding-top: 38px; }
.ti-how h3 { font-family: 'Outfit', sans-serif; font-weight: 800; font-size: 1.75rem; letter-spacing: -.015em; text-align: center; margin: 0; color: var(--ti-text); }
.ti-how > p { text-align: center; color: var(--ti-text-2); margin: 8px auto 28px; max-width: 58ch; text-wrap: balance; }
.ti-paths { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ti-path { background: var(--ti-surface-2); border: 1px solid var(--ti-line); border-radius: 22px; padding: 26px 28px; }
.ti-path h4 { font-family: 'Outfit', sans-serif; font-weight: 700; font-size: 1.2rem; margin: 0 0 18px; display: flex; align-items: center; gap: 10px; color: var(--ti-text); }
.ti-path h4 svg { width: 22px; height: 22px; color: var(--ti-gold); flex-shrink: 0; }
.ti-path ol { list-style: none; display: grid; gap: 16px; counter-reset: ti-s; margin: 0; padding: 0; }
.ti-path li { counter-increment: ti-s; position: relative; padding-left: 44px; color: var(--ti-text-2); font-size: .95rem; }
.ti-path li::before {
  content: counter(ti-s);
  position: absolute;
  left: 0;
  top: -1px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font: 700 .85rem 'Outfit', sans-serif;
  color: #0d1720;
  background: var(--ti-gold);
}
.ti-path li:not(:last-child)::after { content: ""; position: absolute; left: 14.5px; top: 32px; bottom: -14px; width: 1px; background: var(--ti-line-2); }
.ti-path li b { color: var(--ti-text); font-weight: 600; }

/* ---- faixa final ---- */
.ti-cta {
  margin: 28px 40px 40px;
  border-radius: 24px;
  padding: 26px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: wrap;
  background: linear-gradient(135deg, #1c3a30 0%, #15291f 100%);
  border: 1px solid rgba(37, 211, 102, .25);
}
.ti-cta strong { font-family: 'Outfit', sans-serif; font-size: 1.35rem; font-weight: 700; display: block; letter-spacing: -.01em; color: var(--ti-text); }
.ti-cta span { color: var(--ti-text-2); font-size: .92rem; }
.ti-cta .ti-want { margin: 0; padding: 14px 24px; font-size: .92rem; }

@media (max-width: 1040px) {
  .ti-formats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  .ti-overlay { padding: 0; align-items: end; }
  .ti-shell { width: 100%; }
  .ti-nav { display: none; }
  .ti-modal { border-radius: 26px 26px 0 0; max-height: 94vh; scrollbar-width: auto; }
  .ti-modal::-webkit-scrollbar { display: block; }
  .ti-head { padding: 40px 24px 24px; }
  .ti-formats { padding: 0 16px 8px; gap: 12px; grid-template-columns: 1fr; }
  .ti-note { padding: 8px 24px 0; }
  .ti-how { margin: 28px 16px 0; }
  .ti-paths { grid-template-columns: 1fr; }
  .ti-cta { margin: 24px 16px 28px; padding: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .ti-overlay, .ti-modal, .ti-fmt, .ti-want, .ti-close, .ti-nav button { transition: none; }
}

/* O botão da seção de anúncios deixou de ser um link: mantém a mãozinha do mouse */
#btn-anuncio-tabela { cursor: pointer; }
