\
:root{
  --bg:#f7efe2;
  --bg-soft:#fff9f1;
  --card:#fffdf9;
  --card-strong:#fff7ea;
  --text:#21303b;
  --muted:#6e7d89;
  --line:#e5d7c3;
  --line-strong:#d6c0a4;
  --primary:#ef7d32;
  --primary-strong:#d05d16;
  --secondary:#1f7a8c;
  --danger:#d14d55;
  --danger-soft:#fff0ef;
  --success:#2f8f63;
  --success-soft:#edf9f1;
  --shadow:0 20px 60px rgba(128, 91, 49, 0.14);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  min-height:100vh;
  color:var(--text);
  font-family:"Manrope",sans-serif;
  background:
    radial-gradient(circle at top left, rgba(239,125,50,.22), transparent 28%),
    radial-gradient(circle at top right, rgba(31,122,140,.16), transparent 24%),
    linear-gradient(180deg, #fffaf3 0%, #f8f0e3 42%, #f4e8d6 100%);
}
body::before,
body::after{
  content:"";
  position:fixed;
  z-index:-1;
  border-radius:999px;
  filter:blur(6px);
}
body::before{
  width:360px;
  height:360px;
  top:-80px;
  right:-120px;
  background:rgba(239,125,50,.12);
}
body::after{
  width:280px;
  height:280px;
  bottom:8%;
  left:-100px;
  background:rgba(31,122,140,.10);
}
.topo{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:18px;
  padding:20px 5%;
  background:rgba(255,250,243,.84);
  border-bottom:1px solid rgba(214,192,164,.75);
  backdrop-filter:blur(16px);
  position:sticky;
  top:0;
  z-index:5;
}
.topo strong,
h1,h2{
  font-family:"Space Grotesk",sans-serif;
}
.topo strong{font-size:22px;letter-spacing:-.02em}
.sub{color:var(--muted);margin-left:10px}
.topo nav{display:flex;gap:10px;flex-wrap:wrap}
.topo a,
.btn{
  color:var(--text);
  text-decoration:none;
  border:1px solid var(--line);
  background:rgba(255,255,255,.72);
  padding:11px 15px;
  border-radius:14px;
  cursor:pointer;
  font-weight:800;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
}
.topo a:hover,
.btn:hover{
  transform:translateY(-1px);
  box-shadow:0 10px 22px rgba(109, 78, 42, .10);
  border-color:var(--line-strong);
}
.container{width:min(1250px,94%);margin:34px auto 42px}
.titulo-linha{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:22px}
.titulo-linha h1,.titulo-linha h2{margin:0}
h1{font-size:34px;line-height:1.05;letter-spacing:-.03em}
h2{margin-top:0;font-size:24px;letter-spacing:-.02em}
.muted{color:var(--muted);max-width:58ch}
.eyebrow{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:7px 12px;
  margin-bottom:16px;
  border-radius:999px;
  background:rgba(239,125,50,.12);
  color:var(--primary-strong);
  font-size:12px;
  font-weight:800;
  text-transform:uppercase;
  letter-spacing:.08em;
}
.card{
  background:linear-gradient(180deg, rgba(255,255,255,.92), rgba(255,248,238,.96));
  border:1px solid rgba(229,215,195,.92);
  border-radius:24px;
  padding:24px;
  margin-bottom:20px;
  box-shadow:var(--shadow);
}
.spotlight-card{
  max-width:720px;
  margin:30px auto;
}
.perfil-hero{
  display:grid;
  grid-template-columns:1.5fr 1fr;
  gap:20px;
  overflow:hidden;
  position:relative;
}
.perfil-hero::after{
  content:"";
  position:absolute;
  right:-40px;
  top:-40px;
  width:180px;
  height:180px;
  border-radius:42px;
  background:linear-gradient(135deg, rgba(239,125,50,.16), rgba(31,122,140,.10));
  transform:rotate(18deg);
}
.perfil-hero-texto,
.perfil-hero-dicas{
  position:relative;
  z-index:1;
}
.perfil-hero-texto h1{margin-bottom:10px}
.perfil-hero-dicas{
  display:grid;
  gap:12px;
  align-content:start;
}
.perfil-chip{
  padding:16px;
  border:1px solid rgba(229,215,195,.92);
  border-radius:18px;
  background:rgba(255,255,255,.62);
}
.perfil-chip strong,
.perfil-ajuda-item strong{
  display:block;
  margin-bottom:6px;
  font-family:"Space Grotesk",sans-serif;
  letter-spacing:-.02em;
}
.perfil-chip span,
.perfil-ajuda-item span{
  color:var(--muted);
  line-height:1.5;
}
.perfil-layout{
  display:grid;
  grid-template-columns:minmax(0, 1.45fr) minmax(280px, .8fr);
  gap:20px;
  align-items:start;
}
.perfil-form-card,
.perfil-ajuda-card,
.perfil-tabela-card{
  margin-bottom:20px;
}
.perfil-card-topo{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  margin-bottom:18px;
}
.perfil-badge,
.perfil-contador{
  flex-shrink:0;
  padding:9px 12px;
  border-radius:999px;
  background:rgba(31,122,140,.10);
  color:var(--secondary);
  font-size:12px;
  font-weight:800;
  letter-spacing:.06em;
  text-transform:uppercase;
}
.perfil-ajuda-lista{
  display:grid;
  gap:14px;
}
.perfil-ajuda-item{
  padding:14px 0;
  border-bottom:1px dashed rgba(214,192,164,.8);
}
.perfil-ajuda-item:last-child{
  padding-bottom:0;
  border-bottom:0;
}
.metricas{display:grid;grid-template-columns:repeat(4,1fr);gap:16px}
.metrica{
  position:relative;
  overflow:hidden;
}
.metrica::after{
  content:"";
  position:absolute;
  inset:auto -24px -28px auto;
  width:92px;
  height:92px;
  border-radius:28px;
  background:linear-gradient(135deg, rgba(239,125,50,.16), rgba(31,122,140,.08));
  transform:rotate(18deg);
}
.metrica span{display:block;color:var(--muted);margin-bottom:12px;font-weight:700}
.metrica strong{position:relative;font-size:30px;z-index:1}
.table-wrap{
  overflow-x:auto;
  border:1px solid rgba(229,215,195,.7);
  border-radius:18px;
  background:rgba(255,255,255,.65);
}
table{width:100%;border-collapse:collapse;min-width:850px}
th,td{padding:15px 14px;border-bottom:1px solid rgba(229,215,195,.8);text-align:left;white-space:nowrap}
th{
  color:#7d694e;
  font-size:12px;
  text-transform:uppercase;
  letter-spacing:.08em;
  background:rgba(255,244,229,.78);
}
tbody tr:hover{background:rgba(255,245,234,.76)}
.vazio{text-align:center;color:var(--muted);padding:35px}
.form-grid{display:grid;gap:15px}
.form-grid.colunas{grid-template-columns:repeat(2,1fr)}
.span-2{grid-column:span 2}
.form-acoes{display:flex;justify-content:flex-start;align-items:center;padding-top:4px}
.form-acoes .btn{
  min-width:180px;
  box-shadow:0 12px 24px rgba(208,93,22,.22);
  font-size:15px;
  font-weight:800;
}
label{display:grid;gap:7px;color:#4b5d69;font-weight:800}
input,select{
  width:100%;
  padding:13px 14px;
  border-radius:14px;
  border:1px solid var(--line);
  background:#fffdf9;
  color:var(--text);
  font-size:15px;
  outline:none;
  transition:border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
input:focus,select:focus{
  border-color:rgba(239,125,50,.72);
  box-shadow:0 0 0 4px rgba(239,125,50,.12);
  background:#ffffff;
}
.btn.primario{
  background:linear-gradient(135deg, #d85d17, #ef7d32);
  color:#ffffff;
  border-color:transparent;
}
.btn.primario:hover,
.btn.primario:focus{
  background:linear-gradient(135deg, #c65312, #e77024);
  color:#ffffff;
}
.btn.perigo{
  background:var(--danger-soft);
  color:var(--danger);
  border-color:#f1c7c9;
}
.btn.pequeno{padding:8px 11px;font-size:12px}
.acoes{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.acoes form{margin:0}
.alerta{
  padding:15px 16px;
  border-radius:16px;
  margin-bottom:18px;
  border:1px solid transparent;
}
.alerta.erro{background:#fff2f2;border-color:#f0c5c8;color:#8e3138}
.alerta.sucesso{background:var(--success-soft);border-color:#c7e8d3;color:#226445}
.badge{
  padding:6px 10px;
  border-radius:999px;
  font-size:12px;
  font-weight:800;
}
.badge.on{background:#e7f7ee;color:#26714c}
.badge.off{background:#fff0f0;color:#a54148}
.login-wrap{min-height:80vh;display:grid;place-items:center}
.login-card{
  width:min(470px,100%);
  padding:34px;
  position:relative;
  overflow:hidden;
}
.login-card::after{
  content:"";
  position:absolute;
  top:-40px;
  right:-30px;
  width:140px;
  height:140px;
  border-radius:34px;
  background:linear-gradient(135deg, rgba(239,125,50,.18), rgba(31,122,140,.10));
  transform:rotate(18deg);
}
.logo{
  width:80px;
  height:80px;
  border-radius:24px;
  background:linear-gradient(135deg, #fff7ec, #ffe2c4);
  color:var(--primary-strong);
  display:grid;
  place-items:center;
  font-family:"Space Grotesk",sans-serif;
  font-weight:700;
  font-size:24px;
  margin-bottom:20px;
  box-shadow:0 16px 30px rgba(239,125,50,.18);
}
dialog{
  width:min(560px,92vw);
  border:1px solid var(--line);
  border-radius:24px;
  background:var(--card);
  color:var(--text);
  padding:0;
  box-shadow:0 24px 60px rgba(88, 63, 35, .20);
}
dialog::backdrop{background:rgba(72,54,31,.32)}
.modal-form{padding:22px}
@media(max-width:850px){
  .perfil-hero,
  .perfil-layout{grid-template-columns:1fr}
  .metricas{grid-template-columns:repeat(2,1fr)}
  .topo{align-items:flex-start}
  .form-grid.colunas{grid-template-columns:1fr}
  .span-2{grid-column:auto}
}
@media(max-width:520px){
  .metricas{grid-template-columns:1fr}
  .topo{display:block}
  .topo nav{margin-top:14px}
  .container{width:95%;margin-top:20px}
  .card,.login-card{padding:20px}
  .perfil-card-topo{display:block}
  .perfil-badge,.perfil-contador{display:inline-flex;margin-top:10px}
  h1{font-size:28px}
}
