/* public_html/css/ui.css - componentes de interface comuns (notificações) */

.toast-area {
    position: fixed;
    top: 84px;
    right: 20px;
    z-index: 2000;
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: min(380px, calc(100vw - 32px));
    pointer-events: none;
}

.ardog-toast {
    pointer-events: auto;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 14px 14px 14px 16px;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(8px);
    border-radius: 14px;
    box-shadow: 0 10px 30px rgba(17, 24, 39, 0.12), 0 2px 6px rgba(17, 24, 39, 0.06);
    border: 1px solid rgba(17, 24, 39, 0.06);
    position: relative;
    overflow: hidden;
    font-size: 0.92rem;
    color: #1f2937;
    animation: toast-entra 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.2);
}
.ardog-toast.saindo { animation: toast-sai 0.25s ease-in forwards; }

.ardog-toast .toast-icone {
    flex-shrink: 0;
    width: 30px; height: 30px;
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    font-size: 14px;
}
.ardog-toast .toast-texto { flex: 1; line-height: 1.4; padding-top: 5px; }
.ardog-toast .toast-texto a { color: inherit; font-weight: 700; text-decoration: none; }
.ardog-toast .toast-texto a:hover { color: #8a560a; }
.ardog-toast .toast-fechar {
    border: none; background: none; color: #9ca3af; padding: 2px 4px; font-size: 14px; line-height: 1;
}
.ardog-toast .toast-fechar:hover { color: #4b5563; }
.ardog-toast .toast-tempo {
    position: absolute; left: 0; bottom: 0; height: 3px; width: 100%;
    transform-origin: left; animation: toast-tempo linear forwards;
}

.ardog-toast.success .toast-icone { background: #e8f7ee; color: #16a34a; }
.ardog-toast.success .toast-tempo { background: #16a34a; }
.ardog-toast.error .toast-icone { background: #fdecec; color: #dc2626; }
.ardog-toast.error .toast-tempo { background: #dc2626; }
.ardog-toast.warning .toast-icone { background: #fff4e0; color: #d97706; }
.ardog-toast.warning .toast-tempo { background: #f5a623; }
.ardog-toast.info .toast-icone { background: #fff4e0; color: #e5941f; }
.ardog-toast.info .toast-tempo { background: #f5a623; }

@keyframes toast-entra { from { opacity: 0; transform: translateX(24px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes toast-sai { to { opacity: 0; transform: translateX(24px); } }
@keyframes toast-tempo { from { transform: scaleX(1); } to { transform: scaleX(0); } }

@media (max-width: 576px) {
    .toast-area { top: 72px; right: 16px; left: 16px; width: auto; }
}

/* Mensagens dentro de modais (substituem os alertas antigos) */
.form-aviso {
    display: none;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 0.88rem;
    line-height: 1.45;
    margin-bottom: 16px;
}
.form-aviso.visivel { display: flex; }
.form-aviso i { margin-top: 2px; }
.form-aviso.error { background: #fdecec; color: #991b1b; }
.form-aviso.success { background: #e8f7ee; color: #166534; }
.form-aviso.info { background: #fff4e0; color: #92400e; }
.form-aviso .btn-link-aviso {
    background: none; border: none; padding: 0; color: inherit; font-weight: 700; text-decoration: underline;
}

/* Erro em campo de formulário */
.campo-erro { color: #dc2626; font-size: 0.8rem; margin-top: 4px; display: none; }
.campo-erro.visivel { display: block; }
input.invalido, select.invalido, textarea.invalido { border-color: #dc2626 !important; }

/* Requisitos de senha */
.senha-regras { list-style: none; padding: 0; margin: 8px 0 0; font-size: 0.78rem; color: #9ca3af; display: flex; flex-wrap: wrap; gap: 4px 12px; }
.senha-regras li::before { content: '\25CB'; margin-right: 5px; }
.senha-regras li.ok { color: #16a34a; }
.senha-regras li.ok::before { content: '\2713'; }

/* Botão em carregamento */
.carregando { position: relative; pointer-events: none; opacity: 0.75; }

/* Modal de login: etapas sem abas (esqueci a senha / confirme seu e-mail) */
.auth-etapa-topo { text-align: center; margin-bottom: 18px; }
.auth-etapa-topo h3 { font-size: 1.3rem; font-weight: 800; margin: 10px 0 6px; }
.auth-etapa-topo p { color: #6b7280; font-size: 0.92rem; margin-bottom: 6px; }
.auth-etapa-icone {
    width: 58px; height: 58px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #fff4e0; color: #f5a623; font-size: 24px;
}
.aceite-termos { margin-top: 4px; }
.aceite-label { display: flex; gap: 10px; align-items: flex-start; font-size: 0.85rem; font-weight: 400 !important; color: #4b5563; cursor: pointer; }
.aceite-label input { width: auto !important; margin-top: 3px; accent-color: #f5a623; flex-shrink: 0; }
.aceite-label a { color: #d4870f; font-weight: 600; }
.btn-auth.btn-auth-secundario { background: #fff; border: 2px solid #f5a623; color: #212529; box-shadow: none; }
.btn-auth.btn-auth-secundario:hover { background: #fff8ec; }
.btn-social { text-decoration: none; color: inherit; }

/* Modal de login ancorado no topo: ao trocar de aba ele cresce só para baixo */
.auth-modal-dialog { margin-top: clamp(24px, 7vh, 72px); }
#authModal .auth-form { animation: fadeIn 0.55s cubic-bezier(0.45, 0, 0.25, 1) both; }
#authModal .auth-form.saindo { animation: none; opacity: 0; transform: translateY(-6px); transition: opacity 0.18s ease, transform 0.18s ease; }

/* Símbolo da ARDOG pintado na cor do texto (o PNG serve só de máscara) */
.marca-ardog {
    display: inline-block; width: 17px; height: 17px; background-color: currentColor; flex-shrink: 0;
    -webkit-mask: url('../img/simbolo.svg') center / contain no-repeat;
    mask: url('../img/simbolo.svg') center / contain no-repeat;
}

/* Marca (partials/marca.php): símbolo + ARDOG em vetor (img/logo.svg), nítido em qualquer tela e zoom */
.marca-link { display: inline-block; text-decoration: none; }
.marca { --marca-h: 56px; display: inline-block; height: var(--marca-h); line-height: 0; }
.marca-logo { height: 100%; width: auto; display: block; }
.navbar .marca { --marca-h: 56px; }
@media (max-width: 767px) {
    .navbar .marca { --marca-h: 42px; }
}
@media (max-width: 389px) {
    .navbar .marca { --marca-h: 38px; }
    .navbar .btn-group-pill .btn-main { padding-left: 10px; padding-right: 12px; }
}

/* Alternância "Sou tutor / Sou anfitrião / Sou parceiro": o layout a desenha logo abaixo do cabeçalho, sempre no
   mesmo lugar e com a mesma largura (perfil, painel do anfitrião e painel do parceiro). */
.modo-barra { display: flex; justify-content: center; max-width: 900px; margin: 28px auto 0; padding: 0 20px; }
.modo-alternar { display: flex; width: max-content; max-width: 100%; background: #fff; border: 1px solid #efe5d6; border-radius: 999px; padding: 4px; gap: 4px; box-shadow: 0 4px 14px rgba(80, 55, 20, 0.06); }
.modo-alternar a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 8px 18px; border-radius: 999px; font-weight: 700; font-size: 0.9rem; color: #6b5f50; text-decoration: none; white-space: nowrap; -webkit-tap-highlight-color: transparent; }
.modo-alternar a:hover { color: #2a2219; }
.modo-alternar a.ativo { background: #f5a623; color: #2a1a00; }
.modo-alternar a:focus-visible { outline: 2px solid #f5a623; outline-offset: 2px; }
/* O conteúdo começa sempre à mesma distância da alternância */
main > .modo-barra ~ .profile-container { margin-top: 20px; }
main > .modo-barra ~ .anf-area { margin-top: 20px; }
main > .modo-barra ~ .pc-area { padding-top: 20px; }
/* Celular: a linha toda, botões de mesma largura; com três modos, só o texto */
@media (max-width: 575px) {
    .modo-barra { margin-top: 18px; padding: 0 16px; }
    .modo-alternar { width: 100%; }
    .modo-alternar a { flex: 1 1 0; min-width: 0; padding: 9px 6px; font-size: 0.86rem; }
    .modo-alternar.modos-3 a i { display: none; }
    main > .modo-barra ~ .profile-container, main > .modo-barra ~ .anf-area { margin-top: 16px; }
    main > .modo-barra ~ .pc-area { padding-top: 16px; }
}

/* Confirmação no visual da marca (ARDOG.confirmar) - substitui o confirm() do navegador */
.ardog-confirmar {
    position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 20px;
    background: rgba(28, 31, 36, 0.55); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
    animation: ardog-conf-fundo 0.18s ease-out;
}
.ardog-confirmar.saindo { opacity: 0; transition: opacity 0.18s; }
.ardog-confirmar-caixa {
    width: min(420px, 100%); background: #fff; border-radius: 22px; padding: 26px 24px 22px; text-align: center;
    display: grid; gap: 10px; justify-items: center; box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
    animation: ardog-conf-caixa 0.2s ease-out; font-family: 'Inter', system-ui, sans-serif;
}
.ardog-confirmar-icone { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.4rem; background: #fff1da; color: #c97d0b; }
.ardog-confirmar.perigo .ardog-confirmar-icone { background: #fdecea; color: #c0392b; }
.ardog-confirmar-caixa h2 { font-size: 1.2rem; font-weight: 800; margin: 4px 0 0; color: #2a2219; }
.ardog-confirmar-caixa p { margin: 0; color: #5f5547; font-size: 0.95rem; line-height: 1.5; }
.ardog-confirmar-acoes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; margin-top: 10px; }
.ardog-confirmar-acoes button { border: 0; border-radius: 999px; padding: 11px 16px; font: inherit; font-weight: 800; font-size: 0.92rem; cursor: pointer; }
.ardog-confirmar-acoes [data-conf-nao] { background: #f3eee6; color: #4b4136; }
.ardog-confirmar-acoes [data-conf-nao]:hover { background: #ebe3d6; }
.ardog-confirmar-acoes [data-conf-sim] { background: #f5a623; color: #2a1a00; }
.ardog-confirmar-acoes [data-conf-sim]:hover { background: #e8971a; }
.ardog-confirmar.perigo [data-conf-sim] { background: #c0392b; color: #fff; }
.ardog-confirmar.perigo [data-conf-sim]:hover { background: #a93226; }
.ardog-confirmar-acoes button:focus-visible { outline: 3px solid #f5a623; outline-offset: 2px; }
body.ardog-confirmar-aberto { overflow: hidden; }
/* Enquadrar foto antes de enviar (ARDOG.enquadrar): moldura redonda (perfil) ou quadrada, arrastar e zoom */
.ardog-enquadrar .ardog-confirmar-caixa { width: min(380px, 100%); }
.enq-area {
    position: relative; width: min(300px, 100%); aspect-ratio: 1; overflow: hidden; border-radius: 16px; margin-top: 4px;
    background: #2a2219; touch-action: none; cursor: grab; user-select: none; -webkit-user-select: none;
}
.enq-area:active { cursor: grabbing; }
.enq-area:focus-visible { outline: 3px solid #f5a623; outline-offset: 3px; }
.enq-area img { position: absolute; left: 0; top: 0; max-width: none; transform-origin: 0 0; pointer-events: none; -webkit-user-drag: none; }
.enq-area::after { /* escurece o que fica fora da moldura */
    content: ''; position: absolute; inset: 0; border-radius: 50%; pointer-events: none;
    box-shadow: 0 0 0 9999px rgba(28, 31, 36, 0.55); outline: 2px solid rgba(255, 255, 255, 0.9); outline-offset: -2px;
}
.enq-area.quadrada::after { border-radius: 0; }
.enq-zoom { display: flex; align-items: center; gap: 10px; width: min(300px, 100%); color: #8a7f70; font-size: 0.85rem; }
.enq-zoom input { flex: 1; accent-color: #f5a623; min-height: 32px; }
/* Origem da foto no celular (input data-camera): Tirar foto / Escolher da galeria, em folha no rodapé */
.ardog-origem-foto { place-items: end center; padding: 0 12px calc(12px + env(safe-area-inset-bottom)); }
.ardog-origem-foto .ardog-confirmar-caixa { width: min(460px, 100%); padding: 10px; gap: 4px; border-radius: 22px; text-align: left; justify-items: stretch; }
.ardog-origem-foto button {
    display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 12px 16px; border: 0; border-radius: 14px;
    background: none; color: #2a2219; font: inherit; font-weight: 700; font-size: 1rem; cursor: pointer;
}
.ardog-origem-foto button i { width: 22px; text-align: center; color: #c97d0b; font-size: 1.15rem; }
.ardog-origem-foto button:hover, .ardog-origem-foto button:focus-visible { background: #fff6e8; outline: none; }
.ardog-origem-foto button.cancelar { justify-content: center; margin-top: 4px; background: #f3eee6; color: #4b4136; font-weight: 800; }
@keyframes ardog-conf-fundo { from { opacity: 0; } to { opacity: 1; } }
@keyframes ardog-conf-caixa { from { opacity: 0; transform: translateY(8px) scale(0.98); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .ardog-confirmar, .ardog-confirmar-caixa { animation: none; } }

/* Sugestões de local enquanto digita (campo com data-sugerir-endereco) */
.search-box, .busca-onde, .fb-busca { position: relative; }
.ardog-sugestoes {
    position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; margin: 0; padding: 6px; list-style: none;
    background: #fff; border: 1px solid #efe5d6; border-radius: 18px; box-shadow: 0 16px 34px rgba(80, 50, 10, 0.14);
    max-height: 340px; overflow-y: auto; text-align: left;
}
.ardog-sugestoes li { display: grid; gap: 1px; padding: 10px 14px; border-radius: 12px; cursor: pointer; }
.ardog-sugestoes li[aria-selected="true"], .ardog-sugestoes li:hover { background: #fff1da; }
.ardog-sugestoes strong { font-weight: 700; color: #2a2219; font-size: 0.95rem; overflow-wrap: anywhere; }
.ardog-sugestoes span { font-size: 0.82rem; color: #7b6d5c; }

/* Visualizador de foto */
body:has(.visualizador.show) .modal-backdrop { --bs-backdrop-opacity: 0.85; }
.visualizador .modal-content { background: transparent; border: 0; box-shadow: none; align-items: center; }
.vis-palco { position: relative; margin: 0 auto; width: fit-content; max-width: 100%; display: flex; justify-content: center; touch-action: pan-y; cursor: grab; }
.vis-palco:active { cursor: grabbing; }
.visualizador.vis-unica .vis-palco { cursor: auto; }
.vis-palco img { max-width: 100%; max-height: 82vh; border-radius: 16px; object-fit: contain; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); user-select: none; -webkit-user-drag: none; will-change: transform; }
.vis-fechar {
    position: fixed; top: 18px; right: 18px; z-index: 3;
    width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(255, 255, 255, 0.12); backdrop-filter: blur(6px);
    cursor: pointer; transition: background 0.2s, transform 0.2s;
}
/* "X" desenhado com duas linhas finas */
.vis-fechar::before, .vis-fechar::after {
    content: ''; position: absolute; left: 50%; top: 50%; width: 18px; height: 1.5px;
    background: #fff; border-radius: 2px;
}
.vis-fechar::before { transform: translate(-50%, -50%) rotate(45deg); }
.vis-fechar::after { transform: translate(-50%, -50%) rotate(-45deg); }
.vis-fechar:hover, .vis-fechar:focus-visible { background: rgba(255, 255, 255, 0.25); transform: rotate(90deg); }
.vis-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, 0.35);
    background: rgba(17, 17, 17, 0.32); backdrop-filter: blur(6px); color: #fff; font-size: 1rem; opacity: .85; z-index: 2;
    display: flex; align-items: center; justify-content: center; cursor: pointer; transition: background 0.2s;
}
.vis-nav:hover, .vis-nav:focus-visible { background: rgba(17, 17, 17, 0.6); opacity: 1; }
.vis-nav.anterior { left: 12px; }
.vis-nav.proxima { right: 12px; }
.vis-contador { margin-top: 14px; color: rgba(255, 255, 255, 0.85); font-size: 0.85rem; letter-spacing: 0.08em; min-height: 1.2em; }
.vis-legenda { margin-top: 14px; max-width: min(640px, 92vw); color: #fff; font-size: 0.95rem; line-height: 1.45; text-align: center; overflow-wrap: anywhere; }
.vis-legenda:empty { display: none; }
.vis-legenda:not(:empty) + .vis-contador { margin-top: 6px; }
.visualizador.vis-unica .vis-nav, .visualizador.vis-unica .vis-contador { display: none; }
@media (max-width: 576px) {
    .vis-nav { width: 38px; height: 38px; font-size: .9rem; }
    .vis-nav.anterior { left: 6px; }
    .vis-nav.proxima { right: 6px; }
    .vis-fechar { top: 12px; right: 12px; }
}

/* Aviso de rascunho recuperado (formulários com data-rascunho) */
.ardog-rascunho {
    display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; padding: 10px 14px;
    border-radius: 14px; background: #eef4ff; border: 1px solid #cfdcf5; color: #2f4f86; font-size: 0.88rem;
}
.ardog-rascunho span { flex: 1 1 220px; }
.ardog-rascunho button { border: 0; background: none; color: #2f4f86; font-weight: 700; text-decoration: underline; cursor: pointer; padding: 0; font: inherit; font-weight: 700; }

/* Bloco sendo atualizado sem recarregar a página (data-envio-local) */
[data-parte].enviando { opacity: 0.55; pointer-events: none; transition: opacity 0.2s; }

/* Imagens do site: sem arrastar e sem o menu de "segurar o dedo" no celular (salvar/abrir); o admin fica de fora (app.js) */
body:not(.adm) img { -webkit-user-drag: none; user-drag: none; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }

/* "Ver todos" no mural e a janela com todos os distintivos */
.mural-ver-todos { justify-self: center; font: inherit; font-size: 0.8rem; font-weight: 800; color: #6e4308; background: rgba(255, 248, 230, .7); border: 1px solid rgba(170, 125, 55, .55); border-radius: 999px; padding: 5px 14px; cursor: pointer; transition: background .15s; }
.mural-ver-todos:hover { background: #fff8ec; }
.distintivos-todos { text-align: left; border: 0; padding: 0; border-radius: 22px; width: min(92vw, 460px); max-height: 82vh; box-shadow: 0 30px 70px -20px rgba(40, 25, 5, .5); }
.distintivos-todos::backdrop { background: rgba(31, 24, 15, .5); backdrop-filter: blur(2px); }
.distintivos-todos-caixa { display: grid; gap: 14px; padding: 20px 22px 22px; }
.distintivos-todos header { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-bottom: 12px; border-bottom: 1px solid #f3eadc; }
.distintivos-todos h2 { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 1.05rem; font-weight: 800; color: #2a2219; }
.distintivos-todos h2 i { color: #e08a00; }
.distintivos-todos-fechar { width: 34px; height: 34px; border-radius: 50%; border: 0; background: #f7f1e8; color: #6b5f50; cursor: pointer; }
.distintivos-todos-fechar:hover { background: #f5a623; color: #fff; }
.distintivos-todos ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; overflow-y: auto; }
.distintivos-todos li { display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 10px; border-radius: 14px; background: #fcfaf7; border: 1px solid #f1e9dd; }
.distintivos-todos li strong { display: block; font-size: 0.92rem; color: #2a2219; }
.distintivos-todos li small { font-size: 0.78rem; color: #8b7d6b; }
/* Olho de ocultar (perfil): valor real e máscara *** convivem; o grupo com "oculto" mostra a máscara */
.sensivel-mascara { display: none !important; letter-spacing: .12em; } /* !important: vale sobre regras de layout como .profile-contato span */
.oculto .sensivel-real { display: none !important; }
.oculto .sensivel-mascara { display: inline !important; }
.olho-ocultar { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; border: 1px solid #efe5d6; background: #fff; color: #8b7d6b; cursor: pointer; transition: background .15s, color .15s, border-color .15s; flex: 0 0 auto; }
.olho-ocultar:hover, .olho-ocultar:focus-visible { background: #fff4e0; border-color: #f5c97e; color: #c97d0b; outline: none; }
.olho-ocultar[aria-pressed="true"] { color: #c97d0b; }

/* Medalhas ilustradas dos distintivos: a imagem é a própria medalha (sem círculo por trás) */
.medalha-img { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(80, 50, 10, .28)); }
.distintivos-todos-medalha { width: 52px; height: 52px; display: block; flex: 0 0 auto; }
.distintivos-todos li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 12px; align-items: center; padding: 8px 10px; border-radius: 14px; background: #fcfaf7; border: 1px solid #f1e9dd; }

/* Mural de distintivos ARDOG (perfil do tutor, painel do anfitrião e vitrine): cartão branco, troféu, medalhas com plaquinha */
.mural { display: grid; gap: 16px; align-content: start; background: #fff; border: 1px solid #efe5d6; border-radius: 20px; padding: 18px 20px 20px; box-shadow: 0 10px 26px -20px rgba(80, 55, 20, .45); text-align: left; }
.mural-topo { display: flex; align-items: center; gap: 12px; }
.mural-trofeu { color: #f5a623; font-size: 1.2rem; padding-right: 12px; border-right: 2px solid #f5c97e; }
.mural-topo h3 { margin: 0; min-width: 0; font-size: 0.86rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #2a2219; }
.mural-topo h3 span { color: #f08c00; }
.mural-traco { flex: 1 1 auto; display: flex; align-items: center; justify-content: flex-end; gap: 6px; min-width: 24px; color: #f5a623; font-size: 0.9rem; }
.mural-traco::before { content: ""; flex: 1 1 auto; height: 2px; border-radius: 2px; background: linear-gradient(90deg, transparent, #f5c97e 60%, #f5a623); }
.mural-lista { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 14px 10px; }
.mural-medalha { display: grid; justify-items: center; gap: 8px; text-decoration: none; color: inherit; }
.mural-medalha .medalha-img { width: 84px; height: 84px; transition: transform .2s; }
a.mural-medalha:hover .medalha-img, a.mural-medalha:focus-visible .medalha-img { transform: translateY(-3px) scale(1.05); }
a.mural-medalha:focus-visible { outline: none; }
/* Vitrine: a medalha é um botão que abre a janela "o que significa" */
button.mural-medalha { width: 100%; padding: 0; border: 0; background: none; font: inherit; cursor: pointer; }
button.mural-medalha:hover .medalha-img, button.mural-medalha:focus-visible .medalha-img { transform: translateY(-3px) scale(1.05); }
button.mural-medalha:focus-visible { outline: 3px solid #f5c97e; outline-offset: 4px; border-radius: 14px; }
.distintivo-sobre { width: min(92vw, 400px); }
.distintivo-sobre-corpo { display: grid; justify-items: center; gap: 12px; text-align: center; }
.distintivo-sobre-medalha { display: block; width: 116px; height: 116px; }
/* na janela a plaquinha fica fixa embaixo da medalha (no mural ela é um balão que só aparece no toque) */
dialog.distintivo-sobre .distintivo-sobre-corpo .mural-placa {
    position: static; opacity: 1; transform: none; pointer-events: auto; width: auto; max-width: 100%; font-size: 0.8rem; padding: 7px 14px;
}
.distintivo-sobre-corpo p { margin: 0; font-size: 0.95rem; line-height: 1.5; color: #4a3f33; }
.distintivo-sobre-corpo .distintivo-sobre-origem { width: 100%; padding: 10px 12px; border-radius: 14px; background: #fcfaf7; border: 1px solid #f1e9dd; font-size: 0.82rem; color: #7a6c5b; }
.distintivo-sobre-origem i { color: #e08a00; margin-right: 4px; }
.distintivos-todos li small.distintivos-todos-sobre { display: block; margin: 2px 0 3px; color: #5b5045; }/* Plaquinha com o nome: fundo escuro, borda no tom da medalha */
.mural-placa { display: block; max-width: 100%; padding: 6px 10px; border-radius: 999px; text-align: center; font-size: 0.7rem; font-weight: 800; line-height: 1.15; letter-spacing: .03em; text-transform: uppercase; color: #fff;
    background: linear-gradient(180deg, #3a3129, #1f1a15); border: 2px solid var(--tom, #f5a623); box-shadow: 0 0 0 1px rgba(0, 0, 0, .15), 0 6px 12px -8px rgba(0, 0, 0, .5); overflow-wrap: normal; word-break: normal; hyphens: manual; }
.mural-item.tom-ouro { --tom: #f2b632; }
.mural-item.tom-prata { --tom: #b9c3cf; }
.mural-item.tom-bronze { --tom: #d98a4e; }
.mural-item.tom-roxo { --tom: #9a6ae0; }
.mural-item.tom-azul { --tom: #4aa3e0; }
.mural-item.tom-verde { --tom: #3fbf7a; }
.mural-item.tom-rosa { --tom: #e5609a; }
.mural .mural-ver-todos { justify-self: center; }
.mural-vazio { margin: 0; font-size: 0.86rem; color: #6b5f50; }
/* Versão compacta (coluna estreita da vitrine) */
.mural.compacto { padding: 14px 12px 16px; gap: 12px; }
.mural.compacto .mural-topo h3 { font-size: 0.72rem; white-space: normal; }
.mural.compacto .mural-trofeu { font-size: 1rem; padding-right: 8px; }
.mural.compacto .mural-traco { display: none; }
.mural.compacto .mural-lista { grid-template-columns: repeat(auto-fill, minmax(72px, 1fr)); gap: 10px 6px; }
.mural.compacto .mural-medalha .medalha-img { width: 60px; height: 60px; }
.mural.compacto .mural-placa { font-size: 0.56rem; padding: 4px 5px; letter-spacing: 0; }
/* Mural sem moldura e com o nome só num balão (ao passar o mouse, tocar ou focar a medalha) */
.mural { border: 0; box-shadow: none; }
.mural-medalha { position: relative; }
.mural-medalha:focus-visible { outline: none; }
.mural-placa { position: absolute; left: 50%; bottom: calc(100% + 4px); z-index: 30; width: max-content; max-width: 180px; white-space: normal;
    opacity: 0; pointer-events: none; transform: translate(-50%, 4px); transition: opacity .15s, transform .15s; }
.mural-medalha:is(:hover, :focus, :focus-visible) .mural-placa { opacity: 1; transform: translate(-50%, 0); }
.mural .mural-lista { grid-template-columns: repeat(auto-fill, minmax(76px, 1fr)); gap: 10px 6px; }
.mural.compacto .mural-lista { grid-template-columns: repeat(auto-fill, minmax(56px, 1fr)); }
.mural.compacto .mural-placa { font-size: 0.62rem; padding: 5px 8px; }
/* Traço com a patinha sempre visível (o título cede espaço) */
.mural-traco { min-width: 64px; }
.mural.compacto .mural-traco { display: flex; min-width: 40px; }
@media (max-width: 480px) { .mural-traco { min-width: 36px; } }

/* "Voltar" para o caminho de onde a pessoa veio (jornada do anfitrião, vitrine de um anfitrião): botão em destaque */
a.voltar-destaque {
    display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px 8px 12px; border-radius: 999px;
    background: #fff4e0; border: 1.5px solid #f6cf8a; color: #a55d06 !important; font-weight: 700; font-size: 0.9rem; text-decoration: none;
    box-shadow: 0 6px 14px -10px rgba(224, 138, 0, .7); transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
a.voltar-destaque i { transition: transform .15s ease; }
a.voltar-destaque:hover, a.voltar-destaque:focus-visible { background: #ffe7bf; border-color: #f5a623; color: #8a4d05 !important; outline: none; }
a.voltar-destaque:hover i, a.voltar-destaque:focus-visible i { transform: translateX(-3px); }
@media (prefers-reduced-motion: reduce) { a.voltar-destaque, a.voltar-destaque i { transition: none; } }

/* Caixa de passos (ex.: como instalar o app): mesmo visual da confirmação, com lista numerada */
.ardog-passos ol { justify-self: stretch; text-align: left; margin: 4px 0 6px; padding-left: 1.3rem; display: grid; gap: 8px; font-size: 0.95rem; line-height: 1.45; color: #374151; }
.ardog-passos ol i { color: #c97d0b; margin: 0 2px; }
.ardog-passos .ardog-confirmar-acoes { grid-template-columns: 1fr; }

/* Convite para ativar os avisos no celular: cartão flutuante no canto, por aparelho (pwa.js) */
.convite-avisos {
    position: fixed; z-index: 1040; right: max(20px, env(safe-area-inset-right, 0px)); bottom: max(20px, env(safe-area-inset-bottom, 0px));
    width: min(380px, calc(100vw - 32px)); display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 10px 12px; padding: 16px 16px 14px;
    background: #fff; border: 1px solid #f2dfbf; border-radius: 18px; box-shadow: 0 22px 48px -16px rgba(80, 50, 10, .35);
    animation: convite-entra .25s ease-out;
}
.convite-avisos.saindo { opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s; }
.convite-avisos-icone { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: #fff1da; color: #c97d0b; font-size: 1.15rem; }
.convite-avisos-texto { display: grid; gap: 3px; min-width: 0; padding-right: 18px; }
.convite-avisos-texto strong { font-size: 0.98rem; font-weight: 800; color: #2a2219; }
.convite-avisos-texto span { font-size: 0.86rem; line-height: 1.45; color: #6b5f50; }
.convite-avisos-acoes { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.convite-avisos-acoes button { border: 0; border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 800; font-size: 0.9rem; cursor: pointer; }
.convite-avisos-sim { background: #f5a623; color: #2a1a00; }
.convite-avisos-sim:hover { background: #e5941f; }
.convite-avisos-sim:disabled { opacity: .6; cursor: progress; }
.convite-avisos-nao { background: #f3eee6; color: #4b4136; }
.convite-avisos-nao:hover { background: #ebe3d6; }
.convite-avisos-fechar { position: absolute; top: 8px; right: 8px; width: 30px; height: 30px; border: 0; border-radius: 50%; background: transparent; color: #8b7d6b; cursor: pointer; }
.convite-avisos-fechar:hover { background: #f6f1ea; }
.convite-avisos button:focus-visible { outline: 3px solid #2a2219; outline-offset: 2px; }
@keyframes convite-entra { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
@media (max-width: 480px) { .convite-avisos { right: 16px; left: 16px; width: auto; } }
@media (prefers-reduced-motion: reduce) { .convite-avisos { animation: none; } }

/* Aviso "Parada 3 aprovada" (partials/parada3-aprovada.php), no visual das confirmações */
.aviso-parada3-monge { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; border: 3px solid #fff1da; }
.aviso-parada3-selo { display: inline-flex; align-items: center; gap: 6px; background: #e8f7ee; color: #157a43; border-radius: 999px; padding: 4px 12px; font-size: 0.8rem; font-weight: 800; }
.ardog-confirmar-acoes a.aviso-parada3-ir { display: grid; place-items: center; border-radius: 999px; padding: 11px 16px; font-weight: 800; font-size: 0.92rem; background: #f5a623; color: #2a1a00; text-decoration: none; }
.ardog-confirmar-acoes a.aviso-parada3-ir:hover { background: #e8971a; }

/* Patinhas (nota de avaliação, no lugar das estrelinhas): cheias em laranja, meia pata com degradê, vazias em bege */
.patinhas { display: inline-flex; gap: 3px; vertical-align: middle; line-height: 1; }
.patinhas i { color: #e6dccd; font-size: 0.95em; }
.patinhas i.cheia { color: #f5a623; }
.patinhas i.meia { background: linear-gradient(90deg, #f5a623 50%, #e6dccd 50%); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Cartão de avaliação (vitrine e área do anfitrião): patinhas, comentário entre aspas, foto do tutor, "Nome & Pet" e cidade */
.av-cartoes { display: grid; gap: 12px; }
.av-cartoes.grade { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.av-cartao { display: grid; gap: 10px; align-content: start; background: #fff; border: 1px solid #f1e7d8; border-radius: 18px; padding: 16px 18px; box-shadow: 0 8px 22px -16px rgba(80, 50, 10, .35); }
.av-cartao .patinhas { font-size: 1rem; }
.av-texto { margin: 0; color: #3d342a; font-size: 0.95rem; line-height: 1.5; }
.av-cartao footer { display: flex; align-items: center; gap: 10px; }
.av-cartao footer img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; flex: none; }
.av-cartao footer strong { display: block; font-size: 0.95rem; color: #2a2219; }
.av-cartao footer small { display: block; font-size: 0.8rem; color: #8b7d6b; }

/* Favoritar: coração dos cartões e das vitrines (anfitriões e parceiros). Vazio = não salvo; cheio e vermelho = favorito */
.fav-botao {
    display: inline-flex; align-items: center; justify-content: center; gap: 7px; min-width: 40px; height: 40px; padding: 0 11px; border-radius: 999px;
    background: #fff; border: 1px solid #f0e4d4; color: #5b4f41; font-weight: 700; font-size: 0.88rem; cursor: pointer;
    box-shadow: 0 6px 16px -8px rgba(60, 40, 10, 0.45); transition: transform .15s, background .15s, color .15s, border-color .15s;
}
.fav-botao i { font-size: 1.05rem; }
.fav-botao:hover { color: #e0434f; border-color: #f6c3c7; transform: scale(1.06); }
.fav-botao:focus-visible { outline: 3px solid #f5a623; outline-offset: 2px; }
.fav-botao.ativo { color: #e0434f; background: #fff1f2; border-color: #f6c3c7; }
.fav-botao.pulsar i { animation: fav-pulsar .35s ease-out; }
@keyframes fav-pulsar { 0% { transform: scale(1); } 45% { transform: scale(1.35); } 100% { transform: scale(1); } }
.fav-botao[aria-busy="true"] { opacity: .65; pointer-events: none; }
/* Sobre a foto do cartão (canto de cima à direita; no parceiro, canto de baixo) */
.ab-card-item { position: relative; }
.fav-sobre-foto { position: absolute; top: 28px; right: 28px; z-index: 2; width: 40px; padding: 0; background: rgba(255, 255, 255, 0.95); }
.ab-card-item .fav-sobre-foto { transition: transform .25s, background .15s, color .15s; }
.ab-card-item:hover .fav-sobre-foto { transform: translateY(-6px); }
.fav-sobre-foto.fav-canto-baixo { top: auto; right: 12px; bottom: 12px; }
/* Vitrine do parceiro: ao lado do nome. Vitrine do anfitrião: no canto da foto */
.fav-perfil { margin-left: auto; align-self: flex-start; flex-shrink: 0; width: 44px; height: 44px; padding: 0; }
.fav-avatar { position: absolute; right: 2px; bottom: 6px; width: 42px; height: 42px; padding: 0; border: 3px solid #fff; }
@media (prefers-reduced-motion: reduce) { .fav-botao, .fav-botao.pulsar i { transition: none; animation: none; } }

/* Distintivo suspenso (curso novo na trilha): só o dono vê, apagado e com alerta */
.mural-item.suspenso .medalha-img { filter: grayscale(.75) opacity(.6); }
.mural-item.suspenso .mural-medalha { position: relative; }
/* Mesmo selinho de alerta dos pets do perfil (.pet-mini-alerta) */
.mural-alerta { position: absolute; top: 0; right: 4px; width: 20px; height: 20px; border-radius: 50%; display: flex; align-items: center; justify-content: center; background: #f5a623; color: #fff; border: 2px solid #fff; font-size: 10px; box-shadow: 0 2px 5px rgba(0,0,0,0.15); }
.distintivos-todos-alerta { display: block; color: #a15c00; font-weight: 700; }

/* Janela de login: convite do anúncio de anfitrião (acima das abas) */
.auth-convite { text-align: center; margin: -8px 0 18px; }
.auth-convite h3 { font-size: 1.25rem; font-weight: 800; margin: 10px 0 4px; color: #2a2219; }
.auth-convite p { color: #6b7280; font-size: 0.92rem; margin: 0; }

/* Conta sem e-mail confirmado: aviso no topo das páginas (partials/aviso-email) */
.aviso-email { max-width: 1140px; margin: 14px auto 0; padding: 12px 16px; border-radius: 16px; background: #fff8ec; border: 1px solid #f5d9a4; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; position: relative; z-index: 2; }
.aviso-email-linha { display: flex; align-items: flex-start; gap: 10px; flex: 1 1 420px; min-width: 0; }
.aviso-email-linha p { margin: 0; font-size: 0.88rem; line-height: 1.45; color: #5c4317; overflow-wrap: anywhere; }
.aviso-email-icone { flex: 0 0 auto; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #f5a623; color: #2a1a00; }
.aviso-email-acoes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.aviso-email-acoes form { margin: 0; }
.aviso-email-botao { border: 0; border-radius: 999px; padding: 8px 14px; background: #f5a623; color: #1f2328; font-weight: 700; font-size: 0.82rem; cursor: pointer; white-space: nowrap; }
.aviso-email-botao:hover { background: #e5941f; }
.aviso-email-corrigir > summary { list-style: none; cursor: pointer; font-size: 0.82rem; font-weight: 700; color: #8a560a; text-decoration: underline; padding: 8px 4px; }
.aviso-email-corrigir > summary::-webkit-details-marker { display: none; }
.aviso-email-corrigir[open] { flex: 1 1 100%; }
.aviso-email-corrigir form { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.aviso-email-corrigir input { flex: 1 1 220px; min-width: 0; border: 1px solid #e9d7b6; border-radius: 12px; padding: 8px 12px; font: inherit; font-size: 0.88rem; background: #fff; }
@media (max-width: 575px) {
    .aviso-email { margin: 10px 12px 0; padding: 12px; }
    .aviso-email-acoes { width: 100%; }
    .aviso-email-acoes > form:first-child { flex: 1 1 auto; }
    .aviso-email-acoes > form:first-child .aviso-email-botao { width: 100%; }
}
/* Janela "Confirme seu e-mail" (partials/modal-confirmar-email) */
.modal-confirmar-email .modal-content { border: 0; border-radius: 24px; padding: 28px 24px 22px; text-align: center; position: relative; }
.modal-confirmar-email .btn-close { position: absolute; top: 14px; right: 14px; }
.mce-icone { width: 58px; height: 58px; margin: 0 auto 10px; border-radius: 50%; display: grid; place-items: center; background: #fff4e0; color: #f5a623; font-size: 24px; }
.modal-confirmar-email h2 { font-size: 1.3rem; font-weight: 800; margin: 0 0 8px; color: #2a2219; }
.modal-confirmar-email p { font-size: 0.92rem; line-height: 1.5; color: #4b4136; margin: 0 0 8px; overflow-wrap: anywhere; }
.modal-confirmar-email .mce-dica { font-size: 0.82rem; color: #7b6d5c; }
.mce-retorno { background: #e8f7ee; color: #166534 !important; border-radius: 12px; padding: 8px 12px; font-size: 0.85rem !important; }
.mce-retorno.erro { background: #fdecec; color: #991b1b !important; }
.mce-corrigir { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.mce-corrigir[hidden] { display: none; }
.mce-corrigir { flex-wrap: nowrap; }
.mce-corrigir input[type="email"] { flex: 1 1 0; min-width: 0; border: 1px solid #e3d8c8; border-radius: 12px; padding: 9px 12px; font: inherit; font-size: 0.9rem; }
.mce-corrigir .mce-botao { flex: 0 0 auto; white-space: nowrap; }
@media (max-width: 575px) {
    .modal-confirmar-email .modal-content { padding: 26px 16px 20px; }
    .mce-botoes { gap: 8px; }
    .mce-botao { padding: 9px 14px; font-size: 0.86rem; }
    .mce-link { font-size: 0.84rem; }
    .mce-corrigir input[type="email"] { padding: 8px 10px; font-size: 0.86rem; }
}
.mce-botoes { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 10px 14px; margin-top: 14px; }
.mce-link { border: 0; background: none; padding: 6px 2px; font-size: 0.88rem; font-weight: 700; color: #8a560a; text-decoration: underline; cursor: pointer; }
.mce-link:hover { color: #6b4207; }
.mce-botao { border: 0; border-radius: 999px; padding: 10px 18px; background: #f5a623; color: #1f2328; font-weight: 700; cursor: pointer; }
.mce-botao:hover { background: #e5941f; }
.mce-botao.contorno { background: #fff; border: 1.5px solid #e9dfd0; color: #2a2219; }
.mce-botao.contorno:hover { background: #f8f3ec; }
