/* VIDEREVOX — App do Usuário final (foco em acessibilidade / deficiência visual).
   Referência de tela: 932x430 (paisagem) dos PDFs, adaptado responsivo. */
.user-body { background: #050a12; min-height: 100vh; }
.stage {
  position: relative; min-height: 100vh; overflow-x: hidden;
  background:
    radial-gradient(900px 500px at 50% 20%, rgba(41,171,226,.10), transparent 60%),
    linear-gradient(180deg, #08121f 0%, #04080f 100%);
}

/* Teclas numéricas laterais 1-6 (padrão das telas do PDF) */
.numpad { position: fixed; inset: 0; pointer-events: none; z-index: 30; }
.numkey {
  position: absolute; width: 92px; height: 92px; border-radius: 22px; border: 0; cursor: pointer;
  background: #1d5f7d; color: #7e97a8; font-size: 44px; font-weight: 700; font-family: inherit;
  display: grid; place-items: center; pointer-events: auto; transition: background .15s, color .15s, transform .08s;
}
.numkey:hover, .numkey:focus-visible { color: #fff; transform: scale(1.04); }
.numkey.enabled { background: var(--vdx-cyan); color: #fff; }
.numkey.enabled.green { background: #16a92f; }
.numkey[data-k="1"] { right: 16px; top: 8%; }
.numkey[data-k="2"] { right: 16px; top: 38%; }
.numkey[data-k="3"] { right: 16px; top: 68%; }
.numkey[data-k="4"] { left: 16px; top: 8%; }
.numkey[data-k="5"] { left: 16px; top: 38%; }
.numkey[data-k="6"] { left: 16px; top: 68%; }
@media (max-width: 900px) {
  .numkey { width: 58px; height: 58px; font-size: 27px; border-radius: 15px; }
  .numkey[data-k="1"] { right: 8px; top: 6%; } .numkey[data-k="2"] { right: 8px; top: 40%; } .numkey[data-k="3"] { right: 8px; top: 74%; }
  .numkey[data-k="4"] { left: 8px; top: 6%; }  .numkey[data-k="5"] { left: 8px; top: 40%; }  .numkey[data-k="6"] { left: 8px; top: 74%; }
}
@media (max-width: 560px) { .numpad { display: none; } }
/* Telas de painel duplo escondem os botões flutuantes (as teclas do teclado seguem ativas). */
body.vdx-numpad-off .numpad { display: none; }

.screen { min-height: 100vh; padding: 30px 128px; display: flex; flex-direction: column; justify-content: center; }
@media (max-width: 900px) { .screen { padding: 26px 82px; } }
@media (max-width: 560px) { .screen { padding: 20px 16px 100px; } }

/* Tela de abertura */
.splash { text-align: center; }
.splash .big-logo { margin-bottom: 26px; }
.splash .mic-hint { color: #9fb3c8; font-size: 15px; margin-top: 20px; }
.splash-mic {
  width: 128px; height: 128px; border-radius: 50%; background: var(--vdx-cyan); border: 0; cursor: pointer;
  display: grid; place-items: center; margin: 0 auto; color: #fff; box-shadow: 0 0 0 14px rgba(41,171,226,.16);
}
.splash-mic svg { width: 58px; height: 58px; }
.not-blind {
  background: none; border: 0; color: #fff; font: inherit; font-weight: 700; font-size: 17px;
  cursor: pointer; text-decoration: underline; margin-top: 26px;
}

/* Onboarding */
.ob-question { text-align: center; }
.ob-question h1 { font-size: clamp(26px, 4vw, 40px); margin: 0 0 22px; }
.ob-question .input {
  background: #fff; color: #111827; font-size: clamp(20px, 3vw, 32px); font-weight: 700; text-align: center;
  padding: 18px; border-radius: 10px; max-width: 620px; margin: 0 auto;
}
.ob-grid { display: grid; grid-template-columns: 200px 1.1fr 1fr; gap: 26px; align-items: center; }
@media (max-width: 900px) { .ob-grid { grid-template-columns: 1fr; } }
.ob-avatar-wrap { position: relative; justify-self: center; }
.ob-avatar {
  width: 190px; height: 190px; border-radius: 50%; border: 5px solid #fff;
  background: linear-gradient(160deg, #f0a55c, #b5652c); display: grid; place-items: center;
  font-size: 62px; font-weight: 700; color: #fff;
}
.ob-avatar-edit {
  position: absolute; right: 8px; bottom: 8px; width: 54px; height: 54px; border-radius: 50%;
  background: var(--vdx-cyan); border: 0; color: #fff; cursor: pointer; display: grid; place-items: center;
}
.ob-avatar-edit svg { width: 24px; height: 24px; }
.ob-fields .input, .ob-fields .select { background: #fff; color: #111827; font-size: 17px; font-weight: 500; padding: 15px; }
.pref-row {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #fff; color: #111827; border-radius: 8px; padding: 12px 8px 12px 18px; margin-bottom: 11px;
  font-weight: 600; font-size: 16px;
}
.start-btn { background: var(--vdx-cyan); font-size: 22px; padding: 20px; width: 100%; letter-spacing: .02em; }

/* Menu principal */
.menu-main { text-align: center; }
.menu-main h1 { font-size: clamp(26px, 4vw, 38px); margin: 0 0 26px; }
.menu-list { max-width: 470px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.menu-item {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: #fff; color: #111827; border: 0; border-radius: 8px; padding: 17px 12px 17px 22px;
  font: inherit; font-weight: 700; font-size: 17px; cursor: pointer; text-align: left; width: 100%;
}
.menu-item:hover, .menu-item:focus-visible { background: #e8f4fb; }
.menu-item .key {
  background: var(--vdx-cyan); color: #fff; border-radius: 6px; min-width: 40px; height: 36px;
  display: grid; place-items: center; font-size: 19px; flex: none;
}

/* Cartões grandes (atalhos da home visual) */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 20px; max-width: 1000px; margin: 0 auto; }
.tile {
  background: none; border: 0; cursor: pointer; color: #fff; font: inherit; display: flex; flex-direction: column; gap: 12px; align-items: center;
}
.tile .art { width: 100%; aspect-ratio: 1.05; border-radius: 10px; position: relative; overflow: hidden; display: grid; place-items: center; }
.tile .art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.5)); }
.tile .badge-icon {
  width: 84px; height: 84px; border-radius: 8px; background: #16a92f; display: grid; place-items: center;
  position: relative; z-index: 2; color: #fff;
}
.tile .badge-icon svg { width: 44px; height: 44px; }
.tile b { font-size: 17px; text-align: center; line-height: 1.3; }

/* Cabeçalho de página interna */
.page-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.page-head .ico { width: 54px; height: 54px; border-radius: 8px; background: #16a92f; display: grid; place-items: center; flex: none; color: #fff; }
.page-head .ico svg { width: 30px; height: 30px; }
.page-head h1 { font-size: clamp(21px, 3vw, 28px); margin: 0; }
.back-btn { background: none; border: 0; color: var(--vdx-cyan); font: inherit; font-weight: 700; cursor: pointer; padding: 8px 0; display: flex; gap: 8px; align-items: center; }
.back-btn svg { width: 20px; height: 20px; }

/* Painel branco (listas do usuário) */
.white-panel { background: #fff; color: #111827; border-radius: 12px; padding: 22px 24px; max-width: 1080px; margin: 0 auto; }
.tab-row { display: flex; gap: 4px; margin-bottom: 0; }
.tab-row button {
  background: rgba(255,255,255,.55); border: 0; color: #4b5563; font: inherit; font-weight: 700; font-size: 17px;
  padding: 15px 26px; border-radius: 10px 10px 0 0; cursor: pointer;
}
.tab-row button.active { background: #fff; color: #111827; }
.panel-body { background: #fff; color: #111827; border-radius: 0 12px 12px 12px; padding: 22px 24px; }

.search-bar { display: flex; gap: 0; margin-bottom: 18px; }
.search-bar input { flex: 1; background: #1c222c; color: #fff; border: 0; border-radius: 8px 0 0 8px; padding: 15px 18px; font: inherit; font-weight: 700; }
.search-bar input::placeholder { color: #9ca3af; }
.search-bar button { background: #1c222c; border: 0; color: #fff; padding: 0 18px; border-radius: 0 8px 8px 0; cursor: pointer; }
.search-bar button svg { width: 22px; height: 22px; }

.slider-row { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; font-weight: 700; }
.slider-row input[type=range] { flex: 1; accent-color: #16a92f; height: 8px; }

/* Item de resultado */
.result-item { display: grid; grid-template-columns: 76px 1fr auto; gap: 16px; align-items: center; padding: 15px 0; border-bottom: 1px solid #eef1f5; }
.result-thumb { width: 76px; height: 76px; border-radius: 6px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 11px; text-align: center; padding: 6px; }
.result-name { font-size: 17px; font-weight: 700; }
.result-store { display: flex; align-items: center; gap: 9px; margin-top: 5px; font-size: 14px; }
.store-logo { width: 46px; height: 34px; border-radius: 4px; display: grid; place-items: center; font-size: 9px; font-weight: 800; color: #fff; text-align: center; flex: none; }
.open-now { color: #16a92f; font-size: 13.5px; }
.btn-collect { background: #16a92f; font-size: 15px; padding: 13px 26px; }
.promo-flag { color: #16a92f; font-weight: 800; }

/* Listas de compras */
.list-card { background: #fff; color: #111827; border-radius: 10px; padding: 16px 18px; margin-bottom: 14px; display: grid; grid-template-columns: 46px 1fr auto 108px; gap: 14px; align-items: center; }
.list-card .lc-ico { width: 44px; height: 44px; border-radius: 6px; background: #16a92f; display: grid; place-items: center; color: #fff; }
.list-card .lc-ico svg { width: 24px; height: 24px; }
.lc-label { font-size: 11.5px; letter-spacing: .06em; color: #6b7280; text-transform: uppercase; }
.lc-name { font-size: 20px; font-weight: 700; line-height: 1.15; }
.lc-count { color: #4b5563; font-size: 15px; }
.lc-tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 9px; }
.lc-time { text-align: right; }
.lc-time b { font-size: 20px; }
.lc-go { background: #16a92f; border: 0; border-radius: 8px; color: #fff; cursor: pointer; height: 92px; display: grid; place-items: center; }
.lc-go svg { width: 34px; height: 34px; }
.lc-actions { display: flex; gap: 8px; justify-content: flex-end; margin-top: 8px; }
.lc-actions button { width: 42px; height: 32px; border-radius: 16px; border: 0; background: var(--vdx-cyan); color: #fff; cursor: pointer; display: grid; place-items: center; }
.lc-actions button svg { width: 17px; height: 17px; }
.lc-actions button.danger { background: #e6263a; }

/* Coleta com rota */
.collect-wrap { display: grid; grid-template-columns: 420px 1fr; gap: 0; min-height: 100vh; }
@media (max-width: 900px) { .collect-wrap { grid-template-columns: 1fr; } }
.collect-side { background: #fff; color: #111827; padding: 22px 24px 30px; border-radius: 0 22px 22px 0; overflow-y: auto; max-height: 100vh; }
.collect-map { position: relative; background: #071a33; display: grid; place-items: center; }
.collect-map svg { width: 100%; height: auto; }
.step-row { display: grid; grid-template-columns: 46px 1fr 58px; gap: 12px; align-items: center; margin-bottom: 12px; }
.step-num { width: 46px; height: 46px; border-radius: 50%; background: var(--vdx-cyan); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 19px; }
.step-num.done { background: #16a92f; }
.step-card { border: 1px solid #e5e9ee; border-radius: 8px; padding: 11px 14px; }
.step-card b { display: block; font-size: 15px; }
.step-card span { font-size: 15px; }
.step-take { height: 100%; min-height: 54px; border: 0; border-radius: 8px; background: #cbd0d6; color: #fff; cursor: pointer; display: grid; place-items: center; }
.step-take.done { background: #16a92f; }
.step-take svg { width: 24px; height: 24px; }
.dica { background: #16a92f; color: #fff; font-size: 11px; font-weight: 800; padding: 2px 8px; border-radius: 3px; display: inline-block; margin: 8px 0 4px; }
.collect-total {
  position: absolute; top: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: stretch;
  border-radius: 8px; overflow: hidden; box-shadow: 0 6px 20px rgba(0,0,0,.4); z-index: 5;
}
.collect-total .val { background: #fff; color: #111827; padding: 14px 22px; font-weight: 700; font-size: 20px; display: flex; align-items: center; gap: 10px; }
.collect-total .val svg { width: 24px; height: 24px; }
.collect-total button { background: #16a92f; border: 0; color: #fff; font: inherit; font-weight: 700; font-size: 19px; padding: 0 26px; cursor: pointer; }
.finish-total { font-size: clamp(44px, 8vw, 84px); font-weight: 700; margin: 20px 0; }

/* Mapa de estabelecimentos */
.geo-wrap { display: grid; grid-template-columns: 420px 1fr; min-height: 100vh; }
@media (max-width: 900px) { .geo-wrap { grid-template-columns: 1fr; } }
.geo-side { background: #fff; color: #111827; padding: 22px 24px 30px; border-radius: 0 22px 22px 0; overflow-y: auto; max-height: 100vh; }
.geo-map { position: relative; background: #0a1c2e; }
.geo-map svg { width: 100%; height: 100%; display: block; }
.store-row { border-left: 4px solid var(--vdx-cyan); padding: 12px 14px; margin-bottom: 11px; background: #f5f7f9; border-radius: 0 8px 8px 0; display: grid; grid-template-columns: 40px 1fr auto; gap: 12px; align-items: center; }
.store-pin { width: 34px; height: 34px; border-radius: 50% 50% 50% 4px; transform: rotate(-45deg); display: grid; place-items: center; color: #fff; font-weight: 800; }
.store-pin span { transform: rotate(45deg); }
.store-row b { font-size: 15px; }
.store-row .addr { font-size: 13.5px; color: #4b5563; }
.btn-route { background: var(--vdx-cyan); font-size: 13px; padding: 8px 16px; }
.route-banner { position: absolute; top: 0; left: 0; background: #fff; color: #111827; border-radius: 0 0 22px 0; padding: 20px 26px; display: flex; align-items: center; gap: 20px; z-index: 5; }
.route-banner .ico { width: 48px; height: 48px; border-radius: 8px; background: #16a92f; display: grid; place-items: center; color: #fff; }
.route-banner h2 { margin: 0; font-size: 21px; }
.route-banner .dist { color: var(--vdx-cyan); font-weight: 700; }

/* Detalhe do estabelecimento */
.store-card { background: #fff; color: #111827; border-radius: 12px; overflow: hidden; max-width: 760px; margin: 0 auto; display: grid; grid-template-columns: 240px 1fr; }
@media (max-width: 700px) { .store-card { grid-template-columns: 1fr; } }
.store-photo { background: linear-gradient(160deg, #0e7a3d, #16a92f); min-height: 190px; display: grid; place-items: center; color: rgba(255,255,255,.4); }
.store-photo svg { width: 70px; height: 70px; }
.store-info { padding: 20px 22px; }
.store-info h2 { margin: 0 0 8px; font-size: 22px; }
.badge-open { background: #16a92f; color: #fff; font-size: 12px; font-weight: 800; padding: 3px 10px; border-radius: 3px; }
.integrated-banner { background: #16a92f; color: #fff; border-radius: 8px; padding: 14px; text-align: center; margin-top: 16px; }
.integrated-banner small { display: block; font-size: 12px; letter-spacing: .05em; margin-bottom: 6px; }
.store-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 760px; margin: 20px auto 0; }
@media (max-width: 560px) { .store-actions { grid-template-columns: 1fr; } }

/* Voz */
.voice-overlay { position: fixed; inset: 0; background: rgba(4,10,18,.9); display: grid; place-items: center; z-index: 500; }
.voice-mic { width: 190px; height: 190px; border-radius: 50%; background: #16a92f; display: grid; place-items: center; color: #fff; box-shadow: 0 0 0 34px rgba(22,169,47,.14); animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% { box-shadow: 0 0 0 24px rgba(22,169,47,.14); } 50% { box-shadow: 0 0 0 44px rgba(22,169,47,.08); } }
.voice-mic svg { width: 84px; height: 84px; }
.voice-overlay p { color: #fff; text-align: center; margin-top: 26px; font-size: 19px; max-width: 460px; padding: 0 20px; }

.history-item { background: #fff; color: #111827; border-radius: 10px; padding: 15px 18px; margin-bottom: 11px; display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.history-item b { font-size: 16px; }
.history-item .tot { font-size: 21px; font-weight: 700; color: #16a92f; }

.discount-item { background: #fff; color: #111827; border-radius: 10px; padding: 15px 18px; margin-bottom: 11px; display: grid; grid-template-columns: 70px 1fr auto auto; gap: 15px; align-items: center; }
.disc-pct { background: #e6263a; color: #fff; border-radius: 6px; padding: 9px; text-align: center; font-weight: 800; font-size: 17px; }

.a11y-help { position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; background: rgba(8,18,32,.94); color: #cfe3f2; border: 1px solid rgba(120,180,230,.3); border-radius: 10px; padding: 9px 16px; font-size: 12.5px; z-index: 40; }
@media (max-width: 560px) { .a11y-help { display: none; } }

/* Saída para quem já tem conta — sem ela a tela inicial só levava ao cadastro. */
.splash-entrar { margin-top: 26px; }
.splash-entrar .btn { min-width: 280px; }
@media (max-width: 520px) { .splash-entrar .btn { min-width: 0; width: 100%; max-width: 340px; } }

/* Identificar produto pela câmera — a função central do produto */
.menu-camera {
  display: flex; align-items: center; gap: 15px; width: 100%; max-width: 620px; margin: 0 auto 20px;
  background: var(--vdx-cyan-2); color: #fff; border: 0; border-radius: 14px; cursor: pointer;
  padding: 18px 20px; text-align: left; font: inherit;
}
.menu-camera:hover { filter: brightness(1.08); }
.menu-camera span { display: flex; flex-direction: column; flex: 1; }
.menu-camera b { font-size: 19px; font-weight: 800; }
.menu-camera em { font-style: normal; font-size: 13.5px; opacity: .9; margin-top: 2px; }
.menu-camera .key {
  flex: 0 0 auto; background: rgba(0,0,0,.28); border-radius: 9px; padding: 6px 13px;
  font-weight: 800; font-size: 17px;
}

.id-wrap { text-align: center; }
.id-camera { position: relative; max-width: 520px; margin: 0 auto 16px; border-radius: 16px; overflow: hidden; background: #04101c; aspect-ratio: 1 / 1; }
.id-camera video { width: 100%; height: 100%; object-fit: cover; display: block; }
.id-alvo { position: absolute; inset: 10%; border: 3px dashed rgba(255,255,255,.65); border-radius: 12px; pointer-events: none; }
.id-estado { font-size: 17px; font-weight: 600; color: #cfe0ee; margin: 0 auto 14px; max-width: 560px; min-height: 46px; }
.id-achado {
  display: flex; flex-direction: column; gap: 5px; max-width: 520px; margin: 0 auto 14px;
  background: var(--vdx-panel); border: 2px solid var(--vdx-green); border-radius: 14px; padding: 16px 18px; text-align: left;
}
.id-achado b { font-size: 20px; }
.id-achado .id-preco { font-size: 22px; font-weight: 800; color: var(--vdx-green); }
.id-achado .id-preco em { font-style: normal; font-size: 14px; }
