/* ===== Aproape — локальная демо dating-приложения ===== */
:root {
  --brand1: #7c3aed;
  --brand2: #ec4899;
  --brand-grad: linear-gradient(135deg, #7c3aed 0%, #ec4899 100%);
  --like: #22c55e;
  --nope: #f43f5e;
  --super: #3b82f6;
  --bg: #0f0b1e;
  --surface: #ffffff;
  --surface2: #f6f4fb;
  --line: #ece8f5;
  --ink: #1b1530;
  --muted: #7a7390;
  --ink-soft: #4a4360;
  --shadow: 0 10px 40px rgba(36, 14, 66, 0.18);
  --shadow-sm: 0 4px 16px rgba(36, 14, 66, 0.1);
  --radius: 26px;
  --radius-sm: 16px;
  --page-bg: radial-gradient(1200px 800px at 20% -10%, #3a1d63 0%, #160f2b 45%, #0c0820 100%);
  /* алиасы: часть стилей использует эти имена — всегда указывают на темозависимые базовые */
  --text: var(--ink);
  --card: var(--surface);
  --accent: var(--brand1);
  --brand: var(--brand1);
}
/* ROADMAP #43: dark theme — auto via prefers-color-scheme, manual via [data-theme] */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --surface: #1a1530;
    --surface2: #251c40;
    --line: #322851;
    --ink: #ece8f5;
    --muted: #b6acd2;
    --ink-soft: #c8c1de;
    --shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
    --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
    --page-bg: radial-gradient(1200px 800px at 20% -10%, #2a1b4d 0%, #110a26 45%, #060312 100%);
  }
}
:root[data-theme="dark"] {
  --surface: #1a1530;
  --surface2: #251c40;
  --line: #322851;
  --ink: #ece8f5;
  --muted: #b6acd2;
  --ink-soft: #c8c1de;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
  --page-bg: radial-gradient(1200px 800px at 20% -10%, #2a1b4d 0%, #110a26 45%, #060312 100%);
}
/* Явная «Светлая» тема: базовый :root уже светлый (белые поверхности, тёмный
   текст), но его --page-bg тёмный (ambient-рамка телефона). Для честной светлой
   темы даём светлый фон — иначе на десктопе контент-область остаётся тёмной и
   тёмный --ink на ней не читается. */
:root[data-theme="light"] {
  --page-bg: radial-gradient(1100px 700px at 22% -8%, #efe9fb 0%, #f5f2fc 46%, #ffffff 100%);
}
/* ===== Именованные палитры (макеты 1–6) ===== */
/* Тёмная роза (макет 1): тёмный фон + пурпурно-розовый акцент */
:root[data-theme="rose"] {
  --brand1: #ec4899;
  --brand2: #c026d3;
  --brand-grad: linear-gradient(135deg, #ec4899 0%, #c026d3 100%);
  --bg: #120a1a;
  --surface: #1c1226;
  --surface2: #271a33;
  --line: #3a2647;
  --ink: #f4e9f2;
  --muted: #bda6c4;
  --ink-soft: #d9c6dc;
  --accent: var(--brand1);
  --brand: var(--brand1);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.55);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.35);
  --page-bg: radial-gradient(1200px 800px at 20% -10%, #3a1230 0%, #1a0e22 45%, #0c0714 100%);
}
/* Фиолетовая ночь (макеты 3/6): почти чёрный фон + фиолетовый акцент */
:root[data-theme="violet"] {
  --brand1: #8b5cf6;
  --brand2: #6d28d9;
  --brand-grad: linear-gradient(135deg, #8b5cf6 0%, #6d28d9 100%);
  --bg: #0a0713;
  --surface: #150f24;
  --surface2: #1e1533;
  --line: #2a1f44;
  --ink: #ece8f5;
  --muted: #a99fc7;
  --ink-soft: #cbc3e2;
  --accent: var(--brand1);
  --brand: var(--brand1);
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 4px 16px rgba(0, 0, 0, 0.4);
  --page-bg: radial-gradient(1200px 800px at 20% -10%, #241546 0%, #0f0a20 45%, #05030d 100%);
}
/* Лаванда (макеты 2/5): светлый лавандовый фон + розово-фиолетовый акцент */
:root[data-theme="lavender"] {
  --brand1: #a855f7;
  --brand2: #ec4899;
  --brand-grad: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  --bg: #ece8fb;
  --surface: #ffffff;
  --surface2: #f3effc;
  --line: #e5ddf6;
  --ink: #2a1f45;
  --muted: #7c6f9c;
  --ink-soft: #4a3f6b;
  --accent: var(--brand1);
  --brand: var(--brand1);
  --shadow: 0 10px 40px rgba(80, 40, 130, 0.16);
  --shadow-sm: 0 4px 16px rgba(80, 40, 130, 0.1);
  --page-bg: radial-gradient(1200px 800px at 20% -10%, #d9ccf7 0%, #efe9fb 45%, #f6f2fd 100%);
}
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
}
html,
body {
  height: 100%;
}
body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  background: var(--page-bg);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100%;
  overflow: hidden;
}
/* Телефон-рамка */
.phone {
  position: relative;
  width: min(430px, 100vw);
  height: min(900px, 100vh);
  background: var(--surface);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  border-radius: 0;
}
@media (min-width: 480px) {
  .phone {
    border-radius: 38px;
    height: min(880px, 96vh);
    outline: 10px solid #0a0717;
  }
}
/* ROADMAP: адаптивность под планшет / ноутбук / десктоп.
   Мобильная база (< 600px) остаётся компактной, шире — растягиваем «рамку телефона». */
@media (min-width: 600px) {
  .phone {
    width: min(480px, 94vw);
    height: min(900px, 96vh);
  }
}
@media (min-width: 1024px) {
  body {
    background:
      radial-gradient(ellipse at 20% 10%, rgba(124, 58, 237, 0.18), transparent 60%),
      radial-gradient(ellipse at 80% 90%, rgba(236, 72, 153, 0.18), transparent 60%), var(--page-bg);
  }
  .phone {
    width: min(540px, 70vw);
    height: min(920px, 94vh);
    box-shadow:
      0 40px 100px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(255, 255, 255, 0.04);
  }
}
@media (min-width: 1440px) {
  .phone {
    width: min(600px, 50vw);
    height: min(960px, 94vh);
  }
}
/* Альбомная ориентация на маленьких экранах (планшет/телефон лёжа): уменьшаем высоту */
@media (orientation: landscape) and (max-height: 600px) {
  .phone {
    height: 100vh;
    border-radius: 0;
    outline: none;
  }
}
/* На крупных экранах слегка увеличим типографику внутри */
@media (min-width: 1024px) {
  .phone .topbar .logo {
    font-size: 22px;
  }
  .phone .nav-label {
    font-size: 12px;
  }
  .phone .lc-name,
  .phone .so-name,
  .phone .dp-name {
    font-size: 15px;
  }
  .phone .lc-meta,
  .phone .so-name,
  .phone .dp-meta {
    font-size: 13px;
  }
  .phone .flavour-banner {
    font-size: 14px;
  }
}

/* ===== Экраны ===== */
.screen {
  display: none;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
.screen.active {
  display: flex;
}

/* ===== Топбар ===== */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 12px;
  background: var(--surface);
  position: relative;
  z-index: 5;
}
.topbar .logo {
  font-weight: 800;
  font-size: 22px;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  letter-spacing: -0.5px;
}
.topbar .logo span {
  font-size: 18px;
}
.topbar-actions {
  display: flex;
  gap: 14px;
  align-items: center;
}
.icon-btn {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--surface2);
  display: grid;
  place-items: center;
  cursor: pointer;
  color: var(--ink-soft);
  transition: 0.15s;
}
.icon-btn:hover {
  background: #ece7f7;
  transform: translateY(-1px);
}
.icon-btn svg {
  width: 20px;
  height: 20px;
}

/* ===== Онбординг ===== */
#onboarding {
  background: var(--brand-grad);
  color: #fff;
  align-items: center;
  justify-content: center;
  padding: 34px;
}
.onb-card {
  width: 100%;
  max-width: 360px;
  text-align: center;
}
.onb-logo {
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -1px;
  margin-bottom: 6px;
}
.onb-heart {
  font-size: 54px;
  margin-bottom: 10px;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.25));
}
.onb-tag {
  font-size: 17px;
  opacity: 0.95;
  margin-bottom: 4px;
  font-weight: 600;
}
.onb-sub {
  font-size: 14px;
  opacity: 0.82;
  margin-bottom: 28px;
  line-height: 1.5;
}
.lang-toggle {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  max-width: 100%;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  padding: 5px;
  margin-bottom: 26px;
}
.lang-toggle button {
  border: none;
  background: transparent;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  padding: 9px 16px;
  border-radius: 10px;
  cursor: pointer;
  opacity: 0.7;
  transition: 0.15s;
}
.lang-toggle button.on {
  background: #fff;
  color: var(--brand1);
  opacity: 1;
}
.field {
  text-align: left;
  margin-bottom: 14px;
}
.field label {
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 6px;
  opacity: 0.9;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  font-size: 15px;
  background: var(--surface2);
  color: var(--ink);
  outline: none;
}
.field input::placeholder,
.field textarea::placeholder {
  color: var(--muted);
}
select option {
  background: var(--surface);
  color: var(--ink);
}
.row2 {
  display: flex;
  gap: 12px;
}
.row2 .field {
  flex: 1;
}
.seg {
  display: flex;
  gap: 8px;
}
.seg button {
  flex: 1;
  padding: 13px;
  border-radius: 14px;
  border: none;
  cursor: pointer;
  font-weight: 700;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transition: 0.15s;
}
.seg button.on {
  background: #fff;
  color: var(--brand1);
}
.btn-primary {
  width: 100%;
  padding: 16px;
  border: none;
  border-radius: 16px;
  background: #fff;
  color: var(--brand1);
  font-size: 16px;
  font-weight: 800;
  cursor: pointer;
  margin-top: 18px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  transition: 0.15s;
}
.btn-primary:hover {
  transform: translateY(-2px);
}
.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}
.onb-free {
  margin-top: 18px;
  font-size: 12px;
  opacity: 0.8;
}

/* ===== Колода свайпов ===== */
.deck-wrap {
  flex: 1;
  position: relative;
  padding: 8px 16px 0;
  min-height: 0;
}
.deck {
  position: relative;
  width: 100%;
  height: 100%;
}
/* Десктоп / ноутбук-браузер (landscape с ограниченной высотой окна): главная
   карточка-колода схлопывалась в полоску, т.к. стопка баннеров (stories, «вопрос
   дня», ночной/контекстный баннеры) съедала всю высоту. Отдаём высоту колоде —
   прячем второстепенные баннеры. Портретные телефоны (orientation: portrait) не
   затрагиваются и сохраняют полный набор баннеров. */
@media (orientation: landscape) and (max-height: 860px) {
  #discover .flavour-banner,
  #discover .night-banner,
  #discover .dailyq-banner {
    display: none !important;
  }
  #discover .deck-wrap {
    min-height: 240px;
  }
}
@media (orientation: landscape) and (max-height: 680px) {
  #discover .stories-row {
    display: none !important;
  }
  #discover .deck-wrap {
    min-height: 170px;
  }
}
.card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: #ddd;
  cursor: grab;
  will-change: transform;
  user-select: none;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.card:active {
  cursor: grabbing;
}
.card .photo {
  position: absolute;
  inset: 0;
}
.card .grad-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10, 5, 25, 0.82) 0%, rgba(10, 5, 25, 0.15) 42%, rgba(10, 5, 25, 0) 70%);
}
.card .avatar-initial {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 120px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.32);
}
.card .info {
  position: relative;
  padding: 22px 22px 24px;
  color: #fff;
  z-index: 2;
}
.card .info h2 {
  font-size: 27px;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 8px;
}
.card .info h2 .age {
  font-weight: 500;
  font-size: 24px;
}
.card .verified-badge {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--super);
}
.card .verified-badge svg {
  width: 13px;
  height: 13px;
  color: #fff;
}
.card .meta {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  opacity: 0.92;
  margin-top: 4px;
}
.card .bio {
  font-size: 14px;
  opacity: 0.95;
  margin-top: 10px;
  line-height: 1.45;
}
.card .chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 12px;
}
.chip {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  padding: 6px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.chip.solid {
  background: var(--surface2);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
/* штампы LIKE/NOPE */
.stamp {
  position: absolute;
  top: 34px;
  padding: 8px 18px;
  border: 4px solid;
  border-radius: 12px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: 2px;
  opacity: 0;
  transform: rotate(-18deg);
  z-index: 3;
}
.stamp.like {
  left: 24px;
  color: var(--like);
  border-color: var(--like);
  transform: rotate(-18deg);
}
.stamp.nope {
  right: 24px;
  color: var(--nope);
  border-color: var(--nope);
  transform: rotate(18deg);
}
.stamp.super {
  left: 50%;
  transform: translateX(-50%) rotate(0);
  bottom: 120px;
  top: auto;
  color: var(--super);
  border-color: var(--super);
}

/* пустая колода */
.empty {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  color: var(--muted);
}
.empty .big {
  font-size: 54px;
  margin-bottom: 14px;
}
.empty h3 {
  color: var(--ink);
  font-size: 20px;
  margin-bottom: 8px;
}
.empty p {
  font-size: 14px;
  margin-bottom: 20px;
}
.btn-ghost {
  padding: 13px 26px;
  border: 2px solid var(--brand1);
  background: transparent;
  color: var(--brand1);
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
}

/* ===== Кнопки действий ===== */
.actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 18px 0 22px;
}
.act {
  border: none;
  border-radius: 50%;
  background: #fff;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.15s;
}
.act:hover {
  transform: translateY(-3px) scale(1.05);
}
.act svg {
  width: 28px;
  height: 28px;
}
.act.small {
  width: 50px;
  height: 50px;
}
.act.small svg {
  width: 22px;
  height: 22px;
}
.act.big {
  width: 66px;
  height: 66px;
}
.act.rewind {
  color: #f59e0b;
}
.act.nope {
  color: var(--nope);
}
.act.super {
  color: var(--super);
}
.act.like {
  color: var(--like);
}

/* ===== Нижняя навигация ===== */
.bottomnav {
  display: flex;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.bottomnav button {
  flex: 1;
  border: none;
  background: transparent;
  padding: 11px 0 14px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
  position: relative;
}
.bottomnav button svg {
  width: 25px;
  height: 25px;
}
.bottomnav button.on {
  color: var(--brand1);
}
.bottomnav .badge {
  position: absolute;
  top: 6px;
  right: 50%;
  margin-right: -22px;
  background: var(--brand2);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  display: grid;
  place-items: center;
  padding: 0 5px;
}

/* ===== Мэтч-модал ===== */
.modal {
  position: absolute;
  inset: 0;
  background: rgba(15, 8, 30, 0.55);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 30;
  padding: 30px;
}
.modal.open {
  display: flex;
}
/* Базовая «карточка» модалки: сплошная поверхность, читабельный текст.
   Подклассы (.ev-create-card / .login-card / .album-req-card / .pw-card-wrap)
   лишь уточняют ширину. */
.modal-card {
  width: 100%;
  max-width: 460px;
  max-height: 88vh;
  overflow-y: auto;
  background: var(--surface);
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 22px;
  box-shadow: var(--shadow);
  animation: pop 0.28s ease;
}
.match-card {
  text-align: center;
  color: #fff;
  animation: pop 0.35s ease;
}
@keyframes pop {
  from {
    transform: scale(0.8);
    opacity: 0;
  }
  to {
    transform: scale(1);
    opacity: 1;
  }
}
.match-title {
  font-size: 40px;
  font-weight: 900;
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  filter: drop-shadow(0 2px 10px rgba(236, 72, 153, 0.4));
}
.match-sub {
  opacity: 0.9;
  margin: 8px 0 26px;
  font-size: 15px;
}
.match-avatars {
  display: flex;
  justify-content: center;
  margin-bottom: 6px;
}
.match-avatars .ava {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: 4px solid #fff;
  display: grid;
  place-items: center;
  font-size: 42px;
  font-weight: 800;
  color: #fff;
  box-shadow: var(--shadow);
}
.match-avatars .ava:nth-child(2) {
  margin-left: -22px;
}
.match-btns {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

/* ===== Список мэтчей / чатов ===== */
.list-screen {
  overflow-y: auto;
  flex: 1;
}
.section-label {
  padding: 16px 20px 8px;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  color: var(--muted);
}
.new-matches {
  display: flex;
  gap: 14px;
  padding: 6px 20px 14px;
  overflow-x: auto;
}
.new-matches .nm {
  flex: 0 0 auto;
  text-align: center;
  cursor: pointer;
}
.new-matches .nm .ava {
  width: 66px;
  height: 66px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 24px;
  border: 3px solid var(--brand2);
}
.new-matches .nm span {
  display: block;
  font-size: 12px;
  margin-top: 5px;
  color: var(--ink-soft);
  font-weight: 600;
  max-width: 66px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.chat-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 20px;
  cursor: pointer;
  transition: 0.12s;
}
.chat-item:hover {
  background: var(--surface2);
}
.chat-item .ava {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 21px;
  flex: 0 0 auto;
}
.chat-item .ci-body {
  flex: 1;
  min-width: 0;
}
.chat-item .ci-top {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}
.chat-item .ci-name {
  font-weight: 700;
  font-size: 15px;
}
.chat-item .ci-time {
  font-size: 11px;
  color: var(--muted);
}
.chat-item .ci-msg {
  font-size: 13px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-top: 2px;
}
.chat-item .ci-dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--brand2);
  flex: 0 0 auto;
}
.chat-item .ci-arch {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 4px 6px;
  font-size: 12px;
  color: var(--muted);
  cursor: pointer;
  flex: 0 0 auto;
}
.chat-item .ci-arch:hover {
  background: var(--surface2);
  color: var(--text);
}
.match-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px 4px;
}
.match-search {
  flex: 1 1 auto;
  min-width: 0;
  padding: 8px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface2);
  color: var(--text);
  font-size: 14px;
  outline: none;
}
.match-search:focus {
  border-color: var(--brand2);
}
.match-archive-btn {
  flex: 0 0 auto;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface2);
  color: var(--text);
  font-size: 13px;
  cursor: pointer;
}
.match-archive-btn:hover {
  border-color: var(--brand2);
}
.pin-overlay {
  position: absolute;
  inset: 0;
  background: var(--bg);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 999;
}
.pin-overlay .pin-box {
  text-align: center;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  width: min(280px, 80%);
}
.pin-overlay .pin-box h3 {
  margin: 0 0 14px 0;
}
.pin-overlay .pin-box input {
  width: 80%;
  padding: 10px 12px;
  text-align: center;
  font-size: 22px;
  letter-spacing: 6px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--surface2);
  color: var(--text);
}
.pin-overlay .pin-box button {
  margin-top: 14px;
  padding: 10px 18px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  color: #fff;
  cursor: pointer;
  font-size: 14px;
}
.pin-overlay .pin-err {
  color: #e53935;
  margin-top: 8px;
  font-size: 13px;
}
.empty-list {
  text-align: center;
  padding: 70px 30px;
  color: var(--muted);
}
.empty-list .big {
  font-size: 50px;
  margin-bottom: 12px;
}
.empty-list h3 {
  color: var(--ink);
  margin-bottom: 6px;
}

/* ===== Чат ===== */
#chat {
  background: var(--surface2);
  position: relative;
}
/* Водяной знак-детеррент: тайлится поверх чата идентификатором смотрящего (имя + id устройства + дата),
   чтобы утёкший скриншот можно было отследить. На web заблокировать скриншот нельзя — это привязка к смотрящему.
   pointer-events:none — не мешает взаимодействию. */
.chat-wm {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 6;
  opacity: 0.12;
  background-repeat: repeat;
  background-position: center;
  background-size: 260px 150px;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.chat-head .back {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--ink);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
}
.chat-head .back svg {
  width: 24px;
  height: 24px;
}
.chat-head .ava {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  cursor: pointer;
}
.chat-head .ch-meta {
  cursor: pointer;
}
.chat-head .ch-name {
  font-weight: 700;
  font-size: 16px;
}
.chat-head .ch-status {
  font-size: 12px;
  color: var(--like);
  font-weight: 600;
}
.chat-body {
  flex: 1;
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.msg {
  max-width: 76%;
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 14px;
  line-height: 1.4;
  word-wrap: break-word;
}
.msg.them {
  background: #fff;
  color: #1b1530; /* always dark ink on white bubble — fixes dark-mode contrast */
  align-self: flex-start;
  border-bottom-left-radius: 5px;
  box-shadow: var(--shadow-sm);
}
/* Dark theme: dark bubble + light text for incoming messages */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .msg.them {
    background: #2a2245;
    color: #ece8f5;
    border: 1px solid #3a2f5e;
  }
}
:root[data-theme="dark"] .msg.them {
  background: #2a2245;
  color: #ece8f5;
  border: 1px solid #3a2f5e;
}
.msg.me {
  background: var(--brand-grad);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 5px;
}
.msg.typing {
  background: var(--surface);
  align-self: flex-start;
  color: var(--muted);
}
.day-sep {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin: 6px 0;
}
.day-sep-date {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin: 14px 0 6px;
  padding: 3px 0;
  position: relative;
}
.day-sep-date::before,
.day-sep-date::after {
  content: "";
  position: absolute;
  top: 50%;
  width: calc(50% - 60px);
  height: 1px;
  background: var(--line);
}
.day-sep-date::before {
  left: 0;
}
.day-sep-date::after {
  right: 0;
}
.chat-input {
  display: flex;
  gap: 10px;
  padding: 12px 14px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.chat-input input {
  flex: 1;
  border: none;
  background: var(--surface2);
  border-radius: 24px;
  padding: 13px 18px;
  font-size: 14px;
  outline: none;
  color: var(--ink);
}
.chat-input .send {
  width: 46px;
  height: 46px;
  border: none;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: 0.15s;
}
.chat-input .send:hover {
  transform: scale(1.07);
}
.chat-input .send svg {
  width: 20px;
  height: 20px;
}
.chat-input {
  position: relative;
  align-items: center;
}
.chat-mic {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--brand1);
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  transition: 0.15s;
}
.chat-mic:hover {
  background: var(--surface2);
  transform: scale(1.07);
}
.chat-mic svg {
  width: 20px;
  height: 20px;
}
/* ===== Запись аудио (демо) ===== */
.rec-bar {
  display: none;
  position: absolute;
  inset: 8px 10px;
  align-items: center;
  gap: 10px;
  padding: 0 8px 0 14px;
  background: var(--surface);
  border: 1.5px solid var(--brand1);
  border-radius: 26px;
}
.chat-input.recording .rec-bar {
  display: flex;
}
.rec-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #ef4444;
  flex: 0 0 auto;
  animation: recPulse 1s infinite;
}
@keyframes recPulse {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.35;
    transform: scale(0.8);
  }
}
.rec-time {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
  font-size: 14px;
  color: var(--ink);
  flex: 0 0 auto;
}
.rec-hint {
  flex: 1;
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.rec-cancel {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: var(--surface2);
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  flex: 0 0 auto;
}
.rec-cancel:hover {
  background: var(--surface2);
  color: var(--ink);
}
.rec-send {
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}
.rec-send svg {
  width: 18px;
  height: 18px;
}
/* ===== Аудио-сообщение в чате ===== */
.audio-msg {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 13px;
  min-width: 170px;
}
.audio-play {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-size: 12px;
  line-height: 1;
}
.msg.me .audio-play {
  background: rgba(255, 255, 255, 0.28);
  color: #fff;
}
.msg.them .audio-play {
  background: var(--brand-grad);
  color: #fff;
}
.audio-wave {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
  gap: 2px;
  height: 24px;
  overflow: hidden;
}
.audio-wave > span {
  display: block;
  width: 2.5px;
  border-radius: 2px;
  flex: 0 0 auto;
}
.msg.me .audio-wave > span {
  background: rgba(255, 255, 255, 0.6);
}
.msg.them .audio-wave > span {
  background: var(--brand1);
  opacity: 0.55;
}
.audio-prog {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0%;
  pointer-events: none;
  transition: width 0.18s linear;
  border-radius: 4px;
}
.msg.me .audio-prog {
  background: rgba(255, 255, 255, 0.22);
}
.msg.them .audio-prog {
  background: rgba(124, 58, 237, 0.14);
}
.audio-msg.playing .audio-play {
  animation: recPulse 1.1s infinite;
}
.audio-dur {
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  flex: 0 0 auto;
  opacity: 0.85;
}
.msg.me .audio-dur {
  color: rgba(255, 255, 255, 0.92);
}
.msg.them .audio-dur {
  color: var(--muted);
}
.audio-msg.played .audio-play {
  opacity: 0.85;
}

/* ===== Профиль ===== */
.profile-screen {
  overflow-y: auto;
  flex: 1;
}
.profile-hero {
  background: var(--brand-grad);
  padding: 30px 20px 26px;
  text-align: center;
  color: #fff;
  position: relative;
}
.profile-hero .ava {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 0 auto 12px;
  display: grid;
  place-items: center;
  font-size: 48px;
  font-weight: 800;
  color: #fff;
  border: 4px solid rgba(255, 255, 255, 0.5);
}
.profile-hero h2 {
  font-size: 24px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.profile-hero .ph-meta {
  opacity: 0.92;
  font-size: 14px;
  margin-top: 4px;
}
.verified-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(255, 255, 255, 0.22);
  padding: 5px 12px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  margin-top: 12px;
  cursor: pointer;
}
.verified-pill svg {
  width: 14px;
  height: 14px;
}
.verified-pill.yes {
  background: #fff;
  color: var(--brand1);
}
.profile-section {
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.profile-section .ps-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.profile-section .ps-head h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  font-weight: 800;
}
/* ===== Сила профиля ===== */
.strength-card .ps-head {
  margin-bottom: 8px;
}
.strength-pct {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand1);
}
.strength-bar {
  height: 9px;
  border-radius: 6px;
  background: var(--surface2);
  overflow: hidden;
}
.strength-fill {
  height: 100%;
  border-radius: 6px;
  transition: width 0.5s ease;
}
.strength-fill.lvl-low {
  background: linear-gradient(90deg, #ef4444, #f59e0b);
}
.strength-fill.lvl-mid {
  background: linear-gradient(90deg, #f59e0b, #fb7185);
}
.strength-fill.lvl-high {
  background: linear-gradient(90deg, #10b981, #06b6d4);
}
.strength-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 11px 0 8px;
}
.strength-sugg {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.strength-chip {
  border: 1.5px dashed var(--brand1);
  background: transparent;
  color: var(--brand1);
  border-radius: 20px;
  padding: 6px 13px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.12s;
}
.strength-chip:hover {
  background: var(--brand1);
  color: #fff;
}
.strength-chip:active {
  transform: scale(0.96);
}
.strength-done {
  font-size: 13px;
  font-weight: 700;
  color: #10b981;
  margin-top: 9px;
}
.profile-section p {
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.link-btn {
  border: none;
  background: transparent;
  color: var(--brand1);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.edit-input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 11px 14px;
  font-size: 14px;
  font-family: inherit;
  background: var(--surface2);
  color: var(--ink);
  outline: none;
  resize: vertical;
}
.edit-input::placeholder {
  color: var(--muted);
}
.edit-input:focus {
  border-color: var(--brand1);
}
.ip-counter {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand1);
}
.ip-search {
  margin: 2px 0 10px;
}
.interest-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  max-height: 230px;
  overflow-y: auto;
  padding: 2px;
}
.interest-pick .ip {
  padding: 8px 14px;
  border-radius: 30px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.12s;
}
.interest-pick .ip.on {
  background: var(--brand1);
  color: #fff;
  border-color: var(--brand1);
}
.interest-pick .ip.shake {
  animation: ipshake 0.3s;
  border-color: var(--nope);
}
@keyframes ipshake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
.ip-empty {
  font-size: 13px;
  color: var(--muted);
  padding: 10px 2px;
}
/* «идеальный день» — карточки выбора */
.vibe-hint {
  font-size: 13px !important;
  color: var(--muted) !important;
  margin-bottom: 10px;
}
.vibe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.vibe-card {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: 0.12s;
  font-family: inherit;
}
.vibe-card .ve {
  font-size: 22px;
  flex: 0 0 auto;
}
.vibe-card .vl {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.25;
}
.vibe-card.on {
  border-color: var(--brand1);
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1));
}
.vibe-card.on .vl {
  color: var(--brand1);
}
.vibe-card.shake {
  animation: ipshake 0.3s;
  border-color: var(--nope);
}
.vibe-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.vibe-chip {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.1), rgba(236, 72, 153, 0.1));
  color: var(--brand1);
  border: 1px solid rgba(124, 58, 237, 0.25);
  padding: 7px 13px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
}
/* ROADMAP #6 — music genres */
.music-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.music-pill {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  cursor: pointer;
  text-align: left;
  transition: 0.12s;
  font-family: inherit;
}
.music-pill .me-emo {
  font-size: 20px;
  flex: 0 0 auto;
}
.music-pill .me-lbl {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.25;
}
.music-pill.on {
  border-color: #10b981;
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.12), rgba(56, 189, 248, 0.12));
}
.music-pill.on .me-lbl {
  color: #047857;
}
.music-pill.shake {
  animation: ipshake 0.3s;
  border-color: var(--nope);
}
.music-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.music-chip {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.25);
  padding: 7px 13px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
}
.music-chip.shared {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.2), rgba(56, 189, 248, 0.2));
  border-color: #10b981;
  color: #065f46;
}
.shared-line {
  margin-top: 8px;
  font-size: 13px;
  color: #047857;
  font-weight: 600;
}
/* ROADMAP #7 — backup buttons */
.backup-row {
  display: flex;
  gap: 9px;
  flex-wrap: wrap;
}
.btn-backup {
  flex: 1 1 0;
  min-width: 140px;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-family: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.12s;
}
.btn-backup:hover {
  border-color: var(--brand1);
  color: var(--brand1);
}
.settings-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 20px;
  border-bottom: 1px solid var(--line);
}
.settings-row .sr-label {
  font-size: 15px;
  font-weight: 600;
}
.mini-toggle {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 2px;
  background: var(--surface2);
  border-radius: 11px;
  padding: 4px;
}
.mini-toggle button {
  border: none;
  background: transparent;
  padding: 6px 12px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  color: var(--muted);
}
.mini-toggle button.on {
  background: var(--surface);
  color: var(--brand1);
  box-shadow: var(--shadow-sm);
}
/* ROADMAP #43: theme toggle (smaller font, includes emoji) */
.theme-row .mini-toggle.theme-toggle {
  flex-wrap: nowrap;
}
.mini-toggle.theme-toggle button {
  padding: 6px 10px;
  font-size: 12px;
}
/* ===== Галерея тем (визуальные свотчи) ===== */
.theme-gallery {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 4px 20px 16px;
}
.theme-swatch {
  border: 2px solid var(--line);
  background: var(--surface2);
  border-radius: 14px;
  padding: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: stretch;
  transition: border-color 0.15s, transform 0.1s;
}
.theme-swatch:active {
  transform: scale(0.97);
}
.theme-swatch.on {
  border-color: var(--brand1);
}
.theme-swatch-preview {
  height: 46px;
  border-radius: 10px;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(0, 0, 0, 0.15);
}
.theme-swatch-bar {
  position: absolute;
  left: 8px;
  right: 8px;
  height: 6px;
  border-radius: 4px;
}
.theme-swatch-bar.t1 {
  top: 9px;
  width: 55%;
}
.theme-swatch-bar.t2 {
  top: 21px;
  width: 78%;
  opacity: 0.5;
}
.theme-swatch-dot {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
}
.theme-swatch-name {
  font-size: 12px;
  font-weight: 700;
  text-align: center;
  color: var(--text);
}
.theme-swatch.on .theme-swatch-name {
  color: var(--brand1);
}
.mod-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 2px;
  border-bottom: 1px solid var(--line);
}
.mod-row:last-child { border-bottom: 0; }
.mod-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
}
.ic {
  width: 1.05em;
  height: 1.05em;
  display: inline-block;
  vertical-align: -0.16em;
  flex: none;
}
.ic-lg {
  width: 1.4em;
  height: 1.4em;
  vertical-align: -0.28em;
}
.about-note {
  font-size: 12px;
  color: var(--muted);
  padding: 16px 20px 30px;
  line-height: 1.5;
}
.edit-actions {
  display: flex;
  gap: 10px;
  padding: 16px 20px;
}
.edit-actions button {
  flex: 1;
  padding: 13px;
  border-radius: 14px;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  border: none;
}
.btn-save {
  background: var(--brand-grad);
  color: #fff;
}
.btn-cancel {
  background: var(--surface2);
  color: var(--ink-soft);
}
/* ===== Афиша событий ===== */
.event-card {
  margin: 12px 16px;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  background: var(--surface);
}
.event-top {
  height: 96px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}
.event-top .emoji {
  font-size: 46px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.25));
}
.event-top .free-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand1);
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 30px;
}
.event-body {
  padding: 13px 16px 15px;
}
.event-body h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}
.event-meta {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-top: 6px;
}
.event-meta span {
  font-size: 13px;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.event-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}
.event-going {
  font-size: 12px;
  color: var(--ink-soft);
  font-weight: 600;
}
.btn-attend {
  border: 1.5px solid var(--brand1);
  background: transparent;
  color: var(--brand1);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 16px;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.12s;
}
.btn-attend.on {
  background: var(--brand-grad);
  color: #fff;
  border-color: transparent;
}
/* P2-10: реальные диаспора-встречи (поверх демо-событий) */
.srv-events-block {
  margin-bottom: 18px;
}
.srv-events-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 0 12px;
}
.srv-events-head h2 {
  font-size: 16px;
  font-weight: 800;
  margin: 0;
}
.ev-create-btn {
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 30px;
}
.ev-login-cta {
  background: var(--card, #fff);
  border: 1px solid var(--border, #eee);
  border-radius: 16px;
  padding: 14px 16px;
}
.ev-login-cta .srv-events-head {
  margin: 0 0 8px;
}
.ev-login-hint {
  font-size: 13px;
  color: var(--muted, #888);
  line-height: 1.4;
}
.srv-event .event-body {
  padding: 14px 16px;
}
.ev-host-badge {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  background: var(--brand-grad);
  color: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  vertical-align: middle;
  margin-left: 6px;
}
.ev-by {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.ev-desc {
  font-size: 13px;
  color: var(--ink-soft);
  margin-top: 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.ev-rsvp-grp {
  display: inline-flex;
  gap: 8px;
}
.ev-rsvp {
  border: 1.5px solid var(--border, rgba(0, 0, 0, 0.15));
  background: transparent;
  color: var(--ink-soft);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 30px;
  cursor: pointer;
  transition: 0.12s;
}
.ev-rsvp.on {
  border-color: var(--brand1);
  color: var(--brand1);
}
.btn-attend.ev-rsvp-go[disabled] {
  opacity: 0.5;
  cursor: not-allowed;
}
.ev-cancel-btn {
  border-color: #e5484d;
  color: #e5484d;
}
.ev-canceled {
  opacity: 0.55;
}
.ev-loading {
  text-align: center;
  color: var(--muted);
  padding: 16px;
}
.ev-create-card {
  max-width: 420px;
  text-align: left;
  max-height: 86vh;
  overflow-y: auto;
}
.ev-field {
  display: block;
  margin-bottom: 12px;
}
.ev-field > span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--ink);
}
.ev-field input,
.ev-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1.5px solid var(--line);
  background: var(--surface2);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  color-scheme: light dark;
}
.ev-field input::placeholder,
.ev-field textarea::placeholder {
  color: var(--muted);
  opacity: 1;
}
.ev-field input:focus,
.ev-field textarea:focus {
  outline: none;
  border-color: var(--brand1);
  box-shadow: 0 0 0 3px rgba(168, 85, 247, 0.18);
}
/* Свидания вслепую */
.blind-card {
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.blind-top .emoji {
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.45));
}
.blind-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 30px;
  backdrop-filter: blur(2px);
}
.blind-info {
  margin-top: 10px;
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-soft);
  background: var(--surface2);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 9px 11px;
}
.btn-attend.blind-btn {
  border-color: #111;
  color: #111;
}
.btn-attend.blind-btn.on {
  background: linear-gradient(135deg, #434343, #000);
  color: #fff;
  border-color: transparent;
}

/* ===== Свидание вслепую: реверс-раскрытие ===== */
.blind-reveal-btn {
  display: block;
  width: 100%;
  margin-top: 10px;
  padding: 11px 12px;
  border: none;
  border-radius: 14px;
  background: linear-gradient(135deg, #434343, #000);
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  cursor: pointer;
  transition:
    transform 0.12s ease,
    box-shadow 0.12s ease;
}
.blind-reveal-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
}
.blind-reveal-btn:active {
  transform: scale(0.985);
}
.br-photo-wrap {
  position: relative;
  display: grid;
  place-items: center;
  margin: 6px 0 14px;
}
.br-photo {
  width: 140px;
  height: 140px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 46px;
  font-weight: 800;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.22);
  transition:
    filter 0.15s linear,
    transform 0.25s ease;
}
.br-photo.br-revealed {
  transform: scale(1.04);
  box-shadow: 0 8px 30px rgba(255, 107, 107, 0.35);
}
.br-init {
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.br-glasses {
  position: absolute;
  font-size: 40px;
  pointer-events: none;
  transition: opacity 0.4s ease;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.4));
}
.br-name {
  text-align: center;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 10px;
}
.br-them-yes {
  color: var(--brand1);
  animation: brPulse 0.5s ease;
}
.br-revealed-name {
  color: var(--ink);
}
@keyframes brPulse {
  0% {
    transform: scale(0.9);
    opacity: 0.4;
  }
  100% {
    transform: scale(1);
    opacity: 1;
  }
}
.br-hints-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin: 2px 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.br-hints {
  margin-bottom: 14px;
}
.br-hint {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
  margin-bottom: 8px;
}
.br-hint-q {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand1);
  margin-bottom: 3px;
}
.br-hint-a {
  font-size: 14px;
  color: var(--ink);
}
.br-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}
.br-chip {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 5px 12px;
  font-size: 13px;
  color: var(--ink);
}
.br-q {
  text-align: center;
  font-size: 14px;
  color: var(--ink-soft);
  margin: 6px 0 14px;
}
.br-actions {
  display: flex;
  gap: 10px;
}
.br-actions .br-no {
  flex: 1;
  padding: 13px;
}
.br-actions .br-yes {
  flex: 2;
  padding: 13px;
  border: none;
  border-radius: 14px;
  font-weight: 800;
}
.br-revealed-title {
  text-align: center;
  font-size: 15px;
  font-weight: 800;
  color: var(--brand1);
  margin: 4px 0 12px;
}

.hidden {
  display: none !important;
}

/* ===================================================================
   ДОБАВЛЕНО: недостающие стили + новые функции (по образцу аналогов)
   =================================================================== */

/* --- карусель фото на карточке --- */
.card .pdots {
  position: absolute;
  top: 10px;
  left: 12px;
  right: 12px;
  display: flex;
  gap: 5px;
  z-index: 4;
}
.card .pdot {
  flex: 1;
  height: 3.5px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.4);
}
.card .pdot.on {
  background: #fff;
}
.card .photo-zone {
  position: absolute;
  top: 0;
  bottom: 38%;
  width: 38%;
  z-index: 3;
}
.card .photo-zone.left {
  left: 0;
}
.card .photo-zone.right {
  right: 0;
}

/* --- бейджи на карточке --- */
.compat-badge,
.intent-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 11px;
  border-radius: 30px;
  margin: 8px 6px 0 0;
}
.intent-badge {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(6px);
  color: #fff;
}
.why-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.92), rgba(236, 72, 153, 0.92));
  backdrop-filter: blur(6px);
  padding: 5px 11px;
  border-radius: 30px;
  margin-bottom: 9px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.compat-badge {
  background: #fff;
  color: var(--brand1);
}
.vitals-row {
  font-size: 13px;
  opacity: 0.95;
  margin-top: 10px;
}
.shared-line {
  font-size: 13px;
  font-weight: 700;
  margin-top: 8px;
  color: #fff;
}
.chip.shared {
  background: #fff;
  color: var(--brand1);
  font-weight: 700;
}
.likes-pill {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand1);
  background: var(--surface2);
  padding: 7px 11px;
  border-radius: 30px;
  white-space: nowrap;
  transition:
    background 0.2s ease,
    color 0.2s ease,
    box-shadow 0.2s ease;
}
.likes-pill.limit-full {
  background: linear-gradient(135deg, #6ee7b7, #34d399);
  color: white;
  box-shadow: 0 1px 8px rgba(52, 211, 153, 0.45);
}
.likes-pill.limit-empty {
  background: rgba(244, 114, 182, 0.18);
  color: #db2777;
}
.limit-reset-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: #db2777;
  background: rgba(244, 114, 182, 0.14);
  border: 1px solid rgba(244, 114, 182, 0.35);
  padding: 5px 9px;
  border-radius: 999px;
  white-space: nowrap;
  margin-left: 4px;
  user-select: none;
}
.limit-reset-chip::before {
  content: "⏳";
  font-size: 11px;
}
.limit-reset-chip.limit-reset-pulse {
  animation: limitResetPulse 1.8s ease-in-out infinite;
}
@keyframes limitResetPulse {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 0 rgba(244, 114, 182, 0);
  }
  50% {
    transform: scale(1.06);
    box-shadow: 0 0 0 6px rgba(244, 114, 182, 0.12);
  }
}
@media (prefers-reduced-motion: reduce) {
  .limit-reset-chip.limit-reset-pulse {
    animation: none;
  }
}

/* --- ачивки/realizări (ROADMAP #32) --- */
.ach-card {
  background: var(--surface);
  border-radius: 18px;
  padding: 14px 16px;
  margin-top: 14px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}
.ach-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.ach-h-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.ach-h-count {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface2);
  padding: 4px 10px;
  border-radius: 999px;
}
.ach-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}
.achievement {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  background: var(--surface2);
  transition:
    background 0.2s,
    transform 0.15s;
}
.achievement.ach-locked {
  opacity: 0.55;
  filter: grayscale(0.6);
}
.achievement.ach-unlocked {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(236, 72, 153, 0.12));
  border: 1px solid rgba(124, 58, 237, 0.22);
}
.ach-ico {
  font-size: 26px;
  line-height: 1;
  width: 36px;
  text-align: center;
}
.ach-meta {
  flex: 1;
  min-width: 0;
}
.ach-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin-bottom: 2px;
}
.ach-desc {
  font-size: 12px;
  color: var(--ink-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ach-status {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand1);
  width: 22px;
  text-align: center;
}
.achievement.ach-locked .ach-status {
  color: var(--ink-soft);
}

/* --- категории событий (ROADMAP #37) --- */
.ev-cat-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 8px 14px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  background: var(--surface);
}
.ev-cat-bar::-webkit-scrollbar {
  display: none;
}
.ev-cat-chip {
  flex-shrink: 0;
  padding: 7px 13px;
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--surface2);
  border: 1px solid transparent;
  border-radius: 999px;
  cursor: pointer;
  transition:
    background 0.18s,
    color 0.18s,
    border-color 0.18s;
  white-space: nowrap;
}
.ev-cat-chip:hover {
  border-color: rgba(124, 58, 237, 0.25);
}
.ev-cat-chip.on {
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  color: white;
  border-color: transparent;
}
.ev-empty {
  text-align: center;
  color: var(--ink-soft);
  padding: 32px 16px;
  font-size: 14px;
}

/* --- промпты на карточке (Hinge) --- */
.card .prompt-card {
  position: relative;
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border-radius: 14px;
  padding: 10px 13px;
  margin-top: 10px;
}
.card .prompt-card .pq {
  font-size: 11px;
  opacity: 0.85;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.card .prompt-card .pa {
  font-size: 15px;
  font-weight: 600;
  margin-top: 3px;
  line-height: 1.35;
}

/* ===== Шторки (sheet) — фильтры/тест/новые модалки ===== */
.sheet {
  position: absolute;
  inset: 0;
  background: rgba(15, 8, 30, 0.5);
  backdrop-filter: blur(6px);
  display: none;
  align-items: flex-end;
  justify-content: center;
  z-index: 40;
}
.sheet.open {
  display: flex;
  animation: fade 0.2s ease;
}
@keyframes fade {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
.sheet-card {
  background: var(--surface);
  width: 100%;
  max-height: 88%;
  overflow-y: auto;
  border-radius: 26px 26px 0 0;
  padding: 20px 20px 26px;
  box-shadow: 0 -10px 40px rgba(36, 14, 66, 0.25);
  animation: slideup 0.28s ease;
}
.sheet-card.center {
  text-align: center;
}
@keyframes slideup {
  from {
    transform: translateY(40px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.sheet-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}
.sheet-head h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
}
.sheet-close {
  border: none;
  background: var(--surface2);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 15px;
  color: var(--muted);
}

/* --- фильтры --- */
.filt-row {
  margin-bottom: 18px;
}
.filt-row label {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 9px;
}
.filt-row b {
  color: var(--brand1);
}
.range2 {
  display: flex;
  gap: 10px;
}
input[type="range"] {
  width: 100%;
  accent-color: var(--brand1);
}
.seg.dark {
  background: var(--surface2);
}
.seg.wrap {
  flex-wrap: wrap;
}

/* ===== Тест совместимости ===== */
.quiz-prog {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  margin-bottom: 8px;
}
.quiz-bar {
  height: 6px;
  background: var(--surface2);
  border-radius: 6px;
  overflow: hidden;
  margin-bottom: 18px;
}
.quiz-bar span {
  display: block;
  height: 100%;
  background: var(--brand-grad);
  transition: width 0.3s ease;
}
.quiz-q {
  font-size: 19px;
  font-weight: 800;
  color: var(--ink);
  margin-bottom: 18px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.qicon {
  font-size: 26px;
}
.quiz-opts {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.quiz-opt {
  text-align: left;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: 0.12s;
}
.quiz-opt:hover {
  border-color: var(--brand1);
  color: var(--brand1);
}
.quiz-done {
  text-align: center;
  padding: 14px 6px;
}
.quiz-done .big {
  font-size: 48px;
}
.quiz-done h3 {
  margin: 10px 0 6px;
  color: var(--ink);
}
.btn-quiz {
  width: 100%;
  border: 1.5px solid var(--brand1);
  background: transparent;
  color: var(--brand1);
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: 14px;
  cursor: pointer;
}

/* ===== Icebreakers ===== */
.icebreakers {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px;
  margin: 6px 0;
}
.ice-title {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.ice-chip {
  display: block;
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  background: var(--surface2);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 14px;
  color: var(--ink-soft);
  cursor: pointer;
  margin-bottom: 8px;
}
.ice-chip:hover {
  border-color: var(--brand1);
  color: var(--brand1);
}
.ice-chip-holiday {
  border-color: var(--brand1);
  background: linear-gradient(180deg, color-mix(in srgb, var(--brand1) 14%, var(--surface2)), var(--surface2));
  color: var(--brand1);
  font-weight: 600;
}
.ice-chip-holiday::before {
  content: "✨ ";
}

/* ===== Toast ===== */
.toast {
  position: absolute;
  left: 50%;
  bottom: 96px;
  transform: translateX(-50%) translateY(20px);
  background: #1b1530;
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  padding: 11px 18px;
  border-radius: 30px;
  opacity: 0;
  pointer-events: none;
  transition: 0.25s;
  z-index: 60;
  max-width: 80%;
  text-align: center;
}
.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

/* ===== Выбор интересов / vibe-карты (редактирование профиля) ===== */
.interest-pick {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  max-height: 230px;
  overflow-y: auto;
}
.ip {
  background: var(--surface2);
  border: 1px solid var(--line);
  padding: 7px 13px;
  border-radius: 30px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  transition: 0.12s;
}
.ip.on {
  background: var(--brand-grad);
  color: #fff;
  border-color: transparent;
}
.ip.shake,
.vibe-card.shake {
  animation: ipshake 0.3s;
}
@keyframes ipshake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}
.ip-empty {
  font-size: 13px;
  color: var(--muted);
  padding: 8px 0;
}
.vibe-hint {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.vibe-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.vibe-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 13px 8px;
  cursor: pointer;
  transition: 0.12s;
}
.vibe-card .ve {
  font-size: 24px;
}
.vibe-card .vl {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
}
.vitals-edit {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.vitals-edit label {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink-soft);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* ===== Промпты в профиле ===== */
.prompt-block {
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px 14px;
  margin-bottom: 10px;
  position: relative;
}
.prompt-block .pq {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.prompt-block .pa {
  font-size: 15px;
  color: var(--ink);
  margin-top: 4px;
  line-height: 1.4;
}
.prompt-edit {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
}
.prompt-edit select {
  font-weight: 600;
}
.prompt-remove {
  position: absolute;
  top: 8px;
  right: 10px;
  border: none;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 16px;
}
.add-prompt-btn {
  width: 100%;
  border: 1.5px dashed var(--brand1);
  background: transparent;
  color: var(--brand1);
  font-weight: 700;
  font-size: 14px;
  padding: 12px;
  border-radius: 14px;
  cursor: pointer;
}

/* ===== «Вас лайкнули» ===== */
.likes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  padding: 16px;
}
.views-panel {
  margin: 12px 16px 0;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.views-panel.locked {
  cursor: pointer;
  background: linear-gradient(135deg, var(--brand, #e0245e), #7c3aed);
  color: #fff;
}
.views-panel.locked:active {
  transform: scale(0.99);
}
.views-head {
  font-weight: 700;
  font-size: 15px;
}
.views-sub {
  margin-top: 4px;
  font-size: 13px;
  opacity: 0.92;
}
.views-grid {
  margin-top: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(72px, 1fr));
  gap: 12px;
}
.view-card {
  cursor: pointer;
  text-align: center;
}
.view-card .vc-photo {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.vc-name {
  margin-top: 6px;
  font-size: 12px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
/* P2-9: соцсети в карточке профиля */
.social-field {
  margin-top: 12px;
}
.social-field > label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 6px;
  color: var(--text);
}
.social-field .social-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin: -2px 0 8px;
}
.social-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 6px 0;
}
.social-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  background: var(--surface-2, rgba(0, 0, 0, 0.05));
  color: var(--text);
  border: 1px solid var(--border, rgba(0, 0, 0, 0.08));
}
.social-chip.ig {
  background: linear-gradient(45deg, #f09433, #e6683c 30%, #dc2743 60%, #cc2366 80%, #bc1888);
  color: #fff;
  border: none;
}
.social-chip.anthem {
  background: var(--brand-soft, rgba(99, 102, 241, 0.12));
  color: var(--brand, #6366f1);
  border: none;
}
.anthem-embed {
  margin-top: 10px;
  border-radius: 12px;
  overflow: hidden;
}
.anthem-embed iframe {
  display: block;
  width: 100%;
  border: 0;
}
.anthem-embed.spotify iframe {
  height: 80px;
}
.anthem-embed.yt {
  aspect-ratio: 16 / 9;
}
.anthem-embed.yt iframe {
  height: 100%;
}
.like-card {
  border-radius: 18px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}
.lc-photo {
  height: 130px;
  position: relative;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.lc-name[data-likeopen] {
  cursor: pointer;
}
.lc-init {
  font-size: 44px;
  font-weight: 800;
  color: #fff;
}
.lc-compat {
  position: absolute;
  top: 8px;
  right: 8px;
  background: #fff;
  color: var(--brand1);
  font-size: 11px;
  font-weight: 800;
  padding: 3px 8px;
  border-radius: 30px;
}
.lc-note {
  position: absolute;
  bottom: 8px;
  left: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
  color: #fff;
  font-size: 11px;
  padding: 5px 9px;
  border-radius: 10px;
  line-height: 1.3;
}
.lc-body {
  padding: 10px 12px 13px;
}
.lc-name {
  font-weight: 800;
  font-size: 15px;
  color: var(--ink);
}
.lc-meta {
  font-size: 12px;
  color: var(--muted);
  margin: 2px 0 9px;
}
.btn-likeback {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  border: none;
  background: var(--brand-grad);
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  padding: 9px;
  border-radius: 30px;
  cursor: pointer;
}
.btn-likeback svg {
  width: 14px;
  height: 14px;
}

/* ===== Like с сообщением (Hinge) ===== */
.note-like-btn {
  position: absolute;
  right: 18px;
  bottom: 120px;
  z-index: 5;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand1);
  font-weight: 700;
  font-size: 13px;
  padding: 9px 14px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.note-target {
  font-size: 14px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.note-target b {
  color: var(--ink);
}
.note-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
  display: block;
  margin-bottom: 8px;
}
.btn-save.full {
  width: 100%;
  border: none;
  background: var(--brand-grad);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 14px;
  border-radius: 14px;
  cursor: pointer;
  margin-top: 14px;
}
.chat-note {
  align-self: flex-start;
  max-width: 80%;
  background: var(--surface);
  border-left: 3px solid var(--brand1);
  border-radius: 12px;
  padding: 9px 13px;
  font-size: 13px;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.chat-note b {
  color: var(--brand1);
}

/* ===== Boost ===== */
.boost-btn.active {
  background: var(--brand-grad);
  color: #fff;
  animation: boostpulse 1.4s infinite;
}
@keyframes boostpulse {
  0%,
  100% {
    box-shadow: 0 0 0 0 rgba(124, 58, 237, 0.5);
  }
  50% {
    box-shadow: 0 0 0 7px rgba(124, 58, 237, 0);
  }
}
.boost-icon {
  font-size: 54px;
  margin: 6px 0 4px;
}
.boost-sub {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  margin-bottom: 6px;
}
.boost-timer {
  font-size: 13px;
  font-weight: 800;
  color: var(--brand1);
  margin: 10px 0;
}

/* ===== Чат-меню / безопасность ===== */
.ch-meta {
  flex: 1;
}
.chat-menu {
  border: none;
  background: transparent;
  cursor: pointer;
  color: var(--muted);
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
}
.chat-menu svg {
  width: 20px;
  height: 20px;
}
.menu-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  border: none;
  background: var(--surface2);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
  margin-bottom: 10px;
}
.menu-row span:first-child {
  font-size: 18px;
}
.menu-row.warn {
  color: var(--nope);
}
.safety-tips {
  background: var(--surface2);
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 16px;
}
.safety-tips h4 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--muted);
  font-weight: 800;
  margin-bottom: 10px;
}
.safety-tips ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.safety-tips li {
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.4;
  padding-left: 22px;
  position: relative;
}
.safety-tips li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--like);
  font-weight: 800;
}
.report-reasons {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 8px;
}
.report-reason {
  text-align: left;
  border: 1.5px solid var(--line);
  background: var(--surface);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink-soft);
  cursor: pointer;
}
.report-reason:hover {
  border-color: var(--nope);
  color: var(--nope);
}

/* ===== Standouts strip ===== */
/* ROADMAP #22 — planned first date card */
.chat-date {
  background: transparent;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  padding: 0 6px;
  color: var(--ink);
  line-height: 1;
}
.chat-date:hover {
  transform: scale(1.1);
}
.dateplan-msg {
  padding: 0 !important;
  background: transparent !important;
}
.dateplan-card {
  border-radius: 16px;
  padding: 12px 14px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(236, 72, 153, 0.18));
  border: 1.5px solid rgba(245, 158, 11, 0.5);
  color: var(--ink);
  max-width: 260px;
  font-size: 13px;
  line-height: 1.4;
}
.dateplan-card .dateplan-tag {
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #d97706;
  margin-bottom: 6px;
}
.dateplan-card .dp-row {
  margin: 3px 0;
}
.dateplan-card .dp-row b {
  font-weight: 700;
}
.dateplan-card .dp-note {
  font-style: italic;
  color: var(--muted);
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid rgba(245, 158, 11, 0.3);
}
.share-date-tochat {
  margin-top: 8px;
  width: 100%;
  background: linear-gradient(135deg, #f59e0b, #ec4899) !important;
  color: #fff !important;
}
/* ROADMAP #28 — safety journal of blocked users */
.block-journal {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.login-history {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.login-row {
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.login-when {
  font-size: 13px;
  font-weight: 600;
}
.login-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  word-break: break-word;
}
.login-empty,
.login-loading {
  font-size: 13px;
  color: var(--muted);
  padding: 4px 0 8px;
}
/* ===== Отзывы/репутация ===== */
.reviews-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.review-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.review-who {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
}
.review-name {
  font-size: 14px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.review-rep {
  font-size: 12px;
  color: var(--muted);
}
.rep-badge {
  display: inline-block;
  font-size: 12px;
  line-height: 1.3;
}
.rep-badge.rep-low {
  color: var(--muted);
  font-style: italic;
}
.rep-badge.rep-ok {
  color: var(--text);
  font-weight: 600;
}
.review-card {
  max-height: 88vh;
  overflow-y: auto;
}
.review-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin: 10px 0;
}
.review-flabel {
  font-size: 13px;
  font-weight: 600;
}
.rate-group {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.rate-btn,
.again-btn {
  min-width: 38px;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, color 0.12s;
}
.again-btn {
  flex: 1;
}
.rate-btn.on,
.again-btn.on {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.bj-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.bj-ava {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
}
.bj-info {
  flex: 1;
  min-width: 0;
}
.bj-name {
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.btn-bj-unblock {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  cursor: pointer;
  transition: 0.12s;
}
.btn-bj-unblock:hover {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.4);
}
.bj-empty {
  padding: 8px 0;
}
/* ROADMAP #35 — seasonal & holiday themes (subtle accents) */
html[data-season="spring"] {
  --season-tint: rgba(34, 197, 94, 0.06);
  --season-emoji: "🌸";
}
html[data-season="summer"] {
  --season-tint: rgba(245, 158, 11, 0.06);
  --season-emoji: "☀️";
}
html[data-season="autumn"] {
  --season-tint: rgba(217, 119, 6, 0.06);
  --season-emoji: "🍂";
}
html[data-season="winter"] {
  --season-tint: rgba(56, 189, 248, 0.06);
  --season-emoji: "❄️";
}
html[data-season] body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: var(--season-tint, transparent);
  z-index: 0;
}
html[data-holiday="martisor"] body::after {
  content: "🌹❤️🤍";
  position: fixed;
  top: 8px;
  right: 8px;
  font-size: 14px;
  opacity: 0.85;
  pointer-events: none;
  z-index: 5;
}
html[data-holiday="winter_holidays"] body::after {
  content: "🎄✨";
  position: fixed;
  top: 8px;
  right: 8px;
  font-size: 14px;
  opacity: 0.85;
  pointer-events: none;
  z-index: 5;
}
html[data-holiday="valentines"] body::after {
  content: "💝";
  position: fixed;
  top: 8px;
  right: 8px;
  font-size: 14px;
  opacity: 0.85;
  pointer-events: none;
  z-index: 5;
}
html[data-holiday="easter"] body::after {
  content: "🐣🌷";
  position: fixed;
  top: 8px;
  right: 8px;
  font-size: 14px;
  opacity: 0.85;
  pointer-events: none;
  z-index: 5;
}
/* ROADMAP #34 — guess-compatibility minigame */
.guess-compat-btn {
  cursor: pointer;
  border: 1px dashed rgba(124, 58, 237, 0.6);
  background: rgba(124, 58, 237, 0.08);
  color: var(--brand1, #7c3aed);
  transition: 0.12s;
}
.guess-compat-btn:hover {
  background: rgba(124, 58, 237, 0.16);
  border-style: solid;
}
.guess-slider-wrap {
  margin: 12px 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: center;
}
.guess-slider {
  width: 100%;
}
.guess-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--brand1, #7c3aed);
}
.guess-actions {
  display: flex;
  justify-content: center;
  margin-bottom: 8px;
}
.guess-result {
  margin-top: 10px;
  padding: 12px;
  border-radius: 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.guess-row {
  display: flex;
  justify-content: space-between;
  font-size: 14px;
}
.guess-row b {
  font-weight: 700;
}
.guess-verdict {
  font-size: 16px;
  font-weight: 700;
  text-align: center;
  margin: 8px 0;
}
.guess-verdict.great {
  color: #10b981;
}
.guess-verdict.close {
  color: #f59e0b;
}
.guess-verdict.far {
  color: var(--nope, #ef4444);
}
/* ROADMAP #33 — weekly report */
.weekly-report {
  margin-top: 4px;
}
.wr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.wr-col {
  border: 1px solid var(--line);
  background: var(--surface);
  border-radius: 12px;
  padding: 10px;
}
.wr-head {
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
  color: var(--ink);
}
.wr-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  padding: 2px 0;
  color: var(--muted);
}
.wr-row b {
  color: var(--ink);
}
.wr-empty {
  padding: 4px 0;
}
/* ROADMAP #29 — post-date safety check-in timer */
.checkin-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.checkin-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.btn-checkin-preset {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-size: 13px;
  transition: 0.12s;
}
.btn-checkin-preset:hover {
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.45);
}
.checkin-active {
  border: 1px solid rgba(124, 58, 237, 0.35);
  background: rgba(124, 58, 237, 0.06);
  padding: 10px;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 13px;
}
.checkin-active b {
  font-weight: 600;
}
.checkin-active .ck-left {
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.btn-checkin-clear {
  margin-top: 4px;
  align-self: flex-start;
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  font-size: 13px;
}
.btn-checkin-clear:hover {
  color: var(--nope);
  border-color: var(--nope);
}
/* ROADMAP #23 — translate offline phrase button on incoming text bubbles */
.msg-translate-btn {
  margin-top: 4px;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  line-height: 1.2;
  color: var(--muted);
  cursor: pointer;
  align-self: flex-start;
  opacity: 0.85;
  transition: 0.12s;
}
.msg-translate-btn:hover {
  opacity: 1;
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.4);
  color: var(--ink);
}
.msg-wrap.them {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
/* ROADMAP #15 — daily top pick */
.daily-pick {
  margin: 12px 16px 14px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.08), rgba(236, 72, 153, 0.08));
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  cursor: pointer;
  transition: 0.12s;
}
.daily-pick:hover {
  border-color: rgba(245, 158, 11, 0.6);
  transform: translateY(-1px);
}
.daily-pick .dp-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #d97706;
  margin-bottom: 4px;
}
.daily-pick .dp-sub {
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 10px;
}
.daily-pick .dp-card {
  display: flex;
  align-items: center;
  gap: 14px;
}
.daily-pick .dp-ava {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  font-weight: 800;
  color: #fff;
  flex: 0 0 64px;
}
.daily-pick .dp-info {
  flex: 1;
  min-width: 0;
}
.daily-pick .dp-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink);
}
.daily-pick .dp-meta {
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
}
.daily-pick .dp-compat {
  font-size: 12px;
  font-weight: 700;
  color: #d97706;
  margin-top: 4px;
}
/* ROADMAP #14 — liked nearby */
.nearby-likes {
  padding: 14px 0 6px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.nearby-likes .nl-head {
  padding: 0 16px 2px;
}
.nearby-likes .nl-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand1);
}
.nearby-likes .nl-sub {
  padding: 0 16px 10px;
  font-size: 12px;
  color: var(--muted);
}
.nearby-likes .nl-row {
  display: flex;
  gap: 10px;
  padding: 0 16px 8px;
  overflow-x: auto;
  scrollbar-width: none;
}
.nearby-likes .nl-row::-webkit-scrollbar {
  display: none;
}
.nl-card {
  flex: 0 0 110px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 8px;
  text-align: center;
  cursor: pointer;
  transition: 0.12s;
}
.nl-card:hover {
  border-color: var(--brand1);
  transform: translateY(-1px);
}
.nl-ava {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin: 0 auto 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
}
.nl-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.2;
}
.nl-meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}
.standouts {
  padding: 14px 0 4px;
}
.standouts .so-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  padding: 0 16px 2px;
}
.standouts .so-label {
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--brand1);
}
.so-refresh {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
}
.so-sub {
  padding: 0 16px 10px;
  font-size: 12px;
  color: var(--muted);
}
.so-compat {
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff;
  color: var(--brand1);
  font-size: 9px;
  font-weight: 800;
  padding: 2px 6px;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
}
.so-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 6px 16px 6px;
}
.so-card {
  flex: 0 0 88px;
  text-align: center;
  cursor: pointer;
}
.so-ava {
  width: 74px;
  height: 74px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  color: #fff;
  font-weight: 800;
  font-size: 28px;
  margin: 0 auto;
  border: 2.5px solid var(--brand2);
  position: relative;
}
.so-name {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-top: 5px;
}
.so-card {
  position: relative;
}
.so-rose {
  position: absolute;
  top: -6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
  font-size: 14px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  display: grid;
  place-items: center;
  transition: transform 0.12s ease;
}
.so-rose:hover {
  transform: scale(1.12);
}
.so-rose:active {
  transform: scale(0.92);
}
.rose-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 2px 0 12px;
}
.rose-pick {
  display: block;
  width: 100%;
  text-align: left;
  background: var(--surface2);
  border: 1.5px solid var(--line);
  border-radius: 14px;
  padding: 11px 13px;
  margin-bottom: 9px;
  cursor: pointer;
  transition:
    border-color 0.12s ease,
    transform 0.1s ease;
}
.rose-pick:hover {
  border-color: var(--brand);
}
.rose-pick:active {
  transform: scale(0.985);
}
.rose-pick-q {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand1);
  margin-bottom: 3px;
}
.rose-pick-a {
  font-size: 14px;
  color: var(--ink);
}
.rose-empty {
  font-size: 13px;
  color: var(--muted);
  padding: 6px 2px 12px;
}
.rose-generic {
  margin-top: 4px;
}

/* ===== Passport / режим путешествия (Tinder Passport) ===== */
.travel-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 10px 16px 0;
  padding: 9px 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(236, 72, 153, 0.12));
  border: 1px solid rgba(124, 58, 237, 0.25);
}
.travel-banner span {
  font-size: 13px;
  font-weight: 700;
  color: var(--brand1);
}
.travel-banner button {
  border: none;
  background: #fff;
  color: var(--brand1);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: 30px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  white-space: nowrap;
}
.flavour-banner {
  margin: 10px 16px 0;
  padding: 8px 14px;
  border-radius: 12px;
  background: linear-gradient(135deg, rgba(33, 87, 158, 0.1), rgba(253, 178, 0, 0.1));
  border: 1px solid rgba(33, 87, 158, 0.18);
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink);
}
.flavour-banner[hidden] {
  display: none;
}
.flavour-banner .flavour-title {
  font-weight: 700;
  color: var(--brand1);
  margin-right: 6px;
}
.flavour-banner .flavour-text {
  color: var(--ink-soft);
}
.btn-load-more {
  display: block;
  width: calc(100% - 32px);
  margin: 14px 16px 18px;
  padding: 12px 16px;
  border: 1px dashed var(--brand1);
  background: var(--surface2);
  color: var(--brand1);
  font-weight: 700;
  font-size: 14px;
  border-radius: 12px;
  cursor: pointer;
}
.btn-load-more:hover {
  background: var(--surface);
}
.btn-load-more .lm-count {
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-soft);
  margin-left: 6px;
}
.travel-row label {
  align-items: center;
  gap: 6px;
}
.travel-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 0 0 8px;
  font-weight: 400;
}

/* ===== Таймер мэтча / «твой ход» (Bumble) ===== */
.nm {
  position: relative;
}
.nm .nm-timer {
  display: block;
  font-size: 10px;
  font-weight: 800;
  color: var(--brand2);
  margin-top: 2px;
}
.nm .your-move {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--brand-grad);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 30px;
  white-space: nowrap;
}

/* ===== Присутствие в чате: статус, печатает, прочитано (Bumble/Tinder/WhatsApp) ===== */
.chat-head .ch-status {
  color: var(--muted);
  transition: color 0.2s;
}
.chat-head .ch-status.online-status {
  color: var(--like);
}
.chat-head .ch-status.online-status::before {
  content: "● ";
  font-size: 9px;
  vertical-align: middle;
}
.chat-head .ch-status.typing-status {
  color: var(--brand1);
  font-style: italic;
}
.msg-receipt {
  align-self: flex-end;
  font-size: 10px;
  font-weight: 700;
  color: var(--muted);
  margin: -3px 4px 2px 0;
}

/* ===== Реакции на сообщения (Tinder/iMessage) ===== */
.msg-wrap {
  position: relative;
  display: flex;
  max-width: 80%;
}
.msg-wrap.me {
  align-self: flex-end;
  justify-content: flex-end;
}
.msg-wrap.them {
  align-self: flex-start;
}
.msg[data-mi] {
  position: relative;
  cursor: pointer;
}
.ci-draft {
  color: var(--brand1);
  font-style: italic;
}
.msg-reaction {
  position: absolute;
  bottom: -10px;
  right: 6px;
  background: var(--surface);
  border-radius: 30px;
  padding: 1px 5px;
  font-size: 13px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  line-height: 1.2;
}
.msg-wrap.them .msg-reaction {
  right: auto;
  left: 6px;
}
/* ===== Reply/quote блок в сообщении и панель ответа ===== */
.msg-reply {
  display: flex;
  align-items: stretch;
  gap: 8px;
  padding: 6px 8px;
  margin: -2px -4px 6px;
  background: rgba(0, 0, 0, 0.06);
  border-radius: 8px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.3;
  max-width: 100%;
}
.msg.me .msg-reply {
  background: rgba(255, 255, 255, 0.18);
}
.msg-reply-bar {
  width: 3px;
  border-radius: 3px;
  background: var(--brand1);
  flex-shrink: 0;
}
.msg.me .msg-reply-bar {
  background: rgba(255, 255, 255, 0.9);
}
.msg-reply-text {
  flex: 1;
  opacity: 0.9;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 200px;
}
.msg.album-msg .msg-reply {
  margin: 0;
  border-radius: 14px 14px 0 0;
}
.msg-flash {
  animation: msgFlash 1.2s ease-out;
}
@keyframes msgFlash {
  0% {
    background-color: rgba(124, 58, 237, 0.25);
  }
  100% {
    background-color: transparent;
  }
}
.reply-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  background: var(--surface);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 13px;
}
.reply-bar[hidden] {
  display: none;
}
.reply-bar-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  border-left: 3px solid var(--brand1);
  padding-left: 8px;
}
.reply-bar-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand1);
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.reply-bar-snippet {
  color: var(--text);
  opacity: 0.85;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.reply-bar-cancel {
  background: transparent;
  border: 0;
  color: var(--muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 50%;
}
.reply-bar-cancel:hover,
.reply-bar-cancel:focus-visible {
  background: rgba(0, 0, 0, 0.06);
}
.react-opt.react-reply {
  font-size: 14px;
  font-weight: 700;
  color: var(--brand1);
}
/* ===== Эмодзи-пикер и стикеры ===== */
.chat-emoji {
  background: transparent;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  padding: 0 4px;
  line-height: 1;
}
.emoji-panel {
  background: var(--surface);
  border-top: 1px solid var(--line);
  padding: 8px 10px 10px;
}
.emoji-panel[hidden] {
  display: none;
}
.emoji-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 8px;
}
.emoji-tab {
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 4px 10px;
  font-size: 13px;
  cursor: pointer;
  color: var(--text);
}
.emoji-tab.on {
  background: var(--brand1);
  color: #fff;
  border-color: var(--brand1);
}
.emoji-grid {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  gap: 4px;
  max-height: 180px;
  overflow-y: auto;
}
.emoji-grid.stk {
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}
.emoji-cell {
  background: transparent;
  border: 0;
  font-size: 22px;
  cursor: pointer;
  border-radius: 8px;
  padding: 6px 0;
  line-height: 1;
}
.emoji-cell:hover,
.emoji-cell:focus-visible {
  background: rgba(0, 0, 0, 0.06);
}
.sticker-cell {
  background: rgba(124, 58, 237, 0.08);
  border: 0;
  font-size: 44px;
  cursor: pointer;
  border-radius: 12px;
  padding: 10px 0;
  line-height: 1;
  transition: transform 0.12s;
}
.sticker-cell:hover,
.sticker-cell:focus-visible {
  background: rgba(124, 58, 237, 0.16);
  transform: scale(1.04);
}
.msg.sticker-msg {
  background: transparent !important;
  padding: 0;
  box-shadow: none;
  border: 0;
}
.sticker-emoji {
  font-size: 64px;
  line-height: 1;
  display: inline-block;
  filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.18));
}
/* медиа-сообщения чата (фото/видео) */
.msg.media-msg {
  padding: 4px;
}
.msg-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 120px;
  min-height: 90px;
  max-width: 240px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.06);
  color: var(--muted, #888);
  overflow: hidden;
}
.msg-media.media-failed {
  font-size: 22px;
}
.msg-media-el {
  display: block;
  max-width: 240px;
  max-height: 320px;
  width: auto;
  height: auto;
  border-radius: 12px;
}
.msg-media-orig {
  display: block;
  margin-top: 4px;
  font-size: 12px;
  background: rgba(0, 0, 0, 0.45);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 3px 8px;
  cursor: pointer;
}
.msg-media-orig:disabled {
  opacity: 0.5;
  cursor: default;
}
.msg-media-cap {
  margin-top: 4px;
  font-size: 14px;
  padding: 0 4px 2px;
  word-break: break-word;
}
.chat-attach,
.chat-album {
  background: transparent;
  border: 0;
  font-size: 20px;
  cursor: pointer;
  padding: 6px;
  line-height: 1;
}
.album-share-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.album-share-cell {
  position: relative;
  aspect-ratio: 1;
  border: 0;
  padding: 0;
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  background: var(--surface2);
}
.album-share-cell img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.album-share-cell:disabled {
  opacity: 0.5;
  cursor: default;
}
.react-pop {
  position: absolute;
  top: -46px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 2px;
  background: var(--surface);
  border-radius: 30px;
  padding: 5px 7px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  z-index: 20;
}
.react-opt {
  border: none;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
  padding: 2px 4px;
  border-radius: 50%;
  transition: 0.12s;
  line-height: 1;
}
.react-opt:hover {
  transform: scale(1.25);
}
.react-opt.on {
  background: var(--surface2);
}

/* ===== Верификация по селфи (Bumble/Tinder) ===== */
.verify-emoji {
  font-size: 56px;
  margin: 6px 0 10px;
}
.verify-emoji.ok {
  animation: pop 0.35s ease;
}
.verify-frame {
  width: 170px;
  height: 170px;
  margin: 6px auto 14px;
  border-radius: 50%;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(236, 72, 153, 0.12));
  border: 3px dashed var(--brand1);
}
.verify-frame.scanning {
  border-style: solid;
}
.verify-pose {
  font-size: 68px;
}
.scan-line {
  position: absolute;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--super);
  box-shadow: 0 0 12px 3px rgba(59, 130, 246, 0.6);
  animation: scanmove 1.2s ease-in-out infinite;
}
@keyframes scanmove {
  0% {
    top: 6%;
  }
  50% {
    top: 90%;
  }
  100% {
    top: 6%;
  }
}
.verify-bar {
  height: 6px;
  background: var(--surface2);
  border-radius: 6px;
  overflow: hidden;
  margin: 14px 0 4px;
}
.verify-bar span {
  display: block;
  height: 100%;
  background: var(--brand-grad);
  width: 0;
  animation: verifyfill 1.7s ease forwards;
}
@keyframes verifyfill {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}

/* ===== Голосовое интро (Hinge voice prompts) ===== */
.voice-player {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 10px 12px;
}
.voice-player.on-dark {
  background: rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.25);
  margin-top: 10px;
}
.voice-play-btn {
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  background: var(--brand-grad);
  color: #fff;
  font-size: 15px;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.voice-mid {
  flex: 1;
  min-width: 0;
}
.voice-prompt {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  margin-bottom: 5px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.voice-player.on-dark .voice-prompt {
  color: #fff;
}
.voice-wave {
  display: flex;
  align-items: center;
  gap: 2px;
  height: 24px;
}
.voice-wave span {
  flex: 1;
  min-width: 2px;
  background: var(--brand1);
  opacity: 0.45;
  border-radius: 2px;
  height: 40%;
}
.voice-player.on-dark .voice-wave span {
  background: #fff;
}
.voice-player.playing .voice-wave span {
  animation: wavebeat 0.7s ease-in-out infinite;
  opacity: 0.9;
}
.voice-wave span:nth-child(2n) {
  animation-delay: 0.15s;
}
.voice-wave span:nth-child(3n) {
  animation-delay: 0.3s;
}
.voice-wave span:nth-child(5n) {
  animation-delay: 0.45s;
}
@keyframes wavebeat {
  0%,
  100% {
    transform: scaleY(0.5);
  }
  50% {
    transform: scaleY(1.25);
  }
}
.voice-time {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
}
.voice-player.on-dark .voice-time {
  color: #fff;
}
/* запись */
.voice-rec {
  text-align: center;
}
.voice-wave.live {
  height: 34px;
  margin-bottom: 8px;
}
.voice-wave.live span {
  height: 50%;
  animation: wavebeat 0.6s ease-in-out infinite;
  opacity: 0.8;
}
.rec-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-bottom: 12px;
}
.rec-dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--nope);
  animation: recblink 1s steps(2, end) infinite;
}
@keyframes recblink {
  50% {
    opacity: 0.2;
  }
}
.rec-time {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}
.voice-edit-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
}
.voice-edit-actions .btn-cancel {
  flex: 1;
  padding: 11px;
  border-radius: 12px;
  border: none;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
}
.voice-del {
  color: var(--nope);
}

/* ===== Hinge: лайк конкретного фото / промпта с комментарием ===== */
.photo-like-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 6;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}
.photo-like-btn:hover {
  transform: scale(1.1);
  background: rgba(236, 72, 153, 0.85);
}
.photo-like-btn:active {
  transform: scale(0.92);
}
.prompt-like-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.28);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.15s ease,
    background 0.15s ease;
}
.prompt-like-btn:hover {
  transform: scale(1.12);
  background: rgba(236, 72, 153, 0.9);
}
.note-subj {
  margin-top: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--brand1);
  background: rgba(124, 58, 237, 0.08);
  border-radius: 8px;
  padding: 6px 9px;
}
.chat-note-subj {
  display: inline-block;
  margin-left: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--brand1);
  background: rgba(124, 58, 237, 0.1);
  border-radius: 6px;
  padding: 2px 6px;
}

/* ===== Stories / «Моменты» (Spotlight) ===== */
.stories-row {
  display: flex;
  gap: 14px;
  padding: 10px 14px 4px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.stories-row::-webkit-scrollbar {
  display: none;
}
.story-cell {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  cursor: pointer;
  width: 64px;
}
.story-ring {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  padding: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.story-ring.has {
  background: linear-gradient(45deg, #feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5);
}
.story-ring.add {
  background: #e5e1ee;
}
.story-thumb {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2.5px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 20px;
  background-size: cover;
}
.story-plus {
  position: absolute;
  bottom: -1px;
  right: -1px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand1);
  color: #fff;
  font-size: 15px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fff;
}
.story-label {
  font-size: 11px;
  color: var(--ink);
  max-width: 62px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.story-viewer {
  position: absolute;
  inset: 0;
  z-index: 60;
  background: #000;
  display: none;
  flex-direction: column;
  overflow: hidden;
}
.story-viewer.open {
  display: flex;
}
.story-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.story-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.55) 0%,
    rgba(0, 0, 0, 0) 28%,
    rgba(0, 0, 0, 0) 60%,
    rgba(0, 0, 0, 0.6) 100%
  );
}
.story-bars {
  position: absolute;
  top: 10px;
  left: 10px;
  right: 10px;
  display: flex;
  gap: 4px;
  z-index: 3;
}
.sbar {
  flex: 1;
  height: 3px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.35);
  overflow: hidden;
}
.sbar-fill {
  height: 100%;
  width: 0;
  background: #fff;
  border-radius: 3px;
}
.sbar-fill.done {
  width: 100%;
}
.sbar-fill.run {
  animation: sbarfill 4s linear forwards;
}
@keyframes sbarfill {
  from {
    width: 0;
  }
  to {
    width: 100%;
  }
}
.story-top {
  position: absolute;
  top: 22px;
  left: 12px;
  right: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  z-index: 4;
}
.story-who {
  display: flex;
  align-items: center;
  gap: 9px;
}
.story-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 2px solid #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
  background-size: cover;
}
.story-name {
  color: #fff;
  font-weight: 800;
  font-size: 14px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.story-ago {
  color: rgba(255, 255, 255, 0.85);
  font-size: 11px;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}
.story-close {
  background: none;
  border: none;
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  line-height: 1;
}
.story-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 64px;
  z-index: 4;
  text-align: center;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  padding: 0 28px;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
  line-height: 1.3;
}
.story-nav {
  position: absolute;
  top: 60px;
  bottom: 0;
  width: 40%;
  z-index: 3;
}
.story-nav.left {
  left: 0;
}
.story-nav.right {
  right: 0;
}

.story-add-sub {
  font-size: 13px;
  color: var(--muted);
  margin: 0 0 14px;
}
.mood-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
}
.mood-opt {
  border: 1.5px solid var(--line);
  background: var(--surface);
  color: var(--text);
  border-radius: 13px;
  padding: 13px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
  transition:
    border-color 0.15s ease,
    background 0.15s ease;
}
.mood-opt:hover {
  border-color: var(--brand1);
  background: rgba(124, 58, 237, 0.05);
}
.story-del-btn {
  margin-top: 14px;
  color: var(--nope);
}

/* ===== Полный профиль (detail view) ===== */
.detail-expand {
  position: absolute;
  bottom: 18px;
  left: 16px;
  z-index: 7;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand1);
  font-size: 19px;
  font-weight: 800;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
}
.detail-expand:active {
  transform: scale(0.92);
}
.detail-view {
  position: absolute;
  inset: 0;
  z-index: 55;
  background: var(--surface2);
  display: none;
  flex-direction: column;
}
.detail-view.open {
  display: flex;
}
.detail-close {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 8;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: rgba(0, 0, 0, 0.4);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
}
.detail-scroll {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 96px;
}
.dv-hero {
  position: relative;
  height: 440px;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: flex-end;
}
.dv-hero-init {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 120px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.5);
}
.dv-hero-grad {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.65) 100%);
}
.dv-hero-name {
  position: relative;
  z-index: 2;
  padding: 18px;
  color: #fff;
}
.dv-hero-name h2 {
  font-size: 28px;
  font-weight: 800;
  margin: 0;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}
.dv-hero-name h2 span {
  font-weight: 400;
}
.dv-hero-meta {
  font-size: 14px;
  margin-top: 3px;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.6);
}
.dv-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 16px 4px;
}
.dv-story-badge {
  font-size: 12px;
  font-weight: 700;
  color: #962fbf;
  background: rgba(150, 47, 191, 0.1);
  border-radius: 20px;
  padding: 6px 12px;
  cursor: pointer;
}
.dv-block {
  padding: 14px 16px;
  background: var(--surface);
  margin: 10px 12px;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.dv-block h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--muted);
  margin: 0 0 9px;
}
.dv-bio {
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink);
  margin: 0;
}
.dv-vitals {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.dv-vitals span {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-soft);
  background: var(--surface2);
  border-radius: 10px;
  padding: 7px 11px;
}
.dv-photo {
  height: 380px;
  margin: 10px 12px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
}
.dv-prompt {
  padding: 16px;
  background: var(--surface);
  margin: 10px 12px;
  border-radius: 16px;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.dv-prompt .pq {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.4px;
}
.dv-prompt .pa {
  font-size: 19px;
  font-weight: 700;
  color: var(--ink);
  margin-top: 5px;
  line-height: 1.3;
}
.detail-actions {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 8;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 14px 0 18px;
  background: linear-gradient(180deg, rgba(246, 244, 251, 0), var(--surface2) 40%);
}
.da-btn {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  border: none;
  background: var(--surface);
  font-size: 22px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.14);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s ease;
}
.da-btn:active {
  transform: scale(0.9);
}
.da-btn.nope {
  color: var(--nope);
}
.da-btn.like {
  color: var(--like);
}
.da-btn.super {
  color: var(--super);
}
.da-btn.note {
  color: var(--brand1);
  width: 46px;
  height: 46px;
  font-size: 18px;
}
.da-btn.like,
.da-btn.super {
  width: 60px;
  height: 60px;
  font-size: 26px;
}

/* ===== Bumble 24h таймер мэтча ===== */
.nm .nm-timer.urgent {
  color: var(--nope);
  animation: nmpulse 1.4s ease-in-out infinite;
}
@keyframes nmpulse {
  50% {
    opacity: 0.45;
  }
}

/* ===== Hinge «Розы» ===== */
.da-btn.rose {
  width: 50px;
  height: 50px;
  font-size: 22px;
  background: var(--surface);
}
.da-btn.rose:active {
  transform: scale(0.9);
}
.rose-note {
  background: linear-gradient(135deg, #fb7185, #e11d48) !important;
  color: #fff !important;
  font-weight: 700;
  border: none !important;
}
.like-card.has-rose {
  box-shadow:
    0 0 0 2px #fb7185,
    0 4px 14px rgba(225, 29, 72, 0.18);
}
.lc-rose {
  position: absolute;
  top: 8px;
  left: 8px;
  background: linear-gradient(135deg, #fb7185, #e11d48);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  padding: 4px 8px;
  border-radius: 20px;
  box-shadow: 0 2px 6px rgba(225, 29, 72, 0.35);
}

/* «Две правды и одна ложь» */
.dv-poll .poll-hint {
  font-size: 13px;
  color: var(--muted);
  margin: -4px 0 10px;
}
.poll-opts {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.poll-opt {
  text-align: left;
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface2);
  border: 1.5px solid var(--line);
  border-radius: 13px;
  padding: 12px 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.poll-opt:not(:disabled):active {
  transform: scale(0.98);
}
.poll-opt:not(:disabled):hover {
  border-color: var(--brand);
}
.poll-opt.is-lie {
  border-color: #16a34a;
  background: rgba(22, 163, 74, 0.1);
  color: #15803d;
}
.poll-opt.is-lie::after {
  content: " ✓ " attr(data-lie-label);
}
.poll-opt.is-wrong {
  border-color: #dc2626;
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}
.poll-opt:disabled {
  cursor: default;
  opacity: 1;
}
.poll-feedback {
  font-size: 14px;
  font-weight: 700;
  margin-top: 10px;
  min-height: 1px;
}
.poll-feedback.ok {
  color: #15803d;
}
.poll-feedback.no {
  color: #b91c1c;
}
.poll-edit-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 12px;
  margin-bottom: 10px;
}
.poll-lie-pick {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
}
.poll-lie-pick input {
  accent-color: var(--brand);
}

/* Общий альбом свиданий */
.album-count {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 10px;
  font-weight: 600;
}
.album-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 14px;
}
.album-tile {
  position: relative;
  aspect-ratio: 1/1;
  border-radius: 16px;
  overflow: hidden;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}
.album-cap {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.3);
}
.album-ts {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.9;
  margin-top: 3px;
}
.album-send {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  font-size: 14px;
  cursor: pointer;
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}
.album-send:hover,
.album-send:focus-visible {
  background: rgba(0, 0, 0, 0.55);
}
.msg.album-msg {
  padding: 0;
  overflow: hidden;
  background: transparent;
  border-radius: 18px;
  max-width: 240px;
}
.album-msg-card {
  padding: 14px 16px 16px;
  color: #fff;
  border-radius: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.18);
}
.album-msg-tag {
  font-size: 11px;
  font-weight: 700;
  opacity: 0.95;
  text-transform: uppercase;
  letter-spacing: 0.3px;
}
.album-msg-cap {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.2;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}
.album-empty {
  text-align: center;
  color: var(--muted);
  font-size: 14px;
  padding: 24px 8px;
}
.album-add-sub {
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 12px;
}
.album-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.album-pick {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  background: var(--surface2);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  padding: 9px 14px;
  cursor: pointer;
  transition: all 0.15s;
}
.album-pick:active {
  transform: scale(0.96);
}
.album-pick:hover {
  border-color: var(--brand);
}

/* Совместимость по ответам (OkCupid-стиль) */
.dv-compat .compat-summary {
  font-size: 14px;
  font-weight: 800;
  color: var(--brand);
  margin: -4px 0 12px;
}
.dv-compat .compat-need {
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.compat-row {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.compat-row:first-of-type {
  border-top: none;
}
.cr-q {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  display: flex;
  align-items: center;
  gap: 7px;
}
.cr-icon {
  font-size: 16px;
}
.cr-ans {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.cr-them {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
}
.cr-you {
  font-size: 12px;
  color: var(--muted);
}
.cr-tag {
  font-size: 11px;
  font-weight: 800;
  padding: 2px 8px;
  border-radius: 12px;
}
.cr-tag.ok {
  background: rgba(22, 163, 74, 0.12);
  color: #15803d;
}
.cr-tag.no {
  background: rgba(220, 38, 38, 0.1);
  color: #b91c1c;
}
.compat-row.agree .cr-them {
  color: #15803d;
}

/* Видеозвонок (симуляция) */
.call-note {
  background: #0f172a !important;
  color: #fff !important;
  font-weight: 700;
  border: none !important;
  text-align: center;
}
.blind-note {
  background: linear-gradient(135deg, #434343, #000) !important;
  color: #fff !important;
  font-weight: 700;
  border: none !important;
  text-align: center;
}
.scam-note {
  background: #fef3c7 !important;
  color: #92400e !important;
  border-left: 3px solid #f59e0b !important;
  align-self: center !important;
  max-width: 92% !important;
  font-size: 12.5px;
  line-height: 1.4;
  font-weight: 600;
}
.call-screen {
  position: fixed;
  inset: 0;
  z-index: 120;
  display: none;
  background: #0b1020;
  color: #fff;
}
.call-screen.open {
  display: block;
}
.call-remote {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
}
.call-remote-init {
  font-size: 120px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 6px 30px rgba(0, 0, 0, 0.4);
}
.call-remote-grad {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 30%, transparent, rgba(0, 0, 0, 0.45));
  pointer-events: none;
}
.call-self {
  position: absolute;
  top: 74px;
  right: 16px;
  width: 96px;
  height: 130px;
  border-radius: 16px;
  z-index: 2;
  display: grid;
  place-items: center;
  font-size: 34px;
  font-weight: 800;
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  border: 2px solid rgba(255, 255, 255, 0.25);
  overflow: hidden;
}
.call-self-off {
  position: absolute;
  inset: 0;
  display: none;
  place-items: center;
  background: #1e293b;
  font-size: 30px;
}
.call-self-off.show {
  display: grid;
}
.call-topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 22px 18px;
  text-align: center;
  z-index: 3;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), transparent);
}
.call-name {
  font-size: 22px;
  font-weight: 800;
}
.call-status {
  font-size: 14px;
  opacity: 0.85;
  margin-top: 4px;
}
.call-controls {
  position: absolute;
  bottom: 42px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 22px;
  z-index: 3;
}
.call-btn {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  font-size: 24px;
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: 0.15s;
  backdrop-filter: blur(4px);
}
.call-btn:active {
  transform: scale(0.92);
}
.call-btn.active {
  background: #fff;
  color: #0b1020;
}
.call-btn.end {
  background: #ef4444;
  transform: rotate(135deg);
}
.call-btn.end:active {
  transform: rotate(135deg) scale(0.92);
}
.call-remote-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  z-index: 1;
}
.call-remote-video.show {
  display: block;
}
.call-self-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
  transform: scaleX(-1);
}
.call-self-video.show {
  display: block;
}
.call-incoming {
  position: absolute;
  bottom: 42px;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 60px;
  z-index: 4;
}
.call-incoming[hidden] {
  display: none;
}
.call-btn.accept {
  background: #22c55e;
}
.call-btn.accept:active {
  transform: scale(0.92);
}

/* ===== Подтверждение действия + undo (ROADMAP #25) ===== */
.confirm-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.confirm-actions .btn-ghost,
.confirm-actions .btn-danger {
  flex: 1;
  text-align: center;
}
.btn-danger {
  padding: 13px 26px;
  border: none;
  background: #e11d48;
  color: #fff;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
}
.btn-danger:active {
  filter: brightness(0.92);
}
.toast.with-undo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-right: 8px;
}
.toast .toast-undo {
  border: none;
  background: transparent;
  color: #fda4af;
  font-weight: 800;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 14px;
  font-size: 14px;
}
.toast .toast-undo:active {
  background: rgba(255, 255, 255, 0.12);
}

/* ===== Доступность: видимый фокус + клавиатура (ROADMAP #41/#42) ===== */
:focus {
  outline: none;
}
:focus-visible {
  outline: 3px solid var(--brand1);
  outline-offset: 2px;
  border-radius: 8px;
}
.act:focus-visible {
  outline: 3px solid var(--brand1);
  outline-offset: 3px;
}
.bottomnav button:focus-visible {
  outline: 3px solid var(--brand1);
  outline-offset: -3px;
  border-radius: 12px;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:focus-visible,
[role="button"]:focus-visible {
  outline: 3px solid var(--brand1);
  outline-offset: 2px;
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 0.001ms !important;
    transition-duration: 0.001ms !important;
  }
}

/* ===== Онбординг: пошаговый мастер + live-превью (ROADMAP #2) ===== */
.onb-preview {
  margin: 14px 0 10px;
}
.onb-prev-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border-radius: 18px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff;
  box-shadow: var(--shadow-sm);
  transition: background 0.3s ease;
}
.onb-prev-ava {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 800;
  flex: 0 0 auto;
}
.onb-prev-meta {
  text-align: left;
}
.onb-prev-name {
  font-weight: 800;
  font-size: 17px;
}
.onb-prev-sub {
  font-size: 13px;
  opacity: 0.9;
  margin-top: 2px;
}
.onb-dots {
  display: flex;
  gap: 7px;
  justify-content: center;
  margin: 6px 0 14px;
}
.onb-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.15);
  transition: all 0.2s ease;
}
.onb-dot.on {
  background: var(--brand1);
  width: 22px;
  border-radius: 6px;
}
.onb-grads {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-top: 8px;
}
.onb-grad {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 3px solid transparent;
  cursor: pointer;
}
.onb-grad.on {
  border-color: var(--ink);
  transform: scale(1.08);
}
.onb-nav {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}
.onb-nav .btn-primary {
  flex: 1;
}
.onb-nav .btn-ghost {
  flex: 0 0 auto;
}
.onb-err {
  margin-top: 8px;
  color: #ff4d6d;
  font-size: 13px;
  font-weight: 600;
}
.onb-err[hidden] {
  display: none;
}

/* ===== Несколько «фото»/градиентов профиля (ROADMAP #3) ===== */
.ps-hint {
  font-size: 12px;
  color: var(--muted, #888);
  margin: 2px 0 8px;
}
/* ROADMAP #5: bio quality hint */
.bio-quality {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted, #888);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.05);
  border-left: 3px solid transparent;
  transition:
    border-left-color 0.2s,
    background 0.2s;
}
.bio-quality[data-level=""] {
  display: none;
}
.bio-quality[data-level="empty"] {
  border-left-color: #6b7280;
  background: rgba(107, 114, 128, 0.08);
}
.bio-quality[data-level="short"] {
  border-left-color: #f59e0b;
  background: rgba(245, 158, 11, 0.08);
  color: #b45309;
}
.bio-quality[data-level="emoji"] {
  border-left-color: #ec4899;
  background: rgba(236, 72, 153, 0.08);
  color: #be185d;
}
.bio-quality[data-level="good"] {
  border-left-color: #10b981;
  background: rgba(16, 185, 129, 0.08);
  color: #047857;
}
.grad-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.grad-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.03);
  cursor: grab;
}
.grad-item:active {
  cursor: grabbing;
}
.grad-sw {
  flex: 1;
  height: 46px;
  border-radius: 12px;
  position: relative;
}
.grad-main {
  position: absolute;
  left: 8px;
  top: 8px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
  background: rgba(0, 0, 0, 0.35);
  padding: 2px 8px;
  border-radius: 10px;
}
.grad-ops {
  display: flex;
  gap: 4px;
}
.grad-op {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 9px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.grad-op:disabled {
  opacity: 0.35;
  cursor: default;
}
.grad-op.danger {
  color: #e11d48;
}
.grad-pal {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.grad-add {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: none;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
}
.grad-add:disabled {
  opacity: 0.4;
  cursor: default;
}

/* ===== Skeleton shimmer (пока подгружается фото) ===== */
.skeleton {
  position: relative;
  overflow: hidden;
}
.skeleton::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.28) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: translateX(-100%);
  animation: aproape-shimmer 1.4s linear infinite;
  pointer-events: none;
  z-index: 1;
}
@keyframes aproape-shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}
@media (prefers-reduced-motion: reduce) {
  .skeleton::after {
    animation: none;
    opacity: 0.2;
  }
}

/* ===== Загрузка собственных фото ===== */
.photo-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 10px;
}
.photo-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px;
  border-radius: 14px;
  background: rgba(0, 0, 0, 0.04);
}
.photo-thumb {
  flex: 1;
  height: 64px;
  border-radius: 12px;
  background-size: cover;
  background-position: center;
  background-color: rgba(0, 0, 0, 0.08);
}
.photo-ops {
  display: flex;
  gap: 4px;
}
.photo-op {
  width: 30px;
  height: 30px;
  border: none;
  border-radius: 9px;
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}
.photo-op:disabled {
  opacity: 0.35;
  cursor: default;
}
.photo-op.danger {
  color: #e11d48;
}
.btn-photo-upload {
  display: inline-block;
  padding: 10px 16px;
  border-radius: 12px;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  user-select: none;
}
.btn-photo-upload:hover {
  filter: brightness(1.05);
}
.photo-err {
  margin-top: 8px;
  font-size: 13px;
  color: #e11d48;
  font-weight: 600;
}

/* ===== Фаза 3: альбомы (visibility, NSFW-блюр, приватные гейты) ===== */
.photo-vis {
  border: 1px solid var(--border, rgba(0, 0, 0, 0.12));
  border-radius: 9px;
  padding: 5px 7px;
  font-size: 12px;
  background: var(--surface);
  color: var(--text, inherit);
  max-width: 120px;
}
.dv-album {
  display: block;
}
.album-title {
  margin: 0 0 10px;
  font-size: 15px;
}
.album-loading {
  padding: 12px 0;
  color: var(--muted);
  font-size: 13px;
}
.album-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.album-tile {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  aspect-ratio: 1 / 1;
  background: rgba(0, 0, 0, 0.08);
}
.album-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
}
.album-lock {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 8px;
  text-align: center;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(2px);
}
.album-lock-txt {
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}
.album-btn {
  border: none;
  border-radius: 10px;
  padding: 7px 12px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  background: linear-gradient(135deg, #7c3aed, #ec4899);
  color: #fff;
  box-shadow: var(--shadow-sm);
}
.album-btn:disabled {
  opacity: 0.6;
  cursor: default;
}
.album-btn.deny {
  background: #f1f1f4;
  color: #e11d48;
}
.album-btn.approve {
  background: linear-gradient(135deg, #16a34a, #22c55e);
}
/* панель входящих запросов владельцу */
.album-req-card {
  max-width: 460px;
  width: 92%;
}
.album-req-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
}
.album-req-head h3 {
  margin: 0;
  font-size: 17px;
}
.modal-x {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
  line-height: 1;
}
.album-req-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.album-req-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.04);
}
.album-req-who {
  font-weight: 600;
  font-size: 14px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.album-req-ops {
  display: flex;
  gap: 6px;
  flex-shrink: 0;
}
.album-req-empty {
  color: var(--muted);
  font-size: 14px;
  padding: 12px 0;
}

/* ===== Подсказки-примеры в промптах (ROADMAP #4) ===== */
.prompt-ex {
  font-size: 12px;
  color: var(--muted, #888);
  margin-top: 4px;
  line-height: 1.4;
}
.prompt-ex em {
  font-style: italic;
  color: var(--ink);
  opacity: 0.8;
}

/* ===== Сортировка ленты (ROADMAP #10) ===== */
.sort-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.sort-row::-webkit-scrollbar {
  display: none;
}
.sort-lbl {
  font-size: 12px;
  color: var(--muted);
  flex: none;
}
.sort-chip {
  flex: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.sort-chip:hover {
  border-color: var(--brand1);
}
.sort-chip.on {
  background: var(--brand-grad);
  color: #fff;
  border-color: transparent;
}

/* ===== #19 «Стопки» — быстрые фильтры ленты ===== */
.stacks-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 16px 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.stacks-row::-webkit-scrollbar {
  display: none;
}
.stack-chip {
  flex: none;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.15s;
}
.stack-chip:hover {
  border-color: var(--brand1);
}
.stack-chip.on {
  background: var(--brand-grad);
  color: #fff;
  border-color: transparent;
}

/* ===== Доп. фильтры (ROADMAP #11) ===== */
.filt-more-head {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  margin: 14px 0 2px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* ===== Бейджи «новый» / «недавно активна» (ROADMAP #12) ===== */
.card-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  z-index: 3;
  pointer-events: none;
}
.card-badge {
  font-size: 11px;
  font-weight: 700;
  padding: 4px 9px;
  border-radius: 999px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}
.card-badge.new {
  background: rgba(124, 58, 237, 0.85);
}
.card-badge.active {
  background: rgba(16, 185, 129, 0.9);
}
/* ===== ROADMAP #38: diaspora badge + filter switch ===== */
.card-badge.diaspora {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.92), rgba(99, 102, 241, 0.92));
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.filt-diaspora-row {
  margin-top: 4px;
}
.filt-diaspora-row .filt-verif-icon {
  font-size: 16px;
  width: auto;
  height: auto;
  background: transparent;
  box-shadow: none;
  border-radius: 0;
}

/* ===== ROADMAP #26: prominent verified badge + filter switch ===== */
.card .verified-badge {
  width: 26px;
  height: 26px;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.95),
    0 2px 6px rgba(59, 130, 246, 0.45);
}
.card .verified-badge svg {
  width: 15px;
  height: 15px;
}
.verified-badge.chat-verified {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--super);
  vertical-align: -3px;
  box-shadow:
    0 0 0 1.5px rgba(255, 255, 255, 0.95),
    0 1px 3px rgba(59, 130, 246, 0.45);
}
.verified-badge.chat-verified svg {
  width: 11px;
  height: 11px;
  color: #fff;
}
.verified-badge.nm-verified {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--super);
  vertical-align: -2px;
  margin-left: 4px;
}
.verified-badge.nm-verified svg {
  width: 9px;
  height: 9px;
  color: #fff;
}
.nm-name {
  display: inline-flex;
  align-items: center;
}
.verified-badge.ci-verified {
  display: inline-grid;
  place-items: center;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--super);
  vertical-align: -2px;
}
.verified-badge.ci-verified svg {
  width: 9px;
  height: 9px;
  color: #fff;
}
.filt-verif-row .filt-verif-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  cursor: pointer;
}
.filt-verif-text {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.25;
}
.filt-verif-icon {
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  min-width: 26px;
  border-radius: 50%;
  background: var(--super);
  color: #fff;
  box-shadow:
    0 0 0 2px rgba(255, 255, 255, 0.95),
    0 1px 3px rgba(59, 130, 246, 0.35);
}
.filt-verif-icon svg {
  width: 14px;
  height: 14px;
}
.filt-verif-hint {
  display: block;
  font-weight: 400;
  font-size: 12px;
  color: var(--ink-soft);
  margin-top: 2px;
}
.switch {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
}
.switch input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}
.switch-track {
  position: absolute;
  inset: 0;
  background: rgba(120, 110, 145, 0.35);
  border-radius: 999px;
  transition: background 0.18s ease;
}
.switch-track::after {
  content: "";
  position: absolute;
  top: 2px;
  left: 2px;
  width: 20px;
  height: 20px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
  transition: transform 0.18s ease;
}
.switch input:checked + .switch-track {
  background: var(--super);
}
.switch input:checked + .switch-track::after {
  transform: translateX(20px);
}
.switch input:focus-visible + .switch-track {
  outline: 2px solid var(--brand1);
  outline-offset: 2px;
}

/* ===== ROADMAP #27: share date-plan ===== */
.share-date-form {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.share-date-note {
  resize: vertical;
  min-height: 56px;
  font-family: inherit;
}
.share-date-preview {
  margin-top: 14px;
  border-radius: 14px;
  background: rgba(124, 58, 237, 0.06);
  border: 1px solid rgba(124, 58, 237, 0.18);
  padding: 12px 14px;
}
.share-date-preview-head {
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.4px;
  color: var(--brand1);
  margin-bottom: 8px;
}
.share-date-preview-body {
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0;
  font-family: inherit;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ink);
}
.share-date-preview-body.empty {
  color: var(--ink-soft);
  font-style: italic;
}
.share-date-actions {
  display: flex;
  gap: 8px;
  margin-top: 12px;
}
.share-date-actions .btn-ghost,
.share-date-actions .btn-save {
  flex: 1;
}
.share-date-clear {
  display: block;
  margin: 10px auto 0;
  color: var(--ink-soft);
  font-size: 13px;
}

/* ===== ROADMAP #30: daily streak chip ===== */
.streak-chip {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  margin-top: 10px;
  padding: 6px 12px;
  border-radius: 999px;
  background: linear-gradient(135deg, #ff8a00 0%, #ff4d4d 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.2px;
  box-shadow: 0 2px 8px rgba(255, 77, 77, 0.35);
}
.streak-chip b {
  font-size: 15px;
  font-weight: 800;
}
.streak-chip span {
  font-weight: 500;
  opacity: 0.95;
}

/* ===== ROADMAP #46: SW update toast / #47: PWA install (A2HS) toast ===== */
.sw-update-bar,
.pwa-install-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--surface);
  color: var(--ink);
  border-radius: 14px;
  box-shadow: var(--shadow);
  border: 1px solid var(--line);
  z-index: 9999;
  max-width: min(420px, 92vw);
  font-size: 14px;
  font-weight: 600;
  animation: swUpToastIn 0.25s ease;
}
.sw-update-bar.dismissed,
.pwa-install-bar.dismissed {
  display: none;
}
.sw-update-msg,
.pwa-install-msg {
  flex: 1;
  line-height: 1.3;
}
.sw-update-btn,
.pwa-install-btn {
  border: none;
  background: var(--brand-grad);
  color: #fff;
  padding: 8px 14px;
  border-radius: 10px;
  font-weight: 700;
  cursor: pointer;
  font-size: 13px;
  white-space: nowrap;
}
.pwa-install-dismiss {
  border: none;
  background: transparent;
  color: var(--muted);
  padding: 8px 8px;
  font-size: 12px;
  cursor: pointer;
  font-weight: 600;
}
@keyframes swUpToastIn {
  from {
    opacity: 0;
    transform: translateX(-50%) translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
}

/* ===== ROADMAP #44: respect prefers-reduced-motion globally ===== */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
  /* Карты на стеке не сдвигаются плавно */
  .card {
    transition: transform 0.001ms !important;
  }
  /* Свайпы — без инерции */
  .card.swiping {
    transition: none !important;
  }
}

/* ===== Push notifications settings UI ===== */
.notify-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.notify-state {
  font-size: 13px;
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(124, 58, 237, 0.08);
}
.notify-state.notify-on {
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
}
.notify-state.notify-denied,
.notify-state.notify-unsupported {
  background: rgba(239, 68, 68, 0.08);
  color: #b91c1c;
}

/* ===== A11y helpers ===== */
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Visible focus ring for keyboard navigation (mouse clicks still suppressed). */
*:focus {
  outline: none;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[role="button"]:focus-visible,
[role="tab"]:focus-visible {
  outline: 2px solid #7c3aed;
  outline-offset: 2px;
  box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.18);
  border-radius: 6px;
}

/* Story navigation arrows are positioned overlays — keep them sized as <button>. */
.story-nav {
  background: transparent;
  border: 0;
  cursor: pointer;
  padding: 0;
}
.story-nav:focus-visible {
  background: rgba(255, 255, 255, 0.06);
}

/* Respect reduce-motion for shimmer/transitions */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

/* Gender segment label visible next to ♀/♂ in filter modal */
#filtGender .seg-label {
  font-size: 13px;
  font-weight: 500;
  margin-left: 4px;
}

/* ===== Волна фич I1–I14 (конкурентный анализ, июнь 2026) ===== */
/* I12: заметка о скриншотах + I9: вериф-баннер в чате */
/* базовый стиль системной заметки (как .chat-note, но отдельный класс) */
.chat-sysnote {
  align-self: flex-start;
  max-width: 80%;
  background: var(--surface);
  border-left: 3px solid var(--brand1);
  border-radius: 12px;
  padding: 9px 13px;
  font-size: 13px;
  color: var(--ink-soft);
  box-shadow: var(--shadow-sm);
}
.shot-note {
  background: color-mix(in srgb, var(--accent) 8%, var(--card));
  color: var(--muted);
  font-size: 12px;
}
.verif-banner {
  background: color-mix(in srgb, #3b82f6 12%, var(--card));
  color: var(--text);
  font-size: 12px;
}
.firstmove-note {
  background: color-mix(in srgb, var(--accent) 10%, var(--card));
  font-size: 13px;
}
/* I3: антигостинг */
.ghost-banner {
  margin: 10px auto;
  max-width: 86%;
  background: color-mix(in srgb, #f59e0b 14%, var(--card));
  border: 1px solid color-mix(in srgb, #f59e0b 35%, transparent);
  border-radius: 14px;
  padding: 10px 12px;
  text-align: center;
}
.ghost-banner-text {
  font-size: 13px;
  margin-bottom: 8px;
}
.ghost-banner-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
}
.btn-mini {
  border: none;
  border-radius: 999px;
  padding: 7px 14px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  background: var(--accent);
  color: #fff;
}
.btn-mini.ghost-rel {
  background: color-mix(in srgb, var(--muted) 22%, var(--card));
  color: var(--text);
}
.ghost-item .ci-msg {
  color: #d97706;
}
.ghost-label {
  color: #d97706;
}
/* I14: игра «Карты» */
.chat-cards {
  background: none;
  border: none;
  font-size: 21px;
  cursor: pointer;
  padding: 4px;
}
/* ✨ AI-ассистент (P2-11): кнопка айсбрейкеров в чате + кнопка помощи по bio в редакторе */
.chat-ice {
  background: none;
  border: none;
  font-size: 21px;
  cursor: pointer;
  padding: 4px;
}
.bio-help-btn {
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  color: var(--accent, #7c3aed);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12.5px;
  cursor: pointer;
}
.bio-help-btn:hover {
  background: var(--card);
}
/* ✨ AI-ассистент: нижний лист с подсказками */
.assist-sheet {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.assist-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(4px);
}
.assist-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  max-height: 80vh;
  overflow-y: auto;
  background: var(--bg, #fff);
  color: var(--text);
  border-radius: 18px 18px 0 0;
  padding: 16px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.25);
  animation: assistUp 0.18s ease;
}
@keyframes assistUp {
  from {
    transform: translateY(24px);
    opacity: 0.6;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.assist-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.assist-head h3 {
  margin: 0;
  font-size: 16px;
}
.assist-close {
  background: none;
  border: none;
  font-size: 18px;
  cursor: pointer;
  color: var(--muted);
  padding: 4px 8px;
}
.assist-sub {
  font-size: 12.5px;
  color: var(--muted);
  margin: 12px 0 6px;
}
.assist-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.assist-item {
  text-align: left;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 14px;
  line-height: 1.35;
  color: var(--text);
  cursor: pointer;
}
.assist-item:hover {
  border-color: var(--accent, #7c3aed);
}
.assist-tips {
  margin: 0;
  padding-left: 18px;
}
.assist-tips li {
  font-size: 13.5px;
  line-height: 1.4;
  margin-bottom: 6px;
  color: var(--text);
}
.assist-empty {
  font-size: 13.5px;
  color: var(--muted);
}
/* ===== SOS / безопасность свиданий (P2-12) ===== */
.menu-row.sos-menu {
  color: #b00020;
  font-weight: 700;
}
.sos-sheet {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}
.sos-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}
.sos-card {
  position: relative;
  width: 100%;
  max-width: 520px;
  background: var(--card);
  color: var(--text);
  border-radius: 18px 18px 0 0;
  padding: 16px;
  box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.35);
  animation: sosUp 0.22s ease-out;
  max-height: 88vh;
  overflow-y: auto;
}
@keyframes sosUp {
  from {
    transform: translateY(24px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}
.sos-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 6px;
}
.sos-head h3 {
  margin: 0;
  font-size: 17px;
}
.sos-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 18px;
  cursor: pointer;
}
.sos-intro {
  font-size: 13.5px;
  color: var(--muted);
  margin: 0 0 10px;
}
.sos-preview {
  white-space: pre-wrap;
  word-break: break-word;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 10px 12px;
  font-size: 13.5px;
  font-family: inherit;
  margin: 0 0 10px;
}
.sos-geo {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13.5px;
  margin-bottom: 12px;
  cursor: pointer;
}
.sos-contact {
  border-top: 1px solid var(--line);
  padding-top: 12px;
  margin-bottom: 12px;
}
.sos-sub {
  font-weight: 700;
  font-size: 14px;
}
.sos-hint {
  font-size: 12.5px;
  color: var(--muted);
  margin: 2px 0 8px;
}
.sos-send {
  display: block;
  width: 100%;
  border: none;
  background: #b00020;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  border-radius: 12px;
  padding: 13px;
  cursor: pointer;
}
.sos-row {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}
.sos-mini {
  flex: 1;
  text-align: center;
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 12px;
  padding: 11px;
  font-size: 13.5px;
  cursor: pointer;
  text-decoration: none;
}
.sos-call {
  font-weight: 700;
}
.cards-lvls {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 10px 0;
}
.cards-lvl {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 12.5px;
  cursor: pointer;
}
.cards-lvl.on {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.cards-stage {
  perspective: 900px;
  display: flex;
  justify-content: center;
  margin: 14px 0;
}
.game-card {
  width: 220px;
  height: 150px;
}
.game-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transform-style: preserve-3d;
  transition: transform 0.5s ease;
}
.game-card-inner.flipped {
  transform: rotateY(180deg);
}
.game-card-face {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  text-align: center;
}
.game-card-face.back {
  background: linear-gradient(135deg, var(--accent), #ec4899);
  font-size: 44px;
}
.game-card-face.front {
  background: var(--card);
  border: 1.5px solid var(--accent);
  transform: rotateY(180deg);
  font-size: 14.5px;
  font-weight: 600;
  color: var(--text);
}
.cards-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}
.card-msg-card {
  background: linear-gradient(135deg, color-mix(in srgb, var(--accent) 18%, var(--card)), var(--card));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 12px;
  padding: 9px 11px;
  min-width: 150px;
}
.card-msg-tag {
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  margin-bottom: 4px;
}
.card-msg-q {
  font-size: 13.5px;
}
/* I10: вопрос дня */
.dailyq-banner {
  margin: 8px 12px 0;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 10px 12px;
}
.dailyq-q {
  font-size: 13px;
  margin-bottom: 7px;
}
.dailyq-row {
  display: flex;
  gap: 8px;
}
.dailyq-row input {
  flex: 1;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 13px;
  background: var(--surface2);
  color: var(--ink);
}
.dailyq-done {
  font-size: 12.5px;
  color: var(--muted);
}
.dailyq-theirs .pq {
  font-size: 12px;
  color: var(--muted);
}
/* I4: вечер недели */
.night-banner {
  margin: 8px 12px 0;
  border-radius: 14px;
  padding: 9px 12px;
  font-size: 12.5px;
  background: var(--card);
  border: 1px dashed var(--line);
  color: var(--muted);
  text-align: center;
}
.night-banner.night-on {
  background: linear-gradient(135deg, #312e81, #6d28d9);
  border: none;
  color: #fff;
}
/* I2: каталог мест и слоты */
.spot-hint {
  font-size: 11.5px;
  color: var(--muted);
  margin: 6px 0 4px;
}
.spot-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 6px;
}
.spot-chip {
  border: 1px solid var(--line);
  background: var(--card);
  color: var(--text);
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 12px;
  cursor: pointer;
}
.spot-chip:active {
  background: var(--accent);
  color: #fff;
}
/* I6: тип личности */
.persona-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: color-mix(in srgb, #8b5cf6 16%, var(--card));
  border: 1px solid color-mix(in srgb, #8b5cf6 40%, transparent);
  color: var(--text);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 12.5px;
  font-weight: 600;
}
.persona-badge.me {
  margin-top: 8px;
}
.filt-more-head {
  font-weight: 700;
  font-size: 13px;
  margin: 14px 0 6px;
}
/* I5: коуч */
.coach-tip {
  margin-top: 5px;
  font-size: 12px;
  color: #d97706;
}
.ice-title.coach-start {
  color: var(--accent);
}
.ice-chip-coach {
  border-color: var(--accent);
}
/* I7: инкогнито */
.incog-badge {
  font-size: 0.8em;
}
.incog-note {
  margin: 10px 12px;
  background: var(--card);
  border: 1px dashed var(--line);
  border-radius: 12px;
  padding: 9px 12px;
  font-size: 12.5px;
  color: var(--muted);
  text-align: center;
}
.privacy-hint {
  font-size: 12px;
  color: var(--muted);
  margin: 4px 0 8px;
}
.privacy-note {
  font-size: 12.5px;
  color: var(--accent);
  margin: 2px 0 8px;
}
/* I11: поделиться профилем */
.dv-share {
  text-align: center;
}

/* шапка чата: аватар и имя кликабельны (открывают профиль собеседника) */
#chatAva,
#chatName {
  cursor: pointer;
}

/* ===== Вход (remote-режим, Этап 2) ===== */
.login-modal { z-index: 300; }
.login-card { max-width: 340px; }
.login-sub { color: var(--muted); font-size: 14px; margin: 4px 0 12px; }
.login-card .field { margin-bottom: 10px; }
.login-card .btn-primary { width: 100%; margin-bottom: 8px; }
.login-card .btn-ghost { width: 100%; }
.login-err { color: #e0455e; font-size: 13px; margin-top: 8px; }
.login-card .login-toggle { margin-top: 6px; font-size: 13px; opacity: 0.85; }
.password-body .backup-row { align-items: center; flex-wrap: wrap; gap: 8px; }

/* ===== Специфические знакомства (18+) ===== */
.themed-screen { overflow-y: auto; flex: 1; }
.themed-gate {
  margin: 22px 16px;
  padding: 22px 18px;
  background: var(--surface);
  border: 1.5px solid var(--line);
  border-radius: 20px;
  text-align: center;
}
.themed-gate .tg-emoji { font-size: 44px; }
.themed-gate h3 { margin: 8px 0 6px; color: var(--text); font-size: 19px; }
.themed-gate .tg-body { color: var(--muted); font-size: 14px; line-height: 1.5; text-align: left; }
.tg-check {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 16px 0; padding: 12px 13px;
  background: var(--surface2); border: 1.5px solid var(--line); border-radius: 13px;
  color: var(--text); font-size: 13px; text-align: left; cursor: pointer; line-height: 1.4;
}
.tg-check input { margin-top: 2px; width: 18px; height: 18px; flex: 0 0 auto; accent-color: var(--brand1); }
.themed-gate .btn-save.full { width: 100%; margin-bottom: 10px; }
.themed-gate .btn-save:disabled { opacity: 0.5; cursor: not-allowed; }
.link-btn { background: none; border: none; color: var(--muted); font-size: 14px; cursor: pointer; text-decoration: underline; }
.themed-setup { margin: 16px; padding: 16px; background: var(--surface); border: 1.5px solid var(--line); border-radius: 18px; }
.themed-badge {
  background: linear-gradient(135deg, var(--brand1), var(--brand2));
  color: #fff; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 30px;
}
.themed-browse { padding: 4px 0 16px; }
.tb-head { padding: 8px 16px 2px; }
.tb-label { font-weight: 800; font-size: 16px; color: var(--text); }
.tb-sub { padding: 0 16px 10px; font-size: 13px; color: var(--muted); }
.themed-browse .like-card { display: flex; gap: 11px; padding: 11px; align-items: center; }
.themed-browse .lc-ava {
  width: 56px; height: 56px; border-radius: 50%; flex: 0 0 auto;
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 22px;
}
.themed-browse .lc-body { padding: 0; flex: 1; min-width: 0; }
.themed-role { font-size: 12px; color: var(--text); margin-top: 2px; }
.themed-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 6px; }
.tt-chip {
  font-size: 11px; padding: 3px 8px; border-radius: 30px;
  background: var(--surface2); border: 1px solid var(--line); color: var(--text);
}
.themed-shared { font-size: 12px; color: var(--brand1); font-weight: 700; margin-top: 6px; }

/* Тест предпочтений (kink test) */
.kink-card { background: var(--surface2); border: 1px solid var(--line); border-radius: 14px; padding: 14px; }
.kink-card .tg-body { margin: 0 0 10px; }
.kink-top { display: flex; flex-wrap: wrap; gap: 6px; }
.kink-test { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 18px; }
.kink-prog { height: 6px; border-radius: 6px; background: var(--surface2); overflow: hidden; }
.kink-prog-bar { height: 100%; border-radius: 6px; background: linear-gradient(90deg, var(--brand1), var(--brand2)); transition: width .25s; }
.kink-count { font-size: 12px; color: var(--muted); margin: 8px 0 4px; }
.kink-q { font-size: 18px; font-weight: 700; color: var(--text); line-height: 1.35; margin: 6px 0 16px; min-height: 60px; }
.kink-scale { display: flex; flex-direction: column; gap: 8px; }
.kink-opt {
  width: 100%; text-align: left; padding: 13px 14px; border-radius: 12px;
  border: 1.5px solid var(--line); background: var(--surface2); color: var(--text);
  font-size: 15px; cursor: pointer; transition: all .15s;
}
.kink-opt:hover { border-color: var(--brand1); }
.kink-opt.on { border-color: var(--brand1); background: var(--brand1); color: #fff; font-weight: 600; }
.kink-nav { display: flex; justify-content: space-between; margin-top: 16px; }
.kink-result .kink-bars { display: flex; flex-direction: column; gap: 14px; margin: 12px 0 16px; }
.kink-bar-row { }
.kink-bar-head { display: flex; justify-content: space-between; align-items: baseline; font-size: 14px; }
.kink-bar-head .kbn { font-weight: 700; color: var(--text); }
.kink-bar-head .kbv { font-weight: 700; color: var(--muted); }
.kink-bar { height: 8px; border-radius: 8px; background: var(--surface2); overflow: hidden; margin: 5px 0 4px; }
.kink-bar-fill { height: 100%; border-radius: 8px; background: linear-gradient(90deg, var(--brand1), var(--brand2)); }
.kink-bar-desc { font-size: 12px; color: var(--muted); line-height: 1.3; }
.kink-bar-row.band-core .kink-bar-head .kbv { color: var(--brand1); }
.kink-bar-row.band-low { opacity: .55; }
.kink-bar-row.band-low .kink-bar-fill { background: var(--muted); }
.kink-disc { font-size: 12px; color: var(--muted); line-height: 1.4; background: var(--surface2); border-radius: 10px; padding: 10px 12px; }
/* #46 совместимость на тематических карточках */
.themed-compat { font-size: 12px; font-weight: 600; color: var(--brand2); margin: 2px 0; }
/* #44 чек-лист желаний */
.kink-check .check-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.check-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: var(--surface2); border-radius: 12px; padding: 8px 10px; }
.check-name { font-size: 14px; flex: 1; }
.check-opts { display: flex; gap: 4px; flex-shrink: 0; }
.check-opt { border: 1px solid var(--line); background: var(--surface); color: var(--muted); border-radius: 999px; padding: 5px 10px; font-size: 12px; cursor: pointer; transition: all .15s; }
.check-opt.on.v-yes { background: linear-gradient(90deg, var(--brand1), var(--brand2)); color: #fff; border-color: transparent; }
.check-opt.on.v-maybe { background: #f59e0b; color: #fff; border-color: transparent; }
.check-opt.on.v-no { background: var(--line); color: var(--ink); }
/* #48 словарь */
.kink-gloss .gloss-list { display: flex; flex-direction: column; gap: 8px; margin: 10px 0; }
.gloss-row { background: var(--surface2); border-radius: 12px; padding: 10px 12px; }
.gloss-term { font-weight: 700; font-size: 14px; margin-bottom: 3px; }
.gloss-def { font-size: 13px; color: var(--muted); line-height: 1.45; }
/* #13 ценности */
.value-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.value-badge { font-size: 13px; font-weight: 600; background: var(--surface2); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }
.value-badge.shared { background: linear-gradient(90deg, var(--brand1), var(--brand2)); color: #fff; border-color: transparent; }
.value-pick { display: flex; flex-wrap: wrap; gap: 8px; }
.value-opt { font-size: 13px; font-weight: 600; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-radius: 999px; padding: 7px 13px; cursor: pointer; transition: all .15s; }
.value-opt:hover { border-color: var(--brand1); }
.value-opt.on { background: var(--brand-grad); color: #fff; border-color: transparent; }
/* #43 реферальная программа */
.ref-link-box { background: var(--surface2); border: 1px solid var(--line); border-radius: 10px; padding: 9px 12px; margin-bottom: 10px; overflow-x: auto; }
.ref-link-box code { font-size: 13px; color: var(--ink); white-space: nowrap; }
.ref-count { font-size: 13px; font-weight: 600; color: var(--ink); margin: 10px 0 4px; }

/* ===== Раздел «О себе» / психологические тесты ===== */
.tests-topbar { display: flex; align-items: center; gap: 10px; }
.tests-screen { padding: 14px 16px 90px; overflow-y: auto; }
.tests-wrap { display: flex; flex-direction: column; gap: 10px; }
.tests-disc { font-size: 12.5px; line-height: 1.5; color: var(--muted); background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; }
.tests-progress { font-size: 13px; font-weight: 700; color: var(--ink); }
.test-cat-head { font-size: 13px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); margin: 12px 0 2px; }
.test-card { display: flex; align-items: flex-start; gap: 12px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.test-card-emoji { font-size: 26px; line-height: 1; flex-shrink: 0; }
.test-card-body { flex: 1; min-width: 0; }
.test-card-title { font-size: 15px; font-weight: 700; color: var(--ink); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.test-card-intro { font-size: 12.5px; line-height: 1.45; color: var(--muted); margin-top: 3px; }
.test-card-status { font-size: 12px; color: var(--muted); margin-top: 6px; }
.test-card-result { font-size: 12.5px; font-weight: 600; color: var(--accent, #7C3AED); margin-top: 6px; }
.test-card-go { flex-shrink: 0; align-self: center; background: var(--accent, #7C3AED); color: #fff; border: none; border-radius: 999px; padding: 8px 16px; font-size: 13px; font-weight: 700; cursor: pointer; }
.test-card-go:hover { filter: brightness(1.08); }
.test-tag { font-size: 10.5px; font-weight: 700; padding: 2px 7px; border-radius: 999px; text-transform: uppercase; letter-spacing: .03em; }
.test-tag.sci { background: rgba(11,163,96,.16); color: #0BA360; }
.test-tag.fun { background: rgba(124,58,237,.14); color: #7C3AED; }
.test-run { display: flex; flex-direction: column; gap: 12px; }
.test-run-head { font-size: 15px; font-weight: 700; color: var(--ink); }
.test-scale { display: flex; flex-direction: column; gap: 8px; }
.test-opt { text-align: left; background: var(--surface); border: 1.5px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 14px; color: var(--ink); cursor: pointer; transition: border-color .15s, background .15s; }
.test-opt:hover { border-color: var(--accent, #7C3AED); }
.test-opt.on { border-color: var(--accent, #7C3AED); background: rgba(124,58,237,.1); font-weight: 600; }
.test-result { display: flex; flex-direction: column; gap: 12px; }
.test-result-sub { font-size: 13px; font-weight: 700; color: var(--muted); }
.test-winner { background: var(--surface2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.test-winner-name { font-size: 17px; font-weight: 800; color: var(--ink); }
.test-winner-desc { font-size: 13px; line-height: 1.5; color: var(--muted); margin-top: 4px; }
.test-winner-name + .test-winner-name { margin-top: 12px; }
.test-show-toggle { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink); cursor: pointer; }
.test-badges { display: flex; flex-wrap: wrap; gap: 6px; }
.test-badge { font-size: 12.5px; font-weight: 600; padding: 4px 10px; border-radius: 999px; background: var(--surface2); border: 1px solid var(--line); color: var(--ink); }

/* ===== Paywall / Premium (монетизация P0-1) ===== */
.pw-card-wrap { max-width: 460px; width: 100%; }
.pw-title { margin: 0 0 4px; font-size: 20px; font-weight: 800; }
.pw-sub { margin: 0 0 12px; font-size: 14px; color: var(--muted); }
.pw-wallet { font-size: 13px; color: var(--ink); background: var(--surface2); border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; margin-bottom: 12px; }
.pw-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 10px; }
.pw-card { border: 1px solid var(--line); border-radius: 14px; padding: 12px; display: flex; flex-direction: column; gap: 8px; background: var(--surface); }
.pw-card.pw-owned { opacity: 0.7; }
.pw-card-title { font-weight: 700; font-size: 14px; }
.pw-card-price { font-size: 13px; color: var(--muted); }
.pw-card .pw-buy { margin-top: auto; }
.pw-note { font-size: 13px; color: var(--accent, #7C3AED); margin: 6px 0 10px; }
.premium-btn svg { color: #F5B301; }


/* ============================================================
   DESKTOP DASHBOARD SHELL (sidebar + topbar) — активен ≥1024px
   и только в залогиненном состоянии (.phone.app-ready).
   Мобильная версия (<1024px) не затрагивается.
   ============================================================ */
.desk-topbar,
.desk-sidebar { display: none; }

@media (min-width: 1024px) {
  /* ===== ПАЛИТРА «Вариант 2» — тёмно-фиолетовый + розово-сиреневый акцент.
     Применяется ТОЛЬКО как дефолт десктопа, когда пользователь НЕ выбрал тему
     явно (нет [data-theme] на :root). Любой выбор в переключателе тем
     (Светлая/Тёмная/Розовая/Фиолетовая/Лавандовая/Автоматически) перекрывает
     этот блок через :root[data-theme=...], т.к. :not() перестаёт срабатывать. */
  :root:not([data-theme]) .phone.app-ready {
    --brand1: #ec4899;
    --brand2: #a855f7;
    --brand-grad: linear-gradient(135deg, #ec4899, #a855f7);
    --surface: #16122a;          /* панели: сайдбар/топбар */
    --surface2: #221c3d;         /* поля/чипы/hover */
    --line: rgba(255,255,255,.08);
    --ink: #f4f1fb;              /* основной текст */
    --ink-soft: #d6cfef;        /* иконки/вторичный */
    --muted: #8f86ab;           /* приглушённый */
    --text: #f4f1fb;
    --card: #16122a;
    --accent: #ec4899;
    --brand: #ec4899;
    --page-bg:
      radial-gradient(900px 520px at 78% -8%, rgba(236,72,153,.20) 0%, rgba(236,72,153,0) 60%),
      radial-gradient(1100px 700px at 12% 4%, rgba(124,58,237,.22) 0%, rgba(124,58,237,0) 55%),
      linear-gradient(160deg, #140f28 0%, #0d0a1c 60%, #0a0716 100%);
  }
  .phone.app-ready {
    width: 100vw;
    height: 100vh;
    max-width: none;
    border-radius: 0;
    outline: none;
    box-shadow: none;
    color: var(--ink);
    background: var(--page-bg);
    display: grid;
    grid-template-columns: 262px 1fr;
    grid-template-rows: 68px 1fr;
    grid-template-areas:
      "side head"
      "side main";
  }
  .phone.app-ready > .desk-topbar { display: flex; }
  .phone.app-ready > .desk-sidebar { display: flex; }

  /* body больше не центрирует «рамку» — дашборд на весь экран */
  body:has(.phone.app-ready) {
    align-items: stretch;
    justify-content: stretch;
  }

  /* прячем мобильный хром: топбар внутри экранов и нижнюю навигацию */
  .phone.app-ready .topbar,
  .phone.app-ready .bottomnav { display: none !important; }

  /* экраны занимают главную ячейку; активный — прокручиваемый */
  .phone.app-ready .screen { grid-area: main; min-height: 0; }
  .phone.app-ready .screen.active {
    display: flex;
    overflow-y: auto;
    align-items: center;
    padding: 24px 28px 40px;
  }
  /* центрируем контент экрана колонкой фиксированной ширины (как лента) */
  .phone.app-ready .screen.active > * {
    width: 100%;
    max-width: 780px;
    flex: none;
  }
  .phone.app-ready #chat.screen.active > * { max-width: 900px; }

  /* ===== ТОПБАР (только над контентом) ===== */
  .desk-topbar {
    grid-area: head;
    align-items: center;
    gap: 22px;
    padding: 0 26px;
    background: linear-gradient(90deg, rgba(236,72,153,.10), rgba(168,85,247,.06) 45%, transparent 78%), var(--surface);
    border-bottom: 1px solid var(--line);
    z-index: 30;
  }
  .dt-search {
    flex: 1; max-width: 560px;
    display: flex; align-items: center; gap: 10px;
    height: 44px; padding: 0 16px;
    background: var(--surface2); border-radius: 14px;
    color: var(--muted); transition: box-shadow .15s;
  }
  .dt-search:focus-within { box-shadow: 0 0 0 2px var(--brand1) inset; }
  .dt-search svg { width: 18px; height: 18px; flex: none; }
  .dt-search input {
    flex: 1; border: none; background: transparent; outline: none;
    color: var(--ink); font-size: 14px;
  }
  .dt-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
  .dt-pill { margin-right: 4px; }
  .dt-ic {
    width: 42px; height: 42px; border: none; border-radius: 12px;
    background: var(--surface2); color: var(--ink-soft);
    display: grid; place-items: center; cursor: pointer; position: relative;
    transition: .15s;
  }
  .dt-ic:hover { transform: translateY(-1px); color: var(--brand1); }
  .dt-ic svg { width: 20px; height: 20px; }
  .dt-dot {
    position: absolute; top: 9px; right: 10px;
    width: 8px; height: 8px; border-radius: 50%;
    background: #ec4899; box-shadow: 0 0 0 2px var(--surface);
  }
  .dt-ava {
    width: 44px; height: 44px; border: none; border-radius: 50%;
    cursor: pointer; color: #fff; font-weight: 700; font-size: 16px;
    display: grid; place-items: center; background: var(--brand-grad);
    background-size: cover; background-position: center;
  }

  /* ===== САЙДБАР ===== */
  .desk-sidebar {
    grid-area: side;
    flex-direction: column;
    padding: 20px 14px 18px;
    background: var(--surface);
    border-right: 1px solid var(--line);
    overflow-y: auto;
  }
  .ds-logo {
    display: flex; align-items: center; gap: 10px;
    padding: 4px 12px 20px;
  }
  .ds-logo-ic {
    width: 34px; height: 34px; flex: none; border-radius: 11px;
    display: grid; place-items: center; color: #fff;
    background: var(--brand-grad);
    box-shadow: 0 6px 16px rgba(236,72,153,.35);
  }
  .ds-logo-ic svg { width: 19px; height: 19px; }
  .ds-logo b {
    font-size: 21px; font-weight: 800; letter-spacing: -0.5px;
    background: var(--brand-grad);
    -webkit-background-clip: text; background-clip: text; color: transparent;
  }
  #deskNav {
    display: flex; flex-direction: column; gap: 4px;
    border: none; background: transparent;
  }
  #deskNav button {
    flex: none; width: 100%;
    display: flex; flex-direction: row; align-items: center; justify-content: flex-start;
    gap: 14px; padding: 12px 16px; border: none; border-radius: 14px;
    background: transparent; cursor: pointer;
    color: var(--muted); font-size: 14.5px; font-weight: 600;
    position: relative; text-align: left;
  }
  #deskNav button svg { width: 22px; height: 22px; flex: none; }
  #deskNav button span { font-size: 14.5px; }
  #deskNav button:not(.on):hover { background: var(--surface2); color: var(--ink); }
  #deskNav button.on { color: #fff; background: var(--brand-grad); box-shadow: 0 8px 20px rgba(236,72,153,.30); }
  #deskNav .badge {
    position: static; margin-left: auto; top: auto; right: auto;
    min-width: 20px; height: 20px; padding: 0 6px;
    border-radius: 10px; background: rgba(255,255,255,.25);
    color: #fff; font-size: 11px; font-weight: 700;
    display: grid; place-items: center;
  }
  #deskNav button:not(.on) .badge { background: var(--brand1); color: #fff; }

  .ds-spacer { flex: 1 1 auto; min-height: 12px; }
  .ds-premium {
    margin: 6px 4px 12px; padding: 16px;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(124,58,237,.16), rgba(236,72,153,.16));
    border: 1px solid var(--line);
  }
  .dsp-head { display: flex; align-items: center; gap: 8px; color: var(--ink); }
  .dsp-head svg { width: 20px; height: 20px; color: var(--brand1); }
  .dsp-head b { font-size: 15px; }
  .dsp-sub { margin: 6px 0 12px; font-size: 12.5px; color: var(--muted); line-height: 1.35; }
  .dsp-btn {
    width: 100%; padding: 10px; border: none; border-radius: 12px;
    background: var(--brand-grad); color: #fff; font-weight: 700; font-size: 14px;
    cursor: pointer; transition: .15s;
  }
  .dsp-btn:hover { filter: brightness(1.06); transform: translateY(-1px); }
  .ds-profile {
    display: flex; align-items: center; gap: 12px;
    padding: 10px 8px; border: none; background: transparent;
    border-radius: 14px; cursor: pointer; color: var(--ink); text-align: left;
  }
  .ds-profile:hover { background: var(--surface2); }
  .dspf-ava {
    width: 42px; height: 42px; border-radius: 50%; flex: none;
    display: grid; place-items: center; color: #fff; font-weight: 700;
    background: var(--brand-grad); background-size: cover; background-position: center;
  }
  .dspf-txt { display: flex; flex-direction: column; gap: 4px; min-width: 0; flex: 1; }
  .dspf-txt b { font-size: 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .dspf-txt small { font-size: 11.5px; color: var(--muted); }
  .dspf-bar { height: 5px; border-radius: 3px; background: var(--surface2); overflow: hidden; }
  .dspf-bar i { display: block; height: 100%; width: 0; background: var(--brand-grad); transition: width .3s; }
}

/* Широкие мониторы — чуть просторнее */
@media (min-width: 1600px) {
  .phone.app-ready { grid-template-columns: 280px 1fr; }
  .phone.app-ready .screen.active > * { max-width: 860px; }
}

/* ===== Рекомендуемые (recommended profiles row on discover) ===== */
.rec-block {
  padding: 6px 14px 2px;
}
.rec-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  margin: 4px 2px 10px;
}
.rec-title {
  margin: 0;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.rec-seeall {
  border: 0;
  background: none;
  padding: 4px 2px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand1);
  cursor: pointer;
}
.rec-seeall:hover {
  text-decoration: underline;
}
.rec-row {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 2px 6px;
}
.rec-row::-webkit-scrollbar {
  display: none;
}
.rec-card {
  position: relative;
  flex: 0 0 auto;
  width: 148px;
  height: 200px;
  border-radius: 18px;
  overflow: hidden;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(20, 12, 40, 0.18);
  border: 1px solid var(--line);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.rec-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(20, 12, 40, 0.28);
}
.rec-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.rec-ini {
  font-size: 44px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.85);
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.25);
}
.rec-grad {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 62%;
  background: linear-gradient(to top, rgba(10, 6, 22, 0.82), rgba(10, 6, 22, 0));
  pointer-events: none;
}
.rec-compat {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 2;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #a855f7);
  box-shadow: 0 4px 12px rgba(236, 72, 153, 0.4);
}
.rec-like {
  position: absolute;
  top: 6px;
  right: 6px;
  z-index: 2;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  color: #ec4899;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
  transition: transform 0.14s ease, background 0.14s ease;
}
.rec-like:hover {
  transform: scale(1.1);
}
.rec-like:active {
  transform: scale(0.92);
}
.rec-like svg {
  width: 18px;
  height: 18px;
}
.rec-meta {
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 9px;
  z-index: 2;
  color: #fff;
}
.rec-name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.15;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}
.rec-age {
  font-weight: 600;
  opacity: 0.9;
}
.rec-city {
  display: flex;
  align-items: center;
  gap: 3px;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  opacity: 0.92;
  text-shadow: 0 1px 5px rgba(0, 0, 0, 0.4);
}
.rec-city svg {
  width: 12px;
  height: 12px;
}

/* ===== Ваши совпадения (matches avatar row on discover) ===== */
.mm-block {
  padding: 4px 14px 2px;
}
.mm-title {
  margin: 6px 2px 10px;
}
.mm-row {
  display: flex;
  align-items: center;
  gap: 14px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  padding: 2px 2px 8px;
}
.mm-row::-webkit-scrollbar {
  display: none;
}
.mm-ava {
  position: relative;
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: none;
}
.mm-photo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  font-size: 22px;
  font-weight: 800;
  color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 12px rgba(20, 12, 40, 0.18);
  border: 2px solid var(--surface);
  transition: transform 0.16s ease;
}
.mm-ava:hover .mm-photo {
  transform: scale(1.06);
}
.mm-ava.fresh .mm-photo {
  border: 2px solid transparent;
  background-clip: padding-box;
  box-shadow: 0 0 0 2px var(--brand2), 0 4px 12px rgba(236, 72, 153, 0.35);
}
.mm-heart {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ec4899, #a855f7);
  border: 2px solid var(--surface);
  box-shadow: 0 3px 8px rgba(236, 72, 153, 0.4);
}
.mm-heart svg {
  width: 11px;
  height: 11px;
}
.mm-more {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1px;
  border-radius: 50%;
  cursor: pointer;
  border: 1px solid var(--line);
  background: var(--surface2);
  color: var(--ink);
  line-height: 1.05;
}
.mm-more b {
  font-size: 16px;
  font-weight: 800;
}
.mm-more span {
  font-size: 10px;
  font-weight: 600;
  color: var(--muted);
}

/* ===== Дашборд: Активность + Совместимость ===== */
.dash-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 8px 14px 4px;
}
@media (max-width: 560px) {
  .dash-block {
    grid-template-columns: 1fr;
  }
}
.dash-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface2);
  padding: 16px 16px 14px;
  box-shadow: 0 8px 22px rgba(20, 12, 40, 0.16);
}
.dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.dash-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}
.dash-week {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
}
.dash-stats {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dash-stat {
  display: flex;
  align-items: center;
  gap: 10px;
}
.dash-stat-ic {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  color: var(--brand2);
  background: rgba(236, 72, 153, 0.12);
}
.dash-stat-ic svg {
  width: 16px;
  height: 16px;
}
.dash-stat-label {
  flex: 1;
  font-size: 13.5px;
  color: var(--ink-soft);
}
.dash-stat-val {
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}
.dash-delta {
  display: inline-flex;
  align-items: center;
  gap: 1px;
  font-size: 11.5px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 999px;
}
.dash-delta svg {
  width: 11px;
  height: 11px;
}
.dash-delta.up {
  color: #22c55e;
  background: rgba(34, 197, 94, 0.14);
}
.dash-delta.down {
  color: #ef4444;
  background: rgba(239, 68, 68, 0.14);
}
.dash-spark {
  display: block;
  width: 100%;
  height: 42px;
  margin-top: 12px;
}
/* --- Совместимость --- */
.dash-compat {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  font: inherit;
  color: inherit;
}
.dash-compat .dash-title {
  align-self: stretch;
  text-align: left;
  margin-bottom: 8px;
}
.dash-ring {
  position: relative;
  width: 132px;
  height: 132px;
  margin: 6px 0 4px;
}
.dash-ring svg {
  width: 100%;
  height: 100%;
  transform: rotate(-90deg);
}
.dash-ring-bg {
  fill: none;
  stroke: var(--line);
  stroke-width: 10;
}
.dash-ring-fg {
  fill: none;
  stroke: url(#dashRingGrad);
  stroke-width: 10;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.6s ease;
  filter: drop-shadow(0 2px 8px rgba(236, 72, 153, 0.4));
}
.dash-ring.empty .dash-ring-fg {
  stroke-dasharray: 4 8 !important;
  filter: none;
}
.dash-ring-val {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 30px;
  font-weight: 800;
  color: var(--ink);
}
.dash-verdict {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  margin: 6px 0 12px;
}
.dash-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
.dash-chip {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink-soft);
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
}

/* ===== "Кто рядом" + "Недавние сообщения" (discover) ===== */
.near-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 8px 14px 4px;
}
.near-card {
  border-radius: 18px;
  border: 1px solid var(--line);
  background: var(--surface2);
  padding: 14px 14px 12px;
  box-shadow: 0 8px 22px rgba(20, 12, 40, 0.16);
  display: flex;
  flex-direction: column;
}
.near-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}
.near-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}
.near-row {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 7px 6px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease;
}
.near-row:hover {
  background: rgba(255, 255, 255, 0.04);
}
.near-ava {
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 800;
  font-size: 15px;
}
.near-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.near-name {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--ink);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.near-sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.near-snip {
  color: var(--ink-soft);
}
.near-online {
  flex: 0 0 auto;
  font-size: 12px;
  font-weight: 700;
  color: #22c55e;
}
.near-seen,
.near-time {
  flex: 0 0 auto;
  font-size: 11px;
  color: var(--muted);
  white-space: nowrap;
}
.near-empty {
  padding: 18px 6px;
  font-size: 13px;
  color: var(--muted);
  text-align: center;
}
.near-btn {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 12px;
  background: rgba(124, 58, 237, 0.14);
  color: var(--brand1);
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s ease;
}
.near-btn:hover {
  background: rgba(124, 58, 237, 0.22);
}
@media (max-width: 560px) {
  .near-block {
    grid-template-columns: 1fr;
  }
}

/* ===== "Повысите шансы на успех" (discover) ===== */
.chances-block {
  padding: 8px 14px 4px;
}
.chances-title {
  margin: 0 0 10px;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}
.chances-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.chance-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  text-align: left;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--surface2);
  box-shadow: 0 8px 22px rgba(20, 12, 40, 0.16);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease;
}
.chance-card:hover {
  transform: translateY(-2px);
  border-color: rgba(236, 72, 153, 0.5);
}
.chance-ic {
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ec4899;
  background: rgba(236, 72, 153, 0.14);
}
.chance-ic .ic {
  width: 20px;
  height: 20px;
}
.chance-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
}
.chance-sub {
  font-size: 12px;
  line-height: 1.4;
  color: var(--muted);
}
@media (max-width: 560px) {
  .chances-row {
    grid-template-columns: 1fr;
  }
}

/* ===== "Популярные интересы" (discover) ===== */
.pint-block {
  padding: 8px 14px 4px;
}
.pint-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}
.pint-title {
  margin: 0;
  font-size: 16px;
  font-weight: 800;
  color: var(--ink);
}
.pint-seeall {
  border: 0;
  background: transparent;
  color: var(--brand1);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  padding: 4px 2px;
}
.pint-row {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none;
}
.pint-row::-webkit-scrollbar {
  display: none;
}
.pint-chip {
  flex: 0 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  border: 0;
  background: transparent;
  cursor: pointer;
  width: 64px;
}
.pint-ic {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ec4899;
  background: rgba(236, 72, 153, 0.14);
  transition: transform 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.pint-ic .ic {
  width: 24px;
  height: 24px;
}
.pint-chip:hover .pint-ic {
  transform: translateY(-2px);
  background: rgba(236, 72, 153, 0.22);
}
.pint-chip.on .pint-ic {
  background: linear-gradient(135deg, #ec4899, #a855f7);
  color: #fff;
  box-shadow: 0 6px 16px rgba(236, 72, 153, 0.4);
}
.pint-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
  text-align: center;
  white-space: nowrap;
}
.pint-chip.on .pint-label {
  color: var(--brand1);
}

/* ===== recently viewed block ===== */
.rv-block { padding: 8px 14px 4px }
.rv-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px }
.rv-title { font-size: 17px; font-weight: 700; color: var(--ink); margin: 0 }
.rv-seeall { border: none; background: rgba(236, 72, 153, .12); color: var(--brand1); font-size: 13px; font-weight: 600; padding: 7px 14px; border-radius: 999px; cursor: pointer }
.rv-seeall:hover { background: rgba(236, 72, 153, .2) }
.rv-row { display: flex; gap: 12px; overflow-x: auto; scrollbar-width: none; padding: 2px 0 6px }
.rv-row::-webkit-scrollbar { display: none }
.rv-item { position: relative; flex: 0 0 auto; padding: 0; border: none; background: none; cursor: pointer; line-height: 0 }
.rv-av { display: flex; align-items: center; justify-content: center; width: 58px; height: 58px; border-radius: 50%; background-size: cover; background-position: center; color: #fff; font-size: 20px; font-weight: 700; box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px rgba(236, 72, 153, .55) }
.rv-item:hover .rv-av { box-shadow: 0 0 0 2px var(--surface), 0 0 0 4px var(--brand1) }
.rv-badge { position: absolute; right: -2px; bottom: -2px; width: 18px; height: 18px; border-radius: 50%; background: linear-gradient(135deg, #ec4899, #a855f7); color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 2px var(--surface) }
.rv-badge svg { width: 11px; height: 11px }

/* ===== Анимации кнопок (v155) — тактильный отклик на нажатие/наведение ===== */
@media (prefers-reduced-motion: no-preference) {
  .btn-primary, .btn-ghost, .btn-save, .btn-cancel, .btn-backup, .btn-attend,
  .seg button, .lang-toggle button, .mini-toggle button, .bottomnav button,
  .menu-row, .strength-chip, .pin-overlay .pin-box button, .edit-actions button {
    transition: transform 0.13s cubic-bezier(.2,.7,.3,1), box-shadow 0.16s ease,
      background 0.16s ease, opacity 0.16s ease, border-color 0.16s ease;
  }
  .btn-primary:active:not(:disabled),
  .btn-ghost:active, .btn-save:active, .btn-cancel:active, .btn-backup:active,
  .seg button:active, .lang-toggle button:active, .mini-toggle button:active,
  .menu-row:active, .strength-chip:active, .edit-actions button:active,
  .pin-overlay .pin-box button:active {
    transform: scale(0.955);
  }
  .btn-attend:active:not([disabled]) { transform: scale(0.94); }
  .bottomnav button:active { transform: scale(0.88); }
  .btn-primary:hover:not(:disabled) { box-shadow: 0 12px 30px rgba(0, 0, 0, 0.26); }
  /* Пульс-подсветка первичной CTA после появления (одноразовый мягкий акцент) */
  @keyframes btnPulse {
    0% { box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
    50% { box-shadow: 0 8px 24px rgba(0,0,0,0.18), 0 0 0 6px rgba(255,255,255,0.14); }
    100% { box-shadow: 0 8px 24px rgba(0,0,0,0.18); }
  }
  .btn-primary.btn-attention { animation: btnPulse 1.6s ease-in-out 1; }
}
