/*
Theme Name:   Coin360 Child
Theme URI:    https://coin360.com.br
Description:  Tema filho do GeneratePress — portal de criptomoedas com preços em tempo real, mercado top 100, calculadora e SEO otimizado.
Author:       Coin360
Author URI:   https://coin360.com.br
Template:     generatepress
Version:      1.1.0
Requires at least: 5.8
Tested up to: 6.5
Requires PHP: 7.4
License:      Proprietary
Text Domain:  coin360
Tags:         cryptocurrency, finance, news, portal, seo
*/

/* === RESET & BASE === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --accent:       #E8500A;
  --accent-light: #FEF0EA;
  --accent-border:#FCC9A8;
  --accent-dark:  #B83C00;
  --bg:           #F5F4F1;
  --white:        #FFFFFF;
  --dark:         #111111;
  --text:         #111111;
  --text-muted:   #666666;
  --text-faint:   #999999;
  --border:       #E5E2D9;
  --border-light: #F0EDE5;
  --surface:      #F5F4F1;
  --green:        #22C55E;
  --red:          #EF4444;
  --font-title: 'Sora', system-ui, sans-serif;
  --font-body: 'DM Sans', system-ui, sans-serif;
  --font-mono: 'DM Mono', ui-monospace, monospace;
  --radius:       8px;
  --radius-lg:    12px;
  --radius-xl:    16px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  overflow-x: hidden;
  scrollbar-gutter: stable; /* evita que o scrollbar cause assimetria */
}

body {
  background: var(--bg);
  font-family: 'DM Sans', system-ui, sans-serif;
  font-weight: 400;
  font-size: 17px;
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  max-width: 100vw;
}

/* ── Padding lateral mobile global ──────────────────────────
   Define --mp como referência única para todos os templates.
   Todos os blocos de conteúdo usam padding: 0 var(--mp).
──────────────────────────────────────────────────────────── */
:root { --mp: 16px; }
@media (max-width: 480px) { :root { --mp: 14px; } }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; display: block; }
button { cursor: pointer; font-family: var(--font-body); }
ul, ol { list-style: none; }

/* === TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
  color: var(--text);
}

p { line-height: 1.7; }

/* === UTILITIES === */
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }
.up { color: var(--green) !important; }
.dn { color: var(--red) !important; }
.text-muted { color: var(--text-muted); }
.text-accent { color: var(--accent); }
.sr-only { position: absolute; left: -9999px; }

/* === GENERATEPRESS OVERRIDES === */
/* Ocultar header/nav padrão do GP — usamos o nosso próprio */
.site-header,
#masthead,
.header-navigation,
.main-navigation,
.header-widget,

.mobile-bar-items,
.navigation-search { display: none !important; }

/* Remover padding/margin do GP que interfere */
.site-content,
.content-area,
.inside-site-content { padding: 0 !important; margin: 0 !important; max-width: 100% !important; }

.site-main { padding: 0 !important; }

/* ── Alinhamento mobile global — aplica em TODAS as páginas ────────────
   Garante que nenhum elemento interno vaze além da viewport.
──────────────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  /* Nenhuma imagem vaza */
  img, video, iframe, embed, object { max-width: 100% !important; }

  /* Tabelas com scroll horizontal */
  .entry-content table,
  .sa-content table,
  .wp-block-table { display: block; overflow-x: auto; -webkit-overflow-scrolling: touch; max-width: 100%; }

  /* Blocos Gutenberg — alinhar com o conteúdo */
  .wp-block-group,
  .wp-block-columns,
  .wp-block-cover,
  .wp-block-media-text { max-width: 100% !important; }

  /* Qualquer elemento com padding lateral hardcoded > 16px — normalizar */
  .entry-content > *,
  .sa-content > *,
  .post-content > * { max-width: 100%; overflow-wrap: break-word; word-break: break-word; }
}

/* Single post — zerar TODOS os wrappers do GP */
body.single .inside-container,
body.single .grid-container,
body.single .inside-site-content,
body.single .content-area,
body.single #primary,
body.single .site-main,
body.single .inside-article,
body.single article.post,
body.single .entry-content,
body.single .entry-header,
body.single .entry-footer {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  display: block !important;
  box-sizing: border-box !important;
}

/* Garantir box-sizing em todo o single */
body.single *,
body.single *::before,
body.single *::after {
  box-sizing: border-box;
}

/* Barra branca do #page do GP — zerar background e padding sem afetar conteúdo */
#page { background: transparent !important; padding-bottom: 0 !important; }

/* Footer GP — ocultamos e usamos o nosso */
.site-footer,
#colophon { display: none !important; }

/* === TICKER === */
.coin360-ticker {
  background: var(--dark);
  overflow: hidden;
  padding: 6px 0;
  position: sticky;
  top: 0;
  z-index: 300;
  width: 100%;
  max-width: 100%;
  contain: layout style; /* removido 'size' do strict — evita corte vertical */
  height: 32px;          /* altura ligeiramente maior para acomodar DM Mono */
  box-sizing: border-box;
  line-height: 1;
}
.ticker-track {
  display: flex;
  align-items: center;
  gap: 32px;
  white-space: nowrap;
  animation: tickerScroll 40s linear infinite;
  will-change: transform;
  height: 100%;
}
.ticker-track:hover { animation-play-state: paused; }
.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  line-height: 1;
  vertical-align: middle;
  /* evita que texto longo cause blur por subpixel */
  transform: translateZ(0);
  -webkit-font-smoothing: antialiased;
}
.ticker-item .ticker-sym {
  color: #999;
  font-weight: 500;
  font-size: 10px;
  letter-spacing: 0.02em;
}
.ticker-item .ticker-chg { font-size: 10px; }
@keyframes tickerScroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === NAVBAR === */
.site-logo {
  flex-shrink: 0;
}

.site-logo img {
  height: 34px;
  width: auto;
  display: block;
  object-fit: contain;
}
.main-nav { /* neutralizado — usar #main-nav */ }
.main-nav ul { /* neutralizado */ }
/* .main-nav a — neutralizado */
/* .main-nav hover — neutralizado */
.nav-cta-btn {
  background: var(--accent);
  color: var(--white) !important;
  border-radius: 7px;
  padding: 7px 15px !important;
  font-weight: 700 !important;
}
.nav-cta-btn:hover { background: var(--accent-dark) !important; color: var(--white) !important; }
.menu-toggle { /* neutralizado — usar #menu-toggle */ }

/* === HERO === */
.hero-section {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 24px 20px;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 24px;
  max-width: 1140px;
  margin: 0 auto;
}
.hero-live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  color: var(--accent-dark);
  font-size: 9.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin-bottom: 12px;
}
.live-dot {
  width: 6px;
  height: 6px;
  background: var(--accent);
  border-radius: 50%;
  animation: livePulse 1.4s ease infinite;
}
@keyframes livePulse { 0%,100%{opacity:1}50%{opacity:.15} }
.hero-title {
  font-size: 28px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--text);
  margin-bottom: 10px;
}
.hero-title .highlight { color: var(--accent); }
.hero-excerpt {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.75;
  margin-bottom: 14px;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 11px;
  color: var(--text-faint);
  flex-wrap: wrap;
}
.hero-author-avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  font-weight: 700;
  color: var(--white);
  flex-shrink: 0;
}
.hero-meta strong { color: #555; font-weight: 600; }
.hero-cat-pill {
  background: var(--accent-light);
  color: var(--accent-dark);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 9.5px;
  font-weight: 700;
  border: 1px solid var(--accent-border);
}
.hero-thumbnail {
  background: #EEE9E0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  height: 190px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}
.hero-thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: var(--white);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  text-transform: uppercase;
  letter-spacing: .5px;
}

/* === MARKET STRIP === */
.market-strip {
  background: #FAFAF8;
  border-bottom: 1px solid var(--border);
  padding: 14px 20px;
}
.market-strip-label {
  font-size: 9.5px;
  font-weight: 700;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.market-coins-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 8px;
  max-width: 1140px;
  margin: 0 auto;
}
.coin-card {
  background: #fff;
  border: 1.5px solid #E5E2D9;
  border-radius: 10px;
  padding: 11px 13px;
  cursor: pointer;
  transition: border-color .18s, background .18s;
}
.coin-card:hover { border-color: var(--accent); background: var(--accent-light); }
.coin-card-top {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-bottom: 7px;
}
.coin-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
}
.coin-symbol { font-size: 9.5px; font-weight: 700; color: #999; text-transform: uppercase; letter-spacing: .5px; }
.coin-price { font-size: 14px; font-weight: 700; color: #111; }
.coin-change { font-size: 10.5px; font-weight: 600; margin-top: 3px; }

/* === MAIN LAYOUT === */
.main-content-area {
  max-width: 1140px;
  margin: 0 auto;
  padding: 24px 20px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 272px;
  gap: 24px;
}

/* === SECTION HEADERS === */
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.section-title {
  font-family: var(--font-title);
  font-size: 15px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
}
.section-title::before {
  content: '';
  width: 3px;
  height: 17px;
  background: var(--accent);
  border-radius: 2px;
  flex-shrink: 0;
}
.section-link {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--accent);
}
.section-link:hover { text-decoration: underline; }

/* === NEWS CARDS === */
.featured-post-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: 14px;
  transition: border-color .15s;
}
.featured-post-card:hover { border-color: var(--accent); }
.featured-post-thumb {
  height: 160px;
  background: #EEE9E0;
  position: relative;
  border-bottom: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured-post-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.post-cat-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 9px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  border: 1px solid var(--accent-border);
  text-transform: uppercase;
  letter-spacing: .4px;
}
.featured-post-body { padding: 14px 16px; }
.featured-post-body h2 {
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.38;
  margin-bottom: 8px;
}
.featured-post-body h2 a { color: inherit; }
.featured-post-body h2 a:hover { color: var(--accent); }
.featured-post-body p {
  font-size: 12.5px;
  color: var(--text-muted);
  line-height: 1.65;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.post-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--text-faint);
}
.post-meta strong { color: #555; font-weight: 600; }

.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.news-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  gap: 10px;
  cursor: pointer;
  transition: border-color .15s;
  align-items: flex-start;
}
.news-card:hover { border-color: var(--accent); }
.news-card-thumb {
  width: 64px;
  height: 60px;
  min-width: 64px;
  border-radius: 8px;
  background: #EEE9E0;
  border: 1px solid var(--border);
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.news-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.news-card-body { flex: 1; min-width: 0; }
.news-card-cat {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 4px;
}
.news-card-body h3 {
  font-family: var(--font-title);
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.42;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-card-body h3 a { color: inherit; }
.news-card-body h3 a:hover { color: var(--accent); }
.news-card-date { font-size: 10.5px; color: var(--text-faint); }

/* === SIDEBAR WIDGETS === */
.sidebar { display: flex; flex-direction: column; gap: 0; }
.widget-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 16px;
}
.widget-title {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .9px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.widget-title::before {
  content: '';
  width: 3px;
  height: 12px;
  background: var(--accent);
  border-radius: 2px;
}

/* Fear & Greed */
.fng-wrap { text-align: center; padding: 4px 0; }
.fng-ring {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 10px;
  position: relative;
}
.fng-svg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
.fng-core {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  background: var(--white);
  border: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}
.fng-number { font-family: var(--font-title); font-size: 22px; font-weight: 700; }
.fng-of { font-size: 8.5px; color: var(--text-faint); text-transform: uppercase; }
.fng-label { font-family: var(--font-title); font-size: 13px; font-weight: 700; }
.fng-updated { font-size: 10px; color: var(--text-faint); margin-top: 3px; }

/* Trending */
.rank-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 7px 0;
  border-bottom: 1px solid var(--border-light);
}
.rank-row:last-child { border: none; padding-bottom: 0; }
.rank-num { font-size: 9.5px; font-weight: 700; color: #ccc; width: 13px; flex-shrink: 0; }
.rank-name { font-size: 12px; font-weight: 600; color: var(--text); flex: 1; min-width: 0; }
.rank-sym { font-size: 10px; color: var(--text-faint); font-weight: 400; margin-left: 2px; }
.rank-price { font-family: var(--font-title); font-size: 11.5px; font-weight: 700; color: var(--text); text-align: right; }
.rank-chg { font-size: 10px; font-weight: 700; text-align: right; }

/* Newsletter widget */
.nl-widget {
  background: var(--accent-light);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-lg);
  padding: 14px;
  margin-bottom: 16px;
}
.nl-widget h4 { font-family: var(--font-title); font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.nl-widget p { font-size: 11.5px; color: var(--accent-dark); margin-bottom: 12px; line-height: 1.55; }
.nl-input {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--accent-border);
  color: var(--text);
  padding: 8px 11px;
  border-radius: 7px;
  font-size: 12px;
  outline: none;
  margin-bottom: 7px;
  font-family: var(--font-body);
}
.nl-btn {
  width: 100%;
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 9px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 700;
  transition: background .15s;
}
.nl-btn:hover { background: var(--accent-dark); }

/* === CATEGORIES SECTION === */
.categories-section {
  background: var(--white);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 22px 20px;
}
.cats-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);
  gap: 7px;
  margin-top: 14px;
}
.cat-chip {
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 11px 6px;
  text-align: center;
  cursor: pointer;
  background: var(--white);
  transition: all .15s;
  display: block;
  color: inherit;
}
.cat-chip:hover { border-color: var(--accent); background: var(--accent-light); }
.cat-chip .cat-icon { font-size: 16px; margin-bottom: 5px; display: block; color: #999; }
.cat-chip .cat-label { font-size: 10px; font-weight: 700; color: #666; display: block; }
.cat-chip:hover .cat-label { color: var(--accent); }

/* === LEARN SECTION === */
.learn-section {
  padding: 24px 20px;
}
.learn-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}
.learn-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 15px;
  cursor: pointer;
  transition: border-color .2s;
  display: block;
  color: inherit;
}
.learn-card:hover { border-color: var(--accent); }
.learn-tag {
  font-size: 9px;
  font-weight: 700;
  color: var(--accent-dark);
  text-transform: uppercase;
  letter-spacing: .6px;
  margin-bottom: 7px;
  background: var(--accent-light);
  display: inline-block;
  padding: 2px 7px;
  border-radius: 4px;
  border: 1px solid var(--accent-border);
}
.learn-card h4 {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.42;
  margin-bottom: 5px;
}
.learn-card p { font-size: 11px; color: var(--text-faint); line-height: 1.55; }
.learn-arrow { font-size: 14px; color: var(--accent); margin-top: 9px; display: block; font-weight: 700; }

/* === NEWSLETTER BANNER === */
.newsletter-banner { padding: 0 20px 28px; }
.newsletter-box {
  background: var(--dark);
  border-radius: 14px;
  padding: 26px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  max-width: 1140px;
  margin: 0 auto;
}
.newsletter-box h3 { font-family: var(--font-title); font-size: 19px; font-weight: 700; color: var(--white); margin-bottom: 5px; }
.newsletter-box p { font-size: 12.5px; color: #888; max-width: 340px; line-height: 1.6; }
.newsletter-form { display: flex; gap: 8px; flex-shrink: 0; }
.newsletter-form input {
  background: #242424;
  border: 1px solid #333;
  color: var(--white);
  padding: 10px 14px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 12.5px;
  width: 200px;
  outline: none;
}
.newsletter-form input::placeholder { color: #555; }
.newsletter-form button {
  background: var(--accent);
  color: var(--white);
  border: none;
  padding: 10px 18px;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 700;
  white-space: nowrap;
  transition: background .15s;
}
.newsletter-form button:hover { background: var(--accent-dark); }

/* === COIN DRAWER === */
.drawer-overlay {
  display: none;
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  background: rgba(0,0,0,.45);
  z-index: 1000;
}
.drawer-overlay.open { display: flex; align-items: flex-start; justify-content: flex-end; }
.coin-drawer {
  background: var(--white);
  width: 360px;
  height: 100%;
  overflow-y: auto;
  border-left: 1px solid var(--border);
  animation: slideIn .25s ease;
}
@keyframes slideIn { from{transform:translateX(100%)} to{transform:translateX(0)} }
.drawer-header {
  padding: 16px 16px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 14px;
}
.drawer-coin-info { display: flex; align-items: center; gap: 10px; }
.drawer-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 19px;
  font-weight: 700;
}
.drawer-coin-name { font-family: var(--font-title); font-size: 17px; font-weight: 700; color: var(--text); }
.drawer-coin-sym { font-size: 11px; color: var(--text-faint); }
.drawer-close {
  background: none;
  border: 1px solid var(--border);
  width: 30px;
  height: 30px;
  border-radius: 7px;
  font-size: 15px;
  color: #666;
  display: flex;
  align-items: center;
  justify-content: center;
}
.drawer-price-sec { padding: 0 16px 14px; border-bottom: 1px solid var(--border-light); }
.drawer-price { font-family: var(--font-title); font-size: 28px; font-weight: 700; color: var(--text); }
.drawer-change { font-size: 12.5px; font-weight: 700; margin-top: 3px; }
.drawer-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border-light);
}
.drawer-stat { background: var(--surface); border-radius: 8px; padding: 10px 11px; }
.drawer-stat-label { font-size: 9.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; margin-bottom: 3px; }
.drawer-stat-val { font-family: var(--font-title); font-size: 13px; font-weight: 700; color: var(--text); }
.drawer-desc-sec { padding: 14px 16px; }
.drawer-desc-sec h5 { font-family: var(--font-title); font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 7px; }
.drawer-desc-sec p { font-size: 12px; color: var(--text-muted); line-height: 1.65; }
.drawer-calc-btn {
  display: block;
  margin: 0 16px 16px;
  background: var(--accent);
  color: var(--white);
  border: none;
  width: calc(100% - 32px);
  padding: 11px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: background .15s;
}
.drawer-calc-btn:hover { background: var(--accent-dark); }

/* === MERCADO PAGE === */
/* ── PÁGINA CRIPTOMOEDAS — layout idêntico à foto ── */
.page-mercado { padding: 24px 20px; max-width: 1000px; margin: 0 auto; }
.market-page-head {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.market-page-title h1 { font-family: var(--font-title); font-size: 20px; font-weight: 800; color: var(--text); margin:0; }
.market-page-sub { font-size: 12px; color: var(--text-faint); margin: 3px 0 0; }
.market-stats { display: flex; gap: 8px; }
.market-stat { background: var(--surface); border-radius: 7px; padding: 8px 14px; text-align: center; }
.market-stat-val { font-family: var(--font-title); font-size: 14px; font-weight: 700; color: var(--text); }
.market-stat-label { font-size: 9px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .5px; margin-top: 1px; }

/* Busca */
.search-filter-row { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; align-items: center; }
.market-search-wrap { position: relative; flex: 1; min-width: 160px; }
.market-search {
  width: 100%;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 9px 13px 9px 34px;
  border-radius: 8px;
  font-family: var(--font-body);
  font-size: 13px;
  outline: none;
  box-sizing: border-box;
}
.market-search:focus { border-color: var(--accent); }
.filter-btn {
  background: var(--white);
  border: 1px solid var(--border);
  color: #666;
  padding: 9px 14px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.filter-btn.active { background: var(--accent-light); border-color: var(--accent-border); color: var(--accent-dark); }

/* Tabela */
.market-table-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: clip; /* clip = sem scroll mas mantém border-radius, não bloqueia overflow-x no child */
}
.market-table {
  width: 100%;
  border-collapse: collapse;
}
.market-table thead th {
  font-size: 12px;
  font-weight: 600;
  color: #6B7280;
  padding: 12px 16px;
  border-bottom: 1px solid var(--border-light);
  background: var(--white);
  text-align: left;
  white-space: nowrap;
}
.market-table thead th.text-right { text-align: right; }
.market-table thead .th-sort-icon { font-size: 10px; opacity: .5; }
.col-rank  { width: 52px; text-align: center !important; }
.col-coin  { min-width: 160px; }
.col-price { width: 130px; }
.col-7d    { width: 90px; }
.col-spk   { width: 100px; }

/* Linhas */
.market-table tbody td {
  padding: 14px 16px;
  border-bottom: 1px solid #F3F4F6;
  vertical-align: middle;
}
.market-table tbody tr:last-child td { border: none; }
.market-table tbody tr:hover td { background: #FAFAF8; }

/* Rank */
.table-rank {
  font-size: 14px;
  color: #374151;
  font-weight: 400;
  text-align: center;
}

/* Célula moeda — igual à foto: símbolo grande + market cap pequeno */
.table-coin-cell { padding-left: 8px !important; }
.table-coin-row { display: flex; align-items: center; gap: 12px; }
.table-coin-img-wrap {
  width: 36px; height: 36px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: #f3f4f6;
  display: flex; align-items: center; justify-content: center;
}
.table-coin-img { width: 36px; height: 36px; border-radius: 50%; display: block; }
.table-coin-info { display: flex; flex-direction: column; gap: 1px; }
.table-coin-sym-big  { font-size: 16px; font-weight: 700; color: #111827; line-height: 1.2; }
.table-coin-mc-small { font-size: 12px; color: #6B7280; font-weight: 400; }

/* Preço USD */
.table-price-usd {
  font-size: 16px;
  font-weight: 500;
  color: #111827;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

/* 7d% */
.table-7d {
  font-size: 14px;
  font-weight: 700;
  text-align: right;
  white-space: nowrap;
}
.table-arrow { font-size: 10px; }

/* Sparkline SVG */
.table-spk { text-align: right; padding-right: 20px !important; }
.table-spk svg { display: inline-block; vertical-align: middle; }

/* SEO text */
.market-seo-text {
  margin-top: 40px;
  padding-top: 28px;
  border-top: 1px solid var(--border);
  font-size: 15px;
  line-height: 1.75;
  color: #374151;
}
.market-seo-text h2 { font-size: 18px; font-weight: 700; color: var(--text); margin: 0 0 10px; }
.market-seo-text p  { margin: 0 0 16px; }
.market-faq { margin-top: 28px; }
.market-faq h2 { font-size: 18px; font-weight: 700; margin-bottom: 16px; }
.market-faq-item { background: #F9FAFB; border-radius: 10px; padding: 16px 18px; margin-bottom: 10px; }
.market-faq-item strong { display: block; font-size: 14px; color: #111827; margin-bottom: 6px; }
.market-faq-item p { margin: 0; font-size: 13.5px; color: #6B7280; }
.load-more-btn {
  width: 100%;
  padding: 12px;
  background: #FAFAF8;
  border: none;
  border-top: 1px solid var(--border-light);
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent);
  border-radius: 0 0 12px 12px;
}

/* === CALCULADORA PAGE === */
.page-calc { padding: 24px 20px; max-width: 900px; margin: 0 auto; }
.calc-head {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px;
  margin-bottom: 16px;
  text-align: center;
}
.calc-head h1 { font-family: var(--font-title); font-size: 22px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.calc-head p { font-size: 12.5px; color: var(--text-faint); }
.calc-body {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 14px;
}
.calc-coins-row {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  margin-bottom: 20px;
}
.calc-coin-btn {
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 10px 6px;
  text-align: center;
  cursor: pointer;
  background: var(--white);
  transition: all .15s;
}
.calc-coin-btn:hover { border-color: var(--accent); }
.calc-coin-btn.selected { border-color: var(--accent); background: var(--accent-light); }
.calc-coin-icon { font-size: 18px; margin-bottom: 4px; display: block; }
.calc-coin-sym { font-size: 10px; font-weight: 700; color: #666; display: block; }
.calc-coin-price { font-family: var(--font-title); font-size: 11px; font-weight: 700; color: var(--text); display: block; margin-top: 2px; }
.calc-input-row {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 12px;
  align-items: center;
  margin-bottom: 16px;
}
.calc-field label { font-size: 10px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: .6px; display: block; margin-bottom: 5px; }
.calc-amount-input {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 11px 13px;
  border-radius: 9px;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  outline: none;
  transition: border-color .15s;
}
.calc-amount-input:focus { border-color: var(--accent); background: var(--white); }
.calc-arrow { font-size: 20px; color: var(--accent); font-weight: 700; text-align: center; padding-top: 18px; }
.calc-currency-select {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 11px 13px;
  border-radius: 9px;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}
.calc-result {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.calc-result-label { font-size: 10.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .6px; font-weight: 600; margin-bottom: 6px; }
.calc-result-val { font-family: var(--font-title); font-size: 30px; font-weight: 700; color: var(--text); }
.calc-result-sub { font-size: 11.5px; color: var(--text-faint); margin-top: 4px; }
.calc-table-wrap {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.calc-table { width: 100%; border-collapse: collapse; }
.calc-table th {
  font-size: 9.5px;
  font-weight: 700;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-light);
  text-align: left;
  background: #FAFAF8;
}
.calc-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--surface);
  font-size: 12.5px;
  vertical-align: middle;
}
.calc-table tr:last-child td { border: none; }

/* === SINGLE POST === */
.single-post-wrap { max-width: 1140px; margin: 0 auto; padding: 28px 20px; display: grid; grid-template-columns: minmax(0,1fr) 272px; gap: 28px; }
.single-article {}
.single-header { margin-bottom: 20px; }
.single-category { display: inline-block; background: var(--accent-light); color: var(--accent-dark); font-size: 10px; font-weight: 700; padding: 3px 9px; border-radius: 5px; border: 1px solid var(--accent-border); text-transform: uppercase; letter-spacing: .5px; margin-bottom: 12px; }
.single-title { font-family: var(--font-title); font-size: 30px; font-weight: 700; line-height: 1.2; color: var(--text); margin-bottom: 14px; }
.single-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-faint); padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.single-featured-img { width: 100%; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; }
.single-featured-img img { width: 100%; height: auto; object-fit: cover; max-height: 450px; }
.entry-content { font-size: 16px; line-height: 1.85; color: #333; }
.entry-content h2 { font-size: 22px; margin: 28px 0 12px; }
.entry-content h3 { font-size: 18px; margin: 22px 0 10px; }
.entry-content p { margin-bottom: 16px; font-size: 16px; line-height: 1.85; }
.entry-content a { color: var(--accent); text-decoration: underline; }
.entry-content ul, .entry-content ol { padding-left: 20px; margin-bottom: 16px; }
.entry-content li { margin-bottom: 6px; list-style: disc; }
.entry-content blockquote { border-left: 3px solid var(--accent); padding: 12px 16px; background: var(--accent-light); border-radius: 0 8px 8px 0; margin: 20px 0; font-style: italic; }
.entry-content img { border-radius: 8px; margin: 16px 0; }
.entry-content table { width: 100%; border-collapse: collapse; margin: 16px 0; }
.entry-content td, .entry-content th { padding: 9px 12px; border: 1px solid var(--border); font-size: 13.5px; }
.entry-content th { background: var(--surface); font-weight: 700; }

/* === FOOTER === */
#site-footer {
  background: #0F172A;
  border-top: none;
  padding: 32px 20px 18px;
  margin-top: 20px;
}
.footer-inner { max-width: 1140px; margin: 0 auto; }
.footer-top {
  display: grid;
  grid-template-columns: 200px 1fr 1fr 1fr;
  gap: 28px;
  padding-bottom: 24px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 18px;
}
.footer-logo img { height: 26px; width: auto; margin-bottom: 8px; }
.footer-about { font-size: 11.5px; color: var(--text-faint); line-height: 1.7; }
.footer-col h5 { font-size: 10px; font-weight: 700; color: #bbb; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 10px; }
.footer-col ul li { margin-bottom: 6px; }
.footer-col a { font-size: 12px; color: #777; transition: color .15s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { display: flex; justify-content: space-between; align-items: flex-start; font-size: 10.5px; color: #bbb; }
.footer-disclaimer { font-size: 10.5px; color: #ccc; max-width: 520px; line-height: 1.55; margin-top: 5px; }

/* === LOADING === */
.loading-indicator {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 12px;
  font-size: 11.5px;
  color: var(--text-faint);
}
.loading-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  animation: ldDot .7s ease infinite;
}
.loading-dot:nth-child(2){animation-delay:.15s}
.loading-dot:nth-child(3){animation-delay:.3s}
@keyframes ldDot{0%,100%{opacity:.2}50%{opacity:1}}

/* === BREADCRUMBS === */
.breadcrumbs { font-size: 12px; color: var(--text-faint); padding: 12px 20px; max-width: 1140px; margin: 0 auto; }
.breadcrumbs a { color: var(--text-faint); }
.breadcrumbs a:hover { color: var(--accent); }
.breadcrumbs span { color: var(--text-muted); }

/* === ARCHIVE === */
.archive-wrap { max-width: 1140px; margin: 0 auto; padding: 24px 20px; display: grid; grid-template-columns: minmax(0,1fr) 272px; gap: 24px; }
.archive-header { margin-bottom: 20px; }
.archive-title { font-family: var(--font-title); font-size: 24px; font-weight: 700; color: var(--text); margin-bottom: 5px; }
.archive-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

/* === PAGINATION === */
.pagination { display: flex; gap: 6px; justify-content: center; padding: 24px 0 0; }
.pagination a, .pagination span {
  padding: 7px 13px;
  border: 1px solid var(--border);
  border-radius: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-muted);
  background: var(--white);
  transition: all .15s;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: var(--white); }

/* === RESPONSIVE === */
@media (max-width: 1024px) {
  .main-content-area, .single-post-wrap, .archive-wrap { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .nl-widget { grid-column: span 2; }
  .market-coins-grid { grid-template-columns: repeat(3, 1fr); }
  .cats-grid { grid-template-columns: repeat(5, 1fr); }
  .learn-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 20px; }
}

@media (max-width: 768px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-thumbnail { display: none; }
  /* .main-nav e .menu-toggle neutralizados — usar #main-nav e #menu-toggle */
  .news-grid { grid-template-columns: 1fr; }
  .market-coins-grid { grid-template-columns: repeat(2, 1fr); }
  .cats-grid { grid-template-columns: repeat(5, 1fr); }
  .learn-grid { grid-template-columns: 1fr; }
  .newsletter-box { flex-direction: column; text-align: center; }
  .newsletter-form { flex-direction: column; width: 100%; }
  .newsletter-form input { width: 100%; }
  .archive-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .sidebar { grid-template-columns: 1fr; }
  .nl-widget { grid-column: span 1; }
  .calc-coins-row { grid-template-columns: repeat(5, 1fr); }
  /* Tabela mobile — scroll horizontal, todas as 5 colunas visíveis igual à foto */
  .page-mercado { padding: 0; }
  .market-page-head {
    border-radius: 0; border-left: 0; border-right: 0;
    padding: 14px 16px; margin-bottom: 0;
  }
  .market-page-title h1 { font-size: 17px; }
  .market-page-sub { display: none; }
  .market-stats { gap: 6px; }
  .market-stat { padding: 6px 10px; }
  .market-stat-val { font-size: 12px; }
  .market-stat-label { font-size: 8px; }

  .search-filter-row {
    padding: 10px 12px;
    margin-bottom: 0;
    gap: 6px;
    background: #fff;
    border-bottom: 1px solid #F3F4F6;
    overflow-x: auto;
    flex-wrap: nowrap;
  }
  .market-search-wrap { min-width: 130px; }
  .market-search { font-size: 13px; padding: 8px 10px 8px 32px; }
  .filter-btn { padding: 8px 12px; font-size: 12px; white-space: nowrap; flex-shrink: 0; }

  /* SCROLL HORIZONTAL na tabela — chave do problema */
  .market-table-wrap {
    border-radius: 0;
    border-left: 0;
    border-right: 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .market-table {
    min-width: 520px; /* força scroll quando tela < 520px */
  }

  /* Colunas mobile compactas */
  .market-table thead th { padding: 10px 10px; font-size: 11px; }
  .col-rank  { width: 34px; }
  .col-coin  { min-width: 150px; }
  .col-price { width: 95px; }
  .col-7d    { width: 70px; }
  .col-spk   { width: 80px; }

  /* Células */
  .market-table tbody td { padding: 12px 10px; }
  .table-rank { font-size: 14px; }

  /* Moeda */
  .table-coin-cell { padding-left: 6px !important; }
  .table-coin-row { gap: 10px; }
  .table-coin-img-wrap { width: 34px; height: 34px; }
  .table-coin-img { width: 34px; height: 34px; }
  .table-coin-sym-big  { font-size: 15px; }
  .table-coin-mc-small { font-size: 11px; }

  /* Preço */
  .table-price-usd { font-size: 14px; }

  /* 7d */
  .table-7d { font-size: 13px; }
  .table-arrow { font-size: 9px; }

  /* Sparkline */
  .table-spk { padding-right: 12px !important; }
  .table-spk svg { width: 64px; height: 26px; }
  .coin-drawer { width: 100%; }
  .single-title { font-size: 22px; }
}

@media (max-width: 480px) {
  .cats-grid { grid-template-columns: repeat(4, 1fr); }
  .calc-input-row { grid-template-columns: 1fr; }
  .calc-arrow { padding-top: 0; }
  .market-page-head { flex-direction: column; align-items: flex-start; }

  /* Tabela 480px — scroll horizontal, NUNCA esconder colunas */
  .market-table { min-width: 500px; }
  .market-table thead th { padding: 9px 8px; font-size: 10.5px; }
  .market-table tbody td { padding: 11px 8px; }
  .col-rank  { width: 30px; }
  .col-price { width: 90px; }
  .col-7d    { width: 65px; }
  .col-spk   { width: 72px; }
  .table-coin-sym-big  { font-size: 14px; }
  .table-coin-mc-small { font-size: 10px; }
  .table-price-usd     { font-size: 13px; }
  .table-7d            { font-size: 12px; }
  .table-spk svg       { width: 56px; height: 24px; }
  .market-stats        { display: none; }
}

/* === HEADER FIX === */
.header-left  { display: flex; align-items: center; flex-shrink: 0; }
.header-right { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.site-logo    { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img {
  height: 36px;
  width: auto;
  display: block;
  object-fit: contain;
  max-width: 160px;
}
/* .main-nav ul — neutralizado */

/* === COIN PAGE === */
.coin-page-wrap { background: var(--bg); min-height: 60vh; }

.coin-hero {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 24px 0;
}
.coin-hero-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.coin-identity {
  display: flex;
  align-items: center;
  gap: 16px;
}
.coin-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  flex-shrink: 0;
}
.coin-hero-name {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  color: var(--text);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.coin-hero-sym {
  font-size: 13px;
  color: var(--text-faint);
  font-family: var(--font-body);
  font-weight: 600;
}
.coin-rank-badge {
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: 11px;
  font-weight: 700;
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 5px;
  font-family: var(--font-body);
}
.coin-hero-price {
  font-family: var(--font-title);
  font-size: 34px;
  font-weight: 700;
  color: var(--text);
  margin-top: 4px;
}
.coin-hero-chg { font-size: 14px; font-weight: 600; margin-top: 2px; }

.coin-hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}
.chs {
  background: var(--surface);
  border-radius: var(--radius);
  padding: 10px 12px;
}
.chs-label { font-size: 10px; color: var(--text-faint); text-transform: uppercase; letter-spacing: .5px; font-weight: 600; margin-bottom: 3px; }
.chs-val   { font-family: var(--font-title); font-size: 13.5px; font-weight: 700; color: var(--text); }

/* Coin body layout */
.coin-body {
  display: grid;
  grid-template-columns: minmax(0,1fr) 272px;
  gap: 24px;
  padding: 24px 0;
}
.coin-main { display: flex; flex-direction: column; gap: 16px; }
.coin-sidebar { display: flex; flex-direction: column; gap: 14px; }

.coin-section-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.coin-section-title {
  font-family: var(--font-title);
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 8px;
}
.coin-section-title::before {
  content: '';
  width: 3px;
  height: 18px;
  background: var(--accent);
  border-radius: 2px;
}

/* Chart */
.coin-chart-box {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.chart-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
}
.chart-title { font-family: var(--font-title); font-size: 14px; font-weight: 700; color: var(--text); }
.chart-tabs  { display: flex; gap: 4px; }
.ctab {
  background: none;
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 4px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.ctab:hover  { border-color: var(--accent); color: var(--accent); }
.ctab.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.chart-area  { position: relative; padding: 16px 12px 12px; height: 340px; }
.chart-area canvas { width: 100% !important; }
.chart-loading {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(255,255,255,.9);
  display: flex; align-items: center; justify-content: center;
}

/* Coin table */
.coin-table { width: 100%; border-collapse: collapse; font-size: 13px; }
.coin-table th {
  font-size: 10px; font-weight: 700; color: var(--text-faint);
  text-transform: uppercase; letter-spacing: .5px;
  padding: 7px 0; border-bottom: 1px solid var(--border-light);
  text-align: left;
}
.coin-table th.r { text-align: right; }
.coin-table td { padding: 9px 0; border-bottom: 1px solid var(--border-light); vertical-align: middle; }
.coin-table tr:last-child td { border: none; }
.coin-table td.r { text-align: right; font-family: var(--font-title); font-weight: 700; }

/* Inline Calc */
.ic-row { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-bottom: 12px; }
.ic-field label { font-size: 10px; font-weight: 700; color: var(--text-faint); text-transform: uppercase; letter-spacing: .6px; display: block; margin-bottom: 5px; }
.ic-field input {
  width: 100%;
  background: var(--surface);
  border: 1.5px solid var(--border);
  color: var(--text);
  padding: 10px 12px;
  border-radius: 9px;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  outline: none;
}
.ic-field input:focus { border-color: var(--accent); background: var(--white); }
.ic-arrow { font-size: 18px; color: var(--accent); font-weight: 700; text-align: center; padding-top: 16px; }
.ic-result {
  background: var(--surface);
  border: 1.5px solid var(--border);
  border-radius: 9px;
  padding: 10px 12px;
  font-family: var(--font-title);
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
  min-height: 46px;
  display: flex;
  align-items: center;
}
.ic-currencies { display: flex; gap: 6px; margin-bottom: 10px; flex-wrap: wrap; }
.ic-cur {
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text-muted);
  padding: 5px 12px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  transition: all .15s;
}
.ic-cur:hover  { border-color: var(--accent); color: var(--accent); }
.ic-cur.active { background: var(--accent); border-color: var(--accent); color: #fff; }
.ic-sub { font-size: 11px; color: var(--text-faint); }

/* About text */
.coin-about-text { font-size: 14px; line-height: 1.78; color: #333; }
.coin-about-text p { margin-bottom: 12px; }

/* Exchanges */
.exchanges-grid { display: flex; flex-direction: column; gap: 9px; }
.exchange-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--white);
  transition: border-color .15s, background .15s;
  text-decoration: none;
  color: inherit;
}
.exchange-card:hover { border-color: var(--accent); background: var(--accent-light); }
.exch-icon {
  width: 38px;
  height: 38px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.exch-info { flex: 1; min-width: 0; }
.exch-name { font-size: 13px; font-weight: 700; color: var(--text); margin-bottom: 2px; }
.exch-desc { font-size: 11px; color: var(--text-muted); line-height: 1.4; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.exch-arrow { font-size: 16px; font-weight: 700; flex-shrink: 0; }

/* Coin news grid */
.coin-news-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }

/* === SINGLE POST MELHORADO === */
.single-post-wrap { background: var(--bg); }
.single-article {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.single-header { padding: 28px 32px 0; margin-bottom: 0; }
.single-category {
  display: inline-block;
  background: var(--accent-light);
  color: var(--accent-dark);
  font-size: 10.5px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 5px;
  border: 1px solid var(--accent-border);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 14px;
}
.single-title {
  font-family: var(--font-title);
  font-size: 28px;
  font-weight: 700;
  line-height: 1.25;
  color: #0D0D0D;
  margin-bottom: 14px;
  letter-spacing: -.3px;
}
.single-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: #888;
  padding: 14px 32px;
  background: #FAFAF8;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  flex-wrap: wrap;
}
.single-meta strong { color: #333; font-weight: 700; }
.single-featured-img { width: 100%; margin-bottom: 0; border-radius: 0; }
.single-featured-img img { width: 100%; max-height: 480px; object-fit: cover; display: block; }

.entry-content {
  padding: 28px 32px 32px;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.85;
  color: #1A1A1A;
}
.entry-content h2 {
  font-family: var(--font-title);
  font-size: 22px;
  font-weight: 700;
  color: #0D0D0D;
  margin: 32px 0 14px;
  letter-spacing: -.2px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--accent-light);
}
.entry-content h3 { font-family: var(--font-title); font-size: 18px; font-weight: 700; color: #111; margin: 26px 0 10px; }
.entry-content h4 { font-size: 16px; font-weight: 700; color: #222; margin: 20px 0 8px; }
.entry-content p { margin-bottom: 18px; color: #2A2A2A; }
.entry-content a { color: var(--accent); text-decoration: underline; text-underline-offset: 2px; }
.entry-content a:hover { color: var(--accent-dark); }
.entry-content ul, .entry-content ol { padding-left: 24px; margin-bottom: 18px; }
.entry-content li { margin-bottom: 8px; color: #2A2A2A; line-height: 1.75; }
.entry-content ul li { list-style: disc; }
.entry-content ol li { list-style: decimal; }
.entry-content blockquote {
  border-left: 4px solid var(--accent);
  padding: 14px 18px;
  background: var(--accent-light);
  border-radius: 0 8px 8px 0;
  margin: 22px 0;
  font-style: italic;
  color: #333;
  font-size: 15px;
}
.entry-content img { border-radius: 10px; margin: 20px 0; width: 100%; height: auto; border: 1px solid var(--border); }
.entry-content strong { color: #0D0D0D; font-weight: 700; }
.entry-content code { background: #F7F5F0; border: 1px solid var(--border); padding: 2px 6px; border-radius: 4px; font-size: 13.5px; }

/* === RESPONSIVE — Coin Page === */
@media (max-width: 1024px) {
  .coin-body { grid-template-columns: 1fr; }
  .coin-hero-stats { grid-template-columns: repeat(3, 1fr); }
  .coin-sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 768px) {
  .coin-hero-inner { flex-direction: column; }
  .coin-hero-stats { grid-template-columns: repeat(2, 1fr); }
  .coin-news-grid  { grid-template-columns: 1fr; }
  .ic-row { grid-template-columns: 1fr; }
  .ic-arrow { padding-top: 0; transform: rotate(90deg); }
  .single-header, .single-meta, .entry-content { padding-left: 18px; padding-right: 18px; }
  .single-title { font-size: 22px; }
  .entry-content { font-size: 15px; }
  .coin-sidebar { grid-template-columns: 1fr; }
}

#site-header {
  background: #fff;
  border-bottom: 1px solid #E5E2D9;
  height: 58px;
  position: sticky;
  top: 0;
  z-index: 200;
  text-align: center;
}
.header-inner {
  display: inline-flex;
  align-items: center;
  gap: 24px;
  height: 58px;
  padding: 0 20px;
}

/* === TYPOGRAPHY OVERRIDE === */
*, h1, h2, h3, h4, h5, h6,
.entry-title, .post-title,
.single-title, .archive-title,
.news-card-body h3, .news-card-body h3 a,
.featured-post-body h2, .featured-post-body h2 a,
.section-title, .cp-section-h2, .cp-hero-name {
  font-family: system-ui, -apple-system, sans-serif !important;
}

/* Coin card as link */
.coin-card-link { text-decoration: none; display: block; }
.coin-card-link:hover .coin-price { color: var(--accent); }

@media (max-width: 768px) {
  .entry-content,
  .entry-content p,
  .entry-content li { font-size: 18px !important; line-height: 1.85; }
}

/* ==============================================
   HEADER + MENU — ÚNICO BLOCO, SEM CONFLITO
   ============================================== */

#site-header {
  background: #fff;
  border-bottom: 1px solid #E5E2D9;
  position: sticky;
  top: 0;
  z-index: 200;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 58px;
  padding: 0 24px;
  max-width: 1200px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Logo */
.site-logo { display: flex; align-items: center; flex-shrink: 0; }
.site-logo img { height: 36px; width: auto; display: block; }

/* ── DESKTOP: menu horizontal, botão escondido ── */
#menu-toggle { display: none; }

#main-nav { flex: 1; display: flex; justify-content: center; }
#main-nav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; }
#main-nav ul li { position: relative; }
#main-nav ul li a {
  display: block; padding: 7px 12px; border-radius: 7px;
  font-size: 13px; font-weight: 600; color: #555;
  text-decoration: none; white-space: nowrap;
  transition: background .15s, color .15s;
}
#main-nav ul li a:hover,
#main-nav ul li.current-menu-item > a,
#main-nav ul li.current_page_item > a { color: #E8500A; background: #FEF0EA; }

/* Dropdown desktop */
#main-nav ul ul {
  display: none; position: absolute; top: 100%; left: 0;
  background: #fff; border: 1px solid #E5E2D9; border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,.1); min-width: 180px;
  padding: 6px; flex-direction: column; gap: 2px; z-index: 500;
}
#main-nav ul li:hover > ul { display: flex; }

/* ── MOBILE: botão visível, menu oculto por padrão ── */
@media (max-width: 960px) {

  #menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    background: none;
    border: 1px solid #E5E2D9;
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
    color: #333;
    flex-shrink: 0;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* FECHADO — escondido */
  #main-nav {
    display: none;
    position: fixed;
    top: 92px;
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 2px solid #E5E2D9;
    padding: 12px 16px 20px;
    z-index: 9999;
    box-shadow: 0 8px 24px rgba(0,0,0,.13);
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    overflow-y: auto;
    max-height: calc(100vh - 92px);
  }

  /* ABERTO — classe .open adicionada pelo JS */
  #main-nav.open { display: flex; }

  #main-nav ul {
    flex-direction: column;
    width: 100%;
    gap: 2px;
    flex-wrap: nowrap;
  }

  #main-nav ul li { width: 100%; position: static; }

  #main-nav ul li a {
    padding: 12px 14px;
    font-size: 15px;
    white-space: normal;
    border-radius: 8px;
    color: #333;
  }

  /* Submenus sempre visíveis no mobile */
  #main-nav ul ul {
    display: flex !important;
    position: static;
    box-shadow: none;
    border: none;
    background: #F5F4F1;
    border-radius: 8px;
    margin: 4px 0 4px 12px;
    padding: 4px;
    min-width: unset;
    flex-direction: column;
    gap: 2px;
  }
}

/* === REDES SOCIAIS NO FOOTER === */
.footer-socials {
  display: flex;
  gap: 8px;
  margin-top: 14px;
  flex-wrap: wrap;
}

.footer-socials a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #F0EDE5;
  color: #555;
  transition: background .15s, color .15s, transform .15s;
  flex-shrink: 0;
}

.footer-socials a svg {
  width: 17px;
  height: 17px;
}

.footer-socials a:hover { transform: translateY(-2px); }

/* Cores específicas no hover */
.footer-socials a[aria-label="X / Twitter"]:hover  { background: #000;    color: #fff; }
.footer-socials a[aria-label="Instagram"]:hover    { background: #E1306C; color: #fff; }
.footer-socials a[aria-label="YouTube"]:hover      { background: #FF0000; color: #fff; }
.footer-socials a[aria-label="TikTok"]:hover       { background: #000;    color: #fff; }
.footer-socials a[aria-label="WhatsApp"]:hover     { background: #25D366; color: #fff; }

/* ============================================
   LUPA DE BUSCA NO HEADER — CORRIGIDA
   ============================================ */

/* Garantir que o wrapper direito não fica escuro */
.header-inner > div:last-child {
  background: none !important;
  border: none !important;
}

.header-search-btn {
  background: #fff !important;
  border: 1px solid #E5E2D9 !important;
  border-radius: 8px !important;
  width: 36px !important;
  height: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  color: #555 !important;
  padding: 0 !important;
  transition: all .15s !important;
  flex-shrink: 0 !important;
}

.header-search-btn:hover {
  background: #FEF0EA !important;
  border-color: #E8500A !important;
  color: #E8500A !important;
}

.header-search-btn svg {
  width: 17px !important;
  height: 17px !important;
  display: block !important;
  stroke: currentColor !important;
  fill: none !important;
}

.header-search-box {
  display: none;
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 280px;
  background: #fff;
  border: 1.5px solid #E5E2D9;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,.10);
  padding: 10px;
  z-index: 9999;
}

.header-search-box.open { display: block !important; }

.header-search-box form {
  display: flex !important;
  gap: 6px !important;
  margin: 0 !important;
  padding: 0 !important;
}

.header-search-box input[type="search"] {
  flex: 1 !important;
  background: #F5F4F1 !important;
  border: 1px solid #E5E2D9 !important;
  border-radius: 8px !important;
  padding: 9px 12px !important;
  font-size: 13.5px !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  color: #333 !important;
  outline: none !important;
  box-shadow: none !important;
  height: auto !important;
}

.header-search-box input[type="search"]:focus {
  border-color: #E8500A !important;
  background: #fff !important;
}

.header-search-box button[type="submit"] {
  background: #E8500A !important;
  border: none !important;
  border-radius: 8px !important;
  width: 36px !important;
  height: 36px !important;
  min-width: 36px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  color: #fff !important;
  padding: 0 !important;
  flex-shrink: 0 !important;
}

.header-search-box button[type="submit"] svg {
  width: 15px !important;
  height: 15px !important;
  stroke: #fff !important;
  fill: none !important;
}

.header-search-wrap { position: relative !important; }

/* ============================================
   CORREÇÕES DE ACESSIBILIDADE — CONTRASTE
   Todos os elementos com falha no relatório
   WCAG AA: texto normal ≥ 4.5:1 | grande ≥ 3:1
   ============================================ */

/* Ticker — símbolo da moeda (era cinza claro #666 em fundo preto) */
.ticker-sym {
  color: #A0A8B8 !important; /* contraste 4.6:1 em fundo #111 */
}

/* Ticker — preço e variação */
.ticker-price,
.ticker-item {
  color: #E8EBF0 !important;
}

/* Breadcrumb — links e texto (era #aaa em fundo branco = 2.3:1) */
.single-breadcrumb,
.single-breadcrumb a {
  color: #6B7280 !important; /* 4.6:1 em fundo branco */
}
.single-breadcrumb span {
  color: #374151 !important; /* 9:1 */
}

/* Avatar do autor — iniciais GE (era branco em laranja claro) */
.sa-avatar {
  background: #C04000 !important; /* laranja mais escuro = 4.5:1 com branco */
  color: #FFFFFF !important;
}

/* Data do post */
time,
.sa-meta time {
  color: #6B7280 !important; /* 4.6:1 */
}

/* Label COMPARTILHAR (era #bbb em branco = 2.4:1) */
.c360-share-label {
  color: #6B7280 !important; /* 4.6:1 */
}

/* Links internos no conteúdo (Bitcoin, Ethereum, etc.)
   eram laranja #E8500A em fundo branco = 3.1:1 (falha para texto normal) */
.sa-content a,
.entry-content a {
  color: #B83C00 !important; /* 4.7:1 em fundo branco */
  text-decoration: underline !important;
}

/* Aviso importante — texto em fundo escuro #0F0F0F
   "não constitui recomendação" era cinza claro em fundo quase preto */
[style*="background: rgb(15, 15, 15)"],
[style*="background:#0f0f0f"],
[style*="background: #0f0f0f"] {
  background: #1A1A2E !important;
  color: #E2E8F0 !important;
}
[style*="background: rgb(15, 15, 15)"] strong,
[style*="background: rgb(15, 15, 15)"] * {
  color: #F1F5F9 !important;
}

/* Data dos cards de notícia (era #aaa em fundo branco = 2.3:1) */
.news-card-date {
  color: #6B7280 !important; /* 4.6:1 */
}

/* Footer — texto sobre o portal (era #aaa em branco = 2.3:1) */
.footer-about {
  color: #6B7280 !important; /* 4.6:1 */
}

/* Footer — links (eram #777 em branco = 4.5:1 — limite exato) */
.footer-col a {
  color: #4B5563 !important; /* 7.1:1 — confortável */
}
.footer-col a:hover {
  color: #B83C00 !important;
}

/* Footer — títulos das colunas (eram #bbb em branco = 2.4:1) */
.footer-col h5,
.footer-widget-title,
#site-footer h5 {
  color: #4B5563 !important; /* 7.1:1 */
}

/* Footer — copyright e disclaimer */
#site-footer .footer-bottom,
#site-footer .footer-bottom *,
#site-footer > .footer-inner > div:last-child {
  color: #6B7280 !important;
}

/* Footer — rodapé texto */
#site-footer {
  color: #4B5563 !important;
}

/* Ticker — garantir contraste adequado em fundo escuro */
.coin360-ticker .ticker-item .ticker-sym {
  color: #9CA3AF !important; /* 4.5:1 em fundo #111 */
}

.coin360-ticker .ticker-price {
  color: #F3F4F6 !important; /* 15:1 em fundo #111 */
}

/* Tags/categorias no artigo (ex: ETHEREUM) — pill badges */
.sa-cat,
.post-cat-badge,
.single-category {
  background: #FEF0EA !important;
  color: #9A3412 !important; /* 5.1:1 em fundo laranja claro */
  border: 1px solid #FCA274 !important;
}

/* News card — categoria (ex: ETHEREUM, NOTÍCIAS) */
.news-card-cat {
  color: #9A3412 !important; /* 4.8:1 em fundo branco */
  font-weight: 700 !important;
}

/* Leia também — data */
.news-card-date {
  color: #6B7280 !important;
}

/* Avatar nas seções de autor */
.hero-author-avatar {
  background: #C04000 !important;
  color: #fff !important;
}

/* Garantir que texto de placeholder seja legível */
input::placeholder,
textarea::placeholder {
  color: #6B7280 !important; /* 4.6:1 */
}

/* Tags no rodapé do artigo */
.sa-tags a {
  color: #4B5563 !important; /* 7.1:1 */
  border-color: #D1D5DB !important;
}
.sa-tags a:hover {
  color: #B83C00 !important;
  border-color: #B83C00 !important;
}

/* ============================================
   BREADCRUMB — fundo e contraste garantidos
   ============================================ */
.single-breadcrumb {
  background: #F5F4F1 !important;
  color: #6B7280 !important;
  padding: 10px 24px 8px !important;
}
.single-breadcrumb a {
  color: #6B7280 !important;
  text-decoration: none !important;
}
.single-breadcrumb a:hover { color: #B83C00 !important; }
.single-breadcrumb span   { color: #374151 !important; }

/* Links com cor inline de baixo contraste no conteúdo */
.sa-content a[style*="color:#4da6ff"],
.sa-content a[style*="color: #4da6ff"],
.entry-content a[style*="color:#4da6ff"],
.entry-content a[style*="color: #4da6ff"] {
  color: #1D6FA4 !important;
}

/* Divs com fundo rgb(15,15,15) — forçar via atributo */
.sa-content div[style*="background: rgb(15, 15, 15)"],
.sa-content div[style*="background:rgb(15,15,15)"],
.entry-content div[style*="background: rgb(15, 15, 15)"],
.entry-content div[style*="background:rgb(15,15,15)"] {
  background: #1E293B !important;
  color: #F1F5F9 !important;
}
.sa-content div[style*="background: rgb(15, 15, 15)"] *,
.entry-content div[style*="background: rgb(15, 15, 15)"] * {
  color: #F1F5F9 !important;
}
.sa-content div[style*="background: rgb(15, 15, 15)"] a,
.entry-content div[style*="background: rgb(15, 15, 15)"] a {
  color: #60A5FA !important;
  text-decoration: underline !important;
}

/* ============================================
   AVISO IMPORTANTE — fundo escuro inline
   Forçar TODO texto branco, link cor do site
   ============================================ */

/* Cobre todas as variações do inline style */
div[style*="background: rgb(15, 15, 15)"],
div[style*="background:rgb(15,15,15)"],
div[style*="background: rgb(15,15,15)"],
div[style*="background:rgb(15, 15, 15)"] {
  background: #1E293B !important;
}

/* Todo texto dentro do bloco — branco */
div[style*="background: rgb(15, 15, 15)"] *,
div[style*="background:rgb(15,15,15)"] *,
div[style*="background: rgb(15,15,15)"] *,
div[style*="background:rgb(15, 15, 15)"] * {
  color: #FFFFFF !important;
}

/* Link dentro do bloco — cor laranja do site */
div[style*="background: rgb(15, 15, 15)"] a,
div[style*="background:rgb(15,15,15)"] a,
div[style*="background: rgb(15,15,15)"] a,
div[style*="background:rgb(15, 15, 15)"] a {
  color: #F97316 !important;
  text-decoration: underline !important;
}

/* Corrigir também strong/negrito dentro do bloco */
div[style*="background: rgb(15, 15, 15)"] strong,
div[style*="background:rgb(15,15,15)"] strong {
  color: #FFFFFF !important;
  font-weight: 700 !important;
}

/* ============================================
   AVISO IMPORTANTE — correção definitiva
   Cobre TODOS os elementos dentro do bloco escuro
   ============================================ */

/* O bloco todo */
div[style*="background: rgb(15"],
div[style*="background:rgb(15"],
div[style*="background:#1E293B"] {
  background: #1E293B !important;
  color: #FFFFFF !important;
}

/* Cada elemento filho individualmente */
div[style*="background: rgb(15"] p,
div[style*="background: rgb(15"] span,
div[style*="background: rgb(15"] em,
div[style*="background: rgb(15"] i,
div[style*="background:rgb(15"] p,
div[style*="background:rgb(15"] span,
div[style*="background:rgb(15"] em,
div[style*="background:#1E293B"] p,
div[style*="background:#1E293B"] span,
div[style*="background:#1E293B"] em {
  color: #FFFFFF !important;
}

/* strong/negrito = AVISO IMPORTANTE → laranja forte */
div[style*="background: rgb(15"] strong,
div[style*="background:rgb(15"] strong,
div[style*="background:#1E293B"] strong {
  color: #FB923C !important;
  font-weight: 700 !important;
}

/* Link dentro do bloco */
div[style*="background: rgb(15"] a,
div[style*="background:rgb(15"] a,
div[style*="background:#1E293B"] a {
  color: #FB923C !important;
  text-decoration: underline !important;
  font-weight: 600 !important;
}

/* ============================================
   FOOTER — correções finais de acessibilidade
   ============================================ */

/* Títulos das colunas do footer (eram h5, agora p.footer-col-title)
   Manter visual idêntico mas com semântica correta */
.footer-col-title,
#site-footer .footer-col-title {
  font-size: 10px !important;
  font-weight: 700 !important;
  color: #4B5563 !important;  /* 7.1:1 em fundo branco ✓ */
  text-transform: uppercase !important;
  letter-spacing: .8px !important;
  margin-bottom: 10px !important;
  line-height: 1.4 !important;
}

/* Breadcrumb — contraste definitivo */
.single-breadcrumb,
.single-breadcrumb a {
  color: #6B7280 !important;  /* 4.6:1 ✓ WCAG AA */
}
.single-breadcrumb span {
  color: #374151 !important;  /* 9:1 ✓ */
}
.single-breadcrumb a:hover {
  color: #B83C00 !important;
}

/* ============================================
   CONTRASTE — HOMEPAGE (todas as falhas)
   ============================================ */

/* Ticker — símbolo (coin-sym, ticker-sym) */
.coin-sym,
.ticker-sym,
.ticker-item .ticker-sym {
  color: #9CA3AF !important; /* 4.5:1 em #111 ✓ */
}

/* Cotações — "AO VIVO" e labels de status */
.coin360-quotes-label,
[style*="color:#00FF"] {
  color: #059669 !important; /* verde escuro 4.7:1 ✓ */
}

/* Carregando... texto em branco/cinza sobre fundo claro */
#fiat-status,
.fng-label,
.fng-updated,
[id*="fng-label"],
[id*="fng-updated"] {
  color: #4B5563 !important; /* 7.1:1 ✓ */
}

/* FnG number/label — sobre fundo branco */
.fng-number,
#fng-num {
  color: #111827 !important; /* 17:1 ✓ */
}

/* News card date */
.news-card-date {
  color: #6B7280 !important; /* 4.6:1 ✓ */
}

/* "3 min min" — tempo de leitura */
.post-meta,
.hero-meta,
.hero-meta span,
.hero-meta time {
  color: #6B7280 !important;
}

/* Links de cotações coin-card */
.coin-card-top .coin-symbol,
.coin-symbol {
  color: #6B7280 !important; /* 4.6:1 ✓ */
}

/* Preço dos cards de moeda */
.coin-price {
  color: #111827 !important; /* 17:1 ✓ */
}

/* Variação negativa/positiva nos cards */
.coin-change {
  font-weight: 700 !important;
}
.coin-change.up { color: #15803D !important; } /* verde escuro 4.6:1 ✓ */
.coin-change.dn { color: #B91C1C !important; } /* vermelho escuro 5.1:1 ✓ */

/* "EM ALTA AGORA" label */
.widget-title,
.section-title {
  color: #1F2937 !important; /* 13:1 ✓ */
}

/* Links internos das notícias */
.news-card-body h3 a,
.featured-post-body h2 a {
  color: #1F2937 !important;
}
.news-card-body h3 a:hover,
.featured-post-body h2 a:hover {
  color: #B83C00 !important;
}

/* Categoria nos cards — "BITCOIN", "ETHEREUM" etc */
.news-card-cat {
  color: #9A3412 !important; /* 4.8:1 em branco ✓ */
  font-weight: 700 !important;
}

/* "Cotações em tempo real" label */
.coin360-quotes-title {
  color: #4B5563 !important; /* 7.1:1 ✓ */
}

/* Tempo de leitura "3 min min" — sobre fundo card */
.featured-post-body .post-meta,
.post-meta span,
.post-meta time {
  color: #6B7280 !important;
}

/* Guia texto "Leia mais" */
.section-link {
  color: #B83C00 !important; /* 4.7:1 ✓ */
}

/* Hero excerpt texto */
.hero-excerpt {
  color: #4B5563 !important; /* 7.1:1 ✓ */
}

/* Links das cotações na homepage */
.coin-card-link,
a.coin-card {
  color: inherit !important;
}

/* "AO VIVO" badge */
.hero-live-badge,
.coin360-quotes-label {
  color: #065F46 !important; /* verde escuro 7:1 em fundo verde claro ✓ */
}

/* Rank rows na sidebar */
.rank-sym,
.rank-price,
.rank-chg {
  color: #4B5563 !important;
}
.rank-chg.up { color: #15803D !important; }
.rank-chg.dn { color: #B91C1C !important; }

/* Footer links reforço */
.footer-col a,
#site-footer a {
  color: #4B5563 !important;
}
.footer-col a:hover,
#site-footer a:hover {
  color: #B83C00 !important;
}

/* Copyright */
#site-footer .copyright,
#site-footer > .footer-inner > div:last-child div {
  color: #6B7280 !important;
}

/* "learn" card tags */
.learn-tag {
  color: #9A3412 !important;
  background: #FEF0EA !important;
  border-color: #FCA274 !important;
}

/* Texto dentro dos learn cards */
.learn-card p {
  color: #4B5563 !important;
}

/* Texto "Leia mais" nos cards */
.learn-arrow {
  color: #B83C00 !important;
}

/* ============================================
   CONTRASTE — CORREÇÃO FINAL HOMEPAGE
   ============================================ */

/* hero-cat-pill "Bitcoin" — laranja claro em fundo escuro */
.hero-cat-pill {
  background: #FEF0EA !important;
  color: #9A3412 !important;   /* 4.8:1 ✓ */
  border: 1px solid #FCA274 !important;
  font-weight: 700 !important;
}

/* market-strip-label "COTAÇÕES EM TEMPO REAL — BRL" */
.market-strip-label {
  color: #4B5563 !important;   /* 7.1:1 em fundo #FAFAF8 ✓ */
  font-weight: 700 !important;
}

/* live-status "● CARREGANDO..." — verde claro em fundo claro */
#live-status,
span#live-status {
  color: #15803D !important;   /* 4.6:1 ✓ */
  font-weight: 700 !important;
  font-size: 10px !important;
}

/* fng-of "/100" — cinza claro em fundo branco */
.fng-of {
  color: #6B7280 !important;   /* 4.6:1 ✓ */
  font-size: 9px !important;
  text-transform: uppercase !important;
}

/* fng-core container */
.fng-core {
  background: #fff !important;
  border: 1px solid #E5E2D9 !important;
}

/* fng-number — número do índice */
.fng-number {
  color: #1F2937 !important;   /* 13:1 ✓ */
  font-weight: 800 !important;
}

/* "Carregando..." span no trending/widget */
.loading-indicator span,
.loading-indicator,
#trending-list span,
.widget-box span[style*="color"] {
  color: #6B7280 !important;   /* 4.6:1 ✓ */
}

/* market-strip seção completa */
.market-strip {
  background: #FAFAF8 !important;
}
.market-strip-label .see-all,
.market-strip-label span {
  color: #15803D !important;   /* verde escuro ✓ */
}

/* "● AO VIVO — CMC" badge verde */
.coin360-quotes-label,
[style*="color:#22C55E"],
[style*="color: #22C55E"] {
  color: #15803D !important;
}

/* H3 nos learn cards — mesmo visual do H4 anterior */
.learn-card-title,
.learn-card h3 {
  font-family: var(--font-title);
  font-size: 13px;
  font-weight: 700;
  color: var(--text);
  line-height: 1.42;
  margin-bottom: 5px;
}

/* ============================================
   MAILCHIMP FOR WP — herdar visual do Coin360
   ============================================ */

/* Banner newsletter (fundo escuro) */
.newsletter-mc-wrap .mc4wp-form,
.newsletter-box .mc4wp-form {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.newsletter-mc-wrap .mc4wp-form input[type="email"],
.newsletter-box .mc4wp-form input[type="email"] {
  background: #242424 !important;
  border: 1px solid #333 !important;
  color: #fff !important;
  padding: 10px 14px !important;
  border-radius: 8px !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  font-size: 12.5px !important;
  width: 200px !important;
  outline: none !important;
}

.newsletter-mc-wrap .mc4wp-form input[type="email"]::placeholder,
.newsletter-box .mc4wp-form input[type="email"]::placeholder {
  color: #888 !important;
}

.newsletter-mc-wrap .mc4wp-form input[type="submit"],
.newsletter-box .mc4wp-form input[type="submit"] {
  background: #E8500A !important;
  color: #fff !important;
  border: none !important;
  padding: 10px 18px !important;
  border-radius: 8px !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  white-space: nowrap !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  transition: background .15s !important;
}

.newsletter-mc-wrap .mc4wp-form input[type="submit"]:hover,
.newsletter-box .mc4wp-form input[type="submit"]:hover {
  background: #C04000 !important;
}

/* Esconder label (já temos placeholder) */
.newsletter-mc-wrap .mc4wp-form label,
.newsletter-box .mc4wp-form label {
  display: none !important;
}

/* Widget sidebar (fundo laranja claro) */
.nl-widget .mc4wp-form {
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.nl-widget .mc4wp-form label {
  display: none !important;
}

.nl-widget .mc4wp-form input[type="email"] {
  width: 100% !important;
  background: #fff !important;
  border: 1px solid #FCC9A8 !important;
  color: #333 !important;
  padding: 8px 11px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  outline: none !important;
}

.nl-widget .mc4wp-form input[type="submit"] {
  width: 100% !important;
  background: #E8500A !important;
  color: #fff !important;
  border: none !important;
  padding: 9px !important;
  border-radius: 7px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  cursor: pointer !important;
  font-family: system-ui, -apple-system, sans-serif !important;
  transition: background .15s !important;
}

.nl-widget .mc4wp-form input[type="submit"]:hover {
  background: #C04000 !important;
}

/* Mensagem de sucesso/erro */
.mc4wp-form .mc4wp-success p,
.mc4wp-form .mc4wp-alert p {
  font-size: 12px !important;
  margin-top: 6px !important;
  font-family: system-ui, -apple-system, sans-serif !important;
}

.mc4wp-form .mc4wp-success p { color: #15803D !important; }
.mc4wp-form .mc4wp-error p   { color: #B91C1C !important; }

@media(max-width:600px){
  .newsletter-mc-wrap .mc4wp-form,
  .newsletter-box .mc4wp-form { flex-direction: column; width: 100%; }
  .newsletter-mc-wrap .mc4wp-form input[type="email"],
  .newsletter-box .mc4wp-form input[type="email"] { width: 100% !important; }
}

/* ============================================
   WHATSAPP GROUP BANNER & WIDGET
   ============================================ */

/* ── BANNER (rodapé da homepage) ── */
.wa-banner-section {
  padding: 0 20px 28px;
}

.wa-banner-box {
  background: linear-gradient(135deg, #0a1628 0%, #111 60%, #0d1f0d 100%);
  border-radius: 16px;
  padding: 28px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1140px;
  margin: 0 auto;
  border: 1px solid #1a3a1a;
  position: relative;
  overflow: hidden;
}

.wa-banner-box::before {
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,211,102,.12) 0%, transparent 70%);
  pointer-events: none;
}

.wa-banner-left {
  display: flex;
  align-items: center;
  gap: 20px;
  flex: 1;
  min-width: 0;
}

.wa-banner-icon {
  flex-shrink: 0;
  width: 64px; height: 64px;
  background: rgba(37,211,102,.12);
  border: 1px solid rgba(37,211,102,.25);
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
}

.wa-banner-text h3 {
  font-size: 20px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 6px;
}

.wa-banner-text p {
  font-size: 13px;
  color: #9CA3AF;
  margin-bottom: 12px;
  line-height: 1.55;
}

.wa-banner-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.wa-banner-badges span {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  color: #D1D5DB;
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: 20px;
}

.wa-banner-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: #fff !important;
  font-size: 15px;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 12px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
  transition: background .15s, transform .15s, box-shadow .15s;
  box-shadow: 0 4px 20px rgba(37,211,102,.35);
}

.wa-banner-btn:hover {
  background: #1da851 !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(37,211,102,.45);
  color: #fff !important;
}

/* ── WIDGET (sidebar) ── */
.wa-widget {
  background: linear-gradient(135deg, #F0FFF4 0%, #DCFCE7 100%);
  border: 1.5px solid #86EFAC;
  border-radius: var(--radius-lg);
  padding: 18px 16px;
  margin-bottom: 16px;
  text-align: center;
}

.wa-widget-icon {
  width: 52px; height: 52px;
  background: #25D366;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px;
  color: #fff;
  box-shadow: 0 4px 14px rgba(37,211,102,.4);
}

.wa-widget-title {
  font-size: 14px;
  font-weight: 800;
  color: #14532D;
  margin-bottom: 6px;
}

.wa-widget-desc {
  font-size: 12px;
  color: #166534;
  line-height: 1.6;
  margin-bottom: 14px;
}

.wa-widget-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #25D366;
  color: #fff !important;
  font-size: 13px;
  font-weight: 800;
  padding: 11px 16px;
  border-radius: 10px;
  text-decoration: none;
  transition: background .15s, transform .15s;
  box-shadow: 0 3px 12px rgba(37,211,102,.35);
  margin-bottom: 10px;
}

.wa-widget-btn:hover {
  background: #1da851 !important;
  transform: translateY(-1px);
  color: #fff !important;
}

.wa-widget-note {
  font-size: 10.5px;
  color: #166534;
  opacity: .8;
}

/* Responsivo */
@media (max-width: 768px) {
  .wa-banner-box {
    flex-direction: column;
    text-align: center;
    padding: 22px 20px;
  }
  .wa-banner-left { flex-direction: column; text-align: center; }
  .wa-banner-badges { justify-content: center; }
  .wa-banner-btn { width: 100%; justify-content: center; font-size: 14px; }
}

/* ============================================
   EEAT BOX — Autoridade, Experiência, Confiança
   ============================================ */
.eeat-box {
  background: #fff;
  border: 1px solid #E5E2D9;
  border-radius: var(--radius-lg);
  padding: 20px 24px;
  margin-top: 24px;
  overflow: hidden;
}

/* Cabeçalho com autor e datas */
.eeat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F0EDE5;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.eeat-author-block {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  min-width: 0;
}

.eeat-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #E8500A;
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.eeat-author-name {
  font-size: 13px;
  color: #6B7280;
  margin-bottom: 3px;
}

.eeat-author-name strong {
  color: #111;
  font-weight: 700;
}

.eeat-author-bio {
  font-size: 12px;
  color: #6B7280;
  line-height: 1.5;
  max-width: 400px;
}

.eeat-meta-block {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.eeat-meta-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eeat-meta-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.eeat-meta-label {
  font-size: 10px;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
  margin-bottom: 2px;
}

.eeat-meta-val {
  font-size: 12.5px;
  font-weight: 700;
  color: #374151;
}

/* Aviso disclaimer */
.eeat-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #FFFBEB;
  border: 1px solid #FDE68A;
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.eeat-disclaimer-icon {
  font-size: 18px;
  flex-shrink: 0;
  margin-top: 1px;
}

.eeat-disclaimer-text {
  font-size: 12.5px;
  color: #4B5563;
  line-height: 1.6;
}

.eeat-disclaimer-text strong {
  color: #92400E;
  font-weight: 700;
}

.eeat-disclaimer-text a {
  color: #B83C00;
  font-weight: 600;
  text-decoration: underline;
}

/* Badges de confiança */
.eeat-trust-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.eeat-trust-badges span {
  background: #F5F4F1;
  border: 1px solid #E5E2D9;
  color: #4B5563;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}

/* Leia Também melhorado */
.sa-related {
  margin-top: 24px;
}

.sa-related .news-grid {
  grid-template-columns: repeat(2,1fr);
}

/* Responsivo */
@media(max-width:768px){
  .eeat-box { padding: 16px; }
  .eeat-header { flex-direction: column; gap: 14px; }
  .eeat-meta-block { gap: 14px; }
  .eeat-author-bio { display: none; }
  .sa-related .news-grid { grid-template-columns: 1fr; }
}

/* ============================================
   EEAT CARD — Caixa de autor premium
   ============================================ */
.eeat-card {
  background: #fff;
  border: 1px solid #E5E2D9;
  border-radius: 16px;
  overflow: hidden;
  margin-top: 28px;
}

/* ── Cabeçalho ── */
.eeat-card-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 24px 18px;
  border-bottom: 1px solid #F0EDE5;
  background: linear-gradient(135deg, #FAFAF8 0%, #fff 100%);
  flex-wrap: wrap;
}

/* Bloco do autor */
.eeat-card-author {
  display: flex;
  align-items: center;
  gap: 16px;
  flex: 1;
  min-width: 0;
}

/* Foto */
.eeat-card-photo {
  position: relative;
  flex-shrink: 0;
}

.eeat-photo-img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 2px 12px rgba(0,0,0,.12);
  display: block;
}

.eeat-photo-fallback {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #E8500A, #ff6b35);
  color: #fff;
  font-size: 22px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid #fff;
  box-shadow: 0 2px 12px rgba(232,80,10,.25);
}

.eeat-verified-badge {
  position: absolute;
  bottom: 1px;
  right: 1px;
  width: 20px;
  height: 20px;
  background: #E8500A;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}

/* Info do autor */
.eeat-card-info { flex: 1; min-width: 0; }

.eeat-card-label {
  font-size: 10px;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: .7px;
  font-weight: 600;
  margin-bottom: 3px;
}

.eeat-card-name {
  display: block;
  font-size: 17px;
  font-weight: 800;
  color: #111;
  text-decoration: none;
  margin-bottom: 3px;
  line-height: 1.2;
}
.eeat-card-name:hover { color: #E8500A; }

.eeat-card-role {
  font-size: 12px;
  color: #6B7280;
  margin-bottom: 8px;
}

.eeat-card-stats {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.eeat-card-stats span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11.5px;
  color: #6B7280;
  font-weight: 600;
}

.eeat-card-stats svg {
  color: #E8500A;
  flex-shrink: 0;
}

/* Datas */
.eeat-card-dates {
  display: flex;
  gap: 20px;
  flex-shrink: 0;
}

.eeat-date-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eeat-date-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background: #FEF0EA;
  border: 1px solid #FCC9A8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #E8500A;
  flex-shrink: 0;
}

.eeat-date-label {
  font-size: 10px;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: .5px;
  font-weight: 600;
  margin-bottom: 2px;
}

.eeat-date-val {
  font-size: 13px;
  font-weight: 700;
  color: #374151;
}

/* ── Bio ── */
.eeat-card-bio {
  padding: 16px 24px;
  border-bottom: 1px solid #F0EDE5;
  background: #FAFAF8;
}

.eeat-card-bio p {
  font-size: 13.5px;
  color: #4B5563;
  line-height: 1.65;
  margin-bottom: 8px;
}

.eeat-see-more {
  font-size: 12.5px;
  font-weight: 700;
  color: #E8500A;
  text-decoration: none;
}
.eeat-see-more:hover { color: #B83C00; text-decoration: underline; }

/* ── Disclaimer ── */
.eeat-card-disclaimer {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px 24px;
  background: #FFFBEB;
  border-bottom: 1px solid #FDE68A;
}

.eeat-disc-icon { flex-shrink: 0; margin-top: 2px; }

.eeat-card-disclaimer p {
  font-size: 12.5px;
  color: #4B5563;
  line-height: 1.6;
  margin: 0;
}

.eeat-card-disclaimer strong { color: #92400E; font-weight: 700; }

.eeat-card-disclaimer a {
  color: #B83C00;
  font-weight: 600;
  text-decoration: underline;
}

/* ── Selos de confiança ── */
.eeat-card-trust {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 14px 24px;
  background: #fff;
}

.eeat-trust-pill {
  background: #F5F4F1;
  border: 1px solid #E5E2D9;
  color: #4B5563;
  font-size: 11.5px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
}

/* ── Responsivo ── */
@media (max-width: 768px) {
  .eeat-card-header  { padding: 16px; gap: 14px; }
  .eeat-card-bio     { padding: 14px 16px; }
  .eeat-card-trust   { padding: 12px 16px; gap: 6px; }
  .eeat-card-disclaimer { padding: 12px 16px; }
  .eeat-card-dates   { display: none; }
  .eeat-photo-img, .eeat-photo-fallback { width: 56px; height: 56px; }
  .eeat-card-name    { font-size: 15px; }
  .eeat-trust-pill   { font-size: 11px; padding: 4px 10px; }
}

/* ============================================
   LEIA TAMBÉM — bloco no meio do conteúdo
   ============================================ */
.mid-related {
  background: #FAFAF8;
  border: 1px solid #E5E2D9;
  border-left: 4px solid #E8500A;
  border-radius: 10px;
  padding: 16px 18px;
  margin: 28px 0;
  clear: both;
}

.mid-related-label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  font-weight: 800;
  color: #E8500A;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 14px;
}

.mid-related-label svg {
  color: #E8500A;
  flex-shrink: 0;
}

.mid-related-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.mid-related-card {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  background: #fff;
  border: 1px solid #EDE9E0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow .15s, transform .15s;
}

.mid-related-card:hover {
  box-shadow: 0 4px 16px rgba(0,0,0,.08);
  transform: translateY(-1px);
}

.mid-related-thumb {
  position: relative;
  width: 90px;
  height: 72px;
  flex-shrink: 0;
  overflow: hidden;
}

.mid-related-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.mid-related-cat {
  position: absolute;
  top: 4px;
  left: 4px;
  background: #E8500A;
  color: #fff;
  font-size: 8px;
  font-weight: 700;
  padding: 2px 5px;
  border-radius: 3px;
  text-transform: uppercase;
  letter-spacing: .4px;
}

.mid-related-body {
  padding: 8px 10px 8px 0;
  flex: 1;
  min-width: 0;
}

.mid-related-title {
  font-size: 13px;
  font-weight: 700;
  color: #111;
  line-height: 1.4;
  margin: 0 0 5px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mid-related-date {
  font-size: 11px;
  color: #9CA3AF;
  font-weight: 500;
}

@media (max-width: 640px) {
  .mid-related-grid { grid-template-columns: 1fr; }
  .mid-related-thumb { width: 80px; height: 64px; }
  .mid-related-title { font-size: 12.5px; -webkit-line-clamp: 2; }
}

/* ============================================
   LEIA TAMBÉM — formato lista de títulos
   ============================================ */
.mid-related-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mid-related-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.mid-related-bullet {
  color: #E8500A;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.3;
  flex-shrink: 0;
}

.mid-related-cat {
  display: inline-block;
  font-size: 9.5px;
  font-weight: 700;
  color: #9A3412;
  background: #FEF0EA;
  border: 1px solid #FCA274;
  border-radius: 3px;
  padding: 1px 6px;
  text-transform: uppercase;
  letter-spacing: .4px;
  margin-bottom: 3px;
  margin-right: 4px;
}

.mid-related-link {
  display: block;
  font-size: 14px;
  font-weight: 600;
  color: #1F2937;
  text-decoration: none;
  line-height: 1.45;
  transition: color .15s;
}

.mid-related-link:hover {
  color: #E8500A;
  text-decoration: underline;
}

/* LEIA TAMBÉM — versão minimalista */
.mid-related {
  border-left: 3px solid #E8500A;
  padding: 10px 16px;
  margin: 28px 0;
  background: #FAFAF8;
  border-radius: 0 6px 6px 0;
}
.mid-related-label {
  font-size: 11px;
  font-weight: 700;
  color: #9CA3AF;
  text-transform: uppercase;
  letter-spacing: .8px;
  display: block;
  margin-bottom: 8px;
}
.mid-related-link {
  display: block;
  font-size: 14.5px;
  font-weight: 600;
  color: #1F2937;
  text-decoration: none;
  line-height: 1.5;
  margin-bottom: 5px;
}
.mid-related-link:hover { color: #E8500A; }


/* ── Full-width pages (predictions index, no sidebar) ── */
.cppi-fullpage .single-wrap {
  grid-template-columns: 1fr !important;
  max-width: 100% !important;
}
.cppi-fullpage .single-sidebar { display: none !important; }
.cppi-fullpage .sa-box {
  max-width: 100% !important;
  width: 100% !important;
}

/* ── Full-width page (predictions index) ──────── */
.page-fullwidth-wrap {
  width: 100%;
  max-width: 100%;
  padding: 0 24px 40px;
  box-sizing: border-box;
}
.page-fullwidth-wrap .entry-content {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
}
/* Hide page title H1 on full-width pages — plugin renders its own */
.page-fullwidth-wrap .single-header { display: none; }

/* cppi table — ensure full width on this layout */
.page-fullwidth-wrap .cppi-wrap { max-width: 1200px; margin: 0 auto; }

/* ── Mobile fixes for predictions table ──────── */
@media (max-width: 600px) {
  .page-fullwidth-wrap { padding: 0 12px 32px; }

  /* Table outer scrolls horizontally */
  .cppi-table-outer {
    border-radius: 8px;
    border: 1px solid #E5E2D9;
  }

  /* Smaller tabs */
  .cppi-tab { padding: 5px 10px; font-size: 11px; }

  /* Hero stacks vertically */
  .cppi-hero {
    flex-direction: column;
    gap: 12px;
    padding: 12px 0 10px;
  }
  .cppi-search-wrap { width: 100% !important; min-width: unset; }
  .cppi-hero-title { font-size: 18px !important; }
  .cppi-hero-sub   { font-size: 12px; }

  /* Show scroll hint on mobile */
  .cppi-table-outer::after {
    content: '← deslize para ver mais →';
    display: block;
    text-align: center;
    font-size: 10px;
    color: #bbb;
    padding: 6px;
    background: #F9F8F6;
    border-top: 1px solid #E5E2D9;
  }
}

/* ── Footer Donation ─────────────────────────── */
.footer-donation { padding: 24px 0 16px; border-top: 1px solid rgba(255,255,255,.07); margin-top: 8px; }
.footer-don-title { font-size: 14px; font-weight: 700; color: #F0B90B; margin: 0 0 12px; }
.footer-don-list { display: flex; flex-direction: column; gap: 7px; max-width: 580px; }
.footer-don-row {
  display: flex; align-items: center; gap: 10px;
  background: #1e2540; border-radius: 8px; padding: 8px 10px;
}
.footer-don-icon {
  width: 32px; height: 32px; border-radius: 7px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,.1);
}
.footer-don-addr {
  flex: 1; min-width: 0;
  background: #fff; border-radius: 6px; padding: 6px 10px;
  font-size: 11px; color: #555;
  font-family: 'DM Mono', ui-monospace, monospace;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.footer-don-copy {
  flex-shrink: 0;
  background: #363d5c !important; border: none !important;
  border-radius: 7px; width: 32px !important; height: 32px !important;
  padding: 0 !important; display: flex !important;
  align-items: center; justify-content: center;
  cursor: pointer; color: #aab !important;
  transition: background .15s, color .15s; font-size: 0 !important;
}
.footer-don-copy:hover { background: #4a5278 !important; color: #fff !important; }
.footer-don-copy svg { display: block !important; width: 14px; height: 14px; color: #aabbcc; }

/* ── Footer dark theme ── */
#site-footer { color: #94A3B8 !important; }
#site-footer .footer-about { color: #64748B !important; }
#site-footer .footer-col a { color: #94A3B8 !important; }
#site-footer .footer-col a:hover { color: #E8500A !important; }
#site-footer .footer-col h5,
#site-footer .footer-widget-title,
#site-footer h5,
#site-footer .footer-col-title { color: #CBD5E1 !important; }
#site-footer .footer-bottom,
#site-footer .footer-bottom * { color: #475569 !important; }
#site-footer .footer-bottom { border-top: 1px solid rgba(255,255,255,.07) !important; }

/* ── H1 SEO da homepage — visível como subtítulo elegante ── */
.homepage-seo-h1 {
  font-size: 13px;
  font-weight: 500;
  color: #9CA3AF;
  text-align: center;
  padding: 10px 20px 6px;
  margin: 0;
  letter-spacing: .1px;
  background: #FAFAF8;
  border-bottom: 1px solid #F0EDE5;
}
@media (max-width: 768px) {
  .homepage-seo-h1 { font-size: 11px; padding: 8px 16px; }
}

/* ── Ticker — contain para não afetar CLS ── */
.coin360-ticker { contain: layout style; }

/* ── Footer legal bar ── */
.footer-legal-bar {
  border-top: 1px solid rgba(255,255,255,.07);
  margin-top: 12px;
  padding-top: 12px;
  text-align: center;
  font-size: 11px;
  color: #666;
  line-height: 1.7;
}
.footer-legal-bar a { color: #888; text-decoration: underline; }
.footer-legal-bar strong { color: #888; }


/* ── Remove barra de preços antiga ── */
.coin360-ticker,
#coin360-ticker,
.ticker-track,
.market-strip,
.sp-price-bar,
.live-price-bar {
  display: none !important;
}

.coin360-ticker,#coin360-ticker,.ticker-track,.ticker-item,.market-strip{display:none!important;height:0!important;min-height:0!important;padding:0!important;margin:0!important;overflow:hidden!important}

/* Remove admin bar space */
html{margin-top:0!important}body{margin-top:0!important}#wpadminbar{display:none!important}

/* ── Market page: previsão destaque + links grid ── */
.market-previsao-grid{background:linear-gradient(135deg,#1e293b,#0f172a);border-radius:14px;padding:24px;margin-bottom:28px}
.market-previsao-title{font-size:18px;font-weight:800;color:#fff;margin-bottom:8px}
.market-previsao-sub{font-size:13px;color:#94a3b8;margin:0 0 16px}
.market-previsao-links{display:flex;flex-wrap:wrap;gap:8px}
.market-previsao-links a{display:inline-block;padding:7px 14px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.12);border-radius:99px;font-size:13px;font-weight:600;color:#e2e8f0;text-decoration:none;transition:all .15s}
.market-previsao-links a:hover{background:rgba(232,80,10,.2);border-color:#E8500A;color:#fff}
.market-previsao-links a.market-previsao-ver-todas{background:#E8500A;border-color:#E8500A;color:#fff}
.market-previsao-links a.market-previsao-ver-todas:hover{background:#c94400}

.market-links-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:20px;margin:20px 0 28px;padding:20px;background:#f8fafc;border-radius:12px;border:1px solid #e2e8f0}
@media(max-width:900px){.market-links-grid{grid-template-columns:repeat(2,1fr)}}
@media(max-width:500px){.market-links-grid{grid-template-columns:1fr}}
.market-link-group{display:flex;flex-direction:column;gap:6px}
.market-link-group strong{font-size:12px;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#374151;margin-bottom:4px;display:block}
.market-link-group a{font-size:13px;color:#E8500A;text-decoration:none;line-height:1.4}
.market-link-group a:hover{text-decoration:underline}
