:root{
  --bg:#0b0f17;
  --card:#111827;
  --muted:#94a3b8;
  --text:#e5e7eb;
  --line:#1f2937;
  --accent:#22c55e;
  --accent2:#38bdf8;
  --danger:#ef4444;
  --shadow: 0 18px 45px rgba(0,0,0,.45);
}

*{box-sizing:border-box}
html,body{height:100%}
body{
  margin:0;
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial;
  background: radial-gradient(1000px 600px at 10% 10%, rgba(56,189,248,.10), transparent 50%),
              radial-gradient(900px 500px at 90% 30%, rgba(34,197,94,.10), transparent 55%),
              var(--bg);
  color:var(--text);
}

a{color:inherit; text-decoration:none}
.container{width:min(1100px, 92%); margin:0 auto}

.topbar{
  position:sticky; top:0; z-index:10;
  backdrop-filter: blur(10px);
  background: rgba(11,15,23,.70);
  border-bottom:1px solid rgba(255,255,255,.06);
}
.topbar__inner{
  display:flex; align-items:center; justify-content:space-between;
  padding:14px 0;
}
.brand{display:flex; gap:10px; align-items:center}
.brand__logo{
  display:grid; place-items:center;
  width:34px; height:34px; border-radius:12px;
  background: linear-gradient(135deg, rgba(34,197,94,.95), rgba(56,189,248,.95));
  color:#04110a; font-weight:900;
  box-shadow: 0 12px 30px rgba(34,197,94,.20);
}
.brand__name{font-weight:800; letter-spacing:.2px}
.nav{display:flex; gap:14px; flex-wrap:wrap; justify-content:flex-end}
.nav__link{
  color:var(--muted);
  font-weight:600;
  padding:8px 10px;
  border-radius:12px;
}
.nav__link:hover{background: rgba(255,255,255,.06); color:var(--text)}
.nav__link--active{background: rgba(34,197,94,.10); color: var(--text); border:1px solid rgba(34,197,94,.22)}

.hero{
  display:grid;
  grid-template-columns: 1.05fr .95fr;
  gap:22px;
  padding:28px 0 18px;
  align-items:start;
}
.hero__text h1{
  margin:0 0 10px;
  font-size: clamp(28px, 3.5vw, 44px);
  line-height:1.08;
}
.accent{color: var(--accent)}
.muted{color: var(--muted); line-height:1.6}
.pill{
  display:inline-flex; align-items:center; gap:10px;
  padding:10px 12px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.04);
  margin-top:10px;
}
.dot{
  width:10px; height:10px; border-radius:50%;
  background: var(--danger);
  box-shadow: 0 0 0 4px rgba(239,68,68,.10);
}

.hero__card{display:grid; gap:14px}

.card{
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.03));
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 16px;
  box-shadow: var(--shadow);
}
.card__title{margin:0 0 10px; font-size:18px}

.form .grid{
  display:grid;
  grid-template-columns: 1fr 1fr;
  gap:12px;
}
.field{display:flex; flex-direction:column; gap:6px}
.field span{font-weight:700; font-size:13px; color: #cbd5e1}
input, select{
  width:100%;
  padding:10px 12px;
  border-radius:12px;
  border:1px solid rgba(255,255,255,.10);
  background: rgba(2,6,23,.55);
  color: var(--text);
  outline:none;
}
input:focus, select:focus{border-color: rgba(56,189,248,.55); box-shadow: 0 0 0 4px rgba(56,189,248,.10)}
.help{color: var(--muted); font-size:12px; line-height:1.4}

.actions{display:flex; gap:10px; margin-top:10px}
.btn{
  appearance:none; border:none; cursor:pointer;
  padding:11px 14px;
  border-radius:14px;
  font-weight:800;
  color:#04110a;
  background: linear-gradient(135deg, rgba(34,197,94,.95), rgba(56,189,248,.95));
}
.btn:hover{filter:brightness(1.03)}
.btn--ghost{
  background: rgba(255,255,255,.06);
  color: var(--text);
  border:1px solid rgba(255,255,255,.10);
}
.note{
  margin-top:12px;
  padding:12px;
  border-radius:14px;
  border:1px dashed rgba(255,255,255,.16);
  background: rgba(255,255,255,.03);
  color: var(--muted);
  font-size:13px;
}

.kpis{
  display:grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap:10px;
}
.kpi{
  border-radius:14px;
  border:1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.03);
  padding:12px;
}
.kpi__label{display:block; color:var(--muted); font-size:12px; margin-bottom:6px}
.kpi__value{font-size:18px; font-weight:900}

.details{margin-top:12px}
.details summary{cursor:pointer; font-weight:800}
.details__body{margin-top:10px}
.tableWrap{overflow:auto; border-radius:14px; border:1px solid rgba(255,255,255,.08)}
.table{width:100%; border-collapse:collapse; min-width:680px}
.table th,.table td{padding:10px 10px; border-bottom:1px solid rgba(255,255,255,.06); text-align:right}
.table th:first-child,.table td:first-child{text-align:left}
.table thead th{position:sticky; top:0; background: rgba(11,15,23,.95)}

.content{padding:8px 0 24px}

.footer{
  border-top: 1px solid rgba(255,255,255,.06);
  background: rgba(11,15,23,.60);
}
.footer__inner{
  display:flex; justify-content:space-between; align-items:center;
  padding:16px 0;
  gap:10px; flex-wrap:wrap;
}
.footer__links{display:flex; gap:12px}
.footer__links a{color: var(--muted)}
.footer__links a:hover{color: var(--text)}

@media (max-width: 900px){
  .hero{grid-template-columns: 1fr}
  .form .grid{grid-template-columns: 1fr}
  .kpis{grid-template-columns:1fr}
}
/* =========================
   Mobile polish (celular)
   ========================= */

@media (max-width: 600px){
  .topbar__inner{
    gap: 12px;
    flex-direction: column;
    align-items: flex-start;
  }

  .nav{
    width: 100%;
    justify-content: flex-start;
    gap: 10px;
  }

  .nav__link{
    padding: 10px 12px;
    border: 1px solid rgba(255,255,255,.08);
    background: rgba(255,255,255,.03);
  }

  .hero{
    padding: 18px 0 12px;
    gap: 14px;
  }

  .hero__text h1{
    font-size: 28px;
    line-height: 1.15;
  }

  .pill{
    width: 100%;
    justify-content: center;
    text-align: center;
  }

  .card{
    padding: 14px;
    border-radius: 16px;
  }

  .actions{
    flex-direction: column;
  }

  .btn{
    width: 100%;
  }

  .tableWrap{
    -webkit-overflow-scrolling: touch;
  }

  .table{
    min-width: 760px; /* dá espaço e força scroll horizontal */
  }
}


