/* Coupgram — sistema de design (Agente 3)
   Direção: "salão à meia-luz". Fundo beringela profunda, vinho rosado como ação,
   dourado velho apenas para o "&" do casal e distinções. Bodoni Moda para nomes,
   Figtree para tudo o resto. */

:root {
  --bg: #170a12;
  --bg-2: #1f0f19;
  --surface: #261420;
  --surface-2: #311a29;
  --line: #3e2535;
  --line-2: #553547;
  --text: #f5e9ee;
  --text-2: #c9b1bd;
  --muted: #9a8090;
  --wine: #b3375f;
  --wine-2: #cf4b75;
  --wine-ink: #fff4f7;
  --wine-soft: rgba(179, 55, 95, .16);
  --gold: #cda65e;
  --gold-soft: rgba(205, 166, 94, .14);
  --ok: #5fb38a;
  --danger: #e0565b;
  --danger-soft: rgba(224, 86, 91, .14);
  --shadow: 0 18px 50px rgba(5, 0, 3, .55);

  --font-display: 'Bodoni Moda', 'Didot', 'Bodoni 72', Georgia, serif;
  --font-body: 'Figtree', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;

  --fs-xs: .75rem;
  --fs-sm: .875rem;
  --fs-md: 1rem;
  --fs-lg: 1.25rem;
  --fs-xl: 1.6rem;
  --fs-2xl: 2.1rem;

  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 999px;

  --header-h: 56px;
  --nav-h: 64px;
  --safe-t: env(safe-area-inset-top, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --page-w: 640px;
  --tap: 44px;

  color-scheme: dark;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #fbf5f7;
    --bg-2: #f4eaef;
    --surface: #ffffff;
    --surface-2: #f6edf1;
    --line: #ead9e1;
    --line-2: #dbc3cf;
    --text: #2a1320;
    --text-2: #5b3f4e;
    --muted: #84697a;
    --wine: #a12d55;
    --wine-2: #8a2448;
    --wine-soft: rgba(161, 45, 85, .1);
    --gold: #9c7630;
    --gold-soft: rgba(156, 118, 48, .12);
    --shadow: 0 16px 40px rgba(60, 20, 40, .16);
    color-scheme: light;
  }
}
:root[data-theme="dark"] { color-scheme: dark; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
html, body { margin: 0; padding: 0; overflow-x: hidden; }
body {
  min-height: 100vh;
  min-height: 100dvh;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-md);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}
body.no-scroll { overflow: hidden; }
img, video, svg { max-width: 100%; display: block; }
a { color: var(--wine-2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.2; font-weight: 600; }
h1 { font-size: var(--fs-xl); }
h2 { font-size: var(--fs-lg); }
h3 { font-size: var(--fs-md); }
p { margin: 0 0 .75em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--wine); color: var(--wine-ink); }

:focus { outline: none; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; border-radius: 6px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.muted { color: var(--muted); }
.small { font-size: var(--fs-sm); }
.xs { font-size: var(--fs-xs); }
.center { text-align: center; }
.hidden, [hidden] { display: none !important; }
.display { font-family: var(--font-display); font-weight: 500; letter-spacing: -.01em; }
.amp { font-family: var(--font-display); font-style: italic; color: var(--gold); padding: 0 .12em; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }

/* ---------- Layout ---------- */
.row { display: flex; flex-direction: row; align-items: center; gap: 10px; min-width: 0; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.row.end { justify-content: flex-end; }
.col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.grow { flex: 1 1 auto; min-width: 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stack > * + * { margin-top: 12px; }

#app { min-height: 100dvh; display: flex; flex-direction: column; }

.page {
  width: 100%;
  max-width: var(--page-w);
  margin: 0 auto;
  padding: 16px calc(16px + var(--safe-r)) 24px calc(16px + var(--safe-l));
}
.page.wide { max-width: 960px; }
.page.flush { padding-left: 0; padding-right: 0; }

/* Cabeçalho da app (topo fixo) */
.app-header {
  position: sticky; top: 0; z-index: 40;
  height: calc(var(--header-h) + var(--safe-t));
  padding: var(--safe-t) calc(12px + var(--safe-r)) 0 calc(16px + var(--safe-l));
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.brand { display: inline-flex; align-items: center; gap: 8px; color: var(--text); min-height: var(--tap); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 22px; color: var(--gold); }
.brand-word { font-family: var(--font-display); font-size: 1.45rem; font-style: italic; font-weight: 500; letter-spacing: -.01em; }
.header-actions { display: flex; align-items: center; gap: 2px; }

/* .header = cabeçalho de página (título + ações) usado pelos módulos */
.header {
  display: flex; align-items: center; gap: 10px; justify-content: space-between;
  margin: 0 0 16px; min-height: var(--tap);
}
.header h1, .header h2 { margin: 0; font-size: var(--fs-lg); }
.header .back { margin-left: -8px; }

#view { flex: 1 0 auto; width: 100%; padding-bottom: calc(var(--nav-h) + var(--safe-b) + 16px); }
body.public #view { padding-bottom: calc(24px + var(--safe-b)); }
body.public .bottom-nav, body.public .app-header .header-actions { display: none; }

/* ---------- Navegação inferior ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 50;
  height: calc(var(--nav-h) + var(--safe-b));
  padding: 0 var(--safe-r) var(--safe-b) var(--safe-l);
  display: flex; align-items: stretch; justify-content: space-around;
  background: color-mix(in srgb, var(--bg-2) 92%, transparent);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--line);
}
.nav-item {
  position: relative; flex: 1 1 0; max-width: 110px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: var(--tap); color: var(--muted); font-size: 11px; font-weight: 500;
}
.nav-item:hover { text-decoration: none; color: var(--text-2); }
.nav-item svg { width: 24px; height: 24px; }
.nav-item.active { color: var(--text); }
.nav-item.active svg { color: var(--wine-2); }
.nav-item .nav-badge {
  position: absolute; top: 6px; left: calc(50% + 6px);
  min-width: 18px; height: 18px; padding: 0 5px; border-radius: var(--r-pill);
  background: var(--wine); color: var(--wine-ink); font-size: 11px; font-weight: 700; line-height: 18px; text-align: center;
  box-shadow: 0 0 0 2px var(--bg-2);
}
.nav-new { flex: 0 0 auto; display: flex; align-items: center; justify-content: center; padding: 0 6px; }
.nav-new a {
  width: 52px; height: 40px; border-radius: 14px;
  display: grid; place-items: center;
  background: var(--wine); color: var(--wine-ink);
  box-shadow: 0 6px 18px rgba(179, 55, 95, .35);
}
.nav-new a:hover { background: var(--wine-2); text-decoration: none; }
.nav-new svg { width: 24px; height: 24px; }

@media (min-width: 900px) {
  .bottom-nav { max-width: 560px; margin: 0 auto 16px; left: 0; right: 0; border: 1px solid var(--line); border-radius: 20px; bottom: 0; height: var(--nav-h); padding: 0 8px; }
  #view { padding-bottom: calc(var(--nav-h) + 40px); }
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: var(--tap); padding: 0 18px;
  border-radius: var(--r-pill); border: 1px solid var(--line-2);
  background: var(--surface-2); color: var(--text);
  font-weight: 600; font-size: var(--fs-sm); line-height: 1; white-space: nowrap;
  cursor: pointer; user-select: none; text-decoration: none;
  transition: background-color .15s, border-color .15s, transform .08s;
}
.btn:hover { text-decoration: none; border-color: var(--muted); }
.btn:active { transform: scale(.97); }
.btn[disabled], .btn.loading { opacity: .55; cursor: not-allowed; pointer-events: none; }
.btn-primary { background: var(--wine); border-color: var(--wine); color: var(--wine-ink); }
.btn-primary:hover { background: var(--wine-2); border-color: var(--wine-2); }
.btn-ghost { background: transparent; border-color: var(--line-2); color: var(--text); }
.btn-ghost:hover { background: var(--surface); }
.btn-gold { background: transparent; border-color: var(--gold); color: var(--gold); }
.btn-gold:hover { background: var(--gold-soft); }
.btn-danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.btn-link { background: none; border: 0; padding: 0 6px; color: var(--wine-2); min-height: var(--tap); }
.btn-block, .btn.full { width: 100%; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: var(--fs-xs); }
.btn .spinner { width: 16px; height: 16px; border-width: 2px; }

.icon-btn {
  display: inline-grid; place-items: center;
  width: var(--tap); height: var(--tap); padding: 0; border: 0; border-radius: 50%;
  background: transparent; color: var(--text-2); cursor: pointer;
}
.icon-btn:hover { background: var(--surface); color: var(--text); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Cartões e listas ---------- */
.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 16px;
}
.card + .card { margin-top: 12px; }
.card.flat { background: transparent; }
.card-title { font-weight: 600; margin: 0 0 4px; }

.list { display: flex; flex-direction: column; }
.list-item {
  display: flex; align-items: center; gap: 12px;
  min-height: 64px; padding: 10px 4px;
  border-bottom: 1px solid var(--line);
  color: var(--text);
}
.list-item:last-child { border-bottom: 0; }
a.list-item:hover, button.list-item:hover { text-decoration: none; background: color-mix(in srgb, var(--surface) 60%, transparent); }
button.list-item { width: 100%; background: none; border: 0; border-bottom: 1px solid var(--line); text-align: left; cursor: pointer; }
.list-item .grow { flex: 1 1 auto; min-width: 0; }
.list-item .title { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item .sub { color: var(--muted); font-size: var(--fs-sm); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-item.unread .title::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 6px; border-radius: 50%; background: var(--wine-2); vertical-align: middle; }

/* ---------- Separadores ---------- */
.tabs {
  display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none;
  border-bottom: 1px solid var(--line); margin: 0 0 16px;
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 1 0 auto; min-height: var(--tap); padding: 0 14px;
  border: 0; border-bottom: 2px solid transparent; background: none;
  color: var(--muted); font-weight: 600; font-size: var(--fs-sm); cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
}
.tab:hover { color: var(--text-2); text-decoration: none; }
.tab.active, .tab[aria-selected="true"] { color: var(--text); border-bottom-color: var(--wine-2); }

/* ---------- Badge / chips ---------- */
.badge {
  display: inline-flex; align-items: center; gap: 4px;
  min-height: 22px; padding: 2px 9px; border-radius: var(--r-pill);
  background: var(--wine-soft); color: var(--wine-2);
  font-size: var(--fs-xs); font-weight: 600; line-height: 1.2; white-space: nowrap;
}
.badge.gold { background: var(--gold-soft); color: var(--gold); }
.badge.neutral { background: var(--surface-2); color: var(--text-2); }
.badge.danger { background: var(--danger-soft); color: var(--danger); }
.badge.ok { background: rgba(95, 179, 138, .15); color: var(--ok); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 14px;
  border-radius: var(--r-pill); border: 1px solid var(--line-2); background: transparent;
  color: var(--text-2); font-size: var(--fs-sm); cursor: pointer;
}
.chip:hover { border-color: var(--muted); }
.chip.active, .chip[aria-pressed="true"] { background: var(--wine-soft); border-color: var(--wine); color: var(--text); }
.chip[disabled] { opacity: .45; cursor: not-allowed; }

/* ---------- Formulários ---------- */
.form { display: flex; flex-direction: column; gap: 16px; }
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.field .hint { font-size: var(--fs-xs); color: var(--muted); }
.field .error { font-size: var(--fs-xs); color: var(--danger); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 360px) { .field-row { grid-template-columns: 1fr; } }

.input, select.input, textarea.input {
  width: 100%; min-height: var(--tap); padding: 10px 14px;
  border-radius: var(--r-sm); border: 1px solid var(--line-2);
  background: var(--bg-2); color: var(--text);
  font-size: 16px; /* evita zoom em iOS */
  transition: border-color .15s, box-shadow .15s;
}
textarea.input { min-height: 96px; resize: vertical; line-height: 1.45; }
.input::placeholder { color: var(--muted); }
.input:focus { border-color: var(--wine-2); box-shadow: 0 0 0 3px var(--wine-soft); outline: none; }
.input[aria-invalid="true"] { border-color: var(--danger); }
select.input { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }
.check { display: flex; align-items: flex-start; gap: 10px; min-height: var(--tap); padding: 8px 0; cursor: pointer; font-size: var(--fs-sm); color: var(--text-2); }
.check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--wine); flex: 0 0 auto; }
.search-box { position: relative; }
.search-box svg { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); color: var(--muted); width: 20px; height: 20px; pointer-events: none; }
.search-box .input { padding-left: 42px; border-radius: var(--r-pill); }
.counter { font-size: var(--fs-xs); color: var(--muted); text-align: right; }

/* ---------- Avatar ---------- */
.avatar {
  flex: 0 0 auto; border-radius: 50%; object-fit: cover;
  background: var(--surface-2);
}
.avatar-initials {
  display: inline-grid; place-items: center;
  background: linear-gradient(145deg, var(--surface-2), var(--wine-soft));
  color: var(--text-2); font-family: var(--font-display); font-style: italic; font-weight: 500;
  border: 1px solid var(--line-2); letter-spacing: .02em; user-select: none;
}
.avatar-ring { padding: 3px; border-radius: 50%; background: conic-gradient(from 210deg, var(--gold), var(--wine-2), var(--gold)); display: inline-block; }
.avatar-ring > .avatar { border: 3px solid var(--bg); }

/* ---------- Stories (carrossel de círculos) ---------- */
.stories {
  display: flex; gap: 14px; overflow-x: auto; scrollbar-width: none;
  padding: 4px 16px 12px; margin: 0 -16px 8px; scroll-snap-type: x proximity;
}
.stories::-webkit-scrollbar { display: none; }
.story {
  flex: 0 0 auto; width: 72px; display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: none; border: 0; padding: 0; cursor: pointer; color: var(--text-2); scroll-snap-align: start;
}
.story:hover { text-decoration: none; }
.story-ring {
  width: 68px; height: 68px; border-radius: 50%; padding: 3px;
  background: conic-gradient(from 200deg, var(--gold), var(--wine-2), var(--gold));
  display: grid; place-items: center;
}
.story-ring .avatar { width: 100% !important; height: 100% !important; border: 3px solid var(--bg); }
.story.seen .story-ring { background: var(--line-2); }
.story.add .story-ring { background: none; border: 1.5px dashed var(--line-2); }
.story-name { font-size: 11px; max-width: 72px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Visualizador de story em ecrã inteiro */
.story-viewer { position: fixed; inset: 0; z-index: 90; background: #000; display: flex; flex-direction: column; padding: var(--safe-t) 0 var(--safe-b); }
.story-progress { display: flex; gap: 4px; padding: 10px 12px 0; }
.story-progress span { flex: 1; height: 3px; border-radius: 2px; background: rgba(255,255,255,.3); overflow: hidden; }
.story-progress span i { display: block; height: 100%; width: 0; background: #fff; }
.story-media { flex: 1; display: grid; place-items: center; min-height: 0; }
.story-media img, .story-media video { max-height: 100%; width: 100%; object-fit: contain; }

/* ---------- Grelha de posts (3 colunas) ---------- */
.post-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 3px; }
.post-grid .cell {
  position: relative; display: block; aspect-ratio: 1 / 1; overflow: hidden;
  background: var(--surface); border: 0; padding: 0; cursor: pointer;
}
.post-grid .cell img, .post-grid .cell video { width: 100%; height: 100%; object-fit: cover; }
.post-grid .cell .cell-flag { position: absolute; top: 6px; right: 6px; color: #fff; filter: drop-shadow(0 1px 2px rgba(0,0,0,.6)); }
.post-grid .cell:hover img, .post-grid .cell:hover video { opacity: .88; }
@media (min-width: 700px) { .post-grid { gap: 6px; } .post-grid .cell { border-radius: 6px; } }

/* Post no feed */
.post { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); overflow: hidden; margin-bottom: 16px; }
.post-head { display: flex; align-items: center; gap: 10px; padding: 10px 6px 10px 12px; }
.post-media { background: #000; }
.post-media img, .post-media video { width: 100%; max-height: 80vh; object-fit: contain; }
.post-actions { display: flex; align-items: center; gap: 2px; padding: 4px 6px; }
.post-body { padding: 0 14px 14px; }
.liked svg { color: var(--wine-2); fill: var(--wine-2); }

/* ---------- Chat ---------- */
.chat { display: flex; flex-direction: column; height: calc(100dvh - var(--header-h) - var(--safe-t) - var(--nav-h) - var(--safe-b)); }
.chat-log { flex: 1 1 auto; overflow-y: auto; padding: 12px 16px; display: flex; flex-direction: column; gap: 6px; overscroll-behavior: contain; }
.chat-compose { display: flex; gap: 8px; align-items: flex-end; padding: 10px 12px; border-top: 1px solid var(--line); background: var(--bg-2); }
.chat-compose .input { border-radius: 22px; min-height: var(--tap); max-height: 140px; resize: none; }
.bubble {
  max-width: min(78%, 420px); padding: 9px 13px; border-radius: 18px;
  line-height: 1.4; overflow-wrap: anywhere; white-space: pre-wrap; font-size: .95rem;
}
.bubble.me { align-self: flex-end; background: var(--wine); color: var(--wine-ink); border-bottom-right-radius: 6px; }
.bubble.them { align-self: flex-start; background: var(--surface-2); color: var(--text); border-bottom-left-radius: 6px; }
.bubble .meta { display: block; margin-top: 3px; font-size: 10.5px; opacity: .7; text-align: right; }
.bubble img, .bubble video { border-radius: 12px; margin: 2px 0; max-height: 320px; }
.chat-day { align-self: center; font-size: var(--fs-xs); color: var(--muted); padding: 8px 0; }

/* ---------- Modal ---------- */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  display: flex; align-items: flex-end; justify-content: center;
  background: rgba(8, 2, 6, .66);
  opacity: 0; transition: opacity .2s;
  padding: var(--safe-t) var(--safe-r) 0 var(--safe-l);
}
.modal-backdrop.show { opacity: 1; }
.modal {
  width: 100%; max-width: 520px; max-height: 92dvh; overflow: auto;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--r-lg) var(--r-lg) 0 0;
  box-shadow: var(--shadow);
  padding: 6px 18px calc(20px + var(--safe-b));
  transform: translateY(24px); transition: transform .22s cubic-bezier(.2,.8,.2,1);
}
.modal-backdrop.show .modal { transform: none; }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; position: sticky; top: -6px; background: var(--surface); padding: 6px 0; z-index: 1; }
.modal-title { margin: 0; font-size: var(--fs-lg); }
.modal-close { margin-right: -10px; }
.modal-actions { justify-content: flex-end; margin-top: 8px; }
.confirm-msg { color: var(--text-2); }
@media (min-width: 600px) {
  .modal-backdrop { align-items: center; padding: 24px; }
  .modal { border-radius: var(--r-lg); padding-bottom: 20px; }
}

/* ---------- Menu ⋯ ---------- */
.menu {
  position: fixed; z-index: 110; width: 200px;
  background: var(--surface-2); border: 1px solid var(--line-2); border-radius: var(--r-md);
  box-shadow: var(--shadow); padding: 6px; display: flex; flex-direction: column;
}
.menu-item {
  min-height: var(--tap); padding: 0 12px; border: 0; border-radius: var(--r-sm);
  background: none; text-align: left; cursor: pointer; color: var(--text); font-size: var(--fs-sm);
}
.menu-item:hover, .menu-item:focus-visible { background: var(--surface); outline: none; }
.menu-item.danger { color: var(--danger); }

/* ---------- Toast ---------- */
.toast-host {
  position: fixed; left: 0; right: 0; z-index: 120; pointer-events: none;
  bottom: calc(var(--nav-h) + var(--safe-b) + 12px);
  display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 0 16px;
}
body.public .toast-host { bottom: calc(16px + var(--safe-b)); }
.toast {
  pointer-events: auto; max-width: 440px; width: fit-content;
  padding: 12px 16px; border-radius: var(--r-md);
  background: var(--surface-2); color: var(--text); border: 1px solid var(--line-2);
  box-shadow: var(--shadow); font-size: var(--fs-sm); cursor: pointer;
  opacity: 0; transform: translateY(8px); transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: none; }
.toast-success { border-left: 3px solid var(--ok); }
.toast-error { border-left: 3px solid var(--danger); }
.toast-info { border-left: 3px solid var(--gold); }

/* ---------- Spinner / vazio ---------- */
.spinner-wrap { display: flex; justify-content: center; padding: 40px 0; }
.spinner {
  display: inline-block; width: 28px; height: 28px; border-radius: 50%;
  border: 3px solid var(--line-2); border-top-color: var(--wine-2);
  animation: spin .8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; padding: 48px 20px; color: var(--muted); }
.empty-state .empty-mark { color: var(--line-2); width: 48px; height: 32px; }
.empty-state p { max-width: 32ch; margin: 0; }

/* ---------- Perfil ---------- */
.profile-head { display: grid; grid-template-columns: auto 1fr; gap: 16px; align-items: center; margin-bottom: 14px; }
.profile-names { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-2xl); line-height: 1.05; letter-spacing: -.015em; margin: 0; overflow-wrap: anywhere; }
.profile-names .amp { font-size: .9em; }
.profile-handle { color: var(--muted); font-size: var(--fs-sm); margin-top: 4px; }
.profile-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--text-2); font-size: var(--fs-sm); margin: 6px 0 10px; }
.profile-meta span { display: inline-flex; align-items: center; gap: 5px; }
.profile-meta svg { width: 15px; height: 15px; color: var(--muted); }
.profile-bio { color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; margin-bottom: 8px; }
.profile-looking { font-size: var(--fs-sm); color: var(--text-2); margin-bottom: 10px; }
.profile-looking b { color: var(--gold); font-weight: 600; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 14px 0; }
.stat { display: flex; flex-direction: column; align-items: center; padding: 10px 0; min-height: var(--tap); background: none; border: 0; color: var(--text); cursor: pointer; }
.stat b { font-size: var(--fs-lg); font-weight: 700; font-variant-numeric: tabular-nums; }
.stat span { font-size: var(--fs-xs); color: var(--muted); }
.profile-actions { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; margin-bottom: 16px; }
.profile-actions .btn { padding: 0 10px; }
@media (max-width: 360px) { .profile-actions { grid-template-columns: 1fr 1fr; } }

/* Q&A */
.qa { padding: 14px 0; border-bottom: 1px solid var(--line); }
.qa-q { font-weight: 600; overflow-wrap: anywhere; }
.qa-a { margin: 8px 0 0 14px; padding-left: 12px; border-left: 2px solid var(--line-2); color: var(--text-2); overflow-wrap: anywhere; white-space: pre-wrap; }

/* Descobrir */
.couple-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 16px 12px; }
.couple-card a.name { color: var(--text); font-family: var(--font-display); font-size: 1.1rem; line-height: 1.15; overflow-wrap: anywhere; }
.couple-card .city { font-size: var(--fs-xs); color: var(--muted); }
.couple-card .btn { width: 100%; margin-top: auto; }
.section-title { font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); margin: 22px 0 10px; }

/* Ecrã de estado (suspenso, 404, erro) */
.state-screen { min-height: 60dvh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 14px; padding: 32px 20px; }
.state-screen h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--fs-2xl); margin: 0; }
.state-screen p { color: var(--text-2); max-width: 36ch; }
.state-screen .big { font-family: var(--font-display); font-style: italic; font-size: 4.5rem; line-height: 1; color: var(--gold); }

.divider { height: 1px; background: var(--line); margin: 16px 0; border: 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }

/* Boot */
.boot { min-height: 100dvh; display: grid; place-items: center; }
.boot svg { width: 64px; height: 44px; color: var(--gold); animation: pulse 1.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }

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

/* ---------- QA (Agente 5): classes usadas por auth.js, admin.js e moderation.js sem regra ---------- */
.grid > .card + .card { margin-top: 0; }

.auth-page { max-width: 440px; padding-top: 28px; }
.auth-brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 4px 0 18px; cursor: pointer; }
.auth-logo { font-family: var(--font-display); font-style: italic; font-size: var(--fs-2xl); color: var(--text); line-height: 1; }
.auth-card { gap: 16px; padding: 20px; }
.auth-card h2 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-xl); }
.auth-field { gap: 6px; }
.auth-label { font-size: var(--fs-sm); font-weight: 600; color: var(--text-2); }
.auth-pair { align-items: flex-start; }
.auth-pair > * { flex: 1 1 0; }
.auth-check { align-items: flex-start; font-size: var(--fs-sm); color: var(--text-2); cursor: pointer; }
.auth-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--wine); flex: 0 0 auto; }
.auth-links { justify-content: space-between; flex-wrap: wrap; font-size: var(--fs-sm); }
.auth-card .btn-primary { width: 100%; }

.welcome { padding-top: 28px; }
.welcome-hero { text-align: center; align-items: center; padding: 12px 0 24px; }
.welcome-hero .auth-brand { margin-bottom: 4px; }
.welcome-hero h1 { margin: 0; font-family: var(--font-display); font-weight: 500; font-size: var(--fs-2xl); line-height: 1.1; max-width: 18ch; }
.welcome-hero p { margin: 0; max-width: 42ch; }
.welcome-cta { width: 100%; max-width: 360px; gap: 10px; }
.welcome-cta .btn { width: 100%; }
.welcome-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.welcome-feat { display: flex; flex-direction: column; gap: 6px; }
.welcome-feat p { margin: 0; font-size: var(--fs-sm); }
.welcome-icon { font-size: 1.5rem; line-height: 1; }
.welcome-foot { text-align: center; font-size: var(--fs-xs); margin-top: 24px; }

.admin-stats { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); margin-bottom: 16px; }
.admin-stat { display: flex; flex-direction: column; gap: 2px; }
.admin-stat strong { font-family: var(--font-display); font-size: var(--fs-xl); font-weight: 500; }
.admin-stat span { font-size: var(--fs-sm); }
.admin-list { margin-top: 12px; }
.admin-list > .card + .card { margin-top: 0; }
.admin-report { gap: 8px; }
.admin-report-head { flex-wrap: wrap; }
.admin-report-head .muted { margin-left: auto; font-size: var(--fs-xs); }
.admin-details { margin: 0; color: var(--text-2); white-space: pre-wrap; overflow-wrap: anywhere; }
.admin-actions { justify-content: flex-end; }
.admin-target { overflow-wrap: anywhere; }
.admin-media { width: 100%; max-height: 50dvh; object-fit: contain; border-radius: var(--r-sm); background: var(--bg-2); }

.report-form { gap: 10px; }
.report-reason { gap: 12px; cursor: pointer; min-height: var(--tap); }
.report-reason input { width: 20px; height: 20px; accent-color: var(--wine); flex: 0 0 auto; margin: 0; }

/* ---------- Notificações, perguntas, filtros, convites ---------- */
.notif-btn { position: relative; }
.notif-btn .notif-badge { position: absolute; top: 4px; right: 2px; left: auto; }
.qa.flash { animation: qaflash 2s ease-out; border-radius: var(--r-md, 12px); }
@keyframes qaflash { from { background: var(--wine-soft); } to { background: transparent; } }
.search-row { display: flex; gap: 8px; align-items: center; }
.search-row .input { flex: 1 1 auto; min-width: 0; }
.filter-btn { position: relative; flex: 0 0 auto; }
.filter-btn .count { margin-left: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: var(--wine); color: var(--wine-ink); font-size: 11px; font-weight: 700; line-height: 18px; display: inline-block; text-align: center; }
.active-filters { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.invite-code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 26px; letter-spacing: .18em; text-align: center; padding: 14px; border: 1px dashed var(--line-2); border-radius: 12px; user-select: all; }
.invite-list .list-item .title { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; letter-spacing: .08em; }
.discover-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.search-row .search-box { flex: 1 1 auto; min-width: 0; }
.invite-wrap { position: relative; }
.invite-wrap .input { padding-right: 46px; letter-spacing: .12em; font-weight: 600; }
.invite-mark { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; font-size: 14px; }
.invite-mark.ok { background: #2f9e62; color: #fff; }
.invite-mark.bad { background: #c0392b; color: #fff; }
.invite-mark.checking { border: 2px solid var(--line-2); border-top-color: var(--wine-2); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: translateY(-50%) rotate(360deg); } }
.ok-text { color: #2f9e62; font-weight: 600; }
.bad-text { color: #d9534f; font-weight: 600; }
.auth-pair { gap: 12px; align-items: flex-start; }
.city-list { max-height: 42vh; overflow-y: auto; border: 1px solid var(--line); border-radius: 12px; -webkit-overflow-scrolling: touch; }
.city-group { position: sticky; top: 0; z-index: 1; padding: 6px 12px; font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); background: var(--bg-2, var(--surface)); border-bottom: 1px solid var(--line); }
.city-row { display: flex; align-items: center; gap: 10px; width: 100%; min-height: 44px; padding: 0 12px; border: 0; border-bottom: 1px solid var(--line); background: none; color: var(--text); font: inherit; text-align: left; cursor: pointer; }
.city-row:last-child { border-bottom: 0; }
.city-row.on { background: var(--wine-soft); }
.city-check { flex: 0 0 auto; width: 20px; height: 20px; border-radius: 6px; border: 1.5px solid var(--line-2); display: grid; place-items: center; font-size: 13px; font-weight: 800; color: var(--wine-ink); }
.city-row.on .city-check { background: var(--wine); border-color: var(--wine); }

/* ---------- Interação nas stories ---------- */
.story-bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; padding: 28px 12px calc(12px + env(safe-area-inset-bottom)); background: linear-gradient(transparent, rgba(0,0,0,.65)); display: flex; flex-direction: column; gap: 10px; }
.story-reacts { display: flex; justify-content: space-between; gap: 6px; }
.story-react { flex: 1; height: 44px; border: 0; border-radius: 999px; background: rgba(255,255,255,.14); font-size: 22px; cursor: pointer; transition: transform .15s, background .15s; }
.story-react.on { background: rgba(255,255,255,.38); box-shadow: 0 0 0 2px #fff inset; }
.story-react.pop { animation: storypop .35s ease-out; }
@keyframes storypop { 40% { transform: scale(1.35); } 100% { transform: scale(1); } }
.story-reply { display: flex; gap: 8px; }
.story-reply-input { flex: 1; min-width: 0; height: 44px; padding: 0 16px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.55); background: rgba(0,0,0,.25); color: #fff; font: inherit; }
.story-reply-input::placeholder { color: rgba(255,255,255,.75); }
.story-send { width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--wine); color: #fff; font-size: 18px; cursor: pointer; }
.story-stats { align-self: flex-start; height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: rgba(255,255,255,.16); color: #fff; font: inherit; font-weight: 600; cursor: pointer; }

/* ---------- Editor de fotos ---------- */
.ed-root { position: fixed; inset: 0; z-index: 120; display: flex; flex-direction: column; background: #0b0508; color: #fff; padding-bottom: env(safe-area-inset-bottom); }
.ed-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: calc(8px + env(safe-area-inset-top)) 10px 8px; }
.ed-top-btn { background: none; border: 0; color: #fff; font: inherit; font-weight: 600; padding: 10px 12px; min-height: 44px; cursor: pointer; border-radius: 10px; }
.ed-done { background: var(--wine); }
.ed-done:disabled { opacity: .6; }
.ed-stage { flex: 1 1 auto; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 8px; overflow: hidden; }
.ed-canvas { max-width: 100%; max-height: 100%; touch-action: none; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); background: #000; }
.ed-panel { padding: 10px 12px 4px; display: flex; flex-direction: column; gap: 10px; min-height: 120px; max-height: 36vh; overflow-y: auto; }
.ed-panel .chip { color: #fff; border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.06); }
.ed-panel .chip.active, .ed-panel .chip[aria-pressed="true"] { background: var(--wine); border-color: var(--wine); }
.ed-panel .btn-ghost { color: #fff; border-color: rgba(255,255,255,.3); }
.ed-panel .btn-ghost.active { background: rgba(255,255,255,.2); }
.ed-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ed-scroll { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
.ed-scroll > * { flex: 0 0 auto; }
.ed-slider { display: grid; grid-template-columns: 82px 1fr 38px; align-items: center; gap: 10px; }
.ed-lbl { font-size: 13px; opacity: .85; }
.ed-val { font-size: 13px; text-align: right; font-variant-numeric: tabular-nums; opacity: .85; }
.ed-range { width: 100%; accent-color: var(--wine-2, #cf4b75); height: 28px; }
.ed-hint { margin: 0; font-size: 12px; opacity: .65; }
.ed-tabs { display: flex; justify-content: space-around; border-top: 1px solid rgba(255,255,255,.12); padding: 4px 0; }
.ed-tab { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; background: none; border: 0; color: rgba(255,255,255,.6); padding: 8px 0; min-height: 52px; cursor: pointer; font-size: 18px; }
.ed-tab small { font-size: 11px; }
.ed-tab.on { color: #fff; }
.ed-tab.on small { font-weight: 700; }
.ed-filter { display: flex; flex-direction: column; align-items: center; gap: 4px; background: none; border: 0; color: #fff; padding: 3px; border-radius: 12px; cursor: pointer; }
.ed-filter img { width: 68px; height: 68px; object-fit: cover; border-radius: 10px; }
.ed-filter.on { box-shadow: 0 0 0 2px var(--wine-2, #cf4b75); }
.ed-color { width: 32px; height: 32px; border-radius: 50%; border: 2px solid rgba(255,255,255,.35); cursor: pointer; }
.ed-color.on { box-shadow: 0 0 0 3px var(--wine-2, #cf4b75); border-color: #fff; }
.ed-text-in { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.ed-root .input.ed-text-in { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.ed-root .input.ed-text-in::placeholder { color: rgba(255,255,255,.55); }
.ed-root .btn.btn-ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.3); }
.ed-root .btn.btn-ghost.active { background: rgba(255,255,255,.2); }
.ed-root .btn.btn-ghost:disabled { opacity: .4; }

/* ---------- Editor de stories ---------- */
.se-root { position: fixed; inset: 0; z-index: 120; background: #000; color: #fff; display: flex; align-items: center; justify-content: center; overflow: hidden; touch-action: none; }
.se-stage { position: relative; overflow: hidden; touch-action: none; background: #000; }
.se-bg { position: absolute; inset: 0; width: 100%; height: 100%; }
.se-layer { position: absolute; inset: 0; }
.se-item { position: absolute; white-space: pre; text-align: center; line-height: 1.22; font-weight: 700; font-family: Figtree, system-ui, sans-serif; cursor: grab; user-select: none; -webkit-user-select: none; padding: .12em .3em; border-radius: .35em; outline: none; min-width: .6em; touch-action: none; transition: opacity .15s; }
.se-text:not(.boxed) { text-shadow: 0 2px 6px rgba(0,0,0,.55); }
.se-emoji { line-height: 1; padding: 0; font-family: "Apple Color Emoji","Segoe UI Emoji","Noto Color Emoji",sans-serif; }
.se-item.selected { box-shadow: 0 0 0 1.5px rgba(255,255,255,.8); }
.se-item.editing { cursor: text; user-select: text; -webkit-user-select: text; box-shadow: none; }
.se-item.editing:empty::before { content: 'Escreve aqui…'; opacity: .6; }
.se-item.to-trash { opacity: .35; }
.se-top { position: absolute; top: 0; left: 0; right: 0; display: flex; justify-content: space-between; align-items: center; padding: calc(10px + env(safe-area-inset-top)) 12px 10px; background: linear-gradient(rgba(0,0,0,.45), transparent); pointer-events: none; }
.se-top > *, .se-top-right > * { pointer-events: auto; }
.se-top-right { display: flex; gap: 10px; }
.se-icon { width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(0,0,0,.45); color: #fff; font-size: 20px; font-weight: 800; cursor: pointer; }
.se-bottom { position: absolute; right: 12px; bottom: calc(14px + env(safe-area-inset-bottom)); }
.se-done { height: 46px; padding: 0 20px; border-radius: 999px; border: 0; background: #fff; color: #111; font: inherit; font-weight: 700; cursor: pointer; }
.se-hint { position: absolute; left: 16px; right: 16px; top: 50%; transform: translateY(-50%); text-align: center; font-size: 14px; background: rgba(0,0,0,.45); padding: 10px 14px; border-radius: 14px; pointer-events: none; }
.se-trash { position: absolute; left: 50%; bottom: calc(80px + env(safe-area-inset-bottom)); transform: translateX(-50%) scale(.8); width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: rgba(0,0,0,.55); border: 2px solid rgba(255,255,255,.6); opacity: 0; pointer-events: none; transition: all .15s; }
.se-root.dragging .se-trash { opacity: 1; transform: translateX(-50%) scale(1); }
.se-trash.hot { background: #c0392b; transform: translateX(-50%) scale(1.15) !important; }
.se-root.dragging .se-tools, .se-root.dragging .se-bottom { opacity: 0; pointer-events: none; }
.se-tools { position: absolute; left: 0; right: 0; bottom: calc(72px + env(safe-area-inset-bottom)); padding: 8px 12px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.se-colors { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.se-color { width: 30px; height: 30px; border-radius: 50%; border: 2px solid #fff; cursor: pointer; }
.se-color.on { box-shadow: 0 0 0 3px rgba(255,255,255,.55); transform: scale(1.12); }
.se-tools-row { display: flex; align-items: center; gap: 10px; }
.se-lbl { font-size: 12px; opacity: .85; }
.se-size { flex: 1; accent-color: #fff; height: 28px; }
.se-pill { height: 36px; padding: 0 14px; border-radius: 999px; border: 1.5px solid rgba(255,255,255,.7); background: rgba(0,0,0,.35); color: #fff; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; }
.se-pill-strong { background: #fff; color: #111; border-color: #fff; }
.se-emojis { position: absolute; left: 0; right: 0; bottom: 0; max-height: 46vh; overflow-y: auto; display: grid; grid-template-columns: repeat(auto-fill, minmax(52px, 1fr)); gap: 4px; padding: 14px 12px calc(14px + env(safe-area-inset-bottom)); background: rgba(20,10,16,.94); border-radius: 18px 18px 0 0; z-index: 2; }
.se-emoji-pick { height: 52px; font-size: 32px; background: none; border: 0; border-radius: 12px; cursor: pointer; }
.se-emoji-pick:active { background: rgba(255,255,255,.12); }

/* ---------- Proteção de conteúdo ---------- */
.wm-layer { position: fixed; inset: 0; z-index: 110; pointer-events: none; background-image: var(--wm-light); background-repeat: repeat; }
@media (prefers-color-scheme: light) { :root:not([data-theme="dark"]) .wm-layer { background-image: var(--wm-dark); } }
.story-viewer ~ .wm-layer, body:has(.story-viewer) .wm-layer { background-image: var(--wm-light); }
body.public .wm-layer { display: none; }
.shield-layer { position: fixed; inset: 0; z-index: 10000; display: grid; place-items: center; padding: 24px; background: #0b0508; color: #fff; text-align: center; }
.shield-layer[hidden] { display: none; }
.shield-layer div { display: flex; flex-direction: column; gap: 8px; max-width: 320px; }
.shield-layer strong { font-size: 20px; }
.shield-layer span { font-size: 14px; opacity: .75; }
img, video, canvas, .avatar { -webkit-user-drag: none; -webkit-touch-callout: none; }
.post-media, .story-viewer, .grid, .profile-grid { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
@media print {
  body > * { display: none !important; }
  body::after { content: 'A impressão está desativada no Coupgram.'; display: block; padding: 40px; font: 16px sans-serif; }
}
.se-pill { white-space: nowrap; }
.chat-story-ref { margin-bottom: 6px; }
.chat-story-gone { display: inline-block; font-size: 12px; padding: 6px 10px; border-radius: 10px; background: rgba(0,0,0,.18); opacity: .85; }

/* ---------- Editor de vídeo ---------- */
.ve-root .ed-stage { position: relative; }
.ve-frame { position: relative; overflow: hidden; border-radius: 6px; box-shadow: 0 0 0 1px rgba(255,255,255,.12); background: #000; touch-action: none; }
.ve-canvas { width: 100%; height: 100%; display: block; }
.ve-layer { position: absolute; inset: 0; }
.ve-play { position: absolute; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 64px; height: 64px; border-radius: 50%; border: 0; background: rgba(0,0,0,.5); color: #fff; font-size: 24px; cursor: pointer; transition: opacity .2s; }
.ve-play.playing { opacity: 0; }
.ve-stage:hover .ve-play.playing, .ve-play.playing:focus { opacity: .8; }
.ve-bar { text-align: center; padding: 2px 12px 0; }
.ve-time { font-size: 12px; opacity: .75; font-variant-numeric: tabular-nums; }
.ve-emojis { display: grid; grid-template-columns: repeat(auto-fill, minmax(46px, 1fr)); gap: 2px; }
.ve-emojis .se-emoji-pick { height: 46px; font-size: 28px; }
.ve-progress { position: absolute; inset: 0; z-index: 5; background: rgba(11,5,8,.88); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px; padding: 40px; }
.ve-progress[hidden] { display: none; }
.ve-track { width: 80%; max-width: 320px; height: 6px; border-radius: 99px; background: rgba(255,255,255,.15); overflow: hidden; }
.ve-progress-bar { height: 100%; width: 0; background: var(--wine-2, #cf4b75); transition: width .2s; }
.ve-progress span { font-size: 14px; opacity: .85; text-align: center; }
