:root {
    --bg: #0a0e17;
    --bg-alt: #0f1420;
    --card: #131a29;
    --card-hover: #17202f;
    --border: #232c3f;
    --text: #eef1f7;
    --text-muted: #8c96ac;
    --brand: #2f6fed;
    --brand-dark: #2559c7;
    --brand-2: #17c98d;
    --up: #17c98d;
    --down: #f2495c;
    --radius: 12px;
    --font: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4 { font-family: var(--font); letter-spacing: -0.015em; font-weight: 700; }
a { color: var(--brand-2); text-decoration: none; transition: color .15s ease; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }
* { word-wrap: break-word; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

header.site-header {
    background: rgba(15,20,32,.92);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--border);
    position: sticky; top: 0; z-index: 50;
}
header.site-header .bar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; max-width: 1140px; margin: 0 auto;
}
.logo { font-weight: 800; font-size: 1.3rem; color: var(--text); }
.logo span { color: var(--brand-2); }
nav.main-nav { display: flex; gap: 24px; align-items: center; }
nav.main-nav a { color: var(--text-muted); font-weight: 600; font-size: .93rem; }
nav.main-nav a:hover { color: var(--text); text-decoration: none; }

.hero {
    padding: 60px 0 44px;
    text-align: center;
    background:
        radial-gradient(ellipse 800px 420px at 15% -15%, rgba(47,111,237,.22), transparent 60%),
        radial-gradient(ellipse 800px 420px at 85% -15%, rgba(23,201,141,.14), transparent 60%);
}
.hero h1 {
    font-size: 2.3rem;
    font-weight: 800;
    margin: 0 0 14px;
    color: var(--text);
}
.hero p.sub { color: var(--text-muted); max-width: 640px; margin: 0 auto 28px; font-size: 1.02rem; }

.card {
    background: var(--card);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 22px;
    box-shadow: 0 4px 16px rgba(0,0,0,.22);
    transition: border-color .15s ease, transform .15s ease, background .15s ease;
}

.tool-box { max-width: 620px; margin: 0 auto; }
.tool-box form { display: flex; flex-wrap: wrap; gap: 10px; }
.tool-box select, .tool-box input {
    flex: 1 1 200px;
}
select, input[type=text], input[type=number], input[type=email], textarea {
    background: var(--bg);
    border: 1px solid var(--border);
    color: var(--text);
    padding: 12px 14px;
    border-radius: 9px;
    font-size: .95rem;
    font-family: var(--font);
}
select:focus, input:focus, textarea:focus { outline: none; border-color: var(--brand); }

.btn {
    display: inline-block;
    background: var(--brand);
    color: #fff;
    border: none;
    padding: 12px 22px;
    border-radius: 9px;
    font-weight: 700;
    cursor: pointer;
    font-size: .95rem;
    transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:hover { text-decoration: none; background: var(--brand-dark); box-shadow: 0 6px 16px rgba(47,111,237,.30); }
.btn.secondary { background: transparent; border: 1px solid var(--border); color: var(--text); box-shadow: none; }
.btn.secondary:hover { border-color: var(--brand); background: transparent; box-shadow: none; }
.btn.small { padding: 6px 12px; font-size: .8rem; }

section { padding: 40px 0; }
h2.section-title { font-size: 1.5rem; margin-bottom: 24px; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.results-table, .admin-table { width: 100%; border-collapse: collapse; margin-top: 24px; min-width: 560px; }
.results-table th, .results-table td, .admin-table th, .admin-table td {
    text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--border); vertical-align: top;
}
.results-table th, .admin-table th { color: var(--text-muted); font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.results-table tr:first-child td { background: rgba(23,201,141,.08); }
.badge { background: var(--brand-2); color: #06231c; font-size: .7rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.provider-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.provider-logo { width: 22px; height: 22px; border-radius: 6px; flex-shrink: 0; }

.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }
.provider-card { display: flex; flex-direction: column; gap: 10px; }
.provider-card:hover { border-color: var(--brand); background: var(--card-hover); transform: translateY(-2px); }
.provider-card .head { display: flex; align-items: center; gap: 10px; }
.provider-card .name { font-weight: 700; font-size: 1.05rem; }
.provider-card .desc { color: var(--text-muted); font-size: .88rem; flex: 1; }
.provider-card .vote-row { display: flex; align-items: center; gap: 10px; margin-top: 6px; }
.vote-btn { background: var(--bg); border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 6px 10px; cursor: pointer; font-weight: 700; }
.vote-btn.up:hover { color: var(--up); border-color: var(--up); }
.vote-btn.down:hover { color: var(--down); border-color: var(--down); }
.score { font-weight: 800; }

.pros-cons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 20px 0; }
.pros-cons ul { margin: 0; padding-left: 18px; }
.pros h4 { color: var(--up); }
.cons h4 { color: var(--down); }

.faq-item { border-bottom: 1px solid var(--border); padding: 14px 0; }
.faq-item h3 { margin: 0 0 6px; font-size: 1rem; }

.blog-list { display: grid; gap: 20px; }
.blog-item h3 { margin: 0 0 6px; }
.blog-item .meta { color: var(--text-muted); font-size: .8rem; }

footer.site-footer {
    border-top: 1px solid var(--border);
    padding: 30px 0;
    color: var(--text-muted);
    font-size: .85rem;
    text-align: center;
    margin-top: 40px;
}

.empty-state { text-align: center; padding: 40px 20px; color: var(--text-muted); }

.form-row { margin-bottom: 16px; text-align: left; }
.form-row label { display: block; margin-bottom: 6px; font-weight: 600; font-size: .85rem; color: var(--text-muted); }
.select-field, .textarea-field { width: 100%; }
.textarea-field { min-height: 100px; resize: vertical; }

.id-lookup-form { display: flex; gap: 10px; }
.id-lookup-form label { display: none; }
.id-lookup-form input { flex: 1; }

.chat-window { display: flex; flex-direction: column; gap: 14px; max-height: 520px; overflow-y: auto; margin-bottom: 16px; padding-right: 4px; }
.chat-bubble { padding: 12px 16px; border-radius: 14px; max-width: 82%; white-space: pre-wrap; line-height: 1.5; font-size: .93rem; }
.chat-bubble.user { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.chat-bubble.ai { align-self: flex-start; background: var(--bg-alt); border: 1px solid var(--border); color: var(--text); border-bottom-left-radius: 4px; }
.chat-bubble.ai a { color: var(--brand-2); font-weight: 600; text-decoration: underline; }
.chat-input-row { display: flex; gap: 10px; }
.chat-input-row input { flex: 1; padding: 13px 16px; }

.review-item { border-bottom: 1px solid var(--border); padding: 16px 0; }
.review-item:last-child { border-bottom: none; }
.review-item .review-meta { display: flex; justify-content: space-between; color: var(--text-muted); font-size: .78rem; margin-bottom: 6px; }
.review-item .sentiment-positivo { color: var(--up); font-weight: 700; }
.review-item .sentiment-negativo { color: var(--down); font-weight: 700; }
.review-item .sentiment-neutro { color: var(--text-muted); font-weight: 700; }

/* Página de painel individual — cabeçalho com nota, abas, checklist de recursos */
.panel-header { display: grid; grid-template-columns: 1fr 220px; gap: 24px; align-items: start; }
.panel-header-main { display: flex; gap: 16px; }
.panel-header-main .panel-logo-lg { width: 64px; height: 64px; border-radius: 12px; flex-shrink: 0; }
.panel-badges { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0; }
.panel-badge { font-size: .72rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
.panel-badge.verified { background: rgba(23,201,141,.15); color: var(--up); }
.panel-badge.ssl { background: rgba(47,111,237,.15); color: var(--brand); }

.score-gauge { width: 140px; height: 140px; border-radius: 50%; margin: 0 auto; display: flex; align-items: center; justify-content: center; position: relative; }
.score-gauge .score-inner { width: 112px; height: 112px; border-radius: 50%; background: var(--card); display: flex; flex-direction: column; align-items: center; justify-content: center; }
.score-gauge .score-value { font-size: 1.7rem; font-weight: 800; line-height: 1; }
.score-gauge .score-max { font-size: .72rem; color: var(--text-muted); }
.score-empty { width: 140px; height: 140px; border-radius: 50%; border: 3px dashed var(--border); margin: 0 auto; display: flex; align-items: center; justify-content: center; text-align: center; font-size: .75rem; color: var(--text-muted); padding: 10px; }

.sub-scores { margin-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.sub-score-row { display: flex; align-items: center; gap: 8px; font-size: .78rem; }
.sub-score-row .label { width: 90px; color: var(--text-muted); flex-shrink: 0; }
.sub-score-row .bar { flex: 1; height: 6px; border-radius: 999px; background: var(--bg); overflow: hidden; }
.sub-score-row .bar-fill { height: 100%; background: var(--brand-2); border-radius: 999px; }
.sub-score-row .val { width: 32px; text-align: right; flex-shrink: 0; }

.panel-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--border); margin: 28px 0 22px; overflow-x: auto; }
.panel-tab-btn { background: none; border: none; color: var(--text-muted); font-weight: 700; font-size: .9rem; padding: 10px 16px; cursor: pointer; border-bottom: 2px solid transparent; white-space: nowrap; font-family: var(--font); }
.panel-tab-btn.active { color: var(--text); border-bottom-color: var(--brand); }
.panel-tab-panel { display: none; }
.panel-tab-panel.active { display: block; }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.info-list dt { color: var(--text-muted); font-size: .8rem; }
.info-list dd { margin: 0 0 12px; font-weight: 700; }
.feature-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.feature-list li { display: flex; align-items: center; gap: 8px; font-size: .88rem; }
.feature-list li::before { content: "✓"; color: var(--up); font-weight: 800; }

.trust-sidebar { display: flex; flex-direction: column; gap: 10px; }
.trust-sidebar .trust-item { display: flex; align-items: center; gap: 8px; font-size: .85rem; }

@media (max-width: 780px) {
    .panel-header { grid-template-columns: 1fr; }
    .info-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    nav.main-nav { display: none; }
    .pros-cons { grid-template-columns: 1fr; }
}
