:root {
  --surface: #f9f9fd;
  --surface-dim: #dadade;
  --surface-bright: #f9f9fd;
  --surface-container-lowest: #ffffff;
  --surface-container-low: #f3f3f8;
  --surface-container: #eeedf2;
  --surface-container-high: #e8e8ec;
  --surface-container-highest: #e2e2e6;
  --on-surface: #1a1c1f;
  --on-surface-variant: #42474f;
  --inverse-surface: #2f3034;
  --inverse-on-surface: #f1f0f5;
  --outline: #737780;
  --outline-variant: #c3c6d0;
  --surface-tint: #386091;
  --primary: #355e8f;
  --on-primary: #ffffff;
  --primary-container: #4f76a9;
  --on-primary-container: #fdfcff;
  --inverse-primary: #a3c9ff;
  --secondary: #515f74;
  --on-secondary: #ffffff;
  --secondary-container: #d5e3fd;
  --on-secondary-container: #57657b;
  --tertiary: #7a5504;
  --on-tertiary: #ffffff;
  --tertiary-container: #966d20;
  --on-tertiary-container: #fffbff;
  --error: #ba1a1a;
  --error-container: #ffdad6;
  --success: #315f46;
  --background: #f9f9fd;
  --shadow: rgba(81, 95, 116, 0.13);
  --gold-soft: #f7ead0;
  --blue-soft: rgba(53, 94, 143, 0.1);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --nav-height: 86px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  font-family:
    "Cause",
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: var(--on-surface);
  background:
    radial-gradient(
      circle at 15% 12%,
      rgba(163, 201, 255, 0.34),
      transparent 30%
    ),
    radial-gradient(
      circle at 90% 12%,
      rgba(241, 190, 105, 0.18),
      transparent 28%
    ),
    linear-gradient(135deg, #f9f9fd 0%, #f3f4fa 48%, #fffaf3 100%);
}

body.lightbox-open {
  overflow: hidden;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.page-shell {
  min-height: 100vh;
  padding: clamp(12px, 2vw, 24px);
}

.phone {
  position: relative;
  width: min(1120px, 100%);
  min-height: calc(100vh - clamp(24px, 4vw, 48px));
  margin: 0 auto;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid rgba(195, 198, 208, 0.5);
  border-radius: clamp(14px, 2.2vw, 28px);
  box-shadow:
    0 20px 58px rgba(47, 48, 52, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.phone::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 220px;
  background:
    linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.88),
      rgba(249, 249, 253, 0.72) 72%,
      transparent
    ),
    radial-gradient(
      circle at 78% 18%,
      rgba(122, 85, 4, 0.12),
      transparent 34%
    ),
    radial-gradient(
      circle at 18% 10%,
      rgba(53, 94, 143, 0.16),
      transparent 35%
    );
  pointer-events: none;
  z-index: 0;
}

.statusbar {
  display: none;
}

.status-icons {
  display: flex;
  align-items: center;
  gap: 6px;
}

.signal {
  width: 18px;
  height: 14px;
  display: grid;
  grid-template-columns: repeat(4, 3px);
  gap: 2px;
  align-items: end;
}

.signal span {
  display: block;
  width: 3px;
  background: #111;
  border-radius: 2px;
}
.signal span:nth-child(1) {
  height: 4px;
}
.signal span:nth-child(2) {
  height: 7px;
}
.signal span:nth-child(3) {
  height: 10px;
}
.signal span:nth-child(4) {
  height: 13px;
}

.wifi {
  width: 18px;
  height: 14px;
  border: 3px solid #111;
  border-left-color: transparent;
  border-right-color: transparent;
  border-bottom-color: transparent;
  border-radius: 50%;
  position: relative;
  transform: translateY(3px);
}

.wifi::after {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  background: #111;
  border-radius: 50%;
  left: 3px;
  top: 5px;
}

.battery {
  width: 26px;
  height: 13px;
  border: 2px solid #111;
  border-radius: 4px;
  position: relative;
  padding: 2px;
}

.battery::before {
  content: "";
  position: absolute;
  right: -5px;
  top: 3px;
  width: 3px;
  height: 5px;
  background: #111;
  border-radius: 0 2px 2px 0;
}

.battery::after {
  content: "";
  display: block;
  height: 100%;
  width: 78%;
  background: #111;
  border-radius: 2px;
}

.app {
  position: relative;
  z-index: 1;
  min-height: 100%;
  padding-top: 12px;
  opacity: 1;
  transition: opacity 0.28s ease;
}

.app.page-fade-out {
  opacity: 0.5;
}

.screen {
  min-height: auto;
  overflow-y: visible;
  max-width: 920px;
  margin: 0 auto;
  padding: 24px 22px calc(var(--nav-height) + 42px + var(--safe-bottom));
  opacity: 0;
  display: none;
  transition: opacity 0.35s ease;
  scrollbar-width: none;
}

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

.screen.active {
  display: block;
  opacity: 1;
  animation: screenIn 0.35s ease both;
}

@keyframes screenIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.hello {
  color: var(--on-surface-variant);
  line-height: 1.2;
  font-size: 16px;
}

.hello strong {
  display: block;
  color: var(--on-surface);
  font-weight: 600;
}

.icon-button {
  width: 46px;
  height: 46px;
  border: 1px solid rgba(195, 198, 208, 0.7);
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.72);
  color: var(--primary);
  box-shadow: 0 8px 24px rgba(81, 95, 116, 0.08);
  backdrop-filter: blur(12px);
}

.hero-card {
  position: relative;
  display: grid;
  gap: 0;
  padding: 0 0 20px;
  overflow: hidden;
  border: 1px solid rgba(195, 198, 208, 0.8);
  border-radius: 30px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(81, 95, 116, 0.13);
}

.hero-photo-wrap {
  position: relative;
  width: 100%;
  overflow: hidden;
  background: #dce6f2;
  line-height: 0;
}

.hero-photo {
  width: 100%;
  height: auto;
  display: block;
}

.hero-photo-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(255, 250, 240, 0.16) 0%,
      transparent 22%
    ),
    linear-gradient(
      0deg,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0.88) 14%,
      rgba(255, 255, 255, 0.35) 38%,
      transparent 62%
    );
}

.hero-photo-badge {
  position: absolute;
  right: 14px;
  top: 14px;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.96);
  font-size: 19px;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(53, 94, 143, 0.32);
  backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(47, 48, 52, 0.14);
  z-index: 2;
}

.hero-card::before,
.hero-card::after {
  content: none;
}

.floral {
  display: none;
}

.floral path {
  stroke-width: 1.3;
}

.floral circle {
  opacity: 0.82;
}

.hero-content {
  position: relative;
  z-index: 2;
  margin-top: -10px;
  padding: 0 18px;
  text-align: center;
}

.hero-content .details-list {
  width: min(100%, 360px);
  margin-inline: auto;
  text-align: left;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  color: var(--tertiary);
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
}

.eyebrow::before,
.eyebrow::after {
  content: "";
  width: 34px;
  height: 1px;
  background: rgba(122, 85, 4, 0.5);
}

h1,
h2,
h3,
.serif {
  font-family: "Cause", system-ui, sans-serif;
  color: var(--primary);
  margin: 0;
}

.title-script {
  font-family: "Imperial Script", system-ui, cursive;
  font-weight: 400;
  letter-spacing: 0;
}

h1 {
  font-size: clamp(46px, 14vw, 64px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

h2 {
  font-size: 42px;
  line-height: 1.1;
  letter-spacing: -0.025em;
}

h3 {
  font-size: 22px;
  line-height: 1.2;
}

p {
  margin: 0;
}

.subtitle {
  margin-top: 14px;
  color: var(--secondary);
  font-size: 17px;
  line-height: 1.45;
  font-style: italic;
}

.details-list {
  display: grid;
  gap: 8px;
  margin-top: 18px;
}

.detail-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: #173b63;
  font-weight: 600;
}

.detail-item svg {
  color: var(--tertiary-container);
  flex: 0 0 auto;
}

.countdown {
  margin-top: 16px;
  padding: 16px 12px;
  border: 1px solid rgba(195, 198, 208, 0.75);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(12px);
  box-shadow: 0 12px 28px rgba(81, 95, 116, 0.08);
}

.countdown-label {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: center;
  color: var(--secondary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.countdown-label::before,
.countdown-label::after {
  content: "";
  width: 54px;
  height: 1px;
  background: rgba(122, 85, 4, 0.45);
}

.time-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  text-align: center;
}

.time-grid div + div {
  border-left: 1px solid rgba(115, 119, 128, 0.22);
}

.time-grid strong {
  display: block;
  font-family: "Cause", system-ui, sans-serif;
  font-size: 30px;
  line-height: 1;
  color: var(--primary);
}

.time-grid span {
  display: block;
  margin-top: 6px;
  color: var(--on-surface-variant);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.section {
  margin-top: 22px;
}

.section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.section-title {
  display: grid;
  gap: 4px;
}

.section-title span {
  color: var(--secondary);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.11em;
  font-size: 12px;
}

.section-title h2 {
  font-size: 28px;
}

.link-button {
  border: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 800;
  padding: 0;
}

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

.info-card,
.glass-card,
.form-card,
.gift-card {
  border: 1px solid rgba(195, 198, 208, 0.78);
  background: rgba(255, 255, 255, 0.74);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(81, 95, 116, 0.1);
}

.info-card {
  min-height: 150px;
  border-radius: 22px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.round-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  color: var(--tertiary-container);
  background: rgba(247, 234, 208, 0.8);
  border: 1px solid rgba(150, 109, 32, 0.16);
  border-radius: 50%;
}

.info-card h3 {
  font-size: 19px;
  margin-bottom: 4px;
}

.info-card p {
  color: var(--on-surface-variant);
  line-height: 1.35;
  font-size: 14px;
}

.info-card a,
.info-card button {
  margin-top: auto;
  color: var(--primary);
  font-weight: 800;
  text-decoration: none;
  border: 0;
  background: transparent;
  padding: 0;
  text-align: left;
}

.primary-button,
.secondary-button {
  min-height: 56px;
  border-radius: 16px;
  border: 1px solid transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-weight: 800;
  letter-spacing: 0.01em;
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.primary-button {
  width: 100%;
  margin-top: 14px;
  color: var(--on-primary);
  background: linear-gradient(135deg, #214d7c, var(--primary));
  box-shadow: 0 12px 28px rgba(53, 94, 143, 0.24);
}

.primary-button svg {
  color: #f1be69;
}

.primary-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  box-shadow: none;
}

.primary-button:active,
.secondary-button:active,
.nav-item:active {
  transform: scale(0.98);
}

.secondary-button {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.88);
  border-color: rgba(53, 94, 143, 0.28);
}

.secondary-button:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.pix-actions .secondary-button {
  width: 100%;
}

.form-card {
  border-radius: 26px;
  padding: 18px;
}

.rsvp-form {
  display: grid;
  gap: 2px;
}

.field-hint {
  margin: -2px 0 0;
  color: var(--on-surface-variant);
  font-size: 13px;
  line-height: 1.45;
}

.app-title {
  text-align: center;
  margin: 8px auto 22px;
  max-width: 310px;
}

.app-title .ornament {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 10px;
  color: var(--tertiary-container);
}

.app-title .ornament::before,
.app-title .ornament::after {
  content: "";
  width: 52px;
  height: 1px;
  background: rgba(150, 109, 32, 0.48);
}

.app-title p {
  margin-top: 10px;
  color: var(--secondary);
  font-size: 16px;
  line-height: 1.45;
}

.field-group {
  display: grid;
  gap: 8px;
  margin-bottom: 18px;
}

.field-group label,
.group-label {
  color: #173b63;
  font-weight: 800;
  font-size: 15px;
}

.input-wrap {
  min-height: 56px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(195, 198, 208, 0.88);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  padding: 0 14px;
  color: var(--outline);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.input-wrap:focus-within {
  border-color: rgba(53, 94, 143, 0.85);
  box-shadow: 0 0 0 4px rgba(53, 94, 143, 0.08);
}

.input-wrap input,
.input-wrap textarea {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--on-surface);
}

.input-wrap textarea {
  resize: vertical;
  padding: 14px 0;
  min-height: 88px;
}

.guest-stepper {
  display: grid;
  grid-template-columns: 56px 1fr 56px;
  align-items: center;
  height: 56px;
  border: 1px solid rgba(195, 198, 208, 0.85);
  background: rgba(255, 255, 255, 0.72);
  border-radius: 14px;
  overflow: hidden;
}

.guest-stepper button {
  height: 100%;
  border: 0;
  background: transparent;
  color: var(--primary);
  font-size: 24px;
  font-weight: 700;
}

.guest-stepper strong {
  text-align: center;
  color: var(--primary);
  font-size: 26px;
  font-family: "Cause", system-ui, sans-serif;
}

.choice-list {
  display: grid;
  gap: 10px;
  margin-top: 8px;
}

.choice-card {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: center;
  min-height: 72px;
  padding: 12px;
  border: 1px solid rgba(195, 198, 208, 0.8);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--on-surface);
  text-align: left;
}

.choice-card.active {
  border-color: rgba(53, 94, 143, 0.82);
  background: linear-gradient(
    135deg,
    rgba(53, 94, 143, 0.12),
    rgba(255, 255, 255, 0.72)
  );
}

.choice-indicator {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  border: 2px solid rgba(115, 119, 128, 0.32);
  background: rgba(255, 255, 255, 0.88);
  color: transparent;
  margin-top: 0;
  transition:
    border-color 0.2s ease,
    background 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.choice-indicator svg {
  width: 19px;
  height: 19px;
  stroke-width: 2.3;
}

.choice-card.active .choice-indicator {
  border-color: var(--primary);
  background: var(--primary);
  color: var(--on-primary);
  box-shadow: 0 8px 18px rgba(53, 94, 143, 0.24);
}

.choice-card strong {
  display: block;
  color: #173b63;
  font-family: "Cause", system-ui, sans-serif;
  font-size: 19px;
}

.choice-content {
  display: block;
}

.choice-content span {
  display: block;
  color: var(--on-surface-variant);
  font-size: 14px;
  margin-top: 2px;
}

.notice {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  margin-top: 18px;
  color: var(--on-surface-variant);
  border-radius: 16px;
  background: rgba(247, 234, 208, 0.52);
  border: 1px solid rgba(150, 109, 32, 0.12);
  line-height: 1.35;
}

.notice svg {
  color: var(--tertiary-container);
  flex: 0 0 auto;
}

.gift-hero {
  border-radius: 22px;
  padding: 18px;
  display: grid;
  grid-template-columns: 54px 1fr 38px;
  gap: 14px;
  align-items: center;
  color: #fff;
  background:
    radial-gradient(
      circle at 85% 20%,
      rgba(241, 190, 105, 0.22),
      transparent 20%
    ),
    linear-gradient(135deg, #173b63, #355e8f);
  box-shadow: 0 16px 34px rgba(53, 94, 143, 0.24);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.gift-hero p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  line-height: 1.3;
}

.gift-hero strong {
  display: block;
  font-size: 17px;
  margin-bottom: 2px;
}
.gift-hero svg {
  color: #f1be69;
}

.gift-list {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.gift-list-error {
  color: var(--on-surface-variant);
  text-align: center;
}

.custom-pix {
  margin-top: 16px;
  padding: 18px;
  border: 1px solid rgba(53, 94, 143, 0.22);
  border-radius: 22px;
  background:
    radial-gradient(
      circle at 12% 0%,
      rgba(163, 201, 255, 0.2),
      transparent 46%
    ),
    rgba(255, 255, 255, 0.82);
  box-shadow: 0 12px 30px rgba(81, 95, 116, 0.1);
}

.custom-pix-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.custom-pix-head h3 {
  font-size: 18px;
}

.custom-pix-head p {
  color: var(--on-surface-variant);
  font-size: 14px;
  margin-top: 2px;
}

.amount-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.amount-chips button {
  flex: 1 1 auto;
  min-width: 68px;
  padding: 10px 12px;
  border-radius: 999px;
  border: 1px solid rgba(53, 94, 143, 0.28);
  background: rgba(255, 255, 255, 0.9);
  color: var(--primary);
  font-weight: 700;
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.15s ease;
}

.amount-chips button.active {
  background: linear-gradient(135deg, #214d7c, var(--primary));
  color: #fff;
  border-color: transparent;
}

.amount-chips button:active {
  transform: scale(0.97);
}

.custom-pix-label {
  display: block;
  margin-bottom: 8px;
  color: #173b63;
  font-weight: 700;
  font-size: 14px;
}

.custom-pix-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 10px;
  align-items: stretch;
}

.amount-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 56px;
  padding: 0 14px;
  border: 1px solid rgba(195, 198, 208, 0.9);
  background: rgba(255, 255, 255, 0.85);
  border-radius: 14px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.amount-wrap:focus-within {
  border-color: rgba(53, 94, 143, 0.85);
  box-shadow: 0 0 0 4px rgba(53, 94, 143, 0.08);
}

.amount-wrap .currency {
  font-weight: 800;
  color: #173b63;
}

.amount-wrap input {
  width: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 18px;
  font-weight: 700;
  color: var(--on-surface);
}

.custom-pix-row .primary-button {
  width: auto;
  min-width: 132px;
  margin-top: 0;
  padding-inline: 18px;
}

@media (max-width: 400px) {
  .custom-pix-row {
    grid-template-columns: 1fr;
  }
  .custom-pix-row .primary-button {
    width: 100%;
  }
}

.gift-card {
  width: 100%;
  min-height: 102px;
  display: grid;
  grid-template-columns: 66px 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 20px;
  text-align: left;
}

.gift-thumb {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--tertiary-container);
  background:
    radial-gradient(
      circle at 30% 28%,
      rgba(255, 255, 255, 0.75),
      transparent 24%
    ),
    linear-gradient(
      135deg,
      rgba(213, 227, 253, 0.86),
      rgba(247, 234, 208, 0.82)
    );
  border: 1px solid rgba(150, 109, 32, 0.18);
}

.gift-card:nth-child(2) .gift-thumb {
  background: linear-gradient(135deg, #4f76a9, #f1be69);
  color: #fff;
}
.gift-card:nth-child(3) .gift-thumb {
  background: linear-gradient(135deg, #e2e2e6, #fffaf3);
  color: #173b63;
}
.gift-card:nth-child(4) .gift-thumb {
  background: linear-gradient(135deg, #173b63, #355e8f);
  color: #f1be69;
}

.gift-card h3 {
  font-size: 19px;
  margin-bottom: 4px;
}
.gift-card p {
  color: var(--on-surface-variant);
  font-size: 14px;
  line-height: 1.28;
}

.gift-price {
  display: grid;
  justify-items: end;
  gap: 4px;
  color: var(--primary);
  font-weight: 900;
  font-size: 18px;
  white-space: nowrap;
}

.gift-price svg {
  color: var(--outline);
}

.security-line {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 12px;
  color: var(--outline);
  font-size: 13px;
  font-weight: 600;
}

.timeline {
  position: relative;
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 21px;
  top: 24px;
  bottom: 24px;
  width: 1px;
  background: rgba(81, 95, 116, 0.28);
}

.timeline-item {
  position: relative;
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 12px;
  align-items: start;
}

.timeline-dot {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--primary);
  color: #fff;
  border: 4px solid rgba(249, 249, 253, 0.94);
  box-shadow: 0 10px 24px rgba(53, 94, 143, 0.18);
  z-index: 1;
}

.timeline-card {
  padding: 14px;
  border-radius: 18px;
  border: 1px solid rgba(195, 198, 208, 0.78);
  background: rgba(255, 255, 255, 0.7);
}

.timeline-card strong {
  display: block;
  color: var(--primary);
  font-family: "Cause", system-ui, sans-serif;
  font-size: 18px;
  margin-bottom: 4px;
}

.timeline-card p {
  color: var(--on-surface-variant);
  line-height: 1.35;
  font-size: 14px;
}

.map-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(53, 94, 143, 0.1);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  transition: background 0.18s ease;
}

.map-link:hover {
  background: rgba(53, 94, 143, 0.18);
}

.map-link svg {
  width: 16px;
  height: 16px;
  stroke-width: 2;
}

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

.more-grid {
  display: grid;
  gap: 12px;
}

.more-grid-spaced {
  margin-top: 14px;
}

.more-card {
  border: 1px solid rgba(195, 198, 208, 0.78);
  background: rgba(255, 255, 255, 0.74);
  border-radius: 18px;
  padding: 14px;
  display: grid;
  grid-template-columns: 42px 1fr auto;
  align-items: center;
  gap: 12px;
  color: var(--on-surface);
  text-align: left;
}

.more-card strong {
  color: var(--primary);
  display: block;
}
.more-card span {
  color: var(--on-surface-variant);
  font-size: 14px;
}

.bottom-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: max(14px, var(--safe-bottom));
  width: min(860px, calc(100% - 28px));
  transform: translateX(-50%);
  z-index: 30;
  height: var(--nav-height);
  padding: 10px 8px calc(10px + var(--safe-bottom));
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
  border: 1px solid rgba(195, 198, 208, 0.82);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.83);
  backdrop-filter: blur(18px);
  box-shadow:
    0 18px 44px rgba(81, 95, 116, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.nav-item {
  border: 0;
  background: transparent;
  border-radius: 20px;
  color: #5f6368;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 4px;
  font-size: 12px;
  font-weight: 800;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    transform 0.18s ease;
}

.nav-item span {
  text-align: center;
  line-height: 1.15;
}

.nav-item svg {
  width: 30px;
  height: 30px;
  padding: 3px;
  border-radius: 999px;
  color: currentColor;
  background: transparent;
  stroke-width: 1.9;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}

.nav-item.active {
  color: var(--primary);
  background: linear-gradient(
    180deg,
    rgba(213, 227, 253, 0.62),
    rgba(213, 227, 253, 0.4)
  );
}

.nav-item.active svg {
  color: var(--primary);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 5px 12px rgba(53, 94, 143, 0.16);
}

.nav-item.active span {
  font-weight: 900;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(26, 28, 31, 0.34);
  backdrop-filter: blur(10px);
  display: none;
  align-items: flex-end;
  padding: 18px;
}

.modal-backdrop.open {
  display: flex;
  animation: fadeIn 0.18s ease both;
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

.modal-sheet {
  width: 100%;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 -18px 54px rgba(47, 48, 52, 0.22);
  padding: 18px;
  animation: sheetUp 0.22s ease both;
}

@keyframes sheetUp {
  from {
    transform: translateY(18px);
    opacity: 0.7;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

.sheet-handle {
  width: 46px;
  height: 5px;
  background: rgba(115, 119, 128, 0.32);
  border-radius: 999px;
  margin: 0 auto 16px;
}

.pix-title-row {
  margin-bottom: 8px;
}

.eyebrow-flush {
  margin: 0;
}

.pix-box {
  display: grid;
  place-items: center;
  gap: 12px;
  margin: 16px 0;
  padding: 18px;
  border-radius: 20px;
  border: 1px dashed rgba(53, 94, 143, 0.38);
  background: rgba(213, 227, 253, 0.35);
  text-align: center;
}

.qr {
  width: 150px;
  height: 150px;
  border-radius: 18px;
  background: #fff;
  border: 10px solid #fff;
  box-shadow: 0 12px 28px rgba(81, 95, 116, 0.14);
  object-fit: contain;
}

.guest-info {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px 16px;
  border-radius: 16px;
  background: linear-gradient(
    135deg,
    rgba(213, 227, 253, 0.62),
    rgba(255, 255, 255, 0.82)
  );
  border: 1px solid rgba(53, 94, 143, 0.2);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.guest-info-icon {
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: var(--primary);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(53, 94, 143, 0.14);
}

.guest-info-icon svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.guest-info-body strong {
  display: block;
  font-size: 17px;
  color: #173b63;
  margin-bottom: 2px;
}

.guest-info-body span {
  display: block;
  color: var(--on-surface-variant);
  font-size: 14px;
  line-height: 1.35;
}

.guest-count-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(53, 94, 143, 0.1);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.guest-count-badge svg {
  width: 14px;
  height: 14px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
}

.guest-info-wrap {
  margin-bottom: 18px;
}

.guest-info-wrap[hidden] {
  display: none;
}

.rsvp-fields {
  display: grid;
  gap: 0;
  transition:
    opacity 0.22s ease,
    filter 0.22s ease;
}

.rsvp-fields.locked {
  opacity: 0.42;
  filter: grayscale(0.08);
  pointer-events: none;
  user-select: none;
}

.rsvp-fields .field-group:last-of-type {
  margin-bottom: 0;
}

.rsvp-fields .primary-button {
  margin-top: 4px;
}

.lookup-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.lookup-row .input-wrap {
  min-width: 0;
}

.lookup-row .secondary-button {
  width: auto;
  min-width: 96px;
  padding-inline: 18px;
  white-space: nowrap;
}

.gift-list.loading {
  opacity: 0.55;
  pointer-events: none;
}

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

.pix-steps {
  list-style: none;
  margin: 0 0 16px;
  padding: 14px;
  display: grid;
  gap: 12px;
  border-radius: 16px;
  background: rgba(213, 227, 253, 0.28);
  border: 1px solid rgba(53, 94, 143, 0.14);
  counter-reset: pix-step;
}

.pix-steps li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--on-surface-variant);
}

.pix-step-num {
  flex: 0 0 auto;
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: linear-gradient(135deg, #214d7c, var(--primary));
  color: #fff;
  font-size: 13px;
  font-weight: 800;
}

.pix-steps strong {
  color: #173b63;
  font-weight: 700;
}

.toast {
  position: fixed;
  left: 50%;
  width: min(460px, calc(100% - 36px));
  transform: translate(-50%, 18px);
  bottom: calc(var(--nav-height) + 34px + var(--safe-bottom));
  z-index: 100;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
  background: rgba(47, 48, 52, 0.92);
  color: var(--inverse-on-surface);
  border-radius: 16px;
  padding: 14px 16px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 12px 30px rgba(47, 48, 52, 0.24);
}

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

svg {
  width: 22px;
  height: 22px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.fill-current {
  fill: currentColor;
}

.gallery-section[hidden] {
  display: none;
}

.gallery {
  columns: 2;
  column-gap: 12px;
  margin-top: 16px;
}

.gallery-item {
  break-inside: avoid;
  margin: 0 0 12px;
  padding: 0;
  border: 1px solid rgba(195, 198, 208, 0.6);
  border-radius: 18px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  display: block;
  width: 100%;
  background: #eef2f8;
  box-shadow: 0 10px 26px rgba(81, 95, 116, 0.1);
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease;
}

.gallery-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 34px rgba(81, 95, 116, 0.18);
}

.gallery-item img {
  width: 100%;
  display: block;
  transition: transform 0.5s ease;
}

.gallery-item:hover img {
  transform: scale(1.05);
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 62%,
    rgba(26, 28, 31, 0.28) 100%
  );
  opacity: 0;
  transition: opacity 0.22s ease;
  pointer-events: none;
}

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

.gallery-skeleton {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.gallery-skeleton span {
  display: block;
  height: 150px;
  border-radius: 18px;
  background: linear-gradient(
    100deg,
    rgba(226, 230, 238, 0.55) 30%,
    rgba(240, 243, 249, 0.9) 50%,
    rgba(226, 230, 238, 0.55) 70%
  );
  background-size: 200% 100%;
  animation: shimmer 1.3s infinite;
}

.gallery-skeleton span:nth-child(2) {
  height: 200px;
}
.gallery-skeleton span:nth-child(3) {
  height: 200px;
}

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

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  place-items: center;
  padding: clamp(16px, 4vw, 40px);
  background: rgba(15, 17, 20, 0.93);
  backdrop-filter: blur(6px);
}

.lightbox.open {
  display: grid;
}

.lightbox-figure {
  position: relative;
  display: grid;
  gap: 12px;
  justify-items: center;
  max-width: 100%;
}

.lightbox-img {
  max-width: min(92vw, 920px);
  max-height: 82vh;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.55);
  background: #10141a;
}

.lightbox-counter {
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.lightbox-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(8px);
  transition:
    background 0.18s ease,
    transform 0.18s ease;
}

.lightbox-btn:hover {
  background: rgba(255, 255, 255, 0.24);
}

.lightbox-btn svg {
  width: 24px;
  height: 24px;
}

.lightbox-btn.prev {
  left: clamp(-6px, -3vw, -18px);
}

.lightbox-btn.next {
  right: clamp(-6px, -3vw, -18px);
}

.lightbox-close {
  position: fixed;
  top: 18px;
  right: 18px;
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  backdrop-filter: blur(8px);
}

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

.lightbox-close svg {
  width: 22px;
  height: 22px;
}

@media (min-width: 720px) {
  .gallery {
    columns: 3;
  }
}

@media (min-width: 720px) and (max-width: 1023px) {
  .phone {
    width: min(960px, 100%);
    border-radius: 22px;
  }

  .screen {
    max-width: 100%;
    padding: 24px clamp(22px, 4vw, 34px) calc(var(--nav-height) + 44px);
  }

  .hero-card {
    grid-template-columns: minmax(260px, 44%) minmax(0, 1fr);
    align-items: center;
    gap: 22px;
    padding: 20px;
  }

  .hero-photo-wrap {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(53, 94, 143, 0.14);
  }

  .hero-photo-overlay {
    background:
      linear-gradient(
        180deg,
        rgba(255, 250, 240, 0.14) 0%,
        transparent 24%
      ),
      linear-gradient(
        0deg,
        rgba(255, 255, 255, 0.72) 0%,
        rgba(255, 255, 255, 0.18) 28%,
        transparent 52%
      );
  }

  .hero-content {
    margin-top: 0;
    padding: 0;
    text-align: left;
  }

  .hero-content .eyebrow {
    justify-content: flex-start;
  }

  .hero-content .details-list {
    margin-inline: 0;
    width: 100%;
  }

  .mini-grid,
  .more-grid,
  .gift-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .info-card,
  .gift-card,
  .more-card {
    height: 100%;
  }

  .app-title {
    max-width: 560px;
  }
}

@media (min-width: 1024px) {
  .page-shell {
    padding: 24px;
  }

  .phone {
    width: min(1240px, 100%);
    min-height: calc(100vh - 48px);
    display: flex;
    flex-direction: column;
    border-radius: 24px;
  }

  .app {
    flex: 1;
    padding-top: 0;
  }

  .bottom-nav {
    position: fixed;
    left: 50%;
    bottom: max(12px, var(--safe-bottom));
    transform: translateX(-50%);
    width: min(760px, calc(100% - 48px));
    height: var(--nav-height);
    border-radius: 22px;
    padding: 10px 8px calc(10px + var(--safe-bottom));
    background: rgba(255, 255, 255, 0.92);
    margin: 0;
    box-shadow:
      0 16px 34px rgba(47, 48, 52, 0.14),
      inset 0 1px 0 rgba(255, 255, 255, 0.8);
  }

  .screen {
    max-width: 1180px;
    padding: 22px 30px calc(var(--nav-height) + 44px);
  }

  #screen-home.active {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
    gap: 26px;
    align-items: start;
  }

  #screen-home .top-row {
    grid-column: 1 / -1;
    margin-bottom: 2px;
  }

  #screen-home .section {
    margin-top: 0;
    align-self: start;
  }

  .hero-card {
    grid-template-columns: minmax(280px, 46%) minmax(0, 1fr);
    align-items: center;
    gap: 24px;
    padding: 22px;
  }

  .hero-photo-wrap {
    width: 100%;
    border-radius: 24px;
    box-shadow: 0 18px 42px rgba(53, 94, 143, 0.14);
  }

  .hero-content {
    margin-top: 0;
    padding: 0;
    text-align: left;
  }

  .hero-content .details-list {
    margin-inline: 0;
    width: 100%;
  }

  #screen-home .mini-grid {
    grid-template-columns: 1fr;
  }

  .info-card,
  .gift-card,
  .more-card {
    height: 100%;
  }

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

  .app-title {
    max-width: 640px;
  }
}

@media (max-width: 520px) {
  .page-shell {
    padding: 0;
  }
  .phone {
    width: 100%;
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .bottom-nav {
    width: calc(100% - 20px);
    bottom: 10px;
  }
  .screen {
    max-width: 100%;
    padding-inline: 16px;
  }
  .lookup-row {
    grid-template-columns: 1fr;
  }
  .lookup-row .secondary-button {
    width: 100%;
    min-height: 50px;
  }
}
