/* ===== SEGURANÇA / VERIFICADOR ===== */

.nav-active { color: var(--accent) !important; }

/* ── Seção verificador ── */
.sec-verify {
  padding: 4rem 0 3.5rem;
  background: radial-gradient(ellipse at 50% 0%, #1a1f35 0%, var(--bg) 65%);
  border-top: 1px solid var(--border);
}

.sec-badge {
  display: inline-block;
  background: rgba(79,142,247,0.12);
  color: var(--accent);
  border: 1px solid rgba(79,142,247,0.3);
  border-radius: 999px;
  padding: 0.35rem 1rem;
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 1rem;
  letter-spacing: 0.03em;
}

.sec-title {
  font-size: clamp(1.6rem, 4vw, 2.6rem);
  font-weight: 800;
  margin-bottom: 0.75rem;
  text-align: center;
}

.sec-sub {
  color: var(--text-muted);
  font-size: clamp(0.9rem, 2vw, 1.05rem);
  max-width: 560px;
  margin: 0 auto 2rem;
  text-align: center;
}

/* Search form */
.search-form { width: 100%; max-width: 680px; margin: 0 auto 2.5rem; }

.search-box {
  display: flex;
  align-items: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.4rem 0.4rem 0.4rem 1rem;
  gap: 0.5rem;
  transition: border-color 0.2s;
}

.search-box:focus-within { border-color: var(--accent); }

.search-icon { font-size: 1.1rem; flex-shrink: 0; color: var(--text-muted); }

.search-box input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: var(--text);
  font-size: 1rem;
  padding: 0.4rem 0;
}

.search-box input::placeholder { color: var(--text-muted); }
.search-box .btn-primary { flex-shrink: 0; padding: 0.65rem 1.5rem; font-size: 0.95rem; }
.search-hint { font-size: 0.78rem; color: var(--text-muted); margin-top: 0.6rem; text-align: center; }

/* Loader */
.loader-wrap {
  display: flex;
  justify-content: center;
  padding: 2.5rem 0;
}

.loader-inner { text-align: center; color: var(--text-muted); }

.spinner {
  width: 44px; height: 44px;
  border: 3px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

.spinner.small {
  width: 20px; height: 20px;
  border-width: 2px;
  margin: 0;
}

@keyframes spin { to { transform: rotate(360deg); } }

/* Verdict */
.verdict-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem 1.75rem;
  margin-bottom: 1.25rem;
  transition: border-color 0.3s;
}

.verdict-icon { font-size: 2.2rem; flex-shrink: 0; }
.verdict-text { flex: 1; }
.verdict-text h3 { font-size: 1.2rem; margin-bottom: 0.15rem; }
.verdict-domain { color: var(--accent); font-size: 0.88rem; word-break: break-all; }

.verdict-score {
  font-size: 1.9rem;
  font-weight: 800;
  min-width: 70px;
  text-align: right;
}

.verdict-card.safe   { border-color: #22c55e; background: rgba(34,197,94,0.06); }
.verdict-card.warn   { border-color: #f59e0b; background: rgba(245,158,11,0.06); }
.verdict-card.danger { border-color: #ef4444; background: rgba(239,68,68,0.06); }

.score-safe   { color: #22c55e; }
.score-warn   { color: #f59e0b; }
.score-danger { color: #ef4444; }

/* Metrics grid */
.metrics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.metric-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.4rem;
  transition: border-color 0.2s;
}

.metric-card.ok     { border-color: #22c55e44; }
.metric-card.warn   { border-color: #f59e0b44; }
.metric-card.danger { border-color: #ef444444; }

.metric-header { display: flex; align-items: center; gap: 0.5rem; margin-bottom: 0.7rem; }
.metric-icon   { font-size: 1.15rem; }
.metric-title  { font-size: 0.78rem; color: var(--text-muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.metric-value  { font-size: 1.1rem; font-weight: 700; margin-bottom: 0.25rem; }
.metric-desc   { font-size: 0.8rem; color: var(--text-muted); }

/* WHOIS */
.detail-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.4rem;
  margin-bottom: 1.25rem;
}

.detail-card h3 { font-size: 0.95rem; margin-bottom: 1rem; }

.whois-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 0.75rem;
}

.whois-label { font-size: 0.72rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 0.2rem; }
.whois-val   { font-size: 0.88rem; color: var(--text); word-break: break-all; }

/* ── RECLAME AQUI CARD ── */
.ra-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}

.ra-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.ra-title-wrap { display: flex; align-items: center; gap: 0.75rem; }

.ra-brand-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #e8392b;
  flex-shrink: 0;
}

.ra-header h3 { font-size: 1rem; }

/* status badge */
.ra-status-badge {
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.badge-ra1000  { background: rgba(34,197,94,0.15);  color: #22c55e; border: 1px solid #22c55e44; }
.badge-otimo   { background: rgba(34,197,94,0.10);  color: #4ade80; border: 1px solid #4ade8044; }
.badge-bom     { background: rgba(245,158,11,0.12); color: #fbbf24; border: 1px solid #fbbf2444; }
.badge-regular { background: rgba(249,115,22,0.12); color: #fb923c; border: 1px solid #fb923c44; }
.badge-ruim    { background: rgba(239,68,68,0.12);  color: #f87171; border: 1px solid #f8717144; }
.badge-na      { background: rgba(100,116,139,0.12);color: #94a3b8; border: 1px solid #94a3b844; }

/* RA loader inline */
.ra-loader {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  padding: 0.5rem 0;
}

/* RA company name */
.ra-company-name {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.ra-segment { font-size: 0.82rem; color: var(--text-muted); margin-bottom: 1.25rem; }

/* Score circle */
.ra-score-row {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.ra-score-circle {
  width: 72px; height: 72px;
  border-radius: 50%;
  background: rgba(79,142,247,0.1);
  border: 3px solid var(--accent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ra-score-circle span { font-size: 1.4rem; font-weight: 800; line-height: 1; }
.ra-score-circle small { font-size: 0.7rem; color: var(--text-muted); }

.ra-score-circle.green { border-color: #22c55e; background: rgba(34,197,94,0.1); }
.ra-score-circle.yellow { border-color: #f59e0b; background: rgba(245,158,11,0.1); }
.ra-score-circle.red    { border-color: #ef4444; background: rgba(239,68,68,0.1); }

.ra-status-label {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 0.2rem;
}

.ra-score-desc { font-size: 0.8rem; color: var(--text-muted); }

/* RA metrics row */
.ra-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  gap: 1rem;
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 10px;
}

.ra-metric { text-align: center; }
.ra-metric-val { font-size: 1.2rem; font-weight: 700; margin-bottom: 0.2rem; }
.ra-metric-lbl { font-size: 0.75rem; color: var(--text-muted); }

.ra-footer-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn-ra {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #e8392b;
  color: #fff;
  text-decoration: none;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 0.9rem;
  transition: opacity 0.2s;
  border: none;
  cursor: pointer;
}

.btn-ra:hover { opacity: 0.85; }
.btn-ra-outline { background: transparent; border: 1px solid #e8392b; color: #e8392b; }
.btn-ra-outline:hover { background: rgba(232,57,43,0.1); }

/* not found / error */
.ra-not-found {
  display: flex;
  align-items: center;
  gap: 1rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  flex-wrap: wrap;
}

.ra-not-found span { font-size: 1.5rem; }
.ra-not-found p { flex: 1; min-width: 180px; }

/* outros resultados */
.ra-others {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 1.25rem;
}

.ra-others h4 { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.05em; }

.ra-others-list { display: flex; flex-direction: column; gap: 0.5rem; }

.ra-other-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  border-radius: 8px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color 0.2s;
  font-size: 0.88rem;
}

.ra-other-item:hover { border-color: var(--accent); }
.ra-other-name { font-weight: 600; }
.ra-other-slug { font-size: 0.75rem; color: var(--text-muted); }

/* iframe Reclame Aqui */
.ra-iframe-info {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 0.75rem;
}

.ra-iframe {
  width: 100%;
  height: 520px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
}

/* ── MERCADO LIVRE ── */
.ml-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem 1.75rem;
  margin-bottom: 1.25rem;
}

.ml-brand-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  background: #ffe600;
  flex-shrink: 0;
}

.ml-product {
  display: flex;
  gap: 1rem;
  margin-bottom: 0.5rem;
  align-items: flex-start;
}

.ml-thumb {
  width: 80px;
  height: 80px;
  object-fit: contain;
  border-radius: 8px;
  background: #1c2030;
  border: 1px solid var(--border);
  flex-shrink: 0;
}

.ml-product-info { flex: 1; }
.ml-product-title { font-size: 1rem; font-weight: 600; margin-bottom: 0.4rem; line-height: 1.4; }
.ml-product-price { font-size: 1.3rem; font-weight: 800; color: var(--accent); margin-bottom: 0.3rem; }
.ml-product-meta  { font-size: 0.8rem; color: var(--text-muted); display: flex; gap: 0.75rem; flex-wrap: wrap; }

.ml-seller-section { margin-top: 1.25rem; }
.ml-seller-title { font-size: 0.8rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.75rem; }

.ml-seller-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.75rem;
}

.ml-seller-item {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.75rem 1rem;
}

.ml-rating-bars { margin-top: 1.25rem; }

.ml-bar-row {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 0.4rem;
  font-size: 0.82rem;
}

.ml-bar-label { width: 40px; text-align: right; color: var(--text-muted); flex-shrink: 0; }

.ml-bar-track {
  flex: 1;
  height: 6px;
  background: var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.ml-bar-fill { height: 100%; background: #ffe600; border-radius: 999px; transition: width 0.6s ease; }
.ml-bar-count { width: 36px; font-size: 0.78rem; color: var(--text-muted); flex-shrink: 0; }

.btn-ml {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: #ffe600;
  color: #333;
  text-decoration: none;
  padding: 0.65rem 1.4rem;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.9rem;
  transition: opacity 0.2s;
}

.btn-ml:hover { opacity: 0.85; }

/* Seller level badges */
.badge-5_green  { background: rgba(34,197,94,0.15);  color:#22c55e; border:1px solid #22c55e44; }
.badge-4_light_green { background: rgba(74,222,128,0.12); color:#4ade80; border:1px solid #4ade8044; }
.badge-3_yellow { background: rgba(254,240,138,0.15); color:#fde047; border:1px solid #fde04744; }
.badge-2_orange { background: rgba(251,146,60,0.12);  color:#fb923c; border:1px solid #fb923c44; }
.badge-1_red    { background: rgba(239,68,68,0.12);   color:#f87171; border:1px solid #f8717144; }

/* ── Responsive ── */
@media (max-width: 600px) {
  .verdict-card { flex-wrap: wrap; }
  .verdict-score { font-size: 1.4rem; }
  .metrics-grid { grid-template-columns: 1fr 1fr; }
  .ra-score-row { gap: 1rem; }
  .ra-metrics { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 380px) {
  .metrics-grid { grid-template-columns: 1fr; }
  .ra-metrics { grid-template-columns: 1fr 1fr; }
}
