/* ============================================================
   MeuPedido - estilos base
   ============================================================ */
:root {
  /* paleta "massa & molho": terracota (molho) como cor de acao,
     creme (massa) como fundo, dourado como acento.
     --verde mantem o NOME por compatibilidade, mas a cor e o molho;
     cada loja ainda pode sobrescrever pela cor do tema. */
  --verde:      #c2410c;             /* molho / terracota */
  --verde-esc:  #9a3412;
  --verde-claro:#ffedd5;             /* creme quente */
  --massa:      #eab308;             /* dourado da massa (acentos) */
  --tinta:      #292524;             /* tinta quente (stone) */
  --cinza:      #7c7369;
  --cinza-cl:   #f6f0e7;             /* creme claro */
  --borda:      #eadfd0;
  --branco:     #fffdf9;
  --fundo:      #faf5ed;             /* fundo geral cor de massa */
  --vidro:      rgba(255, 252, 246, .78); /* vidro fosco */
  --radius:     14px;
  --sombra:     0 10px 30px rgba(64, 42, 20, .08);
  --max:        1080px;
  font-synthesis: none;
}

* { box-sizing: border-box; }

/* Garante que o atributo [hidden] sempre esconda, mesmo com display: flex nas classes */
[hidden] { display: none !important; }

html, body {
  margin: 0;
  padding: 0;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--tinta);
  background: var(--branco);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--verde-esc); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { max-width: var(--max); margin: 0 auto; padding: 0 20px; }

/* ---- Topo ---- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--borda);
}
.topbar .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 1.25rem; }
.logo .dot { width: 12px; height: 12px; border-radius: 50%; background: var(--verde); }
.nav-links { display: flex; align-items: center; gap: 18px; }

/* ---- Botoes ---- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 20px; border-radius: 12px;
  font-weight: 700; font-size: .95rem; cursor: pointer;
  border: 1px solid transparent; transition: .15s;
}
.btn:active { transform: scale(.98); }
.btn-primary { background: var(--verde); color: #fff; box-shadow: 0 6px 16px color-mix(in srgb, var(--verde) 32%, transparent); }
.btn-primary:hover { filter: brightness(1.07); text-decoration: none; }
.btn-ghost { background: #fff; color: var(--tinta); border-color: var(--borda); }
.btn-ghost:hover { background: var(--cinza-cl); text-decoration: none; }
.btn-lg { padding: 15px 28px; font-size: 1.05rem; }

/* ---- Hero ---- */
.hero { padding: 84px 0 64px; text-align: center; }
.badge {
  display: inline-block; background: var(--verde-claro); color: var(--verde-esc);
  font-weight: 600; font-size: .82rem; padding: 6px 14px; border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.4rem); line-height: 1.1; margin: 0 0 18px; letter-spacing: -.02em; }
.hero h1 .g { color: var(--verde); }
.hero p.sub { font-size: 1.2rem; color: var(--cinza); max-width: 620px; margin: 0 auto 32px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Features ---- */
.features { padding: 40px 0 90px; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.card {
  background: var(--branco); border: 1px solid var(--borda); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--sombra);
}
.card .ico { font-size: 1.8rem; margin-bottom: 12px; }
.card h3 { margin: 0 0 8px; font-size: 1.1rem; }
.card p { margin: 0; color: var(--cinza); font-size: .95rem; }

/* ---- Rodape ---- */
.footer { border-top: 1px solid var(--borda); padding: 30px 0; color: var(--cinza); font-size: .9rem; }
.footer .container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ---- Formularios (auth) ---- */
.auth-wrap { min-height: calc(100vh - 64px); display: grid; place-items: center; padding: 40px 20px; }
.auth-card {
  width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--borda);
  border-radius: var(--radius); box-shadow: var(--sombra); padding: 34px;
}
.auth-card h2 { margin: 0 0 6px; }
.auth-card .muted { color: var(--cinza); margin: 0 0 24px; font-size: .95rem; }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.field input {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--borda); border-radius: 12px;
  font-size: 1rem; outline: none; background: #fbfcfc; transition: border-color .15s, box-shadow .15s, background .15s;
}
.field input:focus { border-color: var(--verde); background: #fff; box-shadow: 0 0 0 3px var(--verde-claro); }
.btn-block { width: 100%; justify-content: center; }

/* ---- Alertas ---- */
.alert { padding: 12px 16px; border-radius: 10px; margin-bottom: 18px; font-size: .92rem; }
.alert-erro { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; }
.alert-ok  { background: var(--verde-claro); color: var(--verde-esc); border: 1px solid #bbf7d0; }

/* ---- Erros ---- */
.err-page { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 40px; }
.err-page .code { font-size: 5rem; font-weight: 800; color: var(--verde); line-height: 1; }

@media (max-width: 760px) {
  .grid { grid-template-columns: 1fr; }
  .nav-links a.hide-sm { display: none; }
}

/* ============================================================
   PAINEL DO VENDEDOR (admin)
   ============================================================ */
.admin-body { display: flex; min-height: 100vh; background: var(--fundo); }

.sidebar {
  width: 244px; background: linear-gradient(180deg, #211a15 0%, #2d241d 100%); color: #e2e8f0;
  display: flex; flex-direction: column; padding: 20px 12px 12px; position: sticky; top: 0; height: 100vh;
}
.sidebar .logo { margin: 2px 8px 16px; color: #fff; flex-shrink: 0; }
.sidebar .logo .dot { box-shadow: 0 0 0 4px color-mix(in srgb, var(--verde) 30%, transparent); }
/* meio da sidebar: SEM scroll — o accordion mantém tudo compacto */
.sidebar-scroll { flex: 1; min-height: 0; overflow: hidden; padding-right: 2px; }
.menu { display: flex; flex-direction: column; gap: 3px; }
.menu .item {
  display: block; padding: 10px 14px; border-radius: 11px; color: #cbd5e1;
  font-weight: 500; font-size: .93rem; transition: background .15s, color .15s;
}
.menu .item:hover { background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }
.menu .item.ativo { background: var(--verde); color: #fff; font-weight: 600; box-shadow: 0 6px 16px color-mix(in srgb, var(--verde) 40%, transparent); }

/* grupos retráteis (accordion) */
.menu-grupo { display: flex; flex-direction: column; }
.menu-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: transparent; border: none; color: #cbd5e1; font-weight: 500; font-size: .93rem;
  padding: 10px 14px; border-radius: 11px; cursor: pointer; text-align: left; font-family: inherit;
}
.menu-head:hover { background: rgba(255,255,255,.08); color: #fff; }
.mh-seta { font-size: .72rem; opacity: .6; transition: transform .2s; }
.menu-grupo.aberto > .menu-head { color: #fff; }
.menu-grupo.aberto > .menu-head .mh-seta { transform: rotate(180deg); }
.menu-sub { display: flex; flex-direction: column; gap: 3px; max-height: 0; overflow: hidden; transition: max-height .22s ease; }
.menu-grupo.aberto > .menu-sub { max-height: 260px; margin-top: 3px; }
.menu-sub .item { padding-left: 32px; font-size: .9rem; position: relative; }
.menu-sub .item::before { content: ''; position: absolute; left: 18px; top: 50%; width: 5px; height: 5px; border-radius: 50%; background: rgba(255,255,255,.25); transform: translateY(-50%); }
.menu-sub .item.ativo::before { background: #fff; }
.ver-loja {
  display: block; text-align: center; margin: 10px 2px 4px; padding: 9px;
  border: 1px dashed rgba(255,255,255,.32); border-radius: 11px; color: #e2e8f0; font-size: .86rem;
}
.ver-loja:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.sidebar-foot {
  flex-shrink: 0; border-top: 1px solid rgba(255,255,255,.12); padding-top: 12px; margin-top: 10px;
  display: flex; align-items: center; gap: 8px;
}
.side-perfil { display: flex; align-items: center; gap: 10px; flex: 1; min-width: 0; padding: 6px; border-radius: 11px; }
.side-perfil:hover { background: rgba(255,255,255,.08); text-decoration: none; }
.sp-avatar { flex-shrink: 0; width: 38px; height: 38px; border-radius: 50%; background: var(--verde); color: #fff; font-weight: 800; display: flex; align-items: center; justify-content: center; font-size: 1.05rem; }
.sp-info { display: flex; flex-direction: column; min-width: 0; }
.sp-info strong { color: #fff; font-size: .88rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sp-info small { color: #94a3b8; font-size: .75rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-sair { flex-shrink: 0; width: 38px; height: 38px; border-radius: 10px; display: flex; align-items: center; justify-content: center; color: #cbd5e1; background: rgba(255,255,255,.06); font-size: 1.1rem; }
.side-sair:hover { background: #7f1d1d; color: #fff; text-decoration: none; }

.conteudo { flex: 1; width: 100%; padding: 30px 40px 60px; max-width: 1280px; margin-inline: auto; }

.page-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 24px; flex-wrap: wrap; gap: 12px; }
.page-head h1 { margin: 0 0 4px; font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; }
.muted { color: var(--cinza); }
.opt { color: var(--cinza); font-weight: 400; font-size: .85em; }

.badge-trial { background: #fef3c7; color: #92400e; font-weight: 600; font-size: .85rem; padding: 8px 14px; border-radius: 999px; white-space: nowrap; }

.cards-linha { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: #fff; border: none; border-radius: 16px; padding: 20px; box-shadow: 0 4px 16px rgba(2,6,23,.06); border-top: 3px solid var(--verde); }
.stat-num { display: block; font-size: 1.75rem; font-weight: 800; color: var(--tinta); letter-spacing: -.02em; }
.stat-lbl { color: var(--cinza); font-size: .82rem; text-transform: uppercase; letter-spacing: .05em; }

.cta-box { background: #fff; border: none; border-radius: 18px; padding: 26px; margin-top: 22px; box-shadow: 0 4px 16px rgba(2,6,23,.06); }
.cta-box h3 { margin: 0 0 6px; }
.cta-box p { margin: 0 0 16px; }

.tabela { width: 100%; border-collapse: collapse; background: #fff; border: none; border-radius: 16px; overflow: hidden; box-shadow: 0 4px 16px rgba(2,6,23,.06); }
.tabela th, .tabela td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--borda); font-size: .93rem; }
.tabela th { background: var(--cinza-cl); color: var(--cinza); font-weight: 600; }
.tabela tr:last-child td { border-bottom: none; }
.pill { background: var(--verde-claro); color: var(--verde-esc); padding: 3px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; }

/* Formularios do painel */
.form-card { background: #fff; border: none; border-radius: 18px; padding: 28px; max-width: 620px; box-shadow: 0 4px 16px rgba(2,6,23,.06); }
.form-card .sec { margin: 26px 0 14px; padding-bottom: 8px; border-bottom: 1px solid var(--borda); font-size: 1rem; color: var(--cinza); }
.form-card .sec:first-child { margin-top: 0; }
.field-linha { display: flex; gap: 16px; }
.hint { display: block; margin-top: 6px; color: var(--cinza); font-size: .84rem; }
.hint.ok { color: var(--verde-esc); font-weight: 600; }
.hint.erro { color: #b91c1c; font-weight: 600; }

.slug-input { display: flex; align-items: stretch; border: 1px solid var(--borda); border-radius: 10px; overflow: hidden; }
.slug-input:focus-within { border-color: var(--verde); box-shadow: 0 0 0 3px var(--verde-claro); }
.slug-input .prefixo { background: var(--cinza-cl); color: var(--cinza); padding: 12px 12px; font-size: .95rem; white-space: nowrap; display: flex; align-items: center; }
.slug-input input { border: none; box-shadow: none !important; flex: 1; }

.checks { display: flex; gap: 18px; flex-wrap: wrap; }
.chk { display: flex; align-items: center; gap: 7px; font-weight: 500; cursor: pointer; }
.chk input { width: 18px; height: 18px; accent-color: var(--verde); }
input.cor { width: 60px; height: 44px; padding: 4px; cursor: pointer; }

/* select e file no padrao dos inputs */
.field select {
  width: 100%; padding: 12px 14px; border: 1px solid var(--borda); border-radius: 10px;
  font-size: 1rem; background: #fff; outline: none;
}
.field select:focus { border-color: var(--verde); box-shadow: 0 0 0 3px var(--verde-claro); }
.field input[type=file] { width: 100%; padding: 10px; border: 1px dashed var(--borda); border-radius: 10px; background: var(--cinza-cl); }
.foto-atual { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.foto-atual img { width: 64px; height: 64px; object-fit: cover; border-radius: 10px; border: 1px solid var(--borda); }

/* Categorias */
.cat-lista { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.cat-tag { display: inline-flex; align-items: center; gap: 8px; background: var(--cinza-cl); border: 1px solid var(--borda); border-radius: 999px; padding: 6px 8px 6px 14px; font-weight: 500; font-size: .9rem; }
.cat-tag form { display: inline; }
.cat-tag button { border: none; background: #e2e8f0; color: var(--cinza); width: 20px; height: 20px; border-radius: 50%; cursor: pointer; font-size: .72rem; line-height: 1; }
.cat-tag button:hover { background: #fecaca; color: #b91c1c; }
.cat-add { display: flex; gap: 10px; }
.cat-add input { flex: 1; padding: 11px 14px; border: 1px solid var(--borda); border-radius: 10px; font-size: .95rem; }
.cat-add input:focus { border-color: var(--verde); box-shadow: 0 0 0 3px var(--verde-claro); outline: none; }

/* Lista de produtos */
.cat-titulo { font-size: 1.15rem; margin: 28px 0 12px; color: var(--tinta); }
.prod-lista { display: flex; flex-direction: column; gap: 10px; }
.prod-item { display: flex; align-items: center; gap: 14px; background: #fff; border: none; border-radius: 16px; padding: 12px 16px; box-shadow: 0 3px 12px rgba(2,6,23,.05); transition: transform .12s, box-shadow .15s; }
.prod-item:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(2,6,23,.09); }
.prod-item.indisponivel { opacity: .6; }
.prod-foto { width: 56px; height: 56px; border-radius: 10px; overflow: hidden; background: var(--cinza-cl); display: grid; place-items: center; flex-shrink: 0; }
.prod-foto img { width: 100%; height: 100%; object-fit: cover; }
.prod-foto .sem-foto { font-size: 1.4rem; }
.prod-info { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.prod-info strong { font-size: 1rem; }
.prod-desc { color: var(--cinza); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prod-preco { color: var(--verde-esc); font-weight: 700; font-size: .95rem; }
.prod-acoes { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.prod-acoes form { display: inline; }
.mini { display: inline-block; padding: 7px 12px; border-radius: 8px; font-size: .84rem; font-weight: 600; border: 1px solid var(--borda); background: #fff; color: var(--tinta); cursor: pointer; text-decoration: none; }
.mini:hover { background: var(--cinza-cl); text-decoration: none; }
.mini.on { background: var(--verde-claro); color: var(--verde-esc); border-color: #bbf7d0; }
.mini.off { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.mini.danger:hover { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

/* elementos do menu-gaveta: só existem no celular (escondidos no desktop) */
.mob-bar, .nav-overlay, .mob-fechar { display: none; }
.side-topo { display: contents; } /* no desktop, o logo se comporta como antes */

@media (max-width: 760px) {
  /* barra superior fixa com o "puxador" (hamburger) */
  .mob-bar { display: flex; align-items: center; gap: 12px; position: fixed; top: 0; left: 0; right: 0; height: 54px;
    padding: 0 14px; background: #fff; border-bottom: 1px solid var(--borda); z-index: 40; }
  .mob-bar .logo { color: var(--tinta); font-size: 1.1rem; }
  .mob-abrir { background: none; border: none; font-size: 1.55rem; line-height: 1; color: var(--tinta); cursor: pointer; padding: 2px 4px; }

  /* a sidebar vira gaveta que desliza da esquerda */
  .sidebar { position: fixed; top: 0; left: 0; height: 100dvh; width: 274px; max-width: 84vw;
    transform: translateX(-100%); transition: transform .25s ease; z-index: 60; padding: 16px 12px 12px; }
  body.nav-open .sidebar { transform: none; box-shadow: 10px 0 44px rgba(0,0,0,.45); }
  .sidebar-scroll { overflow-y: auto; } /* na gaveta pode rolar se precisar */
  .side-topo { display: flex; align-items: center; justify-content: space-between; margin-bottom: 6px; }
  .side-topo .logo { margin: 0; }
  .mob-fechar { display: flex; align-items: center; justify-content: center; width: 34px; height: 34px; border: none;
    border-radius: 9px; background: rgba(255,255,255,.08); color: #cbd5e1; font-size: .95rem; cursor: pointer; }

  /* fundo escuro atrás da gaveta */
  .nav-overlay { display: block; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 55;
    opacity: 0; pointer-events: none; transition: opacity .25s; }
  body.nav-open .nav-overlay { opacity: 1; pointer-events: auto; }

  /* conteúdo ocupa tudo, com espaço pro topo fixo */
  .conteudo { padding: 70px 16px 40px; max-width: none; margin: 0; }
  .cards-linha { grid-template-columns: 1fr; }
  .field-linha { flex-direction: column; gap: 0; }
  .prod-item { flex-wrap: wrap; }
  .prod-acoes { width: 100%; justify-content: flex-end; }
}

/* Dashboard de vendas */
.dash-vendas { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-bottom: 18px; }
.dash-status { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.dash-st { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px; padding: 9px 13px; box-shadow: 0 3px 10px rgba(2,6,23,.05); color: var(--tinta); }
.dash-st:hover { text-decoration: none; box-shadow: 0 6px 16px rgba(2,6,23,.1); }
.dash-st strong { font-size: 1.05rem; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.dash-bloco { max-width: none; }
@media (max-width: 900px){ .dash-grid { grid-template-columns: 1fr; } }
.dash-top { display: flex; align-items: center; gap: 12px; padding: 8px 0; }
.dt-pos { font-weight: 800; color: var(--cinza); min-width: 26px; }
.dt-info { flex: 1; min-width: 0; }
.dt-nome { display: block; font-weight: 600; font-size: .93rem; margin-bottom: 4px; }
.dt-barra { display: block; height: 7px; background: var(--cinza-cl); border-radius: 4px; overflow: hidden; }
.dt-barra i { display: block; height: 100%; background: var(--verde); border-radius: 4px; }
.dt-qtd { color: var(--verde-esc); }
.dash-rec { display: flex; align-items: center; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--cinza-cl); color: var(--tinta); }
.dash-rec:last-child { border-bottom: none; }
.dash-rec:hover { text-decoration: none; background: #fbfcfc; }
.dr-num { font-weight: 800; color: var(--cinza); min-width: 40px; font-size: .9rem; }
.dr-info { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.dr-info span { font-size: .92rem; }
.dr-total { color: var(--verde-esc); font-size: .92rem; }
.dash-ver-todos { float: right; font-size: .82rem; font-weight: 600; }

/* paginacao da lista de pedidos */
.paginacao { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 20px; }

/* Pedidos (painel) */
.abas { display: flex; gap: 6px; border-bottom: 1px solid var(--borda); margin-bottom: 20px; flex-wrap: wrap; }
.aba { padding: 10px 16px; border-radius: 10px 10px 0 0; color: var(--cinza); font-weight: 600; font-size: .93rem; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.aba:hover { background: var(--cinza-cl); text-decoration: none; }
.aba.ativa { color: var(--verde-esc); border-bottom-color: var(--verde); }
.aba-badge { display: inline-block; background: var(--verde); color: #fff; font-size: .72rem; padding: 1px 7px; border-radius: 999px; margin-left: 4px; }

.live-hint { font-size: .82rem; margin: -8px 0 10px; }
.auto-print { background: #fff; border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; box-shadow: 0 3px 10px rgba(2,6,23,.05); }
.auto-print .chk { font-weight: 600; font-size: .92rem; }
.auto-print .hint { display: block; margin-top: 6px; margin-left: 26px; }
.auto-print code { background: var(--cinza-cl); padding: 1px 6px; border-radius: 5px; font-size: .82rem; }

/* modal generico */
.modal-fundo { position: fixed; inset: 0; background: rgba(20,14,8,.55); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; padding: 18px; z-index: 999; }
.modal-fundo[hidden] { display: none; }
.modal-cx { background: #fff; border-radius: 18px; max-width: 520px; width: 100%; max-height: 88vh; overflow-y: auto; padding: 26px 24px; position: relative; box-shadow: 0 24px 60px rgba(2,6,23,.3); }
.modal-x { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border: none; border-radius: 50%; background: var(--cinza-cl); font-size: 1rem; cursor: pointer; color: var(--tinta); }
.modal-cx h2 { font-size: 1.25rem; margin-bottom: 8px; padding-right: 30px; }
.tut { margin: 16px 0; padding-left: 20px; display: grid; gap: 10px; }
.tut li { line-height: 1.5; font-size: .93rem; }
.tut ul { margin: 8px 0 0; padding-left: 18px; display: grid; gap: 5px; }
.tut code { background: var(--verde-claro); color: var(--verde-esc); padding: 2px 6px; border-radius: 5px; font-size: .82rem; word-break: break-all; }
.tut-nota { background: var(--verde-claro); color: var(--verde-esc); border-radius: 10px; padding: 11px 13px; font-size: .86rem; margin-bottom: 18px; }

/* Pop-up de novo pedido (canto superior direito, todas as paginas do painel) */
.toast-pedido { position: fixed; top: 18px; right: 18px; z-index: 200; display: flex; align-items: center; gap: 16px;
  background: var(--tinta); color: #fff; padding: 20px 22px; border-radius: 16px; box-shadow: 0 14px 40px rgba(2,6,23,.45);
  cursor: pointer; max-width: min(420px, calc(100vw - 36px)); border: 2px solid var(--massa);
  opacity: 0; transform: translateX(24px); transition: opacity .35s, transform .35s; }
.toast-pedido.show { opacity: 1; transform: none; }
.toast-pedido .tp-ico { font-size: 2.3rem; animation: sino .8s ease 3; flex-shrink: 0; }
.toast-pedido .tp-txt { display: flex; flex-direction: column; gap: 3px; line-height: 1.35; min-width: 0; }
.toast-pedido .tp-txt strong { color: #fcd34d; font-size: 1.15rem; }
.toast-pedido .tp-txt span { font-size: 1.02rem; }
.toast-pedido .tp-txt em { font-style: normal; font-size: .8rem; opacity: .65; }
.toast-pedido .tp-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: none; border-radius: 50%;
  background: rgba(255,255,255,.14); color: #fff; font-size: .85rem; line-height: 1; cursor: pointer; }
.toast-pedido .tp-x:hover { background: rgba(255,255,255,.28); }
@keyframes sino { 0%,100% { transform: rotate(0); } 25% { transform: rotate(-18deg); } 60% { transform: rotate(14deg); } }
.pedidos-lista { display: flex; flex-direction: column; gap: 10px; }
.pedido-card { display: flex; align-items: center; gap: 14px; background: #fff; border: none; border-radius: 16px; padding: 14px 18px; color: var(--tinta); box-shadow: 0 3px 12px rgba(2,6,23,.05); transition: transform .12s, box-shadow .15s; }
.pedido-card:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 10px 24px rgba(2,6,23,.1); }
.pc-num { font-weight: 800; font-size: 1.05rem; color: var(--cinza); min-width: 46px; }
.pc-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pc-info strong { font-size: 1rem; }
.pc-info .muted { font-size: .85rem; }
.pc-total { font-weight: 700; color: var(--verde-esc); }

/* pills de status coloridas */
.pill.status-novo         { background: #dbeafe; color: #1e40af; }
.pill.status-confirmado   { background: #e0e7ff; color: #3730a3; }
.pill.status-em_preparo   { background: #fef3c7; color: #92400e; }
.pill.status-pronto       { background: #f3e8ff; color: #6b21a8; }
.pill.status-saiu_entrega { background: #cffafe; color: #155e75; }
.pill.status-entregue     { background: var(--verde-claro); color: var(--verde-esc); }
.pill.status-cancelado    { background: #fee2e2; color: #991b1b; }

/* impressao + pagamento (detalhe do pedido) */
.imp-botoes { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 18px; }
.imp-botoes .btn { padding: 8px 14px; font-size: .88rem; }
.pag-card { max-width: none; margin-bottom: 18px; border-left: 4px solid var(--verde); }
.pag-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.pag-grid > div { display: flex; flex-direction: column; }
.pag-grid span { font-size: .74rem; text-transform: uppercase; letter-spacing: .04em; color: var(--cinza); }
.pag-grid strong { font-size: .98rem; }
.pag-link { display: inline-block; font-weight: 600; font-size: .88rem; }
.pag-acoes { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 16px; }

/* detalhe do pedido */
.det-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.det-item { display: flex; align-items: flex-start; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--borda); }
.det-qtd { font-weight: 700; color: var(--verde-esc); min-width: 30px; }
.det-item-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.det-item-info .muted { font-size: .85rem; }
.det-item-preco { font-weight: 600; }
.det-totais { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; }
.det-totais > div { display: flex; justify-content: space-between; font-size: .95rem; }
.det-total { font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--borda); padding-top: 8px; }
.det-acoes { margin-top: 18px; }
.det-botoes { display: flex; gap: 10px; flex-wrap: wrap; }
.det-cancelar:hover { background: #fef2f2; color: #b91c1c; border-color: #fecaca; }

/* WhatsApp (painel) */
.wa-status { display: flex; align-items: center; gap: 14px; }
.wa-bolinha { width: 16px; height: 16px; border-radius: 50%; background: #d6c9b8; flex-shrink: 0; }
.wa-bolinha.on { background: #22c55e; box-shadow: 0 0 0 5px rgba(34,197,94,.18); }
.wa-qr { width: 240px; height: 240px; border-radius: 14px; border: 1px solid var(--borda); background: #fff; padding: 8px; display: block; }
.wa-vars { background: var(--cinza-cl); border-radius: 12px; padding: 12px 14px; margin-bottom: 16px; font-size: .88rem; line-height: 2; }
.wa-vars code { background: var(--branco); border: 1px solid var(--borda); border-radius: 6px; padding: 2px 7px; margin: 0 3px; font-size: .82rem; color: var(--verde-esc); cursor: help; }
.wa-msg { border: 1px solid var(--borda); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; background: var(--branco); }
.wa-msg-head { display: flex; align-items: center; gap: 9px; cursor: pointer; margin-bottom: 9px; }
.wa-msg-head input { width: 18px; height: 18px; accent-color: var(--verde); }
.wa-msg textarea { width: 100%; padding: 11px 13px; border: 1.5px solid var(--borda); border-radius: 10px; font-family: inherit; font-size: .93rem; line-height: 1.5; resize: vertical; background: #fbfcfc; }
.wa-msg textarea:focus { border-color: var(--verde); box-shadow: 0 0 0 3px var(--verde-claro); outline: none; }
.wa-msg-corpo { display: flex; gap: 12px; align-items: flex-start; }
.wa-msg-corpo textarea { flex: 1; }
.wa-img { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 116px; flex-shrink: 0; }
.wa-img-prev { width: 100px; height: 100px; border-radius: 12px; object-fit: cover; border: 1px solid var(--borda); }
.wa-img-tag { font-size: .68rem; color: var(--cinza); font-weight: 600; }
.wa-img-tag.custom { color: var(--verde-esc); }
.wa-img-troca { padding: 6px 12px !important; font-size: .8rem !important; cursor: pointer; }
.wa-img-reset { font-size: .72rem; color: #b45309; display: flex; align-items: center; gap: 4px; cursor: pointer; }
@media (max-width: 620px){ .wa-msg-corpo { flex-direction: column; } .wa-img { flex-direction: row; width: auto; flex-wrap: wrap; } }
.cp-primeira.on { border-left: 4px solid var(--massa); }

/* Fotos da loja (painel) */
.ft-logo-linha { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; }
.ft-logo-prev { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; box-shadow: 0 4px 14px rgba(2,6,23,.15); flex-shrink: 0; }
.ft-logo-prev.vazia { display: flex; align-items: center; justify-content: center; font-size: 2.2rem; background: var(--cinza-cl); }
.ft-capa-prev { width: 190px; aspect-ratio: 16/9; border-radius: 14px; object-fit: cover; box-shadow: 0 4px 14px rgba(2,6,23,.15); flex-shrink: 0; }
.ft-capa-prev.vazia { display: flex; align-items: center; justify-content: center; font-size: 2rem; background: var(--cinza-cl); }
.ft-form { display: flex; flex-direction: column; gap: 10px; flex: 1; min-width: 220px; }
.ft-form input[type=file] { padding: 10px; border: 1.5px dashed var(--borda); border-radius: 12px; background: #fbfcfc; font-size: .9rem; }
.ft-form .btn { align-self: flex-start; }
.ft-capas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.ft-capa { position: relative; border-radius: 14px; overflow: hidden; box-shadow: 0 3px 12px rgba(2,6,23,.1); aspect-ratio: 16/9; }
.ft-capa img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ft-capa .ft-rm { position: absolute; top: 6px; right: 6px; width: 26px; height: 26px; border: none; border-radius: 50%; background: rgba(2,6,23,.65); color: #fff; cursor: pointer; font-size: .72rem; }
.ft-capa .ft-rm:hover { background: #b91c1c; }
.ft-capa .ft-num { position: absolute; bottom: 6px; left: 8px; background: rgba(2,6,23,.6); color: #fff; font-size: .7rem; font-weight: 700; padding: 2px 7px; border-radius: 999px; }

/* Areas de entrega (painel) */
.busca-cep { display: flex; gap: 10px; }
.busca-cep input { flex: 1; padding: 11px 14px; border: 1px solid var(--borda); border-radius: 10px; font-size: .95rem; }
.busca-cep input:focus { border-color: var(--verde); box-shadow: 0 0 0 3px var(--verde-claro); outline: none; }
.busca-cep .btn { white-space: nowrap; }
.sugestoes { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.chip { background: #fff; border: 1px solid var(--borda); border-radius: 999px; padding: 7px 13px; font-size: .86rem; cursor: pointer; transition: .12s; }
.chip:hover { background: var(--cinza-cl); }
.chip.add { background: var(--verde-claro); border-color: #bbf7d0; color: var(--verde-esc); font-weight: 600; }
.chip.add::after { content: ' ✓'; }

.bairros-lista { display: flex; flex-direction: column; gap: 8px; }
.bairro-row { display: flex; align-items: center; gap: 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--borda); border-radius: 10px; }
.bairro-row .bn { flex: 1; font-weight: 500; }
.bt { display: flex; align-items: center; gap: 6px; border: 1px solid var(--borda); border-radius: 8px; padding: 0 10px; background: #fff; }
.bt span { color: var(--cinza); font-size: .88rem; }
.bt input { border: none; outline: none; width: 74px; padding: 9px 0; font-size: .95rem; text-align: right; }
.bairro-row .rm { border: none; background: var(--cinza-cl); color: var(--cinza); width: 28px; height: 28px; border-radius: 8px; cursor: pointer; }
.bairro-row .rm:hover { background: #fecaca; color: #b91c1c; }
.add-manual { display: flex; gap: 10px; align-items: center; margin-top: 12px; }
.add-manual > input { flex: 1; padding: 11px 14px; border: 1px solid var(--borda); border-radius: 10px; font-size: .95rem; }
.add-manual > input:focus { border-color: var(--verde); box-shadow: 0 0 0 3px var(--verde-claro); outline: none; }

/* Editor de opcoes do produto (painel) */
.op-grupo { border: 1px solid var(--borda); border-radius: 12px; padding: 16px; margin-bottom: 14px; background: var(--cinza-cl); }
.op-grupo-head { display: flex; gap: 10px; margin-bottom: 10px; }
.op-grupo-nome { flex: 1; padding: 11px 14px; border: 1px solid var(--borda); border-radius: 10px; font-size: 1rem; font-weight: 600; }
.op-grupo-cfg { display: flex; gap: 14px; align-items: center; margin-bottom: 12px; flex-wrap: wrap; }
.op-tipo { padding: 9px 12px; border: 1px solid var(--borda); border-radius: 8px; background: #fff; font-size: .9rem; }
.op-opcoes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.op-opcao { display: flex; align-items: center; gap: 8px; }
.op-opcao .op-nome { flex: 1; padding: 10px 12px; border: 1px solid var(--borda); border-radius: 8px; background: #fff; }
.op-opcao .op-preco { width: 74px; border: none; outline: none; text-align: right; }
.op-grupo .rm { border: none; background: #fff; color: var(--cinza); width: 30px; height: 30px; border-radius: 8px; cursor: pointer; border: 1px solid var(--borda); flex-shrink: 0; }
.op-grupo .rm:hover { background: #fecaca; color: #b91c1c; }
.op-add-opcao { font-size: .88rem; padding: 8px 14px; }
.op-limites { display: inline-flex; align-items: center; gap: 6px; font-size: .9rem; color: var(--cinza); flex-wrap: wrap; }
.op-limites input { width: 56px; padding: 8px 10px; border: 1px solid var(--borda); border-radius: 8px; background: #fff; text-align: center; }
.op-limites small { color: var(--cinza); }

/* ============================================================
   VITRINE PUBLICA (cliente final) - mobile first
   ============================================================ */
.vit { max-width: 540px; margin: 0 auto; padding-bottom: 140px; background: var(--fundo); min-height: 100vh; }

/* Barra de navegacao inferior (fixa em todas as paginas da loja) */
.vit-nav-inf { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: min(540px, 100%); z-index: 55;
  display: flex; background: var(--vidro); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--borda); box-shadow: 0 -6px 20px rgba(64,42,20,.08);
  padding-bottom: env(safe-area-inset-bottom); }
.vni { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px 8px;
  color: var(--cinza); font-size: .7rem; font-weight: 600; text-decoration: none; transition: color .15s; }
.vni span { font-size: 1.35rem; line-height: 1; }
.vni:hover { text-decoration: none; }
.vni.ativo { color: var(--verde-esc); }
.vni.ativo span { transform: scale(1.08); }
.vit-header { color: #fff; padding: 30px 20px 34px; text-align: center; overflow: hidden; border-radius: 0 0 26px 26px;
  background: var(--verde);
  background: linear-gradient(158deg, var(--verde) 12%, color-mix(in srgb, var(--verde) 55%, #071a0d) 100%); }
.vit-header::before, .vit-header::after { content: ''; position: absolute; pointer-events: none; }
.vit-header::before { width: 210px; height: 210px; top: -26px; right: -34px; opacity: .22; background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 220 220%27%3E%3Cg fill=%27none%27 stroke=%27%23fff%27 stroke-width=%277%27 stroke-linecap=%27round%27%3E%3Cpath d=%27M18 165 Q60 105 112 110 T208 70%27/%3E%3Cpath d=%27M12 132 Q64 80 116 84 T212 42%27/%3E%3Cpath d=%27M30 195 Q72 130 124 134 T214 100%27/%3E%3C/g%3E%3Cg fill=%27%23fff%27%3E%3Ccircle cx=%27172%27 cy=%27168%27 r=%2715%27/%3E%3Ccircle cx=%27138%27 cy=%27185%27 r=%279%27/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; }
.vit-header::after  { width: 120px; height: 120px; bottom: -45px; left: -35px; background: rgba(255,255,255,.06); }
.vit-header > * { position: relative; z-index: 1; }
.vit-logo { width: 76px; height: 76px; border-radius: 50%; object-fit: cover; border: 3px solid rgba(255,255,255,.6); margin-bottom: 10px; }
.vit-header h1 { margin: 0 0 6px; font-size: 1.5rem; }
.vit-desc { margin: 0 0 12px; opacity: .92; font-size: .95rem; }
.vit-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.vit-tags .tag { background: rgba(255,255,255,.2); padding: 4px 11px; border-radius: 999px; font-size: .8rem; font-weight: 500; }
.vit-tags .tag.on { background: rgba(255,255,255,.95); color: var(--verde-esc); }
.vit-tags .tag.off { background: #7f1d1d; color: #fff; }

.vit-alert { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; margin: 14px 16px 0; padding: 11px 14px; border-radius: 10px; font-size: .9rem; }
.vit-vazio { background: #fff; margin: 12px 14px; border-radius: 18px; box-shadow: 0 4px 16px rgba(2,6,23,.06); padding: 60px 20px; text-align: center; color: var(--cinza); }

/* Carrossel de capa como FUNDO do cabecalho (crossfade) */
.vit-header .vit-capa-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.vit-capa-bg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.vit-capa-bg img.on { opacity: 1; }
.vit-capa-bg::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(5,12,8,.45) 0%, rgba(5,12,8,.78) 100%); }
.vit-header .vc-dots { position: absolute; bottom: 12px; right: 16px; z-index: 2; display: flex; gap: 6px; }
.vc-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.5); transition: .2s; cursor: pointer; }
.vc-dots span.on { background: #fff; width: 18px; border-radius: 4px; }
.vit-header.com-capa { padding-top: 40px; padding-bottom: 40px; }
.vit-header.com-capa::before, .vit-header.com-capa::after { display: none; } /* circulos decorativos sairiam sobre a foto */

/* logo ao lado do nome + conteudo alinhado a esquerda */
.vit-header.esq { text-align: left; }
.vit-header.esq .vit-tags { justify-content: flex-start; }
.vit-id { display: flex; align-items: center; gap: 13px; margin-bottom: 6px; }
.vit-id .vit-logo { width: 58px; height: 58px; margin: 0; flex-shrink: 0; }
.vit-id h1 { margin: 0; }

/* endereco/horario no header */
.vit-end { margin: 2px 0; font-size: .86rem; opacity: .92; }

/* Carrossel de promocoes (dentro do cardapio, abaixo das categorias) */
.vit-promos { position: relative; margin: 12px 14px; border-radius: 18px; overflow: hidden; box-shadow: 0 4px 16px rgba(2,6,23,.08); }
.vp-trilho { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.vp-trilho::-webkit-scrollbar { display: none; }
.vp-trilho img { width: 100%; flex-shrink: 0; height: 150px; object-fit: cover; scroll-snap-align: start; display: block; }
.vp-seta { position: absolute; top: 50%; transform: translateY(-50%); width: 34px; height: 34px; border: none; border-radius: 50%;
  background: rgba(5,12,8,.55); color: #fff; font-size: 1.3rem; line-height: 1; cursor: pointer; display: flex; align-items: center; justify-content: center; padding-bottom: 3px; }
.vp-seta:hover { background: rgba(5,12,8,.8); }
.vp-esq { left: 10px; }
.vp-dir { right: 10px; }
.vp-dots { position: absolute; bottom: 8px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; }
.vp-dots span { width: 7px; height: 7px; border-radius: 50%; background: rgba(255,255,255,.55); transition: .2s; cursor: pointer; }
.vp-dots span.on { background: #fff; width: 18px; border-radius: 4px; }

/* Busca + categorias fixas no topo */
.vit-topo-fixo { position: sticky; top: 0; z-index: 45; background: var(--vidro); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 10px 14px 0; }
.vit-busca { display: flex; align-items: center; gap: 9px; background: #fff; border: 1.5px solid transparent; border-radius: 14px; padding: 0 14px; box-shadow: 0 3px 12px rgba(2,6,23,.07); }
.vit-busca:focus-within { border-color: var(--verde); box-shadow: 0 0 0 3px var(--verde-claro); }
.vb-lupa { opacity: .5; font-size: .95rem; }
.vit-busca input { flex: 1; border: none; outline: none; background: none; padding: 13px 0; font-size: 1rem; min-width: 0; }
.vb-x { border: none; background: var(--cinza-cl); color: var(--cinza); width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: .72rem; flex-shrink: 0; }
.vit-cats { display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; margin: 4px -14px 0; padding: 0 12px; }
.vit-cats::-webkit-scrollbar { display: none; }
.vit-cat { flex-shrink: 0; border: none; background: none; padding: 12px 13px 9px; font-size: .92rem; font-weight: 600; color: var(--cinza); cursor: pointer; border-bottom: 3px solid transparent; white-space: nowrap; transition: color .15s, border-color .15s; }
.vit-cat.ativa { color: var(--verde-esc); border-bottom-color: var(--verde); }

.vit-secao { background: #fff; margin: 12px 14px; padding: 16px 16px 6px; border-radius: 18px; box-shadow: 0 4px 16px rgba(2,6,23,.06); scroll-margin-top: 116px; }
.vit-secao h2 { font-size: 1.05rem; margin: 0 0 6px; text-transform: uppercase; letter-spacing: .04em; color: var(--verde-esc); }
.vit-prod:last-child { border-bottom: none; }
.vit-prod { display: flex; align-items: flex-start; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--borda); position: relative; }
.vit-prod-info { flex: 1; display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.vit-prod-info strong { font-size: 1rem; }
.vit-prod-desc { color: var(--cinza); font-size: .86rem; line-height: 1.35; }
.vit-prod-preco { color: var(--verde-esc); font-weight: 700; margin-top: 2px; }
.vit-prod-foto { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; flex-shrink: 0; }
.vit-prod-foto img { width: 100%; height: 100%; object-fit: cover; }

.vit-add { position: absolute; right: 8px; bottom: 14px; width: 38px; height: 38px; border-radius: 10px; border: none; background: var(--verde); color: #fff; font-size: 1.4rem; line-height: 1; cursor: pointer; box-shadow: var(--sombra); }
.vit-add:active { transform: scale(.94); }
.vit-step { position: absolute; right: 8px; bottom: 14px; display: flex; align-items: center; gap: 10px; background: var(--verde-claro); border-radius: 10px; padding: 4px; }
.vit-step button { width: 30px; height: 30px; border: none; background: var(--verde); color: #fff; border-radius: 8px; font-size: 1.1rem; cursor: pointer; line-height: 1; }
.vit-step span { min-width: 18px; text-align: center; font-weight: 700; color: var(--verde-esc); }
.vit-step.small { position: static; }

.vit-rodape { text-align: center; color: var(--cinza); font-size: .8rem; padding: 24px; }

/* Barra flutuante */
.vit-barra { position: fixed; left: 50%; transform: translateX(-50%); bottom: 72px; width: min(510px, calc(100% - 28px)); background: var(--verde); color: #fff; border: none; border-radius: 12px; padding: 15px 18px; display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .98rem; cursor: pointer; box-shadow: 0 8px 24px rgba(2,6,23,.25); z-index: 40; }
.vit-barra:active { transform: translateX(-50%) scale(.99); }

/* Painel deslizante */
.vit-painel { position: fixed; inset: 0; background: rgba(2,6,23,.5); z-index: 60; display: flex; align-items: flex-end; justify-content: center; }
.vit-painel-box { background: rgba(255,253,249,.92); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); width: min(540px, 100%); max-height: 92vh; overflow-y: auto; border-radius: 18px 18px 0 0; padding: 18px 18px 30px; animation: subir .2s ease; }
@keyframes subir { from { transform: translateY(30px); opacity: .6; } to { transform: none; opacity: 1; } }
.vit-painel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.vit-painel-head strong { font-size: 1.15rem; }
.vit-x { border: none; background: var(--cinza-cl); width: 34px; height: 34px; border-radius: 50%; font-size: 1rem; cursor: pointer; }

.vit-cart { display: flex; flex-direction: column; gap: 8px; padding-bottom: 8px; margin-bottom: 8px; border-bottom: 1px solid var(--borda); }
.vit-cart-item { display: flex; align-items: center; gap: 10px; }
.vit-cart-item .ci-info { flex: 1; display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.vit-cart-item .ci-nome { font-size: .92rem; }
.vit-cart-item .ci-opc { font-size: .78rem; color: var(--cinza); }
.vit-cart-item .ci-preco { font-weight: 700; color: var(--verde-esc); font-size: .9rem; min-width: 74px; text-align: right; }

/* modal de opcoes do produto (estilo monte seu prato) */
.mo-corpo { max-height: 62vh; overflow-y: auto; margin: 4px -18px 0; padding: 0 18px; }
.mo-grupo { margin-bottom: 4px; }
.mo-ghead { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--cinza-cl); margin: 0 -18px 4px; padding: 12px 18px; }
.mo-gh-l h4 { margin: 0 0 2px; font-size: 1rem; }
.mo-sub { color: var(--cinza); font-size: .82rem; }
.mo-gh-r { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.mo-count { background: var(--tinta); color: #fff; font-weight: 700; font-size: .78rem; padding: 4px 9px; border-radius: 7px; min-width: 44px; text-align: center; }
.mo-count.ok { background: var(--verde); }
.mo-obr { background: #475569; color: #fff; font-size: .64rem; font-weight: 700; letter-spacing: .04em; padding: 5px 9px; border-radius: 7px; white-space: nowrap; }
.mo-opcao { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 2px; border-bottom: 1px solid var(--borda); cursor: pointer; margin: 0; }
.mo-oinfo { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.mo-oinfo .mo-nome { font-weight: 500; }
.mo-preco { font-size: .86rem; color: var(--verde-esc); font-weight: 600; }
.mo-preco.gratis { color: var(--cinza); font-weight: 500; }
.mo-opcao input[type=radio] { width: 22px; height: 22px; accent-color: var(--verde); flex-shrink: 0; }
.mo-qty { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.mo-qty button { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--borda); background: #fff; font-size: 1.1rem; line-height: 1; cursor: pointer; color: var(--verde-esc); }
.mo-qty button:disabled { opacity: .35; cursor: not-allowed; }
.mo-qty .mo-q { min-width: 16px; text-align: center; font-weight: 700; }
.mo-obs { padding-top: 14px; }
.mo-obs label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: 6px; }
.mo-obs textarea { width: 100%; padding: 11px 14px; border: 1px solid var(--borda); border-radius: 10px; font-size: .95rem; font-family: inherit; resize: vertical; outline: none; }
.mo-obs textarea:focus { border-color: var(--verde); box-shadow: 0 0 0 3px var(--verde-claro); }
.ci-obs { color: var(--cinza) !important; font-style: italic; }
.mo-footer { display: flex; gap: 12px; align-items: stretch; padding-top: 16px; }
.mo-prodqty { display: flex; align-items: center; gap: 6px; border: 1px solid var(--borda); border-radius: 12px; padding: 0 8px; flex-shrink: 0; }
.mo-prodqty button { width: 32px; height: 32px; border: none; background: none; font-size: 1.2rem; cursor: pointer; color: var(--verde-esc); }
.mo-prodqty span { min-width: 16px; text-align: center; font-weight: 700; }
.mo-footer .vit-finalizar { flex: 1; display: flex; justify-content: space-between; align-items: center; padding: 15px 20px; gap: 10px; }
.vit-finalizar.desab, .vit-finalizar:disabled { background: var(--cinza); opacity: .55; cursor: not-allowed; }

.vit-form h3 { margin: 18px 0 8px; font-size: .95rem; color: var(--cinza); }
.vit-form input[type=text], .vit-form input[type=tel], .vit-form select { width: 100%; padding: 12px 14px; border: 1px solid var(--borda); border-radius: 10px; font-size: 1rem; margin-bottom: 8px; background: #fff; }
.vit-form input:focus, .vit-form select:focus { border-color: var(--verde); box-shadow: 0 0 0 3px var(--verde-claro); outline: none; }
.vit-linha { display: flex; gap: 8px; }
.vit-linha .vit-num { max-width: 90px; }
.vit-toggle, .vit-pgto { display: flex; flex-direction: column; gap: 8px; }
.vit-toggle label, .vit-pgto label { display: flex; align-items: center; gap: 9px; padding: 11px 14px; border: 1px solid var(--borda); border-radius: 10px; cursor: pointer; font-weight: 500; }
.vit-toggle input, .vit-pgto input { accent-color: var(--verde); width: 18px; height: 18px; }

/* endereco da loja na retirada / consumo no local */
.vit-retirada-info { display: flex; gap: 11px; align-items: flex-start; background: var(--verde-claro); border: 1px solid #bbf7d0;
  border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; font-size: .92rem; line-height: 1.5; color: var(--verde-esc); }
.vit-retirada-info .vri-ico { font-size: 1.25rem; }
.vit-retirada-info small { color: var(--verde-esc); opacity: .85; }

/* agendamento no checkout */
.vit-agenda-input { width: 100%; padding: 12px 14px; border: 1.5px solid var(--borda); border-radius: 12px; font-size: 1rem; background: #fbfcfc; font-family: inherit; }
.vit-agenda-input:focus { border-color: var(--verde); box-shadow: 0 0 0 3px var(--verde-claro); outline: none; }
.vit-agenda-nota { display: block; margin-top: 6px; font-size: .8rem; color: #b45309; font-weight: 600; }

/* selo de agendamento (rastreio/confirmacao) */
.rast-agenda, .vit-ok-agenda { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; border-radius: 12px; padding: 10px 14px; font-size: .92rem; margin: 0 0 14px; }
.vit-ok-agenda { display: inline-block; margin: 4px 0 10px; }

/* cupom no checkout */
.vit-cupom { margin-top: 18px; }
#cupom-abrir { border: 1.5px dashed var(--verde); background: var(--verde-claro); color: var(--verde-esc); width: 100%; padding: 12px 14px; border-radius: 12px; font-size: .92rem; font-weight: 600; cursor: pointer; text-align: left; }
#cupom-abrir u { text-underline-offset: 3px; }
.vc-area { display: flex; gap: 8px; }
.vc-area input { flex: 1; padding: 12px 14px; border: 1.5px solid var(--verde); border-radius: 12px; font-size: 1rem; text-transform: uppercase; outline: none; min-width: 0; }
.vc-area button { padding: 0 18px; border: none; border-radius: 12px; background: var(--verde); color: #fff; font-weight: 700; cursor: pointer; }
.vc-ok { display: flex; align-items: center; gap: 8px; background: var(--verde-claro); border: 1px solid #bbf7d0; color: var(--verde-esc); padding: 11px 14px; border-radius: 12px; font-size: .92rem; flex-wrap: wrap; }
.vc-ok button { border: none; background: none; color: #b91c1c; font-size: .82rem; cursor: pointer; text-decoration: underline; margin-left: auto; }
.vc-msg { display: block; margin-top: 6px; font-size: .82rem; color: var(--cinza); }
.vc-msg.erro { color: #b91c1c; }
.vc-msg.ok { color: var(--verde-esc); }
.r-desc-v, #r-desc-linha { color: var(--verde-esc); font-weight: 600; }
.r-desc-v { display: flex; justify-content: space-between; font-size: .95rem; }

.vit-resumo { margin: 18px 0; padding: 14px; background: var(--cinza-cl); border-radius: 12px; display: flex; flex-direction: column; gap: 6px; font-size: .95rem; }
.vit-resumo > div { display: flex; justify-content: space-between; }
.vit-resumo .vit-total { font-weight: 800; font-size: 1.1rem; border-top: 1px solid var(--borda); padding-top: 8px; margin-top: 2px; }

.vit-finalizar { width: 100%; padding: 15px; background: var(--verde); color: #fff; border: none; border-radius: 12px; font-size: 1.05rem; font-weight: 700; cursor: pointer; }
.vit-finalizar:active { transform: scale(.99); }

/* Link "Minha conta" no topo da vitrine */
.vit-conta { position: absolute; top: 12px; right: 14px; background: rgba(255,255,255,.18); color: #fff; padding: 7px 13px; border-radius: 999px; font-size: .84rem; font-weight: 600; text-decoration: none; }
.vit-conta:hover { background: rgba(255,255,255,.3); text-decoration: none; }
.vit-header { position: relative; }
.vit-alert.ok { background: #f0fdf4; color: #166534; border-color: #bbf7d0; }

/* Acompanhamento do pedido (rastreio publico) */
.rast { background: #fff; margin: 12px 14px; border-radius: 18px; box-shadow: 0 4px 16px rgba(2,6,23,.06); padding: 18px 16px; }
.rast-topo { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 16px; }
.rast-topo > div { display: flex; flex-direction: column; gap: 2px; }
.rast-num { font-weight: 800; font-size: 1.15rem; }
.rast-total { color: var(--verde-esc); font-size: 1.15rem; }
.rast-cancelado { background: #fef2f2; color: #b91c1c; border: 1px solid #fecaca; border-radius: 12px; padding: 16px; text-align: center; line-height: 1.5; margin-bottom: 8px; }
.rast-linha { display: flex; flex-direction: column; gap: 0; margin: 6px 0 4px; }
.rast-etapa { display: flex; align-items: center; gap: 12px; padding: 9px 0; position: relative; opacity: .45; }
.rast-etapa::before { content: ''; position: absolute; left: 17px; top: -9px; width: 2px; height: 18px; background: var(--borda); }
.rast-etapa:first-child::before { display: none; }
.rast-etapa.feita, .rast-etapa.atual { opacity: 1; }
.re-bola { width: 36px; height: 36px; border-radius: 50%; background: var(--cinza-cl); display: flex; align-items: center; justify-content: center; font-size: 1rem; flex-shrink: 0; border: 2px solid var(--borda); }
.rast-etapa.feita .re-bola { background: var(--verde); border-color: var(--verde); color: #fff; font-weight: 800; }
.rast-etapa.atual .re-bola { border-color: var(--verde); background: var(--verde-claro); animation: pulsa 1.6s ease infinite; }
.rast-etapa.atual .re-nome { font-weight: 700; color: var(--verde-esc); }
@keyframes pulsa { 0%,100% { box-shadow: 0 0 0 0 var(--verde-claro); } 50% { box-shadow: 0 0 0 7px var(--verde-claro); } }
.rast-auto { font-size: .8rem; margin: 10px 0 0; }
.rast-sec { margin: 22px 0 10px; font-size: 1rem; }
.rast-item { display: flex; align-items: flex-start; gap: 10px; padding: 9px 0; border-bottom: 1px solid var(--borda); }
.ri-qtd { font-weight: 700; color: var(--verde-esc); min-width: 28px; }
.ri-info { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.ri-info .muted { font-size: .82rem; }
.ri-preco { font-weight: 600; }
.rast-resumo { margin-top: 14px; display: flex; flex-direction: column; gap: 6px; font-size: .95rem; }
.rast-resumo > div { display: flex; justify-content: space-between; }
.rast-tt { font-weight: 800; font-size: 1.08rem; border-top: 1px solid var(--borda); padding-top: 8px; }
.rast .vit-voltar { display: block; text-align: center; margin-top: 20px; color: var(--cinza); }

/* Botao WhatsApp no rastreio */
.rast-wa { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 20px; padding: 14px; background: #25d366; color: #fff; border-radius: 12px; font-weight: 700; text-decoration: none; }
.rast-wa:hover { text-decoration: none; filter: brightness(1.05); }

/* Busca de bairro com lupa (checkout) */
.vbb { position: relative; margin-bottom: 8px; }
.vbb-campo { display: flex; align-items: center; gap: 8px; border: 1px solid var(--borda); border-radius: 10px; padding: 0 12px; background: #fff; }
.vbb-campo:focus-within { border-color: var(--verde); box-shadow: 0 0 0 3px var(--verde-claro); }
.vbb-lupa { font-size: .95rem; opacity: .6; }
.vbb-campo input { flex: 1; border: none !important; outline: none; padding: 12px 0 !important; margin: 0 !important; font-size: 1rem; box-shadow: none !important; }
.vbb-campo input.ok { color: var(--verde-esc); font-weight: 600; }
.vbb-limpar { border: none; background: var(--cinza-cl); color: var(--cinza); width: 24px; height: 24px; border-radius: 50%; cursor: pointer; font-size: .75rem; flex-shrink: 0; }
.vbb-lista { position: absolute; top: calc(100% + 4px); left: 0; right: 0; background: #fff; border: 1px solid var(--borda); border-radius: 12px; box-shadow: 0 12px 30px rgba(2,6,23,.15); max-height: 220px; overflow-y: auto; z-index: 30; }
.vbb-opcao { display: block; width: 100%; text-align: left; padding: 12px 16px; border: none; background: none; font-size: .95rem; cursor: pointer; border-bottom: 1px solid var(--cinza-cl); }
.vbb-opcao:last-child { border-bottom: none; }
.vbb-opcao:hover { background: var(--verde-claro); color: var(--verde-esc); font-weight: 600; }
.vbb-nada { padding: 14px 16px; color: var(--cinza); font-size: .88rem; line-height: 1.4; }

/* Aviso destacado de loja fechada (vitrine) */
.vit-fechada { display: flex; align-items: center; gap: 14px; margin: 14px 16px 0; padding: 16px; background: #7f1d1d; color: #fff; border-radius: 14px; line-height: 1.45; box-shadow: var(--sombra); }
.vit-fechada .vf-ico { font-size: 2rem; flex-shrink: 0; }
.vit-fechada strong { font-size: 1.05rem; }
.vit-fechada span { font-size: .88rem; opacity: .9; }
.vf-agendar, .vf-agendar-txt { display: inline-block; margin-top: 9px; background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); color: #fff; padding: 8px 13px; border-radius: 999px; font-size: .84rem; font-weight: 600; text-decoration: none; }
a.vf-agendar:hover { background: rgba(255,255,255,.28); text-decoration: none; }

/* Botao abrir/fechar loja (sidebar do painel) */
.loja-toggle { padding: 0 14px 8px; }
.lt-btn { width: 100%; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 11px; border: none; border-radius: 10px; font-weight: 700; font-size: .92rem; cursor: pointer; }
.lt-btn small { font-weight: 500; font-size: .72rem; opacity: .75; }
.lt-btn.aberta { background: var(--verde-claro); color: var(--verde-esc); }
.lt-btn.aberta:hover { background: #fee2e2; color: #b91c1c; }
.lt-btn.fechada { background: #fee2e2; color: #b91c1c; animation: pisca-fechada 1.6s ease infinite; }
.lt-btn.fechada:hover { background: var(--verde-claro); color: var(--verde-esc); animation: none; }
@keyframes pisca-fechada { 0%,100% { opacity: 1; } 50% { opacity: .55; } }

/* ============================================================
   AREA DO CLIENTE v2 (.pf2) — visual de app
   ============================================================ */
.pf2 { background: var(--fundo); min-height: 100vh; padding-bottom: 40px; }

/* hero em degrade com circulos decorativos */
.pf2-hero { position: relative; overflow: hidden; color: #fff; padding: 14px 18px 58px;
  background: var(--verde);
  background: linear-gradient(158deg, var(--verde) 12%, color-mix(in srgb, var(--verde) 55%, #071a0d) 100%); }
.pf2-hero::before, .pf2-hero::after { content: ''; position: absolute; pointer-events: none; }
.pf2-hero::before { width: 200px; height: 200px; top: -14px; right: -30px; opacity: .2; background: url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 220 220%27%3E%3Cg fill=%27none%27 stroke=%27%23fff%27 stroke-width=%277%27 stroke-linecap=%27round%27%3E%3Cpath d=%27M18 165 Q60 105 112 110 T208 70%27/%3E%3Cpath d=%27M12 132 Q64 80 116 84 T212 42%27/%3E%3Cpath d=%27M30 195 Q72 130 124 134 T214 100%27/%3E%3C/g%3E%3Cg fill=%27%23fff%27%3E%3Ccircle cx=%27172%27 cy=%27168%27 r=%2715%27/%3E%3Ccircle cx=%27138%27 cy=%27185%27 r=%279%27/%3E%3C/g%3E%3C/svg%3E") no-repeat center / contain; }
.pf2-hero::after  { width: 130px; height: 130px; bottom: -50px; left: -40px; background: rgba(255,255,255,.06); }

.pf2-nav { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 20px; position: relative; z-index: 1; }
.pf2-volta { width: 38px; height: 38px; display: flex; align-items: center; justify-content: center; background: rgba(255,255,255,.16); border-radius: 12px; color: #fff; font-size: 1.15rem; text-decoration: none; }
.pf2-volta:hover { background: rgba(255,255,255,.3); text-decoration: none; }
.pf2-lojanome { font-weight: 700; font-size: .95rem; opacity: .92; }
.pf2-sair { color: #fff; opacity: .8; font-size: .84rem; text-decoration: underline; }

.pf2-quem { display: flex; align-items: center; gap: 14px; position: relative; z-index: 1; }
.pf2-avatar { width: 62px; height: 62px; border-radius: 50%; background: #fff; color: var(--verde); font-size: 1.7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; box-shadow: 0 6px 18px rgba(0,0,0,.22), 0 0 0 3px rgba(255,255,255,.35); flex-shrink: 0; }
.pf2-quem-txt { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.pf2-quem-txt strong { font-size: 1.3rem; line-height: 1.15; }
.pf2-quem-txt span { font-size: .86rem; opacity: .88; }

.pf2-stats { display: flex; gap: 10px; margin-top: 18px; position: relative; z-index: 1; }
.pf2-stat { flex: 1; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.2); backdrop-filter: blur(4px); border-radius: 14px; padding: 10px 14px; display: flex; flex-direction: column; gap: 1px; }
.pf2-stat strong { font-size: 1.12rem; }
.pf2-stat span { font-size: .74rem; opacity: .82; text-transform: uppercase; letter-spacing: .04em; }

/* cartao flutuante */
.pf2-card { position: relative; z-index: 2; margin: -34px 14px 0; background: #fff; border-radius: 20px; box-shadow: 0 14px 40px rgba(2,6,23,.12); overflow: hidden; animation: pf2sobe .4s ease both; }
@keyframes pf2sobe { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* abas com risco deslizante */
.pf2-abas { position: relative; display: flex; border-bottom: 1px solid var(--borda); }
.pf2-aba { flex: 1; padding: 15px 8px 13px; border: none; background: none; font-size: .95rem; font-weight: 600; color: var(--cinza); cursor: pointer; transition: color .2s; }
.pf2-aba.ativa { color: var(--verde-esc); }
.pf2-aba-risco { position: absolute; bottom: -1px; left: 0; width: 50%; height: 3px; background: var(--verde); border-radius: 3px 3px 0 0; transition: transform .28s cubic-bezier(.4,0,.2,1); }
.pf2-abas[data-pos="dados"] .pf2-aba-risco { transform: translateX(100%); }

.pf2-painel { padding: 16px; }

/* cards de pedido */
.pf2-pedido { display: flex; align-items: center; gap: 12px; padding: 13px 14px; border: 1px solid var(--borda); border-left-width: 4px; border-radius: 14px; margin-bottom: 10px; color: var(--tinta); background: #fff; transition: transform .15s, box-shadow .15s; animation: pf2sobe .35s ease both; }
.pf2-pedido:nth-child(2) { animation-delay: .05s; } .pf2-pedido:nth-child(3) { animation-delay: .1s; }
.pf2-pedido:nth-child(4) { animation-delay: .15s; } .pf2-pedido:nth-child(5) { animation-delay: .2s; }
.pf2-pedido:hover { text-decoration: none; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(2,6,23,.1); }
.pf2-pedido.st-novo         { border-left-color: #3b82f6; }
.pf2-pedido.st-confirmado   { border-left-color: #6366f1; }
.pf2-pedido.st-em_preparo   { border-left-color: #f59e0b; }
.pf2-pedido.st-pronto       { border-left-color: #a855f7; }
.pf2-pedido.st-saiu_entrega { border-left-color: #06b6d4; }
.pf2-pedido.st-entregue     { border-left-color: var(--verde); }
.pf2-pedido.st-cancelado    { border-left-color: #ef4444; opacity: .72; }
.pf2-ped-ico { width: 42px; height: 42px; border-radius: 12px; background: var(--cinza-cl); display: flex; align-items: center; justify-content: center; font-size: 1.25rem; flex-shrink: 0; }
.pf2-ped-info { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pf2-ped-info strong { font-size: .96rem; }
.pf2-ped-info span { font-size: .78rem; color: var(--cinza); }
.pf2-ped-fim { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.pf2-ped-fim strong { color: var(--verde-esc); font-size: .95rem; }

/* estado vazio */
.pf2-vazio { text-align: center; padding: 34px 18px 26px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pf2-vazio-ico { width: 76px; height: 76px; border-radius: 50%; background: var(--verde-claro); display: flex; align-items: center; justify-content: center; font-size: 2.1rem; margin-bottom: 4px; }
.pf2-vazio strong { font-size: 1.05rem; }
.pf2-vazio p { margin: 0 0 12px; color: var(--cinza); font-size: .88rem; max-width: 260px; line-height: 1.45; }

/* formulario de dados */
.pf2-form { display: flex; flex-direction: column; gap: 12px; }
.pf2-campo { display: flex; flex-direction: column; gap: 5px; }
.pf2-campo span { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--cinza); }
.pf2-campo span em { font-style: normal; font-weight: 500; text-transform: none; letter-spacing: 0; }
.pf2-campo input { padding: 12px 14px; border: 1.5px solid var(--borda); border-radius: 12px; font-size: 1rem; background: #fbfcfc; transition: border-color .15s, box-shadow .15s, background .15s; }
.pf2-campo input:focus { border-color: var(--verde); background: #fff; box-shadow: 0 0 0 3px var(--verde-claro); outline: none; }
.pf2-linha { display: flex; gap: 10px; }
.pf2-linha .cresce { flex: 1; }
.pf2-linha .num { width: 86px; }
.pf2-nota { margin: 0; background: var(--verde-claro); border-left: 3px solid var(--verde); border-radius: 10px; padding: 10px 12px; font-size: .8rem; color: var(--verde-esc); line-height: 1.5; }
.pf2-sub { margin: 10px 0 0; font-size: .82rem; text-transform: uppercase; letter-spacing: .06em; color: var(--cinza); }

.pf2-btn { display: inline-block; padding: 13px 22px; background: var(--verde); color: #fff; border: none; border-radius: 12px; font-size: 1rem; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; box-shadow: 0 6px 16px color-mix(in srgb, var(--verde) 35%, transparent); transition: transform .12s, filter .15s; }
.pf2-btn:hover { filter: brightness(1.06); text-decoration: none; }
.pf2-btn:active { transform: scale(.98); }
.pf2-btn.cheio { width: 100%; margin-top: 6px; }

/* Pagamento Pix */
.pix-card { background: #fff; margin: 16px 14px 0; border-radius: 18px; box-shadow: 0 4px 16px rgba(2,6,23,.06); padding: 22px 18px; text-align: center; }
.pix-topo { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.pix-num { font-weight: 700; color: var(--cinza); }
.pix-valor { font-size: 1.35rem; color: var(--verde-esc); }
.pix-qr { width: 230px; height: 230px; border-radius: 12px; border: 1px solid var(--borda); }
.pix-instru { font-size: .9rem; color: var(--cinza); line-height: 1.5; margin: 14px 4px 10px; }
.pix-copia { display: flex; gap: 8px; }
.pix-copia input { flex: 1; padding: 12px; border: 1px solid var(--borda); border-radius: 10px; font-size: .82rem; background: var(--cinza-cl); min-width: 0; }
.pix-copia button { padding: 0 18px; border: none; border-radius: 10px; background: var(--verde); color: #fff; font-weight: 700; cursor: pointer; }
.pix-status { display: flex; align-items: center; justify-content: center; gap: 9px; margin: 18px 0 4px; font-weight: 600; color: var(--verde-esc); }
.pix-spin { width: 18px; height: 18px; border: 3px solid var(--verde-claro); border-top-color: var(--verde); border-radius: 50%; animation: girar .8s linear infinite; }
@keyframes girar { to { transform: rotate(360deg); } }
.pix-ok-ico { font-size: 3.2rem; }
#pix-ok h2 { margin: 6px 0; }
.pix-card .vit-voltar { display: inline-block; margin-top: 16px; color: var(--cinza); }
.pc-pix { margin-left: 4px; filter: grayscale(.3); }
.pc-pix.pago { filter: none; }

/* Confirmacao */
.vit-ok { background: #fff; margin: 16px 14px 0; border-radius: 18px; box-shadow: 0 4px 16px rgba(2,6,23,.06); text-align: center; padding: 42px 24px 30px; }
.vit-ok-ico { font-size: 3.4rem; margin-bottom: 8px; }
.vit-ok h1 { margin: 0 0 6px; }
.vit-ok-num { font-size: 1.2rem; margin: 0 0 4px; }
.vit-ok-txt { color: var(--cinza); margin: 16px 0 24px; }
.vit-voltar { display: block; margin-top: 14px; color: var(--cinza); }

/* ===================== FINANCEIRO ===================== */
.dash-fin-link { margin: -6px 0 20px; }
.dash-fin-link a { font-weight: 600; font-size: .92rem; }

.fin-filtro { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 20px; }
.fin-abas { display: inline-flex; flex-wrap: wrap; background: var(--cinza-cl); border-radius: 12px; padding: 4px; gap: 3px; }
.fin-aba { padding: 8px 15px; border-radius: 9px; font-weight: 600; font-size: .9rem; color: var(--cinza); }
.fin-aba:hover { color: var(--tinta); text-decoration: none; }
.fin-aba.ativa { background: #fff; color: var(--verde-esc); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.fin-custom { display: flex; align-items: center; gap: 8px; }
.fin-custom.oculto { display: none; }
.fin-custom input[type=date] { padding: 9px 11px; border: 1.5px solid var(--borda); border-radius: 10px; font-size: .9rem; background: #fff; }
.fin-custom span { color: var(--cinza); font-size: .88rem; }

.fin-kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 16px; }
.fin-kpi { background: #fff; border-radius: 14px; padding: 18px; box-shadow: var(--sombra); }
.fin-kpi.destaque { background: linear-gradient(135deg, var(--verde), var(--verde-esc)); color: #fff; }
.fk-lbl { display: block; font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; opacity: .8; }
.fin-kpi.destaque .fk-lbl { opacity: .85; }
.fk-num { display: block; font-size: 1.7rem; font-weight: 800; margin: 4px 0 2px; letter-spacing: -.02em; }
.fk-sub { font-size: .8rem; color: var(--cinza); }
.fk-delta { font-size: .82rem; font-weight: 700; }
.fk-delta small { font-weight: 500; opacity: .8; }
.fin-kpi.destaque .fk-delta { color: #fff; }
.fk-delta.up { color: #bbf7d0; } .fk-delta.down { color: #fecaca; }

.fin-mini { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 20px; }
.fm-item { background: #fff; border-radius: 12px; padding: 14px 16px; box-shadow: var(--sombra); border-left: 4px solid var(--borda); }
.fm-item.ok { border-left-color: #16a34a; } .fm-item.wait { border-left-color: var(--massa); }
.fm-item span { display: block; font-size: .82rem; color: var(--cinza); font-weight: 600; }
.fm-item strong { display: block; font-size: 1.25rem; margin: 3px 0; }
.fm-item small { color: var(--cinza); font-size: .74rem; }

.fin-bloco { background: #fff; border-radius: 16px; padding: 20px; box-shadow: var(--sombra); margin-bottom: 18px; }
.fin-chart { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 4px; align-items: end; height: 180px; padding-top: 10px; overflow-x: auto; }
.fc-col { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 16px; }
.fc-bar { width: 68%; max-width: 34px; background: linear-gradient(180deg, var(--verde), var(--verde-esc)); border-radius: 5px 5px 0 0; transition: height .3s; min-height: 2px; }
.fc-col:hover .fc-bar { filter: brightness(1.12); }
.fc-lbl { font-size: .62rem; color: var(--cinza); margin-top: 5px; white-space: nowrap; transform: rotate(-40deg); transform-origin: top center; height: 20px; }

.fin-linha { display: grid; grid-template-columns: 130px 1fr auto; align-items: center; gap: 12px; padding: 9px 0; }
.fin-linha.compacto { grid-template-columns: 1fr auto; }
.fl-nome { font-weight: 600; font-size: .9rem; }
.fl-barra { height: 9px; background: var(--cinza-cl); border-radius: 5px; overflow: hidden; }
.fl-barra i { display: block; height: 100%; background: linear-gradient(90deg, var(--verde), var(--massa)); border-radius: 5px; }
.fl-val { font-weight: 700; font-size: .9rem; white-space: nowrap; }
.fl-val small { color: var(--cinza); font-weight: 600; font-size: .78rem; }
.fin-sub-tit { font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; color: var(--cinza); font-weight: 700; margin-bottom: 4px; }
.dt-nums { text-align: right; } .dt-nums small { display: block; color: var(--cinza); font-size: .76rem; }

@media (max-width: 760px) {
  .fin-kpis, .fin-mini { grid-template-columns: repeat(2, 1fr); }
  .fin-linha { grid-template-columns: 110px 1fr auto; }
}

/* ===================== PEDIDO DE BALCÃO (PDV) ===================== */
.tag-balcao { display: inline-block; background: var(--massa); color: #422006; font-size: .66rem; font-weight: 800; padding: 1px 7px; border-radius: 20px; vertical-align: middle; letter-spacing: .03em; }

.bal-wrap { display: grid; grid-template-columns: 1fr 380px; gap: 20px; align-items: start; }
.bal-catalogo { min-width: 0; }
.bal-busca { width: 100%; padding: 12px 14px; border: 1.5px solid var(--borda); border-radius: 12px; font-size: 1rem; background: #fff; margin-bottom: 16px; }
.bal-cat-nome { font-size: .9rem; text-transform: uppercase; letter-spacing: .04em; color: var(--cinza); margin: 18px 0 10px; }
.bal-produtos { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.bal-prod { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; text-align: left; background: #fff; border: 1.5px solid var(--borda); border-radius: 12px; padding: 12px 13px; cursor: pointer; transition: .12s; min-height: 64px; justify-content: center; }
.bal-prod:hover { border-color: var(--verde); box-shadow: 0 4px 12px rgba(194,65,12,.12); transform: translateY(-1px); }
.bal-prod:active { transform: scale(.98); }
.bp-nome { font-weight: 600; font-size: .9rem; color: var(--tinta); line-height: 1.25; }
.bp-preco { font-size: .82rem; color: var(--verde-esc); font-weight: 700; }
.bal-vazio-busca { color: var(--cinza); padding: 20px 0; }

/* comanda */
.bal-comanda { position: sticky; top: 16px; background: #fff; border-radius: 16px; box-shadow: var(--sombra); padding: 18px; display: flex; flex-direction: column; }
.bal-com-tit { margin: 0 0 12px; font-size: 1.05rem; }
.bal-itens { max-height: 34vh; overflow-y: auto; margin-bottom: 12px; }
.bal-itens-vazio { color: var(--cinza); font-size: .9rem; text-align: center; padding: 20px 0; }
.bal-item { display: flex; gap: 10px; align-items: center; padding: 9px 0; border-bottom: 1px solid var(--cinza-cl); }
.bi-info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.bi-info strong { font-size: .9rem; }
.bi-info small { color: var(--cinza); font-size: .76rem; }
.bi-info .bi-obs { color: var(--verde-esc); }
.bi-dir { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.bi-qtd { display: flex; align-items: center; gap: 8px; }
.bi-qtd button { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--borda); background: #fff; cursor: pointer; font-size: 1rem; line-height: 1; color: var(--tinta); }
.bi-qtd button:hover { background: var(--cinza-cl); }
.bi-qtd span { min-width: 18px; text-align: center; font-weight: 700; font-size: .9rem; }
.bi-preco { font-weight: 700; font-size: .86rem; color: var(--verde-esc); }

.bal-campos { border-top: 1px solid var(--cinza-cl); padding-top: 14px; }
.bal-campos .field { margin-bottom: 12px; }
.bal-campos select { width: 100%; padding: 11px 12px; border: 1.5px solid var(--borda); border-radius: 11px; font-size: .95rem; background: #fff; }
.bal-chk-pago { display: flex; align-items: center; gap: 8px; align-self: flex-end; padding-bottom: 12px; font-weight: 600; font-size: .9rem; white-space: nowrap; }

.bal-resumo { border-top: 1px dashed var(--borda); margin-top: 4px; padding-top: 12px; }
.br-linha { display: flex; justify-content: space-between; font-size: .9rem; color: var(--cinza); margin-bottom: 5px; }
.br-total { display: flex; justify-content: space-between; font-size: 1.15rem; font-weight: 800; margin: 6px 0 14px; }
.br-total strong { color: var(--verde-esc); }

/* grupos de opcao no modal */
.bal-grupo { border: 1px solid var(--borda); border-radius: 12px; padding: 12px 14px; margin-bottom: 12px; }
.bal-grupo.bal-grupo-erro { border-color: #dc2626; background: #fef2f2; }
.bal-grupo h4 { margin: 0 0 8px; font-size: .95rem; }
.bg-req { font-size: .7rem; font-weight: 700; color: #b91c1c; background: #fee2e2; padding: 1px 7px; border-radius: 10px; }
.bg-opt { font-size: .7rem; font-weight: 700; color: var(--cinza); background: var(--cinza-cl); padding: 1px 7px; border-radius: 10px; }
.bal-opc { display: flex; align-items: center; gap: 9px; padding: 7px 0; font-size: .92rem; cursor: pointer; }
.bal-opc b { margin-left: auto; color: var(--verde-esc); font-size: .84rem; }

@media (max-width: 820px) {
  .bal-wrap { grid-template-columns: 1fr; }
  .bal-comanda { position: static; order: -1; }
  .bal-itens { max-height: none; }
}

/* ===================== MEU PERFIL ===================== */
.perfil-id { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: 16px; padding: 20px 22px; box-shadow: var(--sombra); margin-bottom: 20px; }
.pi-avatar { flex-shrink: 0; width: 60px; height: 60px; border-radius: 50%; background: linear-gradient(135deg, var(--verde), var(--verde-esc)); color: #fff; font-size: 1.7rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pi-txt { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.pi-txt strong { font-size: 1.15rem; }
.pi-txt span { color: var(--cinza); font-size: .92rem; }
.pi-txt small { color: var(--cinza); font-size: .78rem; margin-top: 2px; }
.pi-plano { flex-shrink: 0; text-align: center; padding: 10px 16px; border-radius: 12px; background: var(--verde-claro); color: var(--verde-esc); }
.pi-plano:hover { text-decoration: none; filter: brightness(.98); }
.pi-plano span { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .04em; }
.pi-plano strong { display: block; font-size: 1.05rem; }
.pi-plano.vencida { background: #fee2e2; color: #991b1b; }
.pi-plano.trial { background: #fef3c7; color: #92400e; }
.perfil-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; align-items: start; }
.perfil-cols .form-card { background: #fff; border-radius: 16px; padding: 22px; box-shadow: var(--sombra); }
.perfil-cols .field input:disabled { background: var(--cinza-cl); color: var(--cinza); cursor: not-allowed; }
@media (max-width: 720px) {
  .perfil-id { flex-wrap: wrap; }
  .perfil-cols { grid-template-columns: 1fr; }
}

/* ===================== LANDING PAGE ===================== */
.lp-hero { position: relative; overflow: hidden; padding: 70px 0 80px;
  background: linear-gradient(180deg, #fff7ec 0%, var(--fundo) 100%); }
.lp-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .5; z-index: 0; }
.lp-blob.b1 { width: 380px; height: 380px; background: #fed7aa; top: -120px; right: -80px; }
.lp-blob.b2 { width: 320px; height: 320px; background: #fef08a; bottom: -140px; left: -100px; opacity: .4; }
.lp-hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.lp-hero-txt h1 { font-size: clamp(2.2rem, 4.6vw, 3.5rem); line-height: 1.08; margin: 16px 0 18px; letter-spacing: -.02em; }
.lp-hero-txt h1 .g { color: var(--verde); }
.lp-hero-txt .sub { font-size: 1.15rem; color: var(--cinza); max-width: 540px; margin: 0 0 28px; }
.lp-trust { display: flex; flex-wrap: wrap; gap: 18px; margin-top: 22px; color: var(--verde-esc); font-weight: 600; font-size: .9rem; }

/* mockup do celular */
.lp-phone { justify-self: center; width: 270px; background: #1c1917; border-radius: 34px; padding: 10px; box-shadow: 0 30px 60px rgba(64,42,20,.28); }
.lp-phone-top { height: 22px; display: flex; justify-content: center; align-items: center; }
.lp-cam { width: 8px; height: 8px; border-radius: 50%; background: #44403c; }
.lp-screen { background: var(--fundo); border-radius: 26px; overflow: hidden; padding-bottom: 16px; }
.lp-store-cap { height: 76px; background: linear-gradient(120deg, var(--verde), var(--verde-esc)); display: flex; align-items: center; justify-content: center; }
.lp-noodle { font-size: 2.2rem; }
.lp-store-head { display: flex; align-items: center; gap: 10px; padding: 12px 16px; }
.lp-logo-c { width: 42px; height: 42px; border-radius: 12px; background: #fff; display: flex; align-items: center; justify-content: center; font-size: 1.3rem; box-shadow: var(--sombra); margin-top: -34px; border: 2px solid #fff; }
.lp-store-head strong { display: block; font-size: .95rem; }
.lp-store-head small { color: #16a34a; font-size: .74rem; }
.lp-item { display: flex; justify-content: space-between; align-items: center; margin: 8px 14px; background: #fff; border-radius: 12px; padding: 11px 13px; font-size: .82rem; box-shadow: 0 2px 6px rgba(2,6,23,.04); }
.lp-item b { color: var(--verde-esc); }
.lp-pix { margin: 14px 14px 0; background: var(--verde); color: #fff; text-align: center; padding: 12px; border-radius: 12px; font-weight: 700; font-size: .9rem; }

/* hero CENTRALIZADO (com ilustração do entregador) */
.lp-hero.centro { padding: 56px 0 70px; }
.lp-hero-c { position: relative; z-index: 1; max-width: 760px; margin: 0 auto; text-align: center; }
.lp-hero-c h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.07; margin: 16px 0 16px; letter-spacing: -.02em; }
.lp-hero-c h1 .g { color: var(--verde); }
.lp-hero-c .sub { font-size: 1.15rem; color: var(--cinza); max-width: 560px; margin: 0 auto 26px; }
.lp-hero-c .hero-actions { justify-content: center; }
.lp-illustra { max-width: 560px; margin: 30px auto 6px; }
.lp-illustra svg { width: 100%; height: auto; display: block; overflow: visible; }
@keyframes lp-flutua { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.lp-illustra svg > g[transform^="translate(150 96)"],
.lp-illustra svg > g[transform^="translate(300 66)"],
.lp-illustra svg > g[transform^="translate(410 86)"],
.lp-illustra svg > g[transform^="translate(508 150)"] { animation: lp-flutua 4s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
.lp-illustra svg > g[transform^="translate(300 66)"] { animation-delay: .6s; }
.lp-illustra svg > g[transform^="translate(410 86)"] { animation-delay: 1.2s; }
.lp-illustra svg > g[transform^="translate(508 150)"] { animation-delay: .3s; }
@media (prefers-reduced-motion: reduce) { .lp-illustra svg > g { animation: none !important; } }

/* faixa de dados */
.lp-stats { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 40px; margin-top: 22px; }
.lp-stat { position: relative; padding: 0 8px; }
.lp-stat strong { display: block; font-size: 1.7rem; font-weight: 800; color: var(--verde-esc); line-height: 1; letter-spacing: -.02em; }
.lp-stat span { font-size: .82rem; color: var(--cinza); }

/* contato */
.lp-contato { padding: 74px 0; background: #fff; }
.lp-contato-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; max-width: 780px; margin: 0 auto; }
.lp-cont-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; background: var(--fundo); border: 1px solid var(--borda); border-radius: 16px; padding: 26px 18px; transition: transform .15s, box-shadow .15s; }
.lp-cont-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(64,42,20,.1); text-decoration: none; }
.lp-cont-card .lc-ico { font-size: 1.9rem; }
.lp-cont-card strong { color: var(--tinta); font-size: 1.05rem; }
.lp-cont-card span { color: var(--cinza); font-size: .86rem; }

/* links da navbar */
.nav-link { color: var(--tinta); font-weight: 600; font-size: .95rem; }
.nav-link:hover { color: var(--verde-esc); text-decoration: none; }

/* secoes genericas */
.lp-sec, .lp-steps, .lp-planos { padding: 74px 0; }
.lp-steps { background: #fff; }
.lp-sec-head { text-align: center; max-width: 620px; margin: 0 auto 46px; }
.lp-eyebrow { display: inline-block; color: var(--verde); font-weight: 800; font-size: .78rem; letter-spacing: .12em; margin-bottom: 10px; }
.lp-sec-head h2 { font-size: clamp(1.7rem, 3.4vw, 2.4rem); margin: 0 0 10px; letter-spacing: -.02em; }
.lp-sec-head p { color: var(--cinza); font-size: 1.05rem; margin: 0; }

/* features */
.lp-feats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.lp-feat { background: #fff; border: 1px solid var(--borda); border-radius: 16px; padding: 22px; transition: transform .15s, box-shadow .15s; }
.lp-feat:hover { transform: translateY(-4px); box-shadow: 0 16px 34px rgba(64,42,20,.1); }
.lp-feat-ico { width: 48px; height: 48px; border-radius: 13px; background: var(--verde-claro); display: flex; align-items: center; justify-content: center; font-size: 1.5rem; margin-bottom: 14px; }
.lp-feat h3 { margin: 0 0 6px; font-size: 1.05rem; }
.lp-feat p { margin: 0; color: var(--cinza); font-size: .9rem; line-height: 1.5; }

/* steps */
.lp-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; max-width: 900px; margin: 0 auto; }
.lp-step { text-align: center; padding: 10px; }
.lp-step-n { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; background: var(--verde); color: #fff; font-size: 1.4rem; font-weight: 800; margin-bottom: 14px; box-shadow: 0 8px 18px color-mix(in srgb, var(--verde) 32%, transparent); }
.lp-step h3 { margin: 0 0 6px; }
.lp-step p { color: var(--cinza); margin: 0; font-size: .92rem; }

/* planos na landing */
.lp-planos { background: var(--fundo); }
.lp-planos .assine-planos { max-width: 980px; margin: 0 auto; }
.lp-planos-nota { text-align: center; color: var(--cinza); margin-top: 24px; font-size: .92rem; }

/* CTA final */
.lp-cta { background: linear-gradient(120deg, var(--verde), var(--verde-esc)); color: #fff; text-align: center; padding: 66px 0; }
.lp-cta h2 { font-size: clamp(1.7rem, 3.4vw, 2.3rem); margin: 0 0 10px; }
.lp-cta p { opacity: .92; margin: 0 0 26px; font-size: 1.08rem; }
.lp-cta-btn { background: #fff; color: var(--verde-esc); }
.lp-cta-btn:hover { background: #fff7ed; text-decoration: none; }

@media (max-width: 900px) {
  .lp-hero-grid { grid-template-columns: 1fr; text-align: center; }
  .lp-hero-txt .sub { margin-left: auto; margin-right: auto; }
  .lp-trust { justify-content: center; }
  .lp-phone { order: -1; }
  .lp-feats { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .lp-feats { grid-template-columns: 1fr; }
  .lp-steps-grid { grid-template-columns: 1fr; }
  .lp-contato-cards { grid-template-columns: 1fr; }
  .lp-stats { gap: 10px 26px; }
  .lp-stat strong { font-size: 1.4rem; }
  .nav-links { gap: 12px; }
}

/* aviso de renovacao no topo do painel */
.renova-aviso { display: flex; align-items: center; gap: 14px; background: linear-gradient(120deg, #d97706, #b45309); color: #fff; padding: 14px 18px; border-radius: 14px; margin-bottom: 18px; box-shadow: 0 8px 22px rgba(180,83,9,.28); }
.renova-aviso .ra-ico { font-size: 1.7rem; line-height: 1; }
.renova-aviso .ra-txt { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.renova-aviso .ra-txt strong { font-size: 1rem; }
.renova-aviso .ra-txt span { font-size: .85rem; opacity: .92; }
.renova-aviso .btn-primary { background: #fff; color: var(--verde-esc); box-shadow: none; }
.renova-aviso .btn-primary:hover { filter: none; background: #fff7ed; }
.renova-aviso .ra-x { background: transparent; border: none; color: rgba(255,255,255,.8); font-size: 1rem; cursor: pointer; padding: 4px; }
@media (max-width: 560px) { .renova-aviso { flex-wrap: wrap; } .renova-aviso .ra-x { position: absolute; } }

/* ===================== ASSINATURA ===================== */
/* badge na sidebar */
.ass-badge { display: block; margin: 10px 12px 0; padding: 10px 12px; border-radius: 12px; text-decoration: none;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); }
.ass-badge:hover { background: rgba(255,255,255,.12); text-decoration: none; }
.ass-badge .ab-plano { display: block; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: rgba(255,255,255,.6); }
.ass-badge .ab-dias { display: block; font-size: .95rem; color: #fff; margin-top: 2px; }
.ass-badge.trial .ab-dias { color: #fde68a; }
.ass-badge.ativa .ab-dias { color: #86efac; }
.ass-badge.vencida { background: rgba(220,38,38,.2); border-color: rgba(248,113,113,.4); }
.ass-badge.vencida .ab-dias { color: #fca5a5; }

/* hero de status */
.assine-hero { display: flex; align-items: center; gap: 18px; padding: 22px 24px; border-radius: 18px; margin-bottom: 22px; color: #fff; box-shadow: var(--sombra); }
.assine-hero .ah-ico { font-size: 2.6rem; line-height: 1; }
.assine-hero .ah-plano { display: block; font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; opacity: .85; }
.assine-hero .ah-dias { display: block; font-size: 1.5rem; font-weight: 800; margin: 2px 0; }
.assine-hero .ah-sub { display: block; font-size: .9rem; opacity: .9; }
.assine-hero.trial   { background: linear-gradient(120deg, #d97706, #b45309); }
.assine-hero.ativa   { background: linear-gradient(120deg, #16a34a, #15803d); }
.assine-hero.vencida { background: linear-gradient(120deg, #dc2626, #991b1b); }

/* metodo */
.assine-metodo { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin: 6px 0 22px; }
.am-label { font-weight: 700; color: var(--tinta); }
.am-toggle { display: inline-flex; background: var(--cinza-cl); border-radius: 12px; padding: 4px; gap: 4px; }
.am-op { border: none; background: transparent; padding: 9px 18px; border-radius: 9px; cursor: pointer; font-weight: 700; color: var(--cinza); font-size: .95rem; }
.am-op small { display: block; font-weight: 500; font-size: .72rem; opacity: .8; }
.am-op.ativo { background: #fff; color: var(--verde-esc); box-shadow: 0 2px 8px rgba(0,0,0,.08); }

/* cards de plano */
.assine-planos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.plano-card { position: relative; background: #fff; border: 2px solid var(--borda, #ece4d6); border-radius: 20px; padding: 26px 22px 24px; display: flex; flex-direction: column; box-shadow: var(--sombra); transition: transform .15s, box-shadow .15s; }
.plano-card:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(64,42,20,.14); }
.plano-card.top { border-color: var(--verde); box-shadow: 0 18px 44px rgba(194,65,12,.22); }
.pc-selo { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); white-space: nowrap;
  background: var(--verde); color: #fff; font-size: .72rem; font-weight: 800; letter-spacing: .04em; padding: 5px 14px; border-radius: 20px; }
.plano-card.top .pc-selo { background: linear-gradient(90deg, var(--verde), var(--massa)); }
.pc-nome { font-size: 1.3rem; margin: 6px 0 2px; }
.pc-sub { color: var(--cinza); font-size: .86rem; margin: 0 0 16px; }
.pc-preco { display: flex; align-items: baseline; gap: 4px; }
.pc-cifra { font-size: 1.1rem; font-weight: 700; color: var(--cinza); }
.pc-valor { font-size: 2.5rem; font-weight: 800; color: var(--tinta); line-height: 1; letter-spacing: -.02em; }
.pc-mes { font-size: .88rem; color: var(--cinza); margin-top: 6px; }
.pc-mes strong { color: var(--verde-esc); }
.pc-taxa { font-size: .78rem; color: var(--cinza); margin-top: 5px; background: var(--cinza-cl); padding: 5px 9px; border-radius: 8px; }
.pc-eco { margin: 14px 0 4px; background: var(--verde-claro); color: var(--verde-esc); font-weight: 800; font-size: .92rem; padding: 8px 12px; border-radius: 10px; text-align: center; }
.pc-eco span { font-weight: 700; }
.pc-eco.vazio { background: transparent; color: var(--cinza); font-weight: 600; }
.pc-bnf { list-style: none; padding: 0; margin: 16px 0 20px; display: grid; gap: 9px; }
.pc-bnf li { position: relative; padding-left: 26px; font-size: .9rem; color: var(--tinta); }
.pc-bnf li::before { content: '✓'; position: absolute; left: 0; top: -1px; width: 18px; height: 18px; border-radius: 50%; background: var(--verde-claro); color: var(--verde-esc); font-size: .72rem; font-weight: 800; display: flex; align-items: center; justify-content: center; }
.pc-form { margin-top: auto; }
.pc-cta { width: 100%; }
.plano-card:not(.top) .pc-cta { background: #fff; color: var(--verde-esc); border: 2px solid var(--verde); box-shadow: none; }
.plano-card:not(.top) .pc-cta:hover { background: var(--verde-claro); }

/* historico */
.assine-h2 { margin: 34px 0 14px; font-size: 1.2rem; }
.hist-wrap { overflow-x: auto; background: #fff; border-radius: 14px; box-shadow: var(--sombra); }
.hist-tab { width: 100%; border-collapse: collapse; min-width: 480px; }
.hist-tab th, .hist-tab td { text-align: left; padding: 12px 16px; font-size: .9rem; }
.hist-tab thead th { background: var(--cinza-cl); color: var(--cinza); font-size: .76rem; text-transform: uppercase; letter-spacing: .04em; }
.hist-tab tbody tr { border-top: 1px solid var(--cinza-cl); }
.hist-st { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: .78rem; font-weight: 700; }
.hist-st.ok   { background: #dcfce7; color: #166534; }
.hist-st.pend { background: #fef3c7; color: #92400e; }
.hist-st.est  { background: #fee2e2; color: #991b1b; }

@media (max-width: 860px) {
  .assine-planos { grid-template-columns: 1fr; }
  .plano-card.top { order: -1; }
}
