:root {
  --fundo: #0b0d10;
  --fundo-2: #12151a;
  --cartao: #161a20;
  --cartao-2: #1c2129;
  --borda: #262c35;
  --texto: #e9edf2;
  --texto-2: #9aa4b1;
  --texto-3: #6b7480;
  --acento: #00c853;
  --acento-escuro: #00a344;
  --acento-suave: rgba(0, 200, 83, 0.12);
  --ouro: #ffc940;
  --perigo: #ff5d5d;
  --aviso: #ffb547;
  --raio: 14px;
  --sombra: 0 8px 30px rgba(0, 0, 0, 0.35);
  --fonte: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fundo);
  background-image: radial-gradient(circle at 15% -10%, rgba(0, 200, 83, 0.10), transparent 40%),
    radial-gradient(circle at 110% 10%, rgba(0, 140, 255, 0.06), transparent 35%);
  background-attachment: fixed;
  color: var(--texto);
  font-family: var(--fonte);
  font-size: 15px;
  line-height: 1.5;
  min-height: 100vh;
}
a { color: var(--acento); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 0.5em; letter-spacing: -0.01em; }
h1 { font-size: 1.6rem; }
h2 { font-size: 1.2rem; }
h3 { font-size: 1rem; }
p { margin: 0 0 0.8em; }
small, .sutil { color: var(--texto-2); }
.mono { font-family: var(--mono); }

/* ---------- Estrutura ---------- */
.topo {
  position: sticky; top: 0; z-index: 10;
  background: rgba(11, 13, 16, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borda);
}
.topo .barra {
  max-width: 1100px; margin: 0 auto; padding: 12px 16px;
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
}
.marca { display: flex; align-items: center; gap: 10px; color: var(--texto); font-weight: 700; }
.marca:hover { text-decoration: none; }
.marca .logo {
  width: 32px; height: 32px; border-radius: 9px;
  background: linear-gradient(135deg, var(--acento), #00796b);
  display: grid; place-items: center; font-size: 17px; color: #04140a; font-weight: 900;
}
.marca small { display: block; font-weight: 500; font-size: 11px; color: var(--texto-2); letter-spacing: 0.08em; text-transform: uppercase; }
.menu { display: flex; gap: 4px; flex-wrap: wrap; margin-left: auto; align-items: center; }
.menu a, .menu button.link {
  color: var(--texto-2); padding: 7px 11px; border-radius: 9px; font-size: 14px; font-weight: 500;
  background: none; border: 0; cursor: pointer; font-family: inherit;
}
.menu a:hover, .menu button.link:hover { color: var(--texto); background: var(--cartao); text-decoration: none; }
.menu a.ativo { color: var(--texto); background: var(--cartao-2); }
.menu form { margin: 0; }

.conteudo { max-width: 1100px; margin: 0 auto; padding: 24px 16px 60px; }
.estreito { max-width: 460px; margin: 0 auto; }
.rodape { text-align: center; color: var(--texto-3); font-size: 13px; padding: 24px 16px 40px; }

/* ---------- Cartões e grades ---------- */
.cartao {
  background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio);
  padding: 20px; margin-bottom: 16px;
}
.cartao.destaque { border-color: rgba(0, 200, 83, 0.35); box-shadow: 0 0 0 1px rgba(0, 200, 83, 0.08), var(--sombra); }
.grade { display: grid; gap: 16px; }
.g2 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.g4 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }
.linha { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.entre { justify-content: space-between; }
.cabecalho-pagina { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; margin-bottom: 20px; }
.cabecalho-pagina p { margin: 0; color: var(--texto-2); }

.numero { font-size: 1.8rem; font-weight: 800; letter-spacing: -0.02em; }
.rotulo { font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--texto-2); }

/* ---------- Nível / XP ---------- */
.nivel { display: flex; gap: 18px; align-items: center; }
.nivel .medalha {
  width: 72px; height: 72px; border-radius: 50%; flex: none;
  display: grid; place-items: center; font-size: 34px;
  background: radial-gradient(circle at 30% 30%, #2a313b, #14181e);
  border: 2px solid var(--acento); box-shadow: 0 0 24px rgba(0, 200, 83, 0.25);
}
.nivel .info { flex: 1; min-width: 0; }
.barra-xp { height: 10px; background: var(--cartao-2); border-radius: 99px; overflow: hidden; margin: 8px 0 6px; }
.barra-xp span { display: block; height: 100%; background: linear-gradient(90deg, var(--acento), #34e89e); border-radius: 99px; }

/* ---------- Campanha (selos) ---------- */
.campanha .topo-campanha { display: flex; gap: 12px; align-items: flex-start; }
.campanha .icone { font-size: 30px; line-height: 1; }
.selos { display: grid; grid-template-columns: repeat(auto-fill, minmax(34px, 1fr)); gap: 8px; margin: 16px 0 10px; }
.selo {
  aspect-ratio: 1; border-radius: 50%; border: 2px dashed var(--borda);
  display: grid; place-items: center; font-size: 13px; color: var(--texto-3); font-weight: 700;
}
.selo.cheio {
  border: 2px solid var(--acento); background: var(--acento-suave); color: var(--acento);
  animation: carimbo 0.4s ease-out both;
}
.selo.premio { border-color: var(--ouro); color: var(--ouro); border-style: solid; }
@keyframes carimbo { from { transform: scale(1.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ---------- Recompensa ---------- */
.recompensa {
  background: linear-gradient(135deg, rgba(255, 201, 64, 0.12), rgba(255, 201, 64, 0.02));
  border: 1px dashed rgba(255, 201, 64, 0.6); border-radius: var(--raio); padding: 18px;
}
.codigo { font-family: var(--mono); font-size: 1.35rem; font-weight: 700; letter-spacing: 0.08em; color: var(--ouro); }

/* ---------- Conquistas ---------- */
.conquista { text-align: center; padding: 18px 12px; }
.conquista .icone { font-size: 38px; display: block; margin-bottom: 6px; }
.conquista.bloqueada { opacity: 0.45; }
.conquista.bloqueada .icone { filter: grayscale(1); }
.conquista h3 { font-size: 14px; margin-bottom: 4px; }
.conquista p { font-size: 12px; color: var(--texto-2); margin: 0; }

/* ---------- Etiquetas ---------- */
.tag { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: 12px; font-weight: 600; background: var(--cartao-2); color: var(--texto-2); border: 1px solid var(--borda); }
.tag.ok { background: var(--acento-suave); color: var(--acento); border-color: rgba(0, 200, 83, 0.3); }
.tag.aviso { background: rgba(255, 181, 71, 0.12); color: var(--aviso); border-color: rgba(255, 181, 71, 0.3); }
.tag.erro { background: rgba(255, 93, 93, 0.12); color: var(--perigo); border-color: rgba(255, 93, 93, 0.3); }
.tag.ouro { background: rgba(255, 201, 64, 0.12); color: var(--ouro); border-color: rgba(255, 201, 64, 0.3); }

/* ---------- Tabelas e listas ---------- */
.tabela-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; font-weight: 600; color: var(--texto-2); font-size: 12px; text-transform: uppercase; letter-spacing: 0.06em; padding: 10px 10px; border-bottom: 1px solid var(--borda); white-space: nowrap; }
td { padding: 11px 10px; border-bottom: 1px solid var(--borda); vertical-align: top; }
tr:last-child td { border-bottom: 0; }
.direita { text-align: right; }

details.pedido { border: 1px solid var(--borda); border-radius: 12px; margin-bottom: 10px; background: var(--cartao); }
details.pedido summary { cursor: pointer; padding: 14px 16px; list-style: none; display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
details.pedido summary::-webkit-details-marker { display: none; }
details.pedido summary::after { content: '▾'; margin-left: auto; color: var(--texto-3); }
details.pedido[open] summary::after { content: '▴'; }
details.pedido .corpo { padding: 0 16px 14px; }
.item-linha { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-top: 1px solid var(--borda); font-size: 14px; }

/* ---------- Formulários ---------- */
label { display: block; font-size: 13px; font-weight: 600; color: var(--texto-2); margin-bottom: 6px; }
.campo { margin-bottom: 14px; }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=number], input[type=date], select, textarea {
  width: 100%; padding: 11px 12px; border-radius: 10px; border: 1px solid var(--borda);
  background: var(--fundo-2); color: var(--texto); font-family: inherit; font-size: 15px;
}
textarea { min-height: 90px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 3px var(--acento-suave); }
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--texto-2); }
.check input { margin-top: 3px; accent-color: var(--acento); }
.ajuda { font-size: 12px; color: var(--texto-3); margin-top: 4px; }

.botao {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 18px; border-radius: 10px; border: 0; cursor: pointer;
  background: var(--acento); color: #03130a; font-weight: 700; font-size: 15px; font-family: inherit;
}
.botao:hover { background: #18d667; text-decoration: none; }
.botao.secundario { background: var(--cartao-2); color: var(--texto); border: 1px solid var(--borda); }
.botao.secundario:hover { background: #242a33; }
.botao.perigo { background: rgba(255, 93, 93, 0.15); color: var(--perigo); border: 1px solid rgba(255, 93, 93, 0.35); }
.botao.pequeno { padding: 7px 12px; font-size: 13px; }
.botao.cheio { width: 100%; }
form.inline { display: inline; margin: 0; }

/* ---------- Avisos ---------- */
.alerta { padding: 12px 16px; border-radius: 10px; margin-bottom: 16px; font-size: 14px; border: 1px solid; }
.alerta.ok { background: var(--acento-suave); border-color: rgba(0, 200, 83, 0.35); color: #b8f5cf; }
.alerta.erro { background: rgba(255, 93, 93, 0.1); border-color: rgba(255, 93, 93, 0.35); color: #ffc4c4; }
.alerta.aviso { background: rgba(255, 181, 71, 0.1); border-color: rgba(255, 181, 71, 0.35); color: #ffe0b0; }

/* ---------- Landing ---------- */
.hero { text-align: center; padding: 40px 0 30px; }
.hero h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); font-weight: 800; }
.hero h1 em { font-style: normal; color: var(--acento); }
.hero p { color: var(--texto-2); font-size: 1.05rem; max-width: 560px; margin: 0 auto 24px; }
.passos { counter-reset: passo; }
.passos .cartao { position: relative; padding-top: 44px; }
.passos .cartao::before {
  counter-increment: passo; content: counter(passo);
  position: absolute; top: 14px; left: 20px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--acento); color: #03130a; font-weight: 800; font-size: 13px; display: grid; place-items: center;
}

.vazio { text-align: center; color: var(--texto-2); padding: 30px 10px; }
.vazio .icone { font-size: 40px; display: block; margin-bottom: 8px; }
.paginacao { display: flex; gap: 8px; justify-content: center; margin-top: 16px; }

@media (max-width: 640px) {
  .conteudo { padding-top: 16px; }
  .cartao { padding: 16px; }
  .menu { width: 100%; margin-left: 0; overflow-x: auto; flex-wrap: nowrap; }
  .menu a, .menu button.link { white-space: nowrap; }
  .nivel .medalha { width: 60px; height: 60px; font-size: 28px; }
  .esconder-celular { display: none; }
}

/* Botão de destaque dentro do menu do topo */
.menu a.botao { background: var(--acento); color: #03130a; font-weight: 700; padding: 7px 14px; }
.menu a.botao:hover { background: #18d667; color: #03130a; }
