/* ============================================
   Estilos compartilhados — Cotas de Lua de Mel
   Avalon X Travel
   ============================================ */

/* Reset mínimo */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* Garante que [hidden] nunca seja sobrescrito por regras de display */
[hidden] { display: none !important; }

/* Tipografia base */
body {
  font-family: 'Georgia', serif;
  color: #1a1a1a;
  background: #faf9f7;
  line-height: 1.6;
}

/* Utilitários básicos */
main {
  max-width: 820px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* ============================================
   Design Tokens — Avalon X Travel
   ============================================ */
:root {
  --ax-navy-900: #0F1B2F;
  --ax-navy-800: #1A2E4A;
  --ax-gold:     #C9A84C;
  --ax-gold-100: #F7E8CC;
  --ax-white:    #FFFFFF;
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    Georgia, 'Times New Roman', serif;
  --font-ui:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ============================================
   Layout — página do casal fullwidth
   ============================================ */
#app {
  max-width: 100%;
  padding: 0;
}

/* ============================================
   Hero
   ============================================ */
.hero {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.hero img {
  width: 100%;
  height: 70vh;
  max-height: 70vh;
  object-fit: cover;
  display: block;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 40%, rgba(15, 27, 47, 0.85) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 2rem 1.5rem;
  gap: 0.5rem;
}

.badge-destino {
  display: inline-block;
  background: var(--ax-gold);
  color: var(--ax-navy-900);
  font-family: var(--font-ui);
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  align-self: flex-start;
}

.nome-casal {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  color: var(--ax-white);
  line-height: 1.2;
  margin: 0;
}

.data-casamento {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 0;
}

@media (min-width: 768px) {
  .nome-casal { font-size: 2.8rem; }
  .hero-overlay { padding: 3rem 2.5rem; }
}

/* ============================================
   Progresso
   ============================================ */
.progresso {
  background: var(--ax-navy-800);
  padding: 1.5rem;
  text-align: center;
  color: var(--ax-white);
}

.progresso-valores {
  font-family: var(--font-display);
  font-size: 1.1rem;
  margin-bottom: 0.75rem;
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 0.4rem;
}

.progresso-valores #total-arrecadado {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ax-gold);
}

.barra-container {
  background: rgba(255, 255, 255, 0.15);
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.barra-preenchida {
  height: 100%;
  background: var(--ax-gold);
  border-radius: 999px;
  width: 0%;
  transition: width 1s ease-in-out;
}

#num-contribuicoes {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  margin: 0;
}

/* Progresso oculto: casal optou por não exibir valores aos convidados */
.progresso-oculto {
  padding-top: 1.75rem;
  padding-bottom: 1.75rem;
}

.progresso-mensagem {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-style: italic;
  color: var(--ax-gold);
  margin: 0;
  line-height: 1.6;
}

/* ============================================
   Mensagem do Casal
   ============================================ */
.mensagem-casal {
  max-width: 680px;
  margin: 3rem auto;
  padding: 0 1.5rem;
  text-align: center;
}

.mensagem-casal blockquote {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-style: italic;
  color: var(--ax-navy-900);
  line-height: 1.8;
  margin-bottom: 1rem;
}

.mensagem-casal cite {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: #666;
  font-style: normal;
}

/* ============================================
   Grid de Cotas
   ============================================ */
.cotas-section {
  padding: 2.5rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

.cotas-section h2 {
  font-family: var(--font-display);
  font-size: 1.6rem;
  color: var(--ax-navy-900);
  margin-bottom: 0.5rem;
}

.cotas-subtitulo {
  color: #666;
  font-size: 0.95rem;
  margin-bottom: 2rem;
}

.grid-cotas {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .grid-cotas { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .grid-cotas { grid-template-columns: repeat(3, 1fr); }
}

.cota-card {
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  background: var(--ax-white);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.cota-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.cota-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.cota-info {
  padding: 1.25rem;
}

.cota-info h3 {
  font-family: var(--font-display);
  font-size: 1.1rem;
  color: var(--ax-navy-900);
  margin-bottom: 0.4rem;
}

.cota-info p {
  font-size: 0.9rem;
  color: #555;
  line-height: 1.5;
  margin-bottom: 1rem;
}

.cota-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.cota-valor {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ax-navy-900);
}

.sem-cotas {
  color: #888;
  font-style: italic;
  padding: 2rem 0;
}

/* ============================================
   Contribuição Livre
   ============================================ */
.contribuicao-livre {
  text-align: center;
  padding: 2.5rem 1.5rem;
  background: var(--ax-gold-100);
}

.contribuicao-livre h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ax-navy-900);
  margin-bottom: 0.5rem;
}

.contribuicao-livre p {
  color: #555;
  margin-bottom: 1.5rem;
}

/* ============================================
   Botões
   ============================================ */
.btn-contribuir {
  background: var(--ax-navy-900);
  color: var(--ax-white);
  font-family: var(--font-display);
  font-size: 0.9rem;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-contribuir:hover {
  background: var(--ax-navy-800);
}

.btn-livre {
  background: transparent;
  color: var(--ax-navy-900);
  font-family: var(--font-display);
  font-size: 1rem;
  border: 2px solid var(--ax-gold);
  border-radius: 6px;
  padding: 0.75rem 2rem;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.btn-livre:hover {
  background: var(--ax-gold);
  color: var(--ax-navy-900);
}

.btn-pagar {
  width: 100%;
  background: var(--ax-gold);
  color: var(--ax-navy-900);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  padding: 0.9rem;
  cursor: pointer;
  transition: opacity 0.2s;
  margin-top: 0.5rem;
}

.btn-pagar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-pagamento-opcoes {
  display: flex;
  gap: 0.75rem;
  margin-top: 0.5rem;
}
.btn-pagamento-opcoes .btn-pagar {
  margin-top: 0;
  flex: 1;
}

.modal-disclaimer {
  margin-top: 12px;
  font-family: var(--font-ui);
  font-size: 0.61rem;
  line-height: 1.5;
  color: #666;
  text-align: justify;
}

/* ============================================
   Como Funciona
   ============================================ */
.como-funciona {
  padding: 3rem 1.5rem;
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.como-funciona h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  color: var(--ax-navy-900);
  margin-bottom: 2rem;
}

.passos {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 768px) {
  .passos { flex-direction: row; justify-content: space-around; }
}

.passo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  max-width: 200px;
}

.passo-icone {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--ax-gold-100);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ax-navy-900);
}

.passo p {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: #444;
  text-align: center;
  margin: 0;
}

/* ============================================
   Modal
   ============================================ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.modal[hidden] {
  display: none;
}

.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.modal-content {
  position: relative;
  background: var(--ax-white);
  border-radius: 12px;
  padding: 2rem;
  width: 100%;
  max-width: 480px;
  z-index: 1;
}

.modal-fechar {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: #888;
  line-height: 1;
  padding: 0.25rem 0.5rem;
}

.modal-content h3 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: var(--ax-navy-900);
  margin-bottom: 1.5rem;
  padding-right: 2rem;
}

#form-contribuicao label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 1rem;
}

#form-contribuicao input,
#form-contribuicao textarea {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
  width: 100%;
}

#form-contribuicao input:focus,
#form-contribuicao textarea:focus {
  outline: none;
  border-color: var(--ax-gold);
}

/* ============================================
   Rodapé
   ============================================ */
.rodape {
  background: var(--ax-navy-900);
  color: rgba(255, 255, 255, 0.7);
  padding: 2.5rem 1.5rem;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}

.logo-texto {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ax-white);
  font-weight: 700;
}

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

.topbar-logo .logo-img {
  height: 36px;
}

.login-logo .logo-img {
  margin: 0 auto;
  filter: brightness(0);
}

/* Co-branding do parceiro (indicação) — logo menor que o da Avalon, com papel rotulado */
.rodape-parceiro {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  padding-top: 0.75rem;
  margin-top: 0.25rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  width: 100%;
  max-width: 240px;
}

.rodape-parceiro-papel {
  font-family: var(--font-ui);
  font-size: 0.72rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.rodape-parceiro-logo {
  height: 60px;
  width: auto;
  max-width: 150px;
  object-fit: contain;
}

.rodape-seguranca {
  font-family: var(--font-ui);
  font-size: 0.8rem;
  margin: 0;
}

.rodape-whatsapp {
  font-family: var(--font-ui);
  font-size: 0.9rem;
  color: var(--ax-gold);
  text-decoration: none;
}

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

/* ============================================
   Skeleton Screen
   ============================================ */
@keyframes pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}

.skeleton {
  background: var(--ax-navy-800);
  border-radius: 6px;
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-hero {
  width: 100%;
  height: 60vh;
  border-radius: 0;
}

.skeleton-progresso {
  padding: 1.5rem;
  background: var(--ax-navy-800);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  align-items: center;
}

.skeleton-barra {
  width: 100%;
  max-width: 500px;
  height: 8px;
  border-radius: 999px;
  background: var(--ax-navy-900);
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-texto {
  height: 1rem;
  background: var(--ax-navy-900);
  animation: pulse 1.5s ease-in-out infinite;
}

.skeleton-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  padding: 2rem 1.5rem;
  max-width: 1100px;
  margin: 0 auto;
}

@media (min-width: 768px) {
  .skeleton-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) {
  .skeleton-grid { grid-template-columns: repeat(3, 1fr); }
}

.skeleton-card {
  height: 320px;
  border-radius: 12px;
}

/* ============================================
   Animação Reveal
   ============================================ */
.reveal {
  opacity: 0;
  transform: translateY(20px);
}

.reveal.revealed {
  opacity: 1;
  transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

/* ============================================
   Erro
   ============================================ */
.erro-pagina {
  text-align: center;
  padding: 4rem 1.5rem;
  color: #666;
  font-family: var(--font-ui);
}

/* ============================================
   Painel do Casal — Login
   ============================================ */
.painel-body {
  background: var(--ax-navy-900);
  min-height: 100vh;
}

.login-wrapper {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.login-card {
  background: var(--ax-white);
  border-radius: 16px;
  padding: 2.5rem 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
}

.login-logo {
  text-align: center;
  margin-bottom: 2rem;
}

.login-subtitulo {
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: #888;
  margin-top: 0.3rem;
}

.campo-label {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: #555;
  margin-bottom: 1rem;
}

.campo-label input,
.campo-label textarea {
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.65rem 0.75rem;
  font-size: 1rem;
  font-family: var(--font-body);
  transition: border-color 0.2s;
  width: 100%;
}

.campo-label input:focus,
.campo-label textarea:focus {
  outline: none;
  border-color: var(--ax-gold);
}

.campo-hint {
  font-size: 0.78rem;
  color: #aaa;
}

/* Checkbox de aceite dos termos */
.campo-aceite {
  flex-direction: row;
  align-items: flex-start;
  gap: 0.6rem;
  margin-top: 0.5rem;
}
.campo-aceite input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  min-width: 1.1rem;
  margin-top: 0.15rem;
  accent-color: var(--ax-gold);
  cursor: pointer;
}
.campo-aceite span {
  font-size: 0.88rem;
  color: #555;
  line-height: 1.5;
}
.campo-aceite a {
  color: var(--ax-gold);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* Toggle de visibilidade do progresso (painel → personalizar) */
.campo-toggle {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1.25rem;
  padding-top: 1.25rem;
  border-top: 1px solid #eee;
}
.campo-toggle-texto {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.campo-toggle-titulo {
  font-family: var(--font-ui);
  font-size: 0.95rem;
  color: var(--ax-navy-900);
  font-weight: 600;
}
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 48px;
  min-width: 48px;
  height: 28px;
  margin-top: 0.1rem;
  cursor: pointer;
}
.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.toggle-slider {
  position: absolute;
  inset: 0;
  background: #ccc;
  border-radius: 999px;
  transition: background 0.25s ease;
}
.toggle-slider::before {
  content: "";
  position: absolute;
  height: 22px;
  width: 22px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.25s ease;
}
.toggle-switch input:checked + .toggle-slider {
  background: var(--ax-gold);
}
.toggle-switch input:checked + .toggle-slider::before {
  transform: translateX(20px);
}
.toggle-switch input:focus-visible + .toggle-slider {
  outline: 2px solid var(--ax-navy-800);
  outline-offset: 2px;
}

.login-erro {
  background: #fdecea;
  color: #c0392b;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  padding: 0.6rem 0.75rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.btn-entrar {
  width: 100%;
  background: var(--ax-navy-900);
  color: var(--ax-white);
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 600;
  border: none;
  border-radius: 8px;
  padding: 0.85rem;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-entrar:hover {
  background: var(--ax-navy-800);
}

.btn-entrar:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.login-ajuda {
  text-align: center;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: #aaa;
  margin-top: 1.5rem;
}

.login-ajuda a {
  color: var(--ax-gold);
  text-decoration: none;
}

/* ============================================
   Painel do Casal — Topbar
   ============================================ */
.painel-topbar {
  background: var(--ax-navy-900);
  border-bottom: 1px solid rgba(201, 168, 76, 0.2);
  position: sticky;
  top: 0;
  z-index: 100;
}

.painel-topbar-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.topbar-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-family: var(--font-display);
  color: var(--ax-white);
}

.topbar-divider {
  color: rgba(255,255,255,0.3);
}

.topbar-nome-casal {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.8);
  font-weight: 400;
}

.btn-logout {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  border-radius: 6px;
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
}

.btn-logout:hover {
  border-color: var(--ax-gold);
  color: var(--ax-gold);
}

/* ============================================
   Painel do Casal — Main / Cards
   ============================================ */
.painel-main {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.painel-card {
  background: var(--ax-white);
  border-radius: 12px;
  padding: 1.75rem;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.painel-card-titulo {
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--ax-navy-900);
  margin-bottom: 1.25rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #f0ede8;
}

/* ============================================
   Painel — Progresso
   ============================================ */
.painel-progresso-valores {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  text-align: center;
}

.painel-valor-destaque {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.painel-label {
  font-family: var(--font-ui);
  font-size: 0.75rem;
  color: #999;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.painel-valor-grande {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ax-navy-900);
}

.painel-valor-meta {
  color: #aaa;
}

.painel-percentual {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: #888;
  text-align: center;
  margin-top: 0.5rem;
}

@media (max-width: 480px) {
  .painel-progresso-valores { grid-template-columns: 1fr; gap: 0.75rem; }
  .painel-valor-grande { font-size: 1.2rem; }
}

/* ============================================
   Painel — Link compartilhável
   ============================================ */
.painel-texto-aux {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: #777;
  margin-bottom: 0.75rem;
}

.link-compartilhar {
  display: flex;
  gap: 0.5rem;
}

.link-input {
  flex: 1;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 0.6rem 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: #555;
  background: #fafafa;
}

.btn-copiar {
  background: var(--ax-navy-900);
  color: var(--ax-white);
  font-family: var(--font-ui);
  font-size: 0.85rem;
  border: none;
  border-radius: 6px;
  padding: 0.6rem 1.1rem;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}

.btn-copiar:hover {
  background: var(--ax-navy-800);
}

.link-ver-pagina {
  display: inline-block;
  margin-top: 0.75rem;
  font-family: var(--font-ui);
  font-size: 0.85rem;
  color: var(--ax-gold);
  text-decoration: none;
}

.link-ver-pagina:hover {
  text-decoration: underline;
}

/* ============================================
   Painel — Editar perfil
   ============================================ */
.perfil-acoes {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 0.5rem;
}

.btn-salvar {
  background: var(--ax-gold);
  color: var(--ax-navy-900);
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  border-radius: 6px;
  padding: 0.7rem 1.5rem;
  cursor: pointer;
  transition: opacity 0.2s;
}

.btn-salvar:hover { opacity: 0.85; }
.btn-salvar:disabled { opacity: 0.5; cursor: not-allowed; }

.salvo-ok {
  font-family: var(--font-ui);
  font-size: 0.88rem;
  color: #27ae60;
}

/* ============================================
   Painel — Tabela de contribuições
   ============================================ */
.painel-vazio {
  padding: 1rem 0;
  font-style: italic;
}

.contrib-table-wrapper {
  overflow-x: auto;
}

.contrib-table {
  width: 100%;
  border-collapse: collapse;
  font-family: var(--font-ui);
  font-size: 0.88rem;
}

.contrib-table th {
  text-align: left;
  padding: 0.6rem 0.75rem;
  color: #999;
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  border-bottom: 2px solid #f0ede8;
}

.contrib-table td {
  padding: 0.75rem;
  border-bottom: 1px solid #f5f3f0;
  vertical-align: top;
}

.contrib-table tr:last-child td {
  border-bottom: none;
}

.contrib-nome {
  font-weight: 600;
  color: var(--ax-navy-900);
}

.contrib-valor {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--ax-navy-900);
  white-space: nowrap;
}

.contrib-mensagem {
  color: #555;
  font-style: italic;
}

.contrib-sem-mensagem {
  color: #ccc;
}

/* ── Painel v2 — novos componentes ───────────────────────── */

/* Cabeçalho de card com botão inline */
.painel-card-cabecalho {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.painel-card-cabecalho .painel-card-titulo {
  margin-bottom: 0;
}

.btn-editar-inline {
  background: transparent;
  border: 1px solid rgba(201, 168, 76, .4);
  color: #C9A84C;
  font-size: .8rem;
  padding: .3rem .85rem;
  border-radius: 6px;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  white-space: nowrap;
}

.btn-editar-inline:hover {
  border-color: #C9A84C;
  background: rgba(201, 168, 76, .08);
}

/* Separador interno de card */
.painel-separador {
  height: 1px;
  background: rgba(201, 168, 76, .15);
  margin: 1.5rem 0;
}

.painel-subtitulo {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  font-weight: 600;
  color: #1A2E4A;
  margin-bottom: 1rem;
}

/* Bloco de resgate */
.resgate-info,
.resgate-resumo-modal {
  background: #f7f5f0;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.resgate-linha {
  display: flex;
  justify-content: space-between;
  font-size: .9rem;
  color: #555;
}

.resgate-taxa strong { color: #c0392b; }

.resgate-liquido {
  border-top: 1px solid rgba(0,0,0,.08);
  padding-top: .6rem;
  margin-top: .2rem;
}

.resgate-liquido strong {
  font-size: 1.05rem;
  color: #1A2E4A;
}

.painel-destaque {
  font-weight: 600;
  color: #1A2E4A;
}

.btn-resgate {
  margin-top: 1.25rem;
  width: 100%;
  padding: .85rem;
  background: #C9A84C;
  color: #0F1B2F;
  font-weight: 700;
  font-family: 'Georgia', serif;
  font-size: .95rem;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background .2s;
}

.btn-resgate:hover { background: #b8963e; }

/* Card de perigo (encerrar conta) */
.painel-card-perigo {
  border-color: rgba(192, 57, 43, .2);
}

/* ============================================
   Painel — Navegação por abas
   ============================================ */
.painel-tabs-nav {
  background: var(--ax-navy-900);
  border-bottom: 1px solid rgba(201, 168, 76, 0.15);
}

.painel-tabs-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 1.5rem;
  display: flex;
  gap: 0;
}

.painel-tab {
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: rgba(255, 255, 255, 0.55);
  font-family: var(--font-ui);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 0.85rem 1.25rem;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.painel-tab:hover {
  color: rgba(255, 255, 255, 0.85);
}

.painel-tab.ativa {
  color: var(--ax-gold);
  border-bottom-color: var(--ax-gold);
}

/* Painéis de conteúdo de cada aba */
.painel-aba {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.btn-encerrar {
  margin-top: .75rem;
  background: transparent;
  border: 1px solid #c0392b;
  color: #c0392b;
  padding: .65rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: .9rem;
  transition: background .2s, color .2s;
}

.btn-encerrar:hover {
  background: #c0392b;
  color: #fff;
}

.btn-encerrar-confirmar {
  width: 100%;
  margin-top: 1rem;
  padding: .85rem;
  font-size: .95rem;
}

/* Toggle URL de foto */
.btn-toggle-url {
  background: transparent;
  border: none;
  color: #C9A84C;
  font-size: .8rem;
  cursor: pointer;
  padding: .25rem 0;
  text-decoration: underline;
  display: block;
  margin-top: .5rem;
}

/* Modal título */
.modal-titulo {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  font-weight: 700;
  color: #0F1B2F;
  margin-bottom: 1.25rem;
}

/* ── Landing page ─────────────────────────────────────────── */

.landing-body {
  background: #0F1B2F;
  color: #fff;
  font-family: 'Georgia', serif;
}

.landing-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(15, 27, 47, .92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(201, 168, 76, .15);
}

.landing-header-inner {
  max-width: 1100px;
  margin: 0 auto;
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.landing-link-painel {
  font-size: .85rem;
  color: #C9A84C;
  text-decoration: none;
  opacity: .8;
  transition: opacity .2s;
}

.landing-link-painel:hover { opacity: 1; }

/* Hero */
.landing-hero {
  min-height: 90vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 5rem 1.5rem 4rem;
  background:
    linear-gradient(to bottom, rgba(15,27,47,.3) 0%, rgba(15,27,47,.85) 100%),
    url('https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1600&q=80&fit=crop') center/cover no-repeat;
}

.landing-hero-inner {
  max-width: 680px;
}

.landing-pretitulo {
  font-size: .8rem;
  text-transform: uppercase;
  letter-spacing: .15em;
  color: #C9A84C;
  margin-bottom: 1.25rem;
}

.landing-titulo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
  margin-bottom: 1.25rem;
}

.landing-titulo em {
  font-style: italic;
  color: #E8D099;
}

.landing-subtitulo {
  font-size: 1.05rem;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

.btn-cta-landing {
  display: inline-block;
  background: #C9A84C;
  color: #0F1B2F;
  font-family: 'Georgia', serif;
  font-size: 1rem;
  font-weight: 700;
  padding: .95rem 2.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: background .2s, transform .15s;
  letter-spacing: .02em;
}

.btn-cta-landing:hover {
  background: #E8D099;
  transform: translateY(-1px);
}

.landing-cta-hint {
  margin-top: .75rem;
  font-size: .8rem;
  color: rgba(255,255,255,.4);
}

/* Seções */
.landing-secao {
  padding: 5rem 1.5rem;
}

.landing-secao-clara {
  background: #F7F5F0;
  color: #1C1C1C;
}

.landing-container {
  max-width: 1100px;
  margin: 0 auto;
}

.landing-secao-titulo {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 700;
  color: #1A2E4A;
  text-align: center;
  margin-bottom: .75rem;
}

.landing-titulo-claro {
  color: #fff;
  text-align: left;
}

.landing-secao-subtitulo {
  text-align: center;
  color: #666;
  font-size: .95rem;
  margin-bottom: 3rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* Passos */
.landing-passos {
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  flex-wrap: wrap;
  justify-content: center;
}

.landing-passo {
  flex: 1;
  min-width: 200px;
  max-width: 280px;
  text-align: center;
}

.landing-passo-num {
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  background: #C9A84C;
  color: #0F1B2F;
  font-size: 1.25rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.landing-passo h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: #1A2E4A;
  margin-bottom: .5rem;
}

.landing-passo p {
  font-size: .9rem;
  color: #555;
  line-height: 1.65;
}

.landing-passo-seta {
  font-size: 1.5rem;
  color: #C9A84C;
  align-self: center;
  padding-top: .5rem;
}

@media (max-width: 640px) {
  .landing-passo-seta { display: none; }
}

/* Duas colunas */
.landing-duas-colunas {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 768px) {
  .landing-duas-colunas { grid-template-columns: 1fr; gap: 2.5rem; }
}

.landing-corpo {
  color: rgba(255,255,255,.75);
  line-height: 1.75;
  margin-bottom: 1rem;
  font-size: .95rem;
}

/* Card exemplo */
.landing-card-exemplo {
  background: #1A2E4A;
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 16px;
  padding: 1.75rem;
}

.exemplo-header {
  margin-bottom: 1.25rem;
}

.exemplo-badge {
  font-size: .75rem;
  background: rgba(201,168,76,.15);
  color: #C9A84C;
  border: 1px solid rgba(201,168,76,.3);
  border-radius: 4px;
  padding: .2rem .6rem;
  display: inline-block;
  margin-bottom: .5rem;
}

.exemplo-nome {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  color: #fff;
  margin: 0;
}

.exemplo-progresso { margin-bottom: 1.25rem; }

.exemplo-valores {
  display: flex;
  justify-content: space-between;
  font-size: .85rem;
  color: #e2e8f0;
  margin-bottom: .5rem;
}

.exemplo-meta { color: #a0aec0; }

.exemplo-barra-bg {
  height: 6px;
  background: rgba(255,255,255,.1);
  border-radius: 3px;
  overflow: hidden;
  margin-bottom: .4rem;
}

.exemplo-barra-fill {
  height: 100%;
  background: #C9A84C;
  border-radius: 3px;
}

.exemplo-percent {
  font-size: .75rem;
  color: #718096;
  margin: 0;
}

.exemplo-cotas {
  display: flex;
  flex-direction: column;
  gap: .5rem;
}

.exemplo-cota {
  font-size: .8rem;
  color: rgba(255,255,255,.6);
  background: rgba(255,255,255,.05);
  border-radius: 6px;
  padding: .5rem .75rem;
}

/* Grid de destinos */
.landing-destinos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.destino-card {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(26, 46, 74, .12);
  text-decoration: none;
  transition: transform .2s, box-shadow .2s;
  background: #fff;
  display: block;
}

.destino-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(26,46,74,.12);
}

.destino-card-img {
  height: 140px;
  background-size: cover;
  background-position: center;
  position: relative;
}

.destino-card-bandeira {
  position: absolute;
  top: .6rem;
  left: .6rem;
  font-size: 1.4rem;
  filter: drop-shadow(0 1px 2px rgba(0,0,0,.4));
}

.destino-card-info {
  padding: 1rem;
}

.destino-card-nome {
  font-family: 'Playfair Display', serif;
  font-size: 1rem;
  color: #1A2E4A;
  margin-bottom: .2rem;
}

.destino-card-pais {
  font-size: .8rem;
  color: #888;
  margin-bottom: .4rem;
}

.destino-card-desc {
  font-size: .8rem;
  color: #555;
  line-height: 1.5;
  margin: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.destino-skeleton {
  height: 220px;
  border-radius: 12px;
  background: linear-gradient(90deg, #e8edf2 25%, #f0f4f8 50%, #e8edf2 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.landing-destinos-hint {
  text-align: center;
  font-size: .85rem;
  color: #888;
}

.landing-destinos-hint a {
  color: #1A2E4A;
  font-weight: 600;
}

/* CTA final */
.landing-cta-final {
  padding: 5rem 1.5rem;
  background: linear-gradient(135deg, #1A2E4A 0%, #0F1B2F 100%);
  border-top: 1px solid rgba(201,168,76,.2);
}

/* ── Cadastro wizard ──────────────────────────────────────── */

.cadastro-wrapper {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1rem 4rem;
}

.cadastro-header {
  text-align: center;
  margin-bottom: 2rem;
}

/* Indicador de etapas */
.etapas-indicador {
  display: flex;
  align-items: center;
  margin-bottom: 2rem;
  width: 100%;
  max-width: 480px;
}

.etapa-passo {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .25rem;
  opacity: .35;
  transition: opacity .3s;
}

.etapa-passo.ativo,
.etapa-passo.concluido {
  opacity: 1;
}

.passo-num {
  width: 2rem;
  height: 2rem;
  border-radius: 50%;
  border: 2px solid #C9A84C;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .85rem;
  font-weight: 700;
  color: #C9A84C;
  background: transparent;
  transition: background .3s, color .3s;
}

.etapa-passo.ativo .passo-num {
  background: #C9A84C;
  color: #0F1B2F;
}

.etapa-passo.concluido .passo-num {
  background: #C9A84C;
  color: #0F1B2F;
  font-size: 0;          /* esconder número */
}

.etapa-passo.concluido .passo-num::after {
  content: '✓';
  font-size: .9rem;
}

.passo-label {
  font-size: .7rem;
  color: #a0aec0;
  text-transform: uppercase;
  letter-spacing: .05em;
  white-space: nowrap;
}

.etapa-passo.ativo .passo-label {
  color: #C9A84C;
}

.etapa-separador {
  flex: 1;
  height: 2px;
  background: rgba(201, 168, 76, .25);
  margin: 0 .5rem 1.25rem;
}

.etapa-conteudo {
  width: 100%;
  max-width: 480px;
}

/* Botão voltar */
.btn-voltar {
  background: transparent;
  border: 1px solid rgba(201, 168, 76, .4);
  color: #C9A84C;
  padding: .75rem 1.5rem;
  border-radius: 8px;
  cursor: pointer;
  font-size: .9rem;
  transition: border-color .2s, background .2s;
}

.btn-voltar:hover {
  border-color: #C9A84C;
  background: rgba(201, 168, 76, .08);
}

/* Área de upload de foto */
.upload-foto-container {
  position: relative;
}

.btn-remover-foto {
  position: absolute;
  top: 0.6rem;
  right: 0.6rem;
  background: rgba(15, 27, 47, 0.85);
  color: #C9A84C;
  border: 1px solid rgba(201, 168, 76, 0.5);
  border-radius: 50%;
  width: 1.8rem;
  height: 1.8rem;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: background .2s;
  z-index: 1;
}

.btn-remover-foto:hover {
  background: rgba(201, 168, 76, 0.2);
}

.upload-area {
  border: 2px dashed rgba(201, 168, 76, .4);
  border-radius: 12px;
  padding: 2rem 1rem;
  text-align: center;
  cursor: pointer;
  transition: border-color .2s, background .2s;
  background: rgba(201, 168, 76, .04);
  min-height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: .5rem;
}

.upload-area:hover,
.upload-area:focus {
  border-color: #C9A84C;
  background: rgba(201, 168, 76, .08);
  outline: none;
}

.upload-area img {
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  object-fit: cover;
}

#upload-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .5rem;
}

#upload-placeholder p {
  font-size: .9rem;
  color: #e2e8f0;
  margin: 0;
}

#upload-placeholder span {
  font-size: .75rem;
  color: #718096;
}

/* Contador de caracteres */
.contador-chars {
  display: block;
  text-align: right;
  font-size: .75rem;
  color: #718096;
  margin-top: .25rem;
}

/* ── Fim do cadastro wizard ───────────────────────────────── */

/* ============================================
   Cadastro — Tela de confirmação de e-mail
   ============================================ */

.confirmacao-card {
  text-align: center;
}

.confirmacao-icone {
  width: 64px;
  height: 64px;
  background: var(--ax-gold-100);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
}

.confirmacao-titulo {
  text-align: center;
  border-bottom: none;
  padding-bottom: 0;
  margin-bottom: 1.25rem;
}

.confirmacao-texto {
  font-family: var(--font-ui);
  font-size: 0.92rem;
  color: #555;
  line-height: 1.65;
  margin: 0;
}

.confirmacao-texto strong {
  color: var(--ax-navy-900);
  font-weight: 600;
}

.confirmacao-dica {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: #aaa;
  margin-top: 1.5rem;
  line-height: 1.6;
}

#conf-reenvio-msg {
  display: block;
  margin-top: 0.4rem;
  color: #555;
}

.btn-link {
  background: none;
  border: none;
  padding: 0;
  color: var(--ax-gold);
  font-family: var(--font-ui);
  font-size: 0.82rem;
  cursor: pointer;
  text-decoration: underline;
}

.btn-link:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.confirmacao-suporte {
  margin-top: 1.5rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f0ede8;
}

.confirmacao-suporte a {
  font-family: var(--font-ui);
  font-size: 0.82rem;
  color: var(--ax-gold);
  text-decoration: none;
}

.confirmacao-suporte a:hover {
  text-decoration: underline;
}

.contrib-data {
  color: #aaa;
  white-space: nowrap;
}

/* ============================================
   Modal de Crop de Imagem (estilo WhatsApp)
   ============================================ */
.modal-crop {
  position: fixed;
  inset: 0;
  z-index: 2000;
  background: #000;
  display: flex;
  flex-direction: column;
}

.modal-crop[hidden] {
  display: none !important;
}

.modal-crop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: rgba(0, 0, 0, 0.85);
  color: #fff;
  flex-shrink: 0;
}

.modal-crop-titulo {
  font-family: var(--font-ui);
  font-size: 15px;
  font-weight: 500;
  color: #fff;
}

.modal-crop-btn-cancelar,
.modal-crop-btn-confirmar {
  background: none;
  border: none;
  font-family: var(--font-ui);
  font-size: 15px;
  cursor: pointer;
  padding: 4px 8px;
  color: #fff;
  transition: opacity 0.2s;
}

.modal-crop-btn-cancelar:hover,
.modal-crop-btn-confirmar:hover {
  opacity: 0.75;
}

.modal-crop-btn-confirmar {
  color: var(--ax-gold);
  font-weight: 600;
}

.modal-crop-body {
  flex: 1;
  overflow: hidden;
  min-height: 0;
}

.modal-crop-body img {
  display: block;
  max-width: 100%;
}
