/* ====== Weddinggram — rosa da Emily + verde do noivo, estilo aconchegante ====== */
:root {
  --rosa: #e79ab3;
  --rosa-600: #d16d92;
  --rosa-700: #b4537a;
  --rosa-100: #fce8ef;
  --rosa-50: #fff4f7;
  --verde: #8db89a;
  --verde-600: #5e9271;
  --verde-700: #44725a;
  --verde-100: #e4f1e7;
  --verde-50: #f3f9f4;
  --creme: #fff9f3;
  --papel: #fffdfa;
  --tinta: #3e3135;
  --tinta-2: #7b6a70;
  --tinta-3: #a8989d;
  --linha: #f0e4e4;
  --grad: linear-gradient(135deg, #e79ab3 0%, #f3c6c4 48%, #8db89a 100%);
  --grad-forte: linear-gradient(135deg, #d16d92 0%, #e79ab3 40%, #5e9271 100%);
  --sombra: 0 8px 28px rgba(180, 83, 122, 0.1), 0 1px 3px rgba(62, 49, 53, 0.06);
  --sombra-verde: 0 8px 28px rgba(68, 114, 90, 0.14);
  --r: 22px;
  --serif: 'Cormorant Garamond', Georgia, serif;
  --script: 'Great Vibes', cursive;
  --sans: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-t: env(safe-area-inset-top, 0px);
  color-scheme: light;
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: var(--sans);
  color: var(--tinta);
  background: var(--creme);
  background-image:
    radial-gradient(900px 500px at -10% -10%, rgba(231, 154, 179, 0.22), transparent 60%),
    radial-gradient(800px 500px at 110% 110%, rgba(141, 184, 154, 0.22), transparent 60%);
  background-attachment: fixed;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  font-size: 15px;
  line-height: 1.45;
}
body.no-scroll { overflow: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img, video { display: block; max-width: 100%; }
input, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }

#app { max-width: 520px; margin: 0 auto; min-height: 100dvh; position: relative; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 800; font-size: 16px; letter-spacing: 0.2px;
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s;
}
.btn:active { transform: scale(0.97); }
.btn:disabled { opacity: 0.55; pointer-events: none; }
.btn-primary { background: var(--grad-forte); color: #fff; box-shadow: 0 8px 22px rgba(209, 109, 146, 0.35); }
.btn-soft { background: var(--papel); color: var(--rosa-700); box-shadow: var(--sombra); }
.btn-green { background: var(--verde-600); color: #fff; box-shadow: var(--sombra-verde); }
.btn-ghost-light { background: rgba(255, 255, 255, 0.18); color: #fff; backdrop-filter: blur(8px); }
.btn-block { width: 100%; }
.btn-sm { min-height: 40px; padding: 0 18px; font-size: 14px; }
.link { color: var(--rosa-700); font-weight: 700; }

/* ---------- Ornamentos ---------- */
.flora { position: absolute; pointer-events: none; opacity: 0.95; }
.script { font-family: var(--script); font-weight: 400; }
.grad-text {
  background: var(--grad-forte); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.divider { display: flex; align-items: center; gap: 12px; color: var(--rosa); justify-content: center; margin: 14px 0; }
.divider::before, .divider::after { content: ''; height: 1px; width: 60px; background: linear-gradient(90deg, transparent, var(--rosa), transparent); }
.cor-noiva { color: var(--rosa-600); }
.cor-noivo { color: var(--verde-600); }

/* ---------- Página inicial ---------- */
.landing { padding: calc(28px + var(--safe-t)) 22px calc(40px + var(--safe-b)); position: relative; overflow: hidden; min-height: 100dvh; }
.landing .flora.tl { top: -10px; left: -30px; width: 190px; transform: rotate(-8deg); }
.landing .flora.tr { top: 40px; right: -40px; width: 170px; transform: scaleX(-1) rotate(-14deg); }
.hero { text-align: center; position: relative; padding-top: 70px; }
.hero .kicker { text-transform: uppercase; letter-spacing: 4px; font-size: 12px; font-weight: 800; color: var(--verde-700); }
.hero .logo { font-family: var(--script); font-size: clamp(46px, 14.5vw, 64px); padding: 0 6px; line-height: 1.05; margin: 6px 0 2px; }
.hero .couple { font-family: var(--serif); font-size: 30px; font-weight: 600; font-style: italic; }
.hero .couple .amp { font-family: var(--script); font-style: normal; color: var(--tinta-3); margin: 0 6px; font-size: 34px; }
.hero .date { margin-top: 4px; color: var(--tinta-2); font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; font-size: 12px; }

.card {
  background: var(--papel); border-radius: var(--r); box-shadow: var(--sombra);
  padding: 22px; position: relative;
}
.letter { margin-top: 26px; text-align: center; border: 1px solid var(--rosa-100); }
.letter::before {
  content: ''; position: absolute; inset: 8px; border: 1px dashed rgba(231, 154, 179, 0.45); border-radius: 16px; pointer-events: none;
}
.letter p { font-family: var(--serif); font-size: 19px; line-height: 1.45; margin: 0 0 10px; }
.letter .sign { font-family: var(--script); font-size: 30px; color: var(--rosa-700); margin-top: 6px; }

.contest {
  margin-top: 18px; background: linear-gradient(160deg, var(--verde-50), #fff 55%, var(--rosa-50));
  border: 1px solid var(--verde-100);
}
.contest h2 { font-family: var(--serif); font-size: 26px; margin: 0 0 4px; text-align: center; line-height: 1.15; }
.contest .lead { text-align: center; color: var(--tinta-2); margin: 0 0 16px; }
.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { display: flex; gap: 12px; align-items: center; }
.steps .n {
  flex: 0 0 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff;
  background: var(--grad-forte);
}
.steps li:nth-child(2) .n { background: var(--verde-600); }
.cats-preview { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 18px; }
.cats-preview div { background: var(--papel); border-radius: 16px; padding: 12px 6px; text-align: center; font-size: 12px; font-weight: 700; box-shadow: var(--sombra); }
.cats-preview span { display: block; font-size: 26px; margin-bottom: 4px; }
.landing .cta { margin-top: 26px; display: grid; gap: 10px; }
.foot { text-align: center; color: var(--tinta-3); font-size: 12px; margin-top: 24px; }

/* ---------- Entrar ---------- */
.screen { padding: calc(24px + var(--safe-t)) 22px calc(30px + var(--safe-b)); min-height: 100dvh; position: relative; overflow: hidden; }
.back { display: inline-flex; align-items: center; gap: 6px; color: var(--tinta-2); font-weight: 700; padding: 8px 0; }
.enter { text-align: center; padding-top: 8vh; position: relative; }
.enter .ring { width: 92px; height: 92px; margin: 0 auto 10px; border-radius: 50%; background: var(--grad); display: grid; place-items: center; font-size: 40px; box-shadow: var(--sombra); }
.enter h1 { font-family: var(--serif); font-size: 34px; margin: 6px 0; line-height: 1.1; }
.enter p { color: var(--tinta-2); margin: 0 0 22px; }
.field {
  width: 100%; height: 58px; border-radius: 18px; border: 2px solid var(--linha); background: var(--papel);
  padding: 0 20px; font-size: 18px; font-weight: 700; outline: none; transition: border-color 0.2s, box-shadow 0.2s; text-align: center;
}
.field:focus { border-color: var(--rosa); box-shadow: 0 0 0 5px rgba(231, 154, 179, 0.18); }
.hint { font-size: 13px; color: var(--tinta-3); margin-top: 10px; }
.error { color: #c0392b; font-weight: 700; font-size: 14px; margin-top: 10px; min-height: 20px; }

/* ---------- Estrutura do app ---------- */
.topbar {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  padding: calc(8px + var(--safe-t)) 16px 8px; background: rgba(255, 249, 243, 0.86); backdrop-filter: blur(14px) saturate(1.4);
  -webkit-backdrop-filter: blur(14px) saturate(1.4); border-bottom: 1px solid rgba(240, 228, 228, 0.8);
}
.topbar .logo { font-family: var(--script); font-size: 34px; line-height: 1; padding-top: 4px; }
.topbar h1 { font-family: var(--serif); font-size: 24px; margin: 0; }
.topbar .right { display: flex; gap: 6px; align-items: center; }
.icon-btn { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; color: var(--tinta); }
.icon-btn:active { background: var(--rosa-50); }
.main { padding-bottom: calc(86px + var(--safe-b)); }

.nav {
  position: fixed; z-index: 30; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 520px;
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: center;
  padding: 6px 10px calc(8px + var(--safe-b)); background: rgba(255, 253, 250, 0.94);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-top: 1px solid var(--linha);
}
.nav a { display: grid; place-items: center; height: 50px; color: var(--tinta-3); position: relative; }
.nav a.on { color: var(--rosa-700); }
.nav a.on::after { content: ''; position: absolute; bottom: 3px; width: 5px; height: 5px; border-radius: 50%; background: var(--verde-600); }
.nav .plus { width: 54px; height: 42px; border-radius: 16px; background: var(--grad-forte); color: #fff; display: grid; place-items: center; box-shadow: 0 6px 16px rgba(209, 109, 146, 0.35); justify-self: center; }
.nav a.plus-wrap.on::after { display: none; }

/* ---------- "Stories" / filtros ---------- */
.stories { display: flex; gap: 14px; overflow-x: auto; padding: 14px 16px 10px; scrollbar-width: none; }
.stories::-webkit-scrollbar { display: none; }
.story { flex: 0 0 auto; display: grid; justify-items: center; gap: 6px; width: 70px; }
.story .ring { width: 66px; height: 66px; border-radius: 50%; padding: 3px; background: var(--linha); }
.story.on .ring { background: var(--grad-forte); }
.story .in { width: 100%; height: 100%; border-radius: 50%; background: var(--papel); border: 3px solid var(--papel); display: grid; place-items: center; font-size: 26px; }
.story.add .in { background: var(--rosa-50); color: var(--rosa-700); font-size: 30px; font-weight: 300; }
.story small { font-size: 11.5px; font-weight: 700; color: var(--tinta-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 70px; }
.story.on small { color: var(--tinta); }

.banner {
  margin: 4px 14px 12px; padding: 12px 14px; border-radius: 18px; display: flex; align-items: center; gap: 12px;
  background: linear-gradient(120deg, var(--rosa-100), var(--verde-100)); font-size: 13.5px; font-weight: 600;
}
.banner .big { font-size: 26px; }
.banner b { display: block; font-size: 14.5px; }

.new-pill {
  position: fixed; top: calc(70px + var(--safe-t)); left: 50%; transform: translateX(-50%); z-index: 25;
  background: var(--grad-forte); color: #fff; font-weight: 800; padding: 10px 18px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(209, 109, 146, 0.4); font-size: 14px; animation: pop 0.35s ease;
}

/* ---------- Post ---------- */
.post { background: var(--papel); margin: 0 0 14px; border-radius: 0; box-shadow: 0 1px 0 var(--linha); }
@media (min-width: 521px) { .post { border-radius: var(--r); margin: 0 10px 16px; box-shadow: var(--sombra); overflow: hidden; } }
.post-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.avatar {
  flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-weight: 800; font-size: 14px; color: #fff; position: relative;
}
.avatar.rosa { background: linear-gradient(135deg, var(--rosa-600), var(--rosa)); }
.avatar.verde { background: linear-gradient(135deg, var(--verde-700), var(--verde)); }
.avatar.lg { width: 92px; height: 92px; font-size: 32px; box-shadow: 0 0 0 4px var(--papel), 0 0 0 7px var(--rosa-100); }
.post-head .who { flex: 1; min-width: 0; line-height: 1.2; }
.post-head .name { font-weight: 800; font-size: 14.5px; }
.post-head .loc { font-size: 12.5px; font-weight: 700; color: var(--verde-700); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-head .sub { font-size: 12px; color: var(--tinta-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-media { position: relative; background: var(--rosa-50); overflow: hidden; user-select: none; -webkit-user-select: none; }
.post-media img, .post-media video { width: 100%; height: 100%; object-fit: cover; }
.post-media .sound { position: absolute; right: 12px; bottom: 12px; width: 34px; height: 34px; border-radius: 50%; background: rgba(40, 30, 33, 0.6); color: #fff; display: grid; place-items: center; }
.post-media .vtag { position: absolute; left: 12px; top: 12px; background: rgba(40, 30, 33, 0.55); color: #fff; border-radius: 999px; font-size: 12px; font-weight: 700; padding: 3px 10px; }
.burst { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(0); color: #fff; filter: drop-shadow(0 6px 18px rgba(180, 83, 122, 0.6)); pointer-events: none; }
.burst.go { animation: burst 0.9s ease forwards; }
@keyframes burst { 0% { transform: translate(-50%, -50%) scale(0); opacity: 0; } 15% { transform: translate(-50%, -50%) scale(1.25); opacity: 1; } 30% { transform: translate(-50%, -50%) scale(0.95); } 70% { opacity: 1; transform: translate(-50%, -50%) scale(1); } 100% { opacity: 0; transform: translate(-50%, -60%) scale(1); } }

.text-card {
  min-height: 300px; display: grid; place-items: center; padding: 38px 30px; text-align: center; position: relative;
  background: radial-gradient(circle at 15% 20%, rgba(255, 255, 255, 0.7), transparent 40%), linear-gradient(150deg, var(--rosa-100), #fdf3ec 50%, var(--verde-100));
}
.text-card .q { font-family: var(--serif); font-size: 23px; line-height: 1.4; font-style: italic; white-space: pre-wrap; word-break: break-word; }
.text-card .q::before { content: '“'; display: block; font-family: var(--script); font-size: 64px; line-height: 0.6; color: var(--rosa); font-style: normal; margin-bottom: 6px; }
.text-card .env { position: absolute; top: 14px; right: 16px; font-size: 22px; }
.text-card .from { margin-top: 12px; font-family: var(--script); font-size: 28px; color: var(--verde-700); font-style: normal; }

.post-actions { display: flex; align-items: center; gap: 4px; padding: 6px 8px 0; }
.post-actions .icon-btn { width: 44px; height: 44px; }
.post-actions .spacer { flex: 1; }
.like.on { color: var(--rosa-600); }
.like.on svg { animation: pop 0.35s ease; }
@keyframes pop { 0% { transform: scale(0.6); } 60% { transform: scale(1.2); } 100% { transform: scale(1); } }
.day-badge { font-size: 11.5px; font-weight: 800; color: var(--verde-700); background: var(--verde-100); padding: 4px 10px; border-radius: 999px; margin-right: 6px; }
.post-body { padding: 2px 14px 14px; font-size: 14.5px; }
.post-body .likes { font-weight: 800; margin-bottom: 3px; }
.post-body .cap { white-space: pre-wrap; word-break: break-word; }
.post-body .cap b, .cmt b { font-weight: 800; margin-right: 4px; }
.times { display: flex; flex-wrap: wrap; gap: 4px 12px; margin-top: 6px; font-size: 12px; color: var(--tinta-2); }
.times span { display: inline-flex; align-items: center; gap: 4px; }
.view-all { color: var(--tinta-3); font-size: 14px; margin-top: 4px; display: block; }
.cmt { margin-top: 3px; word-break: break-word; }
.add-cmt { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.add-cmt input { flex: 1; border: 0; background: transparent; outline: none; font-size: 14px; padding: 8px 0; min-width: 0; }
.add-cmt button { color: var(--rosa-700); font-weight: 800; font-size: 14px; }
.add-cmt button:disabled { opacity: 0.4; }
.mini-av { width: 26px; height: 26px; font-size: 10px; }

.loader { display: grid; place-items: center; padding: 30px; color: var(--rosa); }
.spinner { width: 30px; height: 30px; border-radius: 50%; border: 3px solid var(--rosa-100); border-top-color: var(--rosa-600); animation: spin 0.8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.empty { text-align: center; padding: 50px 30px; color: var(--tinta-2); }
.empty .big { font-size: 44px; }
.empty h3 { font-family: var(--serif); font-size: 24px; margin: 8px 0 4px; color: var(--tinta); }

/* ---------- Galeria ---------- */
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 12px 14px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip { flex: 0 0 auto; padding: 8px 14px; border-radius: 999px; background: var(--papel); box-shadow: 0 1px 0 var(--linha), 0 2px 8px rgba(62, 49, 53, 0.05); font-weight: 700; font-size: 13.5px; color: var(--tinta-2); }
.chip.on { background: var(--tinta); color: #fff; }
.chip.on.rosa { background: var(--rosa-600); }
.chip.on.verde { background: var(--verde-600); }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.tile { position: relative; aspect-ratio: 1; overflow: hidden; background: var(--rosa-50); display: block; }
.tile img { width: 100%; height: 100%; object-fit: cover; }
.tile .ic { position: absolute; top: 6px; right: 6px; color: #fff; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.5)); }
.tile .txt { position: absolute; inset: 0; padding: 10px; display: grid; place-items: center; text-align: center; font-family: var(--serif); font-style: italic; font-size: 13px; line-height: 1.25; overflow: hidden; background: linear-gradient(150deg, var(--rosa-100), var(--verde-100)); }
.tile .lk { position: absolute; left: 6px; bottom: 6px; color: #fff; font-size: 11.5px; font-weight: 800; filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.6)); }
.gallery-count { padding: 0 16px 8px; color: var(--tinta-2); font-size: 13px; font-weight: 600; }

/* ---------- Concurso ---------- */
.section { padding: 0 14px; margin-top: 18px; }
.section h2 { font-family: var(--serif); font-size: 24px; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
.prize-hero { text-align: center; background: var(--grad); color: #fff; border-radius: var(--r); padding: 26px 20px; margin: 14px; position: relative; overflow: hidden; box-shadow: var(--sombra); }
.prize-hero .gift { font-size: 46px; }
.prize-hero h2 { font-family: var(--serif); font-size: 30px; margin: 4px 0; text-shadow: 0 1px 10px rgba(180, 83, 122, 0.35); }
.prize-hero p { margin: 0; font-weight: 700; text-shadow: 0 1px 6px rgba(68, 114, 90, 0.35); }
.prizes { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.prize { background: var(--papel); border-radius: 18px; padding: 14px; box-shadow: var(--sombra); }
.prize .i { font-size: 26px; }
.prize b { display: block; font-size: 14.5px; margin-top: 4px; }
.prize small { color: var(--tinta-2); font-size: 12.5px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { background: var(--papel); border-radius: 18px; padding: 14px 8px; text-align: center; box-shadow: var(--sombra); }
.stat b { display: block; font-family: var(--serif); font-size: 30px; line-height: 1; color: var(--rosa-700); }
.stat:nth-child(even) b { color: var(--verde-700); }
.stat small { font-size: 12px; color: var(--tinta-2); font-weight: 700; }
.podium { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.podium a { position: relative; border-radius: 16px; overflow: hidden; aspect-ratio: 3/4; background: var(--rosa-50); box-shadow: var(--sombra); }
.podium img { width: 100%; height: 100%; object-fit: cover; }
.podium .medal { position: absolute; top: 6px; left: 6px; font-size: 22px; }
.podium .meta { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 8px 7px; color: #fff; font-size: 12px; font-weight: 700; background: linear-gradient(transparent, rgba(40, 25, 30, 0.75)); }
.podium .txt { padding: 26px 10px 10px; font-family: var(--serif); font-style: italic; font-size: 13px; line-height: 1.25; height: 100%; background: linear-gradient(150deg, var(--rosa-100), var(--verde-100)); overflow: hidden; }
.leader { background: var(--papel); border-radius: 18px; box-shadow: var(--sombra); overflow: hidden; }
.leader a { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-bottom: 1px solid var(--linha); }
.leader a:last-child { border: 0; }
.leader .pos { width: 24px; text-align: center; font-weight: 800; color: var(--tinta-3); }
.leader .nm { flex: 1; font-weight: 700; }
.leader .ct { font-weight: 800; color: var(--rosa-700); font-size: 14px; text-align: right; }
.leader .ct small { display: block; font-weight: 600; color: var(--tinta-3); font-size: 11.5px; }
.missions { display: grid; gap: 8px; }
.mission { display: flex; align-items: center; gap: 12px; background: var(--papel); border-radius: 16px; padding: 12px 14px; box-shadow: var(--sombra); }
.mission .i { font-size: 22px; }
.mission .t { flex: 1; font-weight: 700; }
.mission .ok { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--linha); display: grid; place-items: center; color: #fff; }
.mission.done .ok { background: var(--verde-600); border-color: var(--verde-600); }
.mission.done .t { color: var(--tinta-2); text-decoration: line-through; text-decoration-color: var(--verde); }
.progress { height: 10px; border-radius: 999px; background: var(--rosa-100); overflow: hidden; margin: 6px 0 12px; }
.progress i { display: block; height: 100%; background: var(--grad-forte); border-radius: 999px; transition: width 0.5s ease; }

/* ---------- Perfil ---------- */
.profile { text-align: center; padding: 22px 16px 12px; }
.profile .avatar { margin: 0 auto 10px; }
.profile h2 { font-family: var(--serif); font-size: 28px; margin: 0; }
.profile .pstats { display: flex; justify-content: center; gap: 28px; margin: 14px 0; }
.profile .pstats b { display: block; font-size: 20px; font-weight: 800; }
.profile .pstats small { color: var(--tinta-2); font-size: 12.5px; font-weight: 600; }
.profile .acts { display: flex; gap: 10px; justify-content: center; }

/* ---------- Novo registro ---------- */
.compose { padding: 0 16px 30px; }
.gate { margin: 14px 0 6px; padding: 18px; border-radius: var(--r); background: linear-gradient(140deg, var(--rosa-100), var(--verde-100)); text-align: center; }
.gate .big { font-size: 36px; }
.gate h2 { font-family: var(--serif); font-size: 26px; margin: 4px 0; line-height: 1.15; }
.gate p { margin: 0; color: var(--tinta-2); font-weight: 600; }
.label { font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: 1.4px; color: var(--tinta-2); margin: 20px 2px 10px; }
.cat-list { display: grid; gap: 10px; }
.cat {
  display: flex; align-items: center; gap: 14px; text-align: left; padding: 14px 16px; border-radius: 20px;
  background: var(--papel); box-shadow: var(--sombra); border: 2px solid transparent; transition: border-color 0.2s, transform 0.15s;
}
.cat:active { transform: scale(0.98); }
.cat .i { flex: 0 0 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; background: var(--rosa-50); }
.cat:nth-child(2) .i { background: var(--verde-50); }
.cat b { display: block; font-size: 16px; }
.cat small { color: var(--tinta-2); font-size: 13px; }
.cat.on { border-color: var(--rosa); background: linear-gradient(120deg, #fff, var(--rosa-50)); }
.cat .check { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--linha); flex: 0 0 auto; display: grid; place-items: center; color: #fff; }
.cat.on .check { background: var(--rosa-600); border-color: var(--rosa-600); }
.sources { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.source {
  display: grid; justify-items: center; gap: 8px; padding: 20px 10px; border-radius: 22px; font-weight: 800; font-size: 14.5px;
  background: var(--papel); box-shadow: var(--sombra); transition: transform 0.15s;
}
.source:active { transform: scale(0.97); }
.source .ic { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; color: #fff; background: var(--grad-forte); }
.source:nth-child(2) .ic { background: linear-gradient(135deg, var(--verde-700), var(--verde)); }
.source:nth-child(3) .ic { background: linear-gradient(135deg, var(--rosa-600), #f0b8a8); }
.source:nth-child(4) .ic { background: linear-gradient(135deg, var(--verde-600), #c9d9a7); }
.source small { font-weight: 600; color: var(--tinta-2); font-size: 12px; margin-top: -4px; }

.previews { display: flex; gap: 10px; overflow-x: auto; padding: 4px 2px 8px; scroll-snap-type: x mandatory; }
.pv { flex: 0 0 auto; width: 100%; scroll-snap-align: center; position: relative; border-radius: 20px; overflow: hidden; background: var(--rosa-50); box-shadow: var(--sombra); }
.previews.multi .pv { width: 82%; }
.pv img, .pv video { width: 100%; max-height: 52vh; object-fit: contain; background: #2b2226; }
.pv .when { position: absolute; left: 10px; bottom: 10px; right: 10px; background: rgba(255, 253, 250, 0.92); border-radius: 14px; padding: 8px 12px; font-size: 13px; font-weight: 700; display: flex; gap: 8px; align-items: center; }
.pv .when small { display: block; font-weight: 600; color: var(--tinta-2); font-size: 11.5px; }
.pv .rm { position: absolute; top: 10px; right: 10px; width: 32px; height: 32px; border-radius: 50%; background: rgba(40, 30, 33, 0.6); color: #fff; display: grid; place-items: center; }
.cat-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.mission-chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: none; }
.mission-chips .chip { white-space: nowrap; }
.textarea {
  width: 100%; min-height: 96px; border-radius: 18px; border: 2px solid var(--linha); background: var(--papel); padding: 14px 16px;
  font-size: 16px; outline: none; resize: vertical; transition: border-color 0.2s;
}
.textarea:focus { border-color: var(--rosa); }
.msg-paper { border-radius: 22px; padding: 4px; background: var(--grad); }
.msg-paper textarea { min-height: 220px; border: 0; border-radius: 19px; font-family: var(--serif); font-size: 21px; font-style: italic; line-height: 1.4; background: #fffdf9; }
.publish-bar { position: sticky; bottom: 0; padding: 14px 0 calc(14px + var(--safe-b)); background: linear-gradient(transparent, var(--creme) 30%); margin-top: 10px; }

/* ---------- Overlays ---------- */
.overlay { position: fixed; inset: 0; z-index: 100; background: rgba(46, 33, 38, 0.5); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); display: flex; align-items: flex-end; justify-content: center; animation: fade 0.2s ease; }
.overlay.center { align-items: center; padding: 20px; }
@keyframes fade { from { opacity: 0; } }
.sheet { background: var(--papel); width: 100%; max-width: 520px; border-radius: 26px 26px 0 0; max-height: 86dvh; display: flex; flex-direction: column; animation: up 0.28s cubic-bezier(0.2, 0.9, 0.3, 1); padding-bottom: var(--safe-b); }
@keyframes up { from { transform: translateY(100%); } }
.sheet .grip { width: 44px; height: 5px; border-radius: 5px; background: var(--linha); margin: 10px auto 4px; }
.sheet h3 { text-align: center; margin: 4px 0 8px; font-size: 16px; }
.sheet .list { overflow-y: auto; padding: 4px 16px 10px; flex: 1; }
.sheet .row { display: flex; gap: 10px; padding: 8px 0; align-items: flex-start; }
.sheet .row .t { flex: 1; font-size: 14.5px; word-break: break-word; }
.sheet .row .t small { display: block; color: var(--tinta-3); font-size: 12px; margin-top: 2px; }
.sheet .row .del { color: var(--tinta-3); font-size: 12px; }
.sheet .composer { display: flex; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--linha); align-items: center; }
.sheet .composer input { flex: 1; height: 44px; border-radius: 999px; border: 1.5px solid var(--linha); padding: 0 16px; outline: none; font-size: 16px; background: #fff; min-width: 0; }
.sheet .composer button { color: var(--rosa-700); font-weight: 800; }
.menu { padding: 8px 12px 14px; display: grid; gap: 6px; }
.menu button, .menu a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 16px; background: var(--creme); font-weight: 700; font-size: 15px; width: 100%; }
.menu .danger { color: #c0392b; }
.dialog { background: var(--papel); border-radius: 26px; padding: 26px 22px 20px; max-width: 360px; width: 100%; text-align: center; animation: pop 0.3s ease; box-shadow: var(--sombra); }
.dialog .big { font-size: 40px; }
.dialog h3 { font-family: var(--serif); font-size: 26px; margin: 6px 0; }
.dialog p { color: var(--tinta-2); margin: 0 0 18px; }
.dialog .btns { display: grid; gap: 10px; }

.uploading { position: fixed; inset: 0; z-index: 120; background: rgba(255, 249, 243, 0.94); backdrop-filter: blur(6px); display: grid; place-items: center; padding: 30px; text-align: center; }
.uploading .heart { font-size: 54px; animation: beat 1.1s ease-in-out infinite; }
@keyframes beat { 0%, 100% { transform: scale(1); } 20% { transform: scale(1.18); } 40% { transform: scale(0.96); } 60% { transform: scale(1.1); } }
.uploading h3 { font-family: var(--serif); font-size: 28px; margin: 10px 0 4px; }
.uploading p { color: var(--tinta-2); margin: 0 0 16px; }
.uploading .progress { width: 260px; height: 12px; margin: 0 auto; }
.uploading .pct { font-weight: 800; color: var(--rosa-700); margin-top: 8px; }

.celebrate { position: fixed; inset: 0; z-index: 130; display: grid; place-items: center; padding: 26px; background: radial-gradient(circle at 50% 40%, #fff 0%, var(--rosa-50) 45%, var(--verde-100) 100%); text-align: center; overflow: hidden; }
.celebrate h2 { font-family: var(--script); font-size: 56px; margin: 0; line-height: 1.1; }
.celebrate p { font-family: var(--serif); font-size: 21px; margin: 8px 0 24px; }
.confetti { position: absolute; top: -40px; font-size: 22px; animation: fall linear forwards; pointer-events: none; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); opacity: 0.8; } }

.toast { position: fixed; left: 50%; bottom: calc(96px + var(--safe-b)); transform: translateX(-50%) translateY(20px); opacity: 0; z-index: 200; background: var(--tinta); color: #fff; padding: 12px 20px; border-radius: 999px; font-weight: 700; font-size: 14px; transition: all 0.3s ease; pointer-events: none; max-width: 90vw; text-align: center; }
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

.viewer { position: fixed; inset: 0; z-index: 110; background: rgba(25, 18, 21, 0.96); display: grid; place-items: center; animation: fade 0.2s; }
.viewer img, .viewer video { max-width: 100vw; max-height: 100dvh; object-fit: contain; }
.viewer .x { position: absolute; top: calc(12px + var(--safe-t)); right: 12px; color: #fff; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.12); }

/* ---------- Câmera ---------- */
.cam { position: fixed; inset: 0; z-index: 150; background: #120d0f; color: #fff; overflow: hidden; }
.cam-view, .cam-review { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cam-view.mirror { transform: scaleX(-1); }
.cam-review { background: #120d0f; display: grid; place-items: center; }
.cam-review img, .cam-review video { width: 100%; height: 100%; object-fit: contain; }
.cam-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: calc(12px + var(--safe-t)) 14px 12px; background: linear-gradient(rgba(0, 0, 0, 0.45), transparent); }
.cam-btn { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; background: rgba(0, 0, 0, 0.3); color: #fff; }
.cam-timer { background: #e0405f; padding: 4px 12px; border-radius: 8px; font-weight: 800; font-variant-numeric: tabular-nums; }
.cam-bottom { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 20px calc(18px + var(--safe-b)); background: linear-gradient(transparent, rgba(0, 0, 0, 0.6)); display: grid; gap: 14px; justify-items: center; }
.cam.reviewing .cam-bottom, .cam.reviewing .cam-top [data-act='flip'] { display: none; }
.cam-modes { display: flex; gap: 6px; background: rgba(0, 0, 0, 0.35); padding: 4px; border-radius: 999px; }
.cam-modes button { padding: 7px 16px; border-radius: 999px; font-weight: 800; font-size: 13px; letter-spacing: 1px; color: rgba(255, 255, 255, 0.75); }
.cam-modes button.on { background: #fff; color: var(--rosa-700); }
.cam.recording .cam-modes { visibility: hidden; }
.cam-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; width: 100%; }
.cam-shutter { width: 78px; height: 78px; border-radius: 50%; border: 5px solid #fff; display: grid; place-items: center; }
.cam-shutter span { width: 60px; height: 60px; border-radius: 50%; background: var(--grad); transition: all 0.2s ease; }
.cam.mode-video .cam-shutter span { background: #e0405f; }
.cam.recording .cam-shutter span { width: 30px; height: 30px; border-radius: 8px; }
.cam-native { font-size: 13px; font-weight: 700; color: rgba(255, 255, 255, 0.8); text-decoration: underline; text-underline-offset: 3px; }
.cam-msg { position: absolute; inset: 0; display: grid; place-content: center; gap: 16px; padding: 30px; text-align: center; font-weight: 600; }
.cam-confirm { position: absolute; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: 1fr 1.4fr; gap: 12px; padding: 18px 18px calc(22px + var(--safe-b)); background: linear-gradient(transparent, rgba(0, 0, 0, 0.65)); }
.cam.flash::after { content: ''; position: absolute; inset: 0; background: #fff; animation: flash 0.25s ease forwards; }
@keyframes flash { from { opacity: 0.9; } to { opacity: 0; } }

/* ---------- Telão ---------- */
.telao { position: fixed; inset: 0; background: #1d1518; color: #fff; overflow: hidden; cursor: none; }
.telao .bg { position: absolute; inset: -40px; background-size: cover; background-position: center; filter: blur(40px) brightness(0.55) saturate(1.2); transition: background-image 0.8s; }
.telao .stage { position: absolute; inset: 0; display: grid; place-items: center; padding: 70px 40px 120px; }
.telao .stage img, .telao .stage video { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 18px; box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45); animation: tfade 0.9s ease; }
@keyframes tfade { from { opacity: 0; transform: scale(0.97); } }
.telao .stage .text-card { border-radius: 26px; max-width: 900px; width: 80%; min-height: 50vh; color: var(--tinta); animation: tfade 0.9s ease; }
.telao .stage .text-card .q { font-size: clamp(26px, 3.6vw, 52px); }
.telao .stage .text-card .from { font-size: clamp(30px, 3vw, 50px); }
.telao .head { position: absolute; top: 18px; left: 28px; display: flex; align-items: baseline; gap: 16px; }
.telao .head .logo { font-family: var(--script); font-size: 54px; }
.telao .head .couple { font-family: var(--serif); font-style: italic; font-size: 26px; opacity: 0.9; }
.telao .info { position: absolute; left: 28px; bottom: 26px; right: 260px; display: flex; gap: 14px; align-items: center; }
.telao .info .avatar { width: 58px; height: 58px; font-size: 22px; }
.telao .info b { font-size: 26px; display: block; }
.telao .info span { font-size: 18px; opacity: 0.85; }
.telao .qr { position: absolute; right: 26px; bottom: 24px; background: #fffdfa; color: var(--tinta); border-radius: 22px; padding: 14px 14px 10px; text-align: center; width: 210px; box-shadow: 0 12px 40px rgba(0, 0, 0, 0.35); }
.telao .qr svg { width: 100%; height: auto; display: block; }
.telao .qr b { font-family: var(--serif); font-size: 19px; display: block; margin-top: 4px; }
.telao .qr small { font-size: 12px; color: var(--tinta-2); }
.telao .counter { position: absolute; top: 28px; right: 30px; font-size: 18px; font-weight: 700; background: rgba(255, 255, 255, 0.12); padding: 8px 16px; border-radius: 999px; }
.telao .waiting { text-align: center; }
.telao .waiting h2 { font-family: var(--script); font-size: 80px; margin: 0; }

/* ---------- Admin ---------- */
.admin-post { display: grid; grid-template-columns: 84px 1fr; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--linha); align-items: center; }
.admin-post .th { width: 84px; height: 84px; border-radius: 12px; overflow: hidden; background: var(--rosa-50); }
.admin-post .th img { width: 100%; height: 100%; object-fit: cover; }
.admin-post .th .txt { padding: 6px; font-size: 11px; font-style: italic; font-family: var(--serif); }
.admin-post .d { font-size: 13px; min-width: 0; }
.admin-post .d b { font-size: 14px; }
.admin-post .d .a { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.admin-post .d .a > * { font-size: 12px; font-weight: 800; padding: 6px 10px; border-radius: 999px; background: var(--creme); }
.admin-post.hid { opacity: 0.5; }
.pill-danger { color: #c0392b; }

.loc-input { min-height: 52px; height: 52px; resize: none; }

/* ---------- Carrossel (vários arquivos no mesmo post) ---------- */
.post-media .slide { position: relative; width: 100%; height: 100%; }
.carousel .track { display: flex; width: 100%; height: 100%; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.carousel .track::-webkit-scrollbar { display: none; }
.carousel .slide { flex: 0 0 100%; scroll-snap-align: start; scroll-snap-stop: always; }
.carousel .count { position: absolute; top: 12px; right: 12px; background: rgba(40, 30, 33, 0.6); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 10px; border-radius: 999px; pointer-events: none; }
.carousel .dots { position: absolute; left: 0; right: 0; bottom: 10px; display: flex; justify-content: center; gap: 5px; pointer-events: none; }
.carousel .dots i { width: 6px; height: 6px; border-radius: 50%; background: rgba(255, 255, 255, 0.55); box-shadow: 0 0 3px rgba(0, 0, 0, 0.3); transition: all 0.2s; }
.carousel .dots i.on { background: #fff; width: 8px; height: 8px; }
.carousel .slide .sound { bottom: 26px; }

/* ---------- Stories ---------- */
.story.person { padding: 0; }
.story .in img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.story.seen .ring { background: var(--linha); }
.feed-chips { padding-top: 0; }
.sv { position: fixed; inset: 0; z-index: 140; background: #120d0f; color: #fff; overflow: hidden; animation: fade 0.2s; }
.sv-bars { position: absolute; top: calc(8px + var(--safe-t)); left: 8px; right: 8px; display: flex; gap: 4px; z-index: 3; }
.sv-bars i { flex: 1; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, 0.35); overflow: hidden; }
.sv-bars b { display: block; height: 100%; width: 0; background: #fff; }
.sv-bars i.done b { width: 100%; }
.sv-head { position: absolute; top: calc(20px + var(--safe-t)); left: 12px; right: 8px; display: flex; align-items: center; gap: 10px; z-index: 3; text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5); }
.sv-head > div { flex: 1; min-width: 0; line-height: 1.2; }
.sv-head small { display: block; font-size: 12px; opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sv-head .avatar { width: 34px; height: 34px; font-size: 12px; }
.sv-x { width: 40px; height: 40px; display: grid; place-items: center; color: #fff; }
.sv-media { position: absolute; inset: 0; display: grid; place-items: center; }
.sv-media img, .sv-media video { width: 100%; height: 100%; object-fit: contain; }
.sv-media .text-card { width: 100%; height: 100%; color: var(--tinta); }
.sv-cap { position: absolute; left: 0; right: 0; bottom: calc(60px + var(--safe-b)); padding: 14px 18px; text-align: center; font-weight: 600; background: linear-gradient(transparent, rgba(0, 0, 0, 0.55)); z-index: 2; white-space: pre-wrap; }
.sv-nav { position: absolute; inset: 70px 0 70px; display: grid; grid-template-columns: 1fr 2fr; z-index: 2; }
.sv-foot { position: absolute; left: 0; right: 0; bottom: 0; padding: 14px 16px calc(14px + var(--safe-b)); text-align: center; z-index: 3; }
.sv-foot a { display: inline-block; padding: 9px 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(8px); font-weight: 800; font-size: 14px; }
.share-body { padding: 4px 16px 16px; overflow-y: auto; }
.story-preview { width: 62%; max-width: 260px; margin: 0 auto 12px; aspect-ratio: 9 / 16; border-radius: 18px; overflow: hidden; box-shadow: var(--sombra); background: var(--rosa-50); }
.story-preview img, .story-preview video { width: 100%; height: 100%; object-fit: cover; }
.tag-box { background: linear-gradient(120deg, var(--rosa-100), var(--verde-100)); border-radius: 16px; padding: 12px 14px; font-size: 13.5px; margin-bottom: 12px; text-align: center; }
.tag-box > b:first-child { display: block; font-size: 15px; }
.tag-box code { font-family: inherit; font-weight: 800; color: var(--rosa-700); }
.share-actions { display: grid; gap: 8px; }

/* bolinhas dos stories: imagem sempre dentro do círculo */
.story .ring { display: block; overflow: hidden; }
.story .in { overflow: hidden; position: relative; }
.story .in img { display: block; position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border-radius: 50%; }
.story .in .txt { font-family: var(--serif); font-weight: 700; font-size: 22px; color: var(--rosa-700); }
.story.mine { position: relative; }
.story.mine .ring { padding: 3px; border-radius: 50%; width: 66px; height: 66px; }
.story.mine.on .ring { background: var(--grad-forte); }
.story.mine.seen .ring { background: var(--linha); }
.story .add-badge { position: absolute; right: 2px; top: 46px; width: 22px; height: 22px; border-radius: 50%; background: var(--rosa-600); color: #fff; font-weight: 800; display: grid; place-items: center; border: 2px solid var(--papel); font-size: 15px; line-height: 1; }
.stories-empty { align-self: center; color: var(--tinta-3); font-size: 13px; font-weight: 600; white-space: nowrap; padding-left: 4px; }
.menu button small { color: var(--tinta-3); font-weight: 600; margin-left: auto; }
.sv-foot { display: flex; justify-content: center; gap: 10px; }
.sv-foot button { display: inline-flex; align-items: center; gap: 6px; padding: 9px 18px; border-radius: 999px; background: rgba(255, 255, 255, 0.16); backdrop-filter: blur(8px); font-weight: 800; font-size: 14px; color: #fff; }

.kind-tag { font-size: 10px; font-weight: 800; letter-spacing: 1px; color: #fff; background: var(--grad-forte); padding: 2px 7px; border-radius: 999px; }
