/* =========================================================
   PRO BURGER — Área do cliente, login e fidelidade
   ========================================================= */
.link { color: var(--blue); font-weight: 600; }
.link:hover { text-decoration: underline; }

/* Botão da conta no topo */
.conta-btn { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 5px; border-radius: 999px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line); transition: .25s var(--ease); white-space: nowrap; }
.conta-btn:hover { border-color: var(--blue); }
.conta-btn.entrar { padding: 9px 14px; }
.conta-btn .avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800;
  background: var(--yellow-logo, #fcf404); color: #111; }
.conta-txt { display: flex; flex-direction: column; line-height: 1.1; }
.conta-txt b { font-size: .85rem; }
.conta-txt small { font-size: .7rem; color: var(--yellow); font-weight: 700; }

/* Login / cadastro */
.auth-wrap { display: grid; grid-template-columns: 1fr 480px; gap: 50px; align-items: start; margin-top: 20px; }
.auth-perks { list-style: none; display: grid; gap: 12px; margin: 26px 0; }
.auth-perks li { display: grid; padding: 14px 16px; border-radius: 14px; background: var(--card); border: 1px solid var(--line); }
.auth-perks span { color: var(--muted); font-size: .85rem; }
.auth-card { padding: 26px; }
.auth-tabs { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 5px; border-radius: 999px; background: rgba(255,255,255,.05); margin-bottom: 20px; }
.auth-tabs a { text-align: center; padding: 10px; border-radius: 999px; font-weight: 700; color: var(--muted); transition: .2s; }
.auth-tabs a.on { background: var(--blue); color: var(--on-blue); }
.check-line { grid-column: span 6; display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: #d6d3cc; cursor: pointer; }
.check-line input { width: 18px; height: 18px; accent-color: var(--blue); margin-top: 2px; flex-shrink: 0; }
.ok-msg { background: rgba(62,224,127,.12); border: 1px solid rgba(62,224,127,.4); color: #9ff0bf; padding: 14px 16px; border-radius: 14px; margin-bottom: 18px; font-weight: 600; }

/* Área do cliente */
.conta-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; flex-wrap: wrap; margin: 10px 0 24px; }
.saldo-card { min-width: 280px; padding: 18px 22px; border-radius: 20px; background: linear-gradient(135deg, var(--blue), #0784b6); color: var(--on-blue); box-shadow: 0 14px 40px rgba(1,175,239,.25); }
.saldo-card strong { display: block; font-family: var(--display); font-weight: 400; font-size: 54px; line-height: 1; margin: 4px 0 8px; }
.saldo-card strong span { font-size: 22px; }
.saldo-card small { font-weight: 700; font-size: .78rem; }
.barra { height: 7px; border-radius: 9px; background: rgba(4,19,28,.25); overflow: hidden; margin-bottom: 6px; }
.barra i { display: block; height: 100%; background: var(--yellow-logo, #fcf404); border-radius: 9px; }
.conta-tabs { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 4px 2px 12px; margin-bottom: 14px; }
.conta-tabs a { padding: 10px 18px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); font-weight: 600; white-space: nowrap; font-size: .9rem; transition: .2s; }
.conta-tabs a.on { background: var(--blue); color: var(--on-blue); border-color: var(--blue); }
.conta-tabs a.sair { margin-left: auto; color: var(--muted); }
.conta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.conta-grid .panel { margin-bottom: 0; }
.conta-grid.dois { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); margin-bottom: 20px; }
.ped-linha { display: flex; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--line); }
.ped-linha .muted { margin-left: auto; }
.tag-st { font-size: .72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; background: rgba(255,255,255,.08); white-space: nowrap; }
.st-novo { background: rgba(255,203,5,.15); color: var(--yellow); }
.st-preparo, .st-saiu, .st-pronto { background: rgba(1,175,239,.15); color: var(--blue); }
.st-concluido { background: rgba(62,224,127,.14); color: #3ee07f; }
.st-cancelado { background: rgba(253,64,82,.14); color: var(--red); }
.ped-card { padding: 16px 0; border-top: 1px solid var(--line); }
.ped-top { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 6px; }
.ped-top .tag-st { margin-left: auto; }
.ped-foot { display: flex; align-items: center; gap: 10px; margin-top: 10px; flex-wrap: wrap; }
.ped-foot .spacer { flex: 1; }
.pts-tag { color: var(--yellow); font-weight: 700; }
.mov { display: flex; align-items: center; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); }
.mov > div { flex: 1; display: grid; min-width: 0; }
.mov small { color: var(--muted); font-size: .8rem; }
.mov-ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.05); font-size: 18px; flex-shrink: 0; }
.mov .mais { color: #3ee07f; } .mov .menos { color: var(--red); } .mov .pend { color: var(--muted); font-size: .8rem; font-weight: 600; }

/* Prêmios */
.premios-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 16px; }
.premio { background: var(--card); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; transition: transform .3s var(--ease), border-color .3s; }
.premio:hover { transform: translateY(-4px); border-color: rgba(1,175,239,.5); }
.premio img, .premio .ph { width: 100%; aspect-ratio: 4/3; object-fit: cover; background: #222; display: grid; place-items: center; font-size: 40px; }
.premio.bloq img { filter: grayscale(.8) brightness(.6); }
.premio-body { padding: 12px 14px 14px; display: grid; gap: 6px; flex: 1; align-content: start; }
.premio-body b { font-size: .92rem; line-height: 1.25; }
.premio .pts { color: var(--yellow); font-weight: 800; }
.premio .btn { justify-self: start; }

/* Indique e ganhe */
.link-box { display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.04); border: 1px dashed var(--blue); border-radius: 14px; padding: 12px 14px; margin: 16px 0; }
.link-box code { flex: 1; word-break: break-all; font-size: .9rem; }
.share { display: flex; gap: 10px; flex-wrap: wrap; }
.sh { padding: 10px 18px; border-radius: 999px; font-weight: 700; color: #fff; font-size: .88rem; }
.sh.wa { background: #25d366; } .sh.fb { background: #1877f2; } .sh.x { background: #000; border: 1px solid #333; }

/* Página da fidelidade */
.fid-hero { text-align: center; padding: 30px 0 10px; }
.fid-hero .lead { margin: 14px auto 26px; }
.passos { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 16px; margin-top: 40px; }
.passo { padding: 22px; border-radius: 18px; background: var(--card); border: 1px solid var(--line); display: grid; gap: 6px; }
.passo span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: var(--on-blue); font-weight: 800; margin-bottom: 6px; }
.passo small { color: var(--muted); }
.regulamento { color: #cfccc5; font-size: .92rem; line-height: 1.7; }

/* Teaser na home */
.fid-teaser { display: grid; grid-template-columns: 1.1fr 1fr; gap: 30px; align-items: center; padding: 44px; border-radius: 28px;
  background: radial-gradient(circle at 90% 10%, rgba(252,244,4,.18), transparent 50%), linear-gradient(135deg, #0a4d6b, #052a3b); border: 1px solid rgba(1,175,239,.35); }
.fid-teaser h2 { font-family: var(--display); font-weight: 400; font-size: clamp(42px, 5vw, 66px); line-height: .95; margin-bottom: 12px; }
.fid-teaser .premios-mini { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.premios-mini a { background: rgba(0,0,0,.35); border-radius: 14px; overflow: hidden; border: 1px solid rgba(255,255,255,.08); transition: transform .3s var(--ease); }
.premios-mini a:hover { transform: translateY(-4px); }
.premios-mini img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.premios-mini span { display: block; padding: 8px 10px; font-size: .75rem; font-weight: 700; }
.premios-mini em { font-style: normal; color: var(--yellow); display: block; }

/* Carrinho: prêmios e pontos */
.ci-premio { display: inline-block; font-size: .7rem; font-weight: 800; color: #111; background: var(--yellow-logo, #fcf404); padding: 2px 8px; border-radius: 999px; margin-left: 6px; vertical-align: middle; }
.pts-resumo { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .85rem; padding: 10px 12px; border-radius: 12px; background: rgba(252,244,4,.08); border: 1px solid rgba(252,244,4,.25); }
.pts-resumo b { color: var(--yellow); }
.pts-resumo.erro-pts { background: rgba(253,64,82,.1); border-color: rgba(253,64,82,.4); }
.add-btn.resgate { background: var(--yellow-logo, #fcf404); color: #111; }

@media (max-width: 900px) {
  .auth-wrap, .fid-teaser { grid-template-columns: 1fr; }
  .fid-teaser { padding: 28px 22px; }
  .saldo-card { width: 100%; }
  .conta-txt small { display: none; }
}
@media (max-width: 820px) {
  .conta-btn .conta-txt { display: none; }
  .conta-btn { padding: 4px; }
  .conta-btn.entrar { padding: 9px; }
}

/* Menu do topo com o botão da conta: não quebrar linha em telas médias */
.brand span, .nav-links a { white-space: nowrap; }
@media (max-width: 1180px) and (min-width: 821px) {
  .nav-inner { gap: 16px; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: .88rem; }
  .brand { font-size: 24px; }
  .nav .conta-txt small { display: none; }
}
@media (max-width: 960px) and (min-width: 821px) {
  .nav-cta { display: none; }
}

/* ---------- Janelinha de login (botão "Entrar") ---------- */
.conta-drop { position: relative; }
.conta-pop { position: absolute; right: 0; top: calc(100% + 12px); z-index: 150; width: 310px; padding: 20px; border-radius: 18px;
  background: #18181b; border: 1px solid var(--line); box-shadow: 0 24px 60px rgba(0,0,0,.6); animation: popIn .25s var(--ease); }
.conta-pop[hidden] { display: none; }
.conta-pop::before { content: ""; position: absolute; top: -7px; right: 22px; width: 12px; height: 12px; background: #18181b;
  border-left: 1px solid var(--line); border-top: 1px solid var(--line); transform: rotate(45deg); }
@keyframes popIn { from { opacity: 0; transform: translateY(-8px) scale(.97); } }
.conta-pop form { display: grid; gap: 10px; }
.pop-tit { font-weight: 800; font-size: 1.05rem; }
.pop-sub { color: var(--muted); font-size: .82rem; margin-top: -6px; margin-bottom: 4px; }
.conta-pop label { display: grid; gap: 5px; font-size: .78rem; font-weight: 700; color: #cfccc5; }
.conta-pop input { background: rgba(255,255,255,.05); border: 1px solid var(--line); border-radius: 10px; color: var(--text);
  font: inherit; font-size: .92rem; font-weight: 500; padding: 11px 12px; }
.conta-pop input:focus { outline: none; border-color: var(--blue); }
.conta-pop .btn { width: 100%; margin-top: 4px; }
.pop-erro { color: #ffb3bb; background: rgba(253,64,82,.12); border-radius: 10px; padding: 8px 10px; font-size: .8rem; font-weight: 600; }
.pop-link { justify-self: center; font-size: .8rem; color: var(--muted); }
.pop-link:hover { color: var(--text); text-decoration: underline; }
.pop-criar { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); text-align: center; font-size: .85rem; color: var(--muted); }
@media (max-width: 820px) {
  .conta-pop { position: fixed; left: 12px; right: 12px; top: calc(var(--nav-h, 64px) + 8px); width: auto; }
  .conta-pop::before { display: none; }
}

/* Aba Início: cartões com o botão sempre alinhado embaixo */
.conta-grid .panel { display: flex; flex-direction: column; }
.conta-grid .panel .card-acao { margin-top: auto; align-self: flex-start; }
.conta-grid .panel > p { margin-bottom: 16px; }

/* Janela (popup) do regulamento */
.dlg { margin: auto; width: min(640px, calc(100% - 24px)); max-height: 85vh; padding: 0; border: 1px solid var(--line); border-radius: 22px;
  background: #18181b; color: var(--text); box-shadow: 0 30px 80px rgba(0,0,0,.7); overflow: hidden; }
.dlg[open] { display: flex; flex-direction: column; animation: rise .35s var(--ease); }
.dlg::backdrop { background: rgba(0,0,0,.7); backdrop-filter: blur(6px); }
.dlg-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.dlg-head h2 { font-size: 1.15rem; }
.dlg-head .modal-close { position: static; flex-shrink: 0; }
.dlg-body { padding: 20px 22px; overflow-y: auto; }
.dlg-foot { padding: 14px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }

/* ---------- Meus dados: alinhamento, botões no fundo, CEP ---------- */
.f .dica { font-weight: 500; font-size: .74rem; margin-top: -1px; }
.conta-grid.dois .panel .fields { margin-bottom: 18px; align-items: start; }
.conta-grid.dois .panel .btn-fundo { margin-top: auto; width: 100%; }
.form-botoes { grid-column: span 6; display: flex; gap: 10px; justify-content: flex-end; margin-top: 4px; }
.form-botoes .btn { min-width: 160px; }
@media (max-width: 600px) { .form-botoes .btn { flex: 1; min-width: 0; } }
.cep-msg { font-size: .74rem; font-weight: 600; min-height: 0; }
.cep-msg:empty { display: none; }
.cep-msg.carregando { color: var(--muted); }
.cep-msg.ok { color: #3ee07f; }
.cep-msg.erro { color: #ffb3bb; }
/* Cadastro: rótulos de tamanhos diferentes não desalinham os campos lado a lado */
.auth-card .fields { align-items: end; }
/* Caixa de pontos escondida quando não há o que mostrar */
.pts-resumo[hidden] { display: none !important; }
