/* ============================================
   bells.css — site-wide polish & "bells and whistles"
   Loaded on every public + member page.
   ============================================ */

/* ============ ACCESSIBILITY — respect reduced motion ============
   For users who set "Reduce motion" in their OS (a11y setting common
   for users with vestibular disorders, ADHD, migraine, or anxiety),
   strip out all but the most essential animations. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ============ SKELETON LOADERS ============
   Apply .skeleton to a placeholder element to show a subtle pulse
   while data loads. Replace via JS once loaded. */
@keyframes lup-skeleton-pulse {
  0%, 100% { opacity: 0.4; }
  50% { opacity: 0.7; }
}
.skeleton {
  display: inline-block;
  background: linear-gradient(90deg,
    rgba(245,241,234,0.08) 0%,
    rgba(245,241,234,0.16) 50%,
    rgba(245,241,234,0.08) 100%);
  border-radius: 6px;
  animation: lup-skeleton-pulse 1.4s ease-in-out infinite;
  color: transparent !important;
  user-select: none;
}
.skeleton.skeleton-lg { height: 2.4rem; width: 80%; }
.skeleton.skeleton-md { height: 1.4rem; width: 60%; }
.skeleton.skeleton-sm { height: 0.9rem; width: 40%; }

/* ============ CONFETTI ============
   Tiny CSS-only particle. JS spawns these with random offset. */
.lup-confetti-host {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  overflow: hidden;
}
.lup-confetti-piece {
  position: absolute;
  top: -20px;
  width: 8px; height: 14px;
  border-radius: 1px;
  opacity: 0.95;
  animation: lup-confetti-fall 2.6s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
  will-change: transform, opacity;
}
@keyframes lup-confetti-fall {
  0% { transform: translate3d(0, -20px, 0) rotate(0deg); opacity: 1; }
  100% { transform: translate3d(var(--lup-x, 0), 100vh, 0) rotate(var(--lup-r, 720deg)); opacity: 0; }
}

/* ============ TIME-OF-DAY HERO TINT ============
   Body element gets a class set by bells.js based on local hour:
   .tod-predawn  4-6   (deep midnight)
   .tod-sunrise  6-9   (gold + amber wash)
   .tod-morning  9-13  (cool clean clarity)
   .tod-day      13-17 (neutral)
   .tod-sunset   17-20 (sunset orange wash)
   .tod-night    20-4  (cool indigo) */
body.tod-sunrise .atmos .blob.b1,
body.tod-sunset  .atmos .blob.b1 {
  background: radial-gradient(circle, rgba(255,165,61,0.40), transparent 70%) !important;
}
body.tod-sunrise .atmos .blob.b2,
body.tod-sunset  .atmos .blob.b2 {
  background: radial-gradient(circle, rgba(255,122,31,0.34), transparent 70%) !important;
}
body.tod-predawn .atmos .blob.b1,
body.tod-night   .atmos .blob.b1 {
  background: radial-gradient(circle, rgba(95,177,230,0.22), transparent 70%) !important;
}
body.tod-morning .atmos .blob.b1 {
  background: radial-gradient(circle, rgba(255,217,122,0.30), transparent 70%) !important;
}

/* ============ INLINE SEARCH WIDGET ============ */
.lup-isearch {
  position: relative;
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
  font-family: 'Inter', sans-serif;
}
.lup-isearch-field {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  background: rgba(13,12,20,0.78);
  border: 1px solid rgba(245,241,234,0.16);
  border-radius: 999px;
  transition: border-color 0.18s, background 0.18s;
}
.lup-isearch-field:focus-within {
  border-color: #5fb1e6;
  background: rgba(13,12,20,0.92);
  box-shadow: 0 6px 20px rgba(95,177,230,0.18);
}
body.theme-light .lup-isearch-field {
  background: rgba(255,253,248,0.92);
  border-color: rgba(26,24,32,0.18);
}
.lup-isearch-icon {
  flex-shrink: 0;
  color: rgba(245,241,234,0.55);
  display: inline-flex; align-items: center;
}
body.theme-light .lup-isearch-icon { color: rgba(26,24,32,0.55); }
.lup-isearch-field:focus-within .lup-isearch-icon { color: #5fb1e6; }
.lup-isearch-input {
  flex: 1;
  border: 0; background: transparent; outline: none;
  padding: 12px 0;
  font-family: inherit; font-size: 0.95rem;
  color: #f5f1ea;
  min-width: 0;
}
body.theme-light .lup-isearch-input { color: #1a1820; }
.lup-isearch-input::placeholder { color: rgba(245,241,234,0.42); }
body.theme-light .lup-isearch-input::placeholder { color: rgba(26,24,32,0.40); }
.lup-isearch-hint {
  flex-shrink: 0;
  font-family: 'Inter Tight', sans-serif; font-weight: 700; font-size: 0.7rem;
  color: rgba(245,241,234,0.42);
  padding: 3px 8px;
  border: 1px solid rgba(245,241,234,0.18);
  border-radius: 6px;
  letter-spacing: 0.04em;
}
body.theme-light .lup-isearch-hint {
  color: rgba(26,24,32,0.55);
  border-color: rgba(26,24,32,0.18);
}
.lup-isearch-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0; right: 0;
  background: rgba(13,12,20,0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(245,241,234,0.16);
  border-radius: 14px;
  padding: 6px;
  z-index: 50;
  max-height: 360px; overflow-y: auto;
  box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}
body.theme-light .lup-isearch-results {
  background: rgba(255,253,248,0.98);
  border-color: rgba(26,24,32,0.18);
  box-shadow: 0 20px 50px rgba(26,24,32,0.12);
}
.lup-isearch-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  color: #f5f1ea;
  text-decoration: none;
  font-size: 0.92rem;
  transition: background 0.12s;
  cursor: pointer;
}
body.theme-light .lup-isearch-item { color: #1a1820; }
.lup-isearch-item.is-active,
.lup-isearch-item:hover {
  background: rgba(95,177,230,0.14);
}
body.theme-light .lup-isearch-item.is-active,
body.theme-light .lup-isearch-item:hover {
  background: rgba(41,128,196,0.12);
}
.lup-isearch-item-ic {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 7px;
  background: rgba(95,177,230,0.18);
  color: #5fb1e6;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 0.84rem;
}
body.theme-light .lup-isearch-item-ic { background: rgba(41,128,196,0.16); color: #2980c4; }
.lup-isearch-item-label {
  flex: 1; min-width: 0;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  font-family: 'Inter Tight', sans-serif; font-weight: 600;
  letter-spacing: -0.005em;
}
.lup-isearch-empty {
  padding: 14px 12px;
  color: rgba(245,241,234,0.55);
  font-size: 0.9rem;
  text-align: center;
}
body.theme-light .lup-isearch-empty { color: rgba(26,24,32,0.55); }

/* ============ COMMAND PALETTE (Cmd+K) ============ */
.lup-palette-host {
  position: fixed;
  inset: 0;
  background: rgba(8,7,13,0.74);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 10000;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 80px 20px 0;
}
.lup-palette-host[hidden] { display: none; }
.lup-palette {
  width: 100%;
  max-width: 520px;
  background: #0d0c14;
  border: 1px solid rgba(245,241,234,0.18);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 0 1px rgba(212,175,55,0.08);
  font-family: 'Inter', sans-serif;
}
.lup-palette-input {
  display: block;
  width: 100%;
  border: 0;
  border-bottom: 1px solid rgba(245,241,234,0.08);
  background: transparent;
  color: #f5f1ea;
  padding: 18px 22px;
  font-size: 1rem;
  outline: none;
  font-family: inherit;
}
.lup-palette-input::placeholder { color: #8a8278; }
.lup-palette-results {
  max-height: 360px;
  overflow-y: auto;
  padding: 6px 0;
}
.lup-palette-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 22px;
  color: #b9b1a6;
  cursor: pointer;
  font-size: 0.92rem;
  border-left: 3px solid transparent;
}
.lup-palette-item.is-active {
  background: rgba(212,175,55,0.08);
  color: #f5f1ea;
  border-left-color: #d4af37;
}
.lup-palette-item .icon {
  width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(245,241,234,0.06);
  border-radius: 6px;
  color: #d4af37;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800;
  font-size: 0.78rem;
}
.lup-palette-item .label {
  flex: 1;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600;
}
.lup-palette-item .kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.76rem;
  color: #5e574e;
  padding: 2px 6px;
  border: 1px solid rgba(245,241,234,0.10);
  border-radius: 4px;
}
.lup-palette-empty {
  padding: 22px;
  color: #8a8278;
  text-align: center;
  font-style: italic;
  font-family: 'Instrument Serif', serif;
  font-size: 0.95rem;
}
.lup-palette-foot {
  border-top: 1px solid rgba(245,241,234,0.06);
  padding: 10px 22px;
  display: flex;
  gap: 18px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.74rem;
  color: #5e574e;
}
.lup-palette-foot kbd {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.7rem;
  background: rgba(245,241,234,0.06);
  border: 1px solid rgba(245,241,234,0.10);
  border-radius: 4px;
  padding: 1px 6px;
  margin-right: 4px;
  color: #d4af37;
}

/* ============ ACTIVITY TICKER ============ */
.lup-ticker {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 1000;
  max-width: 340px;
  background: rgba(8,7,13,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(212,175,55,0.30);
  border-radius: 12px;
  padding: 12px 14px;
  color: #f5f1ea;
  font-family: 'Inter', sans-serif;
  font-size: 0.86rem;
  box-shadow: 0 10px 30px rgba(0,0,0,0.35);
  transform: translate3d(-110%, 0, 0);
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
}
.lup-ticker.is-visible {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}
.lup-ticker .ti-dot {
  display: inline-block;
  width: 8px; height: 8px;
  background: #4caf50;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 8px rgba(76,175,80,0.6);
  animation: lup-ticker-pulse 2s ease-in-out infinite;
}
@keyframes lup-ticker-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.45; }
}
.lup-ticker .ti-text { display: inline; vertical-align: middle; }
.lup-ticker .ti-time {
  display: block;
  font-size: 0.74rem;
  color: #8a8278;
  margin-top: 4px;
  font-family: 'Inter Tight', sans-serif;
}
.lup-ticker .ti-close {
  position: absolute;
  top: 6px; right: 8px;
  background: none; border: 0;
  color: #5e574e;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 2px 6px;
  line-height: 1;
}
.lup-ticker .ti-close:hover { color: #b9b1a6; }
@media (max-width: 600px) {
  .lup-ticker {
    left: 10px; right: 10px; bottom: 10px;
    max-width: none;
  }
}

/* ============ PWA INSTALL PROMPT ============ */
.lup-pwa-banner {
  position: fixed;
  left: 50%;
  transform: translate3d(-50%, 120%, 0);
  bottom: 20px;
  z-index: 999;
  background: linear-gradient(135deg, #0d0c14, #08070d);
  border: 1px solid rgba(212,175,55,0.35);
  border-radius: 14px;
  padding: 14px 18px;
  color: #f5f1ea;
  display: flex;
  align-items: center;
  gap: 14px;
  max-width: 480px;
  width: calc(100% - 32px);
  box-shadow: 0 14px 40px rgba(0,0,0,0.5);
  font-family: 'Inter', sans-serif;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.lup-pwa-banner.is-visible { transform: translate3d(-50%, 0, 0); }
.lup-pwa-banner .pwa-icon { font-size: 1.5rem; }
.lup-pwa-banner .pwa-text { flex: 1; font-size: 0.92rem; }
.lup-pwa-banner .pwa-text strong { color: #d4af37; font-weight: 600; }
.lup-pwa-banner button {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  font-size: 0.84rem;
  border-radius: 999px;
  padding: 8px 16px;
  border: 0;
  cursor: pointer;
}
.lup-pwa-banner .pwa-yes {
  background: linear-gradient(120deg, #ffd97a, #d4af37);
  color: #08070d;
}
.lup-pwa-banner .pwa-no {
  background: transparent;
  color: #8a8278;
  border: 1px solid rgba(245,241,234,0.10);
}

/* ============ RETURNING VISITOR BANNER (subtle) ============ */
.lup-rv-pill {
  position: fixed;
  top: 70px;
  left: 50%;
  transform: translate3d(-50%, -120%, 0);
  z-index: 80;
  background: rgba(212,175,55,0.10);
  border: 1px solid rgba(212,175,55,0.30);
  border-radius: 999px;
  padding: 8px 18px;
  color: #d4af37;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.84rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  transition: transform 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  cursor: pointer;
}
.lup-rv-pill.is-visible { transform: translate3d(-50%, 0, 0); }
.lup-rv-pill:hover {
  background: rgba(212,175,55,0.16);
  color: #ffd97a;
}

/* ============ HAMBURGER BUTTON (sitewide, fixed top-right) ============ */
.lup-hb-btn {
  position: fixed;
  top: 16px; right: 16px;
  z-index: 92;
  width: 42px; height: 42px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(13,12,20,0.78);
  border: 1px solid rgba(245,241,234,0.18);
  border-radius: 12px;
  color: rgba(245,241,234,0.78);
  cursor: pointer;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}
.lup-hb-btn:hover {
  background: rgba(13,12,20,0.92);
  color: #f5f1ea;
  border-color: rgba(255,217,122,0.45);
  transform: translateY(-1px);
}
body.theme-light .lup-hb-btn {
  background: rgba(255,253,248,0.85);
  border-color: rgba(26,24,32,0.20);
  color: rgba(26,24,32,0.74);
}
body.theme-light .lup-hb-btn:hover {
  background: rgba(255,253,248,1);
  color: #1a1820;
  border-color: rgba(184,148,31,0.55);
}
/* When the page has the affiliate strip active, drop the button down a bit so
   they don't overlap. The affBar uses .has-aff-bar on body. */
body.has-aff-bar .lup-hb-btn { top: 60px; }
/* Mobile — keep visible but slightly smaller */
@media (max-width: 600px) {
  .lup-hb-btn { top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 11px; }
}

/* ============ HAMBURGER DRAWER ============ */
.lup-hb-host {
  position: fixed; inset: 0;
  z-index: 96;
  pointer-events: none;
}
.lup-hb-backdrop {
  position: absolute; inset: 0;
  background: rgba(4,3,10,0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 0.35s ease;
  pointer-events: none;
}
.lup-hb-host.is-open .lup-hb-backdrop {
  opacity: 1;
  pointer-events: auto;
}
.lup-hb-drawer {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: 380px;
  max-width: 90vw;
  padding: 22px 22px 16px;
  background: linear-gradient(180deg, rgba(13,12,20,0.97), rgba(8,7,13,0.96));
  border-left: 1px solid rgba(245,241,234,0.10);
  box-shadow: -20px 0 60px rgba(0,0,0,0.45);
  transform: translateX(100%);
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1);
  pointer-events: auto;
  display: flex; flex-direction: column;
  overflow: hidden;
}
.lup-hb-host.is-open .lup-hb-drawer { transform: translateX(0); }
body.theme-light .lup-hb-drawer {
  background: linear-gradient(180deg, rgba(255,253,248,0.98), rgba(241,235,224,0.96));
  border-left-color: rgba(26,24,32,0.10);
}
.lup-hb-head {
  display: flex; align-items: center; justify-content: space-between;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(245,241,234,0.08);
  margin-bottom: 14px;
}
body.theme-light .lup-hb-head { border-bottom-color: rgba(26,24,32,0.08); }
.lup-hb-eyebrow {
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: #d4af37;
}
body.theme-light .lup-hb-eyebrow { color: #8a6e1a; }
.lup-hb-close {
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1px solid rgba(245,241,234,0.16);
  background: transparent;
  color: rgba(245,241,234,0.72);
  font-size: 1.1rem; line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.lup-hb-close:hover {
  background: rgba(245,241,234,0.08);
  color: #f5f1ea;
  border-color: rgba(255,217,122,0.55);
}
body.theme-light .lup-hb-close { border-color: rgba(26,24,32,0.20); color: rgba(26,24,32,0.72); }
body.theme-light .lup-hb-close:hover { background: rgba(26,24,32,0.06); color: #1a1820; border-color: rgba(184,148,31,0.55); }

.lup-hb-search {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px;
  background: rgba(8,7,13,0.55);
  border: 1px solid rgba(245,241,234,0.12);
  border-radius: 12px;
  margin-bottom: 12px;
}
.lup-hb-search:focus-within {
  border-color: rgba(255,217,122,0.55);
  background: rgba(8,7,13,0.78);
}
body.theme-light .lup-hb-search { background: rgba(255,253,248,0.65); border-color: rgba(26,24,32,0.14); }
body.theme-light .lup-hb-search:focus-within { border-color: rgba(184,148,31,0.55); }
.lup-hb-search svg { color: rgba(245,241,234,0.48); flex-shrink: 0; }
body.theme-light .lup-hb-search svg { color: rgba(26,24,32,0.55); }
.lup-hb-input {
  flex: 1; border: 0; background: transparent; outline: none;
  color: #f5f1ea;
  font-family: 'Inter', sans-serif; font-size: 0.94rem;
  min-width: 0;
}
body.theme-light .lup-hb-input { color: #1a1820; }
.lup-hb-input::placeholder { color: rgba(245,241,234,0.40); }
body.theme-light .lup-hb-input::placeholder { color: rgba(26,24,32,0.42); }

.lup-hb-list {
  flex: 1;
  overflow-y: auto;
  padding-right: 4px;
  margin-right: -4px;
}
.lup-hb-item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #f5f1ea;
  margin-bottom: 2px;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 600; font-size: 0.94rem;
  transition: background 0.14s ease, transform 0.14s ease;
}
body.theme-light .lup-hb-item { color: #1a1820; }
.lup-hb-item:hover {
  background: rgba(255,217,122,0.10);
  transform: translateX(2px);
}
body.theme-light .lup-hb-item:hover { background: rgba(184,148,31,0.10); }
.lup-hb-ic {
  flex-shrink: 0;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: rgba(255,217,122,0.12);
  color: #d4af37;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 0.84rem;
}
body.theme-light .lup-hb-ic { background: rgba(184,148,31,0.14); color: #8a6e1a; }
.lup-hb-label { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lup-hb-arrow { color: rgba(245,241,234,0.32); transition: transform 0.14s ease, color 0.14s ease; }
.lup-hb-item:hover .lup-hb-arrow { color: #d4af37; transform: translateX(3px); }
body.theme-light .lup-hb-arrow { color: rgba(26,24,32,0.40); }
body.theme-light .lup-hb-item:hover .lup-hb-arrow { color: #8a6e1a; }
.lup-hb-empty {
  padding: 20px 12px;
  text-align: center;
  color: rgba(245,241,234,0.55);
  font-size: 0.9rem;
}
body.theme-light .lup-hb-empty { color: rgba(26,24,32,0.55); }

.lup-hb-foot {
  margin-top: 10px;
  padding-top: 12px;
  border-top: 1px solid rgba(245,241,234,0.08);
  text-align: center;
  color: rgba(245,241,234,0.42);
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.78rem;
}
body.theme-light .lup-hb-foot { border-top-color: rgba(26,24,32,0.08); color: rgba(26,24,32,0.55); }
.lup-hb-foot kbd {
  display: inline-block;
  padding: 2px 6px;
  border: 1px solid rgba(245,241,234,0.18);
  border-radius: 4px;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.75rem;
  color: rgba(245,241,234,0.78);
  margin-right: 6px;
}
body.theme-light .lup-hb-foot kbd { border-color: rgba(26,24,32,0.18); color: #1a1820; }

/* ============ AFFILIATE FINDER POPUP (queued · bottom-left) ============ */
.lup-af-host {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 94;
}
.lup-af-panel {
  position: absolute;
  left: 22px;
  bottom: 22px;
  width: 380px;
  max-width: calc(100vw - 44px);
  padding: 24px 22px 20px;
  background: linear-gradient(165deg, rgba(13,12,20,0.97), rgba(8,7,13,0.96));
  border: 1px solid rgba(95,177,230,0.40);
  border-radius: 18px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.55), 0 0 0 1px rgba(95,177,230,0.10), inset 0 1px 0 rgba(255,255,255,0.04);
  pointer-events: auto;
  transform: translate3d(-130%, 0, 0);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease-out;
}
.lup-af-host.is-visible .lup-af-panel { transform: translate3d(0, 0, 0); opacity: 1; }
body.theme-light .lup-af-panel {
  background: linear-gradient(165deg, rgba(255,253,248,0.98), rgba(241,235,224,0.96));
  border-color: rgba(41,128,196,0.40);
  box-shadow: 0 20px 60px rgba(26,24,32,0.18), 0 0 0 1px rgba(41,128,196,0.10);
}
.lup-af-close {
  position: absolute; top: 10px; right: 12px;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1px solid rgba(245,241,234,0.18);
  background: rgba(8,7,13,0.40);
  color: rgba(245,241,234,0.65);
  font-size: 1rem; line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.18s ease;
}
.lup-af-close:hover { color: #f5f1ea; border-color: rgba(95,177,230,0.55); background: rgba(95,177,230,0.16); }
body.theme-light .lup-af-close { border-color: rgba(26,24,32,0.18); background: rgba(251,247,240,0.60); color: rgba(26,24,32,0.70); }
.lup-af-eyebrow {
  display: inline-block;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.7rem; font-weight: 800;
  letter-spacing: 0.28em; text-transform: uppercase;
  color: #5fb1e6;
  margin: 0 0 10px;
}
body.theme-light .lup-af-eyebrow { color: #2980c4; }
.lup-af-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800; font-size: 1.2rem;
  color: #f5f1ea; margin: 0 0 6px;
  letter-spacing: -0.018em; line-height: 1.18;
}
body.theme-light .lup-af-title { color: #1a1820; }
.lup-af-body {
  color: rgba(245,241,234,0.70);
  font-size: 0.86rem; line-height: 1.5;
  margin: 0 0 14px;
}
body.theme-light .lup-af-body { color: rgba(26,24,32,0.70); }

.lup-af-search {
  display: flex; align-items: center; gap: 8px;
  padding: 8px 12px;
  background: rgba(8,7,13,0.55);
  border: 1px solid rgba(245,241,234,0.12);
  border-radius: 10px;
  margin-bottom: 10px;
}
.lup-af-search:focus-within { border-color: rgba(95,177,230,0.55); background: rgba(8,7,13,0.78); }
body.theme-light .lup-af-search { background: rgba(255,253,248,0.65); border-color: rgba(26,24,32,0.14); }
body.theme-light .lup-af-search:focus-within { border-color: rgba(41,128,196,0.55); }
.lup-af-search svg { color: rgba(245,241,234,0.48); flex-shrink: 0; }
body.theme-light .lup-af-search svg { color: rgba(26,24,32,0.55); }
.lup-af-input {
  flex: 1; border: 0; background: transparent; outline: none;
  color: #f5f1ea;
  font-family: 'Inter', sans-serif; font-size: 0.9rem;
  min-width: 0; padding: 2px 0;
}
body.theme-light .lup-af-input { color: #1a1820; }
.lup-af-input::placeholder { color: rgba(245,241,234,0.40); }
body.theme-light .lup-af-input::placeholder { color: rgba(26,24,32,0.42); }

.lup-af-results {
  display: grid; gap: 6px;
  max-height: 240px;
  overflow-y: auto;
  margin-bottom: 10px;
}
.lup-af-tile {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  background: rgba(245,241,234,0.03);
  border: 1px solid rgba(245,241,234,0.08);
  border-radius: 10px;
  color: #f5f1ea;
  text-decoration: none;
  transition: border-color 0.18s, background 0.18s, transform 0.18s;
}
body.theme-light .lup-af-tile { background: rgba(26,24,32,0.04); border-color: rgba(26,24,32,0.08); color: #1a1820; }
.lup-af-tile:hover {
  border-color: rgba(95,177,230,0.55);
  background: rgba(95,177,230,0.10);
  transform: translateY(-1px);
}
body.theme-light .lup-af-tile:hover { border-color: rgba(41,128,196,0.55); background: rgba(41,128,196,0.08); }
.lup-af-photo {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(95,177,230,0.20), rgba(255,217,122,0.12));
  flex-shrink: 0;
  display: inline-flex; align-items: center; justify-content: center;
  font-family: 'Inter Tight', sans-serif; font-weight: 800; font-size: 0.86rem;
  color: #5fb1e6;
  overflow: hidden;
  border: 1px solid rgba(95,177,230,0.30);
}
.lup-af-photo img { width: 100%; height: 100%; object-fit: cover; }
.lup-af-meta { flex: 1; min-width: 0; }
.lup-af-name {
  display: block;
  font-family: 'Inter Tight', sans-serif; font-weight: 700;
  font-size: 0.84rem; letter-spacing: -0.005em;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.lup-af-detail {
  display: block;
  font-family: 'Inter', sans-serif; font-size: 0.72rem;
  color: rgba(245,241,234,0.58);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-top: 1px;
}
body.theme-light .lup-af-detail { color: rgba(26,24,32,0.58); }
.lup-af-arrow {
  color: rgba(245,241,234,0.40);
  font-family: 'Inter Tight', sans-serif;
  flex-shrink: 0;
  transition: transform 0.18s, color 0.18s;
}
.lup-af-tile:hover .lup-af-arrow, .lup-af-kevin:hover .lup-af-arrow { color: #5fb1e6; transform: translateX(3px); }
body.theme-light .lup-af-arrow { color: rgba(26,24,32,0.40); }
body.theme-light .lup-af-tile:hover .lup-af-arrow, body.theme-light .lup-af-kevin:hover .lup-af-arrow { color: #2980c4; }
.lup-af-empty {
  padding: 14px 8px;
  text-align: center;
  color: rgba(245,241,234,0.55);
  font-size: 0.84rem;
}
body.theme-light .lup-af-empty { color: rgba(26,24,32,0.55); }

.lup-af-kevin {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(255,217,122,0.08), rgba(255,165,61,0.04));
  border: 1px solid rgba(255,217,122,0.32);
  border-radius: 10px;
  color: #f5f1ea;
  text-decoration: none;
  transition: all 0.18s;
  margin-bottom: 10px;
}
body.theme-light .lup-af-kevin { color: #1a1820; }
.lup-af-kevin:hover {
  border-color: rgba(255,217,122,0.55);
  background: linear-gradient(135deg, rgba(255,217,122,0.14), rgba(255,165,61,0.08));
}
.lup-af-kevin img { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; flex-shrink: 0; border: 1px solid rgba(255,217,122,0.45); }
.lup-af-kevin-label { flex: 1; font-family: 'Inter', sans-serif; font-size: 0.84rem; }
.lup-af-kevin-label b { font-family: 'Inter Tight', sans-serif; font-weight: 700; }

.lup-af-dismiss-link {
  display: block;
  background: transparent;
  border: 0;
  padding: 6px 0 0;
  color: rgba(245,241,234,0.45);
  font-family: 'Inter', sans-serif;
  font-size: 0.78rem;
  cursor: pointer;
  text-align: left;
  transition: color 0.18s ease;
  width: 100%;
}
body.theme-light .lup-af-dismiss-link { color: rgba(26,24,32,0.55); }
.lup-af-dismiss-link:hover { color: rgba(245,241,234,0.85); }
body.theme-light .lup-af-dismiss-link:hover { color: rgba(26,24,32,0.85); }

/* Mobile — slide up from bottom instead of left */
@media (max-width: 540px) {
  .lup-af-panel {
    left: 12px; right: 12px;
    bottom: 12px;
    width: auto; max-width: none;
    transform: translate3d(0, 130%, 0);
    padding: 22px 18px 18px;
  }
  .lup-af-host.is-visible .lup-af-panel { transform: translate3d(0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
  .lup-af-panel { transition: opacity 0.2s linear; transform: none; }
  .lup-af-host.is-visible .lup-af-panel { transform: none; }
}

/* ============ FIRST-TIME-VISITOR PANEL (gold accent · cream CTA) ============ */
.lup-fp-host {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 95;
}
.lup-fp-panel {
  position: absolute;
  left: 28px;
  bottom: 28px;
  width: 460px;
  max-width: calc(100vw - 56px);
  padding: 30px 32px 28px;
  background: linear-gradient(165deg, rgba(13,12,20,0.97), rgba(8,7,13,0.96));
  border: 1px solid rgba(255,217,122,0.42);
  border-radius: 20px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow:
    0 20px 60px rgba(0,0,0,0.55),
    0 0 0 1px rgba(255,217,122,0.12),
    inset 0 1px 0 rgba(255,255,255,0.05);
  pointer-events: auto;
  transform: translate3d(-130%, 0, 0);
  opacity: 0;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s ease-out;
  overflow: hidden;
}
.lup-fp-panel::before {
  /* subtle gold-edge glow — matches the eyebrow */
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: inherit;
  padding: 1px;
  background: linear-gradient(135deg, rgba(255,217,122,0.55), rgba(255,165,61,0.30) 50%, rgba(255,217,122,0.18));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  opacity: 0.70;
}
.lup-fp-panel::after {
  /* soft sun-glow blob behind text */
  content: '';
  position: absolute;
  top: -60px; right: -60px;
  width: 220px; height: 220px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,217,122,0.22), transparent 70%);
  pointer-events: none;
}
.lup-fp-host.is-visible .lup-fp-panel {
  transform: translate3d(0, 0, 0);
  opacity: 1;
}
body.theme-light .lup-fp-panel {
  background: linear-gradient(165deg, rgba(255,253,248,0.98), rgba(241,235,224,0.96));
  border-color: rgba(41,128,196,0.32);
  box-shadow:
    0 20px 60px rgba(26,24,32,0.18),
    0 0 0 1px rgba(41,128,196,0.10),
    inset 0 1px 0 rgba(255,255,255,0.6);
}
.lup-fp-close {
  position: absolute;
  top: 12px; right: 14px;
  width: 28px; height: 28px;
  border-radius: 50%;
  border: 1px solid rgba(245,241,234,0.18);
  background: rgba(8,7,13,0.40);
  color: rgba(245,241,234,0.70);
  font-size: 1.1rem; line-height: 1;
  cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: all 0.18s ease;
  z-index: 2;
}
.lup-fp-close:hover { color: #f5f1ea; border-color: rgba(95,177,230,0.55); background: rgba(95,177,230,0.16); }
body.theme-light .lup-fp-close {
  border-color: rgba(26,24,32,0.18);
  background: rgba(251,247,240,0.60);
  color: rgba(26,24,32,0.70);
}
body.theme-light .lup-fp-close:hover { color: #1a1820; border-color: rgba(41,128,196,0.55); background: rgba(41,128,196,0.10); }
.lup-fp-eyebrow {
  display: inline-block;
  font-family: 'Inter Tight', sans-serif;
  font-size: 0.78rem; font-weight: 800;
  letter-spacing: 0.32em; text-transform: uppercase;
  color: #d4af37;
  margin: 0 0 14px;
  position: relative; z-index: 2;
}
body.theme-light .lup-fp-eyebrow { color: #8a6e1a; }
.lup-fp-title {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800; font-size: 1.55rem;
  color: #f5f1ea; margin: 0 0 14px;
  letter-spacing: -0.020em; line-height: 1.18;
  position: relative; z-index: 2;
}
body.theme-light .lup-fp-title { color: #1a1820; }
.lup-fp-title em {
  font-style: normal;
  color: #f5f1ea;
}
body.theme-light .lup-fp-title em { color: #1a1820; }
.lup-fp-body {
  font-family: 'Inter', sans-serif;
  font-size: 1rem; line-height: 1.6;
  color: rgba(245,241,234,0.72);
  margin: 0 0 24px;
  position: relative; z-index: 2;
}
body.theme-light .lup-fp-body { color: rgba(26,24,32,0.70); }

/* Actions row — cream pill primary + ghost secondary */
.lup-fp-actions {
  display: flex; align-items: center; gap: 22px;
  flex-wrap: wrap;
  position: relative; z-index: 2;
}
.lup-fp-cta {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 26px;
  background: #f5f1ea;
  color: #08070d;
  border-radius: 999px;
  text-decoration: none;
  font-family: 'Inter Tight', sans-serif;
  font-weight: 800; font-size: 1rem;
  letter-spacing: -0.005em;
  box-shadow: 0 6px 20px rgba(0,0,0,0.30);
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}
body.theme-light .lup-fp-cta {
  background: #1a1820;
  color: #f5f1ea;
  box-shadow: 0 6px 20px rgba(26,24,32,0.18);
}
.lup-fp-cta:hover {
  transform: translateY(-2px);
  background: #fff;
  box-shadow: 0 10px 28px rgba(0,0,0,0.40);
}
body.theme-light .lup-fp-cta:hover { background: #2a2632; box-shadow: 0 10px 28px rgba(26,24,32,0.26); }
.lup-fp-cta span {
  font-family: 'Inter Tight', sans-serif;
  font-weight: 700;
  transition: transform 0.18s ease;
}
.lup-fp-cta:hover span { transform: translateX(3px); }
.lup-fp-dismiss-link {
  background: transparent;
  border: none;
  padding: 8px 4px;
  color: rgba(245,241,234,0.50);
  font-family: 'Inter', sans-serif;
  font-size: 0.95rem;
  cursor: pointer;
  transition: color 0.18s ease;
}
body.theme-light .lup-fp-dismiss-link { color: rgba(26,24,32,0.55); }
.lup-fp-dismiss-link:hover { color: rgba(245,241,234,0.90); }
body.theme-light .lup-fp-dismiss-link:hover { color: rgba(26,24,32,0.90); }

/* Mobile — switch from left-edge slide to bottom-up slide */
@media (max-width: 540px) {
  .lup-fp-panel {
    left: 12px; right: 12px;
    bottom: 12px;
    width: auto; max-width: none;
    transform: translate3d(0, 130%, 0);
    padding: 22px 22px 20px;
  }
  .lup-fp-host.is-visible .lup-fp-panel { transform: translate3d(0, 0, 0); }
  .lup-fp-title { font-size: 1.25rem; }
}

@media (prefers-reduced-motion: reduce) {
  .lup-fp-panel { transition: opacity 0.2s linear; transform: none; }
  .lup-fp-host.is-visible .lup-fp-panel { transform: none; }
}
