:root {
  --bg: #f4f7fb;
  --surface: #ffffff;
  --surface-2: #eef3f9;
  --text: #142033;
  --muted: #65728a;
  --primary: #0c63e7;
  --primary-dark: #084bb1;
  --accent: #ffb000;
  --border: #dfe6ef;
  --danger: #c62828;
  --shadow: 0 14px 35px rgba(20, 32, 51, .09);
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
}
a { color: inherit; }
img { max-width: 100%; }
button, input, select { font: inherit; }

.container { width: min(var(--max), calc(100% - 32px)); margin: 0 auto; }
.sr-only { position:absolute; width:1px; height:1px; padding:0; margin:-1px; overflow:hidden; clip:rect(0,0,0,0); white-space:nowrap; border:0; }

.topbar { background: #0b1930; color: #d8e1ef; font-size: .88rem; }
.topbar .container { display:flex; align-items:center; justify-content:space-between; min-height:36px; gap:16px; }

.site-header { position: sticky; top:0; z-index:20; background: rgba(255,255,255,.94); backdrop-filter: blur(14px); border-bottom:1px solid var(--border); }
.header-inner { min-height:76px; display:flex; align-items:center; gap:28px; }
.brand { display:flex; align-items:center; gap:12px; font-weight:900; text-decoration:none; letter-spacing:-.03em; }
.brand-mark { width:42px; height:42px; border-radius:13px; display:grid; place-items:center; color:#fff; background:linear-gradient(135deg,var(--primary),#0bc4e6); box-shadow:0 8px 20px rgba(12,99,231,.25); }
.brand-text small { display:block; color:var(--muted); font-weight:700; font-size:.68rem; letter-spacing:.12em; text-transform:uppercase; }
.nav { display:flex; gap:7px; flex:1; }
.nav a { text-decoration:none; color:#344158; font-weight:750; padding:10px 12px; border-radius:10px; }
.nav a:hover, .nav a.active { background:#edf4ff; color:var(--primary); }
.header-actions { display:flex; align-items:center; gap:8px; }
.icon-btn { border:1px solid var(--border); background:#fff; border-radius:12px; width:42px; height:42px; cursor:pointer; }

.hero { padding:46px 0 28px; }
.hero-grid { display:grid; grid-template-columns: 1.35fr .65fr; gap:24px; }
.hero-main { min-height:390px; border-radius:26px; overflow:hidden; position:relative; box-shadow:var(--shadow); background:#142033; }
.hero-main img { width:100%; height:100%; object-fit:cover; position:absolute; inset:0; opacity:.78; }
.hero-overlay { position:absolute; inset:0; background:linear-gradient(0deg,rgba(4,12,25,.95),rgba(4,12,25,.08) 70%); }
.hero-content { position:absolute; left:0; right:0; bottom:0; padding:34px; color:#fff; }
.kicker { display:inline-flex; align-items:center; gap:7px; text-transform:uppercase; letter-spacing:.12em; font-size:.72rem; font-weight:900; color:#cce0ff; }
.hero-content h1 { font-size:clamp(2rem,4vw,3.45rem); line-height:1.02; margin:10px 0 14px; max-width:900px; letter-spacing:-.045em; }
.hero-content p { max-width:760px; color:#e7edf7; margin:0; font-size:1.08rem; }
.hero-side { display:grid; gap:16px; }
.mini-card { display:grid; grid-template-columns:125px 1fr; min-height:118px; border-radius:var(--radius); overflow:hidden; background:var(--surface); box-shadow:0 8px 25px rgba(20,32,51,.07); text-decoration:none; }
.mini-card img { width:100%; height:100%; object-fit:cover; }
.mini-card-content { padding:15px; }
.mini-card h3 { margin:5px 0; line-height:1.2; font-size:1rem; }
.mini-card time { color:var(--muted); font-size:.78rem; }

.section { padding:28px 0 48px; }
.section-head { display:flex; align-items:end; justify-content:space-between; gap:18px; margin-bottom:20px; }
.section-head h2 { margin:0; font-size:clamp(1.55rem,3vw,2.25rem); letter-spacing:-.035em; }
.section-head p { margin:3px 0 0; color:var(--muted); }

.toolbar { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); padding:14px; display:flex; gap:12px; align-items:center; flex-wrap:wrap; margin-bottom:22px; }
.search { flex:1 1 280px; display:flex; align-items:center; gap:10px; background:var(--surface-2); border-radius:12px; padding:0 14px; }
.search input { width:100%; border:0; background:transparent; padding:12px 0; outline:0; }
.category-select { border:1px solid var(--border); border-radius:12px; padding:11px 13px; background:#fff; color:var(--text); }

.news-grid { display:grid; grid-template-columns:repeat(3, minmax(0,1fr)); gap:22px; }
.news-card { background:var(--surface); border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; box-shadow:0 8px 24px rgba(20,32,51,.055); transition:.22s ease; display:flex; flex-direction:column; }
.news-card:hover { transform:translateY(-4px); box-shadow:var(--shadow); }
.card-image-wrap { position:relative; aspect-ratio:16/9; overflow:hidden; background:#dce6f2; }
.card-image-wrap img { width:100%; height:100%; object-fit:cover; transition:.35s; }
.news-card:hover img { transform:scale(1.035); }
.category-badge { position:absolute; left:14px; top:14px; background:rgba(7,28,57,.88); color:#fff; border-radius:999px; padding:6px 10px; font-size:.72rem; font-weight:850; backdrop-filter:blur(7px); }
.card-content { padding:19px; display:flex; flex-direction:column; flex:1; }
.card-content h3 { margin:4px 0 10px; line-height:1.28; letter-spacing:-.02em; font-size:1.18rem; }
.card-content h3 a { text-decoration:none; }
.card-content p { color:var(--muted); margin:0 0 14px; }
.card-meta { margin-top:auto; display:flex; justify-content:space-between; align-items:center; gap:12px; color:var(--muted); font-size:.78rem; }
.read-more { color:var(--primary); font-weight:850; text-decoration:none; white-space:nowrap; }

.category-strip { display:flex; gap:9px; overflow:auto; padding-bottom:8px; scrollbar-width:thin; }
.category-chip { border:1px solid var(--border); background:#fff; border-radius:999px; padding:9px 14px; white-space:nowrap; text-decoration:none; font-weight:750; color:#425069; }
.category-chip:hover, .category-chip.active { background:var(--primary); color:#fff; border-color:var(--primary); }

.article-layout { display:grid; grid-template-columns:minmax(0,1fr) 330px; gap:32px; padding:42px 0; }
.article-shell { background:#fff; border:1px solid var(--border); border-radius:24px; padding:clamp(24px,5vw,48px); box-shadow:var(--shadow); }
.article-shell h1 { font-size:clamp(2rem,5vw,3.6rem); line-height:1.08; letter-spacing:-.045em; margin:12px 0 15px; }
.article-lead { font-size:1.16rem; color:#53617a; }
.article-meta { display:flex; flex-wrap:wrap; gap:14px; color:var(--muted); font-size:.9rem; margin:18px 0 26px; }
.article-cover { width:100%; max-height:610px; object-fit:cover; border-radius:18px; margin:5px 0 28px; }
.article-body {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.12rem;
  line-height: 1.85;
  color: #243149;
}

.article-body p {
  margin: 0 0 1.65rem;
}

.article-body p + p {
  margin-top: 0.4rem;
}

.article-body h2 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.75rem;
  line-height: 1.25;
  margin: 2.2rem 0 1rem;
}

.article-body h3 {
  font-family: Inter, system-ui, sans-serif;
  font-size: 1.4rem;
  line-height: 1.3;
  margin: 2rem 0 1rem;
}

.article-body ul,
.article-body ol {
  margin: 1.2rem 0 1.8rem;
  padding-left: 2rem;
}

.article-body li {
  margin-bottom: 0.65rem;
}

.article-body blockquote {
  margin: 2rem 0;
  padding: 1rem 1.4rem;
  border-left: 4px solid var(--primary);
  background: #f5f8fc;
  border-radius: 0 12px 12px 0;
  font-style: italic;
}

.article-body strong {
  font-weight: 700;
}

.article-body img {
  display: block;
  width: 100%;
  height: auto;
  margin: 2rem auto;
  border-radius: 14px;
}
.article-body h2, .article-body h3 { font-family:Inter,system-ui,sans-serif; line-height:1.2; margin-top:1.7em; }
.article-body a { color:var(--primary); }
.article-body img { border-radius:14px; height:auto; }
.source-note { border-left:4px solid var(--accent); background:#fff8e8; padding:15px 18px; border-radius:0 12px 12px 0; margin:28px 0; }
.sidebar-card { background:#fff; border:1px solid var(--border); border-radius:18px; padding:20px; margin-bottom:18px; }
.sidebar-card h3 { margin-top:0; }

.ad-slot { min-height:110px; border:1px dashed #aeb9ca; background:repeating-linear-gradient(-45deg,#f7f9fc,#f7f9fc 10px,#eef2f7 10px,#eef2f7 20px); border-radius:16px; display:grid; place-items:center; color:#6c7788; text-align:center; padding:20px; }

.empty, .error-box, .loading { background:#fff; border:1px solid var(--border); border-radius:16px; padding:28px; text-align:center; grid-column:1/-1; }
.error-box { color:var(--danger); border-color:#f2c4c4; background:#fff8f8; }
.skeleton { min-height:330px; border-radius:var(--radius); background:linear-gradient(90deg,#e9eef5 25%,#f7f9fb 40%,#e9eef5 60%); background-size:300% 100%; animation:shimmer 1.35s infinite; }
@keyframes shimmer { to { background-position:-300% 0; } }

.pagination { display:flex; justify-content:center; gap:8px; margin-top:28px; }
.btn { border:0; border-radius:12px; padding:11px 17px; font-weight:850; cursor:pointer; text-decoration:none; display:inline-flex; align-items:center; justify-content:center; gap:8px; }
.btn-primary { background:var(--primary); color:#fff; }
.btn-primary:hover { background:var(--primary-dark); }
.btn-secondary { background:#fff; color:var(--text); border:1px solid var(--border); }
.btn:disabled { opacity:.5; cursor:not-allowed; }

.site-footer { background:#0b1930; color:#dfe7f2; padding:50px 0 20px; margin-top:48px; }
.footer-grid { display:grid; grid-template-columns:1.4fr repeat(2,1fr); gap:34px; }
.footer-grid h3 { color:#fff; }
.footer-grid a { display:block; color:#b7c5d8; text-decoration:none; margin:7px 0; }
.footer-bottom { margin-top:36px; padding-top:18px; border-top:1px solid rgba(255,255,255,.12); color:#9eb0c8; font-size:.85rem; display:flex; justify-content:space-between; gap:16px; }

@media (max-width: 920px) {
  .hero-grid, .article-layout { grid-template-columns:1fr; }
  .news-grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
  .nav { display:none; }
  .hero-side { grid-template-columns:repeat(2,1fr); }
  .mini-card { grid-template-columns:110px 1fr; }
}
@media (max-width: 640px) {
  .topbar { display:none; }
  .header-inner { min-height:66px; }
  .brand-text small { display:none; }
  .hero { padding-top:24px; }
  .hero-main { min-height:430px; }
  .hero-content { padding:24px; }
  .hero-side, .news-grid, .footer-grid { grid-template-columns:1fr; }
  .mini-card { grid-template-columns:120px 1fr; }
  .section-head { align-items:start; flex-direction:column; }
  .article-shell { border-radius:16px; }
  .footer-bottom { flex-direction:column; }
}


/* Produtos afiliados — inserções publicitárias discretas e rotativas */
.affiliate-slot { position:relative; min-height:118px; }
.affiliate-slot[hidden] { display:none!important; }
.affiliate-slot-changing .affiliate-card { animation:affiliateReveal .46s ease both; }
@keyframes affiliateReveal { from { opacity:.25; transform:translateY(5px); } to { opacity:1; transform:none; } }
.affiliate-card { position:relative; display:grid; grid-template-columns:118px minmax(0,1fr); gap:16px; width:100%; min-height:118px; padding:12px; color:inherit; text-decoration:none; background:linear-gradient(135deg,#fff,#f7faff); border:1px solid #dfe6f0; border-radius:17px; box-shadow:0 8px 24px rgba(20,32,51,.055); overflow:hidden; transition:transform .2s ease,box-shadow .2s ease,border-color .2s ease; }
.affiliate-card:hover { transform:translateY(-2px); box-shadow:0 14px 34px rgba(20,32,51,.1); border-color:#b9c9df; }
.affiliate-disclosure { position:absolute; top:8px; right:10px; z-index:2; padding:3px 7px; border-radius:999px; background:rgba(255,255,255,.9); color:#758096; font-size:.62rem; font-weight:800; letter-spacing:.035em; }
.affiliate-image-wrap { min-height:94px; border-radius:12px; background:#fff; overflow:hidden; display:grid; place-items:center; }
.affiliate-image-wrap img { width:100%; height:100%; max-height:116px; object-fit:contain; }
.affiliate-content { min-width:0; display:flex; flex-direction:column; justify-content:center; padding:5px 4px 2px 0; }
.affiliate-store { color:var(--primary); font-size:.68rem; font-weight:900; text-transform:uppercase; letter-spacing:.075em; margin-bottom:4px; }
.affiliate-content strong { font-size:.96rem; line-height:1.28; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.affiliate-content p { margin:5px 0 7px; color:#68758a; font-size:.78rem; line-height:1.35; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; }
.affiliate-footer { display:flex; justify-content:space-between; align-items:center; gap:10px; margin-top:auto; font-size:.78rem; }
.affiliate-footer span { color:#1b2638; font-weight:850; }
.affiliate-footer b { color:var(--primary); white-space:nowrap; }
.affiliate-card-compact { grid-template-columns:86px minmax(0,1fr); min-height:104px; }
.affiliate-card-compact .affiliate-image-wrap { min-height:78px; }
.affiliate-card-compact .affiliate-content p { display:none; }
.affiliate-home-banner { width:min(100%,390px); }
.affiliate-home-inline { margin-top:26px; }
.affiliate-article-end { margin:26px 0 0; }
@media (max-width:700px) {
  .affiliate-home-banner { width:100%; }
  .affiliate-card { grid-template-columns:92px minmax(0,1fr); }
  .affiliate-disclosure { font-size:.56rem; }
}

/* Conteúdo editorial enriquecido */
.article-body figure { margin:2rem 0; }
.article-body figure img { width:100%; height:auto; display:block; border-radius:14px; }
.article-body figcaption { margin-top:.65rem; color:#6b778c; font-size:.86rem; text-align:center; }
.article-video { margin:2rem 0; }
.article-video iframe { width:100%; aspect-ratio:16/9; display:block; border:0; border-radius:14px; background:#0f172a; }
.article-editorial-sources { margin-top:2rem; padding:1rem 1.2rem; border:1px solid #e2e8f0; border-radius:14px; background:#f8fafc; }
.article-editorial-sources h3 { margin:0 0 .6rem; font:800 1rem/1.2 system-ui,-apple-system,"Segoe UI",sans-serif; color:#16233a; }
.article-editorial-sources p { margin:0; color:#56647a; font-size:.92rem; line-height:1.6; white-space:pre-wrap; }

/* Landing page de afiliados / TikTok Ads */
.offer-page{padding:56px 20px 90px}.offer-loading{padding:60px 0;text-align:center;color:var(--muted)}
.offer-landing-card{display:grid;grid-template-columns:minmax(280px,.95fr) minmax(320px,1.05fr);gap:42px;align-items:center;max-width:1080px;margin:0 auto;padding:34px;background:#fff;border:1px solid var(--border);border-radius:26px;box-shadow:0 18px 55px rgba(20,32,51,.08)}
.offer-media{display:flex;align-items:center;justify-content:center;min-height:420px;background:linear-gradient(135deg,#f8fafc,#eef4fb);border-radius:20px;overflow:hidden}.offer-media img{width:100%;max-height:520px;object-fit:contain}
.offer-copy h1{margin:12px 0 14px;font-size:clamp(2rem,4vw,3.3rem);line-height:1.04}.offer-store{margin:10px 0 0;color:var(--primary);font-weight:800;text-transform:uppercase;letter-spacing:.08em;font-size:.85rem}
.offer-description{color:var(--muted);font-size:1.08rem;line-height:1.7}.offer-price{margin:22px 0;font-size:2rem;font-weight:900;color:var(--text)}
.offer-cta{display:inline-flex;align-items:center;justify-content:center;width:100%;min-height:58px;padding:14px 22px;border-radius:14px;background:var(--primary);color:#fff;font-weight:900;font-size:1.05rem;text-decoration:none;box-shadow:0 12px 28px rgba(12,99,231,.22);transition:transform .18s ease,box-shadow .18s ease}.offer-cta:hover{transform:translateY(-2px);box-shadow:0 16px 34px rgba(12,99,231,.28)}
.offer-disclaimer{margin:18px 0 0;color:#6b7280;font-size:.86rem;line-height:1.55}@media(max-width:820px){.offer-landing-card{grid-template-columns:1fr;padding:20px;gap:24px}.offer-media{min-height:280px}}
