:root {
  --canvas: #efe6d8;
  --cotton: #fffdf8;
  --bela-cancao: #e5dcdc;
  --blush: #e5dcdc;
  --rose: #b56f7b;
  --rose-dark: #754a52;
  --rose-deep: #5c3740;
  --sage: #72806c;
  --sage-soft: #dfe4db;
  --ink: #352d2b;
  --muted: #716561;
  --line: rgba(117, 74, 82, .18);
  --shadow: 0 24px 70px rgba(70, 47, 43, .12);
  --shadow-soft: 0 12px 34px rgba(70, 47, 43, .08);
  --radius: 28px;
  --serif: "Cormorant Garamond", Georgia, serif;
  --sans: "Nunito", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background:
    radial-gradient(circle at 14% 18%, rgba(181,111,123,.065) 0 1px, transparent 2px),
    radial-gradient(circle at 72% 8%, rgba(114,128,108,.05) 0 1px, transparent 2px),
    var(--canvas);
  background-size: 15px 15px, 18px 18px, auto;
  font-family: var(--sans);
  line-height: 1.55;
}
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
a { color: var(--rose-dark); }
[hidden] { display: none !important; }

.skip-link {
  position: fixed; left: 12px; top: -80px; z-index: 100;
  padding: 12px 16px; background: var(--ink); color: white; border-radius: 10px;
}
.skip-link:focus { top: 12px; }

.hero {
  position: relative;
  min-height: min(720px, 92svh);
  display: grid;
  place-content: center;
  overflow: hidden;
  padding: max(72px, env(safe-area-inset-top)) 24px 72px;
  text-align: center;
  background:
    linear-gradient(180deg, rgba(255,253,248,.6), rgba(234,217,210,.88)),
    repeating-linear-gradient(92deg, rgba(115,89,75,.035) 0 1px, transparent 1px 6px);
}
.hero::before, .hero::after {
  content: "";
  position: absolute;
  width: 210px; height: 290px;
  border: 1px solid rgba(143,86,92,.22);
  border-radius: 50%;
  transform: rotate(28deg);
}
.hero::before { left: -155px; top: 6%; }
.hero::after { right: -165px; bottom: 3%; transform: rotate(-26deg); }
.eyebrow, .step-label {
  margin: 0 0 12px;
  color: var(--rose-dark);
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .17em;
  text-transform: uppercase;
}
.hero h1, .login-card h1, .admin-header h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3.2rem, 15vw, 6.8rem);
  font-weight: 600;
  line-height: .82;
  letter-spacing: -.035em;
}
.hero h1 span, .invitation-card h3 span { color: var(--rose-dark); font-style: italic; }
.hero-copy {
  max-width: 420px;
  margin: 28px auto 0;
  color: var(--muted);
  font-size: .98rem;
}
.decor { position: absolute; color: rgba(143,86,92,.58); font-size: 2.1rem; }
.decor-left { left: 13%; bottom: 21%; transform: rotate(-18deg); }
.decor-right { right: 14%; top: 22%; transform: rotate(13deg); }
.scroll-cue {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  width: 38px; height: 38px; display: grid; place-items: center;
  border: 1px solid rgba(68,58,54,.25); border-radius: 50%; color: var(--rose-dark);
}

main:not(.admin-shell) { width: min(100% - 28px, 980px); margin: -34px auto 0; position: relative; z-index: 2; }
.card {
  position: relative;
  margin-bottom: 18px;
  padding: 28px 20px;
  overflow: hidden;
  background: rgba(255,253,248,.95);
  border: 1px solid rgba(255,255,255,.8);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.card h2, .panel-heading h2 {
  margin: 0 0 9px;
  font-family: var(--serif);
  font-size: clamp(2rem, 10vw, 3rem);
  line-height: 1;
}
.card > p:not(.step-label):not(.hello), .panel-heading p { color: var(--muted); }
.petal {
  position: absolute; right: 18px; top: 16px;
  color: rgba(191,127,131,.34); font-size: 1.7rem;
}

form { margin-top: 24px; }
.field { position: relative; display: grid; gap: 7px; margin-bottom: 18px; }
.field label { font-size: .83rem; font-weight: 800; }
.field small { color: var(--muted); font-size: .74rem; }
input, select, textarea {
  width: 100%;
  min-height: 52px;
  padding: 13px 14px;
  color: var(--ink);
  background: #fffefa;
  border: 1px solid #d9cbc5;
  border-radius: 13px;
  outline: none;
}
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus {
  border-color: var(--rose-dark);
  box-shadow: 0 0 0 4px rgba(191,127,131,.13);
}
.autocomplete { z-index: 5; }
.suggestions {
  position: absolute;
  top: calc(100% - 4px); left: 0; right: 0;
  max-height: 245px;
  overflow-y: auto;
  padding: 6px;
  background: #fffefa;
  border: 1px solid #d9cbc5;
  border-radius: 13px;
  box-shadow: 0 14px 30px rgba(68,58,54,.16);
}
.suggestions button {
  width: 100%; min-height: 46px; padding: 10px 12px;
  text-align: left; color: var(--ink); background: transparent; border: 0; border-radius: 9px;
}
.suggestions button:hover, .suggestions button:focus { background: var(--blush); outline: none; }

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  text-align: center;
  text-decoration: none;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.button:active { transform: scale(.98); }
.button:focus-visible, .text-button:focus-visible, .admin-tabs button:focus-visible {
  outline: 3px solid rgba(143,86,92,.35); outline-offset: 2px;
}
.button.primary { color: white; background: var(--rose-dark); box-shadow: 0 10px 22px rgba(143,86,92,.23); }
.button.secondary { color: var(--rose-dark); background: var(--blush); }
.button.ghost { color: var(--rose-dark); background: transparent; border-color: var(--line); }
.button.danger { color: #fff; background: #9f4545; }
.full { width: 100%; margin-top: 10px; }
.text-button {
  min-height: 44px;
  padding: 8px;
  color: var(--rose-dark);
  background: transparent;
  border: 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.gift-card .text-button { width: 100%; margin-top: 8px; }
.form-message { min-height: 1.3em; margin: 12px 0 0; color: #9f4545 !important; font-weight: 700; font-size: .86rem; }
.form-message.success { color: #527052 !important; }

.hello { margin: 0 0 18px; color: var(--rose-dark); }
.diaper-ticket {
  display: grid;
  grid-template-columns: 82px 1fr;
  gap: 16px;
  align-items: center;
  margin: 22px 0 18px;
  padding: 18px;
  background: linear-gradient(135deg, #f4e7e2, #f9f4ed);
  border: 1px dashed rgba(143,86,92,.38);
  border-radius: 18px;
}
.size-orb {
  aspect-ratio: 1;
  display: grid;
  place-content: center;
  text-align: center;
  color: white;
  background: var(--rose-dark);
  border-radius: 50%;
}
.size-orb span { font-size: .55rem; letter-spacing: .08em; text-transform: uppercase; }
.size-orb strong { font-family: var(--serif); font-size: 2.3rem; line-height: .9; }
.diaper-info { display: grid; gap: 2px; min-width: 0; }
.diaper-info .brand { color: var(--rose-dark); font-size: .73rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; }
.diaper-info strong { font-size: 1.08rem; overflow-wrap: anywhere; }
.diaper-info small { color: var(--muted); }
.gift-note { font-size: .84rem; }

.invitation-card {
  position: relative;
  min-height: 430px;
  display: grid;
  place-content: center;
  margin: 24px 0;
  padding: 38px 22px;
  overflow: hidden;
  text-align: center;
  background:
    linear-gradient(rgba(255,253,248,.78), rgba(255,253,248,.78)),
    repeating-linear-gradient(89deg, rgba(115,89,75,.07) 0 1px, transparent 1px 5px),
    #eee3d3;
  border: 8px solid white;
  outline: 1px solid #dbc9c0;
  box-shadow: 0 18px 38px rgba(68,58,54,.13);
}
.invitation-card::before, .invitation-card::after {
  content: "❀";
  position: absolute;
  color: rgba(191,127,131,.5);
  font-size: 5rem;
}
.invitation-card::before { left: -18px; top: -24px; transform: rotate(-20deg); }
.invitation-card::after { right: -17px; bottom: -28px; transform: rotate(22deg); }
.invite-small { margin: 0; color: var(--muted); font-size: .68rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.invitation-card h3 {
  margin: 15px 0 8px;
  font-family: var(--serif);
  font-size: clamp(2.55rem, 13vw, 4.3rem);
  font-weight: 600;
  line-height: .85;
}
.invite-divider { margin: 16px; color: var(--rose-dark); }
.invitation-card p { margin: 3px 0; color: var(--ink) !important; }
.invitation-card address { margin: 14px 0; color: var(--muted); font-size: .78rem; font-style: normal; }
.invite-for { margin-top: 20px !important; font-size: .8rem; }
.invite-butterfly { position: absolute; color: rgba(143,86,92,.48); }
.invite-butterfly.one { right: 19px; top: 21px; transform: rotate(17deg); }
.invite-butterfly.two { left: 28px; bottom: 53px; transform: rotate(-12deg); }
.rsvp-box { margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--line); }
.rsvp-box h3 { margin-top: 0; font-family: var(--serif); font-size: 1.6rem; }
.rsvp-actions { display: grid; gap: 10px; }
.button.rsvp.yes { color: white; background: #637760; }
.button.rsvp.no { color: var(--ink); background: #eee5df; }

.addresses h2 { margin-bottom: 24px; }
.address-grid { display: grid; gap: 14px; }
.address-grid article { padding: 20px; background: #f8f0e9; border-radius: 17px; }
.address-grid h3 { margin: 4px 0 8px; font-family: var(--serif); font-size: 1.5rem; }
.address-grid address { color: var(--muted); font-size: .83rem; font-style: normal; }
.address-grid a { display: inline-block; min-height: 44px; padding-top: 13px; font-weight: 800; }
.address-icon { color: var(--rose-dark); font-size: 1.3rem; }
.address-grid .text-button { padding-left: 0; }

footer { padding: 48px 20px max(34px, env(safe-area-inset-bottom)); text-align: center; color: var(--muted); }
footer span { color: var(--rose); }
footer p { margin: 8px 0; font-family: var(--serif); font-size: 1.3rem; }
footer a { font-size: .78rem; }
.toast {
  position: fixed;
  left: 50%; bottom: max(20px, env(safe-area-inset-bottom));
  z-index: 90;
  max-width: calc(100% - 32px);
  padding: 12px 18px;
  transform: translate(-50%, 130%);
  color: white;
  background: var(--ink);
  border-radius: 999px;
  box-shadow: var(--shadow);
  opacity: 0;
  transition: .25s ease;
  text-align: center;
  font-size: .85rem;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* Admin */
.admin-body { min-height: 100vh; background-color: var(--canvas); }
.admin-shell { width: min(100% - 24px, 1180px); margin: 0 auto; padding: max(20px, env(safe-area-inset-top)) 0 50px; }
.login-card { max-width: 480px; margin: 8vh auto 0; }
.login-card h1 { font-size: clamp(2.7rem, 13vw, 4.4rem); line-height: .92; }
.back-link { display: block; margin-top: 22px; text-align: center; font-size: .85rem; }
.admin-header { display: grid; gap: 18px; padding: 18px 4px 24px; }
.admin-header h1 { font-size: clamp(2.6rem, 11vw, 4.7rem); line-height: .9; }
.admin-header-actions { display: flex; gap: 8px; }
.admin-header-actions .button { flex: 1; min-height: 44px; }
.stats-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 16px; }
.stat-card {
  min-height: 110px;
  display: grid;
  align-content: space-between;
  padding: 16px;
  background: var(--cotton);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 18px;
  box-shadow: 0 9px 24px rgba(92,64,57,.08);
}
.stat-card span { color: var(--muted); font-size: .72rem; font-weight: 700; }
.stat-card strong { font-family: var(--serif); font-size: 2.2rem; line-height: 1; color: var(--rose-dark); }
.admin-tabs {
  position: sticky; top: 0; z-index: 20;
  display: flex;
  gap: 5px;
  margin: 0 -12px 18px;
  padding: 9px 12px;
  overflow-x: auto;
  background: rgba(247,241,232,.94);
  backdrop-filter: blur(12px);
  scrollbar-width: none;
}
.admin-tabs::-webkit-scrollbar { display: none; }
.admin-tabs button {
  flex: 0 0 auto;
  min-height: 43px;
  padding: 9px 15px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 999px;
  font-weight: 800;
}
.admin-tabs button.active { color: white; background: var(--rose-dark); }
.admin-panel { display: none; }
.admin-panel.active { display: block; }
.panel-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 4px 17px; }
.panel-heading h2 { margin: 0; }
.panel-heading .button { flex: 0 0 auto; min-height: 43px; padding-inline: 14px; }
.sub-card {
  margin: 0 0 14px;
  padding: 18px;
  background: var(--cotton);
  border: 1px solid rgba(143,86,92,.13);
  border-radius: 18px;
  box-shadow: 0 8px 22px rgba(92,64,57,.06);
}
.sub-card form, form.sub-card { margin-top: 0; }
.form-actions { display: flex; flex-wrap: wrap; gap: 9px; }
.form-actions .button { flex: 1; }
.toolbar { display: grid; gap: 10px; margin-bottom: 13px; }
.field.compact { margin: 0; }
.field.compact input, .field.compact select { min-height: 46px; }
.admin-list { display: grid; gap: 10px; }
.admin-row {
  padding: 16px;
  background: var(--cotton);
  border: 1px solid rgba(143,86,92,.12);
  border-radius: 17px;
  box-shadow: 0 8px 22px rgba(92,64,57,.055);
}
.admin-row-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.admin-row h3 { margin: 0; font-size: 1rem; }
.admin-row p { margin: 3px 0 0; color: var(--muted); font-size: .78rem; }
.badge { flex: 0 0 auto; padding: 5px 9px; border-radius: 999px; font-size: .63rem; font-weight: 800; }
.badge.pending { color: #826333; background: #f5e8c6; }
.badge.bought { color: #586d56; background: #dce8da; }
.badge.no { color: #8d4e4e; background: #f1dada; }
.admin-row-details { display: grid; gap: 8px; margin-top: 14px; padding-top: 13px; border-top: 1px solid var(--line); }
.admin-row-details label { font-size: .7rem; font-weight: 800; }
.admin-row-details select { min-height: 44px; padding-block: 8px; }
.row-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.row-actions button, .row-actions a {
  min-height: 40px; display: inline-flex; align-items: center;
  padding: 8px 11px; color: var(--rose-dark); background: transparent;
  border: 1px solid var(--line); border-radius: 10px; font-size: .72rem; font-weight: 800; text-decoration: none;
}
.row-actions .delete { color: #9f4545; }
.diaper-row-main { display: grid; grid-template-columns: 58px 1fr; gap: 13px; align-items: center; }
.mini-size { width: 58px; aspect-ratio: 1; display: grid; place-items: center; color: white; background: var(--rose-dark); border-radius: 50%; font-family: var(--serif); font-size: 1.8rem; }
.progress { height: 7px; margin-top: 12px; overflow: hidden; background: #eadfda; border-radius: 99px; }
.progress span { display: block; height: 100%; background: var(--sage); border-radius: inherit; }
.diaper-counts { display: flex; justify-content: space-between; margin-top: 5px; color: var(--muted); font-size: .68rem; }
.form-grid { display: grid; gap: 0 13px; }
.backup-grid { display: grid; gap: 12px; }
.backup-grid article { padding: 16px; background: #f8f0e9; border-radius: 14px; }
.backup-grid h3 { margin: 0 0 5px; font-family: var(--serif); font-size: 1.45rem; }
.backup-grid p { margin: 0 0 14px; color: var(--muted); font-size: .8rem; }
.danger-zone { border: 1px solid rgba(159,69,69,.25); }
.file-button { position: relative; overflow: hidden; }
.file-button input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.empty-state { padding: 34px 16px; text-align: center; color: var(--muted); background: rgba(255,253,248,.65); border: 1px dashed #d8c6bf; border-radius: 17px; }

@media (min-width: 600px) {
  main:not(.admin-shell) { width: min(100% - 48px, 980px); }
  .card { padding: 38px; margin-bottom: 24px; }
  .welcome-card, .gift-card, .invitation-section { max-width: 720px; margin-left: auto; margin-right: auto; }
  .address-grid, .rsvp-actions, .toolbar, .backup-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid .wide { grid-column: 1 / -1; }
  .stats-grid { grid-template-columns: repeat(4, 1fr); }
  .admin-header { grid-template-columns: 1fr auto; align-items: center; }
  .admin-header-actions .button { flex: initial; }
  .backup-grid article:last-child { grid-column: 1 / -1; }
}

@media (min-width: 900px) {
  .hero { min-height: 760px; }
  .hero h1 { font-size: 7.4rem; }
  .card { border-radius: 30px; }
  .admin-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .diaper-admin-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .admin-tabs { position: static; justify-content: center; margin-inline: 0; border-radius: 999px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* Direção visual profissional — Algodão Cru + Coral Bela Canção 85RR 75/032 */
.guest-body .hero {
  min-height: 100svh;
  padding: max(126px, calc(env(safe-area-inset-top) + 104px)) 22px 104px;
  isolation: isolate;
  background:
    radial-gradient(circle at 50% 35%, rgba(255,253,248,.98) 0 9%, rgba(255,253,248,.46) 40%, transparent 68%),
    linear-gradient(145deg, #efe6d8 0%, var(--bela-cancao) 62%, #ead6d6 100%);
}
.guest-body .hero::before,
.guest-body .hero::after {
  width: 280px;
  height: 390px;
  border-color: rgba(117,74,82,.15);
}
.topbar {
  position: absolute;
  inset: max(16px, env(safe-area-inset-top)) 16px auto;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 9px 10px 9px 9px;
  background: rgba(255,253,248,.72);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 999px;
  box-shadow: 0 12px 34px rgba(70,47,43,.07);
  backdrop-filter: blur(14px);
}
.brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.16rem;
  font-weight: 700;
  text-decoration: none;
}
.brand-monogram,
.footer-monogram {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  color: #fff;
  background: var(--rose-dark);
  border-radius: 50%;
  font-family: var(--serif);
  font-size: 1.45rem;
  font-style: italic;
}
.family-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  color: var(--rose-deep);
  font-size: .7rem;
  font-weight: 800;
  text-decoration: none;
}
.hero-content {
  position: relative;
  z-index: 3;
  width: min(100%, 760px);
  margin-inline: auto;
}
.hero-content .eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-bottom: 20px;
}
.hero-content .eyebrow span {
  width: 28px;
  height: 1px;
  background: rgba(117,74,82,.5);
}
.guest-body .hero h1 {
  font-size: clamp(3.5rem, 17vw, 7.6rem);
  text-shadow: 0 2px 0 rgba(255,255,255,.4);
}
.guest-body .hero h1 span {
  color: var(--rose-dark);
  font-weight: 500;
}
.guest-body .hero-copy {
  max-width: 500px;
  font-size: 1rem;
}
.hero-actions {
  display: grid;
  justify-items: center;
  gap: 8px;
  margin-top: 28px;
}
.hero-button { width: min(100%, 340px); }
.hero-text-link {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
  text-underline-offset: 4px;
}
.hero-highlights {
  display: none;
  max-width: 690px;
  margin: 42px auto 0;
  padding-top: 22px;
  border-top: 1px solid rgba(117,74,82,.14);
}
.hero-highlights span {
  display: grid;
  color: var(--muted);
  font-size: .67rem;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
}
.hero-highlights strong {
  color: var(--rose-dark);
  font-family: var(--serif);
  font-size: 1.6rem;
  font-weight: 600;
}
.scroll-cue {
  width: 30px;
  height: 51px;
  bottom: 25px;
  border-color: rgba(53,45,43,.24);
  border-radius: 999px;
}
.scroll-cue span {
  width: 4px;
  height: 8px;
  background: var(--rose-dark);
  border-radius: 999px;
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: translateY(-8px); opacity: .35; }
  50% { transform: translateY(8px); opacity: 1; }
}
.butterfly {
  position: absolute;
  z-index: 2;
  color: rgba(117,74,82,.52);
  font-family: var(--serif);
  animation: butterflyFloat 5.5s ease-in-out infinite;
}
.butterfly-one { top: 23%; right: 12%; font-size: 1.25rem; transform: rotate(14deg); }
.butterfly-two { left: 12%; bottom: 21%; font-size: .9rem; animation-delay: -2.3s; }
@keyframes butterflyFloat {
  0%, 100% { translate: 0 0; rotate: -4deg; }
  50% { translate: 0 -12px; rotate: 8deg; }
}
.botanical {
  position: absolute;
  z-index: 1;
  width: 150px;
  height: 260px;
  pointer-events: none;
  opacity: .72;
}
.botanical-left { left: -67px; bottom: 2%; transform: rotate(-13deg); }
.botanical-right { right: -76px; top: 14%; transform: scaleX(-1) rotate(-22deg); }
.botanical .stem {
  position: absolute;
  left: 65px;
  bottom: 0;
  width: 1px;
  height: 240px;
  background: rgba(114,128,108,.58);
  transform: rotate(13deg);
  transform-origin: bottom;
}
.botanical .leaf {
  position: absolute;
  width: 52px;
  height: 22px;
  background: rgba(114,128,108,.2);
  border: 1px solid rgba(114,128,108,.42);
  border-radius: 100% 0 100% 0;
}
.botanical .leaf-one { left: 38px; bottom: 62px; transform: rotate(16deg); }
.botanical .leaf-two { left: 76px; bottom: 126px; transform: scaleX(-1) rotate(27deg); }
.css-flower {
  position: absolute;
  width: 22px;
  height: 22px;
  background: rgba(255,253,248,.9);
  border: 1px solid rgba(181,111,123,.42);
  border-radius: 50% 50% 44% 55%;
  box-shadow:
    18px 2px 0 -1px rgba(255,253,248,.87),
    14px 17px 0 -1px rgba(229,220,220,.95),
    -3px 18px 0 -1px rgba(255,253,248,.9),
    -9px 3px 0 -1px rgba(229,220,220,.95);
}
.css-flower::after {
  content: "";
  position: absolute;
  left: 12px;
  top: 11px;
  width: 8px;
  height: 8px;
  background: var(--rose);
  border-radius: 50%;
}
.flower-one { left: 61px; top: 6px; }
.flower-two { left: 28px; top: 78px; scale: .68; }

.guest-body main:not(.admin-shell) {
  width: min(100% - 24px, 1040px);
  margin-top: -45px;
}
.journey {
  position: relative;
  z-index: 4;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 0 0 18px;
  padding: 9px;
  list-style: none;
  background: rgba(255,253,248,.92);
  border: 1px solid rgba(255,255,255,.85);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}
.journey li {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 8px 2px;
  color: var(--muted);
  text-align: center;
  transition: color .3s ease, background .3s ease;
}
.journey li + li::before {
  content: "";
  position: absolute;
  left: -1px;
  top: 25px;
  width: 18%;
  height: 1px;
  background: var(--line);
}
.journey li > span {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-family: var(--serif);
  font-weight: 700;
}
.journey li.active { color: var(--rose-dark); }
.journey li.active > span {
  color: #fff;
  background: var(--rose-dark);
  border-color: var(--rose-dark);
  box-shadow: 0 7px 16px rgba(117,74,82,.2);
}
.journey li div { display: none; }
.guest-body .card {
  background: rgba(255,253,248,.96);
  border-color: rgba(255,255,255,.92);
  box-shadow: var(--shadow);
}
.guest-body .card::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border: 1px solid rgba(117,74,82,.045);
  border-radius: inherit;
}
.guest-body .card h2 { letter-spacing: -.025em; }
.section-intro { max-width: 570px; }
.privacy-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin-top: 18px;
  color: var(--muted);
  font-size: .7rem;
  text-align: center;
}
.privacy-note span { color: var(--rose); font-size: 1rem; }
.field label { letter-spacing: .015em; }
input, select, textarea {
  background: rgba(255,254,250,.96);
  border-color: rgba(117,74,82,.22);
}
input:hover, select:hover, textarea:hover { border-color: rgba(117,74,82,.4); }
.button { letter-spacing: .01em; }
.button.primary {
  background: linear-gradient(135deg, var(--rose-dark), var(--rose-deep));
  box-shadow: 0 12px 28px rgba(92,55,64,.25);
}
.button.primary:hover { box-shadow: 0 15px 34px rgba(92,55,64,.32); transform: translateY(-2px); }
.button.secondary { background: var(--bela-cancao); }
.shimmer-button { position: relative; overflow: hidden; }
.shimmer-button::after {
  content: "";
  position: absolute;
  inset: -100% auto -100% -50%;
  width: 40%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.22), transparent);
  transform: rotate(16deg);
  transition: left .65s ease;
}
.shimmer-button:hover::after { left: 120%; }
.diaper-ticket {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(229,220,220,.82), rgba(239,230,216,.7));
  border-color: rgba(117,74,82,.32);
}
.diaper-ticket::after {
  content: "ʚɞ";
  position: absolute;
  right: 13px;
  bottom: 5px;
  color: rgba(117,74,82,.18);
  font-family: var(--serif);
  font-size: 2.4rem;
  transform: rotate(-11deg);
}
.size-orb {
  position: relative;
  z-index: 1;
  background: linear-gradient(145deg, var(--rose-dark), var(--rose-deep));
  box-shadow: 0 11px 22px rgba(92,55,64,.2);
}
.invitation-card {
  background:
    radial-gradient(circle at 50% 36%, rgba(255,253,248,.96), rgba(255,253,248,.68) 58%, transparent 88%),
    repeating-linear-gradient(89deg, rgba(115,89,75,.06) 0 1px, transparent 1px 5px),
    var(--canvas);
}
.invite-ribbon {
  position: absolute;
  top: 17px;
  left: 50%;
  transform: translateX(-50%);
  padding: 5px 14px;
  color: var(--rose-dark);
  background: rgba(229,220,220,.8);
  border-radius: 999px;
  font-size: .56rem;
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  white-space: nowrap;
}
.address-grid article {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, rgba(239,230,216,.8), rgba(229,220,220,.52));
  border: 1px solid rgba(117,74,82,.1);
}
.address-grid article::after {
  content: "❀";
  position: absolute;
  right: -5px;
  bottom: -20px;
  color: rgba(181,111,123,.1);
  font-size: 5rem;
}
footer {
  display: grid;
  justify-items: center;
  gap: 3px;
}
.footer-monogram {
  width: 46px;
  height: 46px;
  margin-bottom: 6px;
  font-size: 1.75rem;
  box-shadow: 0 10px 24px rgba(92,55,64,.18);
}
.celebration {
  position: fixed;
  inset: 0;
  z-index: 120;
  overflow: hidden;
  pointer-events: none;
}
.celebration .falling-petal {
  position: absolute;
  top: -24px;
  width: 12px;
  height: 17px;
  background: var(--rose);
  border-radius: 80% 10% 80% 10%;
  opacity: .78;
  animation: petalFall var(--fall-duration, 2.5s) ease-in forwards;
}
@keyframes petalFall {
  to { transform: translate3d(var(--drift, 10px), 105vh, 0) rotate(520deg); opacity: 0; }
}
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .75s ease, transform .75s cubic-bezier(.2,.75,.2,1);
}
.reveal.is-visible { opacity: 1; transform: none; }

/* O painel herda a mesma identidade, com contraste e densidade profissionais. */
.admin-body {
  background:
    radial-gradient(circle at 5% 0%, rgba(229,220,220,.9), transparent 32rem),
    radial-gradient(circle at 95% 15%, rgba(239,230,216,.9), transparent 30rem),
    var(--canvas);
}
.login-card,
.stat-card,
.sub-card,
.admin-row {
  border-color: rgba(255,255,255,.9);
  box-shadow: var(--shadow-soft);
}
.admin-header {
  margin-bottom: 8px;
  padding: 26px 6px;
}
.admin-tabs {
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 8px 22px rgba(70,47,43,.05);
}
.stat-card {
  background: linear-gradient(145deg, rgba(255,253,248,.98), rgba(229,220,220,.42));
}
.admin-row { transition: transform .2s ease, box-shadow .2s ease; }
.admin-row:hover { transform: translateY(-2px); box-shadow: 0 15px 34px rgba(70,47,43,.1); }

@media (min-width: 600px) {
  .topbar { inset-inline: max(24px, calc((100vw - 1080px) / 2)); }
  .hero-highlights { display: grid; grid-template-columns: repeat(3, 1fr); }
  .journey { padding: 12px 20px; }
  .journey li { grid-template-columns: 38px 1fr; justify-items: start; align-items: center; text-align: left; }
  .journey li > span { grid-row: 1 / 3; }
  .journey li div { display: grid; }
  .journey li strong { font-size: .76rem; }
  .journey li small { font-size: .65rem; }
}

@media (min-width: 900px) {
  .guest-body .hero { min-height: 820px; }
  .botanical { width: 220px; scale: 1.18; }
  .botanical-left { left: 3%; }
  .botanical-right { right: 2%; }
  .guest-body main:not(.admin-shell) { margin-top: -60px; }
  .journey { margin-bottom: 26px; }
}

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .butterfly, .scroll-cue span { animation: none; }
}

.footer-links { display: flex; gap: 18px; margin-top: 5px; }
.footer-links a { min-height: 40px; display: inline-flex; align-items: center; }
.private-link-input { font-size: .7rem; }
.privacy-body {
  background:
    radial-gradient(circle at 15% 0%, rgba(229,220,220,.95), transparent 30rem),
    var(--canvas);
}
.privacy-header {
  display: grid;
  justify-items: center;
  padding: max(28px, env(safe-area-inset-top)) 22px 78px;
  text-align: center;
  background: linear-gradient(145deg, rgba(239,230,216,.95), rgba(229,220,220,.9));
}
.privacy-header .brand-mark { margin-bottom: 58px; }
.privacy-header h1 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(3rem, 14vw, 5.6rem);
  font-weight: 600;
  line-height: .9;
}
.privacy-header > p:last-child { max-width: 540px; color: var(--muted); }
.privacy-shell { width: min(100% - 24px, 820px); margin: -44px auto 50px; position: relative; }
.privacy-card { padding: 28px 22px; }
.privacy-card h2 {
  margin: 32px 0 8px;
  font-size: clamp(1.7rem, 7vw, 2.2rem);
}
.privacy-card p, .privacy-card li { color: var(--muted); }
.privacy-card li + li { margin-top: 5px; }
.privacy-updated {
  display: inline-flex;
  padding: 6px 11px;
  color: var(--rose-dark) !important;
  background: var(--bela-cancao);
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 800;
}
.privacy-reference {
  margin: 32px 0 24px;
  padding: 18px;
  background: var(--sage-soft);
  border-radius: 16px;
}
.privacy-reference p { margin-bottom: 0; }
@media (min-width: 600px) {
  .privacy-card { padding: 48px; }
}

.diaper-progress {
  margin-bottom: 18px;
  padding: 24px 20px;
  background:
    linear-gradient(135deg, rgba(255,253,248,.97), rgba(229,220,220,.88));
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}
.progress-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.progress-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(1.8rem, 8vw, 2.55rem);
  line-height: .95;
}
.progress-heading .step-label { margin-bottom: 7px; }
.progress-heading > strong {
  flex: 0 0 auto;
  color: var(--rose-dark);
  font-family: var(--serif);
  font-size: clamp(2.2rem, 11vw, 3.6rem);
  font-weight: 600;
  line-height: .8;
}
.progress-track {
  height: 16px;
  overflow: hidden;
  padding: 3px;
  background: rgba(117,74,82,.12);
  border: 1px solid rgba(117,74,82,.1);
  border-radius: 999px;
}
.progress-track span {
  display: block;
  width: 0;
  height: 100%;
  background: linear-gradient(90deg, var(--rose), var(--rose-dark));
  border-radius: inherit;
  box-shadow: 0 2px 8px rgba(92,55,64,.2);
  transition: width .8s cubic-bezier(.2,.75,.2,1);
}
.progress-scale {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: var(--muted);
  font-size: .56rem;
  font-weight: 700;
}
.diaper-progress > p {
  margin: 14px 0 1px;
  color: var(--ink);
  font-size: .8rem;
  font-weight: 800;
}
.diaper-progress > small { color: var(--muted); font-size: .66rem; }
.delivery-helper {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  margin: 20px 0 8px;
  padding: 15px;
  background: var(--sage-soft);
  border-radius: 15px;
}
.delivery-helper > span {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--sage);
  border-radius: 50%;
}
.delivery-helper strong { font-size: .8rem; }
.delivery-helper p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: .72rem;
}
.purchase-confirmation {
  margin-top: 15px;
  padding: 16px;
  background: rgba(229,220,220,.42);
  border: 1px solid rgba(117,74,82,.1);
  border-radius: 17px;
}
.purchase-confirmation .field { margin-bottom: 7px; }
.purchase-confirmation .button { margin-top: 5px; }
.purchase-confirmation > small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
  font-size: .67rem;
  text-align: center;
}
.usage-guide {
  margin-bottom: 18px;
  padding: 26px 20px;
  background: rgba(255,253,248,.96);
  border: 1px solid rgba(255,255,255,.9);
  border-radius: 24px;
  box-shadow: var(--shadow-soft);
}
.usage-heading {
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}
.usage-heading h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(2rem, 9vw, 3rem);
  line-height: .95;
}
.usage-time {
  width: max-content;
  padding: 6px 10px;
  color: var(--rose-dark);
  background: var(--bela-cancao);
  border-radius: 999px;
  font-size: .65rem;
  font-weight: 800;
}
.usage-steps {
  display: grid;
  gap: 4px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.usage-steps li {
  position: relative;
  display: grid;
  grid-template-columns: 40px 1fr;
  gap: 13px;
  padding: 13px 0;
}
.usage-steps li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 50px;
  bottom: -5px;
  width: 1px;
  background: rgba(117,74,82,.18);
}
.usage-steps li > span {
  position: relative;
  z-index: 1;
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--rose), var(--rose-dark));
  border: 4px solid var(--cotton);
  border-radius: 50%;
  box-shadow: 0 6px 14px rgba(92,55,64,.14);
  font-family: var(--serif);
  font-size: 1.05rem;
  font-weight: 700;
}
.usage-steps strong { display: block; margin-top: 1px; font-size: .83rem; }
.usage-steps p { margin: 3px 0 0; color: var(--muted); font-size: .72rem; }
.usage-alert {
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  margin-top: 18px;
  padding: 13px;
  background: var(--sage-soft);
  border-radius: 14px;
}
.usage-alert > span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--sage);
  border-radius: 50%;
  font-weight: 800;
}
.usage-alert p { margin: 2px 0 0; color: var(--muted); font-size: .7rem; }
@media (min-width: 600px) {
  .usage-guide { padding: 34px; }
  .usage-heading { grid-template-columns: 1fr auto; align-items: end; }
  .usage-steps { grid-template-columns: repeat(5, 1fr); gap: 14px; }
  .usage-steps li { grid-template-columns: 1fr; align-content: start; padding: 0; }
  .usage-steps li:not(:last-child)::after {
    left: 42px; right: -18px; top: 20px; bottom: auto; width: auto; height: 1px;
  }
  .diaper-progress { padding: 30px 34px; }
}
