/* === Fontes === */
@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;0,700;1,400;1,500;1,600&family=Pinyon+Script&family=Cinzel:wght@400;500;600&display=swap');

/* === Tokens === */
:root {
  --paper: #15192c;        /* fundo principal */
  --paper-warm: #1d345e;   /* marinho mais claro */
  --paper-deep: #101f3a;   /* marinho mais profundo */
  --olive: #15192c;
  --olive-dark: #454e2a;
  --olive-light: #7a8753;
  --cream: #f4ead8;        /* único bege/creme da paleta */
  --ink: #15192c;          /* Cor secundária */
  --ink-soft: #2a2f47;
  --ink-mute: #595e78;
  --accent-rose: #c45f73;
  --accent-rose-soft: #e2a5b1;
  --accent-mustard: #c8a046;
  --accent-mauve: #8a6a8e;
  --line: rgba(21,25,44,0.18);
  --line-soft: rgba(21,25,44,0.1);
  --radius: 10px;
  /* Fonte do painel administrativo (visual de sistema de gestão) */
  --adm-font: 'Segoe UI', system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body {
  background-color: var(--paper);
  min-height: 100vh;
}

/* === Tipo === */
.font-script { font-family: 'Pinyon Script', cursive; font-weight: 400; }
.font-display { font-family: 'Cinzel', 'Cormorant Garamond', serif; letter-spacing: 0.08em; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; }

/* === Layout shell === */
.shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 28px;
  border-bottom: 1px solid transparent;
  background: transparent;
  backdrop-filter: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 30;
  transition: background 0.3s ease, border-color 0.3s ease, backdrop-filter 0.3s ease;
}
.topbar.scrolled {
  background: rgba(244,234,216,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line-soft);
}
.topbar .brand {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.22em;
  font-size: 14px;
  color: var(--ink);
  white-space: nowrap;
}
.topbar .topbar-date {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.18em;
  font-size: 12px;
  color: var(--ink-mute);
}
.topbar nav {
  display: flex;
  gap: 28px;
}
.topbar nav a {
  color: var(--ink);
  text-decoration: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  font-style: italic;
  position: relative;
  padding: 4px 0;
  cursor: pointer;
}
.topbar nav a:hover { color: var(--olive-dark); }
.topbar nav a.active::after {
  content: "";
  position: absolute;
  bottom: -2px; left: 0; right: 0;
  height: 1px;
  background: var(--olive);
}

/* === Main content === */
.main {
  flex: 1;
  padding-bottom: 100px;
}
@media (min-width: 768px) {
  .main { padding-bottom: 0; }
}

/* === Section === */
.section {
  padding: 64px 24px;
  position: relative;
  scroll-margin-top: 72px;
  background: #15192c;
}
.section-inner {
  max-width: 1080px;
  margin: 0 auto;
}
.section.alt {
  background: #15192c;
}
.hero + .section.alt {
  border-top: none;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 500;
  font-size: clamp(26px, 4vw, 38px);
  text-align: center;
  letter-spacing: 0.02em;
  display: inline-block;
  position: relative;
  padding-bottom: 12px;
  text-wrap: balance;
  max-width: 100%;
  color: var(--cream);
}
.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(220px, 80%);
  height: 1px;
  background: var(--cream);
}
.section-eyebrow {
  font-family: 'Pinyon Script', cursive;
  color: var(--cream);
  font-size: 26px;
  text-align: center;
  margin-bottom: -2px;
}
.section-header {
  text-align: center;
  margin-bottom: 40px;
}
.section-sub {
  color: rgba(244,234,216,0.78);
  font-style: italic;
  margin: 10px auto 0;
  font-size: 16px;
  max-width: 540px;
}

/* === Hero === */
.hero {
  padding: 122px 24px 120px;
  background-color: #f4ead8;
  /* Foto de fundo + véu creme leve só para manter o texto legível */
  background-image:
    linear-gradient(rgba(244,234,216,0.30), rgba(244,234,216,0.42)),
    url("../img/imagem hero.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
  overflow: visible;
  z-index: 1;
  /* Recorta o hero com a onda: a foto preenche tudo até a borda ondulada */
  -webkit-mask:
    linear-gradient(#000, #000) top / 100% calc(100% - 88px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0H1440V32C1428 33 1414 35 1398 38C1375 40 1358 42 1340 44C1318 46 1300 48 1280 51C1258 53 1238 56 1216 59C1192 62 1172 65 1148 68C1122 71 1100 74 1076 77C1050 80 1025 83 998 84C968 83 944 85 920 85C890 83 866 80 844 76C814 73 790 69 766 65C736 63 712 62 688 60C658 58 634 59 610 61C580 60 556 62 532 63C502 62 478 63 454 63C424 62 400 60 376 58C346 56 322 55 298 54C268 52 244 51 220 50C190 48 166 47 142 47C112 45 88 45 64 45C38 44 20 44 0 44L0 0Z'/%3E%3C/svg%3E") bottom / 100% 90px no-repeat;
  mask:
    linear-gradient(#000, #000) top / 100% calc(100% - 88px) no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 90' preserveAspectRatio='none'%3E%3Cpath fill='%23000' d='M0 0H1440V32C1428 33 1414 35 1398 38C1375 40 1358 42 1340 44C1318 46 1300 48 1280 51C1258 53 1238 56 1216 59C1192 62 1172 65 1148 68C1122 71 1100 74 1076 77C1050 80 1025 83 998 84C968 83 944 85 920 85C890 83 866 80 844 76C814 73 790 69 766 65C736 63 712 62 688 60C658 58 634 59 610 61C580 60 556 62 532 63C502 62 478 63 454 63C424 62 400 60 376 58C346 56 322 55 298 54C268 52 244 51 220 50C190 48 166 47 142 47C112 45 88 45 64 45C38 44 20 44 0 44L0 0Z'/%3E%3C/svg%3E") bottom / 100% 90px no-repeat;
}
.hero-inner {
  max-width: 900px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}
.hero-eyebrow {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.36em;
  font-size: 11px;
  color: var(--ink-mute);
  margin-bottom: 32px;
}
.hero-monogram-img {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.hero-monogram-img img {
  width: clamp(220px, 40vw, 420px);
  height: auto;
  display: block;
}
.hero-names {
  font-family: 'Pinyon Script', cursive;
  font-size: clamp(40px, 7vw, 72px);
  color: var(--ink);
  margin-top: 8px;
  line-height: 1.1;
}
.hero-date {
  margin-top: 18px;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.3em;
  font-size: 13px;
  color: var(--ink-mute);
}
.hero-date span { color: var(--ink); }

/* Hero variante: framed */
.framed-wrap {
  display: flex;
  justify-content: center;
  padding: 16px 0;
}
.frame-border {
  border: 1px solid var(--ink);
  padding: 14px;
  max-width: 520px;
  width: 100%;
}
.frame-inner {
  border: 1px solid var(--ink);
  padding: 40px 28px;
  text-align: center;
}
.frame-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  font-size: 16px;
  color: var(--olive-dark);
  margin-bottom: 22px;
}
.frame-names {
  font-family: 'Cinzel', serif;
  font-size: clamp(34px, 6vw, 52px);
  line-height: 1.15;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.frame-amp {
  font-family: 'Pinyon Script', cursive;
  color: var(--accent-rose);
  font-size: 0.85em;
  margin: 4px 0;
  line-height: 0.6;
}
.frame-foot {
  margin-top: 24px;
  font-family: 'Cinzel', serif;
  font-size: 13px;
  letter-spacing: 0.32em;
  color: var(--ink-mute);
}

/* Hero variante: vertical-names */
.vert-names {
  font-family: 'Cinzel', serif;
  font-weight: 500;
  font-size: clamp(46px, 9vw, 92px);
  line-height: 1;
  text-align: center;
  color: var(--ink);
  letter-spacing: 0.04em;
}
.vert-names .nm-sep {
  display: block;
  font-family: 'Pinyon Script', cursive;
  font-weight: 400;
  font-size: 0.55em;
  color: var(--accent-rose);
  line-height: 1;
  margin: 6px 0;
}

/* === Countdown === */
.countdown {
  display: flex;
  justify-content: center;
  gap: 0;
  margin-top: 40px;
  font-family: 'Cormorant Garamond', serif;
}
.countdown-cell {
  flex: 0 0 auto;
  text-align: center;
  padding: 0 22px;
  position: relative;
}
.countdown-cell + .countdown-cell::before {
  content: "";
  position: absolute;
  left: 0; top: 18%; bottom: 18%;
  width: 1px;
  background: var(--ink);
  opacity: 0.35;
}
.countdown-cell .num {
  font-size: clamp(30px, 4.6vw, 46px);
  font-weight: 500;
  color: var(--ink);
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.countdown-cell .label {
  margin-top: 6px;
  font-size: 12px;
  font-style: italic;
  color: var(--ink-mute);
  letter-spacing: 0.06em;
}

/* === Botão === */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--olive);
  color: var(--cream);
  border: none;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  font-weight: 500;
  padding: 11px 24px;
  border-radius: 4px;
  cursor: pointer;
  letter-spacing: 0.04em;
  transition: background 0.15s;
  white-space: nowrap;
}
.btn:hover { background: var(--olive-dark); }
.btn:disabled { opacity: 0.45; cursor: not-allowed; }
.btn.ink { background: var(--ink); color: var(--cream); }
.btn.ink:hover { background: var(--ink-soft); }
.btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: var(--cream); }
.btn.small { font-size: 14px; padding: 8px 16px; }

/* === Cards base (flat) === */
.about-card,
.detail-card,
.rsvp-card,
.gift-card,
.pix-card {
  background: #f4ead8;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(21, 25, 44, 0.08), 0 1px 3px rgba(21, 25, 44, 0.05);
}

/* === About === */
.about-card {
  padding: 36px 32px;
}
.about-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  align-items: center;
}
@media (min-width: 768px) {
  .about-grid { grid-template-columns: 1.3fr 1fr; gap: 48px; }
}
.about-text p {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.65;
  color: var(--ink-soft);
  text-wrap: pretty;
}
.about-text .signature {
  font-family: 'Pinyon Script', cursive;
  font-size: 32px;
  color: var(--ink);
  margin-top: 18px;
}
.about-photo {
  position: relative;
  aspect-ratio: 3/4;
  background: rgba(91,102,56,0.06);
  border: 1px solid var(--line-soft);
  overflow: hidden;
  border-radius: 16px;
}
/* Placeholder fica ao fundo — aparece só se as fotos não carregarem */
.photo-placeholder {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-mute);
  font-style: italic;
}
.photo-label { margin-top: 10px; font-size: 14px; }

/* Slideshow com crossfade (esmaece uma sobre a outra) */
.about-slideshow {
  position: absolute;
  inset: 0;
  z-index: 1;
}
.about-slideshow .slide-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 16px;
  opacity: 0;
  transition: opacity 1.4s ease-in-out;
  pointer-events: none;
}
.about-slideshow .slide-photo.active {
  opacity: 1;
}
/* Imagem que falhou ao carregar nunca aparece (deixa ver o placeholder) */
.about-slideshow .slide-photo.missing {
  display: none;
}
@media (prefers-reduced-motion: reduce) {
  .about-slideshow .slide-photo {
    transition: opacity 0.3s ease;
  }
}

/* === Detalhes evento === */
.details-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
@media (min-width: 768px) {
  .details-grid { grid-template-columns: repeat(3, 1fr); }
}
.detail-card {
  padding: 28px 22px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.detail-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(21, 25, 44, 0.12), 0 2px 6px rgba(21, 25, 44, 0.07);
}
.detail-card .icon {
  font-size: 22px;        /* ícone usa 1em -> 22px */
  color: #15192c;
  margin-bottom: 10px;
}
.detail-card .label {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.22em;
  font-size: 11px;
  color: var(--ink-mute);
  margin-bottom: 4px;
}
.detail-card .value {
  font-size: 20px;
  color: var(--ink);
  line-height: 1.3;
  font-weight: 500;
}
.detail-card .sub {
  font-size: 14px;
  font-style: italic;
  color: var(--ink-mute);
  margin-top: 4px;
  line-height: 1.4;
}
.detail-card .link {
  margin-top: 12px;
  font-size: 13px;
  color: #15192c;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}
.ceremony-note {
  text-align: center;
  margin-top: 28px;
  color: var(--ink-mute);
  font-style: italic;
  font-size: 14px;
}
.ceremony-note svg {
  vertical-align: -3px;
  margin-right: 8px;
  color: #15192c;
}

/* === Mini Calendário === */
.mini-cal {
  margin-top: 16px;
  width: 100%;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
  font-family: 'Cinzel', serif;
}
.mini-cal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  background: #15192c;
}
.mini-cal-year {
  background: #f4ead8;
  color: #15192c;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.1em;
  padding: 3px 8px;
  border-radius: 4px;
}
.mini-cal-month {
  color: #f4ead8;
  font-size: 12px;
  letter-spacing: 0.22em;
}
.mini-cal-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  background: #f4ead8;
  padding: 6px 4px 8px;
  gap: 2px;
}
.mini-cal-dayname {
  text-align: center;
  font-size: 8px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  padding: 3px 0 5px;
}
.mini-cal-day {
  text-align: center;
  font-size: 10px;
  color: var(--ink);
  padding: 3px 0;
  line-height: 1.6;
  border-radius: 50%;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  width: 20px;
  height: 20px;
}
.mini-cal-day.empty { color: transparent; }
.mini-cal-day.wedding {
  color: #15192c;
  font-weight: 700;
  border: 1.5px solid #15192c;
  border-radius: 50%;
}

/* === Mini Mapa === */
.mini-map {
  position: relative;
  display: block;
  margin-top: 16px;
  width: 100%;
  height: 150px;
  border: 1px solid var(--line-soft);
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s ease, border-color 0.2s ease;
}
.mini-map:hover {
  border-color: #15192c;
  box-shadow: 0 4px 14px rgba(21, 25, 44, 0.14);
}
.mini-map-frame {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
  filter: grayscale(0.25) contrast(0.96);
  pointer-events: none;       /* clique inteiro abre o Google Maps */
}
.mini-map-pin {
  position: absolute;
  top: 8px;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  background: #15192c;
  color: #f4ead8;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(21, 25, 44, 0.3);
}

/* === Cores não permitidas (Dress Code) === */
.forbidden-colors {
  margin-top: auto;       /* ocupa o espaço livre do card, alinhando alturas */
  margin-bottom: auto;    /* ...e centraliza o bloco verticalmente nesse espaço */
  padding-top: 18px;
  width: 100%;
}
.forbidden-colors-title {
  font-size: 12px;
  font-style: italic;
  color: var(--ink-mute);
  line-height: 1.4;
  margin-bottom: 18px;
}
.forbidden-swatches {
  display: grid;
  grid-template-columns: repeat(2, auto);
  justify-content: center;
  gap: 22px 32px;
}
.forbidden-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.forbidden-name {
  font-size: 12px;
  color: var(--ink-mute);
  letter-spacing: 0.02em;
}
.forbidden-swatch {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--swatch);
  border: 1px solid rgba(21, 25, 44, 0.18);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.25);
  cursor: help;
}
.forbidden-swatch::after {       /* traço diagonal de "proibido" */
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: linear-gradient(
    to top left,
    transparent calc(50% - 1px),
    #c0392b calc(50% - 1px),
    #c0392b calc(50% + 1px),
    transparent calc(50% + 1px)
  );
}

/* === RSVP === */
.rsvp-card {
  padding: 30px 24px;
  max-width: 620px;
  margin: 0 auto;
}
.search-row {
  position: relative;
  margin-bottom: 14px;
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-mute);
  pointer-events: none;
}
.search-input {
  width: 100%;
  background: rgba(255,255,255,0.4);
  border: 1px solid var(--line);
  border-radius: 4px;
  padding: 12px 16px 12px 44px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  color: var(--ink);
  outline: none;
  transition: border 0.15s;
}
.search-input::placeholder { color: var(--ink-mute); font-style: italic; }
.search-input:focus { border-color: var(--olive); }

.results {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 12px;
  max-height: 320px;
  overflow-y: auto;
}
.result-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 14px;
  background: rgba(255,255,255,0.35);
  cursor: pointer;
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  transition: background 0.15s, border-color 0.15s;
}
.result-item:hover { border-color: var(--olive); background: rgba(255,255,255,0.55); }
.result-item.selected {
  background: var(--olive);
  color: var(--cream);
  border-color: var(--olive-dark);
}
.result-item.selected .meta { color: rgba(245,236,208,0.85); }
.result-item .nome { font-size: 17px; font-weight: 500; }
.result-item .meta { font-size: 13px; font-style: italic; color: var(--ink-mute); margin-top: 2px; }

.empty-state {
  text-align: center;
  padding: 24px 10px;
  color: var(--ink-mute);
  font-style: italic;
}

.rsvp-confirmed {
  text-align: center;
  padding: 14px 10px;
}
.rsvp-confirmed .check {
  width: 56px; height: 56px;
  border-radius: 50%;
  background: var(--olive);
  color: var(--cream);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}
.rsvp-confirmed h3 {
  font-family: 'Pinyon Script', cursive;
  font-size: 36px;
  color: var(--ink);
  margin-bottom: 4px;
}
.rsvp-confirmed p { color: var(--ink-mute); font-size: 16px; margin: 4px 0; }
.rsvp-confirmed .name { font-size: 22px; color: var(--ink); font-weight: 500; margin-top: 8px; }

/* === Presentes === */
.gifts-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 22px;
}
@media (min-width: 640px) {
  .gifts-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .gifts-grid { grid-template-columns: repeat(3, 1fr); }
}
.gift-card {
  padding: 20px;
  display: flex;
  gap: 18px;
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.gift-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 6px 20px rgba(21, 25, 44, 0.12), 0 2px 6px rgba(21, 25, 44, 0.07);
}
.gift-card.is-reservado {
  opacity: 0.6;
}
.gift-card.is-reservado:hover {
  transform: none;
  box-shadow: none;
}
.gift-card.is-reservado .gift-img img {
  filter: grayscale(1);
}
.gift-reservado-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(21, 25, 44, 0.08);
  color: var(--ink-mute);
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 6px;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.gift-img {
  width: 100px; height: 100px;
  flex-shrink: 0;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--line-soft);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.gift-img img { width: 100%; height: 100%; object-fit: cover; }
.gift-info { flex: 1; min-width: 0; }
.gift-info .nome {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 4px;
  line-height: 1.2;
}
.gift-info .desc {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.4;
  margin-bottom: 6px;
}
.gift-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.gift-info .preco {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink);
}
.btn-gift {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: #15192c;
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-size: 13px;
  font-weight: 500;
  padding: 6px 12px;
  border-radius: 6px;
  text-decoration: none;
  letter-spacing: 0.03em;
  white-space: nowrap;
  transition: background 0.15s, transform 0.15s;
}
.btn-gift:hover {
  background: var(--ink-soft);
  transform: translateY(-1px);
}
.gifts-toggle-wrap {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}
.btn-gifts-toggle {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: transparent;
  color: var(--cream);
  border: 1px solid rgba(244, 234, 216, 0.35);
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 0.03em;
  padding: 10px 26px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, transform 0.15s, border-color 0.15s;
}
.btn-gifts-toggle:hover {
  background: rgba(244, 234, 216, 0.08);
  border-color: var(--cream);
  transform: translateY(-1px);
}

/* === Pix === */
.pix-card {
  padding: 32px 28px;
  max-width: 540px;
  margin: 0 auto;
  text-align: center;
}
.pix-card .pix-label {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.22em;
  font-size: 11px;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.pix-key {
  background: rgba(255,255,255,0.4);
  padding: 14px 18px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--ink);
  overflow-wrap: anywhere;
  border: 1px dashed var(--olive);
  margin: 16px 0;
}
.pix-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 22px;
  font-size: 14px;
  color: var(--ink-mute);
  margin-bottom: 18px;
}
.pix-meta b { color: var(--ink); font-weight: 600; }

/* === Bottom Nav (mobile) === */
.bottomnav {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: #15192c;
  color: var(--cream);
  display: flex;
  justify-content: space-around;
  align-items: center;
  padding: 10px 8px calc(10px + env(safe-area-inset-bottom));
  z-index: 50;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.bottomnav-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  color: var(--cream);
  font-family: 'Cormorant Garamond', serif;
  font-style: italic;
  cursor: pointer;
  padding: 6px 4px;
  opacity: 0.7;
  transition: opacity 0.15s;
  position: relative;
}
.bottomnav-item:hover, .bottomnav-item.active { opacity: 1; }
.bottomnav-item.active::after {
  content: "";
  width: 4px; height: 4px;
  background: var(--cream);
  border-radius: 50%;
  position: absolute;
  bottom: 0;
}
.bottomnav-item span { font-size: 10px; }

@media (min-width: 768px) {
  .bottomnav { display: none; }
}
@media (max-width: 767px) {
  .topbar nav { display: none; }
  .topbar { padding: 12px 18px; }
  .topbar-date { font-size: 11px; }
  .section { padding: 48px 18px; }
  .about-card { padding: 26px 20px; }
  .about-text p { text-align: justify; }
  .frame-inner { padding: 28px 18px; }
  .countdown-cell { padding: 0 12px; }
}

/* === Footer === */
.footer {
  text-align: center;
  padding: 36px 24px 24px;
  background: #f4ead8;
  color: var(--ink);
}

/* === Modal de pagamento === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(21, 25, 44, 0.55);
  backdrop-filter: blur(4px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: fade-in 0.2s ease;
}
.modal-card {
  background: #f4ead8;
  border: 1px solid rgba(21,25,44,0.1);
  border-radius: 16px;
  box-shadow: 0 12px 48px rgba(21,25,44,0.18);
  padding: 48px 40px;
  max-width: 460px;
  width: 100%;
  max-height: calc(100vh - 48px);
  overflow-y: auto;
  text-align: center;
  position: relative;
  animation: slide-up 0.25s ease;
}
.modal-close {
  position: absolute;
  top: 16px; right: 18px;
  background: none;
  border: none;
  font-size: 18px;
  color: var(--ink-mute);
  cursor: pointer;
  line-height: 1;
  padding: 4px;
}
.modal-close:hover { color: var(--ink); }
.modal-eyebrow {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.3em;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.modal-title {
  font-family: 'Pinyon Script', cursive;
  font-size: 42px;
  color: var(--ink);
  margin-bottom: 24px;
}
.modal-gift-name {
  font-family: 'Cinzel', serif;
  font-size: 17px;
  font-weight: 500;
  color: var(--ink);
  margin-bottom: 6px;
}
.modal-gift-price {
  font-size: 30px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 24px;
}
.modal-badge {
  display: inline-block;
  background: #15192c;
  color: var(--cream);
  font-family: 'Cinzel', serif;
  font-size: 10px;
  letter-spacing: 0.2em;
  padding: 7px 18px;
  border-radius: 6px;
  margin-bottom: 24px;
}
.modal-divider {
  border: none;
  border-top: 1px solid rgba(21,25,44,0.1);
  margin: 0 0 20px;
}
.modal-note {
  font-size: 15px;
  color: var(--ink-mute);
  font-style: italic;
  line-height: 1.65;
}
@keyframes fade-in {
  from { opacity: 0; } to { opacity: 1; }
}
@keyframes slide-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* === Toast === */
.toast {
  position: fixed;
  bottom: 100px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: var(--cream);
  padding: 11px 20px;
  border-radius: 4px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 15px;
  z-index: 100;
  animation: toast-in 0.25s ease-out;
}
@keyframes toast-in {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}

/* ====================================================== */
/* === Área administrativa (painel dos noivos) ========= */
/* ====================================================== */
.admin-shell {
  min-height: 100vh;
  background: #15192c;
  padding: 32px 20px 80px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
}
.admin-card {
  background: #f4ead8;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: 0 8px 30px rgba(0,0,0,0.28);
  padding: 32px 28px;
  width: 100%;
  max-width: 720px;
}
.admin-eyebrow {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.3em;
  font-size: 10px;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.admin-card h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 30px;
  color: var(--ink);
  margin-bottom: 4px;
}
.admin-card h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--ink);
  margin-bottom: 18px;
}
.admin-sub { color: var(--ink-mute); font-style: italic; margin-bottom: 22px; }
.admin-muted { color: rgba(244,234,216,0.7); font-style: italic; text-align: center; padding: 30px; }

/* campos de formulário */
.admin-field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; text-align: left; }
.admin-field > span {
  font-size: 12px;
  font-family: 'Cinzel', serif;
  letter-spacing: 0.12em;
  color: var(--ink-mute);
}
.admin-field input,
.admin-field textarea {
  width: 100%;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 14px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  resize: vertical;
  transition: border-color 0.15s;
}
.admin-field input:focus,
.admin-field textarea:focus { border-color: var(--olive); }

/* campo de texto com botão de negrito */
.admin-richfield-toolbar { display: flex; gap: 6px; margin-bottom: 6px; }
.admin-bold-btn {
  width: 30px;
  height: 26px;
  border-radius: 5px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.6);
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}
.admin-bold-btn:hover { background: var(--ink); color: var(--cream); }
.admin-bold-btn:active { transform: translateY(1px); }

.admin-error {
  background: rgba(196,57,57,0.12);
  border: 1px solid rgba(196,57,57,0.4);
  color: #9e2b2b;
  padding: 10px 14px;
  border-radius: 6px;
  font-size: 14px;
  margin-bottom: 14px;
}

/* login */
.admin-login { max-width: 420px; display: flex; flex-direction: column; }
.admin-login .btn { width: 100%; }
.admin-back {
  display: block;
  margin-top: 16px;
  text-align: center;
  color: var(--ink-mute);
  font-size: 14px;
  text-decoration: none;
  font-style: italic;
}
.admin-back:hover { color: var(--ink); }

/* setup pendente */
.admin-setup code {
  display: inline-block;
  background: rgba(21,25,44,0.08);
  padding: 6px 10px;
  border-radius: 6px;
  font-family: monospace;
  font-size: 14px;
  margin: 6px 0 14px;
}
.admin-setup p { color: var(--ink-soft); line-height: 1.6; margin: 8px 0; }
.admin-setup .btn { margin-top: 16px; }

/* painel */
.admin-panel { align-items: stretch; }
.admin-header {
  width: 100%;
  max-width: 720px;
  margin: 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.admin-header h1 {
  color: var(--cream);
  font-size: 28px;
  font-family: 'Cormorant Garamond', serif;
}
.admin-header .admin-eyebrow { color: rgba(244,234,216,0.55); }
.admin-header-right { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.admin-user { font-size: 13px; color: rgba(244,234,216,0.8); font-style: italic; }
.admin-panel .admin-card,
.admin-panel .admin-list,
.admin-panel .admin-tabs,
.admin-panel .admin-resumo,
.admin-panel .add-btn {
  width: 100%;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}
.add-btn { align-self: center; }

/* abas do painel */
.admin-tabs { display: flex; gap: 8px; }
.admin-tab {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  background: rgba(244,234,216,0.08);
  border: 1px solid rgba(244,234,216,0.18);
  color: rgba(244,234,216,0.7);
  font-family: 'Cinzel', serif;
  letter-spacing: 0.08em;
  font-size: 13px;
  padding: 11px 14px;
  border-radius: 8px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.admin-tab:hover { color: var(--cream); }
.admin-tab.active {
  background: #f4ead8;
  color: var(--ink);
  border-color: #f4ead8;
}

/* resumo de confirmações */
.admin-resumo {
  background: rgba(244,234,216,0.1);
  border: 1px solid rgba(244,234,216,0.2);
  color: var(--cream);
  border-radius: 10px;
  padding: 12px 16px;
  text-align: center;
  font-size: 15px;
}
.admin-resumo b { font-weight: 700; }

/* formulário de presente */
.gift-form-grid { display: grid; grid-template-columns: 160px 1fr; gap: 22px; }
@media (max-width: 560px) { .gift-form-grid { grid-template-columns: 1fr; } }
.img-drop {
  width: 100%;
  aspect-ratio: 1;
  border: 2px dashed var(--line);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--ink-mute);
  font-size: 13px;
  line-height: 1.5;
  cursor: pointer;
  background: rgba(255,255,255,0.4);
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}
.img-drop:hover { border-color: var(--olive); background: rgba(255,255,255,0.6); }
.img-drop.has-img { border-style: solid; }
.img-drop img { width: 100%; height: 100%; object-fit: cover; }
.link-remove {
  display: block;
  margin: 8px auto 0;
  background: none;
  border: none;
  color: #9e2b2b;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
}
.gift-form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 18px; }

/* lista no painel */
.admin-list { display: flex; flex-direction: column; gap: 12px; }
.admin-gift-row {
  background: #f4ead8;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 14px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.admin-gift-reorder {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex-shrink: 0;
}
.admin-gift-reorder-btn {
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  color: var(--ink);
  cursor: pointer;
  transition: background 0.15s;
}
.admin-gift-reorder-btn:hover:not(:disabled) {
  background: rgba(21, 25, 44, 0.08);
}
.admin-gift-reorder-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}
.admin-gift-thumb {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: var(--ink-mute);
  font-style: italic;
  text-align: center;
}
.admin-gift-thumb img { width: 100%; height: 100%; object-fit: cover; }
.admin-gift-info { flex: 1; min-width: 0; }
.admin-gift-info .nome { font-weight: 600; color: var(--ink); font-size: 17px; }
.admin-gift-reservado-badge {
  display: inline-block;
  margin-left: 8px;
  background: rgba(21, 25, 44, 0.08);
  color: var(--ink-mute);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 5px;
  vertical-align: middle;
}
.admin-gift-info .desc {
  font-size: 13px;
  color: var(--ink-mute);
  margin: 2px 0;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.admin-gift-info .preco { font-weight: 600; color: var(--ink); font-size: 15px; }
.admin-gift-actions { display: flex; flex-direction: column; gap: 8px; flex-shrink: 0; }
.btn-danger {
  background: transparent;
  border: 1px solid #c0392b;
  color: #c0392b;
  font-family: 'Cormorant Garamond', serif;
  font-size: 14px;
  padding: 8px 16px;
  border-radius: 4px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.btn-danger:hover { background: #c0392b; color: #fff; }
@media (max-width: 560px) {
  .admin-gift-row { flex-wrap: wrap; }
  .admin-gift-actions { flex-direction: row; flex-wrap: wrap; width: 100%; }
  .admin-gift-actions .btn, .admin-gift-actions .btn-danger {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
    white-space: normal;
    text-align: center;
  }
}

/* formulário de grupo de convidados */
.guest-form-top { display: flex; gap: 14px; }
@media (max-width: 480px) { .guest-form-top { flex-direction: column; gap: 0; } }
.membros-list { display: flex; flex-direction: column; gap: 8px; }
.membro-row { display: flex; gap: 8px; align-items: center; }
.membro-row input {
  flex: 1;
  background: rgba(255,255,255,0.6);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 16px;
  color: var(--ink);
  outline: none;
}
.membro-row input:focus { border-color: var(--olive); }
.membro-remove {
  flex-shrink: 0;
  width: 36px; height: 36px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--ink-mute);
  border-radius: 6px;
  cursor: pointer;
  font-size: 14px;
}
.membro-remove:hover:not(:disabled) { border-color: #c0392b; color: #c0392b; }
.membro-remove:disabled { opacity: 0.3; cursor: not-allowed; }
.membro-add { margin-top: 10px; align-self: flex-start; }

/* lista de grupos no painel */
.admin-guest-row {
  background: #f4ead8;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 16px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.admin-guest-info { flex: 1; min-width: 0; }
.guest-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.guest-rotulo { font-weight: 600; color: var(--ink); font-size: 17px; }
.guest-mesa {
  font-family: 'Cinzel', serif;
  font-size: 11px;
  letter-spacing: 0.1em;
  background: #15192c;
  color: var(--cream);
  padding: 3px 9px;
  border-radius: 20px;
}
.guest-membros { display: flex; flex-wrap: wrap; gap: 6px 8px; }
.guest-membro {
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
  color: var(--ink-soft);
  background: rgba(255,255,255,0.4);
}
.guest-membro.st-vai { border-color: #4e7a3a; color: #3c5e2d; background: rgba(78,122,58,0.12); }
.guest-membro.st-nao { border-color: #c0392b; color: #9e2b2b; background: rgba(192,57,43,0.1); }
@media (max-width: 560px) {
  .admin-guest-row { flex-wrap: wrap; }
  .admin-guest-row .admin-gift-actions { flex-direction: row; width: 100%; }
  .admin-guest-row .admin-gift-actions .btn,
  .admin-guest-row .admin-gift-actions .btn-danger { flex: 1; }
}

/* RSVP: confirmação por pessoa (site público) */
.rsvp-group { margin-top: 14px; }
.rsvp-group-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  margin-bottom: 4px;
}
.rsvp-group-head .nome { font-size: 19px; font-weight: 600; color: var(--ink); }
.link-back {
  background: none; border: none; cursor: pointer;
  color: var(--ink-mute); font-family: 'Cormorant Garamond', serif;
  font-style: italic; font-size: 15px;
}
.link-back:hover { color: var(--ink); }
.rsvp-group-sub { color: var(--ink-mute); font-style: italic; font-size: 15px; margin: 0 0 12px; }
.membros-check { display: flex; flex-direction: column; gap: 8px; }
.membro-check {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: rgba(255,255,255,0.35);
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
}
.membro-check:hover { border-color: var(--olive); }
.membro-check.on { background: rgba(91,102,56,0.1); border-color: var(--olive); }
.membro-check input { position: absolute; opacity: 0; pointer-events: none; }
.membro-check .box {
  width: 24px; height: 24px; flex-shrink: 0;
  border: 1.5px solid var(--ink-mute);
  border-radius: 6px;
  display: inline-flex; align-items: center; justify-content: center;
  color: var(--cream);
  transition: background 0.15s, border-color 0.15s;
}
.membro-check.on .box { background: var(--olive); border-color: var(--olive); }
.membro-check .nm { font-size: 17px; color: var(--ink); }
.membro-check.locked { cursor: default; opacity: 0.75; }
.membro-check.locked:hover { border-color: var(--line-soft); }
.rsvp-listagem { margin-top: 16px; text-align: left; max-width: 320px; margin-left: auto; margin-right: auto; }
.rsvp-list-title {
  font-family: 'Cinzel', serif; font-size: 11px; letter-spacing: 0.18em;
  color: var(--ink-mute); margin-bottom: 8px;
}
.rsvp-pessoa {
  display: flex; align-items: center; gap: 8px;
  font-size: 16px; padding: 4px 0; color: var(--ink);
}
.rsvp-pessoa.vai { color: #3c5e2d; }
.rsvp-pessoa.nao { color: var(--ink-mute); }

/* ============================================================ */
/* === PAINEL DE GESTÃO (visual de sistema admin) ============= */
/* ============================================================ */

/* --- Tela de login / setup / carregando --- */
.adm-auth {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  font-family: var(--adm-font);
  background: radial-gradient(1100px 560px at 50% -12%, #1d345e, #15192c 62%);
}
.adm-auth-card {
  width: 100%;
  max-width: 410px;
  background: #f4ead8;
  border-radius: 18px;
  padding: 38px 32px;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.45);
  text-align: center;
}
.adm-auth-logo {
  width: 62px;
  height: 62px;
  border-radius: 16px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--accent-rose), var(--accent-mustard));
  color: #15192c;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: 0.02em;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adm-auth-title {
  font-family: var(--adm-font);
  font-size: 22px;
  font-weight: 700;
  color: #15192c;
}
.adm-auth-sub {
  font-size: 13.5px;
  color: var(--ink-mute);
  margin: 7px 0 24px;
  line-height: 1.5;
}
.adm-auth-back {
  display: inline-block;
  margin-top: 16px;
  color: var(--ink-mute);
  font-size: 13px;
  text-decoration: none;
}
.adm-auth-back:hover { color: #15192c; }
.adm-setup code {
  display: inline-block;
  background: rgba(21, 25, 44, 0.08);
  padding: 6px 11px;
  border-radius: 7px;
  font-family: monospace;
  font-size: 13px;
  margin: 8px 0;
  color: #15192c;
}
.adm-setup p { color: var(--ink-soft); font-size: 14px; line-height: 1.6; margin: 8px 0; }
.adm-loading { color: rgba(244, 234, 216, 0.75); font-size: 15px; }

/* --- Campos de formulário (auth) --- */
.adm-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
  margin-bottom: 14px;
}
.adm-field > span {
  font-family: var(--adm-font);
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.adm-field input {
  width: 100%;
  background: #fff;
  border: 1px solid rgba(21, 25, 44, 0.16);
  border-radius: 9px;
  padding: 11px 13px;
  font-family: var(--adm-font);
  font-size: 14.5px;
  color: #15192c;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.adm-field input:focus {
  border-color: var(--accent-rose);
  box-shadow: 0 0 0 3px rgba(196, 95, 115, 0.16);
}
.adm-error {
  background: rgba(192, 57, 43, 0.1);
  border: 1px solid rgba(192, 57, 43, 0.35);
  color: #9e2b2b;
  font-size: 13px;
  padding: 9px 12px;
  border-radius: 8px;
  margin-bottom: 12px;
  text-align: left;
}

/* --- Botão primário do painel --- */
.adm-btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent-rose);
  color: #f4ead8;
  border: none;
  font-family: var(--adm-font);
  font-size: 14px;
  font-weight: 700;
  padding: 10px 18px;
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, transform 0.1s;
}
.adm-btn-primary:hover { background: #b04c61; }
.adm-btn-primary:active { transform: translateY(1px); }
.adm-btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.adm-btn-primary.block { width: 100%; margin-top: 6px; }

/* --- Layout principal: sidebar + conteúdo --- */
.adm {
  display: flex;
  min-height: 100vh;
  background: #15192c;
  color: #f4ead8;
  font-family: var(--adm-font);
}
.adm-sidebar {
  width: 252px;
  flex-shrink: 0;
  background: #101f3a;
  border-right: 1px solid rgba(244, 234, 216, 0.08);
  display: flex;
  flex-direction: column;
  padding: 20px 16px;
  position: sticky;
  top: 0;
  height: 100vh;
}
.adm-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 6px 20px;
  border-bottom: 1px solid rgba(244, 234, 216, 0.08);
  margin-bottom: 14px;
}
.adm-drawer-close { display: none; }
.adm-brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--accent-rose), var(--accent-mustard));
  color: #15192c;
  font-weight: 800;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adm-brand-text { display: flex; flex-direction: column; min-width: 0; }
.adm-brand-title { font-size: 14px; font-weight: 600; color: #f4ead8; }
.adm-brand-sub { font-size: 11px; color: rgba(244, 234, 216, 0.5); }

.adm-nav { display: flex; flex-direction: column; gap: 3px; flex: 1; }
.adm-nav-group {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: rgba(244, 234, 216, 0.4);
  margin: 16px 10px 6px;
}
.adm-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  color: rgba(244, 234, 216, 0.72);
  font-family: var(--adm-font);
  font-size: 14px;
  font-weight: 500;
  padding: 10px 12px;
  border-radius: 9px;
  cursor: pointer;
  text-decoration: none;
  transition: background 0.15s, color 0.15s, box-shadow 0.15s;
}
.adm-nav-item:hover { background: rgba(244, 234, 216, 0.06); color: #f4ead8; }
.adm-nav-item.active {
  background: rgba(196, 95, 115, 0.16);
  color: #f4ead8;
  box-shadow: inset 3px 0 0 var(--accent-rose);
}

.adm-sidebar-foot {
  border-top: 1px solid rgba(244, 234, 216, 0.08);
  padding-top: 14px;
}
.adm-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 6px 12px;
}
.adm-user-avatar {
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  border-radius: 50%;
  background: var(--accent-rose);
  color: #15192c;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adm-user-meta { display: flex; flex-direction: column; min-width: 0; }
.adm-user-name {
  font-size: 12.5px;
  color: #f4ead8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 150px;
}
.adm-user-role { font-size: 11px; color: rgba(244, 234, 216, 0.5); }
.adm-logout {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  background: transparent;
  border: 1px solid rgba(196, 95, 115, 0.5);
  color: var(--accent-rose-soft);
  font-family: var(--adm-font);
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px;
  border-radius: 9px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.adm-logout:hover {
  background: var(--accent-rose);
  border-color: var(--accent-rose);
  color: #15192c;
}

/* --- Área principal --- */
.adm-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.adm-topbar {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 13px 28px;
  border-bottom: 1px solid rgba(244, 234, 216, 0.08);
  background: rgba(16, 31, 58, 0.55);
  backdrop-filter: blur(6px);
  position: sticky;
  top: 0;
  z-index: 10;
}
.adm-topbar-right {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-left: auto;
}
.adm-topbar-user { font-size: 13px; color: rgba(244, 234, 216, 0.7); }
.adm-logout-top { width: auto; padding: 8px 16px; }
.adm-topbar-title { display: none; font-family: var(--adm-font); font-size: 17px; font-weight: 700; color: #f4ead8; }

/* Botão hambúrguer (só aparece no mobile) e overlay do menu lateral */
.adm-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  flex-shrink: 0;
  background: rgba(244, 234, 216, 0.06);
  border: 1px solid rgba(244, 234, 216, 0.12);
  border-radius: 9px;
  color: #f4ead8;
  cursor: pointer;
}
.adm-hamburger:hover { background: rgba(244, 234, 216, 0.12); }
.adm-drawer-overlay {
  display: none;
}

.adm-content { padding: 26px 28px 70px; flex: 1; }
.adm-page-head { margin-bottom: 22px; }
.adm-page-title {
  font-family: var(--adm-font);
  font-size: 26px;
  font-weight: 700;
  color: #f4ead8;
}
.adm-page-sub { font-size: 14px; color: rgba(244, 234, 216, 0.6); margin-top: 4px; }

/* --- Cards de estatística (dashboard) --- */
.adm-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 14px;
  margin-bottom: 26px;
}
.adm-stat {
  display: flex;
  align-items: center;
  gap: 14px;
  background: #f4ead8;
  border: 1px solid rgba(21, 25, 44, 0.06);
  border-radius: 14px;
  padding: 17px 20px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.18);
}
.adm-stat-icon {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
  border-radius: 11px;
  background: rgba(21, 25, 44, 0.07);
  color: #15192c;
  display: flex;
  align-items: center;
  justify-content: center;
}
.adm-stat.accent .adm-stat-icon { background: var(--accent-rose); color: #f4ead8; }
.adm-stat-num {
  font-family: var(--adm-font);
  font-size: 23px;
  font-weight: 800;
  color: #15192c;
  line-height: 1.1;
}
.adm-stat-label { font-size: 12.5px; color: var(--ink-mute); margin-top: 2px; }
.adm-stat-num-sm { font-size: 15px; font-weight: 700; word-break: break-all; line-height: 1.3; }

/* Linha com dois campos lado a lado */
.adm-form-row { display: flex; gap: 14px; }
.adm-form-row .admin-field { flex: 1; }
@media (max-width: 480px) { .adm-form-row { flex-direction: column; gap: 0; } }

/* Dica/instrução abaixo de um grupo de campos */
.adm-hint {
  font-size: 12.5px;
  color: var(--ink-mute);
  font-style: italic;
  line-height: 1.5;
  margin: 2px 0 0;
}

/* Seletor de cores do dress code (formato fixo, só muda a cor/nome) */
.adm-cores {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}
.adm-cor-item {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 255, 255, 0.5);
  border: 1px solid var(--line-soft);
  border-radius: 9px;
  padding: 8px 10px;
}
.adm-cor-pick {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: none;
  cursor: pointer;
  overflow: hidden;
}
.adm-cor-pick::-webkit-color-swatch-wrapper { padding: 0; }
.adm-cor-pick::-webkit-color-swatch { border: none; border-radius: 50%; }
.adm-cor-pick::-moz-color-swatch { border: none; border-radius: 50%; }
.adm-cor-nome {
  flex: 1;
  min-width: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 11px;
  font-family: var(--adm-font);
  font-size: 14px;
  color: #15192c;
  outline: none;
}
.adm-cor-nome:focus { border-color: var(--accent-rose); }

/* Mensagem de sucesso (ex.: Pix salvo) */
.adm-success {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(78, 122, 58, 0.12);
  border: 1px solid rgba(78, 122, 58, 0.4);
  color: #3c5e2d;
  font-size: 13.5px;
  font-weight: 600;
  padding: 10px 13px;
  border-radius: 8px;
  margin-bottom: 14px;
}

/* --- Barra de ações da seção --- */
.adm-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 4px 0 16px;
  flex-wrap: wrap;
}
.adm-section-title {
  font-family: var(--adm-font);
  font-size: 17px;
  font-weight: 700;
  color: #f4ead8;
}

/* --- Tipografia "sistema" para os formulários/listas reaproveitados --- */
.adm-content .admin-card h2,
.adm-content .admin-field > span,
.adm-content .admin-field input,
.adm-content .admin-field textarea,
.adm-content .membro-row input,
.adm-content .guest-mesa,
.adm-content .admin-muted,
.adm-content .btn,
.adm-content .btn-danger {
  font-family: var(--adm-font);
}
.adm-content .admin-card { border-radius: 14px; margin-bottom: 22px; }
.adm-content .admin-card h2 { font-size: 18px; font-weight: 700; letter-spacing: 0; }
.adm-content .admin-field > span { letter-spacing: 0.02em; font-weight: 600; text-transform: none; font-size: 12px; }
.adm-content .admin-gift-info .nome,
.adm-content .guest-rotulo { font-family: var(--adm-font); font-weight: 700; }
.adm-content .btn { font-weight: 600; }

/* --- Responsivo: sidebar vira menu lateral (hambúrguer) no mobile --- */
@media (max-width: 860px) {
  .adm-hamburger { display: inline-flex; }
  .adm-topbar-title { display: block; }
  .adm-topbar-user { display: none; }
  .adm-content { padding: 20px 16px 70px; }
  .adm-page-title { font-size: 22px; }

  .adm-sidebar {
    position: fixed;
    top: 0;
    left: 0;
    height: 100dvh;
    width: 82vw;
    max-width: 300px;
    z-index: 70;
    box-shadow: 6px 0 24px rgba(0, 0, 0, 0.35);
    transform: translateX(-100%);
    transition: transform 0.28s ease;
  }
  .adm-sidebar.open { transform: translateX(0); }

  .adm-drawer-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
    margin-left: auto;
    background: none;
    border: none;
    color: rgba(244, 234, 216, 0.7);
    cursor: pointer;
  }
  .adm-drawer-close:hover { color: #f4ead8; }

  .adm-drawer-overlay {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(9, 12, 22, 0.55);
    z-index: 65;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.28s ease;
  }
  .adm-drawer-overlay.show { opacity: 1; pointer-events: auto; }
}

@media (prefers-reduced-motion: reduce) {
  .adm-sidebar, .adm-drawer-overlay { transition: none; }
}

/* ============================================================
   Pagamento via Pix — QR Code + Copia e Cola
   ============================================================ */

/* Caixa do QR (reutilizada no modal e na seção Pix) */
.pix-qr {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.pix-qr-img {
  width: 220px;
  height: 220px;
  max-width: 70vw;
  background: #fff;
  padding: 10px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  box-shadow: 0 6px 20px rgba(21,25,44,0.12);
  image-rendering: pixelated;
}
.pix-qr-help {
  font-size: 13px;
  color: var(--ink-mute);
  line-height: 1.5;
  margin: 2px 0 4px;
  max-width: 320px;
}
.pix-qr-help b { color: var(--ink); font-weight: 600; }
.pix-copia-label {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.16em;
  font-size: 10px;
  color: var(--ink-mute);
  margin-top: 4px;
}
.pix-copia-box {
  width: 100%;
  max-width: 360px;
  background: rgba(255,255,255,0.5);
  border: 1px dashed var(--line);
  border-radius: 10px;
  padding: 10px 12px;
  max-height: 86px;
  overflow: auto;
}
.pix-copia-code {
  font-family: ui-monospace, 'Courier New', monospace;
  font-size: 11px;
  color: var(--ink-soft);
  word-break: break-all;
  line-height: 1.45;
}
.pix-copia-btn { margin-top: 2px; }
.pix-qr-aviso {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-mute);
  padding: 16px;
}

/* Divisor "ou pague pelo QR Code" na seção Pix */
.pix-qr-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 26px 0 18px;
  color: var(--ink-mute);
}
.pix-qr-divider::before,
.pix-qr-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}
.pix-qr-divider span {
  font-family: 'Cinzel', serif;
  letter-spacing: 0.16em;
  font-size: 10px;
  text-transform: uppercase;
}

/* Campo de valor (opcional) na seção Pix */
.pix-valor-field {
  display: block;
  max-width: 360px;
  margin: 0 auto 18px;
  text-align: left;
}
.pix-valor-field > span {
  display: block;
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.pix-valor-input {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.5);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
}
.pix-valor-prefixo {
  padding: 0 12px;
  color: var(--ink-mute);
  font-size: 15px;
  border-right: 1px solid var(--line-soft);
}
.pix-valor-input input {
  flex: 1;
  border: none;
  background: none;
  padding: 12px;
  font-size: 16px;
  color: var(--ink);
  outline: none;
  font-family: 'Cormorant Garamond', serif;
}

/* Modal de pagamento (mais largo e alinhado à esquerda) */
.modal-card.modal-pay {
  max-width: 760px;
  text-align: center;
  padding: 18px 48px;
}
/* Compacta a vertical do modal de pagamento p/ caber na tela */
.modal-pay .modal-title { font-size: 34px; margin-bottom: 8px; }
.modal-pay .modal-gift-price { font-size: 26px; margin-bottom: 12px; }
.modal-pay .modal-gift-name { margin-bottom: 4px; }
.modal-pay .modal-divider { margin-bottom: 14px; }
.modal-pay .pix-qr { gap: 7px; }
.modal-pay .pix-qr-img { width: 170px; height: 170px; }
.modal-pay .modal-confirm-title { margin-bottom: 10px; }
.modal-pay .admin-field { margin-bottom: 9px; }

/* Duas colunas: Pix (QR + Copia e Cola) | Confirmação "Já fiz o Pix" */
.modal-pay-cols {
  display: flex;
  gap: 30px;
  align-items: flex-start;
}
.modal-pay-cols .modal-pay-col {
  flex: 1 1 0;
  min-width: 0;
}
.modal-pay-cols .modal-confirm { align-self: stretch; }

/* No mobile, volta a empilhar em uma coluna */
@media (max-width: 640px) {
  /* No celular o excesso de padding lateral apertava demais o conteúdo */
  .modal-card.modal-pay { padding: 20px 16px; }

  .modal-pay-cols {
    flex-direction: column;
    align-items: center;   /* centraliza as colunas empilhadas */
    gap: 22px;
  }
  .modal-pay-cols .modal-pay-col {
    width: 100%;
    flex: 0 0 auto;
  }
  .modal-pay-cols .modal-confirm {
    border-top: 1px solid rgba(21,25,44,0.1);
    padding-top: 20px;
  }
  /* Centraliza o formulário do cartão (Brick do Mercado Pago) */
  .cartao-brick-wrap {
    width: 100%;
    max-width: 360px;
    margin: 0 auto;
  }
}

.modal-confirm { text-align: left; }
.modal-confirm-title {
  text-align: center;
  font-family: 'Cormorant Garamond', serif;
  font-size: 18px;
  color: var(--ink);
  margin-bottom: 14px;
}
.modal-pay .admin-field { margin-bottom: 12px; }
.modal-pay .admin-field > span {
  font-size: 12px;
  color: var(--ink-mute);
  margin-bottom: 5px;
  display: block;
  text-align: left;
}
.modal-pay .admin-field input,
.modal-pay .admin-field textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255,255,255,0.5);
  padding: 11px 12px;
  font-size: 15px;
  color: var(--ink);
  font-family: 'Cormorant Garamond', serif;
  outline: none;
}
.modal-pay .admin-field textarea { resize: vertical; }
.modal-paid-btn {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
  padding: 13px;
  font-size: 15px;
}

/* Seletor de forma de pagamento (Pix | Cartão) */
.pay-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 4px 0 16px;
}
.pay-tab {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.4);
  color: var(--ink-mute);
  font-family: 'Cinzel', serif;
  font-size: 12px;
  letter-spacing: 0.04em;
  padding: 9px 18px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.18s ease;
}
.pay-tab:hover { color: var(--ink); border-color: var(--ink-mute); }
.pay-tab.active {
  background: #15192c;
  border-color: #15192c;
  color: var(--cream);
}

/* Container do Brick do Mercado Pago */
.cartao-brick-wrap { min-height: 120px; }
.cartao-brick-loading {
  font-size: 13px;
  font-style: italic;
  color: var(--ink-mute);
  text-align: center;
  padding: 24px 8px;
}
.cartao-parcela-card {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  text-align: left;
  background: rgba(255,255,255,0.45);
  border: 1px solid var(--line-soft);
  border-left: 3px solid var(--accent-mustard);
  border-radius: 10px;
}
.cartao-parcela-icone {
  flex-shrink: 0;
  margin-top: 1px;
  color: var(--accent-mustard);
}
.cartao-parcela-texto {
  font-size: 13px;
  line-height: 1.55;
  color: var(--ink-soft);
}
.cartao-parcela-texto strong { color: var(--ink); font-weight: 600; }
.cartao-parcela-bandeiras {
  display: block;
  margin-top: 7px;
  font-size: 12px;
  color: var(--ink-mute);
}
.modal-done {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  padding: 14px 0 6px;
}
.modal-done-check {
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--ink);
  color: var(--cream);
}

/* ============================================================
   Painel: lista de presentes recebidos (doações)
   ============================================================ */
.adm-doacoes { display: flex; flex-direction: column; gap: 12px; }
.adm-doacao {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  background: #f4ead8;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 16px 18px;
}
.adm-doacao-main { flex: 1; min-width: 0; }
.adm-doacao-top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
}
.adm-doacao-nome {
  font-weight: 700;
  color: var(--ink);
  font-size: 15px;
}
.adm-doacao-valor {
  font-weight: 700;
  color: var(--accent-rose);
  white-space: nowrap;
}
.adm-doacao-presente {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--ink-soft);
  font-size: 14px;
}
.adm-doacao-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
}
.adm-doacao-tag.cartao { background: #e6efe6; color: #2f6b34; }
.adm-doacao-tag.pix { background: #e7e9f5; color: #3a3f73; }
.adm-doacao-msg {
  color: var(--ink-mute);
  font-style: italic;
  font-size: 13px;
  margin-top: 6px;
}
.adm-doacao-data {
  color: var(--ink-mute);
  font-size: 12px;
  margin-top: 6px;
}
