:root {
  /* Marca Fica Ali (cores oficiais) */
  --yellow: #FFF212;
  --yellow-d: #E7D800;
  --slate: #263E52;
  --slate-d: #1A2C3B;
  --slate-soft: #ECEFF2;
  --ink: #223547;
  --muted: #62727F;
  --line: #E6EAEE;
  --bg: #F5F6F8;
  --card: #FFFFFF;
  --green: #25D366;
  --radius: 16px;
  --shadow: 0 6px 24px rgba(38, 50, 63, .08);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 62px;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
[hidden] { display: none !important; }
/* Dentro do app nativo (WebView iOS/Android) não faz sentido oferecer o download do app. */
html.is-app .store-badges,
body.is-app .store-badges,
html.is-app .app-banner,
body.is-app .app-banner,
html.is-app .install-btn,
body.is-app .install-btn { display: none !important; }
html, body { margin: 0; height: 100%; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #DFE3E8;
  overscroll-behavior-y: none;
}
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; border: none; background: none; }
a { color: inherit; }

/* App shell — moldura de app no mobile */
#app {
  display: flex; flex-direction: column;
  max-width: 520px; margin: 0 auto;
  min-height: 100vh; min-height: 100dvh;
  background: var(--bg); position: relative;
  box-shadow: 0 0 60px rgba(0,0,0,.14);
}

/* Topbar — amarelo da marca */
.topbar {
  padding: calc(var(--safe-top) + 12px) 16px 12px;
  background: var(--yellow); color: var(--slate);
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
}
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; }
.brand-lockup { height: 30px; width: auto; display: block; }
.region { color: var(--slate); opacity: .78; font-size: 12px; padding: 0; text-align: left; font-weight: 700; }
.topbar-actions { display: flex; align-items: center; gap: 8px; }
.desktop-nav { display: none; }
.store-badges { display: none; gap: 6px; align-items: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 5px; text-decoration: none;
  background: var(--slate); color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 6px 11px; border-radius: 8px; white-space: nowrap; line-height: 1;
}
.store-badge:hover { background: var(--slate-d); }
.store-badge svg { flex: none; }
.install-btn {
  background: var(--slate); color: var(--yellow); font-weight: 800; font-size: 13px;
  padding: 8px 14px; border-radius: 999px;
}
.install-btn:hover { background: var(--slate-d); }

/* Banner de download do app (mobile web) */
.app-banner {
  background: var(--card); border-bottom: 1px solid var(--line); padding: 10px 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
}
.app-banner-inner { display: flex; align-items: center; gap: 10px; }
.app-banner-icon { width: 40px; height: 40px; border-radius: 10px; flex: none; }
.app-banner-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.2; }
.app-banner-text strong { font-size: 14px; color: var(--ink); }
.app-banner-text span { font-size: 12px; color: var(--muted); }
.app-banner-links { display: flex; gap: 6px; }
.app-banner-btn {
  display: inline-block; text-decoration: none; background: var(--yellow); color: var(--slate);
  font-size: 12px; font-weight: 800; padding: 7px 12px; border-radius: 8px; white-space: nowrap;
}
.app-banner-btn:hover { background: var(--yellow-d); }
.app-banner-close {
  width: 28px; height: 28px; border-radius: 50%; background: var(--bg);
  color: var(--muted); font-size: 12px; flex: none; display: grid; place-items: center;
}

/* Cabeçalho de Busca & IA Unificada */
.search-header-container {
  background: #fff;
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.searchbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 6px;
}
.search-ico { position: absolute; margin-left: 14px; font-size: 15px; opacity: .45; pointer-events: none; }
#search {
  flex: 1; min-width: 0; outline: none; border: 1.5px solid var(--line);
  background: var(--bg); border-radius: 999px; padding: 10px 14px 10px 38px; font-size: 14.5px;
  transition: border-color .15s, background .15s, box-shadow .15s;
}
#search:focus { border-color: var(--yellow-d); background: #fff; box-shadow: 0 0 0 3px rgba(234, 179, 8, 0.15); }

/* Botão Perguntar à IA: destaque escuro/dourado inteligente */
.ai-search-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--slate); color: var(--yellow); font-weight: 800; font-size: 13px;
  padding: 9px 15px; border-radius: 999px; cursor: pointer; white-space: nowrap;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1); transition: all 0.15s;
}
.ai-search-btn:hover { background: #1a242f; transform: scale(1.02); }
.ai-sparkle-ico { font-size: 13px; }

/* Botão Perto de mim: tom neutro suave para não conflitar com IA */
.near-btn {
  display: inline-flex; align-items: center; gap: 5px;
  white-space: nowrap; background: #F1F5F9; color: var(--slate); border: 1px solid var(--line);
  font-weight: 700; font-size: 13px; padding: 9px 13px; border-radius: 999px; cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.near-btn:hover { background: #E2E8F0; }
.near-btn.is-on { background: var(--yellow); border-color: var(--yellow-d); box-shadow: 0 0 0 3px rgba(255,225,0,.35); }

/* Sugestões sutis de IA */
.ai-prompts-bar {
  display: flex; align-items: center; gap: 8px;
  padding: 2px 14px 8px; overflow-x: auto; scrollbar-width: none;
}
.ai-prompts-bar::-webkit-scrollbar { display: none; }
.ai-prompts-label {
  font-size: 11px; font-weight: 800; color: #92400E; text-transform: uppercase;
  letter-spacing: 0.5px; white-space: nowrap;
}
.ai-prompts-scroll { display: flex; gap: 6px; }
.ai-prompt-pill {
  flex-shrink: 0; background: #FFFBEB; border: 1px solid #FDE68A; color: #92400E;
  border-radius: 999px; padding: 4px 11px; font-size: 12px; font-weight: 700;
  white-space: nowrap; cursor: pointer; transition: all .15s ease;
}
.ai-prompt-pill:hover {
  background: var(--yellow); color: var(--slate); border-color: var(--yellow-d); transform: translateY(-1px);
}

/* Barra de Filtros: Região + Aberto Agora + Categorias unificadas em uma única linha */
.filter-toolbar {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 14px 8px; border-top: 1px solid #F1F5F9; position: relative;
}
.region-pill-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: #F8FAFC; border: 1px solid var(--line); padding: 6px 12px;
  border-radius: 999px; font-size: 12px; color: var(--slate); font-weight: 700;
  white-space: nowrap; cursor: pointer; flex-shrink: 0; transition: all .15s ease;
}
.region-pill-btn:hover { background: var(--yellow); border-color: var(--yellow-d); }
.region-pin-ico { font-size: 13px; }
.region-change-tag { color: var(--muted); font-size: 10px; margin-left: 2px; }

/* Botão Aberto Agora */
.filter-aberto-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: #F8FAFC; border: 1px solid var(--line); padding: 6px 12px;
  border-radius: 999px; font-size: 12px; font-weight: 700; color: var(--slate);
  cursor: pointer; white-space: nowrap; flex-shrink: 0; transition: all .15s ease;
}
.filter-aberto-btn:hover { background: #ECFDF5; border-color: #A7F3D0; }
.filter-aberto-btn.is-active {
  background: #10B981; color: #fff; border-color: #059669;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.25);
}
.filter-aberto-btn .dot-live { color: #10B981; font-size: 11px; }
.filter-aberto-btn.is-active .dot-live { color: #fff; }

/* Contêiner de Categorias com Setas de Navegação e Scrollbar no Desktop */
.chips-scroll-wrap {
  display: flex; align-items: center; gap: 4px; flex: 1; min-width: 0; position: relative;
}
.chips-nav-arrow {
  width: 26px; height: 26px; border-radius: 50%; background: #fff;
  border: 1px solid var(--line); color: var(--slate); display: grid; place-items: center;
  font-size: 16px; font-weight: 800; cursor: pointer; flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0,0,0,0.08); transition: all .15s ease; z-index: 2;
}
.chips-nav-arrow:hover { background: var(--yellow); border-color: var(--yellow-d); }

.chips {
  display: flex; gap: 6px; overflow-x: auto; background: transparent;
  border: none; padding: 2px 2px 5px; flex: 1; min-width: 0;
  scroll-behavior: smooth; scrollbar-width: thin; scrollbar-color: #CBD5E1 transparent;
}
.chips::-webkit-scrollbar { height: 4px; display: block; }
.chips::-webkit-scrollbar-track { background: transparent; }
.chips::-webkit-scrollbar-thumb { background: #CBD5E1; border-radius: 999px; }
.chips::-webkit-scrollbar-thumb:hover { background: var(--yellow-d); }

.chip {
  white-space: nowrap; background: #F1F5F9; color: var(--slate);
  border: 1px solid var(--line); padding: 5px 12px; border-radius: 999px;
  font-size: 12.5px; font-weight: 600; flex-shrink: 0; cursor: pointer; transition: all .15s;
}
.chip:hover { border-color: var(--yellow); }
.chip.is-active { background: var(--yellow); color: var(--slate); border-color: var(--yellow-d); font-weight: 800; }

/* Conteúdo */
.content { flex: 1; position: relative; overflow: hidden; background: var(--bg); }
.view { display: none; height: 100%; overflow-y: auto; -webkit-overflow-scrolling: touch;
  padding-bottom: calc(var(--tabbar-h) + var(--safe-bottom) + 12px); }
.view.is-active { display: block; }
#view-mapa.is-active { display: flex; }

/* Cards */
.cards { padding: 14px 14px 0; display: flex; flex-direction: column; gap: 12px; }
.loc-hint {
  margin: 14px 14px 0; padding: 10px 12px; background: var(--yellow); color: var(--slate);
  border-radius: 12px; font-size: 13px; font-weight: 700;
}
.card {
  display: flex; gap: 12px; background: var(--card); border-radius: var(--radius);
  box-shadow: var(--shadow); padding: 12px; align-items: center; text-align: left; width: 100%; border: 1px solid var(--line);
}
.card.is-selected { border-color: var(--yellow); box-shadow: 0 0 0 2px var(--yellow), var(--shadow); }
.card:active { transform: scale(.99); }
.card-thumb {
  width: 62px; height: 62px; flex: none; border-radius: 12px; display: grid; place-items: center;
  font-size: 28px; background: var(--slate-soft); border: 1px solid var(--line);
}
.card-thumb.has-logo { padding: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.card-thumb.has-logo img { width: 100%; height: 100%; object-fit: contain; padding: 3px; }
.card-main { flex: 1; min-width: 0; }
.card-top { display: flex; align-items: center; gap: 6px; }
.card-name { font-weight: 700; font-size: 15.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink); }
.card-cat { font-size: 12.5px; color: var(--muted); margin-top: 1px; }
.card-meta { display: flex; align-items: center; gap: 10px; margin-top: 6px; font-size: 12.5px; color: var(--muted); flex-wrap: wrap; }
.rate { color: var(--ink); font-weight: 700; }
.dist {
  color: var(--slate); font-weight: 800; background: var(--yellow); padding: 2px 8px;
  border-radius: 6px; font-size: 12px; display: inline-flex; align-items: center; gap: 2px;
}
/* Ações rápidas no card e Status Aberto/Fechado */
.card-actions-quick {
  display: flex; align-items: center; gap: 6px; margin-top: 6px;
}
.card-btn-wa {
  display: inline-flex; align-items: center; gap: 4px;
  background: #22C55E; color: #fff; text-decoration: none;
  font-size: 11.5px; font-weight: 800; padding: 4px 10px;
  border-radius: 999px; box-shadow: 0 1px 4px rgba(34, 197, 94, 0.25);
  transition: background 0.15s, transform 0.1s;
}
.card-btn-wa:hover { background: #16A34A; transform: scale(1.03); }
.badge-status-open {
  color: #16A34A; font-weight: 800; font-size: 11px;
  display: inline-flex; align-items: center; gap: 3px;
}
.badge-status-closed {
  color: #94A3B8; font-weight: 600; font-size: 11px;
}

/* Card Anuncie no Feed da Home */
.anuncie-feed-card {
  background: linear-gradient(135deg, #1E293B 0%, #0F172A 100%);
  color: #fff; border-radius: var(--radius); padding: 18px 16px;
  margin: 4px 0 10px; box-shadow: 0 4px 18px rgba(15, 23, 42, 0.16);
  cursor: pointer; position: relative; overflow: hidden;
  border: 1px solid #334155; transition: transform 0.15s, box-shadow 0.15s;
}
.anuncie-feed-card:hover {
  transform: translateY(-2px); box-shadow: 0 8px 24px rgba(15, 23, 42, 0.25);
}
.anuncie-feed-badge {
  display: inline-block; background: var(--yellow); color: var(--slate);
  font-size: 10px; font-weight: 900; text-transform: uppercase;
  letter-spacing: 0.6px; padding: 3px 8px; border-radius: 999px; margin-bottom: 8px;
}
.anuncie-feed-title {
  margin: 0 0 6px; font-size: 15px; font-weight: 800; color: #F8FAFC; line-height: 1.35;
}
.anuncie-feed-desc {
  margin: 0 0 12px; font-size: 12.5px; color: #94A3B8; line-height: 1.45;
}
.anuncie-feed-btn {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--yellow); color: var(--slate); font-weight: 800;
  font-size: 12px; padding: 7px 14px; border-radius: 8px;
}

.empty { text-align: center; color: var(--muted); padding: 40px 24px; }

/* Card de Auto-Inclusão / Anunciar */
.not-found-cta {
  background: #FFFDE6;
  border: 1.5px dashed #D97706;
  border-radius: var(--radius);
  padding: 16px;
  margin: 16px 14px;
  display: flex;
  align-items: center;
  gap: 14px;
}
.not-found-icon { font-size: 28px; flex: none; }
.not-found-text { flex: 1; min-width: 0; }
.not-found-text strong { display: block; font-size: 14px; color: var(--slate); margin-bottom: 2px; }
.not-found-text p { margin: 0; font-size: 12px; color: var(--muted); line-height: 1.35; }
.not-found-btn {
  background: var(--slate);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  padding: 8px 14px;
  border-radius: 999px;
  white-space: nowrap;
  flex: none;
  cursor: pointer;
  border: none;
}
.not-found-btn:hover { background: #111827; }

/* Pino GPS do Usuário */
.user-gps-pin { width: 24px; height: 24px; position: relative; display: grid; place-items: center; }
.gps-dot { width: 14px; height: 14px; background: #2563EB; border: 2.5px solid #fff; border-radius: 50%; box-shadow: 0 0 8px rgba(37,99,235,.6); z-index: 2; }
.gps-pulse { position: absolute; inset: -4px; border-radius: 50%; background: rgba(37,99,235,.4); animation: gps-pulse 2s infinite ease-out; }
@keyframes gps-pulse { 0% { transform: scale(.6); opacity: 1; } 100% { transform: scale(2.4); opacity: 0; } }

/* Mapa */
#view-mapa.is-active {
  display: flex !important;
  flex-direction: column !important;
  height: 100% !important;
  padding-bottom: 0 !important;
  overflow: hidden !important;
}
#map {
  flex: 1; width: 100%; height: 100%; min-height: 380px; background: var(--slate-soft);
  position: relative;
  /* Força uma camada de composição por GPU — sem isso o canvas WebGL do
     MapLibre pode ficar em branco dentro de WebViews embutidas (ex.: o
     app iOS/Android), mesmo funcionando normalmente no navegador. */
  transform: translateZ(0);
  -webkit-transform: translateZ(0);
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
#map canvas { transform: translateZ(0); -webkit-transform: translateZ(0); }
.maplibregl-popup-content { border-radius: 12px; padding: 10px 12px; font-size: 13px; font-weight: 600; color: var(--ink); }
.map-fallback { flex: 1; display: grid; place-items: center; padding: 24px; text-align: center; color: var(--muted); }
.pin {
  width: 30px; height: 30px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--slate); border: 2px solid #fff; box-shadow: 0 2px 6px rgba(0,0,0,.3); display: grid; place-items: center;
}
.pin span { transform: rotate(45deg); font-size: 14px; }
.pin.feat { background: var(--yellow); box-shadow: 0 0 0 3px rgba(255,225,0,.55), 0 2px 6px rgba(0,0,0,.3); }

/* Categorias */
.cat-grid { padding: 16px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.cat-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 14px; text-align: left; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 8px; }
.cat-card:hover { border-color: var(--yellow); }
.cat-emoji { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 24px; background: var(--slate-soft); }
.cat-name { font-weight: 700; }
.cat-count { font-size: 12.5px; color: var(--muted); }

/* Anunciar & Vendas */
.ann { padding: 16px; max-width: 900px; margin: 0 auto; }
.ann-hero { background: var(--slate); color: #fff; padding: 24px 20px; border-radius: var(--radius); position: relative; overflow: hidden; }
.ann-hero::after { content: ""; position: absolute; right: -30px; top: -30px; width: 140px; height: 140px; background: var(--yellow); opacity: .16; border-radius: 50%; }
.ann-badge { display: inline-block; background: var(--yellow); color: var(--slate); font-weight: 800; font-size: 11px; text-transform: uppercase; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.ann-hero h2 { margin: 0 0 8px; font-size: 22px; line-height: 1.3; }
.ann-hero p { margin: 0; font-size: 14px; opacity: .92; line-height: 1.5; }
.ann-hero strong { color: var(--yellow); }

/* Paywall / Contatos Bloqueados — Design de Alta Conversão */
.pill-locked {
  font-size: 10.5px; font-weight: 700; color: #854D0E; background: #FEF9C3; border: 1px solid #FEF08A;
  padding: 2px 7px; border-radius: 999px; letter-spacing: .2px; display: inline-flex; align-items: center; gap: 3px;
}
.sheet-locked-box {
  background: linear-gradient(180deg, #F8FAFC 0%, #EFF6FF 100%);
  border: 1.5px solid #BFDBFE; border-radius: 18px;
  padding: 18px; margin: 16px 0 8px; text-align: center; box-shadow: 0 4px 12px rgba(37,99,235,0.06);
}
.locked-stats-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: #EFF6FF; border: 1px solid #DBEAFE; color: #1D4ED8;
  font-weight: 700; font-size: 11.5px; padding: 4px 12px; border-radius: 999px; margin-bottom: 12px;
}
.locked-title {
  margin: 0 0 6px; font-size: 17px; color: var(--slate); font-weight: 800;
}
.locked-desc {
  margin: 0 0 16px; font-size: 13px; color: var(--muted); line-height: 1.45;
}
.blurred-actions-preview {
  display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; position: relative;
}
.btn-wa-blurred {
  background: rgba(37, 211, 102, 0.12) !important;
  color: #15803D !important;
  border: 1.5px dashed #86EFAC !important;
  backdrop-filter: blur(4px);
  cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 14px; padding: 12px; border-radius: 12px;
}
.btn-wa-blurred:hover { background: rgba(37, 211, 102, 0.22) !important; }
.btn-call-blurred {
  background: rgba(51, 71, 91, 0.08) !important;
  color: var(--slate) !important;
  border: 1.5px dashed var(--line) !important;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 700; font-size: 13.5px; padding: 11px; border-radius: 12px;
}
.locked-owner-card {
  background: #ffffff; border: 1.5px solid #E2E8F0; border-radius: 14px;
  padding: 16px; text-align: left; display: flex; flex-direction: column; gap: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}
.locked-owner-card strong { color: var(--slate); font-size: 14.5px; display: flex; align-items: center; gap: 6px; }
.locked-owner-card p { margin: 0; font-size: 13px; color: #475569; line-height: 1.45; }
.owner-actions-row {
  display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: 4px;
}
.btn-unlock-fast {
  background: var(--yellow) !important; color: var(--slate) !important; font-weight: 800 !important;
  padding: 12px 14px !important; font-size: 13.5px !important; border-radius: 10px !important;
  border: none; text-align: center; cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.btn-unlock-fast:hover { background: var(--yellow-d) !important; }
.btn-claim-free {
  background: #F1F5F9 !important; color: #334155 !important; font-weight: 700 !important;
  padding: 10px 14px !important; font-size: 12.5px !important; border-radius: 10px !important;
  border: 1px solid #CBD5E1 !important; text-align: center; cursor: pointer;
}
.btn-claim-free:hover { background: #E2E8F0 !important; }

/* Planos - Apresentação Oficial (Plano Único R$ 360/mês) */
.plans-container { margin: 24px 0 20px; }
.plans-grid-single { max-width: 620px; margin: 0 auto; }
.plan-card {
  background: var(--card); border: 2px solid var(--yellow); border-radius: var(--radius);
  padding: 26px 22px; box-shadow: 0 10px 30px rgba(0,0,0,0.06); position: relative;
  display: flex; flex-direction: column;
}
.plan-popular-badge {
  position: absolute; top: -13px; right: 24px; background: var(--yellow); color: var(--slate);
  font-size: 11.5px; font-weight: 800; padding: 4px 14px; border-radius: 999px; letter-spacing: .4px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.12);
}
.plan-head { margin-bottom: 14px; }
.plan-name { font-weight: 800; font-size: 22px; color: var(--slate); display: block; }
.plan-price { font-size: 14px; color: var(--muted); margin-top: 6px; display: flex; align-items: baseline; gap: 4px; }
.plan-price b { font-size: 32px; color: var(--ink); }
.plan-desc { font-size: 13.5px; color: var(--muted); margin: 0 0 16px; line-height: 1.45; }
.plan-features { list-style: none; padding: 0; margin: 0 0 22px; font-size: 13.5px; line-height: 1.8; flex: 1; }
.plan-features li { display: flex; align-items: flex-start; gap: 8px; margin-bottom: 8px; color: var(--ink); }
.plan-select-btn { margin-top: auto; width: 100%; font-size: 15px; padding: 14px; }

/* Resumo do Plano Fixo no Formulário */
.plan-summary-badge {
  background: #FFFDE6; border: 1.5px solid var(--yellow-d); border-radius: 12px;
  padding: 12px 16px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center;
}
.plan-summary-badge strong { font-size: 14px; color: var(--slate); }
.plan-summary-badge span { font-weight: 800; font-size: 16px; color: var(--ink); }

/* Uploads Modernos de Mídia (Logo & Fotos com Prévia) */
.sr-only-file {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); border: 0; opacity: 0;
}
.media-upload-card {
  background: #F8FAFC; border: 1.5px solid var(--line); border-radius: 14px;
  padding: 16px; margin: 8px 0; transition: border-color .2s;
}
.media-upload-header {
  display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px;
}
.media-upload-title { font-size: 13.5px; font-weight: 700; color: var(--slate); }
.media-upload-hint { font-size: 12px; color: var(--muted); }

/* Dropzone da Logo */
.logo-dropzone {
  display: flex; align-items: center; gap: 14px; background: #fff;
  border: 1.5px dashed #CBD5E1; border-radius: 12px; padding: 12px 16px;
  cursor: pointer; transition: all .2s;
}
.logo-dropzone:hover { border-color: var(--yellow-d); background: #FEFCE8; }
.logo-placeholder { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 13px; font-weight: 600; }
.logo-preview-box { display: flex; align-items: center; gap: 12px; width: 100%; }
.logo-preview-box img {
  width: 54px; height: 54px; border-radius: 50%; object-fit: cover;
  border: 2px solid var(--yellow); box-shadow: 0 2px 6px rgba(0,0,0,0.08);
}
.logo-preview-info { flex: 1; font-size: 13px; color: var(--ink); font-weight: 600; }
.btn-remove-media {
  background: #FEE2E2; color: #DC2626; border: none; border-radius: 8px;
  padding: 6px 10px; font-size: 12px; font-weight: 700; cursor: pointer;
}
.btn-remove-media:hover { background: #FCA5A5; }

/* Dropzone das Fotos da Galeria */
.photos-dropzone {
  background: #fff; border: 1.5px dashed #CBD5E1; border-radius: 12px;
  padding: 16px; text-align: center; cursor: pointer; transition: all .2s;
}
.photos-dropzone:hover { border-color: var(--yellow-d); background: #FEFCE8; }
.photos-dropzone-prompt { display: flex; flex-direction: column; align-items: center; gap: 4px; color: var(--muted); }
.photos-dropzone-prompt strong { font-size: 13.5px; color: var(--slate); }
.photos-dropzone-prompt small { font-size: 11.5px; }
.photos-preview-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px; margin-top: 12px;
}
.photo-thumb-item {
  position: relative; width: 100%; aspect-ratio: 1; border-radius: 10px;
  overflow: hidden; border: 1.5px solid var(--line); box-shadow: 0 2px 5px rgba(0,0,0,0.06);
}
.photo-thumb-item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.photo-thumb-remove {
  position: absolute; top: 4px; right: 4px; background: rgba(0,0,0,0.65);
  color: #fff; border: none; border-radius: 50%; width: 20px; height: 20px;
  font-size: 11px; font-weight: 800; cursor: pointer; display: flex;
  align-items: center; justify-content: center; line-height: 1;
}
.photo-thumb-remove:hover { background: #DC2626; }

/* Seção de Autenticação Embutida (Clean & Moderna) */
.auth-section-modern {
  background: #F8FAFC; border: 1.5px solid #E2E8F0; border-radius: 16px;
  padding: 18px 16px; margin: 16px 0; box-shadow: 0 2px 6px rgba(0,0,0,0.02);
}
.auth-modern-header { display: flex; gap: 12px; align-items: flex-start; margin-bottom: 12px; }
.auth-badge-icon { font-size: 26px; line-height: 1; }
.auth-title { margin: 0 0 2px; font-size: 15px; color: var(--slate); font-weight: 800; }
.auth-sub { margin: 0; font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* Banner de Aquisição de Anunciantes na Home */
.merchant-home-banner {
  background: linear-gradient(135deg, var(--slate) 0%, #1E293B 100%);
  color: #fff; border-radius: 16px; padding: 18px 20px; margin: 16px 14px;
  display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden;
  box-shadow: 0 6px 20px rgba(51,71,91,0.18);
}
.merchant-home-banner::after {
  content: ""; position: absolute; right: -25px; bottom: -25px; width: 120px; height: 120px;
  background: var(--yellow); opacity: 0.12; border-radius: 50%;
}
.merchant-banner-badge {
  display: inline-block; background: var(--yellow); color: var(--slate);
  font-size: 10.5px; font-weight: 800; text-transform: uppercase; padding: 3px 10px;
  border-radius: 999px; width: fit-content;
}
.merchant-home-banner h3 { margin: 0; font-size: 16px; line-height: 1.35; font-weight: 800; }
.merchant-home-banner p { margin: 0; font-size: 12.5px; opacity: 0.9; line-height: 1.45; }
.merchant-home-banner-btn {
  background: var(--yellow) !important; color: var(--slate) !important; font-weight: 800;
  border: none; padding: 10px 16px; border-radius: 10px; font-size: 13px;
  cursor: pointer; width: fit-content; text-decoration: none;
}
.merchant-home-banner-btn:hover { background: var(--yellow-d) !important; }

/* Modal de Pagamento Pix Instantâneo */
.pix-box { text-align: center; padding: 8px 0; }
.pix-header { margin-bottom: 14px; }
.pix-header h3 { margin: 0 0 4px; font-size: 19px; color: var(--slate); }
.pix-header p { margin: 0; font-size: 13.5px; color: var(--muted); }
.pix-amount-pill {
  display: inline-block; background: #DCFCE7; color: #15803D; font-weight: 800;
  padding: 5px 14px; border-radius: 999px; font-size: 16px; margin: 10px 0;
}
.pix-qr-container {
  background: #fff; border: 2px solid var(--line); border-radius: 16px;
  display: inline-block; padding: 12px; margin: 10px auto; max-width: 220px;
}
.pix-qr-container img { width: 100%; height: auto; display: block; }
.pix-code-container {
  display: flex; gap: 8px; margin: 14px 0 10px;
}
.pix-code-input {
  flex: 1; font-size: 12px; padding: 10px; border: 1px solid var(--line);
  border-radius: 10px; background: #F8FAFC; color: var(--ink); font-family: monospace;
}
.pix-status-indicator {
  display: inline-flex; align-items: center; gap: 8px; font-size: 13px;
  color: #2563EB; font-weight: 600; margin: 12px 0;
}
.pix-pulse-dot {
  width: 10px; height: 10px; background: #2563EB; border-radius: 50%;
  animation: pulse-ring 1.4s cubic-bezier(0.215, 0.61, 0.355, 1) infinite;
}
@keyframes pulse-ring {
  0% { transform: scale(0.9); opacity: 0.9; }
  50% { transform: scale(1.3); opacity: 0.4; }
  100% { transform: scale(0.9); opacity: 0.9; }
}

/* Banner de Solicitação de Push Notification */
.push-prompt-bar {
  background: #1E293B; color: #fff; padding: 10px 16px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 12.5px; position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 10px rgba(0,0,0,0.15);
}
.push-prompt-content { display: flex; align-items: center; gap: 8px; }
.push-prompt-actions { display: flex; gap: 8px; align-items: center; }
.btn-push-enable {
  background: var(--yellow); color: var(--slate); border: none; font-weight: 800;
  padding: 5px 12px; border-radius: 8px; font-size: 12px; cursor: pointer;
}
.btn-push-dismiss {
  background: transparent; border: none; color: #94A3B8; font-size: 16px; cursor: pointer;
}


/* Formulário de Cadastro Unificado */
.ann-form-wrap { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px; margin: 24px 0; box-shadow: var(--shadow); }
.ann-title { font-size: 18px; font-weight: 800; margin: 0 0 4px; color: var(--slate); }
.ann-subtitle { font-size: 13.5px; color: var(--muted); margin: 0 0 18px; }
.plan-choice-selector { display: grid; grid-template-columns: 1fr 1.2fr; gap: 10px; margin-bottom: 18px; }
.choice-card { display: flex; align-items: center; gap: 10px; border: 1.5px solid var(--line); border-radius: 12px; padding: 12px; cursor: pointer; background: var(--bg); }
.choice-card.is-selected { border-color: var(--yellow-d); background: #FFFDE6; }
.choice-content strong { display: block; font-size: 13.5px; color: var(--ink); }
.choice-content span { font-size: 11.5px; color: var(--muted); }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-section-embedded { background: var(--slate-soft); border-radius: 14px; padding: 14px; margin: 14px 0; border: 1px dashed var(--line); }
.auth-title { margin: 0 0 10px; font-size: 14px; color: var(--slate); font-weight: 700; }
.btn-submit-ann { padding: 14px; font-size: 15px; margin-top: 10px; }
.ann-security-note { font-size: 11.5px; color: var(--muted); text-align: center; margin-top: 8px; }

/* FAQ */
.ann-faq { margin: 28px 0 12px; }
.faq-heading { font-size: 18px; font-weight: 800; margin-bottom: 14px; color: var(--slate); }
.faq-item { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin-bottom: 10px; }
.faq-item strong { display: block; font-size: 14px; color: var(--ink); margin-bottom: 4px; }
.faq-item p { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* Destaques e Resultados na Tela Descobrir */
.featured-section { padding: 14px 14px 0; }
.section-title { margin-bottom: 10px; }
.section-title span { font-weight: 800; font-size: 15px; color: var(--slate); display: block; }
.section-title small { font-size: 12px; color: var(--muted); }
.featured-cards { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; padding-bottom: 4px; }
.featured-cards::-webkit-scrollbar { display: none; }
.results-header { padding: 14px 14px 4px; display: flex; justify-content: space-between; align-items: baseline; }
.results-title { font-size: 16px; font-weight: 800; margin: 0; color: var(--slate); }
.results-count { font-size: 12px; color: var(--muted); font-weight: 600; }

/* Modal Seletor de Região */
.region-list { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; max-height: 240px; overflow-y: auto; }
.region-opt { background: var(--bg); border: 1px solid var(--line); border-radius: 10px; padding: 10px; font-size: 13px; text-align: left; font-weight: 600; color: var(--ink); }
.region-opt:hover { border-color: var(--yellow); }
.region-opt.is-active { background: var(--yellow); color: var(--slate); font-weight: 800; border-color: var(--yellow-d); }

/* Métricas do Dashboard do Anunciante */
.dash-metric-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.dash-metric-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 14px; text-align: center; box-shadow: var(--shadow); }
.dash-metric-val { font-size: 24px; font-weight: 800; color: var(--slate); display: block; }
.dash-metric-label { font-size: 11.5px; color: var(--muted); font-weight: 600; }
.btn-claim { background: #F1F5F9; color: #475569; font-size: 12.5px; padding: 8px; border-radius: 8px; margin-top: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; width: 100%; }
.btn-claim:hover { background: #E2E8F0; }
.btn-share { background: var(--slate-soft); color: var(--slate); font-size: 13px; font-weight: 700; padding: 10px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; }

/* Botões genéricos & Forms */
.btn { display: inline-block; text-align: center; width: 100%; padding: 12px; border-radius: 12px; font-weight: 800; font-size: 14px; text-decoration: none; cursor: pointer; }
.btn-primary { background: var(--yellow); color: var(--slate); }
.btn-primary:hover { background: var(--yellow-d); }
.btn-ghost { background: var(--slate-soft); color: var(--slate); }
.btn-ghost:hover { background: #E2E7EC; }
.ann-form { display: flex; flex-direction: column; gap: 12px; }
.ann-form label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.ann-form input, .ann-form select { border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-size: 15px; color: var(--ink); background: #fff; width: 100%; }
.ann-form input:focus, .ann-form select:focus { outline: 2px solid var(--yellow); border-color: var(--yellow); }
.ann-note { font-size: 12px; color: var(--muted); margin: 2px 2px 0; line-height: 1.5; }
.ann-preview { margin-top: 6px; }
.cupom-input-group { display: flex; gap: 8px; align-items: stretch; width: 100%; }
.cupom-input-group input { flex: 1; text-transform: uppercase; font-weight: 700; letter-spacing: 0.5px; }
.btn-cupom { padding: 0 16px; border-radius: 12px; font-weight: 700; font-size: 13.5px; white-space: nowrap; flex-shrink: 0; }
.cupom-feedback { font-size: 12px; font-weight: 700; margin: 3px 2px 0; display: block; line-height: 1.4; }
.cupom-feedback.ok { color: #16A34A; }
.cupom-feedback.error { color: #DC2626; }

/* Área do Anunciante */
.conta { padding: 20px 16px; max-width: 620px; margin: 0 auto; }
.conta-login { text-align: center; }
.conta-logo { width: 72px; height: 72px; border-radius: 16px; margin: 8px auto 6px; display: block; box-shadow: var(--shadow); }
.conta-login h2 { margin: 8px 0 2px; font-size: 20px; }
.conta-sub { color: var(--muted); font-size: 13.5px; margin: 0 0 16px; }
.conta-login .ann-form { text-align: left; max-width: 360px; margin: 0 auto; }
.auth-toggle { display: flex; gap: 6px; background: var(--slate-soft); border-radius: 999px; padding: 4px; margin: 4px auto 18px; max-width: 320px; }
.auth-tab { flex: 1; padding: 8px; border-radius: 999px; font-weight: 700; font-size: 13.5px; color: var(--muted); }
.auth-tab.is-active { background: var(--card); color: var(--slate); box-shadow: var(--shadow); }
.auth-form { display: none; }
.auth-form.is-active { display: flex; }
.auth-error { color: #C0392B; font-size: 13px; font-weight: 700; margin: -4px 0 0; text-align: left; }
.dash-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.dash-hello { font-weight: 800; font-size: 18px; display: block; }
.dash-email { color: var(--muted); font-size: 12.5px; }
.btn-link { color: var(--slate); font-weight: 700; font-size: 13px; text-decoration: underline; }
.dash-status { border-radius: var(--radius); padding: 16px; margin-bottom: 14px; border: 1px solid var(--line); }
.dash-status.ok { background: #E9F9EF; border-color: #BFE9CE; }
.dash-status.warn { background: #FFF6E0; border-color: #F3E0A8; }
.dash-badge { font-weight: 800; font-size: 15px; }
.dash-status p { margin: 6px 0 0; font-size: 13.5px; color: var(--ink); line-height: 1.45; }
.dash-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.dash-card { background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 12px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 3px; }
.dash-k { font-size: 12px; color: var(--muted); font-weight: 600; }
.dash-v { font-size: 15px; font-weight: 800; color: var(--slate); }

/* Tabbar (mobile) */
.tabbar {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 30;
  height: calc(var(--tabbar-h) + var(--safe-bottom)); padding-bottom: var(--safe-bottom);
  background: rgba(255,255,255,.95); backdrop-filter: saturate(180%) blur(12px);
  border-top: 1px solid var(--line); display: flex;
}
.tab { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px;
  font-size: 11px; font-weight: 700; color: var(--muted); border-top: 3px solid transparent; }
.tab span { font-size: 20px; }
.tab.is-active { color: var(--slate); border-top-color: var(--yellow); }

/* Bottom sheet / modal */
.sheet { position: fixed; inset: 0; z-index: 100; display: flex; align-items: flex-end; justify-content: center; }
.sheet-backdrop { position: absolute; inset: 0; background: rgba(38,50,63,.5); animation: fade .2s ease; }
.sheet-card {
  position: relative; width: 100%; max-width: 520px; background: #fff;
  border-radius: 22px 22px 0 0; padding: 20px 18px calc(24px + var(--safe-bottom)); max-height: 88vh; overflow-y: auto;
  animation: up .25s cubic-bezier(.2,.8,.2,1);
}
.sheet-close { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 50%; background: var(--bg); color: var(--muted); font-size: 14px; z-index: 2; }
@keyframes up { from { transform: translateY(100%); } to { transform: translateY(0); } }
@keyframes pop { from { transform: scale(.96); opacity: .4; } to { transform: scale(1); opacity: 1; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
.sheet-hero { height: 120px; border-radius: 16px; display: grid; place-items: center; font-size: 52px; background: var(--slate-soft); margin-bottom: 14px; }
.sheet-hero.feat { background: var(--yellow); }
.sheet-hero.has-logo { padding: 0; overflow: hidden; background: #fff; border: 1px solid var(--line); }
.sheet-hero.has-logo img { width: 100%; height: 100%; object-fit: contain; padding: 12px; }
.live-search-spin { display: inline-block; animation: spin 1s linear infinite; }
.sheet-name { font-size: 20px; font-weight: 800; margin: 0 40px 4px 0; }
.badge-star { color: var(--slate); background: var(--yellow); font-size: 12px; font-weight: 800; padding: 1px 7px; border-radius: 999px; white-space: nowrap; }
.sheet-sub { color: var(--muted); font-size: 13.5px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.sheet-desc { margin: 14px 0; font-size: 14.5px; line-height: 1.5; }
.sheet-gallery { display: flex; gap: 8px; overflow-x: auto; margin: 0 0 14px; }
.sheet-gallery img { width: 96px; height: 72px; object-fit: cover; border-radius: 10px; flex: none; }
.sheet-info { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }
.sheet-info div { display: flex; gap: 10px; font-size: 14px; align-items: flex-start; }
.sheet-info b { width: 20px; text-align: center; }
.sheet-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 16px; }
.sheet-actions .btn.full { grid-column: 1 / -1; }
.btn-wa { background: var(--green); color: #fff; }
.btn-call { background: var(--slate-soft); color: var(--slate); }
.btn-route { background: var(--slate); color: #fff; }

/* ============ DESKTOP (PC / notebook) ============ */
@media (min-width: 960px) {
  body { background: var(--bg); }
  #app { max-width: none; width: 100%; height: 100vh; min-height: 0; box-shadow: none; }

  .topbar { padding: 0 24px; height: 64px; gap: 24px; }
  .brand-logo { width: 38px; height: 38px; }
  .desktop-nav { display: flex; gap: 4px; margin-left: 8px; }
  .store-badges { display: flex; }
  .app-banner { display: none !important; }
  .navlink { color: var(--slate); font-weight: 700; font-size: 14px; padding: 8px 14px; border-radius: 999px; opacity: .8; }
  .navlink:hover { opacity: 1; background: rgba(38,50,63,.08); }
  .navlink.is-active { color: #fff; background: var(--slate); opacity: 1; }
  .navlink-anunciar { background: var(--yellow) !important; color: var(--slate) !important; opacity: 1 !important; }
  .topbar .brand { margin-right: 8px; }

  /* barra de busca: sub-header claro, centralizado e harmonizado */
  .search-header-container { position: static; }
  .searchbar { padding: 12px 24px 6px; }
  #search { max-width: 680px; }
  .ai-prompts-bar { padding: 2px 24px 8px; }
  .filter-toolbar { padding: 6px 24px 10px; }
  .chips { padding: 0; }

  .content { border-radius: 0; margin-top: 0; display: grid; grid-template-columns: minmax(360px, 440px) 1fr; }

  /* Lista + Mapa sempre visíveis lado a lado */
  #view-descobrir { display: block; grid-column: 1; grid-row: 1; border-right: 1px solid var(--line); padding-bottom: 20px; background: var(--bg); }
  #view-mapa { display: flex; grid-column: 2; grid-row: 1; }
  .cards { padding: 18px 18px 0; }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }

  /* Categorias, Anunciar e Conta viram painéis sobre a área de conteúdo */
  #view-categorias, #view-anunciar, #view-conta {
    display: none; position: absolute; inset: 0; z-index: 40; background: var(--bg);
    grid-column: 1 / -1; overflow-y: auto; padding-bottom: 24px;
  }
  #view-categorias.is-active, #view-anunciar.is-active, #view-conta.is-active { display: block; }
  #view-anunciar .ann { max-width: 900px; margin: 0 auto; padding: 32px 24px; }
  #view-conta .conta { max-width: 640px; margin: 0 auto; padding: 32px 24px; }
  .plans-grid { grid-template-columns: 1fr 1.2fr; align-items: stretch; }
  #view-categorias .cat-grid { max-width: 900px; margin: 0 auto; grid-template-columns: repeat(4, 1fr); }

  .tabbar { display: none; }

  /* Ficha vira modal centralizado */
  .sheet { align-items: center; }
  .sheet-card { max-width: 460px; border-radius: 20px; max-height: 86vh; animation: pop .2s ease; }

  /* hover states */
  .card { transition: box-shadow .15s, border-color .15s, transform .1s; }
  .card:hover { border-color: var(--yellow); transform: translateY(-1px); }
}

@media (min-width: 1500px) {
  .content { grid-template-columns: 480px 1fr; }
}

/* ============ CARD DE RESPOSTA DA IA NA HOME ============ */
.ai-inline-box {
  margin: 10px 14px 18px;
  background: #ffffff;
  border: 2px solid #FCD34D;
  border-radius: var(--radius);
  padding: 16px 18px;
  box-shadow: 0 4px 20px rgba(245, 158, 11, 0.14);
  max-height: 480px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: #FCD34D transparent;
  animation: fade .25s ease;
}
.ai-inline-box::-webkit-scrollbar { width: 6px; }
.ai-inline-box::-webkit-scrollbar-thumb { background: #FCD34D; border-radius: 999px; }

.ai-inline-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid #FEF3C7;
  margin-bottom: 12px;
  position: sticky;
  top: -16px;
  background: #fff;
  z-index: 2;
  margin-top: -6px;
  padding-top: 6px;
}
.ai-inline-title {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  color: var(--slate);
}
.ai-query-badge {
  font-size: 11.5px;
  background: #FEF3C7;
  color: #92400E;
  padding: 2px 8px;
  border-radius: 999px;
  font-weight: 700;
}
.ai-inline-close {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  padding: 4px 10px;
  border-radius: 8px;
  background: #F1F5F9;
  cursor: pointer;
  border: 1px solid var(--line);
}
.ai-inline-close:hover {
  color: var(--slate);
  background: #E2E8F0;
}
.ai-inline-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--ink);
}
.ai-inline-content h1, .ai-inline-content h2, .ai-inline-content h3, .ai-inline-content h4 {
  color: var(--slate);
  margin: 12px 0 6px;
}
.ai-inline-content ul, .ai-inline-content ol {
  margin: 6px 0 10px;
  padding-left: 20px;
}
.ai-inline-content li {
  margin-bottom: 4px;
}
.ai-inline-content p {
  margin: 6px 0;
}

/* Cards de locais recomendados dentro da resposta da IA */
.ia-places-container {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}
.ia-places-title {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
}
.ia-places-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.ia-place-card {
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.ia-place-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
}
.ia-place-name {
  font-weight: 800;
  font-size: 13.5px;
  color: var(--slate);
}
.ia-place-badge {
  font-size: 11px;
  font-weight: 800;
  background: var(--yellow);
  color: var(--slate);
  padding: 1px 6px;
  border-radius: 6px;
}
.ia-place-desc {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin: 0;
}
.ia-place-actions {
  display: flex;
  gap: 6px;
  margin-top: 2px;
}
.ia-place-btn {
  padding: 5px 10px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.ia-place-btn-view {
  background: var(--slate);
  color: #fff;
}
.ia-place-btn-route {
  background: var(--slate-soft);
  color: var(--slate);
}

/* Loading Dots */
.ia-loading-dots {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 12px 6px;
  color: var(--slate);
  font-weight: 700;
}
.ia-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--slate);
  animation: iaBlink 1.4s infinite both;
}
.ia-dot:nth-child(2) { animation-delay: 0.2s; }
.ia-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes iaBlink {
  0%, 80%, 100% { opacity: 0.2; transform: scale(0.8); }
  40% { opacity: 1; transform: scale(1.2); }
}

/* ============ MOBILE REFINEMENTS (Telas menores) ============ */
@media (max-width: 600px) {
  .searchbar {
    padding: 8px 10px 4px;
    gap: 6px;
  }
  #search {
    font-size: 13.5px;
    padding: 8px 10px 8px 34px;
  }
  .search-ico {
    margin-left: 10px;
    font-size: 13px;
  }
  .ai-search-btn {
    padding: 8px 11px;
    font-size: 12px;
  }
  .near-btn {
    padding: 8px 10px;
    font-size: 12px;
  }
  .filter-toolbar {
    padding: 4px 10px 6px;
    gap: 6px;
  }
  .region-pill-btn {
    padding: 5px 9px;
    font-size: 11.5px;
  }
  .filter-aberto-btn {
    padding: 5px 9px;
    font-size: 11.5px;
  }
  .chips-nav-arrow {
    display: none !important; /* No mobile, o scroll é direto por toque (swipe) */
  }
  .chips {
    scrollbar-width: none;
  }
  .chips::-webkit-scrollbar {
    display: none;
  }
}

/* ---------- Otimização Mobile & Touch (iOS & Android) ---------- */
button, a, input, select, .card, .pin, .tab, .region-opt {
  touch-action: manipulation;
  -webkit-tap-highlight-color: transparent;
}
button:active, .card:active {
  transform: scale(0.985);
  transition: transform 0.08s ease;
}

/* Safe Area Insets para Topbar no iOS (Notch / Dynamic Island) */
@supports (padding-top: env(safe-area-inset-top)) {
  .topbar {
    padding-top: max(10px, env(safe-area-inset-top));
  }
}

/* ---------- Máquina de Vendas: Prova Social & ROI ---------- */
.ann-roi-box {
  margin: 32px 0 24px;
  background: #FFFBEB;
  border: 1.5px solid #FDE68A;
  border-radius: 20px;
  padding: 24px 20px;
  text-align: center;
}
.ann-roi-header .roi-badge {
  display: inline-block;
  background: #D97706;
  color: #fff;
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.ann-roi-header h3 {
  font-size: 20px;
  font-weight: 800;
  color: var(--slate);
  margin: 0 0 6px;
}
.ann-roi-header p {
  font-size: 14px;
  color: var(--ink);
  max-width: 580px;
  margin: 0 auto 20px;
  line-height: 1.5;
}
.ann-roi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 14px;
  margin-bottom: 22px;
  text-align: left;
}
.roi-card {
  background: #fff;
  border: 1px solid #FEF3C7;
  border-radius: 14px;
  padding: 16px;
  box-shadow: 0 2px 8px rgba(217, 119, 6, 0.06);
}
.roi-card .roi-icon { font-size: 24px; display: block; margin-bottom: 6px; }
.roi-card strong { font-size: 14px; color: var(--slate); display: block; margin-bottom: 4px; }
.roi-card p { font-size: 12.5px; color: var(--muted); margin: 0; line-height: 1.4; }

.ann-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  text-align: left;
  border-top: 1px dashed #FCD34D;
  padding-top: 18px;
}
.testi-card {
  background: #fff;
  border-radius: 12px;
  padding: 14px 16px;
  border: 1px solid #FEF3C7;
}
.testi-stars { color: #F59E0B; font-size: 14px; margin-bottom: 4px; letter-spacing: 1px; }
.testi-card p { font-size: 13px; color: var(--ink); font-style: italic; margin: 0 0 6px; line-height: 1.45; }
.testi-author { font-size: 11.5px; font-weight: 700; color: var(--muted); display: block; }

/* ---------- Simulador de Prévia Ao Vivo do Anúncio ---------- */
.live-preview-wrap {
  background: #F8FAFC;
  border: 1.5px dashed #CBD5E1;
  border-radius: 16px;
  padding: 16px;
  margin: 0 0 20px;
}
.live-preview-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.preview-badge {
  background: #0EA5E9;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 999px;
  letter-spacing: 0.5px;
}
.live-card-sim {
  margin: 0;
  background: #fff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  pointer-events: none;
}
.live-card-sim .card-btn-wa {
  background: #16A34A !important;
  color: #fff !important;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 12px;
  display: inline-block;
  animation: pulse-wa 2s infinite ease-in-out;
}
@keyframes pulse-wa {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

/* ---------- Timer no Checkout Pix ---------- */
.pix-timer-pill {
  display: inline-block;
  background: #FEF3C7;
  color: #B45309;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 999px;
  margin-top: 6px;
  border: 1px solid #FDE68A;
}

/* ---------- Seletor de Cidades Nacional (Brasil) ---------- */
.region-section-label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 10px 0 6px;
}
.region-capitais-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 6px;
  max-height: 170px;
  overflow-y: auto;
  padding: 2px;
  margin-bottom: 8px;
}
.region-cap-btn {
  background: #F1F5F9;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: all .15s ease;
}
.region-cap-btn:hover { background: #E2E8F0; }
.region-cap-btn.is-active { background: #FEF08A; border-color: #EAB308; font-weight: 700; color: #713F12; }

.region-dynamic-results {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  max-height: 220px;
  overflow-y: auto;
  z-index: 100;
}
.region-dynamic-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  cursor: pointer;
  text-align: left;
  width: 100%;
  background: none;
  border-left: none; border-right: none; border-top: none;
}
.region-dynamic-item:last-child { border-bottom: none; }
.region-dynamic-item:hover { background: #F8FAFC; }

/* ---------- Modal de Instalação iOS ---------- */
.ios-install-steps {
  display: flex;
  flex-direction: column;
  gap: 12px;
  text-align: left;
}
.ios-step {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  background: #F8FAFC;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  font-size: 13.5px;
  line-height: 1.4;
}
.ios-step-num {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: #0284C7;
  color: #fff;
  font-weight: 800;
  font-size: 13px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}


