/* =========================================================
   SITE DO CASAMENTO — ESTILOS PÚBLICOS
   Para trocar CORES: altere as variáveis em :root abaixo.
   Para trocar FONTES: altere --font-title / --font-body e o <link> do Google Fonts no <head> dos HTML.
   ========================================================= */
:root {
  --bg: #FAF7F2;          /* fundo principal (off-white quente) */
  --card: #F3EDE2;        /* cards / superfícies (areia/linho) */
  --card-2: #FBF8F3;      /* cards claros */
  --olive: #4A5D4E;       /* cor principal (verde oliva) */
  --olive-dark: #3E4F42;
  --gold: #C5A880;        /* detalhes nobres (ouro envelhecido) */
  --gold-dark: #A88B62;
  --text: #2C2A29;        /* texto (carvão) */
  --muted: #6E6862;
  --line: #E4DACB;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(60, 48, 30, .08), 0 2px 6px rgba(60, 48, 30, .05);
  --font-title: 'Cormorant Garamond', 'Playfair Display', Georgia, serif;
  --font-display: 'Playfair Display', 'Cormorant Garamond', Georgia, serif;
  --font-body: 'Inter', 'Plus Jakarta Sans', system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--font-body); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: var(--olive); }
h1, h2, h3 { font-family: var(--font-title); font-weight: 500; line-height: 1.15; margin: 0 0 .4em; }
.container { width: min(1120px, 100% - 40px); margin-inline: auto; }
.hidden { display: none !important; }

/* ---------- Botões ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; border: 0; cursor: pointer; text-decoration: none;
  font: 500 15px/1.2 var(--font-body); padding: 13px 26px; border-radius: 999px; transition: .2s ease; }
.btn-olive { background: var(--olive); color: #fff; box-shadow: 0 6px 16px rgba(74, 93, 78, .25); }
.btn-olive:hover { background: var(--olive-dark); transform: translateY(-1px); }
.btn-gold { background: var(--gold); color: #fff; }
.btn-gold:hover { background: var(--gold-dark); }
.btn-ghost { background: rgba(255,255,255,.14); color: #fff; border: 1px solid rgba(255,255,255,.6); backdrop-filter: blur(4px); }
.btn-ghost:hover { background: rgba(255,255,255,.26); }
.btn-outline { background: transparent; color: var(--olive); border: 1px solid var(--olive); }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; transform: none; }

/* ---------- Navegação ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: .3s; }
.nav .container { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.nav .mono { font-family: var(--font-title); font-size: 26px; color: #fff; text-decoration: none; letter-spacing: .02em; }
.nav .mono em { color: var(--gold); font-style: italic; }
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav ul a { color: #fff; text-decoration: none; font-size: 14px; letter-spacing: .04em; opacity: .92; }
.nav ul a:hover { opacity: 1; color: var(--gold); }
.nav.solid { background: rgba(250, 247, 242, .96); box-shadow: 0 1px 0 var(--line); backdrop-filter: blur(8px); }
.nav.solid .mono, .nav.solid ul a { color: var(--text); }
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 26px; cursor: pointer; }
.nav.solid .nav-toggle { color: var(--text); }

/* ---------- Hero (capa) ---------- */
.hero { position: relative; min-height: 100vh; min-height: 100svh; display: flex; align-items: center; background: radial-gradient(ellipse at 70% 40%, #F3EDE2 0%, var(--bg) 60%); overflow: hidden; padding: 100px 0 60px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.hero-content { text-align: center; position: relative; z-index: 2; }
.kicker { font-size: 13px; letter-spacing: .32em; text-transform: uppercase; color: var(--gold-dark); margin-bottom: 14px; }
.hero h1 { font-size: clamp(56px, 7.4vw, 104px); font-weight: 400; margin: 0 0 14px; color: var(--text); line-height: 1; }
.hero h1 span { display: inline-block; }
.hero h1 .amp { font-style: italic; color: var(--gold); padding: 0 .06em; }
.hero .date { font-family: var(--font-title); font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 28px; color: var(--olive); line-height: 1.3; }
.hero .date small { font-family: var(--font-body); font-size: 13px; letter-spacing: .22em; text-transform: uppercase; color: var(--muted); }
.countdown { display: flex; gap: 12px; justify-content: center; margin-bottom: 30px; }
.countdown div { min-width: 80px; padding: 14px 8px 10px; border: 1px solid var(--line); border-radius: 12px; background: var(--card-2); box-shadow: var(--shadow); }
.countdown b { display: block; font: 500 34px/1 var(--font-title); color: var(--olive); }
.countdown small { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.hero-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero-photo { position: relative; justify-self: center; width: min(460px, 100%); }
.hero-photo::before { content: ''; position: absolute; inset: -14px; border: 1px solid var(--gold); border-radius: 260px 260px 18px 18px; }
.hero-photo img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 62% 30%; border-radius: 250px 250px 12px 12px; box-shadow: 0 30px 60px rgba(60,48,30,.18); }
.hero-orn { position: absolute; width: 190px; opacity: .5; pointer-events: none; }
.hero-orn.l { left: -30px; bottom: -20px; transform: rotate(10deg); }
.hero-orn.r { right: -20px; top: 70px; transform: scaleX(-1) rotate(-20deg); opacity: .6; }
.nav .mono, .nav ul a { color: var(--text); }
.nav-toggle { color: var(--text); }

/* ---------- Seções ---------- */
section { padding: 96px 0; position: relative; }
.section-title { text-align: center; color: var(--gold-dark); font-size: clamp(34px, 5vw, 50px); margin-bottom: 10px; }
.section-sub { text-align: center; color: var(--muted); max-width: 640px; margin: 0 auto 48px; }
.divider { width: 120px; height: 14px; margin: 0 auto 22px; background: url('/img/ornaments/divider.svg') center / contain no-repeat; }

/* Nossa História */
.story { display: grid; grid-template-columns: 1.05fr 1fr; gap: 60px; align-items: center; }
.story-text p { font-size: 17px; color: #4A4541; white-space: pre-line; }
.story-text .sign { font-family: var(--font-title); font-style: italic; font-size: 28px; color: var(--olive); }
.story-photos { position: relative; height: 520px; }
.story-photos img { position: absolute; object-fit: cover; border-radius: 10px; box-shadow: var(--shadow); border: 8px solid #fff; }
.story-photos .p1 { width: 62%; height: 78%; left: 0; top: 0; transform: rotate(-2deg); }
.story-photos .p2 { width: 52%; height: 62%; right: 0; bottom: 0; transform: rotate(3deg); }
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 210px; grid-auto-flow: dense; gap: 14px; margin-top: 70px; }
.gallery button { padding: 0; border: 0; background: none; cursor: zoom-in; overflow: hidden; border-radius: 10px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.gallery button:hover img { transform: scale(1.06); }
.gallery .tall { grid-row: span 2; }
.gallery .wide { grid-column: span 2; }
.lightbox { position: fixed; inset: 0; background: rgba(20, 18, 16, .92); z-index: 100; display: grid; place-items: center; padding: 20px; }
.lightbox img { max-height: 90vh; border-radius: 8px; }
.lightbox .close { position: absolute; top: 16px; right: 22px; color: #fff; background: none; border: 0; font-size: 36px; cursor: pointer; }

/* Cerimônia, Recepção & Guia (mockup) */
.guide { background: var(--bg); }
.guide-frame { position: relative; padding: 10px 0; }
.guide-frame::before, .guide-frame::after { content: ''; position: absolute; top: -60px; bottom: -60px; width: 1px; background: linear-gradient(var(--gold), var(--gold)); opacity: .75; }
.guide-frame::before { left: 0; } .guide-frame::after { right: 0; }
.guide .section-title { font-family: var(--font-display); font-weight: 400; color: var(--gold-dark); font-size: clamp(28px, 4vw, 42px); }
.venues { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; width: min(900px, 100% - 40px); margin: 40px auto 0; }
.venue { position: relative; background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 26px 22px 24px; box-shadow: var(--shadow); text-align: left; }
.venue h3 { font-family: var(--font-display); font-weight: 400; font-size: 24px; margin-bottom: 10px; }
.venue .time { font-size: 15px; margin: 0; }
.venue .addr { font-size: 15px; margin: 0 0 16px; }
.venue .addr small { display: block; color: var(--muted); font-size: 13px; }
.map { height: 140px; border-radius: 8px; background: #EDE6DA url('/img/ornaments/map.svg') center / cover; position: relative; margin-bottom: 18px; display: block; }
.map::after { content: ''; position: absolute; left: 50%; top: 42%; width: 34px; height: 44px; transform: translate(-50%, -50%); background: url('/img/ornaments/pin.svg') center / contain no-repeat; }
.venue .btn { display: flex; margin: 0 auto; width: max-content; padding: 11px 26px; font-size: 14px; }
.venue .sprig { position: absolute; width: 56px; right: -10px; bottom: -6px; opacity: .9; transform: scaleX(-1) rotate(-10deg); }
.rose { position: absolute; width: 90px; right: calc(50% - 520px); top: 20px; opacity: .9; }
.tips { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; width: min(900px, 100% - 40px); margin: 44px auto 0; }
.tip { background: var(--card-2); border: 1px solid var(--line); border-radius: 12px; padding: 26px 22px; text-align: center; box-shadow: var(--shadow); }
.tip .ico { width: 40px; height: 40px; margin: 0 auto 10px; color: var(--gold-dark); }
.tip h3 { font-family: var(--font-display); font-weight: 400; font-size: 21px; margin-bottom: 4px; }
.tip h4 { font-weight: 500; font-size: 14px; margin: 0 0 10px; color: var(--olive); }
.tip p { font-size: 14px; color: #4D4844; margin: 0; }

/* Presentes (chamada) */
.gift-band { background: var(--olive); color: #fff; text-align: center; overflow: hidden; }
.gift-band h2 { color: #fff; font-size: clamp(34px, 5vw, 50px); }
.gift-band p { max-width: 620px; margin: 0 auto 30px; opacity: .9; }
.gift-band .orn { position: absolute; width: 180px; opacity: .25; }
.gift-band .orn.l { left: 3%; top: 20px; } .gift-band .orn.r { right: 3%; bottom: 20px; transform: rotate(180deg); }

/* RSVP explicação */
.rsvp-card { max-width: 760px; margin: 0 auto; background: var(--card); border-radius: 18px; padding: 50px 40px; text-align: center; position: relative; overflow: hidden; border: 1px solid var(--line); }
.rsvp-card .pill { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--gold); border-radius: 999px; padding: 4px 14px; font-size: 13px; background: var(--card-2); margin-bottom: 16px; }
.rsvp-card .pill i, .pill i { width: 6px; height: 6px; border-radius: 50%; background: var(--gold); display: inline-block; }
.rsvp-card h2 { font-size: clamp(32px, 4.5vw, 44px); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0 10px; text-align: center; }
.steps div { background: var(--card-2); border-radius: 12px; padding: 20px 14px; font-size: 14px; }
.steps b { display: block; font: 500 28px/1 var(--font-title); color: var(--gold-dark); margin-bottom: 6px; }
.rsvp-card .deadline { margin-top: 18px; color: var(--olive); font-weight: 500; }
.rsvp-card .orn { position: absolute; width: 120px; opacity: .55; }
.rsvp-card .orn.tl { top: -14px; left: -14px; } .rsvp-card .orn.br { bottom: -14px; right: -14px; transform: rotate(180deg); }

footer { text-align: center; padding: 50px 20px 40px; color: var(--muted); font-size: 14px; border-top: 1px solid var(--line); }
footer .mono { font-family: var(--font-title); font-size: 34px; color: var(--olive); }
footer .mono em { color: var(--gold); }
footer a { color: var(--muted); }

/* Animação de entrada */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* =========================================================
   LISTA DE PRESENTES (/presentes)
   ========================================================= */
.page-gifts { background: #EFE9DF; min-height: 100vh; }
.topbar { background: var(--bg); border-bottom: 1px solid var(--line); }
.topbar .container { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.topbar .mono { font-family: var(--font-title); font-size: 24px; color: var(--text); text-decoration: none; }
.topbar .mono em { color: var(--gold); }
.topbar a.back { font-size: 14px; color: var(--olive); text-decoration: none; }
.gifts-head { text-align: center; padding: 48px 0 10px; }
.gifts-head h1 { font-family: var(--font-display); font-weight: 400; font-size: clamp(26px, 3.6vw, 38px); }
.gifts-head p { color: var(--muted); max-width: 640px; margin: 0 auto; }
.gift-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; padding: 34px 0 80px; }
.gift { background: #F4EFE6; border-radius: 12px; padding: 10px 10px 14px; box-shadow: 0 6px 18px rgba(60,48,30,.07); display: flex; flex-direction: column; position: relative; transition: transform .25s, box-shadow .25s; }
.gift:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(60,48,30,.12); }
.gift .ph { position: relative; aspect-ratio: 4 / 2.75; border-radius: 9px; overflow: hidden; background: #ddd; }
.gift .ph img { width: 100%; height: 100%; object-fit: cover; }
.badge-q { position: absolute; top: 10px; left: 10px; background: rgba(255,255,255,.93); border-radius: 999px; padding: 3px 11px; font-size: 12.5px; color: var(--text); }
.badge-q.low { background: #FFF3E0; color: #8A5A1A; } .badge-q.out { background: #EEE; color: #888; }
.badge-ml { position: absolute; top: 10px; right: 10px; background: #FFE600; color: #2D3277; border-radius: 999px; padding: 3px 9px; font-size: 11px; font-weight: 600; }
.gift h3 { font-family: var(--font-title); font-weight: 500; font-size: 22px; line-height: 1.2; margin: 14px 4px 6px; flex: 1; }
.gift .price { font-family: var(--font-title); font-size: 20px; margin: 0 4px 12px; }
.gift .btn { border-radius: 6px; padding: 10px; font-size: 14.5px; font-weight: 400; margin: 0 4px; }
.gift.soldout { opacity: .7; } .gift.soldout:hover { transform: none; }
.empty { text-align: center; color: var(--muted); padding: 60px 0; grid-column: 1 / -1; }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(44, 42, 41, .45); backdrop-filter: blur(3px); z-index: 80; display: grid; place-items: center; padding: 16px; overflow-y: auto; }
.modal { width: min(440px, 100%); background: #FBF8F3; border-radius: 14px; box-shadow: 0 30px 60px rgba(0,0,0,.25); padding: 26px 26px 22px; position: relative; animation: pop .25s ease; }
@keyframes pop { from { transform: translateY(12px) scale(.98); opacity: 0; } }
.modal .x { position: absolute; right: 16px; top: 14px; border: 0; background: none; font-size: 26px; line-height: 1; cursor: pointer; color: var(--text); }
.modal h2 { font-family: var(--font-display); font-weight: 400; font-size: 26px; margin: 0; }
.modal h4 { font-family: var(--font-display); font-weight: 400; font-size: 19px; margin: 2px 0 16px; color: #3C3936; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13.5px; font-weight: 500; margin-bottom: 6px; }
.field input, .field textarea, .field select { width: 100%; border: 1px solid #E1D8CA; border-radius: 7px; padding: 10px 12px; font: 15px var(--font-body); background: #fff; color: var(--text); }
.field textarea { min-height: 76px; resize: vertical; }
.field input:focus, .field textarea:focus { outline: 2px solid rgba(197,168,128,.45); border-color: var(--gold); }
.qty { display: flex; align-items: center; gap: 10px; }
.qty button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line); background: #fff; font-size: 18px; cursor: pointer; }
.qty b { min-width: 24px; text-align: center; font-size: 17px; }
.qty .tot { margin-left: auto; font-family: var(--font-title); font-size: 22px; }
.pay-opts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-opt { border: 1px solid #E1D8CA; border-radius: 8px; padding: 12px; cursor: pointer; background: #fff; text-align: left; font: inherit; color: inherit; display: flex; flex-direction: column; gap: 2px; min-height: 92px; position: relative; }
.pay-opt.active { border-color: var(--gold); background: #F6EEDF; box-shadow: inset 0 0 0 1px var(--gold); }
.pay-opt b { font-size: 14px; font-weight: 500; margin-top: auto; }
.pay-opt small { font-size: 11.5px; color: var(--muted); line-height: 1.3; }
.pay-opt .pi { width: 24px; height: 24px; color: var(--gold-dark); }
.pay-opt .qr-mini { position: absolute; right: 10px; top: 10px; width: 40px; height: 40px; }
.pay-opt .cards { position: absolute; right: 10px; top: 12px; display: flex; }
.pay-opt .cards i { width: 15px; height: 15px; border-radius: 50%; display: block; margin-left: -4px; }
.pay-opt[disabled] { opacity: .45; cursor: not-allowed; }
.webhook-pill { display: flex; width: max-content; margin: 14px auto; align-items: center; gap: 7px; font-size: 12px; background: #EEF0EA; color: #44513F; border-radius: 999px; padding: 5px 13px; }
.webhook-pill i { width: 7px; height: 7px; background: #3DAA5C; border-radius: 50%; }
.modal .btn-olive { border-radius: 6px; width: 100%; padding: 13px; }
.msg-err { color: #A33A2B; font-size: 14px; margin: 8px 0 0; text-align: center; }
.pix-box { text-align: center; }
.pix-box img { width: 220px; height: 220px; margin: 6px auto 12px; border-radius: 8px; border: 1px solid var(--line); background: #fff; padding: 6px; }
.copy-row { display: flex; gap: 8px; }
.copy-row input { flex: 1; font-size: 12px; }
.copy-row .btn { padding: 8px 14px; border-radius: 7px; font-size: 13px; }
.note { font-size: 13px; color: var(--muted); }
.ok-ico { width: 64px; height: 64px; border-radius: 50%; background: #E9EEE6; color: var(--olive); display: grid; place-items: center; margin: 4px auto 12px; font-size: 32px; }

/* =========================================================
   CONVITE PRIVADO (/convite/:token) — mockup "Acesso Privado"
   ========================================================= */
.page-invite { background: #EFE8DC; min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px 16px 30px; }
.invite { position: relative; width: min(620px, 100%); background: linear-gradient(180deg, #FBF8F2, #F6F1E8); border: 1px solid #E6DCCB; border-radius: 16px; box-shadow: 0 22px 50px rgba(60,48,30,.12); padding: 48px 46px 34px; }
.invite .pill-top { position: absolute; top: -15px; left: 50%; transform: translateX(-50%); white-space: nowrap; background: #F7F1E6; border: 1px solid var(--gold); border-radius: 999px; padding: 4px 14px; font-size: 13px; display: flex; gap: 7px; align-items: center; }
.invite .orn { position: absolute; width: 92px; pointer-events: none; }
.invite .orn.tl { top: -6px; left: -6px; transform: rotate(-8deg); }
.invite .orn.tr { top: -4px; right: -6px; transform: scaleX(-1) rotate(-8deg); opacity: .7; }
.invite .orn.bl { bottom: -6px; left: -6px; transform: scaleY(-1) rotate(8deg); }
.invite .orn.br { bottom: -4px; right: -6px; transform: rotate(180deg); opacity: .7; }
.invite .to { text-align: center; font-size: 15px; margin: 0; }
.invite h1 { font-family: var(--font-display); font-weight: 400; text-align: center; font-size: clamp(28px, 5vw, 36px); margin: 4px 0 18px; }
.member { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid #E3D8C6; }
.member:last-of-type { border-bottom: 1px solid #E3D8C6; }
.member .nm { font-size: 16px; }
.member .nm small { color: var(--muted); font-size: 12px; margin-left: 4px; }
.toggle { display: flex; gap: 6px; }
.toggle button { border: 1px solid #DCCFBB; background: #F7F1E8; color: var(--text); border-radius: 999px; padding: 6px 13px; font: 12.5px var(--font-body); cursor: pointer; transition: .15s; }
.toggle button.on-yes { background: var(--olive); border-color: var(--olive); color: #fff; }
.toggle button.on-no { background: #E6DDD0; border-color: #CBBBA3; color: #5A4A33; }
.invite textarea { width: 100%; margin-top: 18px; min-height: 74px; border: 1px solid #DCCFBB; border-radius: 8px; padding: 10px 12px; font: 14px var(--font-body); background: #FCFAF6; resize: vertical; }
.invite .save { width: 100%; margin-top: 16px; background: var(--olive); color: var(--gold); border: 0; border-radius: 999px; padding: 13px; font: 500 16px var(--font-body); cursor: pointer; box-shadow: inset 0 0 0 1px rgba(197,168,128,.5); }
.invite .save:hover { background: var(--olive-dark); }
.invite .status-line { text-align: center; font-size: 14px; margin: 12px 0 0; min-height: 20px; }
.invite-foot { text-align: center; margin-top: 26px; color: var(--muted); font-size: 14px; }
.invite-foot .mono { font-family: var(--font-title); font-size: 26px; color: var(--olive); display: block; }
.invite-foot a { color: var(--olive); }
.thanks { text-align: center; padding: 10px 0; }
.thanks h2 { font-family: var(--font-display); font-weight: 400; font-size: 28px; }

/* =========================================================
   RESPONSIVO (celular / tablet)
   ========================================================= */
@media (max-width: 980px) {
  .gift-grid { grid-template-columns: repeat(3, 1fr); }
  .rose { display: none; }
}
@media (max-width: 820px) {
  .hero { padding: 90px 0 50px; min-height: auto; }
  .hero-grid { grid-template-columns: 1fr; gap: 34px; }
  .hero-photo { order: -1; width: min(320px, 82%); }
  .hero-orn { width: 120px; }
  .nav ul { position: fixed; inset: 70px 0 auto; background: var(--bg); flex-direction: column; gap: 0; padding: 10px 0; box-shadow: 0 10px 20px rgba(0,0,0,.08); display: none; }
  .nav ul.open { display: flex; }
  .nav ul a { color: var(--text); display: block; padding: 12px 24px; }
  .nav-toggle { display: block; }
  section { padding: 70px 0; }
  .story { grid-template-columns: 1fr; gap: 30px; }
  .story-photos { height: 400px; }
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 160px; }
  .gallery .wide { grid-column: span 2; }
  .venues, .tips { grid-template-columns: 1fr; }
  .guide-frame::before { left: 8px; } .guide-frame::after { right: 8px; }
  .steps { grid-template-columns: 1fr; }
  .gift-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
}
@media (max-width: 560px) {
  .countdown { gap: 8px; } .countdown div { min-width: 68px; } .countdown b { font-size: 28px; }
  .rsvp-card { padding: 40px 20px; }
  .gift h3 { font-size: 19px; } .gift .btn { font-size: 13px; padding: 9px 6px; }
  .invite { padding: 42px 18px 24px; }
  .invite h1 { margin-bottom: 14px; }
  .member { flex-direction: column; align-items: stretch; gap: 6px; border: 0 !important; padding: 6px 0; }
  .member .nm { font-size: 14px; color: var(--muted); padding-left: 6px; }
  .toggle { gap: 0; border: 1px solid #DCCFBB; border-radius: 999px; overflow: hidden; background: #F7F1E8; }
  .toggle button { flex: 1; border: 0; border-radius: 999px; padding: 9px 6px; font-size: 13px; line-height: 1.2; }
  .invite .orn { width: 64px; }
}
@media (max-width: 400px) { .gift-grid { grid-template-columns: 1fr 1fr; gap: 10px; } .gift { padding: 7px 7px 10px; } .badge-q { font-size: 11px; padding: 2px 8px; } }

/* =========================================================
   v2 — Convite individual em 2 etapas + pagamento fixo
   ========================================================= */
.invite.invite-wide { width: min(900px, 100%); }
.invite .fam { text-align: center; margin: -12px 0 14px; color: var(--muted); font-size: 14px; letter-spacing: .06em; }
.invite h1 small.child { font-size: .5em; color: var(--muted); }
.steps-bar { list-style: none; display: flex; gap: 10px; justify-content: center; padding: 0; margin: 4px 0 18px; flex-wrap: wrap; }
.steps-bar li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; color: var(--muted); padding: 6px 14px 6px 6px; border: 1px solid var(--line); border-radius: 999px; background: #FBF8F3; }
.steps-bar b { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #E8E0D3; color: var(--text); font-size: 12px; }
.steps-bar li.on { border-color: var(--gold); color: var(--text); } .steps-bar li.on b { background: var(--gold); color: #fff; }
.steps-bar li.done { border-color: var(--olive); color: var(--olive); } .steps-bar li.done b { background: var(--olive); color: #fff; }
.inv-step { border-top: 1px solid #E3D8C6; padding: 18px 0 6px; }
.inv-step h2 { font-family: var(--font-display); font-weight: 400; font-size: 21px; display: flex; align-items: center; gap: 10px; margin: 0 0 10px; }
.inv-step h2 span { width: 28px; height: 28px; border-radius: 50%; background: var(--olive); color: var(--gold); display: grid; place-items: center; font: 500 14px var(--font-body); }
.inv-step.locked { opacity: .62; }
.inv-step .hint { font-size: 14px; color: var(--muted); margin: 0 0 12px; }
.inv-step .member { border: 0 !important; }
.inv-grid { grid-template-columns: repeat(3, 1fr); padding: 6px 0 10px; gap: 14px; }
.inv-grid .gift h3 { font-size: 19px; }
.my-gifts { list-style: none; padding: 0; margin: 0 0 8px; }
.my-gifts li { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; background: #FBF8F3; border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin-bottom: 8px; font-size: 14.5px; }
.my-gifts em { font-style: normal; font-size: 12.5px; border-radius: 999px; padding: 2px 10px; align-self: center; }
.my-gifts .b-wait { background: #FBE7C6; color: #7A5414; } .my-gifts .b-ok { background: #DDEDD8; color: #2F5A2C; }
.link-btn { background: none; border: 0; color: var(--olive); cursor: pointer; font: 500 14px var(--font-body); padding: 4px 0 10px; text-decoration: underline; }
.rsvp-banner { border-radius: 10px; padding: 11px 14px; font-size: 14.5px; margin: 0 0 14px; text-align: center; }
.rsvp-banner.ok { background: #E1EEDC; color: #2F5A2C; } .rsvp-banner.wait { background: #FBEFD6; color: #6E4C12; } .rsvp-banner.no { background: #EFE8DE; color: #5A4A33; }
.toggle button[disabled] { opacity: .55; cursor: not-allowed; }
.invite .save[disabled] { opacity: .5; cursor: not-allowed; }
.amount-big { font-size: 17px; margin: 0 0 12px; } .amount-big b { font-family: var(--font-title); font-size: 26px; color: var(--olive); }
.key-box { display: flex; align-items: center; gap: 10px; text-align: left; background: #F6F1E8; border: 1px solid var(--line); border-radius: 9px; padding: 9px 11px; margin: 6px 0 10px; }
.key-box > div { flex: 1; min-width: 0; } .key-box small { display: block; color: var(--muted); font-size: 11.5px; } .key-box b { font-size: 13.5px; word-break: break-all; font-weight: 500; }
.key-box .lock { font-size: 15px; }
.btn.sm { padding: 7px 12px; font-size: 12.5px; border-radius: 7px; }
.alt-pix { text-align: left; font-size: 13.5px; margin: 4px 0 10px; } .alt-pix summary { cursor: pointer; color: var(--olive); padding: 4px 0; }
#stepPix .btn-block, #stepCard .btn-block { margin-top: 6px; border-radius: 7px; }
@media (max-width: 760px) { .inv-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
@media (max-width: 560px) {
  .inv-step .member { flex-direction: column; }
  .steps-bar li { font-size: 12.5px; }
  .pix-box img { width: 190px; height: 190px; }
}
.modal-bg { display: flex; align-items: flex-start; justify-content: center; }
.modal-bg .modal { margin: auto; }
.copy-row input { flex: 1 1 auto; min-width: 0; width: auto; }
.copy-row .btn { flex: 0 0 auto; width: auto; }
#cardLink { display: block; text-align: center; line-height: 1.35; }
