/* ============================================================
   fuel.ia.br — app.css
   Plus Jakarta Sans + Instrument Serif · Azul elétrico
   ============================================================ */

/* ── Tokens ───────────────────────────────────────────────── */
:root {
  --blue:       #2F80ED;
  --blue-dk:    #1A5FA8;
  --blue-lt:    #EBF4FF;
  --blue-bd:    #BDD9FA;
  --blue-glow:  rgba(47,128,237,.13);

  --ink:        #111110;
  --ink-2:      #3D3C3A;
  --ink-3:      #6B6966;
  --ink-4:      #AEACAA;

  --line:       #ECEAE4;
  --line-2:     #D4D2CE;
  --surf:       #FFFFFF;
  --bg:         #F8F7F4;

  --green-lt:   #E8F5EF;
  --green-dk:   #1A6B44;
  --amber-lt:   #FEF9EC;
  --amber-dk:   #8A6200;
  --red-lt:     #FEF0F0;
  --red-dk:     #CC0000;

  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  20px;
  --r-pill:100px;

  --shadow-sm: 0 1px 4px rgba(0,0,0,.06);
  --shadow-md: 0 4px 18px rgba(0,0,0,.08);
  --shadow-lg: 0 8px 32px rgba(0,0,0,.10);
  --focus:     0 0 0 3px var(--blue-glow);

  --font: 'Plus Jakarta Sans', sans-serif;
  --serif:'Instrument Serif', serif;
  --ease: cubic-bezier(.4,0,.2,1);
}

/* ── Reset ────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.65;
  color: var(--ink);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
}
h1,h2,h3,h4,h5,h6 {
  font-family: var(--font);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.4px;
  color: var(--ink);
}
a { color: var(--blue-dk); text-decoration: none; transition: color .15s var(--ease); }
a:hover { color: var(--blue); }
img { max-width: 100%; height: auto; }

/* ── Header ───────────────────────────────────────────────── */
.site-header {
  background: var(--surf);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 900;
  transition: box-shadow .2s var(--ease);
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }
.navbar { padding: 12px 0; }

/* Logo */
.navbar-brand { line-height: 1; text-decoration: none; }
.logo-fuel { font-family: var(--font); font-weight: 800; font-size: 19px; letter-spacing: -.5px; color: var(--ink-2); }
.logo-sep  { font-family: var(--font); font-weight: 800; font-size: 19px; color: var(--blue); }
.logo-ia   { font-family: var(--font); font-weight: 800; font-size: 19px; color: var(--blue); }
.logo-br   { font-family: var(--font); font-weight: 600; font-size: 14px; color: var(--ink-4); }

/* Header search */
.header-search {
  position: relative;
  flex: 1;
  max-width: 420px;
  margin: 0 20px;
  align-items: center;
}
.search-ico {
  position: absolute;
  left: 12px;
  color: var(--ink-4);
  font-size: 14px;
  pointer-events: none;
}
.search-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 9px 14px 9px 36px;
  font-family: var(--font);
  font-size: 13px;
  background: var(--bg);
  color: var(--ink);
  transition: border-color .15s, box-shadow .15s;
}
.search-input::placeholder { color: var(--ink-4); }
.search-input:focus { outline: none; border-color: var(--blue); box-shadow: var(--focus); background: var(--surf); }

/* Nav links */
.nav-link {
  font-size: 13px !important;
  font-weight: 600 !important;
  color: var(--ink-3) !important;
  padding: 6px 10px !important;
  border-radius: var(--r-sm);
  transition: background .15s, color .15s;
}
.nav-link:hover, .nav-link.active { background: var(--bg); color: var(--ink) !important; }

.btn-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 16px;
  border-radius: var(--r-md);
  border: none;
  transition: background .15s var(--ease), transform .15s;
  cursor: pointer;
  text-decoration: none;
}
.btn-nav-cta:hover { background: var(--ink-2); color: #fff; transform: translateY(-1px); }

/* ── Hero ─────────────────────────────────────────────────── */
.hero {
  background: #0D1117;
  background-image:
    radial-gradient(ellipse 70% 60% at 15% 0%,   rgba(47,128,237,.18) 0%, transparent 70%),
    radial-gradient(ellipse 50% 50% at 90% 100%,  rgba(47,128,237,.12) 0%, transparent 65%);
  border-bottom: 1px solid rgba(255,255,255,.06);
  padding: 72px 0 64px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(47,128,237,.15);
  border: 1px solid rgba(47,128,237,.35);
  color: #7eb8f7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .6px;
  text-transform: uppercase;
  padding: 5px 13px;
  border-radius: var(--r-pill);
  margin-bottom: 20px;
}
.hero-title {
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: -1.5px;
  margin-bottom: 16px;
  line-height: 1.07;
  color: #fff;
}
.hero-title em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: #7eb8f7;
  letter-spacing: -.2px;
}
.hero-sub {
  color: rgba(255,255,255,.55);
  font-size: 15px;
  max-width: 520px;
  margin: 0 auto 32px;
}

/* Hero search bar */
.hero-search {
  display: flex;
  align-items: center;
  max-width: 580px;
  margin: 0 auto 20px;
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--r-lg);
  padding: 6px 6px 6px 18px;
  gap: 8px;
  backdrop-filter: blur(8px);
}
.hero-search input {
  flex: 1;
  border: none;
  outline: none;
  font-family: var(--font);
  font-size: 14px;
  background: transparent;
  color: #fff;
  min-width: 0;
}
.hero-search input::placeholder { color: rgba(255,255,255,.35); }
.btn-hero {
  background: var(--blue);
  color: #fff;
  border: none;
  border-radius: var(--r-md);
  padding: 10px 22px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, box-shadow .15s;
}
.btn-hero:hover { background: var(--blue-dk); box-shadow: 0 4px 18px rgba(47,128,237,.5); }

/* Quick tags */
.hero-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.hero-tag {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.13);
  color: rgba(255,255,255,.65);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--r-pill);
  text-decoration: none;
  transition: background .13s, border-color .13s, color .13s;
}
.hero-tag:hover {
  background: rgba(47,128,237,.25);
  border-color: rgba(47,128,237,.5);
  color: #7eb8f7;
}

/* Stats bar — transição do hero escuro para o conteúdo */
.stats-bar {
  background: #161b22;
  border-bottom: 1px solid rgba(255,255,255,.06);
  display: flex;
  justify-content: center;
}
.stat-item {
  padding: 18px 36px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,.06);
}
.stat-item:last-child { border-right: none; }
.stat-n {
  font-size: 1.7rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -1px;
  line-height: 1;
  display: block;
}
.stat-n span { color: #7eb8f7; }
.stat-l { font-size: 11px; color: rgba(255,255,255,.4); font-weight: 500; margin-top: 3px; }

/* ── Section headers ──────────────────────────────────────── */
.sec-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--blue-dk);
  background: var(--blue-lt);
  padding: 3px 10px;
  border-radius: var(--r-pill);
  margin-bottom: 8px;
}
.sec-title {
  font-size: clamp(1.25rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -.5px;
  margin-bottom: 4px;
}
.sec-sub { font-size: 14px; color: var(--ink-3); }

/* ── Tool cards ───────────────────────────────────────────── */
.tool-card {
  background: rgba(255,255,255,.93);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  height: 100%;
  position: relative;
  transition: border-color .15s var(--ease), box-shadow .15s var(--ease), transform .15s var(--ease);
}
.tool-card:hover {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px var(--blue-glow);
  transform: translateY(-2px);
}
.tool-card--featured {
  border-color: var(--blue);
  background: rgba(250,252,255,.95);
}
.card-badge-featured {
  position: absolute;
  top: -1px; right: 14px;
  background: var(--blue);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  padding: 3px 9px;
  border-radius: 0 0 var(--r-sm) var(--r-sm);
}

.card-top { display: flex; align-items: flex-start; gap: 10px; }
.card-logo {
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  border: 1px solid var(--line);
  object-fit: contain;
  background: var(--bg);
  padding: 4px;
  flex-shrink: 0;
}
.card-logo-placeholder {
  width: 42px; height: 42px;
  border-radius: var(--r-sm);
  background: var(--blue-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 800; color: var(--blue-dk);
  flex-shrink: 0;
}
.card-name { font-size: 14px; font-weight: 700; color: var(--ink); margin: 0 0 2px; letter-spacing: -.15px; }
.card-cat  { font-size: 11px; color: var(--ink-4); font-weight: 500; text-transform: uppercase; letter-spacing: .3px; }
.card-desc { font-size: 13px; color: var(--ink-3); line-height: 1.55; flex: 1; }

/* Badges */
.card-badges { display: flex; flex-wrap: wrap; gap: 4px; }
.cbadge {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700;
  padding: 2px 8px; border-radius: var(--r-pill);
}
.cbadge--green { background: var(--green-lt); color: var(--green-dk); }
.cbadge--blue  { background: var(--blue-lt);  color: var(--blue-dk);  }
.cbadge--amber { background: var(--amber-lt); color: var(--amber-dk); }

/* Card foot */
.card-foot {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
  flex-wrap: nowrap;
}
.card-price {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  font-size: 12px;
  color: var(--ink-3);
}
.card-price strong { color: var(--ink); font-weight: 700; }
.price-free   { color: var(--green-dk); font-weight: 700; }
.price-consult{ color: var(--ink-4); }
.card-rating { font-size: 12px; color: var(--ink-3); display: flex; align-items: center; gap: 3px; white-space: nowrap; }
.card-rating .bi { color: #E9A800; font-size: 11px; }
.rating-n { color: var(--ink-4); }
.card-cta {
  background: var(--ink);
  color: #fff;
  font-size: 11px; font-weight: 700;
  padding: 5px 12px;
  border-radius: var(--r-sm);
  white-space: nowrap;
  transition: background .13s;
  text-decoration: none;
}
.card-cta:hover { background: var(--ink-2); color: #fff; }
.tool-card--featured .card-cta { background: var(--blue); }
.tool-card--featured .card-cta:hover { background: var(--blue-dk); }

/* ── Ferramentas page layout ──────────────────────────────── */
.page-ferramentas { padding: 32px 0 64px; }

/* Filtros sidebar */
.filters-panel {
  background: rgba(255,255,255,.93);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px;
  position: sticky;
  top: 72px;
}
.filter-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}
.filter-header-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.btn-clear-filters {
  font-size: 11px; font-weight: 600; color: var(--blue);
  background: none; border: none; cursor: pointer;
  font-family: var(--font);
  padding: 0;
  display: flex; align-items: center; gap: 3px;
}
.btn-clear-filters:hover { color: var(--blue-dk); }

.filter-group { margin-bottom: 20px; }
.filter-group:last-child { margin-bottom: 0; }
.filter-group-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .7px; color: var(--ink-4);
  margin-bottom: 10px;
}
.filter-item {
  display: flex; align-items: center; gap: 8px;
  margin-bottom: 5px; cursor: pointer;
  font-size: 13px; font-weight: 500; color: var(--ink-3);
  user-select: none;
}
.filter-item input[type="checkbox"] {
  width: 15px; height: 15px;
  accent-color: var(--blue); cursor: pointer; flex-shrink: 0;
}
.filter-item:hover { color: var(--ink); }
.filter-count {
  margin-left: auto; font-size: 10px; font-weight: 600;
  color: var(--ink-4); background: var(--bg);
  padding: 1px 6px; border-radius: var(--r-pill);
}

/* Active filter pills */
.active-pills { display: flex; flex-wrap: wrap; gap: 5px; margin-bottom: 12px; }
.active-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--blue-lt); border: 1px solid var(--blue-bd);
  color: var(--blue-dk); font-size: 11px; font-weight: 600;
  padding: 3px 9px; border-radius: var(--r-pill);
}
.active-pill button {
  background: none; border: none; color: var(--blue-dk);
  cursor: pointer; padding: 0; font-size: 13px; line-height: 1;
  display: flex; align-items: center;
}

/* Results toolbar */
.results-toolbar {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 8px; margin-bottom: 16px;
}
.results-count { font-size: 13px; color: var(--ink-4); }
.results-count strong { color: var(--ink); font-weight: 700; }
.sort-select {
  border: 1px solid var(--line-2); border-radius: var(--r-sm);
  font-family: var(--font); font-size: 12px; font-weight: 600;
  color: var(--ink-3); padding: 6px 12px; background: var(--surf);
  cursor: pointer;
}
.sort-select:focus { outline: none; border-color: var(--blue); }

/* Grid state */
.grid-loading { opacity: .45; pointer-events: none; transition: opacity .2s; }

/* Empty state */
.empty-state { text-align: center; padding: 72px 20px; }
.empty-state-icon { font-size: 42px; opacity: .2; margin-bottom: 16px; display: block; }
.empty-state h3 { font-size: 17px; color: var(--ink-2); margin-bottom: 6px; }
.empty-state p  { font-size: 14px; color: var(--ink-4); }

/* Pagination */
.pagination .page-link {
  font-family: var(--font); font-size: 13px; font-weight: 600;
  color: var(--blue-dk); border-color: var(--line);
}
.pagination .page-item.active .page-link { background: var(--blue); border-color: var(--blue); }
.pagination .page-link:hover { background: var(--blue-lt); border-color: var(--blue-bd); color: var(--blue-dk); }
.pagination .page-link:focus { box-shadow: var(--focus); }

/* Category pills (home) */
.cat-card {
  display: flex; align-items: center; gap: 11px;
  background: var(--surf); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 13px 15px;
  text-decoration: none; color: var(--ink);
  transition: border-color .13s, background .13s;
}
.cat-card:hover { border-color: var(--blue); background: var(--blue-lt); color: var(--ink); }
.cat-icon {
  width: 36px; height: 36px; border-radius: var(--r-sm);
  background: var(--bg); border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; color: var(--blue); flex-shrink: 0;
  transition: background .13s, color .13s, border-color .13s;
}
.cat-card:hover .cat-icon { background: var(--blue); color: #fff; border-color: var(--blue); }
.cat-name  { font-size: 13px; font-weight: 700; color: var(--ink); }
.cat-count { font-size: 11px; color: var(--ink-4); font-weight: 500; margin-top: 1px; }

/* ── Ficha detalhada ──────────────────────────────────────── */
.tool-detail-hero {
  background: var(--surf);
  border-bottom: 1px solid var(--line);
  padding: 36px 0 32px;
}
.detail-logo {
  width: 72px; height: 72px;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: var(--bg);
  object-fit: contain; padding: 8px;
}
.detail-logo-placeholder {
  width: 72px; height: 72px; border-radius: var(--r-md);
  background: var(--blue-lt);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; font-weight: 800; color: var(--blue-dk);
}
.detail-title { font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 800; letter-spacing: -.7px; margin-bottom: 6px; }
.detail-tagline { font-size: 15px; color: var(--ink-3); margin-bottom: 16px; line-height: 1.6; }

.btn-visit {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--blue); color: #fff;
  padding: 11px 24px; border-radius: var(--r-md);
  font-weight: 700; font-size: 14px; border: none;
  transition: background .15s, box-shadow .15s, transform .15s;
  cursor: pointer; text-decoration: none;
}
.btn-visit:hover { background: var(--blue-dk); color: #fff; transform: translateY(-1px); box-shadow: 0 6px 18px rgba(47,128,237,.3); }

/* Critérios BR box */
.br-box {
  background: var(--blue-lt);
  border: 1px solid var(--blue-bd);
  border-radius: var(--r-lg);
  padding: 18px 20px;
}
.br-box-title {
  font-size: 10px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px; color: var(--blue-dk); margin-bottom: 12px;
}
.br-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 7px 0; border-bottom: 1px solid rgba(47,128,237,.1);
  font-size: 13px;
}
.br-row:last-child { border-bottom: none; padding-bottom: 0; }
.br-label { color: var(--ink-3); font-weight: 500; }

/* BR status badges */
.br-sim    { background: var(--green-lt); color: var(--green-dk); padding: 2px 8px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; }
.br-parcial{ background: var(--amber-lt); color: var(--amber-dk); padding: 2px 8px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; }
.br-nao    { background: var(--red-lt);   color: var(--red-dk);   padding: 2px 8px; border-radius: var(--r-pill); font-size: 11px; font-weight: 700; }
.br-verif  { background: var(--bg);       color: var(--ink-4);    padding: 2px 8px; border-radius: var(--r-pill); font-size: 11px; font-weight: 600; }

/* Detail page — price hero callout */
.detail-price-hero {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14px; font-weight: 700;
  padding: 6px 14px; border-radius: var(--r-pill);
}
.detail-price-hero--paid    { background: var(--blue-lt); color: var(--blue-dk); }
.detail-price-hero--free    { background: var(--green-lt); color: var(--green-dk); }
.detail-price-hero--consult { background: var(--amber-lt); color: var(--amber-dk); }
.detail-price-free-note     { font-weight: 400; font-size: 12px; opacity: .8; }

/* Planos (sidebar) */
.plano-card {
  background: #fff;
  border: 1.5px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
  margin-bottom: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.plano-card:hover { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-glow); }
.plano-card--free { border-left: 3px solid var(--green-dk); }
.plano-card--paid { border-left: 3px solid var(--blue); }
.plano-name {
  font-size: 11px; font-weight: 700; color: var(--ink-3);
  text-transform: uppercase; letter-spacing: .5px; margin-bottom: 0;
}
.plano-price {
  font-size: 1.7rem; font-weight: 800; color: var(--blue-dk);
  letter-spacing: -.5px; line-height: 1.15;
}
.plano-price small        { font-size: 13px; color: var(--ink-4); font-weight: 400; }
.plano-price--free        { color: var(--green-dk); }
.plano-price--usd         { color: var(--ink-3); font-size: 1.3rem; }
.plano-price--consult     { color: var(--ink-4); font-size: 1rem; font-weight: 600; }
.plano-features {
  margin: 6px 0 0; padding: 0; list-style: none;
  font-size: 12px; color: var(--ink-3);
  display: flex; flex-direction: column; gap: 3px;
}
.plano-features li::before { content: '✓ '; color: var(--green-dk); font-weight: 700; }
.plano-cta {
  display: flex; align-items: center; justify-content: center; gap: 6px;
  background: var(--blue); color: #fff;
  font-size: 13px; font-weight: 700;
  padding: 9px 16px; border-radius: var(--r-md);
  text-decoration: none; margin-top: 12px;
  transition: background .15s, transform .1s;
}
.plano-cta:hover { background: var(--blue-dk); color: #fff; transform: translateY(-1px); }
.plano-card--free .plano-cta { background: var(--green-dk); }
.plano-card--free .plano-cta:hover { background: #156b40; color: #fff; }

/* Reviews */
.review-item {
  background: rgba(255,255,255,.9); border: 1px solid var(--line);
  border-radius: var(--r-md); padding: 16px; margin-bottom: 10px;
}
.review-author { font-weight: 700; font-size: 13px; color: var(--ink); }
.review-meta   { font-size: 12px; color: var(--ink-4); }
.review-body   { font-size: 13px; color: var(--ink-3); line-height: 1.6; margin-top: 8px; }
.verified-tag  {
  display: inline-flex; align-items: center; gap: 3px;
  font-size: 10px; font-weight: 700;
  color: var(--blue-dk); background: var(--blue-lt);
  padding: 2px 7px; border-radius: var(--r-pill);
  margin-left: 6px;
}
.stars-row { font-size: 12px; color: #E9A800; }

/* ── Star rating input ────────────────────────────────────── */
.star-rating-input {
  display: flex;
  align-items: center;
  gap: 2px;
}
.star-btn {
  background: none;
  border: none;
  font-size: 30px;
  line-height: 1;
  color: var(--line-2);
  cursor: pointer;
  padding: 0 3px;
  transition: color .1s, transform .12s;
}
.star-btn:hover { transform: scale(1.2); }
.star-btn.active { color: #E9A800; }
.star-label {
  font-size: 13px;
  color: var(--ink-4);
  margin-left: 10px;
  min-width: 90px;
}

/* ── Review form ──────────────────────────────────────────── */
.review-form-wrap {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 28px;
  margin-top: 32px;
}
.review-form-wrap h3 { font-size: 17px; font-weight: 800; }
.rev-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 5px;
}
.char-count-inline { font-weight: 400; color: var(--ink-4); text-transform: none; letter-spacing: 0; }
.char-count--warn  { color: var(--amber-dk); font-weight: 700; }
.review-form-wrap input,
.review-form-wrap textarea,
.review-form-wrap select,
.correcao-panel input,
.correcao-panel textarea,
.correcao-panel select {
  display: block;
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  transition: border-color .13s, box-shadow .13s;
}
.review-form-wrap input:focus,
.review-form-wrap textarea:focus,
.review-form-wrap select:focus,
.correcao-panel input:focus,
.correcao-panel textarea:focus,
.correcao-panel select:focus { border-color: var(--blue); box-shadow: var(--focus); }
.review-form-wrap textarea,
.correcao-panel textarea { resize: vertical; min-height: 110px; }

/* Review alerts */
.review-alert {
  padding: 10px 14px;
  border-radius: var(--r-sm);
  font-size: 13px;
  margin-top: 12px;
}
.review-alert--error {
  background: var(--red-lt);
  color: var(--red-dk);
  border: 1px solid #fca5a5;
}

/* Review success */
.review-success {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 40px 24px;
  background: var(--green-lt);
  border: 1px solid #86efac;
  border-radius: var(--r-lg);
  margin-top: 32px;
  gap: 6px;
}
.review-success i    { font-size: 40px; color: var(--green-dk); }
.review-success strong { font-size: 16px; font-weight: 800; }
.review-success p    { font-size: 13px; color: var(--ink-3); margin: 0; }

/* Already reviewed notice */
.review-already {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: var(--blue-lt);
  border: 1px solid var(--blue-bd);
  border-radius: var(--r-md);
  font-size: 13px;
  color: var(--blue-dk);
  font-weight: 600;
  margin-top: 24px;
}
.review-already i { font-size: 18px; flex-shrink: 0; }

/* ── Submeter page ────────────────────────────────────────── */
.submit-form-wrap {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 32px;
}
.sub-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11px;
  font-weight: 700;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 6px;
}
.sub-hint { font-size: 12px; color: var(--ink-4); margin-top: 5px; }
.sub-url-wrap {
  position: relative;
}
.sub-url-ico {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-4);
  font-size: 14px;
  pointer-events: none;
}
.submit-form-wrap input,
.submit-form-wrap textarea,
.submit-form-wrap select {
  display: block;
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--r-sm);
  font-family: var(--font);
  font-size: 14px;
  color: var(--ink);
  background: var(--bg);
  outline: none;
  transition: border-color .13s, box-shadow .13s;
}
.submit-form-wrap input:focus,
.submit-form-wrap textarea:focus,
.submit-form-wrap select:focus { border-color: var(--blue); box-shadow: var(--focus); }
.submit-form-wrap textarea      { resize: vertical; min-height: 90px; }
#sub-url                        { padding-left: 36px; }

/* Info box lateral */
.submit-info-box {
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 22px 24px;
}
.submit-info-title {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .5px;
  color: var(--ink-3);
  margin-bottom: 16px;
}
.submit-steps {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.submit-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 13px;
}
.step-num {
  min-width: 22px; height: 22px;
  background: var(--blue);
  color: #fff;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}
.submit-steps strong { display: block; font-size: 13px; font-weight: 700; color: var(--ink); margin-bottom: 2px; }
.submit-steps p      { font-size: 12px; color: var(--ink-4); margin: 0; line-height: 1.5; }
.submit-no-list {
  list-style: none;
  padding: 0; margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.submit-no-list li {
  font-size: 12px;
  color: var(--amber-dk);
  padding-left: 16px;
  position: relative;
}
.submit-no-list li::before {
  content: '×';
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* ── Footer ───────────────────────────────────────────────── */
.site-footer {
  background: var(--ink);
  margin-top: 80px;
  padding: 40px 0 28px;
}
.footer-inner {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 24px; margin-bottom: 28px;
}
.footer-tagline { font-size: 13px; color: #555; margin-top: 6px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; align-items: center; }
.footer-links a { font-size: 13px; color: #666; font-weight: 500; transition: color .13s; }
.footer-links a:hover { color: #fff; }
.footer-bottom {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 10px;
  border-top: 1px solid #222; padding-top: 20px;
  font-size: 12px; color: #555;
}
.footer-badges { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-badges span {
  font-size: 11px; color: #555; font-weight: 500;
  border: 1px solid #2a2a2a; padding: 3px 9px; border-radius: var(--r-pill);
  display: inline-flex; align-items: center; gap: 4px;
}
.footer-badges .bi { color: var(--blue); font-size: 11px; }

/* ── Utilities ────────────────────────────────────────────── */
.pad-section    { padding: 56px 0; }
.pad-section-sm { padding: 36px 0; }
.bg-surf { background: var(--surf); }
.bg-bg   { background: var(--bg); }
.divider { border-top: 1px solid var(--line); margin: 24px 0; }

.tag-pill {
  display: inline-flex; align-items: center; gap: 4px;
  background: var(--bg); color: var(--ink-3);
  font-size: 12px; font-weight: 600;
  padding: 4px 11px; border-radius: var(--r-pill);
  text-decoration: none; border: 1px solid transparent;
  transition: background .13s, color .13s, border-color .13s;
}
.tag-pill:hover, .tag-pill.active {
  background: var(--blue-lt); color: var(--blue-dk); border-color: var(--blue-bd);
}

.breadcrumb { font-size: 12px; font-weight: 500; }
.breadcrumb-item a { color: var(--ink-4); }
.breadcrumb-item a:hover { color: var(--blue); }
.breadcrumb-item.active { color: var(--ink-3); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--line-2); }

/* Toast */
#toast-container { z-index: 9999; }

/* ── Botão mobile de filtros ─────────────────────────────── */
.btn-filter-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surf);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 10px 16px;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .13s, background .13s;
}
.btn-filter-toggle:hover { border-color: var(--blue); background: var(--blue-lt); }
.filter-toggle-caret { transition: transform .2s; }
.filter-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  background: var(--blue);
  color: #fff;
  border-radius: var(--r-pill);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
}

/* ── Responsive ───────────────────────────────────────────── */
@media (max-width: 991px) {
  .hero { padding: 44px 0 40px; }
  .pad-section { padding: 40px 0; }
  .filters-panel { position: static; margin-bottom: 20px; }
  .stat-item { padding: 14px 20px; }
}
@media (max-width: 767px) {
  .stats-bar { flex-wrap: wrap; }
  .stat-item { width: 50%; border-bottom: 1px solid var(--line); }
  .stat-item:nth-child(odd) { border-right: 1px solid var(--line); }
  .stat-item:nth-last-child(-n+2) { border-bottom: none; }
}
@media (max-width: 575px) {
  .hero-title { letter-spacing: -.8px; }
  .tool-card  { padding: 14px; }
  .footer-inner { flex-direction: column; }
}

/* ── Grid loading state ───────────────────────────────────── */
.grid-loading {
  opacity: .4;
  pointer-events: none;
  transition: opacity .2s;
}
#tools-grid {
  min-height: 200px;
  transition: opacity .2s;
}

/* ── Inline search in sidebar ─────────────────────────────── */
.filter-search-wrap {
  position: relative;
  margin-bottom: 16px;
}
.filter-search-wrap .search-ico {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
  font-size: 13px;
  color: var(--ink-4);
}
.filter-search-wrap input {
  padding-left: 32px;
}

/* ── Autocomplete dropdown (portal no <body>) ─────────────── */
.search-dropdown {
  position: absolute; /* top/left/width setados via JS */
  z-index: 9999;
  background: var(--surf);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,.12);
  overflow: hidden;
  min-width: 260px;
}
.search-drop-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  cursor: pointer;
  transition: background .1s;
  border-bottom: 1px solid var(--line);
}
.search-drop-item:last-child { border-bottom: none; }
.search-drop-item:hover,
.search-drop-item.is-active { background: var(--blue-lt); }
.search-drop-ico {
  font-size: 15px;
  color: var(--blue);
  flex-shrink: 0;
  width: 20px;
  text-align: center;
}
.search-drop-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}
.search-drop-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.search-drop-meta {
  font-size: 11px;
  color: var(--ink-4);
}

/* ── Sugestão de correção ─────────────────────────────────── */
.correcao-trigger {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-3);
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-radius: var(--r-md);
  padding: 7px 14px;
  cursor: pointer;
  transition: border-color .15s, color .15s, background .15s;
  text-decoration: none;
}
.correcao-trigger:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-lt); }
.correcao-panel {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 20px 24px;
  margin-top: 16px;
}
.correcao-panel h3 { font-size: 15px; font-weight: 700; margin-bottom: 4px; }
.correcao-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-3);
  margin-bottom: 5px;
}
.correcao-success {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--green-lt);
  color: var(--green-dk);
  border-radius: var(--r-md);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 600;
}
.correcao-success .bi { font-size: 18px; }