:root {
  --bg: #0d0c16;
  --bg-elevated: #15131f;
  --surface: #1b1827;
  --surface-2: #211e30;
  --surface-3: #29253a;
  --text: #f8f7fb;
  --muted: #aaa4b7;
  --muted-2: #7f788e;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.15);
  --primary: #f43f87;
  --primary-2: #8b5cf6;
  --primary-soft: rgba(244, 63, 135, 0.14);
  --success: #5ee6a8;
  --warning: #f7c96a;
  --danger: #ff6b7c;
  --blue: #6ab8ff;
  --lime: #d8ff72;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.32);
  --shadow-soft: 0 14px 40px rgba(0, 0, 0, 0.18);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --header-height: 72px;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
}

body {
  min-width: 320px;
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: Inter, Manrope, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.nav-open,
body.filter-open {
  overflow: hidden;
}

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

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

button {
  color: inherit;
}

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

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

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

h1,
h2,
h3 {
  letter-spacing: -0.035em;
  line-height: 1.08;
}

p:last-child {
  margin-bottom: 0;
}

::selection {
  background: rgba(244, 63, 135, 0.34);
  color: #fff;
}

:focus-visible {
  outline: 3px solid rgba(216, 255, 114, 0.75);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 2000;
  top: 10px;
  left: 10px;
  padding: 10px 14px;
  border-radius: 10px;
  background: #fff;
  color: #111;
  transform: translateY(-150%);
}

.skip-link:focus {
  transform: translateY(0);
}

.site-header {
  position: fixed;
  z-index: 1000;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: var(--header-height);
  padding: 0 max(24px, calc((100vw - 1320px) / 2));
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(13, 12, 22, 0.78);
  backdrop-filter: blur(22px) saturate(140%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: none;
}

.brand-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  overflow: hidden;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  box-shadow: 0 9px 25px rgba(244, 63, 135, 0.26);
}

.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: 13px;
  height: 19px;
  border: 3px solid #fff;
  border-top-left-radius: 9px;
  border-top-right-radius: 9px;
  border-bottom: 0;
  transform: rotate(-45deg) translate(-2px, 1px);
}

.brand-mark::after {
  transform: rotate(45deg) translate(2px, 1px);
}

.brand-mark span {
  position: absolute;
  right: 7px;
  top: 7px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 3px rgba(216, 255, 114, 0.17);
}

.brand-copy {
  display: flex;
  align-items: baseline;
  gap: 5px;
  letter-spacing: -0.04em;
}

.brand-copy b {
  font-size: 17px;
  font-weight: 900;
}

.brand-copy span {
  color: #c8c3d0;
  font-size: 16px;
  font-weight: 650;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}

.site-nav > a,
.site-nav > form button {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 13px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #bdb7c8;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s ease;
}

.site-nav > a:hover,
.site-nav > a.active,
.site-nav > form button:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
}

.site-nav > a i {
  display: grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-style: normal;
}

.site-nav .nav-cta {
  margin-left: 6px;
  background: linear-gradient(135deg, var(--primary), #d7338b);
  color: #fff;
  box-shadow: 0 10px 28px rgba(244, 63, 135, 0.22);
}

.site-nav .nav-cta:hover {
  background: linear-gradient(135deg, #ff5897, var(--primary));
  transform: translateY(-1px);
}

.nav-profile img {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  object-fit: cover;
}

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface);
}

.nav-toggle span {
  display: block;
  width: 18px;
  height: 2px;
  margin: 5px auto;
  border-radius: 2px;
  background: #fff;
}

.app-main {
  min-height: 100vh;
  padding-top: calc(var(--header-height) + 34px);
  padding-bottom: 60px;
}

.toast-region {
  position: fixed;
  z-index: 1800;
  top: calc(var(--header-height) + 14px);
  right: 18px;
  display: grid;
  gap: 10px;
  width: min(390px, calc(100vw - 36px));
  pointer-events: none;
}

.toast {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 15px 16px;
  border: 1px solid var(--line-strong);
  border-radius: 16px;
  background: rgba(30, 27, 43, 0.96);
  box-shadow: var(--shadow-soft);
  color: #fff;
  opacity: 0;
  pointer-events: auto;
  transform: translateY(-10px) scale(0.98);
  transition: 0.24s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.toast::before {
  content: "";
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 7px;
  border-radius: 50%;
  background: var(--blue);
}

.toast-ok::before { background: var(--success); }
.toast-error::before { background: var(--danger); }
.toast-warning::before { background: var(--warning); }
.toast button {
  flex: none;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  cursor: pointer;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, border-color 0.18s ease, opacity 0.18s ease;
}

.btn:hover:not(:disabled) {
  transform: translateY(-2px);
}

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

.btn:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary), #d7338b);
  color: #fff;
  box-shadow: 0 12px 34px rgba(244, 63, 135, 0.22);
}

.btn-primary:hover:not(:disabled) {
  box-shadow: 0 17px 40px rgba(244, 63, 135, 0.3);
}

.btn-secondary {
  border-color: var(--line-strong);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.btn-secondary:hover:not(:disabled) {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.09);
}

.btn-danger {
  border-color: rgba(255, 107, 124, 0.25);
  background: rgba(255, 107, 124, 0.11);
  color: #ff9aa6;
}

.btn-lg {
  min-height: 54px;
  padding: 0 25px;
  border-radius: 17px;
  font-size: 15px;
}

.btn-sm {
  min-height: 36px;
  padding: 0 13px;
  border-radius: 11px;
  font-size: 12px;
}

.btn-block {
  width: 100%;
}

.btn.is-loading {
  color: transparent !important;
}

.btn.is-loading::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.75s linear infinite;
}

@keyframes spin { to { transform: rotate(360deg); } }

.overline,
.section-heading > span,
.auth-heading > span,
.plan-label,
.eyebrow {
  color: var(--lime);
  font-size: 11px;
  font-weight: 850;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.page-shell {
  width: min(1260px, calc(100% - 40px));
  margin: 0 auto;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 30px;
  margin-bottom: 30px;
}

.page-heading h1 {
  margin: 9px 0 10px;
  font-size: clamp(34px, 4.3vw, 54px);
}

.page-heading p {
  max-width: 680px;
  margin: 0;
  color: var(--muted);
  font-size: 16px;
}

.page-heading.centered {
  justify-content: center;
  text-align: center;
}

.page-heading.centered > div {
  max-width: 720px;
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.surface {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.025), transparent 35%), var(--surface);
  box-shadow: var(--shadow-soft);
}

.surface-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 24px;
}

.surface-heading h2 {
  margin: 5px 0 0;
  font-size: 25px;
}

.surface-heading > span {
  color: var(--muted);
  font-weight: 700;
}

.surface-note,
.field-hint,
.field-counter,
.legal-note {
  color: var(--muted-2);
  font-size: 12px;
}

.field-hint[data-strength="3"] {
  color: var(--success);
}

label {
  display: grid;
  gap: 8px;
}

label > span {
  color: #d8d4df;
  font-size: 12px;
  font-weight: 750;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
  color: #fff;
  outline: none;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  min-height: 110px;
  padding: 13px 14px;
  line-height: 1.55;
  resize: vertical;
}

input::placeholder,
textarea::placeholder {
  color: #716b7e;
}

input:focus,
select:focus,
textarea:focus {
  border-color: rgba(244, 63, 135, 0.65);
  background: rgba(255, 255, 255, 0.065);
  box-shadow: 0 0 0 4px rgba(244, 63, 135, 0.09);
}

select {
  color-scheme: dark;
}

.form-stack {
  display: grid;
  gap: 17px;
}

.form-grid {
  display: grid;
  gap: 16px;
}

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

.form-section {
  display: grid;
  gap: 16px;
  padding-top: 4px;
}

.form-section + .form-section {
  padding-top: 22px;
  border-top: 1px solid var(--line);
}

.form-section h3 {
  margin: 0;
  font-size: 17px;
}

.form-footer {
  display: flex;
  justify-content: flex-end;
  padding-top: 8px;
}

.password-field {
  position: relative;
}

.password-field input {
  padding-right: 84px;
}

.password-field button {
  position: absolute;
  top: 50%;
  right: 8px;
  min-height: 34px;
  padding: 0 9px;
  border: 0;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  transform: translateY(-50%);
  cursor: pointer;
}

.form-link,
.text-link {
  color: #ff7bad;
  font-weight: 750;
}

.form-link {
  justify-self: center;
  font-size: 13px;
}

.verified {
  display: inline-grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: var(--blue);
  color: #10131a;
  font-size: 12px;
  vertical-align: 2px;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.tag-list span {
  padding: 6px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: #d6d1dc;
  font-size: 11px;
  font-weight: 650;
}

.tag-list.large span {
  padding: 9px 13px;
  font-size: 12px;
}

.empty-state {
  display: grid;
  justify-items: center;
  max-width: 620px;
  margin: 50px auto;
  padding: 58px 35px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  text-align: center;
  box-shadow: var(--shadow-soft);
}

.empty-icon {
  display: grid;
  place-items: center;
  width: 70px;
  height: 70px;
  margin-bottom: 20px;
  border-radius: 23px;
  background: linear-gradient(135deg, rgba(244, 63, 135, 0.18), rgba(139, 92, 246, 0.18));
  color: var(--lime);
  font-size: 30px;
}

.empty-state h2 {
  margin-bottom: 10px;
  font-size: 28px;
}

.empty-state p {
  max-width: 460px;
  margin-bottom: 24px;
  color: var(--muted);
}

.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mobile-tabbar {
  display: none;
}
/* Landing */
.landing-body {
  background: #0d0c16;
}

.landing-shell {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero-section {
  position: relative;
  min-height: 760px;
  overflow: hidden;
  padding: 150px 0 94px;
  background:
    radial-gradient(circle at 75% 25%, rgba(139, 92, 246, 0.17), transparent 31%),
    radial-gradient(circle at 8% 8%, rgba(244, 63, 135, 0.13), transparent 26%),
    #0d0c16;
}

.hero-section::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 160px;
  background: linear-gradient(transparent, #0d0c16);
  pointer-events: none;
}

.hero-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(85px);
  opacity: 0.24;
}

.hero-glow-one {
  top: 90px;
  left: -180px;
  width: 420px;
  height: 420px;
  background: var(--primary);
}

.hero-glow-two {
  right: -120px;
  bottom: -70px;
  width: 500px;
  height: 500px;
  background: var(--primary-2);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(430px, 0.98fr);
  align-items: center;
  gap: 75px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
}

.eyebrow > span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: 0 0 0 5px rgba(216, 255, 114, 0.1);
}

.hero-copy h1 {
  max-width: 730px;
  margin: 18px 0 25px;
  font-size: clamp(48px, 6.2vw, 79px);
  font-weight: 850;
  letter-spacing: -0.067em;
  line-height: 0.99;
}

.hero-copy h1 em {
  color: #ff75a9;
  font-style: normal;
}

.hero-copy > p {
  max-width: 650px;
  color: #bdb7c7;
  font-size: 18px;
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 31px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}

.hero-trust span {
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.025);
  color: #aaa3b3;
  font-size: 10px;
  font-weight: 700;
}

.hero-product {
  position: relative;
  min-height: 610px;
}

.demo-card {
  position: absolute;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 31px;
  background: #191623;
  box-shadow: 0 45px 100px rgba(0, 0, 0, 0.38);
}

.demo-card-back {
  top: 58px;
  right: -4px;
  width: 86%;
  height: 520px;
  background: linear-gradient(145deg, #36223e, #1a1527);
  transform: rotate(7deg);
}

.demo-card-main {
  top: 0;
  left: 0;
  z-index: 2;
  width: 88%;
  overflow: hidden;
}

.demo-photo {
  position: relative;
  display: grid;
  place-items: center;
  height: 310px;
  overflow: hidden;
  background:
    radial-gradient(circle at 38% 26%, rgba(255, 255, 255, 0.27), transparent 24%),
    linear-gradient(145deg, #c77091, #7656b5 56%, #343052);
}

.demo-photo::before {
  content: "";
  position: absolute;
  bottom: -44px;
  width: 210px;
  height: 230px;
  border-radius: 50% 50% 20% 20%;
  background: rgba(255, 255, 255, 0.16);
}

.demo-photo::after {
  content: "";
  position: absolute;
  top: 68px;
  width: 118px;
  height: 118px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
}

.demo-avatar {
  position: relative;
  z-index: 2;
  margin-top: -20px;
  color: rgba(255, 255, 255, 0.92);
  font-size: 78px;
  font-weight: 800;
}

.online-pill,
.photo-count,
.boost-pill {
  display: inline-flex;
  align-items: center;
  min-height: 27px;
  padding: 0 9px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  background: rgba(17, 15, 25, 0.72);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  backdrop-filter: blur(12px);
}

.demo-photo .online-pill {
  position: absolute;
  z-index: 3;
  top: 16px;
  left: 16px;
  color: var(--lime);
}

.demo-photo .photo-count {
  position: absolute;
  z-index: 3;
  top: 16px;
  right: 16px;
}

.demo-content {
  padding: 20px 22px 13px;
}

.demo-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.demo-title h2 {
  margin: 0 0 4px;
  font-size: 24px;
}

.demo-title p,
.demo-bio {
  color: #aaa3b3;
}

.demo-title p {
  margin: 0;
  font-size: 11px;
}

.demo-title button {
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
}

.demo-bio {
  margin: 15px 0;
  font-size: 12px;
  line-height: 1.55;
}

.demo-prompt {
  display: grid;
  gap: 4px;
  margin-top: 14px;
  padding: 12px;
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 13px;
  background: rgba(139, 92, 246, 0.08);
}

.demo-prompt small {
  color: #998db4;
  font-size: 9px;
}

.demo-prompt b {
  font-size: 11px;
  line-height: 1.45;
}

.demo-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  padding: 11px 22px 22px;
}

.demo-actions button,
.round-action {
  display: grid;
  place-items: center;
  width: 54px;
  height: 54px;
  padding: 0;
  border: 1px solid var(--line-strong);
  border-radius: 50%;
  background: #211e2e;
  font-size: 23px;
  cursor: pointer;
  transition: 0.18s ease;
}

.demo-actions button:hover,
.round-action:hover:not(:disabled) {
  transform: translateY(-3px) scale(1.04);
}

.demo-pass,
.pass-action {
  color: #c1bac9;
}

.demo-super,
.super-action {
  color: var(--blue);
}

.demo-like,
.like-action {
  border-color: transparent !important;
  background: linear-gradient(135deg, var(--primary), var(--primary-2)) !important;
  color: #fff;
  box-shadow: 0 14px 34px rgba(244, 63, 135, 0.24);
}

.match-toast {
  position: absolute;
  z-index: 4;
  right: -5px;
  bottom: 20px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 14px 17px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 17px;
  background: rgba(27, 24, 39, 0.88);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}

.match-toast > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 18px;
}

.match-toast div {
  display: grid;
}

.match-toast b {
  font-size: 12px;
}

.match-toast small {
  color: var(--muted);
  font-size: 9px;
}

.landing-stats {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #11101a;
}

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

.stats-grid > div {
  padding: 27px 20px;
  text-align: center;
}

.stats-grid > div + div {
  border-left: 1px solid var(--line);
}

.stats-grid strong {
  display: block;
  font-size: 30px;
}

.stats-grid span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
}

.landing-section {
  padding: 110px 0;
}

.section-heading {
  max-width: 730px;
}

.section-heading h2 {
  margin: 12px 0 17px;
  font-size: clamp(36px, 4.6vw, 58px);
  letter-spacing: -0.055em;
}

.section-heading p {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.feature-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 45px;
}

.feature-steps article {
  position: relative;
  min-height: 300px;
  padding: 25px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
}

.feature-steps article > i {
  position: absolute;
  top: 20px;
  right: 20px;
  color: #484254;
  font-size: 13px;
  font-style: normal;
  font-weight: 800;
}

.feature-icon {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  border-radius: 15px;
  background: linear-gradient(135deg, rgba(244, 63, 135, 0.16), rgba(139, 92, 246, 0.15));
  color: #ff85b1;
  font-size: 22px;
}

.feature-steps h3 {
  margin: 82px 0 12px;
  font-size: 21px;
}

.feature-steps p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.7;
}

.soft-section {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #12111b;
}

.split-section,
.safety-grid,
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.86fr) minmax(0, 1.14fr);
  align-items: center;
  gap: 72px;
}

.district-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.district-cloud span {
  padding: 12px 15px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: #d2ccd8;
  font-size: 12px;
  transition: 0.18s ease;
}

.district-cloud span:hover {
  border-color: rgba(244, 63, 135, 0.4);
  color: #fff;
  transform: translateY(-2px);
}

.dark-section {
  background:
    radial-gradient(circle at 15% 30%, rgba(244, 63, 135, 0.1), transparent 28%),
    #17131f;
}

.safety-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.safety-list article {
  min-height: 150px;
  padding: 22px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.025);
}

.safety-list b {
  display: block;
  margin-bottom: 11px;
  font-size: 17px;
}

.safety-list p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.65;
}

.faq-grid {
  align-items: start;
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 22px 44px 22px 0;
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 4px;
  width: 28px;
  height: 28px;
  color: var(--muted);
  font-size: 22px;
  text-align: center;
  transform: translateY(-50%);
}

.faq-list details[open] summary::after {
  content: "−";
}

.faq-list details p {
  padding: 0 45px 22px 0;
  color: var(--muted);
  line-height: 1.7;
}

.landing-cta {
  padding: 0 0 100px;
}

.cta-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 45px;
  padding: 55px;
  border: 1px solid rgba(255, 255, 255, 0.11);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 83% 20%, rgba(244, 63, 135, 0.22), transparent 27%),
    radial-gradient(circle at 10% 90%, rgba(139, 92, 246, 0.2), transparent 30%),
    var(--surface);
  box-shadow: var(--shadow);
}

.cta-card > div {
  max-width: 730px;
}

.cta-card > div > span {
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.cta-card h2 {
  margin: 12px 0;
  font-size: clamp(34px, 4vw, 50px);
}

.cta-card p {
  color: var(--muted);
}

.landing-footer {
  padding: 70px max(24px, calc((100vw - 1180px) / 2)) 28px;
  border-top: 1px solid var(--line);
  background: #09080f;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr repeat(3, 1fr);
  gap: 50px;
}

.footer-grid > div {
  display: grid;
  align-content: start;
  gap: 10px;
}

.footer-grid p {
  max-width: 360px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.7;
}

.footer-grid b {
  margin-bottom: 5px;
  font-size: 12px;
}

.footer-grid > div > a:not(.brand) {
  color: var(--muted);
  font-size: 12px;
}

.footer-grid > div > a:hover {
  color: #fff;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 50px;
  padding-top: 22px;
  border-top: 1px solid var(--line);
  color: var(--muted-2);
  font-size: 11px;
}
/* Auth */
.auth-shell {
  display: grid;
  grid-template-columns: minmax(360px, 0.82fr) minmax(520px, 1.18fr);
  min-height: 100vh;
  margin-top: calc(var(--header-height) * -1 - 34px);
  padding-top: 0;
}

.auth-shell .site-header {
  display: none;
}

.auth-aside {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100vh;
  padding: 48px clamp(36px, 5vw, 76px);
  overflow: hidden;
  border-right: 1px solid var(--line);
  background:
    radial-gradient(circle at 30% 20%, rgba(244, 63, 135, 0.21), transparent 30%),
    radial-gradient(circle at 80% 80%, rgba(139, 92, 246, 0.2), transparent 32%),
    #11101a;
}

.auth-aside::after {
  content: "";
  position: absolute;
  right: -140px;
  bottom: -140px;
  width: 360px;
  height: 360px;
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 50%;
  box-shadow: 0 0 0 55px rgba(255, 255, 255, 0.018), 0 0 0 110px rgba(255, 255, 255, 0.012);
}

.auth-aside > * {
  position: relative;
  z-index: 2;
}

.auth-aside h1 {
  max-width: 560px;
  margin: 20px 0;
  font-size: clamp(39px, 5vw, 65px);
}

.auth-aside p {
  max-width: 520px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.75;
}

.auth-aside ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.auth-aside li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #c3bdca;
  font-size: 12px;
}

.auth-aside li::before {
  content: "✓";
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 7px;
  background: rgba(94, 230, 168, 0.12);
  color: var(--success);
  font-size: 10px;
  font-weight: 900;
}

.auth-card {
  align-self: center;
  width: min(480px, calc(100% - 48px));
  margin: 80px auto;
  padding: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.auth-card-wide {
  width: min(760px, calc(100% - 48px));
}

.auth-heading {
  margin-bottom: 30px;
}

.auth-heading h2 {
  margin: 8px 0 9px;
  font-size: 34px;
}

.auth-heading p {
  color: var(--muted);
  font-size: 13px;
}

.auth-heading a,
.legal-note a {
  color: #ff75a9;
}

.legal-note {
  text-align: center;
  line-height: 1.65;
}

/* Profile */
.profile-heading {
  align-items: center;
}

.alert-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
  padding: 19px 22px;
  border: 1px solid rgba(247, 201, 106, 0.22);
  border-radius: 18px;
  background: rgba(247, 201, 106, 0.07);
}

.alert-card b {
  display: block;
  margin-bottom: 4px;
}

.alert-card p {
  color: #b9ae98;
  font-size: 12px;
}

.profile-dashboard {
  display: grid;
  grid-template-columns: 310px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.profile-sidebar {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  display: grid;
  gap: 18px;
}

.profile-summary,
.quick-settings {
  padding: 22px;
}

.profile-summary > img {
  width: 100%;
  aspect-ratio: 4 / 4.7;
  margin-bottom: 18px;
  border-radius: 18px;
  object-fit: cover;
}

.profile-summary h2 {
  margin: 0 0 5px;
  font-size: 24px;
}

.profile-summary > div > p {
  color: var(--muted);
  font-size: 12px;
}

.profile-summary > form {
  width: 100%;
  margin-top: 10px;
}

.completion {
  margin: 22px 0;
  padding-top: 19px;
  border-top: 1px solid var(--line);
}

.completion > div:first-child {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
}

.completion > div:first-child span {
  color: var(--muted);
}

.progress {
  height: 7px;
  margin: 10px 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.07);
}

.progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
}

.completion p {
  color: var(--muted-2);
  font-size: 10px;
  line-height: 1.55;
}

.account-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 17px;
}

.account-chips span {
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted);
  font-size: 9px;
  font-weight: 700;
}

.quick-settings h3 {
  margin-bottom: 12px;
  font-size: 17px;
}

.quick-settings p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.6;
}

.profile-content {
  display: grid;
  gap: 20px;
}

.photo-manager,
.profile-form {
  padding: 26px;
}

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

.photo-tile,
.photo-upload {
  position: relative;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface-2);
}

.photo-tile img {
  width: 100%;
  height: 100%;
  min-height: 280px;
  object-fit: cover;
}

.photo-tile::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(10, 9, 15, 0.92));
  pointer-events: none;
}

.status-badge,
.primary-badge {
  position: absolute;
  z-index: 2;
  top: 11px;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  backdrop-filter: blur(10px);
}

.status-badge { left: 11px; }
.primary-badge { right: 11px; background: rgba(13, 12, 22, 0.72); color: #fff; }
.status-pending { background: rgba(247, 201, 106, 0.18); color: #ffda8d; }
.status-approved { background: rgba(94, 230, 168, 0.16); color: #82efbd; }
.status-rejected { background: rgba(255, 107, 124, 0.16); color: #ff9eaa; }

.photo-actions {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 12px;
  left: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.photo-actions button {
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.danger-link {
  color: #ff8c99 !important;
}

.moderator-note {
  position: absolute;
  z-index: 3;
  right: 12px;
  bottom: 40px;
  left: 12px;
  color: #ffbec6;
  font-size: 9px;
}

.photo-upload input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.photo-upload label {
  display: grid;
  place-items: center;
  align-content: center;
  width: 100%;
  height: 100%;
  min-height: 280px;
  padding: 25px;
  border: 1px dashed rgba(255, 255, 255, 0.16);
  border-radius: inherit;
  text-align: center;
  cursor: pointer;
  transition: 0.2s ease;
}

.photo-upload label:hover,
.photo-upload label.has-file {
  border-color: rgba(244, 63, 135, 0.5);
  background: rgba(244, 63, 135, 0.06);
}

.photo-upload label > span {
  display: grid;
  place-items: center;
  width: 47px;
  height: 47px;
  margin-bottom: 13px;
  border-radius: 15px;
  background: var(--primary-soft);
  color: #ff76aa;
  font-size: 26px;
}

.photo-upload label b {
  font-size: 13px;
}

.photo-upload label small {
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 9px;
}

.profile-form {
  gap: 18px;
}

.profile-form > label {
  margin-top: 17px;
}

.privacy-options {
  display: grid;
  gap: 10px;
  margin-top: 20px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}

.switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.025);
  cursor: pointer;
}

.switch-row > span {
  display: grid;
  gap: 3px;
}

.switch-row b {
  color: #fff;
  font-size: 12px;
}

.switch-row small {
  color: var(--muted);
  font-size: 10px;
}

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

.switch-row i {
  position: relative;
  flex: none;
  width: 46px;
  height: 27px;
  border-radius: 999px;
  background: #373244;
  transition: 0.2s ease;
}

.switch-row i::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 3px 9px rgba(0, 0, 0, 0.25);
  transition: 0.2s ease;
}

.switch-row input:checked + i {
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
}

.switch-row input:checked + i::after {
  transform: translateX(19px);
}

.blocked-list {
  display: grid;
}

.blocked-list > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 0;
}

.blocked-list > div + div {
  border-top: 1px solid var(--line);
}

.blocked-list span {
  display: flex;
  align-items: center;
  gap: 11px;
}

.blocked-list img {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  object-fit: cover;
}

.danger-zone {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  padding: 24px 26px;
  border-color: rgba(255, 107, 124, 0.13);
}

.danger-zone h2 {
  margin-bottom: 7px;
  font-size: 20px;
}

.danger-zone p {
  color: var(--muted);
  font-size: 11px;
}

.modal {
  width: min(520px, calc(100% - 28px));
  max-height: min(85vh, 760px);
  padding: 0;
  overflow: auto;
  border: 1px solid var(--line-strong);
  border-radius: 25px;
  background: var(--surface);
  color: #fff;
  box-shadow: var(--shadow);
}

.modal::backdrop {
  background: rgba(5, 4, 9, 0.76);
  backdrop-filter: blur(6px);
}

.modal > form[method="dialog"] {
  position: sticky;
  z-index: 3;
  top: 0;
  float: right;
  margin: 12px;
}

.modal-close {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.06);
  color: var(--muted);
  font-size: 20px;
  cursor: pointer;
}

.modal-content {
  padding: 34px;
}

.modal-content h2 {
  margin: 8px 0 12px;
  font-size: 29px;
}

.modal-content > p {
  margin-bottom: 24px;
  color: var(--muted);
}

.modal-content hr {
  height: 1px;
  margin: 16px 0;
  border: 0;
  background: var(--line);
}

.modal-action {
  display: block;
  width: 100%;
  padding: 14px 0;
  border: 0;
  background: transparent;
  color: #fff;
  text-align: left;
  font-weight: 750;
  cursor: pointer;
}
/* Discover */
.discover-heading {
  align-items: center;
}

.boost-active {
  padding: 9px 12px;
  border: 1px solid rgba(216, 255, 114, 0.18);
  border-radius: 999px;
  background: rgba(216, 255, 114, 0.07);
  color: var(--lime);
  font-size: 10px;
  font-weight: 800;
}

.discover-layout {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  align-items: start;
  gap: 22px;
}

.filters-panel {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  padding: 21px;
}

.filter-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}

.filter-head h2 {
  margin: 5px 0 0;
  font-size: 23px;
}

.filter-head button {
  display: none;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.04);
}

.filter-form {
  display: grid;
  gap: 15px;
}

.age-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.filter-checks {
  display: grid;
  gap: 9px;
  padding: 4px 0;
}

.filter-checks label {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
}

.filter-checks input {
  width: 17px;
  min-height: 17px;
  accent-color: var(--primary);
}

.filter-checks span {
  color: var(--muted);
  font-size: 11px;
}

.filter-reset {
  justify-self: center;
  color: var(--muted);
  font-size: 11px;
}

.filter-tip {
  display: flex;
  gap: 9px;
  margin-top: 20px;
  padding-top: 17px;
  border-top: 1px solid var(--line);
}

.filter-tip p {
  color: var(--muted-2);
  font-size: 9px;
  line-height: 1.55;
}

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

.profile-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 23px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  touch-action: pan-y;
  transition: transform 0.28s ease, opacity 0.28s ease, border-color 0.2s ease;
}

.profile-card:hover {
  border-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-3px);
}

.profile-card.is-dragging {
  z-index: 5;
  transition: none;
}

.profile-card.leaving-left {
  opacity: 0;
  transform: translateX(-130%) rotate(-13deg);
}

.profile-card.leaving-right {
  opacity: 0;
  transform: translateX(130%) rotate(13deg);
}

.profile-card::after {
  content: attr(data-swipe);
  position: absolute;
  z-index: 7;
  top: 26px;
  left: 50%;
  padding: 8px 13px;
  border: 2px solid currentColor;
  border-radius: 10px;
  color: var(--success);
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: var(--swipe-opacity, 0);
  transform: translateX(-50%) rotate(-5deg);
  pointer-events: none;
}

.profile-card[data-swipe="pass"]::after {
  color: var(--danger);
  transform: translateX(-50%) rotate(5deg);
}

.profile-photo {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5.1;
  overflow: hidden;
}

.profile-photo > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.profile-card:hover .profile-photo > img {
  transform: scale(1.025);
}

.photo-gradient {
  position: absolute;
  inset: 38% 0 0;
  background: linear-gradient(transparent, rgba(12, 10, 18, 0.92));
  pointer-events: none;
}

.profile-photo-top,
.profile-photo-bottom {
  position: absolute;
  z-index: 2;
  right: 13px;
  left: 13px;
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.profile-photo-top {
  top: 13px;
}

.profile-photo-top .online-pill {
  color: var(--lime);
}

.boost-pill {
  color: var(--lime);
}

.profile-photo-bottom {
  bottom: 13px;
  display: block;
}

.profile-photo-bottom h2 {
  margin: 0 0 4px;
  font-size: clamp(21px, 2vw, 26px);
}

.profile-photo-bottom p {
  margin: 0;
  color: #d0cbd6;
  font-size: 10px;
}

.profile-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 12px;
  padding: 17px;
}

.profile-meta {
  margin: 0;
  color: #d4ced9;
  font-size: 11px;
  font-weight: 700;
}

.profile-card-bio {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.opening-prompt {
  display: grid;
  gap: 4px;
  margin-top: auto;
  padding: 12px;
  border: 1px solid rgba(139, 92, 246, 0.18);
  border-radius: 13px;
  background: rgba(139, 92, 246, 0.07);
}

.opening-prompt small {
  color: #9a90b4;
  font-size: 8px;
  font-weight: 750;
  text-transform: uppercase;
}

.opening-prompt b {
  font-size: 10px;
  line-height: 1.5;
}

.card-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 0 17px 17px;
}

.card-actions .round-action {
  width: 48px;
  height: 48px;
  font-size: 19px;
}

.keyboard-hint {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 20px;
  color: var(--muted-2);
  font-size: 9px;
}

.keyboard-hint span {
  display: flex;
  align-items: center;
  gap: 6px;
}

kbd {
  display: inline-grid;
  place-items: center;
  min-width: 24px;
  height: 24px;
  padding: 0 5px;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 7px;
  background: var(--surface);
  font: inherit;
}

/* Full profile */
.profile-view-shell {
  display: grid;
  grid-template-columns: minmax(420px, 0.92fr) minmax(420px, 1.08fr);
  width: min(1120px, calc(100% - 40px));
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 29px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.profile-gallery {
  position: sticky;
  top: calc(var(--header-height) + 20px);
  align-self: start;
  min-height: calc(100vh - var(--header-height) - 74px);
  overflow: hidden;
  background: #11101a;
}

.gallery-track {
  display: flex;
  width: 100%;
  height: calc(100vh - var(--header-height) - 74px);
  min-height: 650px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery-track::-webkit-scrollbar { display: none; }

.gallery-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  object-fit: cover;
  scroll-snap-align: start;
}

.single-placeholder {
  width: 100%;
  height: calc(100vh - var(--header-height) - 74px);
  min-height: 650px;
  object-fit: cover;
}

.back-button,
.profile-menu-button {
  position: absolute;
  z-index: 5;
  top: 16px;
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 14px;
  background: rgba(16, 14, 23, 0.66);
  color: #fff;
  backdrop-filter: blur(12px);
}

.back-button { left: 16px; }
.profile-menu-button { right: 16px; cursor: pointer; }

.gallery-dots {
  position: absolute;
  z-index: 4;
  top: 17px;
  left: 50%;
  display: flex;
  gap: 5px;
  transform: translateX(-50%);
}

.gallery-dots button {
  width: 22px;
  height: 3px;
  padding: 0;
  border: 0;
  border-radius: 99px;
  background: rgba(255, 255, 255, 0.32);
  cursor: pointer;
}

.gallery-dots button.active {
  background: #fff;
}

.profile-detail {
  padding: 38px;
}

.presence {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-size: 10px;
}

.presence::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--muted-2);
}

.presence.online {
  color: var(--success);
}

.presence.online::before {
  background: var(--success);
  box-shadow: 0 0 0 4px rgba(94, 230, 168, 0.09);
}

.profile-detail-head h1 {
  margin: 8px 0 7px;
  font-size: clamp(37px, 4.5vw, 56px);
}

.profile-detail-head p {
  color: var(--muted);
}

.profile-section {
  margin-top: 30px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}

.profile-section h2 {
  margin-bottom: 14px;
  font-size: 21px;
}

.profile-section > p {
  color: #c4beca;
  line-height: 1.8;
}

.facts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 30px;
}

.facts-grid > div {
  display: grid;
  gap: 4px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.facts-grid span {
  color: var(--muted-2);
  font-size: 9px;
  text-transform: uppercase;
}

.facts-grid b {
  font-size: 12px;
}

.conversation-prompt {
  margin: 30px 0;
  padding: 22px;
  border: 1px solid rgba(139, 92, 246, 0.22);
  border-radius: 19px;
  background: linear-gradient(135deg, rgba(139, 92, 246, 0.1), rgba(244, 63, 135, 0.06));
}

.conversation-prompt > span {
  color: #a89dbc;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.conversation-prompt h2 {
  margin: 8px 0 17px;
  font-size: 22px;
  line-height: 1.3;
}

.sticky-profile-actions {
  position: sticky;
  bottom: 20px;
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 35px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(27, 24, 39, 0.86);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(18px);
}
/* Social lists */
.section-tabs {
  display: inline-flex;
  gap: 5px;
  margin-bottom: 22px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
}

.section-tabs a {
  padding: 9px 15px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.section-tabs a.active {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

.conversation-list {
  max-width: 850px;
  overflow: hidden;
}

.conversation-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 15px 18px;
  transition: background 0.18s ease;
}

.conversation-row + .conversation-row {
  border-top: 1px solid var(--line);
}

.conversation-row:hover,
.conversation-row.unread {
  background: rgba(255, 255, 255, 0.025);
}

.avatar-wrap {
  position: relative;
  flex: none;
}

.avatar-wrap img {
  width: 54px;
  height: 54px;
  border-radius: 17px;
  object-fit: cover;
}

.avatar-wrap i {
  position: absolute;
  right: -1px;
  bottom: 0;
  width: 12px;
  height: 12px;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--muted-2);
}

.avatar-wrap i.online {
  background: var(--success);
}

.conversation-copy {
  min-width: 0;
}

.conversation-copy > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}

.conversation-copy b {
  font-size: 13px;
}

.conversation-copy time {
  flex: none;
  color: var(--muted-2);
  font-size: 9px;
}

.conversation-copy p {
  overflow: hidden;
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.conversation-row.unread .conversation-copy p {
  color: #e0dae5;
  font-weight: 700;
}

.unread-badge {
  display: grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 900;
}

.people-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.person-card {
  position: relative;
  aspect-ratio: 4 / 5.4;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: var(--surface);
}

.person-card > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.person-card:hover > img {
  transform: scale(1.035);
}

.person-card > div {
  position: absolute;
  z-index: 2;
  right: 13px;
  bottom: 13px;
  left: 13px;
}

.person-card small {
  color: var(--blue);
  font-size: 9px;
  font-weight: 800;
}

.person-card h2 {
  margin: 4px 0;
  font-size: 19px;
}

.person-card p {
  color: #d2ccd8;
  font-size: 9px;
}

/* Chat */
.chat-page {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  width: min(920px, calc(100% - 40px));
  height: calc(100vh - var(--header-height) - 58px);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.chat-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 10px 15px;
  border-bottom: 1px solid var(--line);
}

.chat-back,
.chat-menu {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.035);
  cursor: pointer;
}

.chat-person {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
}

.chat-person .avatar-wrap img {
  width: 46px;
  height: 46px;
  border-radius: 15px;
}

.chat-person > div:last-child {
  display: grid;
  min-width: 0;
}

.chat-person b {
  overflow: hidden;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chat-person small {
  color: var(--muted);
  font-size: 9px;
}

.chat-prompt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(139, 92, 246, 0.06);
}

.chat-prompt span {
  flex: none;
  color: #968aaa;
  font-size: 8px;
  text-transform: uppercase;
}

.chat-prompt button {
  overflow: hidden;
  padding: 0;
  border: 0;
  background: transparent;
  color: #d4cedb;
  font-size: 10px;
  font-weight: 700;
  text-align: left;
  text-overflow: ellipsis;
  white-space: nowrap;
  cursor: pointer;
}

.messages {
  min-height: 0;
  overflow-y: auto;
  padding: 22px;
  overscroll-behavior: contain;
  scrollbar-color: #3c374b transparent;
}

.messages-loading,
.messages-error {
  display: grid;
  place-items: center;
  min-height: 100%;
  color: var(--muted);
  font-size: 11px;
}

.message-date {
  width: fit-content;
  margin: 12px auto;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 750;
}

.message-row {
  display: flex;
  margin: 7px 0;
}

.message-row.mine {
  justify-content: flex-end;
}

.message-bubble {
  max-width: min(72%, 560px);
  padding: 10px 12px 7px;
  border: 1px solid var(--line);
  border-radius: 17px 17px 17px 5px;
  background: var(--surface-2);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
}

.message-row.mine .message-bubble {
  border-color: rgba(244, 63, 135, 0.2);
  border-radius: 17px 17px 5px 17px;
  background: linear-gradient(135deg, rgba(244, 63, 135, 0.2), rgba(139, 92, 246, 0.17));
}

.message-row.pending {
  opacity: 0.6;
}

.message-row.failed .message-bubble {
  border-color: rgba(255, 107, 124, 0.35);
}

.message-bubble img {
  width: min(320px, 100%);
  max-height: 360px;
  margin: -3px -4px 8px;
  border-radius: 13px;
  object-fit: cover;
}

.message-bubble p {
  margin: 0;
  color: #f2eef5;
  font-size: 12px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}

.message-bubble small {
  display: block;
  margin-top: 5px;
  color: #928a9c;
  font-size: 8px;
  text-align: right;
}

.composer {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
  padding: 12px;
  border-top: 1px solid var(--line);
  background: #171521;
}

.composer > input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.attach-button,
.send-button {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted);
  font-size: 22px;
  cursor: pointer;
}

.send-button {
  border: 0;
  background: linear-gradient(135deg, var(--primary), var(--primary-2));
  color: #fff;
  font-size: 21px;
  font-weight: 900;
}

.send-button:disabled {
  opacity: 0.5;
}

.composer-input {
  min-width: 0;
  border: 1px solid var(--line-strong);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.04);
}

.composer textarea {
  min-height: 42px;
  max-height: 140px;
  padding: 11px 13px;
  border: 0;
  background: transparent;
  box-shadow: none !important;
  resize: none;
}

.attachment-preview {
  position: relative;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px;
  border-top: 1px solid var(--line);
}

.attachment-preview[hidden] {
  display: none;
}

.attachment-preview img {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  object-fit: cover;
}

.attachment-preview span {
  overflow: hidden;
  color: var(--muted);
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.attachment-preview button {
  margin-left: auto;
  border: 0;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
}

/* Notifications */
.notification-list {
  max-width: 850px;
  overflow: hidden;
}

.notification-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  transition: background 0.18s ease;
}

.notification-row + .notification-row {
  border-top: 1px solid var(--line);
}

.notification-row:hover {
  background: rgba(255, 255, 255, 0.025);
}

.notification-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--primary-soft);
  color: #ff78aa;
  font-size: 17px;
}

.notification-row div {
  display: grid;
  gap: 3px;
}

.notification-row b {
  font-size: 12px;
}

.notification-row time,
.notification-row > i {
  color: var(--muted-2);
  font-size: 9px;
  font-style: normal;
}
/* Plans */
.current-plan {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px;
  max-width: 860px;
  margin: 0 auto 22px;
  padding: 23px 26px;
}

.current-plan > div:first-child > span {
  color: var(--muted);
  font-size: 9px;
  text-transform: uppercase;
}

.current-plan h2 {
  margin: 4px 0;
  font-size: 26px;
}

.current-plan p {
  color: var(--muted);
  font-size: 10px;
}

.plan-balance {
  display: flex;
  gap: 25px;
}

.plan-balance span {
  display: grid;
  color: var(--muted);
  font-size: 9px;
  text-align: center;
}

.plan-balance b {
  color: #fff;
  font-size: 24px;
}

.plans-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 17px;
  max-width: 860px;
  margin: 0 auto;
}

.plan-card {
  position: relative;
  padding: 31px;
  border: 1px solid var(--line);
  border-radius: 26px;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.plan-card.featured {
  border-color: rgba(244, 63, 135, 0.35);
  background:
    radial-gradient(circle at 90% 7%, rgba(244, 63, 135, 0.15), transparent 28%),
    var(--surface);
}

.popular-badge {
  position: absolute;
  top: 17px;
  right: 17px;
  padding: 6px 9px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: #ff7bac;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}

.plan-card h2 {
  margin: 12px 0;
  font-size: 36px;
}

.price {
  display: flex;
  align-items: baseline;
  gap: 7px;
}

.price b {
  font-size: 30px;
}

.price span {
  color: var(--muted);
  font-size: 10px;
}

.plan-card ul {
  display: grid;
  gap: 11px;
  margin: 25px 0 28px;
  padding: 0;
  list-style: none;
}

.plan-card li {
  display: flex;
  gap: 9px;
  color: #ccc6d2;
  font-size: 11px;
}

.plan-card li::before {
  content: "✓";
  color: var(--success);
  font-weight: 900;
}

.boost-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 30px;
  max-width: 860px;
  margin: 18px auto 0;
  padding: 23px 26px;
}

.boost-card > div {
  display: flex;
  align-items: center;
  gap: 15px;
}

.boost-symbol {
  display: grid;
  place-items: center;
  width: 50px;
  height: 50px;
  border-radius: 16px;
  background: rgba(216, 255, 114, 0.1);
  color: var(--lime);
  font-size: 22px;
}

.boost-card h2 {
  margin: 0 0 5px;
  font-size: 18px;
}

.boost-card p,
.boost-card small {
  color: var(--muted);
  font-size: 10px;
}

.payment-note {
  max-width: 860px;
  margin: 18px auto 0;
  padding: 13px 15px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.025);
  color: var(--muted);
  font-size: 10px;
  text-align: center;
}

.payment-note.warning {
  border-color: rgba(247, 201, 106, 0.2);
  color: #d8c49a;
}

/* Admin */
.admin-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.admin-stats > div {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface);
}

.admin-stats b {
  display: block;
  font-size: 29px;
}

.admin-stats span {
  color: var(--muted);
  font-size: 9px;
}

.admin-section {
  margin-top: 18px;
  padding: 25px;
}

.admin-empty {
  color: var(--muted);
  font-size: 12px;
}

.moderation-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 13px;
}

.moderation-grid article {
  display: grid;
  grid-template-columns: 145px minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.025);
}

.moderation-grid article > img {
  width: 100%;
  height: 100%;
  min-height: 210px;
  object-fit: cover;
}

.moderation-grid article > div {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 15px;
}

.moderation-grid small {
  color: var(--muted);
  font-size: 9px;
}

.moderation-grid form {
  display: grid;
  gap: 9px;
  margin-top: auto;
}

.moderation-grid form > div {
  display: flex;
  gap: 8px;
}

.admin-table {
  display: grid;
}

.admin-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 0;
}

.admin-row + .admin-row {
  border-top: 1px solid var(--line);
}

.admin-row > div {
  min-width: 0;
}

.admin-row p {
  margin: 5px 0;
  color: var(--muted);
  font-size: 10px;
}

.admin-row time {
  color: var(--muted-2);
  font-size: 8px;
}

.admin-row form {
  display: flex;
  align-items: center;
  gap: 7px;
  flex: none;
}

.admin-row select {
  min-height: 36px;
  width: auto;
  font-size: 10px;
}

.admin-user {
  display: flex;
  align-items: center;
  gap: 11px;
}

.admin-user img {
  width: 44px;
  height: 44px;
  border-radius: 13px;
  object-fit: cover;
}

/* Legal */
.legal-shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 760px);
  align-items: start;
  justify-content: center;
  gap: 70px;
  width: min(1080px, calc(100% - 40px));
  margin: 0 auto;
}

.legal-nav {
  position: sticky;
  top: calc(var(--header-height) + 30px);
  display: grid;
  gap: 5px;
}

.legal-nav > span {
  margin-bottom: 8px;
  color: var(--muted-2);
  font-size: 9px;
  font-weight: 800;
  text-transform: uppercase;
}

.legal-nav a {
  padding: 10px 12px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 750;
}

.legal-nav a:hover,
.legal-nav a.active {
  background: var(--surface);
  color: #fff;
}

.legal-content {
  padding: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  box-shadow: var(--shadow-soft);
}

.legal-content h1 {
  margin: 10px 0;
  font-size: clamp(38px, 5vw, 58px);
}

.legal-updated {
  color: var(--muted-2);
  font-size: 10px;
}

.legal-content .lead {
  margin: 30px 0;
  color: #d4ceda;
  font-size: 17px;
  line-height: 1.75;
}

.legal-content h2 {
  margin: 34px 0 13px;
  font-size: 22px;
}

.legal-content p,
.legal-content li {
  color: #b7b0bf;
  line-height: 1.8;
}

.legal-content ul {
  display: grid;
  gap: 8px;
  padding-left: 20px;
}

.legal-content a {
  color: #ff7bad;
}

.legal-callout,
.legal-note-box {
  margin-top: 30px;
  padding: 20px;
  border: 1px solid rgba(247, 201, 106, 0.18);
  border-radius: 16px;
  background: rgba(247, 201, 106, 0.06);
}

.legal-note-box {
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.025);
}

.legal-callout p,
.legal-note-box p {
  margin-top: 7px;
  font-size: 11px;
}

.not-found-page {
  padding-top: 40px;
  text-align: center;
}

.not-found-code {
  color: rgba(255, 255, 255, 0.055);
  font-size: clamp(120px, 22vw, 250px);
  font-weight: 900;
  letter-spacing: -0.09em;
  line-height: 0.7;
}
/* Responsive */
@media (max-width: 1180px) {
  .site-header { padding-inline: 22px; }
  .site-nav > a { padding-inline: 10px; }
  .site-nav > a, .site-nav > form button { padding-inline: 9px; font-size: 11px; }
  .discover-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .people-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .feature-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 980px) {
  :root { --header-height: 66px; }
  .site-header { min-height: var(--header-height); }
  .nav-toggle { display: block; }
  .site-nav {
    position: fixed;
    z-index: 1050;
    top: var(--header-height);
    right: 14px;
    left: 14px;
    display: grid;
    padding: 10px;
    border: 1px solid var(--line-strong);
    border-radius: 18px;
    background: rgba(25, 22, 35, 0.98);
    box-shadow: var(--shadow);
    opacity: 0;
    pointer-events: none;
    transform: translateY(-10px) scale(0.98);
    transition: 0.2s ease;
  }
  .site-nav.is-open { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
  .site-nav > a,
  .site-nav > form button { justify-content: flex-start !important; width: 100%; padding-inline: 14px !important; }
  .site-nav > a span { display: inline !important; }
  .site-nav .nav-cta { margin-left: 0; }
  .nav-profile img { width: 28px; height: 28px; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 760px; }
  .hero-product { width: min(560px, 100%); margin: 0 auto; }
  .split-section,
  .safety-grid,
  .faq-grid { grid-template-columns: 1fr; gap: 45px; }
  .auth-shell { grid-template-columns: 1fr; }
  .auth-aside { position: relative; min-height: auto; padding-block: 42px; }
  .auth-aside > div { margin: 70px 0 35px; }
  .auth-aside ul { grid-template-columns: repeat(3, 1fr); }
  .auth-card { margin: 36px auto 70px; }
  .profile-dashboard { grid-template-columns: 1fr; }
  .profile-sidebar { position: static; grid-template-columns: 1fr 1fr; }
  .profile-summary { display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 18px; }
  .profile-summary > img { grid-row: span 4; margin: 0; }
  .profile-summary > .btn,
  .profile-summary > form { grid-column: 2; }
  .discover-layout { grid-template-columns: 1fr; }
  .filters-panel {
    position: fixed;
    z-index: 1200;
    inset: auto 0 0;
    max-height: 86vh;
    overflow: auto;
    border-radius: 24px 24px 0 0;
    opacity: 0;
    pointer-events: none;
    transform: translateY(100%);
    transition: 0.28s ease;
  }
  .filters-panel.is-open { opacity: 1; pointer-events: auto; transform: translateY(0); }
  .filter-head button { display: block; }
  body.filter-open::after { content: ""; position: fixed; z-index: 1150; inset: 0; background: rgba(0,0,0,.65); backdrop-filter: blur(4px); }
  .profile-view-shell { grid-template-columns: 1fr; width: min(760px, calc(100% - 30px)); }
  .profile-gallery { position: relative; top: auto; min-height: auto; }
  .gallery-track,
  .single-placeholder { height: min(76vh, 720px); min-height: 520px; }
  .people-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .legal-shell { grid-template-columns: 1fr; gap: 20px; }
  .legal-nav { position: static; display: flex; overflow-x: auto; padding-bottom: 6px; }
  .legal-nav > span { display: none; }
  .admin-row { align-items: flex-start; flex-direction: column; }
  .admin-row form { width: 100%; flex-wrap: wrap; }
}

@media (max-width: 720px) {
  .app-body.is-authenticated .site-header { display: none; }
  .app-body.is-authenticated .app-main { padding-top: 18px; padding-bottom: 90px; }
  .mobile-tabbar {
    position: fixed;
    z-index: 1100;
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    padding: 7px;
    border: 1px solid var(--line-strong);
    border-radius: 19px;
    background: rgba(24, 21, 34, 0.92);
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.38);
    backdrop-filter: blur(20px);
  }
  .mobile-tabbar a { display: grid; justify-items: center; gap: 2px; padding: 7px; border-radius: 12px; color: var(--muted); }
  .mobile-tabbar a.active { background: rgba(255, 255, 255, 0.07); color: #fff; }
  .mobile-tabbar span { font-size: 19px; line-height: 1; }
  .mobile-tabbar small { font-size: 8px; font-weight: 750; }
  .page-shell { width: min(100% - 24px, 1260px); }
  .page-heading { align-items: flex-start; flex-direction: column; margin-bottom: 22px; }
  .page-heading h1 { font-size: 36px; }
  .page-heading p { font-size: 13px; }
  .heading-actions { width: 100%; justify-content: space-between; }
  .hero-section { min-height: auto; padding: 120px 0 72px; }
  .hero-copy h1 { font-size: 48px; }
  .hero-copy > p { font-size: 15px; }
  .hero-actions { display: grid; }
  .hero-product { min-height: 540px; }
  .demo-card-main { width: 92%; }
  .demo-card-back { width: 86%; }
  .demo-photo { height: 275px; }
  .match-toast { right: 0; bottom: 10px; }
  .landing-section { padding: 78px 0; }
  .section-heading h2 { font-size: 38px; }
  .feature-steps { grid-template-columns: 1fr; }
  .feature-steps article { min-height: 250px; }
  .feature-steps h3 { margin-top: 55px; }
  .safety-list { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid > div + div { border-top: 1px solid var(--line); border-left: 0; }
  .cta-card { align-items: flex-start; flex-direction: column; padding: 34px 24px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .auth-aside { padding: 28px 24px; }
  .auth-aside > div { margin: 55px 0 25px; }
  .auth-aside h1 { font-size: 40px; }
  .auth-aside ul { grid-template-columns: 1fr; }
  .auth-card,
  .auth-card-wide { width: calc(100% - 24px); margin: 20px auto 50px; padding: 25px 20px; }
  .form-grid.two { grid-template-columns: 1fr; }
  .profile-sidebar { grid-template-columns: 1fr; }
  .profile-summary { grid-template-columns: 115px minmax(0, 1fr); padding: 16px; }
  .profile-summary > img { aspect-ratio: 1; }
  .profile-summary .completion,
  .profile-summary .account-chips,
  .profile-summary > .btn,
  .profile-summary > form { grid-column: 1 / -1; }
  .photo-manager,
  .profile-form { padding: 18px; }
  .photo-grid { grid-template-columns: 1fr 1fr; }
  .photo-tile,
  .photo-upload,
  .photo-tile img,
  .photo-upload label { min-height: 230px; }
  .surface-heading { align-items: flex-start; }
  .surface-heading > .btn { min-height: 38px; padding-inline: 12px; font-size: 11px; }
  .danger-zone { align-items: flex-start; flex-direction: column; }
  .discover-grid { grid-template-columns: 1fr; }
  .profile-card { max-width: 520px; margin: 0 auto; }
  .keyboard-hint { display: none; }
  .profile-view-shell { width: 100%; border-width: 0; border-radius: 0; }
  .profile-detail { padding: 26px 20px; }
  .gallery-track,
  .single-placeholder { height: 67vh; min-height: 470px; }
  .facts-grid { grid-template-columns: 1fr; }
  .people-grid { grid-template-columns: 1fr 1fr; }
  .chat-page { width: 100%; height: calc(100vh - 92px); border-width: 0; border-radius: 0; }
  .message-bubble { max-width: 84%; }
  .plans-grid { grid-template-columns: 1fr; }
  .current-plan,
  .boost-card { align-items: flex-start; flex-direction: column; }
  .plan-balance { width: 100%; justify-content: flex-start; }
  .admin-stats { grid-template-columns: 1fr 1fr; }
  .moderation-grid { grid-template-columns: 1fr; }
  .legal-content { padding: 24px 20px; }
  .legal-content h1 { font-size: 40px; }
  .footer-bottom { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 430px) {
  .brand-copy span { display: none; }
  .landing-shell { width: calc(100% - 24px); }
  .hero-copy h1 { font-size: 42px; }
  .hero-product { min-height: 510px; }
  .demo-card-main { width: 96%; }
  .demo-photo { height: 245px; }
  .demo-content { padding: 17px; }
  .demo-prompt { display: none; }
  .match-toast { padding: 11px 13px; }
  .match-toast small { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-grid > div:first-child { grid-column: auto; }
  .photo-grid { grid-template-columns: 1fr; }
  .photo-tile,
  .photo-upload,
  .photo-tile img,
  .photo-upload label { min-height: 330px; }
  .people-grid { gap: 9px; }
  .person-card h2 { font-size: 16px; }
  .composer { gap: 7px; padding: 9px; }
  .attach-button,
  .send-button { width: 39px; height: 39px; }
  .messages { padding: 15px 11px; }
  .admin-stats { grid-template-columns: 1fr; }
  .moderation-grid article { grid-template-columns: 1fr; }
  .moderation-grid article > img { height: 300px; }
}

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

/* ===== 2026 product polish ===== */
.brand {
  gap: 12px;
  min-width: max-content;
}

.brand-symbol {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  overflow: hidden;
  border-radius: 15px;
  background: linear-gradient(145deg, #ff4778 0%, #7357ff 100%);
  box-shadow: 0 12px 30px rgba(244, 63, 135, 0.23);
}

.brand-symbol svg {
  width: 31px;
  height: 31px;
  overflow: visible;
}

.brand-symbol svg > path:first-child { fill: #fff; }
.brand-symbol .brand-pin { fill: #ffb4cc; }
.brand-symbol circle { fill: #fff; }

.brand-wordmark {
  display: grid;
  gap: 0;
  line-height: 1;
}

.brand-wordmark > span {
  display: flex;
  align-items: baseline;
  gap: 4px;
  letter-spacing: -0.045em;
}

.brand-wordmark strong,
.brand-wordmark b {
  font-size: 18px;
  font-weight: 900;
}

.brand-wordmark b { color: #ff6a9c; }
.brand-wordmark small {
  margin-top: 5px;
  color: var(--muted-2);
  font-size: 8px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* Photo upload: explicit action, preview and progress */
.photo-upload {
  display: grid;
  align-content: stretch;
  overflow: visible;
  background: transparent;
}

.photo-upload input[type="file"] {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

.photo-dropzone {
  position: relative;
  display: grid;
  place-items: center;
  align-content: center;
  width: 100%;
  min-height: 280px;
  padding: 25px;
  overflow: hidden;
  border: 1.5px dashed rgba(255, 255, 255, 0.18);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.025), rgba(255,255,255,.01));
  text-align: center;
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.photo-dropzone:hover,
.photo-dropzone.is-dragover {
  border-color: rgba(244, 63, 135, .66);
  background: rgba(244, 63, 135, .07);
  transform: translateY(-2px);
}

.photo-dropzone.has-file {
  align-content: end;
  justify-items: stretch;
  border-style: solid;
  border-color: rgba(255,255,255,.14);
}

.photo-dropzone > img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-dropzone.has-file::after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(9,8,15,.93));
}

.photo-dropzone .upload-plus,
.photo-dropzone > b,
.photo-dropzone > small {
  position: relative;
  z-index: 2;
}

.photo-dropzone .upload-plus {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 14px;
  border-radius: 17px;
  background: linear-gradient(145deg, rgba(244,63,135,.18), rgba(139,92,246,.18));
  color: #ff78a9;
  font-size: 28px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.04);
}

.photo-dropzone > b { font-size: 14px; }
.photo-dropzone > small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.photo-dropzone.has-file .upload-plus { display: none; }
.photo-dropzone.has-file > b { color: #fff; text-align: left; }
.photo-dropzone.has-file > small { display: none; }

.photo-upload-controls {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}

.photo-upload-controls[hidden],
.photo-upload-progress[hidden] { display: none !important; }

.photo-upload-controls > span {
  min-width: 0;
  flex: 1;
  overflow: hidden;
  color: var(--muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.photo-upload-progress {
  position: relative;
  height: 34px;
  margin-top: 10px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--surface-2);
}

.photo-upload-progress i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4%;
  background: linear-gradient(90deg, var(--primary), var(--primary-2));
  transition: width .15s linear;
}

.photo-upload-progress span {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  height: 100%;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.photo-upload.is-uploading .photo-dropzone,
.photo-upload.is-uploading .photo-upload-controls { opacity: .55; pointer-events: none; }

/* Landing visual system */
.landing-body {
  --landing-ink: #1c1722;
  --landing-muted: #746d79;
  --landing-line: #e9e2e6;
  --landing-pink: #ed376f;
  --landing-purple: #7357ef;
  --landing-cream: #fbf9f6;
  background: var(--landing-cream);
  color: var(--landing-ink);
  color-scheme: light;
}

.landing-body .site-header {
  min-height: 82px;
  padding-inline: max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(28,23,34,.07);
  background: rgba(251,249,246,.88);
  box-shadow: 0 8px 35px rgba(47,37,50,.035);
  backdrop-filter: blur(22px) saturate(150%);
}

.landing-body .brand-wordmark strong { color: var(--landing-ink); }
.landing-body .brand-wordmark b { color: var(--landing-pink); }
.landing-body .brand-wordmark small { color: #8b838f; }

.landing-body .site-nav > a,
.landing-body .site-nav > form button {
  color: #625b68;
  font-size: 13px;
}

.landing-body .site-nav > a:hover,
.landing-body .site-nav > a.active,
.landing-body .site-nav > form button:hover {
  background: #fff;
  color: var(--landing-ink);
  box-shadow: 0 7px 22px rgba(40,30,43,.07);
}

.landing-body .site-nav .nav-cta {
  min-height: 46px;
  padding-inline: 18px;
  background: var(--landing-ink);
  color: #fff;
  box-shadow: none;
}

.landing-body .site-nav .nav-cta:hover {
  background: var(--landing-pink);
  color: #fff;
}

.landing-body .nav-toggle {
  border-color: var(--landing-line);
  background: #fff;
}
.landing-body .nav-toggle span { background: var(--landing-ink); }

.landing-body main { overflow: hidden; }
.landing-body .landing-shell {
  width: min(1240px, calc(100% - 48px));
  margin-inline: auto;
}

.landing-body .btn-primary {
  border-color: transparent;
  background: linear-gradient(135deg, #f23872, #d82e70);
  color: #fff;
  box-shadow: 0 18px 38px rgba(237,55,111,.2);
}

.landing-body .btn-primary:hover {
  background: linear-gradient(135deg, #ff4c82, #ed376f);
  box-shadow: 0 20px 45px rgba(237,55,111,.28);
}

.btn-ghost {
  border-color: var(--landing-line);
  background: rgba(255,255,255,.68);
  color: var(--landing-ink);
}
.btn-ghost:hover { border-color: #d7ccd2; background: #fff; }
.btn-dark { background: var(--landing-ink); color: #fff; }
.btn-dark:hover { background: #322838; transform: translateY(-1px); }
.btn-light { background: #fff; color: #221827; }
.btn-light:hover { background: #fff5f8; transform: translateY(-1px); }

.new-hero {
  position: relative;
  min-height: 810px;
  padding: 154px 0 92px;
  overflow: hidden;
  background:
    radial-gradient(circle at 72% 9%, rgba(231,213,255,.8), transparent 28%),
    radial-gradient(circle at 9% 48%, rgba(255,221,231,.7), transparent 25%),
    linear-gradient(180deg, #fffdfa 0%, #fbf9f6 100%);
}

.new-hero::before {
  content: "";
  position: absolute;
  top: 122px;
  left: 50%;
  width: min(1220px, 90vw);
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(28,23,34,.08), transparent);
  transform: translateX(-50%);
}

.new-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(430px, .96fr);
  align-items: center;
  gap: 76px;
}

.landing-kicker,
.landing-label {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #6e6472;
  font-size: 11px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.landing-kicker span {
  display: grid;
  place-items: center;
  min-width: 36px;
  height: 26px;
  border-radius: 999px;
  background: #221927;
  color: #fff;
  font-size: 10px;
}

.new-hero-copy h1 {
  max-width: 730px;
  margin: 24px 0 25px;
  color: var(--landing-ink);
  font-size: clamp(52px, 6.1vw, 83px);
  font-weight: 880;
  letter-spacing: -.071em;
  line-height: .97;
}

.new-hero-copy h1 em {
  position: relative;
  color: var(--landing-pink);
  font-style: normal;
}

.new-hero-copy h1 em::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 1px;
  left: 4px;
  height: 7px;
  border-radius: 999px;
  background: rgba(237,55,111,.13);
  transform: rotate(-1deg);
}

.new-hero-copy > p {
  max-width: 660px;
  color: var(--landing-muted);
  font-size: 18px;
  line-height: 1.72;
}

.new-hero .hero-actions { margin-top: 34px; }
.new-hero .btn-lg { min-height: 56px; padding-inline: 25px; }

.hero-assurances {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 26px;
  color: #746c78;
  font-size: 11px;
  font-weight: 700;
}

.hero-assurances span { display: inline-flex; align-items: center; gap: 7px; }
.hero-assurances i {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #e8f8ee;
  color: #288a54;
  font-size: 10px;
  font-style: normal;
}

.hero-showcase {
  position: relative;
  min-height: 610px;
  perspective: 1200px;
}

.showcase-orbit {
  position: absolute;
  border: 1px solid rgba(115,87,239,.12);
  border-radius: 50%;
}
.orbit-one { inset: 18px -26px 18px 40px; transform: rotate(-10deg); }
.orbit-two { inset: 88px 30px 88px -30px; border-color: rgba(237,55,111,.12); transform: rotate(12deg); }

.showcase-card {
  position: absolute;
  overflow: hidden;
  border: 1px solid rgba(31,23,35,.08);
  border-radius: 31px;
  background: #fff;
  box-shadow: 0 35px 80px rgba(44,31,47,.15);
}

.showcase-card-main {
  top: 0;
  right: 36px;
  z-index: 3;
  width: min(410px, calc(100% - 40px));
  transform: rotate(1.5deg);
}

.showcase-card-back {
  top: 130px;
  left: 0;
  z-index: 1;
  display: grid;
  width: 210px;
  padding: 18px;
  transform: rotate(-9deg);
}

.mini-profile {
  display: grid;
  place-items: center;
  height: 205px;
  margin-bottom: 15px;
  border-radius: 21px;
  background: linear-gradient(145deg, #a7d8d0, #4e8995);
  color: rgba(255,255,255,.9);
  font-size: 68px;
  font-weight: 900;
}
.showcase-card-back b { color: var(--landing-ink); font-size: 15px; }
.showcase-card-back small { margin-top: 4px; color: var(--landing-muted); font-size: 10px; }

.showcase-photo {
  position: relative;
  height: 340px;
  overflow: hidden;
  background: #efc2d2;
}

.showcase-photo > img { width: 100%; height: 100%; object-fit: cover; }
.showcase-photo::after {
  content: "";
  position: absolute;
  inset: 44% 0 0;
  background: linear-gradient(transparent, rgba(24,16,27,.82));
}

.showcase-top,
.showcase-person {
  position: absolute;
  z-index: 2;
  right: 17px;
  left: 17px;
  display: flex;
}

.showcase-top { top: 16px; justify-content: space-between; }
.showcase-top > span {
  min-height: 27px;
  padding: 5px 9px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 999px;
  background: rgba(24,16,27,.52);
  color: #fff;
  font-size: 9px;
  font-weight: 850;
  backdrop-filter: blur(12px);
}
.showcase-top .showcase-online { color: #d9ff82; }

.showcase-person { bottom: 17px; display: grid; }
.showcase-person h2 { margin: 0 0 4px; color: #fff; font-size: 27px; }
.showcase-person h2 i {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #6f57ee;
  font-size: 10px;
  font-style: normal;
  vertical-align: 4px;
}
.showcase-person p { margin: 0; color: rgba(255,255,255,.8); font-size: 10px; }

.showcase-body { padding: 20px 21px 12px; }
.showcase-body > p { color: #6e6672; font-size: 12px; line-height: 1.62; }
.showcase-tags { display: flex; flex-wrap: wrap; gap: 7px; }
.showcase-tags span {
  padding: 6px 9px;
  border-radius: 999px;
  background: #f6f2f5;
  color: #655d69;
  font-size: 9px;
  font-weight: 750;
}
.showcase-question {
  display: grid;
  gap: 4px;
  margin-top: 15px;
  padding: 13px;
  border-radius: 14px;
  background: #f3efff;
}
.showcase-question small { color: #8778ae; font-size: 8px; }
.showcase-question b { color: #352943; font-size: 11px; line-height: 1.45; }

.showcase-actions {
  display: flex;
  justify-content: center;
  gap: 18px;
  padding: 11px 20px 21px;
}
.showcase-actions span {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border: 1px solid #eee7eb;
  border-radius: 50%;
  background: #fff;
  color: #807684;
  font-size: 20px;
}
.showcase-actions span:nth-child(2) { color: #7357ef; }
.showcase-actions span:last-child { border: 0; background: var(--landing-pink); color: #fff; box-shadow: 0 13px 26px rgba(237,55,111,.22); }

.showcase-match {
  position: absolute;
  right: -7px;
  bottom: 35px;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 16px;
  border: 1px solid rgba(31,23,35,.08);
  border-radius: 17px;
  background: rgba(255,255,255,.92);
  box-shadow: 0 22px 45px rgba(44,31,47,.16);
  backdrop-filter: blur(16px);
}
.showcase-match > span { display: grid; place-items: center; width: 35px; height: 35px; border-radius: 11px; background: #ffe7ef; color: var(--landing-pink); }
.showcase-match div { display: grid; }
.showcase-match b { font-size: 12px; }
.showcase-match small { margin-top: 2px; color: var(--landing-muted); font-size: 8px; }

.landing-proof {
  border-top: 1px solid var(--landing-line);
  border-bottom: 1px solid var(--landing-line);
  background: #fff;
}
.proof-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.proof-grid > div { padding: 28px 20px; text-align: center; }
.proof-grid > div + div { border-left: 1px solid var(--landing-line); }
.proof-grid strong { display: block; color: var(--landing-ink); font-size: 26px; letter-spacing: -.04em; }
.proof-grid span { display: block; margin-top: 4px; color: var(--landing-muted); font-size: 10px; }

.landing-block { padding: 112px 0; }
.landing-heading { max-width: 760px; }
.landing-heading.centered { margin-inline: auto; text-align: center; }
.landing-heading > span { color: var(--landing-pink); font-size: 10px; font-weight: 850; letter-spacing: .12em; text-transform: uppercase; }
.landing-heading h2,
.district-copy h2,
.safety-panel h2,
.editorial-main h2 {
  margin: 14px 0 18px;
  color: var(--landing-ink);
  font-size: clamp(38px, 4.8vw, 61px);
  font-weight: 850;
  letter-spacing: -.06em;
  line-height: 1.02;
}
.landing-heading p,
.district-copy p,
.safety-panel p,
.editorial-main p { color: var(--landing-muted); font-size: 16px; line-height: 1.75; }

.benefit-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 48px;
}
.benefit-card {
  position: relative;
  min-height: 355px;
  padding: 30px;
  overflow: hidden;
  border: 1px solid var(--landing-line);
  border-radius: 27px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(44,31,47,.045);
}
.benefit-card.featured { background: #221927; color: #fff; transform: translateY(-14px); }
.benefit-icon { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 16px; background: #fff0f5; color: var(--landing-pink); font-size: 23px; }
.benefit-card.featured .benefit-icon { background: rgba(255,255,255,.1); color: #ff8fb5; }
.benefit-card h3 { margin: 92px 0 13px; font-size: 25px; }
.benefit-card p { color: var(--landing-muted); font-size: 13px; line-height: 1.72; }
.benefit-card.featured p { color: #bdb4c2; }
.benefit-card > span { position: absolute; right: 30px; bottom: 28px; left: 30px; color: #a299a6; font-size: 9px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }

.district-section { background: #f1ede8; }
.district-layout { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 80px; }
.district-copy { max-width: 570px; }
.district-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 29px; }
.landing-body .text-link { color: var(--landing-ink); font-weight: 800; }
.district-map-card {
  position: relative;
  min-height: 500px;
  overflow: hidden;
  border-radius: 34px;
  background: #201827;
  box-shadow: 0 40px 90px rgba(47,35,50,.2);
}
.map-rings i { position: absolute; border: 1px solid rgba(255,255,255,.11); border-radius: 50%; }
.map-rings i:nth-child(1) { width: 460px; height: 460px; top: 18px; left: 80px; }
.map-rings i:nth-child(2) { width: 310px; height: 310px; top: 92px; left: 155px; }
.map-rings i:nth-child(3) { width: 150px; height: 150px; top: 172px; left: 235px; background: radial-gradient(circle, rgba(237,55,111,.25), transparent 65%); }
.district-pills { position: relative; z-index: 2; display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 10px; min-height: 430px; padding: 58px; }
.district-pills span { padding: 10px 13px; border: 1px solid rgba(255,255,255,.12); border-radius: 999px; background: rgba(255,255,255,.07); color: #eee9ef; font-size: 10px; backdrop-filter: blur(8px); }
.district-pills span:nth-child(2), .district-pills span:nth-child(5) { background: rgba(237,55,111,.2); border-color: rgba(255,115,158,.35); }
.map-caption { position: absolute; z-index: 3; right: 22px; bottom: 22px; left: 22px; display: flex; align-items: center; gap: 12px; padding: 15px; border: 1px solid rgba(255,255,255,.1); border-radius: 17px; background: rgba(255,255,255,.08); color: #fff; backdrop-filter: blur(16px); }
.map-caption > span { display: grid; place-items: center; width: 37px; height: 37px; border-radius: 12px; background: var(--landing-pink); }
.map-caption div { display: grid; }
.map-caption b { font-size: 12px; }
.map-caption small { margin-top: 3px; color: #aaa0ae; font-size: 8px; }

.how-section { background: #fff; }
.how-section .landing-heading { max-width: 690px; }
.how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 14px; margin-top: 47px; }
.how-card { display: flex; gap: 22px; min-height: 220px; padding: 29px; border: 1px solid var(--landing-line); border-radius: 24px; background: #fcfaf8; }
.how-card > i { display: grid; place-items: center; width: 45px; height: 45px; flex: 0 0 45px; border-radius: 14px; background: #fff; color: var(--landing-pink); box-shadow: 0 9px 28px rgba(42,31,45,.06); font-size: 11px; font-style: normal; font-weight: 900; }
.how-card b { display: block; margin: 7px 0 12px; font-size: 19px; }
.how-card p { color: var(--landing-muted); font-size: 12px; line-height: 1.7; }

.safety-section { background: #1d1522; color: #fff; }
.safety-layout { display: grid; grid-template-columns: .92fr 1.08fr; align-items: center; gap: 80px; }
.safety-panel { max-width: 560px; }
.safety-panel h2 { color: #fff; }
.safety-panel p { color: #bdb3c0; }
.safety-panel .landing-label { color: #ff9cbd; }
.safety-shield { display: grid; place-items: center; width: 62px; height: 62px; margin-bottom: 28px; border-radius: 21px; background: linear-gradient(145deg, #f23a74, #7559ef); font-size: 26px; box-shadow: 0 16px 38px rgba(237,55,111,.24); }
.safety-panel .btn { margin-top: 18px; }
.safety-feature-list { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.safety-feature-list article { min-height: 190px; padding: 23px; border: 1px solid rgba(255,255,255,.09); border-radius: 22px; background: rgba(255,255,255,.045); }
.safety-feature-list article > span { color: #756b79; font-size: 9px; font-weight: 900; }
.safety-feature-list b { display: block; margin: 43px 0 10px; font-size: 17px; }
.safety-feature-list p { color: #aaa0ae; font-size: 11px; line-height: 1.65; }

.local-content { background: #fff; }
.editorial-grid { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(300px,.8fr); align-items: start; gap: 70px; }
.editorial-main { max-width: 760px; }
.editorial-main p a { color: var(--landing-pink); font-weight: 800; }
.editorial-aside { padding: 29px; border: 1px solid var(--landing-line); border-radius: 25px; background: #f7f3f6; }
.editorial-aside b { font-size: 19px; }
.editorial-aside ul { display: grid; gap: 13px; margin: 22px 0 0; padding: 0; list-style: none; }
.editorial-aside li { position: relative; padding-left: 22px; color: var(--landing-muted); font-size: 12px; }
.editorial-aside li::before { content: "✓"; position: absolute; left: 0; color: var(--landing-pink); font-weight: 900; }

.faq-section { background: #f1ede8; }
.faq-layout { display: grid; grid-template-columns: .82fr 1.18fr; align-items: start; gap: 80px; }
.new-faq details { border-bottom: 1px solid #dcd3d8; }
.new-faq summary { position: relative; padding: 23px 48px 23px 0; color: var(--landing-ink); font-size: 16px; font-weight: 820; cursor: pointer; list-style: none; }
.new-faq summary::-webkit-details-marker { display: none; }
.new-faq summary::after { content: "+"; position: absolute; top: 17px; right: 0; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: var(--landing-ink); font-size: 19px; }
.new-faq details[open] summary::after { content: "−"; background: var(--landing-ink); color: #fff; }
.new-faq p { padding: 0 48px 24px 0; color: var(--landing-muted); font-size: 13px; line-height: 1.72; }

.landing-final { padding: 0 0 100px; background: #f1ede8; }
.final-card { display: flex; align-items: center; justify-content: space-between; gap: 45px; padding: 55px; border-radius: 33px; background: linear-gradient(135deg, #fff 0%, #fff3f7 100%); box-shadow: 0 28px 80px rgba(45,32,48,.09); }
.final-card > div { max-width: 760px; }
.final-card > div > span { color: var(--landing-pink); font-size: 10px; font-weight: 850; letter-spacing: .11em; text-transform: uppercase; }
.final-card h2 { margin: 12px 0; color: var(--landing-ink); font-size: clamp(35px,4vw,53px); }
.final-card p { color: var(--landing-muted); }

.landing-body .landing-footer {
  padding: 76px max(24px, calc((100vw - 1240px) / 2)) 30px;
  border-color: #2b222e;
  background: #17111a;
  color: #fff;
}
.landing-body .landing-footer .brand-wordmark strong { color: #fff; }
.landing-body .landing-footer .brand-wordmark small { color: #847a87; }
.landing-body .footer-grid p,
.landing-body .footer-grid a,
.landing-body .footer-bottom { color: #968b9a; }
.landing-body .footer-grid a:hover { color: #fff; }

@media (max-width: 1120px) {
  .new-hero-grid { grid-template-columns: minmax(0,1fr) minmax(390px,.8fr); gap: 38px; }
  .new-hero-copy h1 { font-size: clamp(49px,6vw,68px); }
  .district-layout, .safety-layout { gap: 45px; }
  .landing-block { padding: 92px 0; }
}

@media (max-width: 920px) {
  .landing-body .site-header { min-height: 72px; }
  .landing-body .site-nav {
    background: rgba(251,249,246,.98);
    color: var(--landing-ink);
  }
  .landing-body .site-nav > a { color: var(--landing-ink); }
  .new-hero { min-height: auto; padding: 125px 0 72px; }
  .new-hero-grid { grid-template-columns: 1fr; gap: 50px; }
  .new-hero-copy { max-width: 770px; }
  .hero-showcase { width: min(600px,100%); margin: 0 auto; }
  .benefit-grid { grid-template-columns: 1fr; }
  .benefit-card { min-height: 275px; }
  .benefit-card.featured { transform: none; }
  .benefit-card h3 { margin-top: 54px; }
  .district-layout, .safety-layout, .editorial-grid, .faq-layout { grid-template-columns: 1fr; }
  .district-copy, .safety-panel, .editorial-main { max-width: 760px; }
  .how-grid { grid-template-columns: 1fr; }
  .how-card { min-height: auto; }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr; }
  .footer-grid > div:last-child { grid-column: 2; }
}

@media (max-width: 680px) {
  .landing-body .landing-shell { width: min(100% - 28px, 1240px); }
  .brand-wordmark small { display: none; }
  .brand-symbol { width: 40px; height: 40px; flex-basis: 40px; border-radius: 14px; }
  .brand-wordmark strong, .brand-wordmark b { font-size: 17px; }
  .new-hero { padding-top: 112px; }
  .new-hero-copy h1 { margin-top: 19px; font-size: clamp(42px,12vw,59px); }
  .new-hero-copy > p { font-size: 15px; }
  .new-hero .hero-actions { display: grid; }
  .new-hero .hero-actions .btn { width: 100%; }
  .hero-assurances { display: grid; }
  .hero-showcase { min-height: 545px; }
  .showcase-card-main { right: 0; width: calc(100% - 25px); }
  .showcase-card-back { top: 120px; width: 150px; padding: 11px; }
  .mini-profile { height: 160px; }
  .showcase-photo { height: 285px; }
  .showcase-match { right: 0; bottom: 7px; }
  .proof-grid { grid-template-columns: 1fr 1fr; }
  .proof-grid > div:nth-child(3) { border-left: 0; border-top: 1px solid var(--landing-line); }
  .proof-grid > div:nth-child(4) { border-top: 1px solid var(--landing-line); }
  .landing-block { padding: 75px 0; }
  .landing-heading h2, .district-copy h2, .safety-panel h2, .editorial-main h2 { font-size: clamp(34px,10vw,48px); }
  .benefit-card { padding: 24px; }
  .district-map-card { min-height: 430px; border-radius: 26px; }
  .district-pills { min-height: 360px; padding: 32px 20px 75px; }
  .map-rings i:nth-child(1) { left: -30px; }
  .map-rings i:nth-child(2) { left: 45px; }
  .map-rings i:nth-child(3) { left: 125px; }
  .safety-feature-list { grid-template-columns: 1fr; }
  .safety-feature-list article { min-height: 155px; }
  .safety-feature-list b { margin-top: 28px; }
  .final-card { display: grid; padding: 31px 25px; }
  .final-card .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 35px 20px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .footer-grid > div:last-child { grid-column: auto; }
  .photo-upload-controls { align-items: stretch; flex-direction: column; }
  .photo-upload-controls .btn { width: 100%; }
}

/* Landing content stays readable without JavaScript; motion is enhancement only. */
.landing-body .reveal,
.landing-body .reveal.is-visible {
  opacity: 1;
  transform: none;
}

.new-hero-copy,
.new-hero-copy h1,
.new-hero-copy p { min-width: 0; overflow-wrap: anywhere; }

@media (max-width: 680px) {
  .showcase-match { right: 8px; max-width: calc(100% - 16px); }
  .showcase-match small { max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}

@media (max-width: 720px) {
  .app-body:not(.is-authenticated) .auth-shell {
    display: block;
    min-height: auto;
    margin-top: 0;
  }
  .app-body:not(.is-authenticated) .auth-aside { display: none; }
  .app-body:not(.is-authenticated) .auth-card,
  .app-body:not(.is-authenticated) .auth-card-wide {
    width: calc(100% - 24px);
    margin: 0 auto 48px;
  }
}

/* Product upgrade v3 */
.card-actions.is-locked, .sticky-profile-actions.is-locked { opacity: .72; pointer-events: none; }
.round-action:disabled { cursor: default; filter: grayscale(.15); }
.super-action {
  width: 62px; height: 62px; border: 2px solid rgba(110,190,255,.8) !important;
  background: radial-gradient(circle at 32% 25%, #b9efff 0 7%, #4da8ff 35%, #7456ff 72%, #352169 100%) !important;
  color: #fff !important; font-size: 28px; box-shadow: 0 0 0 5px rgba(80,153,255,.1), 0 16px 38px rgba(64,117,255,.35);
}
.super-action::after { content: "SUPER"; position: absolute; margin-top: 88px; color: #79caff; font-size: 8px; font-weight: 900; letter-spacing: .15em; }
.card-actions form, .sticky-profile-actions form { position: relative; }

.notification-row { position: relative; }
.notification-row.is-unread { background: linear-gradient(90deg, rgba(244,63,135,.12), rgba(116,86,255,.055)); }
.notification-row.is-unread b { color: #fff; font-weight: 850; }
.notification-row.is-read { opacity: .68; }
.notification-row .unread-dot { position: absolute; left: 7px; top: 50%; width: 7px; height: 7px; border-radius: 50%; background: #ff4f91; box-shadow: 0 0 0 4px rgba(255,79,145,.13); transform: translateY(-50%); }

.gallery-wrap { position: relative; min-height: 100%; }
.gallery-track { scroll-snap-type: x mandatory; scrollbar-width: none; }
.gallery-track::-webkit-scrollbar { display:none; }
.gallery-track > a { display: block; flex: 0 0 100%; height: 100%; scroll-snap-align: start; }
.gallery-track > a > img { width:100%; height:100%; object-fit:cover; }
.gallery-arrow { position:absolute; z-index:7; top:50%; display:grid; place-items:center; width:46px; height:58px; border:1px solid rgba(255,255,255,.22); border-radius:16px; background:rgba(12,10,20,.58); color:#fff; font-size:38px; cursor:pointer; transform:translateY(-50%); backdrop-filter:blur(12px); }
.gallery-prev { left:18px; } .gallery-next { right:18px; }
.gallery-arrow:hover { background:rgba(244,63,135,.78); }
.image-lightbox { width:100vw; max-width:none; height:100vh; max-height:none; padding:28px; border:0; background:rgba(5,4,10,.93); }
.image-lightbox::backdrop { background:rgba(0,0,0,.86); }
.image-lightbox img { display:block; width:100%; height:100%; object-fit:contain; }
.lightbox-close { position:fixed; z-index:2; right:22px; top:18px; width:46px; height:46px; border:1px solid rgba(255,255,255,.2); border-radius:50%; background:rgba(20,18,28,.72); color:#fff; font-size:28px; cursor:pointer; }

.crop-dialog { width:min(680px, calc(100vw - 24px)); max-width:none; padding:0; border:1px solid var(--line-strong); border-radius:24px; background:#171521; color:#fff; }
.crop-dialog::backdrop { background:rgba(4,3,9,.82); backdrop-filter:blur(8px); }
.crop-shell { padding:20px; }
.crop-shell header, .crop-shell footer { display:flex; align-items:center; justify-content:space-between; gap:12px; }
.crop-shell header .overline { margin:0; }
.crop-shell header button { width:38px; height:38px; border:0; border-radius:12px; background:rgba(255,255,255,.07); color:#fff; font-size:24px; cursor:pointer; }
.crop-stage { position:relative; width:min(560px, 100%); aspect-ratio:4/3; margin:18px auto; overflow:hidden; border-radius:18px; background:#090811; cursor:grab; touch-action:none; box-shadow:0 0 0 1px rgba(255,255,255,.12), 0 24px 60px rgba(0,0,0,.35); }
.crop-stage::after { content:""; position:absolute; inset:0; border-radius:18px; box-shadow:inset 0 0 0 1px rgba(255,255,255,.1); pointer-events:none; }
.crop-stage img { position:absolute; left:50%; top:50%; max-width:none; transform-origin:center; user-select:none; pointer-events:none; }
.crop-frame { position:absolute; z-index:2; left:50%; top:50%; transform:translate(-50%,-50%); border:2px solid rgba(255,255,255,.96); border-radius:16px; pointer-events:none; box-shadow:0 0 0 1px rgba(0,0,0,.35); }
.crop-frame::before, .crop-frame::after { content:""; position:absolute; inset:33.333% 0 auto; border-top:1px solid rgba(255,255,255,.28); }
.crop-frame::after { inset:66.666% 0 auto; }
.crop-zoom { display:block; margin:0 auto 18px; max-width:520px; }
.crop-zoom input { padding:0; }
.crop-shell footer { justify-content:flex-end; flex-wrap:wrap; }

.chat-head-actions { display:flex; gap:6px; }
.chat-search { display:none; padding:10px 14px; border-bottom:1px solid var(--line); background:#12101b; }
.chat-search.is-open { display:block; }
.chat-search input { width:100%; }
.chat-search-results { display:grid; max-height:220px; overflow:auto; }
.chat-search-results button { padding:10px; border:0; border-bottom:1px solid var(--line); background:transparent; color:#ddd5e2; text-align:left; cursor:pointer; }
.typing-indicator { color:#68e6b0 !important; }
.message-row { position:relative; flex-wrap:wrap; gap:5px; }
.message-tools { display:flex; align-self:center; gap:3px; opacity:0; transition:.15s; }
.message-row:hover .message-tools, .message-row:focus-within .message-tools { opacity:1; }
.message-row.mine .message-tools { order:-1; }
.message-tools button { width:28px; height:28px; padding:0; border:1px solid var(--line); border-radius:9px; background:#211e2e; color:var(--muted); cursor:pointer; }
.message-quote { display:grid; width:100%; margin:0 0 7px; padding:7px 9px; border:0; border-left:3px solid #ff4f91; border-radius:8px; background:rgba(255,255,255,.055); color:#fff; text-align:left; cursor:pointer; }
.message-quote b { color:#ff84b1; font-size:9px; } .message-quote span { overflow:hidden; font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.message-reactions { flex-basis:100%; display:flex; gap:4px; margin-top:-5px; }
.message-row.mine .message-reactions { justify-content:flex-end; }
.reaction-pill { padding:3px 7px; border:1px solid var(--line); border-radius:999px; background:#211e2e; color:#fff; font-size:10px; cursor:pointer; }
.reaction-pill.mine { border-color:#ff5d99; background:rgba(244,63,135,.15); }
.reaction-menu { position:absolute; z-index:5; bottom:calc(100% + 4px); display:flex; gap:3px; padding:6px; border:1px solid var(--line); border-radius:14px; background:#242030; box-shadow:var(--shadow-soft); }
.message-row.mine .reaction-menu { right:20px; } .message-row.theirs .reaction-menu { left:20px; }
.reaction-menu button { border:0; background:transparent; font-size:19px; cursor:pointer; }
.message-row.deleted .message-bubble { opacity:.66; } .deleted-copy { font-style:italic; color:var(--muted)!important; }
.composer-tools { position:relative; display:flex; gap:6px; }
.emoji-picker { position:absolute; z-index:10; bottom:52px; left:0; display:none; grid-template-columns:repeat(3, 38px); gap:4px; padding:8px; border:1px solid var(--line); border-radius:16px; background:#242030; box-shadow:var(--shadow-soft); }
.emoji-picker.is-open { display:grid; }
.emoji-picker button { width:38px; height:38px; border:0; border-radius:10px; background:transparent; font-size:20px; cursor:pointer; }
.reply-preview { display:flex; align-items:center; gap:10px; padding:8px 10px; border-bottom:1px solid var(--line); }
.reply-preview[hidden] { display:none; }
.reply-preview > div { display:grid; min-width:0; flex:1; }
.reply-preview b { color:#ff72a7; font-size:9px; } .reply-preview span { overflow:hidden; color:var(--muted); font-size:10px; text-overflow:ellipsis; white-space:nowrap; }
.reply-preview button { border:0; background:transparent; color:var(--muted); cursor:pointer; }
.message-bubble img { cursor:zoom-in; }

.brand-symbol { border-radius:14px!important; background:linear-gradient(145deg,#ff477f,#7758ff)!important; box-shadow:0 10px 25px rgba(238,55,111,.2); }
.brand-symbol svg > path:first-child { fill:#fff!important; }
.brand-symbol .brand-pin { display:none; }
.brand-symbol circle { display:none; }
.brand-wordmark > span { letter-spacing:-.045em; }

@media (max-width: 720px) {
  .gallery-arrow { display:none; }
  .message-tools { opacity:.72; }
  .message-bubble { max-width:84%; }
  .composer { grid-template-columns:auto minmax(0,1fr) auto; }
  .composer-tools { flex-direction:column; }
  .crop-shell footer .btn { flex:1; }
}

/* V4: focused swipe experience */
.swipe-page{max-width:1180px;margin:0 auto;padding:20px 24px 40px;min-height:calc(100vh - 82px)}
.swipe-topbar{display:flex;align-items:center;justify-content:space-between;max-width:560px;margin:0 auto 14px}
.swipe-topbar h1{margin:2px 0 0;font-size:25px}
.swipe-settings{display:grid;place-items:center;width:44px;height:44px;border:1px solid var(--line);border-radius:14px;background:var(--surface);color:#fff;font-size:19px;cursor:pointer}
.swipe-stage{position:relative;max-width:560px;margin:0 auto}
.swipe-stack{position:relative;height:min(720px,calc(100vh - 190px));min-height:570px}
.swipe-card{position:absolute;inset:0;display:grid;grid-template-rows:minmax(0,1fr) auto;border:1px solid rgba(255,255,255,.11);border-radius:28px;background:#16131f;box-shadow:0 28px 80px rgba(0,0,0,.38);overflow:hidden;transform:translateY(calc((23 - var(--stack-index))*1px)) scale(calc(1 - (23 - var(--stack-index))*.001));transition:transform .28s ease,opacity .28s ease;touch-action:pan-y}
.swipe-card:not(:last-child){pointer-events:none}
.swipe-card:nth-last-child(2){transform:translateY(9px) scale(.985);opacity:.78}
.swipe-card:nth-last-child(n+3){transform:translateY(16px) scale(.97);opacity:.35}
.swipe-card.leaving-left{transform:translate(-125%,20px) rotate(-16deg)!important;opacity:0}
.swipe-card.leaving-right{transform:translate(125%,-15px) rotate(16deg)!important;opacity:0}
.swipe-gallery{position:relative;min-height:0;overflow:hidden;background:#0b0910}
.swipe-gallery>img{width:100%;height:100%;object-fit:cover;display:block}
.swipe-gallery>img[hidden]{display:none}
.swipe-card-gradient{position:absolute;inset:35% 0 0;background:linear-gradient(transparent,rgba(8,7,13,.97));pointer-events:none}
.swipe-photo-bars{position:absolute;z-index:4;left:14px;right:14px;top:12px;display:flex;gap:5px}
.swipe-photo-bars i{height:4px;flex:1;border-radius:99px;background:rgba(255,255,255,.34);box-shadow:0 1px 4px rgba(0,0,0,.3)}
.swipe-photo-bars i.active{background:#fff}
.swipe-photo-nav{position:absolute;z-index:5;top:50%;width:42px;height:62px;transform:translateY(-50%);border:0;border-radius:14px;background:rgba(9,8,14,.35);color:#fff;font-size:34px;cursor:pointer;backdrop-filter:blur(8px);opacity:.72}
.swipe-photo-nav:hover{opacity:1;background:rgba(9,8,14,.6)}
.swipe-photo-nav.prev{left:12px}.swipe-photo-nav.next{right:12px}
.swipe-card-copy{position:absolute;z-index:3;left:0;right:0;bottom:0;padding:28px 25px 24px;color:#fff}
.swipe-name-line{display:flex;align-items:center;gap:9px}.swipe-name-line h2{margin:0;font-size:31px;line-height:1.08}.swipe-card-copy>p{margin:6px 0 12px;color:#ddd5e4;font-size:13px}.swipe-bio{max-width:92%;margin-bottom:12px;color:#f2edf5;font-size:13px;line-height:1.5}.swipe-more{display:inline-flex;margin-top:12px;color:#fff;font-size:11px;font-weight:800;text-decoration:none}
.swipe-actions{display:flex;align-items:center;justify-content:center;gap:18px;padding:13px 18px 17px;background:#16131f}
.swipe-actions form{margin:0}.swipe-action{display:grid;place-items:center;width:58px;height:58px;padding:0;border:1px solid rgba(255,255,255,.16);border-radius:50%;background:#211d2b;color:#fff;cursor:pointer;transition:.18s ease}.swipe-action:hover:not(:disabled){transform:translateY(-4px) scale(1.04)}.swipe-action:disabled{opacity:.48;cursor:default}
.swipe-action.pass{color:#c8c0ce;font-size:31px}.swipe-action.like{width:66px;height:66px;border:0;background:linear-gradient(135deg,#f43f87,#ff665e);font-size:28px;box-shadow:0 14px 34px rgba(244,63,135,.32)}
.swipe-action.super{width:72px;height:72px;grid-template-rows:1fr auto;border:1px solid rgba(107,175,255,.7);background:radial-gradient(circle at 35% 20%,#56d7ff,#3978ff 55%,#6a45ed);color:#fff;box-shadow:0 0 0 6px rgba(65,136,255,.1),0 16px 42px rgba(50,116,255,.42)}.swipe-action.super b{font-size:29px;line-height:1;margin-top:9px;text-shadow:0 0 16px #fff}.swipe-action.super small{margin-bottom:8px;font-size:7px;font-weight:950;letter-spacing:.11em}
.swipe-stamp{position:absolute;z-index:8;top:85px;padding:8px 12px;border:4px solid;border-radius:10px;font-size:28px;font-weight:950;letter-spacing:.06em;opacity:0;pointer-events:none}.swipe-stamp.like{left:24px;color:#56e29d;transform:rotate(-12deg)}.swipe-stamp.pass{right:24px;color:#ff6b7c;transform:rotate(12deg)}.swipe-stamp.super{left:50%;top:110px;color:#68b9ff;transform:translateX(-50%) rotate(-4deg);font-size:21px}
.swipe-card[data-swipe="like"] .swipe-stamp.like,.swipe-card[data-swipe="pass"] .swipe-stamp.pass{opacity:var(--swipe-opacity)}
.swipe-hints{display:flex;justify-content:center;gap:25px;margin-top:13px;color:var(--muted-2);font-size:9px}
.swipe-filter-panel{position:fixed;z-index:90;top:88px;right:max(18px,calc((100vw - 1180px)/2));width:min(390px,calc(100vw - 28px));max-height:calc(100vh - 110px);overflow:auto;transform:translateX(calc(100% + 45px));opacity:0;pointer-events:none;transition:.22s ease}.swipe-filter-panel.is-open{transform:none;opacity:1;pointer-events:auto}
/* V4 activity states */
.activity-page .section-tabs button{border:0;background:transparent;color:var(--muted);cursor:pointer}.activity-page .section-tabs button.active{color:#fff}.activity-page .section-tabs b{display:inline-grid;place-items:center;min-width:19px;height:19px;margin-left:4px;border-radius:99px;background:var(--primary);color:#fff;font-size:9px}
.notification-row.is-unread{background:linear-gradient(90deg,rgba(244,63,135,.12),rgba(105,92,246,.07));box-shadow:inset 3px 0 0 var(--primary)}.notification-row.is-unread b{font-weight:900;font-size:13px}.notification-row.is-read{opacity:.64}.new-dot{width:9px;height:9px;border-radius:50%;background:#ff4f91;box-shadow:0 0 0 5px rgba(255,79,145,.12)}.person-card.is-superlike{box-shadow:0 0 0 2px #4e9dff,0 20px 55px rgba(50,116,255,.25)}.person-card.is-superlike small{color:#69baff!important;font-weight:950;letter-spacing:.08em}
.mobile-tabbar>a i{position:absolute;top:5px;right:17%;display:grid;place-items:center;min-width:16px;height:16px;padding:0 4px;border-radius:99px;background:#f43f87;color:#fff;font-size:8px;font-style:normal}
@media(max-width:700px){.swipe-page{padding:8px 0 18px}.swipe-topbar{padding:0 14px;margin-bottom:8px}.swipe-topbar h1{font-size:20px}.swipe-stage{max-width:none}.swipe-stack{height:calc(100dvh - 192px);min-height:500px}.swipe-card{border-radius:0;border-inline:0}.swipe-photo-nav{display:none}.swipe-card-copy{padding:24px 18px 18px}.swipe-name-line h2{font-size:27px}.swipe-bio{font-size:12px}.swipe-actions{padding:10px 12px 12px}.swipe-action{width:53px;height:53px}.swipe-action.like{width:61px;height:61px}.swipe-action.super{width:66px;height:66px}.swipe-hints{display:none}.swipe-filter-panel{top:68px;right:10px}.activity-page{padding-inline:12px}}

/* V5: product polish, compatibility, notifications and chat workspace */
:focus-visible {
  outline: 3px solid rgba(116, 154, 255, 0.72);
  outline-offset: 3px;
}

.site-header {
  isolation: isolate;
  background: rgba(13, 12, 22, 0.86);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.045), 0 14px 44px rgba(0, 0, 0, 0.18);
  backdrop-filter: blur(22px) saturate(1.15);
}

.site-nav { overflow: visible; }
.notification-center { position: relative; }
.notification-trigger {
  position: relative;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  color: #fff;
  cursor: pointer;
  transition: .18s ease;
}
.notification-trigger:hover,
.notification-trigger[aria-expanded="true"] { border-color: rgba(244,63,135,.42); background: rgba(244,63,135,.1); transform: translateY(-1px); }
.notification-trigger > span { font-size: 21px; line-height: 1; }
.notification-trigger > i {
  position: absolute;
  top: -5px;
  right: -5px;
  display: grid;
  place-items: center;
  min-width: 19px;
  height: 19px;
  padding: 0 5px;
  border: 2px solid #0d0c16;
  border-radius: 999px;
  background: linear-gradient(135deg,#ff477f,#f43f87);
  color: #fff;
  font-size: 8px;
  font-style: normal;
  font-weight: 900;
}
.notification-popover {
  position: absolute;
  z-index: 120;
  top: calc(100% + 12px);
  right: -64px;
  width: min(390px, calc(100vw - 24px));
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  background: rgba(24,21,34,.98);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  backdrop-filter: blur(24px);
}
.notification-popover[hidden] { display: none; }
.notification-popover > header,
.notification-popover > footer { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:14px 16px; }
.notification-popover > header { border-bottom:1px solid var(--line); }
.notification-popover > header div { display:grid; gap:2px; }
.notification-popover > header b { font-size:14px; }
.notification-popover > header small { color:var(--muted); font-size:9px; }
.notification-popover > header button,
.notification-popover > footer button { padding:0; border:0; background:transparent; color:#ff78aa; font-size:9px; font-weight:800; cursor:pointer; }
.notification-popover > header button:disabled { color:var(--muted-2); cursor:default; }
.notification-popover-list { max-height:min(460px, 58vh); overflow:auto; }
.notification-popover-item {
  position: relative;
  display:grid;
  grid-template-columns:38px minmax(0,1fr);
  align-items:center;
  gap:11px;
  padding:12px 15px;
  border-bottom:1px solid rgba(255,255,255,.055);
  color:#fff;
  text-decoration:none;
  transition:.16s ease;
}
.notification-popover-item:hover { background:rgba(255,255,255,.045); }
.notification-popover-item.is-unread { background:linear-gradient(90deg,rgba(244,63,135,.13),rgba(116,86,255,.045)); }
.notification-popover-item.is-unread::after { content:""; position:absolute; right:13px; top:16px; width:7px; height:7px; border-radius:50%; background:#ff4f91; box-shadow:0 0 0 4px rgba(255,79,145,.13); }
.notification-popover-item > span { display:grid; place-items:center; width:36px; height:36px; border-radius:12px; background:rgba(255,255,255,.055); font-size:17px; }
.notification-popover-item > div { display:grid; gap:4px; min-width:0; padding-right:12px; }
.notification-popover-item b { overflow:hidden; font-size:11px; line-height:1.35; text-overflow:ellipsis; white-space:nowrap; }
.notification-popover-item small { color:var(--muted-2); font-size:8px; }
.notification-popover-empty { padding:30px 18px; color:var(--muted); font-size:11px; text-align:center; }
.notification-popover > footer { border-top:1px solid var(--line); }
.notification-popover > footer a { color:#fff; font-size:10px; font-weight:800; text-decoration:none; }

.compatibility-badge {
  position:absolute;
  z-index:5;
  top:30px;
  right:16px;
  display:grid;
  min-width:82px;
  padding:8px 10px;
  border:1px solid rgba(255,255,255,.2);
  border-radius:14px;
  background:rgba(10,9,16,.58);
  box-shadow:0 10px 28px rgba(0,0,0,.2);
  text-align:center;
  backdrop-filter:blur(14px);
}
.compatibility-badge b { font-size:17px; line-height:1; }
.compatibility-badge span { margin-top:3px; color:#ded7e6; font-size:7px; font-weight:800; letter-spacing:.06em; text-transform:uppercase; }
.match-reasons { display:flex; flex-wrap:wrap; gap:5px; margin:0 0 10px; }
.match-reasons span { padding:5px 8px; border:1px solid rgba(118,199,255,.2); border-radius:999px; background:rgba(71,153,255,.1); color:#ddecff; font-size:8px; font-weight:750; }
.swipe-card .tag-list span.shared { border-color:rgba(83,221,163,.4); background:rgba(64,194,137,.13); color:#b9f6d8; }

.chat-workspace {
  display:grid;
  grid-template-columns:310px minmax(0,1fr);
  gap:14px;
  width:min(1220px, calc(100% - 36px));
  height:calc(100dvh - var(--header-height) - 34px);
  margin:0 auto;
}
.chat-sidebar,
.chat-page { min-height:0; border:1px solid var(--line); background:var(--surface); box-shadow:var(--shadow); }
.chat-sidebar { display:grid; grid-template-rows:auto auto minmax(0,1fr); overflow:hidden; border-radius:24px; }
.chat-sidebar > header { display:flex; align-items:center; justify-content:space-between; min-height:76px; padding:13px 16px; border-bottom:1px solid var(--line); }
.chat-sidebar > header h1 { margin:2px 0 0; font-size:22px; }
.chat-sidebar > header > a { display:grid; place-items:center; width:36px; height:36px; border:1px solid var(--line); border-radius:12px; color:#fff; font-size:20px; text-decoration:none; }
.chat-list-search { display:flex; align-items:center; gap:8px; margin:12px; padding:0 12px; border:1px solid var(--line); border-radius:13px; background:rgba(255,255,255,.035); }
.chat-list-search span { color:var(--muted); }
.chat-list-search input { min-width:0; width:100%; height:39px; padding:0; border:0; background:transparent; box-shadow:none!important; color:#fff; font-size:11px; }
.chat-sidebar-list { min-height:0; overflow:auto; padding:0 8px 10px; }
.chat-sidebar-row { display:grid; grid-template-columns:46px minmax(0,1fr) auto; align-items:center; gap:10px; padding:10px 9px; border-radius:15px; color:#fff; text-decoration:none; transition:.15s ease; }
.chat-sidebar-row:hover { background:rgba(255,255,255,.045); }
.chat-sidebar-row.active { background:linear-gradient(100deg,rgba(244,63,135,.16),rgba(116,86,255,.1)); box-shadow:inset 3px 0 0 #f43f87; }
.chat-sidebar-row.unread:not(.active) { background:rgba(255,255,255,.025); }
.chat-sidebar-row .avatar-wrap img { width:44px; height:44px; border-radius:14px; }
.chat-sidebar-row > div:nth-child(2) { min-width:0; }
.chat-sidebar-row b { display:block; overflow:hidden; font-size:11px; text-overflow:ellipsis; white-space:nowrap; }
.chat-sidebar-row p { overflow:hidden; margin:4px 0 0; color:var(--muted); font-size:9px; text-overflow:ellipsis; white-space:nowrap; }
.chat-sidebar-row.unread p { color:#ebe5ef; font-weight:750; }
.chat-sidebar-row > span { align-self:start; padding-top:2px; }
.chat-sidebar-row > span i { display:grid; place-items:center; min-width:19px; height:19px; padding:0 5px; border-radius:999px; background:#f43f87; font-size:8px; font-style:normal; font-weight:900; }
.chat-sidebar-row time { color:var(--muted-2); font-size:8px; }
.chat-page { width:100%; height:100%; margin:0; border-radius:24px; }
.chat-person small.chat-connection { display:inline-flex; align-items:center; gap:5px; margin-top:1px; color:#7ddfb3; }
.chat-person small.chat-connection::before { content:""; width:5px; height:5px; border-radius:50%; background:currentColor; }
.chat-person small.chat-connection[data-state="loading"] { color:#e9c878; }
.chat-person small.chat-connection[data-state="offline"] { color:#ff8794; }
.messages-shell { position:relative; min-height:0; overflow:hidden; }
.messages { height:100%; padding-top:48px; }
.load-older { position:absolute; z-index:4; top:10px; left:50%; transform:translateX(-50%); padding:7px 12px; border:1px solid var(--line); border-radius:999px; background:rgba(31,27,43,.9); color:#ddd6e4; font-size:9px; cursor:pointer; backdrop-filter:blur(10px); }
.load-older[hidden] { display:none; }
.new-messages-button { position:absolute; z-index:5; right:18px; bottom:16px; padding:9px 13px; border:0; border-radius:999px; background:linear-gradient(135deg,#f43f87,#7656ff); color:#fff; box-shadow:0 12px 30px rgba(75,42,113,.35); font-size:9px; font-weight:850; cursor:pointer; }
.new-messages-button[hidden] { display:none; }
.message-row { transition:background .18s ease; }
.message-row.grouped { margin-top:-3px; }
.message-row.grouped .message-bubble { border-top-left-radius:7px; }
.message-row.mine.grouped .message-bubble { border-top-left-radius:17px; border-top-right-radius:7px; }
.message-row.failed { align-items:flex-end; }
.message-retry { display:block; margin-top:8px; padding:5px 8px; border:1px solid rgba(255,107,124,.35); border-radius:8px; background:rgba(255,107,124,.08); color:#ffacb5; font-size:8px; cursor:pointer; }
.message-editor { display:grid; gap:8px; min-width:min(360px,60vw); }
.message-editor textarea { width:100%; min-height:70px; padding:9px; border:1px solid var(--line-strong); border-radius:11px; background:rgba(0,0,0,.16); color:#fff; resize:vertical; }
.message-editor > div { display:flex; justify-content:flex-end; gap:6px; }
.message-editor button { padding:6px 9px; border:1px solid var(--line); border-radius:8px; background:transparent; color:var(--muted); font-size:8px; cursor:pointer; }
.message-editor button.primary { border-color:transparent; background:#f43f87; color:#fff; }
.composer-meta { display:flex; justify-content:space-between; gap:10px; padding:0 12px 8px; color:var(--muted-2); font-size:7px; }
.composer-meta b { color:var(--muted); font-weight:700; }
.chat-search-results button { display:grid; gap:4px; }
.chat-search-results button b { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.chat-search-results button small { color:var(--muted-2); font-size:8px; }
.chat-search-empty { padding:18px; color:var(--muted); font-size:10px; text-align:center; }

.new-hero-copy h1 em { text-shadow:0 12px 42px rgba(244,63,135,.28); }
.showcase-card-main { box-shadow:0 36px 100px rgba(0,0,0,.42), 0 0 0 1px rgba(255,255,255,.05); }

@media (max-width: 980px) {
  .chat-workspace { grid-template-columns:255px minmax(0,1fr); width:calc(100% - 24px); }
  .chat-sidebar { border-radius:20px; }
}

@media (max-width: 760px) {
  .notification-center { display:none; }
  .chat-workspace { display:block; width:100%; height:calc(100dvh - var(--header-height) - 58px); }
  .chat-sidebar { display:none; }
  .chat-page { width:100%; height:100%; border-inline:0; border-radius:0; }
  .messages { padding:44px 13px 18px; }
  .composer-meta span { display:none; }
  .composer-meta { justify-content:flex-end; }
  .match-reasons { overflow:hidden; flex-wrap:nowrap; }
  .match-reasons span:nth-child(n+3) { display:none; }
  .compatibility-badge { top:28px; right:12px; min-width:74px; }
}

@media (max-width: 430px) {
  .message-editor { min-width:68vw; }
  .swipe-bio { display:-webkit-box; overflow:hidden; -webkit-box-orient:vertical; -webkit-line-clamp:3; }
}

.conversation-search {
  display:flex;
  align-items:center;
  gap:9px;
  max-width:520px;
  margin:0 0 14px;
  padding:0 13px;
  border:1px solid var(--line);
  border-radius:14px;
  background:rgba(255,255,255,.03);
}
.conversation-search span { color:var(--muted); }
.conversation-search input { width:100%; height:42px; padding:0; border:0; background:transparent; box-shadow:none!important; color:#fff; }
.conversation-row[hidden], .chat-sidebar-row[hidden] { display:none; }

.message-row.message-focus .message-bubble {
  animation: message-focus-pulse 1.2s ease;
}

@keyframes message-focus-pulse {
  0%, 100% { transform: translateY(0); box-shadow: var(--shadow-soft); }
  35% { transform: translateY(-2px); box-shadow: 0 0 0 4px rgba(255, 77, 109, .18), var(--shadow); }
}

/* Flex layout keeps optional search and prompt rows from stealing chat height. */
.chat-page { display:flex; flex-direction:column; }
.chat-header, .chat-search, .chat-prompt, .composer { flex:0 0 auto; }
.messages-shell { flex:1 1 auto; }

/* V5.1 — refined chat: stable layout, single presence state, compact actions */
.chat-attachment-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: -1px !important;
  padding: 0 !important;
  overflow: hidden !important;
  clip: rect(0 0 0 0) !important;
  clip-path: inset(50%) !important;
  border: 0 !important;
  opacity: 0 !important;
  white-space: nowrap !important;
}

.chat-workspace {
  gap: 16px;
}

.chat-sidebar,
.chat-page {
  border-color: rgba(255,255,255,.075);
  background: #14121c;
  box-shadow: 0 26px 80px rgba(0,0,0,.28);
}

.chat-sidebar {
  background: linear-gradient(180deg, rgba(255,255,255,.018), transparent 24%), #14121c;
}

.chat-sidebar > header {
  min-height: 72px;
  border-bottom-color: rgba(255,255,255,.055);
}

.chat-sidebar > header > a,
.chat-back,
.chat-menu {
  border: 0;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.055);
  color: #e9e4ed;
  transition: background .16s ease, transform .16s ease, color .16s ease;
}

.chat-sidebar > header > a:hover,
.chat-back:hover,
.chat-menu:hover {
  background: rgba(255,255,255,.1);
  color: #fff;
  transform: translateY(-1px);
}

.chat-list-search {
  border-color: transparent;
  background: rgba(255,255,255,.05);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.045);
}

.chat-sidebar-row {
  margin: 1px 0;
  border-radius: 16px;
}

.chat-sidebar-row.active {
  background: linear-gradient(100deg, rgba(244,63,135,.14), rgba(116,86,255,.08));
  box-shadow: inset 3px 0 0 #ef4d8d;
}

.chat-sidebar-row .avatar-wrap img,
.chat-person .avatar-wrap img {
  border-radius: 50%;
}

.chat-page {
  position: relative;
  isolation: isolate;
  background:
    radial-gradient(circle at 88% 8%, rgba(116,86,255,.07), transparent 31%),
    radial-gradient(circle at 8% 93%, rgba(244,63,135,.055), transparent 30%),
    #111019;
}

.chat-header {
  min-height: 72px;
  padding: 9px 14px;
  border-bottom: 1px solid rgba(255,255,255,.06);
  background: rgba(17,16,25,.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}

.chat-back,
.chat-menu {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}

.chat-menu {
  font-size: 17px;
}

.chat-person {
  gap: 10px;
  color: inherit;
  text-decoration: none;
}

.chat-person .avatar-wrap img {
  width: 44px;
  height: 44px;
  box-shadow: 0 0 0 2px rgba(255,255,255,.06);
}

.chat-person b {
  font-size: 13px;
  line-height: 1.25;
}

.chat-person small {
  margin-top: 3px;
  color: #9d95a8;
  font-size: 9px;
  line-height: 1.2;
  transition: color .16s ease;
}

.chat-person small.is-typing {
  color: #73deb0;
  font-weight: 750;
}

.chat-search {
  padding: 9px 13px;
  border-bottom-color: rgba(255,255,255,.055);
  background: rgba(17,16,25,.94);
}

.chat-search input {
  height: 40px;
  border-color: transparent;
  border-radius: 13px;
  background: rgba(255,255,255,.055);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.045) !important;
}

.chat-prompt {
  gap: 9px;
  padding: 8px 15px;
  border-bottom-color: rgba(255,255,255,.05);
  background: rgba(116,86,255,.055);
}

.chat-prompt button {
  color: #e3dde8;
}

.messages-shell {
  background:
    linear-gradient(rgba(255,255,255,.012) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.012) 1px, transparent 1px);
  background-size: 28px 28px;
}

.messages {
  padding: 48px 24px 22px;
  overflow-anchor: none;
  scrollbar-gutter: stable;
}

.chat-network-notice {
  position: absolute;
  z-index: 7;
  top: 10px;
  left: 50%;
  max-width: calc(100% - 30px);
  padding: 7px 11px;
  border: 1px solid rgba(255,122,137,.2);
  border-radius: 999px;
  background: rgba(57,28,37,.88);
  color: #ffc2c9;
  box-shadow: 0 10px 30px rgba(0,0,0,.24);
  font-size: 8px;
  font-weight: 750;
  text-align: center;
  transform: translateX(-50%);
  backdrop-filter: blur(12px);
}

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

.load-older {
  border-color: rgba(255,255,255,.08);
  background: rgba(29,26,39,.9);
  box-shadow: 0 9px 25px rgba(0,0,0,.2);
}

.message-date {
  margin: 14px auto;
  padding: 5px 10px;
  background: rgba(255,255,255,.045);
  color: #8f8799;
  font-size: 8px;
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.035);
}

.message-row {
  align-items: center;
  flex-wrap: wrap;
  gap: 5px;
  min-height: 34px;
  margin: 4px 0;
}

.message-row.grouped {
  margin-top: -1px;
}

.message-bubble {
  max-width: min(68%, 590px);
  padding: 9px 12px 7px;
  border: 0;
  border-radius: 18px 18px 18px 6px;
  background: #25222f;
  box-shadow: 0 7px 20px rgba(0,0,0,.12), inset 0 0 0 1px rgba(255,255,255,.035);
}

.message-row.mine .message-bubble {
  border: 0;
  border-radius: 18px 18px 6px 18px;
  background: linear-gradient(135deg, rgba(226,61,128,.9), rgba(116,76,223,.88));
  box-shadow: 0 9px 24px rgba(75,42,113,.18), inset 0 0 0 1px rgba(255,255,255,.08);
}

.message-row.grouped .message-bubble {
  border-top-left-radius: 8px;
}

.message-row.mine.grouped .message-bubble {
  border-top-left-radius: 18px;
  border-top-right-radius: 8px;
}

.message-row.pending {
  opacity: .72;
}

.message-row.pending .message-bubble {
  filter: saturate(.8);
}

.message-bubble p {
  color: #f7f3f8;
  font-size: 12px;
  line-height: 1.48;
}

.message-bubble small {
  margin-top: 4px;
  color: rgba(225,218,229,.58);
  font-size: 7.5px;
}

.message-row.mine .message-bubble small {
  color: rgba(255,255,255,.66);
}

.message-bubble img {
  margin: -3px -5px 7px;
  border-radius: 14px;
}

.message-tools {
  display: flex;
  align-self: center;
  gap: 3px;
  flex: 0 0 auto;
  opacity: 0;
  transform: translateY(2px);
  transition: opacity .14s ease, transform .14s ease;
}

.message-row:hover .message-tools,
.message-row:focus-within .message-tools {
  opacity: 1;
  transform: none;
}

.message-row.mine .message-tools {
  order: -1;
}

.message-tool {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #8f8799;
  font-size: 15px;
  cursor: pointer;
  transition: background .14s ease, color .14s ease;
}

.message-tool-more {
  padding-bottom: 5px;
  font-size: 12px;
  letter-spacing: -1px;
}

.message-tool:hover,
.message-tool.is-active {
  background: rgba(255,255,255,.075);
  color: #fff;
}

.message-popover {
  position: absolute;
  z-index: 12;
  bottom: calc(100% + 6px);
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(31,28,42,.98);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.message-row.mine .message-popover {
  right: 32px;
}

.message-row.theirs .message-popover {
  left: 32px;
}

.reaction-menu {
  display: flex;
  gap: 1px;
  padding: 5px;
  border-radius: 15px;
}

.reaction-menu button {
  display: grid;
  place-items: center;
  width: 35px;
  height: 35px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  transition: background .13s ease, transform .13s ease;
}

.reaction-menu button:hover {
  background: rgba(255,255,255,.08);
  transform: translateY(-2px) scale(1.08);
}

.message-action-menu {
  display: grid;
  min-width: 154px;
  padding: 5px;
  border-radius: 14px;
}

.message-action-menu button {
  display: grid;
  grid-template-columns: 24px 1fr;
  align-items: center;
  gap: 6px;
  width: 100%;
  min-height: 36px;
  padding: 6px 9px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #e8e3eb;
  text-align: left;
  cursor: pointer;
}

.message-action-menu button:hover {
  background: rgba(255,255,255,.07);
}

.message-action-menu button span {
  color: #a69dac;
  font-size: 15px;
  text-align: center;
}

.message-action-menu button b {
  font-size: 9px;
  font-weight: 700;
}

.message-action-menu button.danger,
.message-action-menu button.danger span {
  color: #ff909d;
}

.message-reactions {
  flex-basis: 100%;
  gap: 4px;
  margin-top: -3px;
  padding-inline: 3px;
}

.reaction-pill {
  min-height: 24px;
  padding: 2px 7px;
  border-color: rgba(255,255,255,.07);
  background: rgba(31,28,42,.92);
  font-size: 9px;
  box-shadow: 0 5px 14px rgba(0,0,0,.12);
}

.message-quote {
  margin-bottom: 6px;
  padding: 7px 9px;
  border-left-color: rgba(255,255,255,.75);
  background: rgba(0,0,0,.12);
}

.message-row.mine .message-quote b {
  color: #fff;
}

.message-editor {
  min-width: min(360px, 58vw);
}

.message-editor textarea {
  border-color: rgba(255,255,255,.11);
  background: rgba(0,0,0,.18);
}

.composer {
  display: block;
  padding: 9px 14px 14px;
  border-top: 0;
  background: linear-gradient(180deg, rgba(17,16,25,0), rgba(17,16,25,.96) 18%, #111019 100%);
}

.composer-input {
  position: relative;
  overflow: visible;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  background: rgba(32,29,42,.96);
  box-shadow: 0 14px 36px rgba(0,0,0,.24), inset 0 0 0 1px rgba(255,255,255,.018);
  transition: border-color .16s ease, box-shadow .16s ease;
}

.composer-input:focus-within {
  border-color: rgba(244,88,147,.38);
  box-shadow: 0 16px 40px rgba(0,0,0,.27), 0 0 0 3px rgba(244,63,135,.06);
}

.composer-main {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto auto;
  align-items: end;
  gap: 3px;
  padding: 5px;
}

.composer textarea {
  min-height: 38px;
  max-height: 132px;
  padding: 9px 7px 8px;
  color: #f7f3f8;
  font-size: 12px;
  line-height: 1.45;
}

.composer textarea::placeholder {
  color: #888090;
}

.attach-button,
.send-button {
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 13px;
  background: transparent;
  color: #aaa1af;
  font-size: 20px;
  transition: background .14s ease, color .14s ease, transform .14s ease;
}

.attach-button:hover {
  background: rgba(255,255,255,.065);
  color: #fff;
}

.emoji-button {
  font-size: 18px;
}

.send-button {
  background: linear-gradient(135deg, #f14c8d, #7357e9);
  color: #fff;
  font-size: 19px;
  box-shadow: 0 8px 20px rgba(122,69,187,.26);
}

.send-button:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(122,69,187,.34);
}

.send-button:disabled {
  background: rgba(255,255,255,.07);
  color: #77707f;
  box-shadow: none;
  opacity: 1;
}

.reply-preview,
.attachment-preview {
  border-color: rgba(255,255,255,.065);
}

.reply-preview {
  padding: 9px 12px 7px;
}

.attachment-preview {
  padding: 8px 11px;
  border-top: 0;
  border-bottom: 1px solid rgba(255,255,255,.065);
}

.attachment-preview img {
  width: 42px;
  height: 42px;
  border-radius: 12px;
}

.attachment-preview button,
.reply-preview button {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 9px;
  background: rgba(255,255,255,.045);
}

.composer-meta {
  padding: 0 12px 7px;
  color: #746d7b;
  font-size: 7px;
}

.composer-meta b {
  color: #89818f;
}

.emoji-picker {
  right: 46px;
  bottom: calc(100% + 9px);
  left: auto;
  grid-template-columns: repeat(6, 38px);
  gap: 2px;
  padding: 6px;
  border-color: rgba(255,255,255,.09);
  border-radius: 15px;
  background: rgba(31,28,42,.98);
  box-shadow: 0 18px 50px rgba(0,0,0,.35);
}

.emoji-picker button:hover {
  background: rgba(255,255,255,.07);
}

.new-messages-button {
  right: 16px;
  bottom: 12px;
  background: rgba(41,36,54,.96);
  box-shadow: 0 12px 30px rgba(0,0,0,.3), inset 0 0 0 1px rgba(255,255,255,.08);
}

@media (max-width: 760px) {
  .chat-header {
    min-height: 66px;
    padding-inline: 10px;
  }

  .chat-person .avatar-wrap img {
    width: 40px;
    height: 40px;
  }

  .messages {
    padding: 42px 11px 15px;
    scrollbar-gutter: auto;
  }

  .message-bubble {
    max-width: 82%;
  }

  .message-tools {
    opacity: .6;
    transform: none;
  }

  .message-tool-reaction {
    display: none;
  }

  .message-tool {
    width: 27px;
    height: 27px;
  }

  .message-row.mine .message-popover {
    right: 25px;
  }

  .message-row.theirs .message-popover {
    left: 25px;
  }

  .composer {
    padding: 7px 8px calc(9px + env(safe-area-inset-bottom));
  }

  .composer-main {
    grid-template-columns: auto minmax(0,1fr) auto auto;
    padding: 4px;
  }

  .attach-button,
  .send-button {
    width: 36px;
    height: 36px;
  }

  .composer-meta {
    display: none;
  }

  .emoji-picker {
    right: 4px;
    grid-template-columns: repeat(3, 40px);
  }
}

@media (hover: none) {
  .message-tools {
    opacity: .62;
    transform: none;
  }

  .message-tool-reaction {
    display: none;
  }
}


/* Hide zero-value navigation counters even when component rules set display:grid. */
.site-nav > a i[hidden],
.notification-trigger > i[hidden],
.mobile-tabbar > a i[hidden] {
  display: none !important;
}

/* V6: cleaner recommendation card */
.swipe-card-copy {
  display: block;
  padding: 32px 26px 27px;
  color: #fff;
  text-decoration: none;
}
.swipe-card-copy:hover { color: #fff; }
.swipe-card-gradient {
  inset: 38% 0 0;
  background: linear-gradient(180deg, transparent 0%, rgba(8,7,13,.2) 24%, rgba(8,7,13,.92) 78%, rgba(8,7,13,.99) 100%);
}
.swipe-name-line { gap: 10px; }
.swipe-name-line h2 {
  font-size: clamp(29px, 4vw, 36px);
  letter-spacing: -.035em;
}
.swipe-card-copy > p {
  margin: 8px 0 18px;
  color: rgba(255,255,255,.78);
  font-size: 14px;
}
.swipe-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}
.swipe-tags span {
  padding: 8px 14px;
  border: 1px solid rgba(255,255,255,.34);
  border-radius: 999px;
  background: rgba(12,10,18,.3);
  color: rgba(255,255,255,.92);
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  backdrop-filter: blur(10px);
}
.swipe-tags span.shared {
  border-color: rgba(185,255,72,.55);
  background: rgba(158,226,58,.12);
}
.swipe-actions {
  gap: 28px;
  padding: 20px 18px 22px;
  background: linear-gradient(180deg,#17131f,#14111b);
}
.swipe-action.pass { width: 62px; height: 62px; }
.swipe-action.super {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  border: 0;
  background: linear-gradient(145deg,#8d59ed,#5530a7);
  color: #fff;
  font-size: 31px;
  line-height: 1;
  box-shadow: 0 14px 34px rgba(105,62,196,.35);
}
.swipe-action.like {
  width: 70px;
  height: 70px;
}
.swipe-hints { display: none !important; }

@media(max-width:700px){
  .swipe-card-copy { padding: 26px 19px 21px; }
  .swipe-card-copy > p { margin-bottom: 14px; font-size: 12px; }
  .swipe-tags { gap: 7px; }
  .swipe-tags span { padding: 7px 11px; font-size: 10px; }
  .swipe-actions { gap: 22px; padding: 13px 12px 15px; }
  .swipe-action.pass { width: 54px; height: 54px; }
  .swipe-action.super { width: 63px; height: 63px; font-size: 28px; }
  .swipe-action.like { width: 63px; height: 63px; }
}

/* V7: polished recommendation card content and perfectly centered action icons */
.swipe-card-copy {
  position: relative;
  z-index: 4;
  padding: 30px 26px 25px;
  color: #fff;
}
.swipe-card-copy > .swipe-meta {
  margin: 8px 0 0;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  line-height: 1.4;
}
.swipe-meta span { margin: 0 5px; color: rgba(255,255,255,.5); }
.swipe-bio {
  display: -webkit-box;
  max-width: 560px;
  margin: 13px 0 0;
  overflow: hidden;
  color: rgba(255,255,255,.82);
  font-size: 14px;
  line-height: 1.48;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.swipe-card-copy .swipe-tags { margin-top: 16px; }
.swipe-profile-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  margin-top: 18px;
  padding: 10px 16px;
  border: 1px solid rgba(255,255,255,.48);
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
  background: rgba(12,10,18,.22);
  backdrop-filter: blur(10px);
  transition: transform .18s ease, background .18s ease, border-color .18s ease;
}
.swipe-profile-link span { font-size: 23px; line-height: 0; transform: translateY(-1px); }
.swipe-profile-link:hover {
  color: #fff;
  transform: translateY(-2px);
  border-color: rgba(255,255,255,.76);
  background: rgba(255,255,255,.1);
}
.swipe-action {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 0 !important;
  line-height: 0 !important;
}
.swipe-action svg {
  display: block;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  overflow: visible;
}
.swipe-action.pass svg {
  width: 29px;
  height: 29px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
}
.swipe-action.super svg {
  width: 32px;
  height: 32px;
  fill: currentColor;
  stroke: none;
}
.swipe-action.like svg {
  width: 31px;
  height: 31px;
  fill: currentColor;
  stroke: none;
}
@media(max-width:700px){
  .swipe-card-copy { padding: 24px 19px 20px; }
  .swipe-card-copy > .swipe-meta { font-size: 12px; }
  .swipe-bio { margin-top: 10px; font-size: 12px; line-height: 1.42; }
  .swipe-card-copy .swipe-tags { margin-top: 12px; }
  .swipe-profile-link { margin-top: 14px; padding: 9px 14px; font-size: 12px; }
  .swipe-action.pass svg { width: 26px; height: 26px; }
  .swipe-action.super svg { width: 29px; height: 29px; }
  .swipe-action.like svg { width: 28px; height: 28px; }
}


/* V8: fail-safe recommendation card layout — content and controls always visible */
.swipe-card {
  grid-template-rows: minmax(0, 1fr) auto !important;
  min-height: 0;
}
.swipe-gallery {
  position: relative;
  z-index: 1;
  isolation: isolate;
  min-height: 0;
}
.swipe-gallery > img {
  position: relative;
  z-index: 0;
}
.swipe-card-gradient {
  z-index: 2 !important;
  pointer-events: none;
}
.swipe-card-copy {
  position: absolute !important;
  z-index: 10 !important;
  left: 0;
  right: 0;
  bottom: 0;
  display: block !important;
  visibility: visible !important;
  opacity: 1 !important;
  pointer-events: auto;
}
.swipe-card-copy h2,
.swipe-card-copy p,
.swipe-card-copy .swipe-tags,
.swipe-card-copy .swipe-profile-link {
  visibility: visible !important;
  opacity: 1 !important;
}
.swipe-actions {
  position: relative;
  z-index: 12;
  display: flex !important;
  flex: 0 0 auto;
  min-height: 104px;
  visibility: visible !important;
  opacity: 1 !important;
}
.swipe-actions form,
.swipe-actions button {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}
.swipe-action {
  position: relative;
  flex: 0 0 auto;
}
.swipe-action svg {
  position: absolute;
  inset: 50% auto auto 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}
@media (max-width: 700px) {
  .swipe-actions { min-height: 84px; }
  .swipe-card-gradient { inset: 28% 0 0; }
  .swipe-card-copy { padding-bottom: 18px; }
}

/* Full profile polish v14 */
.profile-view-shell {
  align-items: start;
  background: linear-gradient(145deg, rgba(31,27,43,.98), rgba(19,17,27,.98));
}
.profile-gallery::after {
  content: "";
  position: absolute;
  z-index: 2;
  inset: auto 0 0;
  height: 22%;
  background: linear-gradient(transparent, rgba(8,7,13,.38));
  pointer-events: none;
}
.gallery-arrow {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border-color: rgba(255,255,255,.18);
  background: rgba(12,10,20,.42);
  opacity: .68;
  transition: opacity .18s ease, background .18s ease, transform .18s ease;
}
.gallery-arrow svg {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.3;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.gallery-prev { left: 14px; }
.gallery-next { right: 14px; }
.profile-gallery:hover .gallery-arrow,
.gallery-arrow:focus-visible { opacity: 1; }
.gallery-arrow:hover {
  background: rgba(18,16,27,.82);
  transform: translateY(-50%) scale(1.06);
}
.gallery-dots {
  top: 18px;
  max-width: calc(100% - 150px);
}
.gallery-dots button {
  width: clamp(18px, 4vw, 38px);
  height: 3px;
  background: rgba(255,255,255,.30);
}
.gallery-dots button.active { background: rgba(255,255,255,.96); }
.back-button,
.profile-menu-button {
  z-index: 8;
  border-radius: 50%;
  background: rgba(12,10,20,.52);
}
.profile-detail {
  min-width: 0;
  padding: 42px 42px 36px;
}
.profile-detail-head {
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.profile-detail-head h1 {
  margin-top: 10px;
  font-size: clamp(38px, 4.2vw, 54px);
  letter-spacing: -.035em;
  line-height: 1.02;
}
.profile-detail-head p {
  margin-top: 10px;
  font-size: 14px;
}
.profile-section {
  margin-top: 24px;
  padding-top: 24px;
}
.profile-section > p {
  max-width: 62ch;
  color: #d0cad5;
  font-size: 14px;
  line-height: 1.75;
}
.facts-grid {
  gap: 12px;
  margin-top: 24px;
}
.facts-grid > div {
  min-height: 74px;
  align-content: center;
  padding: 16px 17px;
  border-radius: 17px;
  background: rgba(255,255,255,.035);
}
.facts-grid span { font-size: 9px; letter-spacing: .08em; }
.facts-grid b { font-size: 13px; line-height: 1.35; }
.profile-detail .tag-list.large {
  gap: 8px;
}
.profile-detail .tag-list.large span {
  padding: 9px 13px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
}
.conversation-prompt {
  margin: 26px 0;
  border-radius: 20px;
}
.sticky-profile-actions {
  z-index: 20;
  gap: 18px;
  width: fit-content;
  margin: 34px auto 0;
  padding: 13px 18px;
  border-radius: 28px;
  background: rgba(20,18,29,.90);
}
.sticky-profile-actions form {
  display: grid;
  place-items: center;
}
.sticky-profile-actions .round-action {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0;
  padding: 0;
  line-height: 0;
}
.sticky-profile-actions .round-action svg {
  display: block;
  width: 25px;
  height: 25px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sticky-profile-actions .pass-action {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.035);
  color: #d5cfda;
}
.sticky-profile-actions .super-action {
  width: 66px;
  height: 66px;
  border: 0 !important;
  background: linear-gradient(145deg, #8d4cf5, #632bd1) !important;
  color: #fff !important;
  box-shadow: 0 13px 34px rgba(112,55,222,.34);
}
.sticky-profile-actions .super-action svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
  stroke: none;
}
.sticky-profile-actions .super-action::after { content: none !important; }
.sticky-profile-actions .like-action {
  width: 62px;
  height: 62px;
  background: linear-gradient(145deg, #ff4f7d, #f43f87) !important;
  box-shadow: 0 13px 34px rgba(244,63,135,.30);
}
.sticky-profile-actions .like-action svg {
  width: 29px;
  height: 29px;
  fill: currentColor;
  stroke: none;
}
.sticky-profile-actions .like-action.is-active svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 2.8;
}
@media (max-width: 960px) {
  .profile-view-shell { width: min(760px, calc(100% - 24px)); }
  .profile-detail { padding: 34px 30px 30px; }
}
@media (max-width: 720px) {
  .profile-gallery::after { height: 15%; }
  .profile-detail { padding: 28px 20px 24px; }
  .profile-detail-head h1 { font-size: 38px; }
  .gallery-arrow { display: none; }
  .gallery-dots { top: 14px; max-width: calc(100% - 132px); }
  .sticky-profile-actions {
    position: sticky;
    bottom: 88px;
    gap: 14px;
    margin-top: 28px;
    padding: 10px 14px;
  }
  .sticky-profile-actions .round-action { width: 54px; height: 54px; }
  .sticky-profile-actions .super-action { width: 62px; height: 62px; }
  .sticky-profile-actions .like-action { width: 58px; height: 58px; }
}

/* Profile actions anchored to the bottom v15 */
@media (min-width: 721px) {
  .profile-detail {
    display: flex;
    flex-direction: column;
    min-height: calc(100vh - var(--header-height) - 74px);
  }

  .profile-detail > .sticky-profile-actions {
    margin-top: auto;
    margin-bottom: 0;
    align-self: center;
  }

  .profile-detail > .btn-block:last-child {
    margin-top: auto;
  }
}

/* Mobile full-profile actions visibility v16 */
@media (max-width: 720px) {
  .profile-detail {
    display: flex;
    flex-direction: column;
    padding: 28px 20px 26px;
  }

  .profile-detail > .sticky-profile-actions {
    position: relative;
    inset: auto;
    z-index: 30;
    display: flex !important;
    align-items: center;
    justify-content: center;
    align-self: center;
    gap: 14px;
    width: max-content;
    max-width: 100%;
    margin: 32px auto 4px;
    padding: 11px 15px;
    border: 1px solid rgba(255,255,255,.09);
    border-radius: 27px;
    background: rgba(20,18,29,.96);
    box-shadow: 0 16px 38px rgba(0,0,0,.28);
  }

  .profile-detail > .sticky-profile-actions form {
    display: grid !important;
    place-items: center;
    flex: 0 0 auto;
    margin: 0;
  }

  .profile-detail > .sticky-profile-actions .round-action {
    display: grid !important;
    place-items: center;
    visibility: visible !important;
    opacity: 1;
  }
}

@media (max-width: 380px) {
  .profile-detail > .sticky-profile-actions {
    gap: 10px;
    padding-inline: 12px;
  }

  .profile-detail > .sticky-profile-actions .round-action {
    width: 50px;
    height: 50px;
  }

  .profile-detail > .sticky-profile-actions .super-action {
    width: 58px;
    height: 58px;
  }

  .profile-detail > .sticky-profile-actions .like-action {
    width: 54px;
    height: 54px;
  }
}


/* Recommendation filters modal fix v17 */
.filter-backdrop {
  position: fixed;
  z-index: 1290;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  border: 0;
  background: rgba(4, 3, 10, .68);
  opacity: 0;
  pointer-events: none;
  cursor: default;
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  transition: opacity .2s ease;
}

.filter-backdrop[hidden] {
  display: none !important;
}

.filter-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.swipe-filter-panel {
  z-index: 1300;
}

.swipe-filter-panel .filter-head button {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  color: var(--text);
  cursor: pointer;
  font-size: 23px;
  line-height: 1;
}

body.filter-open::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 700px) {
  .swipe-filter-panel {
    top: auto;
    right: 0;
    bottom: 0;
    left: 0;
    width: 100%;
    max-height: min(88dvh, 720px);
    padding: 22px 18px calc(22px + env(safe-area-inset-bottom));
    border-radius: 24px 24px 0 0;
    transform: translateY(calc(100% + 24px));
    opacity: 1;
    visibility: hidden;
    pointer-events: none;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .swipe-filter-panel.is-open {
    transform: translateY(0);
    visibility: visible;
    pointer-events: auto;
  }

  .swipe-filter-panel .filter-head {
    position: sticky;
    z-index: 2;
    top: -22px;
    margin: -22px -18px 18px;
    padding: 20px 18px 14px;
    background: rgba(24, 21, 34, .96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
  }
}

/* Cross-browser native select theming for the dark application UI. */
body:not(.landing-body) select {
  color-scheme: dark;
  background-color: var(--surface-2);
  color: var(--text);
  border-color: var(--line-strong);
  accent-color: var(--primary);
}

body:not(.landing-body) select:hover {
  background-color: var(--surface-3);
}

body:not(.landing-body) select:focus {
  background-color: var(--surface-2);
}

/* Chromium, Firefox and desktop Safari use these colors for the native popup. */
body:not(.landing-body) select option,
body:not(.landing-body) select optgroup {
  background-color: #211e30;
  color: #f8f7fb;
}

body:not(.landing-body) select option:checked {
  background-color: #8b5cf6;
  color: #fff;
}

body:not(.landing-body) select option:disabled {
  color: #7f788e;
}

/* Keep the public light landing page native controls light. */
.landing-body select,
.landing-body select option,
.landing-body select optgroup {
  color-scheme: light;
  background-color: #fff;
  color: var(--landing-ink);
}

/* More visible mobile navigation icons v19 */
@media (max-width: 720px) {
  .mobile-tabbar {
    padding: 6px;
    border-color: rgba(255,255,255,.13);
    background: rgba(18,16,27,.94);
  }

  .mobile-tabbar a {
    position: relative;
    min-width: 0;
    gap: 4px;
    padding: 6px 4px 5px;
    color: #9992a5;
    text-decoration: none;
    transition: color .18s ease, background-color .18s ease, transform .18s ease;
  }

  .mobile-tabbar a:active {
    transform: scale(.96);
  }

  .mobile-tabbar-icon {
    display: grid;
    place-items: center;
    width: 38px;
    height: 34px;
    border: 1px solid transparent;
    border-radius: 13px;
    background: transparent;
    color: currentColor;
    transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease, color .18s ease;
  }

  .mobile-tabbar-icon svg {
    display: block;
    width: 23px;
    height: 23px;
    overflow: visible;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.9;
    stroke-linecap: round;
    stroke-linejoin: round;
  }

  .mobile-tabbar small {
    max-width: 100%;
    overflow: hidden;
    color: currentColor;
    font-size: 9px;
    font-weight: 800;
    line-height: 1.1;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .mobile-tabbar a.active {
    background: rgba(255,255,255,.055);
    color: #fff;
  }

  .mobile-tabbar a.active .mobile-tabbar-icon {
    border-color: rgba(153,105,255,.32);
    background: linear-gradient(145deg, rgba(125,83,245,.34), rgba(245,63,135,.15));
    color: #fff;
    box-shadow: 0 7px 20px rgba(77,45,145,.28), inset 0 1px rgba(255,255,255,.08);
  }

  .mobile-tabbar a.active small {
    color: #f5f0ff;
  }

  .mobile-tabbar a > i {
    top: 2px;
    right: calc(50% - 24px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border: 2px solid #17131f;
    border-radius: 999px;
    background: #ff3f7f;
    color: #fff;
    font-size: 8px;
    font-style: normal;
    font-weight: 900;
    line-height: 12px;
    box-shadow: 0 3px 10px rgba(255,63,127,.42);
  }
}

/* Mobile profile horizontal overflow fix v20 */
html,
body {
  max-width: 100%;
  overflow-x: clip;
}

.app-main,
.page-shell,
.profile-page,
.profile-dashboard,
.profile-sidebar,
.profile-content,
.profile-content > *,
.photo-manager,
.profile-form,
.photo-grid,
.photo-tile,
.photo-upload,
.surface-heading,
.surface-heading > * {
  min-width: 0;
  max-width: 100%;
}

.photo-tile,
.photo-upload {
  contain: inline-size;
}

.photo-actions {
  min-width: 0;
}

.photo-actions form,
.photo-actions button {
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 720px) {
  .profile-page {
    width: calc(100% - 24px);
    margin-inline: auto;
    overflow: hidden;
  }

  .profile-heading,
  .surface-heading {
    width: 100%;
  }

  .surface-heading {
    flex-wrap: wrap;
  }

  .surface-heading > div {
    min-width: 0;
    flex: 1 1 180px;
  }

  .surface-heading h2,
  .profile-heading h1,
  .profile-heading p {
    overflow-wrap: anywhere;
  }

  .photo-grid {
    width: 100%;
  }

  .photo-tile img,
  .photo-upload label {
    width: 100%;
  }

  .mobile-tabbar {
    width: auto;
    max-width: calc(100% - 20px);
    overflow: hidden;
  }
}

/* V21: clearer notification icon and notification deletion */
.notification-bell {
  width: 21px;
  height: 21px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.notification-trigger:hover .notification-bell,
.notification-trigger[aria-expanded="true"] .notification-bell {
  color: #ff78aa;
}
.notification-popover-item {
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 4px;
  padding: 0 8px 0 0;
}
.notification-popover-main {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  min-width: 0;
  padding: 12px 7px 12px 15px;
  color: #fff;
  text-decoration: none;
}
.notification-popover-main > span {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  font-size: 17px;
}
.notification-popover-main > div { display:grid; gap:4px; min-width:0; }
.notification-popover-item.is-unread::after { right: 45px; }
.notification-delete {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted-2);
  cursor: pointer;
  transition: background .16s ease, color .16s ease, transform .16s ease;
}
.notification-delete:hover { background: rgba(255,76,118,.12); color: #ff6f98; transform: scale(1.04); }
.notification-delete:disabled { opacity: .45; cursor: wait; }
.notification-delete svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.notification-popover > footer > div { display:flex; align-items:center; gap:12px; }
.notification-row {
  grid-template-columns: minmax(0, 1fr) 42px;
  gap: 4px;
  padding: 0 10px 0 0;
}
.notification-row-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-width: 0;
  padding: 16px 8px 16px 18px;
  color: inherit;
  text-decoration: none;
}
.notification-delete-row { width: 36px; height: 36px; }
.notification-popover-item.is-removing,
.notification-row.is-removing { opacity: 0; transform: translateX(12px); transition: .18s ease; }
.activity-notification-actions { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
@media (max-width: 700px) {
  .activity-notification-actions { width:100%; }
  .activity-notification-actions form,
  .activity-notification-actions .btn { flex:1; }
  .notification-row-main { padding-left:14px; gap:10px; }
  .notification-delete-row { width:34px; height:34px; }
}

/* V22: notification popover footer actions */
.notification-popover > footer {
  min-height: 58px;
}
.notification-popover > footer .notification-browser-action {
  padding: 0;
  border: 0;
  background: transparent;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  text-align: left;
  cursor: pointer;
}
.notification-popover > footer .notification-browser-action:hover {
  color: #ff78aa;
}
.notification-popover > footer .notification-clear-action {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  color: var(--muted);
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}
.notification-popover > footer .notification-clear-action:hover {
  border-color: rgba(255,91,132,.34);
  background: rgba(255,76,118,.12);
  color: #ff6f98;
  transform: translateY(-1px);
}
.notification-popover > footer .notification-clear-action:disabled {
  opacity: .45;
  cursor: wait;
  transform: none;
}
.notification-popover > footer .notification-clear-action svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}


/* V23: browser notification opt-in removed */
.notification-popover > footer {
  justify-content: flex-end;
}

/* Email verification code */
.verify-code-card { max-width: 520px; margin-inline: auto; }
.verify-code-form { display: grid; gap: 18px; }
.verification-code-input {
    width: 100%;
    min-height: 64px;
    text-align: center;
    font-size: clamp(28px, 7vw, 38px);
    font-weight: 800;
    letter-spacing: .28em;
    font-variant-numeric: tabular-nums;
}
.verify-resend-form { margin-top: 18px; text-align: center; }
.verify-resend-form .text-link { border: 0; background: none; cursor: pointer; font: inherit; }
@media (max-width: 640px) {
    .verification-code-input { min-height: 58px; letter-spacing: .2em; }
}

/* V24: verification resend cooldown */
.verify-resend-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 8px 12px;
  border-radius: 12px;
  color: var(--accent, #ef3f8f);
  transition: opacity .2s ease, background-color .2s ease, color .2s ease;
}
.verify-resend-button:hover:not(:disabled) {
  background: rgba(239, 63, 143, .09);
}
.verify-resend-button:disabled {
  cursor: not-allowed;
  opacity: .58;
  color: var(--muted, #9a93aa);
}

/* Profile readability and visual polish v28 */
.profile-page {
  --profile-text: #f5f2f8;
  --profile-muted: #bdb7c8;
  --profile-subtle: #9d96aa;
}

.profile-page .profile-heading {
  margin-bottom: 26px;
  padding: 4px 2px 0;
}

.profile-page .profile-heading h1 {
  margin-top: 7px;
  font-size: clamp(36px, 4vw, 50px);
  line-height: 1.05;
  letter-spacing: -.025em;
}

.profile-page .profile-heading p {
  max-width: 720px;
  color: var(--profile-muted);
  font-size: 16px;
  line-height: 1.65;
}

.profile-page .overline {
  color: #cfff59;
  font-size: 11px;
  line-height: 1.2;
  letter-spacing: .14em;
}

.profile-page .surface {
  border-color: rgba(255,255,255,.11);
  background:
    linear-gradient(145deg, rgba(255,255,255,.035), transparent 34%),
    #1b1825;
}

.profile-page .surface-heading {
  margin-bottom: 26px;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(255,255,255,.08);
}

.profile-page .surface-heading h2 {
  margin-top: 7px;
  color: var(--profile-text);
  font-size: 27px;
  line-height: 1.15;
}

.profile-page .surface-heading > span {
  color: var(--profile-muted);
  font-size: 14px;
}

.profile-summary,
.quick-settings {
  padding: 24px;
}

.profile-summary > img {
  margin-bottom: 20px;
  border: 1px solid rgba(255,255,255,.1);
  box-shadow: 0 18px 45px rgba(0,0,0,.28);
}

.profile-summary h2 {
  color: var(--profile-text);
  font-size: 27px;
  line-height: 1.2;
}

.profile-summary > div > p {
  color: var(--profile-muted);
  font-size: 14px;
  line-height: 1.5;
}

.completion {
  margin: 24px 0 20px;
  padding-top: 21px;
}

.completion > div:first-child {
  align-items: center;
  font-size: 14px;
  font-weight: 750;
}

.completion > div:first-child span {
  color: var(--profile-muted);
}

.completion > div:first-child b {
  color: #fff;
  font-size: 15px;
}

.progress {
  height: 9px;
  margin: 12px 0 13px;
}

.completion p {
  margin: 0;
  color: var(--profile-subtle);
  font-size: 13px;
  line-height: 1.6;
}

.account-chips {
  gap: 8px;
  margin-bottom: 20px;
}

.account-chips span {
  padding: 8px 10px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 10px;
  background: rgba(255,255,255,.055);
  color: #d6d0df;
  font-size: 11px;
  line-height: 1.2;
}

.quick-settings h3 {
  margin: 0 0 14px;
  color: var(--profile-text);
  font-size: 20px;
}

.quick-settings p {
  position: relative;
  margin: 0;
  padding: 12px 0 12px 20px;
  color: var(--profile-muted);
  font-size: 14px;
  line-height: 1.55;
}

.quick-settings p + p {
  border-top: 1px solid rgba(255,255,255,.07);
}

.quick-settings p::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 2px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #73e8b0;
  box-shadow: 0 0 0 4px rgba(115,232,176,.1);
}

.profile-page .photo-manager,
.profile-page .profile-form {
  padding: 30px;
}

.profile-page .surface-note {
  margin: 18px 0 0;
  color: var(--profile-subtle);
  font-size: 13px;
  line-height: 1.65;
}

.profile-page .status-badge,
.profile-page .primary-badge {
  min-height: 27px;
  padding: 0 10px;
  font-size: 9px;
}

.profile-page .photo-actions button {
  min-height: 30px;
  padding: 0 4px;
  font-size: 12px;
  text-shadow: 0 1px 8px rgba(0,0,0,.8);
}

.profile-page .moderator-note {
  bottom: 48px;
  font-size: 12px;
  line-height: 1.4;
}

.profile-page .photo-upload label b {
  color: #fff;
  font-size: 15px;
}

.profile-page .photo-upload label small {
  margin-top: 9px;
  color: var(--profile-subtle);
  font-size: 12px;
  line-height: 1.55;
}

.profile-page .profile-form {
  display: grid;
  gap: 0;
}

.profile-page .profile-form .form-grid.two {
  gap: 18px;
}

.profile-page .profile-form label {
  gap: 9px;
}

.profile-page .profile-form label > span {
  color: #e8e3ed;
  font-size: 14px;
  font-weight: 780;
  line-height: 1.35;
}

.profile-page .profile-form input,
.profile-page .profile-form select,
.profile-page .profile-form textarea {
  border-color: rgba(255,255,255,.13);
  background: rgba(255,255,255,.055);
  color: #fff;
  font-size: 15px;
}

.profile-page .profile-form input,
.profile-page .profile-form select {
  min-height: 52px;
  padding-inline: 16px;
}

.profile-page .profile-form textarea {
  min-height: 150px;
  padding: 15px 16px;
  line-height: 1.6;
  resize: vertical;
}

.profile-page .profile-form input::placeholder,
.profile-page .profile-form textarea::placeholder {
  color: #817a8d;
}

.profile-page .profile-form input:focus,
.profile-page .profile-form select:focus,
.profile-page .profile-form textarea:focus {
  border-color: rgba(244,63,135,.68);
  background: rgba(255,255,255,.075);
  box-shadow: 0 0 0 4px rgba(244,63,135,.1);
}

.profile-page .field-counter,
.profile-page .field-hint {
  color: var(--profile-subtle);
  font-size: 12px;
}

.profile-page .privacy-options {
  gap: 12px;
  margin-top: 26px;
  padding-top: 26px;
}

.profile-page .switch-row {
  min-height: 76px;
  padding: 17px 18px;
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.035);
}

.profile-page .switch-row:hover {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.05);
}

.profile-page .switch-row b {
  font-size: 15px;
  line-height: 1.35;
}

.profile-page .switch-row small {
  color: var(--profile-subtle);
  font-size: 13px;
  line-height: 1.45;
}

.profile-page .form-footer {
  display: flex;
  justify-content: flex-end;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.profile-page .danger-zone {
  padding: 24px 26px;
}

.profile-page .danger-zone h2 {
  margin: 0 0 7px;
  font-size: 21px;
}

.profile-page .danger-zone p {
  margin: 0;
  color: var(--profile-muted);
  font-size: 14px;
  line-height: 1.6;
}

.profile-page .blocked-list > div {
  min-height: 64px;
  padding-block: 10px;
}

.profile-page .blocked-list b {
  font-size: 15px;
}

@media (max-width: 980px) {
  .profile-sidebar {
    gap: 16px;
  }

  .profile-summary {
    align-items: center;
  }
}

@media (max-width: 720px) {
  .profile-page .profile-heading {
    gap: 18px;
  }

  .profile-page .profile-heading h1 {
    font-size: 34px;
  }

  .profile-page .profile-heading p {
    font-size: 15px;
    line-height: 1.55;
  }

  .profile-page .profile-heading > .btn {
    width: 100%;
  }

  .profile-summary {
    grid-template-columns: 104px minmax(0,1fr);
    gap: 15px;
    padding: 18px;
  }

  .profile-summary h2 {
    font-size: 23px;
  }

  .profile-summary > div > p {
    font-size: 13px;
  }

  .quick-settings {
    padding: 19px;
  }

  .quick-settings p {
    font-size: 13px;
  }

  .profile-page .photo-manager,
  .profile-page .profile-form {
    padding: 20px;
  }

  .profile-page .surface-heading {
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 15px;
  }

  .profile-page .surface-heading h2 {
    font-size: 24px;
  }

  .profile-page .surface-heading > .btn {
    min-height: 42px;
    padding-inline: 14px;
    font-size: 12px;
  }

  .profile-page .photo-grid {
    gap: 10px;
  }

  .profile-page .photo-actions {
    right: 9px;
    bottom: 9px;
    left: 9px;
  }

  .profile-page .photo-actions button {
    font-size: 11px;
  }

  .profile-page .profile-form .form-grid.two {
    gap: 15px;
  }

  .profile-page .profile-form > label {
    margin-top: 19px;
  }

  .profile-page .profile-form label > span {
    font-size: 14px;
  }

  .profile-page .profile-form input,
  .profile-page .profile-form select,
  .profile-page .profile-form textarea {
    font-size: 16px;
  }

  .profile-page .switch-row {
    min-height: 82px;
    padding: 16px;
  }

  .profile-page .form-footer .btn {
    width: 100%;
  }

  .profile-page .danger-zone {
    gap: 18px;
    padding: 21px;
  }

  .profile-page .danger-zone .btn {
    width: 100%;
  }
}

@media (max-width: 430px) {
  .profile-summary {
    grid-template-columns: 88px minmax(0,1fr);
  }

  .profile-summary h2 {
    font-size: 21px;
  }

  .profile-page .photo-manager,
  .profile-page .profile-form {
    padding: 17px;
  }

  .profile-page .surface-heading h2 {
    font-size: 22px;
  }
}

/* Mobile profile viewport + bottom navigation hard fix v30 */
@media (max-width: 720px) {
  html,
  body {
    width: 100%;
    max-width: 100%;
    margin: 0;
    overflow-x: hidden !important;
  }

  body.app-body.is-authenticated {
    position: relative;
    min-width: 0;
  }

  .app-body.is-authenticated .app-main {
    width: 100%;
    max-width: 100%;
    min-width: 0;
    padding-right: 0;
    padding-bottom: calc(108px + env(safe-area-inset-bottom));
    padding-left: 0;
    overflow-x: hidden;
  }

  .profile-page,
  .profile-page .profile-dashboard,
  .profile-page .profile-sidebar,
  .profile-page .profile-content,
  .profile-page .surface,
  .profile-page .profile-summary,
  .profile-page .quick-settings,
  .profile-page .photo-manager,
  .profile-page .profile-form,
  .profile-page .photo-grid,
  .profile-page .form-grid,
  .profile-page .privacy-options,
  .profile-page .form-footer {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .profile-page {
    width: calc(100% - 24px);
    margin-right: auto;
    margin-left: auto;
    overflow: visible;
  }

  .profile-page img,
  .profile-page input,
  .profile-page select,
  .profile-page textarea,
  .profile-page button,
  .profile-page .btn {
    max-width: 100%;
  }

  .profile-page .profile-summary,
  .profile-page .surface-heading,
  .profile-page .form-footer,
  .profile-page .photo-actions {
    min-width: 0;
  }

  .profile-page .surface-heading > *,
  .profile-page .profile-summary > *,
  .profile-page .photo-actions > *,
  .profile-page .form-footer > * {
    min-width: 0;
  }

  .mobile-tabbar {
    position: fixed !important;
    z-index: 10000 !important;
    right: auto !important;
    bottom: calc(10px + env(safe-area-inset-bottom)) !important;
    left: 50% !important;
    display: grid !important;
    box-sizing: border-box;
    width: calc(100vw - 20px) !important;
    min-width: 0 !important;
    max-width: 520px !important;
    margin: 0 !important;
    transform: translateX(-50%) !important;
    overflow: visible !important;
    isolation: isolate;
  }

  .mobile-tabbar > a {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    overflow: visible;
  }

  .mobile-tabbar small {
    width: 100%;
    min-width: 0;
    text-align: center;
  }
}

/* Mobile performance profile: reduce GPU-heavy effects on low-power phones. */
@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  :root {
    --shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
    --shadow-soft: 0 5px 16px rgba(0, 0, 0, 0.16);
  }

  html {
    scroll-behavior: auto;
  }

  body {
    text-rendering: auto;
    -webkit-font-smoothing: antialiased;
  }

  /* Backdrop blur is especially expensive in Samsung Internet/Chrome on
     entry-level Android GPUs because it repaints everything behind it. */
  .site-header,
  .mobile-tabbar,
  .filter-panel,
  .filter-backdrop,
  .modal,
  .crop-dialog::backdrop,
  .gallery-arrow,
  .swipe-photo-nav,
  .notification-dropdown,
  .reaction-menu,
  .emoji-picker,
  .load-older,
  body.filter-open::after,
  [style*="backdrop-filter"] {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .site-header,
  .mobile-tabbar,
  .notification-dropdown,
  .filter-panel {
    background-color: rgba(18, 16, 28, 0.98) !important;
  }

  /* Remove decorative blurred layers and large composited glows. */
  .app-main::before,
  .app-main::after,
  .page-shell::before,
  .page-shell::after,
  .hero-visual::before,
  .hero-visual::after,
  .ambient-orb,
  .glow,
  .blur-orb {
    display: none !important;
    filter: none !important;
  }

  /* Keep the design, but avoid huge blur radii and multi-layer shadows. */
  .surface,
  .card,
  .person-card,
  .swipe-card,
  .profile-summary,
  .photo-card,
  .conversation-card,
  .notification-row,
  .filter-panel,
  .modal-card,
  .crop-stage {
    box-shadow: 0 5px 18px rgba(0, 0, 0, 0.2) !important;
  }

  .brand-mark,
  .swipe-action,
  .mobile-tabbar a,
  .btn,
  .icon-button,
  .notification-trigger {
    box-shadow: none !important;
  }

  /* Continuous transitions make scrolling janky while the browser is
     promoting many elements to their own layers. */
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    transition-delay: 0ms !important;
  }

  .spinner,
  [aria-busy="true"] .spinner {
    animation-duration: 0.75s !important;
  }

  *:not(.spinner),
  *:not(.spinner)::before,
  *:not(.spinner)::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }

  /* Let the browser skip rendering long sections below the viewport. */
  .profile-page .surface,
  .activity-list > *,
  .conversation-list > *,
  .settings-section,
  .photo-manager {
    content-visibility: auto;
    contain-intrinsic-size: 1px 420px;
  }

  img {
    image-rendering: auto;
  }
}

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

/* V32: low-end Android optimisation for the photo manager on Profile. */
@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  /* Do not virtualise the whole photo section. Restoring a large skipped
     section during a fling caused a visible pause in Chrome/Samsung Internet. */
  .profile-page .photo-manager {
    content-visibility: visible !important;
    contain: none !important;
    box-shadow: none !important;
  }

  .profile-page .photo-grid {
    align-items: start;
    gap: 10px;
  }

  /* Each tile becomes an isolated, fixed-size paint area. The browser no
     longer repaints the full photo grid while the page is scrolling. */
  .profile-page .photo-tile,
  .profile-page .photo-upload {
    min-height: 0 !important;
    aspect-ratio: 4 / 5;
    contain: layout paint size style;
    content-visibility: auto;
    contain-intrinsic-size: 280px 350px;
    border-radius: 15px;
    box-shadow: none !important;
    transform: none !important;
    isolation: isolate;
  }

  .profile-page .photo-tile > a {
    position: absolute;
    inset: 0;
    display: block;
    overflow: hidden;
  }

  .profile-page .photo-tile img {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 0 !important;
    object-fit: cover;
    object-position: center;
    transform: none !important;
    filter: none !important;
    backface-visibility: hidden;
  }

  /* The large translucent gradient was repainted over every image on each
     scroll frame. A small opaque footer is much cheaper on entry-level GPUs. */
  .profile-page .photo-tile::after {
    inset: auto 0 0;
    height: 58px;
    background: rgba(10, 9, 15, 0.86);
  }

  .profile-page .status-badge,
  .profile-page .primary-badge {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
    box-shadow: none !important;
  }

  .profile-page .status-pending { background: #493d27; }
  .profile-page .status-approved { background: #1f4938; }
  .profile-page .status-rejected { background: #502a31; }
  .profile-page .primary-badge { background: #171520; }

  .profile-page .photo-actions {
    right: 10px;
    bottom: 10px;
    left: 10px;
    contain: layout paint;
  }

  .profile-page .photo-upload label {
    min-height: 0 !important;
    height: 100%;
    transition: none !important;
  }

  .profile-page .surface-note {
    margin-top: 14px;
  }
}

@media (max-width: 430px) {
  /* Two compact previews reduce the amount of decoded image data visible at
     once and avoid a stack of very tall 330px layers during a fling. */
  .profile-page .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-page .photo-tile,
  .profile-page .photo-upload {
    aspect-ratio: 4 / 5;
    contain-intrinsic-size: 160px 200px;
  }

  .profile-page .photo-actions {
    align-items: flex-end;
    flex-direction: column;
    gap: 4px;
  }

  .profile-page .photo-actions button {
    font-size: 10px;
    line-height: 1.2;
  }

  .profile-page .status-badge,
  .profile-page .primary-badge {
    top: 7px;
    min-height: 21px;
    padding-inline: 6px;
    font-size: 7px;
  }

  .profile-page .status-badge { left: 7px; }
  .profile-page .primary-badge { right: 7px; }
}

/* Mobile profile polish v33 */
.back-button {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(17,15,25,.82);
  color: #fff;
  box-shadow: 0 8px 22px rgba(0,0,0,.20);
}

.back-button svg {
  display: block;
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.25;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.profile-primary-cta {
  margin-top: 30px;
}

@media (max-width: 720px) {
  .back-button {
    top: 14px;
    left: 14px;
    width: 42px;
    height: 42px;
    border-radius: 14px;
    background: rgba(15,13,22,.92);
    box-shadow: none;
  }

  .back-button svg {
    width: 21px;
    height: 21px;
  }

  .profile-detail .profile-primary-cta,
  .profile-detail .profile-match-chat {
    width: 100%;
    min-height: 50px;
    margin-top: 32px !important;
    padding: 14px 18px;
    border-radius: 16px;
  }
}

@media (max-width: 430px) {
  .profile-page .photo-upload {
    grid-column: 1 / -1;
    min-height: 0 !important;
    aspect-ratio: auto !important;
    overflow: visible;
    border-radius: 16px;
  }

  .profile-page .photo-upload label {
    display: grid;
    grid-template-columns: 46px minmax(0, 1fr);
    grid-template-areas:
      "icon title"
      "icon help";
    align-items: center;
    justify-items: start;
    min-height: 112px !important;
    height: auto;
    padding: 18px;
    border-radius: 16px;
    text-align: left;
  }

  .profile-page .photo-upload label > .upload-plus {
    grid-area: icon;
    width: 44px;
    height: 44px;
    margin: 0 14px 0 0;
    border-radius: 14px;
    font-size: 24px;
  }

  .profile-page .photo-upload label b {
    grid-area: title;
    align-self: end;
    font-size: 14px;
    line-height: 1.25;
  }

  .profile-page .photo-upload label small {
    grid-area: help;
    align-self: start;
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.45;
  }

  .profile-page .photo-upload-controls {
    margin-top: 10px;
  }
}

/* V34: 60fps recommendation swipe on desktop and mobile. */
.swipe-card {
  --swipe-x: 0px;
  --swipe-rotate: 0deg;
  transform: translate3d(
      var(--swipe-x),
      calc((var(--stack-depth, 0) - var(--stack-index)) * 8px),
      0
    )
    rotate(var(--swipe-rotate))
    scale(calc(1 - (var(--stack-depth, 0) - var(--stack-index)) * .012));
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform-style: flat;
  contain: layout paint style;
}

.swipe-card.is-dragging {
  transition: none !important;
  will-change: transform;
  box-shadow: none !important;
  cursor: grabbing;
  user-select: none;
  -webkit-user-select: none;
}

.swipe-card.is-dragging .swipe-gallery,
.swipe-card.is-dragging .swipe-card-copy,
.swipe-card.is-dragging .swipe-actions {
  pointer-events: none;
}

.swipe-card.is-dragging .swipe-tags span,
.swipe-card.is-dragging .swipe-profile-link,
.swipe-card.is-dragging .swipe-photo-nav {
  -webkit-backdrop-filter: none !important;
  backdrop-filter: none !important;
}

.swipe-card.is-dragging .swipe-card-gradient {
  background: linear-gradient(180deg, transparent 0%, rgba(8,7,13,.16) 28%, rgba(8,7,13,.9) 80%, #08070d 100%);
}

.swipe-gallery > img {
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@media (max-width: 700px) {
  .swipe-card {
    contain: layout paint style;
    box-shadow: none;
  }

  .swipe-card-gradient {
    background: linear-gradient(180deg, transparent 0%, rgba(8,7,13,.12) 30%, rgba(8,7,13,.92) 80%, #08070d 100%);
  }

  .swipe-tags span,
  .swipe-profile-link {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }
}


/* V35: bounded recommendation deck. Only three cards are rendered. */
.swipe-card:nth-last-child(n+4) { display: none !important; }
.swipe-card:not(:last-child) { pointer-events: none; }
.swipe-card:last-child {
  z-index: 3;
  content-visibility: visible;
}
.swipe-card:nth-last-child(2) { z-index: 2; opacity: .82; }
.swipe-card:nth-last-child(3) { z-index: 1; opacity: .48; }
.swipe-card:not(:last-child) .swipe-gallery > img:not(:first-of-type) { display: none !important; }


/* V43: exactly two complete recommendation cards: active + full next card. */
.swipe-card:nth-last-child(n+3) { display: none !important; }
.swipe-card:last-child {
  z-index: 2;
  opacity: 1;
  pointer-events: auto;
  content-visibility: visible;
}
.swipe-card:nth-last-child(2) {
  z-index: 1;
  opacity: .78;
  pointer-events: none;
  transform: translateY(11px) scale(.982);
  filter: none;
  content-visibility: visible;
}

/* Toasts should never cover the recommendation card. */
@media (max-width: 820px) {
  .toast-region {
    top: auto;
    right: 12px;
    bottom: calc(92px + env(safe-area-inset-bottom));
    left: 12px;
    width: auto;
  }
  .toast {
    align-items: center;
    min-height: 44px;
    padding: 10px 12px;
    border-radius: 13px;
    box-shadow: 0 6px 18px rgba(0,0,0,.24);
    transform: translateY(8px);
  }
  .toast.is-visible { transform: translateY(0); }
}

/* V45: lightweight Tinder-style swipe feedback (transform + opacity only). */
.swipe-card:nth-last-child(2) {
  --deck-progress: 0;
  opacity: calc(.78 + var(--deck-progress) * .22);
  transform: translate3d(0, calc(11px - var(--deck-progress) * 11px), 0)
    scale(calc(.982 + var(--deck-progress) * .018));
  transition: transform .22s ease-out, opacity .22s ease-out;
}

.swipe-stamp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  padding: 9px 14px;
  border-width: 3px;
  border-radius: 12px;
  background: rgba(10, 9, 15, .34);
  font-size: clamp(20px, 4vw, 29px);
  line-height: 1;
  opacity: 0;
  transform-origin: center;
  will-change: transform, opacity;
}
.swipe-stamp.like {
  transform: rotate(-12deg) scale(calc(.82 + var(--swipe-opacity, 0) * .18));
}
.swipe-stamp.pass {
  transform: rotate(12deg) scale(calc(.82 + var(--swipe-opacity, 0) * .18));
}
.swipe-stamp.super {
  transform: translateX(-50%) rotate(-4deg) scale(calc(.82 + var(--swipe-opacity, 0) * .18));
}
.swipe-card[data-swipe="super"] .swipe-stamp.super { opacity: 1; }

.swipe-card[data-swipe="like"] [data-card-action="like"] .swipe-action,
.swipe-card[data-swipe="pass"] [data-card-action="pass"] .swipe-action,
.swipe-card[data-swipe="super"] [data-card-action="superlike"] .swipe-action {
  transform: scale(calc(1 + var(--swipe-opacity, 0) * .12));
}
.swipe-actions .swipe-action {
  transition: transform .14s ease-out, opacity .14s ease-out;
  will-change: transform;
}

@media (max-width: 700px) {
  .swipe-stamp {
    top: 70px;
    min-width: 96px;
    padding: 8px 11px;
    border-width: 3px;
    background: rgba(10, 9, 15, .22);
  }
  .swipe-card:nth-last-child(2) {
    transition-duration: .18s;
  }
}

/* V46: lightweight committed-action burst effects. Only transform and opacity animate. */
.swipe-action-fx {
  position: absolute;
  z-index: 9;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  overflow: hidden;
}
.swipe-action-fx > span {
  position: absolute;
  display: grid;
  place-items: center;
  width: 112px;
  height: 112px;
  border: 5px solid currentColor;
  border-radius: 50%;
  font-size: 58px;
  font-weight: 900;
  line-height: 1;
  opacity: 0;
  transform: translate3d(0, 12px, 0) scale(.55);
  will-change: transform, opacity;
}
.swipe-action-fx .like { color: #43e597; }
.swipe-action-fx .pass { color: #ff5f73; font-size: 74px; padding-bottom: 8px; }
.swipe-action-fx .super { color: #62b7ff; font-size: 62px; }

/* Quiet preview while the finger follows the card. */
.swipe-card.is-dragging[data-swipe="like"] .swipe-action-fx .like,
.swipe-card.is-dragging[data-swipe="pass"] .swipe-action-fx .pass {
  opacity: calc(var(--swipe-opacity, 0) * .42);
  transform: translate3d(0, 0, 0) scale(calc(.65 + var(--swipe-opacity, 0) * .18));
}

/* Strong short burst only when an action is committed. */
.swipe-card.fx-burst[data-swipe="like"] .swipe-action-fx .like,
.swipe-card.fx-burst[data-swipe="pass"] .swipe-action-fx .pass,
.swipe-card.fx-burst[data-swipe="super"] .swipe-action-fx .super {
  animation: swipe-action-pop .34s cubic-bezier(.2,.82,.28,1) both;
}
.swipe-card.fx-burst[data-swipe="like"] .swipe-gallery::after,
.swipe-card.fx-burst[data-swipe="pass"] .swipe-gallery::after,
.swipe-card.fx-burst[data-swipe="super"] .swipe-gallery::after {
  content: "";
  position: absolute;
  z-index: 8;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  animation: swipe-action-flash .3s ease-out both;
}
.swipe-card.fx-burst[data-swipe="like"] .swipe-gallery::after { background: rgba(36, 218, 135, .17); }
.swipe-card.fx-burst[data-swipe="pass"] .swipe-gallery::after { background: rgba(255, 65, 91, .16); }
.swipe-card.fx-burst[data-swipe="super"] .swipe-gallery::after { background: rgba(50, 142, 255, .2); }

@keyframes swipe-action-pop {
  0% { opacity: 0; transform: translate3d(0, 14px, 0) scale(.5); }
  42% { opacity: 1; transform: translate3d(0, 0, 0) scale(1.06); }
  100% { opacity: 0; transform: translate3d(0, -8px, 0) scale(1.28); }
}
@keyframes swipe-action-flash {
  0% { opacity: 0; }
  28% { opacity: 1; }
  100% { opacity: 0; }
}

@media (max-width: 700px) {
  .swipe-action-fx > span {
    width: 90px;
    height: 90px;
    border-width: 4px;
    font-size: 47px;
  }
  .swipe-action-fx .pass { font-size: 61px; }
  .swipe-action-fx .super { font-size: 50px; }
  .swipe-card.fx-burst[data-swipe="like"] .swipe-action-fx .like,
  .swipe-card.fx-burst[data-swipe="pass"] .swipe-action-fx .pass,
  .swipe-card.fx-burst[data-swipe="super"] .swipe-action-fx .super {
    animation-duration: .28s;
  }
}

@media (prefers-reduced-motion: reduce) {
  .swipe-card.fx-burst .swipe-action-fx > span,
  .swipe-card.fx-burst .swipe-gallery::after {
    animation-duration: .01ms !important;
  }
}

/* V47: keep committed swipe action effects visible on mobile.
   The low-end-device optimisation above shortens every animation to 0.01ms;
   these compositor-only effects are safe and need an explicit override. */
.swipe-card.fx-burst[data-swipe="like"] .swipe-action-fx .like,
.swipe-card.fx-burst[data-swipe="pass"] .swipe-action-fx .pass,
.swipe-card.fx-burst[data-swipe="super"] .swipe-action-fx .super {
  animation-name: swipe-action-pop !important;
  animation-duration: .34s !important;
  animation-timing-function: cubic-bezier(.2,.82,.28,1) !important;
  animation-fill-mode: both !important;
  animation-iteration-count: 1 !important;
}
.swipe-card.fx-burst[data-swipe="like"] .swipe-gallery::after,
.swipe-card.fx-burst[data-swipe="pass"] .swipe-gallery::after,
.swipe-card.fx-burst[data-swipe="super"] .swipe-gallery::after {
  animation-name: swipe-action-flash !important;
  animation-duration: .30s !important;
  animation-timing-function: ease-out !important;
  animation-fill-mode: both !important;
  animation-iteration-count: 1 !important;
}

@media (max-width: 820px), (hover: none) and (pointer: coarse) {
  .swipe-card.fx-burst[data-swipe="like"] .swipe-action-fx .like,
  .swipe-card.fx-burst[data-swipe="pass"] .swipe-action-fx .pass,
  .swipe-card.fx-burst[data-swipe="super"] .swipe-action-fx .super {
    animation-duration: .30s !important;
  }
  .swipe-card.fx-burst[data-swipe="like"] .swipe-gallery::after,
  .swipe-card.fx-burst[data-swipe="pass"] .swipe-gallery::after,
  .swipe-card.fx-burst[data-swipe="super"] .swipe-gallery::after {
    animation-duration: .26s !important;
  }
}


/* V48: guaranteed viewport-level swipe action effect.
   It is detached from the departing card, so it cannot fly off-screen with it. */
.viewport-action-fx {
  position: fixed;
  z-index: 2147483000;
  inset: 0;
  display: grid;
  place-items: center;
  pointer-events: none;
  opacity: 1;
  contain: strict;
}
.viewport-action-fx::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0;
  will-change: opacity;
}
.viewport-action-fx.like::before { background: rgba(38, 223, 137, .20); }
.viewport-action-fx.pass::before { background: rgba(255, 70, 91, .20); }
.viewport-action-fx.super::before { background: rgba(55, 144, 255, .24); }
.viewport-action-fx-ring {
  position: relative;
  display: grid;
  place-items: center;
  width: 148px;
  height: 148px;
  border: 7px solid currentColor;
  border-radius: 50%;
  background: rgba(12, 10, 18, .72);
  font-size: 78px;
  font-weight: 950;
  line-height: 1;
  opacity: 0;
  transform: translate3d(0, 20px, 0) scale(.35);
  will-change: transform, opacity;
}
.viewport-action-fx.like { color: #43e597; }
.viewport-action-fx.pass { color: #ff5f73; }
.viewport-action-fx.pass .viewport-action-fx-ring { font-size: 98px; padding-bottom: 10px; }
.viewport-action-fx.super { color: #62b7ff; }
.viewport-action-fx.is-active::before {
  animation: viewport-action-flash .42s ease-out both !important;
}
.viewport-action-fx.is-active .viewport-action-fx-ring {
  animation: viewport-action-pop .46s cubic-bezier(.16,.86,.24,1) both !important;
}
@keyframes viewport-action-pop {
  0% { opacity: 0; transform: translate3d(0, 20px, 0) scale(.35); }
  28% { opacity: 1; transform: translate3d(0, 0, 0) scale(1.08); }
  64% { opacity: 1; transform: translate3d(0, -4px, 0) scale(.98); }
  100% { opacity: 0; transform: translate3d(0, -18px, 0) scale(1.22); }
}
@keyframes viewport-action-flash {
  0% { opacity: 0; }
  20% { opacity: 1; }
  100% { opacity: 0; }
}
@media (max-width: 700px) {
  .viewport-action-fx-ring {
    width: 122px;
    height: 122px;
    border-width: 6px;
    font-size: 64px;
  }
  .viewport-action-fx.pass .viewport-action-fx-ring { font-size: 82px; }
}
