:root {
  --neo-green: #00a651;
  --neo-green-dark: #008a43;
  --neo-green-soft: #e8f7ee;
  --neo-blue: #0077c8;
  --neo-orange: #f36c00;
  --neo-yellow: #ffc20e;
  --ink: #14231a;
  --muted: #5c6b61;
  --line: #d7e3db;
  --bg: #f4f7f5;
  --white: #ffffff;
  --shadow: 0 8px 24px rgba(20, 35, 26, 0.08);
  --radius: 16px;
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --anchor-h: calc(58px + var(--safe-bottom));
  --font: "Manrope", system-ui, sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  -webkit-tap-highlight-color: transparent;
}

body {
  overscroll-behavior-y: none;
}

.app {
  width: min(430px, 100%);
  min-height: 100dvh;
  margin: 0 auto;
  background: var(--bg);
  padding-bottom: calc(var(--anchor-h) + 12px);
  position: relative;
}

body.ads-off .app {
  padding-bottom: calc(16px + var(--safe-bottom));
}

body.ads-off .ad-slot {
  display: none !important;
}

/* Instalar PWA */
.install-banner {
  margin: 10px 14px 0;
  padding: 12px 12px 12px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, #008a43 0%, #00a651 55%, #0077c8 140%);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 10px 28px rgba(0, 138, 67, 0.28);
}

.install-logo {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
  background: #007a33;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.install-banner-text {
  flex: 1;
  min-width: 0;
  display: grid;
  gap: 2px;
}

.install-banner-text strong {
  font-size: 0.98rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.install-banner-text span {
  font-size: 0.78rem;
  line-height: 1.35;
  opacity: 0.95;
}

.install-banner-actions {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.btn-install {
  border: 0;
  background: #fff;
  color: var(--neo-green-dark);
  font: inherit;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 10px 12px;
  border-radius: 999px;
  cursor: pointer;
  white-space: nowrap;
}

.btn-dismiss-install {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.85);
  font-size: 1.35rem;
  line-height: 1;
  padding: 4px 8px;
  cursor: pointer;
}

/* Contato / listas (legado) */
.contact-card {
  margin-top: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  box-shadow: var(--shadow);
}

.contact-card h2 {
  margin: 0 0 6px;
  font-size: 1rem;
}

.contact-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 0.88rem;
  line-height: 1.45;
}

a.btn-green.btn-block,
a.btn-outline.btn-block {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-decoration: none;
  box-sizing: border-box;
}

/* Contato laranja — enviar planilha (não confundir com Pesquisar) */
.contact-soft {
  margin-top: 18px;
  padding: 14px;
  border-radius: 14px;
  background: #fff7f0;
  border: 1.5px solid #ffd2a8;
  border-left: 5px solid var(--neo-orange);
}

.contact-soft .contact-badge {
  display: inline-block;
  margin: 0 0 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: var(--neo-orange);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.contact-soft h2 {
  margin: 0 0 4px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #8a3d00;
}

.contact-soft p {
  margin: 0 0 12px;
  font-size: 0.8rem;
  color: #6b4a2a;
  line-height: 1.45;
}

a.btn-wa-orange {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--neo-orange);
  color: #fff;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 800;
  text-decoration: none;
  box-sizing: border-box;
}

a.btn-wa-orange:active {
  background: #d95f00;
}

.contact-soft .wa-hint {
  display: block;
  margin-top: 8px;
  text-align: center;
  font-size: 0.72rem;
  font-weight: 600;
  color: #9a6a3a;
}

.install-banner[hidden] {
  display: none !important;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: linear-gradient(180deg, var(--white) 70%, rgba(255, 255, 255, 0.92));
  border-bottom: 1px solid var(--line);
  padding: calc(10px + env(safe-area-inset-top, 0px)) 16px 12px;
  backdrop-filter: blur(8px);
}

.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.route-pill {
  border: 1px solid var(--line);
  background: var(--neo-green-soft);
  color: var(--neo-green-dark);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  padding: 8px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
}

.route-pill.has-items {
  background: var(--neo-green);
  color: white;
  border-color: var(--neo-green);
}

.app.is-locked .ad-slot,
.app.is-locked .route-sheet {
  pointer-events: none;
  user-select: none;
  filter: blur(1.5px);
  opacity: 0.4;
}

.topbar {
  position: relative;
  z-index: 40;
}

.auth-lock {
  max-width: min(360px, calc(100% - 2rem));
}

.site-footer {
  margin: 18px 12px 28px;
  padding: 16px 14px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
}

.site-footer p {
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: var(--muted, #5a6b60);
  line-height: 1.45;
}

.site-footer-nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 14px;
  font-size: 0.85rem;
  font-weight: 700;
}

.site-footer-nav a {
  color: var(--neo-green-dark, #087a3e);
  text-decoration: none;
}

.btn-activate-soft {
  margin-top: 12px;
  width: 100%;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--neo-green, #00a651);
  color: #fff;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

/* Leitura pública: não desfoca o conteúdo institucional */
.app.is-locked .content {
  filter: none;
  opacity: 1;
  pointer-events: auto;
  user-select: auto;
}

#who-code {
  text-align: center;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: 0.35em;
}

.route-count {
  min-width: 18px;
  height: 18px;
  border-radius: 999px;
  background: var(--neo-orange);
  color: white;
  font-size: 0.7rem;
  display: inline-grid;
  place-items: center;
  padding: 0 4px;
}

.route-count:empty,
.route-count[hidden] {
  display: none;
}

.logo-img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  flex-shrink: 0;
  background: #007a33;
  box-shadow: 0 2px 8px rgba(0, 100, 40, 0.22);
}

.install-banner-text strong {
  display: flex;
  align-items: center;
  gap: 8px;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  flex: 1;
  min-width: 0;
}

.brand-text strong {
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.brand-text small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
}

/* Ads */
.ad-slot {
  margin: 10px 16px;
  border: 1px dashed #b7cfc0;
  border-radius: 12px;
  background: #eef5f0;
  overflow: hidden;
  position: relative;
}

.ad-label {
  position: absolute;
  top: 4px;
  left: 6px;
  z-index: 2;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #6f8477;
  background: rgba(255, 255, 255, 0.85);
  padding: 2px 6px;
  border-radius: 4px;
}

.ad-creative {
  display: block;
  line-height: 0;
}

.ad-creative img,
.ad-native-card img {
  display: block;
  width: 100%;
  height: auto;
}

.ad-top {
  margin-top: 12px;
}

.ad-native {
  margin-top: 14px;
}

.ad-native-card {
  display: grid;
  grid-template-columns: 72px 1fr;
  gap: 12px;
  padding: 14px 12px 12px;
  text-decoration: none;
  color: inherit;
  align-items: center;
}

.ad-native-card img {
  width: 72px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
}

.ad-native-card strong {
  display: block;
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 4px;
}

.ad-native-card span {
  display: block;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.35;
}

.ad-native-card em {
  display: block;
  margin-top: 6px;
  font-style: normal;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--neo-blue);
}

.ad-anchor {
  position: fixed;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: min(430px, 100%);
  margin: 0;
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-bottom: 0;
  z-index: 30;
  padding-bottom: var(--safe-bottom);
  background: #eef5f0;
  box-shadow: 0 -6px 20px rgba(20, 35, 26, 0.08);
}

.content {
  padding: 4px 16px 8px;
}

.search-block {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px 14px 14px;
  box-shadow: var(--shadow);
  animation: rise 0.35s ease both;
}

.search-block h1 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.hint {
  margin: 4px 0 14px;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
}

.search-box {
  display: grid;
  grid-template-columns: 1fr 52px;
  gap: 8px;
  align-items: center;
}

.search-box.search-box-stack {
  grid-template-columns: 1fr;
  gap: 10px;
}

.search-box #btn-search.btn-search-full {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.search-box #btn-search.btn-search-full span {
  color: #fff;
}

.tip-rotator {
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 12px;
  background: var(--neo-green-soft);
  border: 1px solid #b7e0c4;
  color: #1e5c36;
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.35;
}

.tip-rotator em {
  display: block;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.7;
  margin-bottom: 2px;
}

.history-block {
  margin: 4px 0 10px;
}

.history-block h2 {
  margin: 0 0 8px;
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink);
}

.history-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.history-chip {
  border: 1px solid var(--line);
  background: var(--white);
  border-radius: 999px;
  padding: 7px 12px;
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink);
  cursor: pointer;
}

.history-chip:active {
  background: var(--neo-green-soft);
  border-color: var(--neo-green);
}

.stats-mini {
  margin: 8px 0 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}

.idle-block {
  margin: 4px 0 12px;
  padding: 12px 14px;
  border-radius: 14px;
  background: var(--white);
  border: 1px solid var(--line);
}

.idle-block h2 {
  margin: 0 0 6px;
  font-size: 0.9rem;
}

.idle-block p {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.4;
}

.history-block[hidden],
.idle-block[hidden] {
  display: none !important;
}

.input-wrap {
  position: relative;
  min-width: 0;
}

.search-box input {
  width: 100%;
  min-height: 52px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 0 44px 0 14px;
  font: inherit;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--ink);
  background: #fbfdfc;
  outline: none;
}

.search-box input:focus {
  border-color: var(--neo-green);
  box-shadow: 0 0 0 3px rgba(0, 166, 81, 0.15);
}

.search-box #btn-search {
  min-height: 52px;
  min-width: 52px;
  border: 0;
  border-radius: 14px;
  background: var(--neo-green);
  color: white;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.search-box #btn-search:active {
  background: var(--neo-green-dark);
}

.search-box #btn-search:disabled {
  opacity: 0.65;
}

.btn-clear {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 10px;
  background: #e4ece7;
  color: var(--muted);
  font-size: 0.95rem;
  font-weight: 800;
  cursor: pointer;
}

.btn-clear[hidden] {
  display: none !important;
}

.chips {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  margin-top: 12px;
  padding-bottom: 2px;
  scrollbar-width: none;
}

.chips::-webkit-scrollbar {
  display: none;
}

.chip {
  flex: 0 0 auto;
  border: 1px solid var(--line);
  background: var(--neo-green-soft);
  color: var(--neo-green-dark);
  font: inherit;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
}

.status {
  min-height: 1.25rem;
  margin: 12px 2px 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 600;
}

.result {
  margin-top: 8px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  animation: rise 0.3s ease both;
}

.result.ok {
  border-color: rgba(0, 166, 81, 0.35);
}

.result.miss {
  border-color: rgba(243, 108, 0, 0.35);
}

.result-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 14px 10px;
  background: linear-gradient(180deg, var(--neo-green-soft), transparent);
}

.result-head strong {
  font-size: 1.05rem;
  font-weight: 800;
}

.badge {
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: white;
  background: var(--neo-green);
  padding: 5px 9px;
  border-radius: 999px;
}

.result.miss .badge {
  background: var(--neo-orange);
}

.result.miss .result-head {
  background: linear-gradient(180deg, #fff2e8, transparent);
}

.fields {
  padding: 0 6px 6px;
}

.field {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 10px;
  border-top: 1px solid var(--line);
}

.field span {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 700;
  flex: 0 0 38%;
}

.field strong {
  text-align: right;
  font-size: 0.95rem;
  font-weight: 700;
  word-break: break-word;
}

.miss-body {
  padding: 0 14px 16px;
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.4;
  margin: 0;
}

.actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 12px 12px 14px;
}

.actions.actions-3,
.actions.actions-grid {
  grid-template-columns: 1fr;
}

.actions-row3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}

.copy-hint {
  margin: 0 14px 4px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 700;
}

.field.copyable {
  cursor: pointer;
  user-select: none;
  -webkit-user-select: none;
  background: linear-gradient(90deg, transparent, rgba(0, 166, 81, 0.06));
}

.field.copyable:active {
  background: rgba(0, 166, 81, 0.12);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--anchor-h) + 16px);
  transform: translateX(-50%);
  z-index: 60;
  background: #14231a;
  color: white;
  font-size: 0.88rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 999px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
  max-width: calc(100% - 2rem);
}

.toast[hidden] {
  display: none !important;
}

.actions a,
.actions button {
  min-height: 48px;
  display: grid;
  place-items: center;
  text-decoration: none;
  font: inherit;
  font-weight: 800;
  font-size: 0.86rem;
  border-radius: 12px;
  border: 0;
  cursor: pointer;
}

.actions .primary,
.actions a.primary {
  background: var(--neo-green);
  color: white;
}

.actions .primary:disabled {
  opacity: 0.5;
}

.actions .secondary,
.actions a.secondary {
  background: var(--white);
  color: var(--neo-blue);
  border: 1.5px solid #b9d7ec;
}

/* Route sheet */
.route-sheet {
  position: fixed;
  inset: 0;
  z-index: 50;
  background: rgba(20, 35, 26, 0.45);
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

.route-sheet[hidden] {
  display: none !important;
}

.route-sheet-panel {
  width: min(430px, 100%);
  max-height: min(86dvh, 720px);
  overflow: auto;
  background: var(--white);
  border-radius: 20px 20px 0 0;
  padding: 14px 14px calc(16px + var(--safe-bottom));
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  animation: rise 0.25s ease both;
}

.route-sheet-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.route-sheet-head h2 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
}

.route-sub {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 600;
}

.icon-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: var(--bg);
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
}

.route-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.route-item {
  display: grid;
  grid-template-columns: 34px 1fr auto;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdfc;
}

.route-num {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--neo-green);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.route-meta {
  min-width: 0;
}

.route-meta strong {
  display: block;
  font-size: 0.9rem;
  font-weight: 800;
}

.route-meta span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.route-item-actions {
  display: flex;
  gap: 4px;
}

.mini {
  width: 32px;
  height: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: white;
  font-weight: 800;
  cursor: pointer;
}

.mini:disabled {
  opacity: 0.35;
}

.mini.danger {
  color: #b42318;
}

.route-empty {
  margin: 18px 4px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
  text-align: center;
}

.route-map {
  height: 180px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid var(--line);
  margin-bottom: 10px;
  z-index: 1;
}

.route-note {
  margin: 10px 2px 0;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.35;
}

.pin-wrap {
  background: transparent;
  border: 0;
}

.map-pin {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
}

.map-pin span {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--neo-green);
  color: white;
  font-weight: 800;
  font-size: 0.85rem;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
  border: 2px solid white;
}

.map-pin em {
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 2px 5px;
  max-width: 86px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-actions {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.btn-green,
.btn-outline,
.btn-text {
  min-height: 48px;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.btn-green {
  border: 0;
  background: var(--neo-green);
  color: white;
}

a.btn-green {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  color: white;
}

.btn-green:disabled,
.btn-outline:disabled,
.btn-text:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-outline {
  background: white;
  border: 1.5px solid var(--line);
  color: var(--ink);
}

.btn-text {
  border: 0;
  background: transparent;
  color: var(--muted);
}

body.sheet-open {
  overflow: hidden;
}

.info-card {
  margin-top: 14px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
}

.info-card h2 {
  margin: 0 0 8px;
  font-size: 0.95rem;
  font-weight: 800;
}

.info-card ol {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 600;
  line-height: 1.55;
}

.ads-dialog {
  border: 0;
  border-radius: 18px;
  padding: 0;
  width: min(340px, calc(100% - 2rem));
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  z-index: 100;
}

.ads-dialog::backdrop {
  background: rgba(20, 35, 26, 0.45);
}

.ads-dialog form {
  padding: 18px;
}

.ads-dialog h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
}

.ads-dialog p {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.4;
}

.ads-click-info {
  color: var(--neo-green-dark) !important;
  font-weight: 700;
}

.ads-dialog button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--neo-green);
  color: white;
  font: inherit;
  font-weight: 800;
  margin-top: 8px;
}

.ads-dialog input {
  width: 100%;
  min-height: 46px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  padding: 0 12px;
  font: inherit;
  font-weight: 600;
  margin-bottom: 8px;
}

.field-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  margin: 8px 0 4px;
}

.qr-box {
  display: grid;
  place-items: center;
  min-height: 220px;
  margin: 10px 0 4px;
  padding: 10px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 14px;
}

.qr-box img,
.qr-box canvas {
  max-width: 100%;
  height: auto !important;
}

.pin-box {
  padding: 0 18px 18px;
}

.pin-box > p {
  margin: 0 0 8px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.pin-code {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: 0.35em;
  text-align: center;
  color: var(--neo-green-dark);
  background: var(--neo-green-soft);
  border-radius: 14px;
  padding: 14px 8px;
  margin-bottom: 10px;
}

.pin-box .btn-outline,
.pin-box .wa-link,
#who-form .wa-link {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 46px;
  border-radius: 12px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  margin-top: 8px;
  margin-bottom: 12px;
}

.pin-box .btn-outline {
  border: 1.5px solid var(--line);
  background: white;
  color: var(--ink);
  cursor: pointer;
}

.pin-box .wa-link,
#who-form .wa-link {
  background: var(--neo-green);
  color: white;
}

.pin-help,
.pin-wait {
  margin: 10px 0 0 !important;
  font-size: 0.8rem !important;
  text-align: center;
}

.pin-wait {
  color: var(--neo-blue) !important;
  font-weight: 700 !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  border: 0;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

@media (min-width: 431px) {
  body {
    background: #e6eee9;
  }
  .app {
    box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(20, 35, 26, 0.08);
  }
}

/* iPhone SE / telas bem estreitas */
@media (max-width: 360px) {
  .content {
    padding-left: 12px;
    padding-right: 12px;
  }
  .search-block h1 {
    font-size: 1.12rem;
  }
  .actions.actions-grid {
    grid-template-columns: 1fr;
  }
  .actions-row3 {
    grid-template-columns: 1fr 1fr 1fr;
  }
  .route-item-actions .mini:nth-child(2),
  .route-item-actions .mini:nth-child(3) {
    display: none;
  }
}

/* iPhone / Android médios */
@media (min-width: 361px) and (max-width: 430px) {
  .app {
    width: 100%;
  }
}

/* Tablets / telas largas: mantém app “celular” centralizado */
@media (min-width: 768px) {
  .app {
    width: min(430px, 100%);
    min-height: 100dvh;
  }
  .ad-anchor {
    width: min(430px, 100%);
  }
}
