/* Cofre — sistema de finanças. Linguagem visual corporativa (shell escuro petróleo, conteúdo claro). */
:root {
  --ink: #0b2a30; --ink-2: #123940; --ink-3: #1c4b53;
  --brand: #0f6e6a; --brand-600: #0b5a57; --brand-50: #e7f3f2; --brand-100: #cde5e3;
  --amber: #e3a33a; --on-amber: #2b1d00; --brand-lt: #2bb3ac;
  --bg: #f2f5f7; --surface: #ffffff; --surface-2: #f7f9fa; --line: #dbe2e7; --line-2: #e8edf0;
  --text: #16252b; --text-2: #4f616b; --text-3: #75868f;
  --pos: #17795a; --pos-bg: #e1f3eb; --neg: #bb3a33; --neg-bg: #fbe8e6;
  --warn: #9a5f06; --warn-bg: #fcf0d6; --info: #2a6a92; --info-bg: #e4eff6;
  --radius: 6px; --radius-lg: 10px;
  --shadow-1: 0 1px 2px rgba(11, 42, 48, .07), 0 0 0 1px rgba(11, 42, 48, .02);
  --shadow-2: 0 12px 32px rgba(11, 42, 48, .18);
  --focus: 0 0 0 3px rgba(15, 110, 106, .38);
  --font: "Inter", "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", sans-serif;
  --shellbar-h: 52px; --nav-w: 244px;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #0d1418; --surface: #131d22; --surface-2: #17232a; --line: #25343c; --line-2: #1d2b32;
  --text: #e5ecef; --text-2: #a5b5bd; --text-3: #7d909a;
  --brand: #2bb3ac; --brand-600: #3cc6be; --brand-50: #12302f; --brand-100: #17413f;
  --pos: #4fcf9d; --pos-bg: #12332a; --neg: #ff8a80; --neg-bg: #3a1d1b;
  --warn: #f0b95a; --warn-bg: #3a2c11; --info: #7cc0ea; --info-bg: #13293a;
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .4); --shadow-2: 0 12px 32px rgba(0, 0, 0, .55);
  --focus: 0 0 0 3px rgba(43, 179, 172, .45);
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 14px/1.5 var(--font); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: none; box-shadow: var(--focus); }
.num { font-variant-numeric: tabular-nums; }
.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }
.row { display: flex; align-items: center; gap: 8px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }
.stack { display: flex; flex-direction: column; gap: 12px; }
.pos { color: var(--pos); } .neg { color: var(--neg); }
svg.i { width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- botões e campos ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 34px; padding: 0 14px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); color: var(--text); font-weight: 500; cursor: pointer; white-space: nowrap; transition: background .12s, border-color .12s; }
.btn:hover { background: var(--surface-2); border-color: #c4ced5; }
.btn.primary { background: var(--brand); border-color: var(--brand); color: #fff; }
.btn.primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
:root[data-theme="dark"] .btn.primary { color: #06201f; }
.btn.danger { color: var(--neg); border-color: color-mix(in srgb, var(--neg) 35%, var(--line)); }
.btn.danger:hover { background: var(--neg-bg); }
.btn.danger.solid { background: var(--neg); border-color: var(--neg); color: #fff; }
.btn.ghost { border-color: transparent; background: transparent; }
.btn.ghost:hover { background: var(--line-2); }
.btn.sm { height: 28px; padding: 0 10px; font-size: 13px; }
.btn.icon { width: 32px; padding: 0; }
.btn.icon.sm { width: 28px; }
.btn.block { width: 100%; height: 40px; }
.btn[disabled] { opacity: .55; cursor: not-allowed; }
.btn .spin { width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.field { display: flex; flex-direction: column; gap: 5px; min-width: 0; }
.field > label, .field > .lbl { font-size: 12.5px; font-weight: 600; color: var(--text-2); }
.field .hint { font-size: 12px; color: var(--text-3); }
.field .err { font-size: 12px; color: var(--neg); }
.input, .select, .textarea { width: 100%; height: 36px; padding: 0 10px; border: 1px solid #c9d3d9; border-radius: var(--radius); background: var(--surface); transition: border-color .12s; }
:root[data-theme="dark"] .input, :root[data-theme="dark"] .select, :root[data-theme="dark"] .textarea { border-color: #33454e; }
.textarea { height: auto; min-height: 72px; padding: 8px 10px; resize: vertical; }
.input:hover, .select:hover, .textarea:hover { border-color: var(--text-3); }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: var(--focus); outline: none; }
.input.invalid { border-color: var(--neg); }
.input.money { text-align: right; font-variant-numeric: tabular-nums; }
.input-group { position: relative; }
.input-group .prefix { position: absolute; left: 10px; top: 50%; transform: translateY(-50%); color: var(--text-3); pointer-events: none; font-size: 13px; }
.input-group .input { padding-left: 34px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-grid .full { grid-column: 1 / -1; }
.check { display: flex; align-items: flex-start; gap: 9px; cursor: pointer; font-size: 13.5px; }
.check input { margin-top: 3px; width: 16px; height: 16px; accent-color: var(--brand); }
.seg { display: inline-flex; padding: 3px; background: var(--line-2); border-radius: 8px; gap: 2px; }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-weight: 500; color: var(--text-2); }
.seg button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); }
.seg button.exp[aria-pressed="true"] { color: var(--neg); } .seg button.inc[aria-pressed="true"] { color: var(--pos); }
.switch { position: relative; width: 38px; height: 22px; flex: none; }
.switch input { appearance: none; width: 100%; height: 100%; margin: 0; border-radius: 11px; background: #b7c3ca; cursor: pointer; transition: background .15s; }
.switch input:checked { background: var(--brand); }
.switch::after { content: ""; position: absolute; left: 3px; top: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .15s; pointer-events: none; }
.switch:has(input:checked)::after { transform: translateX(16px); }
.switch input:focus-visible { box-shadow: var(--focus); }

/* ---------- cartões, tabelas, badges ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-1); }
.card-h { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.card-h h3 { font-size: 14.5px; }
.card-b { padding: 18px; }
.card-b.flush { padding: 0; }
.grid { display: grid; gap: 16px; }
.grid.c2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid.c3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid.c4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.grid.main-side { grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); }
.kpi { padding: 16px 18px; }
.kpi .k-l { font-size: 12.5px; color: var(--text-2); font-weight: 500; }
.kpi .k-v { font-size: 25px; font-weight: 650; letter-spacing: -.02em; margin-top: 4px; font-variant-numeric: tabular-nums; }
.kpi .k-s { font-size: 12.5px; color: var(--text-3); margin-top: 3px; }
.kpi { position: relative; overflow: hidden; }
.kpi::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--kc, var(--line)); }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; }
.table th { text-align: left; font-size: 12px; font-weight: 600; color: var(--text-2); padding: 10px 14px; background: var(--surface-2); border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 11px 14px; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.table tbody tr:hover { background: color-mix(in srgb, var(--brand-50) 55%, transparent); }
.table tr:last-child td { border-bottom: 0; }
.table .r { text-align: right; }
.table .actions { text-align: right; white-space: nowrap; }
.table td.desc { max-width: 340px; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 21px; padding: 0 8px; border-radius: 11px; font-size: 12px; font-weight: 600; background: var(--line-2); color: var(--text-2); white-space: nowrap; }
.badge.pos { background: var(--pos-bg); color: var(--pos); } .badge.neg { background: var(--neg-bg); color: var(--neg); }
.badge.warn { background: var(--warn-bg); color: var(--warn); } .badge.info { background: var(--info-bg); color: var(--info); }
.badge.brand { background: var(--brand-50); color: var(--brand); }
.badge.dev { background: var(--amber); color: var(--on-amber); }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--text-3)); flex: none; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 4px; background: var(--line-2); font-size: 12px; color: var(--text-2); }
.progress { height: 8px; border-radius: 4px; background: var(--line-2); overflow: hidden; }
.progress > span { display: block; height: 100%; border-radius: 4px; background: var(--bar, var(--brand)); }
.progress.warn > span { background: #d98f1c; } .progress.over > span { background: var(--neg); }

.empty { text-align: center; padding: 44px 20px; color: var(--text-2); }
.empty h4 { color: var(--text); font-size: 15px; margin-bottom: 4px; }
.empty p { max-width: 380px; margin: 0 auto 14px; }
.empty .ill { width: 44px; height: 44px; margin: 0 auto 12px; color: var(--text-3); }
.alert { display: flex; gap: 10px; padding: 11px 14px; border-radius: var(--radius); background: var(--info-bg); color: var(--info); font-size: 13.5px; align-items: flex-start; }
.alert.warn { background: var(--warn-bg); color: var(--warn); } .alert.neg { background: var(--neg-bg); color: var(--neg); } .alert.pos { background: var(--pos-bg); color: var(--pos); }
.alert svg { margin-top: 2px; }
.tabs { display: flex; gap: 2px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; }
.tabs button { border: 0; background: none; padding: 10px 14px; cursor: pointer; color: var(--text-2); font-weight: 500; border-bottom: 2px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--brand); border-color: var(--brand); }
.tabs button:hover { color: var(--text); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: flex-end; padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.toolbar .field { min-width: 140px; }
.toolbar .grow { flex: 1; min-width: 200px; }
.pager { display: flex; align-items: center; gap: 8px; padding: 12px 18px; border-top: 1px solid var(--line-2); color: var(--text-2); font-size: 13px; }
.summary-bar { display: flex; flex-wrap: wrap; gap: 24px; padding: 12px 18px; background: var(--surface-2); border-top: 1px solid var(--line-2); font-size: 13px; border-radius: 0 0 var(--radius-lg) var(--radius-lg); }
.summary-bar b { font-variant-numeric: tabular-nums; }
.legend { display: flex; flex-direction: column; gap: 7px; font-size: 13px; }
.legend .li { display: flex; align-items: center; gap: 8px; }
.legend .li .n { flex: 1; min-width: 0; }
.list-row { display: flex; align-items: center; gap: 12px; padding: 11px 18px; border-bottom: 1px solid var(--line-2); }
.list-row:last-child { border-bottom: 0; }
.list-row .lr-main { flex: 1; min-width: 0; }
.list-row .sub { font-size: 12.5px; color: var(--text-3); }

/* ---------- shell ---------- */
.shellbar { position: fixed; z-index: 30; top: 0; left: 0; right: 0; height: var(--shellbar-h); background: var(--ink); color: #e8f1f2; display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.shellbar .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 16px; letter-spacing: -.01em; color: #fff; text-decoration: none; }
.shellbar .brand:hover { text-decoration: none; }
.shellbar .org { padding: 4px 10px; border-radius: 5px; background: var(--ink-2); font-size: 13px; color: #c7dadd; max-width: 240px; }
.shellbar .btn.ghost { color: #d5e5e7; } .shellbar .btn.ghost:hover { background: var(--ink-2); }
.menu-btn { display: none; }
.avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.dropdown { position: relative; }
.dropdown-panel { position: absolute; right: 0; top: calc(100% + 8px); min-width: 230px; background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-2); padding: 6px; z-index: 50; }
.dropdown-panel .who { padding: 10px 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; }
.dropdown-panel button { display: flex; width: 100%; align-items: center; gap: 10px; border: 0; background: none; padding: 8px 12px; border-radius: 5px; cursor: pointer; text-align: left; }
.dropdown-panel button:hover { background: var(--surface-2); }

.sidenav { position: fixed; z-index: 20; top: var(--shellbar-h); bottom: 0; left: 0; width: var(--nav-w); background: var(--surface); border-right: 1px solid var(--line); overflow-y: auto; padding: 12px 8px 24px; }
.nav-group { margin-bottom: 14px; }
.nav-group > .gl { padding: 6px 12px; font-size: 12px; font-weight: 600; color: var(--text-3); }
.nav-item { position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 6px; color: var(--text); text-decoration: none; font-weight: 500; }
.nav-item:hover { background: var(--surface-2); text-decoration: none; }
.nav-item.active { background: var(--brand-50); color: var(--brand); }
.nav-item.active::before { content: ""; position: absolute; left: -8px; top: 6px; bottom: 6px; width: 3px; border-radius: 0 3px 3px 0; background: var(--brand); }
.nav-item svg { color: var(--text-2); } .nav-item.active svg { color: var(--brand); }
.nav-group.dev .gl { color: #b07a12; }
.main { margin: var(--shellbar-h) 0 0 var(--nav-w); padding: 24px 28px 56px; min-height: calc(100vh - var(--shellbar-h)); }
.main-inner { max-width: 1280px; margin: 0 auto; }
.imp-bar { position: fixed; z-index: 29; top: var(--shellbar-h); left: var(--nav-w); right: 0; height: 38px; background: var(--amber); color: #3a2800; display: flex; align-items: center; gap: 12px; padding: 0 28px; font-weight: 500; font-size: 13.5px; }
.has-imp .main { padding-top: 62px; }
.page-h { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 20px; flex-wrap: wrap; }
.page-h h1 { font-size: 22px; letter-spacing: -.02em; }
.page-h .sub { color: var(--text-2); margin-top: 2px; }
.month-nav { display: inline-flex; align-items: center; gap: 2px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 2px; }
.month-nav .lbl { min-width: 148px; text-align: center; font-weight: 600; }
.scrim { position: fixed; inset: 0; background: rgba(8, 24, 28, .45); z-index: 15; }

/* ---------- modal e toast ---------- */
.modal-back { position: fixed; inset: 0; z-index: 100; background: rgba(8, 24, 28, .55); display: grid; place-items: center; padding: 20px; animation: fade .12s ease-out; }
.modal { width: min(560px, 100%); max-height: calc(100vh - 40px); display: flex; flex-direction: column; background: var(--surface); border-radius: 12px; box-shadow: var(--shadow-2); animation: pop .16s ease-out; }
.modal.wide { width: min(820px, 100%); }
.modal.narrow { width: min(430px, 100%); }
.modal-h { display: flex; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line-2); }
.modal-h h3 { font-size: 16px; flex: 1; }
.modal-b { padding: 20px; overflow-y: auto; }
.modal-f { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid var(--line-2); background: var(--surface-2); border-radius: 0 0 12px 12px; }
@keyframes fade { from { opacity: 0; } } @keyframes pop { from { opacity: 0; transform: translateY(6px) scale(.985); } }
.toasts { position: fixed; z-index: 200; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; }
.toast { display: flex; gap: 10px; align-items: center; min-width: 260px; max-width: 420px; padding: 11px 14px; border-radius: 8px; background: var(--ink); color: #fff; box-shadow: var(--shadow-2); animation: pop .18s ease-out; border-left: 4px solid var(--pos); }
.toast.error { border-left-color: #ff7b72; } .toast.info { border-left-color: var(--amber); }
.copybox { display: flex; gap: 8px; } .copybox .input { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; }

/* matriz de permissões */
.matrix { border: 1px solid var(--line); border-radius: var(--radius); max-height: 340px; overflow-y: auto; }
.matrix .grp { padding: 8px 14px; background: var(--surface-2); font-weight: 600; font-size: 12.5px; color: var(--text-2); border-bottom: 1px solid var(--line-2); position: sticky; top: 0; }
.matrix .perm { display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-bottom: 1px solid var(--line-2); }
.matrix .perm:last-child { border-bottom: 0; }
.matrix .perm.changed { background: var(--warn-bg); }
.matrix .perm label { flex: 1; cursor: pointer; }
.matrix input { width: 16px; height: 16px; accent-color: var(--brand); }
.code { font: 12.5px/1.55 ui-monospace, Menlo, Consolas, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px; overflow: auto; max-height: 560px; white-space: pre; }

/* gráficos */
.chart text { font-family: var(--font); fill: var(--text-3); font-size: 11px; }
.chart .grid-l { stroke: var(--line-2); stroke-width: 1; }
.chart .bar-i { fill: var(--pos); } .chart .bar-e { fill: var(--neg); }
.chart-legend { display: flex; gap: 16px; font-size: 12.5px; color: var(--text-2); margin-bottom: 8px; }
.skeleton { background: linear-gradient(90deg, var(--line-2), var(--surface-2), var(--line-2)); background-size: 200% 100%; animation: sk 1.2s infinite; border-radius: 6px; }
@keyframes sk { to { background-position: -200% 0; } }

/* ---------- telas públicas ---------- */
.landing { min-height: 100vh; background: var(--ink); color: #e6f0f1; display: flex; flex-direction: column; }
.lp { display: block; overflow-x: clip; scroll-behavior: smooth; }
.lp .brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 18px; color: #fff; text-decoration: none; }
.lp-wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 clamp(20px, 5vw, 40px); position: relative; }
.lp-btn { height: 40px; padding: 0 18px; font-weight: 600; gap: 8px; }
.lp-btn.lg { height: 52px; padding: 0 28px; font-size: 16px; border-radius: 10px; }
.lp-btn.sm { height: 36px; padding: 0 16px; }
.lp-btn.primary { background: var(--amber); border-color: var(--amber); color: var(--on-amber); box-shadow: 0 6px 22px -6px color-mix(in srgb, var(--amber) 70%, transparent); transition: transform .15s, filter .15s, box-shadow .15s; }
.lp-btn.primary:hover { filter: brightness(1.07); transform: translateY(-1px); box-shadow: 0 10px 28px -6px color-mix(in srgb, var(--amber) 80%, transparent); }
.lp-btn.primary .i { width: 18px; height: 18px; transition: transform .15s; } .lp-btn.primary:hover .i { transform: translateX(3px); }
.lp-btn.outline { background: rgba(255, 255, 255, .04); color: #e6f0f1; border-color: rgba(255, 255, 255, .22); } .lp-btn.outline:hover { background: rgba(255, 255, 255, .1); }
.lp-btn.ghost { background: transparent; color: #e6f0f1; border-color: transparent; } .lp-btn.ghost:hover { background: rgba(255, 255, 255, .08); }

.lp-nav { position: fixed; inset: 0 0 auto 0; z-index: 40; transition: background .2s, box-shadow .2s, backdrop-filter .2s; }
.lp-nav.solid { background: color-mix(in srgb, var(--ink) 88%, transparent); backdrop-filter: blur(10px); box-shadow: 0 1px 0 rgba(255, 255, 255, .07); }
.lp-nav-in { max-width: 1200px; margin: 0 auto; height: 68px; padding: 0 clamp(20px, 5vw, 40px); display: flex; align-items: center; gap: 10px; }
.lp-links { display: flex; gap: 2px; margin-left: 28px; }
.lp-link { background: none; border: 0; color: #b4cacd; font: inherit; font-size: 14px; font-weight: 500; padding: 8px 12px; border-radius: 8px; cursor: pointer; } .lp-link:hover { color: #fff; background: rgba(255, 255, 255, .07); }

.lp-hero { position: relative; background: radial-gradient(1100px 600px at 80% -10%, color-mix(in srgb, var(--brand) 55%, var(--ink)) 0%, transparent 60%), linear-gradient(180deg, var(--ink) 0%, var(--ink-2) 100%); padding: 132px 0 96px; overflow: hidden; isolation: isolate; }
.lp-glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .45; pointer-events: none; z-index: -1; }
.lp-glow.g1 { width: 420px; height: 420px; background: var(--brand); left: -140px; top: 120px; opacity: .3; }
.lp-glow.g2 { width: 380px; height: 380px; background: var(--amber); right: -120px; bottom: -80px; opacity: .16; }
.lp-grid { position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 75%); }
.lp-hero-in { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.lp-pill { display: inline-flex; align-items: center; gap: 9px; height: 32px; padding: 0 14px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .14); color: #d7e6e8; font-size: 13px; font-weight: 500; margin-bottom: 20px; }
.lp-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--amber); box-shadow: 0 0 0 4px color-mix(in srgb, var(--amber) 30%, transparent); }
.lp-hero h1 { font-size: clamp(34px, 4.7vw, 58px); line-height: 1.04; letter-spacing: -.038em; font-weight: 750; color: #fff; text-wrap: balance; }
.lp-lead { margin-top: 20px; font-size: clamp(16px, 1.5vw, 19px); line-height: 1.6; color: #adc5c9; max-width: 52ch; }
.lp-cta { margin-top: 32px; display: flex; gap: 12px; flex-wrap: wrap; } .lp-cta.center { justify-content: center; }
.lp-have { margin-top: 16px; font-size: 14px; color: #9bb7bb; } .lp-have a { color: #fff; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.lp-trust { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; color: #9bb7bb; font-size: 13.5px; }
.lp-trust li { display: inline-flex; align-items: center; gap: 7px; } .lp-trust .i { width: 16px; height: 16px; color: var(--brand-lt); stroke-width: 2.6; }
.lp-hero-vis { position: relative; min-width: 0; }

.pv { position: relative; background: linear-gradient(180deg, #112f36, #0c2328); border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .6), 0 0 0 1px rgba(0, 0, 0, .3); transform: perspective(1400px) rotateY(-6deg) rotateX(2deg); transition: transform .5s; color: #dbe9eb; }
.pv:hover { transform: perspective(1400px) rotateY(0) rotateX(0); }
.pv-bar-top { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid rgba(255, 255, 255, .08); }
.pv-bar-top i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, .18); } .pv-bar-top i:nth-child(1) { background: #ff6f61; } .pv-bar-top i:nth-child(2) { background: #f7c04a; } .pv-bar-top i:nth-child(3) { background: #4fcf9d; }
.pv-url { margin-left: 10px; font-size: 11.5px; color: #7d9ea3; background: rgba(255, 255, 255, .05); padding: 3px 12px; border-radius: 6px; }
.pv-eye { margin-left: auto; color: var(--amber); } .pv-eye .i { width: 17px; height: 17px; }
.pv-body { padding: 16px; display: grid; gap: 12px; }
.pv small { display: block; font-size: 11.5px; color: #8fb0b5; margin-bottom: 6px; }
.pv .mk { font-weight: 650; letter-spacing: .02em; font-variant-numeric: tabular-nums; }
.pv-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.pv-kpi { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .07); border-radius: 10px; padding: 11px 12px; font-size: 15px; } .pv-kpi.pos .mk { color: #6fe0b4; } .pv-kpi.neg .mk { color: #ff9d92; }
.pv-mid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 10px; }
.pv-card { background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .07); border-radius: 10px; padding: 12px; }
.pv-bars { height: 92px; display: flex; align-items: flex-end; gap: 9px; }
.pv-bar { flex: 1; border-radius: 4px 4px 0 0; background: linear-gradient(180deg, var(--brand-lt), color-mix(in srgb, var(--brand) 70%, #000)); transform-origin: bottom; animation: pv-grow .9s cubic-bezier(.2, .8, .2, 1) both; animation-delay: var(--d); } .pv-bar:nth-child(even) { background: linear-gradient(180deg, var(--amber), color-mix(in srgb, var(--amber) 60%, #000)); }
@keyframes pv-grow { from { transform: scaleY(.05); opacity: .3; } }
.pv-don { display: flex; flex-direction: column; align-items: center; } .pv-donut { width: 92px; height: 92px; }
.pv-row { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-top: 1px solid rgba(255, 255, 255, .06); font-size: 13px; } .pv-row:first-of-type { border-top: 0; }
.pv-ic { width: 28px; height: 28px; border-radius: 8px; background: rgba(255, 255, 255, .07); display: grid; place-items: center; color: var(--brand-lt); } .pv-ic .i { width: 15px; height: 15px; }
.pv-t { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pv-tag { font-size: 11px; padding: 2px 8px; border-radius: 10px; background: color-mix(in srgb, var(--brand) 35%, transparent); color: #bfeeea; }
.pv-float { position: absolute; display: flex; align-items: center; gap: 9px; background: #fff; color: #14313a; font-size: 13px; font-weight: 600; padding: 10px 14px 10px 10px; border-radius: 12px; box-shadow: 0 18px 36px -8px rgba(0, 0, 0, .5); animation: floaty 5s ease-in-out infinite; }
.pv-float .ck { width: 26px; height: 26px; border-radius: 50%; background: #17795a; color: #fff; display: grid; place-items: center; } .pv-float .ck.amber { background: var(--amber); color: var(--on-amber); } .pv-float .ck .i { width: 14px; height: 14px; stroke-width: 2.6; }
.pv-float.f1 { left: -24px; bottom: -22px; } .pv-float.f2 { right: -16px; top: -22px; animation-delay: -2.4s; }
@keyframes floaty { 50% { transform: translateY(-8px); } }
.hero-shot { margin: 0; border-radius: 16px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 40px 80px -20px rgba(0, 0, 0, .55); background: rgba(255, 255, 255, .04); } .hero-shot img { display: block; width: 100%; height: auto; }

.lp-sec { padding: clamp(56px, 8vw, 104px) 0; background: var(--bg); color: var(--text); }
.lp-head { max-width: 680px; margin: 0 auto clamp(32px, 5vw, 56px); text-align: center; }
.lp-head h2, .lp-row-copy h2, .lp-final h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.12; letter-spacing: -.03em; font-weight: 720; text-wrap: balance; }
.lp-head p { margin-top: 12px; font-size: 17px; color: var(--text-2); }
.lp-eye { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: 12px; }
.lp-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; } .lp-ic .i { width: 22px; height: 22px; } .lp-ic.lg { width: 52px; height: 52px; border-radius: 14px; } .lp-ic.lg .i { width: 26px; height: 26px; }
.lp-pain { background: var(--surface); border-bottom: 1px solid var(--line); padding: 36px 0; }
.lp-pain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.lp-pain-it { display: flex; gap: 14px; align-items: flex-start; } .lp-pain-it h3 { font-size: 16px; margin-bottom: 4px; } .lp-pain-it p { color: var(--text-2); font-size: 14.5px; }
.lp-feat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.lp-card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 26px; transition: transform .2s, box-shadow .2s, border-color .2s; }
.lp-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -16px rgba(11, 42, 48, .28); border-color: color-mix(in srgb, var(--brand) 40%, var(--line)); }
.lp-card h3 { font-size: 17px; margin: 18px 0 8px; letter-spacing: -.01em; } .lp-card p { color: var(--text-2); font-size: 14.5px; line-height: 1.6; } .lp-card.tall { padding: 32px 28px; }
.lp-show { background: var(--surface); } .lp-show .lp-wrap { display: grid; gap: clamp(56px, 8vw, 100px); }
.lp-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(28px, 6vw, 80px); align-items: center; } .lp-row.rev .lp-row-copy { order: 2; }
.lp-row-copy p { margin-top: 14px; color: var(--text-2); font-size: 16.5px; line-height: 1.65; }
.lp-ticks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; } .lp-ticks li { display: flex; gap: 10px; align-items: center; font-weight: 500; }
.lp-ticks .i { width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--pos-bg); color: var(--pos); stroke-width: 3; flex: none; }
.ill { background: linear-gradient(180deg, var(--surface-2), var(--surface)); border: 1px solid var(--line); border-radius: 18px; padding: 18px; box-shadow: 0 30px 60px -30px rgba(11, 42, 48, .35); }
.ill-h { display: flex; align-items: center; gap: 8px; font-weight: 700; padding-bottom: 12px; border-bottom: 1px solid var(--line-2); margin-bottom: 6px; } .ill-h .i { width: 18px; height: 18px; color: var(--brand); }
.ill-row { display: flex; align-items: center; gap: 12px; padding: 12px 4px; border-bottom: 1px solid var(--line-2); }
.ill-ic { width: 34px; height: 34px; border-radius: 10px; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; flex: none; } .ill-ic .i { width: 17px; height: 17px; }
.ill-row > div { flex: 1; min-width: 0; } .ill-row b, .ill-user b { display: block; font-size: 14.5px; } .ill-row small, .ill-user small { color: var(--text-3); font-size: 12.5px; }
.ill .mk { font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text-2); }
.ill-st { font-size: 11.5px; font-weight: 650; padding: 3px 9px; border-radius: 10px; white-space: nowrap; } .ill-st.ok { background: var(--pos-bg); color: var(--pos); } .ill-st.next { background: var(--warn-bg); color: var(--warn); }
.ill-foot { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding: 11px 14px; border-radius: 10px; background: var(--brand-50); color: var(--brand); font-size: 13.5px; font-weight: 600; } .ill-foot .i { width: 16px; height: 16px; }
.ill-user { display: flex; align-items: center; gap: 12px; padding: 12px 4px 14px; } .ill-user > div { flex: 1; min-width: 0; }
.ill-tg { display: flex; align-items: center; justify-content: space-between; padding: 12px 4px; border-top: 1px solid var(--line-2); font-size: 14.5px; }
.ill-tg i { width: 40px; height: 22px; border-radius: 11px; background: var(--line); position: relative; flex: none; transition: background .2s; } .ill-tg i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .2s; } .ill-tg i.on { background: var(--brand); } .ill-tg i.on::after { transform: translateX(18px); }
.lp-how { background: var(--bg); }
.lp-steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; counter-reset: s; position: relative; }
.lp-step { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px 26px; position: relative; }
.lp-step .n { width: 42px; height: 42px; border-radius: 50%; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 750; font-size: 18px; margin-bottom: 16px; box-shadow: 0 0 0 6px var(--brand-50); }
.lp-step h3 { font-size: 18px; margin-bottom: 8px; letter-spacing: -.01em; } .lp-step p { color: var(--text-2); font-size: 14.5px; line-height: 1.6; }
.lp-center { text-align: center; margin-top: 40px; } .lp-how .lp-btn.primary { color: var(--on-amber); }
.lp-aud { background: var(--surface); } .lp-aud-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; } .lp-aud .lp-card { background: var(--surface-2); }
.lp-sec-dark { background: linear-gradient(180deg, var(--ink-2), var(--ink)); color: #dbe9eb; position: relative; overflow: hidden; }
.lp-sec-dark .lp-head h2 { color: #fff; } .lp-sec-dark .lp-head p { color: #9bb7bb; } .lp-sec-dark .lp-eye { color: var(--amber); }
.lp-sec-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.lp-sec-it { background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; padding: 24px; } .lp-sec-it .lp-ic { background: rgba(255, 255, 255, .08); color: var(--amber); }
.lp-sec-it h3 { font-size: 16px; margin: 16px 0 8px; color: #fff; } .lp-sec-it p { font-size: 14px; color: #9bb7bb; line-height: 1.6; }
.lp-faq-list { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.lp-q { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; transition: border-color .2s, box-shadow .2s; } .lp-q[open] { border-color: color-mix(in srgb, var(--brand) 45%, var(--line)); box-shadow: 0 10px 24px -14px rgba(11, 42, 48, .3); }
.lp-q summary { list-style: none; cursor: pointer; padding: 18px 20px; font-weight: 650; font-size: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; } .lp-q summary::-webkit-details-marker { display: none; }
.lp-q summary .i { width: 20px; height: 20px; color: var(--text-3); transition: transform .2s; flex: none; } .lp-q[open] summary .i { transform: rotate(90deg); color: var(--brand); }
.lp-q p { padding: 0 20px 20px; color: var(--text-2); line-height: 1.65; }
.lp-final { position: relative; overflow: hidden; isolation: isolate; text-align: center; padding: clamp(64px, 9vw, 110px) 0; background: radial-gradient(800px 420px at 50% 0%, color-mix(in srgb, var(--brand) 60%, var(--ink)), transparent 70%), var(--ink); color: #fff; }
.lp-final h2 { color: #fff; max-width: 20ch; margin: 0 auto; } .lp-final p { margin: 14px auto 0; color: #adc5c9; font-size: 18px; max-width: 46ch; }
.lp-foot { background: var(--ink); color: #9bb7bb; border-top: 1px solid rgba(255, 255, 255, .08); padding: 28px 0; font-size: 13.5px; }
.lp-foot-in { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; } .lp-foot a:not(.brand) { color: #d7e6e8; } .lp-foot .faint { color: #7d9ea3; }
.rv-on .rv { opacity: 0; transform: translateY(22px); transition: opacity .6s cubic-bezier(.2, .7, .2, 1), transform .6s cubic-bezier(.2, .7, .2, 1); transition-delay: calc(var(--i, 0) * 90ms); } .rv-on .rv.in { opacity: 1; transform: none; }

/* selo de verificação */
.vbadge { display: inline-flex; vertical-align: -3px; margin-left: 5px; line-height: 0; flex: none; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .18)); } .vbadge.off { filter: grayscale(1); opacity: .35; margin-left: 0; }
.vbadge.gold { filter: drop-shadow(0 0 4px rgba(240, 180, 41, .55)); }
.avatar-wrap { position: relative; display: inline-flex; } .avatar-seal { position: absolute; right: -5px; bottom: -4px; line-height: 0; background: var(--surface); border-radius: 50%; padding: 1px; } .avatar-seal .vbadge { margin: 0; vertical-align: 0; }
.avatar.gold { background: linear-gradient(135deg, #f7d774, #c8921a); color: #3a2800; }
.who-name { font-weight: 600; display: flex; align-items: center; }
.eye-btn.on { color: var(--amber); }
.logo-img { display: block; object-fit: contain; border-radius: 7px; flex: none; }

/* aparência (modo desenvolvedor) */
.ap-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.ap-col { display: grid; gap: 18px; min-width: 0; } .ap-sticky { position: sticky; top: calc(var(--shellbar-h) + 16px); }
.ap-colors { display: grid; gap: 14px; }
.ap-color { display: grid; grid-template-columns: 52px minmax(0, 1fr) 118px auto; gap: 12px; align-items: center; }
.ap-color input[type=color] { width: 52px; height: 42px; padding: 3px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); cursor: pointer; }
.ap-color b { display: block; } .ap-color small { color: var(--text-3); }
.ap-img { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 14px; align-items: center; padding: 14px 0; border-top: 1px solid var(--line-2); } .ap-img:first-of-type { border-top: 0; padding-top: 0; }
.ap-thumb { width: 112px; height: 76px; border-radius: 10px; border: 1px dashed var(--line); background: repeating-conic-gradient(var(--line-2) 0 25%, transparent 0 50%) 0 0 / 14px 14px; display: grid; place-items: center; overflow: hidden; color: var(--text-3); } .ap-thumb img { width: 100%; height: 100%; object-fit: contain; }
.ap-prev { border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: var(--ink); color: #fff; }
.ap-prev .p-nav { display: flex; align-items: center; gap: 8px; padding: 12px 16px; font-weight: 700; } .ap-prev .p-body { padding: 18px 16px 22px; background: radial-gradient(500px 240px at 80% -20%, color-mix(in srgb, var(--brand) 55%, var(--ink)), transparent 70%), linear-gradient(180deg, var(--ink), var(--ink-2)); }
.ap-prev .p-pill { display: inline-block; font-size: 11px; padding: 4px 10px; border-radius: 12px; background: rgba(255, 255, 255, .09); margin-bottom: 10px; } .ap-prev h4 { font-size: 20px; line-height: 1.12; letter-spacing: -.025em; color: #fff; } .ap-prev p { margin-top: 8px; font-size: 12.5px; color: #adc5c9; }
.ap-prev .p-cta { display: inline-block; margin-top: 14px; padding: 9px 16px; border-radius: 8px; background: var(--amber); color: var(--on-amber); font-weight: 650; font-size: 13px; }
.ap-prev .p-feat { display: flex; gap: 8px; padding: 14px 16px; background: var(--bg); }
.ap-prev .p-feat span { flex: 1; height: 54px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); display: grid; place-items: center; color: var(--brand); } .ap-prev .p-feat .i { width: 20px; height: 20px; }
.ap-prev img { max-height: 90px; margin-top: 12px; border-radius: 8px; max-width: 100%; }

.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(320px, 5fr) minmax(0, 6fr); background: var(--surface); }
.auth-aside { background: var(--ink); color: #dbe9eb; padding: 36px 44px; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; position: relative; }
.auth-aside .brand { display: flex; gap: 10px; align-items: center; font-weight: 700; font-size: 18px; color: #fff; }
.auth-aside h2 { font-size: 26px; line-height: 1.15; letter-spacing: -.025em; color: #fff; max-width: 15ch; }
.auth-aside p { color: #9bb7bb; margin-top: 10px; max-width: 34ch; }
.auth-aside .dial-bg { position: absolute; right: -140px; bottom: -140px; width: 520px; opacity: .5; pointer-events: none; }
.auth-main { display: grid; place-items: center; padding: 32px 24px; }
.auth-card { width: min(420px, 100%); }
.auth-card h1 { font-size: 24px; letter-spacing: -.02em; }
.auth-card .lead { color: var(--text-2); margin: 6px 0 22px; }
.auth-card form { display: flex; flex-direction: column; gap: 14px; }
.auth-card .links { margin-top: 18px; font-size: 13.5px; color: var(--text-2); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.pw-meter { height: 4px; border-radius: 2px; background: var(--line-2); overflow: hidden; } .pw-meter span { display: block; height: 100%; width: 0; transition: width .2s, background .2s; }
.boot { min-height: 100vh; display: grid; place-items: center; background: var(--bg); }
.boot .ring { width: 34px; height: 34px; border: 3px solid var(--brand-100); border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; }

@media (max-width: 1100px) { .grid.c4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .grid.main-side { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .menu-btn { display: inline-flex; }
  .sidenav { transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-2); }
  body.nav-open .sidenav { transform: none; }
  .main { margin-left: 0; padding: 18px 16px 48px; }
  .imp-bar { left: 0; padding: 0 16px; }
  .lp-hero { padding: 108px 0 64px; } .lp-hero-in { grid-template-columns: 1fr; } .lp-hero-vis { max-width: 560px; margin: 0 auto; width: 100%; } .pv { transform: none; }
  .lp-links { display: none; } .lp-pain-grid, .lp-steps, .lp-aud-grid { grid-template-columns: 1fr; } .lp-feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lp-sec-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lp-row, .lp-row.rev { grid-template-columns: 1fr; } .lp-row.rev .lp-row-copy { order: 0; } .pv-float.f1 { left: -6px; } .pv-float.f2 { right: -6px; }
  .ap-grid { grid-template-columns: 1fr; } .ap-sticky { position: static; }
  .auth { grid-template-columns: 1fr; } .auth-aside { display: none; }
  .grid.c3, .grid.c2 { grid-template-columns: 1fr; }
  .shellbar .org { display: none; }
}
.grid > * { min-width: 0; }
@media (max-width: 560px) { .lp-feat-grid, .lp-sec-grid { grid-template-columns: 1fr; } .lp-cta .btn { width: 100%; justify-content: center; } .lp-nav .lp-btn.ghost { display: none; } .pv-kpi { font-size: 13px; padding: 9px; } .pv-float { font-size: 12px; } .ap-color { grid-template-columns: 52px minmax(0, 1fr); } .ap-color .ap-hex, .ap-color .btn { grid-column: 2; } .ap-img { grid-template-columns: 1fr; } .list-row { flex-wrap: wrap; } .page-h .row.wrap { width: 100%; } .grid.c4 { grid-template-columns: 1fr; } .form-grid { grid-template-columns: 1fr; } .toasts { left: 12px; right: 12px; } .toast { min-width: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }

/* =====================================================================
   Acabamento visual: profundidade, sombras em camadas, ícones coloridos
   ===================================================================== */
:root {
  --shadow-1: 0 1px 2px rgba(11, 42, 48, .06), 0 6px 16px -8px rgba(11, 42, 48, .12);
  --shadow-2: 0 2px 4px rgba(11, 42, 48, .06), 0 14px 30px -10px rgba(11, 42, 48, .22);
  --shadow-3: 0 4px 8px rgba(11, 42, 48, .08), 0 28px 60px -16px rgba(11, 42, 48, .38);
  --radius: 8px; --radius-lg: 14px;
  --hi: inset 0 1px 0 rgba(255, 255, 255, .75);
  --emoji: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", "Twemoji Mozilla", sans-serif;
}
:root[data-theme="dark"] {
  --shadow-1: 0 1px 2px rgba(0, 0, 0, .45), 0 8px 20px -10px rgba(0, 0, 0, .6);
  --shadow-2: 0 2px 4px rgba(0, 0, 0, .5), 0 16px 34px -10px rgba(0, 0, 0, .7);
  --shadow-3: 0 6px 12px rgba(0, 0, 0, .5), 0 30px 64px -16px rgba(0, 0, 0, .8);
  --hi: inset 0 1px 0 rgba(255, 255, 255, .06);
}
body { background: radial-gradient(900px 380px at 100% -40px, color-mix(in srgb, var(--brand) 9%, transparent), transparent 70%), radial-gradient(700px 320px at 0 100%, color-mix(in srgb, var(--amber) 6%, transparent), transparent 70%), var(--bg); background-attachment: fixed; }

/* blocos de ícone em degradê */
.tile { display: inline-grid; place-items: center; flex: none; color: #fff; background: linear-gradient(145deg, var(--t1), var(--t2) 55%, var(--t3)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), inset 0 -1px 0 rgba(0, 0, 0, .14), 0 5px 12px -3px var(--ts); }
.tile svg { stroke-width: 2.1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .22)); color: #fff !important; }
.empty-ic { display: grid; place-items: center; margin-bottom: 14px; } .empty-ic .tile { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .42), 0 14px 26px -8px var(--ts); animation: floaty 5s ease-in-out infinite; }
.empty .ill { display: none; }

/* emojis de categoria e de conta */
.cchip { display: inline-grid; place-items: center; flex: none; line-height: 1; font-family: var(--emoji); user-select: none;
  background: linear-gradient(145deg, color-mix(in srgb, var(--c) 28%, var(--surface)), color-mix(in srgb, var(--c) 9%, var(--surface)));
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--c) 34%, transparent), inset 0 1px 0 rgba(255, 255, 255, .5), 0 4px 10px -4px color-mix(in srgb, var(--c) 60%, transparent); }
:root[data-theme="dark"] .cchip { background: linear-gradient(145deg, color-mix(in srgb, var(--c) 38%, var(--surface)), color-mix(in srgb, var(--c) 14%, var(--surface))); }
.cchip.acct { background: linear-gradient(145deg, color-mix(in srgb, var(--c) 40%, #fff 10%), color-mix(in srgb, var(--c) 18%, var(--surface))); }
.cchip > * { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .18)); }
.cat-prev { display: flex; align-items: center; gap: 14px; padding: 14px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line-2); box-shadow: var(--hi); } .cat-prev small { display: block; color: var(--text-3); }
.emoji-pick { display: grid; gap: 10px; max-height: 280px; overflow-y: auto; padding: 4px 2px; }
.em-g small { display: block; font-size: 11.5px; font-weight: 600; color: var(--text-3); margin-bottom: 4px; letter-spacing: .02em; text-transform: uppercase; }
.em-row { display: grid; grid-template-columns: repeat(12, 1fr); gap: 4px; }
button.em { border: 1px solid transparent; background: transparent; border-radius: 10px; font: 20px/1 var(--emoji); height: 36px; cursor: pointer; transition: transform .12s, background .12s, box-shadow .12s; }
button.em:hover { background: var(--line-2); transform: translateY(-2px) scale(1.12); }
button.em[aria-pressed="true"] { background: var(--brand-50); border-color: var(--brand); box-shadow: 0 6px 14px -6px var(--brand); }
button.em.auto { font: 600 13px var(--font); height: 34px; padding: 0 12px; justify-self: start; border-color: var(--line); }

/* cartões e KPIs */
.card { border-radius: var(--radius-lg); box-shadow: var(--shadow-1), var(--hi); border-color: color-mix(in srgb, var(--line) 80%, transparent); transition: box-shadow .2s, transform .2s, border-color .2s; }
.card-h { padding: 15px 20px; } .card-b { padding: 20px; }
.kpi { padding: 18px 20px; } .kpi::before { inset: auto; left: auto; top: -46px; right: -34px; bottom: auto; width: 150px; height: 150px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--kc, var(--brand)) 22%, transparent), transparent 68%); pointer-events: none; }
.kpi:hover { transform: translateY(-3px); box-shadow: var(--shadow-2), var(--hi); }
.kpi .k-ic { position: absolute; top: 14px; right: 14px; } .kpi .k-l { padding-right: 46px; } .kpi .k-v { font-size: 26px; font-weight: 700; }
a.card:hover, .card.hover:hover { transform: translateY(-3px); box-shadow: var(--shadow-2), var(--hi); }

/* botões, campos */
.btn { border-radius: var(--radius); border-color: color-mix(in srgb, var(--line) 85%, #000 6%); background: linear-gradient(180deg, var(--surface), var(--surface-2)); box-shadow: 0 1px 2px rgba(11, 42, 48, .08), var(--hi); transition: background .12s, border-color .12s, box-shadow .15s, transform .12s; }
.btn:hover { box-shadow: 0 4px 10px -4px rgba(11, 42, 48, .22), var(--hi); transform: translateY(-1px); } .btn:active { transform: translateY(0); box-shadow: inset 0 2px 3px rgba(11, 42, 48, .12); }
.btn.primary { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 82%, #fff), var(--brand)); border-color: var(--brand-600); box-shadow: 0 1px 0 rgba(255, 255, 255, .28) inset, 0 6px 14px -5px var(--brand); }
.btn.primary:hover { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 74%, #fff), var(--brand-600)); box-shadow: 0 1px 0 rgba(255, 255, 255, .28) inset, 0 10px 20px -6px var(--brand); }
.btn.ghost, .btn.ghost:hover { background: transparent; box-shadow: none; } .btn.ghost:hover { background: var(--line-2); transform: none; }
.btn.danger.solid { background: linear-gradient(180deg, color-mix(in srgb, var(--neg) 82%, #fff), var(--neg)); box-shadow: 0 6px 14px -5px var(--neg); }
.shellbar .btn.ghost { box-shadow: none; }
.input, .select, .textarea { border-radius: var(--radius); box-shadow: inset 0 1px 2px rgba(11, 42, 48, .06); }
.seg { border-radius: 10px; box-shadow: inset 0 1px 3px rgba(11, 42, 48, .1); } .seg button[aria-pressed="true"] { box-shadow: var(--shadow-1), var(--hi); border-radius: 8px; }
.switch input:checked { background: linear-gradient(180deg, color-mix(in srgb, var(--brand) 80%, #fff), var(--brand)); } .switch::after { box-shadow: 0 2px 4px rgba(0, 0, 0, .3); }

/* tabelas, badges, progresso */
.table th { background: linear-gradient(180deg, var(--surface-2), var(--surface)); text-transform: uppercase; letter-spacing: .04em; font-size: 11.5px; color: var(--text-3); }
.table tbody tr { transition: background .12s; }
.badge { height: 22px; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 14%, transparent); }
.badge.dev { background: linear-gradient(135deg, #ffd978, var(--amber)); box-shadow: 0 4px 10px -4px var(--amber); }
.progress { height: 10px; border-radius: 6px; box-shadow: inset 0 1px 2px rgba(11, 42, 48, .12); } .progress > span { border-radius: 6px; background: linear-gradient(180deg, color-mix(in srgb, var(--bar, var(--brand)) 75%, #fff), var(--bar, var(--brand))); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4); }
.progress.warn > span { background: linear-gradient(180deg, #f6b84a, #d98f1c); } .progress.over > span { background: linear-gradient(180deg, color-mix(in srgb, var(--neg) 75%, #fff), var(--neg)); }
.alert { border-radius: 12px; box-shadow: inset 0 0 0 1px color-mix(in srgb, currentColor 16%, transparent); }
.avatar { background: linear-gradient(145deg, color-mix(in srgb, var(--brand) 70%, #fff), var(--brand-600)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .4), 0 4px 10px -3px var(--brand); }
.avatar.gold { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 4px 12px -2px #e0a82e; }
.list-row { transition: background .12s; } .list-row:hover { background: color-mix(in srgb, var(--brand-50) 45%, transparent); }

/* barra superior, menu lateral */
.shellbar { background: linear-gradient(180deg, color-mix(in srgb, var(--ink) 88%, #fff), var(--ink)); box-shadow: 0 1px 0 rgba(255, 255, 255, .06) inset, 0 6px 22px -8px rgba(0, 0, 0, .55); }
.sidenav { background: linear-gradient(180deg, var(--surface), var(--surface-2)); box-shadow: 6px 0 24px -16px rgba(11, 42, 48, .3); padding: 14px 10px 24px; }
.nav-group > .gl { text-transform: uppercase; letter-spacing: .08em; font-size: 10.5px; padding: 8px 12px 6px; }
.nav-item { border-radius: 12px; padding: 6px 10px; gap: 12px; transition: background .15s, transform .15s, box-shadow .15s; }
.nav-item:hover { background: var(--surface); box-shadow: var(--shadow-1); transform: translateX(2px); }
.nav-item .tile { transition: transform .2s; } .nav-item:hover .tile { transform: scale(1.08) rotate(-4deg); }
.nav-item.active { background: linear-gradient(90deg, color-mix(in srgb, var(--brand) 14%, var(--surface)), var(--surface)); box-shadow: var(--shadow-1), inset 0 0 0 1px color-mix(in srgb, var(--brand) 22%, transparent); font-weight: 600; }
.nav-item.active::before { left: -10px; top: 8px; bottom: 8px; width: 4px; box-shadow: 0 0 10px var(--brand); }
.nav-item svg { color: #fff; } .nav-item.active svg { color: #fff; }

/* janelas e avisos */
.modal-back { background: rgba(8, 24, 28, .5); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.modal { border-radius: 18px; box-shadow: var(--shadow-3); border: 1px solid color-mix(in srgb, var(--line) 70%, transparent); } .modal-f { border-radius: 0 0 18px 18px; }
.toast { border-radius: 12px; box-shadow: var(--shadow-3); backdrop-filter: blur(8px); }
.dropdown-panel { border-radius: 14px; box-shadow: var(--shadow-3); }

/* página inicial: ícones coloridos */
.lp-ic { color: #fff; background: linear-gradient(145deg, var(--t1, #5eead4), var(--t2, #14b8a6)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 20px -8px var(--t2, #14b8a6); } .lp-ic .i { stroke-width: 2.1; filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .2)); }
.lp-feat-grid > :nth-child(6n+1) .lp-ic, .lp-pain-grid > :nth-child(3n+1) .lp-ic, .lp-aud-grid > :nth-child(3n+1) .lp-ic, .lp-sec-grid > :nth-child(4n+1) .lp-ic { --t1: #7dd3fc; --t2: #3b82f6; }
.lp-feat-grid > :nth-child(6n+2) .lp-ic, .lp-pain-grid > :nth-child(3n+2) .lp-ic, .lp-aud-grid > :nth-child(3n+2) .lp-ic, .lp-sec-grid > :nth-child(4n+2) .lp-ic { --t1: #fcd34d; --t2: #f59e0b; }
.lp-feat-grid > :nth-child(6n+3) .lp-ic, .lp-pain-grid > :nth-child(3n+3) .lp-ic, .lp-aud-grid > :nth-child(3n+3) .lp-ic, .lp-sec-grid > :nth-child(4n+3) .lp-ic { --t1: #86efac; --t2: #16a34a; }
.lp-feat-grid > :nth-child(6n+4) .lp-ic, .lp-sec-grid > :nth-child(4n+4) .lp-ic { --t1: #f9a8d4; --t2: #ec4899; }
.lp-feat-grid > :nth-child(6n+5) .lp-ic { --t1: #c4b5fd; --t2: #8b5cf6; } .lp-feat-grid > :nth-child(6n+6) .lp-ic { --t1: #fdba74; --t2: #f97316; }
.lp-card { box-shadow: var(--shadow-1), var(--hi); border-radius: 18px; } .lp-card:hover { box-shadow: var(--shadow-3), var(--hi); }
.lp-step, .lp-q { box-shadow: var(--shadow-1), var(--hi); } .ill { box-shadow: var(--shadow-3); }
.lp-sec-it .lp-ic { box-shadow: inset 0 1px 0 rgba(255, 255, 255, .45), 0 10px 22px -8px var(--t2); }
.ill-ic { color: #fff; background: linear-gradient(145deg, #a78bfa, #7c3aed); box-shadow: 0 6px 12px -4px #7c3aed; } .ill-row:nth-child(3n+3) .ill-ic { background: linear-gradient(145deg, #fcd34d, #f59e0b); box-shadow: 0 6px 12px -4px #f59e0b; } .ill-row:nth-child(3n+4) .ill-ic { background: linear-gradient(145deg, #5eead4, #0d9488); box-shadow: 0 6px 12px -4px #0d9488; }
.ill-ic .i { stroke-width: 2.1; }
.ap-thumb, .ap-prev { box-shadow: var(--shadow-1); }
@media (max-width: 560px) { .em-row { grid-template-columns: repeat(6, 1fr); } .kpi .k-ic { top: 12px; right: 12px; } }
