: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: 600;
}

.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: 700;
  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: 700;
  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: 700;
}

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: 700;
}

.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: 700;
  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: 700;
}

.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: 700;
  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: 700;
}

.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: 700;
  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: 700;
  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: 700;
}

.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;
}

.profile-limits {
  display: grid;
  gap: 8px;
  margin: 0 0 12px;
}

.profile-limits > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.035);
}

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

.profile-limits b {
  font-size: 11px;
  text-align: right;
}

.profile-boost-form {
  margin-top: 0 !important;
  margin-bottom: 10px;
}

.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: 700;
  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: 700;
  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: 14px;
  font-weight: 700;
}

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

.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: 700;
  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: 700;
}

.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: 700;
  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: 700;
  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: 700;
  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: 700;
}

.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: 700;
}

.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: 700;
}

.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: 700;
}

.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: 700;
}

.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: 700;
  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: 700;
}

.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(5, minmax(0, 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: 700;
  text-transform: uppercase;
}

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

.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: 700;
  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: 700; }
  .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: 600;
}

.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: 700;
}

.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: 700;
  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: 700;
  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: 700;
}
.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: 700;
  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: 700;
}
.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-action {
  display: grid;
  place-items: center;
  width: 49px;
  height: 49px;
  border: 1px solid #eee7eb;
  border-radius: 50%;
  background: #fff;
  color: #807684;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.showcase-action:hover { transform: translateY(-3px) scale(1.04); }
.showcase-action svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.15;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.showcase-action-super { color: #7357ef; }
.showcase-action-super svg { fill: currentColor; stroke-width: 1.25; }
.showcase-action-like { border-color: transparent; background: var(--landing-pink); color: #fff; box-shadow: 0 13px 26px rgba(237,55,111,.22); }
.showcase-action-like svg { fill: currentColor; stroke-width: 1.25; }

.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: 700; 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: 700;
  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: 700; 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: 700; }
.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: 700; }
.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: 700; }
.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: 700; }
.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: 700; }

.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: 700; 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: 700; 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: 700; 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: 700; }
.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 { visibility:visible; 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%;display:grid;place-items:center;width:44px;height:44px;padding:0;transform:translateY(-50%);border:1px solid rgba(255,255,255,.2);border-radius:50%;background:rgba(9,8,14,.48);color:#fff;cursor:pointer;backdrop-filter:blur(8px);opacity:.82;transition:opacity .18s ease,background .18s ease,border-color .18s ease,transform .18s ease}
.swipe-photo-nav svg{display:block;width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.2;stroke-linecap:round;stroke-linejoin:round;pointer-events:none}
.swipe-photo-nav:hover{opacity:1;background:rgba(9,8,14,.72);border-color:rgba(255,255,255,.38);transform:translateY(-50%) scale(1.04)}
.swipe-photo-nav:focus-visible{outline:2px solid var(--accent);outline-offset:3px;opacity:1}
.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:700;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:700;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:700;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:700;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:700;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: 700;
}
.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:700; 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:700; 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:700; 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:700; }
.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:700; }
.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:700; }
.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:700; 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: 700;
}

.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: 700;
  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;
}

/* Open message controls below the bubble when the header would clip them. */
.message-popover.opens-down {
  top: calc(100% + 6px);
  bottom: auto;
}

.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: 700;
  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: 700;
    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: 700;
    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: 700;
  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: 700;
    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: 700;
}

.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: 700;
  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: 64px;
}

@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: 56px !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: 700;
  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: 700;
  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; }
}

/* Mobile recommendation filters: keep the save action permanently visible. */
@media (max-width: 700px) {
  .swipe-filter-panel {
    display: flex;
    flex-direction: column;
    max-height: min(88dvh, 720px);
    padding: 0;
    overflow: hidden;
  }

  .swipe-filter-panel .filter-head {
    position: relative;
    top: auto;
    flex: 0 0 auto;
    margin: 0;
    padding: 20px 18px 14px;
    border-bottom: 1px solid var(--line);
    background: rgba(24, 21, 34, .99);
  }

  .swipe-filter-panel .filter-form {
    display: flex;
    flex: 1 1 auto;
    min-height: 0;
    flex-direction: column;
    gap: 16px;
    padding: 16px 18px 0;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .swipe-filter-panel .filter-form > .btn[type="submit"] {
    position: sticky;
    z-index: 4;
    bottom: 0;
    flex: 0 0 auto;
    width: calc(100% + 36px);
    min-height: 52px;
    margin: 4px -18px 0;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    border-radius: 0;
    box-shadow: 0 -10px 24px rgba(10, 8, 18, .28) !important;
  }

  .swipe-filter-panel .filter-checks {
    padding-bottom: 4px;
  }
}

/* Mobile filters v50: keep the sheet and save action above the fixed tab bar. */
@media (max-width: 700px) {
  :root {
    --mobile-tabbar-space: 94px;
  }

  .swipe-filter-panel {
    bottom: calc(var(--mobile-tabbar-space) + env(safe-area-inset-bottom)) !important;
    max-height: min(
      76dvh,
      calc(100dvh - var(--mobile-tabbar-space) - env(safe-area-inset-bottom) - 18px)
    ) !important;
    border-radius: 24px !important;
  }

  .swipe-filter-panel .filter-form > .btn[type="submit"] {
    bottom: 0 !important;
    padding-bottom: 14px !important;
  }
}


/* Live liked-state on the profile detail page. */
.sticky-profile-actions.has-sent-like {
  opacity: 1;
}
.sticky-profile-actions .like-action.is-active {
  background: linear-gradient(145deg, #42d98f, #20b974) !important;
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(32, 185, 116, .25);
}
.sticky-profile-actions .like-action.is-active svg {
  fill: none !important;
  stroke: currentColor !important;
  stroke-width: 2.8 !important;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.sticky-profile-actions .super-action.is-active {
  transform: scale(.94);
  opacity: .72;
}


/* V5.3 — readable modern chat */
.chat-workspace {
  width: min(1440px, calc(100% - 28px));
  height: calc(100dvh - var(--header-height) - 28px);
  min-height: 560px;
  grid-template-columns: minmax(280px, 340px) minmax(0, 1fr);
  gap: 14px;
}

.chat-sidebar,
.chat-page {
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 22px;
  background: #15131d;
  box-shadow: 0 18px 50px rgba(0,0,0,.2);
}

.chat-sidebar > header h1 { font-size: 26px; line-height: 1.1; }
.chat-sidebar > header .overline { font-size: 11px; }
.chat-list-search input { height: 44px; font-size: 14px; }
.chat-sidebar-list { padding: 2px 8px 12px; }
.chat-sidebar-row {
  grid-template-columns: 52px minmax(0,1fr) auto;
  gap: 12px;
  min-height: 72px;
  padding: 10px;
}
.chat-sidebar-row .avatar-wrap img { width: 50px; height: 50px; }
.chat-sidebar-row b { font-size: 14px; line-height: 1.3; }
.chat-sidebar-row p { margin-top: 5px; font-size: 12px; line-height: 1.35; }
.chat-sidebar-row time { font-size: 10px; }
.chat-sidebar-row > span i { min-width: 22px; height: 22px; font-size: 10px; }

.chat-page { overflow: hidden; }
.chat-header {
  min-height: 74px;
  padding: 10px 16px;
  background: #17151f;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.chat-back,
.chat-menu { width: 42px; height: 42px; border-radius: 14px; }
.chat-back svg,
.send-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.chat-person { min-width: 0; }
.chat-person .avatar-wrap img { width: 48px; height: 48px; }
.chat-person b { font-size: 16px; }
.chat-person small { font-size: 12px; }

.messages-shell { background: #111019; }
.messages {
  padding: 30px 28px 24px;
  scroll-padding-bottom: 120px;
}
.messages-loading,
.chat-search-empty { font-size: 14px; }
.message-date {
  margin: 18px auto;
  padding: 6px 11px;
  font-size: 11px;
  font-weight: 700;
}
.message-row { min-height: 42px; margin: 6px 0; gap: 8px; }
.message-row.grouped { margin-top: 2px; }
.message-bubble {
  max-width: min(72%, 680px);
  padding: 11px 14px 9px;
  border-radius: 20px 20px 20px 7px;
  background: #292632;
  box-shadow: none;
}
.message-row.mine .message-bubble {
  border-radius: 20px 20px 7px 20px;
  background: linear-gradient(135deg,#e84586,#7758df);
  box-shadow: none;
}
.message-bubble p {
  margin: 0;
  font-size: 15px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.message-bubble small {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  margin-top: 5px;
  font-size: 10px;
  line-height: 1.2;
}
.message-bubble img { max-height: min(58vh, 520px); border-radius: 15px; }
.message-quote b { font-size: 11px; }
.message-quote span { font-size: 12px; }
.message-tool { width: 32px; height: 32px; }
.reaction-pill { min-height: 27px; font-size: 11px; }

.composer {
  padding: 10px 16px 16px;
  background: #111019;
}
.composer-input {
  border-radius: 20px;
  background: #24212d;
  box-shadow: none;
}
.composer-main { gap: 6px; padding: 6px; }
.composer textarea {
  min-height: 44px;
  max-height: 150px;
  padding: 11px 8px 9px;
  font-size: 15px;
  line-height: 1.45;
}
.attach-button,
.send-button { width: 42px; height: 42px; border-radius: 14px; }
.send-button { display:grid; place-items:center; }
.composer-meta { padding: 1px 13px 8px; font-size: 10px; }

@media (max-width: 760px) {
  .chat-workspace {
    width: 100%;
    height: calc(100dvh - var(--header-height) - 72px - env(safe-area-inset-bottom));
    min-height: 0;
  }
  .chat-page {
    border: 0;
    border-radius: 0;
    background: #111019;
  }
  .chat-header {
    min-height: 64px;
    padding: 8px 10px;
  }
  .chat-back,
  .chat-menu { width: 40px; height: 40px; border-radius: 13px; }
  .chat-person .avatar-wrap img { width: 42px; height: 42px; }
  .chat-person b { font-size: 15px; }
  .chat-person small { font-size: 11px; }
  .messages {
    padding: 20px 10px 16px;
  }
  .message-row { margin: 5px 0; gap: 5px; }
  .message-bubble {
    max-width: 88%;
    padding: 10px 12px 8px;
    border-radius: 18px 18px 18px 6px;
  }
  .message-row.mine .message-bubble { border-radius: 18px 18px 6px 18px; }
  .message-bubble p { font-size: 16px; line-height: 1.45; }
  .message-bubble small { font-size: 10px; }
  .message-tools { opacity: .45; }
  .message-tool { width: 29px; height: 29px; }
  .composer {
    padding: 7px 8px calc(8px + env(safe-area-inset-bottom));
  }
  .composer-input { border-radius: 18px; }
  .composer-main { grid-template-columns: auto minmax(0,1fr) auto auto; gap: 3px; padding: 5px; }
  .composer textarea {
    min-height: 42px;
    padding: 10px 6px 8px;
    font-size: 16px;
  }
  .attach-button,
  .send-button { width: 39px; height: 39px; border-radius: 13px; }
  .emoji-button { display: none; }
  .composer-main { grid-template-columns: auto minmax(0,1fr) auto; }
  .chat-network-notice { font-size: 11px; backdrop-filter:none; }
}


/* V54: rebuilt readable chat, especially for mobile */
.chat-workspace {
  max-width: 1420px;
  min-height: 0;
}
.chat-page {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: #111019;
}
.chat-header {
  position: relative;
  z-index: 5;
  background: #17151f;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.chat-person { min-width: 0; }
.chat-person > div:last-child { min-width: 0; }
.chat-person b {
  display: block;
  overflow: hidden;
  font-size: 16px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-person small { margin-top: 3px; font-size: 12px; line-height: 1.2; }
.messages-shell { min-height: 0; background: #111019; }
.messages {
  min-height: 0;
  padding: 24px 18px 18px;
  overscroll-behavior: contain;
  overflow-x: hidden;
}
.message-row { margin: 6px 0; }
.message-bubble {
  max-width: min(72%, 720px);
  padding: 12px 15px 10px;
  border: 0;
  background: #292632;
  box-shadow: none;
}
.message-row.mine .message-bubble {
  background: linear-gradient(135deg,#e84586,#7658dd);
}
.message-bubble p {
  font-size: 16px;
  line-height: 1.48;
  letter-spacing: 0;
}
.message-bubble small {
  margin-top: 6px;
  font-size: 11px;
  opacity: .78;
}

/* One visual border only: textarea itself is borderless. */
.composer {
  position: relative;
  z-index: 6;
  padding: 10px 14px 14px;
  border: 0;
  background: #111019;
}
.composer-input {
  overflow: visible;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 20px;
  background: #24212d;
  box-shadow: none;
}
.composer-input:focus-within {
  border-color: rgba(244,88,147,.62);
  box-shadow: 0 0 0 3px rgba(244,63,135,.10);
}
.composer-main {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto auto;
  align-items: end;
  gap: 5px;
  padding: 5px;
}
.composer textarea,
.composer textarea:hover,
.composer textarea:focus,
.composer textarea:focus-visible {
  min-width: 0;
  min-height: 44px;
  max-height: 148px;
  margin: 0;
  padding: 11px 8px 9px;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  color: #fff;
  font-size: 16px;
  line-height: 1.45;
  resize: none;
}
.composer textarea::placeholder { color: #918998; }
.composer-meta { display: none !important; }
.attach-button,
.send-button {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 14px;
}
.send-button svg { width: 21px; height: 21px; }

/* Sidebar readability. */
.chat-sidebar-row { grid-template-columns: 52px minmax(0,1fr) auto; gap: 11px; padding: 11px 10px; }
.chat-sidebar-row .avatar-wrap img { width: 50px; height: 50px; border-radius: 16px; }
.chat-sidebar-row b { font-size: 14px; }
.chat-sidebar-row p { margin-top: 5px; font-size: 12px; line-height: 1.25; }
.chat-sidebar-row time { font-size: 10px; }

@media (max-width: 760px) {
  body:has(.chat-workspace) {
    overflow: hidden;
  }
  body:has(.chat-workspace) .app-main {
    min-height: 0;
    padding: 0;
  }
  body:has(.chat-workspace) .page-shell {
    width: 100%;
    max-width: none;
    min-height: 0;
    margin: 0;
    padding: 0;
  }
  .chat-workspace {
    position: relative;
    width: 100%;
    height: calc(100dvh - var(--header-height) - 72px - env(safe-area-inset-bottom));
    min-height: 0;
    margin: 0;
    border: 0;
    border-radius: 0;
  }
  .chat-sidebar { display: none; }
  .chat-page {
    display: grid;
    grid-template-rows: auto auto minmax(0,1fr) auto;
    width: 100%;
    height: 100%;
    min-height: 0;
    border: 0;
    border-radius: 0;
  }
  .chat-header {
    min-height: 62px;
    padding: 7px 8px;
  }
  .chat-back,
  .chat-menu {
    width: 40px;
    height: 40px;
    border-radius: 12px;
  }
  .chat-head-actions { gap: 2px; }
  .chat-person { gap: 9px; }
  .chat-person .avatar-wrap img { width: 42px; height: 42px; }
  .chat-person b { font-size: 16px; }
  .chat-person small { font-size: 12px; }
  .chat-search { min-width: 0; }
  .messages-shell { min-height: 0; overflow: hidden; }
  .messages {
    height: 100%;
    min-height: 0;
    padding: 16px 9px 12px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }
  .message-row { margin: 5px 0; gap: 4px; }
  .message-bubble {
    max-width: 88%;
    padding: 11px 13px 9px;
    border-radius: 18px 18px 18px 6px;
  }
  .message-row.mine .message-bubble { border-radius: 18px 18px 6px 18px; }
  .message-bubble p { font-size: 16px; line-height: 1.46; }
  .message-bubble small { font-size: 11px; }
  .message-tools { opacity: .35; }
  .composer {
    padding: 7px 8px calc(8px + env(safe-area-inset-bottom));
    background: #111019;
  }
  .composer-input { border-radius: 18px; }
  .composer-main {
    grid-template-columns: auto minmax(0,1fr) auto;
    gap: 3px;
    padding: 4px;
  }
  .composer textarea,
  .composer textarea:hover,
  .composer textarea:focus,
  .composer textarea:focus-visible {
    min-height: 42px;
    max-height: 112px;
    padding: 10px 7px 8px;
    font-size: 16px;
  }
  .attach-button,
  .send-button {
    width: 40px;
    height: 40px;
    border-radius: 13px;
  }
  .emoji-button { display: none; }
  .reply-preview { padding: 8px 10px 6px; }
  .attachment-preview { padding: 7px 9px; }
}


/* v55: compact mobile chat composer. Prevent global textarea min-height from
   inflating the empty message field before the autosize script runs. */
.composer textarea,
.composer textarea:hover,
.composer textarea:focus,
.composer textarea:focus-visible {
  box-sizing: border-box;
  height: 44px;
  min-height: 44px;
  max-height: 132px;
  overflow-y: hidden;
}

@media (max-width: 760px) {
  .composer {
    padding: 6px 8px calc(7px + env(safe-area-inset-bottom));
  }
  .composer-input {
    width: 100%;
    border-radius: 17px;
  }
  .composer-main {
    min-height: 50px;
    grid-template-columns: 40px minmax(0, 1fr) 42px;
    align-items: center;
    gap: 4px;
    padding: 4px;
  }
  .composer textarea,
  .composer textarea:hover,
  .composer textarea:focus,
  .composer textarea:focus-visible {
    width: 100%;
    height: 42px;
    min-height: 42px;
    max-height: 112px;
    padding: 9px 7px;
    overflow-y: hidden;
    line-height: 24px;
  }
  .composer textarea:not(:placeholder-shown) {
    overflow-y: auto;
  }
  .attach-button,
  .send-button {
    align-self: center;
  }
}


/* v60: final mobile conversation layout.
   One viewport-sized grid: header / optional search / messages / composer. */
@media (max-width: 760px) {
  body.chat-route {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    overscroll-behavior: none;
  }

  body.chat-route,
  body.chat-route *,
  body.chat-route *::before,
  body.chat-route *::after {
    box-sizing: border-box;
  }

  body.chat-route .site-header,
  body.chat-route .mobile-tabbar,
  body.chat-route .chat-sidebar {
    display: none !important;
  }

  body.chat-route .app-main,
  body.chat-route .page-shell {
    width: 100% !important;
    height: 100% !important;
    min-height: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
  }

  body.chat-route .chat-workspace {
    position: fixed !important;
    inset: 0 !important;
    display: block !important;
    width: 100% !important;
    height: 100vh !important;
    height: 100dvh !important;
    min-height: 0 !important;
    max-height: none !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    transform: none !important;
  }

  body.chat-route .chat-page {
    position: relative !important;
    display: grid !important;
    grid-template-rows: auto auto minmax(0, 1fr) auto !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: #0d0c14 !important;
  }

  body.chat-route .chat-header {
    position: relative !important;
    inset: auto !important;
    z-index: 5 !important;
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    transform: none !important;
  }

  body.chat-route .chat-search {
    position: relative !important;
    inset: auto !important;
    z-index: 4 !important;
    width: 100% !important;
    min-width: 0 !important;
    flex: none !important;
    transform: none !important;
  }

  body.chat-route .chat-search[hidden],
  body.chat-route .chat-search:not(.is-open) {
    display: none !important;
  }

  body.chat-route .messages-shell {
    position: relative !important;
    min-width: 0 !important;
    min-height: 0 !important;
    width: 100% !important;
    height: auto !important;
    overflow: hidden !important;
  }

  body.chat-route .messages {
    position: relative !important;
    width: 100% !important;
    height: 100% !important;
    min-width: 0 !important;
    min-height: 0 !important;
    margin: 0 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: contain;
    -webkit-overflow-scrolling: touch;
    scroll-padding-block: 14px !important;
  }

  body.chat-route .composer {
    position: relative !important;
    inset: auto !important;
    z-index: 6 !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    flex: none !important;
    margin: 0 !important;
    padding: 7px 8px calc(10px + env(safe-area-inset-bottom)) !important;
    overflow: visible !important;
    transform: none !important;
    background: #111019 !important;
    border-top: 1px solid rgba(255,255,255,.07) !important;
  }

  body.chat-route .composer-input {
    width: 100% !important;
    min-width: 0 !important;
    max-width: none !important;
    margin: 0 !important;
    border: 1px solid rgba(255,255,255,.14) !important;
    border-radius: 18px !important;
    background: #211e2b !important;
    box-shadow: none !important;
  }

  body.chat-route .composer-input:focus-within {
    border-color: rgba(244,63,135,.72) !important;
    box-shadow: 0 0 0 2px rgba(244,63,135,.12) !important;
  }

  body.chat-route .composer-main {
    display: grid !important;
    grid-template-columns: 42px minmax(0, 1fr) 42px !important;
    align-items: end !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    padding: 5px !important;
  }

  body.chat-route .emoji-button {
    display: none !important;
  }

  body.chat-route .composer textarea,
  body.chat-route .composer textarea:hover,
  body.chat-route .composer textarea:focus,
  body.chat-route .composer textarea:focus-visible {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 42px !important;
    height: 42px;
    max-height: 116px !important;
    margin: 0 !important;
    padding: 10px 6px 8px !important;
    overflow-y: auto !important;
    resize: none !important;
    border: 0 !important;
    outline: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    color: #fff !important;
    font-size: 16px !important;
    line-height: 1.4 !important;
  }

  body.chat-route .attach-button,
  body.chat-route .send-button {
    width: 42px !important;
    height: 42px !important;
    min-width: 42px !important;
    min-height: 42px !important;
    align-self: end !important;
    margin: 0 !important;
    border-radius: 14px !important;
  }
}

/* v61: mobile chat viewport is driven by the actually visible browser area.
   The composer stays in the final grid row and can never fall below it. */
@media (max-width: 760px) {
  body.chat-route {
    --chat-visible-height: 100svh;
  }

  body.chat-route .chat-workspace {
    position: fixed !important;
    top: 0 !important;
    right: 0 !important;
    bottom: auto !important;
    left: 0 !important;
    width: 100vw !important;
    height: var(--chat-visible-height, 100svh) !important;
    max-height: var(--chat-visible-height, 100svh) !important;
    overflow: hidden !important;
  }

  body.chat-route .chat-page {
    display: grid !important;
    grid-template-rows: auto minmax(0, 1fr) auto !important;
    height: 100% !important;
    max-height: 100% !important;
    overflow: hidden !important;
  }

  body.chat-route .chat-search {
    position: absolute !important;
    top: var(--chat-header-height, 72px) !important;
    right: 8px !important;
    left: 8px !important;
    z-index: 20 !important;
  }

  body.chat-route .chat-search[hidden],
  body.chat-route .chat-search:not(.is-open) {
    display: none !important;
  }

  body.chat-route .messages-shell {
    grid-row: 2 !important;
    min-height: 0 !important;
    overflow: hidden !important;
  }

  body.chat-route .composer {
    grid-row: 3 !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    bottom: auto !important;
    flex-shrink: 0 !important;
    min-height: 64px !important;
    padding: 7px 8px max(9px, env(safe-area-inset-bottom)) !important;
    background: #111019 !important;
  }
}

/* V63: reactions must be directly available on touch devices. */
@media (max-width: 760px), (hover: none) {
  .message-tools {
    display: flex !important;
    opacity: .92 !important;
    transform: none !important;
    pointer-events: auto !important;
  }

  .message-tool-reaction {
    display: grid !important;
    place-items: center;
  }

  .message-tool {
    width: 32px;
    height: 32px;
    font-size: 17px;
    touch-action: manipulation;
  }

  .reaction-menu {
    max-width: calc(100vw - 24px);
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
  }

  .reaction-menu button {
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    font-size: 20px;
  }
}


/* v64: restore normal page scrolling on mobile outside an open chat.
   The previous selector `html, body.chat-route` locked the root element globally. */
@media (max-width: 760px) {
  html {
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
    touch-action: pan-y !important;
  }

  body:not(.chat-route) {
    position: static !important;
    width: 100% !important;
    height: auto !important;
    min-height: 100% !important;
    max-height: none !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior-y: auto !important;
    touch-action: pan-y !important;
  }

  body:not(.chat-route) .app-main,
  body:not(.chat-route) .page-shell {
    height: auto !important;
    min-height: 0 !important;
    max-height: none !important;
    overflow: visible !important;
    touch-action: pan-y !important;
  }
}

/* V65: one compact control near a message; reactions live inside the dots menu. */
.message-tool-reaction {
  display: none !important;
}

.message-action-menu {
  min-width: 206px;
}

.message-action-reactions {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 2px;
  padding: 3px;
}

.message-action-reaction {
  display: grid !important;
  grid-template-columns: 1fr !important;
  place-items: center;
  min-width: 0 !important;
  width: 31px !important;
  height: 31px !important;
  min-height: 31px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 9px !important;
  background: transparent !important;
  font-size: 17px !important;
  line-height: 1 !important;
}

.message-action-reaction:hover,
.message-action-reaction.is-selected {
  background: rgba(255,255,255,.09) !important;
  transform: scale(1.08);
}

.message-action-reaction.is-selected {
  box-shadow: inset 0 0 0 1px rgba(255,93,153,.5);
}

.message-action-divider {
  height: 1px;
  margin: 3px 5px;
  background: rgba(255,255,255,.08);
}

@media (max-width: 760px), (hover: none) {
  .message-tools {
    opacity: .58 !important;
  }

  .message-tool-more {
    display: grid !important;
  }

  .message-action-menu {
    min-width: 218px;
    max-width: calc(100vw - 24px);
  }

  .message-action-reactions {
    gap: 3px;
  }

  .message-action-reaction {
    width: 32px !important;
    height: 34px !important;
    min-height: 34px !important;
    font-size: 19px !important;
    touch-action: manipulation;
  }
}


/* V66: expanded reaction palette with positive, funny and negative reactions. */
.message-action-menu {
  width: min(292px, calc(100vw - 24px));
  min-width: 0;
}

.message-action-reactions {
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 4px;
  padding: 5px;
}

.message-action-reaction {
  width: 35px !important;
  height: 35px !important;
  min-height: 35px !important;
  font-size: 20px !important;
}

@media (max-width: 760px), (hover: none) {
  .message-action-menu {
    width: min(286px, calc(100vw - 20px));
    max-width: calc(100vw - 20px);
  }

  .message-action-reactions {
    grid-template-columns: repeat(7, minmax(0, 1fr));
    gap: 3px;
    padding: 5px;
  }

  .message-action-reaction {
    width: 34px !important;
    height: 38px !important;
    min-height: 38px !important;
    font-size: 21px !important;
  }
}

/* Mobile landing header should match the registration/auth pages. */
@media (max-width: 980px) {
  .landing-body .site-header {
    min-height: var(--header-height);
    padding-inline: 22px;
    border-bottom-color: rgba(255, 255, 255, 0.06);
    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);
  }

  .landing-body .brand-wordmark strong {
    color: #fff;
  }

  .landing-body .brand-wordmark b {
    color: #ff6a9c;
  }

  .landing-body .brand-wordmark small {
    color: #8f8798;
  }

  .landing-body .nav-toggle {
    border-color: var(--line);
    background: var(--surface);
  }

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

  .landing-body .site-nav {
    border-color: var(--line-strong);
    background: rgba(25, 22, 35, 0.98);
    color: #fff;
  }

  .landing-body .site-nav > a,
  .landing-body .site-nav > form button {
    color: #bdb7c8;
  }

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

  .landing-body .site-nav .nav-cta,
  .landing-body .site-nav .nav-cta:hover {
    background: linear-gradient(135deg, var(--primary), #d7338b);
    color: #fff;
  }
}

/* Mobile landing performance: avoid expensive paint effects and skip below-fold layout until needed. */
@media (max-width: 680px) {
  .landing-body .landing-block,
  .landing-body .landing-final,
  .landing-body .landing-footer {
    content-visibility: auto;
    contain-intrinsic-size: 1px 720px;
  }

  .landing-body .site-header,
  .landing-body .site-nav,
  .landing-body .showcase-card,
  .landing-body .district-map-card,
  .landing-body .map-caption,
  .landing-body .district-pills span,
  .landing-body .final-card {
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .landing-body .new-hero::before,
  .landing-body .map-rings,
  .landing-body .new-hero-copy h1 em::after {
    display: none;
  }

  .landing-body .showcase-card-main,
  .landing-body .district-map-card,
  .landing-body .final-card,
  .landing-body .safety-shield {
    box-shadow: 0 12px 30px rgba(44,31,47,.12);
  }

  .landing-body .reveal,
  .landing-body .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .showcase-photo picture,
  .showcase-photo picture img {
    display: block;
    width: 100%;
    height: 100%;
  }
  .showcase-photo picture img { object-fit: cover; }
}


/* V67: improve readability of the local SEO section on all screens. */
.landing-body .seo-section {
  background: #fff;
}

.landing-body .seo-section .landing-heading > span {
  color: #c92f66;
}

.landing-body .seo-section .landing-heading h2 {
  color: #241b28;
}

.landing-body .seo-copy {
  color: #514854;
}

.landing-body .seo-copy p {
  margin: 0;
  color: #514854;
  font-size: 15px;
  line-height: 1.8;
}

.landing-body .seo-copy p + p {
  margin-top: 18px;
}

@media (max-width: 680px) {
  .landing-body .seo-section .landing-heading > span {
    color: #b52359;
  }

  .landing-body .seo-section .landing-heading h2 {
    color: #1f1723;
  }

  .landing-body .seo-copy p {
    color: #403844;
    font-size: 14px;
    line-height: 1.72;
  }
}

/* Desktop hero photo framing: keep the couple visible instead of cropping mostly foliage. */
@media (min-width: 921px) {
  .new-hero-grid {
    grid-template-columns: minmax(0, 1.02fr) minmax(470px, .98fr);
    gap: 64px;
  }

  .hero-showcase {
    min-height: 650px;
  }

  .showcase-card-main {
    right: 0;
    width: min(470px, 100%);
    transform: rotate(.7deg);
  }

  .showcase-photo {
    height: 420px;
  }

  .showcase-photo picture,
  .showcase-photo picture img {
    display: block;
    width: 100%;
    height: 100%;
  }

  .showcase-photo picture img {
    object-fit: cover;
    object-position: center 64%;
  }
}

/* V68: smooth mobile scrolling through the landing hero card. */
@media (max-width: 680px), (hover: none) and (pointer: coarse) {
  .landing-body .hero-showcase {
    perspective: none !important;
    contain: layout paint;
  }

  .landing-body .showcase-card-main {
    transform: none !important;
    box-shadow: 0 5px 16px rgba(44, 31, 47, .12) !important;
    contain: layout paint;
    isolation: isolate;
  }

  .landing-body .showcase-photo,
  .landing-body .showcase-photo picture,
  .landing-body .showcase-photo picture img {
    contain: paint;
  }

  .landing-body .showcase-photo picture img {
    transform: none !important;
    filter: none !important;
    will-change: auto !important;
  }

  .landing-body .showcase-top > span {
    background: rgba(24, 16, 27, .88) !important;
    -webkit-backdrop-filter: none !important;
    backdrop-filter: none !important;
  }

  .landing-body .showcase-photo::after {
    background: linear-gradient(to bottom, rgba(24,16,27,0), rgba(24,16,27,.76));
  }

  /* Avoid a layout/decode hitch immediately after the hero while flinging. */
  .landing-body .landing-proof,
  .landing-body .district-section {
    content-visibility: visible !important;
    contain: none !important;
  }
}

/* Own profile action below the complete profile card */
.profile-owner-actions {
  width: min(1120px, calc(100% - 40px));
  margin: 28px auto 0;
  display: flex;
  justify-content: center;
}

.profile-owner-actions .btn {
  width: auto;
  min-width: 220px;
  min-height: 46px;
  padding-inline: 28px;
}

@media (max-width: 760px) {
  .profile-owner-actions {
    width: calc(100% - 30px);
    margin-top: 24px;
  }

  .profile-owner-actions .btn {
    width: auto;
    max-width: 100%;
  }
}


/* Keep the finished-recommendations notice visible without page scrolling. */
.swipe-stage.is-empty {
  display: grid;
  place-items: center;
  min-height: calc(100dvh - 190px);
}

.swipe-stage.is-empty .empty-state {
  width: min(100%, 560px);
  margin: 0;
}

@media (max-width: 700px) {
  .swipe-stage.is-empty {
    min-height: calc(100dvh - 150px);
    padding: 16px 14px 24px;
  }

  .swipe-stage.is-empty .empty-state {
    padding: 42px 24px;
  }
}

/* Clearly distinguish incoming superlikes from ordinary likes. */
.person-card.is-superlike {
    position: relative;
    overflow: hidden;
    border: 2px solid rgba(83, 185, 255, .95);
    box-shadow:
        0 0 0 4px rgba(83, 185, 255, .14),
        0 0 34px rgba(53, 155, 255, .40),
        0 24px 65px rgba(23, 87, 190, .32);
    transform: translateY(-2px);
}
.person-card.is-superlike::before {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 2;
    pointer-events: none;
    background:
        radial-gradient(circle at 82% 12%, rgba(132, 220, 255, .32), transparent 32%),
        linear-gradient(145deg, rgba(63, 173, 255, .13), transparent 48%);
}
.person-card.is-superlike::after {
    content: "";
    position: absolute;
    inset: -45%;
    z-index: 2;
    pointer-events: none;
    background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.22) 50%, transparent 58%);
    display: none;
}
.superlike-card-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-height: 38px;
    padding: 7px 12px 7px 8px;
    color: #fff;
    border: 1px solid rgba(207, 239, 255, .85);
    border-radius: 999px;
    background: linear-gradient(135deg, #1676ff, #48c7ff);
    box-shadow: 0 8px 24px rgba(21, 124, 255, .52), inset 0 1px 0 rgba(255,255,255,.35);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .11em;
    text-shadow: 0 1px 4px rgba(0,0,0,.28);
}
.superlike-card-badge b {
    display: grid;
    place-items: center;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255,255,255,.22);
    font-size: 17px;
    line-height: 1;
}
.person-card.is-superlike > div {
    z-index: 4;
}
.person-card.is-superlike .superlike-card-caption {
    display: inline-block;
    max-width: 95%;
    padding: 5px 9px;
    color: #eaf8ff !important;
    border: 1px solid rgba(113, 205, 255, .45);
    border-radius: 8px;
    background: rgba(12, 93, 174, .58);
    backdrop-filter: blur(8px);
    font-weight: 700;
    letter-spacing: 0;
    line-height: 1.25;
}
/* /likes page: make a received superlike impossible to miss. */
.social-page .people-grid .person-card.is-superlike {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 3px solid #47b9ff !important;
  background: #111827;
  box-shadow:
    0 0 0 5px rgba(71,185,255,.20),
    0 0 42px rgba(43,151,255,.62),
    0 24px 64px rgba(0,77,180,.42) !important;
}
.social-page .people-grid .person-card.is-superlike::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(31,159,255,.30), transparent 38%, rgba(5,62,139,.42));
}
.social-page .people-grid .person-card.is-superlike::after {
  content: "SUPER LIKE";
  position: absolute;
  right: -39px;
  top: 25px;
  z-index: 6;
  width: 164px;
  padding: 7px 0;
  transform: rotate(45deg);
  animation: none !important;
  background: linear-gradient(90deg,#1687ff,#56d7ff);
  color: #fff;
  box-shadow: 0 8px 25px rgba(0,112,255,.55);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .14em;
  text-align: center;
}
.social-page .people-grid .person-card.is-superlike > img {
  filter: saturate(1.08) contrast(1.04);
}
.social-page .people-grid .person-card.is-superlike > div {
  z-index: 5;
}
.social-page .people-grid .superlike-card-badge {
  position: absolute;
  left: 12px;
  top: 12px;
  z-index: 7;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 36px;
  padding: 6px 11px 6px 7px;
  border: 2px solid rgba(255,255,255,.95);
  border-radius: 999px;
  background: linear-gradient(135deg,#087dff,#54d8ff);
  color: white;
  box-shadow: 0 8px 25px rgba(0,110,255,.65);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .09em;
}
.social-page .people-grid .superlike-card-badge b {
  display: grid;
  place-items: center;
  width: 23px;
  height: 23px;
  border-radius: 50%;
  background: rgba(255,255,255,.24);
  font-size: 16px;
}
.social-page .people-grid .superlike-card-caption {
  display: inline-flex;
  margin-bottom: 6px;
  padding: 5px 8px;
  border: 1px solid rgba(181,231,255,.75);
  border-radius: 7px;
  background: rgba(0,91,181,.75);
  color: #fff !important;
  box-shadow: 0 5px 18px rgba(0,82,170,.35);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0;
}


/* Matched profile chat action inside the profile card. */
.profile-detail > .profile-chat-actions {
  width: 100%;
  margin: 28px 0 4px;
  display: flex;
  justify-content: center;
}

.profile-detail > .profile-chat-actions .btn {
  width: auto;
  min-width: 220px;
  min-height: 46px;
  padding-inline: 28px;
}

@media (max-width: 760px) {
  .profile-detail > .profile-chat-actions {
    margin-top: 22px;
  }

  .profile-detail > .profile-chat-actions .btn {
    width: auto;
    max-width: 100%;
  }
}

/* Profile reaction panel: lower than the profile content, but still visible without scrolling to page end. */
@media (min-width: 721px) {
  .profile-detail > .sticky-profile-actions {
    margin-top: clamp(28px, 4vh, 46px);
    margin-bottom: 18px;
    align-self: center;
  }
}

/* Registration: required main photo with the same crop workflow as profile photos. */
.register-photo-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}
.register-photo-preview img {
  width: 88px;
  height: 112px;
  object-fit: cover;
  border-radius: 13px;
  box-shadow: 0 0 0 1px rgba(255,255,255,.09);
}
@media (max-width: 560px) {
  .register-photo-preview { align-items: stretch; flex-direction: column; }
  .register-photo-preview img { width: 100%; height: 210px; }
}

/* Registration photo step: polished upload card and crop dialog. */
.register-photo-section {
  position: relative;
  overflow: hidden;
  padding: clamp(18px, 3vw, 26px);
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 22px;
  background:
    radial-gradient(circle at 92% 8%, rgba(255,62,139,.13), transparent 32%),
    linear-gradient(145deg, rgba(255,255,255,.045), rgba(255,255,255,.018));
}
.register-photo-section::after {
  content: "";
  position: absolute;
  width: 180px;
  height: 180px;
  right: -90px;
  bottom: -110px;
  border-radius: 50%;
  background: rgba(103,78,255,.11);
  filter: blur(18px);
  pointer-events: none;
}
.form-section-heading {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 18px;
}
.form-section-heading h3 { margin: 4px 0 6px; font-size: clamp(20px, 3vw, 25px); }
.form-section-heading p { margin: 0; max-width: 560px; color: var(--muted); line-height: 1.55; }
.form-section-kicker {
  display: block;
  color: #ff77b7;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.register-photo-required {
  flex: 0 0 auto;
  padding: 7px 11px;
  border: 1px solid rgba(255,97,170,.28);
  border-radius: 999px;
  background: rgba(255,62,139,.09);
  color: #ff91c5;
  font-size: 12px;
  font-weight: 700;
}
.register-photo-picker { position: relative; z-index: 1; }
.register-photo-dropzone {
  display: grid;
  grid-template-columns: 58px minmax(0,1fr) auto;
  align-items: center;
  gap: 16px;
  min-height: 112px;
  padding: 18px;
  border: 1px dashed rgba(255,255,255,.22);
  border-radius: 18px;
  background: rgba(8,7,15,.46);
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, transform .18s ease, box-shadow .18s ease;
}
.register-photo-dropzone:hover,
.register-photo-dropzone:focus-within {
  border-color: rgba(255,74,155,.62);
  background: rgba(255,62,139,.045);
  box-shadow: 0 0 0 4px rgba(255,62,139,.07);
  transform: translateY(-1px);
}
.register-photo-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.register-photo-dropzone-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(145deg, #ff3e8b, #7a55ff);
  box-shadow: 0 12px 30px rgba(172,50,174,.27);
}
.register-photo-dropzone-icon svg { width: 27px; height: 27px; }
.register-photo-dropzone-copy { display: grid; gap: 5px; min-width: 0; }
.register-photo-dropzone-copy strong { color: #fff; font-size: 16px; }
.register-photo-dropzone-copy small { color: var(--muted); font-size: 13px; line-height: 1.4; }
.register-photo-dropzone-action {
  padding: 10px 14px;
  border-radius: 12px;
  background: rgba(255,255,255,.08);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.register-photo-preview {
  display: grid;
  grid-template-columns: 126px minmax(0,1fr);
  align-items: stretch;
  gap: 18px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(115,217,162,.22);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(49,185,118,.085), rgba(255,255,255,.025));
}
.register-photo-preview-image { position: relative; overflow: hidden; min-height: 156px; border-radius: 15px; background: #090811; }
.register-photo-preview img { width: 100%; height: 100%; min-height: 156px; object-fit: cover; border-radius: 0; box-shadow: none; }
.register-photo-preview-image > span {
  position: absolute;
  left: 9px;
  bottom: 9px;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(7,6,13,.82);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}
.register-photo-preview-body { display: flex; flex-direction: column; justify-content: center; min-width: 0; }
.register-photo-preview-body > strong { color: #fff; font-size: 17px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.register-photo-preview-body > p { margin: 7px 0 16px; color: var(--muted); line-height: 1.45; }
.register-photo-preview-actions { display: flex; flex-wrap: wrap; gap: 9px; }

.register-crop-dialog { width: min(760px, calc(100vw - 24px)); border-radius: 26px; overflow: hidden; }
.register-crop-dialog .crop-shell { padding: 0; }
.register-crop-header {
  padding: 22px 24px 17px;
  border-bottom: 1px solid rgba(255,255,255,.075);
  background: linear-gradient(180deg, rgba(255,255,255,.035), transparent);
}
.register-crop-header > div { min-width: 0; }
.register-crop-header h3 { margin: 3px 0 5px; font-size: 23px; }
.register-crop-header p { margin: 0; color: var(--muted); line-height: 1.45; }
.crop-close { flex: 0 0 auto; }
.register-crop-stage {
  width: calc(100% - 48px);
  max-width: 650px;
  aspect-ratio: 16 / 10;
  margin: 20px auto 16px;
  border-radius: 20px;
  background:
    linear-gradient(45deg, #0e0c16 25%, transparent 25%),
    linear-gradient(-45deg, #0e0c16 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #0e0c16 75%),
    linear-gradient(-45deg, transparent 75%, #0e0c16 75%), #090811;
  background-size: 18px 18px;
  background-position: 0 0, 0 9px, 9px -9px, -9px 0;
}
.register-crop-stage:active { cursor: grabbing; }
.crop-stage-shade {
  position: absolute;
  z-index: 1;
  inset: 0;
  pointer-events: none;
  background: rgba(4,3,9,.43);
}
.register-crop-frame {
  z-index: 3;
  border: 2px solid #fff;
  border-radius: 18px;
  box-shadow: 0 0 0 9999px rgba(0,0,0,.32), 0 0 0 1px rgba(0,0,0,.45), 0 12px 35px rgba(0,0,0,.28);
}
.register-crop-frame::before,
.register-crop-frame::after { opacity: .8; }
.crop-corner { position: absolute; width: 22px; height: 22px; border-color: #ff4d9c; border-style: solid; }
.crop-corner-tl { left: -3px; top: -3px; border-width: 4px 0 0 4px; border-radius: 8px 0 0 0; }
.crop-corner-tr { right: -3px; top: -3px; border-width: 4px 4px 0 0; border-radius: 0 8px 0 0; }
.crop-corner-bl { left: -3px; bottom: -3px; border-width: 0 0 4px 4px; border-radius: 0 0 0 8px; }
.crop-corner-br { right: -3px; bottom: -3px; border-width: 0 4px 4px 0; border-radius: 0 0 8px 0; }
.crop-drag-hint {
  position: absolute;
  z-index: 4;
  left: 50%;
  bottom: 13px;
  transform: translateX(-50%);
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(8,7,15,.76);
  color: rgba(255,255,255,.8);
  font-size: 11px;
  font-weight: 700;
  pointer-events: none;
  backdrop-filter: blur(7px);
}
.register-crop-controls {
  display: grid;
  grid-template-columns: 40px minmax(0,1fr) 40px;
  align-items: end;
  gap: 12px;
  width: calc(100% - 48px);
  max-width: 600px;
  margin: 0 auto 20px;
}
.register-crop-controls .crop-zoom { margin: 0; max-width: none; }
.register-crop-controls .crop-zoom > span { display: block; margin-bottom: 8px; color: var(--muted); font-size: 12px; font-weight: 700; }
.crop-zoom-button {
  width: 40px;
  height: 40px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 12px;
  background: rgba(255,255,255,.055);
  color: #fff;
  font-size: 22px;
  cursor: pointer;
}
.crop-zoom-button:hover { background: rgba(255,255,255,.1); }
.register-crop-footer {
  padding: 17px 24px 22px;
  border-top: 1px solid rgba(255,255,255,.075);
  background: rgba(8,7,15,.28);
}
.register-crop-footer > div { display: flex; gap: 10px; }

@media (max-width: 620px) {
  .form-section-heading { align-items: flex-start; }
  .register-photo-dropzone { grid-template-columns: 50px minmax(0,1fr); padding: 15px; }
  .register-photo-dropzone-icon { width: 50px; height: 50px; border-radius: 15px; }
  .register-photo-dropzone-action { grid-column: 1 / -1; text-align: center; }
  .register-photo-preview { grid-template-columns: 96px minmax(0,1fr); align-items: stretch; flex-direction: initial; }
  .register-photo-preview-image { min-height: 132px; }
  .register-photo-preview img { width: 100%; height: 100%; min-height: 132px; }
  .register-photo-preview-actions .btn { flex: 1 1 135px; }
  .register-crop-header { padding: 18px; }
  .register-crop-header p { font-size: 13px; }
  .register-crop-stage { width: calc(100% - 24px); margin-top: 14px; aspect-ratio: 4 / 5; }
  .register-crop-controls { width: calc(100% - 28px); }
  .register-crop-footer { align-items: stretch !important; flex-direction: column-reverse; padding: 15px; }
  .register-crop-footer > div { display: grid; grid-template-columns: 1fr 1.35fr; }
  .register-crop-footer > .btn { width: 100%; }
}

/* Registration photo: compact, same visual language as profile upload. */
.register-photo-section {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
}
.register-photo-section::after,
.form-section-heading,
.register-photo-required,
.register-photo-dropzone-icon,
.register-photo-dropzone-copy,
.register-photo-dropzone-action,
.crop-stage-shade,
.crop-drag-hint,
.crop-corner,
.register-crop-controls { display: none !important; }
.register-photo-label { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 9px; }
.register-photo-label > span { color: #fff; font-weight: 700; }
.register-photo-label > small { color: var(--muted); font-size: 12px; }
.register-photo-picker { position: relative; }
.register-photo-dropzone {
  display: grid;
  place-items: center;
  min-height: 150px;
  padding: 20px;
  border: 1px dashed rgba(255,255,255,.2);
  border-radius: 16px;
  background: rgba(255,255,255,.025);
  text-align: center;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease;
}
.register-photo-dropzone:hover { border-color: rgba(255,62,139,.55); background: rgba(255,62,139,.035); }
.register-photo-dropzone .upload-plus { display: block; margin-bottom: 7px; font-size: 34px; line-height: 1; color: #ff4d9c; }
.register-photo-dropzone b { display: block; color: #fff; }
.register-photo-dropzone small { display: block; margin-top: 5px; color: var(--muted); }
.register-photo-dropzone > img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; }
.register-photo-picker.has-photo .register-photo-dropzone { display: none; }
.register-photo-preview {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.03);
}
.register-photo-preview > img {
  width: 72px;
  height: 90px;
  min-height: 0;
  flex: 0 0 auto;
  object-fit: cover;
  border-radius: 12px;
}
.register-photo-preview > div { min-width: 0; }
.register-photo-preview strong { display: block; max-width: 340px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; font-size: 14px; }
.register-photo-preview-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.register-crop-dialog { width: min(680px, calc(100vw - 24px)); border-radius: 24px; }
.register-crop-dialog .crop-shell { padding: 20px; }
.register-crop-dialog .crop-shell header,
.register-crop-dialog .crop-shell footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.register-crop-dialog .crop-shell footer > div { display: flex; gap: 10px; }
.register-crop-stage { width: min(560px, 100%); aspect-ratio: 4 / 3; margin: 18px auto; border-radius: 18px; background: #090811; }
.register-crop-dialog .crop-zoom { display: block; margin: 0 auto 18px; max-width: 520px; }
@media (max-width: 560px) {
  .register-photo-label { align-items: flex-start; flex-direction: column; gap: 3px; }
  .register-photo-preview { align-items: center; flex-direction: row; }
  .register-photo-preview > img { width: 68px; height: 86px; }
  .register-photo-preview-actions .btn { flex: 1 1 130px; }
  .register-crop-dialog .crop-shell { padding: 15px; }
  .register-crop-dialog .crop-shell footer { align-items: stretch; flex-direction: column-reverse; }
  .register-crop-dialog .crop-shell footer > div { display: grid; grid-template-columns: 1fr 1.2fr; }
}

/* Registration photo: intentionally simple and compact. */
.register-photo-section { padding: 0; border: 0; background: none; }
.register-photo-label { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; }
.register-photo-label > span { color:#fff; font-weight:700; }
.register-photo-label > small { color:var(--muted); font-size:12px; }
.register-photo-input { position:absolute; width:1px; height:1px; opacity:0; pointer-events:none; }
.register-photo-select {
  display:flex; align-items:center; gap:13px; min-height:74px; padding:13px 15px;
  border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.025);
  cursor:pointer; transition:border-color .15s ease, background .15s ease;
}
.register-photo-select:hover { border-color:rgba(255,62,139,.48); background:rgba(255,62,139,.035); }
.register-photo-select-icon {
  display:grid; place-items:center; width:44px; height:44px; flex:0 0 44px;
  border-radius:12px; background:rgba(255,62,139,.13); color:#ff4d9c;
  font-size:27px; line-height:1;
}
.register-photo-select-copy { display:grid; gap:3px; min-width:0; }
.register-photo-select-copy b { color:#fff; font-size:14px; }
.register-photo-select-copy small { color:var(--muted); font-size:12px; line-height:1.35; }
.register-photo-picker.has-photo .register-photo-select { display:none; }
.register-photo-preview {
  display:flex; align-items:center; gap:13px; margin:0; padding:10px;
  border:1px solid var(--line); border-radius:14px; background:rgba(255,255,255,.025);
}
.register-photo-preview > img {
  display:block; width:58px; height:72px; min-height:0; flex:0 0 58px;
  object-fit:cover; border-radius:10px; background:#090811;
}
.register-photo-preview-content { min-width:0; }
.register-photo-preview-content > strong {
  display:block; max-width:360px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap;
  color:#fff; font-size:13px;
}
.register-photo-preview-actions { display:flex; flex-wrap:wrap; gap:7px; margin-top:8px; }
.register-photo-preview-actions .btn { min-height:34px; padding:7px 12px; }
@media (max-width:560px) {
  .register-photo-label { align-items:baseline; flex-direction:row; }
  .register-photo-select { min-height:68px; padding:11px 12px; }
  .register-photo-preview { align-items:center; flex-direction:row; }
  .register-photo-preview > img { width:54px; height:68px; }
  .register-photo-preview-actions .btn { flex:0 0 auto; }
}

/* Registration photo: intentionally minimal — upload, crop, preview. */
.register-photo-section {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: none;
  overflow: visible;
}
.register-photo-section::after { display: none; }
.register-photo-label {
  display: block;
  margin-bottom: 9px;
  color: #fff;
  font-weight: 700;
}
.register-photo-picker { position: relative; }
.register-photo-input {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0,0,0,0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.register-photo-select {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 76px;
  padding: 16px;
  border: 1px dashed rgba(255,255,255,.22);
  border-radius: 14px;
  background: rgba(255,255,255,.025);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
  transition: border-color .16s ease, background .16s ease;
}
.register-photo-select:hover {
  border-color: rgba(255,62,139,.62);
  background: rgba(255,62,139,.045);
}
.register-photo-select-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: rgba(255,62,139,.14);
  color: #ff5da8;
  font-size: 24px;
  line-height: 1;
}
.register-photo-preview {
  display: block;
  width: 112px;
  aspect-ratio: 4 / 5;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 14px;
  background: #0b0a12;
  cursor: pointer;
  box-shadow: none;
}
.register-photo-preview[hidden] { display: none !important; }
.register-photo-preview img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
  border-radius: 0;
  box-shadow: none;
}
.register-photo-picker.has-photo .register-photo-select { display: none; }
@media (max-width: 560px) {
  .register-photo-select { min-height: 70px; }
  .register-photo-preview { width: 104px; }
}

/* Registration preview must not exist visually until a crop is confirmed. */
.register-photo-preview,
.register-photo-preview[hidden] {
  display: none !important;
}
.register-photo-picker.has-photo .register-photo-preview:not([hidden]) {
  display: block !important;
}

/* Registration photo: clean upload icon and removable preview. */
.register-photo-select-icon {
  position: relative;
  display: block;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border-radius: 11px;
  background: rgba(255,62,139,.14);
}
.register-photo-select-icon::before,
.register-photo-select-icon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 2px;
  border-radius: 999px;
  background: #ff5da8;
  transform: translate(-50%, -50%);
}
.register-photo-select-icon::after {
  transform: translate(-50%, -50%) rotate(90deg);
}
.register-photo-preview {
  position: relative;
  width: 112px;
  aspect-ratio: 4 / 5;
  overflow: visible;
  border: 0;
  background: transparent;
}
.register-photo-preview[hidden] { display: none !important; }
.register-photo-picker.has-photo .register-photo-preview:not([hidden]) { display: block !important; }
.register-photo-preview-image {
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 14px;
  background: #0b0a12;
  cursor: pointer;
}
.register-photo-preview-image img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.register-photo-remove {
  position: absolute;
  z-index: 2;
  top: -8px;
  right: -8px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 2px solid #191624;
  border-radius: 50%;
  background: #f43f85;
  color: #fff;
  font-size: 20px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(244,63,133,.28);
}
.register-photo-remove:hover { background: #ff5b9d; }

/* Registration photo final polish */
.register-photo-preview { width: 112px; aspect-ratio: auto; }
.register-photo-preview-image { aspect-ratio: auto; }
.register-photo-preview-image img { height: auto; max-height: 150px; object-fit: contain; }
.register-photo-remove { font-size: 0; }
.register-photo-remove::before,
.register-photo-remove::after {
  content: '';
  position: absolute;
  left: 50%; top: 50%;
  width: 12px; height: 2px;
  border-radius: 999px;
  background: currentColor;
  transform-origin: center;
}
.register-photo-remove::before { transform: translate(-50%, -50%) rotate(45deg); }
.register-photo-remove::after { transform: translate(-50%, -50%) rotate(-45deg); }
.register-crop-dialog .crop-shell footer { justify-content: flex-end; }

/* Activity: keep the destructive action visually distinct on hover */
.activity-notification-actions [data-delete-all-notifications] {
  border-color: rgba(255, 107, 124, 0.28);
  background: rgba(255, 107, 124, 0.08);
  color: #ff9aa6;
}
.activity-notification-actions [data-delete-all-notifications]:hover:not(:disabled) {
  border-color: rgba(255, 107, 124, 0.62);
  background: rgba(255, 107, 124, 0.2);
  color: #fff;
  box-shadow: 0 10px 24px rgba(255, 107, 124, 0.16);
}

/* Activity tabs: clearer visual separation */
.activity-page .section-tabs {
  display: inline-grid;
  grid-template-columns: repeat(2, max-content);
  gap: 8px;
  padding: 6px;
  border-color: rgba(255, 255, 255, 0.11);
  background: rgba(255, 255, 255, 0.035);
}

.activity-page .section-tabs button {
  min-height: 40px;
  padding: 10px 17px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease;
}

.activity-page .section-tabs button:hover:not(.active) {
  border-color: rgba(255, 255, 255, 0.10);
  background: rgba(255, 255, 255, 0.055);
  color: #fff;
}

.activity-page .section-tabs button.active {
  border-color: rgba(255, 92, 151, 0.42);
  background: linear-gradient(135deg, rgba(244, 63, 135, 0.22), rgba(105, 92, 246, 0.22));
  color: #fff;
  box-shadow: 0 7px 20px rgba(0, 0, 0, 0.18), inset 0 0 0 1px rgba(255, 255, 255, 0.035);
}

.activity-page .section-tabs b {
  margin-left: 6px;
  background: var(--primary);
  color: #fff;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08), 0 4px 12px rgba(244, 63, 135, 0.22);
}

.activity-page .section-tabs button.active b {
  background: var(--primary);
}

@media (max-width: 520px) {
  .activity-page .section-tabs {
    display: grid;
    grid-template-columns: 1fr 1fr;
    width: 100%;
  }

  .activity-page .section-tabs button {
    padding-inline: 10px;
  }
}

/* Desktop primary navigation: lightweight text tabs instead of boxed buttons. */
@media (min-width: 901px) {
  .app-body .site-nav > a[href="/discover"],
  .app-body .site-nav > a[href="/matches"],
  .app-body .site-nav > a[href="/activity"],
  .app-body .site-nav > a[href="/plans"] {
    min-height: 42px;
    padding-inline: 11px;
    border-radius: 0;
    background: transparent !important;
    box-shadow: none !important;
  }

  .app-body .site-nav > a[href="/discover"]:hover,
  .app-body .site-nav > a[href="/matches"]:hover,
  .app-body .site-nav > a[href="/activity"]:hover,
  .app-body .site-nav > a[href="/plans"]:hover {
    background: transparent !important;
    color: #fff;
  }

  .app-body .site-nav > a[href="/discover"]::after,
  .app-body .site-nav > a[href="/matches"]::after,
  .app-body .site-nav > a[href="/activity"]::after,
  .app-body .site-nav > a[href="/plans"]::after {
    content: "";
    position: absolute;
    left: 11px;
    right: 11px;
    bottom: 3px;
    height: 2px;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary), #8b5cf6);
    opacity: 0;
    transform: scaleX(.45);
    transition: opacity .18s ease, transform .18s ease;
  }

  .app-body .site-nav > a[href="/discover"].active::after,
  .app-body .site-nav > a[href="/matches"].active::after,
  .app-body .site-nav > a[href="/activity"].active::after,
  .app-body .site-nav > a[href="/plans"].active::after {
    opacity: 1;
    transform: scaleX(1);
  }
}

/* Secondary page tabs: lightweight text navigation without boxed container. */
.section-tabs,
.activity-page .section-tabs {
  display: inline-flex;
  align-items: center;
  gap: 22px;
  margin-bottom: 24px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.section-tabs a,
.activity-page .section-tabs button {
  position: relative;
  min-height: 0;
  padding: 8px 0 10px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: none;
  cursor: pointer;
  transition: color .18s ease;
}

.section-tabs a::after,
.activity-page .section-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 999px;
  background: transparent;
  transform: scaleX(.45);
  opacity: 0;
  transition: transform .18s ease, opacity .18s ease, background .18s ease;
}

.section-tabs a:hover,
.activity-page .section-tabs button:hover:not(.active) {
  border: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.section-tabs a.active,
.activity-page .section-tabs button.active {
  border: 0;
  background: transparent;
  color: #fff;
  box-shadow: none;
}

.section-tabs a.active::after,
.activity-page .section-tabs button.active::after {
  background: linear-gradient(90deg, var(--primary), #8f6cff);
  transform: scaleX(1);
  opacity: 1;
}

.activity-page .section-tabs b {
  margin-left: 6px;
  background: var(--primary);
  color: #fff;
  box-shadow: none;
}

@media (max-width: 520px) {
  .section-tabs,
  .activity-page .section-tabs {
    display: flex;
    width: 100%;
    gap: 18px;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .section-tabs::-webkit-scrollbar,
  .activity-page .section-tabs::-webkit-scrollbar {
    display: none;
  }
  .section-tabs a,
  .activity-page .section-tabs button {
    flex: 0 0 auto;
    padding-inline: 0;
  }
}

/* V32: keep the notification bell visible in the authenticated light landing header. */
@media (min-width: 981px) {
  .landing-body.is-authenticated .notification-trigger {
    border-color: rgba(28, 23, 34, .12);
    background: rgba(255, 255, 255, .58);
    color: #403946;
  }

  .landing-body.is-authenticated .notification-bell {
    color: #403946;
    opacity: .9;
  }

  .landing-body.is-authenticated .notification-trigger:hover,
  .landing-body.is-authenticated .notification-trigger[aria-expanded="true"] {
    border-color: rgba(237, 55, 111, .34);
    background: rgba(237, 55, 111, .08);
    color: var(--landing-pink);
  }

  .landing-body.is-authenticated .notification-trigger:hover .notification-bell,
  .landing-body.is-authenticated .notification-trigger[aria-expanded="true"] .notification-bell {
    color: var(--landing-pink);
    opacity: 1;
  }

  .landing-body.is-authenticated .notification-trigger > i {
    border-color: var(--landing-cream);
  }
}

/* V69: keep the landing preview card shadow clean and symmetrical on mobile. */
@media (max-width: 680px), (hover: none) and (pointer: coarse) {
  .landing-body main,
  .landing-body .new-hero {
    overflow-x: hidden;
    overflow-y: visible;
  }

  .landing-body .hero-showcase {
    width: 100%;
    padding: 10px 8px 28px;
    contain: none !important;
  }

  .landing-body .showcase-card-main {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin: 0;
    contain: none !important;
    overflow: hidden;
    box-shadow: 0 14px 34px rgba(44, 31, 47, .16) !important;
  }
}


/* Unified landing page link arrows */
.landing-body .btn,
.landing-body .text-link {
  align-items: center;
}
.landing-link-arrow {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  margin-left: 6px;
  vertical-align: middle;
  transform: translateY(0);
}
.landing-link-arrow svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.landing-link-arrow-down {
  width: 17px;
  height: 17px;
}
.landing-body a:hover .landing-link-arrow-right { transform: translateX(2px); }
.landing-body a:hover .landing-link-arrow-down { transform: translateY(2px); }
.landing-link-arrow { transition: transform .18s ease; }
@media (max-width: 640px) {
  .landing-link-arrow { width: 17px; height: 17px; margin-left: 5px; }
}

.boost-shop {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  max-width: 860px;
  margin: 18px auto 0;
  padding: 25px 27px;
}
.boost-shop-copy { display: flex; align-items: center; gap: 16px; }
.boost-shop-copy h2 { margin: 4px 0 6px; font-size: 20px; }
.boost-shop-copy p { max-width: 470px; color: var(--muted); font-size: 10px; line-height: 1.6; }
.boost-shop-form { display: flex; align-items: end; gap: 14px; }
.boost-shop-form label { display: grid; gap: 7px; color: var(--muted); font-size: 9px; }
.quantity-control { display: grid; grid-template-columns: 35px 58px 35px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; }
.quantity-control button,
.quantity-control input { height: 40px; border: 0; background: rgba(255,255,255,.035); color: #fff; text-align: center; }
.quantity-control button { cursor: pointer; font-size: 18px; }
.quantity-control button:disabled { cursor: default; opacity: .35; }
.quantity-control input { width: 58px; border-right: 1px solid var(--line); border-left: 1px solid var(--line); font-weight: 700; -moz-appearance: textfield; }
.quantity-control input::-webkit-inner-spin-button,
.quantity-control input::-webkit-outer-spin-button { margin: 0; -webkit-appearance: none; }
.boost-shop-total { display: grid; min-width: 92px; }
.boost-shop-total span,
.boost-shop-total small { color: var(--muted); font-size: 8px; }
.boost-shop-total b { margin: 2px 0; font-size: 22px; white-space: nowrap; }
@media (max-width: 760px) {
  .boost-shop { grid-template-columns: 1fr; }
  .boost-shop-form { display: grid; grid-template-columns: 1fr 1fr; align-items: end; }
  .boost-shop-form .btn { grid-column: 1 / -1; }
}

/* Compact account controls */
.profile-summary .account-plan-card {
  margin: 20px 0 12px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
}

.profile-summary .account-plan-card.is-premium {
  border-color: rgba(226,48,132,.26);
  background: linear-gradient(145deg, rgba(226,48,132,.13), rgba(255,255,255,.035) 62%);
}

.account-plan-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.account-plan-head > div {
  display: grid;
  gap: 3px;
}

.account-plan-label {
  color: var(--profile-muted, var(--muted));
  font-size: 11px;
}

.account-plan-head strong {
  color: #fff;
  font-size: 20px;
  line-height: 1.1;
}

.account-plan-action {
  padding: 7px 11px;
  border-radius: 10px;
  background: rgba(255,255,255,.09);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}

.account-plan-action:hover {
  background: rgba(255,255,255,.15);
}

.premium-expiry {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin-top: 12px;
  color: #fff;
}

.premium-expiry b {
  font-size: 22px;
  line-height: 1;
}

.premium-expiry span {
  color: var(--profile-muted, var(--muted));
  font-size: 11px;
}

.account-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 15px;
}

.account-metrics > div {
  min-width: 0;
  padding-top: 11px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.account-metrics span,
.account-metrics small {
  display: block;
  overflow: hidden;
  color: var(--profile-muted, var(--muted));
  font-size: 9px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-metrics b {
  display: block;
  margin: 4px 0 2px;
  color: #fff;
  font-size: 18px;
  line-height: 1;
}

.profile-summary .profile-boost-form {
  margin: 0 0 8px !important;
}

.profile-account-links {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 2px 0;
}

.profile-account-links a,
.profile-account-links button {
  padding: 5px 0;
  border: 0;
  background: transparent;
  color: var(--profile-muted, var(--muted));
  font: inherit;
  font-size: 11px;
  text-decoration: none;
  cursor: pointer;
}

.profile-account-links a:hover,
.profile-account-links button:hover {
  color: #fff;
}

.profile-account-links form {
  width: auto !important;
  margin: 0 !important;
}

@media (max-width: 420px) {
  .account-metrics { gap: 6px; }
  .profile-summary .account-plan-card { padding: 14px; }
}

/* Polished premium card and profile actions */
.account-plan-note {
  margin: 12px 0 0;
  color: var(--profile-muted, var(--muted));
  font-size: 11px;
  line-height: 1.55;
}

.premium-expiry {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: 10px;
  margin-top: 14px;
}

.premium-expiry > div {
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 12px;
  background: rgba(12,10,20,.2);
}

.premium-expiry span {
  display: block;
  margin-bottom: 5px;
  color: var(--profile-muted, var(--muted));
  font-size: 9px;
  line-height: 1.25;
}

.premium-expiry b,
.premium-expiry strong {
  display: block;
  overflow: hidden;
  color: #fff;
  font-size: 16px;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.premium-expiry b { font-size: 19px; }

.profile-account-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  margin-top: 8px;
}

.profile-account-actions form { margin: 0 !important; }
.profile-account-actions .btn {
  min-height: 42px;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 11px;
  white-space: nowrap;
}

.btn-gold {
  border: 1px solid rgba(255,232,158,.62);
  background: linear-gradient(135deg, #ffe38a 0%, #e7ad31 52%, #c88414 100%);
  color: #2d1b00;
  box-shadow: 0 9px 22px rgba(210,151,28,.22), inset 0 1px rgba(255,255,255,.48);
}

.btn-gold:hover:not(:disabled) {
  background: linear-gradient(135deg, #ffea9f 0%, #efbd43 52%, #d7931c 100%);
  box-shadow: 0 11px 26px rgba(210,151,28,.3), inset 0 1px rgba(255,255,255,.55);
}

.btn-account-logout {
  border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.055);
  color: var(--profile-muted, var(--muted));
}

.btn-account-logout:hover:not(:disabled) {
  border-color: rgba(255,255,255,.18);
  background: rgba(255,255,255,.1);
  color: #fff;
}

@media (max-width: 420px) {
  .account-plan-head { align-items: flex-start; }
  .account-plan-action { flex: 0 0 auto; }
  .premium-expiry { grid-template-columns: 1fr; }
  .account-metrics { grid-template-columns: repeat(3, minmax(72px, 1fr)); overflow-x: auto; padding-bottom: 2px; }
  .profile-account-actions { grid-template-columns: 1fr; }
  .profile-account-actions .btn { width: 100%; }
  .profile-account-actions form { width: 100% !important; }
}

@media (max-width: 420px) {
  .account-metrics {
    grid-template-columns: 1fr;
    gap: 0;
    overflow: visible;
  }
  .account-metrics > div {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 10px;
    padding: 10px 0;
  }
  .account-metrics > div:first-child { border-top: 0; }
  .account-metrics span { grid-column: 1; grid-row: 1; }
  .account-metrics small { grid-column: 1; grid-row: 2; }
  .account-metrics b {
    grid-column: 2;
    grid-row: 1 / span 2;
    margin: 0;
    font-size: 20px;
    text-align: right;
  }
}

/* Account plan card rebuild v32 */
.profile-summary .account-plan-card {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  margin: 20px 0 12px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(255,255,255,.055), rgba(255,255,255,.022));
}
.profile-summary .account-plan-card.is-premium {
  border-color: rgba(244,63,142,.34);
  background:
    radial-gradient(circle at 100% 0, rgba(244,63,142,.2), transparent 42%),
    linear-gradient(145deg, rgba(244,63,142,.1), rgba(255,255,255,.025) 60%);
}
.account-plan-head { display:flex; align-items:center; justify-content:space-between; gap:14px; }
.account-plan-title { display:flex !important; align-items:center; gap:11px; min-width:0; }
.account-plan-icon { display:grid; place-items:center; flex:0 0 38px; width:38px; height:38px; border-radius:12px; background:rgba(255,255,255,.075); color:#fff; font-size:19px; }
.is-premium .account-plan-icon { background:rgba(244,63,142,.17); color:#ff8fbd; }
.account-plan-title > div { display:grid; gap:3px; min-width:0; }
.account-plan-label { font-size:10px; letter-spacing:.02em; }
.account-plan-head strong { font-size:21px; }
.account-plan-action { flex:0 0 auto; min-height:36px; display:inline-flex; align-items:center; justify-content:center; padding:8px 13px; border:1px solid rgba(255,255,255,.1); border-radius:11px; }
.account-plan-note { margin:15px 0 14px; font-size:12px; line-height:1.55; }
.account-premium-cta { display:flex; width:100%; min-height:46px; gap:8px; margin:0 0 16px; border:1px solid rgba(255,171,208,.55); background:linear-gradient(135deg,#ff3d8f,#d9277a); color:#fff; box-shadow:0 10px 24px rgba(226,48,132,.24); font-size:13px; font-weight:900; }
.account-premium-cta:hover { background:linear-gradient(135deg,#ff529e,#e33485); color:#fff; }
.premium-status { display:grid; grid-template-columns:minmax(105px,.75fr) minmax(0,1.25fr); gap:10px; margin-top:15px; }
.premium-status > div { min-width:0; padding:12px 13px; border:1px solid rgba(255,255,255,.085); border-radius:13px; background:rgba(10,8,17,.24); }
.premium-status span,.premium-status small { display:block; color:var(--profile-muted,var(--muted)); font-size:9px; line-height:1.25; }
.premium-status-days { display:grid; grid-template-columns:auto 1fr; align-items:end; column-gap:6px; }
.premium-status-days span { grid-column:1/-1; margin-bottom:3px; }
.premium-status-days b { color:#fff; font-size:25px; line-height:1; }
.premium-status-days small { padding-bottom:2px; }
.premium-status-date { display:flex; flex-direction:column; justify-content:center; }
.premium-status-date span { margin-bottom:5px; }
.premium-status-date strong { overflow:hidden; color:#fff; font-size:16px; line-height:1.15; text-overflow:ellipsis; white-space:nowrap; }
.account-metrics { gap:0; margin-top:16px; border-top:1px solid rgba(255,255,255,.08); }
.account-metrics > div { padding:13px 10px 0; border-top:0; border-left:1px solid rgba(255,255,255,.08); }
.account-metrics > div:first-child { padding-left:0; border-left:0; }
.account-metrics > div:last-child { padding-right:0; }
.account-metrics span,.account-metrics small { font-size:9px; }
.account-metrics b { font-size:19px; }
.profile-account-actions { grid-template-columns:minmax(0,1fr) 78px; }
.profile-account-actions .btn { display:flex; align-items:center; justify-content:center; }

@media (max-width: 1100px) {
  .profile-summary .account-plan-card,
  .profile-summary .profile-boost-form,
  .profile-summary .profile-account-actions { grid-column:1 / -1; }
}

@media (max-width: 720px) {
  .profile-summary .account-plan-card,
  .profile-summary .profile-boost-form,
  .profile-summary .profile-account-actions { grid-column:1 / -1 !important; width:100%; }
  .profile-summary .account-plan-card { margin-top:2px; padding:16px; }
  .premium-status { grid-template-columns:110px minmax(0,1fr); }
  .account-metrics { grid-template-columns:repeat(3,minmax(0,1fr)); overflow:visible; }
  .account-metrics > div { display:block; padding:12px 8px 0; border-top:0; border-left:1px solid rgba(255,255,255,.08); }
  .account-metrics > div:first-child { padding-left:0; border-left:0; }
  .account-metrics span,.account-metrics small { display:block; white-space:normal; }
  .account-metrics b { margin:4px 0 2px; text-align:left; }
  .profile-account-actions { grid-template-columns:minmax(0,1fr) 76px; }
}

@media (max-width: 390px) {
  .premium-status { grid-template-columns:1fr; }
  .premium-status-days { grid-template-columns:auto 1fr; }
  .account-metrics { grid-template-columns:1fr; border-top:0; }
  .account-metrics > div { display:grid; grid-template-columns:minmax(0,1fr) auto; align-items:center; padding:10px 0; border-top:1px solid rgba(255,255,255,.08); border-left:0; }
  .account-metrics span { grid-column:1; grid-row:1; }
  .account-metrics small { grid-column:1; grid-row:2; }
  .account-metrics b { grid-column:2; grid-row:1 / span 2; margin:0; font-size:20px; text-align:right; }
  .profile-account-actions { grid-template-columns:1fr; }
  .profile-account-actions form,.profile-account-actions .btn { width:100% !important; }
}


/* Account plan card final polish v33 */
.profile-summary .account-plan-card {
  margin: 18px 0 12px;
  padding: 16px;
  border-radius: 16px;
  border-color: rgba(255,255,255,.09);
  background: rgba(255,255,255,.035);
  box-shadow: none;
}
.profile-summary .account-plan-card.is-premium {
  border-color: rgba(244,63,142,.38);
  background:
    linear-gradient(180deg, rgba(244,63,142,.105), rgba(255,255,255,.025) 58%),
    rgba(255,255,255,.025);
}
.account-plan-head { gap: 10px; }
.account-plan-title { gap: 10px; }
.account-plan-icon {
  flex-basis: 36px;
  width: 36px;
  height: 36px;
  border-radius: 11px;
  background: rgba(255,255,255,.07);
  font-size: 18px;
}
.account-plan-label { color: var(--profile-muted,var(--muted)); font-size: 10px; }
.account-plan-head strong { font-size: 20px; line-height: 1.1; }
.account-plan-action {
  min-height: 36px;
  padding: 8px 13px;
  border-color: rgba(255,255,255,.1);
  background: rgba(255,255,255,.075);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
}
.account-plan-action:hover { background: rgba(255,255,255,.12); color:#fff; }
.account-plan-note {
  margin: 14px 0;
  color: var(--profile-muted,var(--muted));
  font-size: 11px;
  line-height: 1.35;
}
.account-premium-cta {
  min-height: 44px;
  margin: 0 0 14px;
  border-radius: 12px;
  font-size: 13px;
}
.premium-status {
  grid-template-columns: minmax(0,1.2fr) minmax(94px,.8fr);
  gap: 9px;
  margin-top: 14px;
}
.premium-status > div {
  min-height: 65px;
  padding: 11px 12px;
  border-radius: 12px;
  background: rgba(9,8,15,.22);
}
.premium-status-date { order: 1; }
.premium-status-days { order: 2; }
.premium-status-date strong { font-size: 15px; }
.premium-status-days b { font-size: 23px; }
.account-metrics { margin-top: 14px; }
.account-metrics > div { padding-top: 12px; }
.account-metrics span,.account-metrics small { font-size: 8.5px; }
.account-metrics b { font-size: 18px; }

/* Primary account actions always stack */
.profile-account-actions {
  display: grid;
  grid-template-columns: 1fr !important;
  gap: 9px;
  width: 100%;
}
.profile-account-actions form,
.profile-account-actions .btn {
  width: 100% !important;
}
.profile-account-actions .btn {
  min-height: 44px;
  border-radius: 12px;
}
.profile-account-actions .btn-account-logout {
  background: rgba(255,255,255,.035);
  border: 1px solid rgba(255,255,255,.1);
  color: var(--profile-text,#fff);
}
.profile-account-actions .btn-account-logout:hover {
  background: rgba(255,255,255,.075);
  color: #fff;
}

@media (max-width: 720px) {
  .profile-summary .account-plan-card { padding: 15px; }
  .premium-status { grid-template-columns: minmax(0,1.15fr) minmax(90px,.85fr); }
  .account-metrics { grid-template-columns: repeat(3,minmax(0,1fr)); }
  .profile-account-actions { grid-template-columns: 1fr !important; }
}

@media (max-width: 390px) {
  .premium-status { grid-template-columns: 1fr 92px; }
  .premium-status-date strong { font-size: 14px; }
  .account-plan-head strong { font-size: 19px; }
}

/* Account tariff block v34 — intentionally last to override legacy rules */
.profile-summary .account-plan-card-v2 {
  display: block !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 18px 0 12px !important;
  padding: 16px !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  border-radius: 16px !important;
  background: rgba(255,255,255,.035) !important;
  box-shadow: none !important;
  overflow: hidden !important;
}
.profile-summary .account-plan-card-v2.is-premium {
  border-color: rgba(244,63,142,.34) !important;
  background: linear-gradient(180deg,rgba(244,63,142,.10),rgba(255,255,255,.025) 62%) !important;
}
.account-plan-card-v2 .account-plan-note {
  margin: 14px 0 !important;
  color: var(--profile-muted,var(--muted)) !important;
  font-size: 11px !important;
  line-height: 1.35 !important;
}
.account-plan-card-v2.is-free .account-premium-cta {
  margin: 0 !important;
}
.account-plan-card-v2 .premium-status {
  display: grid !important;
  grid-template-columns: minmax(0,1.2fr) minmax(92px,.8fr) !important;
  gap: 9px !important;
  margin-top: 14px !important;
}
.account-plan-card-v2 .premium-status > div {
  min-width: 0 !important;
  min-height: 66px !important;
  padding: 11px 12px !important;
  border: 1px solid rgba(255,255,255,.085) !important;
  border-radius: 12px !important;
  background: rgba(8,7,14,.24) !important;
}
.account-plan-card-v2 .account-metrics {
  display: grid !important;
  grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  gap: 0 !important;
  margin-top: 14px !important;
  border-top: 1px solid rgba(255,255,255,.08) !important;
  overflow: visible !important;
}
.account-plan-card-v2 .account-metrics > div {
  display: block !important;
  min-width: 0 !important;
  padding: 12px 9px 0 !important;
  border-top: 0 !important;
  border-left: 1px solid rgba(255,255,255,.08) !important;
}
.account-plan-card-v2 .account-metrics > div:first-child {
  padding-left: 0 !important;
  border-left: 0 !important;
}
.account-plan-card-v2 .account-metrics > div:last-child { padding-right: 0 !important; }
.profile-summary .profile-account-actions {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 9px !important;
  width: 100% !important;
}
.profile-summary .profile-account-actions > a,
.profile-summary .profile-account-actions > form,
.profile-summary .profile-account-actions button {
  display: flex !important;
  width: 100% !important;
  min-width: 0 !important;
  margin: 0 !important;
}
.profile-summary .profile-account-actions .btn {
  min-height: 44px !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 12px !important;
}
@media (max-width: 420px) {
  .profile-summary .account-plan-card-v2 { padding: 14px !important; }
  .account-plan-card-v2 .premium-status {
    grid-template-columns: minmax(0,1fr) 88px !important;
  }
  .account-plan-card-v2 .premium-status-date strong { font-size: 14px !important; }
  .account-plan-card-v2 .account-metrics {
    grid-template-columns: repeat(3,minmax(0,1fr)) !important;
  }
  .account-plan-card-v2 .account-metrics > div {
    padding: 11px 6px 0 !important;
  }
  .account-plan-card-v2 .account-metrics span,
  .account-plan-card-v2 .account-metrics small {
    font-size: 8px !important;
    white-space: normal !important;
  }
}

/* Account tariff block v35 — resource rows, no cramped metric table */
.profile-summary .account-plan-card-v2 {
  padding: 15px !important;
  border-color: rgba(255,255,255,.08) !important;
  border-radius: 18px !important;
  background: linear-gradient(180deg,rgba(255,255,255,.045),rgba(255,255,255,.022)) !important;
}
.profile-summary .account-plan-card-v2.is-premium {
  border-color: rgba(237,52,139,.28) !important;
  background:
    radial-gradient(circle at 100% 0,rgba(237,52,139,.16),transparent 42%),
    linear-gradient(180deg,rgba(255,255,255,.048),rgba(255,255,255,.022)) !important;
}
.account-plan-card-v2 .account-plan-head {
  margin: 0 !important;
}
.account-plan-card-v2 .account-plan-action {
  min-height: 34px !important;
  padding: 7px 12px !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.08) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
}
.account-plan-card-v2 .account-premium-cta {
  width: 100% !important;
  min-height: 43px !important;
  margin: 14px 0 0 !important;
  border: 0 !important;
  border-radius: 12px !important;
  background: linear-gradient(135deg,#ff3d91,#dd287c) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(222,40,124,.2) !important;
  font-weight: 850 !important;
}
.account-plan-card-v2 .premium-status {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin: 14px 0 0 !important;
  padding: 12px 13px !important;
  border: 1px solid rgba(255,255,255,.075) !important;
  border-radius: 13px !important;
  background: rgba(7,6,13,.26) !important;
}
.account-plan-card-v2 .premium-status > div {
  min-height: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.account-plan-card-v2 .premium-status-date {
  display: grid !important;
  gap: 3px !important;
}
.account-plan-card-v2 .premium-status-date span,
.account-plan-card-v2 .premium-status-days small {
  color: var(--profile-muted,var(--muted)) !important;
  font-size: 10px !important;
  line-height: 1.25 !important;
}
.account-plan-card-v2 .premium-status-date strong {
  font-size: 16px !important;
  line-height: 1.15 !important;
}
.account-plan-card-v2 .premium-status-days {
  display: flex !important;
  align-items: baseline !important;
  justify-content: flex-end !important;
  gap: 5px !important;
  text-align: right !important;
  white-space: nowrap !important;
}
.account-plan-card-v2 .premium-status-days b {
  font-size: 23px !important;
  line-height: 1 !important;
}
.account-plan-card-v2 .account-metrics { display: none !important; }
.account-plan-card-v2 .account-resources {
  display: grid !important;
  gap: 7px !important;
  margin-top: 14px !important;
  padding-top: 14px !important;
  border-top: 1px solid rgba(255,255,255,.075) !important;
}
.account-plan-card-v2 .account-resource-row {
  display: grid !important;
  grid-template-columns: 32px minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 10px !important;
  min-width: 0 !important;
  padding: 9px 10px !important;
  border: 1px solid rgba(255,255,255,.065) !important;
  border-radius: 11px !important;
  background: rgba(255,255,255,.028) !important;
}
.account-plan-card-v2 .account-resource-icon {
  display: grid !important;
  place-items: center !important;
  width: 32px !important;
  height: 32px !important;
  border-radius: 10px !important;
  background: rgba(255,255,255,.065) !important;
  color: rgba(255,255,255,.86) !important;
  font-size: 14px !important;
}
.account-plan-card-v2.is-premium .account-resource-icon {
  background: rgba(237,52,139,.12) !important;
  color: #ff8dbc !important;
}
.account-plan-card-v2 .account-resource-copy {
  display: grid !important;
  gap: 2px !important;
  min-width: 0 !important;
}
.account-plan-card-v2 .account-resource-copy b {
  color: var(--profile-text,#fff) !important;
  font-size: 12px !important;
  line-height: 1.2 !important;
}
.account-plan-card-v2 .account-resource-copy small {
  overflow: hidden !important;
  color: var(--profile-muted,var(--muted)) !important;
  font-size: 9px !important;
  line-height: 1.25 !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.account-plan-card-v2 .account-resource-row > strong {
  min-width: 30px !important;
  color: #fff !important;
  font-size: 20px !important;
  line-height: 1 !important;
  text-align: right !important;
}
@media (max-width: 420px) {
  .profile-summary .account-plan-card-v2 { padding: 14px !important; }
  .account-plan-card-v2 .premium-status { padding: 11px 12px !important; }
  .account-plan-card-v2 .premium-status-date strong { font-size: 15px !important; }
  .account-plan-card-v2 .premium-status-days b { font-size: 21px !important; }
  .account-plan-card-v2 .account-resource-row {
    grid-template-columns: 30px minmax(0,1fr) auto !important;
    gap: 9px !important;
    padding: 8px 9px !important;
  }
  .account-plan-card-v2 .account-resource-icon { width:30px !important; height:30px !important; }
}

/* Account tariff block v36 — flatter, quieter and aligned with the sidebar */
.profile-summary .account-plan-card-v2,
.profile-summary .account-plan-card-v2.is-premium {
  margin: 18px 0 12px !important;
  padding: 14px 0 0 !important;
  border: 0 !important;
  border-top: 1px solid rgba(255,255,255,.10) !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.account-plan-card-v2 .account-plan-head {
  padding: 0 0 12px !important;
  gap: 10px !important;
}
.account-plan-card-v2 .account-plan-title { gap: 9px !important; }
.account-plan-card-v2 .account-plan-icon {
  width: 30px !important;
  height: 30px !important;
  flex-basis: 30px !important;
  border-radius: 9px !important;
  background: rgba(255,255,255,.06) !important;
  color: rgba(255,255,255,.78) !important;
  font-size: 14px !important;
}
.account-plan-card-v2.is-premium .account-plan-icon {
  background: rgba(237,52,139,.10) !important;
  color: #f47fb1 !important;
}
.account-plan-card-v2 .account-plan-label {
  font-size: 9px !important;
  opacity: .72 !important;
}
.account-plan-card-v2 .account-plan-head strong {
  font-size: 19px !important;
  line-height: 1.05 !important;
}
.account-plan-card-v2 .account-plan-action {
  min-height: 32px !important;
  padding: 6px 11px !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  border-radius: 9px !important;
  background: rgba(255,255,255,.055) !important;
  box-shadow: none !important;
  font-size: 11px !important;
}
.account-plan-card-v2 .premium-status {
  display: flex !important;
  align-items: baseline !important;
  justify-content: space-between !important;
  gap: 10px !important;
  margin: 0 0 2px !important;
  padding: 0 0 12px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.075) !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: var(--profile-muted,var(--muted)) !important;
  font-size: 10px !important;
  line-height: 1.3 !important;
}
.account-plan-card-v2 .premium-status strong {
  color: var(--profile-text,#fff) !important;
  font-size: 12px !important;
}
.account-plan-card-v2 .premium-status-days {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 3px !important;
  color: var(--profile-muted,var(--muted)) !important;
  white-space: nowrap !important;
}
.account-plan-card-v2 .premium-status-days b {
  color: var(--profile-text,#fff) !important;
  font-size: 15px !important;
  line-height: 1 !important;
}
.account-plan-card-v2 .account-resources {
  display: grid !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
.account-plan-card-v2 .account-resource-row {
  display: grid !important;
  grid-template-columns: 22px minmax(0,1fr) auto !important;
  align-items: center !important;
  gap: 8px !important;
  min-height: 42px !important;
  padding: 8px 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255,255,255,.065) !important;
  border-radius: 0 !important;
  background: transparent !important;
}
.account-plan-card-v2 .account-resource-row:last-child { border-bottom: 0 !important; }
.account-plan-card-v2 .account-resource-icon,
.account-plan-card-v2.is-premium .account-resource-icon {
  display: grid !important;
  place-items: center !important;
  width: 22px !important;
  height: 22px !important;
  border-radius: 7px !important;
  background: rgba(255,255,255,.045) !important;
  color: rgba(255,255,255,.68) !important;
  font-size: 11px !important;
}
.account-plan-card-v2.is-premium .account-resource-icon { color: #ef75aa !important; }
.account-plan-card-v2 .account-resource-copy { gap: 1px !important; }
.account-plan-card-v2 .account-resource-copy b {
  font-size: 11px !important;
  font-weight: 750 !important;
}
.account-plan-card-v2 .account-resource-copy small {
  font-size: 8px !important;
  opacity: .76 !important;
}
.account-plan-card-v2 .account-resource-row > strong {
  min-width: 24px !important;
  font-size: 16px !important;
  font-weight: 800 !important;
}
.account-plan-card-v2 .account-premium-cta {
  width: 100% !important;
  min-height: 42px !important;
  margin: 12px 0 0 !important;
  border-radius: 11px !important;
  box-shadow: none !important;
}
@media (max-width: 420px) {
  .profile-summary .account-plan-card-v2,
  .profile-summary .account-plan-card-v2.is-premium { padding: 13px 0 0 !important; }
  .account-plan-card-v2 .account-plan-head { padding-bottom: 11px !important; }
  .account-plan-card-v2 .account-resource-row {
    grid-template-columns: 21px minmax(0,1fr) auto !important;
    gap: 7px !important;
    min-height: 40px !important;
    padding: 7px 0 !important;
  }
  .account-plan-card-v2 .account-resource-icon,
  .account-plan-card-v2.is-premium .account-resource-icon { width:21px !important; height:21px !important; }
}

/* Account plan v37: one quiet card, no nested tiles */
.profile-summary .account-plan-compact {
  display: grid;
  gap: 13px;
  width: 100%;
  margin: 18px 0 12px;
  padding: 15px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 15px;
  background: rgba(255,255,255,.025);
  box-shadow: none;
}
.profile-summary .account-plan-compact.is-premium {
  border-color: rgba(237,52,139,.22);
  background: linear-gradient(180deg, rgba(237,52,139,.055), rgba(255,255,255,.018));
}
.account-plan-compact__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.account-plan-compact__top > div { display: grid; gap: 2px; min-width: 0; }
.account-plan-compact__eyebrow {
  color: var(--profile-muted,var(--muted));
  font-size: 10px;
  line-height: 1.2;
}
.account-plan-compact__name {
  color: var(--profile-text,#fff);
  font-size: 21px;
  line-height: 1.1;
}
.account-plan-compact__renew {
  flex: 0 0 auto;
  padding: 8px 12px;
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 10px;
  background: rgba(255,255,255,.065);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
}
.account-plan-compact__status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 0 0;
  border-top: 1px solid rgba(255,255,255,.075);
  color: var(--profile-muted,var(--muted));
  font-size: 10px;
  line-height: 1.35;
}
.account-plan-compact__status b { color: var(--profile-text,#fff); font-size: 12px; }
.account-plan-compact__status span:last-child { white-space: nowrap; }
.account-plan-compact__limits {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  border-top: 1px solid rgba(255,255,255,.075);
  border-bottom: 1px solid rgba(255,255,255,.075);
}
.account-plan-compact__limits > div {
  display: grid;
  align-content: start;
  gap: 2px;
  min-width: 0;
  padding: 12px 8px;
  border-right: 1px solid rgba(255,255,255,.075);
}
.account-plan-compact__limits > div:first-child { padding-left: 0; }
.account-plan-compact__limits > div:last-child { padding-right: 0; border-right: 0; }
.account-plan-compact__limits span {
  overflow: hidden;
  color: var(--profile-muted,var(--muted));
  font-size: 9px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-plan-compact__limits b {
  color: var(--profile-text,#fff);
  font-size: 19px;
  line-height: 1.1;
}
.account-plan-compact__limits small {
  overflow: hidden;
  color: var(--profile-muted,var(--muted));
  font-size: 8px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.account-plan-compact__buy {
  width: 100%;
  min-height: 42px;
  margin: 0;
  border: 0;
  border-radius: 11px;
  background: linear-gradient(135deg,#f43f8e,#db2777);
  color: #fff;
  box-shadow: none;
  font-weight: 850;
}
.profile-account-actions {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 9px !important;
  width: 100% !important;
}
.profile-account-actions > a,
.profile-account-actions > form,
.profile-account-actions > form > button {
  width: 100% !important;
}
@media (max-width: 420px) {
  .profile-summary .account-plan-compact { padding: 14px; border-radius: 14px; }
  .account-plan-compact__name { font-size: 20px; }
  .account-plan-compact__status { align-items: flex-start; flex-direction: column; gap: 3px; }
  .account-plan-compact__limits > div { padding: 11px 6px; }
  .account-plan-compact__limits span { font-size: 8px; }
  .account-plan-compact__limits b { font-size: 18px; }
}

/* Account plan v38 — framed resources, lower visual noise */
.profile-summary .account-plan-compact {
  gap: 14px;
  padding: 16px;
}

.profile-summary .account-plan-compact.is-premium {
  border-color: rgba(255,255,255,.10);
  background: rgba(255,255,255,.025);
}

.account-plan-compact__status {
  display: flex;
  align-items: baseline;
  justify-content: flex-start;
  gap: 8px;
  padding: 0;
  border: 0;
  color: var(--profile-muted,var(--muted));
  font-size: 12px;
  line-height: 1;
}
.account-plan-compact__status b {
  color: var(--profile-text,#fff);
  font-size: 22px;
  line-height: 1;
}

.account-plan-compact__limits {
  display: grid;
  grid-template-columns: 1fr;
  gap: 9px;
  border: 0;
}
.account-plan-compact__limits > div,
.account-plan-compact__limits > div:first-child,
.account-plan-compact__limits > div:last-child {
  padding: 0;
  border: 0;
}
.account-plan-limit {
  display: grid !important;
  grid-template-columns: 34px minmax(0,1fr) auto;
  align-items: center;
  gap: 11px !important;
  min-height: 48px;
  padding: 7px 12px !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  border-radius: 12px;
  background: rgba(255,255,255,.022);
}
.account-plan-limit__icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255,255,255,.06);
  color: #f25a9e;
  font-size: 16px;
  font-weight: 900;
}
.account-plan-limit:nth-child(2) .account-plan-limit__icon { color: #f7c43b; }
.account-plan-limit__label,
.account-plan-compact__limits .account-plan-limit__label {
  overflow: visible;
  color: var(--profile-text,#fff);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  text-overflow: clip;
  white-space: normal;
}
.account-plan-limit > b,
.account-plan-compact__limits .account-plan-limit > b {
  color: var(--profile-text,#fff);
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
}
.account-plan-compact__limits small { display: none !important; }

.profile-account-actions {
  gap: 13px !important;
  margin-top: 14px;
}
.profile-account-actions > a,
.profile-account-actions > form > button {
  min-height: 46px;
}
.profile-account-actions > form { margin: 0; }

.profile-boost-form {
  margin: 14px 0 0;
}

@media (max-width: 420px) {
  .profile-summary .account-plan-compact { padding: 14px; }
  .account-plan-compact__status {
    flex-direction: row;
    align-items: baseline;
    gap: 8px;
  }
  .account-plan-limit {
    grid-template-columns: 32px minmax(0,1fr) auto;
    min-height: 46px;
    padding: 7px 10px !important;
  }
  .account-plan-limit__label,
  .account-plan-compact__limits .account-plan-limit__label { font-size: 14px; }
}

/* Account plan v39 — desktop proportions aligned with approved mockup */
.account-plan-compact__identity {
  display: grid !important;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 12px;
  align-items: center;
}
.account-plan-compact__plan-icon {
  grid-row: 1 / 3;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: rgba(255,255,255,.065);
  color: #fff;
  font-size: 21px;
  line-height: 1;
}
.account-plan-compact.is-premium .account-plan-compact__plan-icon {
  background: rgba(237,52,139,.16);
  color: #ff5ca6;
}
.account-plan-compact__eyebrow,
.account-plan-compact__name { grid-column: 2; }

.profile-summary .account-plan-compact {
  gap: 16px;
  margin: 20px 0 0;
  padding: 18px;
  border-radius: 17px;
  background: rgba(255,255,255,.028);
}
.account-plan-compact__name { font-size: 24px; }
.account-plan-compact__eyebrow { font-size: 11px; }
.account-plan-compact__renew {
  min-height: 42px;
  padding: 10px 16px;
  border-radius: 12px;
  font-size: 13px;
}
.account-plan-compact__status {
  padding: 2px 2px 0;
  font-size: 13px;
}
.account-plan-compact__status b { font-size: 25px; }
.account-plan-compact__limits { gap: 11px; }
.account-plan-limit {
  grid-template-columns: 42px minmax(0,1fr) auto;
  min-height: 58px;
  padding: 8px 14px !important;
  border-radius: 13px;
  background: rgba(255,255,255,.018);
}
.account-plan-limit__icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 19px;
}
.account-plan-limit__label,
.account-plan-compact__limits .account-plan-limit__label { font-size: 16px; }
.account-plan-limit > b,
.account-plan-compact__limits .account-plan-limit > b { font-size: 20px; }

.profile-summary > .account-plan-compact__buy {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 54px;
  margin: 18px 0 0;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 850;
}
.profile-summary .profile-boost-form { margin: 18px 0 0; }
.profile-summary .profile-boost-form .btn,
.profile-summary .profile-account-actions .btn {
  min-height: 54px !important;
  border-radius: 13px !important;
  font-size: 15px;
}
.profile-summary .profile-account-actions {
  gap: 16px !important;
  margin-top: 18px;
}

@media (min-width: 1180px) {
  .profile-page .profile-dashboard {
    grid-template-columns: minmax(340px, 380px) minmax(0, 1fr);
    gap: 28px;
  }
  .profile-page .profile-summary { padding: 24px; }
}

@media (max-width: 1179px) {
  .profile-summary > .account-plan-compact__buy { grid-column: 1 / -1; }
}

@media (max-width: 420px) {
  .account-plan-compact__identity {
    grid-template-columns: 38px minmax(0, 1fr);
    column-gap: 10px;
  }
  .account-plan-compact__plan-icon { width: 38px; height: 38px; font-size: 18px; }
  .profile-summary .account-plan-compact { padding: 15px; }
  .account-plan-compact__name { font-size: 21px; }
  .account-plan-limit {
    grid-template-columns: 36px minmax(0,1fr) auto;
    min-height: 52px;
    padding: 7px 11px !important;
  }
  .account-plan-limit__icon { width: 34px; height: 34px; font-size: 17px; }
  .profile-summary > .account-plan-compact__buy,
  .profile-summary .profile-boost-form .btn,
  .profile-summary .profile-account-actions .btn { min-height: 50px !important; }
}

/* Account plan v40 — mobile layout fix and right-aligned premium days */
.account-plan-compact__status {
  width: 100%;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
}
.account-plan-compact__status b {
  margin-left: auto;
  text-align: right;
}

@media (max-width: 720px) {
  .profile-summary > .account-plan-compact,
  .profile-summary > .account-plan-compact__buy,
  .profile-summary > .profile-boost-form,
  .profile-summary > .profile-account-actions {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .profile-summary > .account-plan-compact {
    display: grid !important;
    gap: 14px !important;
    padding: 16px !important;
    margin-top: 18px !important;
  }

  .account-plan-compact__top {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .account-plan-compact__identity {
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    grid-template-columns: 40px minmax(0, 1fr) !important;
    column-gap: 11px !important;
  }

  .account-plan-compact__renew {
    flex: 0 0 auto !important;
  }

  .account-plan-compact__limits {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
  }

  .account-plan-limit,
  .account-plan-compact__limits > .account-plan-limit {
    display: grid !important;
    grid-template-columns: 38px minmax(0, 1fr) auto !important;
    align-items: center !important;
    gap: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 54px !important;
    padding: 8px 12px !important;
    box-sizing: border-box !important;
  }

  .account-plan-limit__icon {
    width: 36px !important;
    height: 36px !important;
  }

  .account-plan-limit__label,
  .account-plan-compact__limits .account-plan-limit__label {
    display: block !important;
    min-width: 0 !important;
    font-size: 15px !important;
    line-height: 1.2 !important;
    white-space: nowrap !important;
  }

  .account-plan-limit > b,
  .account-plan-compact__limits .account-plan-limit > b {
    justify-self: end !important;
    font-size: 19px !important;
    text-align: right !important;
  }

  .profile-summary > .account-plan-compact__buy,
  .profile-summary > .profile-boost-form,
  .profile-summary > .profile-account-actions {
    margin-top: 14px !important;
  }

  .profile-summary .profile-account-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }
}

@media (max-width: 380px) {
  .profile-summary > .account-plan-compact { padding: 14px !important; }
  .account-plan-compact__top { align-items: flex-start !important; }
  .account-plan-compact__identity {
    grid-template-columns: 36px minmax(0, 1fr) !important;
    column-gap: 9px !important;
  }
  .account-plan-compact__plan-icon {
    width: 36px !important;
    height: 36px !important;
  }
  .account-plan-compact__name { font-size: 20px !important; }
  .account-plan-limit,
  .account-plan-compact__limits > .account-plan-limit {
    grid-template-columns: 34px minmax(0, 1fr) auto !important;
    gap: 10px !important;
    padding: 8px 10px !important;
  }
  .account-plan-limit__icon {
    width: 32px !important;
    height: 32px !important;
  }
  .account-plan-limit__label,
  .account-plan-compact__limits .account-plan-limit__label { font-size: 14px !important; }
}

/* Account plan v41 — always-visible profile boost action */
.profile-summary > .profile-boost-form--empty {
  display: flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 54px;
  margin-top: 18px;
  border-radius: 13px;
  font-size: 15px;
  font-weight: 850;
  text-align: center;
}

@media (max-width: 720px) {
  .profile-summary > .profile-boost-form--empty {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    min-width: 0 !important;
    min-height: 50px !important;
    margin-top: 14px !important;
    box-sizing: border-box !important;
  }
}


/* Account plan v42 — isolated, always-visible boost action */
.profile-summary > .profile-boost-action-v42 {
  display: block !important;
  width: 100% !important;
  margin: 18px 0 0 !important;
  padding: 0 !important;
}

.profile-boost-action-v42 > form {
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

.profile-boost-action-v42__button {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 8px !important;
  width: 100% !important;
  min-width: 0 !important;
  min-height: 54px !important;
  box-sizing: border-box !important;
  padding: 13px 18px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: linear-gradient(135deg, #ff3b91 0%, #df2583 100%) !important;
  box-shadow: 0 10px 28px rgba(223, 37, 131, .22) !important;
  color: #fff !important;
  font: inherit !important;
  font-size: 15px !important;
  font-weight: 850 !important;
  line-height: 1.1 !important;
  text-decoration: none !important;
  text-align: center !important;
  cursor: pointer !important;
  appearance: none !important;
}

.profile-boost-action-v42__button:hover {
  transform: translateY(-1px) !important;
  filter: brightness(1.04) !important;
}

.profile-boost-action-v42__button.is-active,
.profile-boost-action-v42__button:disabled {
  background: rgba(223, 37, 131, .35) !important;
  box-shadow: none !important;
  color: rgba(255,255,255,.68) !important;
  cursor: default !important;
  transform: none !important;
}

.profile-summary > .profile-boost-action-v42 + .profile-account-actions {
  margin-top: 14px !important;
}

@media (max-width: 720px) {
  .profile-summary > .profile-boost-action-v42 {
    margin-top: 14px !important;
  }
  .profile-boost-action-v42__button {
    min-height: 52px !important;
    border-radius: 13px !important;
    font-size: 15px !important;
  }
  .profile-summary > .profile-boost-action-v42 + .profile-account-actions {
    margin-top: 14px !important;
  }
}


/* Account plan v43 — distinct boost action and disabled zero-balance state */
.profile-boost-action-v42__button {
  background: linear-gradient(135deg, #7557e8 0%, #5c43c7 100%) !important;
  box-shadow: 0 10px 26px rgba(103, 78, 215, .24) !important;
  color: #fff !important;
}

.profile-boost-action-v42__button:hover:not(:disabled) {
  background: linear-gradient(135deg, #8062ef 0%, #674bd3 100%) !important;
  box-shadow: 0 12px 30px rgba(103, 78, 215, .30) !important;
}

.profile-boost-action-v42__button.is-active,
.profile-boost-action-v42__button.is-unavailable,
.profile-boost-action-v42__button:disabled {
  background: rgba(117, 87, 232, .14) !important;
  border: 1px solid rgba(151, 128, 244, .20) !important;
  box-shadow: none !important;
  color: rgba(224, 218, 255, .46) !important;
  cursor: not-allowed !important;
  filter: none !important;
  opacity: 1 !important;
  transform: none !important;
}

.profile-boost-action-v42__button.is-active {
  color: rgba(232, 228, 255, .62) !important;
}

/* Account plan v44 — mobile-safe boost action */
@media (max-width: 720px) {
  .profile-summary > .profile-boost-action-v42 {
    grid-column: 1 / -1 !important;
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 14px 0 0 !important;
    padding: 0 !important;
    box-sizing: border-box !important;
    overflow: visible !important;
  }

  .profile-summary > .profile-boost-action-v42 > form {
    display: block !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    margin: 0 !important;
  }

  .profile-summary .profile-boost-action-v42__button {
    display: flex !important;
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    min-height: 50px !important;
    padding: 12px 14px !important;
    border-radius: 13px !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    line-height: 1.2 !important;
    font-size: 15px !important;
    overflow-wrap: anywhere !important;
  }

  .profile-summary .profile-boost-action-v42__button > span:first-child {
    flex: 0 0 auto !important;
  }

  .profile-summary .profile-boost-action-v42__button > span:last-child {
    min-width: 0 !important;
    text-align: center !important;
  }

  .profile-summary .profile-boost-action-v42__button.is-unavailable,
  .profile-summary .profile-boost-action-v42__button:disabled {
    min-height: 50px !important;
    border: 1px solid rgba(151, 128, 244, .24) !important;
    background: rgba(117, 87, 232, .13) !important;
    color: rgba(232, 228, 255, .52) !important;
  }
}

@media (max-width: 380px) {
  .profile-summary .profile-boost-action-v42__button {
    min-height: 48px !important;
    padding: 11px 12px !important;
    font-size: 14px !important;
    gap: 7px !important;
  }
}


/* Mobile tariffs tab v46 */
@media (max-width: 720px) {
  .mobile-tabbar {
    grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
    column-gap: 2px;
  }

  .mobile-tabbar > a {
    padding-inline: 2px;
  }

  .mobile-tabbar small {
    font-size: 7.5px;
    white-space: nowrap;
  }
}

@media (max-width: 360px) {
  .mobile-tabbar-icon {
    width: 34px;
    height: 32px;
  }

  .mobile-tabbar-icon svg {
    width: 21px;
    height: 21px;
  }

  .mobile-tabbar small {
    font-size: 7px;
  }
}


/* V47: low-cost mobile swipe rendering. */
@media (max-width: 700px), (pointer: coarse) {
  .swipe-card:last-child {
    touch-action: none;
    transform-style: flat;
    will-change: auto;
  }

  .swipe-card.is-dragging {
    will-change: transform;
    contain: strict;
  }

  .swipe-card.is-dragging .swipe-stamp {
    background: transparent;
    box-shadow: none;
    transition: none !important;
  }

  .swipe-card.is-dragging .swipe-card-gradient {
    display: none;
  }

  .swipe-card:nth-last-child(2) {
    transition: none;
  }

  .swipe-gallery > img {
    transform: translateZ(0);
    image-rendering: auto;
  }
}


/* V48: branded falling swipe animation on mobile, compositor-only. */
@media (max-width: 700px), (pointer: coarse) {
  .swipe-card:last-child {
    transform-origin: 50% 92%;
  }

  .swipe-card.is-dragging {
    contain: layout paint style;
  }

  .swipe-card.is-dragging .swipe-card-gradient {
    display: block;
    background: linear-gradient(180deg, transparent 0%, rgba(8,7,13,.08) 30%, rgba(8,7,13,.86) 82%, #08070d 100%);
  }

  .swipe-card.leaving-left,
  .swipe-card.leaving-right {
    transition: transform .36s cubic-bezier(.2,.72,.18,1), opacity .30s ease !important;
    will-change: transform, opacity;
    pointer-events: none;
  }

  .swipe-card.leaving-left {
    transform: translate3d(-118vw, 34vh, 0) rotate(-24deg) !important;
    opacity: 0;
  }

  .swipe-card.leaving-right {
    transform: translate3d(118vw, 34vh, 0) rotate(24deg) !important;
    opacity: 0;
  }
}

/* Plans v50 — clearer tariff typography and aligned quantity controls */
.plans-page .plan-card .plan-label {
  font-size: 11px;
  line-height: 1.3;
  letter-spacing: .08em;
}

.plans-page .plan-card .popular-badge {
  font-size: 10px;
  line-height: 1.2;
}

.plans-page .plan-card .price span {
  font-size: 13px;
  line-height: 1.35;
}

.plans-page .plan-card ul {
  gap: 14px;
}

.plans-page .plan-card li {
  align-items: center;
  gap: 10px;
  font-size: 15px;
  line-height: 1.45;
}

.plans-page .plan-card li::before {
  flex: 0 0 auto;
  font-size: 15px;
  line-height: 1;
}

.plans-page .plan-card .btn {
  min-height: 48px;
  font-size: 14px;
}

.plans-page .boost-shop-copy .overline,
.plans-page .boost-shop-form label > span,
.plans-page .boost-shop-total > span {
  font-size: 11px;
}

.plans-page .boost-shop-copy h2 {
  font-size: 23px;
}

.plans-page .quantity-control {
  grid-template-columns: 44px 64px 44px;
  border-radius: 14px;
}

.plans-page .quantity-control button,
.plans-page .quantity-control input {
  height: 46px;
}

.plans-page .quantity-control button {
  display: grid;
  place-items: center;
  padding: 0;
  appearance: none;
  -webkit-appearance: none;
  line-height: 1;
}

.plans-page .quantity-control button svg {
  display: block;
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
}

.plans-page .quantity-control button:hover:not(:disabled) {
  background: rgba(255,255,255,.075);
}

.plans-page .quantity-control input {
  width: 64px;
  font-size: 16px;
}

@media (max-width: 760px) {
  .plans-page .plan-card {
    padding: 25px 22px;
  }

  .plans-page .plan-card li {
    font-size: 14px;
  }

  .plans-page .boost-shop-form {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .plans-page .quantity-control {
    width: max-content;
  }
}


.delete-chat-everyone {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0 24px;
  color: #fff;
  cursor: pointer;
}

.delete-chat-everyone input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--primary);
}

.modal-buttons {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
}

.modal-buttons .btn {
  min-height: 42px;
  padding: 0 18px;
}

/* Notification typography: softer message weight and more readable timestamps */
.notification-row b,
.notification-row.is-unread b {
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.notification-row time,
.notification-row > i {
  font-size: 11px;
  line-height: 1.35;
}

.notification-popover-item b,
.notification-popover-item.is-unread b {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.4;
}

.notification-popover-item small {
  font-size: 10px;
  line-height: 1.35;
}

/* Match counter in activity tabs */
.section-tabs a .tab-count {
  display: inline-grid;
  place-items: center;
  min-width: 21px;
  height: 21px;
  margin-left: 6px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
  line-height: 1;
}


/* Activity pagination and incremental event loading */
.activity-load-more {
  display: flex;
  justify-content: center;
  margin-top: 22px;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 28px;
}

.pagination a,
.pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 12px;
}

.pagination a {
  color: var(--text);
  background: rgba(255,255,255,.055);
  border: 1px solid rgba(255,255,255,.08);
  text-decoration: none;
}

.pagination a:hover {
  background: rgba(255,255,255,.1);
}

.pagination a.active {
  color: #fff;
  background: var(--primary);
  border-color: transparent;
  pointer-events: none;
}

.pagination .pagination-arrow {
  min-width: auto;
}

@media (max-width: 560px) {
  .pagination { gap: 6px; }
  .pagination a,
  .pagination span { min-width: 36px; height: 36px; padding: 0 9px; }
  .pagination .pagination-arrow { font-size: 0; }
  .pagination .pagination-arrow:first-child::after { content: '←'; font-size: 16px; }
  .pagination .pagination-arrow:last-child::after { content: '→'; font-size: 16px; }
}

/* Registration birth date */
.birthdate-field { min-width: 0; }
.birthdate-field input[type="text"] {
  letter-spacing: .04em;
  font-variant-numeric: tabular-nums;
}


.required-mark{color:var(--danger,#d33);font:inherit;font-weight:700;margin-left:2px}


/* Interest tag editor */
.interest-tag-input {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 8px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
}
.interest-tag-input:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(181,126,220,.12); }
.interest-tag-list { display: contents; }
.interest-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(181,126,220,.18);
  border: 1px solid rgba(181,126,220,.34);
  color: #f3e8fb;
  font-size: 13px;
  line-height: 1;
  overflow-wrap: anywhere;
}
.interest-tag button {
  width: 18px;
  height: 18px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,.12);
  color: inherit;
  font-size: 16px;
  line-height: 16px;
  cursor: pointer;
}
.interest-tag-input > input[data-interest-entry],
.interest-tag-input > input[data-language-entry] {
  flex: 1 1 150px;
  min-width: 120px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none !important;
}
.interest-tag-input > input[data-interest-entry]:disabled,
.interest-tag-input > input[data-language-entry]:disabled { opacity: .65; cursor: not-allowed; }

/* Profile text counters */
.field-counter{display:block;margin-top:6px;text-align:right;color:var(--muted);font-size:12px;line-height:1.2}.field-counter.is-limit{color:#ff7a9f;font-weight:700}

/* Keep two-column profile rows independent: tall tag editors must not stretch neighbouring controls. */
.profile-page .profile-form .form-grid.two {
  align-items: start;
}

.profile-page .profile-form .form-grid.two > label {
  align-self: start;
  align-content: start;
  min-width: 0;
}

.profile-page .profile-form .form-grid.two > label > select,
.profile-page .profile-form .form-grid.two > label > input {
  height: 52px;
  min-height: 52px;
}

.profile-page .profile-form [data-language-tags],
.profile-page .profile-form [data-interest-tags] {
  align-self: start;
}


/* Keep activity tab labels and their counters on one line. */
.section-tabs a,
.activity-page .section-tabs button {
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.section-tabs a .tab-count,
.activity-page .section-tabs button b {
  flex: 0 0 auto;
}


/* V61: mobile Chat and Activity counters; values above 99 are rendered as 99+. */
@media (max-width: 720px) {
  .mobile-tabbar .mobile-tabbar-icon {
    position: relative;
    overflow: visible;
  }

  .mobile-tabbar .mobile-tabbar-badge {
    position: absolute;
    z-index: 5;
    top: -5px;
    right: -7px;
    display: grid;
    place-items: center;
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    border: 2px solid #17131f;
    border-radius: 999px;
    background: #ff3f7f;
    color: #fff;
    font-size: 9px;
    font-style: normal;
    font-weight: 800;
    line-height: 14px;
    box-sizing: border-box;
    pointer-events: none;
    box-shadow: 0 3px 10px rgba(255,63,127,.42);
  }

  .mobile-tabbar .mobile-tabbar-badge[hidden] {
    display: none !important;
  }
}


/* V67: stable incoming photo layout and viewport-anchored message actions. */
.message-bubble .message-attachment {
  display: block;
  width: auto;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.message-popover.is-viewport-menu {
  position: fixed !important;
  z-index: 10050 !important;
  inset: auto !important;
  margin: 0 !important;
  max-height: calc(100dvh - 20px);
  overflow-y: auto;
  overscroll-behavior: contain;
}

.message-popover.is-viewport-menu.opens-down {
  inset: auto !important;
}


/* V68: message actions stay anchored to the selected message instead of the viewport. */
.message-action-menu {
  max-height: min(420px, calc(100dvh - 24px));
  overflow-y: auto;
  overscroll-behavior: contain;
}

.message-row.mine .message-action-menu {
  right: 32px;
  left: auto;
}

.message-row.theirs .message-action-menu {
  left: 32px;
  right: auto;
}

@media (max-width: 760px), (hover: none) {
  .message-row.mine .message-action-menu { right: 24px; }
  .message-row.theirs .message-action-menu { left: 24px; }
}

/* Profile settings separation and mobile photo priority v69 */
.profile-settings-form {
  display: grid;
  gap: 22px;
  min-width: 0;
}

.profile-notifications-card {
  padding: 30px;
}

.profile-notifications-card .surface-heading {
  margin-bottom: 16px;
}

.notification-settings-intro {
  margin: -2px 0 0;
  color: var(--profile-muted, #bdb7c8);
  font-size: 14px;
  line-height: 1.6;
}

.profile-notifications-card .notification-options {
  margin-top: 20px;
  padding-top: 0;
  border-top: 0;
}

@media (max-width: 720px) {
  .profile-page .profile-settings-form,
  .profile-page .profile-notifications-card {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
  }

  .profile-settings-form {
    gap: 16px;
  }

  .profile-notifications-card {
    padding: 20px;
  }

  .profile-notifications-card .surface-heading {
    align-items: center;
  }

  .notification-settings-intro {
    font-size: 13px;
  }

  .profile-page .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .profile-page .photo-tile.is-primary {
    grid-column: 1 / -1;
    aspect-ratio: 4 / 3;
    min-height: 250px;
    border-color: rgba(207, 255, 89, .48);
    box-shadow: 0 18px 42px rgba(0, 0, 0, .32), 0 0 0 1px rgba(207, 255, 89, .12);
  }

  .profile-page .photo-tile.is-primary .primary-badge {
    min-height: 30px;
    padding-inline: 12px;
    font-size: 10px;
    letter-spacing: .08em;
    text-transform: uppercase;
  }

  .profile-page .photo-tile:not(.is-primary) .photo-actions form:first-child button {
    min-height: 36px;
    padding: 0 10px;
    border-radius: 10px;
    background: rgba(207, 255, 89, .94);
    color: #17131f;
    font-weight: 800;
    text-shadow: none;
  }
}

@media (max-width: 430px) {
  .profile-notifications-card {
    padding: 17px;
  }

  .profile-page .photo-tile.is-primary {
    min-height: 225px;
  }
}

/* Mobile photo manager redesign v35 */
@media (max-width: 720px) {
  .profile-page .photo-manager {
    padding: 20px 16px 24px;
    border-radius: 24px;
  }

  .profile-page .photo-manager .surface-heading {
    margin-bottom: 18px;
  }

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

  .profile-page .photo-tile,
  .profile-page .photo-tile.is-primary {
    grid-column: auto;
    min-height: 0;
    aspect-ratio: 4 / 5;
    border-radius: 18px;
    border-color: rgba(255,255,255,.12);
    box-shadow: none !important;
    contain: layout paint style;
  }

  .profile-page .photo-tile.is-primary {
    border-color: rgba(207,255,89,.55);
    box-shadow: inset 0 0 0 1px rgba(207,255,89,.16) !important;
  }

  .profile-page .photo-tile::after {
    inset: auto 0 0;
    height: 52px;
    background: linear-gradient(to top, rgba(10,9,15,.96), rgba(10,9,15,.58), transparent);
  }

  .profile-page .photo-tile > a,
  .profile-page .photo-tile img {
    width: 100%;
    height: 100%;
    min-height: 0 !important;
  }

  .profile-page .status-badge,
  .profile-page .primary-badge,
  .profile-page .photo-tile.is-primary .primary-badge {
    top: 9px;
    min-height: 24px;
    padding: 0 8px;
    border-radius: 999px;
    font-size: 8px;
    line-height: 1;
    letter-spacing: .04em;
  }

  .profile-page .status-badge { left: 9px; }
  .profile-page .primary-badge { right: 9px; }

  .profile-page .photo-actions {
    right: 9px;
    bottom: 9px;
    left: 9px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
    gap: 6px;
  }

  .profile-page .photo-actions form {
    display: flex;
    min-width: 0;
  }

  .profile-page .photo-actions form:first-child {
    flex: 1 1 auto;
  }

  .profile-page .photo-actions button,
  .profile-page .photo-tile:not(.is-primary) .photo-actions form:first-child button {
    min-height: 30px;
    padding: 0 9px;
    border: 0;
    border-radius: 9px;
    background: rgba(255,255,255,.11);
    color: #fff;
    font-size: 9px;
    font-weight: 750;
    line-height: 1.1;
    white-space: nowrap;
  }

  .profile-page .photo-tile:not(.is-primary) .photo-actions form:first-child button {
    width: 100%;
    background: #cfff59;
    color: #17131f;
  }

  .profile-page .photo-actions .danger-link {
    padding-inline: 7px;
    background: transparent;
    color: #ff9aa7 !important;
  }

  .profile-page .photo-tile.is-primary .photo-actions {
    justify-content: flex-end;
  }

  .profile-page .photo-upload {
    grid-column: 1 / -1;
    min-height: 150px !important;
    aspect-ratio: auto;
    border-radius: 18px;
  }

  .profile-page .photo-upload label {
    grid-template-columns: 54px minmax(0, 1fr);
    grid-template-rows: auto auto;
    place-items: center start;
    align-content: center;
    column-gap: 14px;
    min-height: 150px !important;
    height: auto;
    padding: 20px;
    text-align: left;
  }

  .profile-page .photo-upload label > .upload-plus {
    grid-row: 1 / 3;
    width: 54px;
    height: 54px;
    margin: 0;
    border-radius: 16px;
  }

  .profile-page .photo-upload label b {
    align-self: end;
    font-size: 15px;
  }

  .profile-page .photo-upload label small {
    align-self: start;
    margin-top: 4px;
    font-size: 10px;
    line-height: 1.45;
  }

  .profile-page .surface-note {
    margin: 14px 2px 0;
    font-size: 11px;
    line-height: 1.55;
  }

  .profile-page {
    padding-bottom: 112px;
  }
}

@media (max-width: 380px) {
  .profile-page .photo-grid { gap: 9px; }
  .profile-page .photo-manager { padding-inline: 13px; }
  .profile-page .photo-actions button,
  .profile-page .photo-tile:not(.is-primary) .photo-actions form:first-child button {
    padding-inline: 7px;
    font-size: 8px;
  }
}

/* Photo verification card */
.photo-verification-card {
  padding: 0;
  border: 1px solid rgba(87, 110, 255, .22);
  background: linear-gradient(135deg, rgba(87, 110, 255, .08), rgba(125, 86, 255, .03));
  overflow: hidden;
}
.photo-verification-card__summary,
.photo-verification-card.is-verified {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  align-items: center;
  padding: 15px 18px;
}
.photo-verification-card__summary {
  cursor: pointer;
  list-style: none;
  user-select: none;
}
.photo-verification-card__summary::-webkit-details-marker { display: none; }
.photo-verification-card__summary:focus-visible {
  outline: 2px solid var(--primary, #576eff);
  outline-offset: -3px;
}
.photo-verification-card__icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(87, 110, 255, .14);
  color: var(--primary, #576eff);
  font-size: 19px;
  font-weight: 800;
}
.photo-verification-card__title {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.photo-verification-card__title strong,
.photo-verification-card__content h2 {
  margin: 0;
  font-size: clamp(15px, 2vw, 18px);
  line-height: 1.25;
}
.photo-verification-card__id {
  padding: 6px 9px;
  border-radius: 9px;
  background: rgba(255, 255, 255, .06);
  color: var(--muted, #aaa6b5);
  font-size: 12px;
  font-weight: 700;
  white-space: nowrap;
}
.photo-verification-card__chevron {
  width: 9px;
  height: 9px;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
  transition: transform .2s ease;
  opacity: .7;
}
.photo-verification-card[open] .photo-verification-card__chevron { transform: rotate(225deg); }
.photo-verification-card__body {
  padding: 0 18px 17px 68px;
  border-top: 1px solid rgba(255, 255, 255, .06);
}
.photo-verification-card__body > p { margin: 14px 0 10px; }
.photo-verification-card__steps {
  display: grid;
  gap: 7px;
  margin: 0 0 12px;
  padding: 0;
  list-style: none;
}
.photo-verification-card__steps li { position: relative; padding-left: 16px; }
.photo-verification-card__steps li::before { content: '-'; position: absolute; left: 0; }
.photo-verification-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.photo-verification-card__privacy {
  margin: 0;
  font-size: 12px;
  opacity: .72;
}
.photo-verification-card__button { white-space: nowrap; }
.photo-verification-card.is-verified {
  border-color: rgba(35, 167, 105, .25);
  background: linear-gradient(135deg, rgba(35, 167, 105, .09), rgba(35, 167, 105, .025));
}
.photo-verification-card.is-verified .photo-verification-card__icon {
  background: rgba(35, 167, 105, .14);
  color: #23a769;
}
.photo-verification-card.is-verified .photo-verification-card__content { min-width: 0; }
.photo-verification-card.is-verified .photo-verification-card__content h2 { margin-top: 2px; }
@media (max-width: 680px) {
  .photo-verification-card__summary,
  .photo-verification-card.is-verified { grid-template-columns: auto minmax(0, 1fr) auto; padding: 13px 14px; }
  .photo-verification-card__summary .photo-verification-card__id { grid-column: 2; justify-self: start; }
  .photo-verification-card__chevron { grid-column: 3; grid-row: 1 / span 2; }
  .photo-verification-card.is-verified .photo-verification-card__id { grid-column: 3; }
  .photo-verification-card__body { padding: 0 14px 14px; }
  .photo-verification-card__footer { align-items: stretch; flex-direction: column; }
  .photo-verification-card__button { width: 100%; }
}
@media (max-width: 430px) {
  .photo-verification-card__summary,
  .photo-verification-card.is-verified { gap: 9px; }
  .photo-verification-card__icon { width: 34px; height: 34px; border-radius: 10px; }
  .photo-verification-card__title strong { font-size: 14px; }
  .photo-verification-card.is-verified .photo-verification-card__id { grid-column: 2; justify-self: start; }
}



/* Admin photo verification */
.admin-tabs{display:flex;gap:8px;margin:0 0 18px;overflow:auto}.admin-tabs a{padding:10px 14px;border:1px solid var(--line);border-radius:12px;color:var(--muted);font-weight:750;white-space:nowrap}.admin-tabs a.active{background:rgba(236,48,139,.12);border-color:rgba(236,48,139,.3);color:var(--text)}
.admin-verification-heading{align-items:center}.verification-toolbar{display:flex;align-items:end;justify-content:space-between;gap:20px;padding:18px;margin-bottom:18px}.verification-toolbar form{display:grid;gap:7px}.verification-toolbar form>div{display:flex;gap:8px}.verification-toolbar input{min-width:260px}.verification-toolbar p{margin:0;color:var(--muted)}
.verification-admin-list{display:grid;gap:14px}.verification-profile-card{padding:0;overflow:hidden}.verification-profile-card.is-verified{border-color:rgba(54,207,142,.28)}.verification-profile-summary{display:flex;align-items:center;justify-content:space-between;gap:18px;padding:16px 18px}.verification-profile-person{display:flex;align-items:center;gap:14px;min-width:0}.verification-profile-person>img{width:64px;height:64px;object-fit:cover;border-radius:18px;background:var(--surface-2)}.verification-profile-person>div{min-width:0}.verification-profile-title{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.verification-profile-title h2{font-size:18px;margin:0}.verification-profile-title span{color:var(--muted);font-weight:800}.verification-profile-title b,.verification-profile-title em{font-size:11px;padding:5px 8px;border-radius:999px;font-style:normal}.verification-profile-title b{background:rgba(54,207,142,.14);color:#5fe0a8}.verification-profile-title em{background:rgba(255,255,255,.06);color:var(--muted)}.verification-profile-person p{margin:5px 0 3px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.verification-profile-person small{color:var(--muted)}.verification-profile-actions{display:flex;align-items:center;gap:8px;flex-shrink:0}.verification-profile-actions form{margin:0}
.verification-profile-details{border-top:1px solid var(--line)}.verification-profile-details>summary{display:flex;align-items:center;justify-content:space-between;padding:13px 18px;cursor:pointer;color:var(--muted);font-weight:750;list-style:none}.verification-profile-details>summary::-webkit-details-marker{display:none}.verification-profile-details>summary span{font-size:12px}.verification-profile-details[open]>summary{color:var(--text);background:rgba(255,255,255,.025)}.verification-profile-details-body{display:grid;gap:22px;padding:18px;border-top:1px solid var(--line)}.verification-profile-details-body h3{margin:0 0 12px;font-size:15px}.verification-photo-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(120px,1fr));gap:10px}.verification-photo-grid a{position:relative;aspect-ratio:4/5;border-radius:14px;overflow:hidden;background:var(--surface-2)}.verification-photo-grid img{width:100%;height:100%;object-fit:cover}.verification-photo-grid span{position:absolute;left:7px;right:7px;bottom:7px;padding:5px 7px;border-radius:8px;background:rgba(10,9,18,.82);font-size:10px;font-weight:750;text-align:center}
.verification-edit-form{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}.verification-edit-form label{display:grid;gap:6px;color:var(--muted);font-size:12px;font-weight:700}.verification-edit-form .wide{grid-column:1/-1}.verification-form-submit{display:flex!important;align-items:flex-start}.verification-danger-zone{padding:14px;border:1px solid rgba(255,80,100,.2);border-radius:14px;background:rgba(255,80,100,.04)}.verification-danger-zone p{margin:0 0 12px;color:var(--muted)}.verification-pagination{display:flex;align-items:center;justify-content:center;gap:18px;margin:22px 0}.verification-pagination a,.verification-pagination span{padding:10px 14px;border:1px solid var(--line);border-radius:12px}.verification-pagination span{color:var(--muted)}.verification-empty{text-align:center;padding:40px 20px}
@media(max-width:900px){.verification-edit-form{grid-template-columns:repeat(2,minmax(0,1fr))}.verification-profile-summary{align-items:flex-start;flex-direction:column}.verification-profile-actions{width:100%;flex-wrap:wrap}.verification-toolbar{align-items:stretch;flex-direction:column}.verification-toolbar form>div{flex-wrap:wrap}.verification-toolbar input{min-width:0;flex:1}.admin-verification-heading{align-items:flex-start}}
@media(max-width:560px){.verification-profile-summary{padding:14px}.verification-profile-person{align-items:flex-start}.verification-profile-person>img{width:52px;height:52px;border-radius:14px}.verification-profile-actions{display:grid;grid-template-columns:1fr}.verification-profile-actions>a,.verification-profile-actions form,.verification-profile-actions button{width:100%}.verification-edit-form{grid-template-columns:1fr}.verification-edit-form .wide{grid-column:auto}.verification-profile-details-body{padding:14px}.verification-photo-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.verification-pagination{gap:8px}.verification-pagination a,.verification-pagination span{padding:9px 10px;font-size:12px}}

/* Hide empty counters in Activity tabs. Component display rules must not override hidden. */
.section-tabs a .tab-count[hidden] {
  display: none !important;
}
