/* ==========================================================================
   Sugar Baby Chat Room — Design System
   Flirty Social × After-Dark Chat × Soft Neon × Playful Chemistry
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* Colour palette */
  --plum: #201a2a;
  --aubergine: #302237;
  --berry: #b84f78;
  --berry-light: #d4708e;
  --berry-dark: #943d62;
  --mauve: #9a67c7;
  --mauve-light: #b48bd9;
  --mint: #65c6a0;
  --pearl: #f7f3f5;
  --lavender: #e9e2ed;
  --charcoal: #29272d;

  /* Derived tones */
  --plum-2: #2a2238;

  /* Typography */
  --font-display: "Fraunces", Georgia, serif;
  --font-sans: "Outfit", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;

  /* Radii */
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(41, 39, 45, 0.08);
  --shadow-md: 0 8px 24px rgba(41, 39, 45, 0.1);
  --shadow-lg: 0 16px 48px rgba(32, 26, 42, 0.28);
  --shadow-berry: 0 10px 30px rgba(184, 79, 120, 0.32);
  --shadow-mauve: 0 10px 30px rgba(154, 103, 199, 0.3);

  /* Layout */
  --container: 1280px;
  --gutter: 20px;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

/* --------------------------------------------------------------------------
   2. Reset & base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

* {
  margin: 0;
  scrollbar-width: thin;
  scrollbar-color: var(--berry) transparent;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--charcoal);
  background-color: var(--pearl);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img,
svg,
video {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

button,
input,
select,
textarea {
  font: inherit;
  color: inherit;
}

button {
  cursor: pointer;
  background: none;
  border: none;
}

a {
  color: inherit;
  text-decoration: none;
}

ul,
ol {
  list-style: none;
  padding: 0;
}

*::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}
*::-webkit-scrollbar-track {
  background: transparent;
}
*::-webkit-scrollbar-thumb {
  background: var(--berry);
  border-radius: 3px;
}

:focus-visible {
  outline: 2px solid var(--berry);
  outline-offset: 2px;
  border-radius: 4px;
}

/* --------------------------------------------------------------------------
   3. Typography helpers
   -------------------------------------------------------------------------- */
.display {
  font-family: var(--font-display);
  font-weight: 300;
  line-height: 1.06;
  letter-spacing: -0.01em;
}

.display em {
  font-style: italic;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: fixed;
  top: 10px;
  left: 10px;
  z-index: 1000;
  transform: translateY(-200%);
  background: var(--berry);
  color: #fff;
  padding: 10px 16px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.9rem;
  transition: transform 0.2s var(--ease);
}
.skip-link:focus {
  transform: translateY(0);
}

/* --------------------------------------------------------------------------
   4. Layout
   -------------------------------------------------------------------------- */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
}

.section--tight {
  padding-block: clamp(2.5rem, 5vw, 3.5rem);
}

.section-head {
  max-width: 620px;
}

.section-head--center {
  margin-inline: auto;
  text-align: center;
}

.section-head__title {
  font-size: clamp(1.9rem, 4vw, 2.9rem);
  margin-top: 0.6rem;
}

.section-head__lede {
  color: rgba(41, 39, 45, 0.6);
  margin-top: 0.8rem;
}

.bg-plum {
  background-color: var(--plum);
  color: #fff;
}
.bg-aubergine {
  background-color: var(--aubergine);
  color: #fff;
}
.bg-pearl {
  background-color: var(--pearl);
  color: var(--charcoal);
}
.bg-lavender {
  background-color: var(--lavender);
  color: var(--charcoal);
}

/* --------------------------------------------------------------------------
   5. Buttons
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.8rem 1.6rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.95rem;
  line-height: 1.2;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease),
    background-color 0.18s var(--ease), opacity 0.18s var(--ease), border-color 0.18s var(--ease);
  white-space: nowrap;
  border: 1px solid transparent;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn--primary {
  background: var(--berry);
  color: #fff;
  box-shadow: var(--shadow-berry);
}
.btn--primary:hover {
  background: var(--berry-dark);
}

.btn--mauve {
  background: var(--mauve);
  color: #fff;
  box-shadow: var(--shadow-mauve);
}
.btn--mauve:hover {
  background: var(--mauve-light);
}

.btn--gradient {
  background: linear-gradient(120deg, var(--berry), var(--mauve));
  color: #fff;
  box-shadow: var(--shadow-berry);
}
.btn--gradient:hover {
  opacity: 0.92;
}

.btn--white {
  background: #fff;
  color: var(--berry);
  box-shadow: var(--shadow-md);
}
.btn--white:hover {
  background: var(--pearl);
}

.btn--ghost-dark {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}
.btn--ghost-dark:hover {
  background: rgba(255, 255, 255, 0.18);
}

.btn--ghost {
  background: transparent;
  color: var(--berry);
  border-color: rgba(184, 79, 120, 0.35);
}
.btn--ghost:hover {
  background: rgba(184, 79, 120, 0.1);
}

.btn--lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

.btn--sm {
  padding: 0.5rem 1rem;
  font-size: 0.82rem;
}

.btn .icon-arrow {
  width: 16px;
  height: 16px;
  transition: transform 0.18s var(--ease);
}
.btn:hover .icon-arrow {
  transform: translateX(2px);
}

.btn--block {
  width: 100%;
}

/* --------------------------------------------------------------------------
   6. Badges, chips, tags, pills
   -------------------------------------------------------------------------- */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.28rem 0.72rem;
  border-radius: var(--r-pill);
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.3;
}

.pill--online {
  background: rgba(101, 198, 160, 0.9);
  color: var(--plum);
}
.pill--verified {
  background: rgba(154, 103, 199, 0.92);
  color: #fff;
}
.pill--new {
  background: var(--berry);
  color: #fff;
}
.pill--dark {
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  backdrop-filter: blur(6px);
}

.tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.6rem;
  border-radius: var(--r-pill);
  font-size: 0.72rem;
  font-weight: 500;
  line-height: 1.5;
}
.tag--dark {
  background: rgba(255, 255, 255, 0.15);
  color: #fff;
}
.tag--berry {
  background: rgba(184, 79, 120, 0.12);
  color: var(--berry);
}
.tag--mauve {
  background: rgba(154, 103, 199, 0.18);
  color: var(--mauve-light);
}
.tag--mint {
  background: rgba(101, 198, 160, 0.16);
  color: var(--mint);
}
.tag--soft {
  background: rgba(255, 255, 255, 0.65);
  color: rgba(41, 39, 45, 0.75);
}

/* --------------------------------------------------------------------------
   7. Presence dot
   -------------------------------------------------------------------------- */
.dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #9ca3af;
  flex: none;
}
.dot--online {
  background: var(--mint);
  animation: pulse-dot 1.5s ease-in-out infinite;
}
.dot--away {
  background: #eab308;
}
.dot--offline {
  background: #9ca3af;
}
.dot--md {
  width: 13px;
  height: 13px;
}
.dot--no-ring {
  border-color: transparent;
}

/* --------------------------------------------------------------------------
   8. Avatars
   -------------------------------------------------------------------------- */
.avatar {
  position: relative;
  width: 44px;
  height: 44px;
  flex: none;
  border-radius: 50%;
  overflow: visible;
}
.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.avatar .dot {
  position: absolute;
  right: -1px;
  bottom: -1px;
}
.avatar--lg {
  width: 56px;
  height: 56px;
}
.avatar--xl {
  width: 72px;
  height: 72px;
}

.avatar-stack {
  display: flex;
}
.avatar-stack .avatar,
.avatar-stack > img {
  margin-left: -8px;
  border: 2px solid var(--pearl);
}
.avatar-stack .avatar:first-child,
.avatar-stack > img:first-child {
  margin-left: 0;
}
.avatar-stack--dark .avatar,
.avatar-stack--dark > img {
  border-color: var(--plum);
}

/* --------------------------------------------------------------------------
   9. Frosted glass + glow
   -------------------------------------------------------------------------- */
.glass {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.glass-light {
  background: rgba(247, 243, 245, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(184, 79, 120, 0.16);
}
.glow-berry {
  box-shadow: 0 0 24px rgba(184, 79, 120, 0.25);
}
.glow-mauve {
  box-shadow: 0 0 24px rgba(154, 103, 199, 0.28);
}

/* --------------------------------------------------------------------------
   10. Header / navigation
   -------------------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(247, 243, 245, 0.86);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(184, 79, 120, 0.12);
}

.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 1rem;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
.brand__mark {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--berry), var(--mauve));
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1rem;
  flex: none;
  box-shadow: 0 4px 14px rgba(184, 79, 120, 0.35);
}
.brand__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.05rem;
  line-height: 1.1;
  color: var(--charcoal);
}
.brand__name span {
  color: var(--berry);
}

.main-nav {
  display: none;
  align-items: center;
  gap: 0.2rem;
}
.main-nav a {
  padding: 0.5rem 0.95rem;
  border-radius: var(--r-pill);
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(41, 39, 45, 0.72);
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.main-nav a:hover {
  color: var(--charcoal);
  background: rgba(184, 79, 120, 0.1);
}
.main-nav a[aria-current="page"] {
  background: var(--berry);
  color: #fff;
}

.site-header__actions {
  display: none;
  align-items: center;
  gap: 0.6rem;
}
.site-header__signin {
  font-size: 0.9rem;
  font-weight: 500;
  color: rgba(41, 39, 45, 0.7);
  padding: 0.5rem 0.75rem;
}
.site-header__signin:hover {
  color: var(--charcoal);
}

.nav-toggle {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  color: var(--charcoal);
}
.nav-toggle svg {
  width: 24px;
  height: 24px;
}

.mobile-nav {
  display: none;
  border-top: 1px solid rgba(184, 79, 120, 0.12);
  background: rgba(247, 243, 245, 0.97);
  padding: 0.75rem var(--gutter) 1.25rem;
}
.mobile-nav.is-open {
  display: block;
}
.mobile-nav a {
  display: block;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 500;
  color: rgba(41, 39, 45, 0.75);
}
.mobile-nav a:hover {
  background: rgba(184, 79, 120, 0.1);
  color: var(--charcoal);
}
.mobile-nav a[aria-current="page"] {
  background: rgba(184, 79, 120, 0.14);
  color: var(--berry);
}
.mobile-nav__cta {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.75rem;
}
.mobile-nav__cta .btn {
  flex: 1;
}

/* --------------------------------------------------------------------------
   11. Footer
   -------------------------------------------------------------------------- */
.site-footer {
  background: var(--plum);
  color: #fff;
}
.site-footer__grid {
  display: grid;
  gap: 2.25rem;
  padding-block: 3.5rem 2.75rem;
}
.site-footer__brand p {
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.9rem;
  margin-top: 0.9rem;
  max-width: 30ch;
}
.site-footer__brand .brand__name {
  color: #fff;
}
.site-footer__presence {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  color: var(--mint);
  font-size: 0.8rem;
  font-weight: 500;
}
.site-footer__presence .dot {
  border-color: transparent;
}
.site-footer h4 {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 1rem;
}
.site-footer ul {
  display: grid;
  gap: 0.55rem;
}
.site-footer ul a {
  color: rgba(255, 255, 255, 0.55);
  font-size: 0.9rem;
  transition: color 0.15s var(--ease);
}
.site-footer ul a:hover {
  color: #fff;
}
.site-footer__bottom {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  align-items: flex-start;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-block: 1.5rem 1.75rem;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.35);
}
.site-footer__legal {
  display: flex;
  flex-wrap: wrap;
  gap: 1.1rem;
}
.site-footer__legal a {
  color: rgba(255, 255, 255, 0.35);
}
.site-footer__legal a:hover {
  color: rgba(255, 255, 255, 0.7);
}

/* --------------------------------------------------------------------------
   12. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--plum);
  color: #fff;
}
.hero__bg {
  position: absolute;
  inset: 0;
  opacity: 0.3;
}
.hero__bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    120deg,
    var(--plum),
    rgba(32, 26, 42, 0.94) 55%,
    rgba(48, 34, 55, 0.9)
  );
}
.hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}
.hero__orb--berry {
  top: 10%;
  right: 6%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(184, 79, 120, 0.55), transparent 70%);
  opacity: 0.35;
}
.hero__orb--mauve {
  bottom: 8%;
  left: 4%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(154, 103, 199, 0.5), transparent 70%);
  opacity: 0.3;
}
.hero__inner {
  position: relative;
  display: grid;
  gap: 3rem;
  padding-block: clamp(3.5rem, 8vw, 6rem);
}
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.35rem 0.85rem;
  border-radius: var(--r-pill);
  margin-bottom: 1.4rem;
}
.hero h1 {
  font-size: clamp(2.5rem, 6vw, 4.3rem);
  color: #fff;
}
.hero h1 .accent-berry {
  color: var(--berry);
  font-style: normal;
}
.hero h1 .accent-mauve {
  color: var(--mauve-light);
  font-style: normal;
}
.hero__lede {
  color: rgba(255, 255, 255, 0.6);
  font-size: 1.1rem;
  max-width: 30rem;
  margin-top: 1.25rem;
}
.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.75rem;
}
.hero__foot {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.25rem;
}
.hero__foot p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
}

/* Hero chat / profile composition */
.hero-visual {
  position: relative;
  display: none;
}

/* --------------------------------------------------------------------------
   13. Member cards & rows
   -------------------------------------------------------------------------- */
.member-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: repeat(2, 1fr);
}

.member-card {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(233, 226, 237, 0.9);
  box-shadow: var(--shadow-sm);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.member-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.member-card__media {
  position: relative;
  aspect-ratio: 3 / 4;
}
.member-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-card__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(32, 26, 42, 0.85),
    rgba(32, 26, 42, 0.2) 55%,
    transparent
  );
}
.member-card__badges {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  right: 0.75rem;
  display: flex;
  justify-content: space-between;
}
.member-card__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0.9rem;
}
.member-card__status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--mint);
  text-transform: capitalize;
}
.member-card__name {
  color: #fff;
  font-weight: 600;
  font-size: 1.02rem;
  margin-top: 0.2rem;
}
.member-card__loc {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
}
.member-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.45rem;
}
.member-card__cta {
  margin-top: 0.7rem;
}

.member-card--dark {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: var(--shadow-mauve);
  backdrop-filter: blur(10px);
}

.member-row {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1rem;
  border-radius: var(--r-md);
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
  text-align: left;
  width: 100%;
}
.member-row--light {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(184, 79, 120, 0.1);
}
.member-row--light:hover {
  border-color: rgba(184, 79, 120, 0.32);
}
.member-row--dark {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
}
.member-row--dark:hover {
  background: rgba(255, 255, 255, 0.09);
}
.member-row__body {
  min-width: 0;
  flex: 1;
}
.member-row__name {
  font-weight: 600;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.member-row__name .check {
  color: var(--mauve);
}
.member-row__meta {
  font-size: 0.8rem;
  color: rgba(41, 39, 45, 0.5);
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
.member-row--dark .member-row__meta {
  color: rgba(255, 255, 255, 0.5);
}
.member-row__intro {
  font-size: 0.8rem;
  color: rgba(41, 39, 45, 0.5);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.member-row--dark .member-row__intro {
  color: rgba(255, 255, 255, 0.5);
}
.member-row--dark .member-row__name {
  color: #fff;
}

/* --------------------------------------------------------------------------
   14. Chat UI
   -------------------------------------------------------------------------- */
.chat {
  display: flex;
  flex-direction: column;
}
.chat__body {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.1rem;
  overflow-y: auto;
}
.chat__msg {
  display: flex;
  align-items: flex-end;
  gap: 0.5rem;
}
.chat__msg--right {
  justify-content: flex-end;
}
.chat__bubble {
  max-width: 78%;
  padding: 0.55rem 0.9rem;
  border-radius: 18px;
  font-size: 0.85rem;
  line-height: 1.45;
}
.chat__msg--left .chat__bubble {
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.85);
  border-bottom-left-radius: 6px;
}
.chat__msg--right .chat__bubble {
  background: var(--berry);
  color: #fff;
  border-bottom-right-radius: 6px;
}
.chat__msg--right.is-mauve .chat__bubble {
  background: var(--mauve);
}
.chat__name {
  display: block;
  font-size: 0.66rem;
  font-weight: 600;
  color: var(--berry-light);
  margin-bottom: 0.2rem;
}
.chat__time {
  display: block;
  font-size: 0.66rem;
  color: rgba(255, 255, 255, 0.3);
  margin-top: 0.2rem;
}
.chat__avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  flex: none;
}

.chat__typing {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.72rem;
  font-style: italic;
  color: rgba(255, 255, 255, 0.4);
  padding: 0.15rem 0.5rem;
}
.chat__typing .dots {
  display: inline-flex;
  gap: 3px;
}
.chat__typing .dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(184, 79, 120, 0.7);
  animation: bounce-typing 0.8s ease-in-out infinite;
}
.chat__typing .dots span:nth-child(2) {
  animation-delay: 0.15s;
}
.chat__typing .dots span:nth-child(3) {
  animation-delay: 0.3s;
}

.chat__input {
  display: flex;
  gap: 0.6rem;
  min-width: 0;
  padding: 0.9rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.chat__input .field {
  flex: 1 1 0;
  width: auto;
  min-width: 0;
}
.chat__input .field input {
  min-width: 0;
}
.chat__send {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--berry);
  color: #fff;
  display: grid;
  place-items: center;
  flex: none;
  transition: background-color 0.15s var(--ease);
}
.chat__send:hover {
  background: var(--berry-dark);
}
.chat__send svg {
  width: 20px;
  height: 20px;
}

.chat-head {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.chat-head__title {
  font-weight: 600;
  font-size: 0.9rem;
}
.chat-head__sub {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.45);
}

/* --------------------------------------------------------------------------
   15. Topic room cards
   -------------------------------------------------------------------------- */
.room-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}
.room-card {
  position: relative;
  border-radius: var(--r-md);
  padding: 1.5rem;
  border: 1px solid rgba(233, 226, 237, 0.7);
  transition: transform 0.22s var(--ease), border-color 0.22s var(--ease),
    box-shadow 0.22s var(--ease);
}
.room-card:hover {
  transform: translateY(-3px);
  border-color: rgba(184, 79, 120, 0.35);
  box-shadow: var(--shadow-sm);
}
.room-card__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}
.room-card__icon {
  font-size: 1.9rem;
  line-height: 1;
}
.room-card__title {
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 0.35rem;
}
.room-card__desc {
  font-size: 0.87rem;
  color: rgba(41, 39, 45, 0.58);
  margin-bottom: 0.9rem;
}
.room-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1rem;
}
.room-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.room-card__join {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--berry);
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.room-card__join svg {
  width: 14px;
  height: 14px;
}

/* gradient tints for room cards */
.tint-berry {
  background: linear-gradient(135deg, rgba(184, 79, 120, 0.16), rgba(154, 103, 199, 0.08));
}
.tint-mauve {
  background: linear-gradient(135deg, rgba(154, 103, 199, 0.2), rgba(48, 34, 55, 0.12));
}
.tint-mint {
  background: linear-gradient(135deg, rgba(101, 198, 160, 0.16), rgba(154, 103, 199, 0.08));
}
.tint-plum {
  background: linear-gradient(135deg, rgba(32, 26, 42, 0.22), rgba(48, 34, 55, 0.14));
}
.tint-pearl {
  background: linear-gradient(135deg, rgba(184, 79, 120, 0.1), rgba(233, 226, 237, 0.6));
}

/* --------------------------------------------------------------------------
   16. Steps (how it works)
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 1.25rem;
}
.step-card {
  position: relative;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(12px);
  border-radius: var(--r-md);
  padding: 1.5rem;
}
.step-card__head {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.85rem;
}
.step-card__icon {
  font-size: 1.7rem;
}
.step-card__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.6rem;
  color: rgba(255, 255, 255, 0.12);
  line-height: 1;
}
.step-card__title {
  font-weight: 600;
  font-size: 1.05rem;
  color: #fff;
  margin-bottom: 0.4rem;
}
.step-card__desc {
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.52);
}

/* --------------------------------------------------------------------------
   17. Journey
   -------------------------------------------------------------------------- */
.journey {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}
.journey-step {
  position: relative;
  display: flex;
  gap: 1rem;
  align-items: flex-start;
}
.journey-step__node {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--berry), var(--mauve));
  display: grid;
  place-items: center;
  font-size: 1.2rem;
  flex: none;
  box-shadow: var(--shadow-berry);
  color: #fff;
}
.journey-step__label {
  font-weight: 700;
  font-size: 0.72rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--berry);
}
.journey-step__desc {
  font-size: 0.84rem;
  color: rgba(41, 39, 45, 0.58);
  margin-top: 0.1rem;
}

/* --------------------------------------------------------------------------
   18. FAQ
   -------------------------------------------------------------------------- */
.faq {
  display: grid;
  gap: 0.8rem;
}
.faq-item {
  border-radius: var(--r-md);
  border: 1px solid rgba(233, 226, 237, 0.9);
  background: rgba(255, 255, 255, 0.55);
  overflow: hidden;
  transition: border-color 0.2s var(--ease), background-color 0.2s var(--ease);
}
.faq-item.is-open {
  border-color: rgba(184, 79, 120, 0.32);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.faq-item__q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  text-align: left;
  padding: 1.05rem 1.3rem;
  font-weight: 500;
  font-size: 1rem;
  color: var(--charcoal);
}
.faq-item.is-open .faq-item__q {
  color: var(--berry);
}
.faq-item__icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  background: var(--lavender);
  color: rgba(41, 39, 45, 0.55);
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.25s var(--ease), background-color 0.25s var(--ease),
    color 0.25s var(--ease);
}
.faq-item.is-open .faq-item__icon {
  background: var(--berry);
  color: #fff;
  transform: rotate(45deg);
}
.faq-item__a {
  display: none;
  padding: 0 1.3rem 1.2rem;
  color: rgba(41, 39, 45, 0.65);
  font-size: 0.92rem;
  line-height: 1.65;
}
.faq-item.is-open .faq-item__a {
  display: block;
}

/* --------------------------------------------------------------------------
   19. Forms
   -------------------------------------------------------------------------- */
.field {
  display: block;
  width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  font-size: 0.95rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  transition: border-color 0.15s var(--ease);
}
.field:focus {
  outline: none;
  border-color: rgba(184, 79, 120, 0.6);
}
.field--dark {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}
.field--dark::placeholder {
  color: rgba(255, 255, 255, 0.32);
}
.field--light {
  background: #fff;
  color: var(--charcoal);
  border-color: rgba(184, 79, 120, 0.16);
}
.field--light::placeholder {
  color: rgba(41, 39, 45, 0.4);
}

.form-label {
  display: block;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.55);
  margin-bottom: 0.4rem;
}

.checkbox {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  cursor: pointer;
  font-size: 0.88rem;
}
.checkbox__box {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: grid;
  place-items: center;
  flex: none;
  transition: background-color 0.15s var(--ease), border-color 0.15s var(--ease);
}
.checkbox input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.checkbox input:checked + .checkbox__box {
  background: var(--berry);
  border-color: var(--berry);
}
.checkbox input:checked + .checkbox__box::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg) translateY(-1px);
}
.checkbox input:focus-visible + .checkbox__box {
  outline: 2px solid var(--berry);
  outline-offset: 2px;
}

/* --------------------------------------------------------------------------
   20. Safety / etiquette cards
   -------------------------------------------------------------------------- */
.guide-grid {
  display: grid;
  gap: 1.15rem;
  grid-template-columns: 1fr;
}
.guide-card {
  border-radius: var(--r-md);
  padding: 1.4rem;
  border: 1px solid;
}
.guide-card__icon {
  font-size: 1.6rem;
  margin-bottom: 0.7rem;
}
.guide-card h3 {
  font-weight: 600;
  font-size: 1.02rem;
  margin-bottom: 0.4rem;
  color: var(--charcoal);
}
.guide-card p {
  font-size: 0.88rem;
  line-height: 1.55;
  color: rgba(41, 39, 45, 0.65);
}
.guide-card--warning {
  background: #fdf6e3;
  border-color: #f3e3b3;
}
.guide-card--danger {
  background: #fdecec;
  border-color: #f4c6c6;
}
.guide-card--safe {
  background: rgba(101, 198, 160, 0.1);
  border-color: rgba(101, 198, 160, 0.32);
}

.do-card {
  display: flex;
  gap: 1rem;
  padding: 1.15rem;
  border-radius: var(--r-md);
  background: rgba(101, 198, 160, 0.1);
  border: 1px solid rgba(101, 198, 160, 0.24);
}
.do-card__icon {
  font-size: 1.5rem;
  flex: none;
}
.do-card h3 {
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}
.do-card p {
  font-size: 0.85rem;
  color: rgba(41, 39, 45, 0.62);
}
.dont-card {
  display: flex;
  gap: 1rem;
  padding: 1.15rem;
  border-radius: var(--r-md);
  background: #fdecec;
  border: 1px solid #f4c6c6;
}
.dont-card__icon {
  font-size: 1.5rem;
  flex: none;
}
.dont-card h3 {
  font-weight: 600;
  font-size: 0.98rem;
  margin-bottom: 0.25rem;
}
.dont-card p {
  font-size: 0.85rem;
  color: rgba(41, 39, 45, 0.62);
}

.checklist {
  display: grid;
  gap: 0.7rem;
  text-align: left;
}
.checklist li {
  display: flex;
  align-items: center;
  gap: 0.8rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
}
.checklist li .tick {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(101, 198, 160, 0.28);
  color: var(--mint);
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  flex: none;
}

/* --------------------------------------------------------------------------
   21. Split feature panels
   -------------------------------------------------------------------------- */
.split {
  display: grid;
}
.split--2 {
  grid-template-columns: minmax(0, 1fr);
}
.split-panel {
  padding: clamp(2rem, 5vw, 3.5rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.split-panel--pearl {
  background: linear-gradient(135deg, var(--pearl), var(--lavender));
}
.split-panel--dark {
  background: linear-gradient(135deg, var(--aubergine), var(--plum));
  color: #fff;
}
.split-panel .eyebrow {
  margin-bottom: 0.9rem;
}
.split-panel h2 {
  font-size: clamp(1.8rem, 3.6vw, 2.5rem);
  margin-bottom: 0.9rem;
}
.split-panel .split-panel__lede {
  margin-bottom: 1.5rem;
}
.split-panel--pearl .split-panel__lede {
  color: rgba(41, 39, 45, 0.62);
}
.split-panel--dark .split-panel__lede {
  color: rgba(255, 255, 255, 0.62);
}

/* --------------------------------------------------------------------------
   22. Chatroom layout
   -------------------------------------------------------------------------- */
.chatroom {
  background: var(--plum);
  color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
.chatroom__toolbar {
  background: var(--aubergine);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.chatroom__toolbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 1rem;
}
.chatroom__title {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 1.5rem;
}
.chatroom__online {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--mint);
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 0.15rem;
}
.chatroom__toolbar-actions {
  display: flex;
  gap: 0.6rem;
}

.chatroom__stage {
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}
.chatroom__filters {
  display: none;
}
.chatroom__members {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(48, 34, 55, 0.2);
}
.chatroom__members-list {
  flex: 1;
  min-width: 0;
  overflow-y: auto;
}
.chatroom__conversation {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  background: rgba(32, 26, 42, 0.25);
}

.chatroom__mobile-tabs {
  display: flex;
  background: var(--aubergine);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.chatroom__mobile-tabs button {
  flex: 1;
  padding: 0.85rem;
  font-size: 0.88rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  border-bottom: 2px solid transparent;
}
.chatroom__mobile-tabs button.is-active {
  color: var(--berry-light);
  border-bottom-color: var(--berry);
}

.filter-group {
  margin-bottom: 1.5rem;
}
.filter-group__label {
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.4);
  margin-bottom: 0.7rem;
}
.filter-list {
  display: grid;
  gap: 0.2rem;
}
.filter-list button {
  text-align: left;
  padding: 0.6rem 0.85rem;
  border-radius: 12px;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.62);
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.filter-list button:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}
.filter-list button.is-active {
  background: var(--berry);
  color: #fff;
  font-weight: 500;
}

.filter-chips {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.filter-chips button {
  padding: 0.32rem 0.8rem;
  border-radius: var(--r-pill);
  font-size: 0.8rem;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.65);
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease);
}
.filter-chips button:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.filter-chips button.is-active {
  background: var(--berry);
  color: #fff;
}

/* --------------------------------------------------------------------------
   23. Private chat
   -------------------------------------------------------------------------- */
.private-shell {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(16px);
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-mauve);
}
.private-shell__bar {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 1.1rem;
  background: rgba(32, 26, 42, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.private-shell__label {
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.65);
}
.private-shell__encrypt {
  margin-left: auto;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.35);
}

/* --------------------------------------------------------------------------
   24. Interactive demos (JS-driven)
   -------------------------------------------------------------------------- */
[data-view] {
  display: none;
}
[data-view].is-active {
  display: block;
}
[data-view].is-active.flex {
  display: flex;
}
[data-view].is-active.grid {
  display: grid;
}

/* --------------------------------------------------------------------------
   25. Animations
   -------------------------------------------------------------------------- */
@keyframes pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.45;
    transform: scale(0.82);
  }
}
@keyframes bounce-typing {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}
@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}
@keyframes glow-berry {
  0%,
  100% {
    box-shadow: 0 0 20px rgba(184, 79, 120, 0.3);
  }
  50% {
    box-shadow: 0 0 40px rgba(184, 79, 120, 0.6);
  }
}

.animate-float {
  animation: float 3.2s ease-in-out infinite;
}
.animate-glow {
  animation: glow-berry 2.6s ease-in-out infinite;
}

@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;
  }
}

/* --------------------------------------------------------------------------
   26. Utilities
   -------------------------------------------------------------------------- */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }

.hidden {
  display: none !important;
}

/* --------------------------------------------------------------------------
   27. Responsive
   -------------------------------------------------------------------------- */
@media (max-width: 767px) {
  .hero__inner > div:first-child {
    text-align: center;
  }
  .hero__lede {
    margin-inline: auto;
  }
  .hero__actions,
  .hero__foot {
    justify-content: center;
  }
}

@media (min-width: 640px) {
  :root {
    --gutter: 24px;
  }
  .member-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .room-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .guide-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 768px) {
  .site-footer__grid {
    grid-template-columns: 2fr 1fr 1fr 1fr;
  }
  .site-footer__bottom {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .hero-visual {
    display: block;
  }
}

@media (min-width: 900px) {
  .main-nav {
    display: flex;
  }
  .site-header__actions {
    display: flex;
  }
  .nav-toggle {
    display: none;
  }
  .mobile-nav {
    display: none !important;
  }
  .hero__inner {
    grid-template-columns: 1fr 1fr;
    align-items: center;
  }
  .split--2 {
    grid-template-columns: 1fr 1fr;
  }
  .journey {
    flex-direction: row;
  }
  .journey-step {
    flex: 1;
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
  .chatroom__stage {
    grid-template-columns: 240px 300px 1fr;
    min-height: calc(100vh - 140px);
  }
  .chatroom__filters {
    display: flex;
    flex-direction: column;
    padding: 1.25rem;
    border-right: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(48, 34, 55, 0.4);
  }
  .chatroom__mobile-tabs {
    display: none;
  }
}

@media (min-width: 1024px) {
  .member-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  .room-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  .steps {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* ==========================================================================
   28. Supplemental components (hero visual, room preview, private shell, etc.)
   ========================================================================== */

/* Accent text */
.accent-berry { color: var(--berry); font-style: normal; }
.accent-mauve { color: var(--mauve-light); font-style: normal; }
.check { color: var(--mauve); font-weight: 700; }

.split-panel--pearl .display em { color: var(--berry); font-style: normal; }
.split-panel--dark .display em { color: var(--mauve-light); font-style: normal; }
.bg-plum .display em, .bg-aubergine .display em { color: var(--berry); font-style: normal; }

/* Avatar stack images */
.avatar-stack img {
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

/* Hero visual composition */
.hero-visual {
  position: relative;
  height: 460px;
}
.hero-float {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 0.9rem;
  border-radius: var(--r-md);
  width: 214px;
  box-shadow: var(--shadow-lg);
  z-index: 2;
}
.hero-float__meta {
  min-width: 0;
}
.hero-float__name {
  display: block;
  color: #fff;
  font-weight: 600;
  font-size: 0.84rem;
  line-height: 1.2;
}
.hero-float__role {
  display: block;
  color: rgba(255, 255, 255, 0.52);
  font-size: 0.72rem;
  margin-bottom: 0.28rem;
}
.hero-chat {
  position: absolute;
  top: 34%;
  left: 30%;
  width: 262px;
  border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  z-index: 3;
}
.chat-head__live {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.hero__scroll {
  position: absolute;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.72rem;
}
.hero__scroll-line {
  width: 1px;
  height: 32px;
  background: linear-gradient(to bottom, rgba(255, 255, 255, 0.3), transparent);
}

/* Who's online */
.who-grid {
  display: grid;
  gap: 1.25rem;
  grid-template-columns: 1fr;
  align-items: stretch;
}
.who-grid .member-grid {
  grid-template-columns: repeat(2, 1fr);
}
.who-list {
  display: grid;
  gap: 0.45rem;
}
.online-banner {
  margin-top: 2.25rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r-md);
  background: rgba(233, 226, 237, 0.62);
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.member-feature {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  aspect-ratio: 3 / 4;
  box-shadow: var(--shadow-md);
  background: #fff;
}
.member-feature img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.member-feature__shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(32, 26, 42, 0.9), rgba(32, 26, 42, 0.3) 55%, transparent);
}
.member-feature__badges {
  position: absolute;
  top: 1rem;
  left: 1rem;
  right: 1rem;
  display: flex;
  justify-content: space-between;
}
.member-feature__info {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 1.25rem;
}

/* Room preview */
.room-preview {
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.room-preview__bar {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.7rem 1.1rem;
  background: rgba(32, 26, 42, 0.82);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.room-preview__dots {
  display: flex;
  flex: none;
  gap: 0.3rem;
}
.room-preview__dots i {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
}
.room-preview__dots i:nth-child(1) { background: rgba(244, 114, 114, 0.75); }
.room-preview__dots i:nth-child(2) { background: rgba(250, 204, 21, 0.75); }
.room-preview__dots i:nth-child(3) { background: rgba(101, 198, 160, 0.75); }
.room-preview__url {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.5);
}
.room-preview__live {
  display: flex;
  align-items: center;
  flex: none;
  gap: 0.4rem;
  font-size: 0.72rem;
  color: var(--mint);
}
.room-preview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
}
.room-preview__filters {
  display: none;
  padding: 1.25rem;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.room-preview__members {
  min-width: 0;
  max-width: 100%;
  border-right: 1px solid rgba(255, 255, 255, 0.1);
}
.room-preview__search {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.room-preview__searchbar {
  display: block;
  width: 100%;
  padding: 0.5rem 0.8rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.35);
  font-size: 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
}
.room-preview__list {
  max-height: 360px;
  overflow-y: auto;
}
.room-preview__list .member-row {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}
.room-preview__convo {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
  min-height: 360px;
}

/* Private shell */
.private-shell__grid {
  display: grid;
  grid-template-columns: 1fr;
}
.private-shell__side {
  padding: 1.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.private-shell__interests {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  justify-content: center;
  margin-bottom: 1rem;
}
.private-shell__controls {
  display: grid;
  gap: 0.4rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 0.9rem;
}
.private-shell__control {
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.5);
}
.private-shell__safety {
  margin-top: 0.9rem;
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: rgba(101, 198, 160, 0.1);
  border: 1px solid rgba(101, 198, 160, 0.2);
  color: var(--mint);
  font-size: 0.78rem;
}
.private-shell__chat {
  display: flex;
  flex-direction: column;
}

/* Chatroom supplemental */
.member-row.is-selected {
  background: rgba(184, 79, 120, 0.14);
  box-shadow: inset 3px 0 0 var(--berry);
}
.chatroom__members-list .member-row {
  border-radius: 0;
  border-left: 0;
  border-right: 0;
  border-top: 0;
}
.chatroom__toolbar-actions {
  display: flex;
  gap: 0.6rem;
}

@media (max-width: 639px) {
  .chatroom__toolbar .container {
    align-items: stretch;
    flex-direction: column;
    gap: 0.75rem;
  }
  .chatroom__toolbar-actions {
    width: 100%;
  }
  .chatroom__toolbar-actions .btn {
    flex: 1 1 0;
    min-width: 0;
    padding-inline: 0.7rem;
  }
}

/* --------------------------------------------------------------------------
   33. Blog index + long-form articles
   -------------------------------------------------------------------------- */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.5rem;
}
.blog-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(83, 39, 74, 0.1);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(54, 28, 49, 0.08);
}
.blog-card__image { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.blog-card__image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s var(--ease); }
.blog-card:hover .blog-card__image img { transform: scale(1.025); }
.blog-card__body { display: flex; flex: 1; flex-direction: column; padding: 1.4rem; }
.blog-card__meta { color: rgba(41,39,45,.5); font-size: .8rem; font-weight: 600; letter-spacing: .02em; }
.blog-card h2, .blog-card h3 { margin-top: .55rem; font-family: "Fraunces", serif; color: var(--ink); line-height: 1.15; }
.blog-card h2 { font-size: clamp(1.45rem, 3vw, 1.9rem); }
.blog-card h3 { font-size: 1.35rem; }
.blog-card p { margin-top: .7rem; color: rgba(41,39,45,.66); line-height: 1.65; }
.blog-card__link { margin-top: auto; padding-top: 1rem; color: var(--berry-dark); font-weight: 750; }

.article-header { padding: clamp(2.5rem, 6vw, 4.75rem) 0 2rem; text-align: center; }
.article-header__inner { max-width: 860px; margin-inline: auto; }
.article-header h1 { margin-top: .75rem; font-size: clamp(2.25rem, 6vw, 4rem); line-height: 1.05; }
.article-dek { max-width: 720px; margin: 1.1rem auto 0; color: rgba(255,255,255,.72); font-size: clamp(1rem,2vw,1.18rem); line-height: 1.7; }
.article-byline { display: flex; justify-content: center; align-items: center; gap: .75rem; margin-top: 1.35rem; color: rgba(255,255,255,.7); font-size: .88rem; }
.article-byline img { width: 44px; height: 44px; border: 2px solid rgba(255,255,255,.65); border-radius: 50%; object-fit: cover; }
.article-byline strong { display: block; color: #fff; text-align: left; }
.article-byline span { display: block; text-align: left; }
.article-hero-media { max-width: 1120px; margin: 0 auto clamp(2rem,5vw,4rem); padding-inline: clamp(1rem,3vw,1.5rem); }
.article-hero-media img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 28px; box-shadow: 0 24px 65px rgba(54,28,49,.2); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: clamp(2rem,5vw,4rem); align-items: start; max-width: 1040px; }
.article-content { min-width: 0; color: rgba(41,39,45,.78); font-size: 1.02rem; line-height: 1.8; }
.article-content > * + * { margin-top: 1.2rem; }
.article-content h2 { margin-top: 2.5rem; font-family: "Fraunces", serif; color: var(--ink); font-size: clamp(1.65rem,3vw,2.15rem); line-height: 1.2; }
.article-content h3 { margin-top: 1.8rem; color: var(--ink); font-size: 1.18rem; line-height: 1.35; }
.article-content ul, .article-content ol { padding-left: 1.35rem; }
.article-content li + li { margin-top: .65rem; }
.article-content a { color: var(--berry-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.article-callout { padding: 1.2rem 1.3rem; border-left: 4px solid var(--berry); border-radius: 16px; background: #fff4f7; color: rgba(41,39,45,.78); }
.article-script { padding: .9rem 1.05rem; border: 1px solid rgba(101,198,160,.35); border-radius: 14px; background: #f3fbf7; color: #315c4b; font-weight: 600; }
.article-sidebar { position: sticky; top: 92px; }
.author-card { padding: 1.25rem; border: 1px solid rgba(83,39,74,.1); border-radius: 20px; background: #fff; text-align: center; box-shadow: var(--shadow-sm); }
.author-card img { width: 88px; height: 88px; border-radius: 50%; object-fit: cover; }
.author-card h2 { margin-top: .7rem; font-size: 1.05rem; }
.author-card p { margin-top: .45rem; color: rgba(41,39,45,.62); font-size: .84rem; line-height: 1.55; }
.article-sources { padding-top: 1.5rem; border-top: 1px solid rgba(83,39,74,.12); }
.article-sources h2 { margin-top: 0; }

@media (max-width: 799px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; }
  .author-card { display: grid; grid-template-columns: 72px 1fr; column-gap: 1rem; text-align: left; align-items: center; }
  .author-card img { grid-row: 1 / 3; width: 72px; height: 72px; }
  .author-card h2, .author-card p { margin-top: 0; }
}
@media (max-width: 639px) {
  .blog-grid { grid-template-columns: 1fr; }
  .article-hero-media img { border-radius: 18px; }
  .article-content { font-size: .98rem; }
}

/* Chatroom mobile view switching (members <-> conversation) */
.chatroom__members { display: none; }
.chatroom__conversation { display: flex; }
.chatroom[data-mobile-view="list"] .chatroom__members { display: flex; }
.chatroom[data-mobile-view="list"] .chatroom__conversation { display: none; }

@media (min-width: 640px) {
  .who-grid .member-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 768px) {
  .private-shell__grid { grid-template-columns: 212px 1fr; }
  .private-shell__side { border-bottom: 0; border-right: 1px solid rgba(255, 255, 255, 0.1); }
}

@media (min-width: 900px) {
  .room-preview__grid { grid-template-columns: 220px 260px 1fr; }
  .room-preview__filters { display: block; }
  .chatroom__members { display: flex; }
  .chatroom__conversation { display: flex; }
}

@media (min-width: 1024px) {
  .who-grid { grid-template-columns: 1fr 2fr; }
}

/* --------------------------------------------------------------------------
   29. Breadcrumbs + inner-page helpers
   -------------------------------------------------------------------------- */
.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  font-size: 0.82rem;
  padding-block: 1rem;
  color: rgba(41, 39, 45, 0.55);
}
.breadcrumbs a:hover { color: var(--berry); }
.breadcrumbs__sep { color: rgba(41, 39, 45, 0.3); }
.breadcrumbs--dark { color: rgba(255, 255, 255, 0.5); }
.breadcrumbs--dark .breadcrumbs__sep { color: rgba(255, 255, 255, 0.3); }
.breadcrumbs--dark a:hover { color: var(--mauve-light); }

.page-hero {
  position: relative;
  overflow: hidden;
  padding-block: clamp(2.5rem, 6vw, 4.5rem);
}
.page-hero__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mw-narrow { max-width: 720px; }
.mw-mid { max-width: 880px; }
.mw-wide { max-width: 1080px; }

/* Editorial prose for guide pages (kept compact, not a wall of text) */
.prose-block {
  background: #fff;
  border: 1px solid rgba(233, 226, 237, 0.9);
  border-radius: var(--r-md);
  padding: 1.75rem;
  box-shadow: var(--shadow-sm);
}
.prose-block h2 {
  font-size: 1.35rem;
  margin-bottom: 0.6rem;
}
.prose-block p {
  color: rgba(41, 39, 45, 0.66);
  line-height: 1.7;
  font-size: 0.95rem;
}

/* Chatroom conversation specifics */
.chatroom__back {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  color: rgba(255, 255, 255, 0.55);
  flex: none;
}
.chatroom__back:hover { background: rgba(255, 255, 255, 0.1); color: #fff; }
.chatroom__back svg { width: 20px; height: 20px; }
.chatroom__interests {
  display: flex;
  gap: 0.4rem;
  padding: 0.6rem 1rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  overflow-x: auto;
}
.chatroom__convo-meta {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.chatroom__empty {
  padding: 3rem 1rem;
  text-align: center;
  color: rgba(255, 255, 255, 0.4);
}
@media (min-width: 900px) {
  .chatroom__back { display: none; }
}

/* --------------------------------------------------------------------------
   30. Discovery pages — light filter toolbar + away status
   -------------------------------------------------------------------------- */
.filter-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
  margin-top: 1.25rem;
}
.filter-toolbar__label {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(41, 39, 45, 0.45);
  margin-right: 0.25rem;
}
.filter-toolbar__sep {
  width: 1px;
  height: 22px;
  background: rgba(184, 79, 120, 0.2);
  margin-inline: 0.25rem;
}
.chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.38rem 0.95rem;
  border-radius: var(--r-pill);
  font-size: 0.82rem;
  font-weight: 500;
  background: #fff;
  color: rgba(41, 39, 45, 0.68);
  border: 1px solid rgba(184, 79, 120, 0.18);
  cursor: pointer;
  transition: background-color 0.15s var(--ease), color 0.15s var(--ease),
    border-color 0.15s var(--ease), box-shadow 0.15s var(--ease);
}
.chip:hover {
  border-color: rgba(184, 79, 120, 0.4);
  color: var(--berry);
}
.chip.is-active {
  background: var(--berry);
  color: #fff;
  border-color: var(--berry);
  box-shadow: var(--shadow-berry);
}
.member-card__status--away {
  color: #eab308;
}

/* --------------------------------------------------------------------------
   31. Login / auth
   -------------------------------------------------------------------------- */
.auth-tabs {
  display: flex;
  gap: 0.25rem;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--r-pill);
  padding: 4px;
  margin-bottom: 1.5rem;
}
.auth-tabs button {
  flex: 1;
  padding: 0.55rem 0.8rem;
  border-radius: var(--r-pill);
  font-weight: 600;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
  transition: background-color 0.18s var(--ease), color 0.18s var(--ease),
    box-shadow 0.18s var(--ease);
}
.auth-tabs button.is-active {
  background: var(--berry);
  color: #fff;
  box-shadow: var(--shadow-berry);
}
.role-select {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-bottom: 1.25rem;
}
.role-select button {
  padding: 0.7rem 0.6rem;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
  font-weight: 500;
  font-size: 0.85rem;
  text-align: center;
  transition: border-color 0.15s var(--ease), background-color 0.15s var(--ease),
    color 0.15s var(--ease);
}
.role-select button.is-active {
  border-color: var(--mauve);
  background: rgba(154, 103, 199, 0.22);
  color: #fff;
}
.auth-note {
  margin-top: 1rem;
  padding: 0.8rem 1rem;
  border-radius: 12px;
  background: rgba(101, 198, 160, 0.12);
  border: 1px solid rgba(101, 198, 160, 0.25);
  color: var(--mint);
  font-size: 0.85rem;
}

/* --------------------------------------------------------------------------
   32. Editorial content blocks
   -------------------------------------------------------------------------- */
.content-shell { max-width: 1120px; margin-inline: auto; }
.content-lede { max-width: 720px; color: rgba(41,39,45,.68); font-size: 1.05rem; line-height: 1.75; }
.content-lede--light { color: rgba(255,255,255,.7); }
.insight-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 1rem; }
.insight-card { position: relative; padding: 1.45rem; border-radius: 22px; background: #fff; border: 1px solid rgba(83,39,74,.1); box-shadow: 0 12px 34px rgba(54,28,49,.07); overflow: hidden; }
.insight-card::before { content: ""; position: absolute; inset: 0 auto 0 0; width: 4px; background: var(--berry); }
.insight-card--mint::before { background: var(--mint); }
.insight-card--mauve::before { background: var(--mauve); }
.insight-card__icon { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: 1rem; border-radius: 14px; background: rgba(184,79,120,.1); font-size: 1.25rem; }
.insight-card h3 { margin-bottom: .45rem; font-size: 1.08rem; }
.insight-card p { color: rgba(41,39,45,.66); line-height: 1.65; font-size: .94rem; }
.compare-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 1rem; }
.compare-card { padding: 1.35rem; border-radius: 20px; background: rgba(255,255,255,.86); border: 1px solid rgba(83,39,74,.1); }
.compare-card--avoid { background: #fff8fa; border-color: rgba(184,79,120,.22); }
.compare-card--better { background: #f3fbf7; border-color: rgba(101,198,160,.35); }
.compare-card__label { display: inline-flex; margin-bottom: .7rem; padding: .3rem .65rem; border-radius: 999px; font-size: .72rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.compare-card--avoid .compare-card__label { color: #a2335e; background: rgba(184,79,120,.1); }
.compare-card--better .compare-card__label { color: #287456; background: rgba(101,198,160,.18); }
.compare-card blockquote { margin: 0 0 .65rem; color: var(--ink); font-weight: 650; line-height: 1.5; }
.compare-card p { color: rgba(41,39,45,.64); font-size: .9rem; line-height: 1.6; }
.comparison-table { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 12px 34px rgba(54,28,49,.07); }
.comparison-table th, .comparison-table td { padding: 1rem 1.15rem; text-align: left; vertical-align: top; border-bottom: 1px solid rgba(83,39,74,.09); line-height: 1.55; }
.comparison-table th { background: var(--plum); color: #fff; font-size: .82rem; letter-spacing: .05em; }
.comparison-table tr:last-child td { border-bottom: 0; }
.comparison-table td:first-child { width: 25%; font-weight: 750; color: var(--berry-dark); }
.check-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: .8rem; }
.check-item { display: flex; gap: .8rem; align-items: flex-start; padding: 1rem; border-radius: 16px; background: rgba(255,255,255,.82); border: 1px solid rgba(83,39,74,.09); }
.check-item__mark { flex: 0 0 28px; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: rgba(101,198,160,.18); color: #287456; font-weight: 900; }
.check-item strong { display: block; margin-bottom: .2rem; }
.check-item p { color: rgba(41,39,45,.64); font-size: .9rem; line-height: 1.55; }
.action-flow { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 1rem; counter-reset: flow; }
.action-flow__item { position: relative; padding: 1.3rem; border-radius: 20px; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.14); color: #fff; }
.action-flow__item::before { counter-increment: flow; content: counter(flow); display: grid; place-items: center; width: 34px; height: 34px; margin-bottom: .85rem; border-radius: 50%; background: var(--berry); font-weight: 850; }
.action-flow__item h3 { margin-bottom: .4rem; font-size: 1rem; }
.action-flow__item p { color: rgba(255,255,255,.65); font-size: .88rem; line-height: 1.55; }
.source-note { padding: 1rem 1.15rem; border-radius: 16px; background: rgba(154,103,199,.1); border-left: 4px solid var(--mauve); color: rgba(41,39,45,.72); font-size: .88rem; line-height: 1.6; }
.source-note a { color: var(--berry-dark); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.editorial-photo { min-height: 360px; border-radius: 26px; overflow: hidden; box-shadow: 0 18px 50px rgba(54,28,49,.15); }
.editorial-photo img { width: 100%; height: 100%; object-fit: cover; }
.two-col-story { display: grid; grid-template-columns: .9fr 1.1fr; gap: 2rem; align-items: center; }

@media (max-width: 899px) {
  .insight-grid, .action-flow { grid-template-columns: repeat(2,minmax(0,1fr)); }
  .two-col-story { grid-template-columns: 1fr; }
  .editorial-photo { min-height: 280px; }
}
@media (max-width: 639px) {
  .insight-grid, .compare-grid, .check-grid, .action-flow { grid-template-columns: 1fr; }
  .comparison-table, .comparison-table tbody, .comparison-table tr, .comparison-table td { display: block; width: 100%; }
  .comparison-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .comparison-table tr { padding: .85rem 1rem; border-bottom: 1px solid rgba(83,39,74,.1); }
  .comparison-table tr:last-child { border-bottom: 0; }
  .comparison-table td { padding: .25rem 0; border: 0; }
  .comparison-table td:first-child { width: 100%; margin-bottom: .25rem; }
}
