/* =============================================================
   Linkpop Chat — drop-in chat panel
   -------------------------------------------------------------
   Two-pane on mobile (conversations list ↔ active thread).
   Slides in from the right when the chip is tapped. Same glass
   design language as the rest of the lander.

   Z-index ladder (don't trample app overlays):
     1000 — chip
     1100 — panel backdrop
     1110 — panel sheet
     1120 — sticky thread header

   Pages including this stylesheet need NO other CSS to support it.
   ============================================================= */

/* ---- .link-row.lp-chat — Linkpop chat trigger modifier --------
   Each host page renders the chat trigger as a NATIVE link-row
   using its OWN link-row component. This class adds the pink→
   violet border + glow that visually marks it as a Linkpop-
   platform action (vs a third-party link). Works whether the
   underlying element is <a> or <button>.
   ------------------------------------------------------------- */
.link-row.lp-chat{
  border-color: rgba(255,91,158,0.55);
  box-shadow:
    0 0 0 1px rgba(255,91,158,0.18) inset,
    0 8px 24px -10px rgba(236, 72, 153, 0.45);
  cursor: pointer;
  font-family: inherit;     /* button defaults differ from <a> */
  text-align: inherit;
  -webkit-tap-highlight-color: transparent;
  width: 100%;
}
.link-row.lp-chat:hover{
  border-color: rgba(255,91,158,0.75);
  box-shadow:
    0 0 0 1px rgba(255,91,158,0.30) inset,
    0 12px 30px -10px rgba(236, 72, 153, 0.55);
}
.link-row.lp-chat .link-arrow{
  color: rgba(255,91,158,0.95);
}
/* Unread pill — host page can add <span class="lp-chat-unread">N</span>
   inside the link-arrow slot when LinkpopChat.fetchUnreadByCreator
   reports unread messages for this creator. */
.lp-chat-unread{
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 22px; height: 22px;
  margin-right: 6px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5b9e, #c64cff);
  color: #fff; font-size: 11.5px; font-weight: 700;
  box-shadow: 0 0 12px rgba(255,91,158,0.55);
}

/* ---- LEGACY: floating chip — kept hidden so old deploys don't
   double-render if .lpc-chip is still injected somewhere. --- */
.lpc-chip{ display: none !important; }

/* ---- Chat button — inline social-media style (unused now) ----
   The chat trigger renders as a full-width row that matches the
   existing link-row visual on the links directory + the social
   buttons on the landing page. It carries a pink→violet gradient
   border so it stands apart from native links (this is a Linkpop
   platform feature, not just another social link).

   On profile pages without a links list, the JS appends it as a
   stand-alone row in the same style. No more floating chip.
   ------------------------------------------------------------- */
.lpc-chip{
  /* Variable defaults — overridden contextually by the host page
     so the button picks up the same look as that page's other rows
     (link-row on the links page, lander button on the landing). */
  display: none;            /* JS toggles when settings.enabled */
  position: relative;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 16px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,91,158,0.55);
  border-radius: 16px;
  color: #fff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  text-decoration: none;
  text-align: left;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  box-shadow:
    0 0 0 1px rgba(255,91,158,0.18),
    0 8px 24px -10px rgba(236, 72, 153, 0.45);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.15s, box-shadow 0.15s, filter 0.15s, background 0.15s;
}
.lpc-chip.show{ display: inline-flex; }
.lpc-chip:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.07);
  box-shadow:
    0 0 0 1px rgba(255,91,158,0.30),
    0 12px 30px -10px rgba(236, 72, 153, 0.55);
}
.lpc-chip:active{ transform: translateY(0); }

/* Square icon tile on the left, mirroring link-row's .link-icon. */
.lpc-chip-icon{
  flex: 0 0 auto;
  width: 36px; height: 36px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(255,91,158,0.30), rgba(108,112,255,0.30));
  border: 1px solid rgba(255,91,158,0.40);
  display: inline-flex; align-items: center; justify-content: center;
  color: #fff;
}
.lpc-chip-icon svg{ width: 18px; height: 18px; display: block; }

.lpc-chip-meta{
  flex: 1 1 auto; min-width: 0;
  display: flex; flex-direction: column; gap: 2px;
}
.lpc-chip-label{
  font-family: 'Inter Tight', 'Inter', sans-serif;
  font-size: 14.5px; font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}
.lpc-chip-sub{
  font-size: 12.5px;
  color: rgba(255,255,255,0.65);
  font-weight: 500;
}
.lpc-chip-arrow{
  flex: 0 0 auto;
  width: 22px; height: 22px;
  color: rgba(255,91,158,0.85);
  display: inline-flex; align-items: center; justify-content: center;
}
.lpc-chip-arrow svg{ width: 18px; height: 18px; }

.lpc-chip .lpc-chip-badge{
  /* Unread pill — slots next to the arrow when there's unread. */
  flex: 0 0 auto;
  min-width: 22px; height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5b9e, #c64cff);
  color: #fff; font-size: 11.5px; font-weight: 700;
  display: none;
  align-items: center; justify-content: center;
  padding: 0 7px;
  box-shadow: 0 0 12px rgba(255,91,158,0.55);
  animation: lpc-pulse 1.8s ease-in-out infinite;
}
.lpc-chip .lpc-chip-badge.show{ display: inline-flex; }
@keyframes lpc-pulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.06); }
}

/* When the button is dropped onto a page that uses a vertical
   stack of link-rows (the links directory + the landing page),
   .lpc-chip is a block element. The host page's parent gap handles
   spacing — no extra margin needed. */

/* ---- Panel scaffolding -------------------------------------- */
.lpc-backdrop{
  position: fixed; inset: 0;
  z-index: 1100;
  background: rgba(6, 5, 13, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.24s ease;
}
.lpc-backdrop.show{ opacity: 1; pointer-events: auto; }

.lpc-panel{
  position: fixed;
  z-index: 1110;
  top: 0; right: 0; bottom: 0;
  width: 100%;
  max-width: 460px;
  background: linear-gradient(180deg, #14102a 0%, #0a0814 100%);
  border-left: 1px solid rgba(255,255,255,0.08);
  box-shadow: -20px 0 60px -20px rgba(0,0,0,0.6);
  display: flex; flex-direction: column;
  transform: translateX(100%);
  transition: transform 0.32s cubic-bezier(.2,.8,.2,1);
  color: #fff;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}
.lpc-panel.open{ transform: translateX(0); }

/* ---- Panel header (sticky) --------------------------------- */
.lpc-head{
  flex: 0 0 auto;
  display: flex; align-items: center; gap: 10px;
  padding: 14px 14px calc(14px + env(safe-area-inset-top, 0px)) 14px;
  padding-top: calc(14px + env(safe-area-inset-top, 0px));
  border-bottom: 1px solid rgba(255,255,255,0.06);
  background: rgba(20,16,38,0.85);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  position: sticky; top: 0;
  z-index: 1120;
}
.lpc-head-btn{
  width: 36px; height: 36px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.10);
  background: rgba(255,255,255,0.05);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.12s;
}
.lpc-head-btn:hover{ background: rgba(255,255,255,0.10); }
.lpc-head-btn svg{ width: 18px; height: 18px; }
.lpc-head-avatar{
  width: 36px; height: 36px; border-radius: 999px;
  background-size: cover; background-position: center;
  background-color: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  flex: 0 0 auto;
}
.lpc-head-title{
  font-weight: 700; font-size: 15px; line-height: 1.2;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lpc-head-meta{ flex: 1 1 auto; min-width: 0; }

/* ---- Conversations list ------------------------------------ */
.lpc-list{
  flex: 1 1 auto; overflow-y: auto;
  padding: 8px 0;
  -webkit-overflow-scrolling: touch;
}
.lpc-list-empty{
  padding: 60px 24px; text-align: center;
  color: rgba(255,255,255,0.5); font-size: 13.5px;
}
.lpc-row{
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  border-bottom: 1px solid rgba(255,255,255,0.04);
  transition: background 0.12s;
  min-height: 64px;   /* tap target */
}
.lpc-row:hover{ background: rgba(255,255,255,0.03); }
.lpc-row:active{ background: rgba(255,255,255,0.06); }
.lpc-row-avatar{
  width: 48px; height: 48px; border-radius: 999px;
  background-size: cover; background-position: center;
  background-color: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.10);
  flex: 0 0 auto;
}
.lpc-row-meta{ flex: 1 1 auto; min-width: 0; }
.lpc-row-top{
  display: flex; align-items: baseline; justify-content: space-between; gap: 8px;
}
.lpc-row-name{
  font-weight: 600; font-size: 14.5px; color: #fff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lpc-row-time{
  font-size: 11px; color: rgba(255,255,255,0.5);
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}
.lpc-row-bottom{
  display: flex; align-items: center; gap: 8px;
  margin-top: 3px;
}
.lpc-row-preview{
  flex: 1 1 auto; min-width: 0;
  font-size: 12.5px; color: rgba(255,255,255,0.55);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lpc-row.unread .lpc-row-preview{ color: rgba(255,255,255,0.85); font-weight: 500; }
.lpc-row.unread .lpc-row-name{ color: #fff; }
.lpc-row-badge{
  flex: 0 0 auto;
  min-width: 18px; height: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff5b9e, #c64cff);
  color: #fff; font-size: 10.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0 5px;
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.4);
}

/* ---- Thread view (messages) -------------------------------- */
.lpc-thread{
  flex: 1 1 auto; overflow-y: auto;
  padding: 16px 14px;
  -webkit-overflow-scrolling: touch;
  display: flex; flex-direction: column; gap: 8px;
}
.lpc-bubble{
  max-width: 78%;
  padding: 9px 13px;
  border-radius: 18px;
  font-size: 14.5px; line-height: 1.4;
  word-wrap: break-word;
  position: relative;
  animation: lpc-pop-in 0.22s cubic-bezier(.2,.8,.2,1);
  /* The thread is a column flex container. Without this, every bubble
     inherits flex-shrink: 1 and gets vertically squished as more
     bubbles arrive below — which crops image bubbles dramatically. */
  flex-shrink: 0;
}
@keyframes lpc-pop-in {
  from { opacity: 0; transform: translateY(6px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0)  scale(1); }
}
.lpc-bubble.user{
  align-self: flex-end;
  background: linear-gradient(135deg, #ff5b9e, #c64cff);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.lpc-bubble.creator{
  align-self: flex-start;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom-left-radius: 6px;
}
.lpc-bubble.system{
  align-self: center;
  background: rgba(255,255,255,0.03);
  border: 1px dashed rgba(255,255,255,0.12);
  color: rgba(255,255,255,0.6);
  font-size: 12.5px;
  font-style: italic;
  text-align: center;
  max-width: 90%;
}
.lpc-bubble a{
  color: inherit;
  text-decoration: underline;
  text-decoration-color: rgba(255,255,255,0.55);
}
.lpc-bubble.user a{ color: #fff; }

/* Bubble with media: drop the side padding so the image bleeds to
   the bubble edge (Telegram / iMessage style). When there's also a
   caption underneath, restore padding for the caption only. */
/* Image bubble: shrink to image's natural size (Telegram / iMessage
   style). The bubble hugs the photo — no crop, no letterbox.
   `contain: layout` stops late-decoded image metadata from
   reshuffling neighbour bubbles' positions. */
.lpc-bubble:has(.lpc-bubble-media){
  align-self: flex-start;
  padding: 4px;
  overflow: hidden;
  contain: layout;
  /* Tighten max-width so a wide landscape doesn't blow the bubble
     out beyond the standard 78% rail. */
  max-width: min(280px, 75vw);
}
.lpc-bubble-media{
  display: block;
  /* Preserve the photo's natural aspect ratio. The bubble itself
     caps the width; max-height caps very-tall portraits so they
     don't dominate the thread. width:auto/height:auto + contain
     means the image sizes itself within those limits. */
  max-width: 100%;
  max-height: 420px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 14px;
  cursor: zoom-in;
  background: rgba(255,255,255,0.04);
  -webkit-tap-highlight-color: transparent;
}
/* Caption text under an image. Slightly tighter than a plain bubble. */
.lpc-bubble-media + .lpc-bubble-text{
  padding: 6px 10px 4px 10px;
  font-size: 14px;
  line-height: 1.4;
}

/* ============================================================
   Media lightbox — full-screen image preview.
   Sits above the chat panel (panel = 1110, lightbox = 1200).
   Closes via X button, backdrop tap, or Escape key.
   ============================================================ */
.lpc-lightbox{
  position: fixed; inset: 0;
  z-index: 1200;
  background: rgba(0, 0, 0, 0.92);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: env(safe-area-inset-top, 0) env(safe-area-inset-right, 0)
           env(safe-area-inset-bottom, 0) env(safe-area-inset-left, 0);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}
.lpc-lightbox.open{
  opacity: 1;
  pointer-events: auto;
}
.lpc-lightbox-img{
  max-width: min(96vw, 1100px);
  max-height: 88vh;
  width: auto; height: auto;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  animation: lpc-lightbox-in 0.22s cubic-bezier(.2,.8,.2,1);
}
@keyframes lpc-lightbox-in{
  from { opacity: 0; transform: scale(0.96); }
  to   { opacity: 1; transform: scale(1); }
}
.lpc-lightbox-close{
  position: fixed;
  top: calc(env(safe-area-inset-top, 0px) + 16px);
  right: calc(env(safe-area-inset-right, 0px) + 16px);
  width: 40px; height: 40px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  transition: transform 0.12s, background 0.12s, border-color 0.12s;
}
.lpc-lightbox-close:hover{
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.30);
  transform: scale(1.06);
}
.lpc-lightbox-close:active{ transform: scale(0.96); }
.lpc-lightbox-close svg{ width: 20px; height: 20px; }
.lpc-thread-typing{
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 4px;
  padding: 11px 14px;
  border-radius: 18px;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.08);
  border-bottom-left-radius: 6px;
}
.lpc-thread-typing span{
  width: 6px; height: 6px; border-radius: 999px;
  background: rgba(255,255,255,0.6);
  animation: lpc-dot 1.2s ease-in-out infinite;
}
.lpc-thread-typing span:nth-child(2){ animation-delay: 0.15s; }
.lpc-thread-typing span:nth-child(3){ animation-delay: 0.30s; }
@keyframes lpc-dot {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%           { transform: translateY(-4px); opacity: 1; }
}

/* ---- Composer ---------------------------------------------- */
.lpc-composer{
  flex: 0 0 auto;
  display: flex; align-items: flex-end; gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px)) 12px;
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(20,16,38,0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}
.lpc-composer textarea{
  flex: 1 1 auto;
  min-height: 40px;
  max-height: 120px;
  padding: 10px 14px;
  border-radius: 22px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
  font-family: inherit;
  font-size: 15px;        /* iOS won't zoom on focus when >=16px; 15 is fine on most */
  line-height: 1.35;
  resize: none;
  outline: none;
  transition: border-color 0.15s, background 0.15s;
}
.lpc-composer textarea:focus{
  border-color: rgba(255,91,158,0.45);
  background: rgba(255,255,255,0.08);
}
.lpc-composer textarea::placeholder{ color: rgba(255,255,255,0.4); }
.lpc-send{
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border: none; border-radius: 999px;
  background: linear-gradient(135deg, #ff5b9e, #c64cff);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow: 0 6px 16px -6px rgba(236, 72, 153, 0.55);
  transition: transform 0.12s, opacity 0.12s;
}
.lpc-send:hover{ transform: translateY(-1px); }
.lpc-send:active{ transform: translateY(0); }
.lpc-send:disabled{ opacity: 0.4; cursor: not-allowed; }
.lpc-send svg{ width: 18px; height: 18px; }

/* Attach button (paperclip) + preview chip ---------------------- */
.lpc-attach{
  flex: 0 0 auto;
  width: 40px; height: 40px;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 999px;
  background: rgba(255,255,255,0.06);
  color: rgba(255,255,255,0.85);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s, background 0.12s, border-color 0.12s;
}
.lpc-attach:hover{
  transform: translateY(-1px);
  background: rgba(255,255,255,0.10);
  border-color: rgba(255,91,158,0.45);
}
.lpc-attach:active{ transform: translateY(0); }
.lpc-attach svg{ width: 18px; height: 18px; }
/* Preview chip lives between attach + textarea when a file is picked. */
.lpc-attach-preview{
  position: relative;
  flex: 0 0 auto;
  width: 56px; height: 56px;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(255,91,158,0.35);
}
.lpc-attach-preview[hidden]{ display: none; }
.lpc-attach-thumb{
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
.lpc-attach-clear{
  position: absolute;
  top: -6px; right: -6px;
  width: 22px; height: 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,0.15);
  background: rgba(0,0,0,0.85);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.lpc-attach-clear:hover{ background: rgba(0,0,0,0.95); border-color: rgba(255,255,255,0.30); }
.lpc-attach-clear svg{ width: 12px; height: 12px; }

/* ---- Pane swap (list ↔ thread) ----------------------------- */
.lpc-pane{ flex: 1 1 auto; display: flex; flex-direction: column; overflow: hidden; }
.lpc-pane[hidden]{ display: none; }

/* ---- Matches-modal: message icon button on each row -------- */
.lpc-match-btn{
  position: absolute;
  top: 8px; right: 8px;
  z-index: 4;
  width: 36px; height: 36px;
  border: none; border-radius: 999px;
  background: rgba(255,91,158,0.18);
  border: 1px solid rgba(255,91,158,0.40);
  color: #fff;
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  backdrop-filter: blur(10px) saturate(140%);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  transition: transform 0.12s, background 0.12s;
}
.lpc-match-btn:hover{
  transform: translateY(-1px);
  background: rgba(255,91,158,0.30);
}
.lpc-match-btn svg{ width: 16px; height: 16px; }
.lpc-match-badge{
  position: absolute; top: -3px; right: -3px;
  min-width: 16px; height: 16px;
  border-radius: 999px;
  background: #ff3366;
  color: #fff; font-size: 9.5px; font-weight: 700;
  display: none;
  align-items: center; justify-content: center;
  padding: 0 4px;
  border: 2px solid #0a0814;
  box-shadow: 0 0 8px rgba(255,51,102,0.6);
}
.lpc-match-badge.show{ display: inline-flex; }

/* ============================================================
   Say-hi CTA — empty-state hint on a fresh thread
   ------------------------------------------------------------
   The bot never speaks first; we render a faux "creator-side"
   bubble that pulses three dots then resolves into "tap to say
   hi". Tapping the bubble focuses the composer. Same alignment
   as a creator bubble (left side) so it reads as ambient prompt
   rather than a real message.
   ============================================================ */
.lpc-cta{
  align-self: flex-start;
  display: inline-flex; align-items: center; gap: 10px;
  max-width: 78%;
  margin: 14px 0 6px 0;
  padding: 14px 18px;
  background: linear-gradient(135deg,
    rgba(255,91,158,0.12),
    rgba(108,112,255,0.12));
  border: 1px solid rgba(255,91,158,0.40);
  border-radius: 18px 18px 18px 4px;
  color: rgba(255,255,255,0.92);
  font: inherit;
  font-size: 14px;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  box-shadow:
    0 0 0 1px rgba(255,91,158,0.10) inset,
    0 8px 22px -12px rgba(236,72,153,0.45);
  animation: lpc-cta-breath 3.2s ease-in-out infinite;
}
.lpc-cta:hover{
  border-color: rgba(255,91,158,0.65);
  background: linear-gradient(135deg,
    rgba(255,91,158,0.20),
    rgba(108,112,255,0.20));
}
.lpc-cta:active{ transform: scale(0.985); }
@keyframes lpc-cta-breath{
  0%, 100% { box-shadow:
    0 0 0 1px rgba(255,91,158,0.10) inset,
    0 8px 22px -12px rgba(236,72,153,0.45); }
  50%      { box-shadow:
    0 0 0 1px rgba(255,91,158,0.22) inset,
    0 12px 30px -10px rgba(236,72,153,0.65); }
}
.lpc-cta-dots{
  display: inline-flex; align-items: center; gap: 4px;
  padding: 0 2px;
}
.lpc-cta-dots span{
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 999px;
  background: rgba(255,91,158,0.85);
  animation: lpc-cta-dot 1.2s infinite ease-in-out;
}
.lpc-cta-dots span:nth-child(2){ animation-delay: 0.18s; }
.lpc-cta-dots span:nth-child(3){ animation-delay: 0.36s; }
@keyframes lpc-cta-dot{
  0%, 60%, 100% { transform: translateY(0); opacity: 0.55; }
  30%           { transform: translateY(-3px); opacity: 1; }
}
.lpc-cta-hint{
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* ============================================================
   Back-to-swiping header pill (matches/conversations list only)
   ------------------------------------------------------------
   Sits in the top-right of the list pane head. Two stacked-cards
   icon + "Swipe" label so users always have a one-tap path back
   to the deck.
   ============================================================ */
.lpc-head-swipe{
  display: inline-flex; align-items: center; gap: 6px;
  margin-left: auto;
  padding: 6px 12px 6px 9px;
  border: 1px solid rgba(255,91,158,0.45);
  background: linear-gradient(135deg,
    rgba(255,91,158,0.16),
    rgba(108,112,255,0.16));
  color: #fff;
  border-radius: 999px;
  font: inherit;
  font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 0.12s, background 0.12s, border-color 0.12s;
}
.lpc-head-swipe:hover{
  transform: translateY(-1px);
  background: linear-gradient(135deg,
    rgba(255,91,158,0.26),
    rgba(108,112,255,0.26));
  border-color: rgba(255,91,158,0.7);
}
.lpc-head-swipe:active{ transform: translateY(0); }
.lpc-head-swipe-icon{
  display: inline-flex; align-items: center; justify-content: center;
  width: 16px; height: 16px;
}
.lpc-head-swipe-icon svg{ width: 16px; height: 16px; }
@media (max-width: 380px){
  /* On the narrowest phones, drop the label to keep the head tidy. */
  .lpc-head-swipe-label{ display: none; }
  .lpc-head-swipe{ padding: 6px 9px; }
}
