/* ── Cabeçalho padronizado LMNew (busca + botões) ─────────────────────────────
   Usado em todas as telas (exceto Home e trilhas imersivas), via app_header.js.
   A busca tem o visual fino da Home + a função do /app (navega pro /app). */

.app-nav { gap: 14px; }
.app-nav .app-nav-logo { flex-shrink: 0; }

.lm-search { position: relative; flex: 1; max-width: 560px; }
.lm-search-box { display: flex; align-items: center; gap: 9px; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.12); border-radius: 999px; padding: 9px 16px; }
.lm-search-box:focus-within { border-color: rgba(0,212,200,.5); }
.lm-search-box input { flex: 1; min-width: 0; width: auto; background: transparent; border: none; outline: none; padding: 0; border-radius: 0; box-shadow: none; color: var(--text, #f0f0ff); font-size: 14px; font-family: inherit; }
.lm-search-box input:focus { box-shadow: none; border: none; }
.lm-search-box input::placeholder { color: var(--muted, #8b93a7); }

.lm-search-dd { display: none; position: absolute; top: 46px; left: 0; right: 0; background: #10102a; border: 1px solid rgba(255,255,255,0.12); border-radius: 16px; overflow: hidden; max-height: 360px; overflow-y: auto; box-shadow: 0 18px 50px rgba(0,0,0,.55); z-index: 300; }
.lm-search-dd.show { display: block; }
.lm-dd-item { display: flex; align-items: center; gap: 11px; padding: 10px 16px; cursor: pointer; border-bottom: 1px solid rgba(255,255,255,.05); text-decoration: none; color: var(--text, #f0f0ff); }
.lm-dd-item:hover { background: rgba(0,212,200,.08); }
.lm-dd-ic { width: 18px; text-align: center; opacity: .85; flex-shrink: 0; }
.lm-dd-t { font-size: 14px; font-weight: 800; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }
.lm-dd-a { font-size: 12px; color: var(--muted, #8b93a7); font-weight: 700; }
.lm-dd-msg { padding: 12px 16px; font-size: 12.5px; color: var(--muted, #8b93a7); font-weight: 700; }

.app-nav-right { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-std-btn { padding: 7px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 700; color: var(--muted, #9a9ac2); text-decoration: none; border: 1px solid rgba(255,255,255,.1); white-space: nowrap; transition: .18s; }
.nav-std-btn:hover { color: var(--text, #f2f2ff); border-color: rgba(0,212,200,.4); }
.lm-login { display: inline-flex; align-items: center; padding: 7px 16px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: #fff; background: linear-gradient(135deg, #00d4c8, #9b6dff); text-decoration: none; white-space: nowrap; }
.lm-userchip { display: inline-flex; align-items: center; gap: 7px; padding: 6px 13px; border-radius: 999px; font-size: 12.5px; font-weight: 800; color: var(--text, #f2f2ff); border: 1px solid rgba(0,212,200,.35); background: linear-gradient(135deg, rgba(0,212,200,.14), rgba(155,109,255,.14)); text-decoration: none; }

@media (max-width: 920px) { .nav-std-btn { display: none; } }
@media (max-width: 680px) {
  .app-nav { gap: 8px; padding: 0 12px; }
  .lm-search { max-width: none; min-width: 0; }   /* encolhe em vez de empurrar */
  .app-nav-right { gap: 6px; flex-shrink: 0; }
  .lm-search-box { padding: 8px 12px; }
  .lm-search-box input { font-size: 13px; }
}
@media (max-width: 560px) { #site-stats { display: none !important; } }   /* busca não colapsa no celular */
