/* =====================================================================
   Pidda — sistema visual
   Marca: preto "chapa" + laranja "brasa" sobre um branco quente.
   ===================================================================== */
:root {
    --tinta: #121417;
    --tinta-2: #1d2025;
    --tinta-3: #2a2e35;
    --brasa: #ff4b1f;
    --brasa-escura: #c7350c;   /* texto laranja sobre fundo claro (AA) */
    --brasa-clara: #ff7a52;
    --pessego: #ffe9df;
    --pessego-2: #fff3ed;
    --creme: #fff8f3;
    --papel: #ffffff;
    --linha: #f0e4dc;
    --linha-forte: #e3d3c8;
    --texto: #121417;
    --texto-2: #5f5a57;
    --texto-3: #8b8480;
    --verde: #138a4a;
    --verde-claro: #e3f6eb;
    --mostarda: #ffc233;
    --erro: #c62828;
    --erro-claro: #fdecea;

    --fonte-titulo: "Outfit", "Segoe UI", system-ui, sans-serif;
    --fonte: "Plus Jakarta Sans", "Segoe UI", system-ui, -apple-system, sans-serif;

    --raio-p: 10px;
    --raio: 16px;
    --raio-g: 24px;
    --raio-xg: 32px;
    --sombra-1: 0 1px 2px rgba(18, 20, 23, .05), 0 2px 8px rgba(18, 20, 23, .04);
    --sombra-2: 0 10px 30px -12px rgba(18, 20, 23, .18), 0 2px 6px rgba(18, 20, 23, .05);
    --sombra-brasa: 0 14px 30px -12px rgba(255, 75, 31, .55);
    --mola: cubic-bezier(.34, 1.56, .64, 1);
    --suave: cubic-bezier(.22, 1, .36, 1);

    --largura-lateral: 284px;
    --altura-topo: 76px;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
    margin: 0;
    font-family: var(--fonte);
    font-size: 15px;
    line-height: 1.5;
    color: var(--texto);
    background: var(--creme);
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--fonte-titulo); line-height: 1.1; margin: 0; letter-spacing: -.02em; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--brasa); outline-offset: 2px; border-radius: 6px; }

/* ------------------------------------------------------------ Botões */
.btn {
    --btn-fundo: var(--papel);
    --btn-texto: var(--texto);
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    min-height: 44px; padding: 0 20px;
    border: 0; border-radius: 999px;
    background: var(--btn-fundo); color: var(--btn-texto);
    font-weight: 700; font-size: 14.5px; text-decoration: none; white-space: nowrap;
    cursor: pointer;
    transition: transform .25s var(--mola), box-shadow .25s var(--suave), background-color .2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn-primario { --btn-fundo: var(--tinta); --btn-texto: #fff; box-shadow: 0 12px 24px -12px rgba(18, 20, 23, .6); }
.btn-primario:hover { box-shadow: 0 18px 30px -14px rgba(18, 20, 23, .6); }
.btn-escuro { --btn-fundo: var(--tinta); --btn-texto: #fff; }
.btn-claro { --btn-fundo: rgba(255, 255, 255, .9); --btn-texto: var(--tinta); }
.btn-contorno { --btn-fundo: transparent; box-shadow: inset 0 0 0 1.5px var(--linha-forte); }
.btn-contorno:hover { box-shadow: inset 0 0 0 1.5px var(--tinta); }
.btn-pequeno { min-height: 38px; padding: 0 15px; font-size: 13.5px; }
.btn-grande { min-height: 58px; font-size: 16px; padding: 0 8px 0 26px; }
.btn-bloco { width: 100%; justify-content: space-between; }
.btn-bolha {
    width: 42px; height: 42px; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--brasa); color: var(--tinta);
    transition: transform .35s var(--mola);
}
.btn:hover .btn-bolha { transform: translateX(3px) rotate(-8deg); }
.btn[aria-busy="true"] { pointer-events: none; opacity: .85; }
.btn[aria-busy="true"] .btn-bolha i { animation: girar .8s linear infinite; }
.btn[aria-busy="true"] .btn-bolha i::before { content: "\f110"; }

.link { color: var(--brasa-escura); font-weight: 600; text-decoration: none; }
.link:hover { text-decoration: underline; }
.link-seta { display: inline-flex; gap: 8px; align-items: center; font-weight: 700; text-decoration: none; color: var(--tinta); }
.link-seta i { color: var(--brasa); transition: transform .3s var(--mola); }
.link-seta:hover i { transform: translateX(4px); }

/* ------------------------------------------------------------ Campos */
.campo { display: block; margin-bottom: 16px; }
.campo-rotulo { display: block; font-size: 13px; font-weight: 700; margin: 0 0 7px 4px; }
.campo-caixa {
    display: flex; align-items: center; gap: 12px;
    height: 56px; padding: 0 8px 0 18px;
    background: var(--papel);
    border: 1.5px solid var(--linha);
    border-radius: var(--raio);
    transition: border-color .2s, box-shadow .2s;
}
.campo-caixa > i { color: var(--texto-3); width: 18px; text-align: center; transition: color .2s; }
.campo-caixa:focus-within { border-color: var(--tinta); box-shadow: 0 0 0 4px rgba(255, 75, 31, .16); }
.campo-caixa:focus-within > i { color: var(--brasa); }
.campo-caixa input {
    flex: 1; min-width: 0; height: 100%;
    border: 0; outline: 0; background: transparent;
    font: 600 15.5px var(--fonte); color: var(--texto);
}
.campo-caixa input::placeholder { color: #b3aaa4; font-weight: 500; }
.campo-acao {
    width: 40px; height: 40px; border: 0; border-radius: 12px;
    background: transparent; color: var(--texto-3); cursor: pointer;
}
.campo-acao:hover { background: var(--pessego-2); color: var(--tinta); }

.alerta {
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 16px; margin-bottom: 20px;
    border-radius: var(--raio); font-weight: 600; font-size: 14px;
    animation: tremer .45s var(--suave);
}
.alerta i { margin-top: 3px; }
.alerta-erro { background: var(--erro-claro); color: var(--erro); }
.alerta-aviso { background: var(--pessego-2); color: var(--brasa-escura); box-shadow: inset 0 0 0 1.5px var(--pessego); }

/* ------------------------------------------------------------ Elementos */
.ponto-vivo {
    display: inline-block; width: 8px; height: 8px; border-radius: 50%;
    background: var(--brasa); position: relative; flex: none;
}
.ponto-vivo::after {
    content: ""; position: absolute; inset: 0; border-radius: 50%;
    background: inherit; animation: pulso 1.8s ease-out infinite;
}
.sobretitulo {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
    color: var(--brasa-escura);
    background: var(--pessego); padding: 6px 12px; border-radius: 999px; margin: 0 0 18px;
}
.etiqueta {
    display: inline-flex; align-items: center; gap: 6px;
    font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px;
    text-decoration: none; white-space: nowrap;
}
.etiqueta-verde { background: var(--verde-claro); color: var(--verde); }
.etiqueta-breve { background: var(--pessego-2); color: var(--brasa-escura); box-shadow: inset 0 0 0 1px var(--pessego); }
.etiqueta-breve:hover { background: var(--pessego); }
.etiqueta-escura { background: var(--tinta); color: #fff; }
.etiqueta-cinza { background: #f1ece8; color: var(--texto-2); }
.etiqueta-alerta { background: #fff1c7; color: #8a5a00; }
.etiqueta-vermelha { background: var(--erro-claro); color: var(--erro); }
.avatar {
    width: 38px; height: 38px; flex: none; border-radius: 13px;
    display: grid; place-items: center;
    background: var(--tinta); color: #fff;
    font: 700 13.5px var(--fonte-titulo); letter-spacing: .02em;
}
.avatar-g { width: 46px; height: 46px; border-radius: 15px; font-size: 16px; }

/* ------------------------------------------------------------ Estrutura do app */
.app { min-height: 100vh; }

.lateral {
    position: fixed; inset: 12px auto 12px 12px; z-index: 40;
    width: var(--largura-lateral);
    display: flex; flex-direction: column;
    padding: 22px 14px 16px;
    background: var(--tinta); color: #fff;
    border-radius: var(--raio-g);
    overflow: hidden;
}
.lateral::before { /* brasa no canto */
    content: ""; position: absolute; width: 260px; height: 260px; right: -150px; bottom: -120px;
    background: radial-gradient(circle, rgba(255, 75, 31, .38), transparent 65%);
    pointer-events: none;
}
.lateral-topo { display: flex; align-items: center; justify-content: space-between; padding: 0 8px 18px; }
.lateral-logo img { width: 128px; height: auto; }
.lateral-fechar { display: none; width: 40px; height: 40px; border: 0; border-radius: 12px; background: var(--tinta-3); color: #fff; cursor: pointer; }

.loja-cartao {
    display: flex; align-items: center; gap: 12px;
    padding: 12px; margin-bottom: 12px;
    background: var(--tinta-2); border: 1px solid rgba(255, 255, 255, .06);
    border-radius: var(--raio);
}
.loja-avatar {
    width: 40px; height: 40px; border-radius: 12px; flex: none;
    display: grid; place-items: center;
    background: var(--brasa); color: var(--tinta); font: 800 15px var(--fonte-titulo);
}
.loja-dados { min-width: 0; flex: 1; display: grid; }
.loja-dados strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.loja-dados small { font-size: 12px; color: rgba(255, 255, 255, .55); }
.loja-status { width: 9px; height: 9px; border-radius: 50%; background: #35d07f; box-shadow: 0 0 0 4px rgba(53, 208, 127, .15); }

.menu { flex: 1; overflow-y: auto; padding-right: 2px; scrollbar-width: thin; scrollbar-color: var(--tinta-3) transparent; }
.menu-grupo {
    margin: 16px 12px 6px; font-size: 11px; font-weight: 700;
    letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 255, 255, .38);
}
.menu-item {
    position: relative;
    display: flex; align-items: center; gap: 11px;
    height: 44px; padding: 0 10px 0 12px; margin-bottom: 2px;
    border-radius: 13px;
    color: rgba(255, 255, 255, .72); text-decoration: none; font-weight: 600; font-size: 14.5px;
    transition: background-color .2s, color .2s;
}
.menu-item i { width: 20px; text-align: center; font-size: 15px; transition: transform .3s var(--mola); }
.menu-item:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.menu-item:hover i { transform: scale(1.12) rotate(-6deg); }
.menu-item.ativo { background: var(--brasa); color: var(--tinta); }
.menu-item.ativo i { color: var(--tinta); }
.menu-rotulo { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.selo-breve {
    font-size: 9.5px; font-weight: 700; padding: 2px 6px; border-radius: 999px; white-space: nowrap;
    background: rgba(255, 255, 255, .08); color: rgba(255, 255, 255, .5);
}
.lateral-rodape { position: relative; display: flex; align-items: center; justify-content: space-between; padding: 14px 10px 0; border-top: 1px solid rgba(255, 255, 255, .07); margin-top: 8px; }
.lateral-slogan { font: 700 14px var(--fonte-titulo); }
.lateral-slogan em { font-style: normal; color: var(--brasa); }
.lateral-rodape small { color: rgba(255, 255, 255, .35); font-size: 11px; }
.lateral-veu { display: none; }

.principal { margin-left: calc(var(--largura-lateral) + 12px); min-height: 100vh; }

.topo {
    position: sticky; top: 0; z-index: 30;
    display: flex; align-items: center; gap: 14px;
    height: var(--altura-topo); padding: 0 28px;
    background: rgba(255, 248, 243, .82);
    backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
}
.topo-menu, .topo-simbolo { display: none; }
.topo-menu { width: 44px; height: 44px; border: 0; border-radius: 14px; background: var(--papel); box-shadow: var(--sombra-1); cursor: pointer; font-size: 17px; }
.topo-titulo { display: grid; min-width: 0; }
.topo-titulo small { font-size: 12.5px; color: var(--texto-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topo-titulo strong { font: 700 22px var(--fonte-titulo); letter-spacing: -.02em; }
.topo-acoes { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.topo-icone {
    width: 44px; height: 44px; border: 0; border-radius: 14px;
    background: var(--papel); box-shadow: var(--sombra-1); cursor: pointer; font-size: 17px;
    transition: transform .25s var(--mola);
}
.topo-icone:hover { transform: rotate(-10deg); }

.usuario-menu { position: relative; }
.usuario-botao {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 12px 4px 4px; border: 0; border-radius: 16px;
    background: var(--papel); box-shadow: var(--sombra-1); cursor: pointer; text-align: left;
}
.usuario-botao .avatar { border-radius: 12px; background: var(--brasa); color: var(--tinta); }
.usuario-nome { display: grid; line-height: 1.2; }
.usuario-nome strong { font-size: 14px; }
.usuario-nome small { font-size: 12px; color: var(--texto-3); }
.usuario-botao > i { font-size: 11px; color: var(--texto-3); transition: transform .25s; }
.usuario-botao[aria-expanded="true"] > i { transform: rotate(180deg); }
.dropdown {
    position: absolute; right: 0; top: calc(100% + 10px); z-index: 50;
    width: 270px; padding: 8px;
    background: var(--papel); border-radius: var(--raio);
    box-shadow: var(--sombra-2), 0 0 0 1px var(--linha);
    animation: surgir .22s var(--suave);
    transform-origin: top right;
}
.dropdown-cabecalho { display: flex; gap: 12px; align-items: center; padding: 10px 10px 14px; border-bottom: 1px solid var(--linha); margin-bottom: 6px; }
.dropdown-cabecalho > span:last-child { display: grid; min-width: 0; }
.dropdown-cabecalho strong { font-size: 14.5px; }
.dropdown-cabecalho small { color: var(--texto-3); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; }
.dropdown form { margin: 0; }
.dropdown-item {
    display: flex; align-items: center; gap: 12px; width: 100%;
    padding: 11px 12px; border: 0; border-radius: 11px; background: transparent;
    text-decoration: none; font-weight: 600; font-size: 14px; cursor: pointer; text-align: left;
}
.dropdown-item i { width: 18px; text-align: center; color: var(--texto-3); }
.dropdown-item:hover { background: var(--pessego-2); }
.dropdown-perigo { color: var(--erro); }
.dropdown-perigo i { color: var(--erro); }

.conteudo { padding: 8px 28px 40px; max-width: 1360px; }
.barra-inferior { display: none; }

/* ------------------------------------------------------------ Home */
.hero {
    position: relative; overflow: hidden;
    display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: center; gap: 20px;
    padding: 40px 44px; margin-bottom: 20px;
    background: var(--brasa); color: var(--tinta);
    border-radius: var(--raio-xg);
    isolation: isolate;
}
.hero::before { /* grafismo: raios do logo */
    content: ""; position: absolute; z-index: -1; width: 520px; height: 520px; right: -120px; top: -180px;
    border-radius: 50%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, .22) 0 30%, transparent 31%),
                radial-gradient(circle at center, rgba(255, 255, 255, .12) 0 50%, transparent 51%),
                radial-gradient(circle at center, rgba(255, 255, 255, .07) 0 70%, transparent 71%);
}
.hero-data { display: inline-flex; gap: 8px; align-items: center; margin: 0 0 14px; font-weight: 700; font-size: 13px; background: rgba(18, 20, 23, .1); padding: 6px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(30px, 3.6vw, 46px); font-weight: 800; margin-bottom: 12px; }
.hero-sub { font-size: 16px; line-height: 1.55; max-width: 520px; margin: 0 0 24px; font-weight: 500; }
.hero-acoes { display: flex; flex-wrap: wrap; gap: 10px; }

.hero-arte { position: relative; height: 230px; }
.hero-anel {
    position: absolute; left: 50%; top: 50%; width: 210px; height: 210px; margin: -105px 0 0 -105px;
    border-radius: 50%; border: 2px dashed rgba(18, 20, 23, .28);
    animation: girar 40s linear infinite;
}
.hero-ticket {
    position: absolute; left: 50%; top: 50%; width: 220px; transform: translate(-50%, -50%) rotate(-5deg);
    background: var(--papel); border-radius: 18px; padding: 16px 18px 14px;
    box-shadow: 0 24px 40px -18px rgba(18, 20, 23, .55);
    animation: flutuar 6s ease-in-out infinite;
}
.hero-ticket::after { /* serrilhado da comanda */
    content: ""; position: absolute; left: 10px; right: 10px; bottom: -7px; height: 8px;
    background: radial-gradient(circle at 6px 0, var(--papel) 6px, transparent 6.5px) 0 0 / 14px 8px repeat-x;
}
.ticket-topo { display: flex; justify-content: space-between; align-items: baseline; font-size: 12px; font-weight: 700; color: var(--texto-3); text-transform: uppercase; letter-spacing: .06em; }
.ticket-topo strong { font: 800 20px var(--fonte-titulo); color: var(--tinta); letter-spacing: 0; }
.hero-ticket p { margin: 8px 0 12px; font-weight: 600; font-size: 13.5px; line-height: 1.35; }
.ticket-linha { height: 8px; border-radius: 4px; background: var(--pessego); margin-bottom: 7px; }
.ticket-linha.curta { width: 60%; }
.ticket-rodape { display: flex; gap: 8px; align-items: center; margin-top: 12px; font-size: 12px; font-weight: 700; color: var(--brasa-escura); }
.hero-bolha {
    position: absolute; width: 50px; height: 50px; border-radius: 16px;
    display: grid; place-items: center; font-size: 20px;
    background: var(--tinta); color: var(--brasa);
    box-shadow: 0 12px 24px -12px rgba(18, 20, 23, .6);
}
.hb1 { left: 6%; top: 10%; transform: rotate(-12deg); animation: flutuar 5s ease-in-out infinite; }
.hb2 { right: 4%; top: 18%; transform: rotate(10deg); background: var(--papel); animation: flutuar 7s ease-in-out -2s infinite; }
.hb3 { right: 14%; bottom: 2%; transform: rotate(-6deg); background: var(--mostarda); color: var(--tinta); animation: flutuar 6s ease-in-out -1s infinite; }

.indicadores { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 20px; }
.indicador {
    display: flex; align-items: center; gap: 14px;
    padding: 18px; background: var(--papel); border-radius: var(--raio-g);
    box-shadow: var(--sombra-1);
    transition: transform .3s var(--mola), box-shadow .3s;
}
.indicador:hover { transform: translateY(-3px); box-shadow: var(--sombra-2); }
.indicador > div { display: grid; min-width: 0; }
.indicador small { color: var(--texto-3); font-weight: 600; font-size: 12.5px; }
.indicador strong { font: 700 18px var(--fonte-titulo); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.indicador-icone { width: 48px; height: 48px; flex: none; border-radius: 16px; display: grid; place-items: center; font-size: 18px; }
.ic-laranja { background: var(--brasa); color: var(--tinta); }
.ic-escuro { background: var(--tinta); color: var(--mostarda); }
.ic-pessego { background: var(--pessego); color: var(--brasa-escura); }
.ic-verde { background: var(--verde-claro); color: var(--verde); }

.grade-home { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.coluna-home { display: grid; gap: 20px; }
.cartao { background: var(--papel); border-radius: var(--raio-g); padding: 24px; box-shadow: var(--sombra-1); }
.cartao-cabecalho { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.cartao-cabecalho h2 { font-size: 20px; font-weight: 700; }
.cartao-cabecalho p { margin: 4px 0 0; color: var(--texto-3); font-size: 13.5px; }

.progresso-anel {
    --p: 0;
    width: 64px; height: 64px; flex: none; border-radius: 50%;
    display: grid; place-items: center;
    background: conic-gradient(var(--brasa) calc(var(--p) * 1%), var(--pessego) 0);
}
.progresso-anel span {
    width: 48px; height: 48px; border-radius: 50%; background: var(--papel);
    display: grid; place-items: center; font: 800 14px var(--fonte-titulo);
}

.etapas { list-style: none; margin: 0; padding: 0; counter-reset: etapa; }
.etapa {
    position: relative;
    display: flex; align-items: center; gap: 14px;
    padding: 12px 0;
}
.etapa:not(:last-child)::after { /* trilho entre etapas */
    content: ""; position: absolute; left: 21px; top: 56px; bottom: -8px; width: 2px;
    background: repeating-linear-gradient(to bottom, var(--linha-forte) 0 4px, transparent 4px 8px);
}
.etapa-marcador {
    position: relative; z-index: 1;
    width: 44px; height: 44px; flex: none; border-radius: 15px;
    display: grid; place-items: center; font-size: 16px;
    background: var(--pessego-2); color: var(--texto-2);
    box-shadow: inset 0 0 0 1.5px var(--linha);
}
.etapa.feita .etapa-marcador { background: var(--tinta); color: var(--brasa); box-shadow: none; }
.etapa.feita:not(:last-child)::after { background: var(--tinta); }
.etapa-texto { flex: 1; min-width: 0; display: grid; }
.etapa-texto strong { font-size: 15px; }
.etapa-texto small { color: var(--texto-3); font-size: 13px; }

.cartao-cardapio {
    display: flex; gap: 20px; align-items: center;
    background: var(--tinta); color: #fff; position: relative; overflow: hidden;
}
.cartao-cardapio::after {
    content: ""; position: absolute; right: -70px; top: -70px; width: 180px; height: 180px; border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 75, 31, .45), transparent 70%);
}
.cartao-cardapio h2 { font-size: 21px; margin: 10px 0 6px; }
.cartao-cardapio .texto-quebra { color: rgba(255, 255, 255, .6); font-size: 13.5px; margin: 0 0 12px; word-break: break-all; }
.cartao-cardapio .link-seta { color: #fff; }
.cartao-cardapio .etiqueta-escura { background: var(--brasa); color: var(--tinta); }
.cardapio-qr {
    width: 96px; height: 96px; flex: none; border-radius: 22px;
    display: grid; place-items: center; font-size: 54px;
    background: #fff; color: var(--tinta); transform: rotate(-6deg);
    box-shadow: 8px 8px 0 var(--brasa);
}

.lista-acessos { list-style: none; margin: 0; padding: 0; }
.lista-acessos li { display: flex; align-items: center; gap: 12px; padding: 10px 0; }
.lista-acessos li + li { border-top: 1px solid var(--linha); }
.lista-acessos li:nth-child(3n+1) .avatar { background: var(--brasa); color: var(--tinta); }
.lista-acessos li:nth-child(3n+2) .avatar { background: var(--tinta); color: #fff; }
.lista-acessos li:nth-child(3n) .avatar { background: var(--mostarda); color: var(--tinta); }
.lista-texto { flex: 1; min-width: 0; display: grid; }
.lista-texto strong { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lista-texto small { color: var(--texto-3); font-size: 12.5px; }
.lista-acessos time { font-size: 12.5px; font-weight: 600; color: var(--texto-2); white-space: nowrap; }
.vazio { color: var(--texto-3); margin: 0; }

/* ------------------------------------------------------------ Componentes de módulo (genéricos) */
.texto-brasa { color: var(--brasa-escura); font-weight: 700; }
.texto-suave { color: var(--texto-3); }
.texto-apoio { color: var(--texto-3); font-size: 13.5px; margin: 0; }
.link-pequeno { display: inline-flex; gap: 6px; align-items: center; font-size: 13.5px; margin-top: 12px; }
.so-celular { display: none !important; }

.modulo-cabecalho { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 6px 0 18px; flex-wrap: wrap; }
.modulo-cabecalho h1 { font-size: clamp(28px, 3vw, 38px); font-weight: 800; }
.modulo-trilha { margin: 0 0 6px; font-size: 13px; font-weight: 700; color: var(--brasa-escura); display: flex; gap: 7px; align-items: center; }
.modulo-trilha a { color: inherit; text-decoration: none; display: inline-flex; gap: 7px; align-items: center; }
.modulo-trilha a:hover { text-decoration: underline; }
.modulo-sub { margin: 6px 0 0; color: var(--texto-2); font-size: 14.5px; }
.modulo-acoes { display: flex; gap: 10px; flex-wrap: wrap; }

/* Barra de salvar que gruda no rodapé de um formulário longo (qualquer módulo) */
.barra-salvar {
    position: sticky; bottom: 12px; z-index: 20; margin-top: 20px;
    display: flex; align-items: center; gap: 10px; padding: 10px;
    background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border-radius: 22px; box-shadow: var(--sombra-2), 0 0 0 1px var(--linha);
}
.barra-salvar-espaco { flex: 1; }

/* Barra de busca + filtros de uma lista e o aviso de "nada encontrado" (qualquer módulo) */
.barra-filtros { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.sem-resultado { text-align: center; padding: 30px; color: var(--texto-3); font-weight: 600; }
.campo-dica { display: block; margin-top: 6px; color: var(--texto-3); font-size: 12.5px; font-weight: 500; }

.abas {
    display: flex; gap: 4px; padding: 5px; margin-bottom: 20px; width: fit-content; max-width: 100%;
    background: var(--papel); border-radius: 999px; box-shadow: var(--sombra-1); overflow-x: auto; scrollbar-width: none;
}
.aba {
    display: inline-flex; align-items: center; gap: 8px; white-space: nowrap;
    padding: 9px 18px; border-radius: 999px; text-decoration: none; font-weight: 700; font-size: 14px; color: var(--texto-2);
    transition: background-color .2s, color .2s;
}
.aba:hover { color: var(--tinta); background: var(--pessego-2); }
.aba.ativa { background: var(--tinta); color: #fff; }
.aba.ativa i { color: var(--brasa); }

.botao-icone {
    width: 38px; height: 38px; flex: none; border: 0; border-radius: 12px;
    display: inline-grid; place-items: center; background: transparent; color: var(--texto-2); cursor: pointer;
    transition: background-color .2s, color .2s, transform .25s var(--mola);
}
.botao-icone:hover { background: var(--pessego-2); color: var(--tinta); }
.botao-icone:active { transform: scale(.92); }
.botao-perigo:hover { background: var(--erro-claro); color: var(--erro); }
.linha-acoes { display: flex; gap: 2px; align-items: center; }
.linha-acoes form { margin: 0; }

.btn-tracejado {
    width: 100%; min-height: 48px; margin-top: 10px;
    display: flex; align-items: center; justify-content: center; gap: 8px;
    border: 1.5px dashed var(--linha-forte); border-radius: var(--raio); background: transparent;
    font-weight: 700; color: var(--texto-2); cursor: pointer; transition: border-color .2s, color .2s, background-color .2s;
}
.btn-tracejado:hover { border-color: var(--brasa); color: var(--brasa-escura); background: var(--pessego-2); }

/* Campos extras */
.campo-rotulo em { color: var(--brasa-escura); font-style: normal; }
.campo-rotulo small { color: var(--texto-3); font-weight: 600; margin-left: 4px; }
.campo-rotulo .contador { float: right; font-weight: 600; color: var(--texto-3); }
.campo-area { height: auto; padding: 12px 16px; align-items: stretch; }
/* Caixa com textarea cresce: a altura fixa de 56px fazia o texto vazar por cima do campo seguinte */
.campo-caixa:has(textarea) { height: auto; align-items: stretch; padding: 12px 14px; }
.campo-caixa textarea { flex: 1; border: 0; outline: 0; resize: vertical; min-height: 84px; background: transparent; font: 500 15px/1.5 var(--fonte); color: var(--texto); }
.campo-select { position: relative; padding-right: 16px; }
.campo-caixa select { flex: 1; min-width: 0; height: 100%; border: 0; outline: 0; background: transparent; font: 600 15.5px var(--fonte); color: var(--texto); appearance: none; cursor: pointer; }
.campo-select > i:last-child { position: absolute; right: 18px; pointer-events: none; font-size: 12px; }
.campo-caixa .prefixo { font-weight: 700; color: var(--texto-3); font-size: 14px; }
.campo-caixa input[type="number"] { -moz-appearance: textfield; }
.campo-caixa input::-webkit-outer-spin-button, .campo-caixa input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.grade-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 14px; }
.linha-campo { display: flex; gap: 10px; }
.linha-campo .campo-caixa { flex: 1; min-width: 0; }
.linha-campo .btn { min-height: 56px; border-radius: var(--raio); }
fieldset.campo { border: 0; padding: 0; margin: 0 0 16px; min-width: 0; }

/* Chave liga/desliga */
.chave { position: relative; display: inline-flex; align-items: center; gap: 10px; cursor: pointer; flex: none; }
.chave input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chave-trilho {
    width: 46px; height: 28px; border-radius: 999px; background: var(--linha-forte); position: relative;
    transition: background-color .25s;
}
.chave-trilho::after {
    content: ""; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; border-radius: 50%;
    background: #fff; box-shadow: 0 2px 6px rgba(18, 20, 23, .25);
    transition: transform .35s var(--mola);
}
.chave input:checked + .chave-trilho { background: var(--verde); }
.chave input:checked + .chave-trilho::after { transform: translateX(18px); }
.chave input:focus-visible + .chave-trilho { outline: 3px solid var(--brasa); outline-offset: 2px; }
.chave input:disabled + .chave-trilho { opacity: .5; }
.chave-texto { font-size: 13px; font-weight: 600; color: var(--texto-2); }
.opcao-chave {
    display: flex; align-items: center; justify-content: space-between; gap: 16px;
    padding: 14px 16px; margin-bottom: 14px; border-radius: var(--raio);
    background: var(--pessego-2); cursor: pointer;
}
.opcao-chave > span:first-child { display: grid; }
.opcao-chave strong { font-size: 14.5px; }
.opcao-chave small { color: var(--texto-3); font-size: 13px; }

.segmentado { display: inline-flex; padding: 4px; gap: 2px; border-radius: 14px; background: var(--papel); box-shadow: var(--sombra-1); }
.segmentado button { border: 0; background: transparent; padding: 8px 14px; border-radius: 10px; font-weight: 700; font-size: 13.5px; color: var(--texto-2); cursor: pointer; white-space: nowrap; }
.segmentado button.ativo { background: var(--tinta); color: #fff; }

.busca {
    flex: 1; min-width: 220px; display: flex; align-items: center; gap: 10px;
    height: 48px; padding: 0 16px; background: var(--papel); border-radius: 14px; box-shadow: var(--sombra-1);
}
.busca i { color: var(--texto-3); }
.busca input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font: 600 14.5px var(--fonte); color: var(--texto); }
.busca:focus-within { box-shadow: 0 0 0 2px var(--tinta), 0 0 0 6px rgba(255, 75, 31, .16); }

.vazio-grande { text-align: center; padding: 56px 20px; background: var(--papel); border-radius: var(--raio-xg); box-shadow: var(--sombra-1); }
.vazio-grande h2 { font-size: 26px; margin: 22px 0 8px; }
.vazio-grande p { color: var(--texto-2); max-width: 460px; margin: 0 auto 24px; }
.vazio-grande .btn-grande { width: auto; gap: 18px; }
.vazio-arte { position: relative; width: 96px; height: 96px; margin: 0 auto; border-radius: 30px; display: grid; place-items: center; font-size: 40px; background: var(--tinta); color: var(--brasa); transform: rotate(-6deg); }
.vazio-arte span { position: absolute; right: -14px; bottom: -10px; width: 44px; height: 44px; border-radius: 15px; display: grid; place-items: center; font-size: 18px; background: var(--brasa); color: var(--tinta); transform: rotate(12deg); box-shadow: 0 0 0 5px var(--papel); }
.sugestoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 620px; margin: 0 auto; }
.chip-sugestao {
    display: inline-flex; align-items: center; gap: 8px; padding: 11px 16px; border: 0; border-radius: 999px;
    background: var(--pessego-2); box-shadow: inset 0 0 0 1.5px var(--pessego); font-weight: 700; cursor: pointer;
    transition: transform .25s var(--mola), background-color .2s;
}
.chip-sugestao i { color: var(--brasa-escura); }
.chip-sugestao:hover { transform: translateY(-2px) rotate(-1deg); background: var(--pessego); }

/* Arrastar para ordenar */
.alca { display: grid; place-items: center; width: 26px; align-self: stretch; color: #c3b8b1; cursor: grab; touch-action: none; flex: none; }
.alca:hover { color: var(--tinta); }
.arrastando { position: relative; z-index: 5; box-shadow: var(--sombra-2), 0 0 0 2px var(--brasa) !important; cursor: grabbing; background: var(--papel); }
body.ordenando, body.ordenando * { cursor: grabbing !important; user-select: none; }

/* Modal (dialog nativo) */
.modal {
    width: min(520px, calc(100vw - 32px)); max-height: min(88vh, 860px); padding: 0; border: 0;
    border-radius: var(--raio-g); background: var(--papel); color: var(--texto);
    box-shadow: 0 40px 80px -20px rgba(18, 20, 23, .45);
    overflow: hidden;
}
.modal[open] { display: flex; animation: modal-entrar .35s var(--mola); }
.modal-largo { width: min(640px, calc(100vw - 32px)); }
.modal::backdrop { background: rgba(18, 20, 23, .5); backdrop-filter: blur(3px); animation: surgir-veu .25s ease; }
.modal-caixa { display: flex; flex-direction: column; width: 100%; max-height: inherit; min-height: 0; margin: 0; }
.modal-cabecalho { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 20px 20px 12px 24px; }
.modal-cabecalho h2 { font-size: 22px; }
/* min-height: 0 deixa o corpo encolher e rolar: o rodapé com os botões fica sempre visível */
.modal-corpo { flex: 1; min-height: 0; overflow-y: auto; padding: 8px 24px 12px; overscroll-behavior: contain; }
.modal-rodape { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 24px 20px; border-top: 1px solid var(--linha); background: var(--papel); }

.confirmacao .modal-corpo { text-align: center; padding: 28px 28px 8px; }
.confirmacao-icone { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 22px; display: grid; place-items: center; font-size: 26px; background: var(--erro-claro); color: var(--erro); transform: rotate(-6deg); }
.confirmacao-icone.info { background: var(--pessego); color: var(--brasa-escura); }
.confirmacao h2 { font-size: 22px; margin-bottom: 8px; }
.confirmacao p { color: var(--texto-2); margin: 0; }
.confirmacao .modal-rodape { border-top: 0; justify-content: center; }
.confirmacao .modal-rodape .btn { flex: 1; }
.btn-perigo { --btn-fundo: var(--erro); --btn-texto: #fff; }

/* ------------------------------------------------------------ Toasts */
.toasts {
    position: fixed; z-index: 100; right: 24px; top: calc(var(--altura-topo) + 6px);
    display: grid; gap: 10px; width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}
.toast {
    pointer-events: auto;
    display: flex; gap: 12px; align-items: flex-start;
    padding: 14px 14px 14px 16px;
    background: var(--tinta); color: #fff; border-radius: 18px;
    box-shadow: 0 20px 40px -16px rgba(18, 20, 23, .55);
    animation: toast-entrar .5s var(--mola) both;
    position: relative; overflow: hidden;
}
.toast.saindo { animation: toast-sair .3s var(--suave) forwards; }
.toast-icone { width: 34px; height: 34px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--brasa); color: var(--tinta); }
.toast-sucesso .toast-icone { background: #35d07f; }
.toast-erro .toast-icone { background: #ff6b6b; }
.toast-aviso .toast-icone { background: var(--mostarda); }
.toast-corpo { flex: 1; min-width: 0; font-size: 14px; }
.toast-corpo strong { display: block; font-family: var(--fonte-titulo); font-size: 15px; margin-bottom: 1px; }
.toast-corpo span { color: rgba(255, 255, 255, .75); }
.toast-fechar { border: 0; background: transparent; color: rgba(255, 255, 255, .5); cursor: pointer; width: 28px; height: 28px; border-radius: 8px; }
.toast-fechar:hover { background: rgba(255, 255, 255, .1); color: #fff; }
.toast-tempo { position: absolute; left: 0; bottom: 0; height: 3px; background: var(--brasa); animation: toast-tempo linear forwards; }

/* ------------------------------------------------------------ Animações */
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes pulso { 0% { transform: scale(1); opacity: .7; } 100% { transform: scale(3); opacity: 0; } }
@keyframes flutuar { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes surgir { from { opacity: 0; transform: scale(.94) translateY(-6px); } }
@keyframes tremer { 0%, 100% { transform: translateX(0); } 20%, 60% { transform: translateX(-6px); } 40%, 80% { transform: translateX(6px); } }
@keyframes toast-entrar { from { opacity: 0; transform: translateY(-16px) scale(.9); } }
@keyframes toast-sair { to { opacity: 0; transform: translateX(40px); } }
@keyframes toast-tempo { from { width: 100%; } to { width: 0; } }
@keyframes entrar-baixo { from { opacity: 0; transform: translateY(14px); } }
@keyframes modal-entrar { from { opacity: 0; transform: translateY(24px) scale(.96); } }
@keyframes surgir-veu { from { opacity: 0; } }

/* form fica de fora: transform no pai quebraria a barra fixa de salvar */
.conteudo > :not(form, dialog, template) { animation: entrar-baixo .6s var(--suave) backwards; /* "backwards": ao terminar não deixa transform (criaria camada e cobriria menus abertos) */ }
.conteudo > *:nth-child(2) { animation-delay: .06s; }
.conteudo > *:nth-child(3) { animation-delay: .12s; }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ------------------------------------------------------------ Responsivo */
@media (max-width: 1180px) {
    .indicadores { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .grade-home { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 960px) {
    .so-desktop { display: none !important; }
    .lateral {
        inset: 0 auto 0 0; border-radius: 0 var(--raio-g) var(--raio-g) 0;
        width: min(300px, 86vw);
        transform: translateX(-105%); transition: transform .4s var(--suave);
    }
    .lateral-fechar { display: grid; place-items: center; }
    body.menu-aberto .lateral { transform: none; box-shadow: 20px 0 60px rgba(0, 0, 0, .3); }
    .lateral-veu {
        display: block; position: fixed; inset: 0; z-index: 35;
        background: rgba(18, 20, 23, .45); opacity: 0; pointer-events: none; transition: opacity .3s;
    }
    body.menu-aberto .lateral-veu { opacity: 1; pointer-events: auto; }
    body.menu-aberto { overflow: hidden; }

    .principal { margin-left: 0; }
    .topo { padding: 0 16px; height: 68px; gap: 12px; }
    .topo-simbolo { display: block; width: 34px; }
    .topo-simbolo img { width: 34px; height: auto; }
    .topo-titulo strong { font-size: 19px; }
    .usuario-botao { padding: 4px; }
    .conteudo { padding: 4px 16px calc(104px + env(safe-area-inset-bottom)); }

    .barra-inferior {
        position: fixed; z-index: 30; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
        display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
        height: 68px; padding: 0 6px;
        background: var(--tinta); border-radius: 22px;
        box-shadow: 0 16px 40px -14px rgba(18, 20, 23, .6);
    }
    .barra-item {
        display: grid; justify-items: center; gap: 3px;
        padding: 8px 0; border: 0; background: transparent; cursor: pointer;
        color: rgba(255, 255, 255, .6); text-decoration: none; font-size: 10.5px; font-weight: 600;
    }
    .barra-item i { font-size: 18px; }
    .barra-item .selo-breve { display: none; }
    .barra-item .menu-rotulo { flex: none; max-width: 100%; }
    .barra-item.ativo { color: var(--brasa); }
    .barra-novo {
        justify-self: center;
        width: 56px; height: 56px; margin-top: -30px; border-radius: 19px;
        display: grid; place-items: center; font-size: 22px;
        background: var(--brasa); color: var(--tinta); text-decoration: none;
        box-shadow: 0 0 0 6px var(--creme), var(--sombra-brasa);
        transition: transform .3s var(--mola);
    }
    .barra-novo:active { transform: scale(.92) rotate(90deg); }

    .toasts { top: auto; bottom: calc(92px + env(safe-area-inset-bottom)); right: 16px; }

    .so-celular { display: inline-flex !important; }
    body.com-barra-salvar .barra-inferior { display: none; }
    body.com-barra-salvar .toasts { bottom: calc(86px + env(safe-area-inset-bottom)); }

    /* Modal vira "folha" que sobe do rodapé; rodapé sempre visível */
    .modal { width: 100vw; max-width: 100vw; max-height: 92dvh; margin: auto 0 0; border-radius: 26px 26px 0 0; }
    .modal[open] { animation: folha-subir .4s var(--suave); }
    .modal-cabecalho { padding: 18px 16px 8px 20px; }
    .modal-corpo { padding: 8px 20px 12px; }
    .modal-rodape { padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); }
    .modal-rodape .btn { flex: 1; }
    .confirmacao { margin: auto; width: calc(100vw - 32px); border-radius: var(--raio-g); }
}

@keyframes folha-subir { from { transform: translateY(100%); } }

@media (max-width: 640px) {
    .barra-filtros .segmentado { width: 100%; }
    .barra-filtros .segmentado button { flex: 1; }
    .hero { grid-template-columns: 1fr; padding: 28px 22px 24px; border-radius: var(--raio-g); }
    .hero-arte { display: none; }
    .hero h1 { font-size: 30px; }
    .hero-sub { font-size: 15px; margin-bottom: 20px; }
    .hero-acoes .btn { flex: 1; padding: 0 14px; }
    .indicadores { gap: 10px; }
    .indicador { flex-direction: column; align-items: flex-start; gap: 10px; padding: 14px; }
    .indicador-icone { width: 40px; height: 40px; border-radius: 13px; font-size: 16px; }
    .indicador strong { font-size: 16px; }
    .cartao { padding: 18px; }
    .etapa-texto small { display: none; }
    .cartao-cardapio { flex-direction: column; align-items: flex-start; }
    .cardapio-qr { width: 72px; height: 72px; font-size: 40px; border-radius: 18px; }
    .grade-2 { grid-template-columns: 1fr; }
    .modulo-cabecalho { align-items: flex-start; }
    .modulo-acoes, .modulo-acoes .btn { width: 100%; }
    .abas { width: 100%; }
    .aba { flex: 1; justify-content: center; padding: 9px 6px; font-size: 13.5px; }
    .aba i { display: none; }
}

/* ------------------------------------------------------------ Planos e módulos */
.menu-item.sem-plano { opacity: .62; }
.menu-item.sem-plano:hover { opacity: 1; }
.selo-plano { background: rgba(255, 75, 31, .18); color: var(--brasa); padding: 3px 7px; }
.bloqueio-modulo .vazio-arte span { background: var(--tinta); color: var(--mostarda); }
.bloqueio-plano {
    display: grid; gap: 8px; justify-items: center; max-width: 440px; margin: 0 auto 22px;
    padding: 20px; border-radius: var(--raio-g); background: var(--pessego-2);
}
.bloqueio-plano p { margin: 0; color: var(--texto-2); font-size: 14px; }
.bloqueio-plano strong { font: 800 30px var(--fonte-titulo); }
.bloqueio-plano strong small { font: 600 14px var(--fonte); color: var(--texto-3); }
.bloqueio-modulo .texto-apoio { max-width: 460px; margin: 0 auto 22px; }

/* ------------------------------------------------------------ Opção em lista (rádio/checkbox)
   Componente compartilhado: modais de pedidos, impressão, plataforma. */
.opcao { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; cursor: pointer; }
.opcao:hover { background: var(--pessego-2); }
.opcao input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.opcao-marca { width: 22px; height: 22px; flex: none; border-radius: 50%; box-shadow: inset 0 0 0 2px var(--linha-forte); display: grid; place-items: center; transition: all .2s; }
.opcao-marca.quadrada { border-radius: 7px; }
.opcao input:checked + .opcao-marca { background: var(--tinta); box-shadow: inset 0 0 0 6px var(--tinta), inset 0 0 0 11px var(--brasa); }
.opcao input:checked + .opcao-marca.quadrada { box-shadow: none; }
.opcao input:checked + .opcao-marca.quadrada::after { content: "\f00c"; font: 900 11px "Font Awesome 6 Free"; color: var(--brasa); }
.opcao input:focus-visible + .opcao-marca { outline: 3px solid var(--brasa); outline-offset: 2px; }
.opcao-nome { flex: 1; font-weight: 600; font-size: 14.5px; }
.opcao-preco { font: 700 13.5px var(--fonte-titulo); color: var(--texto-2); }
.opcao.indisponivel { opacity: .45; cursor: not-allowed; }
.opcao:has(input:disabled:not(:checked)):not(.indisponivel) { opacity: .5; }

/* ------------------------------------------------------------ Faixa do teste grátis (topo das telas) */
.faixa-teste {
    display: flex; gap: 12px; align-items: center; margin: 0 0 18px; padding: 12px 16px;
    border-radius: var(--raio); background: var(--tinta); color: #fff; text-decoration: none;
    font-size: 14px; line-height: 1.4;
}
.faixa-teste > i { color: var(--brasa); font-size: 18px; flex: none; }
.faixa-teste span:nth-child(2) { flex: 1; color: rgba(255, 255, 255, .78); }
.faixa-teste strong { color: #fff; margin-right: 4px; }
.faixa-teste-acao { flex: none; font-weight: 800; color: var(--brasa); white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.faixa-teste:hover .faixa-teste-acao i { transform: translateX(3px); }
.faixa-teste-acao i { transition: transform .25s var(--mola); }
@media (max-width: 760px) {
    .faixa-teste { flex-wrap: wrap; font-size: 13px; }
    .faixa-teste-acao { width: 100%; padding-left: 30px; }
}
