/* ===== 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%);
}
* {
  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: inline-flex;
  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 22px;
  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%;
}
.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;
}
.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);
}
.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;
}
.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;
  background: var(--surface2);
  border-radius: 11px;
  padding: 4px;
}
.mini-toggle button {
  border: none;
  background: transparent;
  padding: 6px 14px;
  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;
}
.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;
}
/* Свидания вслепую */
.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;
  gap: 6px;
  padding: 8px 14px;
  overflow-x: auto;
  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;
}
.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;
}
.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;
}
.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));
}
.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);
  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);
}

/* ===== Подтверждение действия + 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;
}

/* ===== Несколько «фото»/градиентов профиля (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;
}

/* ===== Подсказки-примеры в промптах (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;
}

/* ===== Доп. фильтры (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;
}
.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; }
