/* Finhand · painel escuro com destaque ciano; números em Sora, texto em Manrope */
:root {
  --bg: #070B14;
  --surface: #0E1524;
  --inset: #070B14;
  --line: #1F2A40;
  --line-soft: #172033;
  --text: #E8EEF7;
  --muted: #8FA0B8;
  --soft: #B6C3D6;
  --accent: #22D3EE;
  --accent-ink: #04212A;
  --accent-bg: #0B2430;
  --accent-line: #155E75;
  --good: #34D399;
  --out: #FB923C;
  --warn-text: #FDBA74;
  --warn-bg: #1F1408;
  --warn-line: #5B3A16;
  --display: Sora, system-ui, sans-serif;
  --body: Manrope, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.45;
}
h1, h2, h3, p { margin: 0; }
h2 { font-family: var(--display); font-weight: 600; font-size: 17px; text-wrap: balance; }
h3 { font-family: var(--display); font-weight: 600; font-size: 15px; }
a { color: var(--accent); }
button, input, select { font-family: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid #67E8F9; outline-offset: 2px; }
img { max-width: 100%; }

.boot { padding: 48px 20px; text-align: center; color: var(--muted); }
.wrap { max-width: 1320px; margin: 0 auto; padding: 24px 20px 56px; display: flex; flex-direction: column; gap: 20px; }
.row { display: flex; flex-wrap: wrap; gap: 20px; align-items: flex-start; }
.row > .grow { flex: 999 1 520px; min-width: 0; }
.row > .side { flex: 1 1 340px; min-width: 0; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.between { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; }
.inline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.good { color: var(--good); }
.accent-text { color: #67E8F9; }
.out { color: var(--out); }
.right { text-align: right; }

/* cabeçalho e navegação */
.top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; flex-direction: column; }
.brand b { font-family: var(--display); font-weight: 700; font-size: 20px; letter-spacing: -0.01em; line-height: 1.2; }
.who { display: flex; flex-direction: column; align-items: flex-end; }
.who b { font-size: 14px; }
.nav { display: flex; flex-wrap: wrap; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 4px; align-self: flex-start; }
.nav button { min-height: 44px; padding: 0 16px; border: 0; border-radius: 10px; background: transparent; color: var(--soft); font-size: 14px; font-weight: 700; }
.nav button.on { background: var(--accent); color: var(--accent-ink); }
.nav.seg { align-self: center; border-radius: 12px; }
.nav.seg button { min-height: 36px; padding: 0 12px; font-size: 13px; border-radius: 9px; }

/* cartões e blocos */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 22px; display: flex; flex-direction: column; gap: 14px; min-width: 0; }
.tile { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.tile b { font-family: var(--display); font-weight: 600; font-size: 22px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.big { font-family: var(--display); font-weight: 700; font-size: 40px; letter-spacing: -0.02em; line-height: 1.1; }
.bar { display: block; height: 8px; border-radius: 999px; background: #1A2438; overflow: hidden; }
.bar > i { display: block; height: 100%; border-radius: 999px; background: var(--accent); }
.stackbar { display: flex; gap: 2px; height: 14px; border-radius: 999px; overflow: hidden; }
.stackbar > i { display: block; height: 100%; }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 3px; flex: 0 0 auto; }
.badge { width: 36px; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; font-family: var(--display); font-weight: 700; font-size: 13px; color: #070B14; }
.pill { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; border: 1px solid #263450; background: #172033; color: var(--text); white-space: nowrap; }
.pill.ok { color: #6EE7B7; background: #0A1F18; border-color: #14532D; }
.pill.warn { color: var(--warn-text); background: var(--warn-bg); border-color: var(--warn-line); }
.pill.accent { color: #67E8F9; background: var(--accent-bg); border-color: var(--accent-line); }

/* botões */
.btn { min-height: 44px; padding: 0 16px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 700; }
.btn.primary { border: 0; background: var(--accent); color: var(--accent-ink); min-height: 48px; }
.btn.danger { border-color: var(--warn-line); background: var(--warn-bg); color: var(--warn-text); }
.btn.sm { min-height: 40px; padding: 0 12px; font-size: 13px; border-radius: 10px; background: var(--inset); }
.btn.sm.danger { background: var(--warn-bg); }
.pick { text-align: left; color: var(--text); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pick.on { border-color: var(--accent); background: var(--accent-bg); }

/* formulários */
form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.field { display: flex; flex-direction: column; gap: 6px; flex: 1 1 160px; min-width: 0; }
.field > span, .field > label { font-size: 13px; font-weight: 600; color: var(--soft); }
.fields { display: flex; flex-wrap: wrap; gap: 12px; }
input[type="text"], input[type="email"], input[type="password"], input[type="number"], input[type="date"], input[type="month"], input[type="file"], select {
  width: 100%; min-height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid #33425F;
  background: var(--inset); color: var(--text); font-size: 15px;
}
input[type="file"] { padding: 10px 12px; font-size: 13px; color: var(--soft); }
select.compact { min-height: 40px; width: auto; max-width: 220px; font-size: 13px; padding: 0 10px; border-radius: 10px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14px; }
.check input { width: 20px; height: 20px; accent-color: var(--accent); }

/* listas */
.list { display: flex; flex-direction: column; }
.item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 12px; padding: 12px 0; border-top: 1px solid var(--line-soft); }
.item .main { display: flex; align-items: center; gap: 12px; min-width: 0; flex: 1 1 240px; }
.txt { display: flex; flex-direction: column; min-width: 0; text-align: left; }
.txt b { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.item .amt { min-width: 120px; text-align: right; font-weight: 700; font-size: 14px; }
.empty { padding: 20px 0; border-top: 1px solid var(--line-soft); color: var(--muted); font-size: 14px; }
.scroll { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 13px; }
th, td { text-align: left; padding: 8px 10px; border-top: 1px solid var(--line-soft); white-space: nowrap; }
th { color: var(--muted); font-weight: 600; border-top: 0; }

/* avisos */
.note { background: #0B1A22; border: 1px solid var(--accent-line); border-radius: 14px; padding: 12px 16px; font-size: 14px; color: #CFE9F2; }
.alert { background: var(--warn-bg); border: 1px solid var(--warn-line); border-radius: 12px; padding: 10px 14px; font-size: 14px; color: var(--warn-text); }
.toast { position: sticky; top: 12px; z-index: 5; display: flex; align-items: center; justify-content: space-between; gap: 12px; }

/* login */
.auth { max-width: 420px; margin: 56px auto 0; padding: 0 20px 48px; display: flex; flex-direction: column; gap: 20px; }
.auth h1 { font-family: var(--display); font-weight: 700; font-size: 28px; letter-spacing: -0.02em; }

/* imóveis */
.photo { display: block; width: 100%; height: 150px; object-fit: cover; border-radius: 12px; }
.nophoto { display: flex; align-items: center; justify-content: center; height: 150px; border-radius: 12px; border: 1px dashed #33425F; background: var(--inset); color: var(--muted); font-size: 13px; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.fact { background: var(--inset); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; }
.fact b { font-weight: 700; }

/* gráfico */
.chart { display: flex; gap: 12px; align-items: stretch; }
.chart svg { display: block; width: 100%; height: 200px; }
.chart .axis { display: flex; flex-direction: column; justify-content: space-between; font-size: 12px; color: var(--muted); text-align: right; white-space: nowrap; }

@media (prefers-reduced-motion: no-preference) {
  .btn, .pick, .nav button { transition: background-color 120ms ease, border-color 120ms ease; }
}
@media (max-width: 520px) {
  .big { font-size: 30px; }
  .item .amt { min-width: 0; }
}

/* bancos internacionais: azul de destaque */
:root { --intl: #60A5FA; --intl-bg: #0B1A33; --intl-line: #1D4ED8; }
.pill.intl { color: #93C5FD; background: var(--intl-bg); border-color: var(--intl-line); }
.pick.intl { border-color: var(--intl-line); background: linear-gradient(180deg, #0B1A33, var(--surface)); box-shadow: inset 3px 0 0 var(--intl); }
.pick.intl.on { border-color: var(--intl); }
.item.intl { box-shadow: inset 3px 0 0 var(--intl); padding-left: 12px; background: linear-gradient(90deg, #0B1A33, transparent 60%); }
.intl-card { border-color: var(--intl-line); }
.intl-card h2 { color: #93C5FD; }
.item .txt .pill { margin: 2px 0; align-self: flex-start; }
.pick.intl.on { background: #0F2447; }

/* abertura: globo de partículas */
.intro { position: relative; min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; background: radial-gradient(ellipse at 50% 38%, #0B1D33 0%, var(--bg) 62%); overflow: hidden; }
.intro canvas { flex: 1 1 auto; width: 100%; min-height: 360px; display: block; cursor: grab; touch-action: pan-y; }
.intro canvas:active { cursor: grabbing; }
.intro-copy { flex: 0 0 auto; text-align: center; padding: 8px 20px 36px; display: flex; flex-direction: column; gap: 6px; align-items: center; }
.intro-copy h1 { margin: 0; font-family: var(--display); font-size: 34px; letter-spacing: -0.02em; }
.intro-copy p { margin: 0; }
.intro-copy .hint { color: #67E8F9; margin: 6px 0 4px; }
@keyframes fh-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.auth { animation: fh-in 420ms ease both; }
@media (prefers-reduced-motion: reduce) { .auth { animation: none; } }
