/* ================================================
   Chá Revelação – Glauco & Mariane
   Design: Clean White · Natureza · Mobile-first
   ================================================ */

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

/* ── Variáveis base (neutro/branco) ── */
:root {
  --bg:         #ffffff;
  --bg-soft:    #f7f5f2;
  --surface:    #ffffff;
  --text:       #1e1a14;
  --muted:      #7a7068;
  --subtle:     #b8b0a6;
  --border:     rgba(0,0,0,.08);
  --border-md:  rgba(0,0,0,.12);
  --shadow-xs:  0 1px 4px rgba(0,0,0,.06);
  --shadow-sm:  0 2px 12px rgba(0,0,0,.07);
  --shadow-md:  0 6px 28px rgba(0,0,0,.1);
  --shadow-lg:  0 14px 50px rgba(0,0,0,.12);
  --radius:     .875rem;
  --radius-lg:  1.25rem;

  /* Verde mata */
  --green:      #3d6e4f;
  --green2:     #5f9475;
  --green-lt:   #eaf3ec;

  /* Cores temáticas (default = neutro, muda com data-team) */
  --team-bg:    #ffffff;
  --team-soft:  #f7f5f2;
  --team-accent:#3d6e4f;
  --team-lt:    #eaf3ec;
  --team-pill:  rgba(61,110,79,.1);

  /* Gender reveal */
  --pink:       #e879a0;
  --pink-lt:    #fce7f0;
  --blue:       #5b9fd4;
  --blue-lt:    #deeeff;
  --gold:       #c9a84c;

  --section-py: 3.5rem;
  --px: 1.25rem;
}

/* ── Tema Menina (rosa bebê) ── */
[data-team="menina"] {
  --team-bg:     #fff5f9;
  --team-soft:   #ffe8f2;
  --team-accent: #d1607e;
  --team-lt:     #ffd6e8;
  --team-pill:   rgba(209,96,126,.12);
}

/* ── Tema Menino (azul bebê) ── */
[data-team="menino"] {
  --team-bg:    #f3f8ff;
  --team-soft:  #dbeeff;
  --team-accent:#3a82b8;
  --team-lt:    #c5e3f7;
  --team-pill:  rgba(58,130,184,.12);
}

@media (min-width: 640px) {
  :root { --section-py: 5rem; --px: 2rem; }
}

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

body {
  font-family: 'Poppins', sans-serif;
  background: var(--team-bg);
  color: var(--text);
  overflow-x: hidden;
  line-height: 1.65;
  padding-left:  env(safe-area-inset-left);
  padding-right: env(safe-area-inset-right);
  transition: background-color .6s ease;
}

/* ── Fundo decorativo leve ── */
.nature-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(ellipse at 5%  8%, rgba(61,110,79,.06)  0%, transparent 40%),
    radial-gradient(ellipse at 96% 5%, rgba(201,168,76,.05) 0%, transparent 35%),
    radial-gradient(ellipse at 93% 93%, rgba(91,159,212,.05) 0%, transparent 40%),
    radial-gradient(ellipse at  5% 95%, rgba(232,120,154,.04) 0%, transparent 35%);
  transition: opacity .6s;
}

/* partículas de pólen */
.particle {
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
  animation: floatParticle var(--dur,6s) ease-in-out infinite var(--delay,0s);
}

@keyframes floatParticle {
  0%,100% { transform: translate(0,0);      opacity: .18; }
  33%      { transform: translate(6px,-12px); opacity: .45; }
  66%      { transform: translate(-4px,-6px); opacity: .28; }
}

/* ── Layout ── */
.container {
  max-width: 960px;
  margin: 0 auto;
  padding: 0 var(--px);
  position: relative;
  z-index: 1;
}

section {
  padding: var(--section-py) 0;
  position: relative;
  z-index: 1;
  transition: background-color .6s ease;
}

/* ── Gradient text ── */
.gradient-text {
  background: linear-gradient(135deg, var(--gold) 10%, var(--green) 55%, #2a5038 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ════════════════════════════════════════════════
   HERO
   ════════════════════════════════════════════════ */
#hero {
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: max(env(safe-area-inset-top), 3rem) var(--px) 4rem;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

/* Ramo botânico — canto superior esquerdo */
#hero::before {
  content: '';
  position: absolute;
  top: -16px; left: -16px;
  width: min(260px, 44vw);
  aspect-ratio: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 260 260'%3E%3Cpath d='M0 260 C55 185 115 145 260 5' stroke='%233d6e4f' stroke-width='1.5' fill='none' stroke-linecap='round' opacity='.22'/%3E%3Cellipse cx='65' cy='190' rx='26' ry='15' fill='%235f9475' opacity='.18' transform='rotate(-42 65 190)'/%3E%3Cellipse cx='105' cy='150' rx='22' ry='13' fill='%233d6e4f' opacity='.16' transform='rotate(-56 105 150)'/%3E%3Cellipse cx='145' cy='112' rx='20' ry='12' fill='%235f9475' opacity='.17' transform='rotate(-65 145 112)'/%3E%3Cellipse cx='185' cy='76' rx='19' ry='11' fill='%233d6e4f' opacity='.14' transform='rotate(-70 185 76)'/%3E%3Cpath d='M35 240 C26 218 42 205 58 214' stroke='%235f9475' stroke-width='1' fill='none' opacity='.22'/%3E%3Cpath d='M78 198 C68 176 84 163 100 172' stroke='%233d6e4f' stroke-width='1' fill='none' opacity='.2'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  opacity: .9;
}

/* Ramo botânico — canto inferior direito */
#hero::after {
  content: '';
  position: absolute;
  bottom: -16px; right: -16px;
  width: min(220px, 38vw);
  aspect-ratio: 1;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 220 220'%3E%3Cpath d='M220 0 C165 75 105 115 0 220' stroke='%233d6e4f' stroke-width='1.5' fill='none' stroke-linecap='round' opacity='.22'/%3E%3Cellipse cx='175' cy='48' rx='24' ry='13' fill='%235f9475' opacity='.18' transform='rotate(42 175 48)'/%3E%3Cellipse cx='138' cy='85' rx='21' ry='12' fill='%233d6e4f' opacity='.16' transform='rotate(56 138 85)'/%3E%3Cellipse cx='100' cy='123' rx='19' ry='11' fill='%235f9475' opacity='.17' transform='rotate(65 100 123)'/%3E%3Cellipse cx='62' cy='160' rx='22' ry='13' fill='%233d6e4f' opacity='.15' transform='rotate(46 62 160)'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-size: contain;
  pointer-events: none;
  opacity: .85;
}

/* ── Eyebrow "Chá Revelação" ── */
.hero-eyebrow {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1.5rem;
  width: 100%;
  max-width: 380px;
}

.eyebrow-text {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.35rem, 5vw, 1.9rem);
  font-weight: 700;
  color: var(--team-accent, var(--green));
  white-space: nowrap;
  letter-spacing: .01em;
  transition: color .4s;
}

.eyebrow-line {
  flex: 1;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--team-accent, var(--green)));
  opacity: .35;
  border-radius: 2px;
}

.eyebrow-line-r {
  background: linear-gradient(90deg, var(--team-accent, var(--green)), transparent);
}

/* Nomes */
.hero-names {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(3rem, 12vw, 6.5rem);
  font-weight: 700;
  line-height: 1.05;
  margin-bottom: .2rem;
}

.hero-e {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.1rem, 3.5vw, 1.8rem);
  color: var(--muted);
  display: block;
  margin: .1rem 0;
}

/* Subtítulo */
.hero-subtitle {
  font-size: clamp(.85rem, 2.8vw, 1.05rem);
  color: var(--muted);
  font-weight: 400;
  margin: .75rem 0 1.75rem;
}

/* ═══════════════════════════════════
   COUNTDOWN — tiles individuais
   ═══════════════════════════════════ */
.hero-countdown {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  margin-bottom: 1.6rem;
  width: 100%;
  max-width: 380px;
}

/* Tile individual */
.ct-tile {
  flex: 1;
  background: var(--surface);
  border: 1px solid var(--border-md);
  border-radius: var(--radius);
  padding: .85rem .25rem .65rem;
  text-align: center;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  transition: border-color .4s, box-shadow .4s;
}

[data-team="menina"] .ct-tile { border-color: rgba(209,96,126,.2); }
[data-team="menino"] .ct-tile { border-color: rgba(58,130,184,.2); }

/* Número */
.ct-num {
  display: block;
  font-size: clamp(1.85rem, 7.5vw, 3rem);
  font-weight: 700;
  color: var(--team-accent, var(--green));
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -.5px;
  transition: transform .15s, color .4s;
}

/* Label abaixo */
.ct-lbl {
  display: block;
  font-size: .58rem;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--subtle);
  margin-top: .35rem;
}

/* Separador : */
.ct-dot {
  font-size: clamp(1.4rem, 5vw, 2rem);
  font-weight: 700;
  color: var(--team-accent, var(--green));
  opacity: .3;
  flex-shrink: 0;
  line-height: 1;
  margin-bottom: 1rem; /* alinha com número, não label */
  transition: color .4s;
}

/* Countdown finalizado */
.countdown-ended {
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.4rem, 5vw, 2.2rem);
  color: var(--green);
  text-align: center;
  animation: pulse 1.5s ease-in-out infinite;
  margin-bottom: 1.5rem;
}

@keyframes pulse {
  0%,100% { opacity:1;  transform: scale(1); }
  50%      { opacity:.8; transform: scale(1.03); }
}

/* ── Info chips — texto limpo, sem pill ── */
.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 0;
  margin-bottom: 1.75rem;
}

.chip {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  font-size: clamp(.78rem, 2.5vw, .88rem);
  color: var(--muted);
  white-space: nowrap;
  padding: .2rem .6rem;
}

/* Ponto separador entre chips */
.chip + .chip::before {
  content: '·';
  padding-right: .6rem;
  opacity: .35;
}

.chip-link {
  text-decoration: none;
  cursor: pointer;
  transition: color .2s;
}
.chip-link:hover { color: var(--green); }

/* ── CTA ── */
.btn-hero-cta {
  font-size: clamp(.88rem, 3vw, 1rem);
  padding: .95rem 2.5rem;
  border-radius: 50px;
}

/* ── Seta scroll ── */
.scroll-down {
  position: absolute;
  bottom: max(env(safe-area-inset-bottom), 1.25rem);
  left: 50%;
  transform: translateX(-50%);
  animation: bounce 2s ease-in-out infinite;
  color: var(--subtle);
  font-size: 1.1rem;
  text-decoration: none;
}

@keyframes bounce {
  0%,100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(6px); }
}

/* ════════════════════════════════════════════════
   Títulos de seção
   ════════════════════════════════════════════════ */
.section-title {
  text-align: center;
  font-family: 'Dancing Script', cursive;
  font-size: clamp(1.8rem, 5.5vw, 3rem);
  margin-bottom: .4rem;
  color: var(--text);
}

.section-divider {
  width: 36px;
  height: 2px;
  background: linear-gradient(90deg, var(--team-accent, var(--green)), var(--gold));
  border-radius: 2px;
  margin: .6rem auto 1rem;
  transition: background .4s;
}

.section-sub {
  text-align: center;
  color: var(--muted);
  font-size: .88rem;
  margin-bottom: 2.25rem;
}

/* ════════════════════════════════════════════════
   DETALHES
   ════════════════════════════════════════════════ */
#detalhes {
  background: var(--team-soft, var(--bg-soft));
}

.details-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: .75rem;
}

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

@media (min-width: 768px) {
  .details-grid { gap: 1.1rem; }
}

.detail-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.25rem .85rem;
  text-align: center;
  box-shadow: var(--shadow-xs);
  transition: transform .22s, box-shadow .22s, border-color .4s;
}

@media (hover: hover) {
  .detail-item:hover { transform: translateY(-2px); box-shadow: var(--shadow-sm); }
}

.detail-item .di-icon { font-size: 1.8rem; display: block; margin-bottom: .5rem; }

.detail-item h4 {
  font-size: .64rem;
  letter-spacing: .13em;
  text-transform: uppercase;
  color: var(--team-accent, var(--green));
  margin-bottom: .28rem;
  font-weight: 600;
  transition: color .4s;
}

.detail-item p   { font-size: .88rem; font-weight: 600; line-height: 1.3; }
.detail-item small { display: block; color: var(--muted); font-size: .72rem; margin-top: .2rem; }

/* ════════════════════════════════════════════════
   COMO CHEGAR
   ════════════════════════════════════════════════ */
#como-chegar {
  background: var(--surface);
  border-top: 1px solid var(--border);
}

/* chip clicável no hero */
.chip-link {
  text-decoration: none;
  cursor: pointer;
  transition: background .2s, border-color .2s;
}
.chip-link:hover {
  background: var(--green-lt);
  border-color: rgba(61,110,79,.3);
  color: var(--green);
}

/* Grid: mapa | info */
.chegar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 680px) {
  .chegar-grid { grid-template-columns: 1fr 340px; gap: 2rem; }
}

/* Iframe do mapa */
.chegar-map {
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  background: var(--bg-soft);
  min-height: 280px;
  position: relative;
}

.chegar-map iframe {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: 0;
}

/* Coluna direita */
.chegar-info {
  display: flex;
  flex-direction: column;
  gap: .85rem;
}

.chegar-card {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  display: flex;
  gap: .85rem;
  align-items: flex-start;
}

.chegar-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  line-height: 1;
  margin-top: .1rem;
}

.chegar-card strong {
  display: block;
  font-size: .82rem;
  font-weight: 700;
  color: var(--team-accent, var(--green));
  margin-bottom: .25rem;
  letter-spacing: .02em;
  transition: color .4s;
}

.chegar-card p {
  font-size: .82rem;
  color: var(--muted);
  line-height: 1.5;
}

.chegar-card a {
  color: var(--team-accent, var(--green));
  text-decoration: none;
  font-weight: 600;
  transition: color .4s;
}
.chegar-card a:hover { text-decoration: underline; }

/* Botões de navegação */
.chegar-btns {
  display: flex;
  flex-direction: column;
  gap: .6rem;
}

.btn-nav {
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .75rem 1.1rem;
  border-radius: var(--radius);
  font-size: .85rem;
  font-weight: 600;
  font-family: 'Poppins', sans-serif;
  text-decoration: none;
  transition: all .2s;
  border: 1px solid transparent;
  min-height: 48px;
}

.btn-nav:active { transform: scale(.98); }

.btn-gmaps {
  background: #e8f4fd;
  border-color: rgba(59,130,246,.2);
  color: #1e40af;
}
.btn-gmaps:hover { background: #dbeafe; }

.btn-waze {
  background: #e8f5e9;
  border-color: rgba(61,110,79,.2);
  color: #1b5e20;
}
.btn-waze:hover { background: #c8e6c9; }

.btn-whats {
  background: #f0fdf4;
  border-color: rgba(34,197,94,.2);
  color: #15803d;
}
.btn-whats:hover { background: #dcfce7; }

/* ════════════════════════════════════════════════
   TIMES — o destaque da página
   ════════════════════════════════════════════════ */
#times { text-align: center; background: var(--surface); }

.teams-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  max-width: 480px;
  margin: 0 auto;
}

.team-card {
  border-radius: var(--radius-lg);
  padding: 2rem .75rem 1.75rem;
  cursor: pointer;
  transition: transform .25s, box-shadow .25s, border-color .25s, background .25s;
  border: 2px solid transparent;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  position: relative;
  overflow: hidden;
}

@media (hover: hover) { .team-card:hover { transform: translateY(-4px); } }
.team-card:active { transform: scale(.97); }

/* Estado selecionado */
.team-card.selected { transform: translateY(-4px); }

.team-card.menina {
  background: linear-gradient(160deg, #fff5f8 0%, #ffe8f2 100%);
  border-color: rgba(232,120,154,.25);
}

.team-card.menina.selected {
  border-color: #e879a0;
  box-shadow: 0 8px 30px rgba(232,120,154,.3);
}

.team-card.menino {
  background: linear-gradient(160deg, #f3f9ff 0%, #dbeeff 100%);
  border-color: rgba(91,159,212,.25);
}

.team-card.menino.selected {
  border-color: #5b9fd4;
  box-shadow: 0 8px 30px rgba(91,159,212,.3);
}

/* Checkmark de selecionado */
.team-card::after {
  content: '✓';
  position: absolute;
  top: .65rem; right: .75rem;
  font-size: 1rem;
  font-weight: 700;
  opacity: 0;
  transition: opacity .2s;
}

.team-card.menina::after { color: #e879a0; }
.team-card.menino::after { color: #5b9fd4; }
.team-card.selected::after { opacity: 1; }

.team-emoji { font-size: 2.8rem; display: block; margin-bottom: .7rem; line-height: 1; }
.team-label { font-weight: 700; font-size: .92rem; display: block; }

/* ════════════════════════════════════════════════
   RSVP
   ════════════════════════════════════════════════ */
#confirmacao { background: var(--team-soft, var(--bg-soft)); }

.rsvp-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  transition: border-color .4s;
}

@media (min-width: 480px) { .rsvp-card { padding: 2.25rem 2rem; } }

[data-team="menina"] .rsvp-card { border-color: rgba(232,120,154,.2); }
[data-team="menino"] .rsvp-card { border-color: rgba(91,159,212,.2); }

.rsvp-card .icon-big { font-size: 2.75rem; display: block; text-align: center; margin-bottom: 1rem; }

.rsvp-card h3 {
  font-family: 'Dancing Script', cursive;
  font-size: 1.75rem;
  text-align: center;
  color: var(--team-accent, var(--green));
  margin-bottom: .35rem;
  transition: color .4s;
}

.rsvp-card > p {
  text-align: center;
  color: var(--muted);
  font-size: .86rem;
  margin-bottom: 1.6rem;
  line-height: 1.55;
}

/* ── Form ── */
.form-group { margin-bottom: 1rem; }

.form-group label {
  display: block;
  font-size: .8rem;
  color: var(--muted);
  margin-bottom: .3rem;
  font-weight: 500;
}

.form-control {
  width: 100%;
  background: var(--bg-soft);
  border: 1.5px solid var(--border-md);
  border-radius: .75rem;
  padding: .85rem .95rem;
  color: var(--text);
  font-size: 1rem;
  font-family: 'Poppins', sans-serif;
  transition: border-color .2s, box-shadow .2s, background .2s;
  outline: none;
  -webkit-appearance: none;
  appearance: none;
  min-height: 48px;
}

.form-control:focus {
  border-color: var(--team-accent, var(--green));
  box-shadow: 0 0 0 3px var(--team-pill, rgba(61,110,79,.12));
  background: var(--surface);
}

.form-control::placeholder { color: var(--subtle); }

select.form-control {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='11' height='7' viewBox='0 0 11 7'%3E%3Cpath d='M1 1l4.5 4.5L10 1' stroke='%237a7068' stroke-width='1.4' fill='none' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right .85rem center;
  padding-right: 2.4rem;
  cursor: pointer;
}

select.form-control option { background: var(--surface); color: var(--text); }

.form-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }

/* Radios palpite */
.radio-row {
  display: flex;
  flex-wrap: wrap;
  gap: .5rem;
  margin-top: .35rem;
}

.radio-label {
  display: flex;
  align-items: center;
  gap: .4rem;
  cursor: pointer;
  flex: 1 1 calc(33% - .5rem);
  min-width: 0;
  border-radius: .65rem;
  padding: .65rem .6rem;
  font-size: .84rem;
  font-weight: 500;
  min-height: 48px;
  transition: background .2s, border-color .2s;
  -webkit-tap-highlight-color: transparent;
  white-space: nowrap;
}

.radio-label input[type="radio"] { width: 1rem; height: 1rem; flex-shrink: 0; }

.menina-label {
  background: #fff0f5;
  border: 1.5px solid rgba(232,120,154,.3);
  color: #be185d;
}
.menina-label:has(input:checked) { background: #fce7f0; border-color: #e879a0; }
.menina-label input { accent-color: #e879a0; }

.menino-label {
  background: #f0f8ff;
  border: 1.5px solid rgba(91,159,212,.3);
  color: #1d4ed8;
}
.menino-label:has(input:checked) { background: #dbeeff; border-color: #5b9fd4; }
.menino-label input { accent-color: #5b9fd4; }

.surpresa-label {
  background: #fafaf7;
  border: 1.5px solid rgba(120,113,108,.2);
  color: #57534e;
}
.surpresa-label:has(input:checked) { background: #f5f5f0; border-color: #a8a29e; }
.surpresa-label input { accent-color: #78716c; }

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .88rem 1.75rem;
  border-radius: .75rem;
  font-size: .93rem;
  font-family: 'Poppins', sans-serif;
  font-weight: 600;
  cursor: pointer;
  transition: all .2s;
  border: none;
  text-decoration: none;
  letter-spacing: .02em;
  min-height: 48px;
  -webkit-tap-highlight-color: transparent;
}

.btn-primary {
  background: var(--team-accent, var(--green));
  color: #fff;
  box-shadow: 0 4px 16px rgba(0,0,0,.15);
  transition: background .4s, box-shadow .2s, transform .2s;
}

@media (hover: hover) {
  .btn-primary:hover { filter: brightness(1.08); box-shadow: 0 6px 22px rgba(0,0,0,.2); }
}

.btn-primary:active { transform: scale(.97); }
.btn-full { width: 100%; margin-top: .2rem; }

/* ── Alertas ── */
.alert {
  border-radius: .75rem;
  padding: .85rem 1rem;
  margin-top: .85rem;
  font-size: .86rem;
  line-height: 1.5;
}

.alert-success { background: #f0fdf4; border: 1px solid #86efac; color: #166534; }
.alert-error   { background: #fff5f5; border: 1px solid #fca5a5; color: #991b1b; }
.alert-info    { background: #eff6ff; border: 1px solid #93c5fd; color: #1e40af; }

.rsvp-update-notice {
  margin-bottom: 1.2rem;
  border-radius: var(--radius);
  font-size: .9rem;
  line-height: 1.5;
}

/* ════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════ */
footer {
  background: var(--team-soft, var(--bg-soft));
  border-top: 1px solid var(--border);
  padding: 2rem 0 max(env(safe-area-inset-bottom), 2rem);
  text-align: center;
  color: var(--muted);
  font-size: .8rem;
  position: relative;
  z-index: 1;
  transition: background .6s;
}

footer .hearts {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  font-family: 'Dancing Script', cursive;
  font-size: 1.05rem;
  color: var(--team-accent, var(--green));
  margin-bottom: .35rem;
  transition: color .4s;
}

/* ════════════════════════════════════════════════
   FLUTUANTES
   ════════════════════════════════════════════════ */
.float-el {
  position: fixed;
  pointer-events: none;
  z-index: 0;
  animation: floatUp var(--dur,9s) ease-in var(--delay,0s) infinite;
  opacity: 0;
  font-size: var(--size, 1.1rem);
  left: var(--x, 50%);
  bottom: -3rem;
}

@keyframes floatUp {
  0%   { opacity: 0;   transform: translateY(0) rotate(0deg); }
  8%   { opacity: .4; }
  92%  { opacity: .2; }
  100% { opacity: 0;   transform: translateY(-110vh) rotate(20deg); }
}

/* ════════════════════════════════════════════════
   UTILITÁRIOS
   ════════════════════════════════════════════════ */
.hidden { display: none !important; }

.spinner {
  display: inline-block;
  width: 1rem; height: 1rem;
  border: 2px solid rgba(0,0,0,.12);
  border-top-color: currentColor;
  border-radius: 50%;
  animation: spin .6s linear infinite;
  vertical-align: middle;
}
@keyframes spin { to { transform: rotate(360deg); } }

#confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 999; }

.admin-link {
  position: fixed;
  bottom: max(env(safe-area-inset-bottom), .75rem);
  right: .75rem;
  opacity: .08;
  transition: opacity .3s;
  z-index: 10;
  font-size: .6rem;
  color: var(--muted);
  text-decoration: none;
  padding: .3rem;
}
.admin-link:hover { opacity: .45; }

/* ════════════════════════════════════════════════
   ADMIN – tema escuro (body.admin)
   ════════════════════════════════════════════════ */
body.admin {
  background: #0f0a1e;
  color: #fff;
  --bg: #0f0a1e;
  --bg-soft: #1a1035;
  --surface: #1e1540;
  --text: #ffffff;
  --muted: #c4b5fd;
  --subtle: #8b7cc8;
  --border: rgba(255,255,255,.1);
  --border-md: rgba(255,255,255,.15);
  --shadow-xs: none;
  --shadow-sm: none;
  --shadow-md: 0 8px 32px rgba(0,0,0,.4);
  --shadow-lg: 0 12px 48px rgba(0,0,0,.5);
  --green: #e8c96a;
  --green2: #f0d98a;
  --green-lt: rgba(232,201,106,.12);
  --team-accent: #e8c96a;
  --team-pill: rgba(232,201,106,.12);
}

body.admin .nature-bg {
  background:
    radial-gradient(ellipse at 20% 10%, rgba(124,58,237,.22) 0%, transparent 55%),
    radial-gradient(ellipse at 82% 82%, rgba(244,114,182,.12) 0%, transparent 55%),
    linear-gradient(180deg, #0f0a1e 0%, #1a1035 100%);
}

body.admin .form-control {
  background: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.14);
  color: #fff;
}
body.admin .form-control::placeholder { color: rgba(255,255,255,.3); }
body.admin select.form-control option { background: #1a1035; }
body.admin .btn-primary {
  background: linear-gradient(135deg, #c9a84c, #e8c96a);
  color: #1a1035;
}

/* admin extras */
.btn-gold { background: linear-gradient(135deg,#c9a84c,#e8c96a); color:#1a1035; font-weight:700; }
.btn-pink { background: linear-gradient(135deg,#be185d,#f472b6); color:#fff; }
.btn-blue { background: linear-gradient(135deg,#1d4ed8,#60a5fa); color:#fff; }
.btn-danger { background: rgba(248,113,113,.12); border:1px solid rgba(248,113,113,.25); color:#fca5a5; cursor:pointer; font-family:'Poppins',sans-serif; border-radius:.5rem; transition:background .2s; }
.btn-danger:hover { background: rgba(248,113,113,.25); }
