:root {
  color-scheme: dark;
  --ink: #ffffff;
  --muted: rgba(255, 255, 255, 0.74);
  --quiet: rgba(255, 255, 255, 0.58);
  --line: rgba(255, 255, 255, 0.14);
  --bg: #080708;
  --rose: #ff4d78;
  --coral: #ff6b55;
  --teal: #3be3d0;
  --champagne: #f4c968;
  /*
    Telegram WebApp: env(safe-area-inset-*) is the full-screen notch inset; Telegram
    already lays out below its chrome. Use content-area insets when provided so we do
    not stack duplicate top spacing inside the Mini App.
  */
  --safe-top: var(--tg-content-safe-area-inset-top, env(safe-area-inset-top, 0px));
  --safe-bottom: var(--tg-content-safe-area-inset-bottom, env(safe-area-inset-bottom, 0px));
  /* When bottom tab bar is visible, main height subtracts this so touches hit the bar (Telegram WebView). */
  --app-bottom-offset: 0px;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  height: 100%;
  margin: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  overflow: hidden;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

.app-screen.is-hidden {
  display: none;
}

.language-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 0;
  width: 100%;
  isolation: isolate;
  overflow: hidden;
  padding: max(18px, var(--safe-top)) 18px calc(18px + var(--safe-bottom));
  background:
    radial-gradient(88% 52% at 18% 10%, rgba(59, 227, 208, 0.16), transparent 62%),
    radial-gradient(84% 48% at 92% 26%, rgba(255, 77, 120, 0.2), transparent 64%),
    linear-gradient(180deg, #101010 0%, #080708 58%, #050505 100%);
}

.language-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.25;
  background-image: url("https://images.unsplash.com/photo-1529156069898-49953e39b3ac?auto=format&fit=crop&w=1200&q=82");
  background-position: 50% 35%;
  background-size: cover;
  filter: blur(22px) saturate(0.82) brightness(0.45);
  transform: scale(1.12);
}

.language-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, rgba(8, 7, 8, 0.72), rgba(8, 7, 8, 0.98));
}

.language-topbar {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  opacity: 0;
  transform: translateY(-10px);
  animation: topbarEnter 650ms cubic-bezier(0.16, 1, 0.3, 1) 120ms forwards;
}

.language-copy {
  flex: 0 0 auto;
  display: grid;
  gap: 14px;
}

.language-shell .entry-panel {
  flex: 0 0 auto;
  margin-top: auto;
}

.language-copy h1 {
  max-width: 10ch;
  margin: 0;
  color: white;
  font-size: clamp(42px, 12vw, 62px);
  font-weight: 840;
  letter-spacing: 0;
  line-height: 0.94;
  opacity: 0;
  transform: translateY(18px);
  animation: copyEnter 720ms cubic-bezier(0.16, 1, 0.3, 1) 240ms forwards;
}

.language-copy p:not(.eyebrow) {
  max-width: 34ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 560;
  line-height: 1.44;
  opacity: 0;
  transform: translateY(16px);
  animation: copyEnter 720ms cubic-bezier(0.16, 1, 0.3, 1) 340ms forwards;
}

.language-options {
  flex: 0 0 auto;
  display: grid;
  gap: 10px;
  opacity: 0;
  transform: translateY(18px);
  animation: copyEnter 720ms cubic-bezier(0.16, 1, 0.3, 1) 440ms forwards;
}

.language-option {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  min-height: 68px;
  gap: 14px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.055);
  color: white;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.16);
  text-align: left;
  transition:
    border-color 170ms ease,
    box-shadow 170ms ease,
    transform 170ms ease,
    background-color 170ms ease;
}

.language-option:active {
  transform: scale(0.98);
}

.language-option span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 720;
  line-height: 1;
}

.language-option strong {
  color: white;
  font-size: 18px;
  font-weight: 840;
  line-height: 1;
}

.language-option[aria-pressed="true"] {
  border-color: rgba(255, 190, 143, 0.36);
  background:
    linear-gradient(135deg, rgba(255, 132, 74, 0.22), rgba(255, 107, 85, 0.16)),
    rgba(255, 255, 255, 0.075);
  box-shadow:
    0 18px 42px rgba(255, 107, 85, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.welcome-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: clamp(12px, 3svh, 22px);
  min-height: 0;
  width: 100%;
  isolation: isolate;
  overflow: hidden;
  padding: max(52px, var(--safe-top)) 18px calc(18px + var(--safe-bottom));
}

.welcome-shell .topbar {
  flex: 0 0 auto;
  margin-top: 12px;
}

.welcome-shell .entry-panel {
  flex: 0 0 auto;
  margin-top: auto;
}

/* Welcome hero: wider measure for AZ/RU lines; clearer title + sub spacing */
.welcome-shell .hero-copy {
  margin-top: clamp(12px, 2.5svh, 22px);
  padding-top: clamp(8px, 2.5svh, 28px);
  padding-bottom: clamp(8px, 2svh, 20px);
}

.welcome-shell .hero-copy h1 {
  max-width: min(18ch, 92vw);
  line-height: 0.96;
}

.welcome-shell .subheadline {
  max-width: min(38ch, 92vw);
  margin-top: clamp(12px, 2.2svh, 18px);
  line-height: 1.42;
  text-wrap: balance;
}

.ambient-photo {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: url("https://images.unsplash.com/photo-1519671482749-fd09be7ccebf?auto=format&fit=crop&w=1200&q=84");
  background-size: cover;
  background-position: 50% 50%;
  filter: saturate(0.92) contrast(1.08) brightness(0.67);
  transform: scale(1.04);
  animation: photoEnter 1150ms cubic-bezier(0.16, 1, 0.3, 1) forwards,
    photoDrift 18s ease-in-out 1200ms infinite alternate;
}

.surface-wash {
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(180deg, rgba(8, 7, 8, 0.78) 0%, rgba(8, 7, 8, 0.1) 34%),
    linear-gradient(0deg, rgba(8, 7, 8, 0.95) 0%, rgba(8, 7, 8, 0.68) 33%, rgba(8, 7, 8, 0.18) 64%),
    radial-gradient(92% 58% at 22% 72%, rgba(255, 77, 120, 0.34), transparent 64%),
    radial-gradient(86% 62% at 86% 52%, rgba(59, 227, 208, 0.18), transparent 66%),
    linear-gradient(135deg, rgba(255, 107, 85, 0.18), transparent 38%);
}

.surface-wash::after {
  position: absolute;
  inset: 0;
  content: "";
  opacity: 0.16;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: linear-gradient(180deg, transparent 0%, black 45%, transparent 100%);
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  opacity: 0;
  transform: translateY(-10px);
  animation: topbarEnter 650ms cubic-bezier(0.16, 1, 0.3, 1) 180ms forwards;
}

.wordmark {
  color: var(--ink);
  font-size: 26px;
  font-weight: 780;
  letter-spacing: 0;
  line-height: 1;
  text-decoration: none;
}

.hero-copy {
  flex: 0 0 auto;
  width: min(100%, 460px);
  margin-top: 18px;
  padding-top: clamp(10px, 3.8svh, 30px);
  padding-bottom: clamp(10px, 2.5svh, 24px);
}

.eyebrow {
  width: fit-content;
  margin: 0 0 13px;
  padding: 7px 9px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(8, 7, 8, 0.28);
  color: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(12px);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  opacity: 0;
  transform: translateY(14px);
  animation: copyEnter 670ms cubic-bezier(0.16, 1, 0.3, 1) 360ms forwards;
}

.hero-copy h1 {
  max-width: 10ch;
  margin: 0;
  font-size: clamp(48px, 14vw, 74px);
  font-weight: 820;
  letter-spacing: 0;
  line-height: 0.92;
  text-wrap: balance;
  opacity: 0;
  transform: translateY(18px);
  text-shadow: 0 20px 56px rgba(0, 0, 0, 0.42);
  animation: copyEnter 760ms cubic-bezier(0.16, 1, 0.3, 1) 450ms forwards;
}

.subheadline {
  max-width: 33ch;
  margin: 14px 0 0;
  color: var(--muted);
  font-size: clamp(17px, 4.2vw, 19px);
  font-weight: 540;
  letter-spacing: 0;
  line-height: 1.48;
  opacity: 0;
  transform: translateY(16px);
  animation: copyEnter 760ms cubic-bezier(0.16, 1, 0.3, 1) 570ms forwards;
}

.entry-panel {
  display: grid;
  gap: 10px;
  opacity: 0;
  transform: translateY(22px);
  animation: ctaEnter 780ms cubic-bezier(0.16, 1, 0.3, 1) 710ms forwards;
}

.primary-cta {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 58px;
  width: 100%;
  overflow: hidden;
  border: 0;
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.24), transparent 24%),
    linear-gradient(135deg, var(--rose), var(--coral) 58%, var(--champagne));
  color: white;
  box-shadow:
    0 18px 44px rgba(255, 77, 120, 0.28),
    0 2px 0 rgba(255, 255, 255, 0.18) inset,
    0 -1px 0 rgba(0, 0, 0, 0.18) inset;
  cursor: pointer;
  font-size: 16px;
  font-weight: 780;
  letter-spacing: 0;
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    filter 160ms ease;
}

.primary-cta::before {
  position: absolute;
  inset: 1px;
  content: "";
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  pointer-events: none;
}

.primary-cta:active,
.primary-cta.is-pressed {
  transform: scale(0.97);
  filter: brightness(1.08);
  box-shadow:
    0 10px 28px rgba(255, 77, 120, 0.24),
    0 2px 0 rgba(255, 255, 255, 0.2) inset;
}

.cta-glint {
  position: absolute;
  top: -40%;
  bottom: -40%;
  left: -35%;
  width: 28%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.6), transparent);
  transform: skewX(-18deg) translateX(-120%);
  pointer-events: none;
}

.primary-cta.is-loading .cta-glint {
  animation: sweep 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

.secondary-cta {
  min-height: 46px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--quiet);
  cursor: pointer;
  font-size: 14px;
  font-weight: 680;
  letter-spacing: 0;
  transition:
    color 160ms ease,
    background-color 160ms ease,
    transform 160ms ease;
}

.secondary-cta:active {
  transform: scale(0.98);
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.onboarding-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  min-height: 0;
  width: 100%;
  isolation: isolate;
  overflow: hidden auto;
  padding: max(10px, var(--safe-top)) 15px calc(18px + var(--safe-bottom));
  background:
    radial-gradient(86% 54% at 24% 7%, rgba(255, 77, 120, 0.28), transparent 60%),
    radial-gradient(78% 48% at 96% 31%, rgba(59, 227, 208, 0.16), transparent 64%),
    linear-gradient(180deg, #111010 0%, #080708 58%, #050505 100%);
}

.onboarding-shell > .onboarding-topbar,
.onboarding-shell > .onboarding-intro,
.onboarding-shell > .onboarding-form,
.onboarding-shell > .onboarding-action {
  flex: 0 0 auto;
  min-width: 0;
}

.onboarding-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.4;
  background-image: url("https://images.unsplash.com/photo-1506869640319-fe1a24fd76dc?auto=format&fit=crop&w=1200&q=82");
  background-position: 50% 18%;
  background-size: cover;
  filter: blur(18px) saturate(0.88) brightness(0.48);
  transform: scale(1.12);
}

.onboarding-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(8, 7, 8, 0.74), rgba(8, 7, 8, 0.95)),
    linear-gradient(90deg, rgba(255, 107, 85, 0.18), rgba(59, 227, 208, 0.08));
}

.onboarding-shell.is-active .onboarding-topbar,
.onboarding-shell.is-active .onboarding-intro,
.onboarding-shell.is-active .choice-group,
.onboarding-shell.is-active .onboarding-action {
  opacity: 0;
  transform: translateY(18px);
  animation: copyEnter 660ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.onboarding-shell.is-active .onboarding-topbar {
  animation-delay: 80ms;
}

.onboarding-shell.is-active .onboarding-intro {
  animation-delay: 150ms;
}

.onboarding-shell.is-active .choice-group:nth-of-type(1) {
  animation-delay: 230ms;
}

.onboarding-shell.is-active .choice-group:nth-of-type(2) {
  animation-delay: 310ms;
}

.onboarding-shell.is-active .choice-group:nth-of-type(3) {
  animation-delay: 390ms;
}

.onboarding-shell.is-active .onboarding-action {
  animation-delay: 470ms;
}

.onboarding-shell.is-active > .onboarding-action {
  animation: copyEnter 660ms cubic-bezier(0.16, 1, 0.3, 1) 470ms forwards;
}

.onboarding-topbar {
  display: grid;
  grid-template-columns: 38px 1fr;
  align-items: center;
  gap: 10px;
}

.back-button {
  position: relative;
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}

.back-button span {
  width: 10px;
  height: 10px;
  border-left: 2px solid rgba(255, 255, 255, 0.86);
  border-bottom: 2px solid rgba(255, 255, 255, 0.86);
  transform: rotate(45deg) translate(1px, -1px);
}

.back-button:active {
  transform: scale(0.96);
  background: rgba(255, 255, 255, 0.12);
}

.progress-unit {
  display: grid;
  gap: 6px;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 720;
  line-height: 1;
}

.progress-meta span:first-child {
  color: white;
}

.progress-track {
  height: 5px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.progress-track span {
  display: block;
  width: 33.333%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose), var(--coral), var(--champagne));
  box-shadow: 0 0 20px rgba(255, 77, 120, 0.42);
}

.onboarding-intro {
  padding-top: 0;
}

.eyebrow.compact {
  margin-bottom: 7px;
  opacity: 1;
  transform: none;
  animation: none;
}

.onboarding-intro h2 {
  max-width: 15ch;
  margin: 0;
  color: white;
  font-size: clamp(32px, 8.8vw, 42px);
  font-weight: 830;
  letter-spacing: 0;
  line-height: 1;
  text-wrap: balance;
}

.onboarding-intro p:not(.eyebrow) {
  max-width: 35ch;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 500;
  line-height: 1.38;
}

/* Onboarding step 1: clearer hierarchy + longer locale copy */
.onboarding-intro--step1 h2 {
  max-width: min(22ch, 100%);
}

.onboarding-intro--step1 p:not(.eyebrow) {
  max-width: none;
  margin-top: 10px;
  line-height: 1.45;
}

.onboarding-form {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
}

.onboarding-form--step1 {
  gap: 20px;
}

.onboarding-form--step1 .choice-group[data-choice-group="intent"] {
  margin-top: 2px;
  padding: 14px 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: 14px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.07) 0%, rgba(255, 255, 255, 0.02) 45%, transparent 100%),
    rgba(0, 0, 0, 0.2);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 16px 40px rgba(0, 0, 0, 0.32);
}

.onboarding-form--step1 .choice-group[data-choice-group="intent"] legend {
  margin-bottom: 10px;
}

.onboarding-form--step1 .choice-pill[aria-pressed="false"] {
  border-color: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.92);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14), rgba(255, 255, 255, 0.06)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 26px rgba(0, 0, 0, 0.22);
}

.onboarding-form--step1 .choice-pill[aria-pressed="true"] {
  border-color: rgba(255, 200, 190, 0.45);
  box-shadow:
    0 0 0 2px rgba(255, 107, 85, 0.5),
    0 14px 36px rgba(255, 77, 120, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.onboarding-form--step1 .intent-card[aria-pressed="false"] {
  border-color: rgba(255, 255, 255, 0.14);
}

.onboarding-form--step1 .intent-card[aria-pressed="true"] {
  border-color: rgba(255, 200, 190, 0.48);
  box-shadow:
    0 0 0 2px rgba(255, 107, 85, 0.45),
    0 16px 38px rgba(255, 77, 120, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.onboarding-form--step1 .choice-pill:focus-visible,
.onboarding-form--step1 .intent-card:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px rgba(8, 7, 8, 0.95),
    0 0 0 4px rgba(255, 107, 85, 0.55);
}

.onboarding-form--step1 .choice-pill[aria-pressed="true"]:focus-visible,
.onboarding-form--step1 .intent-card[aria-pressed="true"]:focus-visible {
  box-shadow:
    0 0 0 2px rgba(8, 7, 8, 0.95),
    0 0 0 4px rgba(255, 180, 160, 0.75),
    0 14px 36px rgba(255, 77, 120, 0.3);
}

.choice-group {
  display: grid;
  gap: 10px;
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.choice-group legend {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0;
}

.pill-grid {
  display: grid;
  gap: 10px;
}

.pill-grid.three {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.name-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
  align-items: start;
  padding-top: 4px;
  max-height: 140px;
  opacity: 1;
  overflow: hidden;
  transform: translateY(0);
  transition:
    max-height 220ms cubic-bezier(0.16, 1, 0.3, 1),
    opacity 180ms ease,
    transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
    padding-top 220ms cubic-bezier(0.16, 1, 0.3, 1);
}

.name-fields.is-hidden {
  display: none;
}

.name-fields.is-collapsed {
  max-height: 0;
  opacity: 0;
  pointer-events: none;
  padding-top: 0;
  transform: translateY(-6px);
}

.name-fields .name-field,
.name-fields label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.name-fields .name-field__label,
.name-fields label span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: none;
}

.name-fields input {
  width: 100%;
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  outline: 0;
  background: linear-gradient(180deg, rgba(40, 40, 44, 0.98) 0%, rgba(22, 22, 26, 0.99) 100%);
  color: rgba(255, 255, 255, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 2px 10px rgba(0, 0, 0, 0.22);
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
}

.name-fields input::placeholder {
  color: rgba(255, 255, 255, 0.36);
}

.name-fields input:hover:not(:focus):not(:disabled) {
  border-color: rgba(255, 255, 255, 0.2);
}

.name-fields input:focus {
  border-color: rgba(255, 140, 72, 0.95);
  background: linear-gradient(180deg, rgba(44, 40, 38, 0.99) 0%, rgba(26, 24, 22, 0.99) 100%);
  box-shadow:
    0 0 0 1px rgba(255, 120, 60, 0.45),
    0 0 0 4px rgba(255, 120, 60, 0.14),
    inset 0 1px 0 rgba(255, 200, 160, 0.06);
}

.name-fields input:focus-visible {
  outline: none;
}

.choice-pill,
.intent-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.055)),
    rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.82);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 12px 30px rgba(0, 0, 0, 0.18);
  cursor: pointer;
  backdrop-filter: blur(16px);
  transition:
    border-color 170ms ease,
    background-color 170ms ease,
    box-shadow 170ms ease,
    color 170ms ease,
    transform 170ms ease;
}

.choice-pill {
  display: grid;
  place-items: center;
  min-height: 44px;
  padding: 0 8px;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.05;
}

.choice-pill:active,
.intent-card:active {
  transform: scale(0.97);
}

.choice-pill[aria-pressed="true"],
.intent-card[aria-pressed="true"] {
  border-color: rgba(255, 255, 255, 0.3);
  background:
    linear-gradient(135deg, rgba(255, 77, 120, 0.86), rgba(255, 107, 85, 0.72)),
    rgba(255, 255, 255, 0.14);
  color: white;
  box-shadow:
    0 16px 34px rgba(255, 77, 120, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.choice-pill[aria-pressed="true"]::after,
.intent-card[aria-pressed="true"]::after {
  position: absolute;
  inset: 1px;
  content: "";
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  pointer-events: none;
}

.intent-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.intent-card {
  display: grid;
  min-height: 96px;
  align-content: start;
  gap: 7px;
  padding: 12px;
  text-align: left;
}

.intent-card > span:not(.intent-mark) {
  color: white;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
}

.intent-card small {
  max-width: 13ch;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11px;
  font-weight: 620;
  line-height: 1.25;
}

.intent-card[aria-pressed="true"] small {
  color: rgba(255, 255, 255, 0.78);
}

.intent-mark {
  width: 25px;
  height: 25px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.28), rgba(255, 255, 255, 0)),
    rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.intent-mark.dating {
  background-color: rgba(255, 77, 120, 0.5);
}

.intent-mark.flirting {
  background-color: rgba(244, 201, 104, 0.44);
}

.intent-mark.friends {
  background-color: rgba(59, 227, 208, 0.36);
}

.intent-mark.chat {
  background-color: rgba(255, 255, 255, 0.18);
}

.onboarding-action {
  display: grid;
  gap: 9px;
  z-index: 5;
  margin-inline: 0;
  padding: 4px 0 0;
  background: transparent;
}

.onboarding-shell > .onboarding-action {
  width: 100%;
}

.selection-hint {
  min-height: 16px;
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 11.5px;
  font-weight: 680;
  line-height: 1.35;
  text-align: center;
}

.photo-shell .selection-hint {
  display: none;
}

.selection-hint.is-ready {
  color: rgba(59, 227, 208, 0.84);
}

.primary-cta:disabled {
  cursor: not-allowed;
  filter: grayscale(0.16) brightness(0.72);
  opacity: 0.62;
  box-shadow:
    0 10px 24px rgba(0, 0, 0, 0.18),
    0 1px 0 rgba(255, 255, 255, 0.14) inset;
}

.primary-cta:disabled:active {
  transform: none;
}

.primary-cta.continue-step {
  min-height: 52px;
}

.photo-shell .onboarding-action .primary-cta {
  min-height: 56px;
  border-radius: 16px;
  background: linear-gradient(90deg, #ec407a 0%, #ff7043 45%, #ff9800 100%);
  color: #fff;
  font-size: 16px;
  font-weight: 820;
  letter-spacing: 0.01em;
  box-shadow:
    0 14px 40px rgba(233, 30, 99, 0.32),
    0 2px 0 rgba(255, 255, 255, 0.2) inset;
}

.photo-shell .onboarding-action .primary-cta::before {
  border-radius: 15px;
}

.photo-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto auto auto;
  align-content: start;
  gap: 10px;
  min-height: 0;
  width: 100%;
  isolation: isolate;
  overflow: hidden auto;
  padding: max(10px, var(--safe-top)) 18px calc(18px + var(--safe-bottom));
  background:
    radial-gradient(84% 48% at 16% 9%, rgba(255, 77, 120, 0.22), transparent 62%),
    radial-gradient(82% 52% at 94% 20%, rgba(59, 227, 208, 0.14), transparent 62%),
    linear-gradient(180deg, #101010 0%, #080708 54%, #050505 100%);
}

.photo-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.32;
  background-image: url("https://images.unsplash.com/photo-1492684223066-81342ee5ff30?auto=format&fit=crop&w=1200&q=82");
  background-position: 50% 20%;
  background-size: cover;
  filter: blur(20px) saturate(0.82) brightness(0.46);
  transform: scale(1.12);
}

.photo-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(8, 7, 8, 0.72), rgba(8, 7, 8, 0.98)),
    radial-gradient(80% 54% at 50% 40%, rgba(255, 255, 255, 0.08), transparent 62%);
}

.photo-shell.is-active .onboarding-topbar,
.photo-shell.is-active .photo-intro,
.photo-shell.is-active .photo-uploader,
.photo-shell.is-active .photo-guidance,
.photo-shell.is-active .ai-photo-note,
.photo-shell.is-active .onboarding-action {
  opacity: 0;
  transform: translateY(18px);
  animation: copyEnter 660ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.photo-shell.is-active .onboarding-topbar {
  animation-delay: 70ms;
}

.photo-shell.is-active .photo-intro {
  animation-delay: 140ms;
}

.photo-shell.is-active .photo-uploader {
  animation-delay: 220ms;
}

.photo-shell.is-active .photo-guidance {
  animation-delay: 320ms;
}

.photo-shell.is-active .ai-photo-note {
  animation-delay: 400ms;
}

.photo-shell.is-active .onboarding-action {
  animation-delay: 470ms;
}

.progress-track.progress-two span {
  width: 66.666%;
  background: linear-gradient(90deg, #ff6d00, #ffca28, #ffeb3b);
  box-shadow: 0 0 12px rgba(255, 193, 7, 0.45);
}

.photo-intro h2 {
  max-width: 16ch;
  margin-bottom: 4px;
  line-height: 1.08;
}

.photo-shell .onboarding-intro h2 {
  margin-bottom: 1px;
}

.photo-shell .onboarding-intro p:not(.eyebrow) {
  margin-top: 6px;
}

.photo-uploader {
  position: relative;
  display: grid;
  gap: 12px;
  margin-top: 4px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  clip-path: inset(50%);
}

.upload-dropzone {
  position: relative;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.11), rgba(255, 255, 255, 0.04)),
    rgba(255, 255, 255, 0.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 18px 38px rgba(0, 0, 0, 0.22);
  backdrop-filter: blur(18px);
  transition:
    border-color 170ms ease,
    transform 170ms ease,
    background-color 170ms ease,
    box-shadow 170ms ease;
}

.upload-dropzone.is-dragging {
  border-color: rgba(59, 227, 208, 0.52);
  background:
    linear-gradient(135deg, rgba(59, 227, 208, 0.16), rgba(255, 77, 120, 0.1)),
    rgba(255, 255, 255, 0.08);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 16px 36px rgba(59, 227, 208, 0.12);
  transform: translateY(-1px);
}

.upload-trigger {
  display: grid;
  grid-template-columns: 44px 1fr;
  align-items: center;
  width: 100%;
  min-height: 74px;
  gap: 11px;
  padding: 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: white;
  cursor: pointer;
  text-align: left;
}

.upload-trigger span:not(.upload-icon) {
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
}

.upload-trigger small {
  display: none;
}

.upload-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--rose), var(--coral));
  box-shadow: 0 12px 24px rgba(255, 77, 120, 0.24);
  font-size: 28px;
  font-weight: 440;
  line-height: 1;
}

.photo-count-row {
  display: none;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12px;
  font-weight: 740;
  line-height: 1;
}

.photo-count-row span:last-child {
  color: rgba(244, 201, 104, 0.86);
}

.photo-count-row.is-ready span:last-child {
  color: rgba(59, 227, 208, 0.86);
}

.photo-meter {
  display: none;
  height: 6px;
  overflow: hidden;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
}

.photo-meter span {
  display: block;
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose), var(--coral), var(--champagne));
  box-shadow: 0 0 18px rgba(255, 77, 120, 0.34);
  transition: width 240ms cubic-bezier(0.16, 1, 0.3, 1);
}

.photo-grid {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: min(58vh, 500px);
  min-height: 0;
  padding: 0 2px 2px 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-gutter: stable;
  border-radius: 4px;
  transition: outline 160ms ease, background 160ms ease;
}

.photo-grid[data-dropzone].is-dragging {
  background: rgba(59, 227, 208, 0.08);
  outline: 2px dashed rgba(59, 227, 208, 0.45);
  outline-offset: 2px;
}

.photo-pick-bar {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  align-items: center;
  gap: 10px;
  width: 100%;
}

.photo-pick-pills {
  display: flex;
  flex: 1;
  min-width: 0;
  gap: 8px;
  align-items: center;
  justify-content: flex-start;
}

.photo-pick {
  position: relative;
  display: inline-grid;
  place-items: center;
  z-index: 0;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  background: #252528;
  color: rgba(255, 255, 255, 0.88);
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  background-position: center;
  background-size: cover;
  box-shadow: none;
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background-color 160ms ease;
}

.photo-pick::after {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
  border-radius: inherit;
  background: linear-gradient(180deg, transparent 0%, rgba(0, 0, 0, 0.2) 45%, rgba(0, 0, 0, 0.58) 100%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 160ms ease;
}

.photo-pick.has-image::after {
  opacity: 1;
}

.photo-pick.has-image {
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.12);
}

.photo-pick-label {
  position: relative;
  z-index: 1;
  pointer-events: none;
}

.photo-pick:hover {
  background-color: #2d2d32;
  transform: translateY(-0.5px);
}

.photo-pick:hover:not([aria-selected="true"]):not(.is-active) {
  border-color: rgba(255, 255, 255, 0.06);
}

.photo-pick:active {
  transform: scale(0.96);
}

.photo-pick[aria-selected="true"],
.photo-pick.is-active {
  border-color: #e91e63;
  box-shadow: 0 0 0 1px rgba(233, 30, 99, 0.35);
}

.photo-pick[aria-selected="true"]::after,
.photo-pick.is-active::after {
  opacity: 0.4;
}

.photo-pick[aria-selected="true"].has-image::after,
.photo-pick.is-active.has-image::after {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.12), rgba(0, 0, 0, 0.45));
  opacity: 0.55;
}

.photo-pick:focus-visible {
  outline: 2px solid rgba(59, 227, 208, 0.85);
  outline-offset: 2px;
}

.photo-stage-panel {
  flex: 1 1 auto;
  min-height: 200px;
  display: block;
}

.photo-slot {
  position: relative;
  display: grid;
  min-height: 96px;
  overflow: hidden;
  align-content: end;
  gap: 5px;
  padding: 10px;
  border: 1px dashed rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    rgba(255, 255, 255, 0.055);
  background-position: center;
  background-size: cover;
  color: white;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition:
    border-color 170ms ease,
    box-shadow 170ms ease,
    transform 170ms ease,
    filter 170ms ease;
}

.photo-stage-panel .photo-slot.primary,
.photo-uploader .photo-grid .photo-slot.primary {
  width: 100%;
  min-height: min(42vh, 280px);
}

.photo-uploader .photo-stage-panel .photo-slot.photo-stage:not(.has-image) {
  align-content: start;
  justify-items: start;
  gap: 10px;
  padding: 16px 14px 18px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-style: solid;
  background: linear-gradient(165deg, rgba(44, 44, 48, 0.97) 0%, rgba(18, 18, 20, 0.99) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.photo-uploader .photo-stage-panel .photo-slot.photo-stage:not(.has-image)::before {
  opacity: 0.12;
}

.photo-count-badge {
  flex: 0 0 auto;
  margin-left: auto;
  position: static;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(20, 20, 22, 0.92);
  color: rgba(255, 255, 255, 0.88);
  font-size: 11px;
  font-weight: 780;
  line-height: 1;
  letter-spacing: 0.02em;
  backdrop-filter: blur(8px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.photo-slot::before {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, transparent 22%, rgba(0, 0, 0, 0.64)),
    radial-gradient(64% 52% at 50% 16%, rgba(255, 255, 255, 0.12), transparent 72%);
  opacity: 0.84;
  pointer-events: none;
}

.photo-slot:active {
  transform: scale(0.98);
}

.photo-slot.has-image {
  border-style: solid;
  border-color: rgba(255, 255, 255, 0.22);
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.photo-slot.has-image::before {
  opacity: 1;
}

.slot-label,
.slot-plus,
.slot-hint {
  position: relative;
  z-index: 1;
}

.slot-label {
  font-size: 12px;
  font-weight: 800;
  line-height: 1;
}

.slot-plus {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.86);
  font-size: 21px;
  font-weight: 420;
  line-height: 1;
  backdrop-filter: blur(10px);
}

.slot-hint {
  color: rgba(255, 255, 255, 0.58);
  font-size: 11px;
  font-weight: 650;
  line-height: 1.18;
}

.photo-slot.has-image .slot-label,
.photo-slot.has-image .slot-plus,
.photo-slot.has-image .slot-hint {
  display: none;
}

.edit-photo {
  position: absolute;
  bottom: 7px;
  left: 7px;
  z-index: 2;
  display: none;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 120, 0.28);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.48);
  color: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.photo-slot.has-image .edit-photo {
  display: inline-grid;
  place-items: center;
}

.remove-photo {
  position: absolute;
  top: 7px;
  right: 7px;
  z-index: 2;
  display: none;
  min-height: 27px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.42);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
  backdrop-filter: blur(12px);
}

.photo-slot.has-image .remove-photo {
  display: inline-grid;
  place-items: center;
}

.photo-guidance {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.tip-card {
  min-height: 82px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(14px);
}

.tip-card span {
  display: block;
  margin-bottom: 7px;
  color: white;
  font-size: 12px;
  font-weight: 820;
  line-height: 1;
}

.tip-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 570;
  line-height: 1.28;
}

.tip-card.good {
  border-color: rgba(59, 227, 208, 0.18);
}

.tip-card.good span {
  color: rgba(59, 227, 208, 0.9);
}

.tip-card.avoid {
  border-color: rgba(255, 107, 85, 0.18);
}

.tip-card.avoid span {
  color: rgba(255, 137, 109, 0.9);
}

.ai-photo-note {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(59, 227, 208, 0.08), rgba(255, 77, 120, 0.08)),
    rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(14px);
}

.ai-photo-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 690;
  line-height: 1.32;
}

.profile-shell {
  position: relative;
  display: grid;
  grid-template-rows: auto auto auto auto auto auto auto;
  align-content: start;
  gap: 10px;
  min-height: 0;
  width: 100%;
  isolation: isolate;
  overflow: hidden auto;
  padding: max(10px, var(--safe-top)) 18px calc(18px + var(--safe-bottom));
  background:
    radial-gradient(82% 48% at 18% 8%, rgba(255, 77, 120, 0.24), transparent 62%),
    radial-gradient(78% 48% at 92% 22%, rgba(244, 201, 104, 0.13), transparent 64%),
    radial-gradient(78% 46% at 50% 72%, rgba(59, 227, 208, 0.1), transparent 66%),
    linear-gradient(180deg, #101010 0%, #080708 56%, #050505 100%);
}

/* Profile hub → single-topic subviews (same screen, filtered sections) */
.profile-shell[data-hub-mode="bio"] [data-profile-section="intro"],
.profile-shell[data-hub-mode="bio"] [data-profile-section="interests"] {
  display: none !important;
}

.profile-shell[data-hub-mode="interests"] [data-profile-section="intro"],
.profile-shell[data-hub-mode="interests"] [data-profile-section="bio"],
.profile-shell[data-hub-mode="interests"] [data-profile-section="vibe"] {
  display: none !important;
}

.profile-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.28;
  background-image: url("https://images.unsplash.com/photo-1529139574466-a303027c1d8b?auto=format&fit=crop&w=1200&q=82");
  background-position: 52% 18%;
  background-size: cover;
  filter: blur(20px) saturate(0.82) brightness(0.42);
  transform: scale(1.12);
}

.profile-backdrop::after {
  position: absolute;
  inset: 0;
  content: "";
  background:
    linear-gradient(180deg, rgba(8, 7, 8, 0.72), rgba(8, 7, 8, 0.98)),
    linear-gradient(90deg, rgba(255, 77, 120, 0.12), rgba(59, 227, 208, 0.08));
}

.profile-shell.is-active .onboarding-topbar,
.profile-shell.is-active .profile-intro,
.profile-shell.is-active .bio-panel,
.profile-shell.is-active .tag-section,
.profile-shell.is-active .identity-preview,
.profile-shell.is-active .onboarding-action {
  opacity: 0;
  transform: translateY(18px);
  animation: copyEnter 660ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.profile-shell.is-active .onboarding-topbar {
  animation-delay: 70ms;
}

.profile-shell.is-active .profile-intro {
  animation-delay: 140ms;
}

.profile-shell.is-active .bio-panel {
  animation-delay: 220ms;
}

.profile-shell.is-active .tag-section:nth-of-type(2) {
  animation-delay: 300ms;
}

.profile-shell.is-active .tag-section:nth-of-type(3) {
  animation-delay: 380ms;
}

.profile-shell.is-active .identity-preview {
  animation-delay: 450ms;
}

.profile-shell.is-active .onboarding-action {
  animation-delay: 510ms;
}

.progress-track.progress-three span {
  width: 100%;
}

.profile-intro h2 {
  max-width: 10ch;
}

.profile-shell .onboarding-intro h2 {
  margin-bottom: 1px;
}

.profile-shell .onboarding-intro p:not(.eyebrow) {
  margin-top: 6px;
}

.bio-panel,
.tag-section,
.identity-preview {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.bio-panel {
  display: grid;
  gap: 10px;
  padding: 13px;
}

.bio-head,
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.bio-head label,
.section-heading h3 {
  margin: 0;
  color: white;
  font-size: 13px;
  font-weight: 820;
  line-height: 1;
}

.bio-head span,
.section-heading span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 720;
  line-height: 1;
}

.bio-panel textarea {
  width: 100%;
  min-height: 104px;
  resize: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  outline: 0;
  background: rgba(0, 0, 0, 0.22);
  color: white;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  padding: 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 560;
  line-height: 1.42;
  transition:
    border-color 170ms ease,
    box-shadow 170ms ease,
    background-color 170ms ease;
}

.bio-panel textarea::placeholder {
  color: rgba(255, 255, 255, 0.42);
}

.bio-panel textarea:focus {
  border-color: rgba(255, 77, 120, 0.46);
  background: rgba(0, 0, 0, 0.3);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 3px rgba(255, 77, 120, 0.1);
}

.bio-actions {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.ai-bio-button {
  display: inline-grid;
  grid-template-columns: auto auto;
  align-items: center;
  min-height: 38px;
  gap: 8px;
  padding: 0 11px;
  border: 1px solid rgba(59, 227, 208, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(59, 227, 208, 0.12), rgba(255, 77, 120, 0.1)),
    rgba(255, 255, 255, 0.06);
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 790;
  line-height: 1;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    filter 160ms ease;
}

.ai-bio-button:active,
.ai-bio-button.is-thinking {
  transform: scale(0.97);
  filter: brightness(1.1);
}

.bio-actions > span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 640;
  line-height: 1.3;
}

.tag-section {
  display: grid;
  gap: 10px;
  padding: 12px;
}

.vibe-grid,
.interest-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.interest-cloud {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
}

.vibe-chip,
.interest-tag {
  position: relative;
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.8);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  cursor: pointer;
  font-size: 13px;
  font-weight: 780;
  line-height: 1;
  transition:
    border-color 170ms ease,
    background-color 170ms ease,
    box-shadow 170ms ease,
    color 170ms ease,
    transform 170ms ease;
}

.vibe-chip {
  flex: 1 1 calc(33.333% - 8px);
  padding: 0 10px;
}

.interest-tag {
  display: grid;
  place-items: center;
  flex: 0 1 auto;
  min-height: 42px;
  padding: 8px 10px;
  text-align: center;
  white-space: normal;
  line-height: 1.08;
  word-break: break-word;
}

.vibe-chip:active,
.interest-tag:active {
  transform: scale(0.97);
}

.vibe-chip[aria-pressed="true"],
.interest-tag[aria-pressed="true"] {
  color: white;
  border-color: rgba(255, 255, 255, 0.28);
  box-shadow:
    0 14px 28px rgba(255, 77, 120, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.vibe-chip.flirty[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(255, 132, 74, 0.9), rgba(255, 107, 85, 0.72));
}

.vibe-chip.chill[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(255, 132, 74, 0.9), rgba(255, 107, 85, 0.72));
}

.vibe-chip.smart[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(255, 132, 74, 0.9), rgba(255, 107, 85, 0.72));
}

.vibe-chip.funny[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(255, 132, 74, 0.9), rgba(255, 107, 85, 0.72));
}

.vibe-chip.confident[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(255, 132, 74, 0.9), rgba(255, 107, 85, 0.72));
}

.interest-tag[aria-pressed="true"] {
  background: linear-gradient(135deg, rgba(255, 132, 74, 0.9), rgba(255, 107, 85, 0.72));
  border-color: rgba(255, 190, 143, 0.34);
  box-shadow:
    0 12px 24px rgba(255, 107, 85, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.18);
}

.interest-tag.is-capped {
  opacity: 0.42;
}

@media (min-width: 420px) {
  .interest-cloud {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.identity-preview {
  display: grid;
  gap: 7px;
  padding: 12px;
}

.identity-preview span {
  color: rgba(59, 227, 208, 0.86);
  font-size: 12px;
  font-weight: 820;
  line-height: 1;
}

.identity-preview p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.36;
}

.ai-shell,
.discover-shell,
.chats-inbox-shell,
.detail-shell,
.match-shell,
.chat-shell,
.premium-shell {
  position: relative;
  min-height: 0;
  width: 100%;
  isolation: isolate;
  overflow: hidden auto;
  padding: max(20px, var(--safe-top)) 18px
    calc(18px + var(--safe-bottom));
  background:
    radial-gradient(86% 52% at 16% 6%, rgba(255, 77, 120, 0.22), transparent 62%),
    radial-gradient(82% 52% at 94% 24%, rgba(59, 227, 208, 0.14), transparent 64%),
    linear-gradient(180deg, #101010 0%, #080708 56%, #050505 100%);
}

.credits-shell {
  position: relative;
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 0;
  width: 100%;
  isolation: isolate;
  overflow: hidden auto;
  padding: max(20px, var(--safe-top)) 18px
    calc(18px + var(--safe-bottom));
  background:
    radial-gradient(86% 52% at 18% 8%, rgba(244, 201, 104, 0.17), transparent 62%),
    radial-gradient(82% 52% at 94% 24%, rgba(59, 227, 208, 0.14), transparent 64%),
    linear-gradient(180deg, #101010 0%, #080708 56%, #050505 100%);
}

.ai-shell,
.match-shell,
.premium-shell {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 12px;
}

.ai-backdrop,
.premium-backdrop {
  position: absolute;
  inset: 0;
  z-index: -2;
  opacity: 0.24;
  background-image: url("https://images.unsplash.com/photo-1518005020951-eccb494ad742?auto=format&fit=crop&w=1200&q=82");
  background-position: 50% 40%;
  background-size: cover;
  filter: blur(22px) saturate(0.8) brightness(0.42);
  transform: scale(1.12);
}

.ai-intro-card {
  align-self: center;
  display: grid;
  gap: 18px;
}

.ai-intro-card h2,
.premium-hero h1,
.match-content h1 {
  margin: 0;
  color: white;
  font-size: clamp(39px, 11vw, 54px);
  font-weight: 840;
  letter-spacing: 0;
  line-height: 0.95;
}

.ai-intro-card > p:not(.eyebrow),
.premium-hero > p,
.match-content > p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 560;
  line-height: 1.45;
}

.ai-feature-list {
  display: grid;
  gap: 10px;
}

.ai-feature-list article,
.premium-benefits article,
.pricing-card {
  display: grid;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.ai-feature-list article {
  grid-template-columns: 38px 1fr;
  gap: 12px;
  padding: 13px;
}

.ai-feature-list article > span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 77, 120, 0.82), rgba(59, 227, 208, 0.24));
  color: white;
  font-size: 12px;
  font-weight: 820;
}

.ai-feature-list h3,
.premium-benefits span,
.pricing-card span {
  margin: 0 0 6px;
  color: white;
  font-size: 14px;
  font-weight: 820;
  line-height: 1;
}

.ai-feature-list p,
.premium-benefits p,
.pricing-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 12px;
  font-weight: 580;
  line-height: 1.34;
}

.ai-monetization-note {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(244, 201, 104, 0.18);
  border-radius: 8px;
  background: rgba(244, 201, 104, 0.08);
}

.ai-monetization-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.32;
}

.ai-actions {
  align-self: end;
}

.discover-shell {
  display: grid;
  align-content: start;
  gap: 14px;
}

.chats-inbox-shell {
  display: grid;
  align-content: start;
  gap: 12px;
}

.chats-inbox {
  display: grid;
  min-height: 0;
  overflow: auto;
  padding-bottom: 4px;
}

.chat-inbox-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.chat-inbox-row-wrap {
  margin: 0;
}

.chat-inbox-row {
  display: flex;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  padding: 10px 11px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 16px;
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 45%, rgba(8, 7, 9, 0.45) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 10px 28px rgba(0, 0, 0, 0.22);
  color: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 140ms ease,
    border-color 160ms ease,
    box-shadow 180ms ease,
    background 180ms ease;
  -webkit-tap-highlight-color: transparent;
}

.chat-inbox-row:hover {
  border-color: rgba(255, 255, 255, 0.14);
}

.chat-inbox-row:active {
  transform: scale(0.985);
}

.chat-inbox-row:focus-visible {
  outline: 2px solid rgba(59, 227, 208, 0.45);
  outline-offset: 2px;
}

.chat-inbox-row__avatar {
  width: 48px;
  height: 48px;
  flex-shrink: 0;
  border-radius: 14px;
  object-fit: cover;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.chat-inbox-row__body {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 5px;
  align-content: center;
}

.chat-inbox-row__top {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
}

.chat-inbox-row__name {
  color: white;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.chat-inbox-row__time {
  flex-shrink: 0;
  color: rgba(255, 255, 255, 0.48);
  font-size: 11px;
  font-weight: 680;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.02em;
}

.chat-inbox-row__bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.chat-inbox-row__preview {
  margin: 0;
  min-width: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.28;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-inbox-row__badge {
  flex-shrink: 0;
  min-width: 22px;
  height: 22px;
  padding: 0 7px;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 88, 118, 0.95), rgba(255, 120, 95, 0.88));
  color: white;
  font-size: 11px;
  font-weight: 820;
  line-height: 22px;
  text-align: center;
  box-shadow:
    0 6px 14px rgba(255, 77, 120, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.chats-demo-pill {
  flex-shrink: 0;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 820;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.chats-demo-pill.is-hidden {
  display: none;
}

.chat-inbox-empty {
  margin: 0;
  padding: 28px 16px;
  border-radius: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.chat-inbox-empty p {
  margin: 0;
  color: rgba(255, 255, 255, 0.62);
  font-size: 14px;
  font-weight: 620;
  line-height: 1.45;
}

.discover-topbar,
.chat-topbar,
.premium-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.discover-topbar div {
  display: grid;
  gap: 4px;
}

.discover-topbar span,
.chat-topbar span,
.premium-topbar span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 720;
  line-height: 1;
}

.discover-topbar strong,
.chat-topbar strong {
  color: white;
  font-size: 22px;
  font-weight: 840;
  line-height: 1;
}

.premium-chip {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(244, 201, 104, 0.24);
  border-radius: 8px;
  background: rgba(244, 201, 104, 0.1);
  color: rgba(244, 201, 104, 0.96);
  cursor: pointer;
  font-size: 12px;
  font-weight: 820;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.activity-chip {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.82);
  cursor: pointer;
  font-size: 12px;
  font-weight: 820;
}

.discover-feed {
  display: grid;
  gap: 13px;
}

.discover-shell,
.activity-shell,
.chats-inbox-shell,
.chat-shell {
  /* Main height already clears the tab bar; only safe area + small tail padding */
  padding-bottom: calc(20px + var(--safe-bottom));
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding-bottom: calc(28px + var(--safe-bottom));
}

.bottom-nav {
  position: fixed;
  left: 50%;
  right: auto;
  bottom: max(10px, calc(var(--safe-bottom) + 8px));
  z-index: 5000;
  pointer-events: auto;
  display: none;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  width: min(calc(100% - 24px), 420px);
  transform: translate3d(-50%, 0, 0);
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  background: rgba(12, 11, 12, 0.9);
  box-shadow:
    0 18px 36px rgba(0, 0, 0, 0.38),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px);
  will-change: transform;
}

.bottom-nav.is-visible {
  display: grid;
}

.bottom-nav__item {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-height: 52px;
  padding: 7px 6px 6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: rgba(255, 255, 255, 0.62);
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0;
  touch-action: manipulation;
  transition:
    background-color 140ms ease,
    color 140ms ease,
    transform 140ms ease,
    box-shadow 140ms ease;
}

.bottom-nav__item:active {
  transform: scale(0.97);
}

.bottom-nav__item[aria-pressed="true"] {
  color: white;
  background:
    linear-gradient(135deg, rgba(255, 77, 120, 0.14), rgba(255, 107, 85, 0.06)),
    rgba(255, 255, 255, 0.018);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 0 1px rgba(255, 255, 255, 0.045);
  backdrop-filter: blur(12px);
}

.bottom-nav__icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  color: inherit;
  font-size: 16px;
  line-height: 1;
}

.bottom-nav__label {
  line-height: 1;
  white-space: nowrap;
  text-wrap: balance;
}

.profile-hub-shell {
  position: relative;
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 0;
  width: 100%;
  isolation: isolate;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  scroll-padding-bottom: calc(28px + var(--safe-bottom));
  padding-top: max(16px, var(--safe-top));
  padding-right: 18px;
  padding-left: 18px;
  padding-bottom: calc(24px + var(--safe-bottom));
  background:
    radial-gradient(86% 52% at 16% 6%, rgba(255, 77, 120, 0.22), transparent 62%),
    radial-gradient(82% 52% at 94% 24%, rgba(59, 227, 208, 0.14), transparent 64%),
    linear-gradient(180deg, #101010 0%, #080708 56%, #050505 100%);
}

.profile-hub-shell.is-active > * {
  opacity: 0;
  transform: translateY(18px);
  animation: copyEnter 620ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.profile-hub-hero {
  display: grid;
  gap: 14px;
  padding: 12px 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04)),
    rgba(20, 20, 20, 0.65);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 20px 48px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(18px);
}

.profile-hub-hero__visual {
  display: grid;
  gap: 8px;
}

.profile-hub-hero__media {
  position: relative;
  overflow: hidden;
  border-radius: 16px;
  cursor: pointer;
}

.profile-hub-hero__media img[data-profile-hub-avatar] {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 4;
  max-height: min(52vh, 400px);
  min-height: 220px;
  height: auto;
  object-fit: cover;
  border-radius: 16px;
}

.profile-hub-hero__edit-photos {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.72);
  color: #fff;
  cursor: pointer;
  font-size: 11px;
  font-weight: 760;
  line-height: 1;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45);
  transition:
    transform 160ms ease,
    background-color 160ms ease;
}

.profile-hub-hero__edit-photos:hover {
  background: rgba(0, 0, 0, 0.82);
}

.profile-hub-hero__edit-photos:active {
  transform: scale(0.97);
}

.profile-hub-photo-strip {
  display: flex;
  flex-wrap: nowrap;
  justify-content: center;
  gap: 10px;
  align-items: center;
  padding: 4px 0 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.profile-hub-photo-cell {
  position: relative;
  flex: 0 0 50px;
  width: 50px;
  height: 50px;
  padding: 0;
  border-radius: 12px;
  cursor: pointer;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.profile-hub-photo-cell.is-empty {
  border: 1px dashed rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.48);
}

.profile-hub-photo-cell.is-active,
.profile-hub-photo-cell.has-image.is-active {
  box-shadow: 0 0 0 2px rgba(255, 77, 120, 0.9), 0 10px 24px rgba(0, 0, 0, 0.28);
}

.profile-hub-photo-cell.is-active.is-empty {
  border-style: solid;
  border-color: rgba(255, 77, 120, 0.55);
}

.profile-hub-photo-cell__plus {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
}

.profile-hub-photo-cell.has-image {
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  background: rgba(0, 0, 0, 0.25);
}

.profile-hub-photo-cell.has-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-hub-photo-cell:hover {
  border-color: rgba(255, 255, 255, 0.32);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.22);
}

.profile-hub-photo-cell:active {
  transform: scale(0.96);
}

.photo-slot.is-slot-focus,
[data-photo-stage-wrap].is-slot-focus {
  outline: 2px solid rgba(255, 77, 120, 0.95);
  outline-offset: 2px;
  border-radius: 9px;
}

.profile-hub-hero__copy {
  display: grid;
  gap: 4px;
}

.profile-hub-hero__copy h1 {
  margin: 0;
  color: white;
  font-size: 28px;
  font-weight: 860;
  line-height: 1.04;
}

.profile-hub-hero__copy p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.profile-hub-hero__copy p[data-profile-hub-status] {
  display: grid;
  gap: 8px;
  white-space: normal;
}

.profile-hub-status__bio {
  display: block;
}

.profile-hub-status__chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.profile-hub-status__separator {
  color: rgba(255, 255, 255, 0.38);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}

.profile-hub-status-chip {
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
  transition:
    transform 170ms ease,
    border-color 170ms ease,
    background-color 170ms ease,
    color 170ms ease;
}

.profile-hub-status-chip:hover {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.11);
}

.profile-hub-status-chip:active {
  transform: scale(0.97);
}

.profile-hub-status-chip:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.34);
  outline-offset: 2px;
}

.profile-hub-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-hub-badges span {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.76);
  font-size: 11px;
  font-weight: 780;
}

.profile-hub-badges span:first-child {
  border-color: rgba(244, 201, 104, 0.22);
  background: rgba(244, 201, 104, 0.12);
  color: rgba(244, 201, 104, 0.96);
}

.profile-hub-preview-row {
  display: flex;
  justify-content: stretch;
  width: 100%;
  margin-top: 2px;
}

.profile-hub-preview-cta {
  width: 100%;
  min-height: 48px;
  padding: 0 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: linear-gradient(180deg, rgba(255, 77, 120, 0.28) 0%, rgba(32, 18, 28, 0.92) 100%);
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 820;
  line-height: 1.1;
  letter-spacing: 0.01em;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    box-shadow 160ms ease;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.35);
}

.profile-hub-preview-cta:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: linear-gradient(180deg, rgba(255, 77, 120, 0.4) 0%, rgba(40, 22, 32, 0.95) 100%);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.4);
}

.profile-hub-preview-cta:active {
  transform: scale(0.98);
}

body.profile-preview-open {
  overflow: hidden;
  touch-action: none;
}

.profile-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px 14px max(20px, var(--safe-bottom));
}

.profile-preview-overlay:not(.is-hidden) {
  display: flex;
}

.profile-preview-backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: rgba(0, 0, 0, 0.78);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

.profile-preview-sheet {
  position: relative;
  z-index: 1;
  width: min(100%, 420px);
  max-height: min(90vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(28, 26, 28, 0.98), rgba(12, 11, 12, 0.98));
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45);
}

.profile-preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.profile-preview-title {
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.46);
}

.profile-preview-close {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  margin: 0;
  margin-right: -4px;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  font-size: 22px;
  font-weight: 400;
  line-height: 1;
  transition: background 0.16s ease;
}

.profile-preview-close:hover {
  background: rgba(255, 255, 255, 0.12);
}

.profile-preview-carousel {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  min-height: 200px;
  max-height: 48vh;
  background: #000;
}

.profile-preview-stage {
  display: block;
  width: 100%;
  height: 100%;
  max-height: 48vh;
  min-height: 200px;
  object-fit: cover;
}

.profile-preview-nav {
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 38px;
  height: 38px;
  margin-top: -19px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
  backdrop-filter: blur(6px);
  transition: background 0.16s ease;
}

.profile-preview-nav--prev {
  left: 8px;
}

.profile-preview-nav--next {
  right: 8px;
}

.profile-preview-nav:hover {
  background: rgba(0, 0, 0, 0.62);
}

.profile-preview-nav.is-hidden,
.profile-preview-nav:disabled {
  opacity: 0;
  pointer-events: none;
}

.profile-preview-counter {
  position: absolute;
  bottom: 8px;
  right: 10px;
  z-index: 2;
  margin: 0;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(0, 0, 0, 0.5);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11px;
  font-weight: 760;
  line-height: 1.2;
}

.profile-preview-body {
  padding: 12px 14px 16px;
  overflow-y: auto;
  flex: 1 1 auto;
}

.profile-preview-eyebrow {
  display: block;
  margin: 0 0 4px;
}

.profile-preview-name {
  margin: 0 0 8px;
  color: #fff;
  font-size: 22px;
  font-weight: 860;
  line-height: 1.1;
}

.profile-preview-status {
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
}

.profile-hub-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.profile-hub-stats article {
  display: grid;
  gap: 8px;
  padding: 14px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.065);
}

.profile-hub-stats span {
  color: rgba(255, 255, 255, 0.55);
  font-size: 11px;
  font-weight: 720;
  line-height: 1;
}

.profile-hub-stats strong {
  color: #fff;
  font-size: 22px;
  font-weight: 820;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.02em;
}

.profile-hub-card {
  gap: 10px;
}

.profile-hub-actions {
  display: grid;
  gap: 10px;
}

.profile-hub-actions .secondary-cta {
  min-height: 48px;
}

.feed-card {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.24);
}

.hero-profile {
  min-height: 520px;
  cursor: pointer;
  border-radius: 8px;
  box-shadow:
    0 28px 64px rgba(0, 0, 0, 0.45),
    0 0 0 1px rgba(255, 255, 255, 0.06) inset,
    0 0 48px rgba(255, 77, 120, 0.08);
  transition: box-shadow 240ms ease, transform 240ms ease;
}

.hero-profile:active {
  transform: scale(0.992);
}

.hero-profile__media {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border-radius: inherit;
}

.hero-profile__media img,
.mini-profile img,
.wide-profile img,
.detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-profile__media img {
  position: absolute;
  inset: 0;
  transform: scale(1.02);
  transform-origin: 50% 40%;
  transition: transform 520ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .hero-profile:hover .hero-profile__media img,
  .hero-profile:focus-within .hero-profile__media img {
    transform: scale(1.06);
  }
}

.hero-profile__vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(185deg, rgba(8, 7, 8, 0.12) 0%, transparent 38%),
    linear-gradient(0deg, rgba(8, 7, 8, 0.95) 0%, rgba(8, 7, 8, 0.55) 42%, transparent 68%),
    radial-gradient(90% 70% at 50% 100%, rgba(255, 77, 120, 0.22), transparent 55%);
}

.profile-overlay {
  position: absolute;
  inset: 0;
  display: grid;
  align-content: end;
  gap: 9px;
  padding: 16px;
  background: linear-gradient(180deg, transparent 32%, rgba(0, 0, 0, 0.78));
}

.profile-overlay--hero {
  gap: 12px;
  padding: 16px 14px 16px;
  background: linear-gradient(180deg, transparent 18%, rgba(8, 7, 8, 0.5) 52%, rgba(8, 7, 8, 0.92) 100%);
  pointer-events: none;
}

.profile-overlay--hero > * {
  pointer-events: auto;
}

.hero-profile__head {
  display: grid;
  gap: 8px;
  padding-bottom: 2px;
}

.profile-overlay h2,
.wide-profile h3,
.mini-profile h3 {
  margin: 0;
  color: white;
  font-size: 30px;
  font-weight: 840;
  line-height: 1;
}

.profile-overlay--hero h2 {
  font-size: clamp(32px, 8.4vw, 40px);
  font-weight: 860;
  letter-spacing: 0;
  text-shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
}

.profile-overlay p,
.wide-profile p,
.mini-profile p,
.prompt-card p,
.insight-card p {
  margin: 0;
  color: rgba(255, 255, 255, 0.74);
  font-size: 14px;
  font-weight: 580;
  line-height: 1.35;
}

.profile-overlay--hero .hero-profile__tagline {
  max-width: 36ch;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  text-shadow: 0 6px 24px rgba(0, 0, 0, 0.45);
}

.hero-action-dock {
  display: grid;
  gap: 8px;
}

.hero-action-dock__secondary {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.hero-action-dock--row {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  padding: 8px 9px 9px;
  border-radius: 16px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.09) 0%, rgba(255, 255, 255, 0.02) 42%, rgba(8, 7, 8, 0.35) 100%),
    rgba(6, 5, 7, 0.38);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow:
    0 12px 32px rgba(0, 0, 0, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  backdrop-filter: blur(18px) saturate(1.06);
}

.hero-icon-btn {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(8, 7, 8, 0.45);
  color: rgba(255, 255, 255, 0.88);
  cursor: pointer;
  backdrop-filter: blur(16px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition:
    transform 140ms ease,
    border-color 140ms ease,
    background-color 140ms ease,
    filter 140ms ease,
    box-shadow 140ms ease;
}

.hero-icon-btn--dock {
  width: 40px;
  min-width: 40px;
  height: 40px;
  align-self: center;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(10, 9, 10, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 2px 12px rgba(0, 0, 0, 0.2);
}

.hero-icon-btn--dock .hero-icon-btn__glyph {
  font-size: 15px;
  line-height: 1;
  opacity: 0.94;
}

.hero-icon-btn__glyph {
  font-size: 18px;
  line-height: 1;
}

.hero-icon-btn:active {
  transform: scale(0.94);
}

.hero-icon-btn[data-like] {
  border-color: rgba(255, 77, 120, 0.22);
  color: #ffd0dc;
}

.hero-icon-btn[data-like].is-liked {
  border-color: rgba(255, 77, 120, 0.52);
  background: linear-gradient(180deg, rgba(255, 77, 120, 0.22), rgba(10, 9, 10, 0.78));
  color: #ffe6eb;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 18px rgba(255, 77, 120, 0.18);
  transform: scale(1.02);
}

.hero-icon-btn[data-like].is-liked .hero-icon-btn__glyph {
  color: #ffd0dc;
  transform: scale(1.08);
}

.hero-icon-btn[data-react] {
  border-color: rgba(244, 201, 104, 0.24);
  color: rgba(255, 236, 175, 0.94);
}

.hero-icon-btn[data-like]:hover {
  background: linear-gradient(180deg, rgba(255, 77, 120, 0.18), rgba(10, 9, 10, 0.75));
  border-color: rgba(255, 77, 120, 0.38);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 16px rgba(255, 77, 120, 0.15);
}

.hero-icon-btn[data-react].is-reacted {
  border-color: rgba(244, 201, 104, 0.48);
  background: linear-gradient(180deg, rgba(244, 201, 104, 0.22), rgba(255, 107, 85, 0.16));
  color: rgba(255, 242, 193, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 0 18px rgba(244, 201, 104, 0.18);
  transform: scale(1.02);
}

.hero-icon-btn[data-react].is-reacted .hero-icon-btn__glyph {
  color: rgba(255, 214, 117, 0.98);
  transform: scale(1.08);
}

.hero-icon-btn[data-react]:hover {
  background: linear-gradient(180deg, rgba(244, 201, 104, 0.15), rgba(10, 9, 10, 0.78));
  border-color: rgba(244, 201, 104, 0.34);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 16px rgba(244, 201, 104, 0.14);
}

.hero-icon-btn--dock:hover {
  border-color: rgba(255, 255, 255, 0.18);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.1), rgba(12, 11, 12, 0.78));
}

.hero-icon-btn--dock:focus-visible,
.hero-cta--dock:focus-visible {
  outline: 2px solid rgba(59, 227, 208, 0.45);
  outline-offset: 2px;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 52px;
  padding: 0 18px;
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 820;
  letter-spacing: 0;
  transition:
    transform 140ms ease,
    box-shadow 200ms ease,
    filter 140ms ease,
    border-color 140ms ease;
}

.hero-cta--dock {
  min-height: 38px;
  padding: 0 11px;
  gap: 6px;
  font-size: 13px;
  font-weight: 760;
  letter-spacing: 0.01em;
  border-radius: 8px;
  flex: 1 1 0;
  min-width: 0;
}

.hero-cta--dock.hero-cta--primary {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 44px;
  padding: 0 16px;
  gap: 8px;
  border-radius: 14px;
  font-size: 14px;
  font-weight: 820;
  letter-spacing: -0.01em;
  box-shadow:
    0 10px 26px rgba(255, 77, 120, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    inset 0 -1px 0 rgba(0, 0, 0, 0.12);
}

.hero-cta__icon {
  font-size: 18px;
  line-height: 1;
  flex-shrink: 0;
}

.hero-cta--dock .hero-cta__icon {
  font-size: 14px;
  line-height: 1;
}

.hero-cta--dock.hero-cta--primary .hero-cta__icon {
  font-size: 16px;
  line-height: 1;
  filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.2));
}

.hero-cta__text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.hero-cta__icon--spark {
  filter: drop-shadow(0 0 5px rgba(244, 201, 104, 0.45));
}

.hero-cta--message {
  width: 100%;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.14) 0%, transparent 38%),
    linear-gradient(118deg, var(--rose) 0%, var(--coral) 52%, #e09072 100%);
  color: white;
  box-shadow:
    0 7px 20px rgba(255, 77, 120, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.22),
    inset 0 -1px 0 rgba(0, 0, 0, 0.18);
}

.hero-cta--message.hero-cta--dock {
  width: auto;
  flex: 1 1 auto;
  min-width: 0;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.hero-cta--message.hero-cta--dock.hero-cta--primary {
  padding: 0 16px;
}

.hero-cta--message:hover {
  filter: brightness(1.04);
  box-shadow:
    0 9px 24px rgba(255, 77, 120, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.26),
    inset 0 -1px 0 rgba(0, 0, 0, 0.16);
}

.hero-cta--message.is-loading {
  border-color: rgba(255, 77, 120, 0.28);
  background: linear-gradient(180deg, rgba(255, 77, 120, 0.16), rgba(10, 9, 10, 0.8));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 16px rgba(255, 77, 120, 0.12);
  transform: scale(0.985);
}

.hero-cta--message:active {
  transform: scale(0.98);
}

.hero-cta--ai {
  width: 100%;
  min-height: 48px;
  padding: 0 14px;
  border: 1px solid rgba(244, 201, 104, 0.45);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 201, 104, 0.22), rgba(59, 227, 208, 0.12)),
    rgba(8, 7, 8, 0.55);
  color: #fff8e8;
  box-shadow:
    0 0 32px rgba(244, 201, 104, 0.2),
    0 14px 32px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.hero-cta--ai.hero-cta--dock {
  width: auto;
  flex: 0.92 1 10ch;
  min-width: 0;
  min-height: 38px;
  padding: 0 9px;
  border: 1px solid rgba(244, 201, 104, 0.26);
  background:
    linear-gradient(168deg, rgba(244, 201, 104, 0.12) 0%, transparent 50%),
    rgba(11, 10, 11, 0.78);
  color: rgba(255, 248, 238, 0.96);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.07),
    0 3px 14px rgba(0, 0, 0, 0.26),
    0 0 20px rgba(244, 201, 104, 0.08);
}

.hero-cta--ai:hover {
  filter: brightness(1.05);
  border-color: rgba(244, 201, 104, 0.5);
  box-shadow:
    0 0 22px rgba(244, 201, 104, 0.16),
    0 8px 20px rgba(0, 0, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.hero-cta--ai.hero-cta--dock:hover {
  border-color: rgba(244, 201, 104, 0.4);
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 4px 18px rgba(0, 0, 0, 0.28),
    0 0 24px rgba(244, 201, 104, 0.12);
}

.hero-cta--ai:active {
  transform: scale(0.98);
}

.hero-cta__label {
  font-size: 14px;
  font-weight: 820;
}

.hero-cta--dock .hero-cta__label {
  font-size: 11.5px;
  font-weight: 780;
  letter-spacing: 0.03em;
  white-space: nowrap;
  opacity: 0.96;
}

.app-toast {
  position: fixed;
  left: 50%;
  top: 16px;
  z-index: 45;
  width: min(calc(100% - 32px), 340px);
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 8px;
  background: rgba(14, 14, 15, 0.9);
  box-shadow:
    0 18px 42px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.94);
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.35;
  backdrop-filter: blur(18px);
  opacity: 0;
  transform: translate(-50%, -10px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 180ms ease,
    transform 180ms ease;
}

.app-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0) scale(1);
}

.action-row,
.detail-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.action-row button,
.detail-actions button,
.prompt-card button,
.wide-profile button,
.chat-composer button {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}

.action-row button:last-child,
.detail-actions button:last-child,
.prompt-card button,
.wide-profile button {
  background: linear-gradient(135deg, rgba(255, 77, 120, 0.82), rgba(255, 107, 85, 0.62));
}

.prompt-card,
.insight-card {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.prompt-card span,
.insight-card span,
.wide-profile span {
  color: rgba(59, 227, 208, 0.86);
  font-size: 12px;
  font-weight: 820;
  line-height: 1;
}

.mixed-row {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 10px;
}

.mini-profile {
  min-height: 210px;
}

.mini-profile img {
  position: absolute;
  inset: 0;
}

.mini-profile div {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 5px;
  padding: 12px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.74));
}

.mini-profile h3 {
  font-size: 22px;
}

.wide-profile {
  display: grid;
  grid-template-columns: 42% 1fr;
  min-height: 170px;
}

.wide-profile div {
  display: grid;
  align-content: center;
  gap: 8px;
  padding: 13px;
}

.detail-shell {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 14px;
  padding-inline: 0;
  padding-top: 0;
}

.detail-hero {
  position: relative;
  min-height: 520px;
  overflow: hidden;
}

.back-button.floating {
  position: absolute;
  top: max(16px, var(--safe-top));
  left: 18px;
  z-index: 3;
}

.detail-hero > div {
  position: absolute;
  inset: auto 0 0;
  display: grid;
  gap: 9px;
  padding: 0 18px 18px;
  background: linear-gradient(180deg, transparent, rgba(0, 0, 0, 0.84));
}

.detail-hero h1 {
  margin: 0;
  color: white;
  font-size: 42px;
  font-weight: 850;
  letter-spacing: 0;
  line-height: 0.98;
}

.detail-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.76);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.34;
}

.detail-body {
  display: grid;
  gap: 10px;
  padding: 0 18px;
}

.detail-body article {
  display: grid;
  gap: 9px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
}

.detail-body h2 {
  margin: 0;
  color: white;
  font-size: 14px;
  font-weight: 820;
}

.detail-body p {
  margin: 0;
  color: rgba(255, 255, 255, 0.68);
  font-size: 13px;
  font-weight: 590;
  line-height: 1.4;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-tags span {
  padding: 9px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 760;
}

.detail-actions {
  position: sticky;
  bottom: 0;
  padding: 12px 18px calc(12px + var(--safe-bottom));
  background: linear-gradient(180deg, transparent, rgba(8, 7, 8, 0.92) 26%);
}

.detail-actions--split {
  grid-template-columns: minmax(0, 1fr) minmax(0, 2.15fr);
  gap: 10px;
  align-items: stretch;
}

.detail-actions--split .detail-actions__secondary {
  min-height: 48px;
  border-radius: 14px;
  font-size: 13px;
  font-weight: 780;
  letter-spacing: 0.01em;
  border: 1px solid rgba(255, 77, 120, 0.22);
  background: rgba(255, 255, 255, 0.08);
}

.detail-actions--split .detail-actions__primary.hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  border-radius: 14px;
  padding: 0 14px;
  font-size: 14px;
  font-weight: 820;
}

.match-content {
  align-self: center;
  display: grid;
  justify-items: center;
  gap: 15px;
  text-align: center;
}

.match-pulse {
  position: absolute;
  inset: 20% 10%;
  z-index: -1;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 77, 120, 0.34), transparent 58%),
    radial-gradient(circle at 70% 42%, rgba(59, 227, 208, 0.2), transparent 48%);
  filter: blur(6px);
  animation: pulseMatch 2400ms ease-in-out infinite alternate;
}

.match-photos {
  display: flex;
  justify-content: center;
  width: 100%;
}

.match-photos img {
  width: 132px;
  height: 174px;
  object-fit: cover;
  border: 2px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}

.match-photos img:first-child {
  transform: rotate(-5deg) translateX(12px);
}

.match-photos img:last-child {
  transform: rotate(5deg) translateX(-12px);
}

.match-actions {
  display: grid;
  gap: 10px;
}

.chat-shell {
  display: grid;
  grid-template-rows: auto 1fr auto auto;
  gap: 13px;
  overflow: hidden;
}

.chat-topbar {
  justify-content: start;
}

.chat-topbar img {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.28);
}

.chat-topbar div {
  display: grid;
  gap: 4px;
}

.chat-messages {
  display: grid;
  align-content: end;
  gap: 10px;
  min-height: 0;
  overflow-y: auto;
  padding: 12px 0;
}

.chat-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  min-height: 0;
  padding-top: 2px;
}

.chat-attachments[hidden] {
  display: none;
}

.chat-attachment-chip {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  min-height: 40px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 10px 24px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

.chat-attachment-chip__icon {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 15px;
}

.chat-attachment-chip__meta {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.chat-attachment-chip__name,
.chat-attachment-chip__size {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-attachment-chip__name {
  font-size: 12px;
  font-weight: 760;
  line-height: 1.2;
}

.chat-attachment-chip__size {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10.5px;
  font-weight: 620;
  line-height: 1.2;
}

.chat-attachment-chip__remove {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  margin-left: 2px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 16px;
  line-height: 1;
}

.chat-attachment-chip__remove:active {
  transform: scale(0.96);
}

.chat-message__text {
  margin: 0;
}

.chat-message__attachments {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.chat-message__file {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.06);
}

.chat-message__file strong,
.chat-message__file span {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-message__file strong {
  font-size: 12px;
  font-weight: 760;
}

.chat-message__file span {
  color: rgba(255, 255, 255, 0.62);
  font-size: 10.5px;
  font-weight: 620;
}

.chat-message__image {
  display: block;
  width: min(100%, 260px);
  border-radius: 12px;
  object-fit: cover;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.18);
}

.chat-message__audio {
  width: min(100%, 260px);
}

.message-bubble {
  max-width: 82%;
  padding: 11px 12px;
  border-radius: 8px;
  color: white;
  font-size: 14px;
  font-weight: 560;
  line-height: 1.36;
}

.message-bubble.theirs {
  justify-self: start;
  background: rgba(255, 255, 255, 0.09);
}

.message-bubble.mine {
  justify-self: end;
  background: linear-gradient(135deg, rgba(255, 77, 120, 0.78), rgba(255, 107, 85, 0.62));
}

.chat-composer {
  display: grid;
  grid-template-columns: 42px 1fr 42px auto;
  gap: 8px;
  align-items: center;
  padding-bottom: var(--safe-bottom);
}

.chat-tool-button {
  display: grid;
  place-items: center;
  width: 42px;
  min-width: 42px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  cursor: pointer;
  font-size: 16px;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 8px 20px rgba(0, 0, 0, 0.12);
}

.chat-tool-button:active {
  transform: scale(0.97);
}

.chat-tool-button.is-recording {
  border-color: rgba(255, 77, 120, 0.36);
  background: rgba(255, 77, 120, 0.14);
  color: rgba(255, 214, 222, 0.98);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 0 18px rgba(255, 77, 120, 0.12);
}

.chat-composer button:disabled {
  opacity: 0.56;
  cursor: not-allowed;
}

.chat-composer input {
  min-height: 44px;
  min-width: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  outline: 0;
  background: rgba(255, 255, 255, 0.08);
  color: white;
  padding: 0 12px;
  font: inherit;
  font-size: 14px;
  font-weight: 560;
}

.chat-composer button[data-send-message] {
  min-width: 68px;
  padding-inline: 14px;
}

.premium-shell {
  gap: 10px;
  grid-template-rows: auto 1fr auto;
  align-content: start;
  background:
    radial-gradient(88% 56% at 18% 8%, rgba(72, 178, 168, 0.2), transparent 62%),
    radial-gradient(82% 50% at 92% 18%, rgba(58, 110, 145, 0.24), transparent 64%),
    radial-gradient(100% 70% at 50% 100%, rgba(18, 32, 42, 0.55), transparent 72%),
    linear-gradient(180deg, #101922 0%, #0b1218 52%, #070a0d 100%);
}

.premium-shell .premium-backdrop {
  opacity: 0.32;
  filter: blur(20px) saturate(0.75) brightness(0.38) hue-rotate(-8deg);
}

.premium-topbar {
  align-self: start;
}

.premium-panel {
  display: grid;
  gap: 10px;
  min-height: 0;
  overflow: auto;
  -webkit-overflow-scrolling: touch;
}

.premium-hero {
  display: grid;
  gap: 6px;
  padding: 10px 14px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background:
    linear-gradient(155deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.015) 48%, transparent 100%),
    rgba(8, 12, 18, 0.45);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 18px 44px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(12px) saturate(1.08);
}

.premium-hero h1 {
  max-width: 18ch;
  font-size: clamp(26px, 7.1vw, 34px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  text-shadow: 0 2px 28px rgba(0, 0, 0, 0.35);
}

.premium-hero > p:not(.eyebrow):not(.premium-hero__lead) {
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.62);
  font-size: 13.5px;
  font-weight: 560;
  line-height: 1.45;
}

.premium-hero p.premium-hero__lead {
  margin: 0;
  max-width: 40ch;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(14px, 3.8vw, 16px);
  font-weight: 520;
  line-height: 1.5;
  letter-spacing: -0.01em;
}

.premium-plans {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  padding: 0 0 4px;
}

.premium-plan {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 0;
  min-height: 0;
  padding: 12px 14px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 16px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.02)),
    rgba(14, 13, 15, 0.72);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.05),
    0 14px 36px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px) saturate(1.05);
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease;
}

.premium-plan::before {
  position: absolute;
  inset: 0 0 auto;
  height: 1px;
  content: "";
  border-radius: 16px 16px 0 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.12), transparent);
  opacity: 0.55;
}

.premium-plan.is-featured {
  border-color: rgba(255, 107, 85, 0.3);
  background:
    linear-gradient(175deg, rgba(255, 77, 120, 0.12), rgba(255, 107, 85, 0.07)),
    rgba(18, 14, 16, 0.78);
  box-shadow:
    0 0 0 1px rgba(255, 77, 120, 0.14),
    0 16px 40px rgba(255, 77, 120, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.premium-plan.is-selected {
  border-color: rgba(255, 160, 138, 0.35);
  box-shadow:
    0 0 0 1px rgba(255, 120, 100, 0.2),
    0 22px 50px rgba(255, 77, 120, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.premium-plan--gold {
  border-color: rgba(244, 201, 104, 0.22);
  background:
    linear-gradient(165deg, rgba(244, 201, 104, 0.08), rgba(255, 255, 255, 0.02)),
    rgba(16, 15, 12, 0.75);
}

.premium-plan--gold::before {
  background: linear-gradient(90deg, transparent, rgba(244, 201, 104, 0.45), transparent);
  opacity: 0.75;
}

.premium-plan__head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 0 0 10px;
  min-height: 0;
}

.premium-plan__head--featured {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
}

.premium-plan__badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 780;
  line-height: 1.1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.premium-plan__badge--popular {
  position: static;
  text-transform: none;
  padding: 6px 12px;
  background: linear-gradient(135deg, rgba(255, 107, 85, 0.95), rgba(255, 140, 90, 0.9));
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow:
    0 4px 14px rgba(255, 77, 120, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.premium-plan__badge--name {
  text-transform: none;
  letter-spacing: 0;
  font-size: 12px;
  font-weight: 780;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
}

.premium-plan__price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin-bottom: 10px;
}

.premium-plan__price strong {
  color: #fff;
  font-size: clamp(24px, 6vw, 32px);
  font-weight: 860;
  line-height: 1;
  letter-spacing: -0.03em;
}

.premium-plan__period {
  color: rgba(255, 255, 255, 0.55);
  font-size: 12px;
  font-weight: 650;
  line-height: 1.2;
}

.premium-plan ul {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
  flex: 1 1 auto;
}

.premium-plan li {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1.35;
  padding-left: 2px;
}

.premium-plan li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 10px;
  border-radius: 999px;
  background: rgba(255, 120, 130, 0.85);
  vertical-align: 0.1em;
  box-shadow: 0 0 0 2px rgba(255, 77, 120, 0.15);
}

.premium-plan--gold li::before {
  background: rgba(244, 201, 104, 0.88);
  box-shadow: 0 0 0 3px rgba(244, 201, 104, 0.12);
}

.premium-plan__button {
  margin-top: auto;
  min-height: 44px;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.95);
  cursor: pointer;
  font-size: 13px;
  font-weight: 780;
  transition:
    background 160ms ease,
    border-color 160ms ease,
    transform 140ms ease;
}

.premium-plan.is-selected .premium-plan__button {
  border-color: transparent;
  background: linear-gradient(135deg, rgba(255, 88, 118, 0.95), rgba(255, 118, 95, 0.88));
  color: white;
  box-shadow: 0 12px 28px rgba(255, 77, 120, 0.22);
}

.premium-plan--gold .premium-plan__button {
  border-color: rgba(244, 201, 104, 0.22);
  color: rgba(252, 220, 160, 0.98);
  background: rgba(244, 201, 104, 0.1);
}

.premium-plan__button:active {
  transform: scale(0.98);
}

.premium-plan__button:focus-visible {
  outline: 2px solid rgba(59, 227, 208, 0.55);
  outline-offset: 2px;
}

.premium-continue {
  position: sticky;
  bottom: 0;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 440px;
  justify-self: center;
  min-height: 48px;
  padding: 0 14px;
  margin-top: 2px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: linear-gradient(
    128deg,
    rgba(255, 98, 118, 0.98) 0%,
    rgba(255, 118, 98, 0.95) 38%,
    rgba(255, 152, 118, 0.9) 68%,
    rgba(244, 188, 112, 0.88) 100%
  );
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 820;
  letter-spacing: 0;
  box-shadow:
    0 10px 32px rgba(255, 88, 108, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  transition:
    transform 140ms ease,
    box-shadow 180ms ease,
    filter 180ms ease;
}

.premium-continue:hover {
  filter: brightness(1.04);
  box-shadow:
    0 20px 50px rgba(255, 88, 108, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.26);
}

.premium-continue__icon {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.1);
  font-size: 14px;
}

.premium-continue:active {
  transform: scale(0.985);
}

.premium-continue:focus-visible {
  outline: 2px solid rgba(255, 255, 255, 0.55);
  outline-offset: 3px;
}

@media (min-width: 900px) {
  .premium-plans {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: stretch;
    max-width: 1000px;
    gap: 16px;
    padding: 0 0 8px;
  }

  .premium-plan {
    min-height: 100%;
  }

  .premium-plan__head--featured {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
}

@media (max-width: 390px) {
  .premium-shell,
  .credits-shell {
    padding-left: 16px;
    padding-right: 16px;
  }

  .premium-panel {
    gap: 8px;
  }

  .premium-plans {
    gap: 10px;
  }

  .premium-plan {
    padding: 10px 12px 12px;
  }

  .premium-plan li {
    font-size: 12px;
  }

  .premium-continue {
    min-height: 46px;
    font-size: 13px;
  }
}

.credits-hero {
  align-content: start;
}

.credit-packages {
  display: grid;
  gap: 10px;
}

.credit-package {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 14px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(16px);
}

.credit-package.featured {
  border-color: rgba(244, 201, 104, 0.32);
  background:
    linear-gradient(135deg, rgba(244, 201, 104, 0.15), rgba(255, 77, 120, 0.1)),
    rgba(255, 255, 255, 0.07);
  box-shadow:
    0 18px 42px rgba(244, 201, 104, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.credit-package.featured::after {
  position: absolute;
  top: 10px;
  right: 10px;
  content: "Best value";
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(244, 201, 104, 0.14);
  color: rgba(244, 201, 104, 0.96);
  font-size: 11px;
  font-weight: 820;
  line-height: 1;
}

.credit-package div {
  display: grid;
  gap: 5px;
  padding-right: 86px;
}

.credit-package span {
  color: white;
  font-size: 14px;
  font-weight: 840;
  line-height: 1;
}

.credit-package strong {
  color: white;
  font-size: 32px;
  font-weight: 850;
  line-height: 1;
}

.credit-package p {
  margin: 0;
  color: rgba(59, 227, 208, 0.9);
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.credit-package ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.credit-package li {
  color: rgba(255, 255, 255, 0.66);
  font-size: 12px;
  font-weight: 610;
  line-height: 1.25;
}

.credit-package li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-right: 8px;
  border-radius: 999px;
  background: rgba(59, 227, 208, 0.82);
  vertical-align: 1px;
}

.credit-package button {
  min-height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 77, 120, 0.82), rgba(255, 107, 85, 0.62));
  color: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 820;
}

.credit-value-note {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  backdrop-filter: blur(14px);
}

.credit-value-note p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.32;
}

.activity-shell {
  position: relative;
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 0;
  width: 100%;
  isolation: isolate;
  overflow: hidden auto;
  padding: max(16px, var(--safe-top)) 18px
    calc(18px + var(--safe-bottom));
  background:
    radial-gradient(86% 52% at 18% 8%, rgba(255, 77, 120, 0.2), transparent 62%),
    radial-gradient(82% 52% at 94% 24%, rgba(59, 227, 208, 0.13), transparent 64%),
    linear-gradient(180deg, #101010 0%, #080708 56%, #050505 100%);
}

.settings-shell {
  position: relative;
  display: grid;
  align-content: start;
  gap: 16px;
  min-height: 0;
  width: 100%;
  isolation: isolate;
  overflow: hidden auto;
  padding: max(16px, var(--safe-top)) 18px
    calc(18px + var(--safe-bottom));
  background:
    radial-gradient(86% 52% at 18% 8%, rgba(59, 227, 208, 0.13), transparent 62%),
    radial-gradient(82% 52% at 94% 24%, rgba(255, 77, 120, 0.16), transparent 64%),
    linear-gradient(180deg, #101010 0%, #080708 56%, #050505 100%);
}

.activity-hero {
  display: grid;
  gap: 12px;
}

.activity-hero h1 {
  margin: 0;
  color: white;
  font-size: clamp(37px, 10.4vw, 52px);
  font-weight: 840;
  letter-spacing: 0;
  line-height: 0.96;
}

.activity-hero p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 560;
  line-height: 1.42;
}

.activity-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.activity-summary article {
  display: grid;
  gap: 7px;
  min-height: 84px;
  align-content: center;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.055);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.activity-summary span {
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 760;
  line-height: 1;
}

.activity-summary strong {
  color: white;
  font-size: 28px;
  font-weight: 850;
  line-height: 1;
}

.activity-tabs {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  scrollbar-width: none;
}

.activity-tabs::-webkit-scrollbar {
  display: none;
}

.activity-tabs button {
  min-height: 38px;
  flex: 0 0 auto;
  padding: 0 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 12px;
  font-weight: 780;
}

.activity-tabs button[aria-pressed="true"] {
  border-color: rgba(59, 227, 208, 0.24);
  background: rgba(59, 227, 208, 0.12);
  color: rgba(59, 227, 208, 0.94);
}

.activity-feed {
  display: grid;
  gap: 10px;
}

.activity-item {
  display: grid;
  grid-template-columns: 54px 1fr auto;
  align-items: center;
  gap: 11px;
  min-height: 78px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.16);
}

.activity-item img,
.locked-avatar {
  width: 54px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.locked-avatar {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 77, 120, 0.18)),
    rgba(255, 255, 255, 0.08);
  filter: blur(0.2px);
}

.locked-avatar::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  content: "Locked";
  background: rgba(0, 0, 0, 0.22);
  color: rgba(255, 255, 255, 0.72);
  font-size: 10px;
  font-weight: 820;
}

.locked-avatar.warm {
  background:
    linear-gradient(135deg, rgba(244, 201, 104, 0.22), rgba(255, 77, 120, 0.2)),
    rgba(255, 255, 255, 0.08);
}

.activity-item div:not(.locked-avatar) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.activity-item span {
  color: rgba(59, 227, 208, 0.84);
  font-size: 11px;
  font-weight: 820;
  line-height: 1;
}

.activity-item.match span {
  color: rgba(244, 201, 104, 0.92);
}

.activity-item h2 {
  margin: 0;
  color: white;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.15;
}

.activity-item p {
  margin: 0;
  color: rgba(255, 255, 255, 0.58);
  font-size: 12px;
  font-weight: 610;
  line-height: 1.2;
}

.activity-item button,
.activity-upgrade button {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.09);
  color: white;
  cursor: pointer;
  font-size: 12px;
  font-weight: 820;
}

.activity-item.locked {
  border-color: rgba(244, 201, 104, 0.18);
}

.activity-item.locked button,
.activity-upgrade button {
  border-color: rgba(244, 201, 104, 0.24);
  background: rgba(244, 201, 104, 0.12);
  color: rgba(244, 201, 104, 0.96);
}

.activity-upgrade {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(244, 201, 104, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(244, 201, 104, 0.1), rgba(255, 77, 120, 0.08)),
    rgba(255, 255, 255, 0.055);
}

.activity-upgrade div {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 10px;
}

.activity-upgrade p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.32;
}

.settings-hero {
  display: grid;
  gap: 12px;
}

.settings-hero h1 {
  margin: 0;
  color: white;
  font-size: clamp(37px, 10.4vw, 52px);
  font-weight: 840;
  letter-spacing: 0;
  line-height: 0.96;
}

.settings-hero p:not(.eyebrow) {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  font-weight: 560;
  line-height: 1.42;
}

.settings-group {
  display: grid;
  gap: 10px;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.095), rgba(255, 255, 255, 0.045)),
    rgba(255, 255, 255, 0.055);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    0 16px 34px rgba(0, 0, 0, 0.16);
  backdrop-filter: blur(16px);
}

.settings-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.settings-heading h2 {
  margin: 0;
  color: white;
  font-size: 14px;
  font-weight: 840;
  line-height: 1;
}

.settings-heading span {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 720;
  line-height: 1;
}

.settings-row,
.toggle-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 11px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.055);
  color: white;
}

.settings-row {
  cursor: pointer;
  text-align: left;
}

.settings-row--display {
  cursor: default;
  pointer-events: none;
}

.settings-row span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
  font-weight: 680;
}

.settings-row strong {
  color: white;
  font-size: 13px;
  font-weight: 820;
}

.settings-row.premium-row strong {
  color: rgba(244, 201, 104, 0.96);
}

.settings-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.settings-options button {
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font-size: 12px;
  font-weight: 780;
}

.settings-options button[aria-pressed="true"] {
  border-color: rgba(59, 227, 208, 0.24);
  background: rgba(59, 227, 208, 0.12);
  color: rgba(59, 227, 208, 0.94);
}

.toggle-row span {
  display: grid;
  gap: 4px;
}

.toggle-row strong {
  color: white;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
}

.toggle-row small {
  color: rgba(255, 255, 255, 0.54);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
}

.toggle-row input {
  appearance: none;
  position: relative;
  width: 46px;
  height: 28px;
  margin: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
  transition: background-color 160ms ease;
}

.toggle-row input::after {
  position: absolute;
  top: 4px;
  left: 4px;
  width: 20px;
  height: 20px;
  content: "";
  border-radius: 999px;
  background: white;
  transition: transform 160ms ease;
}

.toggle-row input:checked {
  background: linear-gradient(135deg, var(--rose), var(--coral));
}

.toggle-row input:checked::after {
  transform: translateX(18px);
}

.ai-shell.is-active .ai-intro-card,
.ai-shell.is-active .ai-actions,
.discover-shell.is-active > *,
.chats-inbox-shell.is-active > *,
.detail-shell.is-active > *,
.match-shell.is-active .match-content,
.match-shell.is-active .match-actions,
.chat-shell.is-active > *,
.premium-shell.is-active > *,
.credits-shell.is-active > *,
.activity-shell.is-active > *,
.settings-shell.is-active > * {
  opacity: 0;
  transform: translateY(18px);
  animation: copyEnter 620ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.ai-shell.is-active .ai-actions,
.match-shell.is-active .match-actions {
  animation-delay: 170ms;
}

@keyframes pulseMatch {
  to {
    transform: scale(1.08);
    opacity: 0.72;
  }
}

.transition-veil {
  position: fixed;
  inset: 0;
  z-index: 10;
  opacity: 0;
  transform: scale(0.72);
  border-radius: 999px;
  background: #080708;
  pointer-events: none;
}

.transition-veil.is-active {
  animation: veilIn 360ms cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes photoEnter {
  from {
    opacity: 0;
    transform: scale(1.08);
  }

  to {
    opacity: 1;
    transform: scale(1.04);
  }
}

@keyframes photoDrift {
  from {
    transform: scale(1.04) translate3d(-0.8%, -0.4%, 0);
  }

  to {
    transform: scale(1.08) translate3d(0.9%, 0.5%, 0);
  }
}

@keyframes topbarEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes copyEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes ctaEnter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseDot {
  0%,
  100% {
    transform: scale(0.9);
    opacity: 0.72;
  }

  50% {
    transform: scale(1.12);
    opacity: 1;
  }
}

@keyframes sweep {
  to {
    transform: skewX(-18deg) translateX(600%);
  }
}

@keyframes veilIn {
  to {
    opacity: 1;
    transform: scale(2.8);
  }
}

@media (max-height: 740px) and (max-width: 540px) {
  .onboarding-shell {
    gap: 10px;
    padding-top: max(8px, var(--safe-top));
    padding-bottom: calc(12px + var(--safe-bottom));
  }

  .onboarding-topbar {
    grid-template-columns: 40px 1fr;
  }

  .back-button {
    width: 40px;
    height: 40px;
  }

  .progress-meta {
    font-size: 11px;
  }

  .progress-track {
    height: 4px;
  }

  .eyebrow.compact {
    margin-bottom: 6px;
    padding: 7px 9px;
    font-size: 11.5px;
  }

  .onboarding-intro h2 {
    font-size: clamp(32px, 9vw, 40px);
    line-height: 1;
  }

  .onboarding-intro p:not(.eyebrow) {
    margin-top: 8px;
    font-size: 13.5px;
    line-height: 1.36;
  }

  .onboarding-form {
    gap: 12px;
  }

  .onboarding-form--step1 {
    gap: 16px;
  }

  .onboarding-form--step1 .choice-group[data-choice-group="intent"] {
    padding: 12px 10px 14px;
  }

  .choice-group legend {
    margin-bottom: 7px;
    font-size: 13px;
  }

  .choice-pill {
    min-height: 42px;
    font-size: 12.5px;
  }

  .intent-grid {
    gap: 9px;
  }

  .intent-card {
    min-height: 88px;
    gap: 7px;
    padding: 11px;
  }

  .intent-mark {
    width: 23px;
    height: 23px;
  }

  .intent-card > span:not(.intent-mark) {
    font-size: 15.5px;
  }

  .intent-card small {
    font-size: 11px;
    line-height: 1.22;
  }

  .selection-hint {
    min-height: 15px;
    font-size: 11px;
  }

  .primary-cta.continue-step {
    min-height: 52px;
  }

  .name-fields {
    gap: 10px;
  }

  .hero-action-dock--row {
    gap: 8px;
    padding: 7px 8px 8px;
  }

  .hero-cta--dock.hero-cta--primary {
    min-height: 42px;
    padding: 0 12px;
    font-size: 13px;
  }

  .hero-icon-btn--dock {
    width: 38px;
    min-width: 38px;
    height: 38px;
  }
}

@media (max-width: 320px) {
  .name-fields {
    grid-template-columns: 1fr;
    max-height: 280px;
    gap: 12px;
  }
}

@media (min-width: 540px) {
  body {
    display: grid;
    min-height: 100vh;
    place-items: center;
    background:
      radial-gradient(80% 80% at 50% 40%, rgba(255, 77, 120, 0.18), transparent 58%),
      #050505;
  }

  .welcome-shell {
    min-height: min(860px, 100vh);
    width: min(430px, 100vw);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  }

  .language-shell,
  .onboarding-shell,
  .photo-shell,
  .profile-shell,
  .ai-shell,
  .discover-shell,
  .chats-inbox-shell,
  .detail-shell,
  .match-shell,
  .chat-shell,
  .premium-shell,
  .credits-shell,
  .activity-shell,
  .settings-shell,
  .profile-hub-shell {
    min-height: min(860px, 100vh);
    width: min(430px, 100vw);
    box-shadow: 0 28px 80px rgba(0, 0, 0, 0.42);
  }

  .onboarding-shell > .onboarding-action {
    width: min(430px, 100vw);
  }
}

@media (max-width: 360px) {
  .welcome-shell {
    padding: max(44px, var(--safe-top)) 15px calc(18px + var(--safe-bottom));
  }

  .wordmark {
    font-size: 24px;
  }

  .language-shell {
    padding-inline: 15px;
  }

  .language-copy h1 {
    font-size: 39px;
  }

  .hero-copy h1 {
    font-size: 44px;
  }

  .subheadline {
    font-size: 16px;
  }

  .onboarding-intro h2 {
    font-size: 29px;
  }

  .choice-pill {
    font-size: 12px;
  }

  .intent-card {
    min-height: 90px;
    padding: 11px;
  }

  .intent-card small {
    max-width: 14ch;
  }

  .photo-shell,
  .profile-shell,
  .ai-shell,
  .discover-shell,
  .chats-inbox-shell,
  .match-shell,
  .chat-shell,
  .premium-shell,
  .credits-shell,
  .activity-shell,
  .settings-shell,
  .profile-hub-shell {
    padding-inline: 15px;
  }

  .chat-composer {
    grid-template-columns: 38px 1fr 38px auto;
    gap: 6px;
  }

  .chat-tool-button {
    width: 38px;
    min-width: 38px;
    height: 42px;
    font-size: 15px;
  }

  .chat-composer button[data-send-message] {
    min-width: 60px;
    padding-inline: 10px;
    font-size: 11.5px;
  }

  .onboarding-action {
    padding-inline: 15px;
  }

  .onboarding-shell > .onboarding-action {
    padding-inline: 15px;
  }

  .photo-grid {
    gap: 8px;
  }

  .photo-uploader .photo-grid .photo-slot.primary {
    min-height: min(36vh, 200px);
  }

  .upload-trigger {
    min-height: 68px;
  }

  .bio-actions {
    grid-template-columns: 1fr;
  }

  .ai-bio-button {
    justify-content: center;
  }

  .vibe-chip {
    flex-basis: calc(50% - 8px);
  }

  .interest-tag {
    font-size: 11px;
    padding-inline: 6px;
  }

  .hero-profile,
  .detail-hero {
    min-height: 450px;
  }

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

  .mixed-row {
    grid-template-columns: 1fr;
  }

  .wide-profile {
    grid-template-columns: 38% 1fr;
  }

  .topbar-actions {
    gap: 6px;
  }

  .activity-chip,
  .premium-chip {
    padding-inline: 9px;
    font-size: 11px;
  }

  .activity-item {
    grid-template-columns: 48px 1fr auto;
  }

  .activity-item img,
  .locked-avatar {
    width: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 1ms !important;
  }

  .ambient-photo {
    transform: scale(1.04);
  }

  .hero-profile:active {
    transform: none;
  }

  .hero-profile__media img,
  .hero-profile:hover .hero-profile__media img,
  .hero-profile:focus-within .hero-profile__media img {
    transform: none;
  }
}

/*
 * Body uses overflow:hidden. Each visible main has a bounded height (100dvh minus
 * tab bar when shown). Avoid min-height:100svh on the same element plus extra
 * bottom padding — that duplicated viewport height and created empty scroll gaps.
 */
main.app-screen:not(.is-hidden) {
  height: calc(100vh - var(--app-bottom-offset, 0px));
  height: calc(100dvh - var(--app-bottom-offset, 0px));
  max-height: calc(100vh - var(--app-bottom-offset, 0px));
  max-height: calc(100dvh - var(--app-bottom-offset, 0px));
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-y: none;
}

main.chat-shell.app-screen:not(.is-hidden) {
  overflow: hidden;
}

@media (min-width: 540px) {
  main.app-screen:not(.is-hidden) {
    height: calc(min(860px, 100vh) - var(--app-bottom-offset, 0px));
    height: calc(min(860px, 100dvh) - var(--app-bottom-offset, 0px));
    max-height: calc(min(860px, 100vh) - var(--app-bottom-offset, 0px));
    max-height: calc(min(860px, 100dvh) - var(--app-bottom-offset, 0px));
  }
}
