/* VERITAS — sistema visual.
   Pouca cor, muita hierarquia. Tudo em token: o painel usa o tema claro caloroso; o portal do cliente
   e a tela de acesso usam o tema escuro. Um acento só (bronze/ouro). Sem gradientes, sem brilho, sem fontes externas. */

:root {
  /* tema claro (painel) */
  --bg: #f5f1ea;
  --surface: #fcfaf6;
  --surface-2: #f0ebe2;
  --line: #e4ddd1;
  --line-2: #d3cabb;
  --ink: #1c1a17;
  --ink-2: #3a3631;
  --muted: #635d54;
  --primary: #1c1a17;
  --on-primary: #fcfaf6;
  --accent: #8a5a2b;
  --accent-soft: #f1e6d8;
  --blue: #2f5fae; --blue-soft: #e6edf8; --blue-line: #c7d6ee;
  --ok: #2f6b4f; --ok-soft: #e3efe7; --ok-line: #c3dccd;
  --warn: #8a5a12; --warn-soft: #f6ebd6; --warn-line: #e8d2a8;
  --bad: #9b2c22; --bad-soft: #f6e1de; --bad-line: #ebc2bc;
  --info: #2d4f7c; --info-soft: #e3eaf3; --info-line: #c6d3e4;
  /* barra lateral */
  --side: #141416;
  --side-2: #1a1a1d;
  --side-line: #26262a;
  --side-text: #a3a09a;
  --side-strong: #edebe6;
  --side-accent: #d4bc8a;
  /* forma e tipo */
  --r: 12px;
  --r-sm: 8px;
  --shadow: 0 1px 0 rgba(28, 26, 23, 0.03);
  --font: "Inter var", "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --display: "Inter var", "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
}

/* tema escuro: portal do cliente e telas de acesso */
.portal, .auth-page {
  --bg: #0b0b0c;
  --surface: #141416;
  --surface-2: #1a1a1d;
  --line: #26262a;
  --line-2: #34343a;
  --ink: #edebe6;
  --ink-2: #d7d3cb;
  --muted: #a3a09a;
  --primary: #ece6da;
  --on-primary: #141416;
  --accent: #d4bc8a;
  --accent-soft: rgba(212, 188, 138, 0.1);
  --blue: #8fb4ff; --blue-soft: rgba(110, 150, 240, 0.1); --blue-line: rgba(143, 180, 255, 0.3);
  --ok: #9fd3b4; --ok-soft: rgba(110, 180, 140, 0.1); --ok-line: rgba(159, 211, 180, 0.28);
  --warn: #e8c27a; --warn-soft: rgba(232, 194, 122, 0.1); --warn-line: rgba(232, 194, 122, 0.3);
  --bad: #f0a097; --bad-soft: rgba(240, 160, 151, 0.1); --bad-line: rgba(240, 160, 151, 0.32);
  --info: #a9c1e6; --info-soft: rgba(169, 193, 230, 0.08); --info-line: rgba(169, 193, 230, 0.26);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body { font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 14.5px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; font-feature-settings: "cv11", "ss01"; }
::selection { background: var(--accent); color: var(--on-primary); }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-2); text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--accent); }
h1, h2, h3 { margin: 0 0 0.45em; line-height: 1.2; color: var(--ink); }
h1 { font-family: var(--display); font-size: 2rem; font-weight: 300; letter-spacing: -0.025em; }
h1 .dim, .title-dim { color: var(--muted); }
h2 { font-size: 1.02rem; font-weight: 600; letter-spacing: -0.01em; }
h3 { font-size: 0.95rem; font-weight: 600; }
p { margin: 0 0 0.8em; }
code, .mono { font-family: var(--mono); font-size: 0.88em; letter-spacing: 0; }
.hash { font-family: var(--mono); font-size: 0.78rem; word-break: break-all; color: var(--blue); line-height: 1.5; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.hidden { display: none !important; }
.num { font-variant-numeric: tabular-nums; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
* { scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* ---------- painel: estrutura ---------- */
.shell { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; }
.side { background: var(--side); color: var(--side-text); padding: 22px 14px 18px; position: sticky; top: 0; height: 100vh; overflow-y: auto; display: flex; flex-direction: column; border-right: 1px solid var(--side-line); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--side-strong); font-weight: 600; letter-spacing: 0.22em; font-size: 0.86rem; padding: 2px 10px 6px; text-decoration: none; }
.brand svg { width: 24px; height: 24px; flex: none; }
.org-name { font-size: 0.8rem; color: var(--side-text); padding: 0 10px 18px; border-bottom: 1px solid var(--side-line); margin-bottom: 14px; }
.nav { display: flex; flex-direction: column; gap: 1px; }
.nav a { position: relative; display: flex; align-items: center; gap: 11px; color: var(--side-text); padding: 8px 10px; border-radius: var(--r-sm); font-size: 0.88rem; text-decoration: none; transition: color 0.15s var(--ease), background 0.15s var(--ease); }
.nav a:hover { color: var(--side-strong); background: var(--side-2); }
.nav a.active { color: var(--side-strong); background: var(--side-2); }
.nav a.active::before { content: ""; position: absolute; left: -14px; top: 9px; bottom: 9px; width: 2px; border-radius: 2px; background: var(--side-accent); }
.nav svg { width: 17px; height: 17px; flex: none; stroke-width: 1.6; }
.side-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--side-line); font-size: 0.82rem; }
.side-foot .who { color: var(--side-strong); font-weight: 500; }
.side-foot .muted { color: var(--side-text); }
.side-foot button { margin-top: 10px; }
.main { padding: 30px 40px 64px; max-width: 1320px; width: 100%; }
.topbar { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; min-height: 8px; }
.env-badge { display: none; }
.btn.menu-btn { display: none; }

/* ---------- componentes ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: 22px 24px; margin-bottom: 16px; }
.card h2 { margin-bottom: 14px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 18px; flex-wrap: wrap; }
.card-head h1, .card-head h2 { margin: 0; }
.grid { display: grid; gap: 16px; }
.grid.kpis { grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); margin-bottom: 16px; gap: 12px; }
.grid.two { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px 16px; }
.kpi .v { font-family: var(--display); font-size: 2.1rem; font-weight: 300; letter-spacing: -0.03em; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--ink); }
.kpi .l { color: var(--muted); font-size: 0.82rem; margin-top: 6px; }
.kpi.accent .l::before, .kpi.warn .l::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; margin-right: 7px; vertical-align: 1px; background: var(--accent); }
.kpi.warn .l::before { background: var(--warn); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: inherit; font-weight: 500; font-size: 0.88rem; border-radius: var(--r-sm); padding: 8px 14px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); cursor: pointer; transition: background 0.15s var(--ease), border-color 0.15s var(--ease), color 0.15s var(--ease); white-space: nowrap; text-decoration: none; line-height: 1.3; }
.btn:hover { background: var(--surface-2); border-color: var(--line-2); text-decoration: none; }
.btn:active { transform: translateY(0.5px); }
.btn svg { width: 16px; height: 16px; }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.btn.primary:hover { opacity: 0.9; background: var(--primary); }
.btn.danger { color: var(--bad); border-color: var(--bad-line); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.ghost { background: transparent; border-color: transparent; }
.btn.small { padding: 5px 10px; font-size: 0.8rem; }
.btn[disabled] { opacity: 0.5; cursor: not-allowed; }
.btn.side-btn { background: transparent; color: var(--side-text); border-color: var(--side-line); }
.btn.side-btn:hover { color: var(--side-strong); background: var(--side-2); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.end { justify-content: flex-end; }
.spacer { flex: 1; }
label { display: block; font-size: 0.82rem; font-weight: 500; color: var(--ink-2); margin-bottom: 6px; }
.field { margin-bottom: 14px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="search"], input[type="date"], input[type="tel"], input:not([type]), select, textarea {
  width: 100%; font: inherit; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); transition: border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
input::placeholder, textarea::placeholder { color: var(--muted); opacity: 0.8; }
textarea { min-height: 110px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.fields { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 0 14px; }
.check { display: flex; gap: 8px; align-items: flex-start; font-weight: 400; font-size: 0.88rem; margin: 4px 0; }
.check input { margin-top: 3px; accent-color: var(--ink); }
table { width: 100%; border-collapse: collapse; font-size: 0.88rem; }
th { text-align: left; font-weight: 500; color: var(--muted); font-size: 0.8rem; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tr:last-child td { border-bottom: none; }
td.r, th.r { text-align: right; font-variant-numeric: tabular-nums; }
tr.click { cursor: pointer; }
tr.click:hover td { background: var(--surface-2); }
.table-wrap { overflow-x: auto; }
.badge { display: inline-flex; align-items: center; gap: 6px; font-size: 0.76rem; font-weight: 500; padding: 2px 9px; border-radius: 99px; background: var(--surface-2); color: var(--ink-2); white-space: nowrap; border: 1px solid var(--line); }
.badge::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-soft); color: var(--ok); border-color: var(--ok-line); }
.badge.warn { background: var(--warn-soft); color: var(--warn); border-color: var(--warn-line); }
.badge.bad { background: var(--bad-soft); color: var(--bad); border-color: var(--bad-line); }
.badge.info { background: var(--info-soft); color: var(--info); border-color: var(--info-line); }
.badge.accent { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.empty { text-align: center; color: var(--muted); padding: 36px 10px; }
.tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.tabs button { background: transparent; border: 1px solid var(--line); border-radius: 99px; font: inherit; font-size: 0.85rem; font-weight: 500; color: var(--muted); padding: 6px 14px; cursor: pointer; transition: all 0.15s var(--ease); }
.tabs button:hover { color: var(--ink); }
.tabs button.active { color: var(--ink); background: var(--surface); border-color: var(--line-2); }
.kv { display: grid; grid-template-columns: 180px 1fr; gap: 10px 18px; font-size: 0.9rem; margin: 0; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; word-break: break-word; }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 60; background: var(--primary); color: var(--on-primary); padding: 12px 16px; border-radius: 10px; max-width: 420px; font-size: 0.9rem; animation: rise 0.2s var(--ease); }
.toast.bad { background: var(--bad); color: #fff; }
.toast.ok { background: var(--ok); color: #fff; }
@keyframes rise { from { transform: translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }
.modal-bg { position: fixed; inset: 0; background: rgba(20, 18, 15, 0.42); display: flex; align-items: center; justify-content: center; z-index: 40; padding: 20px; animation: fade 0.15s; }
.modal { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; width: min(620px, 100%); max-height: 90vh; overflow: auto; padding: 26px; box-shadow: 0 24px 60px rgba(20, 18, 15, 0.22); }
.modal.wide { width: min(980px, 100%); }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.notice { border-radius: 10px; padding: 12px 14px; font-size: 0.88rem; margin-bottom: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink-2); }
.notice.info { background: var(--info-soft); border-color: var(--info-line); color: var(--info); }
.notice.warn { background: var(--warn-soft); border-color: var(--warn-line); color: var(--warn); }
.notice.ok { background: var(--ok-soft); border-color: var(--ok-line); color: var(--ok); }
.notice.bad { background: var(--bad-soft); border-color: var(--bad-line); color: var(--bad); }
.secret-box { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-family: var(--mono); font-size: 0.84rem; word-break: break-all; }
.pin { font-size: 1.7rem; letter-spacing: 0.22em; font-weight: 400; font-family: var(--mono); }
.timeline { list-style: none; margin: 0; padding: 0; }
.timeline li { position: relative; padding: 0 0 16px 22px; border-left: 1px solid var(--line); margin-left: 4px; }
.timeline li::before { content: ""; position: absolute; left: -4px; top: 6px; width: 7px; height: 7px; border-radius: 50%; background: var(--surface); border: 1px solid var(--ink-2); }
.timeline li.bad::before { border-color: var(--bad); background: var(--bad); }
.timeline .t { font-size: 0.8rem; color: var(--muted); }
.matrix th.rot { writing-mode: vertical-rl; transform: rotate(180deg); font-size: 0.78rem; height: 130px; }
.matrix td { text-align: center; }
.matrix td.perm { text-align: left; white-space: nowrap; }
.matrix tr.mod td { background: var(--surface-2); font-weight: 600; text-align: left; color: var(--ink-2); }
.steps { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.steps span { font-size: 0.8rem; padding: 5px 12px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-weight: 500; }
.steps span.on { background: var(--primary); border-color: var(--primary); color: var(--on-primary); }
.steps span.done { color: var(--ink); background: var(--surface); }
progress { width: 100%; height: 8px; accent-color: var(--ink); }
.drop { border: 1px dashed var(--line-2); border-radius: var(--r); padding: 28px; text-align: center; color: var(--muted); background: var(--surface-2); cursor: pointer; transition: border-color 0.15s; }
.drop.over { border-color: var(--accent); background: var(--accent-soft); }
.qr { width: 132px; height: 132px; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 6px; }
.qr svg, .qr img { width: 100%; height: 100%; }
.sig-anim { width: 64px; height: 64px; margin: 0 auto 12px; display: block; }
.sig-anim .ring { fill: none; stroke: var(--accent); stroke-width: 2; stroke-dasharray: 60 200; animation: spin 1.1s linear infinite; transform-origin: 50% 50%; }
.sig-anim path { stroke: var(--ink) !important; }
@keyframes spin { to { transform: rotate(360deg); } }
details.small { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 12px; }
details.small summary { cursor: pointer; color: var(--muted); }
details.small summary:hover { color: var(--ink); }

/* seletor de cliente (lista suspensa) */
.picker { position: relative; }
.picker-list { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 300px; overflow-y: auto; background: var(--surface); border: 1px solid var(--line-2); border-radius: 10px; box-shadow: 0 16px 40px rgba(28, 26, 23, 0.12); padding: 4px; }
.picker-item { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; background: none; border: 0; border-radius: 7px; padding: 9px 10px; font: inherit; font-size: 0.88rem; color: var(--ink); cursor: pointer; }
.picker-item:hover, .picker-item.on { background: var(--surface-2); }
.picker-item .c { color: var(--muted); font-family: var(--mono); font-size: 0.78rem; }
.picker-empty { padding: 12px; color: var(--muted); font-size: 0.86rem; }
.picked { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); }
.picked b { font-weight: 600; }

/* honorários */
.fee-plan { border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; margin-bottom: 12px; background: var(--surface); }
.fee-plan .head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 10px; }
.fee-bar { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; margin: 8px 0 12px; }
.fee-bar span { display: block; height: 100%; background: var(--ink); }

/* ---------- acesso (entrar / cadastro) ---------- */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(420px, 0.8fr); background: var(--bg); color: var(--ink); }
.auth-art { border-right: 1px solid var(--line); padding: 40px 56px 36px; display: grid; grid-template-rows: auto 1fr auto; min-height: 100vh; }
.auth-art .brand { color: var(--ink); padding: 0; }
.auth-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); gap: 56px; align-items: center; width: 100%; max-width: 1060px; margin: 0 auto; }
.auth-copy h1 { font-size: clamp(2.2rem, 3.2vw, 3rem); line-height: 1.08; margin-bottom: 18px; }
.auth-copy p { color: var(--muted); max-width: 440px; font-size: 1.02rem; }
.auth-hero .sec-viz { width: 100%; max-width: 440px; justify-self: center; }
.auth-art .facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); width: 100%; max-width: 1060px; margin: 0 auto; }
.auth-art .facts div { padding: 18px 16px 0 0; }
.auth-art .facts b { display: block; font-weight: 400; font-size: 0.95rem; color: var(--ink); }
.auth-art .facts span { font-size: 0.8rem; color: var(--muted); }
.auth-side { display: grid; place-items: center; padding: 32px 24px; }
.auth-card { width: min(400px, 100%); }
.auth-card .brand { display: none; }
.auth-card h2 { font-family: var(--display); font-size: 1.7rem; font-weight: 300; letter-spacing: -0.02em; margin-bottom: 6px; }
.auth-card .lead { color: var(--muted); margin-bottom: 26px; }
.auth-card .btn { width: 100%; padding: 11px; font-size: 0.93rem; }
.auth-card form .btn.primary { margin-top: 6px; }
.auth-card #pk { margin-top: 12px; }
.client-link { display: flex; flex-direction: column; gap: 2px; margin-top: 30px; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: border-color 0.15s var(--ease), background 0.15s var(--ease); }
.client-link span { color: var(--muted); font-size: 0.82rem; }
.client-link b { font-weight: 500; color: var(--ink); }
.client-link:hover { border-color: var(--accent); background: var(--surface); }

/* animação de segurança (anéis, blocos encadeados, varredura, pulso e escudo) */
.sec-viz { overflow: visible; }
.sec-viz line, .sec-viz circle, .sec-viz rect, .sec-viz path { fill: none; vector-effect: non-scaling-stroke; }
.sv-faint { stroke: var(--line-2); stroke-width: 1; }
.sv-r1 line { stroke: var(--line-2); stroke-width: 1; }
.sv-acc { stroke: var(--accent); stroke-width: 1.4; }
.sv-chain line { stroke: var(--blue); stroke-width: 1; opacity: 0.45; }
.sv-chain rect { stroke: var(--blue); stroke-width: 1.3; fill: var(--bg); }
.sv-sweep path { fill: var(--blue); opacity: 0.12; stroke: none; }
.sv-pulse { stroke: var(--blue); stroke-width: 1; opacity: 0; }
.sv-shield { stroke: var(--ink); stroke-width: 1.6; fill: var(--surface); }
.sv-tick { stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 70; stroke-dashoffset: 70; }
.sv-r1, .sv-r2, .sv-chain, .sv-sweep, .sv-pulse { transform-origin: 200px 200px; }
.sv-r1 { animation: spin 90s linear infinite; }
.sv-r2 { animation: spin 40s linear infinite reverse; }
.sv-chain { animation: spin 60s linear infinite; }
.sv-sweep { animation: spin 7s linear infinite; }
.sv-pulse { animation: sv-pulse 3.6s var(--ease) infinite; }
.sv-pulse2 { animation-delay: 1.8s; }
.sv-tick { animation: sv-draw 6s var(--ease) infinite; }
@keyframes sv-pulse { 0% { transform: scale(0.9); opacity: 0.5; } 100% { transform: scale(2.4); opacity: 0; } }
@keyframes sv-draw { 0% { stroke-dashoffset: 70; } 18%, 82% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -70; } }
.hero-viz { justify-self: center; width: 100%; max-width: 380px; }

/* ---------- portal do cliente ---------- */
.portal { min-height: 100vh; background: var(--bg); color: var(--ink); }
.portal a { color: var(--ink); }
.portal header { display: flex; align-items: center; justify-content: space-between; padding: 22px 32px; max-width: 1120px; margin: 0 auto; border-bottom: 1px solid var(--line); }
.portal header .brand { color: var(--ink); padding: 0; }
.portal header nav { display: flex; gap: 22px; font-size: 0.86rem; }
.portal header nav a { color: var(--muted); text-decoration: none; }
.portal header nav a:hover { color: var(--ink); }
.portal main { max-width: 1120px; margin: 0 auto; padding: 40px 32px 72px; }
.portal footer { max-width: 1120px; margin: 0 auto; padding: 26px 32px 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.82rem; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.portal footer a { color: var(--muted); }
.glass { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 30px; }
.portal h1 { font-size: 2.6rem; color: var(--ink); }
.portal .lead { color: var(--muted); font-size: 1.05rem; max-width: 620px; }
.portal input[type="text"], .portal input:not([type]) { background: var(--bg); color: var(--ink); border-color: var(--line-2); font-size: 1rem; padding: 13px 14px; }
.portal #code { font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; font-size: 1.15rem; }
.portal .kv dt { color: var(--muted); }
.portal .card { background: var(--surface); border-color: var(--line); }

/* página inicial */
.hero { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 48px; align-items: center; padding: 26px 0 40px; }
.hero h1 { font-size: 3rem; line-height: 1.08; margin-bottom: 18px; }
.hero .verify-form { display: flex; gap: 10px; margin: 26px 0 12px; max-width: 560px; }
.hero .verify-form input { flex: 1; }
.hero .verify-form .btn { padding: 0 22px; }
.hero-seal { justify-self: center; width: 100%; max-width: 340px; aspect-ratio: 1; }
.hero-seal circle, .hero-seal path, .hero-seal line { fill: none; stroke: var(--line-2); stroke-width: 1; }
.hero-seal .acc { stroke: var(--accent); stroke-width: 1.4; }
.hero-seal .tick { stroke: var(--ink); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.hero-seal .rot { transform-origin: 170px 170px; animation: spin 60s linear infinite; }
.how { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); margin-bottom: 40px; }
.how div { padding: 22px 24px 0 0; }
.how b { display: block; font-weight: 500; margin-bottom: 4px; }
.how span { color: var(--muted); font-size: 0.9rem; }
.how .n { font-family: var(--mono); font-size: 0.78rem; color: var(--accent); display: block; margin-bottom: 10px; }

/* resultado da verificação */
.result-head { display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; padding: 8px 0 30px; border-bottom: 1px solid var(--line); margin-bottom: 28px; }
.seal-status { width: 92px; height: 92px; }
.seal-status circle { fill: none; stroke-width: 1.5; }
.seal-status .bg { stroke: var(--line-2); }
.seal-status .fg { stroke: var(--muted); stroke-dasharray: 60 240; transform-origin: 46px 46px; animation: spin 1s linear infinite; }
.seal-status .mark { fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; transition: stroke-dashoffset 0.5s var(--ease) 0.1s; }
.seal-status.done .fg { animation: none; stroke-dasharray: none; }
.seal-status.done .mark { stroke-dashoffset: 0; }
.seal-status.valid .fg, .seal-status.valid .mark { stroke: var(--ok); }
.seal-status.warn .fg, .seal-status.warn .mark { stroke: var(--warn); }
.seal-status.bad .fg, .seal-status.bad .mark { stroke: var(--bad); }
.status-kicker { font-size: 0.82rem; color: var(--muted); margin-bottom: 6px; font-family: var(--mono); letter-spacing: 0.04em; }
.status-title { font-family: var(--display); font-size: 2.1rem; font-weight: 300; letter-spacing: -0.025em; line-height: 1.15; margin-bottom: 6px; }
.status-sub { color: var(--muted); max-width: 640px; }
.st-valid { color: var(--ink); }
.st-warn { color: var(--warn); }
.st-bad { color: var(--bad); }
.result-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 24px 26px; margin-bottom: 20px; }
.panel h2 { font-size: 0.82rem; font-weight: 500; color: var(--muted); margin-bottom: 16px; letter-spacing: 0.01em; }
.amount { font-family: var(--display); font-size: 2.6rem; font-weight: 300; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.amount-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--line); }
.amount-row .due { text-align: right; }
.amount-row .due b { display: block; font-weight: 400; font-size: 1.05rem; }
.subject { font-size: 1.15rem; font-weight: 500; margin-bottom: 4px; }
.quote { border-left: 2px solid var(--accent); padding: 2px 0 2px 16px; color: var(--ink-2); white-space: pre-line; margin: 18px 0 4px; }
.paybox { background: var(--bg); border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin-top: 18px; }
.paybox .k { display: flex; justify-content: space-between; gap: 12px; align-items: center; flex-wrap: wrap; }
.paybox .key { font-family: var(--mono); font-size: 1.02rem; word-break: break-all; }
.paybox .meta { color: var(--muted); font-size: 0.84rem; margin-top: 6px; }
.person { display: flex; gap: 14px; align-items: center; }
.avatar { width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-2); display: grid; place-items: center; font-weight: 500; font-size: 0.95rem; color: var(--ink); background: var(--surface-2); flex: none; }
.person b { display: block; font-weight: 500; }
.person span { color: var(--muted); font-size: 0.86rem; }
.office-list { list-style: none; margin: 0; padding: 0; }
.office-list li { display: grid; grid-template-columns: 92px 1fr; gap: 10px; padding: 9px 0; border-top: 1px solid var(--line); font-size: 0.9rem; }
.office-list li:first-child { border-top: none; padding-top: 0; }
.office-list .l { color: var(--muted); }
.checks { list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 0.9rem; }
.checks svg { width: 16px; height: 16px; flex: none; margin-top: 3px; }
.checks .y { stroke: var(--ok); } .checks .n { stroke: var(--bad); } .checks .w { stroke: var(--warn); }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 22px; }
.actions .btn { padding: 11px 18px; }
details.tech { border: 1px solid var(--line); border-radius: 12px; padding: 0 18px; background: var(--surface); margin-bottom: 20px; }
details.tech summary { cursor: pointer; padding: 14px 0; color: var(--muted); font-size: 0.88rem; list-style: none; display: flex; justify-content: space-between; }
details.tech summary::after { content: "+"; font-family: var(--mono); }
details.tech[open] summary::after { content: "–"; }
details.tech .kv { padding: 4px 0 18px; font-size: 0.84rem; grid-template-columns: 190px 1fr; }
.fine { color: var(--muted); font-size: 0.8rem; max-width: 760px; }
.pix-box { margin-top: 0; }
.pix-box h2 { font-size: 1.05rem; color: var(--ink); }
.upload-item { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.upload-item:last-child { border-bottom: none; }
.upload-item input[type="file"] { color: var(--muted); max-width: 260px; }
.portal .big { font-size: 1.2rem; font-weight: 500; color: var(--ink); }
.portal .msg-card { border-color: var(--line); }

/* sem movimento quando o sistema pede */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
@media (max-width: 960px) {
  .hero, .result-grid, .auth-page { grid-template-columns: 1fr; }
  .hero-viz { max-width: 240px; order: -1; }
  .auth-art { min-height: auto; border-right: none; border-bottom: 1px solid var(--line); padding: 28px 22px; }
  .auth-hero { grid-template-columns: 1fr; gap: 24px; }
  .auth-hero .sec-viz { max-width: 220px; order: -1; }
  .auth-art .facts { display: none; }
}
@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; }
  .side { position: fixed; inset: 0 22% 0 0; z-index: 30; transform: translateX(-102%); transition: transform 0.2s var(--ease); height: 100vh; }
  .side.open { transform: none; }
  .btn.menu-btn { display: inline-flex; }
  .main { padding: 18px 16px 50px; }
  .kv, details.tech .kv { grid-template-columns: 1fr; gap: 2px; }
  .kv dd { margin-bottom: 10px; }
  h1 { font-size: 1.6rem; }
  .portal h1, .hero h1 { font-size: 2rem; }
  .portal header, .portal main, .portal footer { padding-left: 18px; padding-right: 18px; }
  .portal header nav { display: none; }
  .how { grid-template-columns: 1fr; }
  .glass, .panel { padding: 20px; }
  .result-head { grid-template-columns: 1fr; gap: 14px; }
  .status-title { font-size: 1.6rem; }
  .amount { font-size: 2.1rem; }
  .hero .verify-form { flex-direction: column; }
  .hero .verify-form .btn { padding: 12px; }
}

/* utilitários (a CSP não permite estilo inline) */
.grow { flex: 1; min-width: 0; }
.mt10 { margin-top: 10px; } .mt12 { margin-top: 12px; } .mt14 { margin-top: 14px; } .mt18 { margin-top: 18px; }
.mb0 { margin-bottom: 0; } .mb8 { margin-bottom: 8px; } .pb16 { padding-bottom: 16px; }
.lg-s { stroke: currentColor; } .lg-t { stroke: var(--accent); }
.side .lg-t { stroke: var(--side-accent); }

/* barra de progresso dos honorários (larguras em classes: a CSP não permite estilo inline) */
.fee-bar span.w0 { width: 0%; }
.fee-bar span.w5 { width: 5%; }
.fee-bar span.w10 { width: 10%; }
.fee-bar span.w15 { width: 15%; }
.fee-bar span.w20 { width: 20%; }
.fee-bar span.w25 { width: 25%; }
.fee-bar span.w30 { width: 30%; }
.fee-bar span.w35 { width: 35%; }
.fee-bar span.w40 { width: 40%; }
.fee-bar span.w45 { width: 45%; }
.fee-bar span.w50 { width: 50%; }
.fee-bar span.w55 { width: 55%; }
.fee-bar span.w60 { width: 60%; }
.fee-bar span.w65 { width: 65%; }
.fee-bar span.w70 { width: 70%; }
.fee-bar span.w75 { width: 75%; }
.fee-bar span.w80 { width: 80%; }
.fee-bar span.w85 { width: 85%; }
.fee-bar span.w90 { width: 90%; }
.fee-bar span.w95 { width: 95%; }
.fee-bar span.w100 { width: 100%; }

/* ajustes da verificação visual: textos longos não podem alargar a página no celular */
.result-grid > div, .hero > div { min-width: 0; }
.office-list li { grid-template-columns: 92px minmax(0, 1fr); }
.office-list li span, .person span, .subject { overflow-wrap: anywhere; }
@media (min-width: 961px) and (max-width: 1300px) {
  .auth-hero { grid-template-columns: 1fr; gap: 28px; }
  .auth-hero .sec-viz { max-width: 300px; order: -1; justify-self: start; }
}

/* azul: dados técnicos, impressões digitais e verificação de chave */
.blue { color: var(--blue); }
.badge.info { background: var(--blue-soft); color: var(--blue); border-color: var(--blue-line); }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.panel-head h2 { margin: 0; }
.panel.narrow { max-width: 620px; }
.verify-form.retry { display: flex; gap: 10px; margin: 0 0 12px; }
.verify-form.retry input { flex: 1; font-family: var(--mono); letter-spacing: 0.1em; text-transform: uppercase; }
.pay-label { color: var(--blue); font-size: 0.82rem; margin-bottom: 8px; }
.paybox { border-color: var(--blue-line); }
.paybox .key { color: var(--ink); }
.bubble { background: var(--bg); border: 1px solid var(--line); border-radius: 14px 14px 14px 4px; padding: 16px 18px; white-space: pre-line; font-size: 0.92rem; line-height: 1.6; color: var(--ink-2); }
.code-hl { font-family: var(--mono); color: var(--blue); background: var(--blue-soft); border-radius: 4px; padding: 1px 5px; }
.proof { border-color: var(--blue-line); }
.proof-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; margin-bottom: 16px; }
.proof-grid div { background: var(--surface); padding: 12px 14px; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.proof-grid .l, .fp-row .l { color: var(--muted); font-size: 0.78rem; }
.proof-grid .v { font-size: 0.9rem; overflow-wrap: anywhere; }
.fp-row { display: flex; flex-direction: column; gap: 4px; padding: 10px 0; border-top: 1px solid var(--line); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.chip { font-size: 0.76rem; padding: 3px 10px; border-radius: 99px; border: 1px solid var(--blue-line); color: var(--blue); background: var(--blue-soft); }
.chip.bad { border-color: var(--bad-line); color: var(--bad); background: var(--bad-soft); }
.pix-panel { border-color: var(--blue-line); }
.pix-res { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); margin-top: 4px; }
.pix-res svg { width: 18px; height: 18px; flex: none; margin-top: 2px; }
.pix-res > div { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pix-res b { font-weight: 500; }
.pix-res span { color: var(--muted); font-size: 0.86rem; overflow-wrap: anywhere; }
.pix-res .k { color: var(--blue); font-size: 0.9rem; }
.pix-res a { font-size: 0.86rem; margin-top: 4px; }
.pix-res.ok { border-color: var(--blue-line); background: var(--blue-soft); }
.pix-res.bad { border-color: var(--bad-line); background: var(--bad-soft); }
.pix-res.warn { border-color: var(--warn-line); background: var(--warn-soft); }
.status-kicker { color: var(--blue); }
.how .n { color: var(--blue); }
@media (max-width: 860px) {
  .proof-grid { grid-template-columns: 1fr; }
  .verify-form.retry { flex-direction: column; }
}
.pix-res svg.y { stroke: var(--blue); } .pix-res svg.n { stroke: var(--bad); } .pix-res svg.w { stroke: var(--warn); }
.code-box { display: flex; gap: 28px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; padding: 16px 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); margin-bottom: 16px; }
.code-box .pin { font-size: 1.4rem; }
textarea.msg-ready { min-height: 280px; font-size: 0.88rem; line-height: 1.55; background: var(--surface-2); }

/* ---------- cartão de verificação (padrão azul-marinho + verde) ---------- */
.cert-wrap { max-width: 640px; margin: 0 auto; }
.cert {
  --c-bg: #0d1626; --c-surface: #142036; --c-line: #213049; --c-text: #eef3fb; --c-muted: #9fb0c9;
  --c-green: #7fd8b4; --c-green-soft: rgba(127, 216, 180, 0.12); --c-amber: #f2c36b; --c-amber-soft: rgba(242, 195, 107, 0.12);
  --c-red: #f19a90; --c-red-soft: rgba(241, 154, 144, 0.12); --c-blue: #9dbcff;
  --st: var(--c-green); --st-soft: var(--c-green-soft);
  background: var(--c-bg); color: var(--c-text); border: 1px solid var(--c-line); border-radius: 28px; padding: 26px 28px 22px; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.45);
}
.cert.warn { --st: var(--c-amber); --st-soft: var(--c-amber-soft); }
.cert.bad { --st: var(--c-red); --st-soft: var(--c-red-soft); }
.cert-top { display: flex; justify-content: space-between; align-items: center; padding-bottom: 18px; border-bottom: 1px solid var(--c-line); }
.cert-brand { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.06em; font-size: 1.15rem; }
.cert-brand svg { width: 26px; height: 26px; }
.cert-brand .lg-s, .cert-brand .lg-t { stroke: var(--st); }
.pill { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.12em; padding: 6px 12px; border-radius: 99px; color: var(--st); background: var(--st-soft); }
.pill.wait { color: var(--c-muted); background: rgba(255, 255, 255, 0.05); }
.cert-hero { text-align: center; padding: 26px 6px 22px; }
.cert-hero .seal-status { width: 76px; height: 76px; margin: 0 auto 14px; display: block; }
.cert-hero .seal-status.valid .fg, .cert-hero .seal-status.valid .mark { stroke: var(--c-green); }
.cert-hero .seal-status.warn .fg, .cert-hero .seal-status.warn .mark { stroke: var(--c-amber); }
.cert-hero .seal-status.bad .fg, .cert-hero .seal-status.bad .mark { stroke: var(--c-red); }
.cert-title { font-family: var(--font); font-size: 1.9rem; font-weight: 700; letter-spacing: 0.01em; text-transform: uppercase; color: var(--st); line-height: 1.15; margin: 0 0 10px; }
.cert-sub { color: var(--c-text); opacity: 0.88; font-size: 1.02rem; max-width: 480px; margin: 0 auto; }
.cert-code { background: var(--c-surface); border-radius: 18px; padding: 18px 20px; margin-bottom: 8px; }
.cert-code .lbl, .cs h3, .cr .l, .cs .l { color: var(--c-muted); }
.cert-code .lbl { font-size: 0.78rem; letter-spacing: 0.08em; text-transform: uppercase; }
.cert-code .code { font-size: 1.9rem; font-weight: 700; letter-spacing: 0.04em; margin: 4px 0 8px; font-family: var(--font); word-break: break-all; }
.code-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; color: var(--c-muted); font-size: 0.88rem; flex-wrap: wrap; }
.link-btn { background: none; border: 0; color: var(--st); font: inherit; font-weight: 600; cursor: pointer; padding: 0; }
.cs { padding: 22px 0 6px; border-top: 1px solid var(--c-line); margin-top: 18px; }
.cert-code + .cs, .paid-note + .cs { border-top: 0; margin-top: 6px; }
.cs h3 { font-size: 0.78rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; margin: 0 0 14px; }
.cs-desc { font-weight: 600; font-size: 1.05rem; margin-bottom: 6px; }
.cs-text { color: var(--c-text); opacity: 0.9; white-space: pre-line; line-height: 1.6; }
.cs-small { color: var(--c-muted); font-size: 0.86rem; }
.amt-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 12px; }
.amt { font-size: 2.4rem; font-weight: 700; letter-spacing: -0.01em; font-variant-numeric: tabular-nums; line-height: 1.1; }
.amt-row .l { font-size: 0.82rem; }
.amt-row .due { text-align: right; }
.amt-row .due b { display: block; font-size: 1.15rem; font-weight: 600; }
.tag { display: inline-block; font-size: 0.74rem; font-weight: 600; padding: 2px 9px; border-radius: 99px; background: rgba(255, 255, 255, 0.07); color: var(--c-muted); vertical-align: 2px; }
.tag.ok { background: var(--c-green-soft); color: var(--c-green); }
.tag.warn { background: var(--c-amber-soft); color: var(--c-amber); }
.tag.bad { background: var(--c-red-soft); color: var(--c-red); }
.pixcard { background: var(--c-surface); border: 1px solid var(--c-line); border-radius: 18px; padding: 18px; margin-top: 14px; }
.pixcard.bad { border-color: var(--c-red); }
.pix-head { display: flex; justify-content: space-between; gap: 10px; align-items: center; flex-wrap: wrap; color: var(--c-muted); font-size: 0.86rem; margin-bottom: 8px; }
.pix-key { font-family: var(--mono); font-size: 1.08rem; color: var(--c-blue); word-break: break-all; }
.pix-meta { color: var(--c-muted); font-size: 0.86rem; margin-top: 6px; }
.pix-meta b { color: var(--c-text); font-weight: 500; }
.pix-qr { display: grid; grid-template-columns: 150px 1fr; gap: 18px; align-items: center; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--c-line); }
.pix-qr p { color: var(--c-muted); font-size: 0.88rem; margin: 6px 0 12px; }
.qrbox { background: #fff; border-radius: 12px; padding: 8px; }
.qrbox svg { width: 100%; height: auto; display: block; }
.paid-note { background: var(--c-green-soft); color: var(--c-green); border-radius: 14px; padding: 12px 16px; margin: 10px 0; font-weight: 500; }
.paid-note.bad { background: var(--c-red-soft); color: var(--c-red); }
.crs { display: flex; flex-direction: column; }
.cr { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; font-size: 0.98rem; }
.cr .v { text-align: right; overflow-wrap: anywhere; }
.cr .v.mono { font-family: var(--mono); font-size: 0.82rem; }
.cr .v.blue, .cert .blue { color: var(--c-blue); }
.cert .g { color: var(--c-green); font-weight: 500; }
.cert .r { color: var(--c-red); font-weight: 500; }
.cert .y { color: var(--c-amber); font-weight: 500; }
.cert .person { margin-bottom: 8px; }
.cert .avatar { border-color: var(--c-line); background: var(--c-surface); color: var(--c-text); }
.cert .person b { color: var(--c-text); }
.cert .person span { color: var(--c-muted); display: block; }
.office-name { font-size: 1.35rem; font-weight: 700; margin-bottom: 4px; }
.notice-cert { margin-top: 12px; background: var(--c-surface); border-radius: 14px; padding: 12px 16px; color: var(--c-muted); font-size: 0.88rem; }
.cert-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.cert .btn { background: var(--c-surface); border-color: var(--c-line); color: var(--c-text); border-radius: 12px; padding: 10px 16px; }
.cert .btn.primary { background: var(--st); border-color: var(--st); color: #062018; font-weight: 600; }
.cert .btn.ghost-blue { margin-top: 12px; color: var(--c-blue); border-color: rgba(157, 188, 255, 0.35); background: transparent; }
.compare summary { cursor: pointer; color: var(--c-text); font-weight: 600; list-style: none; }
.compare summary::after { content: " +"; color: var(--c-muted); }
.compare[open] summary::after { content: " –"; }
.compare textarea { background: var(--c-surface); border-color: var(--c-line); color: var(--c-text); min-height: 150px; margin-top: 10px; }
.cmp-res { display: flex; gap: 12px; padding: 14px 16px; border-radius: 14px; margin-top: 12px; }
.cmp-res svg { width: 18px; height: 18px; flex: none; margin-top: 3px; }
.cmp-res > div { display: flex; flex-direction: column; gap: 4px; }
.cmp-res span { color: var(--c-muted); font-size: 0.9rem; }
.cmp-res.ok { background: var(--c-green-soft); } .cmp-res.ok b { color: var(--c-green); } .cmp-res.ok svg { stroke: var(--c-green); }
.cmp-res.bad { background: var(--c-red-soft); } .cmp-res.bad b { color: var(--c-red); } .cmp-res.bad svg { stroke: var(--c-red); }
.cmp-res.warn { background: var(--c-amber-soft); } .cmp-res.warn b { color: var(--c-amber); }
.cert .drop { background: var(--c-surface); border-color: var(--c-line); color: var(--c-muted); }
.cert input { background: var(--c-surface); color: var(--c-text); border-color: var(--c-line); }
.cert-foot { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; color: var(--c-muted); font-size: 0.82rem; letter-spacing: 0.04em; border-top: 1px solid var(--c-line); margin-top: 20px; padding-top: 16px; }
.cert-foot .host { letter-spacing: 0; }
.cert-foot .host b { color: var(--c-text); font-weight: 500; }
.cert-after { max-width: 640px; margin: 18px auto 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; }
.cert-after h2 { font-size: 0.9rem; color: var(--muted); margin-bottom: 12px; }
@media (max-width: 600px) {
  .cert { border-radius: 22px; padding: 20px 18px 18px; }
  .cert-title { font-size: 1.5rem; }
  .cert-code .code { font-size: 1.5rem; }
  .amt { font-size: 2rem; }
  .pix-qr { grid-template-columns: 1fr; }
  .qrbox { max-width: 220px; margin: 0 auto; }
  .portal main { padding-top: 22px; }
}
@media print {
  .portal header, .portal footer, .print-hide, .compare, .cert-btns, #after, .link-btn { display: none !important; }
  .portal, .portal main { background: #fff !important; padding: 0 !important; }
  .cert { box-shadow: none; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
