/* Snake Conecta — tema grafite com destaque verde. Mobile-first, sem fontes externas. */
:root {
  --bg: #0d1111;
  --bg-2: #131818;
  --card: #171d1d;
  --card-2: #1d2525;
  --border: #2b3636;
  --border-strong: #3a4848;
  --text: #e9efef;
  --muted: #a3b3b3;
  --accent: #3ddc84;
  --accent-ink: #06130b;
  --accent-soft: rgba(61, 220, 132, .12);
  --cyan: #56d4dd;
  --warn: #f2c14e;
  --bad: #ff8585;
  --info: #7cb9ff;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 6px 24px rgba(0, 0, 0, .35);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text); font-family: var(--font);
  font-size: 1.0625rem; line-height: 1.6; min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
img, svg { max-width: 100%; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: #7ff0ad; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4.5vw, 2.6rem); }
h2 { font-size: clamp(1.35rem, 3vw, 1.75rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.3em; margin: 0 0 1em; }
hr { border: 0; border-top: 1px solid var(--border); margin: 1.5rem 0; }
code, .mono { font-family: var(--mono); font-size: .95em; }
.muted { color: var(--muted); }
.small { font-size: .95rem; }
.center { text-align: center; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2.5rem; }
.mb-0 { margin-bottom: 0; } .mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; } /* honeypot */

:focus-visible { outline: 3px solid var(--cyan); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: 8px; top: -60px; background: var(--accent); color: var(--accent-ink); padding: .6rem 1rem; border-radius: 8px; z-index: 100; font-weight: 700; }
.skip-link:focus { top: 8px; }

.container { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.container.narrow { max-width: 760px; }
.container.form-width { max-width: 620px; }
.section { padding: 2.5rem 0; }
.section.alt { background: var(--bg-2); border-block: 1px solid var(--border); }

/* ---------- cabeçalho ---------- */
.env-banner { background: #2a2410; color: var(--warn); text-align: center; font-size: .95rem; padding: .35rem 1rem; border-bottom: 1px solid #4a3f17; }
.site-header { position: sticky; top: 0; z-index: 50; background: rgba(13, 17, 17, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--border); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 64px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: .6rem; color: var(--text); text-decoration: none; font-weight: 800; font-size: 1.15rem; }
.brand:hover { color: var(--text); }
.brand .logo { width: 34px; height: 34px; }
.brand small { color: var(--accent); font-weight: 600; }
.nav-toggle { display: none; }
.site-nav { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.site-nav a, .site-nav button.linklike { color: var(--text); text-decoration: none; padding: .55rem .8rem; border-radius: 8px; min-height: 44px; display: inline-flex; align-items: center; gap: .4rem; }
.site-nav a:hover, .site-nav button.linklike:hover { background: var(--card-2); }
.site-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.nav-group { display: flex; align-items: center; gap: .25rem; flex-wrap: wrap; }
.js .nav-toggle { display: inline-flex; }
.js .site-nav { display: none; width: 100%; flex-direction: column; align-items: stretch; padding-bottom: .75rem; }
.js .site-nav.open { display: flex; }
.js .nav-group { flex-direction: column; align-items: stretch; }
@media (min-width: 900px) {
  .js .nav-toggle { display: none; }
  .js .site-nav, .site-nav { display: flex; width: auto; flex-direction: row; padding: 0; }
  .js .nav-group, .nav-group { flex-direction: row; align-items: center; }
  .nav-sep { width: 1px; height: 24px; background: var(--border); margin: 0 .5rem; }
}
.bell { position: relative; }
.count { background: var(--accent); color: var(--accent-ink); border-radius: 999px; font-size: .8rem; font-weight: 800; padding: 0 .45rem; min-width: 1.4rem; text-align: center; line-height: 1.4rem; }

/* ---------- botões ---------- */
.btn, button.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 44px; padding: .6rem 1.2rem; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; line-height: 1.2; }
.btn:hover { background: #63e69d; border-color: #63e69d; color: var(--accent-ink); }
.btn.secondary { background: transparent; color: var(--text); border-color: var(--border-strong); }
.btn.secondary:hover { background: var(--card-2); color: var(--text); border-color: var(--muted); }
.btn.ghost { background: transparent; border-color: transparent; color: var(--accent); }
.btn.danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn.danger:hover { background: rgba(255, 133, 133, .12); color: var(--bad); }
.btn.sm { min-height: 38px; padding: .35rem .8rem; font-size: .95rem; }
.btn.block { width: 100%; }
.btn[disabled], .btn.disabled { opacity: .5; cursor: not-allowed; }
button.linklike { background: none; border: 0; font: inherit; color: var(--accent); cursor: pointer; padding: 0; text-decoration: underline; }
.btn-row { display: flex; gap: .6rem; flex-wrap: wrap; align-items: center; }
.inline-form { display: inline; }
.icon { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; vertical-align: -.15em; }

/* ---------- cartões e grades ---------- */
.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem 1.2rem; }
.card.flat { background: var(--bg-2); }
.card h2, .card h3 { margin-top: 0; }
.card.highlight { border-color: rgba(61, 220, 132, .45); background: linear-gradient(180deg, rgba(61, 220, 132, .07), var(--card)); }
.grid { display: grid; gap: 1rem; }
.grid.cols-2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); }
.grid.cols-3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.grid.cols-4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); }
.split { display: grid; gap: 1.5rem; }
@media (min-width: 900px) { .split { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); align-items: start; } }
.stack > * + * { margin-top: 1rem; }
.page-head { padding: 1.75rem 0 1rem; }
.page-head p { color: var(--muted); max-width: 70ch; }
.crumbs { font-size: .95rem; color: var(--muted); margin-bottom: .5rem; }
.crumbs a { color: var(--muted); }

/* ---------- hero ---------- */
.hero { padding: 3rem 0 2.5rem; background: radial-gradient(900px 340px at 85% -10%, rgba(61, 220, 132, .13), transparent 60%), radial-gradient(600px 300px at 0% 0%, rgba(86, 212, 221, .06), transparent 60%); border-bottom: 1px solid var(--border); }
.hero h1 { max-width: 20ch; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 62ch; }
.search-box { display: grid; gap: .6rem; margin-top: 1.5rem; background: var(--card); border: 1px solid var(--border-strong); border-radius: 14px; padding: .9rem; box-shadow: var(--shadow); }
@media (min-width: 800px) { .search-box { grid-template-columns: 1.4fr 1fr 1fr auto; align-items: end; } }
.search-box label { font-size: .92rem; color: var(--muted); display: block; margin-bottom: .2rem; }
.notice { border-left: 3px solid var(--cyan); background: rgba(86, 212, 221, .07); padding: .7rem 1rem; border-radius: 0 8px 8px 0; font-size: .98rem; }
.notice.warn { border-color: var(--warn); background: rgba(242, 193, 78, .08); }
.notice.bad { border-color: var(--bad); background: rgba(255, 133, 133, .08); }
.steps { counter-reset: s; list-style: none; padding: 0; display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); }
.steps li { counter-increment: s; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.steps li::before { content: counter(s); display: inline-grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-weight: 800; margin-bottom: .5rem; }
.cat-card { display: block; text-decoration: none; color: var(--text); background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; height: 100%; }
.cat-card:hover { border-color: var(--accent); color: var(--text); }
.cat-card strong { display: block; font-size: 1.1rem; }

/* ---------- formulários ---------- */
.field { margin-bottom: 1.1rem; }
.field label, .field .label, legend { display: block; font-weight: 600; margin-bottom: .3rem; }
.field .hint { color: var(--muted); font-size: .95rem; margin-top: .25rem; }
input:not([type]), input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=url], input[type=search], select, textarea, input[type=file] {
  width: 100%; min-height: 46px; padding: .6rem .8rem; background: #0a0d0d; color: var(--text); border: 1px solid var(--border-strong); border-radius: 10px; font: inherit;
}
textarea { min-height: 120px; resize: vertical; }
select { appearance: auto; }
input::placeholder, textarea::placeholder { color: #6f8080; }
input:focus, select:focus, textarea:focus { border-color: var(--cyan); outline: 3px solid rgba(86, 212, 221, .35); outline-offset: 0; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--bad); }
.error-list { list-style: none; padding: 0; margin: .35rem 0 0; color: var(--bad); font-size: .98rem; }
.error-list li::before { content: "⚠ "; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: .4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.checks li, .check { display: flex; align-items: flex-start; gap: .6rem; background: var(--bg-2); border: 1px solid var(--border); border-radius: 10px; padding: .55rem .75rem; }
.checks input, .check input { width: 22px; height: 22px; margin-top: .15rem; accent-color: var(--accent); flex: none; }
.checks label, .check label { margin: 0; font-weight: 500; }
fieldset { border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem; margin: 0 0 1.2rem; }
legend { padding: 0 .4rem; }
.row { display: grid; gap: 1rem; }
@media (min-width: 640px) { .row.two { grid-template-columns: 1fr 1fr; } .row.uf { grid-template-columns: 2fr 1fr; } .row.three { grid-template-columns: repeat(3, 1fr); } }
.filters { display: grid; gap: .8rem; }
@media (min-width: 640px) { .filters { grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); align-items: end; } }

/* ---------- selos e avaliações ---------- */
.badge { display: inline-flex; align-items: center; gap: .3rem; font-size: .88rem; font-weight: 700; border-radius: 999px; padding: .15rem .65rem; border: 1px solid var(--border-strong); color: var(--muted); background: var(--bg-2); white-space: nowrap; }
.badge.ok { color: var(--accent); border-color: rgba(61, 220, 132, .5); background: var(--accent-soft); }
.badge.info { color: var(--info); border-color: rgba(124, 185, 255, .45); background: rgba(124, 185, 255, .1); }
.badge.warn { color: var(--warn); border-color: rgba(242, 193, 78, .5); background: rgba(242, 193, 78, .1); }
.badge.bad { color: var(--bad); border-color: rgba(255, 133, 133, .5); background: rgba(255, 133, 133, .1); }
.badge.demo { color: #d8b4fe; border-color: rgba(216, 180, 254, .5); background: rgba(216, 180, 254, .1); }
.badges { display: flex; flex-wrap: wrap; gap: .4rem; }
.rating { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; }
.rating .star { color: var(--warn); }
.verif-list { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.verif-list li { display: flex; gap: .6rem; align-items: flex-start; }
.verif-list .icon { color: var(--accent); margin-top: .25rem; }

/* ---------- cartão de profissional ---------- */
.pro-card { display: grid; gap: .8rem; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1.1rem; }
.pro-card:hover { border-color: var(--border-strong); }
.pro-card header { display: flex; gap: .9rem; align-items: center; }
.pro-card h3 { margin: 0; font-size: 1.15rem; }
.avatar { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent); font-weight: 800; font-size: 1.2rem; border: 1px solid rgba(61, 220, 132, .35); flex: none; }
.avatar.lg { width: 84px; height: 84px; font-size: 1.8rem; }
.meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; color: var(--muted); font-size: .98rem; }
.pro-card .summary { color: var(--text); margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tag { font-size: .88rem; background: var(--card-2); border: 1px solid var(--border); border-radius: 6px; padding: .1rem .55rem; color: var(--muted); }

/* ---------- avisos (flash) ---------- */
.flashes { padding-top: 1rem; display: grid; gap: .6rem; }
.flash { border: 1px solid var(--border-strong); border-left-width: 4px; border-radius: 10px; padding: .75rem 1rem; background: var(--card); }
.flash.success { border-left-color: var(--accent); }
.flash.error { border-left-color: var(--bad); }
.flash.warning { border-left-color: var(--warn); }
.flash.info { border-left-color: var(--info); }

/* ---------- tabelas ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); }
table { width: 100%; border-collapse: collapse; font-size: .98rem; }
th, td { text-align: left; padding: .7rem .9rem; border-bottom: 1px solid var(--border); vertical-align: top; }
th { color: var(--muted); font-weight: 600; font-size: .92rem; background: var(--bg-2); white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
@media (max-width: 760px) {
  .table-stack thead { position: absolute; left: -9999px; }
  .table-stack, .table-stack tbody, .table-stack tr, .table-stack td { display: block; width: 100%; }
  .table-stack tr { border-bottom: 1px solid var(--border-strong); padding: .5rem 0; }
  .table-stack td { border: 0; padding: .3rem .9rem; display: flex; gap: .6rem; justify-content: space-between; text-align: right; }
  .table-stack td::before { content: attr(data-label); color: var(--muted); font-weight: 600; text-align: left; flex: none; }
  .table-stack td[data-label=""]::before { content: none; }
}
.pager { display: flex; gap: .4rem; flex-wrap: wrap; align-items: center; justify-content: center; margin: 1.5rem 0; }
.pager a, .pager span { min-width: 42px; min-height: 42px; display: inline-grid; place-items: center; border: 1px solid var(--border); border-radius: 8px; color: var(--text); text-decoration: none; padding: 0 .6rem; }
.pager a:hover { border-color: var(--accent); }
.pager .current { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); font-weight: 800; }
.pager .gap { border: 0; }
.tabs { display: flex; gap: .4rem; flex-wrap: wrap; margin: 0 0 1.2rem; }
.tabs a { padding: .45rem .9rem; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); text-decoration: none; min-height: 40px; display: inline-flex; align-items: center; }
.tabs a[aria-current="page"], .tabs a:hover { border-color: var(--accent); color: var(--accent); background: var(--accent-soft); }
.subnav { background: var(--bg-2); border-bottom: 1px solid var(--border); }
.subnav .tabs { margin: 0; padding: .6rem 0; flex-wrap: nowrap; overflow-x: auto; }
.subnav .tabs a { white-space: nowrap; }

/* ---------- painéis (pro/admin) ---------- */
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); padding: 1rem 1.1rem; }
.stat .num { font-size: 2rem; font-weight: 800; line-height: 1.1; color: var(--text); }
.stat .lbl { color: var(--muted); font-size: .95rem; }
.stat.alert .num { color: var(--warn); }
a.stat { display: block; text-decoration: none; color: inherit; }
a.stat:hover { border-color: var(--accent); }
.bar { height: 10px; background: var(--card-2); border-radius: 999px; overflow: hidden; }
.bar > span { display: block; height: 100%; background: var(--accent); }
.bar > span.w0 { width: 0; } .bar > span.w10 { width: 10%; } .bar > span.w20 { width: 20%; } .bar > span.w30 { width: 30%; } .bar > span.w40 { width: 40%; } .bar > span.w50 { width: 50%; } .bar > span.w60 { width: 60%; } .bar > span.w70 { width: 70%; } .bar > span.w80 { width: 80%; } .bar > span.w90 { width: 90%; } .bar > span.w100 { width: 100%; }
.timeline { list-style: none; padding: 0; margin: 0; border-left: 2px solid var(--border); }
.timeline li { padding: 0 0 1rem 1rem; position: relative; }
.timeline li::before { content: ""; position: absolute; left: -7px; top: .45rem; width: 12px; height: 12px; border-radius: 50%; background: var(--accent); border: 2px solid var(--bg); }
/* minmax(0, 1fr): sem isso a coluna cresce até o min-content do menu (links nowrap) e a página inteira estoura no celular */
.admin-shell { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; padding: 1.2rem 0 2.5rem; }
@media (min-width: 960px) { .admin-shell { grid-template-columns: 230px minmax(0, 1fr); } }
.admin-nav { display: flex; gap: .3rem; overflow-x: auto; padding-bottom: .3rem; }
@media (min-width: 960px) { .admin-nav { flex-direction: column; overflow: visible; position: sticky; top: 80px; align-self: start; } }
.admin-nav a { display: flex; justify-content: space-between; align-items: center; gap: .6rem; padding: .55rem .8rem; border-radius: 8px; color: var(--text); text-decoration: none; white-space: nowrap; min-height: 42px; }
.admin-nav a:hover { background: var(--card-2); }
.admin-nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); }
.admin-nav .group { color: var(--muted); font-size: .85rem; text-transform: uppercase; letter-spacing: .06em; padding: .6rem .8rem .2rem; }
.kv { display: grid; grid-template-columns: max-content 1fr; gap: .35rem 1rem; margin: 0; }
.kv dt { color: var(--muted); } .kv dd { margin: 0; overflow-wrap: anywhere; }
.pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.quote { border-left: 3px solid var(--border-strong); padding-left: 1rem; color: var(--text); }
details.box { border: 1px solid var(--border); border-radius: var(--radius); background: var(--card); margin-bottom: .8rem; }
details.box > summary { cursor: pointer; padding: .8rem 1rem; font-weight: 600; min-height: 44px; }
details.box > div { padding: 0 1rem 1rem; }
.faq details { border-bottom: 1px solid var(--border); padding: .8rem 0; }
.faq summary { cursor: pointer; font-weight: 600; min-height: 40px; }
.legal h2 { margin-top: 1.5rem; }

/* ---------- rodapé ---------- */
.site-footer { border-top: 1px solid var(--border); background: var(--bg-2); padding: 2rem 0 1.5rem; margin-top: 2rem; color: var(--muted); font-size: .98rem; }
.footer-grid { display: grid; gap: 1.5rem; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); }
.site-footer h3 { color: var(--text); font-size: 1rem; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: .3rem 0; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--accent); }

.error-page { text-align: center; padding: 4rem 0; }
.error-page .code { font-size: 4rem; font-weight: 800; color: var(--accent); }

@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
@media print { .site-header, .site-footer, .btn, .tabs, .admin-nav { display: none !important; } body { background: #fff; color: #000; } }

/* ---------- complementos ---------- */
figure { margin: 0; }
figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 10px; border: 1px solid var(--border); }
figcaption { margin-top: .4rem; }
.cols-narrow { max-width: 38ch; }
.center-row { justify-content: center; }
.block-card { display: block; width: 100%; text-align: left; font: inherit; color: inherit; cursor: pointer; }
.block-card:hover { border-color: var(--accent); }
.block-line { display: block; }
