/* =============================================
   INFORMACOINS — style.css  v2.0
   Paleta escura: Azul #0d1b2a + Dourado #f5c518
   Paleta clara:  Bege #f0efed + Azul escuro #0d1b2a
   ============================================= */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

/* ── UTILITÁRIOS DE ACESSIBILIDADE / SEO ───────── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: -100%; left: 1rem;
  z-index: 9999;
  background: var(--gold, #f5c518);
  color: #0d1b2a;
  padding: 0.5rem 1rem;
  border-radius: 0 0 8px 8px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  transition: top 0.2s;
}
.skip-link:focus { top: 0; }

/* ── VARIÁVEIS — MODO ESCURO (padrão) ─────────── */
:root {
  --bg:        #0d1b2a;
  --bg2:       #111f30;
  --card:      #1a2a3a;
  --card2:     #1f3045;
  --border:    #2a3d52;
  --gold:      #f5c518;
  --gold2:     #e0b010;
  --text:      #e8edf2;
  --text2:     #c5d0db;
  --muted:     #7a9ab5;
  --green:     #00d4aa;
  --red:       #ff5c5c;
  --radius:    12px;
  --shadow:    0 8px 30px rgba(0,0,0,0.4);
  --trans:     background 0.3s ease, color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

/* ── VARIÁVEIS — MODO CLARO ────────────────────── */
body.light {
  --bg:        #f0efed;
  --bg2:       #e5e4e2;
  --card:      #ffffff;
  --card2:     #f5f5f3;
  --border:    #d8d6d2;
  --gold:      #f5c518;
  --gold2:     #d4a017;
  --text:      #0d1b2a;
  --text2:     #2c3e50;
  --muted:     #57606a;
  --green:     #008060;
  --red:       #cc2200;
  --shadow:    0 4px 16px rgba(0,0,0,0.08);
}

/* ── BASE ──────────────────────────────────────── */
body {
  font-family: 'Lexend', sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  transition: background 0.3s ease, color 0.3s ease;
}

a { text-decoration: none; color: inherit; }
ul { list-style: none; }

/* ── HEADER ────────────────────────────────────── */
.header {
  background: var(--bg2);
  border-bottom: 2px solid var(--gold);
  padding: 0.9rem 2rem;
  position: sticky;
  top: 0; z-index: 1000;
  transition: background 0.3s ease, border-color 0.3s ease;
}
body.light .header { box-shadow: 0 2px 8px rgba(0,0,0,0.08); }

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.logo-container {
  display: flex; align-items: center; gap: 0.75rem;
  flex-shrink: 0; cursor: pointer;
}
.logo-icon img  { width: 36px; height: 36px; border-radius: 50%; object-fit: contain; }
.logo-text      { font-size: 1.35rem; font-weight: 700; color: var(--gold); letter-spacing: -0.3px; }
body.light .logo-text { color: #0d1b2a; }

.nav-menu { display: flex; gap: 0.25rem; align-items: center; }

.nav-link {
  font-weight: 500; font-size: 0.9rem;
  color: var(--muted);
  padding: 0.45rem 0.85rem;
  border-radius: 6px;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
  white-space: nowrap;
}
.nav-link:hover              { color: var(--gold); background: rgba(245,197,24,0.08); }
.nav-link.active             { color: var(--gold); border-bottom-color: var(--gold); background: rgba(245,197,24,0.08); }
body.light .nav-link:hover,
body.light .nav-link.active  { color: #0d1b2a; background: rgba(13,27,42,0.07); border-bottom-color: var(--gold); }

.header-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.theme-btn {
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  width: 38px; height: 38px;
  border-radius: 50%;
  cursor: pointer; font-size: 1.1rem;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s, border-color 0.2s, color 0.2s, transform 0.2s;
}
.theme-btn:hover { background: var(--gold); border-color: var(--gold); color: #0d1b2a; transform: rotate(15deg); }
body.light .theme-btn         { background: var(--card); border-color: var(--border); color: var(--text); }
body.light .theme-btn:hover   { background: #0d1b2a; border-color: #0d1b2a; color: var(--gold); }

.mobile-btn {
  display: none;
  background: none; border: none;
  color: var(--gold); font-size: 1.4rem;
  cursor: pointer; padding: 0.3rem; line-height: 1;
}
body.light .mobile-btn { color: #0d1b2a; }

/* ── TICKER ────────────────────────────────────── */
.ticker-wrap {
  background: var(--bg2);
  border-bottom: 1px solid var(--border);
  padding: 0.5rem 0;
  overflow: hidden;
  transition: background 0.3s ease;
}
body.light .ticker-wrap { background: #0d1b2a; border-bottom-color: #0d1b2a; }

.ticker {
  display: flex;
  white-space: nowrap;
  animation: tickerScroll 60s linear infinite;
}
.ticker:hover { animation-play-state: paused; }

@keyframes tickerScroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.ticker-item {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 0 1.5rem; font-size: 0.82rem; font-weight: 500;
  border-right: 1px solid rgba(255,255,255,0.1);
  color: #e8edf2;
}
.ticker-symbol  { color: var(--gold); font-weight: 700; }
.ticker-price   { color: #e8edf2; }
.ticker-up      { color: #00d4aa; }
.ticker-down    { color: #ff5c5c; }
.ticker-loading { color: var(--muted); font-size: 0.85rem; padding: 0 1rem; }

/* ── MAIN ──────────────────────────────────────── */
.container { max-width: 1200px; margin: 2rem auto; padding: 0 1.25rem; }

.page       { display: none; animation: fadeIn 0.35s ease; }
.page.active { display: block; }

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

.page-title { font-size: 1.8rem; font-weight: 700; margin-bottom: 2rem; color: var(--text); }
body.light .page-title { color: #0d1b2a; }

/* ── STATS CARDS ───────────────────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  margin-bottom: 2rem;
}

.stat-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  box-shadow: var(--shadow);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s;
}
.stat-card:hover { transform: translateY(-3px); }
body.light .stat-card { background: #ffffff; border-color: var(--border); border-top: 3px solid var(--gold); }

.stat-label { font-size: 0.8rem; font-weight: 500; color: var(--muted); text-transform: uppercase; letter-spacing: 0.5px; margin-bottom: 0.4rem; }
.stat-value { font-size: 1.45rem; font-weight: 700; color: var(--text); margin-bottom: 0.3rem; }
body.light .stat-value { color: #0d1b2a; }
.stat-sub   { font-size: 0.85rem; font-weight: 500; }

.skeleton {
  background: linear-gradient(90deg, var(--card) 25%, var(--card2) 50%, var(--card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: var(--radius);
  height: 105px;
  border: 1px solid var(--border);
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to   { background-position: -200% 0; }
}

/* ── BARRA DE BUSCA FULL-WIDTH ─────────────────── */
.search-bar-wrap {
  margin-bottom: 1rem;
}

.search-input-full {
  width: 100%;
  padding: 0.75rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 10px;
  outline: none;
  font-family: inherit;
  font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.3s;
}
.search-input-full:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,197,24,0.12);
}
body.light .search-input-full { background: #fff; color: #0d1b2a; border-color: var(--border); }
body.light .search-input-full::placeholder { color: var(--muted); }

/* ── SEÇÃO TABELA ──────────────────────────────── */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 1rem;
}

.section-title { font-size: 1.15rem; font-weight: 600; color: var(--text); }
body.light .section-title { color: #0d1b2a; }

.table-controls { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }

.search-input {
  padding: 0.55rem 1rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 20px;
  outline: none;
  font-family: inherit;
  font-size: 0.88rem;
  width: 220px;
  transition: border-color 0.2s, background 0.3s;
}
.search-input:focus          { border-color: var(--gold); }
.search-input.wide           { width: 100%; max-width: 100%; margin-bottom: 1.5rem; }
body.light .search-input     { background: #fff; color: #0d1b2a; }
body.light .search-input::placeholder { color: var(--muted); }

.update-info { font-size: 0.78rem; color: var(--muted); white-space: nowrap; }

/* ── TABELA ────────────────────────────────────── */
.table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow-x: auto;
  box-shadow: var(--shadow);
  transition: background 0.3s ease, border-color 0.3s ease;
}
body.light .table-wrap { background: #fff; }

.crypto-table { width: 100%; border-collapse: collapse; text-align: left; min-width: 820px; }

.crypto-table th {
  background: var(--bg2);
  color: var(--muted);
  padding: 0.9rem 1rem;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.72rem;
  letter-spacing: 0.8px;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: color 0.2s, background 0.3s;
}
.crypto-table th:hover { color: var(--gold); }
body.light .crypto-table th:hover { color: #0d1b2a; }
.crypto-table th.sorted-asc::after  { content: ' ↑'; color: var(--gold); }
.crypto-table th.sorted-desc::after { content: ' ↓'; color: var(--gold); }

.crypto-table td {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--border);
  font-size: 0.92rem;
  transition: background 0.15s;
}
.crypto-table tr:last-child td { border-bottom: none; }
.crypto-table tr:hover td      { background: rgba(245,197,24,0.05); }
body.light .crypto-table tr:hover td { background: rgba(13,27,42,0.04); }

.rank-cell   { color: var(--muted); font-size: 0.85rem; width: 40px; }
.coin-cell   { display: flex; align-items: center; gap: 0.7rem; }
.coin-icon   { width: 26px; height: 26px; border-radius: 50%; flex-shrink: 0; }
.coin-name   { font-weight: 600; color: var(--text); font-size: 0.9rem; }
body.light .coin-name { color: #0d1b2a; }
.coin-symbol { color: var(--muted); font-size: 0.78rem; text-transform: uppercase; }

.price-cell  { font-weight: 500; white-space: nowrap; }
.change-cell { font-weight: 600; font-size: 0.85rem; white-space: nowrap; }

.badge-up  { color: var(--green); }
.badge-down { color: var(--red); }
.up   { color: var(--green); }
.down { color: var(--red); }

.loading-row { text-align: center; padding: 3rem; color: var(--muted); }

.spinner {
  display: inline-block;
  width: 16px; height: 16px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  vertical-align: middle;
  margin-right: 0.5rem;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ── CALCULADORA ───────────────────────────────── */
.calc-container {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
}

.calc-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem;
  box-shadow: var(--shadow);
  transition: background 0.3s ease, border-color 0.3s ease;
}
body.light .calc-card { background: #fff; }

.calc-row { display: flex; align-items: flex-end; gap: 1rem; margin-bottom: 1.25rem; }
.calc-field { flex: 1; display: flex; flex-direction: column; gap: 0.5rem; }

.calc-field label {
  font-size: 0.82rem; font-weight: 500;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.calc-field input,
.calc-field select {
  width: 100%;
  padding: 0.7rem 0.9rem;
  background: var(--bg);
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  font-family: inherit; font-size: 0.9rem;
  outline: none;
  transition: border-color 0.2s, background 0.3s;
}
.calc-field input:focus,
.calc-field select:focus { border-color: var(--gold); }
body.light .calc-field input,
body.light .calc-field select { background: var(--bg2); color: #0d1b2a; }

.swap-btn {
  background: var(--card2);
  border: 1px solid var(--border);
  color: var(--gold);
  width: 40px; height: 40px;
  border-radius: 50%;
  cursor: pointer; font-size: 1.2rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; margin-bottom: 2px;
  transition: background 0.2s, color 0.2s, transform 0.3s;
}
.swap-btn:hover { background: var(--gold); color: #0d1b2a; transform: rotate(180deg); }
body.light .swap-btn       { background: var(--bg2); border-color: var(--border); color: #0d1b2a; }
body.light .swap-btn:hover { background: #0d1b2a; color: var(--gold); }

.convert-btn {
  width: 100%;
  padding: 0.85rem;
  background: var(--gold);
  color: #0d1b2a;
  border: none;
  border-radius: 8px;
  font-family: inherit; font-size: 0.95rem; font-weight: 700;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.1s;
}
.convert-btn:hover { opacity: 0.88; transform: scale(1.01); }

.calc-rate { margin-top: 1.25rem; text-align: center; font-size: 1rem; font-weight: 600; color: var(--text2); }
body.light .calc-rate { color: var(--muted); }

.calc-table-wrap {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
  transition: background 0.3s ease, border-color 0.3s ease;
}
body.light .calc-table-wrap { background: #fff; }
.calc-table-wrap h3 { font-size: 1rem; font-weight: 600; color: var(--text); margin-bottom: 1rem; }
body.light .calc-table-wrap h3 { color: #0d1b2a; }

.conv-table { width: 100%; border-collapse: collapse; }
.conv-table th {
  background: var(--bg2);
  color: var(--muted);
  padding: 0.7rem 1rem;
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.5px;
}
.conv-table td { padding: 0.65rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.88rem; }
.conv-table tr:last-child td { border-bottom: none; }
.conv-table tr:hover td { background: rgba(245,197,24,0.05); }
body.light .conv-table tr:hover td { background: rgba(13,27,42,0.04); }
.conv-symbol { font-weight: 600; color: var(--gold); }
body.light .conv-symbol { color: #0d1b2a; }

/* ── GLOSSÁRIO ─────────────────────────────────── */
.glossary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.glossary-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s;
}
.glossary-card:hover { transform: translateY(-4px); }
body.light .glossary-card { background: #fff; border-left: 3px solid var(--gold); }

.glossary-term,
.glossary-card h3 { font-size: 1rem; font-weight: 700; color: var(--gold); margin-bottom: 0.6rem; }
body.light .glossary-term,
body.light .glossary-card h3 { color: #0d1b2a; }

.glossary-def,
.glossary-card p { font-size: 0.88rem; color: var(--text2); line-height: 1.6; }
body.light .glossary-def,
body.light .glossary-card p { color: var(--muted); }

/* ── TUTORIAIS & ARTIGOS — PESQUISA ────────────── */
.content-search-wrap {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.content-search {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  padding: 0.65rem 1.2rem;
  font-size: 0.92rem;
  border-radius: 25px;
  border: 1px solid var(--border);
  background: var(--card);
  color: var(--text);
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s, background 0.3s;
}
.content-search:focus {
  border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,197,24,0.15);
}
body.light .content-search       { background: #fff; color: #0d1b2a; }
body.light .content-search::placeholder { color: var(--muted); }

.content-search-count {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

.content-empty {
  text-align: center;
  color: var(--muted);
  font-size: 0.92rem;
  padding: 2.5rem 1rem;
  background: var(--card);
  border: 1px dashed var(--border);
  border-radius: var(--radius);
  margin-top: 0.5rem;
}

/* ── TUTORIAIS & ARTIGOS — CARDS ───────────────── */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1.25rem;
}

.content-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: background 0.3s ease, border-color 0.3s ease, transform 0.2s;
  display: flex;
  flex-direction: column;
}
.content-card:hover { transform: translateY(-4px); }
body.light .content-card { background: #fff; }

.content-card-header {
  background: var(--bg2);
  padding: 1.5rem;
  font-size: 2.5rem;
  text-align: center;
  transition: background 0.3s ease;
}
body.light .content-card-header { background: #0d1b2a; }

.content-card-body { padding: 1.25rem; flex: 1; display: flex; flex-direction: column; }

.content-tag {
  display: inline-block;
  font-size: 0.72rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
  background: rgba(245,197,24,0.15);
  color: var(--gold);
  padding: 0.25rem 0.6rem;
  border-radius: 20px;
  margin-bottom: 0.75rem;
}
body.light .content-tag { background: rgba(13,27,42,0.08); color: #0d1b2a; }

.content-title,
.content-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 0.6rem; line-height: 1.4; }
body.light .content-title,
body.light .content-card h3 { color: #0d1b2a; }

.content-desc,
.content-card p { font-size: 0.87rem; color: var(--muted); line-height: 1.6; flex: 1; margin-bottom: 1rem; }

.content-meta { font-size: 0.8rem; color: var(--muted); border-top: 1px solid var(--border); padding-top: 0.75rem; margin-top: auto; }
.content-meta time { font-style: normal; }

/* ── FOOTER ────────────────────────────────────── */
.footer {
  background: var(--bg2);
  border-top: 2px solid var(--gold);
  padding: 2.5rem 1rem;
  margin-top: 4rem;
  text-align: center;
  transition: background 0.3s ease;
}
body.light .footer { background: #0d1b2a; }

.footer-container { max-width: 700px; margin: 0 auto; }

.footer-brand {
  display: flex; align-items: center; justify-content: center;
  gap: 0.6rem; margin-bottom: 1rem;
  font-size: 1.15rem; font-weight: 700; color: var(--gold);
}
.footer-logo       { width: 28px; height: 28px; border-radius: 50%; }
.footer-disclaimer { font-size: 0.8rem; color: #7a9ab5; margin-bottom: 0.75rem; }
.footer-disclaimer a { color: var(--gold); text-decoration: underline; }
.footer-copy       { font-size: 0.75rem; color: #7a9ab5; opacity: 0.75; }

/* ── TABLE FOOTER (info + paginação + seletor) ── */
.table-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}
.table-footer-bottom {
  margin-top: 0.75rem;
  margin-bottom: 0;
}

.table-info {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}

/* ── PAGINAÇÃO ─────────────────────────────────── */
.pagination {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  flex-wrap: wrap;
}

.pg-btn {
  min-width: 34px;
  height: 34px;
  padding: 0 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: 8px;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.pg-btn:hover:not(:disabled) {
  border-color: var(--gold);
  color: var(--gold);
  background: rgba(245,197,24,0.08);
}
.pg-btn.pg-active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0d1b2a;
  font-weight: 700;
  cursor: default;
}
.pg-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}
.pg-arrow {
  font-size: 1.1rem;
  color: var(--muted);
}
.pg-ellipsis {
  min-width: 28px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--muted);
  user-select: none;
}
body.light .pg-btn { background: #fff; border-color: var(--border); color: var(--text2); }
body.light .pg-btn:hover:not(:disabled) { border-color: var(--gold2); color: #0d1b2a; background: rgba(13,27,42,0.05); }
body.light .pg-btn.pg-active { background: #0d1b2a; border-color: #0d1b2a; color: var(--gold); }

/* ── SELETOR DE LINHAS ─────────────────────────── */
.rows-selector {
  display: flex;
  align-items: center;
  gap: 0.3rem;
}
.rows-label {
  font-size: 0.8rem;
  color: var(--muted);
  white-space: nowrap;
}
.rows-btn {
  min-width: 40px;
  height: 30px;
  padding: 0 0.5rem;
  background: var(--card);
  border: 1px solid var(--border);
  color: var(--text2);
  border-radius: 6px;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.rows-btn:hover {
  border-color: var(--gold);
  color: var(--gold);
}
.rows-btn.active {
  background: var(--gold);
  border-color: var(--gold);
  color: #0d1b2a;
  font-weight: 700;
}
body.light .rows-btn { background: #fff; color: var(--text2); }
body.light .rows-btn:hover { border-color: var(--gold2); color: #0d1b2a; }
body.light .rows-btn.active { background: #0d1b2a; border-color: #0d1b2a; color: var(--gold); }

/* ── FAVORITOS ─────────────────────────────────── */
.fav-head {
  width: 36px !important;
  text-align: center;
  color: var(--muted) !important;
  cursor: default !important;
  font-size: 0.9rem;
}
.fav-cell {
  width: 36px;
  padding: 0 !important;
  text-align: center;
}
.fav-btn {
  background: none;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  color: var(--border);
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
  transition: color 0.15s, transform 0.2s;
  line-height: 1;
}
.fav-btn:hover  { color: var(--gold); transform: scale(1.25); }
.fav-btn.active { color: var(--gold); }

/* ── SPARKLINE ─────────────────────────────────── */
.spark-head {
  width: 90px !important;
  text-align: center;
  white-space: nowrap;
}
.spark-cell {
  width: 90px;
  padding: 0.5rem 0.75rem !important;
  text-align: center;
  white-space: nowrap;
}
.sparkline {
  display: block;
  margin: 0 auto;
  overflow: visible;
}
.spark-na {
  color: var(--muted);
  font-size: 0.8rem;
}

/* ── RESPONSIVO ────────────────────────────────── */
@media (max-width: 1024px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 900px) {
  .calc-container { grid-template-columns: 1fr; }
}

@media (max-width: 700px) {
  .nav-menu {
    display: none; flex-direction: column;
    position: absolute; top: 100%; left: 0;
    width: 100%;
    background: var(--bg2);
    border-top: 1px solid var(--border);
    padding: 0.5rem 0;
    z-index: 999; gap: 0;
  }
  .nav-menu.open    { display: flex; }
  .nav-link         { padding: 0.85rem 1.5rem; border-radius: 0; border-bottom: 1px solid var(--border); width: 100%; }
  .nav-link.active  { border-bottom-color: var(--border); }
  .mobile-btn       { display: flex; }
  .header           { padding: 0.85rem 1rem; position: relative; }
  .logo-text        { font-size: 1.1rem; }
  .stats-grid       { grid-template-columns: repeat(2, 1fr); }
  .section-header   { flex-direction: column; align-items: flex-start; }
  .search-input     { width: 100%; }
  .content-search   { max-width: 100%; }
  .page-title       { font-size: 1.4rem; }

  /* Paginação: esconde spark e volume em mobile */
  .spark-head, .spark-cell { display: none; }
  .table-footer { justify-content: center; }
  .rows-selector { width: 100%; justify-content: center; }
  .pagination { justify-content: center; }
  .table-info { width: 100%; text-align: center; }
  /* Esconde paginação bottom em mobile (evita redundância) */
  .table-footer-bottom { display: none; }
}

@media (max-width: 480px) {
  .stats-grid  { grid-template-columns: 1fr; }
  .calc-row    { flex-direction: column; }
  .swap-btn    { align-self: center; }
  .content-search-wrap { flex-direction: column; align-items: flex-start; }
}

/* ── CARDS CLICÁVEIS (tutoriais / artigos) ──── */
a.content-card-link {
  display: flex;
  flex-direction: column;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  border: 1px solid var(--border);
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}
a.content-card-link:hover {
  transform: translateY(-4px);
  border-color: var(--gold);
  box-shadow: 0 8px 24px rgba(245,197,24,0.12);
}
body.light a.content-card-link:hover { border-color: #0d1b2a; }

.read-link {
  display: inline-block;
  margin-top: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--gold);
  letter-spacing: 0.2px;
}
body.light .read-link { color: #0d1b2a; }

/* ── PAGINAÇÃO DE CONTEÚDO (glossário/tutoriais/artigos) ── */
.content-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.3rem;
  margin-top: 2rem;
  flex-wrap: wrap;
}
