:root {
  --bg: #06050a;
  --bg-elevated: #0f0b15;
  --surface: rgba(16, 12, 22, 0.84);
  --surface-strong: rgba(22, 15, 30, 0.96);
  --surface-soft: rgba(11, 8, 16, 0.94);
  --surface-muted: rgba(255, 255, 255, 0.04);
  --line: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(255, 92, 194, 0.28);
  --text: #f8f5fb;
  --text-soft: rgba(248, 245, 251, 0.72);
  --text-muted: rgba(248, 245, 251, 0.46);
  --cta: #ff2fa5;
  --cta-strong: #ff79db;
  --cta-shadow: rgba(255, 47, 165, 0.34);
  --success: #66d9a1;
  --danger: #ff7676;
  --radius-xl: 30px;
  --radius-lg: 22px;
  --radius-md: 18px;
  --radius-sm: 14px;
  --shadow: 0 30px 80px rgba(0, 0, 0, 0.34);
  --max-width: 480px;
  --font-body: "Manrope", "Avenir Next", sans-serif;
  --font-display: "Cormorant Garamond", Georgia, serif;
  font-family: var(--font-body);
}

* {
  box-sizing: border-box;
}

html {
  margin: 0;
  min-height: 100%;
  background-color: #06050a;
  background:
    radial-gradient(circle at top left, rgba(255, 90, 193, 0.2), transparent 24%),
    radial-gradient(circle at 80% 12%, rgba(255, 47, 165, 0.14), transparent 22%),
    radial-gradient(circle at 50% 100%, rgba(146, 78, 255, 0.16), transparent 28%),
    linear-gradient(180deg, #040307 0%, #09070e 48%, #05040a 100%);
  color: var(--text);
  color-scheme: dark;
}

body {
  margin: 0;
  min-height: 100dvh;
  position: relative;
  overflow-x: hidden;
  overscroll-behavior-y: none;
  background: transparent;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.08;
  background-image:
    radial-gradient(rgba(255, 255, 255, 0.75) 0.4px, transparent 0.4px),
    radial-gradient(rgba(255, 255, 255, 0.45) 0.4px, transparent 0.4px);
  background-position: 0 0, 12px 12px;
  background-size: 24px 24px;
  mix-blend-mode: soft-light;
}

body::after {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(6, 5, 10, 0.96) 0%, rgba(6, 5, 10, 0) 18%),
    linear-gradient(0deg, rgba(6, 5, 10, 0.92) 0%, rgba(6, 5, 10, 0) 18%);
}

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

button {
  cursor: pointer;
}

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

.ambient {
  position: fixed;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.5;
  pointer-events: none;
}

.ambient-one {
  top: -110px;
  left: -90px;
  width: 260px;
  height: 260px;
  background: rgba(255, 56, 175, 0.28);
}

.ambient-two {
  top: 28%;
  right: -80px;
  width: 220px;
  height: 220px;
  background: rgba(142, 95, 255, 0.2);
}

.ambient-three {
  bottom: 10%;
  left: 20%;
  width: 180px;
  height: 180px;
  background: rgba(255, 88, 191, 0.14);
}

.app-shell {
  width: min(100%, var(--max-width));
  min-height: 100dvh;
  margin: 0 auto;
  padding: 0 18px calc(22px + env(safe-area-inset-bottom, 0px));
  position: relative;
  z-index: 1;
}

html.tabs-visible .app-shell {
  padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
}

html.landing-locked,
html.landing-locked body {
  overflow: hidden;
}

html.landing-locked .app-shell {
  min-height: 100dvh;
  padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px));
}

.chrome {
  min-height: 36px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 4px;
  padding: calc(4px + env(safe-area-inset-top, 0px)) 0 4px;
  position: sticky;
  top: 0;
  z-index: 24;
  backdrop-filter: blur(14px);
  background: linear-gradient(180deg, rgba(6, 5, 10, 0.98), rgba(6, 5, 10, 0.82) 70%, rgba(6, 5, 10, 0));
}

.chrome-topline {
  display: flex;
  align-items: center;
  gap: 6px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  padding: 3px 7px;
  border-radius: 999px;
  border: 1px solid rgba(255, 95, 194, 0.16);
  background: rgba(10, 8, 15, 0.82);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.18);
}

.brand-mark {
  width: 12px;
  height: 12px;
  border-radius: 4px;
  background:
    radial-gradient(circle at 30% 30%, rgba(255, 225, 245, 0.95), transparent 34%),
    linear-gradient(135deg, #ff79db, #ff2fa5 54%, #8d57ff);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.brand-name {
  font-size: 0.56rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1;
  text-transform: uppercase;
}

.brand-copy {
  display: none;
}

.icon-button {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: rgba(14, 11, 20, 0.92);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  font-size: 1rem;
  line-height: 1;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.22);
}

.icon-button:disabled {
  opacity: 0.4;
  cursor: default;
  box-shadow: none;
}

.icon-button.compact {
  width: 28px;
  height: 28px;
  font-size: 1rem;
}

.hidden {
  display: none !important;
}

.screen {
  display: none;
  min-height: calc(100vh - 74px);
}

.screen.active {
  display: flex;
  animation: screen-in 280ms ease;
}

.screen-body {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 10px 2px 28px;
}

.hero-screen {
  justify-content: flex-start;
  min-height: calc(100dvh - 96px - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px));
  padding-top: clamp(8px, 2.8vh, 18px);
  padding-bottom: calc(8px + env(safe-area-inset-bottom, 0px));
}

.hero-card,
.preview-card,
.tip-panel,
.result-card,
.metric-card,
.mini-stat,
.feature-banner,
.detail-panel,
.pricing-card,
.quote-card,
.message-card,
.tip-card,
.match-card,
.assistant-panel,
.suggestion-card,
.chat-message .bubble,
.upgrade-banner,
.empty-state,
.panel-note {
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-card {
  min-height: 100%;
  padding: 24px 22px 32px;
  border-radius: 38px;
  position: relative;
  overflow: hidden;
  text-align: center;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background:
    radial-gradient(circle at top right, rgba(255, 92, 194, 0.18), transparent 30%),
    linear-gradient(180deg, rgba(18, 13, 26, 0.98), rgba(9, 7, 15, 0.94));
  border-color: rgba(255, 95, 194, 0.14);
}

.hero-card::after {
  content: "";
  position: absolute;
  inset: auto -20px -48px auto;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 92, 194, 0.34), rgba(255, 47, 165, 0));
  pointer-events: none;
}

.hero-card h1,
.hero-card p {
  position: relative;
  z-index: 1;
}

.landing-label {
  margin-bottom: 16px;
  margin-left: auto;
  margin-right: auto;
}

.hero-card h1 {
  font-size: clamp(3.5rem, 12.3vw, 5.1rem);
  line-height: 0.93;
  letter-spacing: -0.05em;
}

.hero-card h1 .accent-text {
  display: block;
  font-size: 1em;
  line-height: inherit;
  letter-spacing: inherit;
}

.hero-subcopy {
  max-width: 23ch;
  margin-top: 20px;
  margin-left: auto;
  margin-right: auto;
  color: var(--text-soft);
  font-size: 1.02rem;
}

.hero-hook {
  margin-top: 18px;
  color: #ffd0ee;
  font-weight: 700;
  font-size: 1rem;
}

.landing-cta {
  margin-top: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  animation: cta-glow 4s ease-in-out infinite, cta-pulse 4s ease-in-out infinite;
  min-height: 72px;
  font-size: 1.16rem;
  padding-inline: 28px;
}

.landing-cta span:last-child {
  font-size: 1.14em;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.scan-icon {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  border: 2px solid rgba(255, 255, 255, 0.95);
  position: relative;
  flex: 0 0 auto;
}

.scan-icon::before,
.scan-icon::after {
  content: "";
  position: absolute;
  inset: 3px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  border-radius: 3px;
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 22px;
}

.trust-pill {
  padding: 8px 11px;
  border-radius: 999px;
  border: 1px solid rgba(255, 95, 194, 0.14);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 700;
}

.footer-copy {
  margin-top: auto;
  padding-top: 26px;
  font-size: 0.95rem;
}

.social-proof {
  margin-top: 12px;
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 6px 0 10px;
  position: relative;
  z-index: 1;
}

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

.compact-metrics .metric-card {
  padding: 12px 10px;
  text-align: center;
}

.metric-card,
.mini-stat {
  border-radius: 18px;
  padding: 14px 16px;
}

.metric-card span,
.mini-stat span {
  display: block;
  color: var(--text-muted);
  font-size: 0.8rem;
}

.metric-card strong,
.mini-stat strong {
  display: block;
  margin-top: 6px;
  font-size: 1.02rem;
}

.app-tabs {
  position: static;
  transform: none;
  z-index: 1;
  width: 100%;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(9, 11, 17, 0.92);
  backdrop-filter: blur(18px);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.2);
}

.app-tab {
  min-height: 30px;
  border-radius: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-muted);
  font-weight: 800;
  font-size: 0.74rem;
  touch-action: manipulation;
}

.app-tab.active {
  background: rgba(255, 92, 194, 0.12);
  border-color: rgba(255, 92, 194, 0.2);
  color: #ffd3ef;
}

.screen-heading {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.heading-inline-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.heading-edit-button {
  flex: 0 0 auto;
  min-height: 40px;
  padding: 10px 14px;
  margin-left: auto;
}

.micro-label {
  width: fit-content;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(255, 92, 194, 0.08);
  border: 1px solid rgba(255, 92, 194, 0.14);
  color: #ffc9ec;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  font-size: clamp(2rem, 7vw, 3.25rem);
  line-height: 0.98;
  letter-spacing: -0.04em;
  font-family: var(--font-display);
  font-weight: 700;
}

h2 {
  font-size: clamp(1.75rem, 6vw, 2.45rem);
}

h3 {
  font-size: 1.06rem;
  line-height: 1.2;
}

p,
li,
span,
strong,
input,
select,
textarea,
small {
  font-size: 0.98rem;
  line-height: 1.45;
}

.accent-text {
  color: #ff84de;
}

.subcopy,
.footer-copy,
.result-description,
.detail-meta,
.assistant-note,
.support-note {
  color: var(--text-soft);
}

.action-stack {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.screen-note,
.upload-trust-line {
  color: #ffcbe9;
  font-size: 0.88rem;
  font-weight: 600;
}

.upload-social-proof {
  color: var(--text-muted);
  font-size: 0.86rem;
}

#screen-upload .screen-heading {
  gap: 10px;
}

#screen-upload h2 {
  max-width: none;
  font-size: clamp(1.95rem, 7.2vw, 2.46rem);
  line-height: 0.95;
  letter-spacing: -0.045em;
  white-space: nowrap;
}

#screen-upload h2 .accent-text {
  font-size: 1em;
  line-height: inherit;
  letter-spacing: inherit;
}

.upload-trust-line {
  text-align: center;
}

.upload-sticky-footer {
  position: sticky;
  bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  z-index: 8;
  display: grid;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  background: linear-gradient(180deg, rgba(6, 5, 10, 0), rgba(6, 5, 10, 0.9) 24%, rgba(6, 5, 10, 0.98) 100%);
}

.upload-option-grid {
  display: grid;
  gap: 14px;
}

.upload-option {
  width: 100%;
  min-height: 88px;
  padding: 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(12, 9, 17, 0.96);
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--text);
  text-align: left;
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.24);
}

.upload-option:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 121, 219, 0.18);
}

.upload-option-copy {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.upload-option-copy strong {
  font-size: 1.02rem;
}

.upload-option-copy small {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.option-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(255, 47, 165, 0.18), rgba(255, 121, 219, 0.14));
  border: 1px solid rgba(255, 97, 196, 0.14);
  color: #ffd5ef;
  font-size: 1rem;
}

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

.guideline-pill {
  min-height: 0;
  padding: 10px 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.guideline-icon {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  background: rgba(255, 47, 165, 0.14);
  color: #ff9de4;
  font-size: 0.72rem;
}

.inline-actions {
  flex-direction: row;
}

.inline-actions > * {
  flex: 1;
}

.cta-button,
.secondary-button,
.ghost-button,
.tab-button,
.pricing-card,
.quote-card,
.tone-chip {
  width: 100%;
  min-height: 58px;
  border: 0;
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  font-weight: 800;
  color: var(--text);
  font-size: 0.98rem;
  line-height: 1.15;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background 180ms ease,
    border-color 180ms ease,
    opacity 180ms ease;
}

.cta-button {
  background: linear-gradient(135deg, var(--cta), var(--cta-strong));
  color: #fff8fd;
  box-shadow:
    0 0 0 1px rgba(255, 171, 226, 0.14),
    0 22px 50px var(--cta-shadow),
    0 0 28px rgba(255, 47, 165, 0.2);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--line);
}

.ghost-button {
  background: rgba(255, 255, 255, 0.02);
  border: 1px dashed rgba(255, 97, 196, 0.18);
}

.compact-action,
.ghost-button.compact-action {
  min-height: 46px;
  width: auto;
  padding: 12px 16px;
}

.cta-button:disabled,
.secondary-button:disabled,
.ghost-button:disabled,
.tab-button:disabled,
.tone-chip:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.cta-button:not(:disabled):active,
.secondary-button:not(:disabled):active,
.ghost-button:not(:disabled):active,
.tab-button:not(:disabled):active,
.pricing-card:active,
.quote-card:active,
.tone-chip:not(:disabled):active,
.icon-button:active {
  transform: translateY(1px) scale(0.99);
}

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

.auth-button {
  min-height: 64px;
}

.divider {
  position: relative;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.divider::before {
  content: "";
  position: absolute;
  inset: 50% 0 auto;
  border-top: 1px solid var(--line);
}

.divider span {
  position: relative;
  padding: 0 12px;
  background: var(--bg);
}

.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.field span {
  font-size: 0.86rem;
  color: var(--text-soft);
  font-weight: 700;
}

.field input,
.field select,
.field textarea,
#chat-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 15px 16px;
  outline: none;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.field textarea,
#chat-input {
  resize: vertical;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
#chat-input:focus {
  border-color: rgba(255, 92, 194, 0.3);
  box-shadow: 0 0 0 4px rgba(255, 92, 194, 0.08);
}

.two-column-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.location-shell {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.location-field-shell {
  position: relative;
}

.location-shell .ghost-button {
  width: auto;
}

.autocomplete-list {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 10;
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(11, 14, 22, 0.96);
  box-shadow: 0 24px 46px rgba(0, 0, 0, 0.34);
}

.autocomplete-option {
  width: 100%;
  min-height: 0;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid transparent;
  background: rgba(255, 255, 255, 0.04);
  color: var(--text);
  text-align: left;
  font-weight: 700;
}

.autocomplete-option small {
  display: block;
  margin-top: 3px;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
}

.autocomplete-option.active,
.autocomplete-option:hover {
  background: rgba(255, 92, 194, 0.12);
  border-color: rgba(255, 92, 194, 0.18);
}

.selected-interest-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.interest-picker {
  display: grid;
  gap: 12px;
}

.interest-category-strip {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
}

.interest-category-tab {
  min-height: 0;
  width: auto;
  padding: 10px 13px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.interest-category-tab.active {
  border-color: rgba(255, 92, 194, 0.26);
  background: rgba(255, 92, 194, 0.12);
  color: #ffd4ef;
}

.interest-category-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.interest-category-title {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.interest-option-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.profile-photo-editor {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.photo-thumb,
.photo-empty-state {
  min-height: 0;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.photo-thumb {
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  text-align: left;
}

.photo-thumb.primary {
  border-color: rgba(255, 92, 194, 0.24);
  box-shadow: 0 20px 40px rgba(255, 47, 165, 0.12);
}

.photo-thumb img {
  width: 100%;
  aspect-ratio: 0.88;
  object-fit: cover;
  border-radius: 16px;
}

.photo-thumb span {
  color: var(--text-soft);
  font-size: 0.78rem;
  font-weight: 700;
}

.photo-empty-state {
  grid-column: 1 / -1;
  padding: 16px;
  color: var(--text-soft);
  font-size: 0.9rem;
}

.prompt-builder,
.prompt-card-list {
  display: grid;
  gap: 12px;
}

.prompt-editor-card,
.prompt-card {
  padding: 14px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  display: grid;
  gap: 10px;
}

.prompt-card.empty {
  color: var(--text-soft);
}

.prompt-card p {
  color: var(--text);
  font-size: 0.95rem;
  line-height: 1.5;
}

.prompt-card .compact-action {
  justify-self: start;
}

.prompt-card-label {
  color: #ffc9ec;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.profile-gallery {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(72%, 1fr);
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  padding-bottom: 2px;
}

.gallery-card {
  display: grid;
  gap: 8px;
  scroll-snap-align: start;
}

.gallery-photo-button {
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 24px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.04);
}

.gallery-photo-button img {
  width: 100%;
  aspect-ratio: 0.84;
  object-fit: cover;
}

.gallery-card:nth-child(2) .gallery-photo-button img {
  object-position: center 24%;
}

.gallery-card:nth-child(3) .gallery-photo-button img {
  object-position: center 34%;
  transform: scale(1.03);
}

.interest-option,
.selected-interest-chip {
  min-height: 0;
  width: auto;
  padding: 11px 14px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-soft);
  font-size: 0.9rem;
  font-weight: 700;
}

.interest-option.active,
.selected-interest-chip {
  background: linear-gradient(180deg, rgba(255, 92, 194, 0.18), rgba(255, 255, 255, 0.06));
  border-color: rgba(255, 92, 194, 0.26);
  color: #ffd7f1;
}

.interest-option:disabled {
  opacity: 0.42;
  cursor: not-allowed;
}

.tip-panel,
.preview-card,
.message-card,
.detail-panel,
.assistant-panel,
.empty-state {
  padding: 18px;
  border-radius: var(--radius-xl);
}

.tip-title {
  font-size: 0.82rem;
  color: var(--text-muted);
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 10px;
}

.tip-panel ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.tip-panel li {
  padding-left: 18px;
  position: relative;
}

.tip-panel li::before {
  content: "";
  position: absolute;
  top: 10px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--cta-strong), var(--cta));
}

.preview-card {
  min-height: 220px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(19, 13, 27, 0.98), rgba(9, 7, 15, 0.94)),
    var(--surface);
}

#photo-preview {
  width: 100%;
  height: min(46vh, 320px);
  object-fit: cover;
  object-position: center 24%;
  border-radius: 22px;
}

.preview-card.preview-unavailable {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.preview-caption {
  margin-top: 14px;
  color: #ffd4ef;
  font-size: 0.86rem;
  font-weight: 700;
}

.processing-screen {
  justify-content: center;
  align-items: center;
  text-align: center;
}

.processing-card {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: 32px 24px 28px;
  border-radius: 36px;
  border: 1px solid rgba(255, 97, 196, 0.12);
  background:
    radial-gradient(circle at top, rgba(255, 97, 196, 0.16), transparent 30%),
    linear-gradient(180deg, rgba(18, 13, 26, 0.98), rgba(8, 6, 13, 0.94));
  box-shadow: 0 34px 80px rgba(0, 0, 0, 0.32);
  backdrop-filter: blur(20px);
}

.orbit-loader {
  width: 116px;
  height: 116px;
  position: relative;
}

.orbit-loader span {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 97, 196, 0.22);
  animation: pulse-ring 1.8s ease infinite;
}

.orbit-loader span:nth-child(2) {
  animation-delay: 0.2s;
}

.orbit-loader span:nth-child(3) {
  animation-delay: 0.4s;
}

.processing-line {
  min-height: 30px;
  color: #ffb7e8;
  font-weight: 700;
}

.processing-step-list {
  width: 100%;
  display: grid;
  gap: 10px;
}

.processing-step {
  padding: 12px 14px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-muted);
  text-align: left;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.processing-step.active {
  color: #ffd7f2;
  border-color: rgba(255, 97, 196, 0.18);
  background: rgba(255, 97, 196, 0.08);
  transform: translateY(-1px);
}

.processing-step.complete {
  color: var(--text-soft);
  border-color: rgba(255, 121, 219, 0.12);
}

.progress-rail {
  width: min(84vw, 290px);
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.progress-fill {
  width: 35%;
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--cta), var(--cta-strong));
  animation: fill-progress 3.6s ease forwards;
}

.result-overview {
  display: grid;
  gap: 10px;
}

.result-screen {
  gap: 12px;
  padding-bottom: 16px;
}

#screen-results .screen-heading {
  gap: 8px;
}

.result-history-button {
  min-height: 36px;
  padding: 9px 14px;
  margin-left: auto;
  border-radius: 999px;
  white-space: nowrap;
}

.result-photo-shell {
  position: relative;
  min-height: 288px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  display: block;
  padding: 0;
  border-radius: 28px;
  border: 1px solid rgba(var(--result-tier-accent-rgb), 0.28);
  background:
    radial-gradient(circle at top right, rgba(var(--result-tier-accent-rgb), 0.22), transparent 36%),
    linear-gradient(180deg, rgba(24, 15, 31, 0.98), rgba(9, 8, 15, 0.98));
  box-shadow:
    0 24px 56px rgba(0, 0, 0, 0.26),
    0 0 0 1px rgba(var(--result-tier-accent-rgb), 0.1),
    0 0 30px rgba(var(--result-tier-accent-rgb), 0.12);
}

.result-photo-shell::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 7, 11, 0.12) 0%, rgba(8, 7, 11, 0.28) 34%, rgba(8, 7, 11, 0.82) 100%),
    linear-gradient(180deg, rgba(var(--result-tier-accent-rgb), 0.12), transparent 24%);
  pointer-events: none;
}

.result-photo-preview {
  width: 100%;
  height: 100%;
  min-height: 288px;
  object-fit: cover;
  object-position: center 24%;
  display: block;
}

.result-photo-overlay {
  position: absolute;
  inset: 12px;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}

.result-photo-overlay > * {
  pointer-events: auto;
}

.rescan-improvement-badge {
  align-self: flex-start;
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 199, 84, 0.26);
  background:
    radial-gradient(circle at top left, rgba(255, 210, 102, 0.24), transparent 52%),
    linear-gradient(135deg, rgba(41, 28, 9, 0.94), rgba(18, 14, 10, 0.92));
  box-shadow:
    0 16px 34px rgba(0, 0, 0, 0.2),
    0 0 28px rgba(255, 184, 71, 0.18);
  color: #ffe9b2;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  opacity: 0;
  transform: translateY(-8px) scale(0.96);
}

.rescan-improvement-badge.visible {
  animation: result-badge-in 320ms cubic-bezier(0.2, 0.9, 0.25, 1.08) forwards;
}

.result-photo-chip {
  display: none;
}

.result-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.98fr) minmax(0, 1.24fr) minmax(0, 0.94fr);
  gap: 8px;
  align-items: start;
}

.result-card {
  border-radius: var(--radius-xl);
  padding: 12px 11px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 8px;
  text-align: left;
  min-height: 84px;
  background: rgba(9, 10, 15, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(14px);
}

#screen-results {
  --result-tier-accent: #ff6bc8;
  --result-tier-accent-rgb: 255, 107, 200;
}

.result-card span {
  color: var(--text-soft);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.result-card strong {
  font-size: 1rem;
  line-height: 1;
}

.result-card-value {
  display: grid;
  gap: 4px;
}

.result-card-flair {
  color: var(--text-muted);
  font-size: 0.68rem;
  line-height: 1.25;
}

.result-card-wide {
  grid-column: 1 / -1;
  min-height: 92px;
  width: 100%;
}

.score-card strong {
  font-size: 1.62rem;
  color: #ffe0f4;
  text-shadow: 0 0 24px rgba(255, 88, 191, 0.2);
}

.score-card {
  background:
    radial-gradient(circle at top left, rgba(255, 92, 194, 0.16), transparent 38%),
    var(--surface);
}

.tier-card {
  background:
    radial-gradient(circle at top right, rgba(var(--result-tier-accent-rgb), 0.16), transparent 40%),
    var(--surface);
}

.tier-card strong {
  color: var(--result-tier-accent);
  font-size: clamp(0.66rem, 2.35vw, 0.8rem);
  line-height: 1.08;
  letter-spacing: -0.01em;
  white-space: normal;
  overflow: visible;
  text-overflow: initial;
}

.result-tier-value {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}

.result-tier-emoji {
  font-style: normal;
  font-size: 1.08rem;
  line-height: 1;
  color: var(--result-tier-accent);
  flex: 0 0 auto;
}

.percentile-card {
  background:
    radial-gradient(circle at top right, rgba(134, 170, 255, 0.12), transparent 38%),
    var(--surface);
}

.percentile-card strong {
  color: #eef3ff;
  font-size: 1.32rem;
}

.potential-card {
  margin-top: auto;
  border: 1px solid rgba(255, 213, 135, 0.24);
  background:
    radial-gradient(circle at top right, rgba(255, 215, 138, 0.18), transparent 42%),
    linear-gradient(180deg, rgba(36, 25, 11, 0.82), rgba(20, 14, 10, 0.92));
  box-shadow:
    0 0 0 1px rgba(255, 215, 138, 0.12),
    0 24px 52px rgba(255, 197, 94, 0.12);
}

.potential-card strong {
  font-size: 1.64rem;
  color: #ffe29b;
  text-shadow: 0 0 22px rgba(255, 212, 122, 0.18);
}

.potential-card .result-card-flair {
  color: rgba(255, 238, 196, 0.72);
}

.result-hook {
  color: #ffc9ec;
  font-size: 0.92rem;
  font-weight: 800;
}

#screen-results .result-description {
  font-size: 0.9rem;
  line-height: 1.35;
}

.rescan-change-module {
  margin-top: 10px;
  padding: 16px 16px 14px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(255, 105, 199, 0.12), transparent 38%),
    linear-gradient(180deg, rgba(22, 18, 30, 0.92), rgba(12, 10, 18, 0.96));
  box-shadow: 0 20px 44px rgba(4, 3, 8, 0.28);
}

.rescan-change-comparison {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.rescan-change-stat {
  padding: 10px 12px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  text-align: center;
}

.rescan-change-stat span {
  display: block;
  font-size: 0.68rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.56);
}

.rescan-change-stat strong {
  display: block;
  margin-top: 4px;
  font-size: 1.15rem;
  color: #fff4fb;
}

.rescan-change-arrow {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.48);
}

.rescan-score-delta {
  min-width: 68px;
  padding: 10px 12px;
  border-radius: 18px;
  text-align: center;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.rescan-score-delta.positive {
  color: #ffd3ef;
  background: linear-gradient(180deg, rgba(255, 93, 193, 0.28), rgba(255, 93, 193, 0.1));
  box-shadow: 0 0 0 1px rgba(255, 110, 201, 0.14), 0 0 24px rgba(255, 93, 193, 0.12);
}

.rescan-score-delta.neutral {
  color: rgba(255, 255, 255, 0.72);
  background: rgba(255, 255, 255, 0.05);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.rescan-change-head h3 {
  margin: 0;
  font-size: 1rem;
  color: #fff4fb;
}

.rescan-change-head p {
  margin: 6px 0 0;
  font-size: 0.82rem;
  line-height: 1.4;
  color: rgba(255, 255, 255, 0.66);
}

.rescan-change-reasons {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.rescan-reason-row {
  padding: 11px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.84rem;
  line-height: 1.4;
}

.rescan-change-tip {
  margin: 12px 0 0;
  font-size: 0.78rem;
  line-height: 1.4;
  color: rgba(255, 209, 237, 0.78);
}

#rescan-change-cta {
  margin-top: 12px;
  min-height: 42px;
}

.result-actions {
  gap: 10px;
  position: relative;
  z-index: 2;
}

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

.compact-result-action {
  min-height: 42px;
  padding: 10px 8px;
  font-size: 0.78rem;
  border-radius: 18px;
}

#screen-results .secondary-button,
#screen-results .ghost-button {
  min-height: 42px;
  font-size: 0.84rem;
}

#see-matches {
  position: relative;
  z-index: 2;
  touch-action: manipulation;
}

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

.feature-banner,
.panel-note,
.upgrade-banner,
.support-note {
  border-radius: 22px;
  padding: 16px 18px;
}

.feature-banner {
  color: var(--text-soft);
}

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

.tab-button {
  min-height: 52px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
}

.tab-button.active {
  background: linear-gradient(180deg, rgba(255, 92, 194, 0.16), rgba(255, 255, 255, 0.04));
  border-color: var(--line-strong);
}

.match-panel {
  display: none;
}

.match-panel.active {
  display: block;
}

.match-feed {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.match-card {
  border-radius: 28px;
  padding: 12px;
  position: relative;
  overflow: hidden;
}

.match-card-photo {
  width: 100%;
  aspect-ratio: 0.92;
  object-fit: cover;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.04);
}

.match-card-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.match-card.locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(10, 12, 18, 0.18), rgba(10, 12, 18, 0.7)),
    rgba(10, 12, 18, 0.18);
  backdrop-filter: blur(14px);
}

.match-card.locked .match-content {
  filter: blur(6px);
  opacity: 0.7;
}

.match-card.locked .lock-overlay {
  position: absolute;
  inset: auto 18px 18px 18px;
  z-index: 2;
  padding: 14px;
  border-radius: 18px;
  background: rgba(8, 10, 16, 0.82);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.match-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.match-card-top {
  display: flex;
  align-items: center;
  gap: 14px;
}

.match-card-text {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.avatar-token {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff8fd;
  background: linear-gradient(135deg, rgba(255, 121, 219, 0.94), rgba(255, 47, 165, 0.94));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
}

.match-card-top strong {
  display: block;
  font-size: 1.08rem;
}

.match-topline {
  color: var(--text-soft);
  font-size: 0.86rem;
}

.status-chip {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-soft);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.status-chip.confirmed {
  background: rgba(102, 217, 161, 0.12);
  color: #86f1b9;
}

.status-chip.pending {
  background: rgba(255, 92, 194, 0.12);
  color: #ffc9ec;
}

.status-chip.sample {
  background: rgba(255, 216, 146, 0.14);
  color: #ffe3a8;
  border: 1px solid rgba(255, 216, 146, 0.22);
}

.status-chip.locked {
  background: rgba(255, 255, 255, 0.08);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  padding: 8px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  font-size: 0.76rem;
  font-weight: 700;
}

.tag.top {
  background: rgba(255, 92, 194, 0.12);
  border-color: rgba(255, 92, 194, 0.18);
  color: #ffd1ee;
}

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

.match-actions-row > * {
  flex: 1;
}

.detail-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.detail-topline strong {
  display: block;
  font-size: 1.22rem;
}

.upgrade-banner {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.compact-banner {
  padding: 14px 16px;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.upgrade-banner strong {
  font-size: 1.02rem;
}

.upgrade-actions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.upgrade-plan {
  min-height: 54px;
  border-radius: 18px;
  padding: 12px;
  text-align: center;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text);
  font-weight: 800;
}

.pricing-list,
.quote-list,
.suggestion-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pricing-card {
  min-height: 92px;
  padding: 20px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
}

.pricing-card strong {
  font-size: 1.04rem;
}

.pricing-card span {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.pricing-card.selected {
  background:
    radial-gradient(circle at top right, rgba(255, 92, 194, 0.18), transparent 32%),
    rgba(255, 255, 255, 0.04);
  border-color: var(--line-strong);
}

.quote-card {
  min-height: 64px;
  padding: 18px;
  text-align: left;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--line);
}

.quote-card.active {
  border-color: var(--line-strong);
  background: rgba(255, 92, 194, 0.08);
}

.share-card-shell {
  padding: 10px;
  border-radius: 30px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(255, 92, 194, 0.14), transparent 32%),
    rgba(255, 255, 255, 0.03);
  box-shadow: var(--shadow);
}

.share-card-preview {
  width: 100%;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.share-custom-field {
  gap: 10px;
}

.share-custom-field span {
  color: #ffc9ec;
}

.share-custom-field input {
  font-size: 0.96rem;
}

.message-card {
  font-size: 1.12rem;
  line-height: 1.5;
  font-weight: 700;
}

.profile-hero-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 18px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: var(--surface);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.profile-hero-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.profile-avatar {
  width: 72px;
  height: 72px;
  border-radius: 24px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.06);
}

.profile-gallery-photo {
  width: 100%;
  aspect-ratio: 0.88;
  object-fit: cover;
  border-radius: 24px;
}

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

.profile-test-editor,
.profile-test-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 26px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(255, 84, 187, 0.1), transparent 32%),
    rgba(15, 11, 21, 0.88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.profile-test-editor-head,
.profile-test-panel-head,
.profile-test-card-top {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

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

.variant-toggle-button {
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  border-radius: 18px;
  padding: 12px 14px;
  font-size: 0.92rem;
  font-weight: 700;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.variant-toggle-button.active {
  color: #fff2fb;
  border-color: rgba(255, 121, 219, 0.42);
  background:
    linear-gradient(135deg, rgba(255, 72, 177, 0.24), rgba(136, 87, 255, 0.18)),
    rgba(255, 255, 255, 0.05);
  box-shadow: 0 18px 36px rgba(255, 47, 165, 0.12);
}

.profile-test-editor-summary {
  display: grid;
  gap: 4px;
  color: var(--text-soft);
  font-size: 0.88rem;
  line-height: 1.45;
}

.profile-test-panel h3 {
  margin: 0;
  font-size: 1.3rem;
}

.profile-test-panel-copy,
.profile-test-panel-note {
  margin: 0;
}

.profile-test-grid {
  display: grid;
  gap: 12px;
}

.profile-test-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.profile-test-card.leading {
  border-color: rgba(255, 121, 219, 0.3);
  box-shadow: 0 0 0 1px rgba(255, 121, 219, 0.08), 0 24px 44px rgba(255, 47, 165, 0.08);
}

.profile-test-diff {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.profile-test-badge-winning {
  border-color: rgba(255, 208, 138, 0.24);
  color: #ffe7bf;
}

.profile-test-preview {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
}

.profile-test-preview img,
.profile-test-preview-empty {
  width: 88px;
  height: 110px;
  border-radius: 18px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}

.profile-test-preview-empty {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.82rem;
  text-align: center;
  padding: 10px;
}

.profile-test-preview-copy {
  display: grid;
  gap: 6px;
}

.profile-test-preview-copy strong {
  font-size: 0.98rem;
  line-height: 1.34;
  color: var(--text);
}

.profile-test-preview-copy span {
  color: var(--text-soft);
  font-size: 0.84rem;
}

.profile-test-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-test-metrics article {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.profile-test-metrics span {
  color: var(--text-muted);
  font-size: 0.74rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.profile-test-metrics strong {
  font-size: 1.08rem;
  color: var(--text);
}

.profile-test-edit-button {
  justify-self: start;
}

.section-kicker {
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

.modal-shell {
  position: fixed;
  inset: 0;
  z-index: 70;
  display: grid;
  place-items: end center;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(5, 7, 12, 0.68);
  backdrop-filter: blur(6px);
}

.modal-card {
  position: relative;
  width: min(calc(100% - 20px), 460px);
  margin: 0 auto calc(12px + env(safe-area-inset-bottom, 0px));
  padding: 20px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background: rgba(10, 12, 18, 0.94);
  box-shadow: 0 32px 80px rgba(0, 0, 0, 0.5);
}

.profile-detail-card,
.media-viewer-card,
.scan-history-card {
  max-height: min(86vh, 860px);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.scan-history-list {
  display: grid;
  gap: 12px;
}

.scan-history-empty {
  padding: 16px 18px;
  border-radius: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.03);
  color: var(--text-soft);
  font-weight: 600;
}

.scan-history-item {
  display: grid;
  grid-template-columns: 72px minmax(0, 1fr);
  gap: 14px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(255, 111, 211, 0.1), transparent 34%),
    rgba(14, 11, 20, 0.9);
}

.scan-history-thumb {
  width: 72px;
  height: 88px;
  border-radius: 18px;
  object-fit: cover;
  background: rgba(255, 255, 255, 0.04);
}

.scan-history-thumb.placeholder {
  display: grid;
  place-items: center;
  color: var(--text-muted);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.scan-history-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.scan-history-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.scan-history-score {
  color: var(--text);
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}

.scan-history-badge {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 92, 194, 0.12);
  border: 1px solid rgba(255, 92, 194, 0.2);
  color: #ffd0ee;
  font-size: 0.66rem;
  font-weight: 800;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.scan-history-tier {
  color: #fff1fb;
  font-size: 0.98rem;
  font-weight: 700;
}

.scan-history-meta {
  color: var(--text-soft);
  font-size: 0.82rem;
  line-height: 1.35;
}

.detail-profile-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.detail-profile-head .detail-meta,
.detail-profile-head .subcopy {
  max-width: 32ch;
}

.detail-gallery {
  margin-bottom: 2px;
}

.media-viewer-image {
  width: 100%;
  max-height: 70vh;
  object-fit: cover;
  border-radius: 24px;
}

.modal-topline {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.modal-copy {
  margin-bottom: 18px;
}

#paywall-modal .action-stack {
  gap: 12px;
}

.paywall-plan-list {
  display: grid;
  gap: 10px;
}

.paywall-plan-card {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
}

.paywall-plan-card.primary {
  border-color: rgba(255, 92, 194, 0.16);
  background:
    radial-gradient(circle at top right, rgba(255, 92, 194, 0.12), transparent 30%),
    rgba(255, 255, 255, 0.03);
}

.matches-screen {
  gap: 14px;
  padding-bottom: 24px;
}

.match-lock-view {
  display: grid;
  gap: 14px;
}

.match-lock-heading h2 {
  max-width: none;
  white-space: nowrap;
  font-size: clamp(1.5rem, 5vw, 2rem);
  letter-spacing: -0.02em;
}

.match-lock-benefit {
  display: grid;
  gap: 4px;
  margin: 2px 0 4px;
}

.match-lock-benefit strong {
  color: #fff2fb;
  font-size: 1rem;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.match-lock-benefit span {
  color: var(--text-soft);
  font-size: 0.92rem;
  font-weight: 600;
}

.match-lock-proof {
  margin: 0;
  color: #ffc5ea;
  font-size: 0.82rem;
  line-height: 1.24;
}

.match-lock-countdown {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.match-lock-stat,
.waitlist-confirm-card {
  display: grid;
  gap: 6px;
  padding: 14px 18px 16px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    radial-gradient(circle at top right, rgba(255, 111, 211, 0.12), transparent 34%),
    rgba(14, 11, 20, 0.88);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.26);
}

.match-lock-stat span,
.waitlist-referral-summary span {
  color: var(--text-muted);
  font-size: 0.76rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.match-lock-stat strong {
  font-size: 1.28rem;
  line-height: 1.08;
  color: var(--text);
}

.match-lock-stat-note {
  color: var(--text-soft);
  font-size: 0.8rem;
  font-weight: 600;
  line-height: 1.2;
}

.countdown-stat {
  align-content: start;
}

.countdown-display {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 0;
}

.countdown-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  padding: 8px 4px 7px;
  min-height: 72px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.03);
  text-align: center;
}

.countdown-segment strong {
  display: block;
  width: 100%;
  margin: 0 auto;
  font-size: 1.08rem;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  line-height: 1;
  text-align: center;
}

.countdown-segment span {
  display: block;
  width: 100%;
  margin: 0 auto;
  font-size: 0.6rem;
  letter-spacing: 0.04em;
  line-height: 1;
  text-align: center;
}

.waitlist-city-pill,
.waitlist-shift-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255, 121, 219, 0.18);
  background: rgba(255, 255, 255, 0.03);
  color: #ffd8f1;
  font-size: 0.86rem;
  font-weight: 700;
}

.waitlist-shift-badge {
  background:
    linear-gradient(135deg, rgba(255, 81, 191, 0.18), rgba(255, 214, 123, 0.12)),
    rgba(255, 255, 255, 0.03);
  box-shadow: 0 14px 32px rgba(255, 47, 165, 0.12);
}

.waitlist-state {
  display: grid;
  gap: 16px;
}

.waitlist-confirm-card h3,
.waitlist-queue-copy {
  margin: 0;
}

.waitlist-queue-copy strong {
  color: #fff2fb;
}

.waitlist-referral-summary {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.waitlist-modal-card .subcopy {
  margin: 0;
}

.matches-heading h2 {
  max-width: none;
  white-space: nowrap;
  line-height: 0.98;
  font-size: clamp(1.54rem, 5.1vw, 2.1rem);
}

.matches-heading h2 span {
  font-size: 1em;
  line-height: inherit;
  font-family: inherit;
  letter-spacing: inherit;
}

#matches-count {
  display: inline-block;
  font-size: 1em;
  color: #ffd8f2;
  text-shadow: 0 0 22px rgba(255, 92, 194, 0.18);
}

.match-support-copy {
  color: var(--text-muted);
  font-size: 0.86rem;
}

.match-activity-banner {
  border-radius: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 92, 194, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 92, 194, 0.18), rgba(157, 88, 255, 0.08)),
    rgba(255, 255, 255, 0.03);
  color: #ffd5ef;
  font-weight: 800;
  box-shadow: 0 20px 42px rgba(0, 0, 0, 0.22);
}

.match-activity-banner.active {
  animation: banner-in 420ms ease;
}

.confirmed-section {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.confirmed-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.confirmed-section-head strong {
  color: var(--text);
  font-size: 0.95rem;
}

.confirmed-strip {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.confirmed-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid rgba(102, 217, 161, 0.18);
  background:
    radial-gradient(circle at top left, rgba(102, 217, 161, 0.12), transparent 36%),
    rgba(255, 255, 255, 0.03);
}

.confirmed-card-photo {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  object-fit: cover;
}

.confirmed-card-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.confirmed-card-copy strong {
  font-size: 0.98rem;
}

.confirmed-card-copy span {
  color: var(--text-soft);
  font-size: 0.83rem;
}

.confirmed-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.matches-stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.matches-screen .match-card {
  border-radius: 30px;
  padding: 12px;
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.03), rgba(255, 255, 255, 0.015)),
    rgba(12, 15, 23, 0.92);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 64px rgba(0, 0, 0, 0.28);
}

.matches-screen .match-card.featured {
  padding: 14px;
  border-color: rgba(255, 92, 194, 0.18);
  background:
    radial-gradient(circle at top right, rgba(255, 92, 194, 0.16), transparent 30%),
    rgba(16, 12, 24, 0.96);
}

.matches-screen .match-card.stacked {
  min-height: 164px;
}

.matches-screen .match-content {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
}

.match-photo-shell {
  position: relative;
}

.matches-screen .match-card-photo {
  width: 100%;
  height: 100%;
  min-height: 132px;
  aspect-ratio: auto;
  object-fit: cover;
  border-radius: 22px;
}

.matches-screen .match-card.featured .match-card-photo {
  min-height: 166px;
}

.matches-screen .status-chip {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 2;
  background: rgba(7, 8, 12, 0.72);
  backdrop-filter: blur(10px);
}

.matches-screen .match-card-text {
  justify-content: center;
  gap: 11px;
}

.matches-screen .match-card-topline {
  align-items: flex-start;
}

.matches-screen .match-card-topline strong {
  font-size: 1.08rem;
}

.mini-badge {
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text-soft);
  font-size: 0.72rem;
  font-weight: 800;
  white-space: nowrap;
}

.mini-badge.sample-profile-badge {
  background: rgba(255, 216, 146, 0.12);
  border-color: rgba(255, 216, 146, 0.2);
  color: #ffe3a8;
}

.match-bio-preview {
  color: var(--text-soft);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  font-size: 0.92rem;
  line-height: 1.45;
}

.match-interest-button {
  width: 100%;
  min-height: 48px;
  padding-inline: 12px;
}

.match-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: center;
}

.match-proof-line {
  color: #ffc9ec;
  font-size: 0.78rem;
  font-weight: 700;
}

.sample-disclosure {
  color: rgba(255, 227, 168, 0.84);
  font-size: 0.76rem;
  font-weight: 700;
}

.matches-screen .match-card.locked::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8, 10, 16, 0.12), rgba(8, 10, 16, 0.82)),
    rgba(8, 10, 16, 0.18);
  backdrop-filter: blur(16px);
}

.matches-screen .match-card.locked .match-content {
  filter: blur(10px) saturate(0.8);
  transform: scale(1.03);
  opacity: 0.86;
}

.matches-screen .match-card.locked .mini-badge {
  opacity: 0.4;
}

.matches-screen .lock-overlay {
  position: absolute;
  inset: 0;
  z-index: 3;
  border: 0;
  background: transparent;
  display: grid;
  place-items: center;
  gap: 10px;
  color: var(--text);
  text-align: center;
  padding: 24px;
}

.matches-screen .lock-overlay::before {
  content: "";
  position: absolute;
  inset: 16px;
  border-radius: 22px;
  background:
    linear-gradient(120deg, transparent 0%, rgba(255, 255, 255, 0.08) 46%, transparent 58%),
    rgba(255, 255, 255, 0.02);
  animation: shimmer-lock 2.8s linear infinite;
}

.lock-icon,
.matches-screen .lock-overlay strong {
  position: relative;
  z-index: 1;
}

.lock-icon {
  width: 46px;
  height: 46px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  background: rgba(7, 8, 12, 0.7);
  border: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 1.2rem;
}

.matches-screen .lock-overlay strong {
  font-size: 1rem;
  letter-spacing: -0.02em;
}

.matches-screen .match-card.new-card {
  animation: card-slide-in 560ms cubic-bezier(0.2, 0.9, 0.25, 1.1);
  box-shadow:
    0 0 0 1px rgba(255, 92, 194, 0.14),
    0 24px 60px rgba(0, 0, 0, 0.32),
    0 0 26px rgba(255, 92, 194, 0.12);
}

.matches-paywall {
  position: static;
  bottom: auto;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(14, 17, 26, 0.96), rgba(10, 12, 18, 0.98)),
    rgba(10, 12, 18, 0.98);
  backdrop-filter: blur(20px);
  box-shadow: 0 24px 58px rgba(0, 0, 0, 0.38);
}

.matches-paywall-top {
  display: grid;
  gap: 8px;
}

.matches-urgency {
  color: #ffc9ec;
  font-size: 0.83rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  text-align: center;
}

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

.matches-plan-card {
  display: grid;
  gap: 6px;
  align-content: start;
  padding: 10px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(255, 255, 255, 0.03);
}

.matches-paywall-button,
.matches-secondary-button,
.matches-tertiary-button {
  width: 100%;
}

.matches-paywall-button {
  box-shadow: 0 0 0 1px rgba(255, 92, 194, 0.16), 0 18px 40px var(--cta-shadow);
  animation: cta-glow 2.6s ease-in-out infinite;
}

.matches-paywall-note {
  margin: 0;
  color: var(--text-soft);
  text-align: left;
  font-size: 0.77rem;
  line-height: 1.35;
}

.matches-paywall-note.subtle {
  color: var(--text-muted);
}

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

.tip-card {
  border-radius: 24px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 176px;
}

.tip-card p {
  color: var(--text-soft);
  font-size: 0.9rem;
}

.tip-icon {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: rgba(255, 92, 194, 0.12);
  color: #ffc9ec;
  font-weight: 800;
}

.chat-screen {
  gap: 14px;
  padding-bottom: calc(148px + env(safe-area-inset-bottom, 0px));
  position: relative;
  min-height: calc(100dvh - 94px);
}

.chat-header-shell {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.chat-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}

.chat-profile-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.chat-avatar {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.2);
}

.chat-profile-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.chat-profile-copy strong {
  font-size: 1.05rem;
  letter-spacing: -0.02em;
}

.chat-status {
  color: var(--text-soft);
  font-size: 0.82rem;
  font-weight: 700;
}

.chat-menu {
  display: grid;
  gap: 10px;
  padding: 12px;
  border-radius: 22px;
  border: 1px solid var(--line);
  background: rgba(12, 15, 23, 0.92);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.26);
}

.chat-menu .compact-action {
  width: 100%;
}

.chat-confidence-line {
  color: #ffc9ec;
  font-size: 0.84rem;
  font-weight: 700;
}

.chat-helper-banner {
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(102, 217, 161, 0.12);
  border: 1px solid rgba(102, 217, 161, 0.16);
  color: #bff5d8;
  font-size: 0.84rem;
  font-weight: 700;
}

.message-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 220px;
  max-height: calc(100dvh - 450px);
  overflow-y: auto;
  padding-right: 2px;
  padding-bottom: 4px;
}

.chat-message {
  display: flex;
}

.chat-message.user {
  justify-content: flex-end;
}

.chat-message.system {
  justify-content: center;
}

.chat-message .bubble {
  max-width: 88%;
  border-radius: 24px;
  padding: 14px 16px;
  font-size: 0.95rem;
  line-height: 1.45;
}

.chat-message.user .bubble {
  background: linear-gradient(135deg, rgba(255, 47, 165, 0.94), rgba(255, 121, 219, 0.88));
  color: #fff8fd;
  box-shadow: 0 18px 34px rgba(255, 47, 165, 0.18);
}

.chat-message.match .bubble {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.04);
}

.chat-message.system .bubble {
  background: rgba(255, 92, 194, 0.08);
  color: #ffc9ec;
  text-align: center;
}

.chat-empty-state {
  min-height: 220px;
  display: grid;
  place-items: center;
  text-align: center;
  gap: 8px;
  padding: 30px 24px;
  border-radius: 28px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top, rgba(255, 92, 194, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.03);
}

.chat-empty-state strong {
  font-size: 1.08rem;
}

.chat-empty-state p {
  color: var(--text-soft);
  max-width: 28ch;
  line-height: 1.45;
}

.assistant-panel {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 24px;
  border: 1px solid var(--line);
  background:
    radial-gradient(circle at top right, rgba(255, 92, 194, 0.1), transparent 28%),
    rgba(12, 9, 18, 0.94);
  box-shadow: 0 24px 56px rgba(0, 0, 0, 0.22);
  transition: transform 180ms ease, opacity 180ms ease, border-color 180ms ease;
}

.assistant-panel.collapsed {
  transform: scale(0.985);
  border-color: rgba(255, 255, 255, 0.06);
}

.assistant-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
}

.assistant-kicker {
  color: #ffc9ec;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.assistant-head strong {
  display: block;
  margin-top: 4px;
  font-size: 1.02rem;
}

.assistant-subcopy {
  margin-top: 4px;
  color: var(--text-soft);
  font-size: 0.84rem;
}

.assistant-note {
  font-size: 0.82rem;
  text-align: right;
  color: var(--text-muted);
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  white-space: nowrap;
}

.assistant-nudge,
.assistant-limit {
  font-size: 0.78rem;
  color: var(--text-soft);
}

.assistant-nudge {
  color: #ffc9ec;
  font-weight: 700;
}

.tone-row {
  display: flex;
  gap: 8px;
  overflow-x: auto;
  padding-bottom: 2px;
  animation: fade-slide-in 180ms ease;
}

.suggestion-carousel {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(84%, 1fr);
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 4px;
  scroll-snap-type: x proximity;
}

.tone-chip {
  width: auto;
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--line);
  white-space: nowrap;
}

.tone-chip.active {
  background: rgba(255, 92, 194, 0.1);
  border-color: var(--line-strong);
  color: #ffc9ec;
}

.suggestion-card {
  border-radius: 24px;
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: left;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.02)),
    rgba(255, 255, 255, 0.02);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
  animation: fade-slide-in 220ms ease;
  scroll-snap-align: start;
  min-height: 148px;
}

.suggestion-copy {
  color: var(--text);
  line-height: 1.45;
}

.suggestion-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: var(--text-muted);
  font-size: 0.82rem;
}

.suggestion-placeholder {
  border-radius: 22px;
  padding: 16px;
  border: 1px dashed rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-soft);
  animation: fade-slide-in 220ms ease;
  min-width: 84%;
}

.suggestion-placeholder strong {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.assistant-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.assistant-actions .compact-action {
  width: auto;
  min-height: 34px;
  padding: 8px 12px;
  font-size: 0.78rem;
  border-radius: 999px;
  border-style: solid;
}

#generate-suggestion-button {
  background: rgba(255, 92, 194, 0.08);
  border-color: rgba(255, 92, 194, 0.16);
  color: #ffcfef;
}

#change-tone-button {
  background: rgba(255, 255, 255, 0.02);
  border-color: rgba(255, 255, 255, 0.08);
}

.assistant-upgrade {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(255, 92, 194, 0.14);
  background:
    linear-gradient(135deg, rgba(255, 92, 194, 0.14), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.03);
}

.assistant-upgrade strong {
  font-size: 1rem;
}

.assistant-upgrade p {
  color: var(--text-soft);
  font-size: 0.86rem;
}

.assistant-upgrade .cta-button {
  width: 100%;
}

.chat-input-shell {
  position: fixed;
  left: 50%;
  bottom: calc(12px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  width: min(calc(100vw - 24px), 456px);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 10px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(10, 12, 18, 0.96);
  box-shadow: 0 24px 48px rgba(0, 0, 0, 0.26);
  z-index: 22;
}

#chat-input {
  resize: none;
  min-height: 50px;
  max-height: 120px;
}

.chat-input-shell .cta-button {
  width: auto;
  min-width: 86px;
}

.chat-emoji-button {
  min-width: 46px;
  padding: 12px;
}

.chat-send-button {
  min-height: 50px;
}

.empty-state {
  color: var(--text-soft);
}

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

@keyframes result-badge-in {
  from {
    opacity: 0;
    transform: translateY(-8px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.toast {
  position: fixed;
  left: 50%;
  bottom: calc(18px + env(safe-area-inset-bottom, 0px));
  transform: translate(-50%, 18px);
  width: min(360px, calc(100vw - 36px));
  padding: 14px 18px;
  border-radius: 999px;
  background: rgba(7, 8, 12, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.08);
  color: var(--text);
  text-align: center;
  font-weight: 700;
  opacity: 0;
  pointer-events: none;
  transition: opacity 180ms ease, transform 180ms ease;
  z-index: 120;
}

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

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulse-ring {
  0% {
    transform: scale(0.78);
    opacity: 0.92;
  }
  100% {
    transform: scale(1.08);
    opacity: 0;
  }
}

@keyframes fill-progress {
  from {
    width: 8%;
  }
  to {
    width: 100%;
  }
}

@keyframes banner-in {
  0% {
    opacity: 0;
    transform: translateY(8px) scale(0.98);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes shimmer-lock {
  0% {
    transform: translateX(-36%);
  }
  100% {
    transform: translateX(36%);
  }
}

@keyframes card-slide-in {
  0% {
    opacity: 0;
    transform: translateY(24px) scale(0.96);
  }
  70% {
    opacity: 1;
    transform: translateY(-4px) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes cta-glow {
  0%,
  100% {
    box-shadow: 0 0 0 1px rgba(255, 92, 194, 0.16), 0 18px 40px var(--cta-shadow);
  }
  50% {
    box-shadow: 0 0 0 1px rgba(255, 92, 194, 0.22), 0 22px 46px rgba(255, 47, 165, 0.34);
  }
}

@keyframes cta-pulse {
  0%,
  86%,
  100% {
    transform: translateY(0) scale(1);
  }
  90% {
    transform: translateY(-1px) scale(1.015);
  }
  94% {
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 360px) {
  .auth-grid,
  .two-column-fields,
  .stats-row,
  .upgrade-actions,
  .assistant-actions,
  .location-shell {
    grid-template-columns: minmax(0, 1fr);
  }

  .match-actions-row,
  .inline-actions {
    flex-direction: column;
  }

  .location-field-shell {
    order: 1;
  }

  .compact-metrics,
  .profile-stat-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .profile-photo-editor,
  .match-card-actions,
  .matches-paywall-grid,
  .match-lock-countdown {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .result-secondary-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .result-secondary-actions > :last-child {
    grid-column: 1 / -1;
  }

  .matches-screen .match-content,
  .confirmed-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .confirmed-card-actions {
    width: 100%;
    justify-content: stretch;
  }

  .confirmed-card-actions > * {
    flex: 1;
  }

  .brand-copy {
    display: none;
  }

  .brand-lockup {
    padding: 3px 7px;
  }

}

@media (min-width: 768px) {
  .app-shell {
    padding-left: 22px;
    padding-right: 22px;
  }

  .screen {
    min-height: calc(100vh - 78px);
  }
}

@media (min-width: 420px) {
  .result-photo-shell {
    max-width: none;
    justify-self: stretch;
  }
}
