:root {
  --bg: #050509;
  --purple-1: #7c3aed;
  --purple-2: #a855f7;
  --pink-1: #ec4899;
  --text: #f8fafc;
  --muted: #a1a1aa;
  --white: #050509;
  --danger: #ef4444;
  --bottom-nav-height: 52px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  font-family: "Segoe UI", Roboto, sans-serif;
  width: 100%;
  overflow-x: hidden;
}

.screen-bg {
  display: block;
  background: var(--bg);
  padding: 0;
  min-height: 100vh;
  color: var(--text);
}

.index-page {
  margin: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  color: #fff;
  background: #050509;
  overflow: hidden;
}

.index-screen {
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: grid;
  align-items: end;
  padding: 18px 18px max(22px, env(safe-area-inset-bottom));
  background: linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.82)),
    url("../index_back.webp") center / cover no-repeat;
  overflow: hidden;
  position: relative;
}

.index-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 10px;
  max-width: 520px;
}

.index-kicker {
  margin: 0;
  width: fit-content;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  padding: 7px 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #f5d0fe;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  backdrop-filter: blur(12px);
}

.index-content h1 {
  margin: 0;
  font-size: clamp(1.85rem, 8vw, 3.4rem);
  line-height: 1.06;
  letter-spacing: -0.05em;
}

.index-subtitle {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.94rem;
  line-height: 1.42;
}

.index-signup-btn {
  position: relative;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: min(100%, 300px);
  min-height: 50px;
  margin-top: 4px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 800;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  box-shadow: 0 16px 34px rgba(236, 72, 153, 0.32);
  animation: ctaPulse 2.4s ease-in-out infinite;
}

.index-signup-btn::before,
.index-signup-btn::after {
  content: "";
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  border: 1px solid rgba(236, 72, 153, 0.45);
  animation: ctaWave 2.2s ease-out infinite;
}

.index-signup-btn::after {
  animation-delay: 0.8s;
}

.index-signup-btn span {
  position: relative;
  z-index: 1;
}

.index-login-link {
  margin: 0 0 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.92rem;
}

@media (max-height: 680px) {
  .index-screen {
    padding-top: 12px;
  }

  .index-kicker {
    font-size: 0.72rem;
    padding: 5px 10px;
  }

  .index-content h1 {
    font-size: clamp(1.55rem, 7vw, 2.5rem);
  }

  .index-subtitle {
    font-size: 0.84rem;
  }

  .index-signup-btn {
    min-height: 46px;
  }
}

.index-login-link a {
  color: #f5d0fe;
  font-weight: 800;
  text-decoration: none;
}

.phone-shell {
  width: 100%;
  min-height: 100vh;
  background: var(--white);
  border-radius: 0;
  overflow: hidden;
  box-shadow: none;
  display: grid;
  grid-template-rows: auto 1fr;
}

/* ---- Login / Sign up ---- */
.auth-page {
  background: #050509;
}

.auth-screen {
  position: relative;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.auth-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
}

.auth-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(48px);
  opacity: 0.55;
  animation: authOrbFloat 9s ease-in-out infinite;
}

.auth-orb--1 {
  width: 200px;
  height: 200px;
  top: -40px;
  left: -50px;
  background: rgba(124, 58, 237, 0.55);
}

.auth-orb--2 {
  width: 160px;
  height: 160px;
  top: 12%;
  right: -40px;
  background: rgba(236, 72, 153, 0.45);
  animation-delay: -3s;
}

.auth-orb--3 {
  width: 120px;
  height: 120px;
  bottom: 38%;
  left: 20%;
  background: rgba(129, 140, 248, 0.35);
  animation-delay: -5s;
}

.auth-ring {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: authRingSpin 22s linear infinite;
}

.auth-ring--1 {
  width: 280px;
  height: 280px;
  top: 8%;
  left: 50%;
  margin-left: -140px;
  opacity: 0.35;
}

.auth-ring--2 {
  width: 340px;
  height: 340px;
  top: 4%;
  left: 50%;
  margin-left: -170px;
  opacity: 0.2;
  animation-direction: reverse;
  animation-duration: 28s;
}

@keyframes authOrbFloat {
  0%,
  100% {
    transform: translate(0, 0) scale(1);
  }

  50% {
    transform: translate(12px, -16px) scale(1.08);
  }
}

@keyframes authRingSpin {
  to {
    transform: rotate(360deg);
  }
}

.auth-hero {
  position: relative;
  z-index: 1;
  flex-shrink: 0;
  text-align: center;
  padding: max(28px, env(safe-area-inset-top)) 22px 20px;
  animation: authHeroIn 0.65s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes authHeroIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-brand {
  margin: 0 auto 14px;
  font-size: clamp(1.65rem, 7vw, 2.1rem);
  animation: authBrandGlow 3.5s ease-in-out infinite;
}

@keyframes authBrandGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 12px rgba(168, 85, 247, 0.25));
  }

  50% {
    filter: drop-shadow(0 0 22px rgba(236, 72, 153, 0.4));
  }
}

.auth-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 auto 12px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #e9d5ff;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(167, 139, 250, 0.35);
  backdrop-filter: blur(10px);
}

.auth-kicker-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 10px rgba(74, 222, 128, 0.8);
  animation: authDotPulse 1.8s ease-in-out infinite;
}

@keyframes authDotPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }

  50% {
    opacity: 0.55;
    transform: scale(0.85);
  }
}

.auth-title {
  margin: 0;
  font-size: clamp(1.5rem, 6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  color: #f8fafc;
}

.auth-lead {
  margin: 10px auto 0;
  max-width: 300px;
  font-size: 0.88rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.95);
}

.auth-panel {
  position: relative;
  z-index: 1;
  flex: 1;
  margin-top: auto;
  padding: 22px 20px max(24px, env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: rgba(10, 10, 18, 0.94);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 -16px 48px rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(16px);
  animation: authPanelIn 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.08s both;
}

.auth-panel--signup {
  padding-bottom: max(20px, env(safe-area-inset-bottom));
}

@keyframes authPanelIn {
  from {
    opacity: 0;
    transform: translateY(28px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.auth-page .single-auth-form {
  gap: 14px;
}

.auth-page .input-wrap span {
  color: rgba(203, 213, 225, 0.88);
  font-weight: 600;
  font-size: 0.8rem;
}

.auth-page .field-with-icon {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.1);
}

.auth-page .input-wrap select {
  background: rgba(0, 0, 0, 0.28);
  border-color: rgba(255, 255, 255, 0.1);
}

.auth-page .auth-submit-btn {
  width: 100%;
  margin-top: 4px;
  border-radius: 999px;
  min-height: 50px;
  font-size: 0.95rem;
  box-shadow: 0 14px 32px rgba(236, 72, 153, 0.32);
}

.auth-page .switch-text a {
  color: #f0abfc;
}

.auth-page .message.error {
  color: #fda4af;
}

.single-auth-form {
  display: grid;
  gap: 12px;
}

.input-wrap span {
  display: block;
  font-size: 0.84rem;
  color: var(--muted);
  margin-bottom: 6px;
}

.input-wrap input,
.input-wrap select {
  width: 100%;
  border-radius: 12px;
  border: 1px solid #2a2a35;
  padding: 12px 13px;
  font-size: 0.95rem;
  background: #111118;
  color: #f8fafc;
}

.field-with-icon {
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #2a2a35;
  border-radius: 12px;
  padding: 0 10px;
}

.field-with-icon .ico {
  width: 18px;
  height: 18px;
  color: #8b91a3;
  flex: 0 0 auto;
}

.field-with-icon input,
.field-with-icon select {
  border: 0;
  padding-left: 2px;
  border-radius: 0;
  background: transparent;
}

.field-with-icon:focus-within {
  outline: 2px solid #ddd6fe;
  border-color: var(--purple-2);
}

.ico {
  width: 18px;
  height: 18px;
  display: inline-block;
  vertical-align: middle;
}

.input-wrap input:focus,
.input-wrap select:focus {
  outline: none;
}

.cta-btn {
  position: relative;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--purple-2), var(--pink-1));
  color: #fff;
  padding: 12px 16px;
  font-weight: 700;
  cursor: pointer;
}

.auth-submit-btn {
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  transition: transform 180ms ease, opacity 180ms ease, box-shadow 180ms ease;
}

.auth-submit-btn:not(:disabled):active {
  transform: scale(0.98);
}

.auth-submit-btn.is-loading {
  cursor: wait;
  opacity: 0.92;
  box-shadow: 0 14px 28px rgba(236, 72, 153, 0.26);
}

.btn-label {
  position: relative;
  z-index: 1;
}

.btn-loader {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.36);
  border-top-color: #fff;
  display: none;
  animation: spin 720ms linear infinite;
}

.auth-submit-btn.is-loading .btn-loader {
  display: inline-block;
}

.message {
  min-height: 18px;
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.message.error {
  color: #b91c1c;
}

.switch-text {
  text-align: center;
  font-size: 0.9rem;
  color: var(--muted);
}

.switch-text a {
  color: var(--purple-1);
  font-weight: 700;
  text-decoration: none;
}

.app-shell {
  grid-template-rows: auto auto auto auto 1fr auto;
  padding: 14px 14px 10px;
  gap: 12px;
}

.mini-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.mini-header h2 {
  margin: 0;
  font-size: 1.2rem;
}

.icon-lite {
  border: 0;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 10px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.hero-card {
  color: #fff;
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(135deg, var(--purple-2), var(--pink-1));
}

.hero-card p {
  margin: 0;
  opacity: 0.9;
}

.hero-card h3 {
  margin: 8px 0 0;
  font-size: 1.1rem;
}

.primary-action-card {
  border-radius: 20px;
  padding: 16px;
  color: #fff;
  background: linear-gradient(160deg, #7c3aed, #4f46e5);
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 12px;
}

.action-copy h3 {
  margin: 0;
}

.action-copy p {
  margin: 6px 0 0;
  opacity: 0.9;
}

.call-fab {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f472b6, #ef4444);
  display: grid;
  place-items: center;
  color: #fff;
  text-decoration: none;
  font-size: 1rem;
}

.call-fab .ico {
  width: 30px;
  height: 30px;
}

.quick-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.quick-stats > div {
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 10px 4px;
  text-align: center;
}

.quick-stats strong {
  display: block;
  font-size: 1.1rem;
}

.quick-stats span {
  color: var(--muted);
  font-size: 0.8rem;
}

.menu-list {
  display: grid;
  gap: 8px;
}

.menu-list a {
  background: #f8fafc;
  border: 1px solid #eceff4;
  border-radius: 12px;
  padding: 12px 14px;
  text-decoration: none;
  color: var(--text);
}

.profile-head {
  border-radius: 18px;
  padding: 18px;
  color: #fff;
  text-align: center;
  background: linear-gradient(155deg, #5b21b6, #9333ea);
}

.avatar-circle {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  font-size: 1.8rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.22);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

.profile-head h2 {
  margin: 0;
}

.profile-head p {
  margin: 4px 0 0;
  opacity: 0.88;
}

.bottom-nav {
  position: relative;
  z-index: 30;
  display: flex;
  align-items: stretch;
  justify-content: space-around;
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: rgba(7, 7, 11, 0.98);
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.22);
}

.bottom-nav a {
  position: relative;
  flex: 1;
  max-width: 120px;
  padding: 9px 16px 8px;
  text-align: center;
  text-decoration: none;
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0.01em;
  display: grid;
  justify-items: center;
  gap: 4px;
  border-radius: 0;
  transition: color 0.18s ease;
  -webkit-tap-highlight-color: transparent;
}

.bottom-nav a .ico {
  width: 22px;
  height: 22px;
  fill: currentColor;
  opacity: 0.88;
  transition: opacity 0.18s ease;
}

.bottom-nav-ico-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bottom-nav-unread {
  position: absolute;
  top: -6px;
  right: -9px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ec4899, #7c3aed);
  color: #fff;
  font-size: 0.5625rem;
  font-weight: 700;
  line-height: 13px;
  text-align: center;
  border: 2px solid #07070b;
  box-shadow: 0 2px 10px rgba(236, 72, 153, 0.45);
  pointer-events: none;
}

.bottom-nav-unread[hidden] {
  display: none !important;
}

.bottom-nav a.active {
  color: #f1f5f9;
  font-weight: 600;
  background: transparent;
  box-shadow: none;
}

.bottom-nav a.active .ico {
  opacity: 1;
}

.bottom-nav a.active::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 24px;
  height: 2px;
  border-radius: 0 0 2px 2px;
  background: linear-gradient(90deg, #67e8f9 0%, #a78bfa 48%, #f0abfc 100%);
  box-shadow: 0 0 10px rgba(167, 139, 250, 0.45);
}

.bottom-nav a:active {
  opacity: 0.72;
}

.bottom-nav.fixed {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: none;
  margin: 0;
  padding-bottom: env(safe-area-inset-bottom, 0);
  z-index: 30;
}

.call-screen {
  margin: 0;
  background: #0b1020;
  color: #fff;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
  position: fixed;
  inset: 0;
}

.call-stage {
  position: relative;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  overflow: hidden;
}

.call-stage > video {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  object-fit: cover;
  background: #111827;
}

.call-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.74), rgba(0, 0, 0, 0.08) 45%, rgba(0, 0, 0, 0.48));
  pointer-events: none;
}

.mini-self-view {
  position: absolute;
  top: 14px;
  right: 12px;
  width: 96px;
  height: 128px;
  border-radius: 14px;
  overflow: hidden;
  z-index: 3;
  border: 2px solid rgba(255, 255, 255, 0.7);
}

.mini-self-view video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #000;
}

.partner-info {
  position: absolute;
  left: 12px;
  right: 120px;
  top: 14px;
  z-index: 4;
  display: grid;
  gap: 5px;
  color: #fff;
}

.partner-name-row,
.warning-row {
  display: flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  max-width: 100%;
  border-radius: 999px;
  padding: 5px 8px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(10px);
}

.partner-name-row img {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.partner-name-row span {
  font-weight: 700;
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.warning-row {
  border-radius: 12px;
  align-items: flex-start;
  padding: 6px 8px;
}

.warning-row img {
  width: 15px;
  height: 15px;
  flex: 0 0 15px;
}

.warning-row p {
  margin: 0;
  font-size: 0.68rem;
  line-height: 1.25;
}

.call-brand-tag {
  width: fit-content;
  margin-top: 2px;
  padding: 0 0.14em 0.18em 0.04em;
}

.call-brand-tag .brand-main {
  font-size: 1.08rem;
}

.call-brand-tag .brand-live {
  font-size: 0.66rem;
}

.video-overlay {
  position: absolute;
  inset: 0;
  z-index: 20;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 12px;
  text-align: center;
  padding: 22px 18px max(26px, env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 50% 38%, rgba(168, 85, 247, 0.25), transparent 34%),
    linear-gradient(145deg, #050509 0%, #101025 48%, #210b32 100%);
  opacity: 1;
  visibility: visible;
  transition: opacity 280ms ease, visibility 280ms ease;
  overflow: hidden;
  pointer-events: auto;
}

.video-overlay.overlay-hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.connection-lines {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.connection-line {
  position: absolute;
  left: -34vw;
  width: 46vw;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent, rgba(244, 114, 182, 0.8), rgba(168, 85, 247, 0.8), transparent);
  opacity: 0;
  transform: translate3d(0, 0, 0) rotate(-18deg);
  animation: connectionWave 4.8s linear infinite;
  will-change: transform, opacity;
}

.line-1 {
  top: 16%;
  animation-delay: 0s;
}

.line-2 {
  top: 31%;
  animation-delay: 1.1s;
  animation-duration: 5.5s;
}

.line-3 {
  top: 52%;
  animation-delay: 2.1s;
  animation-duration: 4.2s;
}

.line-4 {
  top: 69%;
  animation-delay: 0.7s;
  animation-duration: 6s;
}

.line-5 {
  top: 83%;
  animation-delay: 3s;
  animation-duration: 5.2s;
}

.match-card {
  position: relative;
  z-index: 1;
  width: min(100%, 360px);
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 0 20px;
}

.match-orb {
  position: relative;
  width: 142px;
  height: 142px;
  display: grid;
  place-items: center;
}

.orb-ring,
.orb-core {
  position: absolute;
  border-radius: 50%;
}

.orb-ring {
  inset: 20px;
  border: 1px solid rgba(236, 72, 153, 0.45);
  animation: orbPulse 2.8s ease-out infinite;
  will-change: transform, opacity;
}

.ring-2 {
  animation-delay: 0.75s;
}

.ring-3 {
  animation-delay: 1.5s;
}

.orb-core {
  width: 84px;
  height: 84px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 32% 28%, rgba(255, 255, 255, 0.95), transparent 20%),
    linear-gradient(145deg, #a855f7, #ec4899);
  border: 3px solid rgba(255, 255, 255, 0.72);
  box-shadow: 0 0 30px rgba(236, 72, 153, 0.42), 0 14px 32px rgba(0, 0, 0, 0.28);
  animation: coreBreathe 2.2s ease-in-out infinite;
  will-change: transform;
}

.orb-core img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  transform: scale(1);
  transition: opacity 420ms ease, transform 420ms ease;
}

.orb-core img.is-swapping {
  opacity: 0;
  transform: scale(0.9);
}

.orb-core img.profile-image-missing {
  opacity: 0;
}

.match-card h1 {
  margin: 0;
  font-size: clamp(1.55rem, 7vw, 2.2rem);
  line-height: 1.05;
  white-space: pre-line;
}

.match-card p {
  min-height: 22px;
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.95rem;
  line-height: 1.45;
}

.soft-btn {
  position: relative;
  z-index: 1;
  border: 1px solid rgba(236, 72, 153, 0.65);
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  border-radius: 999px;
  padding: 11px 20px;
  font-weight: 800;
  box-shadow: 0 12px 26px rgba(236, 72, 153, 0.28);
}

.call-controls {
  position: absolute;
  left: 50%;
  bottom: max(26px, calc(env(safe-area-inset-bottom) + 18px));
  transform: translateX(-50%);
  width: min(94%, 420px);
  z-index: 3;
  display: grid;
  grid-template-columns: repeat(4, 58px);
  justify-content: center;
  gap: 12px;
}

.round-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, 0.9);
  color: #fff;
  padding: 0;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
}

.round-btn img {
  width: 27px;
  height: 27px;
  object-fit: contain;
}

.round-btn.icon-only span {
  display: none;
}

.round-btn.end {
  background: #ef4444;
}

.round-btn.end img {
  filter: brightness(0) invert(1);
}

.round-btn.toggled {
  background: #111827;
}

.round-btn.toggled img {
  filter: brightness(0) invert(1);
}

.reaction-fx-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}

.reaction-particle {
  position: absolute;
  line-height: 1;
  user-select: none;
  pointer-events: none;
  will-change: transform, opacity;
  filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.35));
  animation: reaction-burst-float linear forwards;
}

@keyframes reaction-burst-float {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.35) rotate(0deg);
  }
  14% {
    opacity: 1;
    transform: translate3d(calc(var(--rx-drift, 0px) * 0.25), -6vh, 0) scale(1) rotate(calc(var(--rx-spin, 0deg) * 0.2));
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--rx-drift, 0px), -38vh, 0) scale(0.72) rotate(var(--rx-spin, 0deg));
  }
}

.reaction-rail {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 8px;
  padding: 8px 7px;
  border-radius: 20px;
  background: rgba(8, 8, 18, 0.42);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
}

.call-side-stack {
  position: absolute;
  right: max(10px, env(safe-area-inset-right));
  bottom: max(118px, calc(env(safe-area-inset-bottom) + 26px + 58px + 32px));
  z-index: 5;
  display: grid;
  gap: 10px;
  justify-items: center;
}

.reaction-rail-btn {
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 14px;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 160ms ease, background 160ms ease, box-shadow 160ms ease;
  -webkit-tap-highlight-color: transparent;
}

.reaction-rail-btn:hover {
  background: rgba(255, 255, 255, 0.16);
}

.reaction-rail-btn:active {
  transform: scale(0.9);
}

.reaction-rail-btn:focus-visible {
  outline: 2px solid rgba(244, 114, 182, 0.9);
  outline-offset: 2px;
}

.reaction-rail-emoji {
  font-size: 1.35rem;
  line-height: 1;
  filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.35));
}

/* Call profile-like button */
.call-like-fx-layer {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  overflow: hidden;
}

.call-like-btn {
  position: absolute;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(299px, calc(env(safe-area-inset-bottom) + 26px + 58px + 32px + 72px + 16px + 77px + 10px));
  z-index: 5;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: opacity 180ms ease, transform 180ms ease;
}

.call-like-btn:disabled {
  cursor: default;
  pointer-events: none;
}

.call-like-btn:not(:disabled):active {
  transform: scale(0.94);
}

.call-like-icon-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(12, 12, 24, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
  overflow: visible;
  transition:
    background 320ms cubic-bezier(0.22, 1, 0.36, 1),
    border-color 320ms ease,
    box-shadow 320ms ease,
    transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.call-like-icon {
  width: 21px;
  height: 21px;
  color: rgba(255, 255, 255, 0.92);
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, 0.35));
  transition: color 280ms ease, transform 420ms cubic-bezier(0.34, 1.56, 0.64, 1);
}

.call-like-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.call-like-btn.is-bursting .call-like-icon-wrap {
  transform: scale(1.12);
  border-color: rgba(251, 113, 133, 0.95);
  background: linear-gradient(145deg, rgba(244, 63, 94, 0.92), rgba(236, 72, 153, 0.92));
  box-shadow:
    0 10px 28px rgba(244, 63, 94, 0.42),
    0 0 0 6px rgba(244, 63, 94, 0.14);
}

.call-like-btn.is-bursting .call-like-icon {
  transform: scale(1.08);
  color: #fff;
}

.call-like-btn.is-liked .call-like-icon-wrap {
  border-color: rgba(251, 113, 133, 0.88);
  background: linear-gradient(145deg, rgba(225, 29, 72, 0.94), rgba(244, 63, 94, 0.94));
  box-shadow: 0 8px 22px rgba(244, 63, 94, 0.35);
}

.call-like-btn.is-liked .call-like-icon {
  color: #fff;
  animation: callLikeHeartSettle 520ms cubic-bezier(0.22, 1, 0.36, 1);
}

.call-like-ring {
  position: absolute;
  inset: -3px;
  border-radius: 16px;
  border: 2px solid rgba(251, 113, 133, 0.75);
  animation: callLikeRing 720ms cubic-bezier(0.22, 1, 0.36, 1) forwards;
  pointer-events: none;
}

.call-like-particle {
  position: absolute;
  margin-left: -8px;
  margin-top: -8px;
  color: #fb7185;
  filter: drop-shadow(0 2px 6px rgba(244, 63, 94, 0.45));
  animation: callLikeParticle 1.4s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  opacity: 0;
}

.call-like-particle svg {
  width: 100%;
  height: 100%;
  display: block;
}

@keyframes callLikeRing {
  0% {
    opacity: 0.85;
    transform: scale(0.82);
  }
  100% {
    opacity: 0;
    transform: scale(1.55);
  }
}

@keyframes callLikeParticle {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.4) rotate(0deg);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--like-drift-x, 0px), var(--like-drift-y, -90px), 0)
      scale(0.85)
      rotate(var(--like-spin, 0deg));
  }
}

@keyframes callLikeHeartSettle {
  0% {
    transform: scale(0.72);
  }
  55% {
    transform: scale(1.18);
  }
  100% {
    transform: scale(1);
  }
}

.call-chat-toast-stack {
  position: absolute;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(392px, calc(env(safe-area-inset-bottom) + 26px + 58px + 32px + 72px + 16px + 77px + 10px + 77px + 16px));
  z-index: 5;
  width: min(228px, calc(100vw - 108px));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  pointer-events: none;
  transition: opacity 200ms ease, visibility 200ms ease;
}

.call-chat-toast-stack.is-visible {
  visibility: visible;
  opacity: 1;
}

.call-chat-toast-stack:not(.is-visible) {
  visibility: hidden;
  opacity: 0;
}

.call-chat-toast-item {
  display: flex;
  max-width: 100%;
  justify-content: flex-start;
  animation: partnerToastIn 220ms cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes partnerToastIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.call-chat-toast-bubble {
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 10px;
  font-size: 0.7rem;
  font-weight: 600;
  line-height: 1.22;
  word-break: break-word;
  overflow-wrap: anywhere;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.45);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
  background: rgba(12, 12, 24, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #f4f4f5;
  border-bottom-left-radius: 4px;
  backdrop-filter: blur(8px);
}

.chat-toggle-btn {
  position: absolute;
  left: max(14px, env(safe-area-inset-left));
  bottom: max(212px, calc(env(safe-area-inset-bottom) + 26px + 58px + 32px + 72px + 16px));
  z-index: 5;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.chat-toggle-btn:disabled {
  opacity: 0.38;
  pointer-events: none;
}

.chat-toggle-icon {
  position: relative;
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(12, 12, 24, 0.55);
  border: 2px solid rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.28);
}

.chat-toggle-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.chat-toggle-badge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ec4899, #a855f7);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 800;
  line-height: 18px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(236, 72, 153, 0.45);
}

.call-chat-panel {
  position: absolute;
  left: max(10px, env(safe-area-inset-left));
  bottom: max(118px, calc(env(safe-area-inset-bottom) + 26px + 58px + 36px));
  z-index: 7;
  width: min(300px, calc(100vw - 120px));
  max-height: min(34vh, 280px);
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  border-radius: 18px;
  overflow: hidden;
  background: rgba(8, 8, 18, 0.58);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(16px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.38);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px) scale(0.96);
  transition: opacity 220ms ease, transform 220ms ease, visibility 220ms ease;
  pointer-events: none;
}

.call-chat-panel.is-open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.call-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.call-chat-title {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 800;
}

.call-chat-sub {
  margin: 2px 0 0;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.62);
}

.call-chat-close {
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
}

.call-chat-messages {
  min-height: 72px;
  max-height: min(22vh, 180px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: 10px 10px 6px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  mask-image: linear-gradient(to bottom, transparent 0, #000 10px, #000 calc(100% - 8px), transparent 100%);
}

.chat-msg-row {
  display: flex;
  flex-direction: column;
  gap: 3px;
  max-width: 92%;
}

.chat-msg-row.is-in {
  align-self: flex-start;
  align-items: flex-start;
}

.chat-msg-row.is-out {
  align-self: flex-end;
  align-items: flex-end;
}

.chat-msg-meta {
  font-size: 0.62rem;
  color: rgba(255, 255, 255, 0.5);
  padding: 0 4px;
}

.chat-msg-bubble {
  padding: 8px 11px;
  border-radius: 14px;
  font-size: 0.82rem;
  line-height: 1.32;
  word-break: break-word;
  overflow-wrap: anywhere;
}

.chat-msg-row.is-out .chat-msg-bubble {
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.chat-msg-row.is-in .chat-msg-bubble {
  background: rgba(255, 255, 255, 0.14);
  color: #f4f4f5;
  border-bottom-left-radius: 4px;
}

.call-chat-error {
  min-height: 0;
  margin: 0;
  padding: 0 12px;
  font-size: 0.74rem;
  color: #fda4af;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  transition: max-height 180ms ease, opacity 180ms ease, padding 180ms ease;
}

.call-chat-error.is-visible {
  padding: 4px 12px 6px;
  max-height: 48px;
  opacity: 1;
}

.call-chat-form {
  display: grid;
  grid-template-columns: 1fr 42px;
  gap: 8px;
  padding: 8px 10px 10px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.call-chat-form.is-disabled {
  opacity: 0.55;
}

.call-chat-form input {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 0.88rem;
}

.call-chat-form input::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.call-chat-form input:focus {
  outline: 2px solid rgba(168, 85, 247, 0.65);
  outline-offset: 1px;
}

.call-chat-send {
  border: 0;
  border-radius: 12px;
  background: linear-gradient(135deg, #a855f7, #ec4899);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
}

.call-chat-send:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.mask-trigger-btn {
  position: absolute;
  left: max(14px, env(safe-area-inset-left));
  /* Above call-controls row (~58px) + bottom offset (~26px) + gap */
  bottom: max(118px, calc(env(safe-area-inset-bottom) + 26px + 58px + 32px));
  z-index: 4;
  display: grid;
  justify-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: transform 180ms ease, opacity 180ms ease;
}

.mask-trigger-btn:disabled {
  opacity: 0.38;
  cursor: not-allowed;
  pointer-events: none;
}

.mask-trigger-btn:not(:disabled):active {
  transform: scale(0.94);
}

.mask-trigger-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, rgba(168, 85, 247, 0.92), rgba(236, 72, 153, 0.92));
  border: 2px solid rgba(255, 255, 255, 0.82);
  box-shadow:
    0 10px 24px rgba(124, 58, 237, 0.35),
    0 4px 12px rgba(0, 0, 0, 0.28);
}

.mask-trigger-btn.is-active .mask-trigger-icon-wrap {
  box-shadow:
    0 0 0 3px rgba(244, 114, 182, 0.55),
    0 10px 24px rgba(124, 58, 237, 0.45);
}

.mask-trigger-icon-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mask-trigger-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.65);
}

.mask-sheet {
  position: fixed;
  inset: 0;
  z-index: 40;
  display: grid;
  align-items: end;
  pointer-events: none;
  visibility: hidden;
}

.mask-sheet.is-open {
  pointer-events: auto;
  visibility: visible;
}

.mask-sheet-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(5, 5, 12, 0.55);
  backdrop-filter: blur(6px);
  opacity: 0;
  transition: opacity 280ms ease;
  cursor: pointer;
}

.mask-sheet.is-open .mask-sheet-backdrop {
  opacity: 1;
}

.mask-sheet-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-height: min(72vh, 520px);
  border-radius: 22px 22px 0 0;
  padding: 10px 16px max(22px, calc(env(safe-area-inset-bottom) + 16px));
  background:
    radial-gradient(circle at 88% 0%, rgba(236, 72, 153, 0.22), transparent 42%),
    linear-gradient(165deg, #141428 0%, #0c0c18 55%, #1a0b28 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 -18px 48px rgba(0, 0, 0, 0.45);
  transform: translateY(110%);
  transition: transform 320ms cubic-bezier(0.22, 1, 0.36, 1);
}

.mask-sheet.is-open .mask-sheet-panel {
  transform: translateY(0);
}

.mask-sheet-handle {
  display: block;
  width: 42px;
  height: 4px;
  margin: 2px auto 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.28);
}

.mask-sheet-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.mask-sheet-header h2 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.mask-sheet-close {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}

.mask-sheet-status {
  min-height: 18px;
  margin: 0 0 10px;
  font-size: 0.82rem;
  color: rgba(244, 114, 182, 0.95);
}

.mask-sheet-grid {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: 84px;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  padding: 4px 2px 8px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.mask-option {
  scroll-snap-align: start;
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #e4e4e7;
  cursor: pointer;
}

.mask-option-thumb {
  width: 72px;
  height: 72px;
  border-radius: 18px;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid rgba(255, 255, 255, 0.14);
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.mask-option.is-selected .mask-option-thumb {
  border-color: rgba(244, 114, 182, 0.95);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.35);
  transform: scale(1.04);
}

.mask-option-thumb img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 6px;
}

.mask-option-none {
  background: linear-gradient(145deg, rgba(63, 63, 70, 0.9), rgba(24, 24, 27, 0.95));
}

.mask-none-glyph {
  font-size: 1.8rem;
  font-weight: 300;
  line-height: 1;
  opacity: 0.85;
}

.mask-option-label {
  font-size: 0.74rem;
  font-weight: 700;
  text-align: center;
  max-width: 84px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.mask-sheet-open {
  overflow: hidden;
}

.hidden {
  display: none !important;
}

.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
  padding: 0 !important;
  margin: -1px !important;
}

.full-screen-app {
  min-height: 100vh;
  background: #050509;
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0) + 12px);
  color: #f8fafc;
}

.home-hero {
  min-height: 48vh;
  background: transparent;
  color: #fff;
  position: relative;
  overflow: hidden;
  padding: 16px 16px 28px;
}

.full-screen-app:has(.home-hero) {
  background: linear-gradient(rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.78)),
    url("../back.webp") center / cover no-repeat fixed;
}

.home-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.home-topbar h2 {
  margin: 0;
}

.brand-logo,
.call-brand-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 1px;
  width: fit-content;
  padding: 0 0.14em 0.18em 0.04em;
  font-family: "Segoe UI Black", "Trebuchet MS", "Segoe UI", sans-serif;
  font-weight: 900;
  letter-spacing: -0.035em;
  isolation: isolate;
  overflow: visible;
}

.brand-main {
  position: relative;
  display: inline-block;
  padding: 0 0.1em 0 0.02em;
  font-size: 1.28em;
  line-height: 1.24;
  background: linear-gradient(135deg, #67e8f9 0%, #a78bfa 48%, #f0abfc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow: 0 10px 28px rgba(103, 232, 249, 0.24);
}

.brand-live {
  margin-bottom: 0;
  padding: 0;
  background: linear-gradient(135deg, #ff2d75, #f97316);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: 0.62em;
  line-height: 1;
  letter-spacing: -0.03em;
}

.index-brand {
  margin-bottom: 6px;
  font-size: clamp(1.72rem, 10vw, 3.55rem);
}

/* .auth-brand — see Login / Sign up section */

.profile-brand {
  margin: 0 auto 18px;
  font-size: 1.65rem;
}

.home-topbar .brand-logo {
  font-size: 1.16rem;
}

.topbar-spacer {
  width: 40px;
  height: 40px;
}

.logout-btn {
  border: 0;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ef4444;
  color: #fff;
}

.hero-content {
  margin-top: 30px;
  max-width: 320px;
}

.hero-content p {
  margin: 0;
  opacity: 0.9;
}

.hero-content h1 {
  margin: 10px 0 0;
  font-size: clamp(1.8rem, 5.5vw, 2.5rem);
  line-height: 1.18;
}

.floating-bubbles::before,
.floating-bubbles::after {
  content: none;
}

.floating-bubbles::before {
  width: 150px;
  height: 150px;
  right: -30px;
  top: 50px;
}

.floating-bubbles::after {
  width: 90px;
  height: 90px;
  left: -24px;
  bottom: 14px;
  animation-delay: 1s;
}

.home-main {
  min-height: auto;
  display: grid;
  place-content: start center;
  text-align: center;
  gap: 16px;
  padding: 0 20px 20px;
  margin-top: -88px;
  overflow: visible;
}

/* ---- Home: room picker (display + local persistence only) ---- */
.room-picker {
  width: 100%;
  max-width: 420px;
  margin: 0 auto 10px;
  text-align: left;
  overflow: visible;
}

.room-picker-head {
  text-align: center;
  margin-bottom: 10px;
}

.room-picker-title {
  margin: 0;
  font-size: 1.06rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  background: linear-gradient(135deg, #e9d5ff 0%, #fcd34d 42%, #f472b6 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.room-picker-sub {
  margin: 4px 0 0;
  font-size: 0.78rem;
  line-height: 1.35;
  color: rgba(248, 250, 252, 0.56);
}

.room-picker-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  overflow: visible;
}

.room-picker-cell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  min-width: 0;
  text-align: center;
  overflow: visible;
}

.room-picker-cell > .room-option {
  width: 100%;
}

@media (max-width: 360px) {
  .room-picker-grid {
    gap: 8px;
  }

  .room-option-inner {
    padding: 10px 6px !important;
  }

  .room-avatars--pair img {
    width: 46px !important;
    height: 46px !important;
  }

  .room-avatars--single img {
    width: 50px !important;
    height: 50px !important;
  }

  .room-avatars--pair img:last-child {
    margin-left: -18px !important;
  }

}

.room-option {
  cursor: pointer;
  display: block;
  margin: 0;
}

.room-option-inner {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  padding: 11px 9px;
  border-radius: 12px;
  border: 1.5px solid rgba(148, 163, 184, 0.2);
  background: linear-gradient(155deg, rgba(255, 255, 255, 0.08), rgba(15, 23, 42, 0.48));
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  height: auto;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.room-option:focus-within .room-option-inner {
  border-color: rgba(167, 139, 250, 0.55);
  box-shadow:
    0 0 0 2px rgba(124, 58, 237, 0.38),
    0 14px 32px rgba(0, 0, 0, 0.35);
}

.room-option:hover .room-option-inner {
  border-color: rgba(167, 139, 250, 0.35);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(124, 58, 237, 0.22);
}

.room-option:has(input:checked) .room-option-inner {
  border-color: rgba(236, 72, 153, 0.7);
  background: linear-gradient(160deg, rgba(236, 72, 153, 0.14), rgba(124, 58, 237, 0.12));
  box-shadow:
    0 0 0 1.5px rgba(236, 72, 153, 0.45),
    0 16px 38px rgba(124, 58, 237, 0.28);
}

.room-option:has(input:checked) .room-option-inner::after {
  content: "✓";
  position: absolute;
  top: 7px;
  left: 7px;
  z-index: 6;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.5rem;
  font-weight: 800;
  line-height: 1;
  color: #fff;
  background: linear-gradient(145deg, #ec4899, #a855f7);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow:
    0 1px 6px rgba(236, 72, 153, 0.45),
    0 0 0 1.5px rgba(15, 23, 42, 0.35);
  pointer-events: none;
  animation: roomSelectedTick 0.22s cubic-bezier(0.22, 1, 0.36, 1);
}

@keyframes roomSelectedTick {
  from {
    opacity: 0;
    transform: scale(0.5);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.room-option-art {
  display: flex;
  align-items: center;
  justify-content: center;
}

.room-avatars {
  display: flex;
  align-items: center;
  justify-content: center;
}

.room-avatars--single img {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(15, 23, 42, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
  display: block;
}

.room-avatars--pair img {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid rgba(15, 23, 42, 0.92);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.4);
}

.room-avatars--pair img:first-child {
  z-index: 1;
}

.room-avatars--pair img:last-child {
  margin-left: -22px;
  z-index: 2;
}

.room-option-meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 2px;
}

.room-option-name {
  font-weight: 800;
  font-size: 0.87rem;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.room-option-desc {
  font-size: 0.625rem;
  line-height: 1.25;
  color: rgba(248, 250, 252, 0.42);
}

.room-live-count {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  align-self: center;
  width: auto;
  max-width: 100%;
  gap: 0.5em;
  margin: 0;
  padding: 0;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: normal;
  color: rgba(148, 163, 184, 0.9);
}

.room-live-odo-mount {
  flex-shrink: 0;
  display: block;
  line-height: 1;
}

/* HubSpot odometer.js — inner .odometer node gets theme classes from the lib */
.room-live-odo-mount .odometer {
  min-width: 0;
  padding: 0 !important;
  margin: 0;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  background: transparent !important;
}

.room-live-count .odometer-digit,
.room-live-count .odometer-formatting-mark {
  color: rgba(226, 232, 240, 0.96) !important;
  background: transparent !important;
}

.room-live-count .odometer-digit .odometer-digit-spacer {
  visibility: hidden;
}

.room-live-suffix {
  font-weight: 600;
  font-size: inherit;
  color: rgba(148, 163, 184, 0.78);
  text-transform: lowercase;
  line-height: 1.2;
  flex-shrink: 0;
  margin: 0;
  padding: 0;
}

.room-live-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  flex-shrink: 0;
  margin: 0;
  background: #34d399;
  box-shadow: 0 0 8px rgba(52, 211, 153, 0.5);
  animation: roomLiveDotPulse 2.2s ease-in-out infinite;
}

@keyframes roomLiveDotPulse {
  0%,
  100% {
    opacity: 0.82;
    transform: scale(1);
  }

  50% {
    opacity: 1;
    transform: scale(1.12);
  }
}

/* —— Premium room tiles (Female / Both) —— */
.room-option-inner--premium {
  overflow: hidden;
  border-color: transparent;
}

.room-option-premium-lock .room-option-inner--premium {
  background: linear-gradient(165deg, rgba(88, 28, 135, 0.35), rgba(15, 23, 42, 0.55));
  box-shadow:
    0 10px 28px rgba(124, 58, 237, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.room-option-inner--both.room-option-inner--premium {
  background: linear-gradient(165deg, rgba(76, 29, 149, 0.32), rgba(15, 23, 42, 0.55));
}

.room-option-premium-lock:hover .room-option-inner {
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 16px 36px rgba(236, 72, 153, 0.32),
    0 0 0 1px rgba(244, 114, 182, 0.35);
}

.room-option-premium-lock {
  cursor: pointer;
}

.room-premium-fx {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.room-premium-orbit {
  position: absolute;
  inset: -50%;
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(236, 72, 153, 0.85) 55deg,
    rgba(250, 204, 21, 0.9) 95deg,
    rgba(168, 85, 247, 0.85) 140deg,
    transparent 200deg,
    transparent 360deg
  );
  animation: roomPremiumOrbit 3.8s linear infinite;
  opacity: 0.55;
}

.room-option-inner--both .room-premium-orbit {
  background: conic-gradient(
    from 0deg,
    transparent 0deg,
    rgba(129, 140, 248, 0.95) 50deg,
    rgba(167, 139, 250, 0.9) 100deg,
    rgba(244, 114, 182, 0.85) 145deg,
    transparent 210deg,
    transparent 360deg
  );
}

@keyframes roomPremiumOrbit {
  to {
    transform: rotate(360deg);
  }
}

.room-premium-fx::after {
  content: "";
  position: absolute;
  inset: 2px;
  border-radius: calc(12px - 2px);
  background: linear-gradient(165deg, rgba(30, 15, 45, 0.92), rgba(15, 23, 42, 0.88));
  z-index: 1;
}

.room-premium-sparkle {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.9);
  z-index: 2;
  animation: roomPremiumSparkle 2.4s ease-in-out infinite;
}

.room-premium-sparkle--a {
  top: 18%;
  left: 12%;
  animation-delay: 0s;
}

.room-premium-sparkle--b {
  top: 62%;
  right: 14%;
  animation-delay: 0.8s;
}

.room-premium-sparkle--c {
  top: 38%;
  right: 22%;
  width: 4px;
  height: 4px;
  animation-delay: 1.5s;
}

@keyframes roomPremiumSparkle {
  0%,
  100% {
    opacity: 0.15;
    transform: scale(0.6);
  }

  50% {
    opacity: 1;
    transform: scale(1.15);
  }
}

.room-premium-tag {
  position: absolute;
  top: 4px;
  right: 4px;
  left: auto;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 2px 5px;
  border-radius: 999px;
  font-size: 0.42rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b, #ec4899 45%, #a855f7);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 1px 6px rgba(236, 72, 153, 0.38);
  overflow: hidden;
  white-space: nowrap;
  pointer-events: none;
}

.room-premium-tag .room-premium-crown {
  width: 8px;
  height: 8px;
}

.room-premium-tag--hot {
  background: linear-gradient(135deg, #fb7185, #e879f9 40%, #818cf8);
  animation: roomPremiumTagPulse 2.6s ease-in-out infinite;
}

@keyframes roomPremiumTagPulse {
  0%,
  100% {
    box-shadow:
      0 4px 14px rgba(236, 72, 153, 0.45),
      0 0 16px rgba(168, 85, 247, 0.3);
  }

  50% {
    box-shadow:
      0 6px 20px rgba(244, 114, 182, 0.55),
      0 0 28px rgba(129, 140, 248, 0.45);
  }
}

.room-premium-tag-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255, 255, 255, 0.55) 48%,
    transparent 56%
  );
  transform: translateX(-120%);
  animation: roomPremiumTagShine 2.8s ease-in-out infinite;
}

@keyframes roomPremiumTagShine {
  0%,
  35% {
    transform: translateX(-120%);
  }

  55%,
  100% {
    transform: translateX(120%);
  }
}

.room-premium-crown {
  flex-shrink: 0;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.25));
}

.room-option-inner--premium .room-option-art {
  position: relative;
}

.room-avatar-highlight {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.room-avatar-highlight--female {
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(145deg, #fce7f3, #f472b6 42%, #ec4899);
  box-shadow: 0 0 12px rgba(236, 72, 153, 0.32);
}

.room-avatar-highlight--female .room-avatars--single img {
  width: 50px;
  height: 50px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.room-avatar-highlight--both {
  padding: 2px 3px;
  border-radius: 999px;
  background: linear-gradient(118deg, #818cf8, #c084fc 48%, #f472b6);
  box-shadow: 0 0 12px rgba(129, 140, 248, 0.3);
}

.room-avatar-highlight--both .room-avatars--pair img {
  width: 44px;
  height: 44px;
  border: 2px solid rgba(255, 255, 255, 0.92);
  box-shadow: none;
}

.room-avatar-highlight--both .room-avatars--pair img:last-child {
  margin-left: -18px;
}

.room-avatar-highlight .room-premium-lock-ring {
  position: absolute;
  right: -2px;
  bottom: -5px;
  z-index: 4;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, #a855f7, #ec4899);
  border: 2px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 3px 10px rgba(124, 58, 237, 0.45);
  animation: roomPremiumLockPulse 2.2s ease-in-out infinite;
}

.room-avatar-highlight--both .room-premium-lock-ring {
  right: 4px;
  bottom: -4px;
}

@keyframes roomPremiumLockPulse {
  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.08);
  }
}

.room-option-premium-lock .room-option-art,
.room-option-premium-lock .room-option-meta {
  position: relative;
  z-index: 3;
}

.room-option-premium-lock .room-option-name {
  color: #f8fafc;
}

.room-option-premium-lock .room-option-desc {
  color: rgba(251, 207, 232, 0.72);
}

.room-option-premium-live .room-option-inner {
  border-color: rgba(251, 191, 36, 0.45);
  box-shadow:
    0 0 0 1px rgba(251, 191, 36, 0.2),
    0 12px 28px rgba(124, 58, 237, 0.2);
}

.room-option-premium-live .room-option-art,
.room-option-premium-live .room-option-meta {
  position: relative;
  z-index: 3;
}

.room-option-premium-live .room-option-name {
  color: #f8fafc;
}

.room-option-premium-live .room-option-desc {
  color: rgba(248, 250, 252, 0.82);
}

.room-option-premium-live:has(input:checked) .room-option-inner {
  border-color: rgba(251, 191, 36, 0.75);
}

@media (prefers-reduced-motion: reduce) {
  .room-premium-orbit,
  .room-premium-sparkle,
  .room-premium-tag-shine,
  .room-premium-tag--hot,
  .room-premium-lock-ring,
  .room-option:has(input:checked) .room-option-inner::after {
    animation: none !important;
  }
}

.video-start-button {
  width: 132px;
  height: 132px;
  margin: 0 auto;
  position: relative;
  display: grid;
  place-items: center;
  text-decoration: none;
}

.video-start-button.is-busy {
  opacity: 0.72;
  pointer-events: none;
}

.video-icon-wrap {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: linear-gradient(145deg, #7c3aed, #ec4899);
  display: grid;
  place-items: center;
  z-index: 4;
  box-shadow: 0 10px 24px rgba(124, 58, 237, 0.38);
}

.video-icon-wrap img {
  width: 48px;
  height: 48px;
  filter: brightness(0) invert(1);
}

.wave {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(124, 58, 237, 0.35);
  inset: 22px;
  animation: wave 2.8s infinite ease-out;
}

.wave2 {
  animation-delay: 0.8s;
}

.wave3 {
  animation-delay: 1.6s;
}

.start-caption {
  margin: 0;
  color: #f8fafc;
  font-weight: 600;
}

/* ---- Profile page ---- */
.profile-page {
  background:
    radial-gradient(ellipse 120% 80% at 50% -20%, rgba(124, 58, 237, 0.28), transparent 55%),
    radial-gradient(ellipse 90% 50% at 100% 0%, rgba(236, 72, 153, 0.12), transparent 50%),
    #050509;
}

.profile-top {
  padding: 16px 20px 0;
  text-align: center;
}

.profile-page .profile-brand {
  margin: 0 auto;
  font-size: 1.5rem;
}

.profile-identity {
  padding: 10px 20px 22px;
}

.profile-identity-row {
  display: flex;
  align-items: center;
  gap: 16px;
  max-width: 480px;
  margin: 0 auto;
}

.profile-avatar-block {
  position: relative;
  flex-shrink: 0;
  width: fit-content;
  margin: 0;
}

.profile-avatar-ring {
  padding: 0;
  border-radius: 50%;
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.22);
}

.profile-avatar-ring--clickable {
  position: relative;
  display: block;
  margin: 0;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.profile-avatar-ring--clickable.is-uploading {
  pointer-events: none;
}

.profile-avatar-ring--clickable:hover,
.profile-avatar-ring--clickable:focus-visible {
  border-color: rgba(251, 191, 36, 0.55);
  box-shadow: 0 8px 24px rgba(251, 191, 36, 0.2);
  outline: none;
}

.profile-avatar-loader {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.profile-avatar-loader::after {
  content: "";
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.22);
  border-top-color: #fff;
  animation: profileAvatarSpin 0.65s linear infinite;
}

.profile-avatar.is-loading .profile-avatar-loader {
  display: flex;
}

.profile-avatar-ring--clickable.is-uploading .profile-avatar-camera {
  opacity: 0;
}

@keyframes profileAvatarSpin {
  to {
    transform: rotate(360deg);
  }
}

.profile-avatar-camera {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #f8fafc;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border: 2px solid rgba(15, 23, 42, 0.9);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.profile-avatar-ring--clickable[data-has-avatar="1"] .profile-avatar-camera {
  display: none;
}

.profile-avatar-input {
  position: absolute;
  width: 0;
  height: 0;
  opacity: 0;
  pointer-events: none;
}

.profile-avatar-message {
  margin: 10px auto 0;
  max-width: 480px;
  text-align: center;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.95);
  min-height: 1.2em;
}

.profile-avatar-message.is-error {
  color: #fca5a5;
}

.profile-avatar {
  width: 76px;
  height: 76px;
  border-radius: 50%;
  position: relative;
  display: grid;
  place-items: center;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid transparent;
  overflow: hidden;
}

.profile-avatar.has-photo,
.profile-avatar:has(img) {
  background: #0f172a;
}

.profile-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-avatar--default img {
  object-fit: cover;
  padding: 0;
  background: transparent;
  filter: brightness(0) invert(1);
  opacity: 0.82;
}

.avatar-view-dialog {
  margin: 0;
  padding: 0;
  border: 0;
  width: 100%;
  max-width: none;
  height: 100%;
  max-height: none;
  background: transparent;
  color: #f8fafc;
  overflow: hidden;
}

.avatar-view-dialog::backdrop {
  background: rgba(8, 10, 20, 0.72);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
}

.avatar-view-dialog[open] {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 28px;
  padding: max(16px, env(safe-area-inset-top)) 20px max(24px, env(safe-area-inset-bottom));
  box-sizing: border-box;
}

html.avatar-view-open {
  overflow: hidden;
}

.avatar-view-close {
  position: fixed;
  top: max(14px, env(safe-area-inset-top));
  right: max(14px, env(safe-area-inset-right));
  z-index: 2;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.55);
  color: #f8fafc;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  backdrop-filter: blur(10px);
  -webkit-tap-highlight-color: transparent;
}

.avatar-view-close:hover,
.avatar-view-close:focus-visible {
  border-color: rgba(255, 255, 255, 0.28);
  outline: none;
}

.avatar-view-stage {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 1 auto;
}

.avatar-view-photo {
  width: min(72vw, 320px);
  height: min(72vw, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid rgba(255, 255, 255, 0.18);
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06);
}

.avatar-view-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  max-width: min(92vw, 420px);
}

.avatar-view-update {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 12px 20px;
  border-radius: 999px;
  border: 1px solid rgba(167, 139, 250, 0.45);
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.35), rgba(139, 92, 246, 0.28));
  color: #f8fafc;
  font-size: 0.92rem;
  font-weight: 600;
  letter-spacing: -0.02em;
  cursor: pointer;
  box-shadow: 0 10px 28px rgba(99, 102, 241, 0.25);
  backdrop-filter: blur(12px);
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease, transform 0.15s ease;
  flex: 1 1 auto;
  min-width: 0;
}

.avatar-view-update:hover,
.avatar-view-update:focus-visible {
  border-color: rgba(196, 181, 253, 0.7);
  outline: none;
}

.avatar-view-update:active {
  transform: scale(0.98);
}

.avatar-view-update:disabled {
  opacity: 0.6;
  pointer-events: none;
}

.avatar-view-update-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  flex-shrink: 0;
  filter: brightness(0) saturate(100%) invert(82%) sepia(18%) saturate(1200%) hue-rotate(210deg)
    brightness(104%) contrast(101%);
}

.avatar-view-delete {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(251, 113, 133, 0.45);
  background: linear-gradient(135deg, rgba(244, 63, 94, 0.32), rgba(225, 29, 72, 0.22));
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(244, 63, 94, 0.22);
  backdrop-filter: blur(12px);
  -webkit-tap-highlight-color: transparent;
  transition: border-color 0.2s ease, transform 0.15s ease;
}

.avatar-view-delete:hover,
.avatar-view-delete:focus-visible {
  border-color: rgba(253, 164, 175, 0.75);
  outline: none;
}

.avatar-view-delete:active {
  transform: scale(0.98);
}

.avatar-view-delete:disabled {
  opacity: 0.6;
  pointer-events: none;
}

.avatar-view-delete-icon {
  width: 22px;
  height: 22px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(62%) sepia(52%) saturate(1800%) hue-rotate(314deg)
    brightness(102%) contrast(98%);
}

.profile-identity-info {
  flex: 1;
  min-width: 0;
  text-align: left;
}

.profile-display-name {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f8fafc;
  line-height: 1.25;
  word-break: break-word;
}

.profile-meta-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
  margin-top: 8px;
}

.profile-display-email {
  margin: 0;
  flex: 1;
  min-width: 0;
  font-size: 0.76rem;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.95);
  word-break: break-all;
  line-height: 1.35;
}

.profile-chip--below {
  margin-top: 8px;
}

.profile-chip {
  display: inline-flex;
  align-items: center;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.profile-chip--gender {
  color: #e9d5ff;
  background: rgba(124, 58, 237, 0.22);
  border: 1px solid rgba(167, 139, 250, 0.35);
}

.profile-chip--premium {
  color: #fef3c7;
  background: rgba(251, 191, 36, 0.14);
  border: 1px solid rgba(251, 191, 36, 0.38);
}

.profile-menu {
  padding: 0 18px 12px;
  max-width: 480px;
  margin: 0 auto;
}

.profile-menu-heading {
  margin: 0 0 10px 4px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
}

.profile-menu-list {
  display: grid;
  gap: 10px;
}

.profile-menu-card {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 14px 14px;
  border-radius: 16px;
  text-decoration: none;
  text-align: left;
  color: #f8fafc;
  background: rgba(12, 12, 22, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.22);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
  -webkit-tap-highlight-color: transparent;
  font: inherit;
  cursor: pointer;
}

.profile-menu-card:hover {
  border-color: rgba(167, 139, 250, 0.35);
  background: rgba(18, 18, 32, 0.88);
}

.profile-menu-card:active {
  transform: scale(0.99);
}

.profile-menu-card--premium {
  border-color: rgba(251, 191, 36, 0.28);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(12, 12, 22, 0.78));
}

.profile-menu-card--logout .profile-menu-title {
  color: #fda4af;
}

.profile-menu-card--logout {
  border-color: rgba(244, 63, 94, 0.22);
  background: rgba(244, 63, 94, 0.08);
}

.profile-menu-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.profile-menu-icon img {
  width: 22px;
  height: 22px;
  object-fit: contain;
}

.profile-menu-icon--premium {
  background: linear-gradient(145deg, rgba(251, 191, 36, 0.35), rgba(236, 72, 153, 0.2));
}

.profile-menu-icon--premium img {
  filter: none;
}

.profile-menu-icon--privacy {
  background: rgba(124, 58, 237, 0.22);
}

.profile-menu-icon--privacy img {
  filter: brightness(0) invert(1);
  opacity: 0.92;
}

.profile-menu-icon--contact {
  background: rgba(56, 189, 248, 0.16);
}

.profile-menu-icon--contact img {
  filter: brightness(0) saturate(100%) invert(78%) sepia(42%) saturate(1800%) hue-rotate(169deg)
    brightness(105%) contrast(101%);
}

.profile-menu-icon--logout {
  background: rgba(244, 63, 94, 0.18);
}

.profile-menu-icon--logout img {
  filter: brightness(0) saturate(100%) invert(55%) sepia(90%) saturate(1200%) hue-rotate(314deg)
    brightness(100%) contrast(96%);
}

.profile-menu-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.profile-menu-title {
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: -0.01em;
}

.profile-menu-sub {
  font-size: 0.72rem;
  font-weight: 500;
  color: rgba(148, 163, 184, 0.92);
  line-height: 1.3;
}

.profile-menu-chevron {
  font-size: 1.35rem;
  line-height: 1;
  color: rgba(148, 163, 184, 0.55);
  font-weight: 300;
}

.confirm-dialog--profile {
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(12, 12, 22, 0.96);
  backdrop-filter: blur(16px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.5);
}

/* ---- Profile (Instagram-style) ---- */
.profile-page--ig {
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0) + 8px);
}

.profile-ig-topbar {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: calc(12px + env(safe-area-inset-top, 0)) 16px 8px;
  max-width: 520px;
  margin: 0 auto;
}

.profile-ig-handle {
  grid-column: 2;
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
  text-align: center;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}

.profile-ig-menu-btn {
  grid-column: 3;
  justify-self: end;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 12px;
  color: #f8fafc;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.profile-ig-menu-btn .ico {
  width: 24px;
  height: 24px;
}

.profile-ig-menu-btn:active {
  background: rgba(255, 255, 255, 0.08);
}

.profile-ig-body {
  padding: 8px 18px 24px;
  max-width: 520px;
  margin: 0 auto;
}

.profile-ig-row {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-bottom: 16px;
}

.profile-ig-row .profile-avatar-block {
  flex-shrink: 0;
  margin: 0;
}

.profile-ig-name-col {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}

.profile-ig-bio--main {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: none;
  background: transparent;
  text-align: left;
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.profile-ig-bio--main .profile-ig-bio-text {
  display: block;
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.45;
  color: #f1f5f9;
  white-space: pre-wrap;
  word-break: break-word;
}

.profile-ig-bio--main.profile-ig-bio--empty .profile-ig-bio-text {
  font-size: 1rem;
  font-weight: 700;
  background: linear-gradient(120deg, #c4b5fd 0%, #f9a8d4 50%, #fde68a 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.profile-avatar--ig {
  width: 86px;
  height: 86px;
  font-size: 1.9rem;
}

.profile-ig-name-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 7px;
  flex-wrap: nowrap;
  min-width: 0;
  width: 100%;
}

.profile-ig-display-name {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.2;
  letter-spacing: -0.02em;
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-verified-badge {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  object-fit: contain;
  display: block;
  margin: 0;
}

.profile-ig-likes-stat {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 6px;
  width: auto;
  max-width: 100%;
  margin: 10px 0 0;
  padding: 8px 10px 8px 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.95);
  white-space: nowrap;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
}

.profile-ig-likes-stat:hover,
.profile-ig-likes-stat:focus-visible {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(251, 113, 133, 0.28);
}

.profile-ig-likes-stat:active {
  transform: scale(0.99);
}

.profile-ig-likes-icon {
  display: none;
}

.profile-ig-likes-blur-strip {
  position: relative;
  display: flex;
  align-items: center;
  flex-shrink: 0;
  margin-right: 4px;
  padding: 1px 2px;
  transform: scale(0.92);
  transform-origin: left center;
}

.profile-ig-likes-blur-avatar {
  width: 20px;
  height: 20px;
  margin-left: -11px;
  border-radius: 50%;
  overflow: hidden;
  border: 1.5px solid rgba(15, 23, 42, 0.9);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.24);
  z-index: calc(var(--likes-blur-i, 0) + 1);
}

.profile-ig-likes-blur-avatar:first-child {
  margin-left: 0;
}

.profile-ig-likes-blur-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(2.5px) saturate(1.05);
  transform: scale(1.12);
}

.profile-ig-likes-blur-overlay {
  position: absolute;
  inset: -2px -4px;
  z-index: 5;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(12, 12, 22, 0.12) 0%,
    rgba(236, 72, 153, 0.22) 35%,
    rgba(168, 85, 247, 0.28) 50%,
    rgba(236, 72, 153, 0.22) 65%,
    rgba(12, 12, 22, 0.14) 100%
  );
  box-shadow: inset 0 0 10px rgba(168, 85, 247, 0.14);
}

.profile-ig-likes-count {
  font-weight: 800;
  color: #f8fafc;
}

.profile-ig-likes-label {
  font-weight: 600;
  color: rgba(203, 213, 225, 0.92);
}

.profile-ig-likes-see {
  flex-shrink: 0;
  margin-left: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fecdd3;
  background: rgba(244, 63, 94, 0.14);
  border: 1px solid rgba(251, 113, 133, 0.32);
}

.profile-page--ig .profile-ig-likes-stat .profile-ig-likes-see {
  display: inline-flex;
  align-items: center;
}

/* Profile onboarding & engagement */
.profile-onboarding {
  margin-top: 18px;
  padding: 14px 14px 10px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-onboarding-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 10px;
}

.profile-onboarding-top-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.profile-onboarding-close {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: none;
  border-radius: 999px;
  color: rgba(148, 163, 184, 0.95);
  background: rgba(255, 255, 255, 0.06);
  font-size: 1.2rem;
  line-height: 1;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease, color 0.2s ease;
}

.profile-onboarding-close:hover,
.profile-onboarding-close:focus-visible {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.1);
}

.profile-onboarding-label {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.92);
}

.profile-onboarding-pct {
  font-size: 0.78rem;
  font-weight: 800;
  color: #e9d5ff;
}

.profile-onboarding-bar {
  height: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
  margin-bottom: 12px;
}

.profile-onboarding-bar-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #a855f7, #ec4899);
  transition: width 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-onboarding-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.profile-onboarding-step {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 8px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #f1f5f9;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease;
}

.profile-onboarding-step:hover,
.profile-onboarding-step:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

.profile-onboarding-step-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  background: linear-gradient(135deg, #c084fc, #f472b6);
  box-shadow: 0 0 10px rgba(192, 132, 252, 0.45);
}

.profile-onboarding-step-label {
  flex: 1;
  min-width: 0;
}

.profile-onboarding-step-arrow {
  flex-shrink: 0;
  font-size: 1.1rem;
  line-height: 1;
  color: rgba(148, 163, 184, 0.75);
}

.profile-engage-nudge {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 14px;
  text-decoration: none;
  background: rgba(124, 58, 237, 0.1);
  border: 1px solid rgba(167, 139, 250, 0.22);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.profile-engage-nudge:active {
  background: rgba(124, 58, 237, 0.16);
}

.profile-engage-nudge-text {
  flex: 1;
  min-width: 0;
  font-size: 0.78rem;
  font-weight: 600;
  line-height: 1.4;
  color: rgba(226, 232, 240, 0.95);
}

.profile-engage-nudge-arrow {
  flex-shrink: 0;
  font-size: 1.15rem;
  line-height: 1;
  color: #c4b5fd;
}

.profile-avatar-message--ig {
  margin-top: 14px;
  text-align: left;
}

/* Profile toast */
.profile-toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0) + 8px);
  z-index: 400;
  max-width: min(92vw, 360px);
  padding: 12px 18px;
  border-radius: 14px;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.35;
  text-align: center;
  color: #f1f5f9;
  background: rgba(18, 18, 28, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transform: translateX(-50%) translateY(calc(100% + 24px));
  opacity: 0;
  pointer-events: none;
  transition:
    transform 0.32s cubic-bezier(0.22, 1, 0.36, 1),
    opacity 0.28s ease;
}

.profile-toast.is-visible {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.profile-toast.is-success {
  border-color: rgba(34, 197, 94, 0.4);
  color: #bbf7d0;
}

.profile-toast.is-error {
  border-color: rgba(239, 68, 68, 0.42);
  color: #fca5a5;
}

.profile-toast[hidden] {
  display: block;
}

/* Bottom sheet menu */
.profile-sheet {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.profile-sheet[hidden] {
  display: none !important;
}

.profile-sheet.is-open {
  pointer-events: auto;
}

.profile-sheet-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  opacity: 0;
  transition: opacity 0.28s ease;
}

.profile-sheet.is-open .profile-sheet-backdrop {
  opacity: 1;
}

.profile-sheet-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  padding: 8px 16px calc(16px + env(safe-area-inset-bottom, 0));
  border-radius: 20px 20px 0 0;
  background: rgba(18, 18, 28, 0.98);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 -12px 40px rgba(0, 0, 0, 0.4);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}

.profile-sheet.is-open .profile-sheet-panel {
  transform: translateY(0);
}

body.profile-sheet-open {
  overflow: hidden;
}

.profile-sheet-handle {
  width: 36px;
  height: 4px;
  margin: 0 auto 12px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.45);
}

.profile-sheet-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.profile-sheet-item {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 14px 12px;
  border-radius: 14px;
  text-decoration: none;
  text-align: left;
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  font: inherit;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition: background 0.2s ease;
}

.profile-sheet-item:active {
  background: rgba(255, 255, 255, 0.08);
}

.profile-sheet-item--premium {
  border-color: rgba(251, 191, 36, 0.28);
  background: linear-gradient(135deg, rgba(251, 191, 36, 0.1), rgba(124, 58, 237, 0.08));
}

.profile-sheet-item--setup {
  border-color: rgba(167, 139, 250, 0.28);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(236, 72, 153, 0.08));
}

.profile-sheet-icon--setup {
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.18);
}

.profile-sheet-item--logout .profile-sheet-title {
  color: #fda4af;
}

.profile-sheet-icon {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(255, 255, 255, 0.08);
  color: #e2e8f0;
}

.profile-sheet-icon--premium {
  color: #fbbf24;
  background: rgba(251, 191, 36, 0.15);
}

.profile-sheet-icon--logout {
  color: #fda4af;
  background: rgba(244, 63, 94, 0.12);
}

.profile-sheet-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.profile-sheet-title {
  font-size: 0.9rem;
  font-weight: 700;
}

.profile-sheet-sub {
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.92);
}

/* Who liked you — premium sheet */
.profile-likes-sheet {
  position: fixed;
  inset: 0;
  z-index: 220;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  pointer-events: none;
}

.profile-likes-sheet[hidden] {
  display: none !important;
}

.profile-likes-sheet.is-open {
  pointer-events: auto;
}

.profile-likes-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.52);
  opacity: 0;
  transition: opacity 0.32s ease;
}

.profile-likes-sheet.is-open .profile-likes-backdrop {
  opacity: 1;
}

.profile-likes-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  max-height: min(88vh, 640px);
  padding: 8px 18px calc(20px + env(safe-area-inset-bottom, 0));
  border-radius: 24px 24px 0 0;
  background: linear-gradient(180deg, rgba(22, 18, 36, 0.99) 0%, rgba(12, 12, 22, 0.99) 100%);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
  box-shadow: 0 -20px 50px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(22px);
  -webkit-backdrop-filter: blur(22px);
  transform: translateY(105%);
  transition: transform 0.38s cubic-bezier(0.32, 0.72, 0, 1);
  overflow: hidden;
}

.profile-likes-sheet.is-open .profile-likes-panel {
  transform: translateY(0);
}

body.profile-likes-sheet-open {
  overflow: hidden;
}

.profile-likes-head {
  text-align: center;
  margin-bottom: 16px;
}

.profile-likes-title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.profile-likes-sub {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.92);
}

.profile-likes-empty {
  text-align: center;
  padding: 20px 8px 10px;
}

.profile-likes-empty-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 800;
  color: #f8fafc;
}

.profile-likes-empty-text {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.95);
}

.profile-likes-teaser {
  display: grid;
  gap: 16px;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.35s ease, transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.profile-likes-teaser.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

.profile-likes-teaser-stage {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto;
  padding: 10px 6px;
  max-width: 100%;
}

.profile-likes-teaser-row {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px 8px;
}

.profile-likes-teaser-avatar {
  position: relative;
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  margin-left: -16px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.32);
  z-index: calc(var(--likes-avatar-i, 0) + 1);
  animation: profileLikesFloat 3.6s ease-in-out infinite;
  animation-delay: calc(var(--likes-avatar-i, 0) * 0.12s);
}

.profile-likes-teaser-avatar:first-child {
  margin-left: 0;
}

.profile-likes-teaser-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: blur(4px) saturate(1.1);
  transform: scale(1.08);
}

.profile-likes-teaser-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  border-radius: 999px;
  pointer-events: none;
  background: linear-gradient(
    90deg,
    rgba(12, 12, 22, 0.08) 0%,
    rgba(236, 72, 153, 0.18) 22%,
    rgba(168, 85, 247, 0.26) 50%,
    rgba(236, 72, 153, 0.18) 78%,
    rgba(12, 12, 22, 0.1) 100%
  );
  box-shadow: inset 0 0 24px rgba(168, 85, 247, 0.12);
  animation: profileLikesOverlayPulse 3.2s ease-in-out infinite;
}

.profile-likes-teaser-copy {
  text-align: center;
}

.profile-likes-teaser-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #fef3c7;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
}

.profile-likes-teaser-title {
  margin: 12px 0 8px;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #f8fafc;
}

.profile-likes-teaser-lead {
  margin: 0 0 12px;
  font-size: 0.84rem;
  line-height: 1.5;
  color: rgba(203, 213, 225, 0.95);
}

.profile-likes-teaser-lead strong {
  color: #fecdd3;
  font-weight: 800;
}

.profile-likes-teaser-perks {
  list-style: none;
  margin: 0 0 4px;
  padding: 0;
  display: grid;
  gap: 8px;
  text-align: left;
}

.profile-likes-teaser-perks li {
  position: relative;
  padding-left: 22px;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.95);
}

.profile-likes-teaser-perks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.45em;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, #ec4899, #a855f7);
  box-shadow: 0 0 10px rgba(236, 72, 153, 0.45);
}

.profile-likes-cta {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 14px 18px;
  border-radius: 16px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #f59e0b 0%, #ec4899 52%, #a855f7 100%);
  border: 1px solid rgba(255, 255, 255, 0.22);
  box-shadow: 0 14px 32px rgba(236, 72, 153, 0.32);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-likes-cta:active {
  transform: scale(0.98);
}

.profile-likes-cta-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255, 255, 255, 0.28) 50%,
    transparent 65%
  );
  transform: translateX(-120%);
  animation: profileLikesCtaShine 2.8s ease-in-out infinite;
}

.profile-likes-teaser-note {
  margin: 10px 0 0;
  text-align: center;
  font-size: 0.72rem;
  color: rgba(148, 163, 184, 0.88);
}

.profile-likes-list-wrap {
  max-height: min(52vh, 420px);
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 2px;
}

.profile-likes-list {
  display: grid;
  gap: 8px;
}

.profile-likes-item {
  display: grid;
  grid-template-columns: 48px 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
  animation: profileLikesItemIn 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
  animation-delay: calc(var(--likes-item-i, 0) * 0.05s);
}

.profile-likes-item-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
}

.profile-likes-item-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-likes-item-avatar img.profile-likes-item-avatar--default {
  filter: brightness(0) invert(1);
  object-fit: contain;
  padding: 6px;
}

.profile-likes-item-name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 800;
  color: #f8fafc;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-likes-item-handle {
  margin: 2px 0 0;
  font-size: 0.74rem;
  color: rgba(148, 163, 184, 0.95);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.profile-likes-item-time {
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.85);
  white-space: nowrap;
}

.profile-likes-loading,
.profile-likes-error {
  margin: 12px 0 0;
  text-align: center;
  font-size: 0.78rem;
}

.profile-likes-error {
  color: #fca5a5;
}

.profile-likes-load-more {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: #f8fafc;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
}

.profile-likes-load-more:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

@keyframes profileLikesFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-3px); }
}

@keyframes profileLikesOverlayPulse {
  0%, 100% { opacity: 0.88; }
  50% { opacity: 1; }
}

@keyframes profileLikesCtaShine {
  0%, 100% { transform: translateX(-120%); }
  45%, 55% { transform: translateX(120%); }
}

@keyframes profileLikesItemIn {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Profile details dialog */
.profile-details-dialog {
  width: 100%;
  max-width: 520px;
  height: 100%;
  max-height: 100%;
  margin: 0;
  padding: 0;
  border: none;
  border-radius: 0;
  overflow: hidden;
  color: #f8fafc;
  background: rgba(12, 12, 22, 0.98);
}

.profile-details-dialog::backdrop {
  background: rgba(0, 0, 0, 0.55);
}

.profile-details-head {
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  gap: 8px;
  padding: calc(10px + env(safe-area-inset-top, 0)) 12px 10px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(12, 12, 22, 0.98);
}

.profile-details-close {
  grid-column: 1;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: none;
  border-radius: 12px;
  color: #f8fafc;
  background: transparent;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.profile-details-close .ico {
  width: 22px;
  height: 22px;
}

.profile-details-close:active {
  background: rgba(255, 255, 255, 0.08);
}

.profile-details-title {
  grid-column: 2;
  margin: 0;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  text-align: center;
}

.profile-details-scroll {
  max-height: calc(100vh - 64px - env(safe-area-inset-top, 0));
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 16px 16px calc(24px + env(safe-area-inset-bottom, 0));
}

.profile-details-hero {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-details-avatar-wrap {
  flex-shrink: 0;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid rgba(255, 255, 255, 0.14);
}

.profile-details-avatar {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.profile-details-avatar--default {
  filter: brightness(0) invert(1);
  object-fit: contain;
  padding: 0;
}

.profile-details-hero-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.profile-details-name {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
  word-break: break-word;
}

.profile-details-handle {
  margin: 0;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.95);
}

.profile-details-plan-chip {
  align-self: flex-start;
  margin-top: 4px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.profile-details-plan-chip--premium {
  color: #fef3c7;
  background: rgba(251, 191, 36, 0.14);
  border-color: rgba(251, 191, 36, 0.35);
}

.profile-details-group + .profile-details-group {
  margin-top: 18px;
}

.profile-details-group-title {
  margin: 0 0 8px 4px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.85);
}

.profile-details-rows {
  margin: 0;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.07);
}

.profile-details-row {
  display: grid;
  grid-template-columns: minmax(96px, 38%) 1fr;
  gap: 12px;
  align-items: start;
  padding: 13px 14px;
}

.profile-details-row + .profile-details-row {
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.profile-details-row dt {
  margin: 0;
  font-size: 0.74rem;
  font-weight: 600;
  color: rgba(148, 163, 184, 0.95);
}

.profile-details-row dd {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: #f8fafc;
  line-height: 1.4;
  word-break: break-word;
}

.profile-details-row--stack {
  grid-template-columns: 1fr;
  gap: 6px;
}

.profile-details-muted {
  color: rgba(148, 163, 184, 0.88) !important;
  font-weight: 500 !important;
}

.profile-details-mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  font-size: 0.76rem !important;
  letter-spacing: 0.04em;
}

html.profile-details-open {
  overflow: hidden;
}

@media (min-width: 540px) {
  .profile-details-dialog {
    width: min(92vw, 520px);
    height: auto;
    max-height: min(88vh, 760px);
    margin: auto;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.1);
  }

  .profile-details-scroll {
    max-height: min(calc(88vh - 64px), 696px);
  }
}

/* Bio dialog */
.bio-dialog {
  width: min(92vw, 400px);
  border-radius: 18px;
  padding: 20px;
  color: #f8fafc;
}

.bio-dialog-hint {
  margin: 0 0 12px;
  font-size: 0.78rem;
  color: rgba(148, 163, 184, 0.95);
}

.bio-dialog-input {
  width: 100%;
  min-height: 100px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(0, 0, 0, 0.25);
  color: #f8fafc;
  font: inherit;
  font-size: 0.88rem;
  line-height: 1.45;
  resize: vertical;
}

.bio-dialog-input:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.5);
}

.bio-dialog-count {
  margin: 6px 0 0;
  font-size: 0.68rem;
  text-align: right;
  color: rgba(148, 163, 184, 0.85);
}

.bio-dialog-message {
  margin: 8px 0 0;
  min-height: 1.2em;
  font-size: 0.76rem;
  color: rgba(148, 163, 184, 0.95);
}

.bio-dialog-message.is-error {
  color: #fca5a5;
}

.dialog-actions button.primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  border-color: transparent;
  color: #fff;
}

.badge-pill {
  display: inline-block;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  padding: 6px 12px;
  font-size: 0.84rem;
}

.logout-btn.top-right {
  position: absolute;
  right: 14px;
  top: 14px;
}

.privacy-screen {
  padding: 18px 16px calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0) + 16px);
}

.privacy-screen .page-topbar .back-button img {
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 1;
}

.page-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}

.page-topbar h1 {
  margin: 0;
  font-size: 1.2rem;
  text-align: center;
}

.back-button {
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border-radius: 50%;
  display: grid;
  place-items: center;
  text-decoration: none;
  color: #f8fafc;
  background: #101018;
  border: 1px solid #2a2a35;
}

.back-button img {
  width: 22px;
  height: 22px;
  object-fit: contain;
  display: block;
  filter: brightness(0) invert(1);
  opacity: 0.95;
}

.privacy-hero-card {
  border-radius: 22px;
  padding: 20px;
  background: linear-gradient(145deg, #7c3aed, #ec4899);
  box-shadow: 0 18px 40px rgba(124, 58, 237, 0.24);
}

.privacy-hero-card p,
.privacy-hero-card h2 {
  margin: 0;
}

.privacy-hero-card p,
.privacy-hero-card span {
  color: rgba(255, 255, 255, 0.82);
}

.privacy-hero-card h2 {
  margin-top: 6px;
  font-size: 1.55rem;
}

.privacy-content {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.privacy-card {
  border: 1px solid #2a2a35;
  border-radius: 16px;
  padding: 16px;
  background: #101018;
}

.privacy-card h3 {
  margin: 0 0 8px;
  font-size: 1rem;
}

.privacy-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.privacy-card.warning {
  border-color: rgba(236, 72, 153, 0.42);
  background: rgba(236, 72, 153, 0.1);
}

.privacy-content--single {
  margin-top: 6px;
}

.privacy-card--policy p {
  margin: 0;
  color: var(--muted);
  line-height: 1.52;
}

.privacy-card--policy p + p {
  margin-top: 14px;
}

.privacy-policy-lead {
  color: #f8fafc !important;
  font-weight: 600;
  line-height: 1.42;
}

.privacy-updated-note {
  font-size: 0.85rem !important;
  opacity: 0.88;
  margin-top: 18px !important;
}

/* ---- Contact page ---- */
.contact-screen {
  padding: 18px 16px calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0) + 16px);
  background:
    radial-gradient(ellipse 100% 60% at 50% -10%, rgba(124, 58, 237, 0.2), transparent 55%),
    #050509;
}

.contact-screen .page-topbar .back-button img {
  filter: grayscale(1) brightness(0) invert(1);
  opacity: 1;
}

.contact-hero {
  text-align: center;
  padding: 8px 8px 20px;
}

.contact-hero-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(124, 58, 237, 0.2);
  border: 1px solid rgba(167, 139, 250, 0.28);
}

.contact-hero-icon .ico {
  width: 28px;
  height: 28px;
  fill: #c4b5fd;
}

.contact-hero h2 {
  margin: 0;
  font-size: 1.28rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.contact-hero p {
  margin: 8px auto 0;
  max-width: 300px;
  font-size: 0.86rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.95);
}

.contact-email-card {
  display: block;
  padding: 18px 16px;
  border-radius: 18px;
  text-decoration: none;
  text-align: center;
  color: #f8fafc;
  background: rgba(12, 12, 22, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.28);
  transition:
    border-color 0.2s ease,
    transform 0.2s ease,
    background 0.2s ease;
}

.contact-email-card:hover {
  border-color: rgba(167, 139, 250, 0.4);
  background: rgba(18, 18, 32, 0.9);
}

.contact-email-card:active {
  transform: scale(0.99);
}

.contact-email-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: rgba(148, 163, 184, 0.9);
  margin-bottom: 8px;
}

.contact-email-value {
  display: block;
  font-size: 0.95rem;
  font-weight: 700;
  word-break: break-all;
  color: #e9d5ff;
}

.contact-tips {
  margin: 16px 0 0;
  padding: 14px 14px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.contact-tips p {
  margin: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: rgba(148, 163, 184, 0.92);
}

.contact-tips p + p {
  margin-top: 8px;
}

.confirm-dialog {
  border: 0;
  border-radius: 16px;
  padding: 18px;
  width: min(92vw, 340px);
  background: #111118;
  color: #f8fafc;
}

.confirm-dialog::backdrop {
  background: rgba(0, 0, 0, 0.45);
}

.confirm-dialog h3 {
  margin: 0 0 8px;
}

.confirm-dialog p {
  margin: 0 0 16px;
  color: #a1a1aa;
}

.profile-details-dialog.confirm-dialog {
  padding: 0;
  width: 100%;
  max-width: 520px;
  border-radius: 0;
}

@media (min-width: 540px) {
  .profile-details-dialog.confirm-dialog {
    width: min(92vw, 520px);
    border-radius: 20px;
  }
}

.dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.dialog-actions button,
.dialog-actions a {
  border-radius: 10px;
  border: 1px solid #2a2a35;
  background: #181820;
  color: #f8fafc;
  padding: 8px 12px;
  text-decoration: none;
  font-weight: 600;
}

.dialog-actions a.danger,
.dialog-actions button.danger {
  background: #ef4444;
  color: #fff;
  border-color: transparent;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-12px);
  }
}

@keyframes wave {
  0% {
    transform: scale(0.7);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.55);
    opacity: 0;
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes connectionWave {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) rotate(-18deg);
  }
  14% {
    opacity: 0.72;
  }
  82% {
    opacity: 0.72;
  }
  100% {
    opacity: 0;
    transform: translate3d(168vw, 24vh, 0) rotate(-18deg);
  }
}

@keyframes orbPulse {
  0% {
    opacity: 0.78;
    transform: scale(0.58);
  }
  100% {
    opacity: 0;
    transform: scale(1.72);
  }
}

@keyframes coreBreathe {
  0%,
  100% {
    transform: scale(0.96);
  }
  50% {
    transform: scale(1.06);
  }
}

@keyframes ctaPulse {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  50% {
    transform: translateY(-4px) scale(1.02);
  }
}

@keyframes ctaWave {
  0% {
    opacity: 0.85;
    transform: scale(0.96);
  }
  100% {
    opacity: 0;
    transform: scale(1.18);
  }
}

@media (min-width: 768px) {
  .phone-shell {
    width: 100%;
  }
}

/* ── Models screen ── */
.models-screen {
  position: relative;
  padding:
    0
    16px
    calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0) + 20px);
  background:
    radial-gradient(ellipse 80% 50% at 50% -10%, rgba(124, 58, 237, 0.22), transparent 55%),
    radial-gradient(ellipse 60% 40% at 100% 20%, rgba(236, 72, 153, 0.12), transparent 50%),
    #050509;
}

.models-header {
  padding: max(16px, env(safe-area-inset-top)) 0 14px;
  animation: modelsHeaderIn 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.models-title {
  margin: 0;
  font-size: 1.65rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  background: linear-gradient(135deg, #f8fafc 0%, #c4b5fd 55%, #f0abfc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.models-subtitle {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: #94a3b8;
}

.models-search-bar {
  position: relative;
  display: flex;
  align-items: center;
  margin-bottom: 14px;
  animation: modelsHeaderIn 0.55s 0.06s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.models-search-icon {
  position: absolute;
  left: 14px;
  width: 18px;
  height: 18px;
  color: #64748b;
  pointer-events: none;
}

.models-search-input {
  width: 100%;
  padding: 13px 14px 13px 42px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  color: #f1f5f9;
  font-size: 0.92rem;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  -webkit-appearance: none;
  appearance: none;
}

.models-search-input::-webkit-search-cancel-button,
.models-search-input::-webkit-search-decoration,
.models-search-input::-webkit-search-results-button,
.models-search-input::-ms-clear,
.models-search-input::-ms-reveal {
  display: none;
  width: 0;
  height: 0;
  pointer-events: none;
}

.models-search-bar:has(.models-search-clear:not([hidden])) .models-search-input {
  padding-right: 44px;
}

.models-search-input::placeholder {
  color: #64748b;
}

.models-search-input:focus {
  border-color: rgba(167, 139, 250, 0.45);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.15);
}

.models-search-clear {
  position: absolute;
  right: 8px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: #94a3b8;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease;
}

.models-search-clear[hidden] {
  display: none !important;
}

.models-search-clear .ico {
  width: 16px;
  height: 16px;
}

.models-search-clear:active {
  background: rgba(255, 255, 255, 0.12);
  color: #f1f5f9;
}

.models-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding-bottom: 4px;
}

.models-grid.is-loading {
  opacity: 0;
  pointer-events: none;
}

.model-card {
  opacity: 0;
  transform: translateY(18px) scale(0.97);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--card-delay, 0ms);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.model-card.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.model-card:active {
  transform: scale(0.97);
}

.model-card-media {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.model-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.model-card:hover .model-card-media img,
.model-card:focus-visible .model-card-media img {
  transform: scale(1.05);
}

.model-card-rating {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 700;
  color: #fef08a;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
}

.model-card-rating .ico {
  width: 11px;
  height: 11px;
  fill: #fbbf24;
}

.model-card-online {
  position: absolute;
  top: 8px;
  left: 8px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 9px;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  color: #bbf7d0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.model-card-online-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #22c55e;
  animation: modelsOnlinePulse 2s ease-in-out infinite;
}

.model-card-overlay {
  position: absolute;
  inset: auto 0 0;
  padding: 36px 10px 10px;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.82));
}

.model-card-name {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
}

.model-card-location {
  display: flex;
  align-items: center;
  gap: 3px;
  margin: 3px 0 0;
  font-size: 0.68rem;
  color: rgba(255, 255, 255, 0.78);
}

.model-card-location .ico {
  width: 11px;
  height: 11px;
  opacity: 0.85;
}

.model-card-foot {
  display: flex;
  justify-content: space-between;
  padding: 7px 4px 0;
  font-size: 0.65rem;
  color: #64748b;
}

.models-skeleton {
  display: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  position: absolute;
  left: 16px;
  right: 16px;
  top: 200px;
}

.models-skeleton.is-visible {
  display: grid;
}

.models-skeleton-card {
  aspect-ratio: 3 / 4;
  border-radius: 16px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(255, 255, 255, 0.08) 50%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 200% 100%;
  animation: modelsSkeletonPulse 1.4s ease-in-out infinite;
}

.models-skeleton-card:nth-child(2) { animation-delay: 0.1s; }
.models-skeleton-card:nth-child(3) { animation-delay: 0.2s; }
.models-skeleton-card:nth-child(4) { animation-delay: 0.3s; }
.models-skeleton-card:nth-child(5) { animation-delay: 0.4s; }
.models-skeleton-card:nth-child(6) { animation-delay: 0.5s; }

.models-empty {
  text-align: center;
  padding: 48px 24px;
  animation: modelsHeaderIn 0.4s ease both;
}

.models-empty-icon {
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 16px;
  background: rgba(124, 58, 237, 0.15);
  color: #a78bfa;
}

.models-empty-icon .ico {
  width: 26px;
  height: 26px;
}

.models-empty-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
}

.models-empty-text {
  margin: 6px 0 0;
  font-size: 0.82rem;
  color: #64748b;
}

.models-list-footer {
  margin: 20px 0 8px;
  padding: 18px 16px 6px;
  text-align: center;
  animation: modelsHeaderIn 0.55s 0.12s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.models-list-footer[hidden] {
  display: none !important;
}

.models-list-footer-icon {
  position: relative;
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  border-radius: 16px;
  background: rgba(124, 58, 237, 0.14);
  border: 1px solid rgba(167, 139, 250, 0.22);
  color: #c4b5fd;
}

.models-list-footer-icon .ico {
  width: 24px;
  height: 24px;
}

.models-list-footer-pulse {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #22c55e;
  border: 2px solid rgba(12, 12, 18, 0.9);
  box-shadow: 0 0 10px rgba(34, 197, 94, 0.55);
  animation: modelsOnlinePulse 2s ease-in-out infinite;
}

.models-list-footer-title {
  margin: 0;
  font-size: 0.88rem;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: 0.01em;
}

/* Model detail sheet */
.model-detail {
  position: fixed;
  inset: 0;
  z-index: 100;
  pointer-events: none;
}

.model-detail[hidden] {
  display: none !important;
}

.model-detail.is-open {
  pointer-events: auto;
}

.model-detail-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.32s ease;
}

.model-detail.is-open .model-detail-backdrop {
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(6px);
}

.model-detail-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 94vh;
  max-height: 94dvh;
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  background: #0c0c12;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  box-shadow: 0 -20px 60px rgba(0, 0, 0, 0.5);
}

.model-detail.is-open .model-detail-panel {
  transform: translateY(0);
}

body.model-detail-open {
  overflow: hidden;
}

.model-detail-close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 5;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(8px);
  transition: transform 0.18s ease, background 0.18s ease;
}

.model-detail-close .ico {
  width: 20px;
  height: 20px;
}

.model-detail-close:active {
  transform: scale(0.92);
  background: rgba(0, 0, 0, 0.75);
}

.model-detail-hero {
  position: relative;
  aspect-ratio: 4 / 3;
  max-height: 42vh;
  overflow: hidden;
}

.model-detail-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  animation: modelDetailPhotoIn 0.6s ease both;
}

.model-detail-hero-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    transparent 30%,
    rgba(12, 12, 18, 0.5) 60%,
    #0c0c12 100%
  );
}

.model-detail-hero-meta {
  position: absolute;
  inset: auto 0 0;
  padding: 0 20px 16px;
  animation: modelDetailMetaIn 0.5s 0.15s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.model-detail-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
}

.model-detail-status.is-online {
  color: #bbf7d0;
  background: rgba(34, 197, 94, 0.15);
  border: 1px solid rgba(34, 197, 94, 0.3);
}

.model-detail-status.is-recent {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.model-detail-status.is-offline {
  color: #94a3b8;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.model-detail-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: modelsOnlinePulse 2s ease-in-out infinite;
}

.model-detail-name {
  margin: 0;
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
}

.model-detail-tagline {
  margin: 4px 0 0;
  font-size: 0.88rem;
  color: #94a3b8;
}

.model-detail-body {
  padding: 4px 20px calc(env(safe-area-inset-bottom, 0) + 24px);
}

.model-detail-stats {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 20px;
  animation: modelDetailMetaIn 0.5s 0.22s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.model-detail-stat {
  display: grid;
  justify-items: center;
  gap: 2px;
  padding: 12px 6px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.model-detail-stat-icon {
  font-size: 0.9rem;
  line-height: 1;
}

.model-detail-stat-value {
  font-size: 0.92rem;
  font-weight: 800;
  color: #f1f5f9;
}

.model-detail-stat-label {
  font-size: 0.6rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.model-detail-section {
  margin-bottom: 18px;
  animation: modelDetailMetaIn 0.5s 0.28s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.model-detail-section h3 {
  margin: 0 0 8px;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
}

.model-detail-bio {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.55;
  color: #cbd5e1;
}

.model-detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.model-detail-tag {
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  animation: modelTagPop 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.model-detail-tag--lang {
  color: #c4b5fd;
  background: rgba(124, 58, 237, 0.18);
  border: 1px solid rgba(167, 139, 250, 0.25);
}

.model-detail-tag--interest {
  color: #fbcfe8;
  background: rgba(236, 72, 153, 0.15);
  border: 1px solid rgba(244, 114, 182, 0.25);
}

.model-detail-tag:nth-child(2) { animation-delay: 0.05s; }
.model-detail-tag:nth-child(3) { animation-delay: 0.1s; }
.model-detail-tag:nth-child(4) { animation-delay: 0.15s; }

.model-detail-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 46px;
  margin: 0 0 10px;
  padding: 12px 18px;
  border: 0;
  border-radius: 13px;
  font-size: 0.925rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.015em;
  font-family: inherit;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed 0%, #d946ef 52%, #ec4899 100%);
  background-size: 180% 100%;
  box-shadow: 0 6px 22px rgba(124, 58, 237, 0.3);
  cursor: pointer;
  overflow: hidden;
  isolation: isolate;
  transition: transform 0.22s cubic-bezier(0.22, 1, 0.36, 1), box-shadow 0.22s ease, background-position 0.35s ease;
  animation:
    modelDetailMetaIn 0.5s 0.22s cubic-bezier(0.22, 1, 0.36, 1) both,
    modelDetailCtaGlow 3s ease-in-out 0.7s infinite;
  -webkit-tap-highlight-color: transparent;
}

.model-detail-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 38%,
    rgba(255, 255, 255, 0.14) 50%,
    transparent 62%
  );
  transform: translateX(-120%);
  animation: modelDetailCtaShine 4.2s ease-in-out 1.2s infinite;
  pointer-events: none;
}

.model-detail-cta-ico,
.model-detail-cta-label {
  position: relative;
  z-index: 1;
}

.model-detail-cta-ico {
  width: 17px;
  height: 17px;
  flex-shrink: 0;
  fill: currentColor;
}

.model-detail-cta-label {
  font-size: inherit;
  font-weight: inherit;
  line-height: 1;
  white-space: nowrap;
}

.model-detail-cta.is-busy {
  opacity: 0.82;
  pointer-events: none;
}

.model-detail-cta:active {
  transform: scale(0.985);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.26);
}

@media (hover: hover) {
  .model-detail-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 28px rgba(124, 58, 237, 0.36);
    background-position: 100% 0;
  }
}

@keyframes modelDetailCtaGlow {
  0%,
  100% {
    box-shadow: 0 6px 22px rgba(124, 58, 237, 0.28);
  }
  50% {
    box-shadow: 0 8px 26px rgba(236, 72, 153, 0.34);
  }
}

@keyframes modelDetailCtaShine {
  0%,
  72%,
  100% {
    transform: translateX(-120%);
  }
  38% {
    transform: translateX(120%);
  }
}

@keyframes modelsHeaderIn {
  from {
    opacity: 0;
    transform: translateY(-12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modelsOnlinePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.65; transform: scale(0.85); }
}

@keyframes modelsSkeletonPulse {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@keyframes modelDetailPhotoIn {
  from { transform: scale(1.08); opacity: 0.6; }
  to { transform: scale(1); opacity: 1; }
}

@keyframes modelDetailMetaIn {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes modelTagPop {
  from {
    opacity: 0;
    transform: scale(0.85);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (min-width: 640px) {
  .models-grid,
  .models-skeleton {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (min-width: 900px) {
  .models-screen {
    max-width: 960px;
    margin: 0 auto;
  }

  .models-grid,
  .models-skeleton {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .model-detail-panel {
    left: 50%;
    right: auto;
    width: min(480px, 100%);
    transform: translate(-50%, 100%);
    border-radius: 24px 24px 0 0;
  }

  .model-detail.is-open .model-detail-panel {
    transform: translate(-50%, 0);
  }
}

/* Model premium upsell sheet */
.model-premium-upsell {
  position: fixed;
  inset: 0;
  z-index: 120;
  pointer-events: none;
}

.model-premium-upsell[hidden] {
  display: none !important;
}

.model-premium-upsell.is-open {
  pointer-events: auto;
}

.model-premium-upsell-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0);
  transition: background 0.34s ease;
}

.model-premium-upsell.is-open .model-premium-upsell-backdrop {
  background: rgba(0, 0, 0, 0.78);
  backdrop-filter: blur(8px);
}

.model-premium-upsell-panel {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  max-height: 92vh;
  max-height: 92dvh;
  overflow-y: auto;
  padding: 22px 20px calc(env(safe-area-inset-bottom, 0) + 24px);
  border-radius: 26px 26px 0 0;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(168, 85, 247, 0.22), transparent 58%),
    linear-gradient(180deg, #14101f 0%, #0a0a12 100%);
  border-top: 1px solid rgba(251, 191, 36, 0.18);
  box-shadow: 0 -24px 64px rgba(0, 0, 0, 0.55);
  transform: translateY(100%);
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  text-align: center;
}

.model-premium-upsell.is-open .model-premium-upsell-panel {
  transform: translateY(0);
}

body.model-premium-upsell-open {
  overflow: hidden;
}

.model-premium-upsell-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  cursor: pointer;
}

.model-premium-upsell-close .ico {
  width: 18px;
  height: 18px;
}

.model-premium-upsell-glow {
  position: absolute;
  top: 0;
  left: 50%;
  width: 280px;
  height: 140px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(236, 72, 153, 0.28) 0%, transparent 70%);
  pointer-events: none;
  animation: modelPremiumGlow 3.2s ease-in-out infinite;
}

.model-premium-upsell-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 132px;
  height: 132px;
  margin: 8px auto 16px;
}

.model-premium-upsell-orbit {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px dashed rgba(251, 191, 36, 0.35);
  animation: roomPremiumOrbit 8s linear infinite;
}

.model-premium-upsell-sparkle {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #fde68a;
  box-shadow: 0 0 12px rgba(251, 191, 36, 0.8);
  animation: roomPremiumSparkle 2.4s ease-in-out infinite;
}

.model-premium-upsell-sparkle--a { top: 8%; left: 18%; }
.model-premium-upsell-sparkle--b { top: 20%; right: 12%; animation-delay: 0.6s; }
.model-premium-upsell-sparkle--c { bottom: 14%; left: 24%; animation-delay: 1.1s; }

.model-premium-upsell-avatar-wrap {
  position: relative;
  z-index: 1;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #fbbf24, #ec4899, #a855f7);
  box-shadow: 0 12px 32px rgba(168, 85, 247, 0.38);
  opacity: 0;
  transform: scale(0.82);
  transition: opacity 0.45s cubic-bezier(0.22, 1, 0.36, 1), transform 0.45s cubic-bezier(0.22, 1, 0.36, 1);
}

.model-premium-upsell-panel.is-revealed .model-premium-upsell-avatar-wrap {
  opacity: 1;
  transform: scale(1);
}

.model-premium-upsell-photo {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #0c0c12;
}

.model-premium-upsell-lock {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #1c1917;
  border: 2px solid #0c0c12;
  box-shadow: 0 4px 14px rgba(251, 191, 36, 0.45);
}

.model-premium-upsell-lock .ico {
  width: 14px;
  height: 14px;
}

.model-premium-upsell-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #fef3c7;
  background: rgba(251, 191, 36, 0.12);
  border: 1px solid rgba(251, 191, 36, 0.35);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.4s 0.08s ease, transform 0.4s 0.08s cubic-bezier(0.22, 1, 0.36, 1);
}

.model-premium-upsell-panel.is-revealed .model-premium-upsell-badge {
  opacity: 1;
  transform: translateY(0);
}

.model-premium-upsell-badge .ico {
  width: 14px;
  height: 14px;
  fill: #fbbf24;
}

.model-premium-upsell-title {
  margin: 14px 0 8px;
  font-size: 1.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
  color: #f8fafc;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.42s 0.12s ease, transform 0.42s 0.12s cubic-bezier(0.22, 1, 0.36, 1);
}

.model-premium-upsell-panel.is-revealed .model-premium-upsell-title {
  opacity: 1;
  transform: translateY(0);
}

.model-premium-upsell-lead {
  margin: 0 auto 16px;
  max-width: 300px;
  font-size: 0.86rem;
  line-height: 1.55;
  color: #94a3b8;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.42s 0.18s ease, transform 0.42s 0.18s cubic-bezier(0.22, 1, 0.36, 1);
}

.model-premium-upsell-panel.is-revealed .model-premium-upsell-lead {
  opacity: 1;
  transform: translateY(0);
}

.model-premium-upsell-lead strong {
  color: #fbcfe8;
  font-weight: 700;
}

.model-premium-upsell-perks {
  list-style: none;
  margin: 0 auto 18px;
  padding: 0;
  max-width: 320px;
  text-align: left;
  display: grid;
  gap: 10px;
}

.model-premium-upsell-perks li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.82rem;
  line-height: 1.45;
  color: #cbd5e1;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.38s ease, transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
}

.model-premium-upsell-panel.is-revealed .model-premium-upsell-perks li:nth-child(1) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.24s;
}

.model-premium-upsell-panel.is-revealed .model-premium-upsell-perks li:nth-child(2) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.32s;
}

.model-premium-upsell-panel.is-revealed .model-premium-upsell-perks li:nth-child(3) {
  opacity: 1;
  transform: translateX(0);
  transition-delay: 0.4s;
}

.model-premium-upsell-perks li::before {
  content: "✦";
  flex-shrink: 0;
  margin-top: 1px;
  color: #fbbf24;
  font-size: 0.72rem;
}

.model-premium-upsell-cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  max-width: 340px;
  min-height: 48px;
  padding: 12px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 0.92rem;
  font-weight: 700;
  color: #1c1917;
  background: linear-gradient(135deg, #fde68a 0%, #fbbf24 45%, #f59e0b 100%);
  box-shadow: 0 10px 28px rgba(251, 191, 36, 0.35);
  overflow: hidden;
  opacity: 0;
  transform: translateY(14px) scale(0.96);
  transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.42s 0.46s ease, transform 0.42s 0.46s cubic-bezier(0.22, 1, 0.36, 1);
}

.model-premium-upsell-panel.is-revealed .model-premium-upsell-cta {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.model-premium-upsell-cta::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.35) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: modelDetailCtaShine 3.5s ease-in-out 1s infinite;
}

.model-premium-upsell-cta .ico {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.model-premium-upsell-cta:active {
  transform: scale(0.98);
  box-shadow: 0 6px 18px rgba(251, 191, 36, 0.28);
}

.model-premium-upsell-dismiss {
  display: block;
  width: 100%;
  margin-top: 12px;
  padding: 8px;
  border: 0;
  background: transparent;
  font-family: inherit;
  font-size: 0.8rem;
  font-weight: 500;
  color: #64748b;
  cursor: pointer;
  opacity: 0;
  transition: color 0.18s ease, opacity 0.35s 0.52s ease;
}

.model-premium-upsell-panel.is-revealed .model-premium-upsell-dismiss {
  opacity: 1;
}

.model-premium-upsell-dismiss:active {
  color: #94a3b8;
}

@keyframes modelPremiumGlow {
  0%, 100% { opacity: 0.55; transform: translateX(-50%) scale(1); }
  50% { opacity: 1; transform: translateX(-50%) scale(1.08); }
}

@media (min-width: 900px) {
  .model-premium-upsell-panel {
    left: 50%;
    right: auto;
    width: min(420px, 100%);
    transform: translate(-50%, 100%);
  }

  .model-premium-upsell.is-open .model-premium-upsell-panel {
    transform: translate(-50%, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .connection-line,
  .orb-ring,
  .orb-core,
  .wave,
  .index-signup-btn,
  .index-signup-btn::before,
  .index-signup-btn::after,
  .room-live-dot,
  .call-chat-toast-item,
  .auth-orb,
  .auth-ring,
  .auth-brand,
  .auth-kicker-dot,
  .auth-hero,
  .auth-panel,
  .model-card,
  .model-detail-panel,
  .model-detail-photo,
  .models-header,
  .models-search-bar,
  .model-detail-hero-meta,
  .model-detail-stats,
  .model-detail-section,
  .model-detail-cta,
  .model-detail-cta::before,
  .model-premium-upsell-panel,
  .model-premium-upsell-glow,
  .model-premium-upsell-orbit,
  .model-premium-upsell-sparkle,
  .model-premium-upsell-avatar-wrap,
  .model-premium-upsell-badge,
  .model-premium-upsell-title,
  .model-premium-upsell-lead,
  .model-premium-upsell-perks li,
  .model-premium-upsell-cta,
  .model-premium-upsell-cta::before,
  .model-premium-upsell-dismiss {
    animation: none;
    transition: none;
  }
  .model-detail-tag,
  .model-card-online-dot,
  .model-detail-status-dot,
  .models-skeleton-card {
    animation: none;
    transition: none;
  }
}

/* ——— Chat platform ——— */
.bottom-nav a {
  max-width: 96px;
  padding: 8px 8px 7px;
  font-size: 0.625rem;
}

.model-detail-chat-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 44px;
  margin: 0 0 20px;
  padding: 11px 18px;
  border: 1px solid rgba(167, 139, 250, 0.35);
  border-radius: 13px;
  font-size: 0.9rem;
  font-weight: 600;
  font-family: inherit;
  color: #e9d5ff;
  background: rgba(124, 58, 237, 0.12);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.model-detail-chat-ico {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.model-detail-chat-cta:active {
  transform: scale(0.98);
  background: rgba(124, 58, 237, 0.2);
}

.zenzy-chat-toast {
  position: fixed;
  top: calc(env(safe-area-inset-top, 0) + 22px);
  left: 12px;
  right: 12px;
  z-index: 120;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
  transform: translateY(-130%);
  opacity: 0;
  transition: transform 0.42s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.32s ease;
  -webkit-tap-highlight-color: transparent;
}

.zenzy-chat-toast.is-visible {
  transform: translateY(0);
  opacity: 1;
}

.zenzy-chat-toast.is-visible .zenzy-chat-toast-inner {
  animation: chatToastGlow 0.75s ease;
}

.zenzy-chat-toast.is-leaving {
  transform: translateY(-130%);
  opacity: 0;
}

.zenzy-chat-toast-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 14px 13px 16px;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid rgba(167, 139, 250, 0.42);
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(236, 72, 153, 0.08)),
    linear-gradient(145deg, rgba(24, 20, 38, 0.98), rgba(12, 12, 18, 0.96));
  box-shadow:
    0 18px 44px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset,
    0 0 28px rgba(124, 58, 237, 0.22);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  transition: transform 0.18s ease;
}

.zenzy-chat-toast-inner::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 38%,
    transparent 100%
  );
  pointer-events: none;
}

.zenzy-chat-toast-accent {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: linear-gradient(180deg, #c4b5fd, #ec4899);
  box-shadow: 0 0 14px rgba(236, 72, 153, 0.55);
}

.zenzy-chat-toast-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, #a78bfa, #ec4899);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.35);
}

.zenzy-chat-toast-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid #0f0f14;
}

.zenzy-chat-toast-icon {
  position: absolute;
  right: -2px;
  bottom: -1px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #db2777);
  border: 2px solid #0f0f14;
  box-shadow: 0 4px 10px rgba(124, 58, 237, 0.4);
}

.zenzy-chat-toast-icon .ico {
  width: 11px;
  height: 11px;
  fill: currentColor;
}

.zenzy-chat-toast-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 3px;
  text-align: left;
}

.zenzy-chat-toast-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  letter-spacing: -0.01em;
}

.zenzy-chat-toast-line {
  font-size: 0.75rem;
  color: #ddd6fe;
  line-height: 1.25;
}

.zenzy-chat-toast-count {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  align-self: center;
  min-width: 28px;
  height: 28px;
  padding: 0 8px;
  margin-left: 4px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8125rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow: 0 4px 14px rgba(124, 58, 237, 0.38);
}

.zenzy-chat-toast:active .zenzy-chat-toast-inner {
  transform: scale(0.985);
}

@keyframes chatToastGlow {
  0% {
    box-shadow:
      0 18px 44px rgba(0, 0, 0, 0.45),
      0 0 0 0 rgba(167, 139, 250, 0.55),
      0 0 28px rgba(124, 58, 237, 0.22);
  }
  45% {
    box-shadow:
      0 20px 48px rgba(0, 0, 0, 0.48),
      0 0 0 4px rgba(167, 139, 250, 0.28),
      0 0 36px rgba(236, 72, 153, 0.35);
  }
  100% {
    box-shadow:
      0 18px 44px rgba(0, 0, 0, 0.45),
      0 0 0 1px rgba(255, 255, 255, 0.05) inset,
      0 0 28px rgba(124, 58, 237, 0.22);
  }
}

.chats-screen .chats-app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  padding-bottom: calc(var(--bottom-nav-height) + env(safe-area-inset-bottom, 0) + 8px);
}

.chats-header {
  padding: 18px 16px 10px;
}

.chats-title {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  color: #f8fafc;
}

.chats-subtitle {
  margin: 4px 0 0;
  font-size: 0.8125rem;
  color: #94a3b8;
}

.chats-list-wrap {
  flex: 1;
  padding: 0 14px 8px;
}

.chats-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chats-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 10px 13px 14px;
  border-radius: 18px;
  text-decoration: none;
  color: inherit;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.05), rgba(255, 255, 255, 0.02)),
    rgba(15, 15, 22, 0.72);
  border: 1px solid rgba(148, 163, 184, 0.14);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: background 0.22s ease, border-color 0.22s ease, transform 0.18s ease, box-shadow 0.22s ease;
}

.chats-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  border-radius: 18px 0 0 18px;
  background: transparent;
  transition: background 0.22s ease;
}

.chats-item:active {
  transform: scale(0.985);
}

.chats-item.is-unread {
  background:
    linear-gradient(135deg, rgba(124, 58, 237, 0.16), rgba(236, 72, 153, 0.06)),
    rgba(18, 12, 30, 0.88);
  border-color: rgba(167, 139, 250, 0.32);
  box-shadow:
    0 10px 28px rgba(76, 29, 149, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.chats-item.is-unread::before {
  background: linear-gradient(180deg, #a78bfa, #ec4899);
}

.chats-item.is-new {
  animation: chatListPulse 0.85s ease;
}

@keyframes chatListPulse {
  0% { transform: scale(0.98); box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.28); }
  100% { transform: scale(1); box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18); }
}

.chats-item-avatar-wrap {
  position: relative;
  flex: 0 0 auto;
  padding: 2px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(148, 163, 184, 0.35), rgba(148, 163, 184, 0.08));
  overflow: visible;
}

.chats-item.is-unread .chats-item-avatar-wrap {
  background: linear-gradient(135deg, #a78bfa, #ec4899);
}

.chats-item-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
  border: 2px solid #0f0f14;
}

.chats-item-dot {
  position: absolute;
  top: calc(50% + 18px);
  left: calc(50% + 18px);
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #34d399;
  border: 2px solid #0f0f14;
  box-shadow: 0 0 0 1px rgba(52, 211, 153, 0.2);
  transform: translate(-50%, -50%);
  z-index: 2;
  pointer-events: none;
}

.chats-item-body {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 5px;
  padding-right: 6px;
}

.chats-item-top,
.chats-item-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.chats-item-top {
  align-items: center;
}

.chats-item-name {
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f8fafc;
  letter-spacing: -0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chats-item.is-unread .chats-item-name {
  color: #fff;
}

.chats-item-time {
  font-size: 0.6875rem;
  color: #64748b;
  white-space: nowrap;
}

.chats-item-preview {
  flex: 1;
  min-width: 0;
  font-size: 0.8125rem;
  line-height: 1.35;
  color: #94a3b8;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 10px;
}

.chats-item.is-unread .chats-item-preview {
  color: #e2e8f0;
  font-weight: 500;
}

.chats-item-badge {
  flex: 0 0 auto;
  align-self: center;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 700;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.35);
}

.chats-item-chevron {
  flex: 0 0 auto;
  width: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #475569;
  opacity: 0.85;
}

.chats-item.is-unread .chats-item-chevron {
  color: #c4b5fd;
}

.chats-item-chevron-ico {
  width: 18px;
  height: 18px;
  fill: currentColor;
  transform: scaleX(-1);
}

.chats-empty {
  padding: 3rem 1.25rem;
  text-align: center;
}

.chats-empty-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 12px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(124, 58, 237, 0.12);
  color: #c4b5fd;
}

.chats-empty-icon .ico {
  width: 28px;
  height: 28px;
  fill: currentColor;
}

.chats-empty-title {
  margin: 0;
  font-size: 1rem;
  font-weight: 600;
  color: #e2e8f0;
}

.chats-empty-text {
  margin: 6px 0 0;
  font-size: 0.8125rem;
  color: #64748b;
}

.chat-thread-screen .chat-thread-app {
  display: flex;
  flex-direction: column;
  min-height: 100dvh;
  background: #07070b;
}

.chat-thread-header {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 64px;
  padding: calc(env(safe-area-inset-top, 0) + 14px) 12px 14px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 7, 11, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.chat-thread-back,
.chat-thread-video {
  flex: 0 0 auto;
  border: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.chat-thread-back {
  width: auto;
  min-width: 0;
  height: auto;
  padding: 2px 0;
  margin-right: -2px;
  border-radius: 0;
  color: #f1f5f9;
  background: transparent;
  text-decoration: none;
}

.chat-thread-video {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.28);
}

.chat-thread-back .ico {
  width: 24px;
  height: 24px;
  fill: currentColor;
}

.chat-thread-video .ico {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.chat-thread-head-main {
  min-width: 0;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}

.chat-thread-head-main:active {
  opacity: 0.82;
}

.chat-thread-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  flex: 0 0 auto;
}

.chat-thread-head-text {
  min-width: 0;
}

.chat-thread-name {
  margin: 0;
  font-size: 0.9375rem;
  font-weight: 700;
  color: #f8fafc;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-thread-status {
  margin: 2px 0 0;
  font-size: 0.6875rem;
  color: #94a3b8;
}

.chat-thread-status.is-online {
  color: #34d399;
}

.chat-thread-status.is-recent {
  color: #94a3b8;
}

.chat-thread-status.is-offline {
  color: #94a3b8;
}

.chat-thread-body {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
}

.chat-messages {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 14px 12px calc(env(safe-area-inset-bottom, 0) + 88px);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.chat-bubble-row {
  display: flex;
}

.chat-bubble-row.is-theirs {
  justify-content: flex-start;
}

.chat-bubble-row.is-mine {
  justify-content: flex-end;
}

.chat-bubble {
  max-width: min(82%, 320px);
  padding: 10px 12px 8px;
  border-radius: 16px;
  font-size: 0.875rem;
  line-height: 1.4;
  color: #f1f5f9;
  position: relative;
  word-break: break-word;
}

.chat-bubble-row.is-theirs .chat-bubble {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-bottom-left-radius: 6px;
}

.chat-bubble-row.is-mine .chat-bubble {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.85), rgba(217, 70, 239, 0.75));
  border-bottom-right-radius: 6px;
  box-shadow: 0 8px 20px rgba(124, 58, 237, 0.22);
}

.chat-bubble-time {
  display: block;
  margin-top: 4px;
  font-size: 0.625rem;
  color: rgba(226, 232, 240, 0.62);
  text-align: right;
}

.chat-reply-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px calc(env(safe-area-inset-bottom, 0) + 10px);
  border-top: 1px solid rgba(148, 163, 184, 0.12);
  background: rgba(7, 7, 11, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.chat-reply-input {
  flex: 1;
  min-width: 0;
  height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.05);
  color: #f8fafc;
  font-size: 0.875rem;
  font-family: inherit;
}

.chat-reply-input:focus {
  outline: none;
  border-color: rgba(167, 139, 250, 0.45);
  box-shadow: 0 0 0 3px rgba(124, 58, 237, 0.18);
}

.chat-reply-send {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(124, 58, 237, 0.28);
}

.chat-reply-send .ico {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.chat-profile-sheet.model-detail {
  z-index: 110;
}

.chat-profile-sheet .model-detail-panel {
  padding-bottom: calc(env(safe-area-inset-bottom, 0) + 12px);
}
