/* ====== Cores e base (mude as cores aqui) ====== */
:root {
  --fundo: #f4f5f7;
  --cartao: #ffffff;
  --texto: #1d2330;
  --suave: #667085;
  --borda: #e3e6ec;
  /* Cores da bandeira da Alemanha */
  --preto: #111111;
  --vermelho: #dd0000;
  --ouro: #ffce00;
  --primaria: #1a1a1a;      /* preto principal (topo, títulos) */
  --primaria-escura: #000000;
  --acento: #dd0000;        /* vermelho dos botões */
  --faixa: linear-gradient(to right, #000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66%);
  --perigo: #c62828;
  --ok: #1b7f3b;
  --raio: 10px;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  background: var(--fundo); color: var(--texto); line-height: 1.5;
  min-height: 100vh; display: flex; flex-direction: column;
}
a { color: #b00000; }
h1 { font-size: 1.7rem; margin: .2em 0 .6em; display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
h2 { font-size: 1.2rem; margin: 1.2em 0 .6em; }
.cartao h2:first-child { margin-top: 0; }
.largura { width: 100%; max-width: 1100px; margin: 0 auto; padding: 0 16px; }
.conteudo { flex: 1; padding-top: 28px; padding-bottom: 48px; }
.suave { color: var(--suave); }
.centro { text-align: center; }
.inline { display: inline; }
.texto-longo { white-space: pre-line; }

/* ====== Topo / rodapé ====== */
.topo { background: var(--preto); color: #fff; position: relative; }
.topo::after { content: ""; display: block; height: 5px; background: var(--faixa); }
.topo-linha { display: flex; justify-content: space-between; align-items: center; min-height: 64px; gap: 12px; flex-wrap: wrap; }
.marca { color: #fff; text-decoration: none; font-weight: 700; font-size: 1.15rem; }
.marca-icone { color: var(--ouro); }
.menu { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.menu a, .menu .link { color: #d9d9d9; text-decoration: none; font-weight: 500; }
.menu a:hover, .menu a.ativo, .menu .link:hover { color: var(--ouro); }
.menu .botao { color: #fff; }
.menu .botao:hover { color: #fff; }
.menu .destaque { color: var(--ouro); }
.rodape { background: #000; color: #a3a3a3; padding: 22px 0; font-size: .9rem; border-top: 5px solid transparent; border-image: var(--faixa) 1; }
.rodape-linha { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.rodape a { color: #fff; }

/* ====== Botões ====== */
.botao {
  display: inline-block; background: var(--acento); color: #fff; border: 0; border-radius: 8px;
  padding: 10px 18px; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; text-align: center;
}
.botao:hover { filter: brightness(.95); }
.botao.pequeno { padding: 6px 12px; font-size: .9rem; }
.botao.grande { padding: 14px 26px; font-size: 1.05rem; }
.botao.largo { width: 100%; }
.botao.perigo-fundo { background: var(--perigo); }
.link { background: none; border: 0; padding: 0; font: inherit; color: var(--primaria); cursor: pointer; text-decoration: underline; }
.perigo { color: var(--perigo); }

/* ====== Avisos ====== */
.aviso { padding: 12px 16px; border-radius: 8px; margin-bottom: 18px; border: 1px solid; }
.aviso-ok { background: #e8f5ec; border-color: #b7dfc3; color: #145c2c; }
.aviso-info { background: #fff8d6; border-color: #f0d860; color: #5c4a00; }
.aviso-erro { background: #fdecec; border-color: #f2c0c0; color: #8e1c1c; }

/* ====== Cartões, grades ====== */
.cartao { background: var(--cartao); border: 1px solid var(--borda); border-radius: var(--raio); padding: 22px; margin-bottom: 18px; }
.cartao.sem-padding { padding: 0; overflow-x: auto; }
.cartao.estreito { max-width: 440px; margin: 0 auto 18px; }
.cartao.estreito.esquerda { margin-left: 0; }
.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 18px; }
.duas-colunas { display: grid; grid-template-columns: minmax(0, 2fr) minmax(260px, 1fr); gap: 18px; align-items: start; }
@media (max-width: 800px) { .duas-colunas { grid-template-columns: 1fr; } }
.voltar { display: inline-block; margin-bottom: 8px; text-decoration: none; color: var(--suave); }

/* ====== Página inicial ====== */
.hero {
  background: linear-gradient(135deg, #1f1f1f, #000); color: #fff; position: relative; overflow: hidden;
  border-radius: 14px; padding: 48px 32px 56px; margin-bottom: 36px; text-align: center;
}
.hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 8px; background: var(--faixa); }
.hero h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); justify-content: center; margin-top: 0; }
.hero p { color: #e0e0e0; max-width: 560px; margin: 0 auto 24px; }
.titulo-secao { font-size: 1.4rem; }
.servico { text-decoration: none; color: inherit; display: flex; flex-direction: column; transition: transform .15s, box-shadow .15s; }
.servico { border-top: 4px solid var(--ouro); }
.servico:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0, 0, 0, .12); border-top-color: var(--vermelho); }
.servico h3 { margin: 0 0 6px; }
.servico p { color: var(--suave); flex: 1; }
.servico-rodape { display: flex; justify-content: space-between; align-items: center; }
.preco { color: var(--vermelho); font-size: 1.25rem; }
.preco.grande { font-size: 2rem; font-weight: 700; }
.passos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; margin-top: 36px; }
.passos div { background: #fff; border: 1px dashed var(--borda); border-radius: var(--raio); padding: 16px; text-align: center; }
.lead { font-size: 1.1rem; color: var(--suave); }
.compra { position: sticky; top: 16px; }

/* ====== Formulários ====== */
.form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 5px; font-weight: 500; font-size: .95rem; }
input, textarea, select {
  font: inherit; padding: 10px 12px; border: 1px solid #cfd4dc; border-radius: 8px; background: #fff; color: var(--texto); width: 100%;
}
input:focus, textarea:focus, select:focus { outline: 2px solid var(--ouro); border-color: var(--primaria); }
input:disabled { background: #f1f2f4; color: var(--suave); }
label.check { flex-direction: row; align-items: center; gap: 8px; }
label.check input { width: auto; }
.lado-a-lado { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
@media (max-width: 600px) { .lado-a-lado { grid-template-columns: 1fr; } }
.compra form label { margin-bottom: 12px; }
.copiar { display: flex; gap: 6px; }
.filtros { display: flex; gap: 8px; margin-bottom: 16px; flex-wrap: wrap; }
.filtros input { flex: 1; min-width: 200px; }
.filtros select { width: auto; }

/* ====== Tabelas ====== */
.tabela { width: 100%; border-collapse: collapse; }
.tabela th, .tabela td { padding: 12px 14px; text-align: left; border-bottom: 1px solid var(--borda); white-space: nowrap; }
.tabela td:nth-child(2), .tabela td:nth-child(3) { white-space: normal; }
.tabela th { font-size: .8rem; text-transform: uppercase; letter-spacing: .03em; color: var(--suave); background: #fafbfc; }
.tabela tr:last-child td { border-bottom: 0; }
.tabela tr.clicavel { cursor: pointer; }
.tabela tr.clicavel:hover td { background: #fffbe6; }
.tabela tr.apagado td { opacity: .55; }
.acoes { display: flex; gap: 14px; }

/* ====== Status ====== */
.status { display: inline-block; font-size: .78rem; font-weight: 600; padding: 3px 10px; border-radius: 99px; white-space: nowrap; }
.status-aguardando_pagamento { background: #fff4e0; color: #9a5a00; }
.status-pago { background: #fff3c4; color: #6b5400; }
.status-em_andamento { background: #ede7ff; color: #5132a8; }
.status-concluido { background: #e3f5e9; color: #1b7f3b; }
.status-cancelado { background: #f1f1f1; color: #6b6b6b; }

/* ====== Detalhes do pedido ====== */
.detalhes { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; }
.detalhes dt { color: var(--suave); }
.detalhes dd { margin: 0; }
.pagamento { border-color: #f6c58f; background: #fffaf3; }
.login-entregue { border: 2px solid var(--ouro); background: #fffbe6; }
.login-entregue label { margin-bottom: 10px; }
.linha-tempo { list-style: none; padding: 0; margin: 0; }
.linha-tempo li { padding: 6px 0 6px 28px; position: relative; color: var(--suave); }
.linha-tempo li::before { content: ""; position: absolute; left: 4px; top: 11px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid #c5cad3; background: #fff; }
.linha-tempo li.feito { color: var(--texto); font-weight: 600; }
.linha-tempo li.feito::before { background: var(--ok); border-color: var(--ok); }

/* ====== Conversa ====== */
.mensagens { display: flex; flex-direction: column; gap: 10px; margin-bottom: 14px; }
.msg { max-width: 85%; padding: 10px 14px; border-radius: 10px; }
.msg-cli { background: #f0f0f0; align-self: flex-start; }
.msg-adm { background: #fff6cc; align-self: flex-end; }
.msg-quem { font-size: .78rem; color: var(--suave); margin-bottom: 2px; }
.msg-texto { white-space: pre-line; }
.form-msg { display: flex; flex-direction: column; gap: 8px; align-items: flex-end; }

/* ====== Abas da área do cliente ====== */
.abas { display: flex; gap: 4px; border-bottom: 1px solid var(--borda); margin-bottom: 20px; }
.abas a { padding: 10px 16px; text-decoration: none; color: var(--suave); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.abas a.ativo { color: var(--primaria); border-color: var(--vermelho); font-weight: 600; }

/* ====== Painel ADM ====== */
body.adm { flex-direction: row; }
.lateral { width: 230px; background: #000; border-right: 5px solid transparent; border-image: linear-gradient(#000 0 33.33%, #dd0000 33.33% 66.66%, #ffce00 66.66%) 1; color: #fff; padding: 22px 16px; display: flex; flex-direction: column; gap: 24px; flex-shrink: 0; min-height: 100vh; position: sticky; top: 0; align-self: flex-start; }
.lateral nav { display: flex; flex-direction: column; gap: 2px; }
.lateral nav a { color: #cfcfcf; text-decoration: none; padding: 9px 12px; border-radius: 8px; }
.lateral nav a:hover { background: #222; color: #fff; }
.lateral nav a.ativo { background: var(--vermelho); color: #fff; }
.lateral-rodape { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: .9rem; }
.lateral-rodape a, .lateral-rodape .link { color: #98a2b3; text-decoration: none; text-align: left; }
.adm-conteudo { flex: 1; padding: 28px 32px 48px; min-width: 0; }
.cabecalho { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.cabecalho h1 { margin: 0; }
.numeros { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.numero { background: #fff; border: 1px solid var(--borda); border-radius: var(--raio); padding: 18px; display: flex; flex-direction: column; text-decoration: none; color: inherit; }
.numero { border-left: 4px solid var(--ouro); }
a.numero:hover { border-color: var(--vermelho); }
.numero span { color: var(--suave); font-size: .9rem; }
.numero strong { font-size: 1.8rem; color: var(--primaria); }
.numero small { color: var(--suave); }
@media (max-width: 800px) {
  body.adm { flex-direction: column; }
  .lateral { width: 100%; min-height: 0; position: static; padding: 14px 16px; gap: 12px; }
  .lateral nav { flex-direction: row; flex-wrap: wrap; }
  .lateral-rodape { flex-direction: row; gap: 16px; }
  .adm-conteudo { padding: 20px 16px 40px; }
}

.pequeno-texto { font-size: .85rem; margin-top: 8px; }
hr { border: 0; border-top: 1px solid var(--borda); margin: 16px 0; }
