:root {
  --ink: #172a2a; --muted: #6b7b7b; --line: #dce7e4; --soft: #f4f8f7;
  --card: #fff; --primary: #0f766e; --primary-dark: #115e59;
  --danger: #b42318; --shadow: 0 18px 55px #123b3214;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--soft); color: var(--ink); }
a { color: inherit; text-decoration: none; }
.public { min-height: 100vh; max-width: 1120px; margin: auto; padding: 25px 20px; }
.public-brand, .brand { display: flex; align-items: center; gap: 11px; }
.public-brand { font-size: 20px; }
.brand-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 13px; background: var(--primary); color: #fff; font-weight: 800; font-size: 23px; }
.auth { display: grid; place-items: center; min-height: calc(100vh - 85px); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 22px; box-shadow: var(--shadow); padding: 32px; width: min(100%, 440px); }
h1 { font-size: 28px; letter-spacing: -.04em; margin: 0 0 8px; }
h2 { font-size: 21px; margin: 0 0 7px; }
.muted { color: var(--muted); line-height: 1.55; margin: 0 0 24px; }
.stack { display: grid; gap: 16px; }
.field { display: grid; gap: 7px; border: 0; padding: 0; margin: 0; }
.field label { font-size: 13px; font-weight: 700; }
.field input, .field select { width: 100%; border: 1px solid var(--line); border-radius: 11px; padding: 13px 14px; font: inherit; background: #fff; color: var(--ink); }
.field input:focus { outline: 3px solid #0f766e24; border-color: var(--primary); }
.btn { border: 0; border-radius: 11px; padding: 13px 17px; background: var(--primary); color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-align: center; }
.btn:hover { background: var(--primary-dark); }
.btn.secondary { background: #e8f0ee; color: var(--ink); }
.link { color: var(--primary); font-weight: 700; }
.hint { text-align: center; color: var(--muted); font-size: 13px; }
.alert { padding: 13px 15px; border-radius: 11px; margin: 0 0 16px; font-size: 14px; }
.alert.success { background: #dcfce7; color: #166534; }
.alert.error { background: #fee2e2; color: #991b1b; }
.alert.warning { background: #fef3c7; color: #92400e; }
.shell { display: flex; min-height: 100vh; }
.sidebar { width: 245px; background: #fff; border-right: 1px solid var(--line); padding: 25px 16px; display: flex; flex-direction: column; gap: 35px; }
.brand small { display: block; color: var(--muted); font-size: 11px; margin-top: 2px; }
.sidebar nav { display: grid; gap: 5px; }
.sidebar nav a, .logout { padding: 12px; border-radius: 10px; color: var(--muted); font-size: 14px; }
.sidebar nav a:first-child, .sidebar nav a:hover { background: #e8f5f1; color: var(--primary); font-weight: 700; }
.logout { margin-top: auto; }
.main { flex: 1; }
.top { height: 73px; background: #fff; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 15px; padding: 0 35px; font-weight: 750; }
.menu { display: none; background: none; border: 0; font-size: 20px; }
.user-name { margin-left: auto; color: var(--muted); font-weight: 500; font-size: 14px; }
.page { max-width: 1120px; margin: auto; padding: 34px; }
.welcome { display: flex; justify-content: space-between; align-items: end; margin-bottom: 25px; }
.welcome h1 { font-size: 32px; }
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 15px; }
.metric { background: #fff; border: 1px solid var(--line); border-radius: 17px; padding: 20px; }
.metric small { color: var(--muted); display: block; margin-bottom: 12px; }
.metric strong { font-size: 22px; }
.metric.primary { background: var(--primary); color: #fff; border-color: var(--primary); }
.metric.primary small { color: #c7eeea; }
.empty { background: #fff; border: 1px dashed #b5ceca; border-radius: 17px; padding: 35px; text-align: center; margin-top: 18px; }
.empty p { color: var(--muted); }
.bottom { display: none; }
.two-col { display: grid; grid-template-columns: minmax(260px, 380px) 1fr; gap: 18px; }
.two-col .card { width: auto; }
.list { display: grid; gap: 8px; }
.list-row { display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 12px 0; }
.list-row small { color: var(--muted); }
.form-card { max-width: 700px; width: 100%; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.actions { display: flex; justify-content: flex-end; gap: 10px; }
.filters, .table-card { width: 100%; padding: 18px; margin-bottom: 18px; }
.filter-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr auto; gap: 10px; }
.filter-grid input, .filter-grid select { border: 1px solid var(--line); border-radius: 10px; padding: 11px; font: inherit; color: var(--ink); min-width: 0; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: 14px; min-width: 760px; }
th, td { text-align: left; padding: 14px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: 12px; text-transform: uppercase; letter-spacing: .05em; }
td small { display: block; color: var(--muted); margin-top: 3px; }
.tag { display: inline-block; padding: 5px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; }
.tag.income, .amount.income { color: #18794e; }
.tag.income { background: #dcfce7; }
.tag.expense { color: #b42318; background: #fee2e2; }
.amount { font-weight: 750; white-space: nowrap; }
.row-actions { display: flex; gap: 8px; align-items: center; }
.row-actions a { color: var(--primary); font-weight: 700; }
.row-actions form { margin: 0; }
.row-actions button { background: none; border: 0; padding: 0; color: var(--danger); font: inherit; cursor: pointer; }
.center { text-align: center; }
.card-item { padding: 4px 0 16px; border-bottom: 1px solid var(--line); }
.card-item small { color: var(--muted); }
.card-values { display: flex; gap: 24px; color: var(--muted); font-size: 12px; }
.card-values strong { color: var(--ink); font-size: 14px; }
.link-button { border: 0; background: none; color: var(--primary); cursor: pointer; font: inherit; font-size: 12px; padding: 5px 0 0; }
.status-ok { color: #18794e !important; display: block; padding-top: 5px; }
.goal-item { padding: 4px 0 17px; border-bottom: 1px solid var(--line); }
.progress { height: 9px; border-radius: 99px; background: #e5efed; overflow: hidden; margin: 10px 0 7px; }
.progress span { display: block; height: 100%; background: var(--primary); border-radius: inherit; }
.goal-item > small { color: var(--muted); }
.goal-add { display: flex; gap: 8px; margin-top: 10px; }
.goal-add input { min-width: 0; width: 150px; border: 1px solid var(--line); border-radius: 8px; padding: 7px; }
.spend-result { width: 100%; max-width: none; margin-top: 18px; }
.spend-result.safe { border-color: #86efac; background: #f0fdf4; }
.spend-result.caution { border-color: #fcd34d; background: #fffbeb; }
.spend-breakdown { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-top: 18px; }
.spend-breakdown span { color: var(--muted); font-size: 12px; background: #fff9; padding: 11px; border-radius: 10px; }
.spend-breakdown strong { display: block; color: var(--ink); font-size: 14px; margin-top: 4px; }
.plan-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 18px; }
.plan-card { width: auto; }
.plan-price { font-size: 25px; font-weight: 800; margin: 15px 0; }
.plan-price small { font-size: 12px; color: var(--muted); font-weight: 500; }
.admin-input { width: 120px; border: 1px solid var(--line); border-radius: 8px; padding: 8px; font: inherit; }
.ai-result { width: 100%; max-width: none; margin-bottom: 18px; }
.ai-fields { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin: 18px 0; }
.ai-fields div { background: var(--soft); border-radius: 11px; padding: 12px; }
.ai-fields small, .ai-fields strong { display: block; }
.ai-fields small { color: var(--muted); margin-bottom: 5px; }
@media (max-width: 760px) {
  .sidebar { position: fixed; z-index: 3; inset: 0 auto 0 0; width: 245px; transform: translateX(-100%); transition: .2s; }
  .sidebar.open { transform: none; }
  .top { padding: 0 18px; }
  .menu { display: block; }
  .page { padding: 22px 16px; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .metric { padding: 15px; }
  .metric strong { font-size: 18px; }
  .welcome { display: block; }
  .welcome h1 { font-size: 27px; }
  .bottom { display: flex; position: fixed; bottom: 0; left: 0; right: 0; background: #fff; border-top: 1px solid var(--line); height: 65px; z-index: 2; justify-content: space-around; align-items: center; }
  .bottom a { font-size: 11px; color: var(--muted); }
  .bottom .add { background: var(--primary); color: #fff; border-radius: 50%; font-size: 25px; width: 47px; height: 47px; display: grid; place-items: center; margin-top: -22px; }
  .main { padding-bottom: 65px; }
  .card { padding: 25px 20px; }
  .two-col, .form-grid { grid-template-columns: 1fr; }
  .ai-fields { grid-template-columns: 1fr 1fr; }
  .spend-breakdown { grid-template-columns: 1fr 1fr; }
  .plan-grid { grid-template-columns: 1fr; }
  .filter-grid { grid-template-columns: 1fr 1fr; }
  .filter-grid input:first-child, .filter-grid .btn { grid-column: 1 / -1; }
}

.demo-banner{position:sticky;top:0;z-index:40;background:#fef3c7;color:#92400e;border:1px solid #fcd34d;border-radius:12px;padding:10px 16px;font-size:14px;text-align:center;margin-bottom:16px}

/* Página inicial de vendas */
.hero { text-align: center; padding: 60px 0 30px; }
.hero-kicker { color: var(--primary); font-weight: 700; text-transform: uppercase; letter-spacing: .06em; font-size: 13px; margin: 0 0 6px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); max-width: 760px; margin: 12px auto; line-height: 1.12; }
.hero-sub { max-width: 620px; margin: 0 auto 26px; color: var(--muted); font-size: 17px; }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-actions .btn { display: inline-block; }
.hero-demo { margin-top: 14px; }
.features, .plans { margin-top: 46px; }
.features h2, .plans h2 { text-align: center; margin: 0 0 6px; }
.plans > .muted { text-align: center; max-width: 560px; margin: 0 auto; }
.feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.feature { width: auto; padding: 22px; }
.feature h3 { margin: 0 0 8px; font-size: 17px; }
.plans .plan-grid { max-width: 760px; margin-left: auto; margin-right: auto; }
.plans .plan-card { text-align: center; }
.plans .plan-card .btn { display: inline-block; margin-top: 12px; }
.plan-price-pending { color: var(--muted); font-size: 20px; }
.landing-footer { text-align: center; padding: 44px 0 20px; font-size: 14px; }
@media (max-width: 760px) {
  .hero { padding: 34px 0 20px; }
  .feature-grid { grid-template-columns: 1fr; }
}
