:root {
  color-scheme: dark;
  --bg: #050909;
  --surface: #0b1818;
  --panel: #132525;
  --green: #00d978;
  --text: #f5f7f8;
  --muted: #a9bbbb;
  --line: #294040;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.6 Inter,
    Segoe UI,
    system-ui,
    sans-serif;
}
a {
  color: inherit;
  text-decoration: none;
}
button,
input,
select,
textarea {
  font: inherit;
}
button,
a,
input,
select,
textarea {
  outline-offset: 5px;
}
:focus-visible {
  outline: 2px solid var(--green);
}
button,
.button {
  cursor: pointer;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 11px 17px;
  background: var(--panel);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  transition:
    background 0.18s,
    transform 0.18s;
}
button:hover,
.button:hover {
  background: #203737;
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
.primary {
  background: var(--green);
  border-color: var(--green);
  color: #032014;
  font-weight: 700;
}
.primary:hover {
  background: #36ea99;
}
.muted,
small {
  color: var(--muted);
}
h1,
h2,
h3,
p {
  margin-top: 0;
}
h1 {
  font-size: clamp(27px, 3vw, 38px);
  letter-spacing: -1.2px;
  line-height: 1.2;
}
h2 {
  font-size: 19px;
  letter-spacing: -0.4px;
}
h3 {
  font-size: 17px;
}
small,
.eyebrow {
  font-size: 12px;
}
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--green);
  font-weight: 700;
}
.logo {
  width: 148px;
  height: 74px;
  object-fit: contain;
  filter: drop-shadow(0 0 10px #009bff20);
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}
.brand span {
  border-left: 1px solid var(--line);
  padding-left: 12px;
  font-size: 12px;
  color: var(--muted);
}
.demo-banner {
  padding: 8px 20px;
  background: #103021;
  color: #b8f4d5;
  font-size: 12px;
  text-align: center;
  border-bottom: 1px solid #21543b;
}
.layout {
  display: grid;
  grid-template-columns: 248px minmax(0, 1fr);
  min-height: calc(100vh - 37px);
}
.sidebar {
  padding: 20px 16px;
  border-right: 1px solid var(--line);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  gap: 20px;
}
.sidebar nav {
  display: grid;
  gap: 4px;
}
.nav-link {
  padding: 10px 14px;
  border-radius: 9px;
  color: var(--muted);
  display: flex;
  gap: 12px;
  align-items: center;
  font-size: 14px;
}
.nav-link:hover {
  background: var(--panel);
  color: white;
}
.nav-link.active {
  background: #123d2b;
  color: #81f6b9;
  box-shadow: inset 3px 0 var(--green);
}
.icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
}
.sidebar-footer {
  margin-top: auto;
  padding: 16px 10px;
  border-top: 1px solid var(--line);
}
.topbar {
  min-height: 84px;
  border-bottom: 1px solid var(--line);
  padding: 16px 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.avatar {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #1c4031;
  color: #83efb5;
  margin-right: 8px;
}
.main {
  padding: 32px 36px;
  max-width: 1600px;
  margin: auto;
}
.page-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  margin-bottom: 28px;
}
.page-head p {
  margin: 10px 0 0;
}
.grid {
  display: grid;
  gap: 18px;
}
.stats {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 24px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
}
.stat-top {
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 13px;
}
.stat-top .icon {
  color: var(--green);
}
.stat-value {
  display: block;
  font-size: 31px;
  font-weight: 650;
  margin: 12px 0 3px;
  letter-spacing: -1px;
}
.stat-note {
  font-size: 11px;
  color: var(--muted);
}
.columns {
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 1fr);
}
.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
  margin-bottom: 18px;
}
.card-header h2 {
  margin: 0;
}
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 9px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 600;
  background: #183e2b;
  color: #9cf0c0;
  white-space: nowrap;
}
.badge.warn {
  background: #3c3017;
  color: #f5d592;
}
.badge.neutral {
  background: #263333;
  color: #cfdddd;
}
.badge.danger {
  background: #3c2328;
  color: #ffb6c4;
}
.table-wrap {
  overflow-x: auto;
}
table {
  border-collapse: collapse;
  width: 100%;
  font-size: 13px;
  text-align: left;
}
th {
  color: var(--muted);
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
td,
th {
  padding: 15px 10px;
  border-bottom: 1px solid var(--line);
}
tr:last-child td {
  border-bottom: 0;
}
.product-symbol {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  background: #143d2a;
  border: 1px solid #246143;
  border-radius: 13px;
  color: var(--green);
  margin-bottom: 18px;
}
.product-title {
  display: flex;
  gap: 12px;
  align-items: center;
}
.product-title h3 {
  margin: 0;
}
.product-title .product-symbol {
  margin: 0;
}
.product-hero {
  background:
    radial-gradient(ellipse at top right, #12412a66, transparent 65%),
    var(--surface);
}
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 24px;
}
.detail-grid dt {
  font-size: 12px;
  color: var(--muted);
}
.detail-grid dd {
  margin: 4px 0 0;
  font-weight: 600;
}
.progress {
  height: 6px;
  background: #263939;
  border-radius: 4px;
  overflow: hidden;
  margin: 9px 0 4px;
}
.progress span {
  display: block;
  height: 100%;
  width: 100%;
  background: var(--green);
}
.activity {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
}
.activity:last-child {
  border: 0;
}
.activity p {
  margin: 3px 0;
  font-size: 13px;
}
.activity small {
  font-size: 11px;
}
.notice {
  padding: 15px 18px;
  border: 1px solid #2e5140;
  background: #0f241a;
  border-radius: 12px;
  color: #c3dfcf;
  font-size: 13px;
  margin-bottom: 24px;
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin: 0 0 20px;
}
input,
select,
textarea {
  background: #071111;
  color: var(--text);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px 12px;
  max-width: 100%;
}
input::placeholder {
  color: #a9bbbb;
}
label {
  display: grid;
  gap: 7px;
  font-size: 13px;
  margin-bottom: 18px;
}
textarea {
  resize: vertical;
  min-height: 110px;
}
.auth {
  min-height: calc(100vh - 37px);
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  max-width: 1200px;
  align-items: center;
  margin: auto;
  padding: 50px;
  gap: 80px;
}
.auth-intro {
  padding: 40px 0;
}
.auth-intro h1 {
  font-size: clamp(35px, 4vw, 55px);
  max-width: 540px;
}
.auth-intro .logo {
  width: 230px;
  height: 115px;
  margin-bottom: 35px;
}
.auth-card {
  padding: 34px;
}
.auth-card input {
  width: 100%;
}
.auth-card .primary {
  width: 100%;
}
.auth-links {
  display: flex;
  justify-content: space-between;
  margin: 18px 0;
  font-size: 13px;
  color: #94e7bb;
}
.auth-status {
  min-height: 26px;
  font-size: 13px;
  color: #ffd4a3;
}
.auth-points {
  display: grid;
  gap: 12px;
  margin-top: 30px;
  color: var(--muted);
}
.auth-points span {
  display: flex;
  gap: 10px;
  align-items: center;
}
.auth-points svg {
  color: var(--green);
}
.login-divider {
  border-top: 1px solid var(--line);
  padding-top: 22px;
  margin-top: 20px;
}
.mobile-toggle {
  display: none;
}
.toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  max-width: calc(100vw - 48px);
  padding: 16px 22px;
  background: #173c29;
  border: 1px solid #5cad7b;
  color: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px #0009;
  z-index: 30;
}
.skip-link {
  position: fixed;
  top: -80px;
  left: 12px;
  z-index: 50;
  background: var(--green);
  color: #052014;
  padding: 12px;
}
.skip-link:focus {
  top: 12px;
}
.empty {
  padding: 32px;
  text-align: center;
  color: var(--muted);
}
.plans {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}
.price {
  font-size: 28px;
  font-weight: 650;
}
.page-footer {
  color: var(--muted);
  font-size: 11px;
  margin-top: 30px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.row-link {
  color: #96edbc;
  text-decoration: underline;
}
.no-margin {
  margin: 0;
}
.portal-site-logo {
  width: 150px;
  height: 75px;
  object-fit: contain;
}
.portal-public-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.portal-public-links a {
  font: 600 12px/1.4 system-ui;
  padding: 10px 14px;
  border: 1px solid #315243;
  border-radius: 9px;
  color: #a3efc2;
  background: #10241a;
}
body:has(.portal-site-logo) {
  background-color: #050909;
}
body:has(.portal-site-logo) :is(.text-indigo-400, .text-cyan-400) {
  color: #00d978;
}
body:has(.portal-site-logo) .bg-slate-900 {
  background-color: #0b1818;
}
body:has(.portal-site-logo) .bg-slate-950 {
  background-color: #050909;
}
.modal-hidden {
  visibility: hidden;
}
body:has(.portal-site-logo) .text-transparent.bg-clip-text {
  background-image: linear-gradient(90deg, #f5f7f8, #00d978);
}
@media (max-width: 1100px) {
  .stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .columns {
    grid-template-columns: 1fr;
  }
  .main {
    padding: 26px;
  }
  .topbar {
    padding: 16px 26px;
  }
  .plans {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 760px) {
  .layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
  .sidebar.open {
    display: flex;
  }
  .mobile-toggle {
    display: inline-flex;
  }
  .topbar {
    padding: 14px 18px;
  }
  .main {
    padding: 24px 16px;
  }
  .page-head {
    align-items: flex-start;
    flex-direction: column;
  }
  .auth {
    grid-template-columns: 1fr;
    padding: 24px 18px;
    gap: 15px;
  }
  .auth-intro {
    padding: 15px 0;
  }
  .auth-intro .logo {
    margin-bottom: 12px;
    width: 160px;
    height: 80px;
  }
  .auth-intro h1 {
    font-size: 32px;
  }
  .auth-points {
    display: none;
  }
  .card {
    padding: 18px;
  }
  .auth-card {
    padding: 24px;
  }
  .plans {
    grid-template-columns: 1fr;
  }
  .topbar .muted {
    display: none;
  }
  .page-footer {
    flex-direction: column;
  }
  .stat-value {
    font-size: 27px;
  }
  .stats {
    gap: 12px;
  }
  .stat-top {
    font-size: 12px;
  }
  .detail-grid {
    gap: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
/* Evita largura intrínseca de tabelas e cabeçalho em telas estreitas. */
.layout > div,
.card,
.grid {
  min-width: 0;
}
.topbar > div:last-child {
  display: flex;
  align-items: center;
  gap: 8px;
}
.topbar .avatar {
  margin-right: 0;
}
@media (max-width: 760px) {
  .topbar .brand span,
  .topbar > div:last-child small {
    display: none;
  }
}
.topbar .brand > a {
  display: none;
}
.table-wrap:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 4px;
}
@media (max-width: 760px) {
  .topbar {
    padding: 12px 14px;
    gap: 8px;
  }
  .topbar .brand {
    gap: 8px;
  }
  .topbar .brand > a {
    display: block;
  }
  .topbar .logo {
    width: 80px;
    height: 40px;
  }
  .topbar .mobile-toggle {
    padding: 8px;
  }
  .topbar .avatar {
    width: 28px;
    height: 28px;
  }
  .topbar .button {
    padding: 8px 10px;
    font-size: 12px;
  }
  .table-wrap table {
    min-width: 560px;
  }
}
