:root {
  --clr-btn-back: #0a500a;
  --clr-btn-text: white;
  --clr-app-text: gainsboro;
  --clr-app-menu: yellow;
  --clr-app-spot: lime;
  --clr-app-mark: #ff6600;
  --clr-app-back: black;
  --clr-app-card: #040304;
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--clr-app-text);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--clr-app-back);
}

p, label {
  color: var(--clr-app-text);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--clr-app-text);
}

.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 240px;
  padding: 32px 24px;
  overflow-y: auto;
  background: #090d0a;
  color: #dce8df;
  border-right: 1px solid #1b261e;
}

.brand {
  display: flex;
  align-items: center;
  color: #fff;
  text-decoration: none;
}

.brand img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.sidebar-brand {
  width: 100%;
  max-width: 192px;
}
nav {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}
nav a, nav span {
  padding: 10px;
  border-radius: 10px;
  color: var(--clr-app-menu);
  text-decoration: none;
}
nav .active {
  background: #003a00;
  color: var(--clr-app-spot);
  box-shadow: inset 3px 0 0 var(--clr-app-spot);
}

main {
  margin-left: 240px;
  padding: 56px clamp(28px, 6vw, 88px);
}
.page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}
.eyebrow, .label {
  margin: 0 0 8px;
  color: var(--clr-app-text);
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}
h1 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.2rem);
  letter-spacing: -.045em;
}
h2 {
  margin: 6px 0 12px;
  font-size: 1.35rem;
}
.subtitle, .card p {
  color: var(--clr-app-text);
  line-height: 1.6;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 999px;
  font-size: .85rem;
  font-weight: 700;
  background: #121814;
  box-shadow: 0 8px 30px #0008;
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
}
.success {
  color: var(--clr-app-spot);
}
.warning {
  color: #e3ad62;
}
.grid {
  display: grid;
  grid-template-columns: 1.45fr 1fr;
  gap: 22px;
}
.card {
  padding: 28px;
  border: 1px solid #202a23;
  border-radius: 20px;
  background: var(--clr-app-card);
  box-shadow: 0 16px 45px #0008;
}
.hero-card {
  background: linear-gradient(145deg, #102218, #0b100d);
}
.command {
  display: inline-block;
  margin-top: 8px;
  padding: 10px 14px;
  border-radius: 9px;
  background: #050806;
  color: #bde9c9;
  border: 1px solid #26382b;
  font-family: ui-monospace, monospace;
  font-size: .86rem;
}
dl {
  margin: 0;
}
dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 13px 0;
  border-bottom: 1px solid #202a23;
}
dl div:last-child {
  border: 0;
}
dt {
  color: #8d9b92;
}
dd {
  margin: 0;
  font-weight: 700;
  text-align: right;
}
.ok {
  color: var(--clr-app-spot);
}
.modules {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-top: 22px;
}
.module-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}
.module-list span {
  padding: 9px 12px;
  border-radius: 9px;
  background: #151d18;
  color: #a8c5b1;
  font-size: .86rem;
  font-weight: 650;
}
.empty-state {
  max-width: 580px;
  padding-top: 12vh;
}
.empty-state a {
  color: var(--clr-app-spot);
  font-weight: 700;
}

.sidebar {
  display: flex;
  flex-direction: column;
}
.sidebar-user {
  margin-top: auto;
  padding-top: 24px;
  border-top: 1px solid #233b2c;
}
.user-name {
  margin: 0;
  color: var(--clr-app-text);
  font-weight: 700;
}
.user-email {
  margin: 2px 0 12px;
  color: var(--clr-app-text);
  font-size: .82rem;
  word-break: break-all;
}
.sidebar-user button {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--clr-btn-back);
  border-radius: 10px;
  background: var(--clr-btn-back);
  color: var(--clr-btn-text);
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.sidebar-user button:hover {
  background: color-mix(in srgb, var(--clr-btn-back) 86%, clr-btn-text);
  color: var(--clr-btn-text);
}

.auth-body {
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 24px;
  background: radial-gradient(circle at top, #13261a 0, #070a08 45%, #030403 100%);
}
.auth-shell {
  display: grid;
  gap: 24px;
  width: 100%;
  max-width: 400px;
  margin: 0;
  padding: 0;
}
.auth-shell .brand {
  justify-self: center;
}
.auth-shell .brand-logo {
  width: min(320px, 84vw);
}
.auth-form {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}
.auth-form label {
  display: grid;
  gap: 6px;
}
.auth-form label span {
  color: var(--clr-app-text);
  font-size: .85rem;
  font-weight: 650;
}
.auth-form input {
  padding: 12px 14px;
  border: 1px solid #303b33;
  border-radius: 10px;
  background: #080c09;
  color: #edf5ef;
  font: inherit;
}
.auth-form input:focus {
  outline: none;
  border-color: var(--clr-app-spot);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--clr-app-spot) 28%, transparent);
}
.auth-form button {
  margin-top: 4px;
  padding: 13px;
  border: 0;
  border-radius: 10px;
  background: var(--clr-btn-back);
  color: var(--clr-btn-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.auth-form button:hover {
  background: color-mix(in srgb, var(--clr-btn-back) 86%, var(--clr-btn-text));
}
.auth-form .password-field {
  position: relative;
  width: 100%;
}
.auth-form .password-field input {
  display: block;
  width: 100%;
  padding-right: 52px;
}
.auth-form .password-field .password-toggle {
  position: absolute;
  top: 50%;
  right: 8px;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #a8b9ad;
  transform: translateY(-50%);
  appearance: none;
}
.auth-form .password-field .password-toggle:hover {
  background: #ffffff0d;
  color: var(--clr-btn-text);
}
.auth-form .password-field .password-toggle:focus-visible {
  outline: 2px solid var(--clr-btn-text);
  outline-offset: 1px;
}
.password-toggle svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.password-toggle .icon-eye-off,
.password-toggle[aria-pressed="true"] .icon-eye {
  display: none;
}
.password-toggle[aria-pressed="true"] .icon-eye-off {
  display: block;
}
.auth-alt {
  margin: 18px 0 0;
  text-align: center;
  color: #8fa496;
  font-size: .9rem;
}
.auth-alt a {
  color: #80dda0;
  font-weight: 700;
  text-decoration: none;
}
.auth-alt a:hover {
  text-decoration: underline;
}

.alert {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: .9rem;
}
.alert.error {
  background: #2b1211;
  color: #ff9b91;
  border: 1px solid #61302c;
}
.alert.success {
  background: #102b18;
  color: #80dda0;
  border: 1px solid #285b38;
}
.alert.warning {
  background: #2c240d;
  color: #f5d66f;
  border: 1px solid #66551f;
}

.markdown-body {
  max-width: 980px;
  line-height: 1.7;
}
.markdown-body h1 {
  display: none;
}
.markdown-body h2 {
  margin: 34px 0 14px;
  color: #edf5ef;
  font-size: 1.25rem;
}
.markdown-body h2:first-child {
  margin-top: 0;
}
.markdown-body p {
  max-width: 78ch;
  color: #aebbb2;
}
.markdown-body ul {
  display: grid;
  gap: 12px;
  margin: 16px 0 28px;
  padding-left: 22px;
}
.markdown-body .task-list {
  padding: 0;
  list-style: none;
}
.markdown-body .task-item {
  display: grid;
  grid-template-columns: 20px 1fr;
  align-items: start;
  gap: 10px;
  padding: 13px 15px;
  border: 1px solid #26332a;
  border-radius: 10px;
  background: #101612;
  color: #d9e3dc;
}
.markdown-body input[type="checkbox"] {
  width: 17px;
  height: 17px;
  margin: 4px 0 0;
  accent-color: var(--clr-app-spot);
}
.markdown-body input[type="checkbox"]:checked {
  appearance: none;
  border-radius: 50%;
  background-color: #176b3a;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m4 8 2.5 2.5L12 5'/%3E%3C/svg%3E");
  background-position: center;
  background-repeat: no-repeat;
  opacity: 1;
}
.markdown-body code {
  padding: 2px 6px;
  border-radius: 5px;
  background: #1b241e;
  color: #b7e6c5;
  font-size: .9em;
}

button:disabled {
  cursor: wait;
  opacity: .7;
}

.page-header .eyebrow a {
  color: inherit;
  text-decoration: none;
}
.page-header .eyebrow a:hover {
  color: var(--clr-btn-text);
}

.inline-form, .user-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 14px;
}
.inline-form input, .user-form input, .user-form select {
  flex: 1 1 180px;
  padding: 11px 13px;
  border: 1px solid #303b33;
  border-radius: 10px;
  background: #080c09;
  color: #edf5ef;
  font: inherit;
}
.inline-form input:focus, .user-form input:focus, .user-form select:focus {
  outline: none;
  border-color: var(--clr-app-spot);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--clr-app-spot) 28%, transparent);
}
.inline-form button, .user-form button {
  flex: 0 0 auto;
  padding: 11px 20px;
  border: 0;
  border-radius: 10px;
  background: var(--clr-btn-back);
  color: var(--clr-btn-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.inline-form button:hover, .user-form button:hover {
  background: color-mix(in srgb, var(--clr-btn-back) 86%, clr-btn-text);
}
.user-form label.checkbox {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #c8d3cb;
}
.user-form label.checkbox input {
  flex: 0 0 auto;
  width: auto;
  margin: 0;
}

.data-table {
  width: 100%;
  margin-top: 14px;
  border-collapse: collapse;
}
.data-table th, .data-table td {
  padding: 13px 12px;
  text-align: left;
  border-bottom: 1px solid #202a23;
}
.data-table th {
  color: #8d9b92;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.data-table tbody tr:last-child td {
  border-bottom: 0;
}
.row-action a {
  color: var(--clr-app-spot);
  font-weight: 700;
  text-decoration: none;
}
.row-action a:hover {
  text-decoration: underline;
}
.data-table .badge {
  padding: 5px 10px;
  font-size: .78rem;
  box-shadow: none;
  border: 1px solid #2a352d;
}
.row-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.row-actions form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.role-form {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
}
.reset-form input {
  width: 130px;
  padding: 7px 10px;
  border: 1px solid #303b33;
  border-radius: 8px;
  background: #080c09;
  color: #edf5ef;
  font: inherit;
  font-size: .85rem;
}
.reset-form input:focus {
  outline: none;
  border-color: var(--clr-app-spot);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--clr-app-spot) 28%, transparent);
}
.link-button {
  padding: 8px 12px;
  border: 0;
  border-radius: 8px;
  background: var(--clr-btn-back);
  color: var(--clr-btn-text);
  font: inherit;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
.link-button:hover {
  background: color-mix(in srgb, var(--clr-btn-back) 86%, clr-btn-text);
}
.amount-in {
  color: var(--clr-app-spot);
  font-weight: 700;
  clr-btn-text-space: nowrap;
}
.amount-out {
  color: #e3ad62;
  font-weight: 700;
  clr-btn-text-space: nowrap;
}
.muted {
  color: #77857c;
  font-weight: 400;
}
.cnpj-status {
  display: block;
  margin-top: 6px;
  font-size: .8rem;
  color: #77857c;
}
.cnpj-status:empty {
  display: none;
}
.cnpj-status.error {
  color: #c0392b;
}
.user-link {
  display: inline-block;
  margin-bottom: 12px;
  color: var(--clr-app-menu);
  font-size: .85rem;
  text-decoration: none;
}
.user-link:hover {
  color: #fff;
  text-decoration: underline;
}
.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-top: 18px;
  color: #9ba9a0;
  font-size: .9rem;
}
.pagination a {
  color: var(--clr-app-spot);
  font-weight: 700;
  text-decoration: none;
}
.pagination a:hover {
  text-decoration: underline;
}
.audit-values {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  max-width: 360px;
}
.audit-values code {
  padding: 3px 7px;
  border-radius: 6px;
  background: #151d18;
  color: #a8c5b1;
  font-size: .78rem;
  word-break: break-all;
}

input::placeholder {
  color: #647068;
}
select option {
  background: #0d120f;
  color: #edf5ef;
}

.marketing-body {
  min-height: 100vh;
  background:
    radial-gradient(circle at 78% 8%, #30401966 0, transparent 28rem),
    linear-gradient(180deg, #090c0a 0, #050706 100%);
}
.marketing-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 24px 0;
}
.marketing-brand {
  display: block;
  width: 174px;
}
.marketing-brand img {
  display: block;
  width: 100%;
  height: auto;
}
.marketing-nav {
  display: flex;
  align-items: center;
  gap: 20px;
  margin: 0;
}
.marketing-nav a {
  padding: 0;
}
.marketing-login {
  color: #eef5f0;
  font-weight: 700;
  text-decoration: none;
}
.marketing-main {
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 72px 0 40px;
}
.marketing-hero {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(420px, 1.1fr);
  align-items: center;
  gap: clamp(44px, 7vw, 92px);
  min-height: 560px;
}
.marketing-kicker {
  margin: 0 0 16px;
  color: #d8e96a;
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}
.marketing-copy h1 {
  max-width: 760px;
  margin: 0;
  color: #f5f8f6;
  font-size: clamp(2.7rem, 5vw, 4.8rem);
  line-height: 1.02;
  letter-spacing: -.055em;
}
.marketing-lead {
  max-width: 620px;
  margin: 28px 0 0;
  color: #afbab2;
  font-size: clamp(1.05rem, 1.7vw, 1.25rem);
  line-height: 1.7;
}
.marketing-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}
.marketing-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 23px;
  border: 1px solid #bad637;
  border-radius: 10px;
  background: #bad637;
  color: #101405;
  font-weight: 800;
  text-decoration: none;
  transition: transform .18s ease, background .18s ease;
}
.marketing-button:hover {
  background: #d0e959;
  transform: translateY(-2px);
}
.marketing-button-small {
  min-height: 40px;
  padding: 0 17px !important;
}
.marketing-button-secondary {
  border-color: #344038;
  background: #101612;
  color: #f2f6f3;
}
.marketing-button-secondary:hover {
  background: #1a221d;
}
.marketing-note {
  margin: 15px 0 0;
  color: #738078;
  font-size: .88rem;
}
.marketing-visual {
  margin: 0;
  padding: 10px;
  border: 1px solid #ffffff17;
  border-radius: 24px;
  background: #ffffff08;
  box-shadow: 0 30px 80px #000a, 0 0 70px #b6d5350c;
  transform: rotate(1deg);
}
.marketing-visual img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 16px;
}
.marketing-features {
  padding: 130px 0 90px;
}
.marketing-section-heading {
  max-width: 650px;
}
.marketing-section-heading h2,
.marketing-final-cta h2 {
  margin: 0;
  color: #f0f5f1;
  font-size: clamp(2rem, 4vw, 3.25rem);
  line-height: 1.12;
  letter-spacing: -.035em;
}
.marketing-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-top: 46px;
}
.marketing-feature {
  padding: 30px;
  border: 1px solid #222d25;
  border-radius: 18px;
  background: linear-gradient(145deg, #111713, #0b0f0c);
}
.marketing-feature-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #263315;
  color: #d8e96a;
  font-size: .75rem;
  font-weight: 800;
}
.marketing-feature h3 {
  margin: 26px 0 12px;
  color: #eff5f1;
  font-size: 1.15rem;
}
.marketing-feature p {
  margin: 0;
  color: #91a097;
  line-height: 1.65;
}
.marketing-final-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  margin: 50px 0 80px;
  padding: clamp(34px, 6vw, 64px);
  border: 1px solid #35411d;
  border-radius: 24px;
  background: linear-gradient(120deg, #151d10, #0b100c 70%);
}
.marketing-final-cta h2 {
  max-width: 700px;
}
.marketing-footer {
  display: flex;
  justify-content: space-between;
  width: min(1180px, calc(100% - 48px));
  margin: 0 auto;
  padding: 28px 0 40px;
  border-top: 1px solid #1d251f;
  color: #76827a;
  font-size: .88rem;
}
.marketing-footer p {
  margin: 0;
  color: inherit;
}
.marketing-footer a {
  color: #d8e96a;
  text-decoration: none;
}

@media (max-width: 780px) {
  .sidebar {
    position: static;
    width: auto;
    padding: 18px 22px;
  }
  .sidebar nav {
    display: none;
  }
  main {
    margin: 0;
    padding: 34px 20px;
  }
  .page-header, .modules {
    align-items: flex-start;
    flex-direction: column;
  }
  .grid {
    grid-template-columns: 1fr;
  }
  .module-list {
    justify-content: flex-start;
  }
  .marketing-header,
  .marketing-main,
  .marketing-footer {
    width: min(100% - 32px, 1180px);
  }
  .marketing-header {
    padding: 18px 0;
  }
  .marketing-brand {
    width: 132px;
  }
  .marketing-nav {
    gap: 13px;
  }
  .marketing-button-small {
    display: none;
  }
  .marketing-main {
    padding: 44px 0 24px;
  }
  .marketing-hero {
    grid-template-columns: 1fr;
    gap: 46px;
    min-height: auto;
  }
  .marketing-copy h1 {
    font-size: clamp(2.45rem, 13vw, 3.8rem);
  }
  .marketing-visual {
    transform: none;
  }
  .marketing-features {
    padding: 90px 0 55px;
  }
  .marketing-feature-grid {
    grid-template-columns: 1fr;
  }
  .marketing-final-cta {
    align-items: flex-start;
    flex-direction: column;
    margin-bottom: 55px;
  }
  .marketing-footer {
    gap: 18px;
    flex-direction: column;
  }
}
/* Gráficos do dashboard (SVG puro). */
.chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 10px;
  overflow: visible;
}
.chart .axis {
  stroke: #2a352d;
  stroke-width: 1;
}
.chart .grid-line {
  stroke: #1c261f;
  stroke-width: 1;
  stroke-dasharray: 3 3;
}
.chart .line {
  fill: none;
  stroke: var(--clr-app-spot);
  stroke-width: 2.5;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.chart .point {
  fill: var(--clr-app-spot);
}
.chart .area {
  fill: color-mix(in srgb, var(--clr-app-spot) 14%, transparent);
  stroke: none;
}
.chart .bar-track {
  fill: #151d18;
}
.chart .bar {
  fill: #e3ad62;
}
.chart text {
  fill: #9fb0a4;
  font-size: 11px;
}
.chart .value {
  fill: var(--clr-app-text);
  font-weight: 700;
}

/* Cotações de câmbio no dashboard. */
.rates-card .rates {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
  margin-top: 10px;
}
.rates-card .rate {
  display: flex;
  align-items: baseline;
  gap: 10px;
}
.rates-card .rate-name {
  color: #9fb0a4;
  font-size: .85rem;
  font-weight: 650;
}
.rates-card .rate strong {
  font-size: 1.15rem;
}

/* Orçamentos: barra de progresso por categoria. */
.budget-track {
  height: 10px;
  border-radius: 999px;
  background: #151d18;
  overflow: hidden;
}
.budget-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--clr-app-spot);
}
.budget-fill.warn { background: #e3ad62; }
.budget-fill.over { background: #d9534f; }
.budget-pct {
  display: inline-block;
  margin-top: 5px;
  font-size: .78rem;
  color: #9fb0a4;
}
.budget-pct.warn { color: #e3ad62; }
.budget-pct.over { color: #d9534f; font-weight: 700; }
