/* MingleMi brand — exact palette from brand board */
:root {
  --rose: #C84C5B;
  --rose-hover: #B53E4D;
  --rose-soft: #E99695;
  --rose-tint: #F2A5AB;
  --rose-mist: #F8D9DC;
  --cream: #FBF3F0;
  --cream-deep: #F5E8E3;
  --navy: #1E2733;
  --slate: #8B949E;
  --slate-dark: #64748B;
  --white: #FFFFFF;
  --border: #E8DDD8;
  --shadow: 0 18px 50px rgba(30, 39, 51, 0.08);
  --radius-pill: 999px;
  --radius-lg: 24px;
  --font-sans: "Plus Jakarta Sans", "Segoe UI", sans-serif;
  --font-serif: "Cormorant Garamond", Georgia, serif;
  --font-script: "Caveat", cursive;
  --container: 100%;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: var(--font-sans);
  color: var(--navy);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

main {
  flex: 1 0 auto;
  width: 100%;
}

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

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

button,
input,
textarea {
  font: inherit;
}

.container {
  width: 100%;
  max-width: none;
  margin-inline: auto;
  padding-inline: clamp(1rem, 2.5vw, 2.5rem);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 1.6rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid transparent;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

/* .btn { display } must not override HTML hidden */
.btn[hidden],
button[hidden],
a.btn[hidden],
[hidden] {
  display: none !important;
}

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

.btn-primary {
  background: var(--rose);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--rose-hover);
}

.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}

.btn-outline:hover {
  background: var(--navy);
  color: var(--white);
}

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border-color: transparent;
  padding-inline: 1rem;
}

.btn-ghost:hover {
  color: var(--rose);
}

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

/* Brand / Logo */
.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
}

.brand-mark {
  width: 42px;
  height: 42px;
  flex-shrink: 0;
}

.brand-logo {
  height: 58px;
  width: auto;
  max-width: 200px;
  object-fit: contain;
  border-radius: 0;
  display: block;
  background: transparent;
  padding: 0;
}

.brand-on-dark .brand-logo {
  background: transparent;
  padding: 0;
  height: 52px;
  content: unset;
}

.brand-wordmark {
  font-size: 1.35rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1;
}

.brand-wordmark .mi {
  color: var(--rose);
}

.brand-wordmark .mi .heart-dot {
  color: var(--rose);
  font-size: 0.55em;
  vertical-align: super;
  margin-left: -0.05em;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(251, 243, 240, 0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.site-header.is-scrolled {
  border-bottom-color: var(--border);
  box-shadow: 0 4px 24px rgba(30, 39, 51, 0.04);
}

.nav-bar {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.5rem;
  min-height: 78px;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--slate-dark);
  position: relative;
  padding: 0.25rem 0;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--navy);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -4px;
  height: 2px;
  background: var(--rose);
  border-radius: 2px;
}

.nav-search {
  display: inline-flex;
  color: var(--slate);
  padding: 0.35rem;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}

.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  margin: 5px auto;
  background: var(--navy);
  border-radius: 2px;
  transition: 0.2s ease;
}

/* Hero */
.hero {
  padding: 3.5rem 0 4rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 3rem;
  align-items: center;
}

.eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--slate);
  margin-bottom: 1rem;
}

.hero-title {
  font-size: clamp(2.4rem, 4.2vw, 3.55rem);
  line-height: 1.12;
  font-weight: 700;
  letter-spacing: -0.03em;
  margin: 0 0 1.25rem;
  color: var(--navy);
}

.hero-title em {
  font-family: var(--font-serif);
  font-style: italic;
  font-weight: 600;
  color: var(--navy);
}

.hero-copy {
  font-size: 1.05rem;
  color: var(--slate-dark);
  max-width: 34rem;
  margin: 0 0 1.75rem;
}

.hero-cta {
  margin-bottom: 2rem;
}

.social-proof {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.avatar-stack {
  display: flex;
}

.avatar-stack img,
.avatar-stack span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2.5px solid var(--cream);
  margin-left: -10px;
  object-fit: cover;
  background: var(--rose-mist);
}

.avatar-stack img:first-child,
.avatar-stack span:first-child {
  margin-left: 0;
}

.avatar-stack span {
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--rose);
}

.social-proof p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--slate-dark);
  max-width: 12rem;
  line-height: 1.35;
}

.hero-visual {
  position: relative;
}

.hero-visual-frame {
  border-radius: 28px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
  box-shadow: var(--shadow);
  background: var(--cream-deep);
}

.hero-visual-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-script {
  position: absolute;
  left: -0.5rem;
  bottom: 1.5rem;
  font-family: var(--font-script);
  font-size: 1.55rem;
  color: var(--rose);
  transform: rotate(-6deg);
  max-width: 14rem;
  line-height: 1.15;
  pointer-events: none;
}

/* Features */
.features {
  padding: 1rem 0 4.5rem;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  padding: 2.25rem;
  background: var(--white);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}

.feature-card {
  text-align: center;
  padding: 0.5rem;
}

.feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  background: var(--rose-mist);
  color: var(--rose);
  display: grid;
  place-items: center;
}

.feature-icon svg {
  width: 28px;
  height: 28px;
}

.feature-card h3 {
  margin: 0 0 0.4rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.feature-card p {
  margin: 0;
  font-size: 0.9rem;
  color: var(--slate);
  line-height: 1.45;
}

/* Success stories */
.stories {
  padding: 2rem 0 5rem;
}

.stories-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2rem;
}

.section-title {
  font-size: clamp(2rem, 3vw, 2.75rem);
  margin: 0 0 0.5rem;
  letter-spacing: -0.02em;
}

.section-sub {
  margin: 0;
  color: var(--slate);
  font-size: 1.05rem;
}

.stories-layout {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 2rem;
  align-items: stretch;
}

.story-copy {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.story-quote {
  font-family: var(--font-serif);
  font-size: 1.65rem;
  font-style: italic;
  line-height: 1.35;
  margin: 0 0 1.25rem;
  color: var(--navy);
}

.story-meta {
  color: var(--slate-dark);
  font-size: 0.95rem;
}

.story-meta strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.15rem;
}

.story-media {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  min-height: 360px;
  box-shadow: var(--shadow);
}

.story-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.story-nav {
  display: flex;
  gap: 0.65rem;
  margin-top: 1.25rem;
}

.story-nav button {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1.5px solid var(--border);
  background: var(--white);
  color: var(--navy);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.2s ease;
}

.story-nav button:hover {
  border-color: var(--rose);
  color: var(--rose);
}

/* About / Blog simple sections */
.page-hero {
  padding: 3.5rem 0 2rem;
  text-align: center;
}

.page-hero h1 {
  font-size: clamp(2.2rem, 4vw, 3rem);
  margin: 0 0 0.75rem;
}

.page-hero p {
  margin: 0 auto;
  max-width: 36rem;
  color: var(--slate-dark);
}

.content-section {
  padding: 1rem 0 5rem;
}

.content-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: var(--shadow);
}

.legal-doc {
  max-width: 760px;
  margin: 0 auto;
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 2rem 2.25rem 2.5rem;
  box-shadow: var(--shadow);
  color: var(--slate-dark);
  line-height: 1.65;
}

.legal-doc .legal-meta {
  margin: 0 0 1.75rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
  color: var(--slate);
  font-size: 0.95rem;
}

.legal-doc h2 {
  margin: 1.75rem 0 0.65rem;
  font-size: 1.2rem;
  line-height: 1.35;
}

.legal-doc p {
  margin: 0 0 0.85rem;
}

.legal-doc ul,
.legal-doc ol {
  margin: 0 0 1rem;
  padding-left: 1.25rem;
}

.legal-doc li {
  margin-bottom: 0.35rem;
}

.legal-doc a {
  color: var(--rose);
  font-weight: 600;
}

@media (max-width: 640px) {
  .legal-doc {
    padding: 1.5rem 1.25rem 2rem;
  }
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.blog-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}

.blog-card img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.blog-card-body {
  padding: 1.35rem 1.5rem 1.6rem;
}

.blog-card-body .tag {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose);
}

.blog-card-body h3 {
  margin: 0.45rem 0 0.5rem;
  font-size: 1.15rem;
}

.blog-card-body p {
  margin: 0;
  color: var(--slate);
  font-size: 0.92rem;
}

/* Auth */
.auth-page {
  min-height: calc(100vh - 78px);
  display: grid;
  place-items: center;
  padding: 2.5rem 0 3.5rem;
}

.auth-shell {
  width: min(100%, 980px);
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  min-height: 560px;
}

.auth-card {
  width: 100%;
  background: var(--white);
  border-radius: 0;
  padding: 2.5rem 2.5rem;
  box-shadow: none;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.auth-card-inner {
  width: min(100%, 340px);
}

.auth-visual {
  position: relative;
  min-height: 100%;
  background: linear-gradient(160deg, #F2A5AB 0%, #C84C5B 45%, #1E2733 100%);
}

.auth-visual > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  position: absolute;
  inset: 0;
}

.auth-visual-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  text-align: center;
  padding: 2rem 2.25rem 2.35rem;
  background:
    linear-gradient(180deg, rgba(30, 39, 51, 0.08) 0%, rgba(30, 39, 51, 0.2) 45%, rgba(30, 39, 51, 0.78) 100%);
  color: var(--white);
}

.auth-visual-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.85rem;
}

.auth-visual-brand img {
  position: static;
  width: auto;
  height: 72px;
  max-width: 200px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.35));
}

.auth-visual-brand span {
  color: #F2A5AB;
}

.auth-visual-caption {
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.65rem;
  line-height: 1.25;
  margin: 0 auto 0.65rem;
  max-width: 17rem;
}

.auth-visual-note {
  margin: 0;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.8);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.auth-trust {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.1rem;
}

.auth-trust-avatars {
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-trust-avatars img {
  position: static;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.85);
  margin-left: -10px;
}

.auth-trust-avatars img:first-child {
  margin-left: 0;
}

.auth-trust p {
  margin: 0;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.3;
  max-width: 14rem;
}

.auth-card h1 {
  margin: 0 0 0.35rem;
  font-size: 1.75rem;
}

.auth-card .lead {
  margin: 0 0 1.75rem;
  color: var(--slate);
  font-size: 0.95rem;
}

.form-group {
  margin-bottom: 1.1rem;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  margin-bottom: 0.4rem;
}

.form-group input {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: var(--cream);
  color: var(--navy);
  outline: none;
  transition: border-color 0.2s ease;
}

.form-group input:focus {
  border-color: var(--rose);
  background: var(--white);
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 3rem;
}

.password-toggle {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.25rem;
  height: 2.25rem;
  border: 0;
  background: transparent;
  color: var(--slate-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  padding: 0;
}

.password-toggle .eye-off {
  display: none;
}

.password-toggle.is-visible .eye-open {
  display: none;
}

.password-toggle.is-visible .eye-off {
  display: block;
}

.password-toggle:hover {
  color: var(--navy);
  background: rgba(30, 39, 51, 0.06);
}

.auth-card .btn {
  width: 100%;
  margin-top: 0.5rem;
}

.auth-footer {
  margin-top: 1.35rem;
  text-align: center;
  font-size: 0.92rem;
  color: var(--slate);
}

.auth-footer a {
  color: var(--rose);
  font-weight: 600;
}

@media (max-width: 860px) {
  .auth-shell {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .auth-visual {
    min-height: 240px;
    order: -1;
  }
}

/* Footer */
.site-footer {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  padding: 3.5rem 0 2rem;
  margin-top: auto;
  flex-shrink: 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.site-footer .brand-wordmark {
  color: var(--white);
}

.site-footer .brand-wordmark .mi {
  color: var(--rose-tint);
}

.footer-brand p {
  margin: 1rem 0 0;
  max-width: 16rem;
  font-size: 0.92rem;
  line-height: 1.5;
}

.footer-col .footer-address-line {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.45;
  max-width: 14rem;
}

.footer-col h4 {
  margin: 0 0 1rem;
  color: var(--white);
  font-size: 0.95rem;
}

.footer-col a {
  display: block;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
}

.footer-col a:hover {
  color: var(--rose-tint);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.35rem;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.85rem;
}

/* Extra content sections */
.section {
  padding: 4rem 0;
}

.section-center {
  text-align: center;
  max-width: 40rem;
  margin: 0 auto 2.5rem;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.step-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
}

.step-num {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--rose-mist);
  color: var(--rose);
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 1rem;
}

.step-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.step-card p {
  margin: 0;
  color: var(--slate);
  font-size: 0.95rem;
}

.stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.stat-box {
  text-align: center;
  padding: 1.5rem 1rem;
  background: var(--white);
  border-radius: 18px;
  box-shadow: var(--shadow);
}

.stat-box strong {
  display: block;
  font-size: 1.85rem;
  color: var(--rose);
  margin-bottom: 0.25rem;
}

.stat-box span {
  font-size: 0.88rem;
  color: var(--slate);
}

.values-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}

.value-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.6rem;
  box-shadow: var(--shadow);
}

.value-card h3 {
  margin: 0 0 0.45rem;
  font-size: 1.1rem;
}

.value-card p {
  margin: 0;
  color: var(--slate-dark);
  font-size: 0.95rem;
}

.cta-band {
  margin: 1rem 0 4rem;
  background: var(--navy);
  color: var(--white);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.cta-band h2 {
  margin: 0 0 0.6rem;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
}

.cta-band p {
  margin: 0 auto 1.5rem;
  max-width: 32rem;
  color: rgba(255, 255, 255, 0.75);
}

.story-body {
  color: var(--slate-dark);
  font-size: 0.95rem;
  margin: 0.85rem 0 0;
  line-height: 1.55;
}

.story-chip {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--rose);
  background: var(--rose-mist);
  padding: 0.3rem 0.7rem;
  border-radius: var(--radius-pill);
  margin-bottom: 0.75rem;
}

.blog-card-body .meta {
  margin-top: 0.85rem;
  font-size: 0.82rem;
  color: var(--slate);
}

.blog-grid-6 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.about-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2rem;
  align-items: center;
  margin-bottom: 2.5rem;
}

.about-split img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.about-split h2 {
  margin: 0 0 0.75rem;
  font-size: 1.85rem;
}

.about-split p {
  margin: 0 0 0.85rem;
  color: var(--slate-dark);
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.team-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--shadow);
}

.team-card img {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 0.85rem;
}

.team-card h3 {
  margin: 0 0 0.2rem;
  font-size: 1.05rem;
}

.team-card .role {
  color: var(--rose);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.team-card p {
  margin: 0;
  color: var(--slate);
  font-size: 0.9rem;
}

.faq-list {
  display: grid;
  gap: 0.85rem;
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  background: var(--white);
  border-radius: 16px;
  padding: 1.2rem 1.4rem;
  box-shadow: var(--shadow);
}

.faq-item h3 {
  margin: 0 0 0.4rem;
  font-size: 1rem;
}

.faq-item p {
  margin: 0;
  color: var(--slate-dark);
  font-size: 0.92rem;
}

/* Mobile landing panel (optional accent) */
.mobile-cta-strip {
  display: none;
}

/* Animations */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fade-up 0.7s ease both;
}

.animate-in.delay-1 { animation-delay: 0.12s; }
.animate-in.delay-2 { animation-delay: 0.24s; }
.animate-in.delay-3 { animation-delay: 0.36s; }

/* Responsive */
@media (max-width: 980px) {
  .nav-links,
  .nav-actions .btn-ghost {
    display: none;
  }

  .nav-bar {
    grid-template-columns: auto auto;
    justify-content: space-between;
  }

  .nav-toggle {
    display: block;
  }

  .nav-bar.is-open .nav-links {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 78px;
    left: 0;
    right: 0;
    background: var(--cream);
    padding: 1.25rem 1.5rem 1.5rem;
    border-bottom: 1px solid var(--border);
    align-items: flex-start;
    gap: 1rem;
  }

  .nav-bar.is-open .nav-actions {
    position: absolute;
    top: calc(78px + 12rem);
    left: 0;
    right: 0;
    padding: 0 1.5rem 1.5rem;
    background: var(--cream);
    border-bottom: 1px solid var(--border);
    justify-content: stretch;
  }

  .nav-bar.is-open .nav-actions .btn {
    flex: 1;
  }

  .nav-bar.is-open .nav-actions .btn-ghost {
    display: inline-flex;
  }

  .hero-grid,
  .stories-layout,
  .features-grid,
  .blog-grid,
  .blog-grid-6,
  .steps-grid,
  .stats-row,
  .values-grid,
  .about-split,
  .team-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .stats-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .hero {
    padding-top: 2rem;
  }

  .hero-script {
    display: none;
  }

  .hero-visual-frame {
    aspect-ratio: 5 / 4;
    max-height: 420px;
  }

  .stories-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .footer-bottom {
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .features-grid {
    padding: 1.5rem 1rem;
  }

  .auth-card {
    padding: 1.75rem 1.35rem;
  }
}

/* Registration wizard */
.register-page {
  align-items: flex-start;
  padding: 2.5rem 0 4rem;
  background:
    radial-gradient(ellipse at top, rgba(200, 76, 91, 0.08), transparent 55%),
    var(--cream);
}

.register-wrap {
  width: min(100%, 820px);
  margin: 0 auto;
}

.register-progress {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.register-step-dot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  min-width: 100px;
}

.register-step-dot span {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--white);
  border: 2px solid var(--border);
  font-weight: 700;
  color: var(--slate);
  box-shadow: 0 6px 16px rgba(30, 39, 51, 0.04);
  transition: 0.2s ease;
}

.register-step-dot small {
  font-size: 0.72rem;
  color: var(--slate);
  text-align: center;
  font-weight: 500;
}

.register-step-dot.active span,
.register-step-dot.done span {
  background: var(--rose);
  border-color: var(--rose);
  color: var(--white);
  box-shadow: 0 8px 20px rgba(200, 76, 91, 0.28);
}

.register-step-dot.active small {
  color: var(--navy);
  font-weight: 600;
}

.register-step-line {
  width: 56px;
  height: 3px;
  border-radius: 99px;
  background: var(--border);
  margin-bottom: 1.5rem;
}

.register-step-line.done {
  background: linear-gradient(90deg, var(--rose), var(--rose-soft));
}

.register-card {
  background: var(--white);
  border-radius: 28px;
  box-shadow: 0 24px 60px rgba(30, 39, 51, 0.08);
  padding: 2.35rem 2.4rem 2.5rem;
  border: 1px solid rgba(232, 221, 216, 0.8);
}

.register-head {
  text-align: center;
  margin-bottom: 2rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.register-logo {
  width: 130px;
  height: auto;
  margin: 0 auto 0.85rem;
  display: block;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
}

.register-head h1 {
  margin: 0 0 0.5rem;
  font-size: clamp(1.7rem, 3vw, 2rem);
  letter-spacing: -0.02em;
}

.register-head p {
  margin: 0 auto;
  color: var(--slate);
  font-size: 0.95rem;
  max-width: 28rem;
  line-height: 1.5;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem 1.35rem;
}

.form-grid .full {
  grid-column: 1 / -1;
}

.register-form .form-group label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.55rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
}

.register-form .form-group label .opt,
.register-form .form-group label .req {
  font-style: normal;
  font-weight: 600;
  font-size: 0.68rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.22rem 0.55rem;
  border-radius: 999px;
}

.register-form .form-group label .opt {
  color: var(--slate-dark);
  background: var(--cream-deep);
}

.register-form .form-group label .req {
  color: var(--rose);
  background: var(--rose-mist);
}

.register-form .form-group input,
.register-form .form-group select,
.register-form .form-group textarea {
  width: 100%;
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 0.95rem 1.05rem;
  background: #F8F1EE;
  color: var(--navy);
  outline: none;
  font: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.register-form .form-group textarea {
  resize: vertical;
  min-height: 96px;
}

.register-form .form-group input[type="file"] {
  padding: 0.7rem 1.05rem;
  cursor: pointer;
}

.register-form .form-group input:hover,
.register-form .form-group select:hover,
.register-form .form-group textarea:hover {
  background: #F3E9E5;
}

.register-form .form-group input:focus,
.register-form .form-group select:focus,
.register-form .form-group textarea:focus {
  border-color: var(--rose-soft);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(200, 76, 91, 0.12);
}

.choice-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}

.choice {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  min-height: 52px;
  padding: 0.85rem 1rem;
  border: 1.5px solid transparent;
  border-radius: 14px;
  background: #F8F1EE;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy);
  transition: 0.2s ease;
  text-align: center;
}

.choice input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.choice::before {
  content: "";
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid #C9B8B2;
  flex-shrink: 0;
  background: var(--white);
  box-shadow: inset 0 0 0 3px transparent;
  transition: 0.2s ease;
}

.choice:hover {
  background: #F3E9E5;
}

.choice:has(input:checked) {
  border-color: var(--rose);
  background: linear-gradient(180deg, #FFF7F7, #FBE4E7);
  color: var(--rose-hover);
  box-shadow: 0 8px 20px rgba(200, 76, 91, 0.12);
}

.choice:has(input:checked)::before {
  border-color: var(--rose);
  box-shadow: inset 0 0 0 4px var(--rose);
}

.form-hint {
  margin: 1.15rem 0 0;
  font-size: 0.86rem;
  color: var(--slate);
  text-align: center;
  line-height: 1.45;
}

.register-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.register-actions .btn {
  flex: 1;
  min-width: 160px;
  min-height: 52px;
}

.register-card .auth-footer {
  margin-top: 1.25rem;
}

.form-alert {
  background: #fde8ea;
  color: #9b2c3a;
  border-radius: 14px;
  padding: 0.9rem 1.1rem;
  margin-bottom: 1rem;
  font-size: 0.92rem;
}

.form-alert.success {
  background: #e8f6ee;
  color: #1f6b43;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 1.25rem;
}

.dash-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.dash-list li {
  padding: 0.55rem 0;
  border-bottom: 1px solid var(--border);
  color: var(--slate-dark);
  font-size: 0.95rem;
}

.dash-list li:last-child {
  border-bottom: 0;
}

@media (max-width: 800px) {
  .form-grid,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .register-card {
    padding: 1.6rem 1.25rem 1.85rem;
  }

  .register-step-line {
    display: none;
  }
}

.field-hint {
  margin: 0.4rem 0 0;
  font-size: 0.78rem;
  color: var(--slate);
  line-height: 1.35;
}

.search-select {
  position: relative;
}

.search-select-native {
  position: absolute !important;
  opacity: 0 !important;
  pointer-events: none !important;
  width: 1px !important;
  height: 1px !important;
  left: 0;
  top: 0;
}

.search-select-control {
  position: relative;
}

.search-select-input {
  width: 100%;
  border: 1.5px solid transparent;
  border-radius: 14px;
  padding: 0.95rem 2.4rem 0.95rem 1.05rem;
  background: #F8F1EE;
  color: var(--navy);
  outline: none;
  font: inherit;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.search-select-input:hover {
  background: #F3E9E5;
}

.search-select-input:focus {
  border-color: var(--rose-soft);
  background: var(--white);
  box-shadow: 0 0 0 4px rgba(200, 76, 91, 0.12);
}

.search-select-chevron {
  position: absolute;
  right: 1rem;
  top: 50%;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--slate);
  border-bottom: 2px solid var(--slate);
  transform: translateY(-70%) rotate(45deg);
  pointer-events: none;
}

.search-select.is-open .search-select-chevron {
  transform: translateY(-20%) rotate(225deg);
}

.search-select.is-disabled .search-select-input {
  opacity: 0.65;
  cursor: not-allowed;
  background: #F1EBE8;
}

.search-select-panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 6px);
  max-height: 240px;
  overflow: auto;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 16px 40px rgba(30, 39, 51, 0.12);
  z-index: 40;
  padding: 0.35rem;
}

.search-select-option {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  padding: 0.7rem 0.85rem;
  border-radius: 10px;
  cursor: pointer;
  font: inherit;
  color: var(--navy);
}

.search-select-option:hover,
.search-select-option.is-selected {
  background: var(--rose-mist);
  color: var(--rose-hover);
}

.search-select-empty {
  padding: 0.85rem;
  color: var(--slate);
  font-size: 0.9rem;
}

.selfie-box {
  background: linear-gradient(180deg, #FFF8F6, #F8F1EE);
  border: 1.5px solid var(--border);
  border-radius: 20px;
  padding: 1.1rem;
}

.selfie-stage {
  position: relative;
  width: min(100%, 340px);
  aspect-ratio: 1;
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: #1E2733;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.selfie-stage video,
.selfie-stage img:not(.selfie-brand-logo) {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.selfie-stage video {
  transform: scaleX(-1);
}

.selfie-oval {
  position: absolute;
  inset: 12%;
  border: 2px solid rgba(242, 165, 171, 0.95);
  border-radius: 50%;
  box-shadow: 0 0 0 999px rgba(30, 39, 51, 0.35);
  pointer-events: none;
  z-index: 1;
}

.selfie-brand-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(52%, 150px);
  height: auto;
  object-fit: contain;
  opacity: 0.92;
  pointer-events: none;
  z-index: 2;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.selfie-brand-logo[hidden] {
  display: none !important;
}

.register-photo-stage {
  background: #1E2733;
}

.register-photo-logo {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: min(52%, 150px);
  height: auto;
  object-fit: contain;
  z-index: 2;
  pointer-events: none;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
}

.register-photo-logo[hidden] {
  display: none !important;
}

.register-photo-preview {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

.register-photo-preview[hidden] {
  display: none !important;
}

.register-photo-box .selfie-actions .btn,
.register-photo-box .selfie-actions label.btn {
  cursor: pointer;
}

.selfie-badge {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  background: rgba(31, 107, 67, 0.95);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  padding: 0.45rem 0.8rem;
  border-radius: 999px;
  white-space: nowrap;
  z-index: 3;
}

.selfie-help {
  text-align: center;
  margin: 0.9rem 0 0.75rem;
  color: var(--slate-dark);
  font-size: 0.9rem;
  line-height: 1.45;
}

.selfie-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  justify-content: center;
}

.selfie-actions .btn {
  min-width: 140px;
}

.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: #e8f6ee;
  color: #1f6b43;
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
}

.member-footer {
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1.1rem 0;
  margin-top: auto;
  flex-shrink: 0;
  width: 100%;
  box-shadow: 0 -6px 20px rgba(30, 39, 51, 0.04);
}

.member-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.88rem;
  color: var(--slate);
}

.member-footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--slate-dark);
}

.member-footer-brand img {
  height: 36px;
  width: auto;
  border-radius: 6px;
  object-fit: contain;
  background: #fff;
}

.member-footer-links {
  display: flex;
  gap: 1.1rem;
  flex-wrap: wrap;
}

.member-footer-links a {
  color: var(--slate-dark);
  font-weight: 600;
}

.member-footer-links a:hover {
  color: var(--rose);
}

@media (max-width: 640px) {
  .member-footer-inner {
    flex-direction: column;
    text-align: center;
  }
}

.search-panel .form-grid {
  margin-bottom: 0.25rem;
}

/* Member matches dashboard */
.nav-hi {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--navy);
  margin-right: 0.35rem;
}

/* Muslima-style member chrome — MingleMi brand colors */
.member-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.member-topbar {
  background: linear-gradient(105deg, #1a222d 0%, #243041 48%, #1e2733 100%);
  color: #fff;
  border-bottom: 1px solid rgba(242, 165, 171, 0.12);
}

.member-brand-logo {
  height: 58px;
  width: auto;
  max-width: 210px;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
  padding: 0;
  display: block;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.28));
}

.member-topbar-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 1.25rem;
  min-height: 68px;
  position: relative;
}

.member-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #fff;
  font-weight: 700;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
}

.member-brand-mark {
  width: 28px;
  height: 28px;
}

.member-brand-name {
  line-height: 1;
}

.member-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.6rem;
}

.member-nav-mobile-only {
  display: none;
}

.member-nav a {
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 500;
}

.member-nav a:hover,
.member-nav a.is-active {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--rose);
}

.member-activity-menu {
  position: relative;
}

.member-activity-trigger {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.95rem;
  font-weight: 500;
}

.member-activity-trigger::-webkit-details-marker {
  display: none;
}

.member-activity-trigger:hover,
.member-activity-trigger.is-active,
.member-activity-menu[open] .member-activity-trigger {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 5px;
  text-decoration-color: var(--rose);
}

.member-activity-dropdown {
  position: absolute;
  top: calc(100% + 12px);
  left: 50%;
  transform: translateX(-50%);
  min-width: 210px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(30, 39, 51, 0.2);
  padding: 0.35rem 0;
  z-index: 70;
  animation: chat-menu-in 0.18s ease both;
}

.member-activity-dropdown::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  transform: translateX(-50%);
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #fff;
}

.member-nav .member-activity-dropdown a.member-activity-item,
.member-activity-dropdown a.member-activity-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: 100%;
  padding: 0.78rem 1.2rem;
  color: var(--navy) !important;
  font-size: 0.92rem;
  font-weight: 500;
  text-decoration: none !important;
  background: transparent;
}

.member-nav .member-activity-dropdown a.member-activity-item:hover,
.member-nav .member-activity-dropdown a.member-activity-item.is-active,
.member-activity-dropdown a.member-activity-item:hover,
.member-activity-dropdown a.member-activity-item.is-active {
  background: var(--cream-deep);
  color: var(--navy) !important;
  text-decoration: none !important;
}

.member-activity-item .activity-count {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff !important;
  font-size: 0.72rem;
  font-weight: 700;
  line-height: 1;
  flex-shrink: 0;
}

.member-activity-item .activity-count[hidden],
.member-badge[hidden] {
  display: none !important;
}

.activity-toasts {
  position: fixed;
  top: 1rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 400;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  width: min(420px, calc(100vw - 1.5rem));
  pointer-events: none;
}

.activity-toast {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.7rem 0.9rem;
  border-radius: 14px;
  background: #fff;
  color: var(--navy);
  text-decoration: none;
  box-shadow: 0 12px 32px rgba(20, 28, 45, 0.18);
  border: 1px solid rgba(200, 76, 91, 0.18);
  opacity: 0;
  transform: translateY(-10px);
  transition: opacity 0.28s ease, transform 0.28s ease;
}

.activity-toast.is-in {
  opacity: 1;
  transform: translateY(0);
}

.activity-toast.is-out {
  opacity: 0;
  transform: translateY(-8px);
}

.activity-toast-photo {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
  background: var(--cream);
}

.activity-toast-body {
  font-size: 0.92rem;
  line-height: 1.35;
  color: var(--slate);
}

.activity-toast-body strong {
  color: var(--navy);
  font-weight: 700;
}

.member-nav-messages {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.member-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
}

.member-profile-actions {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 1.1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.member-profile-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
}

.member-profile-form {
  margin: 0;
  display: inline-flex;
}

.member-profile-icon {
  appearance: none;
  border: 0;
  background: transparent;
  color: #8a939e;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.member-profile-icon:hover {
  color: var(--brand, #0d9488);
  background: rgba(13, 148, 136, 0.08);
}

.member-profile-icon.icon-like.is-active,
.member-profile-icon.icon-like:hover {
  color: #0d9488;
}

.member-profile-icon.icon-favorite.is-active,
.member-profile-icon.icon-favorite:hover {
  color: #eab308;
}

.member-profile-icon.icon-block:hover,
.member-profile-icon.is-blocked {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}

.member-profile-icon .photo-count {
  font-size: 0.78rem;
  font-weight: 700;
  margin-left: 0.1rem;
}

.member-profile-icon-label {
  font-size: 0.68rem;
  font-weight: 600;
}

.member-profile-actions {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 1.1rem;
  padding: 0.85rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.member-profile-actions-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.35rem;
}

.member-profile-form {
  margin: 0;
  display: inline-flex;
}

.member-profile-icon {
  appearance: none;
  border: 0;
  background: transparent;
  color: #8a939e;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease, background 0.15s ease;
}

.member-profile-icon:hover {
  color: var(--brand, #0d9488);
  background: rgba(13, 148, 136, 0.08);
}

.member-profile-icon.icon-like.is-active,
.member-profile-icon.icon-like:hover {
  color: #0d9488;
}

.member-profile-icon.icon-favorite.is-active,
.member-profile-icon.icon-favorite:hover {
  color: #eab308;
}

.member-profile-icon.icon-block:hover,
.member-profile-icon.is-blocked {
  color: #dc2626;
  background: rgba(220, 38, 38, 0.08);
}

.member-profile-icon .photo-count {
  font-size: 0.78rem;
  font-weight: 700;
  margin-left: 0.1rem;
}

.member-profile-icon-label {
  font-size: 0.68rem;
  font-weight: 600;
}

.member-topbar .member-actions {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 0.75rem;
  margin: 0;
}

.member-coins {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  color: #fff;
}

.member-coins:hover {
  color: #fff;
  opacity: 0.92;
}

.member-coin-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--rose-tint);
  color: var(--rose);
  font-size: 0.72rem;
  line-height: 1;
}

.btn-upgrade {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.45rem 0.95rem;
  border-radius: 6px;
  background: var(--rose);
  color: #fff;
  font-size: 0.86rem;
  font-weight: 700;
  white-space: nowrap;
  border: 0;
}

.btn-upgrade:hover {
  background: var(--rose-hover);
  color: #fff;
}

.member-icon-btn {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  padding: 0;
  list-style: none;
}

.member-icon-btn::-webkit-details-marker {
  display: none;
}

.member-promo {
  position: absolute;
  top: -8px;
  right: -14px;
  background: var(--rose);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 0.15rem 0.35rem;
  border-radius: 999px;
  white-space: nowrap;
  line-height: 1.2;
}

.member-avatar-link {
  display: block;
  line-height: 0;
  list-style: none;
  cursor: pointer;
  position: relative;
}

.member-avatar-link::-webkit-details-marker {
  display: none;
}

.member-avatar {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.55);
}

.member-avatar-unverified {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #c45c5c;
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  border: 1.5px solid #1a2a4a;
  line-height: 1;
}

.member-verify-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: #f3e8e8;
  color: #9b3b3b;
  font-size: 0.72rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
  line-height: 1.2;
  border: 1px solid rgba(155, 59, 59, 0.25);
}

.member-verify-chip:hover {
  background: #ead1d1;
  color: #7a2a2a;
}

.member-verify-chip--ok {
  background: rgba(47, 158, 100, 0.18);
  color: #d8ffe8;
  border-color: rgba(47, 158, 100, 0.45);
  pointer-events: none;
}

.member-profile-menu,
.member-settings {
  position: relative;
}

.member-profile-dropdown {
  right: 0;
  min-width: 220px;
}

.member-profile-dropdown::before {
  right: 10px;
}

.member-settings-menu {
  position: absolute;
  right: -6px;
  top: calc(100% + 14px);
  min-width: 210px;
  background: #fff;
  border-radius: 4px;
  box-shadow: 0 10px 28px rgba(30, 39, 51, 0.18);
  padding: 0.35rem 0;
  z-index: 60;
}

.member-settings-menu::before {
  content: "";
  position: absolute;
  top: -8px;
  right: 14px;
  border-left: 8px solid transparent;
  border-right: 8px solid transparent;
  border-bottom: 8px solid var(--rose);
}

.member-settings-item {
  display: block;
  width: 100%;
  text-align: left;
  padding: 0.72rem 1.15rem;
  border: 0;
  background: transparent;
  color: var(--navy);
  font-size: 0.92rem;
  font-weight: 500;
  border-radius: 0;
  cursor: pointer;
  text-decoration: none;
}

.member-settings-menu a.member-settings-item:hover,
.member-settings-menu button.member-settings-item:hover,
.member-settings-item.is-active {
  background: var(--cream-deep);
  color: var(--navy);
}

.member-settings-logout {
  border-top: 1px solid var(--border);
  margin-top: 0.15rem;
  font-weight: 600;
}

.member-settings-menu form {
  margin: 0;
}

.member-nav-toggle span {
  background: #fff;
}

.member-subnav {
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 0.7rem 0 0.55rem;
}

.member-subnav-inner {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.member-subnav-tools {
  display: none;
}

.member-filter-row,
.member-filter-secondary {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.member-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  padding: 0.42rem 0.85rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  color: var(--slate-dark);
  font-size: 0.84rem;
  font-weight: 600;
}

.member-filter-pill svg {
  flex-shrink: 0;
}

.member-filter-pill:hover {
  border-color: var(--rose-soft);
  color: var(--navy);
}

.member-filter-pill.is-active {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}

.member-filter-pill--sm {
  font-size: 0.8rem;
  padding: 0.35rem 0.75rem;
}

.member-country-filter {
  position: relative;
}

.member-country-filter > summary {
  list-style: none;
  cursor: pointer;
}

.member-country-filter > summary::-webkit-details-marker {
  display: none;
}

.member-country-menu {
  position: absolute;
  top: calc(100% + 0.4rem);
  left: 0;
  z-index: 80;
  min-width: 240px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: 0 12px 32px rgba(30, 39, 51, 0.12);
  padding: 0.85rem;
}

.member-country-form {
  display: grid;
  gap: 0.55rem;
}

.member-country-label {
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--slate-dark);
}

.member-country-search {
  width: 100%;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 8px;
  font: inherit;
  font-size: 0.9rem;
  background: #fff;
}

.member-country-search:focus {
  outline: 2px solid rgba(200, 76, 91, 0.25);
  border-color: var(--rose-soft);
}

.member-country-list {
  max-height: 220px;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fafbfc;
}

.member-country-option {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.5rem 0.7rem;
  font: inherit;
  font-size: 0.88rem;
  color: var(--navy);
  cursor: pointer;
}

.member-country-option:hover,
.member-country-option.is-active {
  background: var(--rose);
  color: #fff;
}

.member-country-empty {
  padding: 0.7rem;
  font-size: 0.84rem;
  color: var(--slate);
  text-align: center;
}

.member-country-actions {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.member-country-actions .btn-sm,
.btn-sm {
  padding: 0.4rem 0.75rem;
  font-size: 0.8rem;
}

.dash-top {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1.1rem 0;
}

.dash-top-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.dash-user {
  display: flex;
  align-items: center;
  gap: 0.9rem;
}

.dash-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rose);
}

.dash-user h1 {
  margin: 0;
  font-size: 1.25rem;
}

.dash-user p {
  margin: 0.2rem 0 0;
  color: var(--slate);
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.dash-top-actions {
  display: flex;
  gap: 0.55rem;
  align-items: center;
}

.dash-filters {
  background: var(--cream);
  padding: 0.85rem 0 0.35rem;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 78px;
  z-index: 20;
}

.filter-tabs {
  display: flex;
  gap: 0.45rem;
  overflow-x: auto;
  padding-bottom: 0.55rem;
}

.filter-tab {
  white-space: nowrap;
  padding: 0.55rem 0.95rem;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--border);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-dark);
}

.filter-tab.active,
.filter-tab:hover {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}

.filter-note {
  margin: 0 0 0.75rem;
  font-size: 0.85rem;
  color: var(--slate);
}

.dash-body {
  padding: 1.5rem 0 3.5rem;
}

.looking-for-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem 1rem;
  margin-bottom: 1rem;
  padding: 0.85rem 1.1rem;
}

.looking-for-label {
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.looking-for-switch {
  display: inline-flex;
  gap: 0.4rem;
  background: #eef2f7;
  padding: 0.25rem;
  border-radius: 999px;
}

.looking-for-btn {
  border: 0;
  background: transparent;
  color: var(--slate);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 0.4rem 1rem;
  border-radius: 999px;
  cursor: pointer;
}

.looking-for-btn.is-active {
  background: var(--navy);
  color: #fff;
}

.looking-for-btn:not(.is-active):hover {
  background: #dde5ef;
  color: var(--navy);
}

.ep-hint {
  display: block;
  margin-top: 0.35rem;
  font-size: 0.78rem;
  color: var(--slate);
}

.match-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 1rem;
}

.match-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(30, 39, 51, 0.06);
  border: 1px solid rgba(232, 221, 216, 0.9);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.match-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(30, 39, 51, 0.1);
}

.match-photo-wrap {
  position: relative;
  display: block;
  aspect-ratio: 1;
  background: var(--cream-deep);
}

.match-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.match-new {
  position: absolute;
  top: 10px;
  left: 0;
  background: #2f9e64;
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.28rem 0.55rem;
  border-radius: 0 8px 8px 0;
  z-index: 1;
}

.match-body {
  padding: 0.75rem 0.8rem 0.85rem;
}

.match-body h3 {
  margin: 0;
  font-size: 0.98rem;
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.match-body h3 a:hover {
  color: var(--rose);
}

.verify-dot {
  display: inline-grid;
  place-items: center;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: #2f9e64;
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
}

a.verify-dot {
  text-decoration: none;
}

.verify-dot--no {
  width: auto;
  height: auto;
  padding: 0.15rem 0.45rem;
  border-radius: 999px;
  background: #f3e8e8;
  color: #9b3b3b;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}

a.verify-dot--no:hover {
  background: #ead1d1;
  color: #7a2a2a;
}

.member-unverified {
  background: #f3e8e8 !important;
  color: #9b3b3b !important;
  text-decoration: none;
}

a.member-unverified:hover {
  background: #ead1d1 !important;
  color: #7a2a2a !important;
}

.match-meta,
.match-seek,
.match-active {
  margin: 0.25rem 0 0;
  font-size: 0.78rem;
  color: var(--slate);
  line-height: 1.35;
}

.match-seek {
  color: var(--slate-dark);
}

.match-active {
  color: #2f9e64;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.match-active-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: #9aa3ad;
}

.match-active.is-offline {
  color: var(--slate);
  font-weight: 500;
}

.match-active.is-offline .match-active-dot {
  background: #9aa3ad;
}

.match-active.is-online {
  color: #1f8a52;
  font-weight: 700;
}

.match-active.is-online .match-active-dot {
  background: #22c55e;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, 0.22);
}

.match-active.is-live {
  color: var(--rose);
  font-weight: 700;
}

.match-active.is-live .match-active-dot {
  background: var(--rose);
  box-shadow: 0 0 0 3px rgba(232, 67, 97, 0.28);
  animation: livePulse 1.2s ease-in-out infinite;
}

.match-live {
  position: absolute;
  top: 10px;
  left: 0;
  background: var(--rose);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.28rem 0.55rem;
  border-radius: 0 8px 8px 0;
  z-index: 2;
  animation: livePulse 1.2s ease-in-out infinite;
}

.match-photo-wrap.is-live::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 3px solid var(--rose);
  pointer-events: none;
  z-index: 1;
}

@keyframes livePulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.72; }
}

.member-nav-live {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.member-badge--live {
  background: var(--rose);
}

.member-filter-pill--live .member-filter-live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 3px rgba(232, 67, 97, 0.25);
  animation: livePulse 1.2s ease-in-out infinite;
}

.live-now-strip {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem 1rem;
  margin-bottom: 1rem;
}
.live-now-strip.is-empty {
  background: linear-gradient(135deg, #fff5f7, #fff);
  border-color: rgba(232,67,97,.22);
}
.live-now-head-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.live-now-go {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.78rem !important;
  font-weight: 800 !important;
  color: #fff !important;
  background: var(--rose);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
  text-decoration: none;
}
.live-now-go:hover { filter: brightness(1.05); }
.live-now-empty {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.35rem 0 0.15rem;
}
.live-now-empty p {
  margin: 0;
  color: var(--slate-dark);
  font-size: 0.9rem;
}
.live-now-empty-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px !important;
  font-weight: 800 !important;
}
.member-live-quick {
  display: none;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: rgba(232,67,97,.16);
  border: 1px solid rgba(232,67,97,.45);
  color: #ffb3c1;
  text-decoration: none;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: .02em;
}
.member-live-quick.is-active,
.member-live-quick:hover {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}
.member-live-quick-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 3px rgba(232,67,97,.25);
  animation: livePulse 1.2s ease-in-out infinite;
}
.member-filter-live-count {
  margin-left: 0.15rem;
  min-width: 18px;
  height: 18px;
  padding: 0 0.35rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
}

.live-now-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.live-now-head strong {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--navy);
  font-size: 0.95rem;
}

.live-now-head a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--rose);
}

.live-now-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
  animation: livePulse 1.2s ease-in-out infinite;
}

.live-now-row {
  display: flex;
  gap: 0.85rem;
  overflow-x: auto;
  padding-bottom: 0.15rem;
  -webkit-overflow-scrolling: touch;
}

.live-now-chip {
  flex: 0 0 auto;
  width: 72px;
  text-align: center;
  text-decoration: none;
  color: inherit;
}

.live-now-avatar-wrap {
  position: relative;
  display: block;
  width: 58px;
  height: 58px;
  margin: 0 auto 0.35rem;
  border-radius: 50%;
  padding: 2px;
  background: linear-gradient(135deg, var(--rose), #ff8fa3);
}

.live-now-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  border: 2px solid #fff;
  display: block;
}

.live-now-pill {
  position: absolute;
  left: 50%;
  bottom: -4px;
  transform: translateX(-50%);
  background: var(--rose);
  color: #fff;
  font-size: 0.58rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.1rem 0.35rem;
  border-radius: 4px;
  line-height: 1.2;
}

.live-now-name {
  display: block;
  font-size: 0.72rem;
  color: var(--navy);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-live-pill,
.conv-live-pill {
  display: inline-flex;
  align-items: center;
  background: var(--rose);
  color: #fff !important;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 0.2rem 0.45rem;
  border-radius: 4px;
  text-decoration: none;
  animation: livePulse 1.2s ease-in-out infinite;
}

.member-photo-card {
  position: relative;
}

.member-live-pill {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 3;
}

.btn-watch-live {
  background: var(--rose) !important;
  border-color: var(--rose) !important;
}

.admin-meta.is-online {
  color: #1f8a52;
  font-weight: 700;
}

.match-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.15rem;
  margin-top: 0.7rem;
  padding: 0.55rem 0.35rem 0.15rem;
  border-top: 1px solid var(--border);
}

.icon-btn {
  flex: 1;
  border: 0;
  background: transparent;
  height: 34px;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  color: #8a939e;
  border-radius: 8px;
  padding: 0;
}

.icon-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
  display: block;
}

.icon-btn:hover {
  background: var(--cream);
  color: var(--rose);
}

.icon-btn.icon-like {
  color: #8a939e;
}

.icon-btn.icon-like:hover {
  color: #1f7f74;
  background: rgba(42, 157, 143, 0.1);
}

.icon-btn.icon-like.is-active {
  color: #1f7f74;
  background: rgba(42, 157, 143, 0.18);
}

.icon-btn.icon-favorite:hover {
  color: var(--rose);
  background: rgba(200, 76, 91, 0.1);
}

.icon-btn.icon-favorite.is-active {
  color: var(--rose);
  background: rgba(200, 76, 91, 0.14);
}

.icon-btn .photo-count {
  font-size: 0.75rem;
  font-weight: 700;
  color: inherit;
  line-height: 1;
}

.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(20, 24, 32, 0.88);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  gap: 0.85rem;
}

.photo-lightbox[hidden] {
  display: none !important;
}

.photo-lightbox img {
  max-width: min(92vw, 520px);
  max-height: min(78vh, 640px);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
  background: #111;
}

.photo-lightbox-name {
  margin: 0;
  color: #fff;
  font-weight: 700;
  font-size: 1.05rem;
}

.photo-lightbox-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}

.photo-lightbox-close:hover {
  background: rgba(255, 255, 255, 0.28);
}

body.lightbox-open {
  overflow: hidden;
}

.gift-modal {
  position: fixed;
  inset: 0;
  z-index: 210;
  background: rgba(20, 24, 32, 0.55);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.gift-modal[hidden] {
  display: none !important;
}

.gift-modal-card {
  width: min(100%, 560px);
  max-height: min(90vh, 720px);
  overflow: auto;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.25);
  padding: 1.35rem 1.25rem 1rem;
  text-align: center;
}

.gift-modal-card--wide {
  width: min(100%, 720px);
}

.gift-modal-title {
  margin: 0;
  color: #5b6570;
  font-size: 1rem;
}

.gift-modal-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0.85rem auto 0.45rem;
  display: block;
  border: 2px solid #f0e4e0;
}

.gift-modal-name {
  margin: 0 0 1.1rem;
  font-size: 1.15rem;
  color: #2a3340;
}

.gift-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem 0.55rem;
  padding: 0.25rem 0.15rem 0.75rem;
}

.gift-grid--store {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  max-height: 380px;
  overflow-y: auto;
  overscroll-behavior: contain;
  gap: 0.85rem 0.4rem;
  padding: 0.5rem 0.35rem 0.95rem;
  scrollbar-width: thin;
  background: #f7f7f7;
  border-radius: 12px;
}

.gift-name {
  font-size: 0.68rem;
  color: var(--slate);
  line-height: 1.2;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gift-item {
  border: 0;
  background: transparent;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.4rem 0.2rem;
  border-radius: 10px;
  transition: background 0.15s ease, transform 0.15s ease;
}

.gift-item:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
}

.gift-item.is-selected {
  background: #fff;
  box-shadow: 0 0 0 2px rgba(200, 76, 91, 0.45);
}

.gift-emoji {
  font-size: 2rem;
  line-height: 1;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.08));
}

.gift-img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  pointer-events: none;
}

.gift-price {
  display: inline-flex;
  align-items: center;
  gap: 0.28rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: #3a3a3a;
  font-variant-numeric: tabular-nums;
}

.gift-coin {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: linear-gradient(145deg, #ff9a2e, #f07800);
  color: #fff;
  display: inline-grid;
  place-items: center;
  font-size: 0.48rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 1px 1px rgba(0, 0, 0, 0.1);
  flex-shrink: 0;
}

.conv-gift .gift-coin {
  width: 11px;
  height: 11px;
  font-size: 0.42rem;
}

.gift-modal-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  padding-top: 0.55rem;
  border-top: 1px solid #eee;
}

.gift-modal-picked {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}

.gift-modal-actions {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  margin-left: auto;
}

.gift-close {
  border: 0;
  background: transparent;
  color: #2f80ed;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  padding: 0.65rem 0.4rem;
}

.gift-close:hover {
  text-decoration: underline;
}

/* Floating chat popup */
.chat-popup {
  position: fixed;
  right: 1.4rem;
  bottom: 1.4rem;
  z-index: 90;
  width: min(380px, calc(100vw - 1.6rem));
  animation: chat-rise 0.35s ease both;
}

@keyframes chat-rise {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.chat-popup[hidden] {
  display: none !important;
}

.chat-popup-panel {
  background: #fff;
  border-radius: 22px;
  box-shadow:
    0 22px 50px rgba(30, 39, 51, 0.18),
    0 0 0 1px rgba(200, 76, 91, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: 460px;
}

.chat-popup.is-minimized .chat-popup-panel {
  height: auto;
  border-radius: 999px;
}

.chat-popup.is-minimized .chat-popup-body,
.chat-popup.is-minimized .chat-popup-footer {
  display: none;
}

.chat-popup.is-minimized .chat-popup-header {
  padding: 0.55rem 0.85rem;
}

.chat-popup-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 0.55rem;
  padding: 0.85rem 0.9rem;
  background:
    radial-gradient(circle at 12% 20%, rgba(242, 165, 171, 0.35), transparent 42%),
    linear-gradient(135deg, #243041 0%, #1e2733 55%, #2a3340 100%);
  color: #fff;
}

.chat-popup-minimize,
.chat-popup-more,
.chat-popup-close {
  border: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  cursor: pointer;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  opacity: 0.95;
  transition: background 0.15s ease, transform 0.15s ease;
}

.chat-popup-minimize:hover,
.chat-popup-more:hover,
.chat-popup-close:hover {
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.chat-popup-user {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  min-width: 0;
}

.chat-popup-avatar-wrap {
  position: relative;
  flex-shrink: 0;
}

.chat-popup-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.chat-popup-online {
  position: absolute;
  right: 0;
  bottom: 1px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #3ecf8e;
  border: 2px solid #243041;
  box-shadow: 0 0 0 2px rgba(62, 207, 142, 0.25);
}

.chat-popup-meta {
  min-width: 0;
  display: grid;
  gap: 0.12rem;
}

.chat-popup-meta strong {
  font-size: 0.98rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-popup-meta span {
  font-size: 0.74rem;
  opacity: 0.78;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-popup-tools {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  position: relative;
}

.chat-more-wrap {
  position: relative;
}

.chat-more-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 200px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(30, 39, 51, 0.2);
  padding: 0.35rem 0;
  z-index: 5;
  animation: chat-menu-in 0.18s ease both;
}

.chat-more-menu[hidden] {
  display: none !important;
}

.chat-more-menu::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 12px;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-bottom: 7px solid #fff;
}

@keyframes chat-menu-in {
  from {
    opacity: 0;
    transform: translateY(-6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-more-item {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.72rem 1.1rem;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--navy);
  cursor: pointer;
}

.chat-more-item:hover {
  background: var(--cream-deep);
  color: var(--rose);
}

.chat-popup-more.is-open {
  background: rgba(255, 255, 255, 0.22);
}

.chat-popup-body {
  flex: 1;
  overflow-y: auto;
  padding: 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  background:
    radial-gradient(circle at top right, rgba(248, 217, 220, 0.55), transparent 38%),
    linear-gradient(180deg, #fff8f6 0%, #ffffff 55%);
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.chat-empty {
  margin: auto;
  text-align: center;
  padding: 1rem;
  max-width: 220px;
}

.chat-empty[hidden] {
  display: none !important;
}

.chat-empty-heart {
  width: 54px;
  height: 54px;
  margin: 0 auto 0.85rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--rose-tint), var(--rose));
  color: #fff;
  font-size: 1.35rem;
  box-shadow: 0 10px 24px rgba(200, 76, 91, 0.28);
  animation: chat-heart 2.4s ease-in-out infinite;
}

@keyframes chat-heart {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.06); }
}

.chat-empty-title {
  margin: 0 0 0.3rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.chat-empty-text {
  margin: 0;
  font-size: 0.86rem;
  color: var(--slate);
  line-height: 1.45;
}

.chat-bubble {
  max-width: 82%;
  padding: 0.65rem 0.9rem;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.45;
  word-break: break-word;
  animation: chat-bubble-in 0.22s ease both;
}

@keyframes chat-bubble-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.chat-bubble--mine {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--rose) 0%, #d45a68 100%);
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 8px 18px rgba(200, 76, 91, 0.22);
}

.chat-bubble--theirs {
  align-self: flex-start;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--navy);
  border-bottom-left-radius: 6px;
}

.msg-page {
  display: grid;
  gap: 0;
}

.msg-folders {
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 1.15rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
  padding: 0 0.15rem;
}

.msg-folders a {
  position: relative;
  text-decoration: none;
  color: var(--slate-dark);
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.55rem 0.1rem 0.65rem;
}

.msg-folders a.is-active {
  color: var(--navy);
}

.msg-folders a.is-active::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 3px;
  background: var(--rose);
  border-radius: 3px 3px 0 0;
}

.msg-folder-badge {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 0.3rem;
  margin-left: 0.35rem;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  vertical-align: middle;
}

.msg-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 240px;
  gap: 1.15rem;
  align-items: start;
}

.msg-inbox {
  padding: 0;
  overflow: hidden;
}

.msg-toolbar {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  padding: 0.55rem 0.95rem;
  border-bottom: 1px solid var(--border);
  color: var(--slate);
  font-size: 0.8rem;
  background: #faf7f5;
}

.msg-toolbar-right {
  font-weight: 600;
  color: var(--navy);
}

.msg-empty {
  text-align: center;
  padding: 2.25rem 1.25rem;
}

.msg-empty h2 {
  margin: 0 0 0.4rem;
}

.msg-empty p {
  color: var(--slate);
  margin: 0 0 1rem;
}

.msg-thread-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.msg-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: stretch;
  border-bottom: 1px solid var(--border);
}

.msg-row:hover {
  background: rgba(200, 76, 91, 0.03);
}

.msg-thread {
  width: 100%;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 88px;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0.85rem;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  text-decoration: none;
  min-height: 0;
}

.msg-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
}

.msg-thread-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.msg-online-dot {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #9aa3ad;
}

.msg-online-dot.is-on {
  background: #22c55e;
}

.msg-thread-who {
  display: grid;
  gap: 0;
}

.msg-thread-who strong {
  color: var(--navy);
  font-size: 0.9rem;
  line-height: 1.25;
}

.msg-thread-who span {
  color: var(--slate);
  font-size: 0.75rem;
  line-height: 1.25;
}

.msg-thread-preview {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.15rem;
}

.msg-thread-preview p {
  margin: 0;
  color: var(--slate-dark);
  font-size: 0.8rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.msg-bubble-ico {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e8e4e1;
  color: var(--slate);
  font-size: 0.62rem;
  font-weight: 800;
}

.msg-bubble-ico.has-count {
  background: var(--rose);
  color: #fff;
}

.msg-row.has-unread .msg-thread-who strong {
  color: var(--rose);
}

.msg-thread-date {
  text-align: right;
  color: var(--slate);
  font-size: 0.75rem;
  white-space: nowrap;
}

.msg-row-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.1rem;
  padding-right: 0.5rem;
}

.msg-mini-btn {
  border: 0;
  background: transparent;
  cursor: pointer;
  font-size: 0.85rem;
  opacity: 0.5;
  padding: 0.1rem;
  line-height: 1;
}

.msg-mini-btn.is-on {
  opacity: 1;
  color: var(--rose);
}

.msg-footnote {
  margin: 0;
  padding: 0.55rem 0.95rem 0.7rem;
  color: var(--slate);
  font-size: 0.75rem;
}

.msg-side {
  padding: 1.25rem 1.2rem;
}

.msg-side h2 {
  margin: 0 0 0.45rem;
  font-size: 1.15rem;
  color: var(--navy);
}

.msg-side p {
  margin: 0 0 1rem;
  color: var(--slate);
  font-size: 0.92rem;
  line-height: 1.45;
}

@media (max-width: 900px) {
  .msg-layout {
    grid-template-columns: 1fr;
  }

  .msg-side {
    order: -1;
  }

  .msg-thread {
    grid-template-columns: 44px minmax(0, 1fr);
  }

  .msg-thread-date {
    grid-column: 2;
    text-align: left;
    margin-top: -0.2rem;
  }
}

.chat-popup-footer {
  border-top: 1px solid rgba(232, 221, 216, 0.9);
  padding: 0.75rem 0.85rem 0.7rem;
  background: linear-gradient(180deg, #fff 0%, var(--cream) 100%);
}

.chat-popup-compose {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: end;
  gap: 0.45rem;
  padding: 0.35rem 0.4rem 0.35rem 0.65rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(30, 39, 51, 0.04);
}

.chat-popup-compose-wrap {
  position: relative;
}

.chat-emoji-toggle {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--slate-dark);
  display: grid;
  place-items: center;
  cursor: pointer;
  margin-bottom: 0.1rem;
}

.chat-emoji-toggle:hover,
.chat-emoji-toggle.is-open {
  color: var(--rose);
  background: rgba(200, 76, 91, 0.08);
}

.chat-emoji-picker {
  bottom: calc(100% + 0.35rem);
}

.chat-compose-icon {
  color: var(--rose-soft);
  display: grid;
  place-items: center;
  padding-bottom: 0.45rem;
}

.chat-popup-input {
  width: 100%;
  border: 0;
  resize: none;
  outline: none;
  font: inherit;
  font-size: 0.9rem;
  color: var(--navy);
  padding: 0.5rem 0.15rem;
  max-height: 96px;
  line-height: 1.35;
  background: transparent;
}

.chat-popup-input::placeholder {
  color: var(--slate);
}

.chat-popup-send {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, var(--rose-tint), var(--rose));
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 8px 16px rgba(200, 76, 91, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.chat-popup-send:hover {
  transform: translateY(-1px) scale(1.03);
  box-shadow: 0 10px 20px rgba(200, 76, 91, 0.35);
  background: linear-gradient(145deg, var(--rose), var(--rose-hover));
}

.chat-popup-hint {
  margin: 0.45rem 0 0 0.85rem;
  font-size: 0.7rem;
  color: var(--slate);
}

@media (max-width: 640px) {
  .gift-grid,
  .gift-grid--store {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .chat-popup {
    right: 0.55rem;
    bottom: 0.55rem;
    width: calc(100vw - 1.1rem);
  }

  .chat-popup-panel {
    height: min(72vh, 500px);
    border-radius: 20px;
  }
}


.match-pager {
  margin-top: 1.75rem;
  display: flex;
  justify-content: center;
}

.match-pager nav {
  display: flex;
  gap: 0.35rem;
}

.member-page {
  padding: 2rem 0 4rem;
}

.member-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.2fr);
  gap: 1.5rem;
  align-items: start;
}

.member-photo-col {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.member-photo-card {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--cream-deep);
  aspect-ratio: 3 / 4;
}

.member-photo-card img,
.member-photo-main {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  display: block;
}

.member-photo-edit {
  position: absolute;
  top: 14px;
  left: 14px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(30, 39, 51, 0.82);
  color: #fff;
  display: grid;
  place-items: center;
  z-index: 3;
  box-shadow: 0 8px 18px rgba(30, 39, 51, 0.28);
  transition: transform 0.15s ease, background 0.15s ease;
}

.member-photo-edit:hover {
  background: var(--rose);
  transform: scale(1.05);
  color: #fff;
}

.member-verified {
  position: absolute;
  left: 1rem;
  bottom: 1rem;
  z-index: 2;
}

.member-photo-thumbs {
  display: flex;
  justify-content: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.member-photo-strip {
  padding-top: 0.85rem;
  border-top: 4px solid var(--navy);
}

.member-thumb {
  width: 68px;
  height: 68px;
  border-radius: 12px;
  overflow: hidden;
  border: 2px solid transparent;
  padding: 0;
  background: var(--cream-deep);
  cursor: pointer;
}

.member-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.member-thumb.is-active {
  border-color: var(--rose);
  box-shadow: 0 0 0 2px rgba(200, 76, 91, 0.18);
}

.member-thumb.is-hidden-photo {
  opacity: 0.55;
}

.member-thumb.is-hidden-photo::after {
  content: '';
}

.member-thumb-add {
  display: grid;
  place-items: center;
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--slate);
  border: 2px dashed var(--border);
  text-decoration: none;
}

.member-thumb-add:hover {
  border-color: var(--rose-soft);
  color: var(--rose);
}

.member-info-card h1 {
  margin: 0.5rem 0 0.25rem;
  font-size: 2rem;
}

.member-age {
  color: var(--slate);
  font-weight: 600;
  font-size: 1.2rem;
}

.member-loc {
  margin: 0;
  color: var(--slate);
}

.back-link {
  color: var(--rose);
  font-weight: 600;
  font-size: 0.9rem;
}

.member-page-actions {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
  margin: 1.25rem 0;
}

.member-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

.member-facts div {
  background: var(--cream);
  border-radius: 12px;
  padding: 0.75rem 0.9rem;
}

.member-facts strong {
  display: block;
  font-size: 0.75rem;
  color: var(--slate);
  margin-bottom: 0.2rem;
}

.member-info-card h2 {
  margin: 1.25rem 0 0.4rem;
  font-size: 1.1rem;
}

@media (max-width: 1200px) {
  .match-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .match-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .member-layout { grid-template-columns: 1fr; }
}

/* Settings page */
.settings-page {
  padding: 1.75rem 0 3.5rem;
}

.settings-layout {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.25rem;
  align-items: start;
}

.settings-side {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.1rem 0.85rem;
}

.settings-side h2 {
  margin: 0 0 0.75rem 0.4rem;
  font-size: 1.05rem;
}

.settings-side-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.settings-side-nav a {
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--slate-dark);
}

.settings-side-nav a:hover,
.settings-side-nav a.is-active {
  background: var(--cream-deep);
  color: var(--navy);
}

.settings-side-nav a.is-active {
  box-shadow: inset 3px 0 0 var(--rose);
}

.settings-main h1 {
  margin: 0 0 1rem;
  font-size: 1.45rem;
}

.settings-copy {
  color: var(--slate-dark);
  margin-top: 0;
}

.settings-form {
  display: grid;
  gap: 0.9rem;
  max-width: 460px;
}

.settings-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.settings-form input,
.settings-form textarea,
.settings-form select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--cream);
}

.settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.check-row {
  display: flex !important;
  align-items: center;
  gap: 0.55rem;
  font-weight: 500 !important;
}

.check-row input {
  width: auto;
}

.billing-cards,
.upgrade-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 1rem;
}

.billing-card,
.upgrade-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.1rem;
  background: var(--cream);
}

.billing-card h3,
.upgrade-card h3 {
  margin: 0 0 0.35rem;
}

.billing-pill {
  display: inline-block;
  margin-top: 0.5rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: var(--rose-mist);
  color: var(--rose);
  font-size: 0.75rem;
  font-weight: 700;
}

.upgrade-card--featured {
  border-color: var(--rose);
  background: #fff;
}

.upgrade-price {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--rose);
  margin: 0.2rem 0 0.75rem;
}

.upgrade-price span {
  font-size: 0.9rem;
  color: var(--slate);
  font-weight: 600;
}

.upgrade-card ul,
.help-list {
  margin: 0 0 1rem;
  padding-left: 1.1rem;
  color: var(--slate-dark);
}

.settings-photo-preview {
  width: 160px;
  height: 160px;
  border-radius: 18px;
  overflow: hidden;
  margin: 0 0 1rem;
  border: 2px solid var(--rose-mist);
}

.settings-photo-preview img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Purchase Coins + Checkout (compact) */
.purchase-page {
  padding: 0 0 2rem;
  background: #fff;
  min-height: auto;
}

.purchase-wrap {
  max-width: 1080px;
  width: 100%;
  margin-inline: auto;
}

.purchase-title {
  text-align: left;
  font-size: 1.35rem;
  font-weight: 650;
  color: var(--navy);
  margin: 0 0 0.25rem;
  letter-spacing: -0.01em;
}

.coin-flow {
  background: #f7f5f3;
  min-height: auto;
  padding-bottom: 2rem;
}

.coin-flow-body {
  max-width: 1080px;
  margin-inline: auto;
  padding-top: 1.1rem;
  padding-bottom: 0.5rem;
}

.coin-checkout-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1rem;
  flex-wrap: wrap;
}

.coin-checkout-kicker {
  margin: 0 0 0.1rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--slate);
}

.coin-checkout-head h1 {
  margin: 0;
  font-size: 1.35rem;
  font-weight: 650;
  color: var(--navy);
  letter-spacing: -0.01em;
}

.coin-checkout-sub {
  margin: 0.2rem 0 0;
  color: var(--slate-dark);
  font-size: 0.88rem;
  max-width: 36rem;
}

.coin-checkout-secure {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--navy);
  font-size: 0.78rem;
  font-weight: 600;
}

.coin-checkout-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(250px, 0.75fr);
  gap: 0.9rem;
  align-items: start;
}

.coin-pay-panel,
.coin-summary-panel,
.coin-receipt-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem 1rem 1.05rem;
  box-shadow: none;
}

.coin-panel-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 0.25rem;
}

.coin-panel-head h2,
.coin-summary-panel h2 {
  margin: 0;
  font-size: 0.98rem;
  color: var(--navy);
}

.coin-pay-hint {
  margin: 0 0 0.75rem;
  color: var(--slate-dark);
  font-size: 0.85rem;
}

.coin-field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem 0.75rem;
}

.coin-field {
  display: grid;
  gap: 0.25rem;
  color: var(--navy);
  font-weight: 600;
  font-size: 0.8rem;
}

.coin-field--full {
  grid-column: 1 / -1;
}

.coin-field input {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.6rem 0.7rem;
  background: #fff;
  font-size: 0.9rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.coin-field input:focus {
  outline: none;
  border-color: var(--rose-soft);
  box-shadow: 0 0 0 3px rgba(200, 76, 91, 0.12);
}

.coin-pay-btn {
  width: 100%;
  margin-top: 0.9rem;
}

.coin-recurring-note {
  margin: 0.65rem 0 0;
  color: var(--slate-dark);
  font-size: 0.82rem;
}

.coin-summary-panel {
  position: sticky;
  top: 0.75rem;
}

.coin-summary-item {
  display: flex;
  gap: 0.65rem;
  align-items: center;
  padding: 0.55rem 0 0.75rem;
  border-bottom: 1px solid var(--border);
}

.coin-summary-item strong {
  font-size: 0.95rem;
}

.coin-summary-item p {
  margin: 0.1rem 0 0;
  color: var(--slate-dark);
  font-size: 0.78rem;
}

.coin-summary-lines {
  display: grid;
  gap: 0.4rem;
  padding: 0.75rem 0;
  color: var(--slate-dark);
  font-size: 0.84rem;
}

.coin-summary-lines > div {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

.coin-summary-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding-top: 0.65rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem;
  color: var(--navy);
}

.coin-summary-balance {
  margin: 0.65rem 0 0;
  color: var(--slate-dark);
  font-size: 0.8rem;
}

.coin-change-link {
  display: inline-block;
  margin-top: 0.6rem;
  color: var(--rose);
  font-weight: 600;
  font-size: 0.84rem;
}

.coin-summary-trust {
  list-style: none;
  margin: 0.85rem 0 0;
  padding: 0.75rem 0 0;
  border-top: 1px solid var(--border);
  display: grid;
  gap: 0.28rem;
  color: var(--slate-dark);
  font-size: 0.78rem;
}

.coin-summary-trust li::before {
  content: "✓ ";
  color: var(--rose);
  font-weight: 700;
}

.coin-receipt-panel {
  max-width: 480px;
  margin: 1.25rem auto 0;
  text-align: center;
}

.coin-flow:has(.mm-invoice) {
  background: #fff;
  padding-bottom: 0;
}

.mm-invoice {
  background: #fff;
  min-height: calc(100vh - 200px);
}

.mm-invoice-banner {
  background: var(--navy);
  color: #fff;
  padding: 0.95rem 0 1.05rem;
}

.mm-invoice-banner-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
  flex-wrap: wrap;
}

.mm-invoice-ok {
  margin: 0 0 0.25rem;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--rose-tint);
}

.mm-invoice-banner h1 {
  margin: 0;
  font-family: var(--font-serif);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.mm-invoice-meta {
  display: grid;
  gap: 0.15rem;
  text-align: right;
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.72);
}

.mm-invoice-meta span:first-child {
  color: #fff;
  font-weight: 700;
}

.mm-invoice-body {
  max-width: 760px;
  margin-inline: auto;
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

.mm-invoice-sheet {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 2px;
  padding: 1.05rem 1.15rem 1rem;
}

.mm-invoice-head {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px solid var(--border);
  margin-bottom: 0.75rem;
}

.mm-invoice-label {
  margin: 0 0 0.2rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--slate);
}

.mm-invoice-head strong {
  display: block;
  color: var(--navy);
  font-size: 0.98rem;
}

.mm-invoice-head p {
  margin: 0.15rem 0 0;
  color: var(--slate-dark);
  font-size: 0.84rem;
}

.mm-invoice-head-right {
  text-align: right;
}

.mm-invoice-paid {
  display: inline-block;
  margin-top: 0.55rem;
  padding: 0.2rem 0.55rem;
  border: 1.5px solid var(--rose);
  color: var(--rose);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.mm-invoice-table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 1rem;
}

.mm-invoice-table th {
  text-align: left;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--slate);
  padding: 0 0 0.55rem;
  border-bottom: 1px solid var(--border);
}

.mm-invoice-table th:nth-child(2),
.mm-invoice-table th:nth-child(3),
.mm-invoice-table td:nth-child(2),
.mm-invoice-table td:nth-child(3) {
  text-align: right;
  width: 7rem;
}

.mm-invoice-table td {
  padding: 0.55rem 0;
  vertical-align: top;
  border-bottom: 1px solid var(--border);
  color: var(--navy);
  font-size: 0.88rem;
}

.mm-invoice-table td strong {
  display: block;
  margin-bottom: 0.15rem;
}

.mm-invoice-table td span {
  display: block;
  color: var(--slate-dark);
  font-size: 0.8rem;
}

.mm-invoice-totals {
  max-width: 260px;
  margin-left: auto;
  display: grid;
  gap: 0.35rem;
  padding-top: 0.25rem;
}

.mm-invoice-totals > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: 0.86rem;
  color: var(--slate-dark);
}

.mm-invoice-totals strong {
  color: var(--navy);
  font-weight: 700;
}

.mm-invoice-due {
  margin-top: 0.25rem;
  padding-top: 0.55rem;
  border-top: 1px solid var(--border);
  font-size: 0.95rem !important;
  color: var(--navy) !important;
}

.mm-invoice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.95rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
}

.mm-invoice-actions .btn {
  padding: 0.65rem 1.1rem;
  font-size: 0.88rem;
}

@media (max-width: 700px) {
  .mm-invoice-head {
    grid-template-columns: 1fr;
  }

  .mm-invoice-head-right,
  .mm-invoice-meta {
    text-align: left;
  }

  .mm-invoice-totals {
    max-width: none;
  }
}

.coin-receipt-badge {
  width: 42px;
  height: 42px;
  margin: 0 auto 0.75rem;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(200, 76, 91, 0.1);
  color: var(--rose);
  font-size: 1.1rem;
  font-weight: 700;
}

.coin-receipt-panel h1 {
  margin: 0 0 0.35rem;
  color: var(--navy);
  font-size: 1.25rem;
}

.coin-receipt-lead {
  margin: 0 0 1rem;
  color: var(--slate-dark);
  font-size: 0.9rem;
}

.coin-receipt-panel .receipt-grid {
  text-align: left;
}

.coin-receipt-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1rem;
}

.coin-packages {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
  margin-bottom: 1.15rem;
  max-width: 820px;
}

.coin-choose-payment {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.75rem 0.9rem;
  max-width: 820px;
}

.purchase-form .btn-checkout {
  width: auto;
  min-width: 220px;
  display: inline-flex;
  margin: 0 0 0.9rem;
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
}

.upgrade-steps a {
  color: inherit;
  text-decoration: none;
}

.upgrade-steps a.is-active {
  color: #fff;
}

@media (max-width: 980px) {
  .coin-checkout-grid {
    grid-template-columns: 1fr;
  }

  .coin-summary-panel {
    position: static;
    order: -1;
  }
}

@media (max-width: 900px) {
  .coin-packages {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: none;
  }
}

@media (max-width: 640px) {
  .coin-field-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 520px) {
  .coin-packages {
    grid-template-columns: 1fr;
  }

  .payment-help {
    margin-left: 0;
  }
}

/* legacy purchase bits kept below */

.coin-package {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  padding: 0.85rem 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.coin-package input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.coin-package-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(145deg, #f6d27a, #e8b84a);
  display: grid;
  place-items: center;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.35);
}

.coin-heart {
  color: var(--rose);
  font-size: 0.72rem;
  line-height: 1;
}

.coin-package-amount {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--navy);
}

.coin-package-price {
  font-size: 0.74rem;
  color: var(--slate-dark);
}

.coin-package:hover {
  border-color: var(--rose-soft);
}

.coin-package.is-selected {
  background: var(--rose);
  border-color: var(--rose);
  box-shadow: 0 6px 14px rgba(200, 76, 91, 0.18);
}

.coin-package.is-selected .coin-package-amount,
.coin-package.is-selected .coin-package-price {
  color: #fff;
}

.payment-block {
  margin-bottom: 1rem;
}

.payment-block h2 {
  margin: 0 0 0.55rem;
  font-size: 0.95rem;
  color: var(--navy);
}

.payment-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.payment-option {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  cursor: pointer;
}

.payment-option input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.payment-radio {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid var(--rose);
  box-shadow: inset 0 0 0 3px #fff;
  background: var(--rose);
  flex-shrink: 0;
}

.payment-copy {
  display: grid;
  gap: 0.1rem;
}

.payment-copy strong {
  font-size: 0.95rem;
  color: var(--navy);
}

.payment-copy small {
  color: var(--rose);
  font-weight: 700;
  font-size: 0.78rem;
}

.card-brands {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.pay-logo {
  display: inline-flex;
  line-height: 0;
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(30, 39, 51, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.pay-logo:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(30, 39, 51, 0.1);
}

.pay-logo svg {
  width: 52px;
  height: 34px;
  display: block;
}

.pay-logo-skrill svg {
  width: 78px;
}

.card-brand {
  display: none;
}

.card-visa,
.card-amex,
.card-mc,
.card-diners,
.card-skrill {
  color: inherit;
}

.payment-help {
  margin-left: auto;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--slate);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.btn-checkout {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  margin: 0 0 0.9rem;
  padding: 0.7rem 1.2rem;
  border: 0;
  border-radius: 8px;
  background: var(--rose);
  color: #fff;
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  cursor: pointer;
}

.btn-checkout:hover {
  background: var(--rose-hover);
}

.purchase-recurring {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  max-width: 820px;
  margin: 0 0 0.75rem;
  font-size: 0.78rem;
  color: var(--slate-dark);
  line-height: 1.4;
}

.purchase-recurring input {
  margin-top: 0.2rem;
}

.purchase-note,
.purchase-support {
  text-align: left;
  color: var(--slate);
  font-size: 0.78rem;
  margin: 0.25rem 0;
}

.purchase-support a {
  color: var(--rose);
  font-weight: 600;
}

.secure-badge {
  width: fit-content;
  margin: 1.5rem auto 0;
  padding: 0.45rem 0.9rem;
  border-radius: 6px;
  background: var(--navy);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* Upgrade membership flow */
.upgrade-flow {
  background: #fff;
  min-height: 70vh;
  padding-bottom: 3.5rem;
}

.upgrade-steps-bar {
  background: var(--navy);
  color: rgba(255, 255, 255, 0.55);
  padding: 0.55rem 0;
}

.upgrade-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  font-weight: 600;
}

.upgrade-steps .is-active {
  color: #fff;
}

.upgrade-steps-sep {
  opacity: 0.5;
}

.upgrade-body {
  max-width: 980px;
  padding-top: 0;
}

.membership-carousel {
  display: grid;
  grid-template-columns: 48px 1fr 48px;
  align-items: center;
  gap: 0.5rem;
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  padding: 1.75rem 0.5rem 1.35rem;
  margin: 0 calc(50% - 50vw);
  width: 100vw;
}

.membership-slide {
  text-align: center;
  max-width: 620px;
  margin: 0 auto;
}

.membership-icon {
  width: 54px;
  height: 54px;
  margin: 0 auto 0.75rem;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, var(--rose-tint), var(--rose));
  color: #fff;
  font-size: 1.4rem;
  box-shadow: 0 10px 24px rgba(200, 76, 91, 0.25);
}

.membership-slide h2 {
  margin: 0 0 0.45rem;
  font-size: 1.35rem;
  color: var(--navy);
}

.membership-slide p {
  margin: 0 auto;
  max-width: 520px;
  color: var(--slate-dark);
  font-size: 0.95rem;
  line-height: 1.5;
}

.membership-dots {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin-top: 1rem;
}

.membership-dots .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  border: 0;
  background: #c9b8b4;
  cursor: pointer;
  padding: 0;
}

.membership-dots .dot.is-active {
  background: var(--navy);
}

.carousel-arrow {
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  color: var(--slate-dark);
  font-size: 2rem;
  line-height: 1;
  cursor: pointer;
}

.plan-heading {
  text-align: center;
  margin: 1.75rem 0 1.1rem;
  font-size: 1.35rem;
  color: var(--navy);
  position: relative;
  display: block;
}

.plan-heading::after {
  content: "";
  display: block;
  width: 56px;
  height: 2px;
  background: var(--rose);
  margin: 0.55rem auto 0;
}

.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 2rem;
}

.plan-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 1.15rem 1rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
  min-height: 220px;
}

.plan-card input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.plan-radio {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 2px solid var(--slate);
  display: inline-block;
}

.plan-card.is-selected {
  border-color: var(--navy);
  box-shadow: 0 8px 22px rgba(30, 39, 51, 0.08);
}

.plan-card.is-selected .plan-radio {
  border-color: var(--navy);
  box-shadow: inset 0 0 0 4px var(--navy);
  border-width: 2px;
}

.plan-months {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
}

.plan-price {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
}

.plan-price small {
  display: block;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--slate);
}

.plan-billed {
  font-size: 0.82rem;
  color: var(--slate-dark);
  line-height: 1.4;
  flex: 1;
}

.plan-badge {
  display: block;
  margin: 0.35rem -1rem -0.85rem;
  padding: 0.65rem 0.75rem;
  text-align: center;
  background: var(--navy);
  color: #fff;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  border-radius: 0 0 9px 9px;
}

.plan-badge--save {
  background: var(--navy);
}

.upgrade-payment {
  max-width: 720px;
  margin: 0 auto 1.5rem;
}

.pay-method {
  display: grid;
  grid-template-columns: auto 1fr auto auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
}

.pay-method input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.pay-method .payment-help {
  margin-left: 0;
}

.payment-radio--empty {
  background: #fff;
  box-shadow: none;
}

.btn-upgrade-now {
  margin-top: 0.5rem;
}

.upgrade-receipt {
  max-width: 560px;
  margin: 2.5rem auto;
  text-align: center;
}

.upgrade-receipt h1 {
  margin: 0 0 0.4rem;
}

.upgrade-receipt-lead {
  color: var(--slate-dark);
  margin-bottom: 1.5rem;
}

.receipt-grid {
  display: grid;
  gap: 0.75rem;
  text-align: left;
  margin: 0 0 1.5rem;
}

.receipt-grid div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--border);
}

.receipt-grid dt {
  color: var(--slate);
  font-weight: 600;
}

.receipt-grid dd {
  margin: 0;
  font-weight: 700;
  color: var(--navy);
}

.upgrade-receipt-actions {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

@media (max-width: 900px) {
  .plan-grid {
    grid-template-columns: 1fr;
  }

  .membership-carousel {
    grid-template-columns: 36px 1fr 36px;
  }

  .pay-method {
    grid-template-columns: auto 1fr auto;
  }

  .pay-method .card-brands {
    grid-column: 2 / -1;
  }
}

@media (max-width: 900px) {
  .settings-layout,
  .billing-cards,
  .upgrade-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .match-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dash-filters { top: 70px; }
  .member-facts { grid-template-columns: 1fr; }
  .member-filter-row {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 1100px) {
  .member-header,
  .member-topbar {
    overflow: visible;
  }

  .member-topbar {
    overflow-x: hidden;
  }

  .member-topbar-inner.container,
  .member-topbar-inner {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.5rem;
    min-height: 56px;
    max-width: 100%;
    width: 100%;
    grid-template-columns: none !important;
    overflow: visible;
  }

  .member-brand {
    flex: 0 0 auto;
    min-width: 0;
  }

  .member-brand-logo {
    height: 40px;
    max-width: 120px;
  }

  .member-nav {
    display: none;
  }

  .member-topbar-inner.is-open .member-nav {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    position: absolute;
    top: 56px;
    left: 0;
    right: 0;
    background: #1a222d;
    padding: 1rem 1.25rem;
    gap: 0.85rem;
    z-index: 40;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }

  .member-topbar-inner.is-open .member-nav-mobile-only {
    display: inline-flex;
  }

  .member-topbar .member-actions {
    display: flex !important;
    flex-direction: row;
    flex-wrap: nowrap !important;
    align-items: center;
    justify-content: flex-end;
    gap: 0.35rem;
    margin: 0 !important;
    min-width: 0;
    flex: 0 0 auto;
  }

  /* Mobile: only Live + avatar + menu */
  .member-topbar .member-actions .btn-upgrade,
  .member-topbar .member-actions .member-coins,
  .member-topbar .member-actions .member-lang-btn,
  .member-topbar .member-actions .member-verify-chip,
  .member-topbar .member-actions .member-settings {
    display: none !important;
  }

  .member-live-quick {
    display: inline-flex !important;
    flex: 0 0 auto;
    padding: 0.3rem 0.55rem;
    font-size: 0.7rem;
    white-space: nowrap;
    line-height: 1;
  }

  .member-live-quick .member-badge {
    margin-left: 0.15rem;
  }

  .member-profile-menu {
    flex: 0 0 auto;
  }

  .member-avatar {
    width: 32px;
    height: 32px;
  }

  .member-nav-toggle {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    flex: 0 0 auto;
    width: 36px;
    height: 36px;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    gap: 5px;
  }

  .member-nav-toggle span {
    display: block;
    width: 18px;
    height: 2px;
    margin: 0;
    background: #fff;
    border-radius: 2px;
  }
}

/* Photos gallery manager */
.photos-page {
  padding: 1.25rem 0 3.5rem;
}

.profile-subnav {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
  margin-bottom: 1.1rem;
}

.profile-subnav a {
  padding: 0.5rem 0.95rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--border);
  color: var(--slate-dark);
  font-size: 0.88rem;
  font-weight: 600;
}

.profile-subnav a:hover,
.profile-subnav a.is-active {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}

.photos-panel h1 {
  margin: 0 0 1.25rem;
  font-size: clamp(1.35rem, 2.5vw, 1.8rem);
}

.photos-hint {
  display: inline;
  font-weight: 500;
  color: var(--slate-dark);
  font-size: 0.92em;
}

.photo-slots {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.photo-slot {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  background: #ececec;
  border: 1px solid var(--border);
}

.photo-slot-num {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(30, 39, 51, 0.72);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.photo-slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-slot.is-hidden .photo-slot-img {
  filter: grayscale(0.35) brightness(0.85);
}

.photo-slot-hidden-tag {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(30, 39, 51, 0.35);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  z-index: 1;
}

.photo-slot-actions {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  padding: 0.45rem;
  background: rgba(255, 255, 255, 0.94);
  z-index: 2;
}

.photo-action {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.photo-action:hover {
  background: var(--cream-deep);
  color: var(--rose);
}

.photo-slot-placeholder {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  opacity: 0.9;
}

.photo-slot-add {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 1.4rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(200, 76, 91, 0.28);
  z-index: 2;
}

.photo-slot-add:hover {
  background: var(--rose-hover);
}

.inline-form {
  display: inline;
  margin: 0;
}

.hidden-upload-form {
  display: none;
}

.photo-guidelines {
  border-top: 1px solid var(--border);
  padding-top: 1.4rem;
}

.photo-guidelines h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

.guidelines-grid {
  display: grid;
  grid-template-columns: 1.1fr 1.1fr 0.9fr;
  gap: 1.25rem;
}

.guidelines-grid h3 {
  margin: 0 0 0.45rem;
  color: var(--rose);
  font-size: 0.95rem;
}

.guidelines-grid ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--slate-dark);
  font-size: 0.9rem;
}

.guidelines-examples {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.55rem;
}

.guideline-example {
  position: relative;
  border-radius: 10px;
  overflow: hidden;
  aspect-ratio: 1;
  background: var(--cream-deep);
}

.guideline-example img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.guideline-example span {
  position: absolute;
  left: 6px;
  bottom: 6px;
  background: rgba(30, 39, 51, 0.75);
  color: #fff;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  padding: 0.2rem 0.4rem;
  border-radius: 4px;
}

@media (max-width: 980px) {
  .photo-slots {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .guidelines-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .photo-slots {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Edit Profile form */
.edit-profile-page {
  padding: 1.25rem 0 3.5rem;
}

.edit-profile-form {
  padding: 1.5rem 1.6rem 2rem;
}

.edit-profile-head {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.edit-profile-head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.edit-profile-head p {
  margin: 0;
  color: var(--slate-dark);
}

.ep-section {
  margin: 1.5rem 0;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--border);
}

.ep-section h2 {
  margin: 0 0 1rem;
  font-size: 1.15rem;
  color: var(--navy);
  padding-left: 0.65rem;
  border-left: 3px solid var(--rose);
}

.ep-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem 1.25rem;
}

.ep-field {
  display: grid;
  gap: 0.4rem;
}

.ep-field--full {
  grid-column: 1 / -1;
}

.ep-field > span {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--navy);
}

.ep-req {
  color: var(--rose);
  font-style: normal;
  font-size: 0.65rem;
  vertical-align: middle;
}

.ep-field input[type="text"],
.ep-field select,
.ep-field textarea {
  width: 100%;
  padding: 0.7rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
  font: inherit;
  color: var(--navy);
}

.ep-field textarea {
  resize: vertical;
  min-height: 110px;
}

.ep-radios {
  display: flex;
  gap: 0.85rem 1.1rem;
  flex-wrap: wrap;
  align-items: center;
}

.ep-radios--wrap {
  gap: 0.55rem 1rem;
}

.ep-radios label {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.9rem;
  color: var(--slate-dark);
  font-weight: 500;
  cursor: pointer;
}

.ep-dob {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.55rem;
}

.ep-faith-box {
  display: grid;
  gap: 1rem;
  padding: 1rem;
  border-radius: 14px;
  background: var(--rose-mist);
  border: 1px solid rgba(200, 76, 91, 0.15);
}

.ep-submit {
  display: flex;
  justify-content: center;
  padding-top: 0.75rem;
}

.ep-submit .btn {
  min-width: 180px;
}

@media (max-width: 760px) {
  .ep-grid,
  .ep-dob {
    grid-template-columns: 1fr;
  }
}

/* Match criteria */
.match-page {
  padding: 1.25rem 0 3.5rem;
}

.match-form {
  padding: 1.5rem 1.6rem 2rem;
}

.match-head {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.match-head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.match-head p {
  margin: 0;
  color: var(--slate-dark);
}

.match-block {
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.match-block h2 {
  margin: 0 0 1rem;
  font-size: 1.1rem;
  padding-left: 0.65rem;
  border-left: 3px solid var(--rose);
}

.match-acc {
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  margin-bottom: 0.85rem;
  overflow: hidden;
}

.match-acc > summary {
  list-style: none;
  cursor: pointer;
  padding: 0.95rem 1.1rem;
  font-weight: 700;
  color: var(--navy);
  background: var(--cream);
  border-bottom: 1px solid transparent;
}

.match-acc > summary::-webkit-details-marker {
  display: none;
}

.match-acc[open] > summary {
  border-bottom-color: var(--border);
}

.match-acc > summary::after {
  content: "+";
  float: right;
  color: var(--rose);
  font-weight: 800;
}

.match-acc[open] > summary::after {
  content: "–";
}

.match-acc-body {
  padding: 1.1rem;
}

.match-checks {
  margin-top: 1rem;
}

.match-checks h3 {
  margin: 0 0 0.55rem;
  font-size: 0.92rem;
  color: var(--navy);
}

.check-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem 0.85rem;
}

.check-grid label {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.88rem;
  color: var(--slate-dark);
  font-weight: 500;
  cursor: pointer;
}

@media (max-width: 760px) {
  .check-grid {
    grid-template-columns: 1fr 1fr;
  }
}

/* Interests */
.interests-page {
  padding: 1.25rem 0 3.5rem;
}

.interests-form {
  padding: 1.5rem 1.6rem 2rem;
}

.interests-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.interests-head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.interests-head p {
  margin: 0;
  max-width: 54ch;
  color: var(--slate-dark);
}

.interest-block {
  margin: 1.35rem 0;
  padding-bottom: 1.1rem;
  border-bottom: 1px solid var(--border);
}

.interest-block h2 {
  margin: 0 0 0.85rem;
  font-size: 1.05rem;
  color: var(--navy);
}

.check-grid--5 {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

@media (max-width: 1100px) {
  .check-grid--5 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .check-grid--5 {
    grid-template-columns: 1fr 1fr;
  }
}

/* Personality */
.personality-page {
  padding: 1.25rem 0 3.5rem;
}

.personality-form {
  padding: 1.5rem 1.6rem 2rem;
}

.personality-head {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  align-items: flex-start;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.personality-head h1 {
  margin: 0 0 0.4rem;
  font-size: clamp(1.45rem, 3vw, 1.9rem);
}

.personality-head p {
  margin: 0;
  max-width: 56ch;
  color: var(--slate-dark);
}

.personality-count {
  color: var(--rose);
  font-weight: 700;
}

.personality-fields {
  display: grid;
  gap: 1rem;
}

.personality-field {
  display: grid;
  gap: 0.4rem;
}

.personality-field span {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--slate-dark);
}

.personality-field input {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--cream);
  font: inherit;
  color: var(--navy);
}

.personality-field input:focus {
  outline: 2px solid rgba(200, 76, 91, 0.25);
  border-color: var(--rose-soft);
}

/* Verify Profile — live camera only */
.verify-page {
  padding: 1.25rem 0 3.5rem;
}

.verify-panel {
  padding: 1.5rem 1.6rem 2rem;
}

.verify-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--border);
}

.verify-head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.5rem, 3vw, 2rem);
}

.verify-head p {
  margin: 0;
  color: var(--slate-dark);
  max-width: 42rem;
}

.verify-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(220px, 0.8fr);
  gap: 1.75rem;
  align-items: start;
}

.verify-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.25rem;
}

.verify-tips {
  background: linear-gradient(180deg, #FFF8F6, #F8F1EE);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.15rem 1.25rem;
}

.verify-tips h2 {
  margin: 0 0 0.55rem;
  font-size: 1rem;
  color: var(--navy);
}

.verify-tips h2 + ul + h2 {
  margin-top: 1.15rem;
}

.verify-tips ul {
  margin: 0;
  padding-left: 1.1rem;
  color: var(--slate-dark);
  line-height: 1.55;
  font-size: 0.92rem;
}

.verify-tips-bad {
  color: #9b2c3a;
}

@media (max-width: 860px) {
  .verify-layout {
    grid-template-columns: 1fr;
  }

  .verify-head {
    flex-direction: column;
  }
}

/* Photo verified promo (member) */
.pv-promo {
  max-width: 560px;
  margin: 0 auto;
  padding: 1.75rem 1.6rem 1.85rem;
}

.pv-promo-head {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  margin-bottom: 1.35rem;
}

.pv-promo-head h1 {
  margin: 0 0 0.35rem;
  font-size: clamp(1.45rem, 3vw, 1.85rem);
  color: var(--navy);
}

.pv-promo-head p {
  margin: 0;
  color: var(--slate);
}

.pv-shield {
  flex-shrink: 0;
  line-height: 0;
}

.pv-benefits {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 1.1rem;
}

.pv-benefits li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 0.85rem;
  align-items: start;
}

.pv-benefits strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.2rem;
}

.pv-benefits p {
  margin: 0;
  color: var(--slate);
  font-size: 0.92rem;
  line-height: 1.45;
}

.pv-ico {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 800;
  color: #fff;
}

.pv-ico--ok { background: #2F9E6E; }
.pv-ico--see { background: #3B6FA0; color: #fff; }
.pv-ico--chat { background: #D9773A; }
.pv-ico--lock { background: #4A5563; }

.pv-cta {
  width: 100%;
  text-align: center;
  background: var(--navy);
  border-color: var(--navy);
}

.pv-cta:hover {
  background: #151b24;
  border-color: #151b24;
}

.pv-status {
  border-radius: 14px;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
}

.pv-status strong {
  display: block;
  margin-bottom: 0.25rem;
}

.pv-status p {
  margin: 0;
  font-size: 0.92rem;
  color: var(--slate-dark);
}

.pv-status--ok {
  background: #e8f6ee;
  border: 1px solid #b7e0c6;
}

.pv-status--wait {
  background: #fff8e8;
  border: 1px solid #f0d9a0;
}

.pv-status--bad {
  background: #fdeeee;
  border: 1px solid #f0c4c4;
}

.pv-preview {
  margin-top: 0.85rem;
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid var(--border);
}

/* Super Admin — sidebar layout */
.admin-body {
  background: #f3eeea;
  min-height: 100vh;
  margin: 0;
}

.admin-shell {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  min-height: 100vh;
}

.admin-sidebar {
  background: var(--navy);
  color: #fff;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem 1rem;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.admin-sidebar-brand {
  padding: 0.35rem 0.75rem 1.35rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 1rem;
}

.admin-sidebar-brand a {
  display: block;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.2rem;
}

.admin-sidebar-brand span {
  display: block;
  margin-top: 0.2rem;
  font-size: 0.78rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.55);
}

.admin-sidebar-nav {
  display: grid;
  gap: 0.3rem;
  flex: 1;
}

.admin-sidebar-label {
  margin: 0.85rem 0 0.25rem;
  padding: 0 0.8rem;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 700;
}

.admin-sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 0.8rem;
  border-radius: 10px;
}

.admin-sidebar-nav a:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.admin-sidebar-nav a.is-active {
  background: rgba(200, 76, 91, 0.95);
  color: #fff;
}

.admin-sidebar-foot {
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
}

.admin-logout-btn {
  width: 100%;
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.35);
  color: #fff;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}

.admin-logout-btn:hover {
  background: rgba(255, 255, 255, 0.08);
}

.admin-content {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.admin-topbar {
  background: #fff;
  color: var(--navy);
  padding: 0.85rem 1.5rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 1rem;
  position: sticky;
  top: 0;
  z-index: 20;
}

.admin-topbar-title {
  font-weight: 800;
  font-size: 1.05rem;
  margin-right: auto;
}

.admin-topbar-user {
  font-size: 0.9rem;
  color: var(--slate);
  font-weight: 600;
}

.admin-sidebar-toggle {
  display: none;
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  padding: 0;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  cursor: pointer;
}

.admin-sidebar-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--navy);
}

.admin-main {
  padding: 1.5rem 1.5rem 3rem;
}

.admin-dash h1,
.admin-section-head h1,
.admin-review h1,
.admin-review h2 {
  margin: 0 0 0.35rem;
  color: var(--navy);
}

.admin-lead {
  color: var(--slate);
  margin: 0 0 1.25rem;
}

.admin-broadcast-card {
  max-width: 720px;
}

.admin-broadcast-meta {
  margin: 0 0 1rem;
  color: var(--slate-dark);
}

.admin-broadcast-form textarea {
  width: 100%;
  border: 1.5px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem 1rem;
  background: #fff;
  color: var(--navy);
  font: inherit;
  line-height: 1.5;
  resize: vertical;
  min-height: 140px;
  outline: none;
}

.admin-broadcast-form textarea:focus {
  border-color: var(--rose);
}

.admin-broadcast-hint {
  margin: 0.45rem 0 0;
  font-size: 0.85rem;
  color: var(--slate);
}

.admin-broadcast-form .btn {
  margin-top: 0.85rem;
}

.admin-toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  font-weight: 600;
  color: var(--navy);
  cursor: pointer;
}

.admin-toggle-row input[type="checkbox"] {
  width: 1.1rem;
  height: 1.1rem;
  accent-color: var(--rose);
}

.conv-compose-locked {
  padding: 0.85rem 1rem;
}

.conv-compose-lock-msg {
  margin: 0;
  text-align: center;
  color: var(--slate-dark);
  font-size: 0.9rem;
  font-weight: 600;
}

.admin-stat-grid--3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-login-cell {
  display: grid;
  gap: 0.15rem;
  font-size: 0.88rem;
}

.admin-login-cell .admin-meta {
  margin: 0;
}

.admin-users-toolbar input,
.admin-users-toolbar select {
  padding: 0.65rem 0.8rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.admin-users-toolbar input {
  flex: 1;
  min-width: 220px;
}

.admin-user-hero {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 1rem;
  align-items: center;
  margin: 0.75rem 0 1.25rem;
  padding: 1.15rem 1.25rem;
}

.admin-user-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem 1rem;
  margin: 0.85rem 0 1rem;
}

.admin-facts div {
  display: grid;
  gap: 0.15rem;
}

.admin-facts strong {
  font-size: 0.78rem;
  color: var(--slate);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.admin-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 0.55rem;
}

.admin-gallery-grid img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.admin-trash-list {
  display: grid;
  gap: 1.15rem;
}

.admin-trash-user-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.admin-trash-user-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.admin-trash-grid {
  grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
}

.admin-trash-item {
  margin: 0;
}

.admin-trash-item figcaption {
  display: grid;
  gap: 0.2rem;
  margin-top: 0.4rem;
  font-size: 0.72rem;
  color: var(--slate);
}

.admin-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.75rem;
}

.admin-activity-list li {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--border);
}

.admin-activity-type {
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--rose);
}

.admin-activity-list strong {
  display: block;
  color: var(--navy);
}

.admin-activity-list span {
  display: block;
  font-size: 0.85rem;
  color: var(--slate);
  margin-top: 0.15rem;
}

.admin-pill:not([class*="admin-pill--"]) {
  background: #eef1f5;
  color: #445;
}

@media (max-width: 700px) {
  .admin-activity-list li,
  .admin-facts {
    grid-template-columns: 1fr;
  }
}

.admin-stat {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.15rem 1.2rem;
  text-decoration: none;
  color: inherit;
  display: grid;
  gap: 0.25rem;
}

.admin-stat strong {
  font-size: 1.75rem;
  color: var(--navy);
}

.admin-stat span {
  color: var(--slate);
  font-size: 0.9rem;
}

.admin-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.admin-tabs a {
  text-decoration: none;
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  font-size: 0.88rem;
  font-weight: 600;
}

.admin-tabs a.is-active {
  background: var(--navy);
  border-color: var(--navy);
  color: #fff;
}

@media (max-width: 980px) {
  .admin-shell {
    grid-template-columns: 1fr;
  }

  .admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(280px, 86vw);
    z-index: 40;
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }

  body.admin-sidebar-open .admin-sidebar {
    transform: translateX(0);
  }

  body.admin-sidebar-open::before {
    content: '';
    position: fixed;
    inset: 0;
    background: rgba(30, 39, 51, 0.45);
    z-index: 30;
  }

  .admin-sidebar-toggle {
    display: flex;
  }
}

.admin-table-wrap {
  overflow-x: auto;
  padding: 0;
}

.admin-table {
  width: 100%;
  border-collapse: collapse;
}

.admin-table th,
.admin-table td {
  padding: 0.85rem 1rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
  vertical-align: middle;
}

.admin-table th {
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate);
  background: #faf7f5;
}

.admin-user-cell {
  display: flex;
  gap: 0.75rem;
  align-items: center;
}

.admin-user-cell img {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  object-fit: cover;
}

.admin-user-cell div {
  display: grid;
  gap: 0.1rem;
}

.admin-user-cell span {
  font-size: 0.82rem;
  color: var(--slate);
}

.admin-user-cell--lg img {
  width: 64px;
  height: 64px;
}

.admin-gift-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 0.85rem;
}

.admin-gift-cell {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.admin-gift-cell img {
  width: 36px;
  height: 36px;
  object-fit: contain;
}

.admin-gift-cell div {
  display: grid;
  gap: 0.1rem;
}

.admin-gift-cell span {
  font-size: 0.82rem;
  color: var(--slate);
}

.admin-thumb {
  width: 56px;
  height: 56px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.admin-pill {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 700;
  text-transform: capitalize;
}

.admin-pill--pending {
  background: #fff3cd;
  color: #8a6d1d;
}

.admin-pill--approved {
  background: #e8f6ee;
  color: #1f6b43;
}

.admin-pill--rejected {
  background: #fdeeee;
  color: #9b2c3a;
}

.admin-review-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(260px, 0.8fr);
  gap: 1.25rem;
  margin-top: 0.75rem;
}

.admin-review-img {
  width: 100%;
  max-width: 420px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid var(--border);
  display: block;
}

.admin-back {
  color: var(--slate-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.92rem;
}

.admin-meta {
  color: var(--slate);
  font-size: 0.88rem;
}

.admin-action-form {
  display: grid;
  gap: 0.55rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.admin-action-form label {
  display: grid;
  gap: 0.35rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.admin-action-form select,
.admin-action-form input {
  width: 100%;
  margin-top: 0.35rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 10px;
  font: inherit;
  background: #fff;
}

.admin-history {
  margin: 0.75rem 0 0;
  padding-left: 1.1rem;
  line-height: 1.7;
}

@media (max-width: 900px) {
  .admin-stat-grid,
  .admin-review-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .admin-stat-grid,
  .admin-review-grid {
    grid-template-columns: 1fr;
  }
}

/* Full conversation page — only chat thread scrolls */
body.conv-mode {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}

body.conv-mode main {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.conv-page {
  flex: 1 1 auto;
  min-height: 0;
  padding: 0.85rem 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.conv-page > .container {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.conv-layout {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) 200px;
  gap: 0.85rem;
  align-items: stretch;
  height: 100%;
  min-height: 0;
}

.conv-profile {
  padding: 1rem 0.95rem;
  text-align: center;
  overflow-y: auto;
  max-height: 100%;
}

.conv-avatar-wrap {
  position: relative;
  width: 96px;
  height: 96px;
  margin: 0 auto 0.65rem;
}

.conv-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid #fff;
  box-shadow: 0 6px 18px rgba(30, 39, 51, 0.1);
}

.conv-online-dot {
  position: absolute;
  right: 4px;
  bottom: 6px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  background: #9aa3ad;
}

.conv-online-dot.is-on {
  background: #22c55e;
}

.conv-name {
  margin: 0;
  font-size: 1.1rem;
}

.conv-name a {
  color: var(--navy);
  text-decoration: none;
}

.conv-meta,
.conv-seek {
  margin: 0.15rem 0 0;
  color: var(--slate);
  font-size: 0.8rem;
}

.conv-profile .match-active {
  justify-content: center;
  margin-top: 0.4rem;
  font-size: 0.82rem;
}

.conv-profile-actions {
  display: flex;
  justify-content: center;
  gap: 0.4rem;
  margin: 0.75rem 0;
}

.conv-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--navy);
  display: grid;
  place-items: center;
  text-decoration: none;
  cursor: pointer;
}

.conv-icon-btn.is-on {
  color: var(--rose);
  border-color: var(--rose-soft);
  background: #fff5f6;
}

.conv-icon-btn.icon-block:hover,
.conv-icon-btn.is-blocked {
  color: #dc2626;
  border-color: rgba(220, 38, 38, 0.35);
  background: rgba(220, 38, 38, 0.08);
}

.conv-safety {
  text-align: left;
  background: linear-gradient(180deg, #FFF8F6, #F8F1EE);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 0.9rem 1rem;
  margin-top: 0.5rem;
}

.conv-safety strong {
  display: block;
  color: var(--navy);
  margin-bottom: 0.3rem;
}

.conv-safety p {
  margin: 0 0 0.55rem;
  color: var(--slate);
  font-size: 0.86rem;
  line-height: 1.4;
}

.conv-safety a {
  color: var(--rose);
  font-weight: 700;
  font-size: 0.86rem;
}

.conv-main {
  padding: 0;
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  min-height: 0;
  overflow: hidden;
}

.conv-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
  padding: 0.55rem 0.9rem;
  border-bottom: 1px solid var(--border);
  background: #faf7f5;
}

.conv-back {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.84rem;
}

.conv-tool-btn {
  border: 0;
  background: transparent;
  color: var(--slate-dark);
  cursor: pointer;
  padding: 0.2rem;
}

.conv-thread {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 0.75rem 0.9rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  background:
    radial-gradient(circle at top right, rgba(248, 217, 220, 0.35), transparent 40%),
    linear-gradient(180deg, #fff, var(--cream));
  scrollbar-width: thin;
  scrollbar-color: rgba(200, 76, 91, 0.45) transparent;
}

.conv-thread::-webkit-scrollbar {
  width: 8px;
}

.conv-thread::-webkit-scrollbar-track {
  background: transparent;
}

.conv-thread::-webkit-scrollbar-thumb {
  background: rgba(200, 76, 91, 0.4);
  border-radius: 999px;
}

.conv-day {
  align-self: center;
  font-size: 0.72rem;
  color: var(--slate);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.15rem 0.55rem;
  margin: 0.2rem 0;
}

.conv-empty {
  margin: auto;
  text-align: center;
  color: var(--slate);
}

.conv-msg {
  display: flex;
  gap: 0.4rem;
  max-width: 72%;
  align-items: flex-end;
  width: fit-content;
}

.conv-msg.is-mine {
  align-self: flex-end;
  flex-direction: row-reverse;
}

.conv-msg.is-theirs {
  align-self: flex-start;
}

.conv-msg-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}

.conv-bubble-wrap {
  display: flex;
  flex-direction: column;
  min-width: 0;
  max-width: 100%;
}

.conv-bubble {
  display: inline-block;
  width: fit-content;
  max-width: 100%;
  padding: 0.38rem 0.7rem;
  border-radius: 14px;
  font-size: 0.86rem;
  line-height: 1.35;
  word-break: break-word;
  white-space: pre-wrap;
}

.conv-msg.is-theirs .conv-bubble {
  background: #fff;
  border: 1px solid var(--border);
  color: var(--navy);
  border-bottom-left-radius: 4px;
}

.conv-msg.is-mine .conv-bubble {
  background: linear-gradient(135deg, var(--rose) 0%, #d45a68 100%);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.conv-translate {
  margin-top: 0.25rem;
  display: grid;
  gap: 0.25rem;
  max-width: 100%;
}

.conv-translate-result {
  padding-top: 0.35rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.84rem;
  line-height: 1.35;
  color: var(--navy);
  white-space: pre-wrap;
  word-break: break-word;
}

.conv-translate-btn {
  border: 0;
  background: transparent;
  color: #0d9488;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0;
  cursor: pointer;
  text-align: left;
  width: fit-content;
}

.conv-translate-btn:hover {
  text-decoration: underline;
}

.conv-translate-btn:disabled {
  opacity: 0.6;
  cursor: wait;
  text-decoration: none;
}

.lang-pair-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(20, 24, 32, 0.45);
  display: grid;
  place-items: center;
  padding: 1rem;
}

.lang-pair-modal[hidden],
.lang-pair-modal:not(.is-open) {
  display: none !important;
}

.lang-pair-modal.is-open {
  display: grid !important;
}

body.lang-modal-open {
  overflow: hidden;
}

.lang-pair-card {
  width: min(420px, 100%);
  background: #fff;
  border-radius: 8px;
  padding: 1.35rem 1.25rem 1rem;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.22);
  display: grid;
  gap: 0.85rem;
}

.lang-pair-title {
  margin: 0;
  font-size: 1.15rem;
  color: #222;
  font-weight: 700;
}

.lang-pair-lead {
  margin: -0.35rem 0 0;
  color: var(--slate-dark);
  font-size: 0.9rem;
}

.lang-pair-exchange {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 0.55rem;
  align-items: end;
}

.lang-pair-col {
  display: grid;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate-dark);
}

.lang-pair-select {
  width: 100%;
  padding: 0.7rem 0.75rem;
  border: 1px solid #d0d5dd;
  border-radius: 4px;
  font: inherit;
  font-size: 0.95rem;
  background: #fff;
  color: #222;
}

.lang-pair-swap {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 50%;
  background: #fff;
  color: var(--navy);
  display: grid;
  place-items: center;
  cursor: pointer;
  margin-bottom: 0.05rem;
}

.lang-pair-swap:hover {
  background: rgba(200, 76, 91, 0.08);
  border-color: var(--rose);
  color: var(--rose);
}

.lang-pair-preview {
  margin: 0;
  text-align: center;
  font-weight: 700;
  color: var(--navy);
  font-size: 0.95rem;
}

.lang-pair-submit {
  width: 100%;
  justify-content: center;
  border-radius: 4px;
  padding: 0.75rem 1rem;
  background: #0d9488 !important;
  border-color: #0d9488 !important;
}

.lang-pair-submit:hover {
  background: #0f766e !important;
}

.lang-pair-close {
  justify-self: end;
  border: 0;
  background: transparent;
  color: #2563eb;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  padding: 0.2rem 0;
}

.conv-translate {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
}

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

.conv-msg-meta {
  display: flex;
  gap: 0.35rem;
  align-items: center;
  margin-top: 0.12rem;
  font-size: 0.68rem;
  color: var(--slate);
  line-height: 1;
}

.conv-msg.is-mine .conv-msg-meta {
  justify-content: flex-end;
}

.conv-seen {
  color: var(--rose);
  font-weight: 700;
}

.conv-gifts {
  flex-shrink: 0;
  padding: 0.35rem 0.2rem 0.2rem;
  border-top: 1px solid #ebebeb;
  background: #f5f5f5;
}

.conv-gifts-track {
  display: flex;
  flex-wrap: nowrap;
  align-items: flex-start;
  gap: 0;
  overflow-x: auto;
  overflow-y: hidden;
  overscroll-behavior-x: contain;
  scroll-snap-type: x proximity;
  padding: 0.1rem 0.45rem 0.25rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 0, 0, 0.18) transparent;
}

.conv-gifts-track::-webkit-scrollbar {
  height: 4px;
}

.conv-gifts-track::-webkit-scrollbar-thumb {
  background: rgba(0, 0, 0, 0.18);
  border-radius: 999px;
}

.conv-gift {
  flex: 0 0 auto;
  width: 58px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  padding: 0.2rem 0.1rem 0.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.18rem;
  cursor: pointer;
  font: inherit;
  color: #444;
  scroll-snap-align: start;
  transition: background 0.12s ease;
}

.conv-gift:hover {
  background: rgba(255, 255, 255, 0.85);
}

.conv-gift-img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  display: block;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
  pointer-events: none;
}

.conv-gift-emoji {
  font-size: 1.25rem;
  line-height: 1;
}

.conv-gift-price {
  display: inline-flex;
  align-items: center;
  gap: 0.16rem;
  font-size: 0.68rem;
  font-weight: 600;
  color: #555;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.conv-gift-ico {
  color: var(--rose);
}

.conv-compose {
  flex-shrink: 0;
  padding: 0.5rem 0.85rem 0.6rem;
  border-top: 1px solid #ebebeb;
  background: #fff;
}

.conv-compose-wrap {
  position: relative;
}

.conv-compose-box {
  display: grid;
  grid-template-columns: 24px 1fr 36px 36px;
  gap: 0.35rem;
  align-items: end;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.35rem 0.4rem 0.35rem 0.55rem;
}

.conv-compose-box textarea {
  border: 0;
  resize: none;
  font: inherit;
  font-size: 0.88rem;
  min-height: 34px;
  max-height: 96px;
  outline: none;
  background: transparent;
  color: var(--navy);
  line-height: 1.35;
}

.conv-compose-pen {
  color: var(--slate);
  padding-bottom: 0.35rem;
}

.conv-emoji-toggle {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--slate-dark);
  display: grid;
  place-items: center;
  cursor: pointer;
}

.conv-emoji-toggle:hover,
.conv-emoji-toggle.is-open {
  color: var(--rose);
  background: rgba(200, 76, 91, 0.08);
}

.emoji-picker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: calc(100% + 0.4rem);
  z-index: 20;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 12px 32px rgba(30, 39, 51, 0.12);
  padding: 0.55rem;
  max-height: 180px;
  overflow-y: auto;
}

.emoji-picker[hidden] {
  display: none !important;
}

.emoji-picker-grid {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 0.15rem;
}

.emoji-btn {
  border: 0;
  background: transparent;
  border-radius: 8px;
  font-size: 1.25rem;
  line-height: 1;
  padding: 0.35rem 0.15rem;
  cursor: pointer;
}

.emoji-btn:hover {
  background: rgba(30, 39, 51, 0.06);
}

.conv-send {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.conv-send:hover {
  background: #151b24;
}

.conv-compose-hint {
  margin: 0.3rem 0 0;
  font-size: 0.7rem;
  color: var(--slate);
}

.conv-promo {
  display: grid;
  gap: 0.85rem;
  align-content: start;
  overflow-y: auto;
  max-height: 100%;
}

.conv-promo-card {
  background: var(--navy);
  color: #fff;
  border-radius: 16px;
  padding: 1.2rem 1.15rem;
}

.conv-promo-card h2 {
  margin: 0 0 0.4rem;
  font-size: 1.15rem;
}

.conv-promo-card p {
  margin: 0 0 1rem;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
  line-height: 1.45;
}

.conv-promo-card .btn {
  width: 100%;
  text-align: center;
}

.conv-promo-soft {
  padding: 1.1rem 1.15rem;
}

.conv-promo-soft h3 {
  margin: 0 0 0.35rem;
  color: var(--navy);
}

.conv-promo-soft p {
  margin: 0;
  color: var(--slate);
  font-size: 0.9rem;
  line-height: 1.45;
}

@media (max-width: 1100px) {
  .conv-layout {
    grid-template-columns: 240px minmax(0, 1fr);
  }

  .conv-promo {
    display: none;
  }
}

@media (max-width: 780px) {
  body.conv-mode {
    height: auto;
    max-height: none;
    overflow: auto;
  }

  body.conv-mode main {
    overflow: visible;
  }

  .conv-page,
  .conv-page > .container,
  .conv-layout {
    height: auto;
    min-height: 0;
  }

  .conv-layout {
    grid-template-columns: 1fr;
  }

  .conv-profile {
    order: -1;
    max-height: none;
  }

  .conv-main {
    height: min(70vh, 560px);
    min-height: 420px;
  }
}

/* Live Rooms */
.live-page { padding: 1.25rem 0 2.5rem; background: #f7f5f3; min-height: 70vh; }
.live-page--pro {
  background:
    radial-gradient(1100px 520px at 8% -15%, rgba(232, 67, 97, 0.18), transparent 58%),
    radial-gradient(800px 400px at 95% 5%, rgba(255,255,255,0.04), transparent 50%),
    #07090c;
  color: #fff;
  min-height: calc(100vh - 70px);
  padding-bottom: 3rem;
}
.live-wrap { max-width: 1120px; margin-inline: auto; }
.live-head { display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap; align-items: flex-end; margin-bottom: 1.15rem; }
.live-head--pro {
  align-items: center;
  margin-bottom: 1.75rem;
  padding: 1.15rem 1.2rem;
  border-radius: 18px;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}
.live-kicker { margin: 0; font-size: 0.7rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--slate); }
.live-page--pro .live-kicker { color: #ffb3c1; }
.live-head h1 { margin: 0.15rem 0; font-size: 1.45rem; color: var(--navy); }
.live-page--pro .live-head h1 { color: #fff; font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: -0.02em; }
.live-sub { margin: 0; color: var(--slate-dark); font-size: 0.9rem; }
.live-page--pro .live-sub { color: rgba(255,255,255,.72); }
.live-start-form { display: flex; gap: 0.5rem; flex-wrap: wrap; align-items: center; }
.live-start-form--pro { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); padding: 0.45rem; border-radius: 14px; }
.live-start-form input { min-width: 220px; border: 1px solid var(--border); border-radius: 8px; padding: 0.65rem 0.75rem; background: #fff; }
.live-start-form--pro input {
  min-width: min(280px, 70vw);
  background: rgba(255,255,255,.08);
  border-color: rgba(255,255,255,.14);
  color: #fff;
}
.live-start-form--pro input::placeholder { color: rgba(255,255,255,.45); }
.live-cta {
  display: inline-flex !important;
  align-items: center;
  gap: 0.4rem;
  border-radius: 999px !important;
  padding-inline: 1.1rem !important;
  font-weight: 800 !important;
}
.live-cta-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,255,255,.25);
  animation: livePulse 1.2s ease-in-out infinite;
}
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.85rem; }
.live-grid--pro { gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); }
.live-card { display: block; background: #fff; border: 1px solid var(--border); border-radius: 12px; overflow: hidden; text-decoration: none; color: inherit; transition: border-color .15s ease, transform .15s ease; }
.live-card--pro {
  background: #171d26;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 12px 30px rgba(0,0,0,.22);
}
.live-card--pro:hover { border-color: rgba(232,67,97,.55); transform: translateY(-3px); }
.live-card-media { position: relative; aspect-ratio: 3/4; background: #ddd; }
.live-card--pro .live-card-media { background: #0b0f14; }
.live-card-media img { width: 100%; height: 100%; object-fit: cover; }
.live-card-shade {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.72));
  pointer-events: none;
}
.live-pill { position: absolute; top: 0.55rem; left: 0.55rem; background: var(--rose); color: #fff; font-size: 0.68rem; font-weight: 800; letter-spacing: .06em; padding: 0.2rem 0.45rem; border-radius: 4px; }
.live-pill--pulse { animation: livePulse 1.2s ease-in-out infinite; border-radius: 6px; }
.live-viewers { position: absolute; bottom: 0.55rem; left: 0.55rem; background: rgba(0,0,0,.55); color: #fff; font-size: 0.72rem; padding: 0.2rem 0.45rem; border-radius: 4px; }
.live-card--pro .live-viewers { bottom: 3.4rem; z-index: 1; }
.live-card-watch {
  position: absolute;
  right: 0.55rem;
  bottom: 0.55rem;
  background: var(--rose);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  letter-spacing: 0.02em;
  z-index: 1;
}
.live-howto { margin: 1rem 0 0; text-align: center; color: var(--slate-dark); font-size: 0.88rem; }
.live-card-body { padding: 0.7rem 0.75rem; display: grid; gap: 0.15rem; }
.live-card--pro .live-card-body { padding: 0.75rem; }
.live-card-host { display: flex; gap: 0.55rem; align-items: center; }
.live-card-avatar { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; border: 2px solid rgba(255,255,255,.2); }
.live-card-body strong { font-size: 0.92rem; color: var(--navy); display: block; }
.live-card--pro .live-card-body strong { color: #fff; }
.live-card-body span { font-size: 0.8rem; color: var(--slate); }
.live-card--pro .live-card-body span { color: rgba(255,255,255,.6); }
.live-empty { grid-column: 1 / -1; background: #fff; border: 1px dashed var(--border); border-radius: 12px; padding: 2rem; text-align: center; color: var(--slate-dark); }
.live-empty--pro {
  background: rgba(255,255,255,.04);
  border: 1px dashed rgba(255,255,255,.14);
  color: rgba(255,255,255,.7);
  border-radius: 16px;
}
.live-empty--cta {
  padding: 2.5rem 1.5rem;
  display: grid;
  justify-items: center;
  gap: 0.55rem;
  text-align: center;
  background:
    radial-gradient(600px 220px at 50% 0%, rgba(232,67,97,.18), transparent 70%),
    rgba(255,255,255,.04);
  border: 1px solid rgba(232,67,97,.28);
}
.live-empty-badge {
  display: inline-flex;
  align-items: center;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: .08em;
  color: #ffb3c1;
  background: rgba(232,67,97,.15);
  border: 1px solid rgba(232,67,97,.35);
  border-radius: 999px;
  padding: 0.28rem 0.7rem;
}
.live-empty-form { margin-top: 0.55rem; }
.live-empty-title { margin: 0 0 0.35rem; color: #fff; font-size: 1.05rem; font-weight: 800; }


/* —— Live Studio (immersive room) —— */
body.live-mode {
  background: #07090c;
}
body.live-room-mode {
  height: 100vh;
  max-height: 100vh;
  overflow: hidden;
}
body.live-room-mode main {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 0;
}
body.live-room-mode .live-studio {
  flex: 1 1 auto;
  min-height: 0;
  height: 100%;
}

.live-studio {
  --ls-bg: #07090c;
  --ls-panel: #0e1319;
  --ls-line: rgba(255,255,255,.08);
  --ls-muted: rgba(255,255,255,.55);
  display: flex;
  flex-direction: column;
  background: var(--ls-bg);
  color: #fff;
  min-height: 100vh;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  box-sizing: border-box;
}
.live-studio *,
.live-studio *::before,
.live-studio *::after {
  box-sizing: border-box;
}
.live-connect-actions [hidden],
.live-side-tools[hidden],
.live-filter-bar[hidden] {
  display: none !important;
}
.live-studio-bar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.65rem 0.9rem;
  background: rgba(10,14,18,.96);
  border-bottom: 1px solid var(--ls-line);
  backdrop-filter: blur(12px);
  z-index: 8;
}
.live-studio-bar-left,
.live-studio-bar-center,
.live-studio-bar-right {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.live-studio-bar-left { flex: 1 1 240px; }
.live-studio-bar-center { flex: 0 1 auto; justify-content: center; flex-wrap: wrap; }
.live-studio-bar-right { flex: 1 1 200px; justify-content: flex-end; }
.live-studio-back {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--ls-line);
  color: #fff;
  text-decoration: none;
  font-size: 1.05rem;
  font-weight: 700;
  flex: 0 0 auto;
}
.live-studio-back:hover { background: rgba(255,255,255,.12); }
.live-studio-host {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
}
.live-studio-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(232,67,97,.55);
  flex: 0 0 auto;
}
.live-studio-host-text {
  min-width: 0;
  display: grid;
  gap: 0.05rem;
}
.live-studio-host-text strong {
  font-size: 0.92rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-studio-host-text span {
  font-size: 0.72rem;
  color: var(--ls-muted);
}
.live-studio-bar .live-pill,
.live-studio-bar .live-viewers {
  position: static;
}
.live-leave-btn {
  border-radius: 999px !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  background: rgba(255,255,255,.06) !important;
  color: #fff !important;
}
.live-studio-body {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
}

.live-dock {
  display: flex;
  flex-direction: column;
  min-height: 0;
  background: var(--ls-panel);
  border-right: 1px solid var(--ls-line);
}
.live-dock-label {
  margin: 0 0 0.45rem;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255,176,190,.85);
}
.live-side-tools {
  padding: 0.7rem 0.75rem 0.75rem;
  border-bottom: 1px solid var(--ls-line);
  display: grid;
  gap: 0.5rem;
  background: linear-gradient(180deg, rgba(255,255,255,.03), transparent);
}
.live-side-tools[hidden] { display: none !important; }
.live-av-controls {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.35rem;
}
.live-av-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.18rem;
  border: 1px solid var(--ls-line);
  border-radius: 12px;
  background: rgba(255,255,255,.04);
  color: #fff;
  font-weight: 700;
  font-size: 0.66rem;
  padding: 0.5rem 0.25rem;
  cursor: pointer;
  min-height: 54px;
  transition: background .15s ease, border-color .15s ease, transform .12s ease;
}
.live-av-icon { font-size: 1rem; line-height: 1; }
.live-av-label { opacity: .88; letter-spacing: .01em; }
.live-av-btn:hover { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); transform: translateY(-1px); }
.live-av-btn.is-off {
  background: rgba(200, 76, 91, 0.22);
  border-color: rgba(200, 76, 91, 0.55);
  color: #ffb4bc;
}
.live-av-btn[aria-expanded="true"] {
  background: rgba(232, 67, 97, 0.18);
  border-color: rgba(232, 67, 97, 0.45);
}
.live-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding: 0.4rem 0.1rem 0.05rem;
  border-top: 1px solid var(--ls-line);
}
.live-filter-bar[hidden] { display: none !important; }
.live-filter-title {
  color: rgba(255,208,216,.9);
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.live-filter-row {
  display: flex;
  gap: 0.38rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding-bottom: 0.1rem;
}
.live-filter-row::-webkit-scrollbar { display: none; }
.live-filter-chip {
  flex: 0 0 auto;
  width: 50px;
  border: 0;
  background: transparent;
  color: #fff;
  padding: 0;
  cursor: pointer;
  display: grid;
  gap: 0.2rem;
  justify-items: center;
}
.live-filter-swatch {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid rgba(255,255,255,.28);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,.15);
  background: #888;
}
.live-filter-chip.is-active .live-filter-swatch {
  border-color: #fff;
  box-shadow: 0 0 0 2px var(--rose), inset 0 0 0 1px rgba(0,0,0,.1);
}
.live-filter-name {
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  opacity: 0.85;
  white-space: nowrap;
}
.live-filter-chip.is-active .live-filter-name { color: #ffd0d8; opacity: 1; }
.live-filter-swatch--original { background: linear-gradient(135deg, #cfcfcf, #8a8a8a); }
.live-filter-swatch--softglow { background: linear-gradient(135deg, #ffe0d6, #f5a9b8); }
.live-filter-swatch--beauty { background: linear-gradient(135deg, #ffd0e0, #ef7a9a); }
.live-filter-swatch--pure { background: linear-gradient(135deg, #fff7fb, #e8d0dc); }
.live-filter-swatch--peach { background: linear-gradient(135deg, #ffd0b0, #f08a5a); }
.live-filter-swatch--doll { background: linear-gradient(135deg, #ffc0d4, #e85a8a); }
.live-filter-swatch--cream { background: linear-gradient(135deg, #fff1de, #e2c4a0); }
.live-filter-swatch--cool { background: linear-gradient(135deg, #d5ecff, #7ea8d4); }
.live-filter-swatch--sweet { background: linear-gradient(135deg, #ffd0e4, #ff7aa8); }
.live-filter-swatch--clear { background: linear-gradient(135deg, #f5f8ff, #c5d0ea); }
.live-filter-swatch--natural { background: linear-gradient(135deg, #efe6d8, #b7c4a5); }

.live-connect {
  padding: 0.6rem 0.75rem;
  border-bottom: 1px solid var(--ls-line);
  display: grid;
  gap: 0.55rem;
  max-height: 160px;
  overflow-y: auto;
}
.live-connect-block strong {
  display: block;
  font-size: 0.72rem;
  margin-bottom: 0.35rem;
  color: var(--ls-muted);
  letter-spacing: .02em;
}
.live-connect-list { display: grid; gap: 0.35rem; }
.live-connect-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
}
.live-connect-row img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
}
.live-connect-row span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.live-connect-empty { margin: 0; font-size: 0.74rem; color: rgba(255,255,255,.4); }

.live-chat-wrap {
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  padding: 0.65rem 0.75rem 0;
}
.live-chat {
  flex: 1;
  overflow-y: auto;
  padding: 0.15rem 0 0.55rem;
  display: grid;
  gap: 0.4rem;
  align-content: start;
  max-height: none;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}
.live-chat-row {
  font-size: 0.84rem;
  line-height: 1.35;
  color: rgba(255,255,255,.92);
  padding: 0.4rem 0.55rem;
  border-radius: 10px;
  background: rgba(255,255,255,.035);
  border: 1px solid transparent;
}
.live-chat-row strong { color: #ffb3c1; margin-right: 0.28rem; font-weight: 700; }
.live-chat-row.is-gift {
  color: #f6d27a;
  background: rgba(246, 210, 122, 0.08);
  border-color: rgba(246, 210, 122, 0.18);
}
.live-chat-row.is-system {
  color: rgba(255,255,255,.5);
  font-style: italic;
  background: transparent;
  padding-inline: 0.2rem;
}
.live-chat-form {
  display: flex;
  gap: 0.4rem;
  padding: 0.65rem 0.7rem;
  max-width: 100%;
}
.live-chat-form input {
  flex: 1;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: #fff;
  border-radius: 999px;
  padding: 0.58rem 0.85rem;
  outline: none;
}
.live-chat-form input:focus {
  border-color: rgba(232,67,97,.55);
  box-shadow: 0 0 0 3px rgba(232,67,97,.15);
}
.live-gifts {
  display: flex;
  gap: 0.4rem;
  overflow-x: auto;
  padding: 0 0.7rem 0.75rem;
  scrollbar-width: none;
  max-width: 100%;
  -webkit-overflow-scrolling: touch;
}
.live-dock-foot {
  flex: 0 0 auto;
  border-top: 1px solid var(--ls-line);
  background: rgba(0,0,0,.22);
  max-width: 100%;
  overflow: hidden;
}
.live-connect-actions .btn-outline {
  color: #fff;
  border-color: rgba(255,255,255,.28);
}
.live-connect-actions .btn-outline:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
}
.live-connect-actions .btn-sm {
  padding: 0.45rem 0.75rem;
  font-size: 0.78rem;
}
.live-gifts::-webkit-scrollbar { display: none; }
.live-gift-btn {
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.05);
  color: #fff;
  border-radius: 12px;
  padding: 0.4rem 0.5rem;
  display: grid;
  place-items: center;
  gap: 0.15rem;
  cursor: pointer;
  font-size: 0.68rem;
  transition: border-color .15s ease, background .15s ease, transform .12s ease;
}
.live-gift-btn:hover {
  border-color: var(--rose-soft);
  background: rgba(232,67,97,.15);
  transform: translateY(-1px);
}

.live-stage-video {
  position: relative;
  background: #000;
  min-height: 0;
  overflow: hidden;
}
.live-video-host { width: 100%; height: 100%; min-height: 0; display: grid; place-items: stretch; }
.live-video-grid {
  display: grid !important;
  gap: 0.4rem;
  padding: 0.4rem;
  place-items: stretch !important;
  grid-template-columns: 1fr;
  width: 100%;
  max-width: 100%;
  height: 100%;
  min-height: 0;
  box-sizing: border-box;
}
.live-video-grid[data-tiles="2"] { grid-template-columns: 1fr 1fr; }
.live-video-grid[data-tiles="3"],
.live-video-grid[data-tiles="4"] { grid-template-columns: 1fr 1fr; }
.live-tile.is-empty,
.live-tile[hidden] {
  display: none !important;
}
.live-tile-media { width: 100%; height: 100%; min-height: 160px; }
.live-tile-media .live-video-el,
.live-tile .live-video-el { width: 100%; height: 100%; object-fit: cover; display: block; min-height: 160px; }
.live-tile-name {
  position: absolute;
  left: 0.6rem;
  bottom: 0.6rem;
  background: rgba(0,0,0,.55);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.1);
}
.live-connecting {
  position: absolute;
  inset: 0;
  z-index: 4;
  display: grid;
  place-content: center;
  gap: 0.65rem;
  justify-items: center;
  background: rgba(0,0,0,.58);
  color: #fff;
  font-weight: 700;
  pointer-events: none;
}
.live-connecting[hidden],
.live-connecting.is-hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}
.live-connecting-spin {
  width: 34px; height: 34px; border-radius: 50%;
  border: 3px solid rgba(255,255,255,.25);
  border-top-color: var(--rose);
  animation: liveSpin .8s linear infinite;
}
@keyframes liveSpin { to { transform: rotate(360deg); } }
.live-video-el { width: 100%; height: 100%; object-fit: cover; background: #000; }
.live-unmute-btn {
  position: absolute;
  left: 50%;
  bottom: 1.25rem;
  transform: translateX(-50%);
  z-index: 5;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  font-weight: 700;
  font-size: 0.92rem;
  padding: 0.7rem 1.15rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
}
.live-unmute-btn:hover { background: var(--rose); }
.live-hd-badge {
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.2);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: .06em;
  padding: 0.22rem 0.45rem;
  border-radius: 6px;
}
.live-conn { font-size: 0.72rem; font-weight: 700; color: #8dffb0; }
.live-conn.is-weak { color: #ffd27a; }
.live-conn.is-bad { color: #ff8f8f; }
.live-stage-error {
  position: absolute;
  inset: auto 1rem 1.25rem;
  background: rgba(200,76,91,.92);
  color: #fff;
  padding: 0.75rem 1rem;
  border-radius: 10px;
  font-size: 0.88rem;
  z-index: 5;
}
.live-coins {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 999px;
  padding: 0.3rem 0.65rem;
  font-size: 0.78rem;
  font-weight: 700;
}
.live-end-btn {
  background: rgba(200,76,91,.22) !important;
  border: 1px solid rgba(200,76,91,.55) !important;
  color: #ffb4bc !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
}

/* Host-only: who is watching */
.live-watchers {
  padding: 0.6rem 0.75rem 0.65rem;
  border-bottom: 1px solid var(--ls-line);
  background: rgba(255,255,255,.02);
}
.live-watchers-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
.live-watchers-head .live-dock-label { margin: 0; }
.live-watchers-count {
  min-width: 22px;
  height: 22px;
  padding: 0 0.4rem;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: rgba(232,67,97,.2);
  border: 1px solid rgba(232,67,97,.4);
  color: #ffb3c1;
  font-size: 0.7rem;
  font-weight: 800;
}
.live-watchers-list {
  display: grid;
  gap: 0.35rem;
  max-height: 140px;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.15) transparent;
}
.live-watcher-row {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  padding: 0.28rem 0.35rem;
  border-radius: 10px;
  background: rgba(255,255,255,.03);
}
.live-watcher-row img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,.12);
  flex: 0 0 auto;
}
.live-watcher-row span {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: 600;
}
.live-watcher-role {
  font-style: normal;
  font-size: 0.62rem;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: #f6d27a;
  background: rgba(246,210,122,.12);
  border: 1px solid rgba(246,210,122,.25);
  border-radius: 999px;
  padding: 0.12rem 0.4rem;
}

/* TikTok-style join toasts on video */
.live-join-toasts {
  position: absolute;
  left: 0.85rem;
  bottom: 1.1rem;
  z-index: 6;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  pointer-events: none;
  max-width: min(280px, 72%);
}
.live-join-toast {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.45rem 0.7rem 0.45rem 0.45rem;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(232,67,97,.88), rgba(20,24,30,.72));
  border: 1px solid rgba(255,255,255,.14);
  box-shadow: 0 8px 24px rgba(0,0,0,.35);
  color: #fff;
  opacity: 0;
  transform: translateX(-18px) scale(.96);
  transition: opacity .28s ease, transform .28s ease;
}
.live-join-toast.is-in {
  opacity: 1;
  transform: translateX(0) scale(1);
}
.live-join-toast.is-out {
  opacity: 0;
  transform: translateX(-12px) scale(.97);
}
.live-join-toast-photo {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(255,255,255,.55);
  flex: 0 0 auto;
  background: #222;
}
.live-join-toast-photo--empty { display: inline-block; }
.live-join-toast-text {
  display: grid;
  gap: 0.02rem;
  min-width: 0;
}
.live-join-toast-text strong {
  font-size: 0.82rem;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.live-join-toast-text span {
  font-size: 0.68rem;
  opacity: .88;
  font-weight: 600;
}
.live-chat-row.is-join {
  color: #ffb3c1;
  background: rgba(232,67,97,.1);
  border-color: rgba(232,67,97,.18);
  font-weight: 600;
}

@media (max-width: 900px) {
  body.live-room-mode {
    height: auto;
    max-height: none;
    overflow-x: hidden;
    overflow-y: auto;
    width: 100%;
  }
  body.live-room-mode main {
    overflow: visible;
    height: auto;
    width: 100%;
    max-width: 100%;
  }
  .live-studio {
    min-height: 100dvh;
    height: auto;
    width: 100%;
    max-width: 100vw;
    overflow-x: hidden;
  }
  .live-studio-bar {
    flex-wrap: wrap;
    padding: 0.5rem 0.65rem;
    gap: 0.45rem;
  }
  .live-studio-bar-left,
  .live-studio-bar-right {
    flex: 1 1 auto;
    min-width: 0;
  }
  .live-studio-bar-center {
    order: 3;
    width: 100%;
    justify-content: flex-start;
    gap: 0.35rem;
  }
  .live-studio-host-text strong {
    font-size: 0.84rem;
    max-width: 42vw;
  }
  .live-studio-watchers {
    font-size: 0.7rem;
    padding: 0.22rem 0.5rem;
  }
  .live-studio-body {
    display: flex;
    flex-direction: column;
    grid-template-columns: none;
    width: 100%;
    min-height: 0;
  }
  .live-stage-video {
    order: -1;
    width: 100%;
    max-width: 100%;
    min-height: 42vh;
    height: min(52vh, 420px);
    aspect-ratio: auto;
    max-height: none;
    flex: 0 0 auto;
  }
  .live-video-host,
  .live-video-grid {
    width: 100% !important;
    max-width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
  }
  .live-video-grid {
    gap: 0.3rem;
    padding: 0.3rem;
  }
  .live-video-grid[data-tiles="1"] {
    grid-template-columns: 1fr;
  }
  .live-video-grid[data-tiles="2"] {
    grid-template-columns: 1fr 1fr;
  }
  .live-video-grid[data-tiles="3"],
  .live-video-grid[data-tiles="4"] {
    grid-template-columns: 1fr 1fr;
  }
  .live-tile {
    min-height: 0;
    border-radius: 12px;
    height: 100%;
  }
  .live-tile-media,
  .live-tile-media .live-video-el,
  .live-tile .live-video-el {
    min-height: 0;
    height: 100%;
  }
  .live-dock {
    order: 1;
    width: 100%;
    max-width: 100%;
    min-height: 0;
    flex: 1 1 auto;
    border-right: 0;
    border-top: 1px solid var(--ls-line);
    overflow: hidden;
  }
  .live-side-tools {
    padding: 0.55rem 0.6rem 0.6rem;
  }
  .live-av-controls {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.28rem;
    width: 100%;
  }
  .live-av-btn {
    min-height: 48px;
    padding: 0.4rem 0.15rem;
    font-size: 0.6rem;
    border-radius: 10px;
  }
  .live-av-icon { font-size: 0.95rem; }
  .live-filter-chip { width: 46px; }
  .live-filter-swatch { width: 34px; height: 34px; }
  .live-filter-name { font-size: 0.56rem; }
  .live-connect {
    max-height: none;
    padding: 0.55rem 0.6rem;
  }
  .live-connect-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    align-items: center;
    width: 100%;
    max-width: 100%;
  }
  .live-connect-actions .btn {
    flex: 0 1 auto;
    max-width: 100%;
  }
  .live-connect-actions .btn[hidden],
  .live-connect-actions [hidden] {
    display: none !important;
  }
  .live-connect-status {
    flex: 1 1 100%;
    width: 100%;
    min-width: 0;
    white-space: normal;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }
  .live-chat-wrap {
    padding: 0.55rem 0.6rem 0;
    max-width: 100%;
  }
  .live-chat {
    max-height: 160px;
  }
  .live-dock-foot {
    max-width: 100%;
    overflow: hidden;
  }
  .live-chat-form {
    padding: 0.55rem 0.6rem;
    max-width: 100%;
  }
  .live-chat-form input {
    min-width: 0;
    flex: 1 1 auto;
    width: auto;
  }
  .live-gifts {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.35rem;
    overflow: visible;
    padding: 0 0.6rem 0.75rem;
    max-width: 100%;
  }
  .live-gift-btn {
    width: 100%;
    min-width: 0;
    padding: 0.35rem 0.25rem;
  }
  .live-gift-btn img {
    width: 24px;
    height: 24px;
  }
  .live-watchers-list { max-height: 100px; }
  .live-join-toasts {
    left: 0.5rem;
    right: auto;
    bottom: 0.7rem;
    max-width: min(240px, 78%);
  }
  .live-unmute-btn {
    bottom: 0.75rem;
    font-size: 0.82rem;
    padding: 0.55rem 0.9rem;
  }
}

@media (max-width: 420px) {
  .live-stage-video {
    min-height: 38vh;
    height: min(46vh, 360px);
  }
  .live-studio-bar-right .live-coins {
    display: none;
  }
  .live-av-label {
    font-size: 0.55rem;
  }
}