.login { position: relative; min-height: 100vh; display: grid; place-items: center; padding: 16px; overflow: hidden;
  background: radial-gradient(ellipse 80% 60% at 50% 20%, color-mix(in srgb, var(--marca) 50%, transparent), transparent 70%), var(--fundo); }
.login::before { content: ""; position: absolute; inset: 0; background-image: var(--padrao); background-size: 72px; opacity: .1; }
.login-card { position: relative; text-align: center; }
.login-card form { text-align: left; }
.login-arabe { font-family: var(--serif); font-size: 72px; line-height: 1; background: var(--ouro-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.login-card { width: 100%; max-width: 380px; }
.login-nome { color: var(--texto); font-weight: 400; letter-spacing: 3px; margin: 2px 0 6px; }

.barra { background: rgba(28, 11, 19, .88); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); color: var(--texto); position: sticky; top: 0; z-index: 10; padding-top: env(safe-area-inset-top); border-bottom: 1px solid var(--linha); }
.barra-in { max-width: 900px; margin: 0 auto; padding: 12px 16px; display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.barra strong { font-size: 22px; color: var(--ouro-claro); letter-spacing: 1px; font-weight: 400; }
.barra .suave { color: var(--suave); }

.pagina { max-width: 900px; margin: 0 auto; padding: 16px 16px calc(96px + env(safe-area-inset-bottom)); display: grid; gap: 14px; }

.nav { position: fixed; bottom: 0; left: 0; right: 0; background: rgba(23, 9, 16, .96); backdrop-filter: blur(10px); border-top: 1px solid var(--linha); display: flex; z-index: 30; padding-bottom: env(safe-area-inset-bottom); }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 0 9px; font-size: 11px; color: var(--suave); text-decoration: none; font-weight: 600; }
.nav svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linejoin: round; stroke-linecap: round; }
.nav a.ativo { color: var(--ouro-claro); }
.nav a.ativo svg { filter: drop-shadow(0 0 6px rgba(201, 164, 92, .5)); }

.kpi { background: linear-gradient(180deg, var(--card-2), var(--card)); border: 1px solid var(--linha); border-radius: var(--raio); padding: 12px 14px; box-shadow: var(--sombra); }
.kpi .rot { font-size: 12px; color: var(--suave); font-weight: 600; }
.kpi .val { font-size: 21px; font-weight: 700; margin-top: 2px; font-variant-numeric: tabular-nums; }
.kpi.destaque { background: var(--ouro-grad); color: #2a1206; border-color: transparent; }
.kpi.destaque .rot { color: rgba(42, 18, 6, .75); }

.cab { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; }
.cab h2 { margin: 0; }

.lista { display: grid; gap: 8px; }
.item { background: var(--card); border: 1px solid var(--linha); border-radius: 12px; padding: 11px 13px; display: flex; gap: 12px; align-items: center; cursor: pointer; }
.item .thumb { width: 46px; height: 46px; border-radius: 10px; object-fit: cover; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--linha); flex: none; display: grid; place-items: center; font-family: var(--serif); color: var(--ouro); font-size: 22px; }
.item .thumb { border-radius: 23px 23px 8px 8px; height: 52px; }
.item .tit { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item .dir { text-align: right; flex: none; }

.menu-mais a { display: flex; align-items: center; justify-content: space-between; padding: 15px 14px; background: var(--card); border: 1px solid var(--linha); border-radius: 12px; text-decoration: none; color: var(--texto); font-weight: 600; }

.pdv-item { display: flex; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--linha); }
.pdv-item input { width: 90px; min-height: 36px; padding: 6px 8px; }
.qtd { display: flex; align-items: center; gap: 6px; }
.qtd button { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--linha); background: var(--card-2); color: var(--texto); font-size: 17px; cursor: pointer; }
.sugestoes { border: 1px solid var(--linha); border-radius: 10px; background: var(--campo); max-height: 260px; overflow-y: auto; margin-top: 4px; }
.sugestoes div { padding: 10px 12px; border-bottom: 1px solid var(--linha); cursor: pointer; display: flex; justify-content: space-between; gap: 8px; }
.sugestoes div:last-child { border-bottom: 0; }

.barras { display: grid; gap: 8px; }
.barras .b { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; font-size: 14px; }
.barras .trilho { grid-column: 1 / -1; height: 8px; background: rgba(243, 230, 211, .08); border-radius: 4px; overflow: hidden; }
.barras .trilho span { display: block; height: 100%; background: var(--ouro-grad); border-radius: 4px; }

.foto-prev { width: 100%; max-width: 180px; aspect-ratio: 1; object-fit: cover; border-radius: 12px; background: var(--card); margin-top: 6px; box-shadow: inset 0 0 0 1px var(--linha); }
.check { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-weight: 600; color: var(--texto); font-size: 14px; }

/* ---------- Ferramentas: leitor, catálogo, importação ---------- */
.atalhos { display: flex; gap: 8px; flex-wrap: wrap; margin: 4px 0 2px; }
.camada { position: fixed; inset: 0; z-index: 80; background: rgba(8, 2, 5, .75); display: flex; align-items: flex-end; justify-content: center; }
@media (min-width: 640px) { .camada { align-items: center; } }
.camada-caixa { background: var(--fundo); width: 100%; max-width: 520px; max-height: 94vh; overflow-y: auto; border-radius: 20px 20px 0 0; border-top: 1px solid var(--ouro); padding: 16px 16px calc(20px + env(safe-area-inset-bottom)); }
@media (min-width: 640px) { .camada-caixa { border-radius: 18px; } }
.leitor { width: 100%; min-height: 240px; background: #07020a; box-shadow: inset 0 0 0 1px var(--ouro); border-radius: 12px; overflow: hidden; margin-top: 10px; }
.leitor video { width: 100% !important; height: auto !important; display: block; }
.cat-lista { display: grid; gap: 6px; margin-top: 10px; max-height: 58vh; overflow-y: auto; }
.cat-item { display: flex; gap: 10px; align-items: center; padding: 10px 12px; background: var(--card); border: 1px solid var(--linha); border-radius: 10px; cursor: pointer; margin: 0; color: var(--texto); font-weight: 400; font-size: 15px; }
.cat-item.ja { opacity: .55; }
.cat-item input { width: 20px; height: 20px; flex: none; }

.menu-mais a { background: linear-gradient(180deg, var(--card-2), var(--card)); }
.menu-mais a .suave { color: var(--ouro); }
.item { background: linear-gradient(180deg, var(--card-2), var(--card)); }
.sugestoes div:hover, .item:hover { border-color: rgba(201, 164, 92, .4); }
.pagina > .cab h2 { color: var(--texto); }
.aviso-cod { display: grid; gap: 8px; justify-items: start; margin-top: 10px; padding: 12px; border-radius: 12px; border: 1px dashed var(--ouro); background: rgba(201, 164, 92, .07); font-size: 14px; }
