/* ============================================
   To Dentro — design "Vibrante" (mobile-first)
   Fonte: Nunito · Gradiente roxo→rosa
   - inputs com 16px (iOS não dá zoom)
   - áreas de toque com mínimo de 44px
   ============================================ */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --grad: linear-gradient(135deg, #7c3aed 0%, #c026d3 60%, #db2777 100%);
    --cor-primaria: #7c3aed;
    --cor-primaria-escura: #6d28d9;
    --cor-rosa: #db2777;
    --cor-fundo: #faf8ff;
    --cor-texto: #2a2438;
    --cor-texto-suave: #7a7290;
    --cor-borda: #ece7f7;
    --cor-roxo-claro: #f5f1fd;
    --cor-erro-fundo: #fdf0f3;
    --cor-erro-borda: #f5c2cd;
    --cor-erro-texto: #e11d48;
    --cor-sucesso-fundo: #f0fdf4;
    --cor-sucesso-borda: #bbe8c9;
    --cor-sucesso-texto: #15803d;
}

html {
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
    background: var(--cor-fundo);
    color: var(--cor-texto);
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    -webkit-tap-highlight-color: transparent;
}

.container {
    width: 100%;
    max-width: 560px;
    margin: 0 auto;
    padding: 0 16px;
}

/* ---------------- Cabeçalho ---------------- */

.topo {
    background: rgba(255, 255, 255, 0.92);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--cor-borda);
    padding: 14px 0;
    position: sticky;
    top: 0;
    z-index: 10;
}

.topo-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
}

/* Cabeçalho mínimo (páginas públicas do convidado) */
.topo-centro {
    justify-content: center;
}

.logo {
    display: inline-flex;
    align-items: center;
    text-decoration: none;
}

.logo-img {
    height: 32px;
    width: auto;
    display: block;
}

.hero-logo {
    max-width: 340px;
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto 6px;
}

.menu {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu a {
    color: var(--cor-texto);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 700;
    padding: 8px 2px;
}

.menu a:hover {
    color: var(--cor-primaria);
}

.form-inline {
    display: inline;
}

.btn-link {
    background: none;
    border: none;
    padding: 8px 2px;
    color: var(--cor-erro-texto);
    font-size: 0.92rem;
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
}

.btn-link:hover {
    text-decoration: underline;
}

/* ---------------- Conteúdo ---------------- */

main {
    flex: 1;
    padding: 26px 16px 56px;
}

.card {
    background: #fff;
    border: 1px solid var(--cor-borda);
    border-radius: 24px;
    padding: 24px 20px;
    box-shadow: 0 10px 36px -16px rgba(80, 52, 160, 0.18);
    margin-bottom: 20px;
}

.card h1 {
    font-size: 1.4rem;
    font-weight: 800;
    margin-bottom: 8px;
}

.card h2 {
    font-size: 1.15rem;
    font-weight: 800;
}

.subtitulo {
    color: var(--cor-texto-suave);
    margin-bottom: 20px;
}

.centro {
    text-align: center;
}

/* ---------------- Formulários ---------------- */

.campo {
    margin-bottom: 18px;
    flex: 1;
}

.campo label {
    display: block;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 6px;
}

.campo label small {
    font-weight: 400;
    color: var(--cor-texto-suave);
}

.campo select {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--cor-borda);
    border-radius: 14px;
    font-size: 16px;
    font-family: inherit;
    font-weight: 600;
    background: #fff;
    color: var(--cor-texto);
    min-height: 48px;
}

.campo select:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.config-pagamento {
    border: 1px dashed var(--cor-borda);
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 18px;
}

.config-pagamento legend {
    font-weight: 800;
    font-size: 0.92rem;
    padding: 0 8px;
    color: var(--cor-primaria);
}

.campo-dica {
    display: block;
    color: var(--cor-texto-suave);
    font-size: 0.8rem;
    margin-top: 4px;
}

.campo input,
.campo textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1.5px solid var(--cor-borda);
    border-radius: 14px;
    font-size: 16px; /* evita zoom automático no iOS */
    font-family: inherit;
    font-weight: 600;
    background: #fff;
    color: var(--cor-texto);
    min-height: 48px;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.campo textarea {
    resize: vertical;
}

.campo input:focus,
.campo textarea:focus {
    outline: none;
    border-color: var(--cor-primaria);
    box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.campo input::placeholder,
.campo textarea::placeholder {
    color: #b8b2c9;
    font-weight: 500;
}

.campo small {
    display: block;
    color: var(--cor-texto-suave);
    font-size: 0.8rem;
    margin-top: 4px;
}

.campo-grupo {
    display: flex;
    flex-direction: column;
    gap: 0;
}

@media (min-width: 420px) {
    .campo-grupo {
        flex-direction: row;
        gap: 12px;
    }
}

/* ---------------- Botões ---------------- */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    min-height: 50px;
    padding: 13px 24px;
    background: var(--grad);
    color: #fff;
    border: none;
    border-radius: 999px;
    font-size: 1rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    box-shadow: 0 8px 20px -8px rgba(124, 58, 237, 0.55);
    transition: transform 0.15s, box-shadow 0.15s;
}

.btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 24px -8px rgba(124, 58, 237, 0.65);
}

.btn:active {
    transform: translateY(0);
}

.btn-auto {
    width: auto;
}

.btn-secundario {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    min-height: 46px;
    padding: 10px 20px;
    background: var(--cor-roxo-claro);
    color: var(--cor-primaria);
    border: none;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
}

.btn-secundario:hover {
    background: #e9e1fb;
}

.btn-perigo {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 46px;
    padding: 10px 20px;
    background: var(--cor-erro-fundo);
    color: var(--cor-erro-texto);
    border: none;
    border-radius: 14px;
    font-size: 0.95rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
}

.btn-perigo:hover {
    background: #fbe2e9;
}

.btn-mini {
    min-height: 38px;
    padding: 6px 14px;
    font-size: 0.85rem;
}

/* Honeypot: tirado da tela sem usar display:none (alguns bots detectam) */
.hp {
    position: absolute;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
}

/* ---------------- Alertas ---------------- */

.alerta {
    border-radius: 16px;
    padding: 13px 18px;
    margin-bottom: 16px;
    font-size: 0.95rem;
    font-weight: 600;
}

.alerta ul {
    margin-left: 18px;
}

.alerta a {
    font-weight: 800;
    color: inherit;
}

.alerta-erro {
    background: var(--cor-erro-fundo);
    border: 1px solid var(--cor-erro-borda);
    color: var(--cor-erro-texto);
}

.alerta-sucesso {
    background: var(--cor-sucesso-fundo);
    border: 1px solid var(--cor-sucesso-borda);
    color: var(--cor-sucesso-texto);
}

/* ---------------- Painel do usuário ---------------- */

.painel-cabecalho {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 22px;
}

.painel-cabecalho h1 {
    font-size: 1.45rem;
    font-weight: 800;
}

.painel-cabecalho .subtitulo {
    margin-bottom: 0;
    font-size: 0.95rem;
}

@media (min-width: 480px) {
    .painel-cabecalho {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
    }
}

.evento-vazio {
    font-size: 3rem;
    margin-bottom: 4px;
}

/* Cabeçalho do card de evento: tile de data + título + selo */

.evento-head {
    display: flex;
    gap: 14px;
    align-items: flex-start;
    margin-bottom: 14px;
}

.data-tile {
    flex-shrink: 0;
    width: 62px;
    border-radius: 18px;
    background: var(--grad);
    color: #fff;
    text-align: center;
    padding: 9px 0 7px;
    box-shadow: 0 8px 18px -8px rgba(192, 38, 211, 0.5);
}

.data-tile .dia {
    font-size: 1.5rem;
    font-weight: 900;
    line-height: 1.1;
}

.data-tile .mes {
    font-size: 0.7rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    opacity: 0.92;
}

.evento-head h2 {
    font-size: 1.2rem;
    font-weight: 800;
    line-height: 1.3;
}

/* Selos / chips de status */

.selo {
    display: inline-block;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 3px 12px;
    border-radius: 999px;
    white-space: nowrap;
    margin-top: 4px;
}

.selo-futuro {
    background: #f3e8ff;
    color: var(--cor-primaria);
}

.selo-hoje {
    background: var(--cor-sucesso-fundo);
    color: var(--cor-sucesso-texto);
}

.selo-passado {
    background: #f1eff6;
    color: var(--cor-texto-suave);
}

.evento-detalhes {
    list-style: none;
    margin-bottom: 16px;
    color: var(--cor-texto-suave);
    font-size: 0.93rem;
}

.evento-detalhes li {
    margin-bottom: 4px;
}

/* Barra de progresso das confirmações */

.progresso {
    margin-bottom: 18px;
}

.progresso-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.85rem;
    font-weight: 700;
    margin-bottom: 6px;
}

.progresso-info b {
    color: var(--cor-primaria);
}

.barra {
    height: 10px;
    border-radius: 999px;
    background: #efeaf9;
    overflow: hidden;
}

.barra span {
    display: block;
    height: 100%;
    width: 0;
    border-radius: 999px;
    background: var(--grad);
    transition: width 0.6s ease;
}

/* Box do link do convite */

.convite-link {
    background: linear-gradient(135deg, #f6f1ff, #fdf2f8);
    border-radius: 18px;
    padding: 14px;
    margin-bottom: 18px;
}

.convite-link label {
    display: block;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    margin-bottom: 8px;
}

.convite-link-linha {
    display: flex;
    gap: 8px;
}

.convite-input {
    flex: 1;
    min-width: 0;
    padding: 10px 12px;
    border: 1px solid var(--cor-borda);
    border-radius: 12px;
    font-size: 0.83rem;
    font-family: inherit;
    font-weight: 600;
    color: var(--cor-texto-suave);
    background: #fff;
}

.btn-copiar {
    border: none;
    border-radius: 12px;
    padding: 0 18px;
    background: var(--grad);
    color: #fff;
    font-size: 0.9rem;
    font-weight: 800;
    font-family: inherit;
    cursor: pointer;
    min-height: 44px;
}

.evento-acoes {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

.evento-acoes .btn-secundario {
    flex: 1;
}

/* ---------------- Lista de convidados (dono da festa) ---------------- */

.lote {
    margin-top: 18px;
    border-top: 1px solid var(--cor-borda);
    padding-top: 14px;
}

.lote summary {
    cursor: pointer;
    font-weight: 800;
    color: var(--cor-primaria);
    padding: 8px 0;
}

.lote form {
    margin-top: 12px;
}

/* ---------------- Convidados (painel do dono) ---------------- */

/* Utilitário: esconder elemento (controlado via app.js) */
.oculto {
    display: none !important;
}

/* Layout largo do painel no desktop (body.painel-largo via $paginaLarga) */
.painel-largo .container {
    max-width: 1160px;
}

.grade-convidados {
    display: grid;
    grid-template-columns: 1fr;
    gap: 20px;
    align-items: start;
}

@media (min-width: 1024px) {
    .grade-convidados {
        grid-template-columns: 420px minmax(0, 1fr);
    }

    .grade-convidados .card,
    .grade-convidados .form-secao {
        margin-bottom: 0;
    }
}

/* Grade genérica do painel: usa a largura toda em 2 colunas (mesma ideia da
   tela de convidados). Reutilizada em evento, sugestões e galeria. */
.grade-painel { display: grid; grid-template-columns: 1fr; gap: 20px; align-items: start; }
.grade-painel .form-secao { margin-bottom: 0; }
.coluna-lado { display: grid; gap: 20px; align-content: start; }
.coluna-lado .form-secao { margin-bottom: 0; }
.metricas-lado { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.convite-link-espaco { margin-top: 18px; }
@media (min-width: 1024px) {
    .grade-painel { grid-template-columns: 420px minmax(0, 1fr); }
    .grade-painel.inverso { grid-template-columns: minmax(0, 1fr) 360px; }
}

/* Acompanhantes no formulário de cadastro */
.acomp-campos {
    margin: 12px 0 16px;
    padding: 14px;
    background: var(--cor-roxo-claro);
    border-radius: 14px;
}

.acomp-titulo {
    display: block;
    font-size: 0.78rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--cor-primaria);
    margin-bottom: 8px;
}

.acomp-lista {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.acomp-lista input {
    width: 100%;
    min-height: 44px;
    padding: 10px 14px;
    font: 600 16px 'Nunito', sans-serif;
    color: var(--cor-texto);
    background: #fff;
    border: 1.5px solid var(--cor-borda);
    border-radius: 12px;
}

.acomp-lista input:focus {
    outline: none;
    border-color: var(--cor-primaria);
}

.btn-leve-mais {
    margin-top: 10px;
    border: none;
    background: transparent;
    color: var(--cor-primaria);
    font: 800 0.88rem 'Nunito', sans-serif;
    cursor: pointer;
    padding: 6px 0;
}

.btn-leve-mais:hover {
    text-decoration: underline;
}

.acomp-campos small {
    display: block;
    margin-top: 8px;
    font-size: 0.76rem;
    color: var(--cor-texto-suave);
}

/* Seta que mostra/esconde os acompanhantes na lista */
.seta-acomp {
    border: none;
    background: var(--cor-roxo-claro);
    color: var(--cor-primaria);
    font: 800 0.74rem 'Nunito', sans-serif;
    border-radius: 999px;
    padding: 3px 10px;
    margin-left: 6px;
    cursor: pointer;
    vertical-align: middle;
}

.seta-acomp.aberto {
    background: var(--cor-primaria);
    color: #fff;
}

.stats-fila {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-bottom: 20px;
}

.stat-chip {
    background: #fff;
    border: 1px solid var(--cor-borda);
    border-radius: 14px;
    padding: 9px 10px;
    text-align: center;
}

.stat-numero {
    display: block;
    font-size: 1.2rem;
    font-weight: 900;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    line-height: 1.2;
}

.stat-rotulo {
    font-size: 0.66rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    color: var(--cor-texto-suave);
}

.stat-destaque {
    background: var(--cor-roxo-claro);
    border-color: #ded2f7;
}

/* Cards de estatística clicáveis (filtram a lista) */
a.stat-chip { text-decoration: none; cursor: pointer;
    transition: border-color 0.15s, box-shadow 0.15s, transform 0.15s, background 0.15s; }
a.stat-chip:hover { border-color: var(--cor-primaria); transform: translateY(-1px);
    box-shadow: 0 10px 24px -16px rgba(124, 58, 237, 0.5); }
.stat-chip.ativo { border-color: var(--cor-primaria); background: var(--cor-roxo-claro); }

.acao-centro { text-align: center; margin-top: 4px; }
.filtro-ativo { display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
    font-size: 0.85rem; font-weight: 700; color: var(--cor-texto-suave); margin-bottom: 14px; }

.lista-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.lista-topo h2 {
    margin-bottom: 0;
}

.busca-form {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 200px;
    justify-content: flex-end;
    margin-bottom: 14px;
}

.busca-input {
    flex: 1;
    max-width: 260px;
    min-height: 44px;
    padding: 9px 14px;
    font: 600 16px 'Nunito', sans-serif;
    color: var(--cor-texto);
    background: var(--cor-fundo);
    border: 1.5px solid var(--cor-borda);
    border-radius: 999px;
}

.busca-input:focus {
    outline: none;
    border-color: var(--cor-primaria);
}

.busca-limpar {
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--cor-rosa);
    text-decoration: none;
}

.lista-convidados {
    list-style: none;
}

.convidado {
    padding: 14px 0;
    border-bottom: 1px solid var(--cor-borda);
}

.convidado:last-child {
    border-bottom: none;
}

.convidado-linha {
    display: flex;
    align-items: center;
    gap: 12px;
}

.convidado-avatar {
    flex-shrink: 0;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--cor-primaria);
    background: var(--cor-roxo-claro);
}

.convidado-avatar.avatar-ok {
    color: var(--cor-sucesso-texto);
    background: var(--cor-sucesso-fundo);
}

.convidado-info {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.convidado-info strong {
    line-height: 1.3;
}

.convidado-contato {
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--cor-texto-suave);
    overflow-wrap: anywhere;
}

.convidado-info .selo {
    margin-top: 0;
}

/* Acompanhantes do convidado */
.acomp-chips {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 6px;
    margin: 10px 0 0 56px;
}

.acomp-rotulo {
    font-size: 0.74rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--cor-texto-suave);
}

.acomp-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--cor-primaria);
    background: var(--cor-roxo-claro);
    border-radius: 999px;
    padding: 4px 6px 4px 12px;
}

.acomp-x {
    border: none;
    background: transparent;
    color: var(--cor-rosa);
    font-size: 1rem;
    font-weight: 900;
    line-height: 1;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
}

.acomp-x:hover {
    background: var(--cor-erro-fundo);
}

/* Ações por convidado (acompanhante / contato / remover) */
.convidado-acoes {
    display: flex;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 14px;
    margin: 10px 0 0 56px;
}

.convidado-detalhe summary {
    cursor: pointer;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--cor-primaria);
    padding: 4px 0;
    list-style: none;
}

.convidado-detalhe summary::-webkit-details-marker {
    display: none;
}

.detalhe-form {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 8px;
}

.detalhe-form input {
    flex: 1;
    min-width: 150px;
    min-height: 44px;
    padding: 9px 12px;
    font: 600 16px 'Nunito', sans-serif;
    color: var(--cor-texto);
    border: 1.5px solid var(--cor-borda);
    border-radius: 12px;
}

.detalhe-form input:focus {
    outline: none;
    border-color: var(--cor-primaria);
}

.convidado-detalhe small {
    display: block;
    margin-top: 6px;
    font-size: 0.76rem;
    color: var(--cor-texto-suave);
}

@media (min-width: 560px) {
    .stats-fila {
        grid-template-columns: repeat(4, 1fr);
    }
}

/* ---------------- Convite público ---------------- */

.convite-card {
    padding: 0;
    overflow: hidden;
    text-align: center;
}

.convite-topo {
    background: var(--grad);
    color: #fff;
    padding: 30px 20px 26px;
}

.convite-chamada {
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 8px;
}

.convite-titulo {
    font-size: 1.6rem;
    font-weight: 900;
    line-height: 1.25;
}

.convite-corpo {
    padding: 24px 20px 26px;
}

.convite-detalhes {
    display: inline-block;
    text-align: left;
    margin-bottom: 8px;
}

.convite-recado {
    background: var(--cor-roxo-claro);
    border-radius: 14px;
    padding: 12px 16px;
    color: var(--cor-texto-suave);
    font-style: italic;
    font-weight: 600;
    margin-top: 8px;
}

/* ---------------- Lista de presentes ---------------- */

/* Borda em gradiente (cards de destaque nas páginas públicas) */
.card-presentes,
.card-borda {
    border: 2px solid transparent;
    background:
        linear-gradient(#fff, #fff) padding-box,
        var(--grad) border-box;
}

.presentes-cabecalho {
    text-align: center;
    margin-bottom: 22px;
}

.presentes-cabecalho h2 {
    font-size: 1.3rem;
    margin-bottom: 6px;
}

.presentes-cabecalho .subtitulo {
    margin-bottom: 14px;
}

.presentes-cabecalho::after {
    content: "";
    display: block;
    width: 56px;
    height: 4px;
    border-radius: 999px;
    background: var(--grad);
    margin: 0 auto;
}

.presentes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 14px;
}

.presente-card {
    display: flex;
    flex-direction: column;
    gap: 8px;
    background: #fff;
    border: 1px solid var(--cor-borda);
    border-radius: 18px;
    padding: 10px;
    transition: transform 0.15s, box-shadow 0.15s;
}

.presente-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 24px -12px rgba(124, 58, 237, 0.35);
}

.presente-foto {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.presente-sem-foto {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.6rem;
    background: var(--cor-roxo-claro);
}

.presente-info {
    flex: 1;
    padding: 0 2px;
}

.presente-nome {
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.35;
}

.presente-valor {
    font-size: 1rem;
    font-weight: 900;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Mensagem do aniversariante sobre o presente */
.presente-desc {
    margin-top: 6px;
    padding: 8px 10px;
    background: var(--cor-roxo-claro);
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 600;
    font-style: italic;
    color: var(--cor-texto-suave);
    line-height: 1.45;
}

.btn-comprar {
    min-height: 42px;
    padding: 8px 14px;
    font-size: 0.9rem;
}

.btn-comprar:disabled {
    background: #d8d3e6;
    box-shadow: none;
    cursor: not-allowed;
    transform: none;
}

.confirmado-banner {
    border-top: 4px solid;
    border-image: var(--grad) 1;
}

/* Card do PIX (página de presentes do convidado) */
.pix-card .pix-qr {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.pix-card .pix-qr img,
.pix-card .pix-qr canvas {
    border: 8px solid #fff;
    border-radius: 14px;
    box-shadow: 0 6px 22px -10px rgba(80, 52, 160, 0.35);
}

.pix-copia label {
    text-align: left;
}

/* Input de arquivo */
.campo input[type="file"] {
    padding: 10px;
    font-size: 0.88rem;
    font-weight: 600;
    min-height: 48px;
}

.campo input[type="file"]::file-selector-button {
    border: none;
    border-radius: 10px;
    padding: 8px 14px;
    margin-right: 10px;
    background: var(--cor-roxo-claro);
    color: var(--cor-primaria);
    font-family: inherit;
    font-weight: 800;
    font-size: 0.85rem;
    cursor: pointer;
}

/* Prévia da foto de perfil do aniversariante (form do evento) */
.foto-perfil-previa {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--cor-borda);
    margin-bottom: 10px;
}

.campo-checkbox {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--cor-texto-suave);
    cursor: pointer;
}

.campo-checkbox input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--cor-primaria);
}

.btn-largo {
    width: 100%;
}

/* ---------------- Estatísticas (admin) ---------------- */

.estatistica {
    background: var(--cor-roxo-claro);
    border: none;
    border-radius: 18px;
    padding: 16px 20px;
    margin-bottom: 20px;
    display: flex;
    align-items: baseline;
    gap: 10px;
    flex-wrap: wrap;
}

.estatistica-numero {
    font-size: 2rem;
    font-weight: 900;
    background: var(--grad);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.estatistica-rotulo {
    color: var(--cor-texto-suave);
    font-weight: 600;
}

/* ---------------- Links alternativos ---------------- */

.link-alternativo {
    margin-top: 20px;
    text-align: center;
    font-size: 0.92rem;
    color: var(--cor-texto-suave);
    font-weight: 600;
}

.link-alternativo a {
    color: var(--cor-primaria);
    font-weight: 800;
    text-decoration: none;
}

.link-alternativo a:hover {
    text-decoration: underline;
}

/* ---------------- Rodapé ---------------- */

.rodape {
    border-top: 1px solid var(--cor-borda);
    padding: 16px 0;
    text-align: center;
    color: var(--cor-texto-suave);
    font-size: 0.85rem;
}

.rodape .desenvolvido {
    margin-top: 2px;
    font-size: 0.8rem;
}

.rodape a {
    color: var(--cor-primaria);
    font-weight: 700;
    text-decoration: none;
}

.rodape a:hover {
    text-decoration: underline;
}

/* ---------------- Telas maiores ---------------- */

@media (min-width: 768px) {
    main {
        padding-top: 40px;
    }

    .card {
        padding: 32px 28px;
    }

    .card h1 {
        font-size: 1.5rem;
    }

    .convite-titulo {
        font-size: 1.9rem;
    }
}

/* ============================================
   Tema "Noite no Bayou" — páginas públicas do
   convite (design aprovado pelo cliente).
   Ativado pela classe .tema-bayou no <body>
   (defina $temaConvite = true antes do header).
   Fontes extras: Poiret One (déco) e Great Vibes
   (caligrafia), carregadas pelo header.
   ============================================ */

.tema-bayou {
    --byu-esmeralda: #0e3b2e;
    --byu-verde-luz: #58d6a1;
    --byu-ouro: #e9c46a;
    --byu-ouro-claro: #f6e3b4;
    --byu-ouro-glow: rgba(233, 196, 106, 0.4);
    --byu-vaga-glow: rgba(180, 255, 170, 0.75);
    --byu-card: rgba(10, 46, 36, 0.62);
    --byu-borda: rgba(233, 196, 106, 0.35);
    --byu-texto: #f2f5ef;
    --byu-suave: #a9c4b4;

    color: var(--byu-texto);
    background:
        radial-gradient(ellipse 95% 55% at 50% -12%, rgba(38, 110, 82, 0.6), transparent 62%),
        radial-gradient(ellipse 75% 45% at 8% 42%, rgba(16, 72, 52, 0.55), transparent 65%),
        radial-gradient(ellipse 80% 50% at 95% 68%, rgba(20, 86, 60, 0.5), transparent 60%),
        radial-gradient(ellipse 100% 50% at 50% 108%, rgba(8, 56, 40, 0.7), transparent 65%),
        #051d16;
    background-attachment: fixed;
}

/* Cabeçalho e rodapé escurecidos; wordmark dentro de pílula branca p/ legibilidade */
.tema-bayou .topo {
    background: rgba(5, 24, 18, 0.85);
    border-bottom: 1px solid rgba(233, 196, 106, 0.2);
}

.tema-bayou .logo-img {
    background: #fff;
    padding: 5px 14px;
    border-radius: 999px;
    height: 38px;
}

.tema-bayou .rodape {
    border-top: 1px solid rgba(233, 196, 106, 0.18);
    color: var(--byu-suave);
}

.tema-bayou .rodape a {
    color: var(--byu-ouro-claro);
}

/* ----- Vagalumes (pontos de luz animados) ----- */

.tema-bayou .vagalumes {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 1;
}

.tema-bayou .vaga {
    position: absolute;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #eaffc9;
    box-shadow: 0 0 8px 3px var(--byu-vaga-glow), 0 0 22px 8px rgba(180, 255, 170, 0.25);
    animation: byu-piscar 4s ease-in-out infinite, byu-flutuar 9s ease-in-out infinite alternate;
}

.tema-bayou .vaga:nth-child(1) { top: 12%; left: 12%; }
.tema-bayou .vaga:nth-child(2) { top: 24%; left: 84%; animation-delay: 1.2s, 1s; transform: scale(0.8); }
.tema-bayou .vaga:nth-child(3) { top: 46%; left: 7%;  animation-delay: 2.1s, 2s; transform: scale(0.7); }
.tema-bayou .vaga:nth-child(4) { top: 58%; left: 90%; animation-delay: 0.6s, 1.6s; }
.tema-bayou .vaga:nth-child(5) { top: 76%; left: 16%; animation-delay: 1.8s, 0.4s; transform: scale(0.9); }
.tema-bayou .vaga:nth-child(6) { top: 88%; left: 78%; animation-delay: 2.7s, 2.4s; transform: scale(0.7); }
.tema-bayou .vaga:nth-child(7) { top: 35%; left: 55%; animation-delay: 3.3s, 1.1s; transform: scale(0.6); }

@keyframes byu-piscar {
    0%, 100% { opacity: 0.15; }
    50%      { opacity: 1; }
}

@keyframes byu-flutuar {
    from { margin-top: 0;     margin-left: 0; }
    to   { margin-top: -22px; margin-left: 14px; }
}

.tema-bayou main {
    position: relative;
    z-index: 2;
    max-width: 462px;
}

/* Princesa recortada (fundo transparente via rembg), fixa no canto,
   atrás do conteúdo e dos vagalumes. */
.tema-bayou .princesa {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    height: 56vh;
    max-height: 660px;
    width: auto;
    filter: drop-shadow(0 6px 20px rgba(0, 0, 0, 0.5));
}

@media (min-width: 768px) {
    .tema-bayou .princesa { height: 82vh; right: 2vw; }
}

/* ----- Hero do convite ----- */

.byu-hero {
    text-align: center;
    padding: 34px 0 6px;
}

.byu-estrela {
    font-size: 1.1rem;
    color: var(--byu-ouro-claro);
    text-shadow: 0 0 14px var(--byu-ouro-glow), 0 0 30px var(--byu-ouro-glow);
    margin-bottom: 14px;
}

.byu-chamada {
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--byu-suave);
    margin-bottom: 16px;
}

.byu-titulo {
    font-family: 'Poiret One', 'Nunito', cursive;
    font-weight: 400;
    font-size: 2.6rem;
    line-height: 1.1;
    letter-spacing: 0.1em;
    color: var(--byu-ouro-claro);
    text-shadow: 0 0 18px var(--byu-ouro-glow), 0 2px 0 rgba(0, 0, 0, 0.35);
}

.byu-tema {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin: 20px 0 28px;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--byu-ouro);
}

.byu-tema::before,
.byu-tema::after {
    content: "";
    height: 1px;
    width: 38px;
    background: linear-gradient(90deg, transparent, var(--byu-ouro));
}

.byu-tema::after {
    background: linear-gradient(90deg, var(--byu-ouro), transparent);
}

/* ----- Foto de perfil do(a) aniversariante ----- */

.byu-foto-wrap {
    position: relative;
    width: 188px;
    height: 188px;
    margin: 0 auto;
}

.byu-foto-wrap::before {
    content: "";
    position: absolute;
    inset: -18px;
    border-radius: 50%;
    background: radial-gradient(circle, var(--byu-ouro-glow), transparent 70%);
    filter: blur(12px);
}

.byu-foto-wrap::after {
    content: "";
    position: absolute;
    inset: -11px;
    border-radius: 50%;
    border: 2px dotted rgba(233, 196, 106, 0.6);
}

.byu-foto {
    position: relative;
    width: 188px;
    height: 188px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--byu-ouro);
    box-shadow: 0 0 0 7px rgba(14, 59, 46, 0.8), 0 0 30px var(--byu-ouro-glow);
}

.byu-coroa {
    position: absolute;
    top: -30px;
    left: 50%;
    transform: translateX(-50%) rotate(-8deg);
    font-size: 2rem;
    z-index: 3;
    filter: drop-shadow(0 0 10px var(--byu-ouro-glow));
}

.byu-sapo {
    position: absolute;
    bottom: -6px;
    right: -4px;
    font-size: 1.7rem;
    z-index: 3;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.5));
}

.byu-nome {
    font-family: 'Great Vibes', cursive;
    font-weight: 400;
    font-size: 3.4rem;
    line-height: 1.4;
    padding-top: 0.18em;
    margin: 20px 0 0;
    background: linear-gradient(120deg, #fff3cf, var(--byu-ouro) 55%, #c79a3a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: drop-shadow(0 0 14px rgba(233, 196, 106, 0.3));
}

.byu-nenufares {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    font-size: 1.4rem;
    margin-top: 16px;
    opacity: 0.9;
}

/* Flor de lótus em SVG: o emoji 🪷 não existe no Windows 10 e em
   celulares antigos (vira quadrado) — o desenho renderiza em todos */
.byu-lotus {
    width: 30px;
    height: auto;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.4));
}

/* ----- Faixa de data e hora ----- */

.byu-faixa {
    display: flex;
    margin: 30px 0 12px;
    border: 1px solid var(--byu-borda);
    border-radius: 18px;
    overflow: hidden;
    background: var(--byu-card);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
}

.byu-faixa-data {
    flex: 0 0 100px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 14px 10px;
    background: linear-gradient(160deg, rgba(233, 196, 106, 0.22), rgba(233, 196, 106, 0.05));
    border-right: 1px solid var(--byu-borda);
}

.byu-faixa-data .mes {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--byu-ouro-claro);
}

.byu-faixa-data .dia {
    font-family: 'Poiret One', 'Nunito', cursive;
    font-size: 2.3rem;
    color: #fff;
    line-height: 1.1;
    text-shadow: 0 0 14px var(--byu-ouro-glow);
}

.byu-faixa-hora {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 3px;
    padding: 14px 18px;
}

.byu-faixa-hora b {
    font-size: 1.05rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    color: #fff;
}

.byu-faixa-hora span {
    font-size: 0.82rem;
    color: var(--byu-suave);
}

/* ----- Local + botões de GPS ----- */

.byu-local {
    text-align: center;
    font-size: 0.88rem;
    color: var(--byu-suave);
    margin-bottom: 14px;
}

.byu-local b {
    color: var(--byu-texto);
    font-weight: 800;
}

.byu-mapas {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 8px;
    flex-wrap: wrap;
}

.btn-mapa {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 44px;
    padding: 9px 18px;
    text-decoration: none;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--byu-texto);
    background: var(--byu-card);
    border: 1px solid var(--byu-borda);
    border-radius: 999px;
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    transition: transform 0.15s, border-color 0.15s;
}

.btn-mapa:hover {
    transform: translateY(-1px);
    border-color: var(--byu-ouro);
}

.btn-mapa svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ----- Recado do anfitrião ----- */

.byu-recado {
    text-align: center;
    font-family: 'Great Vibes', cursive;
    font-size: 1.5rem;
    line-height: 1.4;
    color: var(--byu-ouro-claro);
    padding: 14px 12px 0;
    opacity: 0.95;
}

/* ----- Cards escuros (formulários e avisos) ----- */

.tema-bayou .card {
    background: var(--byu-card);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 1px solid var(--byu-borda);
    box-shadow: 0 18px 50px -22px rgba(0, 0, 0, 0.8);
}

.tema-bayou .card h1,
.tema-bayou .card h2 {
    text-align: center;
    font-family: 'Poiret One', 'Nunito', cursive;
    font-weight: 400;
    font-size: 1.5rem;
    letter-spacing: 0.18em;
    text-transform: uppercase;
    color: var(--byu-ouro-claro);
    text-shadow: 0 0 12px var(--byu-ouro-glow);
}

.tema-bayou .subtitulo,
.tema-bayou .painel-cabecalho .subtitulo {
    text-align: center;
    color: var(--byu-suave);
}

.tema-bayou .painel-cabecalho h1 {
    font-family: 'Poiret One', 'Nunito', cursive;
    font-weight: 400;
    letter-spacing: 0.12em;
    color: var(--byu-ouro-claro);
    text-shadow: 0 0 12px var(--byu-ouro-glow);
    text-align: center;
    width: 100%;
}

.tema-bayou .painel-cabecalho {
    justify-content: center;
    text-align: center;
}

.tema-bayou .evento-vazio {
    color: var(--byu-ouro-claro);
}

.tema-bayou .campo label {
    color: var(--byu-suave);
    text-transform: uppercase;
    font-size: 0.72rem;
    letter-spacing: 0.16em;
    font-weight: 800;
}

.tema-bayou .campo input,
.tema-bayou .campo textarea,
.tema-bayou .campo select {
    color: #fff;
    background: rgba(5, 29, 22, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.tema-bayou .campo input::placeholder,
.tema-bayou .campo textarea::placeholder {
    color: #5f7a6c;
}

.tema-bayou .campo input:focus,
.tema-bayou .campo textarea:focus {
    border-color: var(--byu-ouro);
    box-shadow: 0 0 0 3px rgba(233, 196, 106, 0.18);
}

.tema-bayou .campo small {
    color: var(--byu-suave);
}

.tema-bayou .btn {
    color: #15300f;
    background: linear-gradient(120deg, #f6e3b4, var(--byu-ouro) 55%, #cfa244);
    box-shadow: 0 0 22px var(--byu-ouro-glow), 0 10px 26px -10px rgba(233, 196, 106, 0.6);
}

.tema-bayou .btn-secundario {
    color: var(--byu-ouro-claro);
    background: transparent;
    border: 1px solid var(--byu-borda);
}

.tema-bayou .alerta-erro {
    background: rgba(80, 20, 28, 0.55);
    border-color: rgba(244, 120, 138, 0.45);
    color: #ffd9de;
}

.tema-bayou .alerta-sucesso {
    background: rgba(16, 64, 40, 0.6);
    border-color: rgba(88, 214, 161, 0.45);
    color: #d9ffe9;
}

/* ----- Presentes e PIX no tema do convite ----- */

.tema-bayou .presente-card {
    background: rgba(5, 29, 22, 0.55);
    border: 1px solid rgba(233, 196, 106, 0.22);
}

.tema-bayou .presente-nome {
    color: var(--byu-texto);
}

.tema-bayou .presente-valor {
    background: linear-gradient(120deg, #fff3cf, var(--byu-ouro) 60%, #c79a3a);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

.tema-bayou .presente-desc {
    background: rgba(233, 196, 106, 0.1);
    color: var(--byu-suave);
}

.tema-bayou .presente-sem-foto {
    background: rgba(233, 196, 106, 0.12);
}

.tema-bayou .btn-comprar:disabled {
    background: rgba(255, 255, 255, 0.12);
    color: rgba(255, 255, 255, 0.45);
}

.tema-bayou .card-borda {
    border: 1px solid var(--byu-borda);
}

.tema-bayou .convite-input,
.tema-bayou .convite-link input {
    color: #fff;
    background: rgba(5, 29, 22, 0.7);
    border: 1px solid rgba(255, 255, 255, 0.14);
}

.tema-bayou .convite-link label {
    color: var(--byu-suave);
}

.tema-bayou .confirmado-banner {
    border-top: 4px solid var(--byu-ouro);
    border-image: none;
}

.tema-bayou .link-alternativo,
.tema-bayou .link-alternativo a {
    color: var(--byu-ouro-claro);
}

@media (min-width: 768px) {
    .byu-titulo {
        font-size: 3.1rem;
    }
}

/* ============================================
   Tema "Princesa" — convite público (claro)
   Aquarela verde + Tiana recortada ao fundo.
   Ativado por $temaClasse = 'tema-princesa'.
   Reaproveita os mesmos byu-* do tema escuro,
   recolorindo via variáveis + overrides.
   ============================================ */

.tema-princesa {
    /* paleta clara para as variáveis consumidas pelos byu-* */
    --byu-verde-luz: #3b7a4a;
    --byu-ouro: #c8a24a;
    --byu-ouro-claro: #b8893a;
    --byu-ouro-glow: rgba(200, 162, 74, 0.32);
    --byu-card: rgba(255, 255, 255, 0.72);
    --byu-borda: rgba(59, 122, 74, 0.35);
    --byu-texto: #2b3a2e;
    --byu-suave: #6c7a68;

    color: #2b3a2e;
    background:
        radial-gradient(120% 80% at 15% 8%, #ffffff 0%, rgba(255,255,255,0) 45%),
        radial-gradient(90% 60% at 85% 20%, #e7f0dd 0%, rgba(231,240,221,0) 55%),
        radial-gradient(80% 60% at 50% 100%, #dcebcf 0%, rgba(220,235,207,0) 60%),
        linear-gradient(160deg, #f6f8ef 0%, #eaf2e0 55%, #e2eed7 100%);
    background-attachment: fixed;
}

/* Princesa recortada, fixa no canto inferior-direito, ATRÁS do conteúdo */
.tema-princesa .princesa {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    height: 58vh;
    max-height: 680px;
    width: auto;
    filter: drop-shadow(0 6px 18px rgba(60, 90, 55, 0.22));
}

/* Brilho dourado suave no topo */
.tema-princesa .glow {
    position: fixed;
    z-index: -1;
    pointer-events: none;
    top: 5%;
    right: 8%;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(200, 162, 74, 0.4) 0%, rgba(200, 162, 74, 0) 70%);
}

/* Cabeçalho transparente (logo flutua sobre a aquarela) */
.tema-princesa .topo {
    background: transparent;
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: none;
    position: static;
}

.tema-princesa .logo-img {
    height: 34px;
}

.tema-princesa main {
    max-width: 520px;
}

/* ----- Hero (texto escuro, sem brilhos do tema noturno) ----- */
.tema-princesa .byu-estrela { color: #c8a24a; text-shadow: none; }
.tema-princesa .byu-chamada { color: #3b7a4a; }
.tema-princesa .byu-titulo  { color: #24402b; text-shadow: none; }
.tema-princesa .byu-tema    { color: #3b7a4a; }

.tema-princesa .byu-foto {
    border-color: #c8a24a;
    box-shadow: 0 0 0 5px #fff, 0 10px 24px -8px rgba(47, 107, 63, 0.45);
}

.tema-princesa .byu-nome {
    background: linear-gradient(120deg, #caa54e, #9c7a2f);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    filter: none;
}

/* ----- Faixa de data: borda verde de destaque ----- */
.tema-princesa .byu-faixa {
    background: rgba(255, 255, 255, 0.72);
    border: 2px solid #3b7a4a;
    box-shadow: 0 8px 22px -14px rgba(47, 107, 63, 0.6);
}
.tema-princesa .byu-faixa-data {
    background: linear-gradient(160deg, rgba(200,162,74,0.18), rgba(200,162,74,0.04));
    border-right: 1px solid rgba(59, 122, 74, 0.25);
}
.tema-princesa .byu-faixa-data .mes { color: #3b7a4a; }
.tema-princesa .byu-faixa-data .dia { color: #24402b; text-shadow: none; }
.tema-princesa .byu-faixa-hora b    { color: #24402b; }
.tema-princesa .byu-faixa-hora span { color: #4a5e44; }

/* ----- Local + mapas ----- */
.tema-princesa .byu-local   { color: #4a5a48; }
.tema-princesa .byu-local b { color: #24402b; }
.tema-princesa .btn-mapa {
    background: rgba(255, 255, 255, 0.85);
    border: 1px solid rgba(59, 122, 74, 0.3);
    color: #24402b;
}
.tema-princesa .btn-mapa:hover { border-color: #3b7a4a; }

.tema-princesa .byu-recado { color: #285035; }

/* ----- Cards: borda verde de destaque ----- */
.tema-princesa .card,
.tema-princesa .card-borda {
    background: rgba(255, 255, 255, 0.85);
    -webkit-backdrop-filter: blur(6px);
    backdrop-filter: blur(6px);
    border: 2px solid #3b7a4a;
    box-shadow: 0 12px 30px -18px rgba(40, 70, 40, 0.5);
}
.tema-princesa .card h1,
.tema-princesa .card h2 {
    font-family: 'Poiret One', 'Nunito', cursive;
    font-weight: 400;
    text-transform: none;
    letter-spacing: 0.02em;
    text-align: center;
    color: #24402b;
    text-shadow: none;
}
.tema-princesa .subtitulo { text-align: center; color: #33513a; }

/* ----- Formulário ----- */
.tema-princesa .campo label { color: #24402b; text-transform: none; letter-spacing: normal; font-size: 0.9rem; }
.tema-princesa .campo input {
    background: rgba(255, 255, 255, 0.92);
    border: 1.5px solid rgba(59, 122, 74, 0.35);
    color: #2b3a2e;
}
.tema-princesa .campo input::placeholder { color: #9bb09a; }
.tema-princesa .campo input:focus {
    border-color: #3b7a4a;
    box-shadow: 0 0 0 3px rgba(59, 122, 74, 0.18);
}
.tema-princesa .campo small { color: #4a5e44; }

/* ----- Botões ----- */
.tema-princesa .btn {
    color: #fff;
    background: linear-gradient(135deg, #3b7a4a, #2f6b3f);
    box-shadow: 0 10px 22px -10px rgba(47, 107, 63, 0.7);
}
.tema-princesa .btn:hover { background: linear-gradient(135deg, #347042, #275938); }
.tema-princesa .btn-secundario {
    color: #24402b;
    background: rgba(255, 255, 255, 0.9);
    border: 1.5px solid #3b7a4a;
}

/* ----- Rodapé ----- */
.tema-princesa .rodape { border-top: none; color: #6c7a68; }
.tema-princesa .rodape a { color: #3b7a4a; }

@media (min-width: 768px) {
    .tema-princesa .princesa { height: 78vh; }
}

/* ============================================
   Sugestões de presentes
   ============================================ */

/* ----- Convidado (tema escuro bayou) ----- */
.tema-bayou .sug-cabecalho { text-align: center; margin-bottom: 6px; }
.tema-bayou .sug-titulo {
    font-family: 'Poiret One', 'Nunito', cursive; font-weight: 400; font-size: 1.9rem;
    letter-spacing: 0.06em; color: var(--byu-ouro-claro);
    text-shadow: 0 0 16px var(--byu-ouro-glow); margin: 0;
}
.tema-bayou .sug-titulo b {
    display: block; font-weight: 400; font-family: 'Great Vibes', cursive; font-size: 2.4rem;
    line-height: 1.05; margin-top: 2px; padding-bottom: 8px;
    text-transform: none; letter-spacing: normal;
    background: linear-gradient(120deg, #fff3cf, var(--byu-ouro) 55%, #c79a3a);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}
.tema-bayou .sapo-titulo {
    display: block; width: 118px; height: auto; margin: 2px auto 6px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}
.sug-grade {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: 12px; margin-top: 6px;
}
.tema-bayou .sug-card {
    background: rgba(5, 29, 22, 0.5); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
    border: 1px solid var(--byu-borda); border-radius: 16px; padding: 14px 12px; text-align: center;
    transition: transform 0.15s, border-color 0.15s;
}
.tema-bayou .sug-card:hover { transform: translateY(-2px); border-color: var(--byu-ouro); }
.sug-card .sug-ic { font-size: 1.9rem; display: block; margin-bottom: 6px; }
.tema-bayou .sug-card .sug-nome { font-weight: 700; font-size: 0.92rem; color: var(--byu-texto); }
.tema-bayou .sug-card .sug-det { font-size: 0.75rem; color: var(--byu-suave); margin-top: 3px; }

/* ----- Painel do dono (tema vibrante) ----- */
.icone-grade { display: flex; flex-wrap: wrap; gap: 8px; }
.icone-opcao { cursor: pointer; }
.icone-opcao input { position: absolute; opacity: 0; width: 0; height: 0; }
.icone-opcao span {
    display: flex; align-items: center; justify-content: center; width: 46px; height: 46px;
    font-size: 1.4rem; border: 2px solid var(--cor-borda); border-radius: 12px;
    background: #fff; transition: transform 0.12s, border-color 0.12s, background 0.12s;
}
.icone-opcao input:checked + span {
    border-color: var(--cor-primaria); background: var(--cor-roxo-claro); transform: scale(1.06);
}
.icone-opcao input:focus-visible + span { outline: 2px solid var(--cor-primaria); outline-offset: 2px; }

.sug-lista-painel { list-style: none; }
.sug-item-painel {
    display: flex; align-items: center; gap: 12px; padding: 12px 2px;
    border-bottom: 1px solid var(--cor-borda);
}
.sug-item-painel:last-child { border-bottom: none; }
.sug-item-ic { font-size: 1.5rem; flex-shrink: 0; width: 30px; text-align: center; }
.sug-item-txt { flex: 1; min-width: 0; }
.sug-item-txt strong { display: block; font-size: 0.95rem; }
.sug-item-txt small { color: var(--cor-texto-suave); font-size: 0.82rem; }

.alerta-aviso { background: #fff8e6; border: 1px solid #f3d98a; color: #7a5b12; }

/* ============================================
   Sugestões em 2 níveis: cards (categoria) + modal
   ============================================ */

.ico { width: 24px; height: 24px; display: block; }
.oculto { display: none; }

/* ----- Convidado: acordeão de cards ----- */
.sug-acordeao { display: flex; flex-direction: column; gap: 10px; }
.tema-bayou .sug-acc {
    border: 1px solid var(--byu-borda); border-radius: 14px; overflow: hidden;
    background: rgba(5, 29, 22, 0.4);
}
.tema-bayou .sug-acc.aberto { border-color: var(--byu-ouro); }
.sug-acc-head {
    width: 100%; display: flex; align-items: center; gap: 12px; padding: 14px;
    background: none; border: none; cursor: pointer; text-align: left; font-family: inherit;
}
.tema-bayou .sug-acc-ic { color: var(--byu-ouro-claro); display: flex; flex-shrink: 0; }
.tema-bayou .sug-acc-ic .ico { width: 28px; height: 28px; }
.sug-acc-tit { flex: 1; min-width: 0; }
.tema-bayou .sug-acc-nome { display: block; font-weight: 700; font-size: 1rem; color: var(--byu-texto); }
.tema-bayou .sug-acc-count { display: block; font-size: 0.74rem; color: var(--byu-suave); }
.sug-acc-seta {
    width: 9px; height: 9px; flex-shrink: 0; margin-right: 4px;
    border-right: 2px solid var(--byu-ouro); border-bottom: 2px solid var(--byu-ouro);
    transform: rotate(45deg); transition: transform 0.25s;
}
.sug-acc.aberto .sug-acc-seta { transform: rotate(-135deg); }
.sug-acc-corpo { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.sug-acc.aberto .sug-acc-corpo { max-height: 1200px; }
.sug-acc-inner { padding: 0 14px 14px; }

.sug-modal-lista { list-style: none; }
.sug-modal-lista li { padding: 12px 4px; border-bottom: 1px dashed var(--byu-borda); }
.sug-modal-lista li:last-child { border-bottom: none; }
.sug-modal-lista strong { display: block; color: var(--byu-texto); font-size: 1rem; }
.sug-modal-lista span { display: block; color: var(--byu-suave); font-size: 0.84rem; margin-top: 2px; }
.sug-modal-vazio { color: var(--byu-suave); text-align: center; }

/* ----- Painel: alternar tipo (card / sugestão) ----- */
.tipo-switch { display: flex; gap: 10px; margin-bottom: 18px; flex-wrap: wrap; }
.tipo-opcao { flex: 1; min-width: 130px; cursor: pointer; }
.tipo-opcao input { position: absolute; opacity: 0; }
.tipo-opcao span {
    display: block; text-align: center; padding: 12px; border: 2px solid var(--cor-borda);
    border-radius: 14px; font-weight: 800; color: var(--cor-texto-suave); background: #fff;
}
.tipo-opcao input:checked + span {
    border-color: var(--cor-primaria); background: var(--cor-roxo-claro); color: var(--cor-primaria);
}
.tipo-opcao input:disabled + span { opacity: 0.5; }

/* ----- Painel: seletor de ícone SVG ----- */
.icone-opcao span { color: var(--cor-texto-suave); }
.icone-opcao input:checked + span { color: var(--cor-primaria); }

/* ----- Painel: blocos de card + itens ----- */
.cat-bloco { border: 1px solid var(--cor-borda); border-radius: 16px; padding: 14px; margin-bottom: 14px; }
.cat-cabecalho { display: flex; align-items: center; gap: 12px; }
.cat-ic { color: var(--cor-primaria); display: flex; flex-shrink: 0; }
.cat-ic .ico { width: 30px; height: 30px; }
.cat-info { flex: 1; min-width: 0; }
.cat-info strong { display: block; }
.cat-info small { color: var(--cor-texto-suave); font-size: 0.8rem; }
.cat-itens { list-style: none; margin-top: 12px; border-top: 1px solid var(--cor-borda); padding-top: 6px; }
.cat-itens li { display: flex; align-items: center; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--cor-borda); }
.cat-itens li:last-child { border-bottom: none; }
.cat-item-txt { flex: 1; min-width: 0; }
.cat-item-txt strong { display: block; font-size: 0.92rem; font-weight: 700; }
.cat-item-txt small { color: var(--cor-texto-suave); font-size: 0.8rem; }
.cat-item-x { background: none; border: none; color: var(--cor-erro-texto); font-size: 1.4rem; line-height: 1; cursor: pointer; padding: 0 6px; }
.cat-vazio { color: var(--cor-texto-suave); font-size: 0.88rem; margin-top: 10px; }

/* ============================================
   Painel: abas do evento + formulário em seções
   ============================================ */

.evento-abas {
    display: flex; gap: 8px; margin-bottom: 20px; flex-wrap: wrap;
}
.evento-aba {
    flex: 0 0 auto; padding: 8px 16px; text-decoration: none; font-weight: 800; font-size: 0.85rem;
    color: var(--cor-texto-suave); background: #fff; border: 1.5px solid var(--cor-borda);
    border-radius: 999px; white-space: nowrap; transition: color 0.15s, border-color 0.15s, background 0.15s;
}
.evento-aba:hover { color: var(--cor-primaria); border-color: var(--cor-primaria); }
.evento-aba.ativa { color: #fff; background: var(--grad); border-color: transparent;
    box-shadow: 0 8px 18px -10px rgba(124, 58, 237, 0.6); }

.form-secao {
    background: #fff; border: 1px solid var(--cor-borda); border-radius: 18px;
    margin-bottom: 16px; overflow: hidden; box-shadow: 0 8px 28px -20px rgba(60, 40, 20, 0.25);
}
.secao-cab { padding: 16px 20px 13px; border-bottom: 1px solid var(--cor-borda); background: var(--cor-roxo-claro); }
.secao-cab h2 { font-size: 1.08rem; font-weight: 800; }
.secao-cab p { color: var(--cor-texto-suave); font-size: 0.86rem; margin-top: 2px; }
.secao-corpo { padding: 18px 20px; }

/* Formulários do painel: mais compactos e proporcionais (não afeta login/convite) */
.form-secao .campo { margin-bottom: 13px; }
.form-secao .campo label { font-size: 0.84rem; margin-bottom: 4px; }
.form-secao .campo input,
.form-secao .campo select,
.form-secao .campo textarea {
    min-height: 42px; padding: 9px 13px; border-radius: 10px; font-weight: 600;
}
.form-secao .campo-dica { font-size: 0.78rem; }
/* Botão de ação dentro de uma seção: largura automática e tamanho proporcional */
.form-secao .secao-corpo .btn {
    width: auto; min-height: 42px; padding: 10px 22px; font-size: 0.92rem;
    box-shadow: 0 6px 16px -8px rgba(124, 58, 237, 0.5);
}

.campo-grid { display: grid; grid-template-columns: 1fr; gap: 0 16px; }
@media (min-width: 560px) { .campo-grid { grid-template-columns: 1fr 1fr; } }

.opcional {
    display: inline-block; font-size: 0.66rem; font-weight: 800; text-transform: uppercase;
    letter-spacing: 0.04em; color: var(--cor-texto-suave); background: var(--cor-borda);
    border-radius: 999px; padding: 2px 8px; vertical-align: middle; margin-left: 4px;
}

.campo-checkbox { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 0.88rem;
    margin-top: 10px; cursor: pointer; padding: 10px 13px; border: 1.5px solid var(--cor-borda);
    border-radius: 10px; color: var(--cor-texto); transition: border-color 0.15s, background 0.15s; }
.campo-checkbox:hover { border-color: var(--cor-primaria); background: var(--cor-roxo-claro); }
.campo-checkbox input[type="checkbox"] { width: 19px; height: 19px; min-height: 0; accent-color: var(--cor-primaria); flex-shrink: 0; cursor: pointer; }

.foto-upload { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.foto-perfil-previa {
    width: 84px; height: 84px; border-radius: 50%; object-fit: cover;
    border: 3px solid #fff; box-shadow: 0 0 0 2px var(--cor-borda); flex-shrink: 0;
}
.foto-placeholder { display: flex; align-items: center; justify-content: center; font-size: 2rem; background: var(--cor-roxo-claro); }
.foto-upload-campo { width: 100%; min-width: 0; }
.foto-upload-campo input[type="file"] {
    display: block; width: 100%; max-width: 100%; box-sizing: border-box;
    border: 1.5px solid var(--cor-borda); border-radius: 10px; padding: 9px 10px;
    font-size: 0.82rem; font-weight: 600; background: #fff; color: var(--cor-texto); margin-bottom: 12px;
}
.foto-upload-campo input[type="file"]::file-selector-button {
    border: none; border-radius: 8px; padding: 7px 12px; margin-right: 8px;
    background: var(--cor-roxo-claro); color: var(--cor-primaria);
    font-family: inherit; font-weight: 800; font-size: 0.8rem; cursor: pointer;
}

.form-acoes { display: flex; gap: 12px; justify-content: flex-end; align-items: center; flex-wrap: wrap; }
.form-acoes .btn { min-width: 180px; }
@media (max-width: 480px) {
    .form-acoes { flex-direction: column-reverse; }
    .form-acoes .btn, .form-acoes .btn-secundario { width: 100%; }
}

/* ============================================
   Painel admin (dashboard) + modo manutenção
   ============================================ */

.admin { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 820px) { .admin { grid-template-columns: 230px 1fr; align-items: start; } }

.admin-nav { background: #fff; border: 1px solid var(--cor-borda); border-radius: 18px; padding: 14px; }
.admin-nav-titulo { font-size: 0.72rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.12em; color: var(--cor-texto-suave); margin: 2px 0 10px; padding: 0 6px; }
.admin-nav nav { display: flex; flex-direction: column; gap: 4px; }
.admin-link { display: flex; align-items: center; gap: 11px; padding: 11px 13px; border-radius: 12px; text-decoration: none; font-weight: 800; font-size: 0.93rem; color: #52496a; margin-bottom: 2px; }
.admin-link-ic { width: 22px; text-align: center; font-size: 1.05rem; }
.admin-link:hover { background: var(--cor-roxo-claro); }
.admin-link.ativa { background: var(--grad); color: #fff; box-shadow: 0 10px 22px -12px rgba(124, 58, 237, 0.6); }
.admin-cont { margin-left: auto; font-size: 0.7rem; font-weight: 800; background: #efeaf9; color: #8a7fb0; border-radius: 999px; padding: 2px 8px; }
.admin-link.ativa .admin-cont { background: rgba(255, 255, 255, 0.25); color: #fff; }
.admin-link.desabilitado { color: #b8b2c9; cursor: default; }
.admin-link.desabilitado:hover { background: none; }
.em-breve { margin-left: auto; font-size: 0.6rem; font-weight: 800; text-transform: uppercase; background: var(--cor-borda); color: var(--cor-texto-suave); border-radius: 999px; padding: 2px 7px; }

/* Painel admin profissional — stats, listas, tabelas, integrações */
.admin-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin-bottom: 22px; }
@media (min-width: 720px) { .admin-stats { grid-template-columns: repeat(4, 1fr); } }
.stat { background: #fff; border: 1px solid var(--cor-borda); border-radius: 20px; padding: 18px;
    box-shadow: 0 14px 36px -28px rgba(60, 40, 20, 0.4); }
.stat-top { display: flex; align-items: center; justify-content: space-between; }
.stat-ic { width: 40px; height: 40px; border-radius: 12px; background: var(--cor-roxo-claro); color: var(--cor-primaria);
    display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.stat-trend { font-size: 0.72rem; font-weight: 800; color: var(--cor-sucesso-texto); background: var(--cor-sucesso-fundo); padding: 3px 8px; border-radius: 999px; }
.stat-num { display: block; font-size: 2rem; font-weight: 900; margin: 10px 0 2px;
    background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-rot { display: block; color: var(--cor-texto-suave); font-weight: 800; font-size: 0.85rem; }

.admin-grid2 { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 860px) { .admin-grid2 { grid-template-columns: 1.4fr 1fr; } }
.admin-grid2 .form-secao { margin-bottom: 0; }

.admin-lista { list-style: none; margin: 0; padding: 0; }
.admin-lista li { display: flex; align-items: center; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--cor-borda); }
.admin-lista li:last-child { border-bottom: 0; }
.admin-av { width: 38px; height: 38px; border-radius: 50%; background: var(--cor-roxo-claro); color: var(--cor-primaria);
    display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.82rem; flex-shrink: 0; }
.admin-av.grad { background: var(--grad); color: #fff; }
.admin-lista-info { flex: 1; min-width: 0; }
.admin-lista-info b { display: block; font-weight: 800; font-size: 0.92rem; }
.admin-lista-info span { color: var(--cor-texto-suave); font-weight: 700; font-size: 0.78rem; }
.admin-quando { color: var(--cor-texto-suave); font-weight: 700; font-size: 0.76rem; white-space: nowrap; }
.admin-vazio { color: var(--cor-texto-suave); font-weight: 700; text-align: center; padding: 16px 0; }

.admin-saude { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--cor-borda); }
.admin-saude:last-child { border-bottom: 0; }
.admin-saude-nome { font-weight: 800; font-size: 0.9rem; }

.badge { font-size: 0.72rem; font-weight: 800; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.badge-ok { background: var(--cor-sucesso-fundo); color: var(--cor-sucesso-texto); }
.badge-off { background: #f1eef7; color: #8a7fb0; }
.badge-warn { background: #fff4e5; color: #9a5b00; }

.admin-tabela-corpo { padding: 6px 8px; overflow-x: auto; }
.admin-tabela { width: 100%; border-collapse: collapse; }
.admin-tabela thead th { text-align: left; font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.04em;
    color: var(--cor-texto-suave); font-weight: 800; padding: 10px 12px; border-bottom: 1px solid var(--cor-borda); }
.admin-tabela tbody td { padding: 12px; border-bottom: 1px solid var(--cor-borda); font-weight: 700; font-size: 0.9rem; vertical-align: middle; }
.admin-tabela tbody tr:last-child td { border-bottom: 0; }
.admin-tabela tbody tr:hover { background: #fcfbff; }
.admin-tav { display: flex; align-items: center; gap: 10px; }
.admin-sub { color: var(--cor-texto-suave); font-size: 0.78rem; font-weight: 700; }
.admin-acao { border: 1px solid var(--cor-borda); background: #fff; border-radius: 9px; padding: 7px 12px; cursor: pointer;
    font-family: inherit; font-weight: 800; color: #52496a; font-size: 0.82rem; }
.admin-acao:hover { border-color: var(--cor-primaria); color: var(--cor-primaria); }

.integra { display: flex; align-items: flex-start; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--cor-borda); }
.integra:last-child { border-bottom: 0; }
.integra-logo { width: 48px; height: 48px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
    font-size: 1.4rem; flex-shrink: 0; background: var(--cor-roxo-claro); }
.integra-logo-b2 { background: #e21e23; }
.integra-logo-mp { background: #00b1ea; }
.integra-logo-wa { background: #25d366; }
.integra-meta { flex: 1; min-width: 0; }
.integra-lin1 { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.integra-lin1 b { font-weight: 900; font-size: 1rem; }
.integra-meta p { margin: 4px 0 0; color: var(--cor-texto-suave); font-weight: 700; font-size: 0.84rem; }
.integra-futura { opacity: 0.7; }
.form-keys { margin: 14px 0 6px; padding: 16px; background: #fbfaff; border: 1px solid var(--cor-borda); border-radius: 14px; }
.campo-hint { display: block; color: var(--cor-texto-suave); font-weight: 700; font-size: 0.74rem; margin-top: 4px; }
.integra-testar { margin-top: 4px; }
.admin-rodape-nota { color: var(--cor-texto-suave); font-weight: 700; font-size: 0.82rem; text-align: center; margin-top: 6px; }
.admin-config-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }

.metricas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; margin-bottom: 18px; }
@media (min-width: 600px) { .metricas { grid-template-columns: repeat(4, 1fr); } }
.metrica { background: #fff; border: 1px solid var(--cor-borda); border-radius: 16px; padding: 16px; text-align: center; box-shadow: 0 8px 28px -22px rgba(60, 40, 20, 0.3); }
.metrica-ic { font-size: 1.4rem; display: block; }
.metrica-num { display: block; font-size: 1.8rem; font-weight: 900; line-height: 1.25; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.metrica-rot { display: block; font-size: 0.8rem; color: var(--cor-texto-suave); font-weight: 700; }

.status-pill { font-size: 0.8rem; font-weight: 800; padding: 6px 12px; border-radius: 999px; white-space: nowrap; }
.status-ok { background: var(--cor-sucesso-fundo); color: var(--cor-sucesso-texto); }
.status-on { background: #fff4e5; color: #9a5b00; }

.switch { display: inline-flex; align-items: center; gap: 12px; cursor: pointer; }
.switch input { position: absolute; opacity: 0; width: 0; height: 0; }
.switch-trilho { width: 52px; height: 30px; border-radius: 999px; background: #cfc9de; position: relative; transition: background 0.2s; flex-shrink: 0; }
.switch-bolinha { position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; transition: left 0.2s; box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2); }
.switch input:checked + .switch-trilho { background: #e0992a; }
.switch input:checked + .switch-trilho .switch-bolinha { left: 25px; }
.switch input:focus-visible + .switch-trilho { outline: 2px solid var(--cor-primaria); outline-offset: 2px; }
.switch-rotulo { font-weight: 700; }
.manutencao-dica { margin-top: 14px; color: var(--cor-texto-suave); font-size: 0.9rem; }
.manutencao-dica a { color: var(--cor-primaria); font-weight: 700; }

/* ----- Página pública de manutenção ----- */
.manutencao-body { background: linear-gradient(160deg, #f6f3ff 0%, #ede9fe 55%, #fbe0f0 100%); min-height: 100vh; display: flex; }
.manutencao-wrap { margin: auto; padding: 24px 16px; width: 100%; max-width: 520px; }
.manutencao-card { background: #fff; border: 1px solid #ece7f7; border-radius: 24px; padding: 28px 24px 32px; text-align: center; box-shadow: 0 24px 60px -28px rgba(80, 40, 140, 0.45); }
.manutencao-art { width: 100%; max-width: 380px; height: auto; display: block; margin: 0 auto 12px; }
.manutencao-titulo { font-size: 1.5rem; font-weight: 900; color: #2a2438; margin-bottom: 10px; }
.manutencao-texto { color: #6b6483; font-size: 1rem; line-height: 1.6; margin-bottom: 14px; }
.manutencao-texto strong { color: #6d28d9; }
.manutencao-rodape { color: #9a93ad; font-size: 0.85rem; }
.manutencao-admin { display: inline-block; margin-top: 18px; font-size: 0.8rem; color: #b6aecb; text-decoration: none; }
.manutencao-admin:hover { color: var(--cor-primaria); text-decoration: underline; }

/* ============================================
   Galeria de fotos (álbum colaborativo)
   ============================================ */

/* Painel: área do QR + passos */
.galeria-qr-area { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.galeria-qr { background: #fff; padding: 10px; border: 1px solid var(--cor-borda); border-radius: 14px; }
.galeria-qr img, .galeria-qr canvas { display: block; }
.galeria-qr-acoes { align-self: stretch; min-width: 0; }
#baixar-qr { display: flex; width: fit-content; max-width: 100%; margin: 4px auto 0; }
.galeria-passos { margin: 8px 0 14px 18px; color: var(--cor-texto); font-size: 0.92rem; }
.galeria-passos li { margin-bottom: 4px; }

/* Convidado: envio de fotos */
.galeria-upload { text-align: center; }
.galeria-upload .btn { margin-top: 6px; }
.galeria-status { margin-top: 14px; font-weight: 700; min-height: 1.2em; }
.galeria-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 16px; }
.gfoto { position: relative; aspect-ratio: 1 / 1; border-radius: 10px; overflow: hidden; background: rgba(255, 255, 255, 0.08); }
.gfoto img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: 0.5; transition: opacity 0.3s; }
.gfoto.ok img { opacity: 1; }
.gfoto-marca { position: absolute; right: 4px; bottom: 4px; width: 24px; height: 24px; border-radius: 50%;
    display: none; align-items: center; justify-content: center; color: #fff; font-weight: 900; font-size: 0.85rem; }
.gfoto.ok .gfoto-marca { display: flex; background: rgba(29, 158, 117, 0.95); }
.gfoto.ok .gfoto-marca::after { content: '✓'; }
.gfoto.erro .gfoto-marca { display: flex; background: #e24b4a; }
.gfoto.erro .gfoto-marca::after { content: '!'; }

/* Botão secundário "Escolher da galeria" (abaixo do "Tirar foto") */
.btn-galeria { display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    margin-top: 10px; padding: 11px 20px; border: 0; border-radius: 999px; cursor: pointer;
    font: inherit; font-weight: 800; color: #fff; background: rgba(255, 255, 255, 0.16);
    -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px); }
.btn-galeria:disabled { opacity: 0.5; }

/* Câmera embutida (estilo WhatsApp) — overlay fullscreen */
body.cam-travado { overflow: hidden; }
.cam-overlay { position: fixed; inset: 0; z-index: 2000; background: #000; display: none;
    flex-direction: column; }
.cam-overlay.cam-aberta { display: flex; }
.cam-video { flex: 1; width: 100%; height: 100%; object-fit: cover; background: #000; min-height: 0; }
.cam-topo { position: absolute; top: 0; left: 0; right: 0; z-index: 2; display: flex;
    align-items: center; justify-content: space-between; padding: 14px 16px;
    padding-top: calc(14px + env(safe-area-inset-top, 0px));
    background: linear-gradient(rgba(0, 0, 0, 0.55), transparent); }
.cam-icone { width: 42px; height: 42px; border: 0; border-radius: 50%; cursor: pointer;
    background: rgba(0, 0, 0, 0.4); color: #fff; font-size: 1.2rem; line-height: 1; }
.cam-contador { color: #fff; font-weight: 800; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6); }
.cam-barra { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; display: flex;
    align-items: center; justify-content: space-between; padding: 22px 30px;
    padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.55)); }
.cam-galeria { width: 52px; height: 52px; border: 0; border-radius: 14px; cursor: pointer;
    background: rgba(255, 255, 255, 0.18); color: #fff; display: flex; align-items: center; justify-content: center; }
.cam-espaco { width: 52px; height: 52px; } /* equilibra o disparo no centro */
.cam-disparo { width: 74px; height: 74px; border-radius: 50%; cursor: pointer;
    background: #fff; border: 5px solid rgba(255, 255, 255, 0.45); box-shadow: 0 0 0 2px #fff inset; }
.cam-disparo:active { transform: scale(0.94); }
.cam-flash { position: absolute; inset: 0; z-index: 3; background: #fff; opacity: 0; pointer-events: none; }
.cam-flash-on { animation: cam-flash-anim 0.32s ease-out; }
@keyframes cam-flash-anim { 0% { opacity: 0.85; } 100% { opacity: 0; } }

/* Dono: ver / baixar / remover as fotos enviadas */
.galeria-vazia { text-align: center; color: var(--cor-texto-suave); padding: 22px 8px; line-height: 1.6; }
.fotos-grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.foto-card { margin: 0; border: 1px solid var(--cor-borda); border-radius: 14px; overflow: hidden;
    background: #fff; box-shadow: 0 8px 28px -22px rgba(60, 40, 20, 0.3); display: flex; flex-direction: column; }
.foto-thumb { display: block; aspect-ratio: 1 / 1; background: #f3eefc; }
.foto-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.foto-rodape { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 9px; }
.foto-autor { font-size: 0.78rem; font-weight: 700; color: var(--cor-texto-suave);
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.foto-acoes { display: flex; align-items: center; gap: 2px; flex-shrink: 0; }
.foto-acoes form { margin: 0; }
.foto-acao { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px;
    border: 0; background: transparent; border-radius: 8px; cursor: pointer; font-size: 0.95rem;
    text-decoration: none; line-height: 1; }
.foto-acao:hover { background: rgba(124, 58, 237, 0.1); }
.foto-acao-remover:hover { background: rgba(226, 75, 74, 0.14); }

@keyframes mnt-cursor { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.manutencao-art .cursor { animation: mnt-cursor 1s steps(1) infinite; }
@keyframes mnt-digitar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(3px); } }
.manutencao-art .maos { animation: mnt-digitar 0.5s ease-in-out infinite; }
@keyframes mnt-girar { to { transform: rotate(360deg); } }
.manutencao-art .eng { transform-box: fill-box; transform-origin: center; }
.manutencao-art .eng1 { animation: mnt-girar 7s linear infinite; }
.manutencao-art .eng2 { animation: mnt-girar 5s linear infinite reverse; }
@keyframes mnt-ret { 0%, 100% { opacity: 0.2; } 50% { opacity: 1; } }
.reticencias span { animation: mnt-ret 1.4s infinite; }
.reticencias span:nth-child(2) { animation-delay: 0.2s; }
.reticencias span:nth-child(3) { animation-delay: 0.4s; }

/* ============================================
   Tema "Tiana Verde" — convite público (claro)
   Aquarela verde + florais fixos nos cantos +
   princesa de vestido verde recortada.
   Ativado por $temaClasse = 'tema-verde'.
   Reaproveita os byu-* recolorindo via variáveis.
   ⚠️ SEM backdrop-filter e SEM background-attachment:fixed
   (ambos geram "caixa branca" no Chrome/Opera).
   ============================================ */

.tema-verde {
    --byu-ouro: #c79a3a;
    --byu-ouro-claro: #b8893a;
    --byu-ouro-glow: rgba(199, 154, 58, 0.28);
    --byu-card: rgba(255, 255, 255, 0.86);
    --byu-borda: rgba(199, 154, 58, 0.5);
    --byu-texto: #243a2c;
    --byu-suave: #46624f;
    color: #243a2c;
    background: #dfe8d2;
}

/* Textura de aquarela (sem os florais dos cantos). O pseudo já é position:fixed
   cobrindo a viewport — NÃO usar background-attachment:fixed. */
.tema-verde::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background: url(../img/fundo-verde-textura.webp) center center / cover no-repeat;
}

/* Véu de sálvia suave: clareia só o suficiente p/ legibilidade, sem lavar a cor */
.tema-verde::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: linear-gradient(180deg, rgba(223, 232, 210, 0.28), rgba(210, 224, 196, 0.42));
}

/* Conteúdo precisa ficar ACIMA dos elementos decorativos fixos (z-index:0) */
.tema-verde main {
    position: relative;
    z-index: 2;
    max-width: 462px;
}

/* Florais dos cantos (fixos — sempre visíveis em qualquer tela/scroll).
   z-index:-1 p/ ficarem ATRÁS do conteúdo (cards/textos), nunca na frente. */
.tema-verde .floral-canto {
    position: fixed;
    z-index: -1;
    pointer-events: none;
    height: auto;
}
.tema-verde .floral-ie { left: 0;  bottom: 0; width: min(52vw, 250px); }
.tema-verde .floral-sd { right: 0; top: 0;    width: min(44vw, 215px); }

/* Princesa de vestido verde, canto inferior direito, ATRÁS do conteúdo */
.tema-verde .princesa {
    position: fixed;
    right: 0;
    bottom: 0;
    z-index: -1;
    pointer-events: none;
    height: 42vh;
    max-height: 540px;
    width: auto;
    filter: drop-shadow(0 8px 22px rgba(60, 90, 60, 0.35));
}

/* Cabeçalho fixo no topo (sticky herdado do .topo base). Fundo de sálvia
   suave p/ o conteúdo rolar limpo POR TRÁS da logo (sem blur — evita a
   "caixa branca" do Chrome/Opera). */
.tema-verde .topo {
    background: rgba(237, 243, 230, 0.95);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border-bottom: 1px solid rgba(199, 154, 58, 0.28);
    box-shadow: 0 6px 18px -12px rgba(60, 90, 60, 0.55);
}
.tema-verde .logo-img { height: 34px; }

/* ----- Hero (texto verde-escuro + destaque dourado) ----- */
.tema-verde .byu-estrela { color: #c79a3a; text-shadow: 0 0 14px var(--byu-ouro-glow); }
.tema-verde .byu-chamada { color: #17422d; font-weight: 700; }
.tema-verde .byu-titulo {
    color: #13361f;
    -webkit-text-stroke: 0.7px rgba(180, 138, 46, 0.6);
    text-shadow: 0 0 1px rgba(199, 154, 58, 0.5), 0 2px 5px rgba(255, 255, 255, 0.7);
}
.tema-verde .byu-tema { color: #c79a3a; }

.tema-verde .byu-foto {
    border-color: #c79a3a;
    box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.75), 0 10px 26px -8px rgba(60, 90, 60, 0.4);
}
.tema-verde .byu-foto-wrap::before {
    background: radial-gradient(circle, rgba(255, 255, 255, 0.85), transparent 70%);
}

.tema-verde .byu-nome {
    background: none;
    color: #1c4d35;
    filter: none;
    text-shadow:
        -1px -1px 0 rgba(199, 154, 58, 0.85), 1px -1px 0 rgba(199, 154, 58, 0.85),
        -1px 1px 0 rgba(199, 154, 58, 0.85),  1px 1px 0 rgba(199, 154, 58, 0.85),
        0 3px 10px rgba(120, 90, 20, 0.25);
}

/* ----- Faixa de data/hora (sem blur) ----- */
.tema-verde .byu-faixa {
    background: var(--byu-card);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 1px solid var(--byu-borda);
    box-shadow: 0 10px 30px -16px rgba(60, 90, 60, 0.5);
}
.tema-verde .byu-faixa-data {
    background: linear-gradient(160deg, rgba(199, 154, 58, 0.22), rgba(199, 154, 58, 0.06));
    border-right: 1px solid var(--byu-borda);
}
.tema-verde .byu-faixa-data .mes { color: #c79a3a; }
.tema-verde .byu-faixa-data .dia { color: #17422d; text-shadow: none; }
.tema-verde .byu-faixa-hora b    { color: #17422d; font-size: 1.15rem; }
.tema-verde .byu-faixa-hora span {
    color: #46624f;
    font-size: 0.98rem;
    font-weight: 600;
    line-height: 1.35;
}

/* ----- Local + botões de GPS (sem blur) ----- */
.tema-verde .byu-local   { color: #46624f; }
.tema-verde .byu-local b { color: #243a2c; }
.tema-verde .btn-mapa {
    background: var(--byu-card);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 1px solid var(--byu-borda);
    color: #243a2c;
}
.tema-verde .btn-mapa:hover { border-color: #c79a3a; }

.tema-verde .byu-recado { color: #17422d; }

/* ----- Cards (sem blur) ----- */
.tema-verde .card,
.tema-verde .card-borda {
    background: var(--byu-card);
    -webkit-backdrop-filter: none;
    backdrop-filter: none;
    border: 1px solid var(--byu-borda);
    box-shadow: 0 18px 50px -24px rgba(60, 90, 60, 0.6);
}
.tema-verde .card h1,
.tema-verde .card h2 {
    font-family: 'Poiret One', 'Nunito', cursive;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 0.2em;
    text-align: center;
    color: #13361f;
    -webkit-text-stroke: 0.5px rgba(180, 138, 46, 0.5);
    text-shadow: none;
}
.tema-verde .subtitulo { text-align: center; color: #46624f; }

/* ----- Formulário ----- */
.tema-verde .campo label {
    color: #2f6646;
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.72rem;
    font-weight: 800;
}
.tema-verde .campo input,
.tema-verde .campo textarea,
.tema-verde .campo select {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(120, 150, 120, 0.5);
    color: #243a2c;
}
.tema-verde .campo input::placeholder,
.tema-verde .campo textarea::placeholder { color: #9bae9b; }
.tema-verde .campo input:focus,
.tema-verde .campo textarea:focus,
.tema-verde .campo select:focus {
    border-color: #c79a3a;
    box-shadow: 0 0 0 3px rgba(199, 154, 58, 0.18);
}
.tema-verde .campo small { color: #46624f; }

/* ----- Botões ----- */
.tema-verde .btn {
    color: #fff;
    background: linear-gradient(120deg, #3c7a57, #20543c 60%, #163b29);
    box-shadow: 0 12px 26px -10px rgba(32, 84, 60, 0.7);
}
.tema-verde .btn:hover { background: linear-gradient(120deg, #347042, #1b4a34 60%, #123524); }
.tema-verde .btn-secundario {
    color: #17422d;
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid var(--byu-borda);
}

/* ----- Alertas ----- */
.tema-verde .alerta-erro {
    background: rgba(120, 40, 40, 0.08);
    border-color: rgba(180, 70, 70, 0.4);
    color: #7a2b2b;
}
.tema-verde .alerta-sucesso {
    background: rgba(40, 110, 70, 0.1);
    border-color: rgba(60, 140, 90, 0.4);
    color: #1c5235;
}

/* ----- Rodapé ----- */
.tema-verde .rodape { border-top: none; color: #46624f; }
.tema-verde .rodape a { color: #2f6646; }

/* ----- Dress code (lista de sugestões de vestimenta) ----- */
.dresscode-lista {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 4px;
}
.dresscode-lista li {
    position: relative;
    padding: 10px 14px 10px 34px;
    border-radius: 12px;
    font-weight: 600;
}
.dresscode-lista li::before {
    content: "";
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.tema-verde .dresscode-lista li {
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid var(--byu-borda);
    color: #243a2c;
}
.tema-verde .dresscode-lista li::before {
    background: linear-gradient(135deg, #e7c873, #c79a3a);
}

/* ----- Página de PRESENTES no tema-verde (acordeão, título, PIX) ----- */
.tema-verde .painel-cabecalho h1 { color: #17422d; }

/* Título "Sugestões de Presentes" (Poiret + Great Vibes com contorno dourado) */
.tema-verde .sug-titulo {
    font-family: 'Poiret One', 'Nunito', cursive;
    font-weight: 400;
    font-size: 1.9rem;
    letter-spacing: 0.06em;
    color: #17422d;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
    margin: 0;
}
.tema-verde .sug-titulo b {
    display: block;
    font-weight: 400;
    font-family: 'Great Vibes', cursive;
    font-size: 2.4rem;
    line-height: 1.05;
    margin-top: 2px;
    padding-bottom: 8px;
    text-transform: none;
    letter-spacing: normal;
    background: none;
    color: #1c4d35;
    text-shadow:
        -1px -1px 0 rgba(199, 154, 58, 0.85), 1px -1px 0 rgba(199, 154, 58, 0.85),
        -1px 1px 0 rgba(199, 154, 58, 0.85),  1px 1px 0 rgba(199, 154, 58, 0.85);
}
.tema-verde .sapo-titulo {
    display: block;
    width: 118px;
    height: auto;
    margin: 2px auto 6px;
    filter: drop-shadow(0 4px 10px rgba(60, 90, 60, 0.3));
}

/* Acordeão de sugestões */
.tema-verde .sug-acc {
    border: 1px solid var(--byu-borda);
    border-radius: 14px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.6);
}
.tema-verde .sug-acc.aberto { border-color: var(--byu-ouro); }
.tema-verde .sug-acc-ic { color: #2f6646; display: flex; flex-shrink: 0; }
.tema-verde .sug-acc-nome { display: block; font-weight: 700; font-size: 1rem; color: #243a2c; }
.tema-verde .sug-acc-count { display: block; font-size: 0.74rem; color: #46624f; }

/* Filete decorativo do cabeçalho de presentes/PIX (era roxo) */
.tema-verde .presentes-cabecalho::after {
    background: linear-gradient(90deg, transparent, var(--byu-ouro), transparent);
}

/* Banner "Presença confirmada!" (topo dourado em vez de roxo) */
.tema-verde .confirmado-banner {
    border-top: 4px solid var(--byu-ouro);
    border-image: none;
}

/* Card do PIX copia-e-cola */
.tema-verde .convite-link { background: rgba(255, 255, 255, 0.5); }
.tema-verde .convite-link label {
    background: none;
    color: #2f6646;
    -webkit-text-fill-color: #2f6646;
}
.tema-verde .convite-input {
    background: #fff;
    border: 1px solid rgba(199, 154, 58, 0.4);
    color: #243a2c;
}
.tema-verde .pix-card .pix-qr img,
.tema-verde .pix-card .pix-qr canvas {
    box-shadow: 0 6px 22px -10px rgba(60, 90, 60, 0.35);
}

@media (min-width: 768px) {
    .tema-verde .princesa { height: 64vh; right: 1vw; }
    .tema-verde .floral-ie { width: 300px; }
    .tema-verde .floral-sd { width: 260px; }
}
