:root {
  --bg: #fbfaf7;
  --surface: #ffffff;
  --ink: #24211d;
  --muted: #6b6258;
  --line: #ded8ce;
  --accent: #8f5f4a;
  --accent-dark: #694333;
  --green: #50765d;
  --rose: #c77f72;
  --gold: #b48a45;
  --shadow: 0 18px 45px rgba(44, 35, 25, 0.12);
  --radius-sm: 12px;
  --radius: 18px;
  --radius-lg: 26px;
  --radius-pill: 999px;
  --shadow-soft: 0 10px 30px rgba(44, 35, 25, 0.08);
  --shadow-lift: 0 26px 60px rgba(44, 35, 25, 0.18);
  --font-display: "Cormorant Garamond", "Playfair Display", Georgia, "Times New Roman", serif;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

[hidden] {
  display: none !important;
}

body {
  margin: 0;
  color: var(--ink);
  background:
    linear-gradient(120deg, rgba(199, 127, 114, 0.12), transparent 34%),
    linear-gradient(250deg, rgba(80, 118, 93, 0.11), transparent 36%),
    var(--bg);
}

body[data-home-template="garden"] {
  --accent: #5f7f61;
  --accent-dark: #38543d;
  --green: #6f8f6a;
  --rose: #d79c90;
  --gold: #b79b5b;
}

body[data-home-template="modern"] {
  --accent: #1f6f78;
  --accent-dark: #16454b;
  --green: #2f7d70;
  --rose: #ee7f61;
  --gold: #d3a13e;
}

body[data-home-template="romantic"] {
  --accent: #b86078;
  --accent-dark: #7e3d51;
  --green: #6d8367;
  --rose: #d9869d;
  --gold: #c99b53;
}

body[data-home-template="minimal"] {
  --accent: #3f3c37;
  --accent-dark: #23211d;
  --green: #607268;
  --rose: #aa897b;
  --gold: #9d8b67;
}

body[data-home-template="beach"] {
  --accent: #32859a;
  --accent-dark: #1d5564;
  --green: #4f9683;
  --rose: #e18d73;
  --gold: #cda45c;
}

body[data-home-template="luxury"] {
  --accent: #6d5435;
  --accent-dark: #372a1b;
  --green: #526252;
  --rose: #a86958;
  --gold: #c7a24f;
}

body[data-home-template="boho"] {
  --accent: #a05d3b;
  --accent-dark: #6a3c26;
  --green: #6e7c56;
  --rose: #c9816e;
  --gold: #bb8942;
}

body[data-home-template="night"] {
  --bg: #171616;
  --surface: #242120;
  --ink: #f7f1ea;
  --muted: #c7bab0;
  --line: #3b3530;
  --accent: #b88a4a;
  --accent-dark: #8a6431;
  --green: #6f8e7c;
  --rose: #c56f80;
}

body[data-home-template="joy"] {
  --accent: #d65f6f;
  --accent-dark: #9e3d4b;
  --green: #279071;
  --rose: #f08b70;
  --gold: #e0a929;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
textarea,
select {
  font: inherit;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 14px clamp(18px, 4vw, 54px);
  background: rgba(251, 250, 247, 0.9);
  border-bottom: 1px solid rgba(222, 216, 206, 0.8);
  backdrop-filter: blur(16px);
}

.audio-controls {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 999px;
  box-shadow: 0 8px 24px rgba(44, 35, 25, 0.08);
}

.audio-controls[hidden] {
  display: none;
}

.audio-controls input {
  width: 86px;
  padding: 0;
  accent-color: var(--accent);
}

.audio-controls audio {
  display: none;
}

.music-toggle {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--green));
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(80, 118, 93, 0.22);
  cursor: pointer;
}

.music-toggle::before {
  content: "";
  width: 0;
  height: 0;
  margin-left: 3px;
  border-top: 8px solid transparent;
  border-bottom: 8px solid transparent;
  border-left: 12px solid currentColor;
}

.music-toggle .eq {
  display: none;
  align-items: flex-end;
  gap: 3px;
  height: 15px;
}

.music-toggle .eq i {
  width: 3px;
  height: 100%;
  background: currentColor;
  border-radius: 2px;
  transform: scaleY(0.4);
  transform-origin: bottom;
}

.music-toggle.playing::before {
  display: none;
}

.music-toggle.playing .eq {
  display: flex;
}

.music-toggle.playing .eq i {
  animation: eq-bounce 0.9s ease-in-out infinite;
}

.music-toggle.playing .eq i:nth-child(2) {
  animation-delay: 0.25s;
}

.music-toggle.playing .eq i:nth-child(3) {
  animation-delay: 0.5s;
}

@keyframes eq-bounce {
  0%,
  100% {
    transform: scaleY(0.35);
  }
  50% {
    transform: scaleY(1);
  }
}

.music-toggle.playing {
  animation: music-pulse 1.8s ease-in-out infinite;
}

@keyframes music-pulse {
  0%,
  100% {
    box-shadow: 0 12px 26px rgba(80, 118, 93, 0.22);
  }
  50% {
    box-shadow: 0 12px 30px rgba(80, 118, 93, 0.38);
  }
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
}

.brand span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  color: #fff;
  background: var(--accent);
  border-radius: 50%;
  font-family: Georgia, serif;
  font-size: 1.3rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.nav a,
.ghost-button,
.link-button {
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 9px 10px;
}

.nav a:hover,
.ghost-button:hover,
.link-button:hover {
  color: var(--ink);
}

body[data-logged="true"] [data-nav-rsvp],
body[data-logged="true"] [data-home-rsvp],
body[data-logged="true"] [data-home-rsvp-secondary],
body[data-logged="true"] [data-floating-rsvp] {
  display: none !important;
}

.account-menu {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 40;
  flex: 0 0 auto;
}

.account-menu[hidden],
.account-dropdown[hidden] {
  display: none;
}

.account-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--green));
  border-radius: 50%;
  box-shadow: 0 12px 26px rgba(91, 73, 56, 0.18);
  cursor: pointer;
  font-weight: 900;
}

.account-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 30;
  display: grid;
  gap: 6px;
  min-width: 230px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 22px 50px rgba(44, 35, 25, 0.16);
}

.account-dropdown strong {
  padding: 6px 8px 9px;
  border-bottom: 1px solid var(--line);
}

.account-dropdown a,
.account-dropdown button {
  width: 100%;
  border-radius: 8px;
  color: var(--muted);
  text-align: left;
  font-weight: 800;
}

.account-dropdown a {
  padding: 10px 9px;
}

.account-dropdown a:hover,
.account-dropdown button:hover {
  color: var(--ink);
  background: rgba(80, 118, 93, 0.08);
}

.app-shell {
  min-height: calc(100vh - 72px);
}

body[data-panel-wallpaper="true"] .app-shell {
  background:
    linear-gradient(rgba(251, 250, 247, 0.82), rgba(251, 250, 247, 0.9)),
    var(--panel-wallpaper) center / cover fixed;
}

body[data-panel-wallpaper="true"] .dashboard .panel,
body[data-panel-wallpaper="true"] .dashboard .stats-grid article,
body[data-panel-wallpaper="true"] .dashboard .config-page {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(14px);
}

.hero {
  position: relative;
  display: grid;
  place-items: center;
  align-items: center;
  min-height: calc(100svh - 72px);
  padding: clamp(42px, 8vw, 96px) clamp(20px, 5vw, 76px);
  background:
    linear-gradient(rgba(36, 33, 29, 0.38), rgba(36, 33, 29, 0.2)),
    url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: #fff;
}

body[data-home-template="modern"] .hero {
  background:
    linear-gradient(120deg, rgba(31, 111, 120, 0.72), rgba(238, 127, 97, 0.28)),
    url("https://images.unsplash.com/photo-1523438885200-e635ba2c371e?auto=format&fit=crop&w=1800&q=80") center/cover;
}

body[data-home-template="garden"] .hero {
  background:
    linear-gradient(rgba(28, 54, 34, 0.46), rgba(28, 54, 34, 0.2)),
    url("https://images.unsplash.com/photo-1464366400600-7168b8af9bc3?auto=format&fit=crop&w=1800&q=80") center/cover;
}

body[data-home-template="romantic"] .hero {
  background:
    linear-gradient(rgba(126, 61, 81, 0.5), rgba(126, 61, 81, 0.18)),
    url("https://images.unsplash.com/photo-1511285560929-80b456fea0bc?auto=format&fit=crop&w=1800&q=80") center/cover;
}

body[data-home-template="minimal"] .hero {
  background:
    linear-gradient(rgba(35, 33, 29, 0.52), rgba(35, 33, 29, 0.18)),
    url("https://images.unsplash.com/photo-1507504031003-b417219a0fde?auto=format&fit=crop&w=1800&q=80") center/cover;
}

body[data-home-template="beach"] .hero {
  background:
    linear-gradient(rgba(29, 85, 100, 0.45), rgba(29, 85, 100, 0.16)),
    url("https://images.unsplash.com/photo-1519225421980-715cb0215aed?auto=format&fit=crop&w=1800&q=80") center/cover;
}

body[data-home-template="luxury"] .hero {
  background:
    linear-gradient(rgba(23, 18, 12, 0.62), rgba(23, 18, 12, 0.28)),
    url("https://images.unsplash.com/photo-1465495976277-4387d4b0e4a6?auto=format&fit=crop&w=1800&q=80") center/cover;
}

body[data-home-template="boho"] .hero {
  background:
    linear-gradient(rgba(106, 60, 38, 0.5), rgba(106, 60, 38, 0.18)),
    url("https://images.unsplash.com/photo-1525258946800-98cfd641d0de?auto=format&fit=crop&w=1800&q=80") center/cover;
}

body[data-home-template="night"] .hero {
  background:
    linear-gradient(rgba(0, 0, 0, 0.62), rgba(0, 0, 0, 0.2)),
    url("https://images.unsplash.com/photo-1511795409834-ef04bbd61622?auto=format&fit=crop&w=1800&q=80") center/cover;
}

body[data-home-template="joy"] .hero {
  background:
    linear-gradient(120deg, rgba(214, 95, 111, 0.58), rgba(39, 144, 113, 0.34)),
    url("https://images.unsplash.com/photo-1532712938310-34cb3982ef74?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto clamp(18px, 5vw, 70px) 28px auto;
  width: 110px;
  height: 110px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  justify-items: center;
  width: min(100%, 720px);
  padding: clamp(24px, 5vw, 52px);
  color: var(--ink);
  text-align: center;
  background:
    linear-gradient(rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.84)),
    radial-gradient(circle at top left, rgba(80, 118, 93, 0.16), transparent 34%);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 30px 80px rgba(36, 33, 29, 0.22);
  backdrop-filter: blur(14px);
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-size: 0.77rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: var(--accent-dark);
}

h1,
h2 {
  margin: 0;
  line-height: 1.05;
}

h1 {
  font-size: clamp(2.4rem, 7vw, 5.6rem);
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 500;
}

h2 {
  font-size: clamp(1.35rem, 3vw, 2rem);
}

p {
  line-height: 1.65;
}

.hero p:not(.eyebrow) {
  max-width: 620px;
  font-size: 1.16rem;
}

.countdown-card {
  width: min(100%, 520px);
  margin: 8px 0 18px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.countdown-card[hidden] {
  display: none;
}

.countdown-card > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.countdown-grid,
.countdown-labels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.countdown-grid strong {
  display: grid;
  place-items: center;
  min-height: 54px;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--green));
  border-radius: 8px;
  font-size: clamp(1.25rem, 4vw, 2rem);
}

.countdown-labels small {
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}

.deadline-note {
  display: inline-flex;
  margin-top: 18px;
  padding: 10px 14px;
  color: var(--accent-dark);
  background: rgba(80, 118, 93, 0.1);
  border: 1px solid rgba(80, 118, 93, 0.2);
  border-radius: 8px;
  font-weight: 800;
}

.hero-actions,
.quick-actions,
.button-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  border-radius: 8px;
  border: 1px solid transparent;
  padding: 10px 16px;
  font-weight: 800;
  cursor: pointer;
}

.primary-button {
  color: #fff;
  background: var(--accent);
  box-shadow: 0 10px 22px rgba(143, 95, 74, 0.24);
}

.primary-button:hover {
  background: var(--accent-dark);
}

.secondary-button {
  color: var(--ink);
  background: rgba(255, 255, 255, 0.74);
  border-color: var(--line);
}

.secondary-button:hover {
  background: #fff;
}

.full {
  width: 100%;
}

.info-grid,
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  max-width: 1180px;
  margin: -42px auto 0;
  padding: 0 20px;
  position: relative;
}

.info-grid article,
.stats-grid article,
.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.info-grid article,
.stats-grid article {
  min-height: 128px;
  padding: 24px;
}

.info-grid span,
.stats-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  margin-bottom: 12px;
}

.info-grid strong,
.stats-grid strong {
  font-size: 1.35rem;
}

.section-band {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  max-width: 1180px;
  margin: 70px auto;
  padding: 42px 20px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.section-band div {
  max-width: 720px;
}

.map-section {
  max-width: 1180px;
  margin: 0 auto 76px;
  padding: 0 20px;
}

.map-actions {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.map-route-info {
  margin: 10px 0 0;
  padding: 10px 14px;
  border-radius: var(--radius-pill);
  background: rgba(80, 118, 93, 0.12);
  color: var(--accent-dark);
  font-weight: 700;
  font-size: 0.9rem;
}

.map-route-info[hidden] {
  display: none;
}

/* ---- Controles do mapa (tela cheia) ---- */
.map-controls {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 1000;
  display: flex;
  gap: 8px;
}

.map-ctrl-btn {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  font-size: 1.2rem;
  cursor: pointer;
}

/* ---- Mapa em tela cheia ---- */
.map-section.map-fullscreen {
  position: fixed;
  inset: 0;
  z-index: 3000;
  max-width: none;
  margin: 0;
  padding: 0;
  background: #000;
}

.map-section.map-fullscreen .section-header,
.map-section.map-fullscreen .map-route-info {
  display: none;
}

.map-section.map-fullscreen .map-embed {
  height: 100% !important;
  min-height: 100% !important;
  border: 0;
  border-radius: 0 !important;
}

body.map-fullscreen-open {
  overflow: hidden;
}

/* ---- Overlay de navegação (estilo Waze) ---- */
.map-nav {
  position: absolute;
  inset: 0;
  z-index: 1100;
  pointer-events: none;
}

.map-nav[hidden] {
  display: none;
}

.map-nav-banner {
  pointer-events: auto;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  color: #fff;
  background: #1a73e8;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.32);
}

.map-nav-arrow {
  font-size: 2rem;
  line-height: 1;
}

.map-nav-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.map-nav-text strong {
  font-size: 1.1rem;
  line-height: 1.15;
}

.map-nav-text span {
  font-size: 0.85rem;
  opacity: 0.9;
}

.map-nav-bottom {
  pointer-events: auto;
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 18px;
  color: #fff;
  background: rgba(20, 26, 48, 0.92);
  backdrop-filter: blur(8px);
}

.map-nav-eta {
  font-weight: 800;
  font-size: 0.95rem;
}

.map-nav-buttons {
  display: flex;
  align-items: center;
  gap: 10px;
}

.map-nav-mute {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
  font-size: 1.1rem;
  cursor: pointer;
}

.map-nav-exit {
  border: 0;
  border-radius: 999px;
  padding: 10px 20px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #e2574c, #b32b23);
}

.map-section iframe,
.map-section .map-embed {
  display: block;
  width: 100%;
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eee;
  box-shadow: var(--shadow);
}

.map-section .map-embed {
  overflow: hidden;
}

.map-section .map-embed iframe {
  width: 100%;
  height: 100%;
  min-height: 420px;
  border: 0;
}

/* Pino em formato de coração no mapa (Leaflet) */
.map-heart-pin {
  position: relative;
  display: grid;
  place-items: center;
  background: transparent;
  border: 0;
  overflow: visible;
}

/* Anel que irradia (pulso), emanando da base do pino */
.map-heart-pin::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 2px;
  width: 20px;
  height: 20px;
  transform: translate(-50%, 50%);
  border-radius: 50%;
  background: rgba(255, 77, 109, 0.5);
  z-index: 0;
  animation: heart-pin-ring 1.8s ease-out infinite;
}

.map-heart-pin span {
  position: relative;
  z-index: 1;
  font-size: 34px;
  line-height: 1;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.55));
  transform-origin: bottom center;
  animation: heart-pin-pulse 1.4s ease-in-out infinite;
}

@keyframes heart-pin-pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.18); }
}

@keyframes heart-pin-ring {
  0% { transform: translate(-50%, 50%) scale(0.5); opacity: 0.75; }
  70% { opacity: 0; }
  100% { transform: translate(-50%, 50%) scale(3.4); opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .map-heart-pin span,
  .map-heart-pin::before {
    animation: none;
  }
  .map-heart-pin::before {
    display: none;
  }
}

/* Rótulo fixo do pino no mapa (Leaflet) */
.map-pin-label {
  background: #fff;
  border: 0;
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--accent-dark, #694333);
  font-weight: 800;
  font-size: 0.86rem;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
  white-space: nowrap;
}

.map-pin-label.leaflet-tooltip-top::before {
  border-top-color: #fff;
}

.experience-section,
.faq-section {
  max-width: 1180px;
  margin: 0 auto 70px;
  padding: 0 20px;
}

.experience-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.experience-grid article,
.faq-list details {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.experience-grid article {
  padding: 24px;
}

.experience-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.experience-grid strong {
  font-size: 1.35rem;
}

.experience-grid p {
  margin: 0 0 8px;
  font-weight: 800;
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-list details {
  padding: 18px;
}

.faq-list summary {
  cursor: pointer;
  font-weight: 900;
}

.faq-list p {
  margin-bottom: 0;
  color: var(--muted);
}

.home-media-section {
  max-width: 1180px;
  margin: 0 auto 70px;
  padding: 0 20px;
}

.photo-carousel {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 10px;
  animation: gentle-scroll 28s linear infinite;
}

.photo-carousel:hover {
  animation-play-state: paused;
}

.photo-carousel img {
  flex: 0 0 min(76vw, 440px);
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  scroll-snap-align: start;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.video-grid iframe,
.video-grid video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #111;
  box-shadow: var(--shadow);
}

.music-player {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto 70px;
  padding: 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.music-player audio {
  width: min(100%, 420px);
}

.pix-key {
  display: inline-flex;
  max-width: 100%;
  padding: 10px 12px;
  background: rgba(80, 118, 93, 0.1);
  border: 1px solid rgba(80, 118, 93, 0.25);
  border-radius: 8px;
  overflow-wrap: anywhere;
  font-weight: 900;
}

.home-actions {
  background: rgba(255, 255, 255, 0.48);
}

@keyframes gentle-scroll {
  0% {
    transform: translateX(0);
  }

  50% {
    transform: translateX(-24px);
  }

  100% {
    transform: translateX(0);
  }
}

.auth-layout,
.rsvp-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 34px;
  align-items: center;
  max-width: 1120px;
  margin: 0 auto;
  padding: clamp(36px, 7vw, 92px) 20px;
}

.auth-copy,
.rsvp-intro {
  max-width: 620px;
}

.auth-copy h1,
.rsvp-intro h1 {
  font-size: clamp(2rem, 5vw, 4.2rem);
}

.rsvp-layout {
  position: relative;
  min-height: calc(100svh - 72px);
}

.rsvp-layout::before {
  content: "";
  position: fixed;
  inset: 72px 0 0;
  z-index: -1;
  background:
    linear-gradient(rgba(251, 250, 247, 0.9), rgba(251, 250, 247, 0.72)),
    url("https://images.unsplash.com/photo-1523438885200-e635ba2c371e?auto=format&fit=crop&w=1600&q=80") center / cover;
}

.rsvp-intro {
  padding: clamp(20px, 4vw, 34px);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  backdrop-filter: blur(14px);
}

.event-mini {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  padding: 14px;
  background: rgba(80, 118, 93, 0.1);
  border: 1px solid rgba(80, 118, 93, 0.18);
  border-radius: 8px;
}

.event-mini span,
.event-mini small {
  color: var(--muted);
  font-weight: 800;
}

.rsvp-layout .form-card {
  box-shadow: 0 28px 70px rgba(36, 33, 29, 0.16);
}

.rsvp-layout .primary-button.full {
  min-height: 52px;
  font-size: 1rem;
}

.panel {
  border-radius: 8px;
  padding: 24px;
}

.form-card {
  display: grid;
  gap: 16px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 11px 12px;
  outline: none;
}

textarea {
  resize: vertical;
}

input:focus,
textarea:focus,
select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(143, 95, 74, 0.16);
}

.two-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.inline-form {
  display: grid;
  grid-template-columns: 1fr 1.2fr 1fr 1fr auto;
  gap: 10px;
  align-items: start;
  margin-bottom: 12px;
}

.config-block {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 250, 247, 0.72);
}

.config-block h3 {
  margin: 0;
}

.switch-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
}

.switch-row input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.switch-control {
  position: relative;
  flex: 0 0 54px;
  width: 54px;
  height: 30px;
  background: #c9c1b7;
  border-radius: 999px;
  transition: background 0.2s ease;
}

.switch-control::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 22px;
  height: 22px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(36, 33, 29, 0.2);
  transition: transform 0.2s ease;
}

.switch-row input:checked + .switch-control {
  background: var(--green);
}

.switch-row input:checked + .switch-control::after {
  transform: translateX(24px);
}

.switch-row span:last-child {
  display: grid;
  gap: 2px;
}

.switch-row small {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.inline-switch {
  margin-top: 7px;
}

.form-message {
  min-height: 22px;
  margin: 0;
  color: var(--green);
  font-weight: 700;
}

.field-hint {
  margin: -8px 0 4px;
  color: var(--muted);
  font-size: 0.86rem;
}

.media-gallery-manager {
  display: grid;
  gap: 12px;
}

.gallery-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr);
  gap: 12px;
}

.inline-add {
  display: flex;
  gap: 8px;
}

.inline-add input {
  flex: 1;
}

.media-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 10px;
}

.gallery-item {
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.gallery-item img {
  display: block;
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  background: #eee;
}

.gallery-item button {
  width: 100%;
  padding: 9px;
  color: var(--rose);
  font-weight: 900;
}

.dashboard {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  max-width: 1320px;
  margin: 0 auto;
  padding: 34px 20px 80px;
}

.dashboard-tabs {
  display: none !important;
}

.dashboard-tabs::-webkit-scrollbar,
.config-tabs::-webkit-scrollbar {
  height: 0;
}

.dashboard-tabs > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.dashboard-tabs span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
  white-space: nowrap;
}

.tab-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 11px 16px;
  font-weight: 900;
  white-space: nowrap;
}

.mobile-more-group {
  display: none !important;
}

.tab-button.active {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--green));
  box-shadow: 0 10px 22px rgba(80, 118, 93, 0.2);
}

.mobile-page-label {
  display: none !important;
  margin: -8px 0 18px;
  color: var(--accent-dark);
  font-weight: 900;
}

.panel-page-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.panel-page-header h2 {
  margin-bottom: 6px;
}

.panel-page-header p:not(.eyebrow) {
  margin: 0;
  color: var(--muted);
}

.panel-page-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.config-tabs {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 4px 0 12px;
  padding: 6px;
  background: rgba(251, 250, 247, 0.9);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.mini-tab {
  min-height: 40px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-weight: 900;
  padding: 9px 10px;
}

.mini-tab.active {
  color: #fff;
  background: var(--accent);
}

.config-page {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(251, 250, 247, 0.7);
}

.config-page-header {
  padding-bottom: 4px;
}

.config-page-header h3 {
  margin: 0 0 4px;
}

.config-page-header p {
  margin: 0;
  color: var(--muted);
}

.template-picker {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  border: 0;
  padding: 0;
  margin: 0;
}

.themes-page .template-picker {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.template-picker legend {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 900;
  margin-bottom: 4px;
}

.template-picker label {
  display: flex;
  flex-direction: column;
  min-height: 54px;
  align-items: flex-start;
  gap: 6px;
  position: relative;
  padding: 12px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
}

.themes-page .template-picker label {
  min-height: 230px;
  font-size: 1rem;
}

.template-picker label::before {
  content: "";
  width: 100%;
  height: 132px;
  border-radius: 6px;
  background:
    linear-gradient(rgba(36, 33, 29, 0.12), rgba(36, 33, 29, 0.24)),
    url("https://images.unsplash.com/photo-1519741497674-611481863552?auto=format&fit=crop&w=700&q=70") center/cover;
}

.template-picker label[data-template-card="garden"]::before {
  background:
    linear-gradient(rgba(28, 54, 34, 0.12), rgba(28, 54, 34, 0.24)),
    url("https://images.unsplash.com/photo-1464366400600-7168b8af9bc3?auto=format&fit=crop&w=700&q=70") center/cover;
}

.template-picker label[data-template-card="modern"]::before {
  background:
    linear-gradient(rgba(31, 111, 120, 0.12), rgba(31, 111, 120, 0.28)),
    url("https://images.unsplash.com/photo-1523438885200-e635ba2c371e?auto=format&fit=crop&w=700&q=70") center/cover;
}

.template-picker label[data-template-card="romantic"]::before {
  background:
    linear-gradient(rgba(184, 96, 120, 0.14), rgba(184, 96, 120, 0.28)),
    url("https://images.unsplash.com/photo-1511285560929-80b456fea0bc?auto=format&fit=crop&w=700&q=70") center/cover;
}

.template-picker label[data-template-card="minimal"]::before {
  background:
    linear-gradient(rgba(35, 33, 29, 0.08), rgba(35, 33, 29, 0.2)),
    url("https://images.unsplash.com/photo-1507504031003-b417219a0fde?auto=format&fit=crop&w=700&q=70") center/cover;
}

.template-picker label[data-template-card="beach"]::before {
  background:
    linear-gradient(rgba(50, 133, 154, 0.14), rgba(50, 133, 154, 0.26)),
    url("https://images.unsplash.com/photo-1519225421980-715cb0215aed?auto=format&fit=crop&w=700&q=70") center/cover;
}

.template-picker label[data-template-card="luxury"]::before {
  background:
    linear-gradient(rgba(23, 18, 12, 0.22), rgba(23, 18, 12, 0.36)),
    url("https://images.unsplash.com/photo-1465495976277-4387d4b0e4a6?auto=format&fit=crop&w=700&q=70") center/cover;
}

.template-picker label[data-template-card="boho"]::before {
  background:
    linear-gradient(rgba(160, 93, 59, 0.16), rgba(160, 93, 59, 0.28)),
    url("https://images.unsplash.com/photo-1525258946800-98cfd641d0de?auto=format&fit=crop&w=700&q=70") center/cover;
}

.template-picker label[data-template-card="night"]::before {
  background:
    linear-gradient(rgba(0, 0, 0, 0.26), rgba(0, 0, 0, 0.42)),
    url("https://images.unsplash.com/photo-1511795409834-ef04bbd61622?auto=format&fit=crop&w=700&q=70") center/cover;
}

.template-picker label[data-template-card="joy"]::before {
  background:
    linear-gradient(rgba(214, 95, 111, 0.14), rgba(39, 144, 113, 0.26)),
    url("https://images.unsplash.com/photo-1532712938310-34cb3982ef74?auto=format&fit=crop&w=700&q=70") center/cover;
}

.template-picker label[data-template-card="futurista"]::before {
  background:
    radial-gradient(60% 60% at 25% 25%, rgba(124, 92, 255, 0.85), transparent 60%),
    radial-gradient(60% 60% at 80% 70%, rgba(41, 208, 201, 0.75), transparent 60%),
    linear-gradient(160deg, #0b1020, #1a2142);
}

.template-picker span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 700;
}

.template-picker label:has(input:checked) {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(143, 95, 74, 0.14);
}

.template-picker input {
  position: absolute;
  top: 18px;
  right: 18px;
  width: auto;
  accent-color: var(--accent);
}

.add-guest-page .form-card,
.import-guests-page .bulk-import {
  max-width: 760px;
  margin: 0 auto;
}

.add-shortcut {
  margin-bottom: 16px;
}

.bulk-import {
  max-width: 760px;
  margin: 0 auto;
}

.bulk-import textarea {
  margin-bottom: 12px;
}

.config-page[hidden] {
  display: none;
}

.dashboard-header,
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 22px;
}

.dashboard-header h1 {
  font-size: clamp(2rem, 4vw, 3.25rem);
}

.quick-tools {
  display: flex;
  justify-content: flex-end;
  margin: -6px 0 18px;
}

.progress-card,
.publish-card {
  display: grid;
  gap: 8px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.progress-card span,
.progress-card small,
.publish-card span {
  color: var(--muted);
}

.progress-card strong {
  font-size: 2rem;
}

.progress-track {
  height: 10px;
  overflow: hidden;
  background: rgba(80, 118, 93, 0.14);
  border-radius: 999px;
}

.progress-track i {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--accent), var(--green));
  border-radius: inherit;
  transition: width 0.35s ease;
}

.publish-card p {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-weight: 800;
}

.publish-card i {
  min-width: 68px;
  color: #fff;
  background: var(--gold);
  border-radius: 999px;
  padding: 3px 7px;
  font-size: 0.68rem;
  font-style: normal;
  text-align: center;
}

.publish-card p.done i {
  background: var(--green);
}

.quick-tool-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.quick-tool-buttons .secondary-button {
  min-height: 40px;
  padding: 9px 13px;
  background: #fff;
  font-size: 0.86rem;
}

.stats-grid {
  padding: 0;
  margin: 0 0 24px;
}

.stats-grid article {
  box-shadow: none;
}

.workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 22px;
  margin-bottom: 24px;
}

.dashboard-panel {
  animation: panel-in 0.2s ease;
}

.guest-entry {
  margin-bottom: 22px;
}

@keyframes panel-in {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.search-input {
  max-width: 360px;
}

.filters {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.filters select {
  width: auto;
  min-width: 150px;
}

.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

th,
td {
  padding: 13px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 0.8rem;
  text-transform: uppercase;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 9px;
  color: #fff;
  background: var(--gold);
  font-size: 0.78rem;
  font-weight: 800;
}

.status-pill.confirmed {
  background: var(--green);
}

.side-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border-radius: 999px;
  padding: 4px 9px;
  color: #fff;
  background: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.side-badge.groom {
  background: #506f93;
}

.side-badge.bride {
  background: var(--rose);
}

.side-badge.casal {
  background: var(--accent);
}

.table-actions {
  display: flex;
  gap: 8px;
}

.whatsapp-link {
  display: inline-flex;
  margin-left: 8px;
  color: var(--green);
  font-size: 0.78rem;
  font-weight: 900;
}

.icon-button {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  padding: 8px 10px;
}

.icon-button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.event-mini {
  display: grid;
  gap: 6px;
  width: min(100%, 430px);
  margin-top: 28px;
  padding: 18px;
  border-left: 4px solid var(--rose);
  background: rgba(255, 255, 255, 0.7);
}

.floating-rsvp {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 12;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  color: #fff;
  background: var(--green);
  border-radius: 999px;
  box-shadow: 0 12px 30px rgba(80, 118, 93, 0.28);
  font-weight: 900;
}

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

.empty-state {
  color: var(--muted);
  padding: 20px 10px;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 22px;
  z-index: 40;
  transform: translate(-50%, 20px);
  opacity: 0;
  pointer-events: none;
  padding: 12px 16px;
  color: #fff;
  background: var(--ink);
  border-radius: 999px;
  box-shadow: 0 18px 40px rgba(36, 33, 29, 0.18);
  font-weight: 900;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.toast.show {
  opacity: 1;
  transform: translate(-50%, 0);
}

@media (max-width: 880px) {
  .dashboard-header,
  .section-header,
  .section-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .info-grid,
  .stats-grid,
  .quick-tools,
  .workspace-grid,
  .dashboard,
  .auth-layout,
  .rsvp-layout,
  .inline-form {
    grid-template-columns: 1fr;
  }

  .info-grid {
    margin-top: 0;
    padding-top: 20px;
  }

  .hero {
    min-height: calc(100svh - 64px);
    padding: 22px 14px;
  }

  .hero-content {
    padding: 24px 16px;
  }

  .countdown-grid strong {
    min-height: 46px;
  }

  .search-input {
    max-width: none;
  }

  .filters {
    width: 100%;
    justify-content: stretch;
  }

  .filters select {
    width: 100%;
  }

  .video-grid,
  .experience-grid,
  .music-player,
  .gallery-toolbar {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: stretch;
  }

  .audio-controls {
    width: 100%;
    justify-content: space-between;
  }

  .audio-controls input {
    flex: 1;
  }

  .topbar {
    min-height: 64px;
    gap: 10px;
    padding: 10px 14px;
  }

  .brand strong {
    max-width: 140px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .nav {
    flex: 1;
    justify-content: center;
  }

  .dashboard-tabs {
    display: flex;
    overflow-x: auto;
    position: sticky;
    top: 0;
    z-index: 8;
    border-radius: 8px;
    scroll-snap-type: x mandatory;
    box-shadow: 0 12px 30px rgba(44, 35, 25, 0.08);
  }

  .dashboard-tabs > div {
    flex: 0 0 auto;
    display: flex;
  }

  .panel-page-header {
    flex-direction: column;
  }

  .panel-page-actions {
    width: 100%;
    justify-content: stretch;
  }

  .panel-page-actions > * {
    flex: 1;
  }

  .tab-button {
    scroll-snap-align: start;
  }

  .config-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mobile-page-label {
    display: block;
  }

  .quick-tool-buttons {
    width: 100%;
    justify-content: stretch;
  }

  .quick-tool-buttons .secondary-button {
    flex: 1 1 calc(50% - 8px);
  }
}

@media (max-width: 560px) {
  .two-columns {
    grid-template-columns: 1fr;
  }

  .nav {
    width: auto;
    gap: 4px;
    justify-content: center;
  }

  .nav a {
    padding: 8px 6px;
    font-size: 0.82rem;
  }

  body[data-logged="true"] .nav [data-auth-link] {
    display: none;
  }

  .brand strong {
    display: none;
  }

  .account-dropdown {
    position: fixed;
    top: 64px;
    right: 12px;
    left: 12px;
    min-width: 0;
  }

  .floating-rsvp {
    left: 16px;
    right: 16px;
    bottom: 82px;
  }

  .dashboard {
    padding: 18px 12px 42px;
  }

  .panel,
  .config-page {
    padding: 16px;
  }

  .stats-grid article {
    min-height: 104px;
  }

  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-tool-buttons .secondary-button {
    flex-basis: 100%;
  }

  .inline-add {
    flex-direction: column;
  }

  .stats-grid strong,
  .info-grid strong {
    font-size: 1.12rem;
  }

  .config-tabs {
    display: flex;
    overflow-x: auto;
  }

  .mini-tab {
    flex: 0 0 auto;
  }

  .template-picker {
    grid-template-columns: 1fr;
  }

  .themes-page .template-picker {
    grid-template-columns: 1fr;
  }

  .add-guest-page .form-card {
    max-width: none;
  }

  .guest-entry {
    margin-bottom: 0;
  }

  .dashboard-tabs {
    display: none !important;
  }

  .dashboard-tabs span {
    display: none;
  }

  .dashboard-tabs > div {
    flex: 1 1 0;
    gap: 6px;
  }

  .dashboard-tabs > div[data-manager-only],
  .dashboard-tabs > div:nth-child(3) {
    display: none !important;
  }

  .mobile-more-group {
    display: flex !important;
  }

  .dashboard-tabs > div:first-child {
    display: contents;
  }

  .tab-button {
    flex: 1 1 0;
    min-width: 0;
    min-height: 52px;
    padding: 8px 5px;
    font-size: 0.7rem;
    text-align: center;
    white-space: normal;
  }

  .tab-button[data-dashboard-tab="themes"],
  .tab-button[data-dashboard-tab="team"] {
    display: none;
  }

  .tab-button[data-dashboard-tab="site"] {
    font-size: 0.64rem;
  }

  .table-wrap {
    margin-inline: -16px;
    padding-inline: 16px;
  }

  table {
    min-width: 0;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
  }

  thead {
    display: none;
  }

  tr {
    margin-bottom: 12px;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
  }

  td {
    display: grid;
    grid-template-columns: 112px 1fr;
    gap: 10px;
    padding: 9px 0;
    border-bottom: 1px solid rgba(222, 216, 206, 0.7);
  }

  td:last-child {
    border-bottom: 0;
  }

  td::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
  }

  .table-actions {
    flex-wrap: wrap;
  }

  .toast {
    left: 12px;
    right: 12px;
    bottom: 150px;
    transform: translateY(20px);
    text-align: center;
  }

  .toast.show {
    transform: translateY(0);
  }
}

/* =====================================================================
   CAMADA MODERNA — redesign estilo revista/Instagram (2026)
   ===================================================================== */

:root {
  --font-script: "Great Vibes", cursive;
}

body {
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: 0.01em;
}

h1 {
  font-weight: 600;
}

.eyebrow {
  letter-spacing: 0.22em;
  font-size: 0.72rem;
}

/* ---- Botões modernos (pílula + brilho) ---- */
.primary-button,
.secondary-button {
  border-radius: var(--radius-pill);
  padding: 12px 22px;
  font-weight: 700;
  letter-spacing: 0.01em;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.primary-button {
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 14px 30px rgba(143, 95, 74, 0.32);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 40px rgba(143, 95, 74, 0.42);
}

.secondary-button {
  backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.7);
}

.secondary-button:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

.link-button {
  font-weight: 700;
  color: var(--accent-dark);
}

/* ---- Topbar mais leve ---- */
.topbar {
  min-height: 66px;
  border-bottom: 1px solid rgba(222, 216, 206, 0.55);
}

.brand span {
  font-family: var(--font-display);
  background: linear-gradient(135deg, var(--accent), var(--green));
  box-shadow: 0 10px 22px rgba(143, 95, 74, 0.28);
}

.brand strong {
  font-family: var(--font-display);
  font-size: 1.16rem;
  font-weight: 600;
}

.account-dropdown,
.account-dropdown a,
.account-dropdown button {
  border-radius: 14px;
}

/* ---- Hero em tela cheia com foto do casal ---- */
.hero {
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-position: center;
  background-size: cover;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.2s ease;
  z-index: 0;
}

.hero-bg[data-active="true"] {
  opacity: 1;
  animation: heroZoom 18s ease-in-out infinite alternate;
}

@keyframes heroZoom {
  from { transform: scale(1.04); }
  to { transform: scale(1.16); }
}

.hero-glow {
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    radial-gradient(90% 60% at 50% 0%, transparent, rgba(20, 16, 12, 0.28) 100%),
    radial-gradient(60% 50% at 50% 100%, rgba(20, 16, 12, 0.35), transparent 70%);
  pointer-events: none;
}

.hero-content {
  border-radius: var(--radius-lg);
  padding: clamp(28px, 5vw, 56px);
  background: rgba(255, 255, 255, var(--hero-alpha, 0.9));
  box-shadow: 0 40px 90px rgba(24, 18, 12, calc(0.34 * var(--hero-alpha, 0.9)));
  /* Leve desfoque para o texto continuar legível mesmo com o bloco transparente. */
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.range-value {
  display: inline-block;
  margin-top: 4px;
  color: var(--accent-dark);
  font-weight: 800;
}

input[type="range"] {
  accent-color: var(--accent);
}

input[type="color"] {
  width: 100%;
  min-height: 46px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--surface);
  cursor: pointer;
}

.push-button[data-active="true"] {
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--accent));
  border-color: transparent;
}

.hero-content h1 {
  font-family: var(--font-script);
  font-weight: 400;
  font-size: clamp(3.2rem, 9vw, 6.4rem);
  line-height: 1;
  color: var(--accent-dark);
}

.hero::after {
  border-color: rgba(255, 255, 255, 0.45);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(26px); }
  to { opacity: 1; transform: translateY(0); }
}

.countdown-card {
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(6px);
}

.countdown-grid strong {
  border-radius: 14px;
  font-family: var(--font-display);
  font-weight: 600;
}

.deadline-note {
  border-radius: var(--radius-pill);
}

/* ---- Stories / destaques ---- */
.stories {
  display: flex;
  gap: 16px;
  max-width: 1180px;
  margin: 26px auto 8px;
  padding: 8px clamp(16px, 4vw, 30px) 4px;
  overflow-x: auto;
  scrollbar-width: none;
  scroll-snap-type: x proximity;
}

.stories::-webkit-scrollbar {
  display: none;
}

.stories[hidden] {
  display: none;
}

.story-bubble {
  flex: 0 0 auto;
  display: grid;
  justify-items: center;
  gap: 7px;
  width: 78px;
  border: 0;
  background: transparent;
  cursor: pointer;
  scroll-snap-align: start;
}

.story-ring {
  display: grid;
  place-items: center;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  padding: 3px;
  background: conic-gradient(from 210deg, var(--accent), var(--rose), var(--gold), var(--green), var(--accent));
  box-shadow: 0 10px 22px rgba(44, 35, 25, 0.14);
  transition: transform 0.2s ease;
}

.story-bubble:hover .story-ring {
  transform: translateY(-3px) scale(1.03);
}

.story-cover {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 3px solid var(--surface);
  background: var(--surface) center/cover no-repeat;
  font-size: 1.6rem;
}

.story-bubble small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 78px;
}

/* Story viewer (tela cheia) */
.story-viewer {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  background: rgba(14, 11, 9, 0.94);
}

.story-viewer[hidden] {
  display: none;
}

.story-progress {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 3;
  display: flex;
  gap: 5px;
}

.story-progress span {
  position: relative;
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
}

.story-progress span i {
  position: absolute;
  inset: 0;
  transform-origin: left;
  transform: scaleX(0);
  background: #fff;
}

.story-progress span.done i {
  transform: scaleX(1);
}

.story-progress span.active i {
  animation: storyFill linear forwards;
}

@keyframes storyFill {
  from { transform: scaleX(0); }
  to { transform: scaleX(1); }
}

.story-topbar {
  position: absolute;
  top: 26px;
  left: 16px;
  right: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
}

.story-title {
  font-weight: 700;
  font-size: 0.95rem;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

.story-close {
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
}

.story-tap {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 38%;
  z-index: 2;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.story-tap.prev { left: 0; }
.story-tap.next { right: 0; }

.story-stage {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: min(460px, 100%);
  height: 100%;
  margin: 0 auto;
}

.story-slide {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}

.story-slide.image {
  background: center/cover no-repeat;
}

.story-slide.text {
  padding: 40px 26px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(143, 95, 74, 0.5), transparent 60%),
    linear-gradient(160deg, var(--accent-dark), #14100c);
}

.story-slide-inner {
  color: #fff;
  text-align: center;
  animation: fadeUp 0.5s ease both;
}

.story-slide-inner h2 {
  font-size: clamp(1.7rem, 6vw, 2.4rem);
  margin-bottom: 14px;
}

.story-body {
  font-size: 1.25rem;
  opacity: 0.95;
}

.story-note {
  margin-top: 14px;
  opacity: 0.8;
}

.story-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
  text-align: left;
}

.story-list li {
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  font-weight: 600;
}

.story-slide-actions {
  margin-top: 22px;
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---- Cards de informação com cantos suaves ---- */
.info-grid,
.stats-grid {
  gap: 16px;
  background: transparent;
  padding-inline: clamp(16px, 4vw, 20px);
}

.info-grid article,
.stats-grid article {
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.info-grid article:hover,
.stats-grid article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}

.info-grid strong,
.stats-grid strong {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
}

.section-band {
  border: 0;
  border-radius: var(--radius-lg);
  padding: clamp(28px, 4vw, 46px);
  background:
    linear-gradient(135deg, rgba(143, 95, 74, 0.08), rgba(80, 118, 93, 0.06)),
    var(--surface);
  box-shadow: var(--shadow-soft);
}

.section-band h2 {
  font-size: clamp(1.6rem, 3.4vw, 2.4rem);
}

.panel,
.experience-grid article,
.faq-list details,
.map-section iframe,
.map-section .map-embed {
  border-radius: var(--radius) !important;
}

.map-section iframe,
.map-section .map-embed {
  min-height: 460px;
}

/* ---- Feed de fotos estilo Instagram ---- */
.home-media-card {
  position: relative;
  border-radius: var(--radius-lg);
  padding: clamp(14px, 3vw, 26px);
  background: rgba(255, 255, 255, var(--moments-alpha, 0));
  transition: background 0.25s ease;
}

/* Controle de transparência na própria página (só gerentes veem) */
.moments-opacity-control {
  position: absolute;
  top: 12px;
  right: 14px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
}

.moments-opacity-control .mo-toggle {
  height: 40px;
  padding: 0 16px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font-weight: 800;
  font-size: 0.84rem;
  white-space: nowrap;
  background: linear-gradient(135deg, var(--accent), var(--green));
  box-shadow: 0 10px 24px rgba(80, 118, 93, 0.3);
  cursor: pointer;
  line-height: 1;
}

.moments-opacity-control .mo-panel {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-soft);
}

.moments-opacity-control .mo-panel[hidden] {
  display: none;
}

.moments-opacity-control .mo-title {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--muted);
  white-space: nowrap;
}

.moments-opacity-control .mo-panel input[type="range"] {
  width: 120px;
}

.moments-opacity-control .mo-value {
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--accent-dark);
  min-width: 40px;
  text-align: right;
}

.home-media-card .section-header {
  margin-bottom: 16px;
}

.photo-feed {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--accent) transparent;
}

.photo-feed::-webkit-scrollbar {
  height: 8px;
}

.photo-feed::-webkit-scrollbar-thumb {
  background: var(--accent);
  border-radius: 999px;
}

.feed-item {
  position: relative;
  flex: 0 0 auto;
  width: min(240px, 70vw);
  aspect-ratio: 4 / 5;
  scroll-snap-align: start;
  border: 0;
  padding: 0;
  overflow: hidden;
  border-radius: var(--radius);
  cursor: pointer;
  background: var(--line);
  box-shadow: var(--shadow-soft);
}

.feed-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.feed-item:hover img {
  transform: scale(1.06);
}

.feed-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(transparent 55%, rgba(0, 0, 0, 0.28));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feed-item:hover::after {
  opacity: 1;
}

.feed-heart {
  position: absolute;
  right: 10px;
  bottom: 8px;
  z-index: 1;
  color: #fff;
  font-size: 1.2rem;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.3s ease, transform 0.3s ease;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

.likes-admin {
  display: grid;
  gap: 8px;
}

.like-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.like-row img {
  width: 44px;
  height: 44px;
  object-fit: cover;
  border-radius: 8px;
  flex: 0 0 auto;
  background: var(--line);
}

.like-row div {
  display: grid;
  flex: 1;
  min-width: 0;
}

.like-row strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.like-row small {
  color: var(--muted);
}

.like-row-heart {
  color: #ff4d6d;
  font-size: 1.2rem;
}

.feed-item:hover .feed-heart {
  opacity: 1;
  transform: scale(1);
}

.feed-item.liked .feed-heart {
  color: #ff4d6d;
  opacity: 1;
  transform: scale(1);
}

.feed-likes {
  position: absolute;
  left: 8px;
  bottom: 8px;
  z-index: 1;
  display: none;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 800;
  backdrop-filter: blur(4px);
}

.feed-likes.has {
  display: inline-flex;
}

.feed-likes b {
  color: #ff4d6d;
  font-size: 0.85rem;
  line-height: 1;
}

.feed-heart-burst {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 2;
  color: #ff4d6d;
  font-size: 4rem;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0);
  text-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
  animation: feed-heart-pop 0.9s ease forwards;
}

@keyframes feed-heart-pop {
  0% { transform: translate(-50%, -50%) scale(0); opacity: 0; }
  15% { transform: translate(-50%, -50%) scale(1.2); opacity: 1; }
  30% { transform: translate(-50%, -50%) scale(0.95); opacity: 1; }
  45% { transform: translate(-50%, -50%) scale(1); opacity: 1; }
  100% { transform: translate(-50%, -60%) scale(1); opacity: 0; }
}

/* ---- Lightbox ---- */
.lightbox {
  position: fixed;
  inset: 0;
  z-index: 85;
  display: grid;
  place-items: center;
  padding: 40px 16px;
  background: rgba(12, 9, 7, 0.92);
  backdrop-filter: blur(6px);
}

.lightbox[hidden] {
  display: none;
}

.lightbox img {
  max-width: min(92vw, 900px);
  max-height: 84vh;
  border-radius: 14px;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
}

.lightbox img.pop {
  animation: popIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes popIn {
  from { opacity: 0; transform: scale(0.94); }
  to { opacity: 1; transform: scale(1); }
}

.lightbox-close,
.lightbox-nav {
  position: absolute;
  border: 0;
  color: #fff;
  background: rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  cursor: pointer;
  display: grid;
  place-items: center;
}

.lightbox-close {
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  font-size: 1.2rem;
}

.lightbox-nav {
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  font-size: 1.8rem;
}

.lightbox-nav.prev { left: 16px; }
.lightbox-nav.next { right: 16px; }

.lightbox-nav:hover,
.lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

/* ---- Convite personalizado da família ---- */
.invite-shell {
  min-height: calc(100vh - 66px);
  padding-bottom: 60px;
}

.invite-hero {
  position: relative;
  display: grid;
  place-items: center;
  text-align: center;
  min-height: 62vh;
  padding: clamp(40px, 8vw, 90px) 20px;
  overflow: hidden;
  color: #fff;
}

.invite-hero-bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(160deg, var(--accent), var(--accent-dark)) center/cover;
  transform: scale(1.06);
  animation: heroZoom 20s ease-in-out infinite alternate;
}

.invite-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(20, 15, 11, 0.35), rgba(20, 15, 11, 0.72));
}

.invite-hero-content {
  position: relative;
  z-index: 1;
  animation: fadeUp 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.invite-hero-content .eyebrow {
  color: rgba(255, 255, 255, 0.85);
}

.invite-hero-content h1 {
  font-size: clamp(2.4rem, 7vw, 4.4rem);
  margin-bottom: 6px;
}

.invite-greeting {
  font-family: var(--font-script);
  font-size: clamp(2rem, 8vw, 3.6rem);
  line-height: 1.1;
  color: #fff;
}

.invite-event {
  display: grid;
  gap: 4px;
  margin-top: 18px;
  font-size: 1.05rem;
}

.invite-event strong {
  font-size: 1.2rem;
}

.invite-body {
  width: min(560px, 100%);
  margin: -46px auto 0;
  position: relative;
  z-index: 2;
  padding: 0 16px;
  display: grid;
  gap: 18px;
}

.invite-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  padding: clamp(22px, 5vw, 34px);
  animation: fadeUp 0.7s ease both;
}

.invite-card h2 {
  margin: 4px 0 6px;
  font-size: 1.7rem;
}

.invite-seats {
  color: var(--muted);
  margin-bottom: 18px;
}

.attend-toggle {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.attend-option {
  padding: 14px;
  border-radius: 16px;
  border: 1.5px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.attend-option:hover {
  border-color: var(--accent);
}

.attend-option.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  box-shadow: 0 12px 26px rgba(143, 95, 74, 0.3);
}

.attend-option[data-attend="no"].active {
  background: linear-gradient(135deg, #8a7d72, #5d534a);
  box-shadow: 0 12px 26px rgba(93, 83, 74, 0.3);
}

.invite-count {
  margin-bottom: 18px;
}

.invite-count[hidden] {
  display: none;
}

.invite-count > span {
  display: block;
  margin-bottom: 10px;
  font-weight: 700;
  color: var(--muted);
}

.count-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.count-chip {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.16s ease;
}

.count-chip:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
}

.count-chip.active {
  border-color: transparent;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--green));
  box-shadow: 0 12px 24px rgba(80, 118, 93, 0.32);
  transform: translateY(-2px) scale(1.05);
}

/* Pessoas além do reservado */
.count-chip.extra {
  border-style: dashed;
  border-color: var(--accent);
}

/* Botão "+" para adicionar mais pessoas */
.count-chip.count-add {
  border-style: dashed;
  border-color: var(--accent);
  color: var(--accent);
  font-size: 1.5rem;
  line-height: 1;
}

.count-chip.count-add:hover {
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--green));
  border-color: transparent;
}

.invite-field {
  display: grid;
  gap: 6px;
  margin-bottom: 14px;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
}

.invite-field input,
.invite-field textarea {
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
  font-weight: 500;
}

.invite-field input:focus,
.invite-field textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

.invite-done {
  text-align: center;
}

.invite-done-badge {
  width: 74px;
  height: 74px;
  margin: 0 auto 14px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: 2rem;
  color: #fff;
  background: linear-gradient(135deg, var(--green), var(--accent));
  box-shadow: 0 16px 34px rgba(80, 118, 93, 0.4);
  animation: popIn 0.5s cubic-bezier(0.22, 1, 0.36, 1);
}

.invite-done.declined .invite-done-badge {
  background: linear-gradient(135deg, #8a7d72, #5d534a);
}

.invite-done-text,
.invite-done p {
  color: var(--muted);
  margin: 10px 0 16px;
}

.invite-actions-row {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.invite-empty {
  width: min(460px, 100%);
  margin: 60px auto;
  padding: 40px 26px;
  text-align: center;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.invite-empty-badge {
  font-size: 2.6rem;
  margin-bottom: 8px;
}

.invite-empty h1 {
  font-size: 2rem;
  margin-bottom: 10px;
}

.invite-empty p {
  color: var(--muted);
  margin-bottom: 20px;
}

/* ---- Botão de convite na tabela + modal ---- */
.chip-button {
  border: 0;
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  font-weight: 800;
  font-size: 0.82rem;
  cursor: pointer;
  color: #fff;
  background: linear-gradient(135deg, var(--accent), var(--green));
  box-shadow: 0 8px 18px rgba(80, 118, 93, 0.26);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}

.chip-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(80, 118, 93, 0.34);
}

.status-pill.declined {
  color: #7a4a44;
  background: rgba(199, 127, 114, 0.16);
}

.invite-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(14, 11, 9, 0.6);
  backdrop-filter: blur(6px);
}

.invite-modal[hidden] {
  display: none;
}

.invite-modal-card {
  position: relative;
  width: min(400px, 100%);
  max-height: 90vh;
  overflow-y: auto;
  padding: 28px 24px;
  text-align: center;
  background: var(--surface);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lift);
  animation: popIn 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.invite-modal-card h3 {
  font-size: 1.5rem;
  margin: 4px 0 8px;
}

.invite-modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  border: 0;
  background: transparent;
  color: var(--muted);
  font-size: 1.2rem;
  cursor: pointer;
}

.invite-modal-status {
  display: inline-block;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  font-weight: 700;
  font-size: 0.84rem;
  margin-bottom: 16px;
  background: rgba(180, 138, 69, 0.16);
  color: var(--accent-dark);
}

.invite-modal-status[data-state="confirmed"] {
  background: rgba(80, 118, 93, 0.16);
  color: var(--green);
}

.invite-modal-status[data-state="declined"] {
  background: rgba(199, 127, 114, 0.16);
  color: #a05a4f;
}

.invite-qr {
  display: grid;
  place-items: center;
  margin-bottom: 16px;
}

.invite-qr img {
  width: 190px;
  height: 190px;
  border-radius: 16px;
  border: 1px solid var(--line);
  padding: 8px;
  background: #fff;
}

.invite-link-field {
  display: grid;
  gap: 6px;
  text-align: left;
  font-weight: 700;
  font-size: 0.82rem;
  color: var(--muted);
  margin-bottom: 16px;
}

.invite-link-field .inline-add {
  display: flex;
  gap: 8px;
}

.invite-link-field input {
  flex: 1;
  min-width: 0;
  padding: 11px 13px;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.82rem;
}

.invite-modal-actions {
  display: grid;
  gap: 10px;
}

/* ---- Status: confirmou mais que o reservado ---- */
.status-pill.over {
  background: linear-gradient(135deg, #d98324, #b4531f);
}

/* ---- Formulário de edição no modal ---- */
.guest-edit-form {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  text-align: left;
}

/* ---- Modal de confirmação de exclusão ---- */
.confirm-card {
  text-align: center;
}

.confirm-icon {
  font-size: 2.6rem;
  margin-bottom: 4px;
}

.confirm-card p {
  color: var(--muted);
  margin: 6px 0 18px;
}

.danger-button {
  border: 0;
  border-radius: var(--radius-pill);
  padding: 12px 18px;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  background: linear-gradient(135deg, #e2574c, #b32b23);
  box-shadow: 0 12px 26px rgba(179, 43, 35, 0.32);
}

.danger-button:hover {
  filter: brightness(1.05);
}

.danger-button:disabled {
  opacity: 0.6;
  cursor: progress;
}

/* ---- Celebração (confete de corações) ---- */
.celebrate-layer {
  position: fixed;
  inset: 0;
  z-index: 95;
  pointer-events: none;
  overflow: hidden;
}

.celebrate-layer span {
  position: absolute;
  top: -8%;
  animation: confettiFall 2.6s ease-in forwards;
}

@keyframes confettiFall {
  0% { transform: translateY(0) rotate(0); opacity: 1; }
  100% { transform: translateY(112vh) rotate(340deg); opacity: 0; }
}

/* ---- Botão flutuante moderno ---- */
.floating-rsvp {
  border-radius: var(--radius-pill);
  box-shadow: 0 16px 34px rgba(143, 95, 74, 0.4);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark)) !important;
}

.floating-rsvp[hidden] {
  display: none !important;
}

/* ---- Trava de scroll com modal aberto ---- */
body.modal-open {
  overflow: hidden;
}

/* ---- Ajustes finos de responsividade novos ---- */
@media (max-width: 720px) {
  .photo-feed {
    gap: 5px;
  }

  .info-grid,
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .story-bubble,
  .story-bubble small {
    width: 68px;
    max-width: 68px;
  }

  .story-ring {
    width: 64px;
    height: 64px;
  }
}

/* ---- Cards de resumo (noivo, noiva, casal, total, confirmados) ---- */
.stats-grid {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 900px) {
  .stats-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* ---- Mural de recados ---- */
.guestbook-section {
  max-width: 760px;
  margin: 0 auto 70px;
  padding: 0 20px;
}

.guestbook-form {
  display: grid;
  gap: 12px;
  padding: clamp(20px, 4vw, 28px);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  margin-bottom: 22px;
}

.guestbook-form input,
.guestbook-form textarea {
  padding: 13px 15px;
  border: 1.5px solid var(--line);
  border-radius: 14px;
  background: var(--bg);
  color: var(--ink);
}

.guestbook-form input:focus,
.guestbook-form textarea:focus {
  outline: none;
  border-color: var(--accent);
  background: var(--surface);
}

.guestbook-feed {
  display: grid;
  gap: 14px;
}

.guestbook-empty {
  text-align: center;
  color: var(--muted);
}

.guestbook-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  animation: fadeUp 0.5s ease both;
}

.guestbook-avatar {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--green));
  box-shadow: 0 8px 18px rgba(80, 118, 93, 0.24);
}

.guestbook-bubble {
  flex: 1;
  padding: 12px 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px 18px 18px 18px;
  box-shadow: var(--shadow-soft);
}

.guestbook-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
  margin-bottom: 4px;
}

.guestbook-top small {
  color: var(--muted);
  font-size: 0.76rem;
}

.guestbook-bubble p {
  margin: 0;
  line-height: 1.55;
}

/* ---- Painel de recados (moderação) ---- */
.messages-admin {
  display: grid;
  gap: 12px;
}

.message-card {
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.message-card.hidden-message {
  opacity: 0.55;
}

.message-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 6px;
}

.message-head small {
  color: var(--muted);
  font-size: 0.76rem;
}

.message-actions {
  display: flex;
  gap: 8px;
  margin-top: 10px;
}

/* ---- Botão instalar app ---- */
.install-button {
  border-color: var(--accent);
  color: var(--accent-dark);
  font-weight: 800;
}

/* ---- Reels (vídeos em carrossel vertical) ---- */
.reels-track {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding-bottom: 8px;
  scrollbar-width: none;
}

.reels-track::-webkit-scrollbar {
  display: none;
}

.reels-track .reel {
  flex: 0 0 auto;
  width: min(280px, 74vw);
  aspect-ratio: 9 / 16;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: #000;
  scroll-snap-align: center;
  box-shadow: var(--shadow-soft);
}

.reels-track .reel iframe,
.reels-track .reel video {
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  display: block;
}

/* ============================================================
   Aparência avançada — fundo animado, efeito vidro e modelo Futurista
   ============================================================ */

:root {
  --accent-2: var(--gold);
}

/* ---- Fundo animado (aurora) — funciona em qualquer modelo ---- */
body[data-animated-bg="true"]::before {
  content: "";
  position: fixed;
  inset: -25vmax;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(38vmax 38vmax at 18% 20%, color-mix(in srgb, var(--accent) 55%, transparent), transparent 60%),
    radial-gradient(34vmax 34vmax at 82% 28%, color-mix(in srgb, var(--accent-2) 55%, transparent), transparent 60%),
    radial-gradient(42vmax 42vmax at 50% 90%, color-mix(in srgb, var(--green) 45%, transparent), transparent 62%);
  filter: blur(12px) saturate(1.15);
  opacity: 0.5;
  animation: aurora-move 20s ease-in-out infinite alternate;
}

@keyframes aurora-move {
  0% { transform: translate3d(-4%, -3%, 0) rotate(0deg) scale(1.05); }
  50% { transform: translate3d(4%, 2%, 0) rotate(8deg) scale(1.14); }
  100% { transform: translate3d(2%, 5%, 0) rotate(-6deg) scale(1.08); }
}

@media (prefers-reduced-motion: reduce) {
  body[data-animated-bg="true"]::before { animation: none; }
}

/* ---- Efeito vidro (glassmorphism) em cartões — funciona em qualquer modelo ---- */
body[data-glass-effect="true"] .hero-content,
body[data-glass-effect="true"] .countdown-card,
body[data-glass-effect="true"] .panel,
body[data-glass-effect="true"] .guestbook-form,
body[data-glass-effect="true"] .stories {
  background: color-mix(in srgb, var(--surface) 60%, transparent);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent);
}

/* ============================================================
   Modelo Futurista — cara de convite virtual, neon e vidro
   ============================================================ */
body[data-home-template="futurista"] {
  --bg: #0b1020;
  --surface: #141a30;
  --ink: #eaf0ff;
  --muted: #a9b4d0;
  --line: #26304f;
  --accent: #7c5cff;
  --accent-dark: #5a3fe0;
  --accent-2: #29d0c9;
  --green: #3ad1a3;
  --rose: #ff6ea9;
  --gold: #8fd0ff;
  color-scheme: dark;
  background:
    radial-gradient(60vmax 60vmax at 12% 8%, rgba(124, 92, 255, 0.22), transparent 60%),
    radial-gradient(55vmax 55vmax at 88% 18%, rgba(41, 208, 201, 0.16), transparent 60%),
    var(--bg);
}

body[data-home-template="futurista"] .topbar {
  background: rgba(11, 16, 32, 0.72);
  border-bottom: 1px solid rgba(124, 92, 255, 0.28);
  backdrop-filter: blur(16px);
}

body[data-home-template="futurista"] .nav a {
  color: var(--muted);
}

body[data-home-template="futurista"] .brand strong {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body[data-home-template="futurista"] .hero {
  background:
    linear-gradient(160deg, rgba(11, 16, 32, 0.7), rgba(11, 16, 32, 0.92)),
    url("https://images.unsplash.com/photo-1519681393784-d120267933ba?auto=format&fit=crop&w=1800&q=80") center/cover;
  color: var(--ink);
}

body[data-home-template="futurista"] .hero-content {
  background: linear-gradient(155deg, rgba(20, 26, 48, 0.72), rgba(20, 26, 48, 0.5));
  border: 1px solid rgba(124, 92, 255, 0.35);
  box-shadow:
    inset 0 0 0 1px rgba(41, 208, 201, 0.1),
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 70px rgba(124, 92, 255, 0.22);
  backdrop-filter: blur(22px) saturate(1.25);
  -webkit-backdrop-filter: blur(22px) saturate(1.25);
}

body[data-home-template="futurista"] .hero-content h1 {
  font-family: Inter, system-ui, sans-serif;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body[data-home-template="futurista"] .eyebrow {
  color: var(--accent-2);
  letter-spacing: 0.42em;
}

body[data-home-template="futurista"] .primary-button {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  border: 0;
  color: #0b1020;
  font-weight: 800;
  box-shadow: 0 12px 34px rgba(124, 92, 255, 0.45), 0 0 22px rgba(41, 208, 201, 0.3);
}

body[data-home-template="futurista"] .primary-button:hover {
  box-shadow: 0 16px 42px rgba(124, 92, 255, 0.6), 0 0 30px rgba(41, 208, 201, 0.45);
}

body[data-home-template="futurista"] .secondary-button {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(124, 92, 255, 0.5);
  color: var(--ink);
  backdrop-filter: blur(8px);
}

body[data-home-template="futurista"] .secondary-button:hover {
  border-color: var(--accent-2);
  box-shadow: 0 0 26px rgba(41, 208, 201, 0.35);
}

body[data-home-template="futurista"] .countdown-card {
  background: rgba(20, 26, 48, 0.55);
  border: 1px solid rgba(124, 92, 255, 0.3);
  backdrop-filter: blur(14px);
}

body[data-home-template="futurista"] .countdown-grid strong {
  background: linear-gradient(160deg, rgba(124, 92, 255, 0.28), rgba(41, 208, 201, 0.14));
  border: 1px solid rgba(124, 92, 255, 0.32);
  color: var(--ink);
  box-shadow: inset 0 0 22px rgba(124, 92, 255, 0.16);
}

body[data-home-template="futurista"] .hero::after {
  border-color: rgba(41, 208, 201, 0.5);
  box-shadow: 0 0 30px rgba(41, 208, 201, 0.3);
}

body[data-home-template="futurista"] .floating-rsvp {
  background: linear-gradient(120deg, var(--accent), var(--accent-2));
  color: #0b1020;
  box-shadow: 0 12px 34px rgba(124, 92, 255, 0.5);
}

/* ===================== Melhorias do painel (jul/2026) ===================== */

/* Avatar com imagem + cabeçalho do menu */
.account-avatar {
  position: relative;
  overflow: hidden;
}
.account-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.account-dropdown-head {
  display: grid;
  gap: 2px;
  padding: 6px 8px 9px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 4px;
}
.account-dropdown-head strong {
  padding: 0;
  border: 0;
}
.account-role-badge {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}
.account-dropdown-sep {
  height: 1px;
  background: var(--line);
  margin: 4px 0;
}

/* Formulário de equipe com permissões */
.team-form .team-perms {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 14px;
  margin: 6px 0 14px;
}
.team-perms fieldset {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
}
.team-perms legend {
  font-weight: 800;
  font-size: 0.85rem;
  padding: 0 6px;
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 0;
  font-weight: 600;
  cursor: pointer;
}
.check-row input {
  width: 18px;
  height: 18px;
  accent-color: var(--accent);
}
.team-perm-tags {
  display: block;
  margin-top: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--muted);
}
.extra-badge {
  display: inline-block;
  margin-left: 4px;
  padding: 1px 7px;
  border-radius: var(--radius-pill);
  background: rgba(180, 138, 69, 0.16);
  color: var(--gold);
  font-size: 0.68rem;
  font-weight: 800;
}

/* Painel Minha conta */
.account-card .account-avatar-edit {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}
.account-card .avatar-preview {
  display: grid;
  place-items: center;
  width: 76px;
  height: 76px;
  border-radius: 50%;
  overflow: hidden;
  color: #fff;
  font-weight: 900;
  font-size: 1.3rem;
  background: linear-gradient(135deg, var(--accent), var(--green));
  flex: 0 0 auto;
}
.account-card .avatar-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.account-card .account-avatar-fields {
  display: grid;
  gap: 8px;
  flex: 1 1 220px;
}

/* Painel Mídias & Música */
.media-block {
  margin-top: 18px;
}
.media-block h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}
.media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 10px;
}
.media-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius-sm);
}
.media-videos {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}
.media-video {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.media-video iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* Painel de convites — cartões com QR */
.invites-toolbar {
  display: flex;
  align-items: flex-end;
  gap: 12px;
  flex-wrap: wrap;
}
.invites-toolbar label {
  display: grid;
  gap: 4px;
  font-weight: 700;
  font-size: 0.85rem;
}
.invite-cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 14px;
  margin-top: 16px;
}
.invite-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 16px 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-soft);
}
.invite-card-head {
  display: flex;
  justify-content: space-between;
  width: 100%;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.invite-card-couple {
  font-weight: 800;
  color: var(--accent);
}
.invite-card-family {
  font-family: var(--font-display);
  font-size: 1.25rem;
  line-height: 1.1;
}
.invite-card-qr {
  width: 120px;
  height: 120px;
  margin: 4px 0;
}
.invite-card-hint {
  font-size: 0.74rem;
  color: var(--muted);
}
.invite-card-deadline {
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--accent-dark);
  background: rgba(180, 138, 69, 0.16);
  padding: 3px 10px;
  border-radius: 999px;
}
.invite-card-photos-note {
  font-size: 0.64rem;
  font-weight: 800;
  color: var(--green);
  text-align: center;
  line-height: 1.2;
}

/* ---- Fotos por família (modal de convite) ---- */
.family-photos-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  text-align: left;
}
.family-photos-box[hidden] {
  display: none;
}
.family-photos-upload {
  display: grid;
  gap: 6px;
  margin: 10px 0;
  font-weight: 700;
  font-size: 0.9rem;
  color: var(--muted);
}
.media-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 1;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #eee;
}
.media-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.media-thumb-remove {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  font-weight: 800;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.55);
}

/* ---- Convite pós-casamento: fotos da família ---- */
.invite-photos-card {
  padding: clamp(20px, 5vw, 42px);
  text-align: center;
}
.invite-photos-card h1 {
  font-family: var(--font-display);
  margin: 6px 0 10px;
}
.invite-photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
  gap: 8px;
  margin: 20px 0;
}
.invite-photo-item {
  padding: 0;
  border: 0;
  overflow: hidden;
  border-radius: 10px;
  aspect-ratio: 1;
  cursor: pointer;
  background: var(--line);
}
.invite-photo-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.3s ease;
}
.invite-photo-item:hover img {
  transform: scale(1.06);
}
.invite-card-link {
  font-size: 0.66rem;
  color: var(--muted);
  word-break: break-all;
}

/* Impressão da folha de cartões (6 ou 8 por folha A4) */
@media print {
  @page {
    size: A4;
    margin: 8mm;
  }

  body {
    background: #fff !important;
  }

  /* Esconde toda a moldura do painel; deixa fluir só os cartões (pagina certo). */
  .topbar,
  .no-print,
  .panel-page-header,
  .floating-rsvp,
  .audio-controls,
  .account-menu,
  .dashboard-header,
  .stats-grid,
  .dashboard-tabs {
    display: none !important;
  }

  .invite-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6mm;
    margin: 0;
  }

  .invite-card {
    break-inside: avoid;
    page-break-inside: avoid;
    justify-content: center;
    box-shadow: none;
    border: 1px dashed #bbb;
    overflow: hidden;
  }

  /* 6 por folha = 2 colunas × 3 linhas */
  .invite-cards[data-per-sheet="6"] .invite-card {
    height: 88mm;
  }
  .invite-cards[data-per-sheet="6"] .invite-card-qr {
    width: 34mm;
    height: 34mm;
  }

  /* 8 por folha = 2 colunas × 4 linhas */
  .invite-cards[data-per-sheet="8"] .invite-card {
    height: 64mm;
  }
  .invite-cards[data-per-sheet="8"] .invite-card-qr {
    width: 24mm;
    height: 24mm;
  }
  .invite-cards[data-per-sheet="8"] .invite-card-family {
    font-size: 1rem;
  }
  .invite-cards[data-per-sheet="8"] .invite-card-hint {
    font-size: 0.62rem;
  }
  .invite-cards[data-per-sheet="8"] .invite-card-link {
    font-size: 0.56rem;
  }
}

/* ---- Confete (chuva ao confirmar presença) ---- */
.confetti-piece {
  display: block;
  border-radius: 2px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.12);
}

/* ===================== Convite digital (landing page premium) ===================== */
.dinvite {
  --dink: #2a2622;
  color: var(--dink);
  overflow-x: hidden;
}

/* Barra de progresso de leitura */
.dinvite-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  z-index: 60;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width 0.1s linear;
}

/* HERO cinematográfico */
.dinvite-hero {
  position: relative;
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  text-align: center;
  overflow: hidden;
  color: #fff;
}
.dinvite-hero-bg {
  position: absolute;
  inset: -4%;
  background: linear-gradient(135deg, var(--accent), var(--green));
  background-size: cover;
  background-position: center;
  animation: dinviteKenBurns 18s ease-in-out infinite alternate;
}
@keyframes dinviteKenBurns {
  from { transform: scale(1.05); }
  to { transform: scale(1.18) translateY(-2%); }
}
.dinvite-hero-veil {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(120% 80% at 50% 15%, transparent 40%, rgba(15, 12, 9, 0.55) 100%),
    linear-gradient(180deg, rgba(15, 12, 9, 0.28), rgba(15, 12, 9, 0.66));
}
.dinvite-hero-grain,
.dinvite-cta-grain {
  position: absolute;
  inset: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 4px 4px;
  pointer-events: none;
}
.dinvite-hero-inner {
  position: relative;
  display: grid;
  gap: 14px;
  justify-items: center;
  padding: 48px 24px;
}
.dinvite-hero-inner > * {
  opacity: 0;
  transform: translateY(26px);
  animation: dinviteRise 0.9s cubic-bezier(0.2, 0.7, 0.2, 1) forwards;
}
.dinvite-hero-inner > *:nth-child(1) { animation-delay: 0.15s; }
.dinvite-hero-inner > *:nth-child(2) { animation-delay: 0.3s; }
.dinvite-hero-inner > *:nth-child(3) { animation-delay: 0.45s; }
.dinvite-hero-inner > *:nth-child(4) { animation-delay: 0.6s; }
.dinvite-hero-inner > *:nth-child(5) { animation-delay: 0.72s; }
.dinvite-hero-inner > *:nth-child(6) { animation-delay: 0.84s; }
.dinvite-hero-inner > *:nth-child(7) { animation-delay: 0.96s; }
@keyframes dinviteRise {
  to { opacity: 1; transform: translateY(0); }
}
.dinvite-kicker {
  text-transform: uppercase;
  letter-spacing: 0.42em;
  font-size: 0.64rem;
  font-weight: 800;
  padding: 7px 16px 7px 18px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-pill);
}
.dinvite-kicker.dark {
  color: var(--accent);
  border-color: var(--line);
}
.dinvite-monogram {
  display: grid;
  place-items: center;
  width: 84px;
  height: 84px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.75);
  font-family: var(--font-display);
  font-size: 1.6rem;
  letter-spacing: 0.12em;
  backdrop-filter: blur(2px);
}
.dinvite-monogram.light {
  border-color: rgba(255, 255, 255, 0.7);
  color: #fff;
}
.dinvite-eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.34em;
  font-size: 0.74rem;
  font-weight: 700;
  opacity: 0.92;
  margin: 0;
}
.dinvite-couple {
  font-family: var(--font-script, "Great Vibes", cursive);
  font-weight: 400;
  font-size: clamp(3.4rem, 13vw, 6rem);
  line-height: 0.98;
  margin: 0;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
}
.dinvite-ornament {
  display: flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.85);
}
.dinvite-ornament span {
  display: block;
  width: 46px;
  height: 1px;
  background: currentColor;
  opacity: 0.7;
}
.dinvite-ornament i {
  font-style: normal;
  font-size: 0.9rem;
}
.dinvite-family {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 4.5vw, 1.7rem);
  margin: 0;
}
.dinvite-date {
  letter-spacing: 0.16em;
  font-weight: 600;
  font-size: 0.95rem;
  margin: 2px 0 0;
}
.dinvite-scroll {
  position: absolute;
  bottom: 26px;
  left: 50%;
  transform: translateX(-50%);
  width: 26px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 14px;
  z-index: 2;
}
.dinvite-scroll span {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 4px;
  height: 8px;
  margin-left: -2px;
  border-radius: 2px;
  background: #fff;
  animation: dinviteScroll 1.6s ease-in-out infinite;
}
@keyframes dinviteScroll {
  0% { opacity: 0; transform: translateY(0); }
  40% { opacity: 1; }
  100% { opacity: 0; transform: translateY(16px); }
}

/* Blocos + reveal on scroll */
.dinvite-block {
  max-width: 820px;
  margin: 0 auto;
  padding: 60px 24px;
  text-align: center;
}
[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.8s ease, transform 0.8s cubic-bezier(0.2, 0.7, 0.2, 1);
}
[data-reveal].in {
  opacity: 1;
  transform: translateY(0);
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  .dinvite-hero-inner > * { animation: none; opacity: 1; transform: none; }
  .dinvite-hero-bg { animation: none; }
}

.dinvite-script {
  font-family: var(--font-script, "Great Vibes", cursive);
  font-size: 2.1rem;
  color: var(--accent);
  margin: 10px 0 14px;
}
.dinvite-kicker + .dinvite-h2,
.dinvite-kicker.dark {
  margin-top: 12px;
}
.dinvite-invmsg {
  font-family: var(--font-display);
  font-size: clamp(1.3rem, 4vw, 1.6rem);
  line-height: 1.55;
  color: var(--muted);
  margin: 0;
}
.dinvite-h2 {
  font-family: var(--font-display);
  font-size: clamp(1.7rem, 5vw, 2.1rem);
  margin: 10px 0 22px;
}
.dinvite-count-block {
  display: grid;
  place-items: center;
  padding: 10px 20px 30px;
}
.dinvite-count-block .countdown-card {
  box-shadow: var(--shadow-lift);
}

/* Detalhes */
.dinvite-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
}
.dinvite-details article {
  padding: 28px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.dinvite-details article:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lift);
}
.dinvite-ico {
  font-size: 1.8rem;
}
.dinvite-details h3 {
  margin: 10px 0 6px;
  font-family: var(--font-display);
  font-size: 1.2rem;
}
.dinvite-details p {
  margin: 0;
  font-weight: 600;
}
.dinvite-details small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

/* Localização / mapa */
.dinvite-location-addr {
  margin: 0 0 18px;
  font-weight: 600;
  color: var(--muted);
}
.dinvite-map {
  height: 340px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-lift);
  margin-bottom: 20px;
}
.dinvite-map iframe,
.dinvite-map .leaflet-container {
  width: 100%;
  height: 100%;
  border: 0;
}

/* Galeria */
.dinvite-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}
.dinvite-gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: var(--radius);
  transition: transform 0.3s ease;
}
.dinvite-gallery-grid img:hover {
  transform: scale(1.04);
}

/* Programação */
.dinvite-schedule ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
  max-width: 480px;
  margin-inline: auto;
}
.dinvite-schedule li {
  padding: 14px 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-weight: 600;
  box-shadow: var(--shadow-soft);
}

/* CTA */
.dinvite-cta {
  position: relative;
  overflow: hidden;
  text-align: center;
  color: #fff;
  margin-top: 24px;
}
.dinvite-cta-veil {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--accent-dark), var(--accent) 60%, var(--gold));
}
.dinvite-cta-inner {
  position: relative;
  padding: 72px 24px;
  display: grid;
  gap: 16px;
  justify-items: center;
}
.dinvite-cta .dinvite-h2 {
  color: #fff;
}
.dinvite-seats {
  margin: 0;
  opacity: 0.94;
  max-width: 460px;
}
.dinvite-cta-btn {
  display: inline-block;
  padding: 16px 46px;
  border-radius: var(--radius-pill);
  background: #fff;
  color: var(--accent-dark);
  font-weight: 800;
  letter-spacing: 0.02em;
  text-decoration: none;
  box-shadow: 0 22px 50px rgba(0, 0, 0, 0.28);
  transition: transform 0.16s ease, box-shadow 0.16s ease;
}
.dinvite-cta-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}
.dinvite-cta-btn.ghost {
  background: transparent;
  color: var(--accent-dark);
  border: 1.5px solid var(--accent);
  box-shadow: none;
}
.dinvite-cta-btn.ghost:hover {
  background: rgba(143, 95, 74, 0.08);
}
.dinvite-cta-links {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 4px;
}
.dinvite-cta-links a {
  color: #fff;
  text-decoration: underline;
  font-weight: 600;
  font-size: 0.9rem;
  opacity: 0.9;
}

/* Rodapé */
.dinvite-footer {
  text-align: center;
  padding: 48px 24px;
  display: grid;
  gap: 8px;
  justify-items: center;
}
.dinvite-footer p {
  font-family: var(--font-script, "Great Vibes", cursive);
  font-size: 2rem;
  color: var(--accent);
  margin: 0;
}
.dinvite-footer small {
  color: var(--muted);
}

/* Botão flutuante de confirmar */
.dinvite-float {
  position: fixed;
  left: 50%;
  bottom: 20px;
  transform: translateX(-50%);
  z-index: 55;
  padding: 14px 32px;
  border-radius: var(--radius-pill);
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
  color: #fff;
  font-weight: 800;
  text-decoration: none;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.32);
  animation: dinviteFloatIn 0.4s ease;
}
.dinvite-float[hidden] {
  display: none !important;
}
@keyframes dinviteFloatIn {
  from { opacity: 0; transform: translate(-50%, 20px); }
  to { opacity: 1; transform: translate(-50%, 0); }
}
