/* ══════════════════════════════════════════════════════
   Convite Studio — editor + pré-visualização
   ══════════════════════════════════════════════════════ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Cores da interface do editor (fixas) */
  --ui-bg:      #f4f2ee;
  --ui-panel:   #ffffff;
  --ui-border:  #e5e1d8;
  --ui-text:    #2c2a26;
  --ui-soft:    #8a857a;
  --ui-accent:  #55684a;
  --ui-accent2: #36422f;
  --ui-radius:  14px;

  /* Cores do CONVITE (mudam com a personalização) */
  --prim:   #55684a;
  --fundo:  #f5efe4;
  --accent: #c8924a;
  --fonte-nomes: 'Great Vibes';

  --prim-dark:   color-mix(in srgb, var(--prim) 72%, black);
  --prim-soft:   color-mix(in srgb, var(--prim) 55%, var(--fundo));
  --fundo-deep:  color-mix(in srgb, var(--fundo) 88%, var(--prim));
}

html, body {
  min-height: 100%;
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--ui-bg);
  color: var(--ui-text);
}


button { font-family: inherit; }

/* ── Barra de topo ────────────────────────────────────── */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--ui-border);
}

.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark { font-size: 1.7rem; }
.brand strong { display: block; font-size: 1.02rem; letter-spacing: 0.01em; }
.brand small { display: block; color: var(--ui-soft); font-size: 0.74rem; }

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

/* ── Botões ───────────────────────────────────────────── */
.btn {
  border: none;
  cursor: pointer;
  padding: 10px 18px;
  border-radius: 999px;
  font-size: 0.86rem;
  font-weight: 600;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn.primary {
  background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent2));
  color: #fff;
  box-shadow: 0 6px 18px rgba(54, 66, 47, 0.28);
}
.btn.ghost {
  background: transparent;
  color: var(--ui-soft);
  border: 1px solid var(--ui-border);
}
.btn.ghost:hover { color: var(--ui-text); background: #fff; }
.btn.small { padding: 8px 14px; font-size: 0.8rem; width: 100%; }

/* ── Layout principal ─────────────────────────────────── */
.layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 22px;
  max-width: 1240px;
  margin: 0 auto;
  padding: 22px;
  align-items: start;
}

/* ── Painel editor ────────────────────────────────────── */
.panel {
  background: var(--ui-panel);
  border: 1px solid var(--ui-border);
  border-radius: var(--ui-radius);
  overflow: hidden;
  box-shadow: 0 10px 34px rgba(44, 42, 38, 0.06);
}

.tabs {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border-bottom: 1px solid var(--ui-border);
  background: #faf9f6;
}
.tab {
  padding: 13px 6px;
  background: none;
  border: none;
  border-bottom: 2.5px solid transparent;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ui-soft);
  cursor: pointer;
  transition: color 0.15s;
}
.tab:hover { color: var(--ui-text); }
.tab.active { color: var(--ui-accent2); border-bottom-color: var(--ui-accent); background: #fff; }

.tab-page { display: none; padding: 16px; }
.tab-page.active { display: block; }

/* ── Barra de progresso ───────────────────────────────── */
.progresso {
  padding: 12px 16px 11px;
  border-bottom: 1px solid var(--ui-border);
  background: #fdfcfa;
}
.progresso-linha {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 6px;
}
#progressoTxt {
  font-size: 0.76rem;
  font-weight: 700;
  color: var(--ui-accent2);
}
.progresso-barra {
  height: 8px;
  border-radius: 999px;
  background: var(--ui-border);
  overflow: hidden;
}
#progressoFill {
  display: block;
  height: 100%;
  width: 0;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--ui-accent), #8da07e);
  transition: width 0.5s cubic-bezier(0.2, 0.8, 0.2, 1), background 0.3s;
}
#progressoFill.completo {
  background: linear-gradient(90deg, #c8924a, #ddb070);
}
.progresso-falta {
  margin-top: 6px;
  font-size: 0.7rem;
  color: var(--ui-soft);
  line-height: 1.4;
}
.progresso-falta:empty { display: none; }

.tab-intro {
  font-size: 0.84rem;
  color: var(--ui-soft);
  line-height: 1.5;
  margin-bottom: 14px;
}

/* ── Grupos (accordion) ───────────────────────────────── */
.group {
  border: 1px solid var(--ui-border);
  border-radius: 12px;
  margin-bottom: 10px;
  background: #fff;
  overflow: hidden;
}
.group summary {
  padding: 12px 14px;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  list-style: none;
  user-select: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.group summary::-webkit-details-marker { display: none; }
.group summary::after { content: '▾'; color: var(--ui-soft); font-size: 0.8rem; transition: transform 0.2s; }
.group[open] summary::after { transform: rotate(180deg); }
.group[open] summary { border-bottom: 1px dashed var(--ui-border); }

.group-body { padding: 13px 14px 15px; display: flex; flex-direction: column; gap: 11px; }

/* ── Campos ───────────────────────────────────────────── */
.field { display: flex; flex-direction: column; gap: 5px; }
.field span {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--ui-soft);
}
.field input, .field textarea, .guest-form input {
  padding: 10px 12px;
  border: 1.5px solid var(--ui-border);
  border-radius: 10px;
  font-family: inherit;
  font-size: 0.9rem;
  color: var(--ui-text);
  background: #fdfcfa;
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  width: 100%;
}
.field input:focus, .field textarea:focus, .guest-form input:focus {
  border-color: var(--ui-accent);
  box-shadow: 0 0 0 3px rgba(85, 104, 74, 0.12);
}
.field textarea { resize: vertical; line-height: 1.45; }

.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 9px; }

.hint-text { font-size: 0.75rem; color: var(--ui-soft); line-height: 1.45; }

/* ── Temas prontos ────────────────────────────────────── */
.tema-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tema-opt {
  padding: 11px 8px;
  border: 1.5px solid var(--ui-border);
  border-radius: 10px;
  background: #fdfcfa;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ui-text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.tema-opt:hover { border-color: var(--ui-accent); }
.tema-opt.active {
  border-color: var(--ui-accent);
  background: color-mix(in srgb, var(--ui-accent) 8%, white);
  box-shadow: 0 0 0 3px rgba(85, 104, 74, 0.12);
}

/* ── Switch Save the Date ─────────────────────────────── */
.switch-row {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  font-size: 0.8rem;
  color: var(--ui-soft);
  line-height: 1.45;
  padding: 10px 11px;
  border: 1px dashed var(--ui-border);
  border-radius: 10px;
  cursor: pointer;
}
.switch-row input { accent-color: var(--ui-accent); width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; }
.switch-row strong { color: var(--ui-text); }

/* ── Escolha de fontes ────────────────────────────────── */
.font-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.font-opt {
  padding: 12px 8px 10px;
  border: 1.5px solid var(--ui-border);
  border-radius: 10px;
  background: #fdfcfa;
  font-size: 1.25rem;
  color: var(--ui-text);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
  line-height: 1.2;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.font-opt:hover { border-color: var(--ui-accent); }
.font-opt.active {
  border-color: var(--ui-accent);
  background: color-mix(in srgb, var(--ui-accent) 8%, white);
  box-shadow: 0 0 0 3px rgba(85, 104, 74, 0.12);
}

/* ── Paletas de cores ─────────────────────────────────── */
.palette-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.pal {
  border: 1.5px solid var(--ui-border);
  border-radius: 10px;
  background: #fdfcfa;
  padding: 9px 6px 7px;
  cursor: pointer;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  transition: border-color 0.15s;
}
.pal i {
  width: 20px; height: 20px;
  border-radius: 50%;
  border: 1px solid rgba(0,0,0,0.08);
}
.pal em {
  flex-basis: 100%;
  text-align: center;
  font-style: normal;
  font-size: 0.68rem;
  font-weight: 600;
  color: var(--ui-soft);
  margin-top: 2px;
}
.pal:hover { border-color: var(--ui-accent); }
.pal.active { border-color: var(--ui-accent); box-shadow: 0 0 0 3px rgba(85, 104, 74, 0.12); }

.custom-colors { margin-top: 2px; }
.color-field input[type="color"] {
  padding: 2px;
  height: 38px;
  cursor: pointer;
}

/* ── Selos ────────────────────────────────────────────── */
.seal-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; }
.seal-opt {
  aspect-ratio: 1;
  border: 1.5px solid var(--ui-border);
  border-radius: 50%;
  background: #fdfcfa;
  font-size: 1.15rem;
  cursor: pointer;
  transition: border-color 0.15s, transform 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.seal-opt:hover { transform: scale(1.08); border-color: var(--ui-accent); }
.seal-opt.active { border-color: var(--ui-accent); box-shadow: 0 0 0 3px rgba(85, 104, 74, 0.14); }
.seal-opt[data-selo="mono"] { font-size: 0.72rem; font-weight: 700; font-family: 'Playfair Display', serif; }

/* ── Convidados ───────────────────────────────────────── */
.stats {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
  margin-bottom: 14px;
}
.stat {
  background: #faf9f6;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  padding: 10px 6px;
  text-align: center;
}
.stat strong { display: block; font-size: 1.35rem; color: var(--ui-accent2); }
.stat span { font-size: 0.68rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--ui-soft); }
.stat.ok strong { color: #3e7d47; }

.guest-form { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }

.guest-list { list-style: none; display: flex; flex-direction: column; gap: 7px; margin-bottom: 12px; }
.guest-list:empty::after {
  content: 'Ainda sem convidados — adiciona o primeiro! 🎉';
  display: block;
  text-align: center;
  font-size: 0.82rem;
  color: var(--ui-soft);
  padding: 18px 8px;
  border: 1.5px dashed var(--ui-border);
  border-radius: 10px;
}
.guest {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 10px;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  background: #fdfcfa;
}
.guest .g-info { flex: 1; min-width: 0; }
.guest .g-nome { font-size: 0.87rem; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.guest .g-meta { font-size: 0.72rem; color: var(--ui-soft); }
.guest select {
  border: 1px solid var(--ui-border);
  border-radius: 8px;
  padding: 5px 6px;
  font-size: 0.74rem;
  font-family: inherit;
  background: #fff;
  cursor: pointer;
}
.guest select.st-confirmado { background: #e8f3e9; border-color: #b3d4b7; color: #2c5e33; }
.guest select.st-recusou    { background: #faeaea; border-color: #e3bcbc; color: #8a3232; }
.guest .g-del {
  border: none;
  background: none;
  color: #b98484;
  font-size: 1rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 8px;
}
.guest .g-del:hover { background: #faeaea; }

/* ── Extras (checkboxes) ──────────────────────────────── */
.extras label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 0.86rem;
  padding: 8px 10px;
  border: 1px solid var(--ui-border);
  border-radius: 10px;
  background: #fdfcfa;
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s;
}
.extras label:hover { border-color: var(--ui-accent); }
.extras label:has(input:checked) {
  border-color: var(--ui-accent);
  background: color-mix(in srgb, var(--ui-accent) 7%, white);
}
.extras input { accent-color: var(--ui-accent); width: 16px; height: 16px; }

/* ══════════════════════════════════════════════════════
   PRÉ-VISUALIZAÇÃO — o "telemóvel"
   ══════════════════════════════════════════════════════ */
.preview-area {
  position: sticky;
  top: 82px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
}

.preview-toolbar {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  justify-content: center;
}

.pv-switch {
  display: flex;
  background: #fff;
  border: 1px solid var(--ui-border);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.pv-mode {
  border: none;
  background: none;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--ui-soft);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}
.pv-mode.active {
  background: linear-gradient(135deg, var(--ui-accent), var(--ui-accent2));
  color: #fff;
}

.autosave { font-size: 0.74rem; color: var(--ui-soft); opacity: 0; transition: opacity 0.3s; }
.autosave.show { opacity: 1; }

.phone {
  width: min(390px, 92vw);
  border-radius: 42px;
  padding: 12px;
  background: #1c1c1e;
  box-shadow:
    0 30px 70px rgba(28, 28, 30, 0.35),
    inset 0 0 0 2px #3a3a3c;
  transition: width 0.35s ease, border-radius 0.35s ease;
}
.phone-screen {
  border-radius: 32px;
  overflow: hidden;
  height: min(700px, 72vh);
  overflow-y: auto;
  background: var(--fundo);
  position: relative;
  scrollbar-width: none;
}
.phone-screen::-webkit-scrollbar { display: none; }

/* Barra de browser — só aparece no modo computador */
.browser-bar {
  display: none;
  align-items: center;
  gap: 6px;
  padding: 10px 14px 9px;
}
.browser-bar .dot { width: 11px; height: 11px; border-radius: 50%; }
.browser-bar .dot.r { background: #ff5f57; }
.browser-bar .dot.y { background: #febc2e; }
.browser-bar .dot.g { background: #28c840; }
.browser-bar .url {
  flex: 1;
  margin-left: 10px;
  background: rgba(255, 255, 255, 0.12);
  color: #cfcdc8;
  font-size: 0.74rem;
  padding: 5px 14px;
  border-radius: 999px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ── Modo computador ─────────────────────────────────── */
.phone.desktop {
  width: min(820px, 100%);
  border-radius: 16px;
  padding: 0 8px 8px;
}
.phone.desktop .browser-bar { display: flex; }
.phone.desktop .phone-screen {
  border-radius: 8px 8px 12px 12px;
  height: min(560px, 62vh);
}

/* No PC o convite fica centrado com largura de cartão, como no site real */
.phone.desktop .pv-invite-scene {
  display: none;
  flex-direction: column;
  align-items: center;
  padding: 40px 28px 48px;
}
.phone.desktop .pv-invite-scene.active { display: flex; }
.phone.desktop .pv-invite-scene > * { width: 100%; max-width: 500px; }
.phone.desktop .pv-names { font-size: 4rem; }
.phone.desktop .pv-envelope {
  width: min(46%, 340px);
  margin-bottom: 10px;
}

/* ── Cenas ────────────────────────────────────────────── */
.pv-scene { display: none; min-height: 100%; }
.pv-scene.active { display: block; animation: sceneIn 0.55s cubic-bezier(0.2, 0.8, 0.2, 1); }
.pv-envelope-scene.active { display: flex; }

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

/* ── Elementos partilhados do convite ─────────────────── */
.pv-eyebrow {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.78rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--prim-soft);
}
.pv-names {
  font-family: var(--fonte-nomes), cursive;
  font-size: 3rem;
  font-weight: 400;
  color: var(--prim-dark);
  line-height: 1.15;
  margin: 8px 0 2px;
  overflow-wrap: break-word;
}
.pv-divider { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 8px auto; }
.pv-divider span {
  height: 1px; width: 46px;
  background: linear-gradient(to right, transparent, var(--accent));
}
.pv-divider span:last-of-type { background: linear-gradient(to left, transparent, var(--accent)); }
.pv-divider i { color: var(--accent); font-style: normal; font-size: 0.95rem; }

/* ── Cena: envelope ───────────────────────────────────── */
.pv-envelope-scene {
  position: relative;
  min-height: 100%;
  padding: 44px 20px 40px;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  background:
    radial-gradient(circle at 20% 15%, color-mix(in srgb, var(--accent) 14%, transparent), transparent 45%),
    radial-gradient(circle at 85% 80%, color-mix(in srgb, var(--prim) 12%, transparent), transparent 50%),
    var(--fundo);
  text-align: center;
}

.pv-hint {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.8rem;
  letter-spacing: 0.05em;
  color: var(--prim-soft);
  margin-top: 10px;
}

.pv-envelope {
  position: relative;
  width: min(78%, 280px);
  aspect-ratio: 3 / 2;
  border: none;
  background: none;
  cursor: pointer;
  margin-bottom: 26px;
  animation: pvFloat 3.8s ease-in-out infinite;
  filter: drop-shadow(0 22px 34px color-mix(in srgb, var(--prim-dark) 30%, transparent));
}
@keyframes pvFloat {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-10px); }
}

.pv-env-front {
  position: absolute;
  inset: 0;
  border-radius: 14px;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--prim) 38%, #d9d9cd),
    color-mix(in srgb, var(--prim) 50%, #c9c9bb));
  overflow: hidden;
}
.pv-env-front::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 58%;
  background: rgba(0, 0, 0, 0.05);
  clip-path: polygon(0 100%, 50% 2%, 100% 100%);
}
.pv-flap {
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 58%;
  border-radius: 14px 14px 0 0;
  background: linear-gradient(180deg,
    color-mix(in srgb, var(--prim) 46%, #d3d3c5),
    color-mix(in srgb, var(--prim) 55%, #c2c2b2));
  clip-path: polygon(0 0, 50% 84%, 100% 0);
  transform-origin: top;
  transition: transform 1.1s cubic-bezier(0.2, 0.8, 0.2, 1);
  z-index: 5;
}
.pv-envelope.open .pv-flap { transform: rotateX(180deg); }

.pv-seal {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  width: 64px; height: 64px;
  border-radius: 50%;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  background: radial-gradient(circle at 34% 28%,
    color-mix(in srgb, var(--accent) 60%, white),
    var(--accent) 55%,
    color-mix(in srgb, var(--accent) 70%, black));
  box-shadow:
    0 7px 22px rgba(0, 0, 0, 0.28),
    inset 0 2px 0 rgba(255, 255, 255, 0.35),
    inset 0 -3px 8px rgba(0, 0, 0, 0.22);
  outline: 2.5px solid color-mix(in srgb, var(--accent) 55%, transparent);
  outline-offset: 4px;
  transition: transform 0.25s ease;
}
.pv-envelope:hover .pv-seal { transform: translate(-50%, -50%) scale(1.07); }
.pv-seal .mono-txt {
  font-family: 'Playfair Display', serif;
  font-size: 0.95rem;
  font-weight: 600;
  color: #fff;
  text-shadow: 0 1px 4px rgba(0,0,0,0.35);
}

/* ── Cena: convite ────────────────────────────────────── */
.pv-invite-scene {
  padding: 30px 18px 34px;
  background:
    linear-gradient(color-mix(in srgb, var(--fundo) 94%, transparent), var(--fundo-deep)),
    var(--fundo);
  text-align: center;
}

.pv-card-header { margin-bottom: 16px; }

.pv-msg {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-style: italic;
  line-height: 1.55;
  color: color-mix(in srgb, var(--prim-dark) 80%, var(--fundo));
  max-width: 300px;
  margin: 10px auto 0;
}
.pv-data {
  font-family: 'Playfair Display', serif;
  font-size: 1.02rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  color: var(--prim-dark);
  margin-top: 12px;
}

.pv-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  border-radius: 18px;
  overflow: hidden;
  background:
    linear-gradient(135deg,
      color-mix(in srgb, var(--prim) 16%, var(--fundo)),
      color-mix(in srgb, var(--accent) 18%, var(--fundo)));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 18px 44px color-mix(in srgb, var(--prim-dark) 22%, transparent);
  background-size: cover;
  background-position: center;
}
.pv-photo-placeholder {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.92rem;
  font-style: italic;
  line-height: 1.6;
  color: color-mix(in srgb, var(--prim-dark) 55%, var(--fundo));
}
.pv-photo.has-img .pv-photo-placeholder { display: none; }

.pv-panel {
  margin-top: 14px;
  background: color-mix(in srgb, white 82%, var(--fundo));
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 18px;
  padding: 16px 15px 17px;
  box-shadow: 0 8px 26px color-mix(in srgb, var(--prim-dark) 10%, transparent);
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.pv-panel-label {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  color: var(--prim-soft);
}
.pv-btn-row { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pv-loc-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 11px 8px;
  background: linear-gradient(135deg, var(--prim), var(--prim-dark));
  color: #fff;
  border-radius: 999px;
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.95rem;
  font-weight: 500;
  box-shadow: 0 6px 16px color-mix(in srgb, var(--prim-dark) 30%, transparent);
}
.pv-loc-btn b { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 90px; }

.pv-rsvp-date {
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.84rem;
  font-style: italic;
  color: var(--prim-soft);
  margin-top: -4px;
}
.pv-fake-input {
  display: block;
  padding: 12px 14px;
  border: 1.5px solid color-mix(in srgb, var(--prim) 22%, var(--fundo));
  border-radius: 12px;
  background: color-mix(in srgb, white 70%, var(--fundo));
  font-family: 'Cormorant Garamond', serif;
  font-size: 0.92rem;
  color: var(--prim-soft);
  text-align: left;
}
.pv-submit {
  display: block;
  padding: 13px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--prim), var(--prim-dark));
  color: #fff;
  font-family: 'Cormorant Garamond', serif;
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 20px color-mix(in srgb, var(--prim-dark) 28%, transparent);
}

.preview-note {
  font-size: 0.76rem;
  color: var(--ui-soft);
  text-align: center;
  max-width: 340px;
  line-height: 1.5;
}

/* ══════════════════════════════════════════════════════
   Modal de publicação
   ══════════════════════════════════════════════════════ */
.modal-fundo {
  position: fixed;
  inset: 0;
  z-index: 100;
  background: rgba(44, 42, 38, 0.45);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.modal-fundo[hidden] { display: none; }

.modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  background: #fff;
  border-radius: 20px;
  padding: 28px 26px 24px;
  box-shadow: 0 30px 80px rgba(28, 28, 30, 0.35);
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: modalIn 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(22px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.modal h2 { font-size: 1.2rem; color: var(--ui-accent2); }
.modal-sub { font-size: 0.84rem; color: var(--ui-soft); line-height: 1.5; margin-top: -6px; }

.modal-fechar {
  position: absolute;
  top: 14px; right: 14px;
  width: 32px; height: 32px;
  border: none;
  border-radius: 50%;
  background: #f0efe8;
  color: var(--ui-soft);
  font-size: 0.9rem;
  cursor: pointer;
}
.modal-fechar:hover { background: var(--ui-border); color: var(--ui-text); }

.pacotes { display: flex; flex-direction: column; gap: 9px; }
.pacote {
  position: relative;
  display: block;
  border: 1.5px solid var(--ui-border);
  border-radius: 14px;
  padding: 13px 15px;
  cursor: pointer;
  text-decoration: none;
  color: var(--ui-text);
  transition: border-color 0.15s, background 0.15s;
}
.pacote:hover { border-color: var(--ui-accent); }
.pacote input { position: absolute; opacity: 0; pointer-events: none; }
.pacote:has(input:checked) {
  border-color: var(--ui-accent);
  background: color-mix(in srgb, var(--ui-accent) 7%, white);
  box-shadow: 0 0 0 3px rgba(85, 104, 74, 0.12);
}
.p-cima { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.p-cima strong { font-size: 0.95rem; }
.p-preco { font-size: 1.05rem; font-weight: 700; color: var(--ui-accent2); font-style: normal; }
.pacote small { display: block; margin-top: 4px; font-size: 0.76rem; color: var(--ui-soft); line-height: 1.45; }
.p-tag {
  position: absolute;
  top: -9px; right: 12px;
  background: linear-gradient(135deg, #ddb070, #a57338);
  color: #fff;
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 3px 10px;
  border-radius: 999px;
}
.pacote.premium { border-style: dashed; }
.pacote.premium .p-preco { font-size: 0.85rem; color: var(--ui-soft); }

.modal-erro {
  display: none;
  color: #8a3232;
  background: #faeaea;
  border-radius: 10px;
  padding: 9px 12px;
  font-size: 0.8rem;
  text-align: center;
}

/* ── Responsivo ───────────────────────────────────────── */
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; }
  .preview-area { position: static; order: -1; }
  .phone-screen { height: 62vh; }
  .topbar { padding: 10px 14px; }
  .brand small { display: none; }
}

/* ── Alterações: marca clicável, Premium, selos e ícones ── */
a.brand { text-decoration: none; color: inherit; }
a.brand:hover strong { color: var(--ui-accent); }

.tab-badge {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #c8924a, #a86f2d);
  color: #fff;
  border-radius: 999px;
  padding: 2px 7px;
  vertical-align: middle;
}

.premium-banner {
  background: linear-gradient(135deg, #fdf7ec, #f6ecd8);
  border: 1px solid #e5d3ae;
  border-radius: 14px;
  padding: 12px 14px;
  font-size: 0.85rem;
  line-height: 1.5;
  color: #7a5c1e;
  margin-bottom: 14px;
}

.seal-opt.selo-upload { position: relative; }
.seal-opt .mini-badge {
  position: absolute;
  top: -6px; right: -6px;
  font-size: 0.7rem;
  font-style: normal;
}

#pvSealIcon .selo-img {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.loc-icons { margin-top: 4px; }
.pv-loc-ic { font-style: normal; }
