/* Outdoor do Milhão — base CSS */
:root {
  --bg:        #fffaf0;
  --bg-soft:   #fff5e0;
  --surface:   #ffffff;
  --border:    #ecdfb8;
  --ink:       #1a1a1a;
  --ink-soft:  #4a4a4a;
  --ink-mute:  #8a8a8a;

  --amber:     #f6c84a;   /* "Show do Milhão" dourado */
  --amber-2:   #f0a818;
  --amber-3:   #b67800;
  --red:       #d83a3a;
  --green:     #1f9d55;
  --shadow-sm: 0 1px 2px rgba(20,20,20,.06), 0 2px 6px rgba(20,20,20,.04);
  --shadow:    0 4px 14px rgba(20,20,20,.08);
  --shadow-lg: 0 18px 44px rgba(20,20,20,.14);
  --r-sm:      6px;
  --r:         10px;
  --r-lg:      18px;
  --r-pill:    999px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.55;
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
}
a { color: var(--amber-3); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* === topbar === */
.topbar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 14px 28px;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 50;
}
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px; border-radius: 8px;
  background: linear-gradient(135deg, var(--amber-2), var(--amber));
  color: #1a1a1a; font-weight: 900; font-size: 16px;
  box-shadow: 0 4px 10px rgba(240,168,24,.35);
}
.brand-text { font-weight: 700; letter-spacing: -.01em; }
.brand-text strong { color: var(--amber-3); }
.topnav { display: flex; align-items: center; gap: 18px; }
.topnav a { color: var(--ink-soft); font-weight: 500; }
.topnav a.ghost { color: var(--ink-mute); }

/* === buttons === */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; padding: 10px 18px; border-radius: var(--r-pill);
  font-weight: 700; font-size: 14.5px; cursor: pointer;
  border: 1px solid transparent; transition: transform .08s ease, box-shadow .15s ease;
  text-decoration: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--amber-2), var(--amber));
  color: #1a1a1a;
  box-shadow: 0 6px 16px rgba(240,168,24,.32);
}
.btn-primary:hover { text-decoration: none; box-shadow: 0 10px 22px rgba(240,168,24,.42); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--border); }
.btn-ghost:hover { background: var(--bg-soft); text-decoration: none; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }

/* === main / hero === */
.main { min-height: calc(100vh - 70px); }
.hero {
  padding: 80px 28px 64px;
  background:
    radial-gradient(1100px 480px at 12% 0%, rgba(246,200,74,.35), transparent 60%),
    radial-gradient(800px 380px at 92% 8%, rgba(240,168,24,.22), transparent 60%),
    var(--bg);
}
.hero-inner { max-width: 1080px; margin: 0 auto; }
.hero-tag {
  display: inline-block; padding: 6px 12px;
  background: rgba(240,168,24,.16); color: var(--amber-3);
  border-radius: var(--r-pill); font-weight: 600; font-size: 13px;
  margin-bottom: 22px;
}
.hero-title {
  font-size: clamp(34px, 5.4vw, 60px);
  line-height: 1.05; letter-spacing: -0.02em;
  margin: 0 0 18px;
}
.hl { color: var(--amber-3); }
.hl-amber { background: linear-gradient(120deg, var(--amber), var(--amber-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { color: var(--ink-soft); font-size: 18px; max-width: 720px; margin: 0 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 44px; }
.hero-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; max-width: 720px; }
.hero-stats > div {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
  padding: 18px; box-shadow: var(--shadow-sm);
}
.hero-stats strong { display: block; font-size: 24px; color: var(--amber-3); font-weight: 800; }
.hero-stats span { color: var(--ink-mute); font-size: 13px; }

/* === how it works === */
.howit { padding: 70px 28px; max-width: 1080px; margin: 0 auto; }
.howit h2 { font-size: clamp(24px, 3vw, 34px); margin: 0 0 32px; letter-spacing: -.01em; }
.howit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.howit-grid > div { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); padding: 20px; box-shadow: var(--shadow-sm); }
.howit-n {
  display: inline-grid; place-items: center; width: 32px; height: 32px;
  border-radius: 50%; background: var(--amber); color: #1a1a1a; font-weight: 800;
  margin-bottom: 12px;
}
.howit-grid h3 { margin: 0 0 6px; font-size: 17px; }
.howit-grid p { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

/* === footer === */
.footer {
  margin-top: 60px; padding: 22px 28px;
  border-top: 1px solid var(--border); background: var(--surface);
  display: flex; justify-content: space-between; gap: 14px;
  color: var(--ink-mute); font-size: 13px; flex-wrap: wrap;
}

/* === flash === */
.flash {
  position: fixed; top: 14px; left: 50%; transform: translateX(-50%);
  z-index: 100; padding: 10px 16px; border-radius: var(--r-pill);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  font-size: 14px;
}
.flash-ok   { border-color: #b7e3c4; background: #ebf8ef; color: #145e34; }
.flash-warn { border-color: #f6dba6; background: #fef6e2; color: #7a5410; }
.flash-err  { border-color: #f4b9b9; background: #fde9e9; color: #8b1f1f; }

/* === error page === */
.err-page { max-width: 720px; margin: 80px auto; text-align: center; padding: 0 28px; }
.err-page h1 { font-size: clamp(64px, 12vw, 120px); margin: 0; color: var(--amber-3); letter-spacing: -.04em; }
.err-page p { color: var(--ink-soft); margin: 0 0 24px; font-size: 18px; }

body.page-404 {
  background:
    radial-gradient(ellipse at 20% -10%, rgba(246,200,74,.22), transparent 55%),
    radial-gradient(ellipse at 90% 110%, rgba(240,168,24,.18), transparent 55%),
    var(--bg);
  min-height: 100dvh;
}
body.page-404 .footer { display: none; }
.err-404 { padding-top: 40px; }
.err-art {
  position: relative; display: inline-block; margin-bottom: 12px;
}
.err-code {
  font-size: clamp(96px, 18vw, 180px);
  font-weight: 900; line-height: 1;
  background: linear-gradient(135deg, var(--amber), var(--amber-3));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  letter-spacing: -.05em;
  margin: 0;
}
.err-x, .err-y {
  position: absolute; font-size: 14px; color: var(--ink-mute);
  font-family: monospace; font-weight: 700;
  background: var(--surface); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
}
.err-x { top: -10px; left: -30px;  transform: rotate(-6deg); }
.err-y { bottom: 0;   right: -35px; transform: rotate(8deg);  }
.err-404 h2 { font-size: 26px; margin: 14px 0 10px; letter-spacing: -.01em; }
.err-actions {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
  margin-top: 24px;
}

/* === canvas fullscreen === */
[hidden] { display: none !important; }
html, body { height: 100%; }
body.page-canvas {
  overflow: hidden;
  /* Variável CSS pra altura real da viewport (lida com address bar mobile) */
  --topbar-h: 62px;
}
body.page-canvas .footer { display: none; }
.topbar-overlay {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--topbar-h);
  background: rgba(255,255,255,.86);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border-bottom: 1px solid rgba(236,223,184,.7);
  z-index: 600;
  padding-left: max(28px, env(safe-area-inset-left));
  padding-right: max(28px, env(safe-area-inset-right));
}

#om-stage {
  position: fixed;
  inset: 0;
  height: 100vh;
  height: 100dvh; /* dvh lida com mobile address bar */
}
#om-map {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  background: #f3eada;
}
.leaflet-container { background: #f3eada; outline: none; font-family: inherit; }
.leaflet-control-zoom a { color: var(--ink) !important; }

.om-hud {
  position: absolute; left: 0; right: 0;
  display: flex; gap: 10px; padding: 12px 16px;
  pointer-events: none;
  z-index: 500;
}
.om-hud > * { pointer-events: auto; }
.om-hud-top    { top: calc(var(--topbar-h) + 8px); justify-content: space-between; padding-right: 56px; }
.om-hud-bottom { bottom: 0; justify-content: center; align-items: center; flex-wrap: wrap; }

.om-pill {
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  padding: 8px 14px; border-radius: var(--r-pill);
  box-shadow: var(--shadow-sm);
  font-size: 13.5px; font-weight: 600;
  display: inline-flex; align-items: center; gap: 8px;
}
.om-pill strong { color: var(--amber-3); font-weight: 800; }
.om-pill-coord { font-variant-numeric: tabular-nums; color: var(--ink-soft); }
.om-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--green); box-shadow: 0 0 0 4px rgba(31,157,85,.18);
}

.om-cta {
  background: linear-gradient(135deg, rgba(255,255,255,.94), rgba(255,247,224,.94));
  border: 1px solid var(--border);
  padding: 12px 20px; border-radius: var(--r-pill);
  box-shadow: var(--shadow);
  font-size: 14.5px; color: var(--ink-soft);
}
.om-cta-text strong { color: var(--amber-3); font-weight: 800; }

.om-selection {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 14px 18px;
  display: flex; align-items: center; gap: 14px;
}
.om-sel-info { display: flex; flex-direction: column; }
.om-sel-info strong { font-weight: 800; color: var(--ink); font-size: 16px; }
.om-sel-info span   { color: var(--amber-3); font-weight: 700; font-size: 18px; }

.om-zoom-hint {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  background: rgba(26,26,26,.78); color: #fff;
  padding: 10px 18px; border-radius: var(--r-pill);
  font-size: 14px; font-weight: 600;
  pointer-events: none; z-index: 400;
  transition: opacity .25s;
}
.om-zoom-hint.is-hidden { opacity: 0; }

/* Botão de legenda no canto */
.om-legend-btn {
  position: absolute;
  top: calc(var(--topbar-h) + 8px);
  right: 16px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border);
  color: var(--amber-3);
  font-weight: 800; font-size: 16px; cursor: pointer;
  z-index: 510;
  box-shadow: var(--shadow-sm);
}
.om-legend-btn:hover { background: #fff; }

/* Mira "+" fixa no centro do canvas (visível só no mobile) */
#om-crosshair {
  display: none;
  position: absolute;
  top: 50%; left: 50%;
  width: 36px; height: 36px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  z-index: 450;
  mix-blend-mode: multiply;
}
.om-cross-h, .om-cross-v {
  position: absolute;
  background: rgba(26,26,26,.85);
  box-shadow: 0 0 0 1px rgba(255,255,255,.8);
}
.om-cross-h { top: 50%; left: 0; right: 0; height: 1.5px; transform: translateY(-50%); }
.om-cross-v { left: 50%; top: 0; bottom: 0; width: 1.5px; transform: translateX(-50%); }
.om-cross-dot {
  position: absolute;
  top: 50%; left: 50%;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--amber-3);
  border: 1.5px solid #fff;
  transform: translate(-50%, -50%);
  box-shadow: 0 0 0 1px rgba(0,0,0,.25), 0 2px 6px rgba(0,0,0,.3);
}
.om-legend {
  position: absolute;
  top: calc(var(--topbar-h) + 50px);
  right: 16px; width: 280px;
  background: rgba(255,255,255,.96);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 14px 16px;
  box-shadow: var(--shadow);
  z-index: 510;
  font-size: 13px;
  animation: omFadeIn .2s ease-out;
}
.om-legend h4 { margin: 0 0 8px; font-size: 14px; }
.om-legend ul { list-style: none; padding: 0; margin: 0 0 10px; }
.om-legend li {
  display: flex; align-items: center; gap: 8px;
  padding: 3px 0; color: var(--ink-soft);
}
.om-leg-sw {
  display: inline-block; width: 18px; height: 18px;
  border-radius: 4px; border: 1px solid rgba(0,0,0,.1);
  flex-shrink: 0;
}
.om-legend-note {
  margin: 0; padding-top: 8px;
  border-top: 1px solid var(--border);
  font-size: 12px; color: var(--ink-mute); line-height: 1.5;
}
.om-legend-note strong { color: #8b1f1f; }

/* === mobile === */
@media (max-width: 720px) {
  .topbar { padding: 10px 14px; }
  .topnav { gap: 10px; font-size: 13.5px; }
  .topnav a:not(.btn) { display: none; }
  .topnav .btn { display: inline-flex; }
  /* "Encontrar foto" continua acessível no mobile como botão-ícone de lupa */
  .topnav a[data-modal="find-photo"] {
    display: inline-grid; place-items: center;
    width: 38px; height: 38px; border-radius: var(--r-pill);
    border: 1px solid var(--border); background: var(--surface);
    font-size: 0; line-height: 0; padding: 0;
  }
  .topnav a[data-modal="find-photo"]::before {
    content: ""; width: 19px; height: 19px;
    background-color: var(--ink-soft);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E") center / contain no-repeat;
            mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cline x1='21' y1='21' x2='16.5' y2='16.5'/%3E%3C/svg%3E") center / contain no-repeat;
  }
  .hero { padding: 48px 16px 40px; }
  .hero-stats { grid-template-columns: 1fr; }
  .howit { padding: 48px 16px; }
  .howit-grid { grid-template-columns: 1fr; }
  .footer { padding: 18px 16px; flex-direction: column; }

  body.page-canvas { --topbar-h: 52px; }
  .om-hud { padding: 8px 10px; }
  .om-pill { font-size: 12px; padding: 6px 10px; }
  .om-cta { font-size: 12.5px; padding: 9px 14px; }

  /* Coord no mobile vira posição do CENTRO (casa com a mira fixa). Pill compacta sob o "i". */
  .om-pill-coord {
    position: absolute;
    top: calc(var(--topbar-h) + 48px);
    right: 10px;
    font-size: 11.5px; padding: 4px 9px;
    background: rgba(255,255,255,.88);
  }
  /* Mira "+" no centro do canvas (touch — não tem cursor) */
  #om-crosshair { display: block; }

  /* CTA sobe pra cima dos controls (zoom esquerda + selecionar/visão geral direita) */
  .om-hud-bottom { bottom: 96px; padding: 8px 10px; }
  .om-cta { font-size: 12.5px; padding: 8px 14px; max-width: 100%; text-align: center; }
}
/* Mobile landscape (tela deitada baixa) — topbar bem fina pra maximizar canvas */
@media (max-height: 480px) and (orientation: landscape) {
  body.page-canvas { --topbar-h: 42px; }
  .topbar { padding: 6px 14px; }
  .brand-mark { width: 28px; height: 28px; font-size: 13px; }
  .om-hud { padding: 6px 10px; }
  .om-pill { font-size: 11.5px; padding: 5px 9px; }
  .om-cta { font-size: 12px; padding: 7px 12px; }
  .om-zoom-hint { font-size: 12px; padding: 6px 12px; }
}

/* === botões base (faltavam) === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r);
  border: 1px solid var(--border); background: var(--surface); color: var(--ink);
  font-family: inherit; font-size: 14.5px; font-weight: 600;
  cursor: pointer; transition: transform .08s ease, box-shadow .15s ease, background .15s;
  text-decoration: none; line-height: 1.2;
}
.btn:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); text-decoration: none; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .6; cursor: not-allowed; transform: none; }
.btn-primary {
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  border-color: var(--amber-2); color: #2a1e00;
  box-shadow: 0 2px 0 var(--amber-3), 0 8px 20px rgba(240,168,24,.28);
}
.btn-primary:hover { box-shadow: 0 2px 0 var(--amber-3), 0 12px 26px rgba(240,168,24,.36); }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-sm { padding: 7px 12px; font-size: 13px; }
.btn-lg { padding: 13px 20px; font-size: 15.5px; }
.btn-block { width: 100%; }

.ghost { color: var(--ink-soft); }

/* === auth (login celular + OTP) === */
body.page-auth {
  background:
    radial-gradient(ellipse at 20% -10%, rgba(246,200,74,.25), transparent 55%),
    radial-gradient(ellipse at 90% 110%, rgba(240,168,24,.22), transparent 55%),
    var(--bg);
  min-height: 100dvh;
}
body.page-auth .topbar { background: transparent; border-bottom: 0; }
body.page-auth .footer { display: none; }

.auth-wrap {
  min-height: calc(100dvh - 90px);
  display: grid; place-items: center;
  padding: 30px 16px;
}
.auth-card {
  width: 100%; max-width: 440px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  padding: 32px 30px 24px;
}
.auth-brand { text-align: center; margin-bottom: 22px; }
.auth-brand .brand-mark.big {
  width: 60px; height: 60px; font-size: 24px; margin: 0 auto 14px;
  display: inline-grid; place-items: center; border-radius: 16px;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: #2a1e00; font-weight: 900; letter-spacing: -1px;
  box-shadow: 0 6px 18px rgba(240,168,24,.4);
}
.auth-brand h1 { font-size: 22px; margin: 0 0 10px; font-weight: 700; letter-spacing: -.01em; }
.auth-brand h1 strong { background: linear-gradient(120deg, var(--amber-2), var(--amber-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.auth-sub { color: var(--ink-soft); font-size: 14.5px; margin: 0; line-height: 1.5; }
.auth-sub strong { color: var(--ink); font-weight: 600; }

.auth-field { margin-bottom: 16px; }
.auth-field label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--ink-soft); margin-bottom: 7px;
}
.auth-field input {
  width: 100%; padding: 13px 14px;
  border: 1px solid var(--border); border-radius: var(--r);
  background: #fffdf7; font-family: inherit; font-size: 16px;
  color: var(--ink); transition: border-color .15s, box-shadow .15s;
  font-variant-numeric: tabular-nums;
}
.auth-field input:focus {
  outline: none; border-color: var(--amber-2);
  box-shadow: 0 0 0 4px rgba(246,200,74,.22);
}
#auth-code {
  font-size: 28px; letter-spacing: 12px; text-align: center;
  font-weight: 700; padding: 16px 14px;
}
#auth-code::placeholder { letter-spacing: 12px; color: #ddc99a; font-weight: 500; }

.auth-error {
  background: #fde9e9; border: 1px solid #f4b9b9; color: #8b1f1f;
  padding: 10px 14px; border-radius: var(--r);
  font-size: 13.5px; margin-bottom: 14px;
}

.auth-link {
  display: inline-block; margin-top: 12px;
  background: none; border: 0; color: var(--amber-3);
  font-family: inherit; font-size: 13.5px; cursor: pointer;
  padding: 4px 0;
}
.auth-link:hover { text-decoration: underline; }

#auth-back { display: block; margin: 14px auto 0; }

.auth-foot {
  margin-top: 22px; padding-top: 16px;
  border-top: 1px solid var(--border);
  text-align: center; font-size: 12.5px; color: var(--ink-mute);
}
.auth-foot a { color: var(--ink-soft); text-decoration: underline; }

@media (max-width: 480px) {
  .auth-card { padding: 26px 22px 20px; border-radius: var(--r); }
  .auth-brand h1 { font-size: 19px; }
  #auth-code { font-size: 24px; letter-spacing: 9px; }
}

/* === modo seleção === */
.om-select-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  border: 1px solid var(--amber-2); color: #2a1e00;
  border-radius: var(--r-pill);
  font-family: inherit; font-size: 14px; font-weight: 700;
  box-shadow: 0 2px 0 var(--amber-3), 0 10px 22px rgba(240,168,24,.34);
  cursor: pointer; transition: transform .08s, box-shadow .15s;
  margin-right: 6px;
}
.om-select-btn:hover { transform: translateY(-1px); box-shadow: 0 2px 0 var(--amber-3), 0 14px 28px rgba(240,168,24,.42); }
.om-select-btn.is-active {
  background: #fff; color: var(--amber-3);
  border-color: var(--amber-2);
  box-shadow: 0 2px 0 var(--amber-3), 0 10px 22px rgba(0,0,0,.08);
}
.om-select-icon {
  display: inline-grid; place-items: center;
  width: 20px; height: 20px; border-radius: 50%;
  background: rgba(0,0,0,.12); color: inherit;
  font-weight: 900; font-size: 14px; line-height: 1;
}
.om-select-btn.is-active .om-select-icon { background: rgba(240,168,24,.18); }

.om-overview-btn {
  display: inline-grid; place-items: center;
  width: 36px; height: 36px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border); color: var(--ink-soft);
  border-radius: 50%; cursor: pointer;
  font-size: 16px; box-shadow: var(--shadow-sm);
  margin-right: 6px;
}
.om-overview-btn:hover { background: #fff; color: var(--amber-3); }

/* Botão "Ver vagos" — control bottom-right */
.om-free-btn-ctrl.om-hide { display: none !important; }
.om-free-btn-ctrl {
  display: inline-flex; align-items: center; gap: 6px;
  height: 36px; padding: 0 12px;
  background: rgba(255,255,255,.92);
  border: 1px solid var(--border); color: var(--ink-soft);
  border-radius: 18px; cursor: pointer;
  font-size: 13px; font-weight: 600; font-family: inherit;
  box-shadow: var(--shadow-sm);
  margin-right: 6px;
  transition: background .18s, color .18s, border-color .18s;
}
.om-free-btn-ctrl:hover { background: #fff; color: var(--amber-3); border-color: var(--amber-3); }
.om-free-btn-ctrl.on {
  background: var(--amber-3);
  color: #fff;
  border-color: var(--amber-3);
  box-shadow: 0 0 0 3px rgba(240,168,24,.25), var(--shadow-sm);
}
.om-free-btn-ctrl span { font-size: 14px; }

/* Modo "ver vagos": escurece levemente o canvas pra realçar os anéis */
.om-mode-free .leaflet-tile-pane { filter: brightness(.55) saturate(.85); transition: filter .35s; }

/* Anel dourado pulsante em cada espaço livre */
.om-free-ring {
  stroke: #f6c84a;
  fill: #f6c84a;
  animation: omFreePulse 1.8s ease-in-out infinite;
  filter: drop-shadow(0 0 6px rgba(246,200,74,.6));
}
.om-free-ring.om-free-current {
  stroke: #fff;
  stroke-width: 4;
  filter: drop-shadow(0 0 14px rgba(255,255,255,.85)) drop-shadow(0 0 10px rgba(246,200,74,.8));
  animation: omFreePulseCurrent 1.2s ease-in-out infinite;
}
@keyframes omFreePulse {
  0%, 100% { stroke-opacity: .8;  fill-opacity: .15; }
  50%      { stroke-opacity: .45; fill-opacity: .28; }
}
@keyframes omFreePulseCurrent {
  0%, 100% { stroke-opacity: 1;  fill-opacity: .22; stroke-width: 4; }
  50%      { stroke-opacity: .6; fill-opacity: .42; stroke-width: 6; }
}

/* Barra de navegação flutuante do modo ver vagos */
.om-free-nav {
  position: fixed;
  left: 50%; bottom: 24px;
  transform: translateX(-50%);
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(20,16,12,.92);
  color: #fff;
  padding: 8px 8px 8px 12px;
  border-radius: 30px;
  box-shadow: 0 12px 30px -8px rgba(0,0,0,.55), 0 0 0 1px rgba(246,200,74,.25);
  z-index: 9000;
  font-family: inherit;
  backdrop-filter: blur(6px);
  animation: omFreeNavIn .35s cubic-bezier(.22,1,.36,1);
}
@keyframes omFreeNavIn {
  from { opacity: 0; transform: translateX(-50%) translateY(12px); }
  to   { opacity: 1; transform: translateX(-50%) translateY(0); }
}
.om-free-nav[hidden] { display: none; }
.om-free-nav .om-free-btn {
  width: 34px; height: 34px;
  border: 0; border-radius: 50%;
  background: rgba(246,200,74,.18); color: #f6c84a;
  font-size: 22px; line-height: 1; cursor: pointer;
  display: grid; place-items: center;
  transition: background .15s, color .15s, transform .15s;
}
.om-free-nav .om-free-btn:hover { background: var(--amber-3); color: #fff; transform: scale(1.06); }
.om-free-nav .om-free-info {
  font-size: 13px; padding: 0 8px;
  color: rgba(255,255,255,.88);
  letter-spacing: .2px;
  white-space: nowrap;
}
.om-free-nav .om-free-info strong { color: #f6c84a; font-weight: 700; margin-left: 4px; }
.om-free-close {
  width: 30px; height: 30px;
  border: 0; border-radius: 50%;
  background: rgba(255,255,255,.08); color: rgba(255,255,255,.7);
  cursor: pointer; font-size: 14px;
  display: grid; place-items: center;
  margin-left: 4px;
  transition: background .15s, color .15s;
}
.om-free-close:hover { background: rgba(255,80,80,.5); color: #fff; }
@media (max-width: 520px){
  .om-free-nav { bottom: 14px; padding: 6px 6px 6px 10px; }
  .om-free-nav .om-free-info { font-size: 12px; padding: 0 6px; }
}

/* cursor de mira no canvas em modo seleção */
.om-mode-select { cursor: crosshair !important; }
.om-mode-select * { cursor: crosshair !important; }

/* retângulo desenhado pelo path Leaflet */
.om-sel-rect {
  stroke-dasharray: 4 4;
  animation: omDash 1s linear infinite;
}
@keyframes omDash {
  to { stroke-dashoffset: -16; }
}

/* Reservation pulsante (overlay sobre tiles âmbar) */
.om-res-pulse {
  stroke:         #f0a818;
  stroke-width:   2;
  fill:           none;
  animation: omResPulse 1.6s ease-in-out infinite;
}
@keyframes omResPulse {
  0%, 100% { stroke-opacity: .9; stroke-width: 2; }
  50%      { stroke-opacity: .35; stroke-width: 4; }
}

/* Highlight quando vem de "encontrar foto" — pulsa vermelho por 8s */
.om-find-highlight {
  stroke: #d83a3a;
  stroke-width: 3;
  fill: none;
  filter: drop-shadow(0 0 8px rgba(216,58,58,.6));
  animation: omFindPulse 0.9s ease-in-out infinite;
}
@keyframes omFindPulse {
  0%, 100% { stroke-opacity: 1;   stroke-width: 3; }
  50%      { stroke-opacity: .45; stroke-width: 6; }
}

/* === MODAL central Promise-based === */
.om-modal-locked { overflow: hidden; }
#om-modal-root { position: fixed; inset: 0; z-index: 9000; pointer-events: none; }
#om-modal-root.is-open { pointer-events: auto; }
.om-modal-back {
  position: absolute; inset: 0;
  background: rgba(20,14,2,.55);
  backdrop-filter: blur(4px);
  animation: omFadeIn .18s ease-out;
}
.om-modal {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  width: min(520px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  overflow: auto;
  animation: omPop .22s cubic-bezier(.2,.9,.3,1.2);
}
.om-modal-x {
  position: absolute; right: 12px; top: 8px;
  border: 0; background: transparent;
  width: 36px; height: 36px;
  border-radius: 50%; color: var(--ink-mute);
  font-size: 24px; line-height: 1; cursor: pointer;
}
.om-modal-x:hover { background: var(--bg-soft); color: var(--ink); }
.om-modal-body { padding: 28px 28px 24px; }
@media (max-width: 520px) {
  .om-modal {
    left: 0; top: 0; right: 0; bottom: 0;
    transform: none;
    width: 100vw; max-width: 100vw;
    height: 100dvh; max-height: 100dvh;
    border-radius: 0; border: 0;
    animation: omSlideUp .25s cubic-bezier(.2,.9,.3,1);
  }
  .om-modal-body { padding: 60px 22px 24px; }
  .om-modal-x { right: 12px; top: 10px; width: 42px; height: 42px; font-size: 28px; }
}
@keyframes omSlideUp { from { transform: translateY(20px); opacity: .6 } to { transform: translateY(0); opacity: 1 } }

@keyframes omFadeIn { from { opacity: 0 } to { opacity: 1 } }
@keyframes omPop    { from { opacity: 0; transform: translate(-50%,-46%) scale(.96) } to { opacity: 1; transform: translate(-50%,-50%) scale(1) } }

/* === STEPS CHECKOUT === */
.om-co-loading { padding: 60px 0; text-align: center; color: var(--ink-mute); }
.om-co-fatal { text-align: center; padding: 30px 10px; }
.om-co-fatal h2 { margin: 0 0 10px; color: #8b1f1f; }
.om-co-fatal p { color: var(--ink-soft); margin: 0 0 18px; }

.om-co-head { margin: 0 0 18px; }
.om-co-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--amber-3);
  background: rgba(246,200,74,.18); padding: 4px 10px; border-radius: var(--r-pill);
  margin-bottom: 10px;
}
.om-co-head h2 { margin: 0 0 4px; font-size: 22px; letter-spacing: -.01em; }
.om-co-head p  { margin: 0; color: var(--ink-soft); font-size: 14.5px; }

.om-co-summary {
  background: linear-gradient(135deg, #fffaf0, #fff2d8);
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 16px 18px; margin-bottom: 18px;
}
.om-co-row { display: flex; justify-content: space-between; align-items: baseline; padding: 4px 0; }
.om-co-row span { color: var(--ink-soft); font-size: 13.5px; }
.om-co-row strong { font-weight: 700; }
.om-co-price { font-size: 22px; color: var(--amber-3); font-weight: 800; }

.om-modal-body label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--ink-soft); margin: 12px 0 6px;
}
.om-modal-body label small { color: var(--ink-mute); font-weight: 500; }
.om-modal-body input[type="tel"],
.om-modal-body input[type="text"],
.om-modal-body input[type="email"],
.om-modal-body input[type="url"],
.om-modal-body input[type="number"],
.om-modal-body input[type="password"],
.om-modal-body textarea {
  width: 100%; padding: 12px 14px;
  border: 1px solid var(--border); border-radius: var(--r);
  background: #fffdf7; font: inherit; font-size: 15px;
  color: var(--ink); transition: border-color .15s, box-shadow .15s;
  box-sizing: border-box;
}
.om-modal-body input:focus,
.om-modal-body textarea:focus {
  outline: none; border-color: var(--amber-2);
  box-shadow: 0 0 0 4px rgba(246,200,74,.22);
}
/* Inputs numéricos (tel/cpf) em fonte tabular */
.om-modal-body input[inputmode="tel"],
.om-modal-body input[inputmode="numeric"] { font-variant-numeric: tabular-nums; }

/* Códigos OTP de 6 dígitos — estilo destacado */
.om-modal-body input[maxlength="6"][inputmode="numeric"] {
  font-size: 24px; letter-spacing: 10px; text-align: center; font-weight: 700;
  padding: 14px;
}
.om-modal-body input[maxlength="6"][inputmode="numeric"]::placeholder {
  letter-spacing: 10px; color: #ddc99a; font-weight: 500;
}

.om-co-error {
  background: #fde9e9; border: 1px solid #f4b9b9; color: #8b1f1f;
  padding: 10px 14px; border-radius: var(--r);
  font-size: 13.5px; margin: 12px 0;
}
.om-co-actions {
  display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px;
}
.om-co-actions .btn { flex: 0 0 auto; }
.om-co-actions .btn-primary { flex: 1; }

/* === UPLOAD dropzone === */
.om-up-drop {
  position: relative;
  border: 2px dashed var(--border); border-radius: var(--r);
  background: #fffdf7; padding: 30px 16px;
  text-align: center; cursor: pointer;
  min-height: 180px;
  display: grid; place-items: center;
  transition: border-color .15s, background .15s;
  margin-top: 6px;
}
.om-up-drop:hover, .om-up-drop.is-dragover {
  border-color: var(--amber-2);
  background: #fffaeb;
}
.om-up-hint strong { color: var(--ink); font-size: 15px; }
.om-up-hint small  { color: var(--ink-mute); font-size: 12.5px; }
.om-up-preview {
  position: absolute; inset: 6px;
  background-size: cover; background-position: center;
  border-radius: calc(var(--r) - 4px);
}

/* === Página /pedido === */
body.page-order { background: var(--bg-soft); }
.order-wrap { max-width: 860px; margin: 28px auto; padding: 0 16px; }
.order-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 30px 32px;
}
.order-head { text-align: center; margin-bottom: 24px; }
.order-tag {
  display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--amber-3);
  background: rgba(246,200,74,.18); padding: 4px 10px; border-radius: var(--r-pill);
  margin-bottom: 10px;
}
.order-head h1 { margin: 0 0 8px; font-size: 28px; letter-spacing: -.01em; }
.order-head p  { margin: 0; color: var(--ink-soft); }

.order-grid {
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 24px;
  margin-bottom: 18px;
}
.order-preview {
  background: #f3eada; border: 1px solid var(--border); border-radius: var(--r);
  padding: 12px; text-align: center; align-self: start;
}
.order-preview img { max-width: 100%; border-radius: calc(var(--r) - 4px); }
.order-preview-empty { color: var(--ink-mute); padding: 60px 10px; font-size: 13px; }
.order-coords { margin-top: 10px; color: var(--ink-soft); font-size: 13px; }

.order-dl {
  display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px;
  margin: 0 0 22px;
}
.order-dl dt { color: var(--ink-mute); font-size: 13px; align-self: center; }
.order-dl dd { margin: 0; font-weight: 600; align-self: center; }
.order-total { color: var(--amber-3); font-size: 22px; font-weight: 800; }
.order-pill {
  display: inline-block; padding: 4px 10px; border-radius: var(--r-pill);
  font-size: 12px; font-weight: 700;
  background: var(--bg-soft); color: var(--ink-soft);
}
.order-pill-pending { background: #fef6e2; color: #7a5410; }
.order-pill-ok      { background: #ebf8ef; color: #145e34; }

.order-cta { padding-top: 6px; }
.order-cta-note { color: var(--ink-mute); font-size: 12.5px; margin: 8px 0 0; }
.order-foot { border-top: 1px solid var(--border); padding-top: 16px; }
.order-err {
  background: #fde9e9; border: 1px solid #f4b9b9; color: #8b1f1f;
  padding: 10px 14px; border-radius: var(--r);
  font-size: 13.5px; margin: 12px 0 0;
}

.order-pix {
  margin-top: 6px;
  background: linear-gradient(135deg, #fffaf0, #fff2d8);
  border: 1px solid var(--border); border-radius: var(--r);
  padding: 16px 18px;
}
.order-pix-qr {
  background: #fff; padding: 10px;
  border-radius: var(--r); border: 1px solid var(--border);
  display: grid; place-items: center;
  margin-bottom: 12px;
}
.order-pix-qr img { width: 220px; height: 220px; image-rendering: pixelated; }
.order-pix-help { margin: 0 0 8px; color: var(--ink-soft); font-size: 13.5px; }
.order-pix-copy { display: flex; gap: 8px; align-items: stretch; }
.order-pix-copy textarea {
  flex: 1; resize: none; padding: 8px 10px;
  border: 1px solid var(--border); border-radius: var(--r);
  background: #fff; font-family: 'Courier New', monospace; font-size: 11.5px;
  color: var(--ink-soft); word-break: break-all;
}
.order-pix-copy .btn { flex: 0 0 auto; align-self: stretch; }
.order-pix-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 10px; font-size: 12.5px; color: var(--ink-mute);
}
.order-pix-waiting::before {
  content: ''; display: inline-block; width: 8px; height: 8px;
  background: var(--green); border-radius: 50%;
  margin-right: 6px; vertical-align: middle;
  animation: omBlink 1.2s ease-in-out infinite;
}
@keyframes omBlink { 50% { opacity: .3; } }

.order-paid {
  margin-top: 12px;
  background: #ebf8ef; border: 1px solid #b7e3c4; color: #145e34;
  padding: 14px 16px; border-radius: var(--r);
}
.order-paid strong { display: block; margin-bottom: 4px; }
.order-paid p { margin: 0; font-size: 13.5px; color: #1f6b3e; }

/* === ADMIN === */
body.page-admin { background: var(--bg-soft); }
body.page-admin .footer { display: none; }
body.page-admin .topnav a.is-active { color: var(--amber-3); font-weight: 700; }
.admin-wrap { max-width: 1180px; margin: 24px auto; padding: 0 20px; }
.admin-h1   { font-size: 26px; margin: 0 0 22px; letter-spacing: -.01em; }
.admin-h2   { font-size: 18px; margin: 32px 0 12px; }
.badge {
  display: inline-block; min-width: 18px; padding: 1px 6px;
  border-radius: var(--r-pill); background: var(--red); color: #fff;
  font-size: 11px; font-weight: 700; margin-left: 4px;
}

.admin-kpi-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
}
.admin-kpi {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 16px 18px;
  box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.admin-kpi span  { color: var(--ink-mute); font-size: 12.5px; }
.admin-kpi strong { font-size: 26px; color: var(--amber-3); margin: 4px 0 2px; font-weight: 800; }
.admin-kpi small { color: var(--ink-mute); font-size: 12px; }
.admin-kpi-wide { grid-column: 1 / -1; }
.admin-bar {
  height: 8px; border-radius: var(--r-pill); background: var(--bg-soft);
  margin-top: 12px; overflow: hidden;
}
.admin-bar span {
  display: block; height: 100%;
  background: linear-gradient(90deg, var(--amber), var(--amber-2));
  border-radius: inherit;
}

.admin-tabs {
  display: flex; gap: 2px; border-bottom: 1px solid var(--border);
  margin: 0 0 18px; overflow-x: auto;
}
.admin-tabs a {
  padding: 10px 16px; color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  font-size: 14px; font-weight: 600; white-space: nowrap;
}
.admin-tabs a:hover { color: var(--ink); text-decoration: none; }
.admin-tabs a.is-active { color: var(--amber-3); border-color: var(--amber-2); }

.admin-empty { color: var(--ink-mute); padding: 30px; text-align: center; }

.admin-pill {
  display: inline-block; padding: 2px 10px; border-radius: var(--r-pill);
  font-size: 11.5px; font-weight: 700; text-transform: lowercase;
  background: var(--bg-soft); color: var(--ink-soft);
}
.admin-pill-paid     { background: #fef6e2; color: #7a5410; }
.admin-pill-approved { background: #ebf8ef; color: #145e34; }
.admin-pill-rejected { background: #fde9e9; color: #8b1f1f; }
.admin-pill-pending  { background: #eef1f5; color: #4a4a4a; }

.admin-list { display: flex; flex-direction: column; gap: 8px; }
.admin-row {
  display: flex; gap: 12px; align-items: center;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 10px 14px;
}
.admin-row-prev {
  width: 56px; height: 56px; border-radius: var(--r-sm);
  background: var(--bg-soft); overflow: hidden;
  display: grid; place-items: center;
}
.admin-row-prev img { width: 100%; height: 100%; object-fit: cover; }
.admin-row-info strong { font-weight: 700; }
.admin-row-meta { color: var(--ink-mute); font-size: 12.5px; margin-top: 2px; }

.mod-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 16px;
}
.mod-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
}
.mod-card-img {
  aspect-ratio: 1.4 / 1;
  background: #f3eada; display: grid; place-items: center; overflow: hidden;
}
.mod-card-img img { width: 100%; height: 100%; object-fit: contain; }
.mod-card-body { padding: 14px 16px; display: flex; flex-direction: column; gap: 8px; }
.mod-card-head { display: flex; justify-content: space-between; align-items: center; }
.mod-card-head strong { font-size: 14px; font-weight: 700; }
.mod-card-dl {
  display: grid; grid-template-columns: max-content 1fr; gap: 4px 12px;
  margin: 0; font-size: 13px;
}
.mod-card-dl dt { color: var(--ink-mute); }
.mod-card-dl dd { margin: 0; word-break: break-word; }
.mod-card-reason { color: #8b1f1f; }
.mod-card-actions { display: flex; gap: 8px; margin-top: 6px; }
.mod-card-actions .btn { flex: 1; }

.btn-danger {
  background: linear-gradient(135deg, #e94a4a, #c83232);
  border-color: #b32424; color: #fff;
  box-shadow: 0 2px 0 #8a1414, 0 8px 18px rgba(200,50,50,.32);
}
.btn-danger:hover { box-shadow: 0 2px 0 #8a1414, 0 12px 22px rgba(200,50,50,.4); }

@media (max-width: 720px) {
  .admin-kpi-grid { grid-template-columns: repeat(2, 1fr); }
}

.admin-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 24px 26px;
  box-shadow: var(--shadow-sm);
}
.admin-field { margin-bottom: 18px; }
.admin-field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.admin-field input {
  width: 100%; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: var(--r);
  background: #fffdf7; font: inherit; font-size: 15px;
  box-sizing: border-box;
}
.admin-field input:focus { outline: none; border-color: var(--amber-2); box-shadow: 0 0 0 4px rgba(246,200,74,.22); }
.admin-field small { display: block; color: var(--ink-mute); font-size: 12.5px; margin-top: 6px; }
.admin-actions { display: flex; justify-content: flex-end; }

/* === /minhas-imagens === */
body.page-mine { background: var(--bg-soft); }
body.page-mine .footer { display: none; }
.mine-wrap { max-width: 1080px; margin: 28px auto; padding: 0 20px; }
.mine-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 22px; flex-wrap: wrap; gap: 16px;
}
.mine-head h1 { margin: 0; font-size: 26px; letter-spacing: -.01em; }
.mine-stats { display: flex; gap: 14px; }
.mine-stats > div {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 10px 16px;
  box-shadow: var(--shadow-sm);
  text-align: right;
}
.mine-stats span  { display: block; color: var(--ink-mute); font-size: 11.5px; }
.mine-stats strong { font-size: 18px; color: var(--amber-3); font-weight: 800; }

.mine-list { display: flex; flex-direction: column; gap: 12px; }
.mine-card {
  display: flex; gap: 16px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 14px;
  box-shadow: var(--shadow-sm);
}
.mine-prev {
  width: 140px; height: 140px; flex-shrink: 0;
  background: #f3eada; border-radius: var(--r-sm);
  overflow: hidden; display: grid; place-items: center;
}
.mine-prev img { width: 100%; height: 100%; object-fit: contain; }
.mine-info { flex: 1; min-width: 0; }
.mine-info header { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.mine-info header strong { font-size: 16px; }
.mine-info dl { display: grid; grid-template-columns: max-content 1fr; gap: 3px 12px; margin: 0 0 10px; font-size: 13px; }
.mine-info dt { color: var(--ink-mute); }
.mine-info dd { margin: 0; word-break: break-word; }
.mine-actions { display: flex; gap: 8px; }

@media (max-width: 580px) {
  .mine-card { flex-direction: column; }
  .mine-prev { width: 100%; height: 200px; }
}

/* === /encontre-minha-foto === */
body.page-find {
  background:
    radial-gradient(ellipse at 20% -10%, rgba(246,200,74,.22), transparent 55%),
    radial-gradient(ellipse at 90% 110%, rgba(240,168,24,.18), transparent 55%),
    var(--bg);
  min-height: 100dvh;
}
body.page-find .footer { display: none; }
.find-wrap { max-width: 760px; margin: 32px auto; padding: 0 20px; }
.find-head { text-align: center; margin-bottom: 22px; }
.find-head h1 { margin: 0 0 8px; font-size: 30px; letter-spacing: -.01em; }
.find-head h1 strong { background: linear-gradient(120deg, var(--amber-2), var(--amber-3)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.find-head p { margin: 0; color: var(--ink-soft); font-size: 15px; max-width: 540px; margin: 0 auto; }

.find-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); box-shadow: var(--shadow);
  padding: 22px 24px; margin-bottom: 20px;
}
.find-form label { display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft); margin-bottom: 7px; }
.find-row { display: flex; gap: 10px; }
.find-row input {
  flex: 1; padding: 13px 14px;
  border: 1px solid var(--border); border-radius: var(--r);
  background: #fffdf7; font: inherit; font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.find-row input:focus { outline: none; border-color: var(--amber-2); box-shadow: 0 0 0 4px rgba(246,200,74,.22); }
.find-error {
  background: #fde9e9; border: 1px solid #f4b9b9; color: #8b1f1f;
  padding: 10px 14px; border-radius: var(--r); font-size: 13.5px; margin-top: 12px;
}

.find-results { margin-top: 18px; }
.find-empty {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 30px; text-align: center;
}
.find-empty h3 { margin: 0 0 8px; }
.find-empty p { color: var(--ink-soft); margin: 0 0 16px; }

.find-h { font-size: 18px; margin: 0 0 14px; }
.find-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
}
.find-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow-sm);
  display: flex; flex-direction: column;
}
.find-card-img {
  position: relative; aspect-ratio: 1.4 / 1; background: #f3eada;
  display: grid; place-items: center; overflow: hidden;
}
.find-card-img img { width: 100%; height: 100%; object-fit: contain; }
.find-card-status {
  position: absolute; top: 8px; right: 8px;
}
.find-card-body { padding: 12px 14px; display: flex; flex-direction: column; gap: 4px; }
.find-card-body strong { font-size: 14px; font-weight: 700; }
.find-card-body strong.muted { color: var(--ink-mute); font-weight: 500; }
.find-card-meta { color: var(--ink-soft); font-size: 12.5px; word-break: break-word; }
.find-card-meta a { color: var(--amber-3); }
.find-card-cta { margin-top: 6px; align-self: flex-start; }

/* === Modal "Encontrar foto" — grid de resultados === */
.om-fp-results { margin-top: 14px; }
.om-fp-h { font-size: 13.5px; color: var(--ink-soft); margin: 0 0 10px; }
.om-fp-empty {
  text-align: center; padding: 20px 8px;
  background: var(--bg-soft); border-radius: var(--r);
}
.om-fp-empty strong { display: block; margin-bottom: 6px; }
.om-fp-empty p { margin: 0; font-size: 13px; color: var(--ink-soft); }
.om-fp-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}
.om-fp-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); overflow: hidden; text-decoration: none;
  color: var(--ink); transition: transform .08s, box-shadow .15s;
}
.om-fp-card:hover { transform: translateY(-1px); box-shadow: var(--shadow-sm); text-decoration: none; }
.om-fp-img {
  aspect-ratio: 1.4 / 1; background: #f3eada;
  display: grid; place-items: center; overflow: hidden;
}
.om-fp-img img { width: 100%; height: 100%; object-fit: contain; }
.om-fp-meta { padding: 8px 10px; display: flex; flex-direction: column; gap: 3px; }
.om-fp-meta strong { font-size: 13px; font-weight: 700; word-break: break-word; }
.om-fp-meta small  { color: var(--ink-mute); font-size: 11.5px; font-variant-numeric: tabular-nums; }
.om-fp-meta .admin-pill { align-self: flex-start; margin-top: 2px; }

/* === Modal "Como funciona" === */
.om-how-steps {
  list-style: none; padding: 0; margin: 0 0 18px;
  counter-reset: how;
}
.om-how-steps li {
  position: relative;
  padding: 12px 14px 12px 52px;
  margin-bottom: 8px;
  background: var(--bg-soft);
  border-radius: var(--r);
  font-size: 14px; color: var(--ink-soft);
  counter-increment: how;
}
.om-how-steps li::before {
  content: counter(how);
  position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%;
  background: linear-gradient(135deg, var(--amber), var(--amber-2));
  color: #2a1e00; font-weight: 800; font-size: 14px;
  display: grid; place-items: center;
}
.om-how-steps li b { color: var(--ink); font-weight: 700; }
.om-how-steps li i { font-style: normal; background: rgba(246,200,74,.25); padding: 1px 6px; border-radius: 4px; }
.om-how-steps li strong { color: var(--amber-3); font-weight: 800; }

.om-how-rules {
  background: #fde9e9; border: 1px solid #f4b9b9;
  border-radius: var(--r); padding: 12px 16px; margin-bottom: 18px;
}
.om-how-rules strong { display: block; margin-bottom: 6px; color: #8b1f1f; }
.om-how-rules ul { margin: 0; padding-left: 18px; font-size: 13px; color: #6b2020; }
.om-how-rules li { margin: 3px 0; }
.om-how-rules b { color: #8b1f1f; }

/* === Páginas legais === */
body.page-legal { background: var(--bg-soft); }
.legal-wrap { max-width: 780px; margin: 28px auto; padding: 0 22px; }
.legal-head { margin-bottom: 22px; }
.legal-head h1 { margin: 0 0 6px; font-size: 28px; letter-spacing: -.01em; }
.legal-update { color: var(--ink-mute); font-size: 13px; margin: 0; }
.legal-body {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 26px 30px;
  box-shadow: var(--shadow-sm);
  line-height: 1.65; color: var(--ink-soft);
}
.legal-body h2 { color: var(--ink); margin: 22px 0 8px; font-size: 17px; }
.legal-body h2:first-child { margin-top: 0; }
.legal-body p, .legal-body ul { font-size: 14.5px; }
.legal-body ul { padding-left: 22px; }
.legal-body li { margin: 4px 0; }
.legal-body strong { color: var(--ink); }
@media (max-width: 580px) {
  .legal-body { padding: 20px 18px; }
}

@media (max-width: 720px) {
  .order-grid { grid-template-columns: 1fr; }
  .order-card { padding: 22px 18px; }
}
