/* ==========================================================================
   DESIGN SYSTEM & VARIÁVEIS CSS (PALETA FLORAL: VIOLETA, ROSA E PRATA)
   ========================================================================== */
:root {
  /* Tons de Violeta Especificados */
  --violet-light: #C48AFF;
  --violet-medium: #AD5CFF;
  --violet-deep: #962EFF;

  /* Tons de Rosa Especificados */
  --pink-100: #FFCCE3;
  --pink-200: #FFBFDC;
  --pink-300: #FFB2D6;
  --pink-400: #FFA4CF;
  --pink-500: #FF96C8;

  /* Prata Especificado */
  --silver: #DBDBDB;
  --silver-glow: rgba(219, 219, 219, 0.4);
  --silver-border: rgba(219, 219, 219, 0.6);

  /* Fundo & Superfícies (Tema Lavanda/Violeta Suave Floral) */
  --bg-primary: #EDE3F5;
  --bg-secondary: #E6D8F2;
  --bg-gradient: radial-gradient(circle at 50% 30%, #F5F0FA 0%, #EDE3F5 60%, #E2D3F0 100%);
  --bg-modal: rgba(35, 18, 55, 0.65);
  --card-bg: rgba(255, 255, 255, 0.75);
  --card-border: rgba(173, 92, 255, 0.3);

  /* Cores de Texto */
  --color-text-primary: #2B1545;
  --color-text-secondary: #583380;
  --color-text-muted: #7A5B9E;

  /* Fontes */
  --font-heading: 'Ballet', 'Cinzel', Georgia, cursive;
  --font-body: 'Plus Jakarta Sans', 'Inter', system-ui, -apple-system, sans-serif;

  /* Transições & Sombras */
  --transition-fast: 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-normal: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-glow: 0 8px 25px rgba(150, 46, 255, 0.25);
  --shadow-card: 0 12px 35px rgba(88, 51, 128, 0.12);

  /* Dimensões */
  --radius-sm: 10px;
  --radius-md: 18px;
  --radius-lg: 28px;

  /* Tamanho das flores nos cantos */
  --floral-size: 380px;
}

/* ==========================================================================
   RESET & ESTILOS BASE
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background: var(--bg-gradient);
  background-color: #EDE3F5;
  background-attachment: fixed;
  min-height: 100%;
  height: 100%;
}

body {
  background: var(--bg-gradient);
  background-color: #EDE3F5;
  background-attachment: fixed;
  color: var(--color-text-primary);
  font-family: var(--font-body);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
  position: relative;
  margin: 0;
  padding: 0;
}

/* ==========================================================================
   ENVELOPE SELADO - TELA DE ABERTURA
   ========================================================================== */
.envelope-screen {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at center, rgba(248, 244, 252, 0.96) 0%, rgba(234, 222, 246, 0.96) 60%, rgba(220, 200, 238, 0.98) 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 0.8s ease, visibility 0.8s ease;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* O pattern floral de fundo DEVE APARECER APENAS na tela de envelope e sumir ao abrir */
.envelope-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../img/bg-pattern.png');
  background-repeat: repeat;
  background-size: 320px 320px;
  opacity: 0.45;
  pointer-events: none;
  z-index: 0;
}

/* Camada de transição suave fade-to-white — cobre a tela ANTES que
   o interior do envelope fique visível durante a animação */
.envelope-white-flash {
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  opacity: 0;
  pointer-events: none;
  z-index: 100;
  transition: opacity 0.8s ease;
}

.envelope-screen.abrindo .envelope-white-flash {
  opacity: 1;
  transition: opacity 0.5s ease 0.25s;
}

.envelope-screen.fechando {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.envelope-screen.removido {
  display: none !important;
}

/* Formato de envelope físico 100% fechadinho sem partes brancas */
.envelope-container {
  position: relative;
  width: 440px;
  height: 310px;
  max-width: 90vw;
  perspective: 1500px;
  z-index: 2;
  filter: drop-shadow(0 25px 45px rgba(45, 15, 75, 0.4));
}

/* Corpo / Parte de trás do envelope */
.envelope-back {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #E2CEF2 0%, #D0B8EC 100%);
  border-radius: 12px;
  box-shadow: inset 0 0 25px rgba(110, 50, 150, 0.18);
  border: 1px solid rgba(196, 138, 255, 0.35);
}

/* Carta interna (guardada 100% oculta dentro do envelope selado).
   z-index: 2 — DEVE ser INFERIOR ao da frente (z-index: 3)
   para que a frente cubra a carta enquanto ela não emergiu. */
.envelope-carta {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  bottom: 10px;
  background: linear-gradient(180deg, #FAF7FC 0%, #F0E8F6 100%);
  border-radius: 8px;
  border: 1px solid rgba(196, 138, 255, 0.25);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 2;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(88, 51, 128, 0.12);
  transition: transform 1.2s cubic-bezier(0.22, 1, 0.36, 1);
}

/*
 * A carta é PUXADA PARA CIMA de DENTRO do envelope.
 * z-index NÃO muda — a carta permanece ATRÁS da frente (bolsa z:3).
 * A frente age como a bolsa do envelope que esconde a parte inferior.
 * A carta emerge pela abertura em V no topo da frente.
 */
.envelope-screen.abrindo .envelope-carta {
  transform: translateY(-300px);
  transition: transform 1.3s cubic-bezier(0.22, 1, 0.36, 1) 0.3s;
}

/* Flores nos cantos da carta */
.carta-floral {
  position: absolute;
  width: 100px;
  height: 100px;
  object-fit: contain;
  pointer-events: none;
  z-index: 1;
}

.carta-floral-tl { top: -6px; left: -6px; }
.carta-floral-tr { top: -6px; right: -6px; transform: scaleX(-1); }
.carta-floral-bl { bottom: -6px; left: -6px; transform: scaleY(-1); }
.carta-floral-br { bottom: -6px; right: -6px; transform: scale(-1, -1); }

/* Ornamentos na carta */
.carta-ornament {
  position: relative;
  z-index: 2;
  pointer-events: none;
  opacity: 0.95;
  filter: drop-shadow(0 4px 10px rgba(150, 46, 255, 0.25));
}
.carta-ornament-top { width: 130px; height: auto; margin-bottom: 0.3rem; }
.carta-ornament-bottom { width: 130px; height: auto; margin-top: 0.3rem; transform: rotate(180deg); }

/* Conteúdo da carta */
.carta-conteudo {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  text-align: center;
  padding: 0.4rem 1rem;
}

.carta-titulo {
  font-family: var(--font-heading);
  font-size: 1.8rem;
  letter-spacing: 1px;
  background: linear-gradient(
    115deg,
    #F1DFF2 0%,
    #F2F2F2 18%,
    #F1DFF2 35%,
    #FFFFFF 50%,
    #F2F2F2 68%,
    #F1DFF2 82%,
    #FFFFFF 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: prata-glitter-shimmer 7s linear infinite;
  filter: drop-shadow(0 2px 4px rgba(75, 25, 110, 0.55)) 
          drop-shadow(0 0 10px rgba(241, 223, 242, 0.9))
          drop-shadow(0 0 18px rgba(173, 92, 255, 0.6));
}

.carta-subtitulo {
  font-size: 0.8rem;
  color: var(--color-text-secondary);
}

/* Frente do envelope — bolsa frontal que age como "manga" cobrindo a carta.
   z-index: 3, ACIMA da carta (z:2). A frente NÃO se move durante a abertura.
   A carta desliza para cima ATRÁS dela, emergindo pela abertura V no topo. */
.envelope-frente {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #DFCDF2 0%, #C9B2E6 100%);
  clip-path: polygon(0 0, 50% 48%, 100% 0, 100% 100%, 0 100%);
  z-index: 3;
  border-radius: 12px;
  filter: drop-shadow(0 -3px 10px rgba(45, 12, 65, 0.2));
}

/* A frente NÃO se move — permanece fixa como a bolsa do envelope */

/* Aba superior dobrada que fecha o envelope por cima de tudo */
.envelope-aba {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 210px;
  background: linear-gradient(180deg, #CEB5EA 0%, #E2D2F4 75%, #C2A5DF 100%);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  z-index: 4;
  transform-origin: top center;
  transition: transform 0.7s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 12px 12px 0 0;
  filter: drop-shadow(0 10px 18px rgba(45, 12, 65, 0.38));
}

.envelope-screen.abrindo .envelope-aba {
  transform: rotateX(180deg);
}

/* Selo de Cera Real com monograma 'L' exatamente sobre o lacre da aba */
.envelope-selo {
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 5;
  background: transparent;
  border: none;
  outline: none;
  width: 120px;
  height: 120px;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  filter: drop-shadow(0 10px 22px rgba(110, 30, 140, 0.45));
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), filter 0.3s ease, opacity 0.45s ease;
  animation: selo-pulsar 3s infinite ease-in-out;
}

.selo-imagem {
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.envelope-selo:hover {
  transform: translate(-50%, -50%) scale(1.08);
  filter: drop-shadow(0 14px 30px rgba(130, 40, 160, 0.6));
}

/* Animação suave de fade ao clicar no selo para abrir */
.envelope-screen.abrindo .envelope-selo {
  opacity: 0;
  transform: translate(-50%, -50%) scale(1.18);
  filter: drop-shadow(0 0 25px rgba(255, 204, 227, 0.9));
  transition: opacity 0.45s ease, transform 0.45s cubic-bezier(0.2, 0.8, 0.2, 1), filter 0.45s ease;
  pointer-events: none;
}

@keyframes selo-pulsar {
  0%, 100% {
    transform: translate(-50%, -50%) scale(1);
    filter: drop-shadow(0 10px 22px rgba(110, 30, 140, 0.45));
  }
  50% {
    transform: translate(-50%, -50%) scale(1.04);
    filter: drop-shadow(0 14px 28px rgba(140, 45, 170, 0.58));
  }
}

/* ==========================================================================
   FLORES DECORATIVAS NOS 4 CANTOS (IMAGENS PNG)
   ========================================================================== */
.corner-floral {
  position: fixed;
  width: var(--floral-size);
  height: var(--floral-size);
  object-fit: contain;
  z-index: 10;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.home.ativo .corner-floral {
  opacity: 1;
}

.corner-tl { top: -15px; left: -15px; }
.corner-tr { top: -15px; right: -15px; transform: scaleX(-1); }
.corner-bl { bottom: -15px; left: -15px; transform: scaleY(-1); }
.corner-br { bottom: -15px; right: -15px; transform: scale(-1, -1); }

/* ==========================================================================
   MOLDURA DECORATIVA INTERNA (FRAME BORDER)
   ========================================================================== */
.frame-border {
  position: fixed;
  top: 35px;
  left: 35px;
  right: 35px;
  bottom: 35px;
  border: 1.5px solid rgba(196, 138, 255, 0.35);
  border-radius: 8px;
  pointer-events: none;
  z-index: 9;
  opacity: 0;
  transition: opacity 0.8s ease 0.3s;
}

.home.ativo .frame-border {
  opacity: 1;
}

.frame-border::after {
  content: "";
  position: absolute;
  top: 6px;
  left: 6px;
  right: 6px;
  bottom: 6px;
  border: 0.75px solid rgba(196, 138, 255, 0.2);
  border-radius: 4px;
  pointer-events: none;
}

/* ==========================================================================
   ESTRUTURA DA PÁGINA PRINCIPAL (.home)
   ========================================================================== */
.home {
  position: relative;
  min-height: 100vh;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease 0.2s, transform 0.8s ease 0.2s;
  pointer-events: none;
}

/* O mesmo pattern floral de fundo da carta aplicado à área principal com 90% de transparência (10% opacidade) */
.home::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: url('../img/bg-pattern.png');
  background-repeat: repeat;
  background-size: 320px 320px;
  opacity: 0.10;
  pointer-events: none;
  z-index: 0;
}

.home.ativo {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.container {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* ==========================================================================
   SEÇÃO HERO (CAPA)
   ========================================================================== */
.hero {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  padding: 5rem 1rem;
}

.hero-ornament {
  pointer-events: none;
  opacity: 0.95;
  filter: drop-shadow(0 6px 20px rgba(150, 46, 255, 0.3));
}

.hero-ornament-top {
  width: 240px;
  max-width: 80%;
  height: auto;
  margin-bottom: 1.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
  transition: transform var(--transition-normal);
}

.hero-ornament-top:hover {
  transform: scale(1.04);
}



.hero-titulo {
  font-family: var(--font-heading);
  font-size: clamp(3.4rem, 7.5vw, 5.8rem);
  letter-spacing: 1.5px;
  margin-bottom: 0.2rem;
  background: linear-gradient(
    115deg,
    #F1DFF2 0%,
    #F2F2F2 18%,
    #F1DFF2 35%,
    #FFFFFF 50%,
    #F2F2F2 68%,
    #F1DFF2 82%,
    #FFFFFF 100%
  );
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: prata-glitter-shimmer 7s linear infinite;
  filter: drop-shadow(0 4px 8px rgba(75, 25, 110, 0.6)) 
          drop-shadow(0 0 14px rgba(241, 223, 242, 0.95))
          drop-shadow(0 0 25px rgba(173, 92, 255, 0.7));
}

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

.hero-tagline {
  font-family: var(--font-heading);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  color: var(--violet-medium);
  letter-spacing: 1px;
  margin-bottom: 1.5rem;
}

.numero-destaque {
  font-size: 1.45em;
  font-weight: 700;
  display: inline-block;
  color: var(--violet-deep);
  margin: 0 0.08em;
  line-height: 0.8;
  vertical-align: baseline;
}

.hero-subtitulo {
  font-size: clamp(1.05rem, 2.5vw, 1.35rem);
  color: var(--color-text-secondary);
  max-width: 620px;
  margin: 0 auto 3.5rem auto;
  font-weight: 400;
  text-align: center;
  line-height: 1.6;
}

.scroll-indicador {
  position: absolute;
  bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: var(--violet-medium);
  font-size: 0.9rem;
  font-weight: 500;
  text-decoration: none;
  animation: bounce 2s infinite;
}

.scroll-indicador img {
  width: 22px;
  height: 22px;
}

@keyframes bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(-8px); }
  60% { transform: translateY(-4px); }
}

/* ==========================================================================
   SEÇÃO CONTADOR REGRESSIVO (COUNTDOWN)
   ========================================================================== */
.countdown-section {
  padding: 5rem 0;
  text-align: center;
}

.section-titulo {
  font-family: var(--font-heading);
  font-size: 2rem;
  color: var(--violet-deep);
  margin-bottom: 2.5rem;
  letter-spacing: 1px;
}

.countdown-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.countdown-box {
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid var(--silver-border);
  padding: 1.75rem 2.25rem;
  border-radius: var(--radius-md);
  min-width: 120px;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-card);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.countdown-box:hover {
  transform: translateY(-5px);
  border-color: var(--violet-light);
}

.countdown-valor {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 700;
  color: var(--violet-deep);
  display: block;
}

.countdown-rotulo {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  text-transform: capitalize;
  letter-spacing: 1.5px;
  font-weight: 600;
}

/* ==========================================================================
   SEÇÃO DETALHES DO EVENTO
   ========================================================================== */
.detalhes-section {
  padding: 5rem 0;
}

.detalhes-card {
  background: rgba(255, 255, 255, 0.85);
  border: 1.5px solid var(--silver-border);
  border-radius: var(--radius-lg);
  padding: 3.5rem 2.5rem;
  text-align: center;
  backdrop-filter: blur(16px);
  box-shadow: var(--shadow-card), 0 0 0 1px rgba(255, 255, 255, 0.9) inset;
  max-width: 720px;
  margin: 0 auto;
  position: relative;
}

.detalhes-card::before {
  content: "";
  position: absolute;
  inset: 8px;
  border: 1px dashed rgba(173, 92, 255, 0.3);
  border-radius: calc(var(--radius-lg) - 8px);
  pointer-events: none;
}

.detalhes-icone {
  width: 52px;
  height: 52px;
  margin-bottom: 1.5rem;
}

.detalhes-item {
  margin-bottom: 1.75rem;
}

.detalhes-label {
  font-size: 0.875rem;
  color: var(--violet-medium);
  text-transform: capitalize;
  letter-spacing: 1.5px;
  font-weight: 600;
  display: block;
  margin-bottom: 0.35rem;
}

.detalhes-texto {
  font-size: 1.2rem;
  color: var(--color-text-primary);
  font-weight: 600;
}

/* ==========================================================================
   BOTÕES & AÇÕES
   ========================================================================== */
.acoes-section {
  padding: 4rem 0 7rem 0;
}

.botoes-grid {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 1.1rem 2.25rem;
  min-height: 54px;
  border-radius: 50px;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: all var(--transition-fast);
  border: none;
  outline: none;
}

.btn-primary {
  background: linear-gradient(135deg, var(--violet-medium) 0%, var(--violet-deep) 100%);
  color: #FFFFFF;
  box-shadow: var(--shadow-glow);
  border: 1px solid var(--pink-100);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 30px rgba(150, 46, 255, 0.4);
  background: linear-gradient(135deg, var(--violet-light) 0%, var(--violet-medium) 100%);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.85);
  color: var(--violet-deep);
  border: 1.5px solid var(--violet-light);
  box-shadow: var(--shadow-card);
}

.btn-secondary:hover {
  background: #FFFFFF;
  border-color: var(--violet-deep);
  color: var(--violet-deep);
  transform: translateY(-3px);
}

.btn-icon {
  width: 22px;
  height: 22px;
}

/* ==========================================================================
   MODAIS SECUNDÁRIOS (DRESS CODE & PRESENTES)
   ========================================================================== */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: var(--bg-modal);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-normal), visibility var(--transition-normal);
}

.modal-overlay.ativo {
  opacity: 1;
  visibility: visible;
}

.modal-container {
  background: #FDFBFF;
  border: 2px solid var(--silver-border);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 560px;
  max-height: 88vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE e Edge */
  padding: 2.75rem 2.25rem;
  position: relative;
  box-shadow: 0 20px 50px rgba(35, 18, 55, 0.3);
  transform: scale(0.94);
  transition: transform var(--transition-normal);
}

.modal-container::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.modal-overlay.ativo .modal-container {
  transform: scale(1);
}

.modal-fechar {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: rgba(173, 92, 255, 0.1);
  border: 1px solid var(--violet-light);
  color: var(--violet-deep);
  font-size: 1.75rem;
  cursor: pointer;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all var(--transition-fast);
}

.modal-fechar:hover {
  color: #FFFFFF;
  background: var(--violet-medium);
}

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

.modal-titulo {
  font-family: 'Rouge Script', cursive;
  font-size: 2.6rem;
  font-weight: 400;
  color: var(--violet-deep);
  margin-bottom: 0.2rem;
  line-height: 1.2;
}

.modal-subtitulo {
  font-size: 1rem;
  color: var(--color-text-secondary);
}

.modal-body {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.img-placeholder {
  width: 100%;
  height: 230px;
  background: rgba(236, 224, 250, 0.5);
  border: 1.5px dashed var(--violet-light);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--violet-deep);
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  padding: 1.25rem;
}

/* Estilos Customizados do Modal de Presentes */
.modal-presentes-container {
  max-width: 620px;
  max-height: 85vh;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: none;
  -ms-overflow-style: none;
  position: relative;
}

.modal-presentes-container::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.modal-floral {
  position: absolute;
  width: 160px;
  height: 160px;
  object-fit: contain;
  pointer-events: none;
  opacity: 0.2;
  z-index: 0;
}

.modal-floral-tl {
  top: -15px;
  left: -15px;
}

.modal-floral-br {
  bottom: -15px;
  right: -15px;
  transform: scale(-1, -1);
}

.btn-lista-online {
  width: 100%;
  padding: 1.1rem 1.5rem;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  border-radius: 50px;
  box-shadow: 0 8px 25px rgba(150, 46, 255, 0.3);
  transition: all var(--transition-fast);
  margin-bottom: 0.5rem;
}

.btn-lista-online:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(150, 46, 255, 0.45);
}

/* Bloco PIX */
.pix-card {
  background: linear-gradient(135deg, rgba(244, 238, 251, 0.95) 0%, rgba(235, 224, 248, 0.95) 100%);
  border: 1.5px solid var(--violet-light);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.5rem;
  text-align: center;
  box-shadow: 0 6px 20px rgba(150, 46, 255, 0.08);
  position: relative;
  z-index: 1;
}

.pix-tag {
  display: inline-block;
  background: linear-gradient(135deg, var(--violet-medium) 0%, var(--violet-deep) 100%);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.25rem 0.85rem;
  border-radius: 20px;
  letter-spacing: 0.5px;
  margin-bottom: 0.5rem;
}

.pix-label {
  font-size: 0.85rem;
  color: var(--color-text-muted);
  margin-bottom: 0.2rem;
}

.pix-chave {
  font-size: 1.35rem;
  color: var(--violet-deep);
  letter-spacing: 1px;
  display: inline-block;
  font-family: var(--font-body);
}

.btn-copiar-pix {
  margin-top: 0.85rem;
  padding: 0.6rem 1.25rem;
  font-size: 0.9rem;
  min-height: 40px;
  width: 100%;
}

/* Dress Code Modal Card */
.dress-code-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
  text-align: center;
  padding: 0.5rem;
}

.dress-code-badge {
  background: linear-gradient(135deg, var(--violet-medium) 0%, var(--violet-deep) 100%);
  color: #FFFFFF;
  font-family: 'Rouge Script', cursive;
  font-size: 1.8rem;
  font-weight: 400;
  padding: 0.5rem 1.8rem;
  border-radius: 50px;
  box-shadow: var(--shadow-card);
  letter-spacing: 0.5px;
}

.dress-code-mensagem {
  font-size: 1.05rem;
  color: var(--color-text-primary);
  line-height: 1.5;
}

.dress-code-alerta {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  background: rgba(255, 230, 240, 0.7);
  border: 1.5px solid var(--pink-300);
  border-radius: var(--radius-md);
  padding: 1rem 1.25rem;
  text-align: left;
  margin-top: 0.5rem;
  width: 100%;
}

.alerta-icone {
  font-size: 1.5rem;
  line-height: 1;
}

.alerta-texto strong {
  color: var(--violet-deep);
  display: block;
  margin-bottom: 0.2rem;
  font-size: 0.95rem;
}

.alerta-texto p {
  font-size: 0.92rem;
  color: var(--color-text-primary);
  margin: 0;
}

/* Presentes Grid */
.presentes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  position: relative;
  z-index: 1;
}

.presentes-card {
  background: rgba(255, 255, 255, 0.9);
  border: 1.5px solid rgba(196, 138, 255, 0.3);
  border-radius: var(--radius-md);
  padding: 1.25rem 1.35rem;
  backdrop-filter: blur(8px);
  box-shadow: 0 4px 15px rgba(88, 51, 128, 0.05);
  transition: transform var(--transition-fast), border-color var(--transition-fast);
}

.presentes-card:hover {
  transform: translateY(-3px);
  border-color: var(--violet-medium);
}

.presentes-card.full-width {
  grid-column: 1 / -1;
}

.presentes-card-icon {
  font-size: 1.5rem;
  margin-bottom: 0.35rem;
}

.presentes-card h4 {
  font-family: 'Rouge Script', cursive;
  font-size: 1.85rem;
  font-weight: 400;
  color: var(--violet-deep);
  margin-bottom: 0.4rem;
  border-bottom: 1px dashed rgba(196, 138, 255, 0.3);
  padding-bottom: 0.2rem;
  line-height: 1.2;
}

.presentes-lista-itens {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.95rem;
  color: var(--color-text-primary);
}

.presentes-lista-itens strong {
  color: var(--violet-medium);
}

.obs-tag {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  font-style: italic;
  background: rgba(255, 204, 227, 0.3);
  padding: 0.35rem 0.65rem;
  border-radius: 6px;
  border-left: 3px solid var(--pink-500);
  margin-top: 0.2rem;
}

/* Rodapé */
.footer {
  text-align: center;
  padding: 2.5rem 0;
  border-top: 1px solid var(--silver-border);
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* ==========================================================================
   PÉTALAS CAINDO (ANIMAÇÃO DE FUNDO)
   ========================================================================== */
.petala {
  position: fixed;
  top: -30px;
  z-index: 8;
  pointer-events: none;
  opacity: 0;
  font-size: 1.2rem;
  animation: petala-cair linear infinite;
}

@keyframes petala-cair {
  0% {
    opacity: 0;
    transform: translateY(0) rotate(0deg) translateX(0);
  }
  10% { opacity: 0.7; }
  90% { opacity: 0.4; }
  100% {
    opacity: 0;
    transform: translateY(100vh) rotate(360deg) translateX(80px);
  }
}

/* ==========================================================================
   MEDIA QUERIES (RESPONSIVIDADE MÓVEL)
   ========================================================================== */
@media (max-width: 768px) {
  :root {
    --floral-size: 200px;
  }

  .envelope-container {
    width: 320px;
    height: 440px;
  }

  .envelope-aba { height: 200px; }
  .envelope-frente { height: 260px; }

  .envelope-selo {
    width: 90px;
    height: 90px;
  }
  .selo-icone { font-size: 1.3rem; }
  .selo-texto { font-size: 0.55rem; }

  .carta-floral {
    width: 90px;
    height: 90px;
  }
  .carta-ornament-top { width: 150px; }
  .carta-ornament-bottom { width: 150px; }
  .carta-titulo { font-size: 1.3rem; }

  .corner-tl, .corner-tr { top: -10px; }
  .corner-bl, .corner-br { bottom: -10px; }
  .corner-tl { left: -10px; }
  .corner-tr { right: -10px; }
  .corner-bl { left: -10px; }
  .corner-br { right: -10px; }

  .frame-border {
    top: 18px; left: 18px; right: 18px; bottom: 18px;
  }

  .hero-ornament-top { width: 180px; }
  .hero-titulo { font-size: 2.3rem; }
  .countdown-grid { gap: 0.75rem; }
  .countdown-box { padding: 1.2rem 1.25rem; min-width: 85px; }
  .countdown-valor { font-size: 2rem; }
  .botoes-grid { flex-direction: column; width: 100%; }
  .btn { width: 100%; }
}

@media (max-width: 480px) {
  :root {
    --floral-size: 150px;
  }

  .envelope-container {
    width: 280px;
    height: 400px;
  }

  .envelope-aba { height: 180px; }
  .envelope-frente { height: 230px; }

  .envelope-selo {
    width: 80px;
    height: 80px;
  }

  .carta-floral {
    width: 70px;
    height: 70px;
  }

  .frame-border {
    top: 12px; left: 12px; right: 12px; bottom: 12px;
  }
}
