:root {
  --bg: #eef2e6;
  --paper: #fffdf9;
  --ink: #202a20;
  --muted: #5f6b5c;
  --line: rgba(32, 42, 32, 0.1);
  --accent: #c1590f;
  --accent-soft: rgba(193, 89, 15, 0.1);
  --accent-2: #1f7a5c;
  --accent-2-soft: rgba(31, 122, 92, 0.12);
  --proteina: #d9564a;
  --proteina-soft: rgba(217, 86, 74, 0.12);
  --carboidrato: #d9a02c;
  --carboidrato-soft: rgba(217, 160, 44, 0.14);
  --gordura: #1f7a5c;
  --gordura-soft: rgba(31, 122, 92, 0.12);
  --fibra: #6b4f3f;
  --fibra-soft: rgba(107, 79, 63, 0.12);
  --erro: #b3261e;
  --erro-soft: rgba(179, 38, 30, 0.1);
  --raio: 22px;
  --raio-pequeno: 13px;
  --sombra: 0 2px 4px rgba(60, 48, 24, 0.03), 0 10px 28px rgba(60, 48, 24, 0.07);
  --fonte-display: "Fraunces", "Georgia", serif;
}

* {
  box-sizing: border-box;
}

input,
select,
button,
textarea {
  font-family: inherit; /* navegador nao herda isso por padrao -- ficava na fonte do sistema */
}

html,
body {
  margin: 0;
  padding: 0;
  color: var(--ink);
  font-family: "Manrope", "Segoe UI", -apple-system, Helvetica, Arial, sans-serif;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

body {
  background-color: var(--bg);
  background-image:
    radial-gradient(480px 380px at 8% -6%, rgba(31, 122, 92, 0.10), transparent 65%),
    radial-gradient(560px 420px at 108% 12%, rgba(193, 89, 15, 0.09), transparent 60%),
    radial-gradient(420px 360px at -4% 78%, rgba(31, 122, 92, 0.07), transparent 60%);
  background-repeat: no-repeat;
  background-attachment: fixed;
}

h1,
h2,
.numerao,
.marca,
.wordmark h1 {
  font-family: var(--fonte-display);
  font-weight: 600;
  letter-spacing: -0.01em;
}

.numerao {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

strong,
b {
  font-weight: 700;
}

.tela {
  max-width: 480px;
  margin: 0 auto;
  min-height: 100vh;
  padding: 24px 20px 110px;
  display: flex;
  flex-direction: column;
}

h1 {
  font-size: 1.6rem;
  margin: 0 0 4px;
}

.wordmark {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.wordmark img {
  border-radius: 11px;
  box-shadow: 0 6px 16px rgba(193, 89, 15, 0.28);
}

.wordmark h1 {
  margin: 0;
}

h2 {
  font-size: 1.15rem;
  margin: 0 0 12px;
  font-weight: 700;
}

p.subtitulo {
  color: var(--muted);
  margin: 0 0 24px;
  font-size: 0.95rem;
}

label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  margin: 14px 0 6px;
}

input,
select {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: var(--raio-pequeno);
  background: var(--paper);
  color: var(--ink);
  font-size: 1rem;
}

input:focus,
select:focus,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 1px;
}

.grupo-radio {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.grupo-radio label {
  margin: 0;
  flex: 1;
  min-width: 90px;
  text-align: center;
  padding: 10px 8px;
  border: 1px solid var(--line);
  border-radius: var(--raio-pequeno);
  background: var(--paper);
  font-weight: 500;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, color 0.15s;
}

.grupo-radio input {
  display: none;
}

.grupo-radio label:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 700;
}

.principal {
  display: block;
  margin-top: 20px;
  padding: 15px;
  border: none;
  border-radius: var(--raio-pequeno);
  background: linear-gradient(135deg, #d5670f, var(--accent) 55%, #a4480b);
  color: white;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(193, 89, 15, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.18);
  transition: transform 0.15s ease, box-shadow 0.15s ease, filter 0.15s ease;
}

.principal:hover {
  filter: brightness(1.05);
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(193, 89, 15, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.principal:active {
  transform: scale(0.98);
  box-shadow: 0 4px 10px rgba(193, 89, 15, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.principal:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
  box-shadow: none;
  filter: none;
}

.secundario {
  display: block;
  margin-top: 10px;
  padding: 13px;
  border: 1.5px solid var(--line);
  border-radius: var(--raio-pequeno);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 600;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, color 0.15s ease, transform 0.1s ease;
}

.secundario:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  color: var(--accent);
}

.secundario:active {
  transform: scale(0.98);
}

.secundario:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}

a.link {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
}

.erro {
  background: var(--erro-soft);
  color: var(--erro);
  border-radius: var(--raio-pequeno);
  padding: 10px 14px;
  font-size: 0.9rem;
  margin-top: 14px;
}

.sucesso {
  background: var(--accent-2-soft);
  color: var(--accent-2);
  border-radius: var(--raio-pequeno);
  padding: 10px 14px;
  font-size: 0.9rem;
  margin-top: 14px;
}

.cartao {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--raio);
  padding: 18px 20px;
  margin-bottom: 14px;
  box-shadow: var(--sombra);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

/* ---- topo do app: compartilhar / marca / perfil ---- */
.topo-app {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.topo-app .marca {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
}

.topo-app a,
.topo-app button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--paper);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: var(--ink);
  font-size: 1rem;
  cursor: pointer;
}

/* ---- faixa de dias da semana ---- */
.mes-ano {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: capitalize;
  margin-bottom: 8px;
  cursor: pointer;
  position: relative;
}

.mes-ano input[type="date"] {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  border: none;
  padding: 0;
  cursor: pointer;
}

.faixa-dias {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-bottom: 16px;
}

.dias-da-semana {
  display: flex;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
}

.seta-semana {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 0.95rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.seta-semana:disabled {
  opacity: 0.3;
  cursor: default;
}

.faixa-dias .dia {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 0.7rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
}

.faixa-dias .dia.futuro {
  cursor: default;
  opacity: 0.35;
}

.faixa-dias .numero-dia {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
  font-family: "Manrope", sans-serif;
  transition: background 0.15s, box-shadow 0.15s;
}

.faixa-dias .dia.hoje .numero-dia {
  background: var(--accent);
  color: white;
}

.faixa-dias .dia.selecionado:not(.hoje) .numero-dia {
  box-shadow: inset 0 0 0 2px var(--accent);
}

/* ---- badge de sequencia (usado no card duplo) ---- */
.badge-sequencia {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--ink);
  color: white;
  padding: 7px 14px 7px 10px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.9rem;
  font-family: "Manrope", sans-serif;
}

/* ---- card unificado de calorias + macros ---- */
.cartao-calorias {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.cartao-calorias .numerao {
  font-size: 2.2rem;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.cartao-calorias .numerao .meta-total {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--muted);
}

.cartao-calorias .rotulo {
  color: var(--muted);
  font-size: 0.9rem;
  margin-top: 4px;
}

.barra-macro-linha {
  margin-bottom: 12px;
}

.barra-macro-linha:last-child {
  margin-bottom: 0;
}

.barra-macro-linha .topo {
  display: flex;
  justify-content: space-between;
  font-size: 0.85rem;
  margin-bottom: 5px;
}

.barra-macro-linha .nome-macro {
  font-weight: 700;
}

.selo-macro {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  color: white;
  font-size: 0.62rem;
  font-weight: 800;
  font-family: "Manrope", sans-serif;
  vertical-align: -3px;
  margin-right: 2px;
}

.barra-macro-linha .valores {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.barra-macro-linha .trilho {
  height: 7px;
  border-radius: 100px;
  background: var(--line);
  overflow: hidden;
}

.barra-macro-linha .preenchido {
  height: 100%;
  border-radius: 100px;
}

/* ---- grade dupla: sequencia + agua ---- */
.grade-dupla {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 4px;
}

.card-duplo {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  padding: 16px;
  text-align: center;
}

.card-duplo .icone-grande {
  font-size: 1.4rem;
}

.card-duplo .valor {
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  font-size: 1.25rem;
  margin: 4px 0 2px;
  font-variant-numeric: tabular-nums;
}

.card-duplo .rotulo {
  color: var(--muted);
  font-size: 0.72rem;
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.card-duplo.agua {
  cursor: pointer;
  border: none;
  width: 100%;
  font-family: inherit;
  text-decoration: none;
  color: inherit;
  display: block;
}

/* ---- tela de agua ---- */
.botoes-rapidos {
  display: flex;
  gap: 8px;
  margin: 14px 0;
}

.botoes-rapidos button {
  flex: 1;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--raio-pequeno);
  background: var(--paper);
  color: var(--accent);
  font-weight: 700;
  cursor: pointer;
}

.item-agua {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--raio-pequeno);
  padding: 10px 14px;
  margin-bottom: 8px;
}

.item-agua .quantidade {
  font-weight: 700;
  flex: 1;
}

.avatar-perfil {
  display: block;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 4px auto 18px;
  object-fit: cover;
  background: var(--paper);
  border: 1px solid var(--line);
  cursor: pointer;
}

.avatar-perfil.vazio {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--muted);
}

.item-agua .horario {
  color: var(--muted);
  font-size: 0.85rem;
}

/* ---- nota de saude ---- */
.trilho-nota-saude {
  position: relative;
  height: 8px;
  border-radius: 100px;
  background: linear-gradient(90deg, #c94b3f, #d9a02c, #1f7a5c);
}

.marcador-nota-saude {
  position: absolute;
  top: -3px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: white;
  border: 2px solid var(--ink);
  transform: translateX(-50%);
  transition: left 0.4s ease;
}

.anel {
  position: relative;
  flex-shrink: 0;
  display: inline-block; /* sem isso nao centraliza dentro de container text-align:center */
}

.anel > svg {
  transform: rotate(-90deg); /* so o svg do proprio anel -- nao o icone svg aninhado dentro de .icone-central */
}

.anel .trilho {
  fill: none;
  stroke: var(--line);
}

.anel .progresso {
  fill: none;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.5s ease;
}

.anel .icone-central {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
}

/* ---- grade de macros com mini-anel ---- */
.grade-macros {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.card-macro {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  padding: 14px 10px;
  text-align: center;
}

.card-macro .valor {
  font-size: 1.15rem;
  font-weight: 800;
  font-family: "Manrope", sans-serif;
  font-variant-numeric: tabular-nums;
}

.card-macro .rotulo {
  color: var(--muted);
  font-size: 0.72rem;
  margin: 1px 0 8px;
}

/* ---- cards de refeicao com foto ---- */
.card-refeicao {
  display: flex;
  gap: 12px;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--raio);
  box-shadow: var(--sombra);
  padding: 10px;
  margin-bottom: 12px;
  align-items: center;
}

.card-refeicao .miniatura {
  width: 64px;
  height: 64px;
  border-radius: var(--raio-pequeno);
  object-fit: cover;
  flex-shrink: 0;
  background: var(--bg);
}

.card-refeicao .miniatura.vazia {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.card-refeicao .conteudo {
  flex: 1;
  min-width: 0;
}

.card-refeicao .topo {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}

.card-refeicao .nome {
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-refeicao .calorias {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  color: var(--accent);
}

.card-refeicao .detalhe {
  color: var(--muted);
  font-size: 0.8rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-top: 2px;
}

.card-refeicao .seletor-tipo {
  border: none;
  background: none;
  padding: 2px 0;
  margin-top: 2px;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 700;
  font-family: inherit;
  width: auto;
}

.card-refeicao .macros-mini {
  display: flex;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.72rem;
  font-weight: 700;
}

.card-refeicao .macros-mini span {
  display: inline-flex;
  align-items: center;
  color: var(--muted);
}

.card-refeicao .excluir {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 6px;
  align-self: flex-start;
}

/* ---- navegacao inferior + botao flutuante ---- */
.nav-inferior {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--paper);
  border-top: 1px solid var(--line);
  display: flex;
  max-width: 480px;
  margin: 0 auto;
  padding-top: 2px;
}

.nav-inferior a {
  flex: 1;
  text-align: center;
  padding: 12px 0 10px;
  text-decoration: none;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 600;
}

.nav-inferior a.ativo {
  color: var(--accent);
}

.nav-inferior .icone {
  display: block;
  font-size: 1.3rem;
  margin-bottom: 2px;
}

.botao-flutuante {
  position: fixed;
  right: calc(50% - 240px + 20px);
  bottom: 78px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: none;
  font-size: 1.6rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(193, 89, 15, 0.4);
  text-decoration: none;
}

@media (max-width: 520px) {
  .botao-flutuante {
    right: 20px;
  }
}

.botao-camera {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  background: var(--accent);
  color: white;
  border: none;
  font-size: 1.8rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 8px auto 24px;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(193, 89, 15, 0.35);
}

.item-refeicao {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  gap: 10px;
}

.item-refeicao:first-child {
  border-top: none;
}

.item-refeicao .nome {
  font-weight: 600;
}

.item-refeicao .detalhe {
  color: var(--muted);
  font-size: 0.8rem;
}

.item-refeicao input[data-campo="nome"] {
  width: 100%;
  padding: 6px 8px;
  font-weight: 600;
}

.item-refeicao input[data-campo="quantidade_g"],
.item-refeicao input[data-campo="calorias"] {
  width: 64px;
  padding: 6px 8px;
  text-align: right;
}

.item-refeicao .excluir {
  background: none;
  border: none;
  color: var(--erro);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px;
}

.tag {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 4px 11px;
  border-radius: 100px;
  white-space: nowrap;
}

.tag-sem-match {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--erro);
  background: var(--erro-soft);
  padding: 2px 8px;
  border-radius: 100px;
  margin-top: 2px;
}

.carregando {
  text-align: center;
  color: var(--muted);
  padding: 40px 0;
}

.vazio {
  text-align: center;
  color: var(--muted);
  padding: 40px 20px;
  font-size: 0.95rem;
}

.historico-dia {
  font-size: 0.8rem;
  color: var(--muted);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 18px 0 8px;
}

/* ================= faixa de valor (index + vendas) ================= */
.faixa-valor {
  display: flex;
  gap: 8px;
  margin: 18px 0;
}

.faixa-valor .item {
  flex: 1;
  text-align: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--raio-pequeno);
  padding: 14px 6px 12px;
  box-shadow: var(--sombra);
}

.faixa-valor .icone {
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--accent-2-soft);
  margin: 0 auto 8px;
}

.faixa-valor .rotulo {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--muted);
  line-height: 1.3;
}

/* ================= demo do app num "telefone" (pagina de vendas) ================= */
.demo-secao {
  margin: 4px 0 26px;
}

.demo-carrossel-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.demo-carrossel {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  margin: 0 -20px;
  padding: 4px 20px 16px;
  scroll-behavior: smooth;
}

.demo-carrossel::-webkit-scrollbar {
  height: 5px;
}

.demo-carrossel::-webkit-scrollbar-thumb {
  background: var(--line);
  border-radius: 100px;
}

.demo-item {
  flex: 0 0 auto;
  width: 78%;
  max-width: 300px;
  scroll-snap-align: center;
}

.demo-item img {
  width: 100%;
  display: block;
  border-radius: var(--raio);
  box-shadow: var(--sombra);
}

.demo-seta {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--ink);
  font-size: 1.3rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--sombra);
  z-index: 2;
}

.demo-seta.esquerda {
  left: -6px;
}

.demo-seta.direita {
  right: -6px;
}

.demo-legenda {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
  margin-top: 14px;
  padding: 0 8px;
}

/* ================= FAQ ================= */
.faq-item {
  border-bottom: 1px solid var(--line);
}

.faq-item:last-child {
  border-bottom: none;
}

.faq-pergunta {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 14px 2px;
  font-family: inherit;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.faq-pergunta .seta {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  color: var(--accent);
}

.faq-item.aberto .faq-pergunta .seta {
  transform: rotate(180deg);
}

.faq-resposta {
  display: none;
  color: var(--muted);
  font-size: 0.85rem;
  padding: 0 2px 16px;
}

.faq-item.aberto .faq-resposta {
  display: block;
}

/* ================= checkout: selo de seguranca + etapas ================= */
.selo-seguranca {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 14px;
}

.passos-checkout {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 18px;
}

.passos-checkout .passo {
  flex: 1;
  height: 4px;
  border-radius: 100px;
  background: var(--line);
  transition: background 0.2s ease;
}

.passos-checkout .passo.feito,
.passos-checkout .passo.atual {
  background: var(--accent);
}

/* ================= CRM: tema "Obsidian" (dark glass, cores do Sacia) ================= */
.pagina-crm {
  --crm-bg: #0a0f0b;
  --crm-surface: rgba(255, 255, 255, 0.035);
  --crm-borda: rgba(255, 255, 255, 0.1);
  --crm-texto: #eef2ea;
  --crm-texto-fraca: rgba(238, 242, 234, 0.62);
  --crm-texto-fraquissima: rgba(238, 242, 234, 0.32);
  --crm-lime: #a6ff5e;
  --crm-lime-glow: rgba(166, 255, 94, 0.35);
  --crm-laranja: #ff8144;
  --crm-fonte-titulo: "Space Grotesk", "Manrope", sans-serif;
  --crm-fonte-mono: "JetBrains Mono", monospace;
  background: #000;
  color: var(--crm-texto);
  font-family: var(--crm-fonte-titulo);
  display: flex;
  min-height: 100vh;
  padding: 18px;
}

@media (max-width: 860px) {
  .pagina-crm {
    padding: 0;
  }
}

.admin-shell {
  display: flex;
  flex: 1;
  min-height: 0;
  background: var(--crm-bg);
  border-radius: 2.5rem;
  border: 1px solid var(--crm-borda);
  box-shadow: 0 40px 100px rgba(0, 0, 0, 0.55);
  overflow: hidden;
  position: relative;
}

@media (max-width: 860px) {
  .admin-shell {
    border-radius: 0;
    border: none;
  }
}

/* grade tecnica + brilhos decorativos -- puro CSS, sem imagem */
.admin-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
  z-index: 0;
}

.crm-brilho {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
  z-index: 0;
}

.crm-brilho.lima {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -100px;
  background: radial-gradient(circle, var(--crm-lime-glow), transparent 70%);
}

.crm-brilho.laranja {
  width: 380px;
  height: 380px;
  bottom: -160px;
  left: 18%;
  background: radial-gradient(circle, rgba(255, 129, 68, 0.22), transparent 70%);
}

.admin-sidebar {
  width: 234px;
  flex-shrink: 0;
  background: var(--crm-surface);
  backdrop-filter: blur(16px);
  border-right: 1px solid var(--crm-borda);
  color: var(--crm-texto);
  display: flex;
  flex-direction: column;
  padding: 22px 14px;
  gap: 2px;
  position: relative;
  z-index: 1;
  overflow-y: auto;
}

.admin-marca {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: -0.02em;
  padding: 2px 10px 20px;
}

.admin-marca img {
  border-radius: 8px;
}

.admin-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  text-align: left;
  border: none;
  background: none;
  color: var(--crm-texto-fraca);
  padding: 11px 12px;
  border-radius: 12px;
  font-family: var(--crm-fonte-titulo);
  font-weight: 600;
  font-size: 0.88rem;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s ease, color 0.15s ease;
}

.admin-nav-item .icone {
  font-size: 1.02rem;
  width: 20px;
  text-align: center;
  flex-shrink: 0;
}

.admin-nav-item:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--crm-texto);
}

.admin-nav-item.ativo {
  background: var(--crm-lime);
  color: #06140a;
  box-shadow: 0 0 24px var(--crm-lime-glow);
}

.admin-nav-item.sair {
  margin-top: auto;
  color: var(--crm-texto-fraquissima);
}

.crm-status {
  display: flex;
  align-items: center;
  gap: 7px;
  font-family: var(--crm-fonte-mono);
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 9px;
  color: var(--crm-texto-fraquissima);
  padding: 12px 12px 2px;
}

.crm-status .ponto {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--crm-lime);
  box-shadow: 0 0 8px var(--crm-lime-glow);
  animation: crm-pulso 2s infinite;
}

@keyframes crm-pulso {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.admin-conteudo {
  flex: 1;
  padding: 30px 36px 60px;
  max-width: 1180px;
  min-width: 0;
  position: relative;
  z-index: 1;
  overflow-y: auto;
}

.admin-aba {
  display: none;
}

.admin-aba.ativa {
  display: block;
  animation: admin-fade 0.18s ease;
}

@keyframes admin-fade {
  from { opacity: 0; transform: translateY(4px); }
  to { opacity: 1; transform: none; }
}

.admin-topo {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 22px;
  gap: 12px;
}

.admin-titulo {
  font-family: var(--crm-fonte-titulo);
  font-size: 1.7rem;
  font-weight: 700;
  margin: 0;
  letter-spacing: -0.03em;
  color: var(--crm-texto);
}

.admin-subtitulo {
  font-family: var(--crm-fonte-mono);
  color: var(--crm-texto-fraca);
  font-size: 0.72rem;
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.admin-botao-menu {
  display: none;
  border: 1px solid var(--crm-borda);
  background: var(--crm-surface);
  color: var(--crm-texto);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.admin-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 19;
}

.admin-overlay.visivel {
  display: block;
}

@media (max-width: 860px) {
  .admin-shell {
    flex-direction: column;
  }

  .admin-sidebar {
    position: fixed;
    inset: 0 25% 0 0;
    z-index: 20;
    transform: translateX(-100%);
    transition: transform 0.2s ease;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.5);
  }

  .admin-sidebar.aberta {
    transform: translateX(0);
  }

  .admin-conteudo {
    padding: 20px 16px 90px;
  }

  .admin-botao-menu {
    display: flex;
  }
}

/* ---- cards, kpis, tabela: vidro sobre o obsidian ---- */
.pagina-crm .cartao {
  background: var(--crm-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--crm-borda);
  color: var(--crm-texto);
  box-shadow: none;
}

.pagina-crm h2 {
  font-family: var(--crm-fonte-titulo);
  color: var(--crm-texto);
}

.pagina-crm input,
.pagina-crm select {
  background: rgba(255, 255, 255, 0.05);
  border-color: var(--crm-borda);
  color: var(--crm-texto);
}

.pagina-crm label {
  color: var(--crm-texto-fraca);
}

.pagina-crm .vazio {
  color: var(--crm-texto-fraquissima);
}

.grade-kpi {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(155px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.kpi {
  background: var(--crm-surface);
  backdrop-filter: blur(16px);
  border: 1px solid var(--crm-borda);
  border-radius: 1.25rem;
  padding: 14px 16px;
  transition: border-color 0.15s ease;
}

.kpi:hover {
  border-color: rgba(166, 255, 94, 0.4);
}

.kpi .valor {
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--crm-fonte-titulo);
  font-variant-numeric: tabular-nums;
  color: var(--crm-texto);
}

.kpi .rotulo {
  color: var(--crm-texto-fraca);
  font-family: var(--crm-fonte-mono);
  font-size: 0.62rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-top: 5px;
}

.grade-graficos-dupla {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.tabela-crm {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
  color: var(--crm-texto);
}

.tabela-crm th {
  text-align: left;
  color: var(--crm-texto-fraquissima);
  font-family: var(--crm-fonte-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 0 10px 10px;
  font-weight: 500;
}

.tabela-crm td {
  padding: 12px 10px;
  border-top: 1px solid var(--crm-borda);
}

.tabela-crm tr:hover td {
  background: rgba(255, 255, 255, 0.03);
}

.filtros-crm {
  display: flex;
  gap: 6px;
  overflow-x: auto;
  margin-bottom: 12px;
}

.filtros-crm button {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--paper);
  color: var(--muted);
  padding: 7px 14px;
  border-radius: 100px;
  font-weight: 700;
  font-size: 0.78rem;
  cursor: pointer;
  font-family: inherit;
}

.filtros-crm button.ativo {
  background: var(--ink);
  color: white;
  border-color: var(--ink);
}

.linha-assinante {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

.linha-assinante:first-child {
  border-top: none;
}

.linha-assinante .detalhe {
  color: var(--muted);
  font-size: 0.78rem;
  margin-top: 2px;
}

.linha-assinante .acoes {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}

.linha-assinante .acoes button {
  border: 1px solid var(--line);
  background: var(--paper);
  border-radius: 8px;
  padding: 5px 9px;
  font-size: 0.72rem;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
}

.pagina-crm .filtros-crm button {
  border-color: var(--crm-borda);
  background: var(--crm-surface);
  color: var(--crm-texto-fraca);
  font-family: var(--crm-fonte-mono);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-size: 0.66rem;
}

.pagina-crm .filtros-crm button.ativo {
  background: var(--crm-lime);
  color: #06140a;
  border-color: var(--crm-lime);
  box-shadow: 0 0 18px var(--crm-lime-glow);
}

.pagina-crm .linha-assinante {
  border-top-color: var(--crm-borda);
}

.pagina-crm .linha-assinante .detalhe {
  color: var(--crm-texto-fraca);
}

.pagina-crm .linha-assinante .acoes button {
  border-color: var(--crm-borda);
  background: rgba(255, 255, 255, 0.04);
  color: var(--crm-texto);
}

.pagina-crm .linha-assinante .acoes button:hover {
  border-color: var(--crm-lime);
}
