/* =========================================================================
   Volupta — light polish on top of the Circula theme (common.css + site.css).
   The member views are built from Bootstrap components (.btn-*, .card, …); this
   aligns them to the Circula design language. Focus: a professional, consistent
   button system. Palette stays the native Circula light theme.
   ========================================================================= */

/* --- Buttons: refined shape, weight, spacing --- */
.btn {
  border-radius: 10px;
  font-weight: 500;
  padding: .5rem 1.05rem;
  line-height: 1.4;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease, transform .04s ease;
}
.btn:active { transform: translateY(1px); }
.btn-lg { border-radius: 12px; padding: .72rem 1.5rem; font-size: 1rem; }
.btn-sm { border-radius: 8px; padding: .3rem .7rem; }

/* Primary = Circula ink — a professional near-black button on white. */
.btn-primary {
  --bs-btn-bg: var(--cx-ink);
  --bs-btn-border-color: var(--cx-ink);
  --bs-btn-hover-bg: #000;
  --bs-btn-hover-border-color: #000;
  --bs-btn-active-bg: #000;
  --bs-btn-active-border-color: #000;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
  --bs-btn-disabled-bg: var(--cx-muted-2);
  --bs-btn-disabled-border-color: var(--cx-muted-2);
}

/* Secondary / outline = clean hairline button. */
.btn-outline-secondary {
  --bs-btn-color: var(--cx-ink);
  --bs-btn-border-color: var(--cx-line);
  --bs-btn-bg: #fff;
  --bs-btn-hover-bg: var(--cx-surface);
  --bs-btn-hover-border-color: var(--cx-muted-2);
  --bs-btn-hover-color: var(--cx-ink);
  --bs-btn-active-bg: var(--cx-surface-2);
  --bs-btn-active-border-color: var(--cx-muted-2);
  --bs-btn-active-color: var(--cx-ink);
}

/* Publish / positive action. */
.btn-success {
  --bs-btn-bg: #1f9d57;
  --bs-btn-border-color: #1f9d57;
  --bs-btn-hover-bg: #188047;
  --bs-btn-hover-border-color: #188047;
  --bs-btn-active-bg: #157540;
  --bs-btn-color: #fff;
  --bs-btn-hover-color: #fff;
}

/* Like / delete / favorite — softer outlines than raw Bootstrap. */
.btn-outline-danger {
  --bs-btn-color: #d13c4b;
  --bs-btn-border-color: rgba(209, 60, 75, .4);
  --bs-btn-hover-bg: #d13c4b;
  --bs-btn-hover-border-color: #d13c4b;
}
.btn-outline-warning {
  --bs-btn-color: #b5892b;
  --bs-btn-border-color: rgba(214, 165, 51, .5);
  --bs-btn-hover-bg: #e0a641;
  --bs-btn-hover-border-color: #e0a641;
  --bs-btn-hover-color: #fff;
}

/* Accessible focus ring in the Circula accent. */
.btn:focus-visible {
  outline: 0;
  box-shadow: 0 0 0 .2rem rgba(91, 91, 214, .3);
}

/* Icon + label alignment inside buttons. */
.btn i.bi { vertical-align: -1px; }

/* =========================================================================
   Standardised post card (feed / profile / favorites).
   Fixed square, cover-cropped media so the grid stays uniform + premium.
   ========================================================================= */
.fx-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  background: #fff;
  border: 1px solid var(--cx-line);
  border-radius: 14px;
  overflow: hidden;
  transition: box-shadow .16s ease, transform .1s ease, border-color .16s ease;
}
.fx-card:hover {
  border-color: var(--cx-surface-2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .09);
  transform: translateY(-2px);
}
.fx-card__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  background: var(--cx-surface);
  overflow: hidden;
}
.fx-card__el { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-card__embed {
  background:
    radial-gradient(120% 120% at 50% 0%, #2a2a30, #121216 70%);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  color: rgba(255, 255, 255, .5);
}
.fx-card__embed .bi { font-size: 1.9rem; opacity: .8; }
.fx-card__embed small { font-size: .66rem; letter-spacing: .02em; padding: 0 8px;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* the generic play badge is redundant on a tile that already says "play" */
.fx-card__media:has(.fx-card__embed) .fx-card__play { display: none; }
.fx-card:hover .fx-card__el { transform: scale(1.03); transition: transform .35s ease; }
.fx-card__play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 2.4rem;
  background: rgba(0, 0, 0, .22);
  text-shadow: 0 2px 12px rgba(0, 0, 0, .5);
}
.fx-card__flag {
  position: absolute; top: 8px; left: 8px;
  display: inline-flex; align-items: center;
  background: rgba(0, 0, 0, .6); color: #fff;
  border-radius: 999px; padding: 2px 8px; font-size: .72rem;
}
.fx-card__body {
  display: flex; flex-direction: column;
  flex: 1 1 auto;
  padding: .6rem .75rem .65rem;
}
.fx-card__cap {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
  color: var(--cx-ink); text-decoration: none;
  font-size: .85rem; line-height: 1.35;
}
.fx-card__cap:hover { color: var(--cx-accent); }
.fx-card__meta {
  display: flex; align-items: center; gap: .85rem;
  margin-top: auto; padding-top: .5rem;
  color: var(--cx-muted); font-size: .8rem;
}
.fx-card__del { border: 0; background: none; padding: 0; color: var(--cx-muted-2); line-height: 1; }
.fx-card__del:hover { color: #d13c4b; }

/* =========================================================================
   Single post view — premium editorial layout.
   ========================================================================= */
.fx-post { max-width: 620px; margin: 0 auto; }
.fx-avatar {
  width: 42px; height: 42px; flex: 0 0 auto;
  border-radius: 50%; object-fit: cover;
  background: var(--cx-surface); color: var(--cx-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600;
}
.fx-avatar--sm { width: 32px; height: 32px; font-size: .8rem; }
.fx-post__head { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.fx-post__name { font-weight: 600; color: var(--cx-ink); text-decoration: none; line-height: 1.15; }
.fx-post__name:hover { color: var(--cx-accent); }
.fx-post__sub { color: var(--cx-muted); font-size: .8rem; }
.fx-post__sub a { color: var(--cx-muted); }
.fx-post__media {
  border-radius: 16px; overflow: hidden; text-align: center;
  border: 1px solid var(--cx-line); background: var(--cx-surface);
}
.fx-media-el { display: block; width: 100%; height: auto; max-height: 90vh; object-fit: cover; margin: 0; }
.fx-post__caption {
  margin-top: 1.1rem; font-size: 1.05rem; line-height: 1.6;
  color: var(--cx-ink-2); white-space: pre-line;
}
.fx-tags { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: .4rem; }
.fx-tag {
  font-size: .78rem; padding: .25rem .65rem; border-radius: 999px;
  background: var(--cx-soft); color: var(--cx-ink-2); text-decoration: none;
}
.fx-tag:hover { background: var(--cx-soft-hover); color: var(--cx-ink); }
.fx-tag--on { background: var(--cx-ink); color: #fff; }
.fx-tag--on:hover { background: #000; color: #fff; }
.fx-actions {
  display: flex; align-items: center; gap: .25rem;
  margin-top: 1.1rem; padding: .35rem 0;
  border-top: 1px solid var(--cx-line); border-bottom: 1px solid var(--cx-line);
}
.fx-act {
  display: inline-flex; align-items: center; gap: .35rem;
  border: 0; background: none; cursor: pointer;
  color: var(--cx-muted); font-size: .9rem; font-weight: 500;
  padding: .45rem .65rem; border-radius: 10px; text-decoration: none;
}
.fx-act:hover { background: var(--cx-soft); color: var(--cx-ink); }
.fx-act--like.fx-act--on { color: #e0245e; }
.fx-act--fav.fx-act--on { color: #e0a641; }
.fx-comments { margin-top: 1.5rem; }
.fx-comment { display: flex; gap: .65rem; padding: .75rem 0; border-top: 1px solid var(--cx-line); }
.fx-comment:first-of-type { border-top: 0; }
.fx-comment__body { flex: 1 1 auto; min-width: 0; }
.fx-comment__name { font-weight: 600; font-size: .85rem; color: var(--cx-ink); text-decoration: none; }
.fx-comment__name:hover { color: var(--cx-accent); }
.fx-comment__text { font-size: .92rem; color: var(--cx-ink-2); white-space: pre-line; margin-top: .1rem; }
.fx-comment__del { border: 0; background: none; color: var(--cx-muted-2); padding: 0 .2rem; }
.fx-comment__del:hover { color: #d13c4b; }
.fx-composer { margin-top: 1.1rem; }

/* =========================================================================
   Shared page kit — headers, sections, empty states, tiles, list rows.
   ========================================================================= */
.fx-page { max-width: 940px; margin: 0 auto; }
.fx-page--narrow { max-width: 620px; }

.fx-phead { display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; margin-bottom: 1.4rem; }
.fx-phead__title { font-size: 1.7rem; font-weight: 600; letter-spacing: -.02em; margin: 0; line-height: 1.1; }
.fx-phead__sub { color: var(--cx-muted); margin: .2rem 0 0; font-size: .92rem; }
.fx-section { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--cx-muted-2); margin: 1.7rem 0 .75rem; }
/* optional count badge on a section heading (kinks list/matches/inbox) */
.fx-section { display: flex; align-items: center; gap: 8px; }
.fx-section__n { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px;
  border-radius: 999px; background: var(--cx-line); color: var(--cx-muted); font-size: .7rem; letter-spacing: 0; }

.fx-empty { text-align: center; padding: 2.6rem 1.25rem; color: var(--cx-muted); border: 1px dashed var(--cx-line); border-radius: 16px; background: var(--cx-surface); }
.fx-empty__i { font-size: 1.9rem; color: var(--cx-muted-2); display: block; margin-bottom: .5rem; }
.fx-empty a { color: var(--cx-accent); }

/* Profile header. */
.fx-profile { display: flex; gap: 1.3rem; align-items: center; }
.fx-profile__avatar {
  width: 92px; height: 92px; flex: 0 0 auto;
  border-radius: 50%; object-fit: cover; border: 1px solid var(--cx-line);
  background: var(--cx-surface); color: var(--cx-muted);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 2rem; font-weight: 600;
}
.fx-profile__name { font-size: 1.55rem; font-weight: 600; letter-spacing: -.02em; margin: 0; }
.fx-profile__stats { display: flex; gap: 1.4rem; margin-top: .55rem; color: var(--cx-muted); font-size: .92rem; }
.fx-profile__stats strong { color: var(--cx-ink); font-weight: 600; }
.fx-profile__bio { color: var(--cx-ink-2); white-space: pre-line; margin: 1rem 0 0; max-width: 62ch; }

/* Uniform gif tile (gallery + board). */
.fx-gif { position: relative; display: block; aspect-ratio: 1 / 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--cx-line); background: var(--cx-surface); }
.fx-gif__img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.fx-gif:hover .fx-gif__img { transform: scale(1.04); }
.fx-gif__act { position: absolute; top: 6px; right: 6px; display: flex; gap: .3rem; opacity: 0; transition: opacity .15s ease; }
.fx-gif:hover .fx-gif__act { opacity: 1; }
.fx-gif__btn { width: 28px; height: 28px; border: 0; border-radius: 8px; background: rgba(0, 0, 0, .6); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; text-decoration: none; cursor: pointer; }
.fx-gif__btn:hover { background: #000; color: #fff; }
.fx-gif__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: .9rem .6rem .4rem; background: linear-gradient(transparent, rgba(0, 0, 0, .65)); color: #fff; font-size: .75rem; }
.fx-gif__tags { position: absolute; top: 6px; left: 6px; max-width: calc(100% - 44px); display: flex; flex-wrap: wrap; gap: .25rem; }
.fx-gif__tag { max-width: 100%; padding: .15rem .4rem; border-radius: 6px; background: rgba(0, 0, 0, .6); color: #fff; font-size: .65rem; line-height: 1.2; font-weight: 600; letter-spacing: .01em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
/* "Vrei să-i trimiți ceva?" — the send button is a small icon that only shows on hover,
   so nothing about a tile says it can be sent. This slides in just under the action bar,
   pointing at it, and the button beats once so the eye lands there. */
.fx-gif__nudge {
  position: absolute; top: 38px; right: 6px; z-index: 2;
  max-width: calc(100% - 12px);
  padding: .22rem .45rem; border-radius: 8px;
  background: rgba(0, 0, 0, .74); color: #fff;
  font-size: .62rem; font-weight: 600; line-height: 1.3; letter-spacing: .01em;
  opacity: 0; transform: translateX(8px);
  /* Delayed in, instant out — so dragging the pointer across the grid doesn't set off
     a row of labels, but leaving a tile clears it at once. */
  transition: opacity .16s ease, transform .16s ease;
  pointer-events: none;   /* a tap here belongs to the video underneath */
}
.fx-gif__nudge .bi { opacity: .85; }
.fx-gif:hover .fx-gif__nudge { opacity: 1; transform: none; transition-delay: .22s; }
.fx-gif:hover .fx-gif__btn--send { animation: fx-send-beat 1.1s ease-in-out .22s 2; }

/* One swell and back, twice — a nod toward the button, not a flashing badge. The pink is
   the same attention colour as .moment-launch, not --cx-accent (the kernel's indigo link
   colour): in this app pink is what means "send this to your person". */
@keyframes fx-send-beat {
  0%, 100% { transform: scale(1); background: rgba(0, 0, 0, .6); }
  45%      { transform: scale(1.22); background: #d6336c; }
}

/* No hover to reveal any of it: keep the buttons permanently visible (otherwise the send
   button is unreachable on a phone) and let the first tile carry the label for the grid. */
@media (hover: none) {
  .fx-gif__act { opacity: 1; }
  .fx-gif__nudge--lead { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fx-gif__nudge { transform: none; transition: opacity .16s ease; }
  .fx-gif:hover .fx-gif__btn--send { animation: none; }
}

/* Performer names on a tile — under the title, inside the same bottom gradient. */
.fx-gif__title { display: block; }
.fx-gif__stars { display: block; font-size: .68rem; font-weight: 600; opacity: .95; }
.fx-gif__star { color: #fff; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .45); }
.fx-gif__star:hover { color: #fff; border-bottom-color: #fff; }

/* Performer filter row — same pills as tags, with a label so the two axes read apart. */
.fx-tags--stars { margin-top: .4rem; align-items: center; }
.fx-tags__label { font-size: .72rem; font-weight: 600; letter-spacing: .02em; text-transform: uppercase; color: var(--cx-muted-2); margin-right: .15rem; }

/* Name selector: chips over one text box (see Gallery/index.php). Named fx-names, not
   fx-picker — .fx-picker is already the chat idea picker's flex/grid shell below. */
.fx-names__chips { display: flex; flex-wrap: wrap; gap: .35rem; margin-bottom: .4rem; }
.fx-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .78rem; padding: .2rem .3rem .2rem .6rem; border-radius: 999px;
  background: var(--cx-ink); color: #fff;
}
.fx-chip__x {
  border: 0; background: rgba(255, 255, 255, .2); color: #fff; cursor: pointer;
  width: 16px; height: 16px; border-radius: 50%; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; padding: 0;
}
.fx-chip__x:hover { background: rgba(255, 255, 255, .38); }

/* Board tile (index / profile). */
.fx-boardcard { display: block; height: 100%; border: 1px solid var(--cx-line); border-radius: 14px; overflow: hidden; background: #fff; color: var(--cx-ink); text-decoration: none; transition: box-shadow .16s ease, transform .1s ease; }
.fx-boardcard:hover { box-shadow: 0 12px 30px rgba(0, 0, 0, .09); transform: translateY(-2px); color: var(--cx-ink); }
.fx-boardcard__cover { aspect-ratio: 16 / 10; background: var(--cx-surface); display: flex; align-items: center; justify-content: center; color: var(--cx-muted-2); font-size: 1.7rem; }
.fx-boardcard__body { padding: .7rem .85rem; }
.fx-boardcard__title { font-weight: 600; }

/* People / conversation list rows. */
.fx-list { display: flex; flex-direction: column; gap: .5rem; }
.fx-listrow { display: flex; align-items: center; gap: .8rem; padding: .7rem .9rem; border: 1px solid var(--cx-line); border-radius: 12px; background: #fff; color: var(--cx-ink); text-decoration: none; transition: border-color .15s ease, box-shadow .15s ease; }
.fx-listrow:hover { border-color: var(--cx-surface-2); box-shadow: 0 6px 18px rgba(0, 0, 0, .05); color: var(--cx-ink); }
.fx-listrow--unread { border-color: rgba(91, 91, 214, .35); background: rgba(91, 91, 214, .03); }
.fx-listrow__main { flex: 1 1 auto; min-width: 0; }
.fx-listrow__title { font-weight: 600; line-height: 1.2; }
.fx-listrow__sub { color: var(--cx-muted); font-size: .85rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-pill { display: inline-flex; align-items: center; padding: .1rem .55rem; border-radius: 999px; font-size: .72rem; font-weight: 600; background: var(--cx-soft); color: var(--cx-ink-2); }
.fx-pill--accent { background: var(--cx-accent); color: #fff; }
.fx-pill--live { background: #e7f7ee; color: #1f7a46; }

/* =========================================================================
   Stacked social feed — full-width posts one under the other.
   ========================================================================= */
.fx-feed { display: flex; flex-direction: column; gap: 1.4rem; }
.fx-fpost {
  background: #fff;
  border: 1px solid var(--cx-line);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.fx-fpost__head { display: flex; align-items: center; gap: .7rem; padding: .8rem 1rem; }
.fx-fpost__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.fx-fpost__name { font-weight: 600; color: var(--cx-ink); text-decoration: none; }
.fx-fpost__name:hover { color: var(--cx-accent); }
.fx-fpost__time { color: var(--cx-muted); font-size: .78rem; }
.fx-fpost__open { margin-left: auto; color: var(--cx-muted-2); font-size: .85rem; padding: .3rem .4rem; border-radius: 8px; }
.fx-fpost__open:hover { color: var(--cx-ink); background: var(--cx-soft); }
.fx-fpost__media {
  display: block;
  background: var(--cx-surface);
  border-top: 1px solid var(--cx-line);
  border-bottom: 1px solid var(--cx-line);
}
/* Media fills the card width; very tall media is center-cropped instead of pillar-boxed. */
.fx-fpost__media .fx-media-el { width: 100%; height: auto; max-height: 85vh; object-fit: cover; }
.fx-fpost__actions { display: flex; align-items: center; gap: .15rem; padding: .3rem .6rem; }
.fx-fpost__body { padding: 0 1rem .85rem; }
.fx-fpost__cap { color: var(--cx-ink-2); white-space: pre-line; font-size: .95rem; line-height: 1.5; }
.fx-fpost__cap strong { color: var(--cx-ink); }

/* "Share something…" composer prompt on top of the feed. */
.fx-cta {
  display: flex; align-items: center; gap: .8rem;
  padding: .75rem .9rem; margin-bottom: 1.4rem;
  background: #fff; border: 1px solid var(--cx-line); border-radius: 16px;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.fx-cta:hover { border-color: var(--cx-surface-2); box-shadow: 0 6px 18px rgba(0, 0, 0, .05); }
.fx-cta__hint {
  flex: 1 1 auto; min-width: 0;
  padding: .55rem .95rem; border-radius: 999px;
  background: var(--cx-surface); color: var(--cx-muted); font-size: .92rem;
}
.fx-cta:hover .fx-cta__hint { background: var(--cx-soft); color: var(--cx-ink-2); }
.fx-cta__go {
  width: 38px; height: 38px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 50%; background: var(--cx-ink); color: #fff;
}

/* =========================================================================
   Discover — people cards in the classic feed grid.
   ========================================================================= */
.fx-person {
  display: flex; flex-direction: column; height: 100%;
  background: #fff; border: 1px solid var(--cx-line); border-radius: 14px;
  overflow: hidden; text-decoration: none; color: var(--cx-ink);
  transition: box-shadow .16s ease, transform .1s ease, border-color .16s ease;
}
.fx-person:hover {
  color: var(--cx-ink);
  border-color: var(--cx-surface-2);
  box-shadow: 0 12px 30px rgba(0, 0, 0, .09);
  transform: translateY(-2px);
}
.fx-person__media { display: block; aspect-ratio: 1 / 1; background: var(--cx-surface); overflow: hidden; }
.fx-person__img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-person:hover .fx-person__img { transform: scale(1.03); transition: transform .35s ease; }
.fx-person__initial {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 2.6rem; font-weight: 600; color: var(--cx-muted-2);
  background: radial-gradient(120% 120% at 50% 0%, var(--cx-surface), var(--cx-surface-2));
}
.fx-person__body { display: flex; flex-direction: column; gap: .3rem; flex: 1 1 auto; padding: .65rem .8rem .75rem; }
.fx-person__name { font-weight: 600; line-height: 1.2; }
.fx-person__bio {
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  color: var(--cx-muted); font-size: .82rem; line-height: 1.35;
  margin-bottom: .35rem;
}

/* =========================================================================
   Composer — visual gallery picker + sectioned form card.
   ========================================================================= */
.fx-composer-card { overflow: visible; }
.fx-composer-card__section { padding: 1rem 1.1rem; border-bottom: 1px solid var(--cx-line); }
.fx-composer-card__section:last-of-type { border-bottom: 0; }
.fx-composer-card__foot { display: flex; justify-content: flex-end; gap: .5rem; padding: .9rem 1.1rem; background: var(--cx-surface); }
.fx-picker {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: .5rem;
  padding: 2px;
}
.fx-pick { position: relative; margin: 0; padding: 0; border: 0; background: none; cursor: pointer; }
.fx-pick img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover; display: block;
  border-radius: 10px; border: 2px solid transparent;
  outline: 1px solid var(--cx-line);
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.fx-pick:hover img { transform: scale(1.03); }
.fx-pick:focus-visible img { border-color: var(--cx-accent); box-shadow: 0 0 0 3px rgba(91, 91, 214, .25); }

/* Chip showing the applied gallery pick in the composer. */
.fx-pickchip {
  display: inline-flex; align-items: center; gap: .5rem;
  padding: .25rem .6rem .25rem .3rem;
  border: 1px solid var(--cx-line); border-radius: 999px; background: #fff;
}
.fx-pickchip img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.fx-pickchip__title { font-size: .88rem; color: var(--cx-ink-2); max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-pickchip button { border: 0; background: none; color: var(--cx-muted); padding: 0 .15rem; line-height: 1; }
.fx-pickchip button:hover { color: #d13c4b; }

/* =========================================================================
   Messages — a two-pane full-bleed chat workspace (conversation rail +
   thread), modeled on the Deflexio AI chat (assistant-chat.css).
   ========================================================================= */
.fx-chat-page .bn-main--bleed { padding: 0; }
/* the workspace fills the viewport exactly — no footer, no page scroll */
.fx-chat-page .cx-footer { display: none; }

.fx-chat {
  display: flex;
  height: calc(100dvh - var(--cx-nav-h));
  min-height: 480px;
  background: #fff;
  color: var(--cx-ink);
}

/* ---- Conversation rail ---- */
.fx-chat__rail {
  flex: 0 0 300px; width: 300px;
  display: flex; flex-direction: column;
  padding: 14px;
  border-right: 1px solid var(--cx-line);
  background: #fbfbfa;
}
.fx-chat__rail-label { margin: 6px 8px 8px; font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .07em; color: var(--cx-muted-2); }
.fx-chat__list { flex: 1; overflow-y: auto; display: flex; flex-direction: column; gap: 2px; }
.fx-chat__rail-empty { color: var(--cx-muted); font-size: 13px; padding: 8px 11px; line-height: 1.5; }
.fx-chat__item {
  display: flex; align-items: center; gap: .7rem;
  padding: .5rem .6rem; border-radius: 12px;
  color: var(--cx-ink); text-decoration: none;
  transition: background .12s;
}
.fx-chat__item:hover { background: #eceae6; color: var(--cx-ink); }
.fx-chat__item.is-active { background: color-mix(in srgb, var(--cx-accent) 12%, #fff); }
.fx-chat__item.is-active .fx-chat__item-title { color: var(--cx-accent); }
.fx-chat__item .fx-avatar { width: 42px; height: 42px; font-size: .95rem; flex: none; }
.fx-chat__item-main { flex: 1 1 auto; min-width: 0; }
.fx-chat__item-title { display: block; font-weight: 600; font-size: .92rem; line-height: 1.3; }
.fx-chat__item-sub { display: block; color: var(--cx-muted); font-size: .82rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-chat__item.is-unread .fx-chat__item-sub { color: var(--cx-ink-2); font-weight: 500; }
.fx-chat__badge {
  min-width: 20px; height: 20px; padding: 0 .4rem; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--cx-accent); color: #fff;
  font-size: .7rem; font-weight: 700;
}

/* ---- Main pane ---- */
.fx-chat__main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.fx-chat__head { display: flex; align-items: center; gap: .7rem; padding: 10px 22px; border-bottom: 1px solid var(--cx-line); min-height: 60px; }
.fx-chat__head .fx-avatar { width: 38px; height: 38px; font-size: .9rem; }
.fx-chat__who { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.fx-chat__name { font-weight: 600; color: var(--cx-ink); text-decoration: none; }
.fx-chat__name:hover { color: var(--cx-accent); }
.fx-chat__sub { color: var(--cx-muted); font-size: .78rem; }
/* presence: "Online acum" gets a green dot; last-seen text stays muted */
.fx-chat__sub.is-online { color: #1f9d55; font-weight: 500; }
.fx-chat__sub.is-online::before { content: ''; display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #22c55e; margin-right: .35rem; vertical-align: 1px; box-shadow: 0 0 0 2px #fff; }
/* rail: an online partner wears a dot on the avatar */
.fx-av-wrap { position: relative; flex: none; display: inline-flex; }
.fx-online-dot { display: none; position: absolute; right: 0; bottom: 0; width: 11px; height: 11px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.fx-av-wrap.is-online .fx-online-dot { display: block; }
/* back to the rail — the rail is always visible on desktop, so mobile-only */
.fx-chat__back { display: none; border: 0; background: none; cursor: pointer; color: var(--cx-muted); font-size: 1.15rem; text-decoration: none; padding: .3rem .5rem; border-radius: 10px; }
.fx-chat__back:hover { background: var(--cx-soft); color: var(--cx-ink); }

/* welcome pane (no thread open) */
.fx-chat__welcome { margin: auto; text-align: center; color: var(--cx-muted); padding: 24px; }
.fx-chat__welcome i { font-size: 42px; color: var(--cx-accent); }
.fx-chat__welcome h2 { font-size: 25px; margin: 14px 0 4px; color: var(--cx-ink); font-weight: 500; }

/* ---- Transcript ---- */
.fx-chat__scroll { flex: 1; overflow-y: auto; overflow-anchor: none; }
.fx-chat__messages {
  max-width: 768px; margin: 0 auto;
  padding: 26px 20px 34px;
  display: flex; flex-direction: column; gap: .35rem;
}
.chat-msg { display: flex; }
.chat-msg--me { justify-content: flex-end; }
.chat-msg--in { animation: fx-msg-in .22s cubic-bezier(.22, 1, .36, 1); }
@keyframes fx-msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .chat-msg--in { animation: none; } }

/* ---- Text pills ---- */
.chat-bubble {
  display: inline-block; max-width: 74%;
  padding: 9px 14px; border-radius: 20px;
  font-size: 15px; line-height: 1.5; white-space: pre-line;
  overflow-wrap: anywhere;
}
.chat-msg--me .chat-bubble {
  background: linear-gradient(135deg, #6f6ff2 0%, var(--cx-accent) 100%);
  color: #fff; border-bottom-right-radius: 6px;
  box-shadow: 0 3px 12px rgba(91, 91, 214, .22);
}
.chat-msg--them .chat-bubble {
  background: #fff; color: var(--cx-ink);
  border: 1px solid var(--cx-line); border-bottom-left-radius: 6px;
  box-shadow: 0 1px 2px rgba(16, 16, 30, .05);
}

/* ---- Shared post / gif / board → a self-contained media card, not text in a
   coloured bubble. When a bubble holds a share it drops its padding + fill and
   becomes the card frame; the image goes full-bleed, the text gets its own pad. */
.chat-bubble:has(.chat-share) {
  padding: 0; max-width: 300px;
  background: #fff; color: var(--cx-ink);
  border: 1px solid var(--cx-line); border-radius: 18px; overflow: hidden;
  box-shadow: 0 6px 20px rgba(16, 16, 30, .10);
  transition: transform .16s ease, box-shadow .16s ease;
  /* the card is built from block elements — don't let source newlines (pre-line)
     render as blank lines between the image, title and note. */
  white-space: normal;
}
/* but a user-typed note keeps its own line breaks */
.chat-text { white-space: pre-line; }
.chat-msg--me .chat-bubble:has(.chat-share) { box-shadow: 0 8px 24px rgba(91, 91, 214, .18); }
.chat-bubble:has(.chat-share):hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(16, 16, 30, .16); }
.chat-share { display: block; }
.chat-share > a { display: block; }
.chat-share__label {
  display: flex; align-items: center; gap: 5px;
  padding: 11px 14px 9px;
  font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  color: var(--cx-accent);
}
.chat-share__thumb {
  display: block; width: 100%; margin: 0; border-radius: 0;
  aspect-ratio: 16 / 10; object-fit: cover;
  transition: transform .3s ease;
}
.chat-share:hover .chat-share__thumb { transform: scale(1.03); }
.chat-share__title {
  display: block; padding: 11px 14px; font-weight: 600; font-size: 14px;
  line-height: 1.35; color: var(--cx-ink); text-decoration: none;
}
a.chat-share__title:hover { color: var(--cx-accent); }
.chat-share em { display: block; padding: 12px 14px; }
/* The sender's note that rides along with a shared card = a caption footer. */
.chat-bubble:has(.chat-share) .chat-text {
  display: block; margin: 0; padding: 0 14px 12px;
  font-size: 14px; line-height: 1.45; color: var(--cx-ink-2);
}
/* Title directly followed by a note: tighten the seam between them. */
.chat-share:has(+ .chat-text) .chat-share__title { padding-bottom: 4px; }
.chat-text { display: block; margin-top: .15rem; }

/* ---- Composer ---- */
.fx-chat__composer {
  max-width: 768px; width: 100%; margin: 0 auto;
  padding: 0 20px 8px;
  display: flex; align-items: center; gap: 10px;
}
.fx-chat__input {
  flex: 1 1 auto; min-width: 0;
  border: 1px solid var(--cx-line); border-radius: 16px;
  padding: 12px 15px; font-size: 15px; line-height: 1.5;
  background: #fff; color: var(--cx-ink);
  transition: border-color .15s, box-shadow .15s;
}
.fx-chat__input::placeholder { color: var(--cx-muted); }
.fx-chat__input:focus { outline: 0; border-color: var(--cx-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cx-accent) 16%, transparent); }
.fx-chat__send {
  flex: 0 0 46px; width: 46px; height: 46px;
  border: 0; border-radius: 14px;
  background: var(--cx-accent); color: #fff; font-size: 18px;
  display: grid; place-items: center;
  transition: filter .15s;
}
.fx-chat__send:hover { filter: brightness(1.06); }
.fx-chat__send:active { transform: translateY(1px); }
.fx-chat__hint { max-width: 768px; margin: 0 auto; padding: 5px 20px 14px; color: var(--cx-muted-2); font-size: 12px; text-align: center; }
.fx-chat__hint .bi { font-size: 11px; }

/* ---- Intimate extras: composer "+" tray, whisper mode, sparks ---- */
.fx-chat__plus {
  flex: 0 0 42px; width: 42px; height: 46px; border: 0; background: none; cursor: pointer;
  color: var(--cx-muted); font-size: 22px; display: grid; place-items: center; border-radius: 12px;
  transition: transform .18s ease, color .12s, background .12s;
}
.fx-chat__plus:hover { color: var(--cx-ink); background: var(--cx-soft); }
.fx-chat__plus.is-open { transform: rotate(45deg); color: var(--cx-accent); }

/* the tray (whisper · secret photo · dare · mood · sparks) */
.fx-chat__tray {
  max-width: 768px; width: 100%; margin: 0 auto; padding: 4px 20px 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(96px, 1fr)); gap: 8px;
}
.fx-chat__tray[hidden] { display: none; }
.fx-tray-act {
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
  border: 1px solid var(--cx-line); background: #fff; border-radius: 14px; padding: 10px 6px; cursor: pointer;
  color: var(--cx-ink); transition: border-color .12s, box-shadow .12s, transform .12s;
}
.fx-tray-act:hover { border-color: var(--cx-accent); box-shadow: 0 4px 14px rgba(16,16,30,.08); transform: translateY(-1px); }
.fx-tray-act .bi { font-size: 1.25rem; }
.fx-tray-act span { font-weight: 600; font-size: .82rem; }
.fx-tray-act small { color: var(--cx-muted); font-size: .68rem; line-height: 1.2; }
.fx-tray-act--whisper .bi { color: #e0518d; }
.fx-tray-act--photo .bi { color: var(--cx-accent); }
.fx-tray-act--spark .bi { color: #e5a50a; }

/* one-tap sparks */
.fx-chat__sparks {
  max-width: 768px; width: 100%; margin: 0 auto; padding: 6px 20px 0;
  display: flex; flex-wrap: wrap; gap: 7px;
}
.fx-chat__sparks[hidden] { display: none; }
.fx-spark {
  border: 1px solid var(--cx-line); background: #fff; color: var(--cx-ink);
  border-radius: 999px; padding: 6px 13px; font-size: .85rem; cursor: pointer;
  transition: background .12s, border-color .12s, transform .06s;
}
.fx-spark:hover { border-color: var(--cx-accent); background: color-mix(in srgb, var(--cx-accent) 8%, #fff); }
.fx-spark:active { transform: scale(.97); }

/* whisper mode — the composer glows warm and the send button turns to flame */
.fx-chat__composer.is-whisper .fx-chat__input {
  border-color: #e0518d; box-shadow: 0 0 0 3px color-mix(in srgb, #e0518d 16%, transparent);
  background: color-mix(in srgb, #e0518d 5%, #fff);
}
.fx-chat__composer.is-whisper .fx-chat__send { background: linear-gradient(135deg, #f0669b 0%, #e0518d 100%); }
.fx-chat__composer.is-whisper .fx-chat__plus { color: #e0518d; }

/* ---- The "view once" bubble ---- */
.chat-eph {
  display: inline-flex; align-items: center; gap: 11px;
  width: var(--chat-card-w); max-width: var(--chat-card-w);
  padding: 11px 15px; border-radius: 18px; font: inherit; text-align: left; cursor: default;
  border: 1px solid var(--cx-line); background: #fff;
}
.chat-msg--me .chat-eph { border-bottom-right-radius: 6px; }
.chat-msg--them .chat-eph { border-bottom-left-radius: 6px; }
.chat-eph__icon {
  flex: none; width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.05rem; background: var(--cx-surface-2); color: var(--cx-muted);
}
.chat-eph__label { display: flex; flex-direction: column; min-width: 0; line-height: 1.25; }
.chat-eph__t { font-weight: 600; font-size: .92rem; }
.chat-eph__s { font-size: .74rem; color: var(--cx-muted); }

/* live = the recipient's unopened secret; glowing + tappable */
.chat-eph--live { cursor: pointer; border-width: 0; color: #fff; transition: transform .12s, box-shadow .12s, filter .12s; }
.chat-eph--live .chat-eph__icon { background: rgba(255,255,255,.22); color: #fff; }
.chat-eph--live .chat-eph__s { color: rgba(255,255,255,.85); }
.chat-eph--live.chat-eph--whisper { background: linear-gradient(135deg, #f0669b 0%, #d6417d 100%); box-shadow: 0 6px 18px rgba(214,65,125,.32); }
.chat-eph--live.chat-eph--photo { background: linear-gradient(135deg, #6f6ff2 0%, var(--cx-accent) 100%); box-shadow: 0 6px 18px rgba(91,91,214,.32); }
.chat-eph--live:hover { transform: translateY(-1px); filter: brightness(1.05); }
.chat-eph--live:active { transform: scale(.98); }
.chat-eph--live .chat-eph__icon { animation: eph-pulse 1.8s ease-in-out infinite; }
@keyframes eph-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) { .chat-eph--live .chat-eph__icon { animation: none; } }
.chat-eph--live.is-loading { opacity: .6; pointer-events: none; }

/* spent = sent-by-me, or already opened */
.chat-eph--spent { background: var(--cx-surface); border-style: dashed; }
.chat-eph--spent.is-viewed { opacity: .7; }

/* ---- Full-screen reveal overlay ---- */
.eph-overlay {
  position: fixed; inset: 0; z-index: 1080;
  background: rgba(12, 10, 18, .92); backdrop-filter: blur(6px);
  display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px;
}
.eph-overlay[hidden] { display: none; }
.eph-overlay__bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; }
.eph-overlay__ttl { color: rgba(255,255,255,.9); font-weight: 600; font-size: .95rem; }
.eph-overlay__close { border: 0; background: rgba(255,255,255,.12); color: #fff; width: 40px; height: 40px; border-radius: 50%; cursor: pointer; font-size: 1.1rem; display: grid; place-items: center; }
.eph-overlay__close:hover { background: rgba(255,255,255,.22); }
.eph-overlay__inner { max-width: 640px; width: 100%; display: flex; align-items: center; justify-content: center; }
.eph-photo { max-width: 100%; max-height: 76vh; border-radius: 16px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.eph-whisper {
  color: #fff; font-size: clamp(1.4rem, 4vw, 2rem); line-height: 1.4; text-align: center; font-weight: 500;
  margin: 0; padding: 24px; max-width: 620px;
}
.eph-overlay__note { margin: 18px 0 0; color: rgba(255,255,255,.62); font-size: .84rem; text-align: center; }

/* countdown ring (timed reveal) */
.eph-ring { position: absolute; top: 14px; left: 20px; width: 30px; height: 30px; transform: rotate(-90deg); }
.eph-ring[hidden] { display: none; }
.eph-ring__track { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 3; }
.eph-ring__bar { fill: none; stroke: #fff; stroke-width: 3; stroke-linecap: round; }
/* keep-in-vault button */
.eph-keep { margin-top: 20px; border: 0; border-radius: 999px; padding: 11px 20px; cursor: pointer; font: inherit; font-weight: 600; font-size: .92rem;
  background: linear-gradient(135deg, #f0669b 0%, #d6417d 100%); color: #fff; display: inline-flex; align-items: center; gap: 7px; box-shadow: 0 8px 22px rgba(214,65,125,.4); }
.eph-keep[hidden] { display: none; }
.eph-keep:hover { filter: brightness(1.05); }

/* extra tray tints + the two new pickers */
.fx-tray-act--dare .bi { color: #7a5cff; }
.fx-tray-act--mood .bi { color: #e0518d; }
.fx-tray-act--post .bi { color: var(--cx-accent); }
.fx-tray-act--gif .bi { color: #22a06b; }

/* Media picker (share a feed post / gallery gif) */
.fx-chat__media { max-width: 768px; width: 100%; margin: 0 auto; padding: 6px 20px 0; display: flex; flex-direction: column; gap: 8px; }
.fx-chat__media[hidden] { display: none; }
.fx-media-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(116px, 1fr)); gap: 8px; max-height: 46vh; overflow-y: auto; }
/* Tag filter chips + pager for the paginated gif picker */
.fx-media-tags { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: thin; }
.fx-media-tags[hidden] { display: none; }
.fx-media-tag { flex: none; border: 1px solid var(--cx-line); background: #fff; color: var(--cx-ink); border-radius: 999px; padding: 5px 12px; font: inherit; font-size: .8rem; font-weight: 600; cursor: pointer; white-space: nowrap; }
.fx-media-tag:hover { border-color: var(--cx-accent); }
.fx-media-tag.is-on { background: var(--cx-ink); color: #fff; border-color: var(--cx-ink); }
.fx-media-pager { display: flex; align-items: center; justify-content: center; gap: 14px; padding-top: 2px; }
.fx-media-pager[hidden] { display: none; }
.fx-media-pg { width: 32px; height: 32px; border: 1px solid var(--cx-line); background: #fff; color: var(--cx-ink); border-radius: 9px; cursor: pointer; display: grid; place-items: center; }
.fx-media-pg:hover:not(:disabled) { border-color: var(--cx-accent); color: var(--cx-accent); }
.fx-media-pg:disabled { opacity: .4; cursor: default; }
.fx-media-pglabel { font-size: .84rem; font-weight: 600; color: var(--cx-muted); min-width: 52px; text-align: center; }
.fx-media-cell { border: 1px solid var(--cx-line); background: var(--cx-surface); border-radius: 12px; overflow: hidden; cursor: pointer; padding: 0; aspect-ratio: 1; transition: transform .1s, box-shadow .12s, border-color .12s; }
.fx-media-cell:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(16,16,30,.12); border-color: var(--cx-accent); }
.fx-media-cell img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-media-cell__none { display: grid; place-items: center; width: 100%; height: 100%; color: var(--cx-muted-2); font-size: 1.3rem; }
.fx-media-cell.is-selected { border-color: var(--cx-accent); box-shadow: 0 0 0 2px var(--cx-accent); }
.fx-media-loading { grid-column: 1 / -1; display: grid; place-items: center; padding: 24px 0; }
.fx-media-empty { grid-column: 1 / -1; color: var(--cx-muted); font-size: .86rem; text-align: center; padding: 20px 0; margin: 0; }
.fx-chat__picker { max-width: 768px; width: 100%; margin: 0 auto; padding: 6px 20px 0; display: flex; flex-direction: column; gap: 8px; max-height: 46vh; overflow-y: auto; }
.fx-chat__picker[hidden] { display: none; }
.fx-picker__group { display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.fx-picker__label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--cx-muted-2); width: 100%; }
.fx-picker__label .bi { color: var(--cx-accent); }
.fx-picker__chips { display: flex; flex-wrap: wrap; gap: 7px; width: 100%; }
/* Truth-or-Dare head with the "New set" shuffle */
.fx-picker__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fx-picker__title { font-weight: 600; font-size: .9rem; color: var(--cx-ink); display: inline-flex; align-items: center; gap: 6px; }
.fx-picker__title .bi { color: #e0518d; }
.fx-picker__shuffle { border: 1px solid var(--cx-line); background: #fff; color: var(--cx-accent); border-radius: 999px; padding: 5px 12px; font-size: .8rem; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.fx-picker__shuffle:hover { border-color: var(--cx-accent); background: color-mix(in srgb, var(--cx-accent) 7%, #fff); }
.fx-picker__shuffle:active { transform: scale(.97); }

/* Sparks graded from sweet → filthy (l0..l3): the heat rises with the tier. */
.fx-picker__label--l0 { color: #22a06b; }
.fx-picker__label--l1 { color: #e0518d; }
.fx-picker__label--l2 { color: #ef6c2a; }
.fx-picker__label--l3 { color: #c0392b; }
.fx-spark--l0 { border-color: color-mix(in srgb, #22a06b 32%, var(--cx-line)); }
.fx-spark--l0:hover { background: color-mix(in srgb, #22a06b 9%, #fff); border-color: #22a06b; }
.fx-spark--l1 { border-color: color-mix(in srgb, #e0518d 32%, var(--cx-line)); }
.fx-spark--l1:hover { background: color-mix(in srgb, #e0518d 9%, #fff); border-color: #e0518d; }
.fx-spark--l2 { border-color: color-mix(in srgb, #ef6c2a 34%, var(--cx-line)); }
.fx-spark--l2:hover { background: color-mix(in srgb, #ef6c2a 9%, #fff); border-color: #ef6c2a; }
.fx-spark--l3 { border-color: color-mix(in srgb, #c0392b 38%, var(--cx-line)); color: #a3271b; font-weight: 500; }
.fx-spark--l3:hover { background: color-mix(in srgb, #c0392b 9%, #fff); border-color: #c0392b; }

/* Truth / Dare — two "tap for random" cards side by side. */
.fx-chat__picker--tor { flex-direction: row; gap: 8px; }
.fx-tor {
  flex: 1 1 0; display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
  border: 1px solid var(--cx-line); background: #fff; border-radius: 14px; padding: 12px 6px; cursor: pointer; color: var(--cx-ink);
  transition: border-color .12s, box-shadow .12s, transform .1s;
}
.fx-tor:hover { box-shadow: 0 4px 14px rgba(16,16,30,.08); transform: translateY(-1px); }
.fx-tor:active { transform: scale(.98); }
.fx-tor .bi { font-size: 1.3rem; }
.fx-tor span { font-weight: 600; font-size: .9rem; }
.fx-tor small { color: var(--cx-muted); font-size: .68rem; }
.fx-tor--truth { border-color: color-mix(in srgb, #7a5cff 35%, var(--cx-line)); }
.fx-tor--truth .bi { color: #7a5cff; }
.fx-tor--truth:hover { border-color: #7a5cff; }
.fx-tor--dare { border-color: color-mix(in srgb, #e0518d 35%, var(--cx-line)); }
.fx-tor--dare .bi { color: #e0518d; }
.fx-tor--dare:hover { border-color: #e0518d; }

/* burn timer chip — only in whisper mode */
.fx-chat__timer { display: none; flex: none; align-items: center; gap: 4px; border: 1px solid #e0518d; background: #fff; color: #e0518d;
  border-radius: 999px; padding: 6px 11px; font: inherit; font-size: .78rem; font-weight: 600; cursor: pointer; }
.fx-chat__composer.is-whisper .fx-chat__timer { display: inline-flex; }
.fx-chat__timer.is-on { background: #e0518d; color: #fff; }

/* ---- Truth / Dare flip card ---- */
.chat-dare { width: var(--chat-card-w); max-width: var(--chat-card-w); }
.chat-dare__face {
  display: flex; flex-direction: column; align-items: center; gap: 3px; width: 190px; max-width: 100%;
  padding: 20px 16px; border: 0; border-radius: 18px; cursor: pointer; color: #fff; font: inherit;
  transition: transform .12s, filter .12s; box-shadow: 0 8px 20px rgba(16,16,30,.14);
}
.chat-dare__face:hover { transform: translateY(-2px); filter: brightness(1.04); }
.chat-dare__face .bi { font-size: 1.6rem; }
.chat-dare__flavor { font-weight: 700; font-size: 1.05rem; letter-spacing: .01em; }
.chat-dare__hint { font-size: .72rem; opacity: .82; }
.chat-dare--truth .chat-dare__face { background: linear-gradient(135deg, #8a6cff 0%, #6a4bff 100%); }
.chat-dare--dare .chat-dare__face { background: linear-gradient(135deg, #f0669b 0%, #d6417d 100%); }
.chat-dare__back {
  border: 1px solid var(--cx-line); border-radius: 18px; padding: 13px 15px; background: #fff;
  box-shadow: 0 4px 16px rgba(16,16,30,.08); animation: fx-msg-in .22s ease;
}
.chat-dare__back[hidden] { display: none; }
.chat-dare--truth .chat-dare__back .chat-dare__flavor { color: #6a4bff; }
.chat-dare--dare .chat-dare__back .chat-dare__flavor { color: #d6417d; }
.chat-dare__back .chat-dare__flavor { font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.chat-dare__prompt { margin: 6px 0 0; font-size: 1rem; line-height: 1.45; color: var(--cx-ink); }
.chat-dare__replies { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 11px; }
.chat-dare__reply { border: 1px solid var(--cx-line); background: var(--cx-surface); border-radius: 999px; padding: 5px 12px; font-size: .82rem; cursor: pointer; }
.chat-dare__reply:hover { border-color: var(--cx-accent); background: color-mix(in srgb, var(--cx-accent) 8%, #fff); }

/* ---- Idea: tray tint, chat card, and the private preview overlay ---- */
.fx-tray-act--idea .bi { color: #e5a50a; }
.chat-idea { width: var(--chat-card-w); max-width: var(--chat-card-w); border: 1px solid color-mix(in srgb, #e5a50a 34%, var(--cx-line)); border-radius: 16px; padding: 12px 14px;
  background: linear-gradient(160deg, color-mix(in srgb, #e5a50a 9%, #fff) 0%, #fff 72%); box-shadow: 0 4px 16px rgba(16,16,30,.07); }
.chat-idea__tag { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #b9820a; }
.chat-idea__gif { display: block; width: 100%; height: 200px; object-fit: cover; border-radius: 12px; margin: 8px 0 0; }
.chat-idea__text { margin: 8px 0 0; font-size: 1rem; line-height: 1.45; color: var(--cx-ink); }

.idea-overlay { position: fixed; inset: 0; z-index: 1085; background: rgba(12,10,18,.86); backdrop-filter: blur(6px); display: flex; align-items: center; justify-content: center; padding: 20px; }
.idea-overlay[hidden] { display: none; }
.idea-card { width: 100%; max-width: 460px; background: #fff; border-radius: 20px; padding: 20px; box-shadow: 0 24px 60px rgba(0,0,0,.5); animation: fx-msg-in .2s ease; }
.idea-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.idea-card__tag { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #b9820a; }
.idea-card__tag .bi { color: #e5a50a; }
.idea-card__x { border: 0; background: var(--cx-surface); color: var(--cx-muted); width: 32px; height: 32px; border-radius: 50%; cursor: pointer; display: grid; place-items: center; }
.idea-card__x:hover { background: var(--cx-line); }
.idea-card__gif { display: block; width: 100%; max-height: 240px; object-fit: cover; border-radius: 14px; margin: 14px 0 0; }
.idea-card__gif[hidden] { display: none; }
.idea-card__text { margin: 12px 0 16px; font-size: 1.18rem; line-height: 1.5; color: var(--cx-ink); font-weight: 500; min-height: 2.4em; }
.idea-card__acts { display: flex; gap: 8px; }
.idea-card__another { flex: none; border: 1px solid var(--cx-line); background: #fff; color: var(--cx-ink); border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 600; font-size: .9rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.idea-card__another:hover { border-color: #e5a50a; color: #b9820a; }
.idea-card__send { flex: 1; border: 0; border-radius: 999px; padding: 10px 16px; font: inherit; font-weight: 700; font-size: .92rem; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 7px; color: #fff; background: linear-gradient(135deg, #f0669b 0%, #d6417d 100%); box-shadow: 0 8px 22px rgba(214,65,125,.35); }
.idea-card__send:hover { filter: brightness(1.05); }
.idea-card__hint { margin: 12px 0 0; text-align: center; color: var(--cx-muted); font-size: .76rem; }

/* Idea lightbulb on a shareable gif in the picker */
.fx-media-cell { position: relative; }
.fx-media-cell__idea { position: absolute; top: 5px; right: 5px; width: 26px; height: 26px; border: 0; border-radius: 8px; cursor: pointer;
  background: rgba(20,16,10,.62); color: #ffd24d; display: grid; place-items: center; font-size: .82rem; }
.fx-media-cell__idea:hover { background: #e5a50a; color: #fff; }

/* ---- To-do: tray tint, chat card, and the new-task form ---- */
.fx-tray-act--todo .bi { color: #22a06b; }
.chat-todo { width: var(--chat-card-w); max-width: var(--chat-card-w); border: 1px solid color-mix(in srgb, #22a06b 30%, var(--cx-line)); border-radius: 16px; padding: 12px 14px;
  background: linear-gradient(160deg, color-mix(in srgb, #22a06b 8%, #fff) 0%, #fff 72%); box-shadow: 0 4px 16px rgba(16,16,30,.07); }
.chat-todo.is-done { opacity: .72; }
.chat-todo__tag { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #1c7d54; }
.chat-todo__gif { display: block; width: 100%; height: 180px; object-fit: cover; border-radius: 12px; margin: 8px 0 0; }

/* "Loading older history" spinner at the top of the thread (scroll-up pagination) */
.fx-chat__older { display: flex; justify-content: center; align-items: center; padding: 12px 0; }
.fx-chat__older[hidden] { display: none; }
.chat-todo__title { margin: 8px 0 0; font-size: 1.02rem; font-weight: 600; line-height: 1.35; color: var(--cx-ink); }
.chat-todo.is-done .chat-todo__title { text-decoration: line-through; }
.chat-todo__desc { margin: 4px 0 0; font-size: .9rem; line-height: 1.4; color: var(--cx-muted); }
.chat-todo__deadline { margin: 8px 0 0; font-size: .8rem; color: var(--cx-muted); display: inline-flex; align-items: center; gap: 5px; }
.chat-todo__deadline.is-overdue { color: #c0392b; font-weight: 600; }
.chat-todo__foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 12px; }
.chat-todo__for { font-size: .76rem; color: var(--cx-muted-2); }
.chat-todo__done { border: 0; border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 600; font-size: .82rem; cursor: pointer;
  color: #fff; background: linear-gradient(135deg, #2bb673 0%, #1c9c60 100%); display: inline-flex; align-items: center; gap: 5px; }
.chat-todo__done:hover { filter: brightness(1.05); }
.chat-todo__done:disabled { opacity: .6; cursor: default; }
.chat-todo__badge { font-size: .8rem; font-weight: 600; color: #1c7d54; display: inline-flex; align-items: center; gap: 5px; }

.idea-card__tag--todo { color: #1c7d54; }
.idea-card__tag--todo .bi { color: #22a06b; }
.todo-form__input, .todo-form__area { width: 100%; border: 1px solid var(--cx-line); border-radius: 12px; padding: 10px 12px; font: inherit; font-size: .95rem; margin-top: 10px; background: #fff; color: var(--cx-ink); }
.todo-form__input:focus, .todo-form__area:focus { outline: 0; border-color: #22a06b; box-shadow: 0 0 0 3px color-mix(in srgb, #22a06b 16%, transparent); }
.todo-form__area { resize: vertical; }
.todo-form__label { display: block; margin: 12px 0 0; font-size: .78rem; font-weight: 600; color: var(--cx-muted); }
.todo-form__gifrow { display: flex; align-items: center; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.todo-form__gifbtn { border: 1px dashed var(--cx-line); background: var(--cx-surface); color: var(--cx-ink); border-radius: 10px; padding: 8px 14px; font: inherit; font-size: .86rem; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.todo-form__gifbtn:hover { border-color: #22a06b; color: #1c7d54; }
.todo-form__gifpreview { position: relative; display: inline-flex; }
.todo-form__gifpreview img { width: 52px; height: 52px; object-fit: cover; border-radius: 10px; }
.todo-form__gifpreview button { position: absolute; top: -7px; right: -7px; width: 22px; height: 22px; border: 0; border-radius: 50%; background: #000; color: #fff; cursor: pointer; display: grid; place-items: center; font-size: .7rem; }
.todo-form__grid { margin-top: 10px; max-height: 34vh; }

/* ---- /todos list page ---- */
.fx-todos { display: flex; flex-direction: column; gap: 12px; margin-bottom: 8px; }
.fx-todos--done { opacity: .82; }
.fx-todo { display: flex; gap: 14px; border: 1px solid var(--cx-line); border-radius: 16px; padding: 14px; background: var(--cx-surface); }
.fx-todo.is-overdue { border-color: color-mix(in srgb, #c0392b 40%, var(--cx-line)); }
.fx-todo.is-done { background: #fff; }
.fx-todo__media { flex: none; }
.fx-todo__media img { width: 92px; height: 92px; object-fit: cover; border-radius: 12px; display: block; }
.fx-todo__body { flex: 1 1 auto; min-width: 0; }
.fx-todo__meta { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.fx-todo__from { font-size: .8rem; color: var(--cx-muted); }
.fx-todo__from strong { color: var(--cx-ink); font-weight: 600; }
.fx-todo__status { font-size: .68rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; padding: 3px 9px; border-radius: 999px; }
.fx-todo__status--open { background: color-mix(in srgb, #22a06b 14%, #fff); color: #1c7d54; }
.fx-todo__status--done { background: var(--cx-line); color: var(--cx-muted); }
.fx-todo__title { margin: 6px 0 0; font-size: 1.05rem; font-weight: 600; color: var(--cx-ink); }
.fx-todo.is-done .fx-todo__title { text-decoration: line-through; color: var(--cx-muted); }
.fx-todo__desc { margin: 4px 0 0; font-size: .9rem; line-height: 1.45; color: var(--cx-muted); }
.fx-todo__deadline { margin: 8px 0 0; font-size: .82rem; color: var(--cx-muted); display: inline-flex; align-items: center; gap: 5px; }
.fx-todo__deadline.is-overdue { color: #c0392b; font-weight: 600; }
.fx-todo__acts { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.fx-todo__btn { border: 1px solid var(--cx-line); background: #fff; color: var(--cx-ink); border-radius: 999px; padding: 7px 14px; font: inherit; font-weight: 600; font-size: .84rem; cursor: pointer; display: inline-flex; align-items: center; gap: 5px; }
.fx-todo__btn:hover { border-color: var(--cx-accent); }
.fx-todo__btn--done { border: 0; color: #fff; background: linear-gradient(135deg, #2bb673 0%, #1c9c60 100%); }
.fx-todo__btn--done:hover { filter: brightness(1.05); }
.fx-todo__btn--del { color: #c0392b; }
.fx-todo__btn--del:hover { border-color: #c0392b; background: color-mix(in srgb, #c0392b 7%, #fff); }

/* ---- Mood ping (centered pill) ---- */
.chat-msg--center { justify-content: center; }
.chat-mood__pill {
  display: inline-flex; align-items: center; gap: 7px; padding: 7px 15px; border-radius: 999px;
  font-size: .86rem; font-weight: 500; color: #b02a63;
  background: linear-gradient(135deg, color-mix(in srgb, #e0518d 14%, #fff), color-mix(in srgb, #e0518d 7%, #fff));
  border: 1px solid color-mix(in srgb, #e0518d 22%, #fff);
}
.chat-mood__emoji { font-size: 1.05rem; }

/* ---- Vault link in the chat header ---- */
.fx-chat__vault { margin-left: auto; color: var(--cx-muted); font-size: 1.05rem; text-decoration: none; padding: .35rem .55rem; border-radius: 10px; }
.fx-chat__vault:hover { background: color-mix(in srgb, #e0518d 10%, #fff); color: #d6417d; }

/* ---- Header mood glow (discreet incoming-mood indicator) ---- */
.cx-mood {
  position: relative; display: inline-flex; align-items: center; gap: 6px; text-decoration: none;
  padding: 5px 12px 5px 10px; border-radius: 999px; font-size: .82rem; font-weight: 600; color: #d6417d;
  background: color-mix(in srgb, #e0518d 12%, #fff); border: 1px solid color-mix(in srgb, #e0518d 28%, #fff);
  animation: cx-mood-glow 2.2s ease-in-out infinite;
}
.cx-mood[hidden] { display: none; }
.cx-mood__emoji { font-size: 1rem; }
@keyframes cx-mood-glow { 0%, 100% { box-shadow: 0 0 0 0 rgba(224,81,141,.32); } 50% { box-shadow: 0 0 0 7px rgba(224,81,141,0); } }
@media (prefers-reduced-motion: reduce) { .cx-mood { animation: none; } }

/* ---- Vault page ---- */
.fx-vault { max-width: 900px; margin: 0 auto; }
.fx-vault__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; margin-top: 1.2rem; }
.fx-vault__item { position: relative; border-radius: 14px; overflow: hidden; border: 1px solid var(--cx-line); background: var(--cx-surface); aspect-ratio: 1; }
.fx-vault__item img { width: 100%; height: 100%; object-fit: cover; display: block; }
.fx-vault__del { position: absolute; top: 7px; right: 7px; border: 0; width: 30px; height: 30px; border-radius: 50%; cursor: pointer;
  background: rgba(12,10,18,.55); color: #fff; display: grid; place-items: center; opacity: 0; transition: opacity .12s; }
.fx-vault__item:hover .fx-vault__del { opacity: 1; }
.fx-vault__del:hover { background: #c0392b; }

/* ---- Minimal footer (a single quiet line) ---- */
.fx-footer { border-top: 1px solid var(--cx-line); background: #fff; padding: 1.1rem 0; margin-top: 2rem; }
.fx-footer .container-cx { display: flex; align-items: center; gap: .8rem; }
.fx-footer__brand { display: inline-flex; align-items: center; gap: .45rem; font-weight: 600; color: var(--cx-ink); text-decoration: none; font-size: .95rem; }
.fx-footer__brand:hover { color: var(--cx-accent); }
.fx-footer__meta { color: var(--cx-muted); font-size: .82rem; margin-left: auto; }
/* the chat page hides the footer entirely (full-height workspace) — already handled by .fx-chat-page .cx-footer; keep both names covered */
.fx-chat-page .fx-footer { display: none; }

/* ---- Message edit / delete ---- */
.chat-msg { align-items: flex-end; }
.chat-msg__acts {
  display: inline-flex; align-items: center; gap: 1px; align-self: center;
  opacity: 0; max-width: 0; overflow: hidden;
  transition: opacity .12s ease, max-width .12s ease;
}
.chat-msg--me .chat-msg__acts { order: -1; }   /* sit to the LEFT of my bubble */
.chat-msg:hover .chat-msg__acts,
.chat-msg.show-acts .chat-msg__acts { opacity: 1; max-width: 64px; }
.chat-msg__act {
  border: 0; background: none; cursor: pointer; color: var(--cx-muted-2);
  padding: 5px 6px; border-radius: 8px; font-size: .82rem; line-height: 1;
  transition: background .12s, color .12s;
}
.chat-msg__act:hover { background: var(--cx-soft); color: var(--cx-ink); }
.chat-msg__act[data-del]:hover { background: #f7e8e6; color: #c0392b; }
/* WhatsApp-style ticks after my bubble: ✓ sent · ✓✓ delivered (grey) · ✓✓ read (blue) */
.chat-ticks { flex: none; align-self: flex-end; margin-left: 4px; margin-bottom: 4px; font-size: .95rem; line-height: 1; color: var(--cx-muted-2); }
.chat-ticks.is-read { color: #34b7f1; }
/* "edited" tag inside a bubble (inherits the bubble's text colour) */
.chat-msg__edited { display: inline-block; margin-left: 6px; font-size: .66rem; opacity: .6; vertical-align: baseline; white-space: nowrap; }

/* editing banner above the composer */
.fx-chat__editbar {
  max-width: 768px; width: 100%; margin: 0 auto; padding: 8px 20px 0;
  display: flex; align-items: center; gap: 8px; font-size: .85rem;
}
.fx-chat__editbar[hidden] { display: none; }
.fx-chat__editbar > .bi { color: var(--cx-accent); }
.fx-chat__editbar-txt { flex: 1; color: var(--cx-ink-2); min-width: 0; }
.fx-chat__editbar-x { border: 0; background: none; color: var(--cx-muted); cursor: pointer; padding: 3px 7px; border-radius: 7px; }
.fx-chat__editbar-x:hover { background: var(--cx-soft); color: var(--cx-ink); }
.fx-chat__composer.is-editing .fx-chat__input { border-color: var(--cx-accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--cx-accent) 14%, transparent); }

/* ---- Mobile: thread and rail share one screen. The thread is primary (we land
   in the last chat); "back" slides the full-width rail over it. ---- */
@media (max-width: 720px) {
  .fx-chat__rail { display: none; }
  .fx-chat.show-rail .fx-chat__rail { display: flex; flex: 1; width: auto; border-right: 0; }
  .fx-chat.show-rail .fx-chat__main { display: none; }
  .fx-chat__back { display: inline-flex; }
  .chat-bubble { max-width: 88%; }
}

/* Edit post — read-only media preview above the form. */
.fx-editpreview { background: var(--cx-surface); border-bottom: 1px solid var(--cx-line); }
.fx-editpreview .fx-media-el { width: 100%; height: auto; max-height: 340px; object-fit: cover; display: block; }
/* A video whose provider published no og:image has nothing to preview — show the shape
   of one rather than collapsing the strip to nothing. */
.fx-editpreview__blank { height: 180px; display: grid; place-items: center; color: var(--cx-muted-2); font-size: 2.4rem; }
/* Where the item came from: read-only, because the source is the item's identity. */
.fx-srcline { display: flex; align-items: baseline; gap: .5rem; font-size: .85rem; }
.fx-srcline__label { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--cx-muted-2); }
.fx-srcline a { color: var(--cx-accent); text-decoration: none; }
.fx-srcline a:hover { text-decoration: underline; }

/* Gallery page — collapsible "add" panel. */
.fx-adder { border: 1px solid var(--cx-line); border-radius: 14px; background: #fff; overflow: hidden; }
.fx-adder__toggle {
  list-style: none; cursor: pointer; user-select: none;
  padding: .8rem 1rem; font-weight: 600; color: var(--cx-ink);
}
.fx-adder__toggle::-webkit-details-marker { display: none; }
.fx-adder__toggle:hover { background: var(--cx-surface); }
.fx-adder[open] .fx-adder__toggle { border-bottom: 1px solid var(--cx-line); }
.fx-adder__body { padding: 1rem; }

/* =========================================================================
   Notifications — header bell (with unread badge) + side offcanvas panel.
   ========================================================================= */
.cx-bell { position: relative; border: 0; background: none; padding: 0; cursor: pointer; }
.cx-bell .bi { line-height: 1; }
.cx-bell.has-unread .bi,
.cx-bell.is-ping .bi { animation: cx-bell-swing 1.6s ease-in-out 1; transform-origin: top center; }
@keyframes cx-bell-swing {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(11deg); } 30% { transform: rotate(-9deg); }
  45% { transform: rotate(6deg); }  60% { transform: rotate(-4deg); } 75% { transform: rotate(2deg); }
}
@media (prefers-reduced-motion: reduce) { .cx-bell.has-unread .bi, .cx-bell.is-ping .bi { animation: none; } }
.cx-bell__badge {
  position: absolute; top: 2px; right: 2px;
  min-width: 17px; height: 17px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--cx-accent); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 2px #fff;
}
.cx-bell__badge[hidden] { display: none; }
.cx-nav--overlay:not(.is-scrolled) .cx-bell__badge { box-shadow: 0 0 0 2px transparent; }

/* ---- The offcanvas (sits just below the top bar so its own header clears the nav) ---- */
.offcanvas.cx-alerts { width: 390px; max-width: 92vw; display: flex; flex-direction: column; top: var(--cx-nav-h); height: calc(100% - var(--cx-nav-h)); box-shadow: -12px 0 40px rgba(16, 16, 30, .12); }
.cx-alerts__head { border-bottom: 1px solid var(--cx-line); padding: 1rem 1.15rem; }
.cx-alerts__head .offcanvas-title { font-size: 1.05rem; font-weight: 600; display: inline-flex; align-items: center; color: var(--cx-ink); }
.cx-alerts__head .offcanvas-title .bi { color: var(--cx-accent); }
.cx-alerts__head .cx-alerts__count {
  margin-left: .5rem; min-width: 20px; height: 20px; padding: 0 6px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--cx-accent); color: #fff;
  font-size: .7rem; font-weight: 700; line-height: 1;
}
.cx-alerts__head .cx-alerts__count[hidden] { display: none; }

/* filter pills + the explicit "mark everything" escape hatch */
.cx-alerts__tools {
  display: flex; align-items: center; justify-content: space-between; gap: .5rem;
  padding: .55rem .8rem; border-bottom: 1px solid var(--cx-line);
}
.cx-alerts__filters { display: inline-flex; gap: 2px; padding: 2px; border-radius: 999px; background: var(--cx-surface-2); }
.cx-alerts__filter {
  border: 0; background: none; cursor: pointer;
  padding: .28rem .7rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; color: var(--cx-muted);
  transition: background .12s, color .12s;
}
.cx-alerts__filter:hover { color: var(--cx-ink); }
.cx-alerts__filter.is-active { background: #fff; color: var(--cx-ink); box-shadow: 0 1px 3px rgba(16, 16, 30, .1); }
.cx-alerts__allread {
  border: 0; background: none; cursor: pointer;
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .78rem; font-weight: 600; color: var(--cx-accent);
  padding: .28rem .35rem; border-radius: 8px;
}
.cx-alerts__allread:hover:not(:disabled) { background: color-mix(in srgb, var(--cx-accent) 10%, #fff); }
.cx-alerts__allread:disabled { color: var(--cx-muted-2); cursor: default; }

.cx-alerts__body { flex: 1; overflow-y: auto; padding: 8px; }
.cx-alerts__foot { border-top: 1px solid var(--cx-line); padding: .6rem 1.15rem; text-align: center; }
.cx-alerts__foot a { color: var(--cx-accent); font-size: .88rem; font-weight: 600; text-decoration: none; }
.cx-alerts__foot a:hover { text-decoration: underline; }

/* loading + empty */
.cx-alerts__loading { display: grid; place-items: center; padding: 40px 0; }
.cx-alerts__spin { width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--cx-line); border-top-color: var(--cx-accent); animation: cx-spin .7s linear infinite; }
@keyframes cx-spin { to { transform: rotate(360deg); } }
.cx-alerts__empty { text-align: center; color: var(--cx-muted); padding: 48px 24px; }
.cx-alerts__empty .bi { font-size: 34px; color: var(--cx-muted-2); }
.cx-alerts__empty p { margin: 12px 0 4px; font-size: 1rem; font-weight: 600; color: var(--cx-ink); }
.cx-alerts__empty span { font-size: .84rem; line-height: 1.45; display: block; }

/* ---- A notification row: the link, plus hover actions that sit over its right edge ---- */
.cx-alert-row { position: relative; }
.cx-alert-row + .cx-alert-row { margin-top: 2px; }
.cx-alert__actions {
  position: absolute; top: 50%; right: .5rem; transform: translateY(-50%);
  display: flex; gap: 2px; opacity: 0; pointer-events: none;
  transition: opacity .12s;
}
.cx-alert-row:hover .cx-alert__actions,
.cx-alert-row:focus-within .cx-alert__actions { opacity: 1; pointer-events: auto; }
/* the unread dot steps aside for the actions */
.cx-alert-row:hover .cx-alert__dot,
.cx-alert-row:focus-within .cx-alert__dot { opacity: 0; }
.cx-alert__act {
  border: 0; cursor: pointer;
  width: 26px; height: 26px; border-radius: 8px;
  display: grid; place-items: center;
  background: #fff; color: var(--cx-muted);
  box-shadow: 0 1px 4px rgba(16, 16, 30, .14);
  font-size: .72rem;
}
.cx-alert__act:hover { color: var(--cx-ink); }
.cx-alert__act[data-act="dismiss"]:hover { color: #d1435b; }

.cx-alert {
  display: flex; align-items: center; gap: .75rem;
  padding: .7rem .75rem; border-radius: 14px;
  color: var(--cx-ink); text-decoration: none;
  transition: background .12s;
}
.cx-alert:hover { background: var(--cx-surface); color: var(--cx-ink); }
.cx-alert.is-unread { background: color-mix(in srgb, var(--cx-accent) 7%, #fff); }
.cx-alert.is-unread:hover { background: color-mix(in srgb, var(--cx-accent) 12%, #fff); }
.cx-alert__avwrap { position: relative; flex: none; }
.cx-alert__av {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  display: grid; place-items: center; background: var(--cx-surface-2); color: var(--cx-muted);
}
.cx-alert__av--icon { font-size: 1.15rem; }
/* the little type chip that overlaps the avatar's bottom-right */
.cx-alert__chip {
  position: absolute; right: -3px; bottom: -3px;
  width: 21px; height: 21px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--cx-muted); color: #fff; font-size: .62rem;
  box-shadow: 0 0 0 2.5px #fff;
}
.cx-alert.is-unread .cx-alert__chip { box-shadow: 0 0 0 2.5px color-mix(in srgb, var(--cx-accent) 7%, #fff); }
.cx-alert__chip--message    { background: var(--cx-accent); }
.cx-alert__chip--comment    { background: #3b82f6; }
.cx-alert__chip--reblog     { background: #22a06b; }
.cx-alert__chip--follow     { background: #e0518d; }
.cx-alert__chip--quiz_taken { background: #e5a50a; }
.cx-alert__chip--comment_reply { background: #7c5cff; }
.cx-alert__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cx-alert__text { font-size: .9rem; line-height: 1.35; color: var(--cx-ink); }
.cx-alert.is-unread .cx-alert__text { font-weight: 600; }
.cx-alert__meta { display: flex; align-items: center; gap: .4rem; }
.cx-alert__time { font-size: .75rem; color: var(--cx-muted); }
/* how many events this one line collapses — see migration 048 */
.cx-alert__n {
  font-size: .68rem; font-weight: 700; line-height: 1;
  padding: 2px 5px; border-radius: 999px;
  background: var(--cx-surface-2); color: var(--cx-muted);
}
.cx-alert.is-unread .cx-alert__n { background: color-mix(in srgb, var(--cx-accent) 16%, #fff); color: var(--cx-accent); }
.cx-alert__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--cx-accent); transition: opacity .12s; }

/* the /notifications page reuses the panel's row, on a card list */
.fx-notif-filters { display: inline-flex; gap: 2px; padding: 3px; margin-bottom: 1rem; border-radius: 999px; background: var(--cx-surface-2); }
.fx-notif-filter {
  padding: .35rem .9rem; border-radius: 999px; text-decoration: none;
  font-size: .85rem; font-weight: 600; color: var(--cx-muted);
}
.fx-notif-filter:hover { color: var(--cx-ink); }
.fx-notif-filter.is-active { background: #fff; color: var(--cx-ink); box-shadow: 0 1px 3px rgba(16, 16, 30, .1); }
.fx-notif-list {
  display: flex; flex-direction: column; gap: 2px;
  padding: 6px; border: 1px solid var(--cx-line); border-radius: 18px; background: #fff;
}

/* =========================================================================
   Unread-DM badge — rides the Messages entry in every nav (desktop bar,
   mobile drawer, bottom tab bar). Fed by /notifications/feed's `messages`.
   ========================================================================= */
.cx-navbadge {
  min-width: 18px; height: 18px; padding: 0 5px; margin-left: .35rem;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--cx-accent); color: #fff;
  font-size: 10px; font-weight: 700; line-height: 1; vertical-align: middle;
}
.cx-navbadge[hidden] { display: none; }
.cx-nav-msg { display: inline-flex; align-items: center; gap: .35rem; }
.cx-m-link--badged { display: flex; align-items: center; }
.cx-m-link--badged .cx-navbadge { margin-left: auto; }

.fx-tab__ic { position: relative; display: inline-flex; }
.fx-tab__badge {
  position: absolute; top: -3px; left: 60%;
  min-width: 16px; height: 16px; padding: 0 4px;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 999px; background: var(--cx-accent); color: #fff;
  font-size: 9px; font-weight: 700; line-height: 1;
  box-shadow: 0 0 0 2px #fff;
}
.fx-tab__badge[hidden] { display: none; }

/* =========================================================================
   Mobile bottom tab bar — the primary nav on phones/tablets (< xl). Feed and
   Messages anchor it; a raised "+" in the middle posts. Hidden on desktop and
   on the full-screen Reels; the chat keeps it and sits above it.
   ========================================================================= */
/* One fixed height, so a page that sizes itself to the screen (the chat) can
   subtract exactly this — plus the home-indicator inset — and meet the bar flush. */
:root { --fx-tabbar-h: 60px; }
.fx-tabbar {
  height: calc(var(--fx-tabbar-h) + env(safe-area-inset-bottom, 0px));
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030;
  display: flex; align-items: stretch;
  background: #fff; border-top: 1px solid var(--cx-line);
  padding: 4px 6px calc(4px + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -3px 18px rgba(16, 16, 30, .07);
}
.fx-tab {
  position: relative; flex: 1 1 0; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 3px;
  padding: 7px 0 3px; border: 0; background: none; cursor: pointer;
  color: var(--cx-muted-2); text-decoration: none;
  font-size: 10.5px; font-weight: 500; line-height: 1;
  transition: color .12s;
}
.fx-tab .bi { font-size: 1.4rem; line-height: 1; }
.fx-tab:hover { color: var(--cx-ink); }
.fx-tab.is-active { color: var(--cx-accent); }
/* raised centre action */
.fx-tab--new { color: var(--cx-ink); }
.fx-tab__plus {
  width: 46px; height: 46px; margin-top: -20px; border-radius: 16px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, #6f6ff2 0%, var(--cx-accent) 100%); color: #fff;
  box-shadow: 0 8px 18px rgba(91, 91, 214, .38);
}
.fx-tab__plus .bi { font-size: 1.55rem; }
.fx-tab--new:hover .fx-tab__plus { filter: brightness(1.05); }

/* Desktop hide is Bootstrap's d-xl-none. */
/* Reserve room so the fixed bar never covers page content (members, non-chat). */
@media (max-width: 1199.98px) {
  body:has(.fx-tabbar):not(.fx-chat-page) .bn-main { padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px)); }

  /* The chat is a fixed-height workspace rather than a scrolling page, so instead of
     padding it shrinks to end exactly where the bar begins — the message box sits
     right on top of the bar, same nav as the feed. */
  .fx-chat-page .fx-chat {
    height: calc(100dvh - var(--cx-nav-h) - var(--fx-tabbar-h) - env(safe-area-inset-bottom, 0px));
  }
  /* While typing, the keyboard is the bottom of the screen: the bar steps aside and
     the conversation takes its room back (set by the chat script on focus). */
  body.fx-chat-typing .fx-tabbar { display: none; }
  .fx-chat-page.fx-chat-typing .fx-chat { height: calc(100dvh - var(--cx-nav-h)); }
}

/* =========================================================================
   Desire quiz (/kinks) — the catalog card flow, the answer scale, the member's
   own list, and the per-pair matches page. The four scale colours are reused
   everywhere a member's answer is shown (card, chat, list, matches).
   ========================================================================= */

/* answer scale palette — one source of truth for the four options */
.fx-kinks, .chat-match, .kink-card, .idea-overlay {
  --k-yes: #d6336c;
  --k-curious: #7048e8;
  --k-maybe: #f08c00;
  --k-no: #868e96;
}

/* ---- progress -------------------------------------------------------- */
.fx-kink-progress { margin: 4px 0 22px; }
.fx-kink-progress__bar { height: 6px; border-radius: 999px; background: var(--cx-line); overflow: hidden; }
.fx-kink-progress__bar > span { display: block; height: 100%; border-radius: 999px;
  background: linear-gradient(90deg, var(--k-curious) 0%, var(--k-yes) 100%); transition: width .35s ease; }
.fx-kink-progress__meta { margin-top: 8px; display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  font-size: .86rem; color: var(--cx-muted); }

.fx-kink-chip { display: inline-flex; align-items: center; gap: 4px; padding: 2px 9px; border-radius: 999px;
  font-size: .76rem; border: 1px solid var(--cx-line); background: #fff; color: var(--cx-muted); }
.fx-kink-chip b { color: var(--cx-ink); }
.fx-kink-chip--yes { border-color: color-mix(in srgb, var(--k-yes) 40%, var(--cx-line)); color: var(--k-yes); }
.fx-kink-chip--curious { border-color: color-mix(in srgb, var(--k-curious) 40%, var(--cx-line)); color: var(--k-curious); }
.fx-kink-chip--maybe { border-color: color-mix(in srgb, var(--k-maybe) 45%, var(--cx-line)); color: #b26800; }
.fx-kink-chip--no { border-color: var(--cx-line); }
.fx-kink-chip--yes b, .fx-kink-chip--curious b, .fx-kink-chip--maybe b { color: inherit; }

/* ---- filters --------------------------------------------------------- */
.fx-kink-filters { display: flex; flex-direction: column; gap: 10px; margin-bottom: 18px; }
.fx-kink-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.fx-kink-cat { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
  border: 1px solid var(--cx-line); background: #fff; color: var(--cx-muted); font-size: .82rem;
  text-decoration: none; cursor: pointer; transition: border-color .15s, color .15s; }
.fx-kink-cat:hover { border-color: var(--cx-ink); color: var(--cx-ink); }
.fx-kink-cat.is-on { border-color: var(--cx-ink); background: var(--cx-ink); color: #fff; }
.fx-kink-cat__n { font-size: .72rem; opacity: .7; }
.fx-kink-int { display: flex; align-items: center; gap: 6px; font-size: .82rem; color: var(--cx-muted); }
.fx-kink-int__btn { padding: 4px 12px; border-radius: 999px; border: 1px solid var(--cx-line);
  background: #fff; color: var(--cx-muted); font-size: .8rem; cursor: pointer; }
.fx-kink-int__btn.is-on { border-color: var(--k-yes); color: var(--k-yes); font-weight: 600; }

/* ---- the card -------------------------------------------------------- */
.fx-kink-stage { transition: opacity .18s ease, transform .18s ease; }
.fx-kink-stage.is-out { opacity: 0; transform: translateY(-6px); }
.fx-kink { border: 1px solid var(--cx-line); border-radius: 20px; padding: 20px;
  background: #fff; box-shadow: 0 6px 26px rgba(16, 16, 30, .06); }
.fx-kink--main { max-width: 620px; }
.fx-kink__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.fx-kink__cat { display: inline-flex; align-items: center; gap: 6px; font-size: .74rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--k-curious); }
.fx-kink__from { font-size: .8rem; color: var(--cx-muted); }
.fx-kink__int { font-size: .7rem; padding: 2px 9px; border-radius: 999px; border: 1px solid var(--cx-line); color: var(--cx-muted); }
.fx-kink__int--2 { border-color: color-mix(in srgb, var(--k-maybe) 45%, var(--cx-line)); color: #b26800; }
.fx-kink__int--3 { border-color: color-mix(in srgb, var(--k-yes) 45%, var(--cx-line)); color: var(--k-yes); }
.fx-kink__gif { display: block; width: 100%; height: 220px; object-fit: cover; border-radius: 14px; margin: 0 0 14px; }
.fx-kink__q { margin: 0; font-size: 1.3rem; line-height: 1.35; font-weight: 600; color: var(--cx-ink); }
.fx-kink__q--sm { font-size: 1rem; margin-bottom: 10px; }
.fx-kink__desc { margin: 8px 0 0; font-size: .88rem; line-height: 1.45; color: var(--cx-muted); }
.fx-kink__note { margin: 10px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--cx-soft, #f6f6fa);
  font-size: .86rem; color: var(--cx-ink); display: flex; gap: 7px; align-items: flex-start; }

.fx-kink__scale { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin: 18px 0 0; }
.fx-kink__opt { display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: 14px;
  border: 1px solid var(--cx-line); background: #fff; color: var(--cx-ink); font-size: .92rem; text-align: left;
  cursor: pointer; transition: border-color .15s, background .15s, transform .1s; }
.fx-kink__opt:hover { transform: translateY(-1px); }
.fx-kink__opt .bi { font-size: 1rem; }
.fx-kink__opt--yes:hover { border-color: var(--k-yes); background: color-mix(in srgb, var(--k-yes) 7%, #fff); color: var(--k-yes); }
.fx-kink__opt--curious:hover { border-color: var(--k-curious); background: color-mix(in srgb, var(--k-curious) 7%, #fff); color: var(--k-curious); }
.fx-kink__opt--maybe:hover { border-color: var(--k-maybe); background: color-mix(in srgb, var(--k-maybe) 9%, #fff); color: #b26800; }
.fx-kink__opt--no:hover { border-color: var(--k-no); background: #f8f9fa; color: var(--k-no); }

.fx-kink__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 16px; }
.fx-kink__skip, .fx-kink__send { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px;
  border-radius: 999px; font-size: .84rem; cursor: pointer; border: 1px solid var(--cx-line); background: #fff; color: var(--cx-muted); }
.fx-kink__skip:hover { color: var(--cx-ink); }
.fx-kink__send { border-color: var(--cx-ink); background: var(--cx-ink); color: #fff; }
.fx-kink__send:disabled { opacity: .45; cursor: not-allowed; }
.fx-kink__link { display: inline-flex; align-items: center; gap: 6px; font-size: .86rem; color: var(--cx-muted); text-decoration: none; }
.fx-kink__link:hover { color: var(--cx-ink); }
.fx-kink-sent { margin: 0 0 12px; padding: 9px 14px; border-radius: 12px; font-size: .86rem;
  background: color-mix(in srgb, #22a06b 10%, #fff); color: #1c7d54; display: inline-flex; align-items: center; gap: 7px; }

/* ---- inbox (questions your partner pushed) --------------------------- */
.fx-kink-inbox { display: grid; gap: 12px; margin-bottom: 26px; }
.fx-kink--inbox { border-color: color-mix(in srgb, var(--k-curious) 30%, var(--cx-line));
  background: linear-gradient(160deg, color-mix(in srgb, var(--k-curious) 5%, #fff) 0%, #fff 70%); }
.fx-kink--inbox .fx-kink__q { font-size: 1.08rem; }
.fx-kink--inbox.is-out { opacity: .4; }
.fx-kink--inbox.is-answered .fx-kink__q { font-size: 1rem; }
.fx-kink__mine { display: inline-block; margin-top: 10px; padding: 3px 11px; border-radius: 999px;
  font-size: .8rem; border: 1px solid var(--cx-line); color: var(--cx-muted); }
.fx-kink__mine--yes { border-color: var(--k-yes); color: var(--k-yes); }
.fx-kink__mine--curious { border-color: var(--k-curious); color: var(--k-curious); }
.fx-kink__mine--maybe { border-color: var(--k-maybe); color: #b26800; }
.fx-kink__verdict { margin-top: 10px; font-size: .86rem; color: var(--cx-muted); display: flex; align-items: center; gap: 7px; }
.fx-kink__verdict.is-match { color: var(--k-yes); font-weight: 600; }

/* ---- partners + matches ---------------------------------------------- */
.fx-kink-partners { display: grid; gap: 8px; max-width: 420px; }
.fx-kink-partner { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px;
  border: 1px solid var(--cx-line); background: #fff; text-decoration: none; color: var(--cx-ink); font-size: .92rem; }
.fx-kink-partner:hover { border-color: var(--cx-ink); }
.fx-kink-partner img, .fx-kink-partner__ph { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
.fx-kink-partner__ph { display: grid; place-items: center; background: var(--cx-line); color: var(--cx-muted); }
.fx-kink-partner .bi-chevron-right { margin-left: auto; color: var(--cx-muted); font-size: .8rem; }

.fx-kink-score { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--k-yes) 25%, var(--cx-line));
  background: linear-gradient(135deg, color-mix(in srgb, var(--k-yes) 7%, #fff) 0%, #fff 75%); margin-bottom: 22px; }
.fx-kink-score__big { font-size: 2.6rem; font-weight: 700; line-height: 1; color: var(--k-yes); }
.fx-kink-score__body { font-size: .9rem; color: var(--cx-muted); }
.fx-kink-score__body strong { color: var(--cx-ink); }
.fx-kink-score__hot { margin-top: 4px; font-size: .84rem; color: var(--k-yes); display: flex; align-items: center; gap: 6px; }

.fx-kink-matches { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.fx-kink-match { border: 1px solid var(--cx-line); border-radius: 16px; padding: 14px 16px; background: #fff; }
.fx-kink-match.is-perfect { border-color: color-mix(in srgb, var(--k-yes) 40%, var(--cx-line));
  background: linear-gradient(160deg, color-mix(in srgb, var(--k-yes) 6%, #fff) 0%, #fff 70%); }
.fx-kink-match__head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.fx-kink-match__name { font-weight: 600; font-size: .95rem; color: var(--cx-ink); }
.fx-kink-match.is-perfect .fx-kink-match__name { color: var(--k-yes); }
.fx-kink-match__q { margin: 6px 0 0; font-size: .88rem; color: var(--cx-ink); line-height: 1.4; }
.fx-kink-match__pair { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }

/* ---- "lista mea" rows ------------------------------------------------- */
.fx-kink-rows { display: grid; gap: 6px; margin-bottom: 22px; }
.fx-kink-row { display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 11px 14px; border-radius: 14px; border: 1px solid var(--cx-line); background: #fff;
  transition: border-color .2s; }
.fx-kink-row.is-saved { border-color: #22a06b; }
.fx-kink-row.is-error { border-color: #c0392b; }
.fx-kink-row__name { font-weight: 600; font-size: .92rem; color: var(--cx-ink); }
.fx-kink-row__q { font-size: .82rem; color: var(--cx-muted); margin-top: 2px; }
.fx-kink-row__answers { display: flex; gap: 4px; flex-shrink: 0; }
.fx-kink-row__opt { padding: 4px 10px; border-radius: 999px; border: 1px solid var(--cx-line);
  background: #fff; color: var(--cx-muted); font-size: .76rem; cursor: pointer; }
.fx-kink-row__opt.is-on { font-weight: 600; }
.fx-kink-row__opt--yes.is-on { border-color: var(--k-yes); background: var(--k-yes); color: #fff; }
.fx-kink-row__opt--curious.is-on { border-color: var(--k-curious); background: var(--k-curious); color: #fff; }
.fx-kink-row__opt--maybe.is-on { border-color: var(--k-maybe); background: var(--k-maybe); color: #fff; }
.fx-kink-row__opt--no.is-on { border-color: var(--k-no); background: var(--k-no); color: #fff; }

@media (max-width: 575.98px) {
  .fx-kink__scale { grid-template-columns: 1fr; }
  .fx-kink__foot { flex-direction: column; align-items: stretch; }
  .fx-kink__skip, .fx-kink__send { justify-content: center; }
  .fx-kink-row { flex-direction: column; align-items: flex-start; }
}

/* ---- the thread's match card + the private question tray ---------------- */
/* Questions never reach a thread — only this card, and only for a mutual yes. */
.chat-match { width: var(--chat-card-w); max-width: var(--chat-card-w); margin: 0 auto; text-align: center;
  border: 1px solid color-mix(in srgb, var(--k-curious) 32%, var(--cx-line));
  border-radius: 18px; padding: 14px 16px;
  background: linear-gradient(160deg, color-mix(in srgb, var(--k-curious) 8%, #fff) 0%, #fff 72%);
  box-shadow: 0 4px 18px rgba(16, 16, 30, .08); }
.chat-match.is-perfect { border-color: color-mix(in srgb, var(--k-yes) 45%, var(--cx-line));
  background: linear-gradient(160deg, color-mix(in srgb, var(--k-yes) 10%, #fff) 0%, #fff 72%); }
.chat-match__tag { display: inline-flex; align-items: center; gap: 5px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: var(--k-yes); }
.chat-match__gif { display: block; width: 100%; height: 150px; object-fit: cover; border-radius: 12px; margin: 9px 0 0; }
.chat-match__name { margin-top: 8px; font-size: 1rem; font-weight: 700; color: var(--cx-ink); }
.chat-match__q { margin: 3px 0 0; font-size: .86rem; line-height: 1.4; color: var(--cx-muted); }
.chat-match__pair { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px; }

/* the tray overlay card */
.kink-card { max-width: 520px; }
.kink-card__hint { display: flex; align-items: flex-start; gap: 7px; margin: 0 0 12px;
  font-size: .8rem; line-height: 1.4; color: var(--cx-muted); }
.kink-card__from { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 8px;
  padding: 3px 10px; border-radius: 999px; font-size: .76rem; font-weight: 600;
  background: color-mix(in srgb, var(--k-curious) 10%, #fff); color: var(--k-curious); }
.kink-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 8px; }
.kink-card__gif { display: block; width: 100%; height: 180px; object-fit: cover; border-radius: 14px; margin: 0 0 12px; }
.kink-card__q { margin: 0; font-size: 1.16rem; line-height: 1.35; font-weight: 600; color: var(--cx-ink); }
.kink-card__desc { margin: 7px 0 0; font-size: .85rem; line-height: 1.45; color: var(--cx-muted); }
.kink-card__note { margin: 9px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--cx-soft, #f6f6fa);
  font-size: .84rem; color: var(--cx-ink); display: flex; gap: 7px; }
.kink-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 14px; }
.kink-card__load { display: grid; place-items: center; min-height: 180px; }
.kink-card__done { padding: 26px 10px; text-align: center; font-size: .9rem; color: var(--cx-muted); }
.kink-card__done .bi { display: block; font-size: 1.8rem; margin-bottom: 8px; color: var(--k-curious); }
.kink-card__match { margin: 0 0 12px; padding: 10px 14px; border-radius: 12px; text-align: center;
  font-size: .88rem; font-weight: 600; color: var(--k-yes);
  background: color-mix(in srgb, var(--k-yes) 12%, #fff); }
.idea-card__tag--kink { color: var(--k-curious); }
.fx-tray-act--kink i { color: var(--k-curious); }

.fx-kink__hint { display: flex; gap: 7px; margin: 0 0 12px; font-size: .8rem; line-height: 1.4; color: var(--cx-muted); }

/* =========================================================================
   "Fă-ți viața picantă" — the reel. One markup, two mounts: the /spice page and
   the full-screen overlay inside a conversation. Vertical CSS scroll-snap, so a
   swipe behaves the way the phone's own reels do, with no gesture library.
   ========================================================================= */
/* the page owns the viewport below the nav — no footer, no tab bar, no page scroll,
   so a card is exactly one screen and the caption never falls under the chrome */
.fx-reel-page .bn-main--bleed { padding: 0; }
.fx-reel-page .cx-footer,
.fx-reel-page .fx-footer,
.fx-reel-page .fx-tabbar { display: none; }
.reel-page { display: flex; flex-direction: column; height: calc(100dvh - var(--cx-nav-h));
  background: #0d0d12; color: #fff; }
.reel-page__head { display: flex; align-items: center; gap: 14px; padding: 14px 18px; flex-shrink: 0; }
.reel-page__back { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.1); color: #fff; text-decoration: none; flex-shrink: 0; }
.reel-page__back:hover { background: rgba(255,255,255,.18); color: #fff; }
/* the site's heading colour would win here — the reel head sits on near-black */
.reel-page__title { margin: 0; font-size: 1.15rem; font-weight: 700; color: #fff; }
.reel-page__sub { margin: 0; font-size: .82rem; color: rgba(255,255,255,.62); }
.reel-page__filter { display: flex; gap: 14px; margin-top: 8px; font-size: .82rem; }
.reel-page__filter label { display: flex; align-items: center; gap: 6px; cursor: pointer; color: rgba(255,255,255,.7); transition: color .2s; }
.reel-page__filter label:hover { color: #fff; }
.reel-page__filter input[type="radio"] { cursor: pointer; accent-color: #7048e8; }
.reel-page .fx-empty { margin: 40px 18px; color: rgba(255,255,255,.75); }
.reel-page .fx-empty a { color: #fff; }

/* the feed itself */
.reel { position: relative; flex: 1; min-height: 0; }
.reel__feed { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory;
  -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.reel__feed::-webkit-scrollbar { display: none; }
.reel__card { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always;
  display: flex; align-items: flex-end; overflow: hidden; background: #0d0d12; }
.reel__gif { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.reel__shade { position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(6,6,10,.92) 0%, rgba(6,6,10,.55) 32%, rgba(6,6,10,0) 65%); }
.reel__body { position: relative; width: 100%; padding: 22px 20px 30px; }
.reel__tag { display: inline-block; padding: 3px 11px; border-radius: 999px; font-size: .72rem;
  font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  background: rgba(255,255,255,.16); backdrop-filter: blur(6px); color: #fff; }
.reel__text { margin: 12px 0 0; font-size: 1.32rem; line-height: 1.35; font-weight: 600; color: #fff;
  text-shadow: 0 2px 14px rgba(0,0,0,.5); }
.reel__acts { display: flex; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.reel__act { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.12); backdrop-filter: blur(8px);
  color: #fff; font-size: .88rem; cursor: pointer; transition: background .15s; }
.reel__act:hover { background: rgba(255,255,255,.22); }
.reel__act--send { border-color: transparent;
  background: linear-gradient(135deg, #7048e8 0%, #d6336c 100%); font-weight: 600; }
.reel__act--send:hover { filter: brightness(1.08); }
.reel__card.is-sent .reel__act--send { background: #22a06b; }
.reel__card--end { align-items: center; justify-content: center; text-align: center; }
.reel__card--end .reel__text { font-size: 1rem; font-weight: 400; opacity: .75; }

/* recipient sheet (page mount, where no partner is fixed) */
.reel__sheet { position: absolute; inset: 0; z-index: 4; display: grid; place-items: end center;
  background: rgba(6,6,10,.6); backdrop-filter: blur(3px); }
.reel__sheet-inner { width: 100%; max-width: 420px; padding: 16px; display: grid; gap: 8px; }
.reel__sheet-t { color: rgba(255,255,255,.7); font-size: .82rem; text-align: center; padding-bottom: 4px; }
.reel__who { padding: 13px; border-radius: 14px; border: 0; background: rgba(255,255,255,.14);
  backdrop-filter: blur(8px); color: #fff; font-size: .95rem; cursor: pointer; }
.reel__who:hover { background: rgba(255,255,255,.24); }
.reel__who--cancel { background: rgba(255,255,255,.06); color: rgba(255,255,255,.6); }

.reel__toast { position: absolute; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 5;
  display: inline-flex; align-items: center; gap: 7px; white-space: nowrap;
  padding: 10px 18px; border-radius: 999px; font-size: .88rem; font-weight: 600;
  background: rgba(34,160,107,.95); color: #fff; box-shadow: 0 6px 20px rgba(0,0,0,.35); }
.reel__toast.is-bad { background: rgba(192,57,43,.95); }

/* the in-chat overlay mount */
.reel-overlay { position: fixed; inset: 0; z-index: 1080; background: #0d0d12; display: flex; }
.reel-overlay .reel { flex: 1; }
.reel-overlay__x { position: absolute; top: 14px; right: 14px; z-index: 6;
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 0;
  background: rgba(0,0,0,.45); backdrop-filter: blur(6px); color: #fff; font-size: 1rem; cursor: pointer; }
.reel-overlay__x:hover { background: rgba(0,0,0,.65); }
body.reel-open { overflow: hidden; }
.fx-tray-act--spice i { color: #d6336c; }

@media (min-width: 768px) {
  /* keep the reel phone-shaped on a wide screen instead of stretching a gif across it */
  .reel__feed { max-width: 460px; margin: 0 auto; }
  .reel__card { border-radius: 18px; }
}

/* ---- reel tone switch (Decent / Fără perdea) -----------------------------
   Rendered by volupta-reel.js itself so both mounts get it. Floats over the
   feed, top-centre, clear of the close button on the in-chat overlay. */
.reel__tone { position: absolute; top: 12px; left: 50%; transform: translateX(-50%); z-index: 5;
  display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px;
  background: rgba(8, 8, 14, .55); backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, .16); }
.reel__tone-opt { padding: 6px 14px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: rgba(255, 255, 255, .72);
  font-size: .78rem; font-weight: 600; white-space: nowrap; transition: background .15s, color .15s; }
.reel__tone-opt:hover { color: #fff; }
.reel__tone-opt.is-on { background: linear-gradient(135deg, #7048e8 0%, #d6336c 100%); color: #fff; }
.reel-overlay .reel__tone { top: 16px; }
@media (max-width: 380px) { .reel__tone-opt { padding: 6px 11px; font-size: .74rem; } }

/* tone switch inside the chat Idee card — same control as the reel, light ground */
.idea-card__tone { display: inline-flex; gap: 2px; margin: 0 0 12px; padding: 3px;
  border-radius: 999px; background: var(--cx-soft, #f2f2f7); border: 1px solid var(--cx-line); }
.idea-card__tone-opt { padding: 5px 13px; border: 0; border-radius: 999px; cursor: pointer;
  background: transparent; color: var(--cx-muted); font-size: .76rem; font-weight: 600;
  white-space: nowrap; transition: background .15s, color .15s; }
.idea-card__tone-opt.is-on { background: linear-gradient(135deg, #7048e8 0%, #d6336c 100%); color: #fff; }

/* ---- gallery video tiles ------------------------------------------------- */
/* aspect-ratio only wins if the content can fit inside it — otherwise the automatic
   minimum size pushes the box taller. Hence the tight padding, small icon and 1-line
   clamp: at 16:9 there simply is not room for more. */
/* Fills the tile exactly like a gif does (.fx-gif is 1/1, .fx-gif__img is cover), so a
   poster covers the whole box instead of leaving a strip under a 16:9 letterbox. The
   card's own aspect-ratio governs — do not set one here. */
.fx-gif__video { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 100%; height: 100%; min-height: 0; overflow: hidden;
  border: 0; cursor: pointer; padding: 8px; text-align: center;
  background: linear-gradient(150deg, #23232e 0%, #14141b 100%); color: #fff; }
.fx-gif__video .bi { font-size: 1.5rem; opacity: .92; flex: none; }
.fx-gif__video span { font-size: .78rem; font-weight: 600; line-height: 1.2; min-height: 0;
  display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden;
  max-width: 100%; }
.fx-gif__video small { font-size: .64rem; color: rgba(255,255,255,.5); flex: none;
  max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.fx-gif__video:hover { filter: brightness(1.15); }
.fx-gif__frame { width: 100%; height: 100%; min-height: 0; border: 0; display: block; background: #000; }

/* a video shared into a thread — poster button until clicked, then the provider's player */
.chat-share__play { display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 100%; min-width: 210px; padding: 18px 14px; margin-top: 6px; border: 0; border-radius: 12px;
  cursor: pointer; text-align: center; color: #fff;
  background: linear-gradient(150deg, #23232e 0%, #14141b 100%); }
.chat-share__play .bi { font-size: 1.9rem; }
.chat-share__play span { font-size: .84rem; font-weight: 600; }
.chat-share__play small { font-size: .68rem; color: rgba(255,255,255,.5); }
.chat-share__play:hover { filter: brightness(1.15); }
.chat-share__frame { width: 100%; min-width: 240px; aspect-ratio: 16 / 9; border: 0;
  border-radius: 12px; margin-top: 6px; display: block; background: #000; }

/* =========================================================================
   "Momentul picant" — the self-surfacing video moment: a corner toast, then a
   full-screen stage with the provider's player, a note box and two ways out.
   ========================================================================= */
/* A permanent launcher tucked into the right edge, vertically centred. Always there
   rather than firing on a timer — it nudges itself larger every so often so it gets
   noticed, and costs nothing until tapped (no video fetched, no provider iframe). */
/* Button + teaser share one fixed dock, so the label is always level with the button and
   the vertical position lives in exactly one place. The dock itself is click-through —
   only its two children take pointer events, so the empty gap beside a hidden label
   never eats a click meant for the page. */
.moment-dock { position: fixed; right: 0; top: 50%; z-index: 1090;
  transform: translateY(-50%);
  display: flex; align-items: center;
  pointer-events: none; }

.moment-launch { position: relative; pointer-events: auto;
  width: 46px; height: 46px; display: grid; place-items: center; flex: none;
  border: 0; border-radius: 23px 0 0 23px; cursor: pointer; color: #fff; font-size: 1.35rem;
  background: linear-gradient(135deg, #7048e8 0%, #d6336c 100%);
  box-shadow: 0 4px 18px rgba(16, 16, 30, .32);
  transform-origin: right center;
  animation: momentNudge 14s ease-in-out infinite; }
.moment-launch:hover { filter: brightness(1.12); animation-play-state: paused; }
.moment-launch:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* Sits still most of the cycle, then swells briefly — a heartbeat, not a jiggle.
   The dock now owns the -50% centring, so this is pure scale. */
@keyframes momentNudge {
  0%, 84%, 100% { transform: scale(1); box-shadow: 0 4px 18px rgba(16, 16, 30, .32); }
  88%           { transform: scale(1.26); box-shadow: 0 6px 26px rgba(214, 51, 108, .5); }
  93%           { transform: scale(1.05); }
}

/* The line the launcher says now and then — slides out of the button and retracts. */
.moment-launch__say { pointer-events: none;
  max-width: min(64vw, 268px); margin-right: 9px;
  padding: .45rem .75rem; border-radius: 999px;
  background: rgba(16, 16, 30, .93); color: #fff;
  font-size: .78rem; font-weight: 600; line-height: 1.35; text-align: right;
  box-shadow: 0 8px 26px rgba(16, 16, 30, .3);
  cursor: pointer;
  opacity: 0; transform: translateX(14px);
  transition: opacity .3s ease, transform .3s cubic-bezier(.22, 1, .36, 1); }
.moment-launch__say.is-on { pointer-events: auto; opacity: 1; transform: none; }

/* Motion-sensitive users get a static button and a line that just fades. */
@media (prefers-reduced-motion: reduce) {
  .moment-launch { animation: none; }
  .moment-launch__say { transform: none; transition: opacity .3s ease; }
}
/* Clear of the mobile tab bar's safe area on short screens. */
@media (max-width: 1199.98px) { .moment-dock { top: 46%; } }

.moment-stage { position: fixed; inset: 0; z-index: 1100; background: #000; display: flex;
  align-items: center; justify-content: center; padding: 16px; overflow-y: auto; }
.moment-stage__x { position: absolute; top: 14px; right: 14px; z-index: 3; width: 40px; height: 40px;
  display: grid; place-items: center; border: 0; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.12); color: #fff; }
.moment-stage__x:hover { background: rgba(255,255,255,.24); }
.moment-stage__inner { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(280px, .9fr);
  gap: 20px; width: 100%; max-width: 1100px; align-items: start; }
.moment-stage__player { position: relative; width: 100%; aspect-ratio: 16 / 9;
  background: #101016; border-radius: 14px; overflow: hidden; }
.moment-stage__player iframe { width: 100%; height: 100%; border: 0; display: block; }
.moment-stage__side { color: #fff; display: flex; flex-direction: column; gap: 10px; }
.moment-stage__tag { display: inline-flex; align-items: center; gap: 6px; font-size: .72rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .05em; color: #ff8fb1; }
.moment-stage__title { margin: 6px 0 0; font-size: 1.1rem; font-weight: 700; color: #fff; }
.moment-stage__host { color: rgba(255,255,255,.45); font-size: .74rem; }
.moment-stage__label { font-size: .82rem; color: rgba(255,255,255,.72); margin-top: 6px; }
.moment-stage__note { width: 100%; padding: 11px 13px; border-radius: 12px; resize: vertical;
  border: 1px solid rgba(255,255,255,.18); background: rgba(255,255,255,.07); color: #fff; font-size: .9rem; }
.moment-stage__note::placeholder { color: rgba(255,255,255,.38); }
.moment-stage__note:focus { outline: 0; border-color: rgba(255,255,255,.42); background: rgba(255,255,255,.11); }
.moment-stage__acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 4px; }
.moment-stage__who { padding: 10px 12px; border-radius: 999px; border: 1px solid rgba(255,255,255,.22);
  background: rgba(255,255,255,.08); color: #fff; font-size: .86rem; }
.moment-stage__btn { display: inline-flex; align-items: center; gap: 7px; padding: 10px 16px; border-radius: 999px;
  border: 1px solid rgba(255,255,255,.24); background: rgba(255,255,255,.1); color: #fff;
  font-size: .87rem; cursor: pointer; }
.moment-stage__btn:hover { background: rgba(255,255,255,.2); }
.moment-stage__btn--send { border-color: transparent; font-weight: 600;
  background: linear-gradient(135deg, #7048e8 0%, #d6336c 100%); }
.moment-stage__btn--send:hover { filter: brightness(1.1); }
.moment-stage__hint { margin: 4px 0 0; font-size: .84rem; color: #7ee2b8; min-height: 1.2em; }
body.moment-open { overflow: hidden; }
@media (max-width: 860px) { .moment-stage__inner { grid-template-columns: 1fr; } }


/* =========================================================================
   One width for every special card in a thread. Ideas, to-dos, truth/dare,
   desire matches, shared posts/gifs/videos and view-once bubbles used to be
   78% / 80% / 82% / 420px / unbounded, which made a scrollback look ragged.
   They all read off this single token now — change it here, not per card.
   ========================================================================= */
.fx-chat { --chat-card-w: min(84%, 360px); }
@media (min-width: 1200px) { .fx-chat { --chat-card-w: 360px; } }

/* Shares carry their own media, so they need the width too (they had none). */
.chat-share { width: var(--chat-card-w); max-width: var(--chat-card-w); }
.chat-share__thumb { width: 100%; height: auto; display: block; border-radius: 12px; }
.chat-share__play,
.chat-share__frame { min-width: 0; }          /* the token governs, not the old floors */
.chat-dare__face { width: 100%; }             /* was a fixed 190px inside a wider card */
.chat-eph { justify-content: flex-start; }

/* ---- desire card: the answered state -------------------------------------
   The card stays put after you answer instead of flipping to the next one —
   you can only push a question to a partner once you have answered it, so it
   has to remain on screen long enough to send. */
.fx-kink.is-answered .fx-kink__opt { opacity: .45; cursor: default; }
.fx-kink.is-answered .fx-kink__opt.is-chosen { opacity: 1; font-weight: 600;
  border-width: 2px; box-shadow: 0 0 0 3px rgba(112, 72, 232, .12); }
.fx-kink.is-answered .fx-kink__opt.is-chosen::after { content: '✓'; margin-left: auto; font-weight: 700; }
.fx-kink__send[disabled] { opacity: .45; cursor: not-allowed; }
.fx-kink-sent.is-bad { background: color-mix(in srgb, #c0392b 12%, #fff); color: #a5342a; }
.fx-kink__scale.is-answered .fx-kink__opt { opacity: .45; cursor: default; }
.fx-kink__scale.is-answered .fx-kink__opt.is-chosen { opacity: 1; font-weight: 600; border-width: 2px; }

/* the Truth/Dare tone switch — off by default, lights up when explicitly turned on */
.fx-picker__tone { display: inline-flex; align-items: center; gap: 5px; margin-right: 6px;
  padding: 4px 11px; border-radius: 999px; cursor: pointer; font-size: .76rem; font-weight: 600;
  border: 1px solid var(--cx-line); background: transparent; color: var(--cx-muted); }
.fx-picker__tone:hover { color: var(--cx-ink); }
.fx-picker__tone.is-on { border-color: transparent; color: #fff;
  background: linear-gradient(135deg, #7048e8 0%, #d6336c 100%); }

/* a played video in the gallery: the frame plus a way out when the provider declines */
.fx-gif__player { display: flex; flex-direction: column; width: 100%; height: 100%; }
.fx-gif__player .fx-gif__frame { flex: 1 1 auto; }
.fx-gif__out { flex: 0 0 auto; display: block; padding: 6px 8px; text-align: center; font-size: .7rem;
  background: #14141b; color: rgba(255,255,255,.6); text-decoration: none; }
.fx-gif__out:hover { color: #fff; background: #1d1d26; }

/* ---- post embeds: click-to-play ------------------------------------------ */
.fx-embed__play { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  width: 100%; height: 100%; border: 0; cursor: pointer; color: #fff;
  background: linear-gradient(150deg, #23232e 0%, #14141b 100%); }
.fx-embed__play .bi { font-size: 2.6rem; opacity: .9; }
.fx-embed__play small { font-size: .7rem; color: rgba(255,255,255,.5); }
.fx-embed__play:hover { filter: brightness(1.15); }
.fx-embed__out { display: block; padding: 6px 8px; text-align: center; font-size: .72rem;
  color: var(--cx-muted); text-decoration: none; }
.fx-embed__out:hover { color: var(--cx-ink); }

/* a video tile that HAS a provider poster: image behind, controls legible on top */
/* NB: no `position: relative` on .fx-embed__play — it lives inside Bootstrap's .ratio,
   which positions its child absolutely to fill the 16:9 box. Overriding that drops the
   button out of the box, collapsing it to content height and leaving the reserved
   space black. An absolutely-positioned element still anchors the ::before scrim. */
.fx-gif__video.has-poster { position: relative; }
.fx-gif__video.has-poster,
.fx-embed__play.has-poster { background-size: cover; background-position: center; }
.fx-gif__video.has-poster::before,
.fx-embed__play.has-poster::before { content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.15) 0%, rgba(0,0,0,.6) 100%); }
.fx-gif__video.has-poster > *,
.fx-embed__play.has-poster > * { position: relative; z-index: 1; text-shadow: 0 1px 6px rgba(0,0,0,.6); }

/* Feed paging — sentinel under /feed that pulls the next page in as it nears the viewport. */
.fx-feed__more { display: flex; justify-content: center; align-items: center; min-height: 3.5rem; margin-top: 1.4rem; color: var(--bs-secondary-color, #6c757d); }
.fx-feed__more .spinner-border[hidden] { display: none; }

/* =========================================================================
   Direct video files (.mp4) — gallery tiles, the add-form preview, and the
   other players that may receive one (chat card, Momentul picant stage).
   Always a <video>, never an iframe.
   ========================================================================= */
/* the tile: the file's own frame at 0.1s is the thumbnail, the same element plays */
.fx-gif__mp4 { position: relative; width: 100%; height: 100%; background: #0d0d12; }
.fx-gif__vid { width: 100%; height: 100%; object-fit: cover; display: block; background: #0d0d12; }
.fx-gif__mp4play { position: absolute; inset: 0; display: grid; place-items: center; border: 0; padding: 0;
  cursor: pointer; color: #fff; background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,.35) 100%); }
.fx-gif__mp4play .bi { font-size: 2.1rem; opacity: .92; filter: drop-shadow(0 2px 8px rgba(0,0,0,.55));
  transition: transform .15s ease; }
.fx-gif__mp4play:hover .bi { transform: scale(1.08); }
/* playing: contain (don't crop what's being watched) and get the overlays off the controls */
.fx-gif.is-playing .fx-gif__vid { object-fit: contain; background: #000; }
.fx-gif.is-playing .fx-gif__tags,
.fx-gif.is-playing .fx-gif__cap,
.fx-gif.is-playing .fx-gif__nudge { display: none; }

/* shelf switch: the Reels shortcut next to GIF-uri / Video */
.fx-tag--reels .bi { color: #d6336c; }

/* add form: the browser-side read of an .mp4 — preview + where the frame size comes from */
.fx-adder__probe { margin-top: 10px; max-width: 320px; border-radius: 10px; overflow: hidden; background: #0d0d12; }
.fx-adder__probe.is-portrait { max-width: 180px; }
.fx-adder__probe-vid { display: block; width: 100%; max-height: 320px; background: #0d0d12; }

/* edit page: a portrait .mp4 shouldn't be cropped to a letterbox strip */
.fx-editpreview video.fx-media-el { object-fit: contain; background: #000; max-height: 420px; }

/* chat card + Momentul picant stage receiving an .mp4 */
video.chat-share__frame { aspect-ratio: auto; max-height: 70vh; background: #000; }
.moment-stage__player video { width: 100%; height: 100%; display: block; object-fit: contain; background: #000; }

/* =========================================================================
   Reels (/reels) — the portrait .mp4 clips, one per screen. Shares the page
   frame (.reel-page, .fx-reel-page) and the send sheet / toast (.reel__sheet,
   .reel__toast) with the /spice reel; the feed itself is video, so it has its own.
   ========================================================================= */
.clips-page__add { display: inline-flex; align-items: center; gap: 4px; padding: 7px 13px; border-radius: 999px;
  background: rgba(255,255,255,.1); color: #fff; text-decoration: none; font-size: .82rem; font-weight: 600; flex-shrink: 0; }
.clips-page__add:hover { background: rgba(255,255,255,.18); color: #fff; }

.clips { position: relative; flex: 1; min-height: 0; }
.clips__feed { height: 100%; overflow-y: auto; scroll-snap-type: y mandatory; outline: none;
  -webkit-overflow-scrolling: touch; overscroll-behavior: contain; scrollbar-width: none; }
.clips__feed::-webkit-scrollbar { display: none; }
.clips__card { position: relative; height: 100%; scroll-snap-align: start; scroll-snap-stop: always;
  overflow: hidden; background: #000; cursor: pointer; }
.clips__vid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.clips__card.is-cover .clips__vid { object-fit: cover; }
.clips__shade { pointer-events: none;
  background: linear-gradient(to top, rgba(6,6,10,.85) 0%, rgba(6,6,10,.35) 22%, rgba(6,6,10,0) 45%); }

/* tap-to-pause indicator */
.clips__paused { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(.8);
  display: grid; place-items: center; width: 74px; height: 74px; border-radius: 50%;
  background: rgba(0,0,0,.45); backdrop-filter: blur(6px); color: #fff; font-size: 2.2rem;
  opacity: 0; transition: opacity .15s ease, transform .15s ease; pointer-events: none; }
.clips__card.is-paused .clips__paused { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* who / what — bottom left, clear of the rail */
.clips__body { position: absolute; left: 0; right: 76px; bottom: 0; padding: 0 16px 24px; color: #fff;
  pointer-events: none; text-shadow: 0 1px 8px rgba(0,0,0,.6); }
.clips__names { font-size: .92rem; font-weight: 700; }
.clips__names .bi { opacity: .8; }
.clips__title { margin-top: 4px; font-size: .9rem; line-height: 1.35;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clips__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.clips__tag { padding: 2px 9px; border-radius: 999px; font-size: .7rem; font-weight: 600;
  background: rgba(255,255,255,.16); backdrop-filter: blur(6px); }

/* action rail — bottom right, thumb-reachable */
.clips__rail { position: absolute; right: 10px; bottom: 26px; display: flex; flex-direction: column; gap: 14px; z-index: 2; }
.clips__btn { display: flex; flex-direction: column; align-items: center; gap: 3px; border: 0; padding: 0;
  background: none; color: #fff; cursor: pointer; font-size: .66rem; font-weight: 600;
  text-shadow: 0 1px 6px rgba(0,0,0,.6); }
.clips__btn .bi { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%;
  font-size: 1.3rem; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); transition: background .15s; }
.clips__btn:hover .bi { background: rgba(255,255,255,.24); }
.clips__btn--send .bi { background: linear-gradient(135deg, #7048e8 0%, #d6336c 100%); }
.clips__btn.is-on .bi { background: rgba(255,255,255,.3); }

/* progress */
.clips__bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.18); pointer-events: none; }
.clips__bar span { display: block; height: 100%; width: 0; background: #fff; }

/* a file that won't load (host blocks hotlinking, codec the browser lacks) */
.clips__card.is-broken::after { content: 'Clipul nu se poate reda. Glisează mai departe.';
  position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center;
  color: rgba(255,255,255,.7); font-size: .9rem; }

.clips__note { width: 100%; padding: 10px 12px; border-radius: 12px; border: 1px solid rgba(255,255,255,.2);
  background: rgba(255,255,255,.1); color: #fff; font-size: .9rem; resize: none; }
.clips__note::placeholder { color: rgba(255,255,255,.55); }
.clips__end { display: grid; place-items: center; height: 100%; color: rgba(255,255,255,.7); }

@media (min-width: 768px) {
  /* phone-shaped on a wide screen: the column takes a 9:16 shape from the height it has,
     so a portrait clip fills it instead of sitting between black bars */
  .clips { display: flex; justify-content: center; }
  .clips__feed { aspect-ratio: 9 / 16; max-width: 100%; }
  .clips__card { border-radius: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  .clips__paused { transition: none; }
}

/* ---- video upload (add form) ---------------------------------------------- */
.fx-upload { margin-top: 12px; }
.fx-upload__bar { height: 6px; border-radius: 999px; background: var(--cx-line); overflow: hidden; }
.fx-upload__bar span { display: block; height: 100%; width: 0; border-radius: 999px;
  background: linear-gradient(135deg, #7048e8 0%, #d6336c 100%); transition: width .2s ease; }
.fx-upload__row { display: flex; justify-content: space-between; align-items: center; margin-top: 6px;
  font-size: .8rem; color: var(--cx-muted); }

/* ---- video shelf tabs (Linkuri / Încărcate) -------------------------------
   Underlined tabs, not pills: they switch WHAT you're managing, while the pill rows
   below only narrow it — the two shouldn't look alike. */
.fx-subtabs { display: flex; gap: 4px; border-bottom: 1px solid var(--cx-line); overflow-x: auto; scrollbar-width: none; }
.fx-subtabs::-webkit-scrollbar { display: none; }
.fx-subtab { display: inline-flex; align-items: center; gap: 7px; padding: 10px 14px; margin-bottom: -1px;
  border-bottom: 2px solid transparent; color: var(--cx-muted); text-decoration: none;
  font-size: .92rem; font-weight: 600; white-space: nowrap; transition: color .15s, border-color .15s; }
.fx-subtab:hover { color: var(--cx-ink); }
.fx-subtab.is-on { color: var(--cx-ink); border-bottom-color: var(--cx-ink); }
.fx-subtab__n { min-width: 22px; padding: 1px 7px; border-radius: 999px; text-align: center;
  background: var(--cx-line); color: var(--cx-ink-2, var(--cx-ink)); font-size: .72rem; font-weight: 700; }
.fx-subtab.is-on .fx-subtab__n { background: var(--cx-ink); color: #fff; }

/* ---- Reels on a phone: immersive --------------------------------------------
   No site header (no Volupta logo), no page header, no floating launcher: the video
   runs from the top of the screen to the bottom and its own controls float on top
   (back, title, add — then the send/sound rail and the caption per clip). .fx-clips-page is only set when there
   are clips to play; the empty state keeps the normal page. With viewport-fit=cover
   (see $_immersive) the video runs under the notch, so the controls pad themselves
   with the safe-area insets. */
.clips__top { display: none; position: absolute; top: 0; left: 0; right: 0; z-index: 3;
  align-items: center; gap: 10px;
  padding: calc(10px + env(safe-area-inset-top)) calc(12px + env(safe-area-inset-right)) 18px calc(12px + env(safe-area-inset-left));
  /* just enough shade for the white controls — not a bar: the clip shows to the top edge */
  background: linear-gradient(to bottom, rgba(0,0,0,.3) 0%, rgba(0,0,0,0) 100%);
  pointer-events: none; }                       /* taps between the buttons reach the clip */
.clips__top > * { pointer-events: auto; }
.clips__top .clips__topgap { pointer-events: none; }
.clips__topbtn { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0;
  border: 0; border-radius: 50%; padding: 0; cursor: pointer;
  background: rgba(0,0,0,.38); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  color: #fff; font-size: 1.15rem; text-decoration: none; }
.clips__topbtn:hover, .clips__topbtn:focus-visible { background: rgba(0,0,0,.6); color: #fff; }
.clips__brand { color: #fff; font-weight: 700; font-size: 1.08rem; letter-spacing: -.01em;
  text-shadow: 0 1px 8px rgba(0,0,0,.55); }
.clips__topgap { flex: 1; }

@media (max-width: 767.98px), (pointer: coarse) and (max-height: 500px) {
  .fx-clips-page { overflow: hidden; background: #000; overscroll-behavior: none; }
  .fx-clips-page .cx-nav,
  .fx-clips-page .moment-dock,
  .fx-clips-page .reel-page__head { display: none !important; }
  .fx-clips-page .reel-page { position: fixed; inset: 0; height: auto; z-index: 1030; background: #000; }
  .fx-clips-page .clips__top { display: flex; }
  .fx-clips-page .clips__card { border-radius: 0; }
  .fx-clips-page .clips__rail { right: calc(10px + env(safe-area-inset-right));
    bottom: calc(26px + env(safe-area-inset-bottom)); }
  .fx-clips-page .clips__body { padding-left: calc(16px + env(safe-area-inset-left));
    padding-bottom: calc(24px + env(safe-area-inset-bottom)); }
  .fx-clips-page .clips__bar { bottom: env(safe-area-inset-bottom); }
  .fx-clips-page .reel__toast { bottom: calc(96px + env(safe-area-inset-bottom)); }
  .fx-clips-page .reel__sheet-inner { padding-bottom: calc(16px + env(safe-area-inset-bottom)); }
}
