@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Playfair+Display:ital,wght@0,500;0,700;1,500&display=swap');

/* =====================================================================
   Tema "vidro" — superfícies translúcidas (glassmorphism) sobre um fundo
   de manchas de cor que se movem em paralaxe (ver js/common.js → fx).
   ===================================================================== */
:root {
  --bg: #efe8de;
  --primary: #b08d57;
  --primary-2: #d8bb8a;                 /* tom claro para gradientes */
  --primary-ink: #ffffff;
  --primary-soft: rgba(176, 141, 87, .16);
  --text: #2a2420;
  --muted: #776d62;

  /* vidro */
  --glass: rgba(255, 255, 255, .52);
  --glass-strong: rgba(255, 255, 255, .74);
  --glass-soft: rgba(255, 255, 255, .32);
  --glass-edge: rgba(255, 255, 255, .7);   /* borda clara (reflexo) */
  --line: rgba(90, 70, 40, .12);           /* divisórias */
  --blur: blur(18px) saturate(160%);
  --surface: var(--glass);
  --surface-2: var(--glass-soft);
  --border: var(--line);

  --ok: #2f8a5b;     --ok-soft: rgba(47, 138, 91, .14);
  --warn: #b7791f;   --warn-soft: rgba(183, 121, 31, .15);
  --danger: #c0392b; --danger-soft: rgba(192, 57, 43, .12);

  --radius: 18px;
  --shadow: 0 10px 40px rgba(70, 50, 20, .08), 0 1px 0 rgba(255, 255, 255, .7) inset;
  --shadow-hover: 0 18px 50px rgba(70, 50, 20, .14), 0 1px 0 rgba(255, 255, 255, .8) inset;
  --serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
  --sans: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  /* cores das manchas do fundo */
  --fx1: color-mix(in srgb, var(--primary) 70%, transparent);
  --fx2: rgba(232, 168, 160, .75);
  --fx3: rgba(160, 190, 170, .7);
  --fx4: rgba(190, 175, 225, .65);
}

* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  color: var(--text); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; min-height: 100vh;
  background: linear-gradient(135deg, #f6f1ea 0%, #ece2d4 45%, #f1e9e3 100%) fixed var(--bg);
}
a { color: var(--primary); }
h1, h2, h3 { font-family: var(--serif); font-weight: 600; margin: 0 0 .5em; line-height: 1.2; }
h1 { font-size: 1.9rem; letter-spacing: -.01em; } h2 { font-size: 1.35rem; } h3 { font-size: 1.1rem; }
img { max-width: 100%; }
::selection { background: color-mix(in srgb, var(--primary) 35%, transparent); }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.hidden { display: none !important; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.grow { flex: 1; }
.stack > * + * { margin-top: 12px; }
.center { text-align: center; }

/* ---------- Fundo com paralaxe ---------- */
.fx { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.fx i { position: absolute; display: block; border-radius: 50%; filter: blur(70px); will-change: transform; animation: flutuar 18s ease-in-out infinite alternate; }
.fx i:nth-child(1) { width: 46vmax; height: 46vmax; left: -12vmax; top: -14vmax; background: var(--fx1); }
.fx i:nth-child(2) { width: 38vmax; height: 38vmax; right: -10vmax; top: 18vh; background: var(--fx2); animation-duration: 22s; animation-delay: -6s; }
.fx i:nth-child(3) { width: 34vmax; height: 34vmax; left: 20vw; top: 70vh; background: var(--fx3); animation-duration: 26s; animation-delay: -12s; }
.fx i:nth-child(4) { width: 26vmax; height: 26vmax; right: 18vw; top: 115vh; background: var(--fx4); animation-duration: 20s; animation-delay: -3s; }
.fx::after { /* granulado sutil para dar textura ao vidro */
  content: ''; position: absolute; inset: 0; opacity: .05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes flutuar { from { translate: 0 0; scale: 1; } to { translate: 4vmax 3vmax; scale: 1.12; } }

/* Entrada suave dos blocos ao rolar */
.reveal { opacity: 0; }
.reveal.in { opacity: 1; animation: revelar .75s cubic-bezier(.2,.7,.2,1) backwards; }
@keyframes revelar { from { opacity: 0; transform: translateY(22px) scale(.985); } }

/* ---------- Superfície de vidro (base) ---------- */
.card, .stat, .table-wrap, .event-card, .mesa, .msg, .linkbox, .save-bar, .tabs, .toolbar-glass {
  background: var(--glass);
  -webkit-backdrop-filter: var(--blur); backdrop-filter: var(--blur);
  border: 1px solid var(--glass-edge);
  box-shadow: var(--shadow);
}

/* ---------- Topbar ---------- */
.topbar { position: sticky; top: 0; z-index: 20; color: #f5efe6;
  background: rgba(30, 25, 20, .62); -webkit-backdrop-filter: blur(20px) saturate(170%); backdrop-filter: blur(20px) saturate(170%);
  border-bottom: 1px solid rgba(255, 255, 255, .08); box-shadow: 0 8px 30px rgba(0, 0, 0, .12); }
.topbar .inner { max-width: 1200px; margin: 0 auto; padding: 10px 20px; display: flex; align-items: center; gap: 16px; }
.topbar .brand { font-family: var(--serif); font-size: 1.2rem; color: #e9d7b6; text-decoration: none; display: flex; align-items: center; gap: 8px; }
.topbar .brand b { color: #fff; font-weight: 600; }
.topbar .brand img { height: 36px; width: auto; display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,.25)); }
.topbar .brand span { color: #f5efe6; font: 500 11px var(--sans); text-transform: uppercase; letter-spacing: .18em; opacity: .65; align-self: flex-end; margin-bottom: 4px; }
.topbar .spacer { flex: 1; }
.topbar .btn.ghost { color: #f5efe6; border-color: rgba(255,255,255,.18); background: rgba(255,255,255,.06); }
.topbar .btn.ghost:hover { background: rgba(255,255,255,.14); }
.topbar select { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.topbar select option { color: #222; }

.container { max-width: 1200px; margin: 0 auto; padding: 28px 20px 70px; }
.narrow { max-width: 520px; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 9px 16px; border-radius: 12px; border: 1px solid var(--glass-edge);
  background: var(--glass-strong); color: var(--text); font: 500 14px var(--sans);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(70, 50, 20, .06), 0 1px 0 rgba(255,255,255,.8) inset;
  cursor: pointer; text-decoration: none; white-space: nowrap;
  transition: background .2s, border-color .2s, box-shadow .2s, transform .15s;
}
.btn:hover { background: rgba(255,255,255,.9); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(70, 50, 20, .1), 0 1px 0 #fff inset; }
.btn:active { transform: translateY(0); }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }
.btn.primary {
  background: linear-gradient(135deg, var(--primary-2), var(--primary) 60%); border-color: rgba(255,255,255,.35); color: var(--primary-ink);
  box-shadow: 0 6px 20px color-mix(in srgb, var(--primary) 40%, transparent), 0 1px 0 rgba(255,255,255,.45) inset;
  text-shadow: 0 1px 1px rgba(0,0,0,.12);
}
.btn.primary:hover { filter: brightness(1.04); box-shadow: 0 10px 28px color-mix(in srgb, var(--primary) 50%, transparent), 0 1px 0 rgba(255,255,255,.5) inset; }
.btn.danger { color: var(--danger); border-color: rgba(192, 57, 43, .2); }
.btn.danger:hover { background: rgba(255, 235, 232, .9); }
.btn.ok { background: linear-gradient(135deg, #48b07c, var(--ok)); border-color: rgba(255,255,255,.3); color: #fff; box-shadow: 0 6px 18px rgba(47, 138, 91, .3); }
.btn.ghost { background: transparent; box-shadow: none; }
.btn.sm { padding: 5px 11px; font-size: 13px; border-radius: 10px; }
.btn.lg { padding: 14px 22px; font-size: 16px; border-radius: 14px; }
.btn.block { width: 100%; }
.btn.icon { padding: 6px 9px; }

/* ---------- Formulários ---------- */
label { display: block; font-size: 13px; font-weight: 600; color: var(--muted); margin-bottom: 5px; }
input, select, textarea {
  width: 100%; padding: 10px 13px; border: 1px solid var(--glass-edge); border-radius: 12px;
  background: rgba(255,255,255,.6); color: var(--text); font: 15px var(--sans); outline: none;
  box-shadow: 0 1px 2px rgba(70, 50, 20, .05) inset; transition: border-color .2s, box-shadow .2s, background .2s;
}
input:focus, select:focus, textarea:focus { background: rgba(255,255,255,.85); border-color: color-mix(in srgb, var(--primary) 60%, white); box-shadow: 0 0 0 4px var(--primary-soft); }
textarea { min-height: 90px; resize: vertical; }
input[type=checkbox] { width: auto; accent-color: var(--primary); }
input[type=color] { padding: 3px; height: 42px; }
.field { margin-bottom: 14px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 14px; }
@media (max-width: 640px) { .grid-2, .grid-3 { grid-template-columns: 1fr; } }
.check { display: flex; gap: 8px; align-items: center; font-weight: 500; color: var(--text); font-size: 14px; }

/* ---------- Cards ---------- */
.card { border-radius: var(--radius); padding: 22px; position: relative; }
.card + .card { margin-top: 16px; }
.card h2, .card h3 { margin-top: 0; }

.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 14px; margin-bottom: 22px; }
.stat { border-radius: var(--radius); padding: 16px 18px; position: relative; overflow: hidden; transition: transform .25s, box-shadow .25s; }
.stat::before { /* brilho no canto */ content: ''; position: absolute; width: 120px; height: 120px; right: -40px; top: -50px; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,.75), transparent 70%); pointer-events: none; }
.stat:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.stat .n { font: 700 2rem/1.1 var(--sans); letter-spacing: -.02em; }
.stat .l { color: var(--muted); font-size: 13px; margin-top: 4px; }
.stat .sub { color: var(--muted); font-size: 12px; }
.stat.ok .n { color: var(--ok); } .stat.warn .n { color: var(--warn); } .stat.danger .n { color: var(--danger); } .stat.gold .n { color: var(--primary); }

.progress { height: 7px; background: rgba(90, 70, 40, .1); border-radius: 99px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--primary-2), var(--primary)); border-radius: 99px; }
.progress.over > i { background: linear-gradient(90deg, #e57b6e, var(--danger)); }

/* ---------- Badges ---------- */
.badge { display: inline-flex; align-items: center; gap: 4px; padding: 2px 10px; border-radius: 99px; font-size: 12px; font-weight: 600; background: rgba(0,0,0,.06); color: #555; white-space: nowrap; border: 1px solid rgba(255,255,255,.5); }
.badge.confirmado, .badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.pendente, .badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.recusado, .badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.gold { background: var(--primary-soft); color: color-mix(in srgb, var(--primary) 80%, black); }

/* ---------- Abas (pílula de vidro) ---------- */
.tabs { display: flex; gap: 4px; padding: 5px; margin-bottom: 22px; border-radius: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { border: 0; background: none; padding: 9px 15px; font: 500 14px var(--sans); color: var(--muted); cursor: pointer; border-radius: 12px; white-space: nowrap; transition: background .2s, color .2s, box-shadow .2s; }
.tabs button:hover { color: var(--text); background: rgba(255,255,255,.4); }
.tabs button.active { color: var(--text); background: rgba(255,255,255,.92); box-shadow: 0 4px 14px rgba(70, 50, 20, .1); }
.tabs .count { background: rgba(90, 70, 40, .1); color: var(--muted); border-radius: 99px; padding: 0 7px; font-size: 12px; margin-left: 4px; }
.tabs button.active .count { background: var(--primary-soft); color: var(--primary); }

/* ---------- Tabela ---------- */
.table-wrap { overflow-x: auto; border-radius: var(--radius); }
table { width: 100%; border-collapse: collapse; }
th, td { padding: 11px 14px; text-align: left; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: rgba(255,255,255,.35); font-weight: 600; }
tbody tr { transition: background .15s; }
tbody tr:hover { background: rgba(255,255,255,.45); }
tr:last-child td { border-bottom: 0; }
td select { padding: 5px 8px; font-size: 13px; width: auto; min-width: 90px; }
td .actions { display: flex; gap: 4px; justify-content: flex-end; }

/* ---------- Toolbar ---------- */
.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 14px; }
.toolbar input[type=search] { max-width: 280px; }
.toolbar select { width: auto; }

/* ---------- Cards de evento ---------- */
.event-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.event-card { display: block; text-decoration: none; color: inherit; border-radius: var(--radius); overflow: hidden; position: relative; transition: transform .3s cubic-bezier(.2,.7,.2,1), box-shadow .3s; }
.event-card::after { /* reflexo que passa no hover */ content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.55) 45%, transparent 60%); transform: translateX(-100%); transition: transform .8s; pointer-events: none; }
.event-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.event-card:hover::after { transform: translateX(100%); }
.event-card .band { height: 70px; position: relative; opacity: .85; }
.event-card .band::after { content: ''; position: absolute; inset: 0; background: linear-gradient(transparent, rgba(255,255,255,.55)); }
.event-card .body { padding: 0 20px 18px; margin-top: -26px; position: relative; }
.event-card h3 { font-size: 1.25rem; margin-bottom: 4px; }
.event-card .meta { color: var(--muted); font-size: 13px; }
.event-card .nums { display: flex; gap: 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 12px; color: var(--muted); }
.event-card .nums b { color: var(--text); font-size: 16px; display: block; }

/* ---------- Mesas ---------- */
.mesa-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.mesa { border-radius: var(--radius); padding: 16px; display: flex; flex-direction: column; gap: 10px; transition: transform .25s, box-shadow .25s; }
.mesa:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.mesa .num { font: 700 1.6rem var(--serif); color: var(--primary); line-height: 1; }
.mesa ul { list-style: none; margin: 0; padding: 0; font-size: 13px; max-height: 180px; overflow: auto; }
.mesa li { display: flex; justify-content: space-between; align-items: center; gap: 6px; padding: 5px 0; border-bottom: 1px dashed var(--line); }
.mesa li:last-child { border-bottom: 0; }
.mesa li .x { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 15px; }
.mesa li .x:hover { color: var(--danger); }

/* ---------- Fotos ---------- */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.photo { position: relative; border-radius: 16px; overflow: hidden; background: rgba(255,255,255,.4); aspect-ratio: 1; box-shadow: 0 8px 24px rgba(70, 50, 20, .1); border: 1px solid var(--glass-edge); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; cursor: zoom-in; transition: transform .5s cubic-bezier(.2,.7,.2,1); }
.photo:hover img { transform: scale(1.06); }
.photo.oculta img { opacity: .35; filter: grayscale(1); }
.photo .info { position: absolute; left: 8px; right: 8px; bottom: 8px; padding: 6px 10px; border-radius: 10px; color: #fff; font-size: 12px;
  background: rgba(20, 16, 12, .35); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,.18); }
.photo .tools { position: absolute; top: 8px; right: 8px; display: flex; gap: 4px; }
.photo .tools .btn { background: rgba(255,255,255,.75); }
.photo .flag { position: absolute; top: 8px; left: 8px; }

.lightbox { position: fixed; inset: 0; background: rgba(15, 12, 9, .7); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 20px; cursor: zoom-out; animation: aparecer .25s ease; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 12px; box-shadow: 0 30px 80px rgba(0,0,0,.5); }

/* ---------- Mensagens ---------- */
.msg { border-radius: 16px; padding: 14px 16px; position: relative; overflow: hidden; }
.msg::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(var(--primary-2), var(--primary)); }
.msg + .msg { margin-top: 10px; }
.msg .txt { white-space: pre-wrap; font-size: 15px; }
.msg .by { font-size: 12px; color: var(--muted); margin-top: 6px; }

/* ---------- Caixa de link ---------- */
.linkbox { display: flex; gap: 8px; align-items: center; border-radius: 12px; padding: 7px 8px 7px 12px; box-shadow: none; background: rgba(255,255,255,.4); }
.linkbox code { flex: 1; min-width: 0; font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* ---------- Modal ---------- */
dialog { border: 1px solid var(--glass-edge); border-radius: 22px; padding: 0; width: min(560px, calc(100vw - 24px)); color: var(--text);
  background: rgba(255, 252, 248, .82); -webkit-backdrop-filter: blur(24px) saturate(170%); backdrop-filter: blur(24px) saturate(170%);
  box-shadow: 0 30px 80px rgba(40, 25, 10, .25), 0 1px 0 #fff inset; }
dialog[open] { animation: subir .3s cubic-bezier(.2,.7,.2,1); }
dialog::backdrop { background: rgba(30, 22, 14, .35); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog .mhead { padding: 20px 22px 0; display: flex; justify-content: space-between; align-items: center; }
dialog .mhead h2 { margin: 0; }
dialog .mbody { padding: 16px 22px; max-height: 70vh; overflow: auto; }
dialog .mfoot { padding: 12px 22px 20px; display: flex; gap: 8px; justify-content: flex-end; }
dialog .close { border: 0; background: rgba(0,0,0,.05); width: 34px; height: 34px; border-radius: 50%; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted); }
dialog .close:hover { background: rgba(0,0,0,.1); }
@keyframes subir { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes aparecer { from { opacity: 0; } }

/* ---------- Toast ---------- */
#toasts { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: rgba(30, 25, 20, .78); -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); color: #fff; padding: 11px 20px; border-radius: 14px; font-size: 14px;
  border: 1px solid rgba(255,255,255,.12); box-shadow: 0 10px 30px rgba(0,0,0,.25); animation: toastIn .3s cubic-bezier(.2,.7,.2,1); max-width: 90vw; }
.toast.erro { background: rgba(192, 57, 43, .88); }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px) scale(.96); } }

/* ---------- Login ---------- */
.auth { min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth .card { width: min(410px, 100%); padding: 36px 30px; border-radius: 26px; background: rgba(255,255,255,.48); }
.auth .logo { font-family: var(--serif); font-size: 1.6rem; text-align: center; margin-bottom: 4px; }
.auth .logo-img { display: block; width: min(240px, 80%); margin: 0 auto 12px; filter: drop-shadow(0 4px 14px rgba(120, 90, 40, .15)); }
.auth .sub { text-align: center; color: var(--muted); margin-bottom: 24px; }

.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .big { font-size: 40px; margin-bottom: 8px; }

/* ---------- Editor de convite ---------- */
.conv-editor { display: grid; grid-template-columns: minmax(0, 1fr) 400px; gap: 20px; align-items: start; }
.conv-form .card + .card { margin-top: 14px; }
.conv-preview { position: sticky; top: 76px; }
.phone { width: 100%; max-width: 390px; height: min(760px, calc(100vh - 150px)); margin: 0 auto 8px; border: 10px solid rgba(30, 25, 20, .88); border-radius: 38px; overflow: hidden; background: #fff;
  box-shadow: 0 30px 70px rgba(40, 25, 10, .25), 0 0 0 1px rgba(255,255,255,.3); }
.phone iframe { width: 100%; height: 100%; border: 0; display: block; }
@media (max-width: 1000px) { .conv-editor { grid-template-columns: 1fr; } .conv-preview { position: static; } }

.modelos { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
@media (max-width: 640px) { .modelos { grid-template-columns: repeat(3, 1fr); } }
.modelo { position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px; cursor: pointer; color: var(--text); font-weight: 500; margin: 0; }
.modelo input { position: absolute; opacity: 0; pointer-events: none; }
.modelo .mini { width: 100%; aspect-ratio: .72; border-radius: 12px; border: 2px solid rgba(255,255,255,.7); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; transition: border-color .2s, box-shadow .2s, transform .2s; overflow: hidden; position: relative; }
.modelo:hover .mini { transform: translateY(-2px); }
.modelo .mini b { font: 600 1.4rem var(--serif); position: relative; }
.modelo .mini i { position: relative; font-style: normal; }
.modelo input:checked + .mini { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-soft), 0 8px 20px rgba(70, 50, 20, .12); }
.m-classico { background: #fffdf9; color: #b08d57; outline: 1px solid #e8dcc6; outline-offset: -7px; }
.m-moderno { background: linear-gradient(#c9b79c 0 38%, #fff 38%); color: #222; }
.m-floral { background: radial-gradient(circle at 20% 15%, #f7d6dc 0 12%, transparent 13%), radial-gradient(circle at 85% 90%, #f7d6dc 0 14%, transparent 15%), #fdf3f4; color: #c0687b; border-top-left-radius: 50% 30% !important; border-top-right-radius: 50% 30% !important; }
.m-noturno { background: #16130f; color: #d9b878; }
.m-vidro { background: radial-gradient(circle at 25% 20%, #e8b9a6 0 28%, transparent 29%), radial-gradient(circle at 80% 75%, #b7c9e8 0 30%, transparent 31%), linear-gradient(135deg, #d9c3a1, #c6b2d6); color: #fff; }
.m-vidro::before { content: ''; position: absolute; inset: 14% 12%; border-radius: 10px; background: rgba(255,255,255,.3); backdrop-filter: blur(6px); border: 1px solid rgba(255,255,255,.6); }

.capa-box { margin-bottom: 10px; }
.capa-box img { max-height: 200px; border-radius: 14px; display: block; }
.capa-box .vazia { border: 2px dashed rgba(90, 70, 40, .2); border-radius: 14px; padding: 26px; text-align: center; color: var(--muted); background: rgba(255,255,255,.25); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; }
@media (max-width: 560px) { .checks { grid-template-columns: 1fr; } }
.save-bar { position: sticky; bottom: 12px; z-index: 4; display: flex; gap: 8px; align-items: center; margin-top: 14px; padding: 12px 16px; border-radius: var(--radius); background: rgba(255,255,255,.7); }
.save-bar.sujo { border-color: color-mix(in srgb, var(--primary) 60%, white); box-shadow: 0 0 0 4px var(--primary-soft), var(--shadow); }

/* ---------- Marca / link do convite ---------- */
.assinatura-marca { display: block; text-align: center; margin: 28px auto 0; color: var(--muted); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; text-decoration: none; }
.assinatura-marca img { display: block; width: 130px; margin: 6px auto 0; opacity: .9; }
.link-convite { display: flex; gap: 18px; align-items: center; margin-bottom: 16px; overflow: hidden;
  background: linear-gradient(135deg, rgba(255,255,255,.65), color-mix(in srgb, var(--primary) 14%, rgba(255,255,255,.4))); }
.link-convite::before { content: ''; position: absolute; width: 260px; height: 260px; right: -80px; top: -120px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 35%, transparent), transparent 70%); pointer-events: none; }
.link-convite .lc-txt { flex: 1; min-width: 0; position: relative; }
.link-convite .lc-qr { width: 132px; height: 132px; flex: none; border-radius: 14px; border: 6px solid rgba(255,255,255,.85); box-shadow: 0 8px 24px rgba(70, 50, 20, .12); position: relative; background: #fff; }
@media (max-width: 640px) { .link-convite { flex-direction: column; align-items: stretch; } .link-convite .lc-qr { align-self: center; } }

/* ---------- Acessibilidade e impressão ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}
@media print {
  .no-print, .fx { display: none !important; }
  body { background: #fff; }
  * { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; box-shadow: none !important; }
}
