/* ============================================================
   love.dojiksi.ru — Midnight Romance theme
   ============================================================ */

:root {
  /* Цветовая палитра */
  --bg:           #0d050a;
  --bg-2:         #160913;
  --surface:      #20101a;
  --surface-2:    #2a1623;
  --surface-3:    #36202d;
  --line:         rgba(255, 220, 220, 0.08);
  --line-strong:  rgba(255, 220, 220, 0.16);

  --text:         #fdeeee;
  --text-muted:   #ad9098;
  --text-dim:     #6e565f;

  --primary:      #ff3d6e;
  --primary-2:    #ff6b8a;
  --primary-dark: #c9184a;
  --accent:       #f4c95d;
  --accent-2:     #d4a52f;

  --rose:         #ffb7c5;
  --plum:         #5a1f3a;
  --wine:         #3a0c1d;

  --success:      #46c178;
  --danger:       #ff5577;
  --warn:         #f4c95d;

  /* Тени */
  --shadow-sm:  0 2px 8px rgba(0, 0, 0, 0.3);
  --shadow:     0 8px 32px rgba(0, 0, 0, 0.45);
  --shadow-lg:  0 24px 60px rgba(0, 0, 0, 0.6);
  --glow:       0 0 0 1px rgba(255, 61, 110, 0.35), 0 8px 28px rgba(255, 61, 110, 0.25);

  /* Радиусы */
  --r-sm: 8px;
  --r:    14px;
  --r-lg: 22px;
  --r-xl: 32px;

  /* Шрифты */
  --font-display: 'Fraunces', 'Cormorant Garamond', 'Times New Roman', serif;
  --font-body:    'DM Sans', -apple-system, 'Segoe UI', Roboto, system-ui, sans-serif;
}

/* ============================================================
   База
   ============================================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text);
  background: var(--bg);
  background-image:
    radial-gradient(circle at 12% 6%, rgba(255, 61, 110, 0.15), transparent 35%),
    radial-gradient(circle at 88% 90%, rgba(244, 201, 93, 0.10), transparent 40%),
    radial-gradient(circle at 50% 50%, rgba(90, 31, 58, 0.20), transparent 60%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* Фоновое зерно/шум */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  opacity: 0.5;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 0  0 0 0 0 0  0 0 0 0 0  0 0 0 0.06 0'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}

a { color: var(--primary-2); text-decoration: none; }
a:hover { color: var(--primary); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.01em;
  line-height: 1.1;
  margin: 0 0 0.5em;
}
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: 1.25rem; }

p { margin: 0 0 1em; }
small { color: var(--text-muted); }

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

::selection { background: var(--primary); color: #fff; }

/* ============================================================
   Layout
   ============================================================ */

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}
.container-narrow {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 24px;
  position: relative;
  z-index: 1;
}

/* ============================================================
   Шапка / навигация
   ============================================================ */

.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(13, 5, 10, 0.7);
  border-bottom: 1px solid var(--line);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.5rem;
  color: var(--text);
  letter-spacing: -0.02em;
}
.brand .heart {
  width: 28px; height: 28px;
  color: var(--primary);
  filter: drop-shadow(0 0 10px rgba(255, 61, 110, 0.6));
}
.brand:hover { color: var(--text); }

.nav { display: flex; gap: 4px; margin-left: auto; align-items: center; }
.nav a {
  position: relative;
  padding: 8px 14px;
  border-radius: 99px;
  color: var(--text-muted);
  font-size: 0.93rem;
  font-weight: 500;
  transition: all 0.18s;
}
.nav a:hover { color: var(--text); background: var(--surface); }
.nav a.active { color: var(--text); background: var(--surface-2); }
.nav .badge {
  display: inline-block;
  min-width: 18px;
  padding: 0 5px;
  height: 18px;
  border-radius: 99px;
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  line-height: 18px;
  text-align: center;
  margin-left: 6px;
  vertical-align: 1px;
  font-weight: 700;
}
.nav-avatar {
  width: 36px; height: 36px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--line-strong);
  margin-left: 8px;
}

/* Mobile nav (низ экрана) */
.mobile-nav {
  display: none;
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 40;
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  background: rgba(13, 5, 10, 0.85);
  border-top: 1px solid var(--line);
  padding: 8px 4px max(8px, env(safe-area-inset-bottom)) 4px;
}
.mobile-nav-inner {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 4px;
}
.mobile-nav a {
  display: flex; flex-direction: column; align-items: center;
  gap: 2px;
  padding: 6px 4px;
  font-size: 0.7rem;
  color: var(--text-muted);
  border-radius: 10px;
  position: relative;
}
.mobile-nav a.active { color: var(--primary); }
.mobile-nav a svg { width: 22px; height: 22px; }
.mobile-nav a .badge {
  position: absolute; top: 2px; right: 50%; transform: translateX(18px);
  background: var(--primary);
  color: #fff;
  font-size: 0.62rem;
  padding: 1px 5px;
  border-radius: 99px;
  font-weight: 700;
}

@media (max-width: 720px) {
  .nav { display: none; }
  .topbar-inner { padding: 12px 16px; }
  .brand { font-size: 1.25rem; }
  .mobile-nav { display: block; }
  body { padding-bottom: 64px; }
  .nav-avatar-mobile { display: inline-block; margin-left: auto; }
}

/* ============================================================
   Кнопки
   ============================================================ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 99px;
  border: none;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s, color 0.2s;
  text-decoration: none;
  white-space: nowrap;
  user-select: none;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #fff;
  box-shadow: var(--glow);
}
.btn-primary:hover { color: #fff; box-shadow: 0 0 0 1px var(--primary), 0 12px 36px rgba(255, 61, 110, 0.45); }
.btn-secondary {
  background: var(--surface-2);
  color: var(--text);
  border: 1px solid var(--line-strong);
}
.btn-secondary:hover { background: var(--surface-3); color: var(--text); }
.btn-ghost {
  background: transparent;
  color: var(--text-muted);
}
.btn-ghost:hover { color: var(--text); background: var(--surface); }
.btn-gold {
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-2) 100%);
  color: #2a1d0a;
}
.btn-danger { background: var(--danger); color: #fff; }
.btn-block { width: 100%; }
.btn-lg { padding: 16px 30px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn:disabled { opacity: 0.4; cursor: not-allowed; transform: none; }

/* ============================================================
   Карточки
   ============================================================ */

.card {
  background: linear-gradient(180deg, var(--surface) 0%, var(--surface-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 24px;
  box-shadow: var(--shadow);
}
.card-glass {
  background: rgba(42, 22, 35, 0.55);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-lg);
  padding: 24px;
}

.divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  margin: 24px 0;
}

/* ============================================================
   Формы
   ============================================================ */

.field { margin-bottom: 18px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field-row-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }

.label {
  display: block;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin-bottom: 7px;
}

.input, .select, .textarea {
  width: 100%;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  color: var(--text);
  padding: 12px 14px;
  border-radius: var(--r);
  font-size: 0.95rem;
  transition: border-color 0.15s, box-shadow 0.15s;
  font-family: inherit;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(255, 61, 110, 0.15);
}
.textarea { min-height: 90px; resize: vertical; }
.select {
  appearance: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%23ad9098' stroke-width='2' fill='none' stroke-linecap='round'/></svg>");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}
.select option { background: var(--surface-2); color: var(--text); }

/* Чекбоксы и радио в виде кнопок */
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  padding: 8px 14px;
  border-radius: 99px;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 500;
  user-select: none;
  transition: all 0.15s;
}
.chip:hover { color: var(--text); border-color: var(--text-dim); }
.chip input { display: none; }
.chip.active, .chip:has(input:checked) {
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-color: transparent;
}

/* Range slider */
.range-row { display: flex; align-items: center; gap: 12px; }
.range-row input[type=number] {
  width: 70px;
  padding: 8px;
  text-align: center;
  background: var(--bg-2);
  border: 1px solid var(--line-strong);
  border-radius: 8px;
  color: var(--text);
}
input[type=range] {
  flex: 1;
  -webkit-appearance: none;
  appearance: none;
  height: 4px;
  background: var(--line-strong);
  border-radius: 2px;
  outline: none;
}
input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
  box-shadow: 0 0 0 3px rgba(255, 61, 110, 0.2);
}
input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px;
  border: none;
  border-radius: 50%;
  background: var(--primary);
  cursor: pointer;
}

/* ============================================================
   Лендинг
   ============================================================ */

.hero {
  min-height: calc(100vh - 80px);
  display: flex;
  align-items: center;
  padding: 60px 0 100px;
  position: relative;
  z-index: 1;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 60px;
  align-items: center;
}
@media (max-width: 880px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero { min-height: auto; padding: 40px 0 60px; }
}
.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 99px;
  background: rgba(255, 61, 110, 0.12);
  border: 1px solid rgba(255, 61, 110, 0.35);
  color: var(--primary-2);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 24px;
}
.hero-title {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(2.6rem, 6.5vw, 5.4rem);
  line-height: 1.0;
  margin: 0 0 24px;
  letter-spacing: -0.025em;
}
.hero-title em {
  background: linear-gradient(135deg, var(--primary-2) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-style: italic;
}
.hero-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  max-width: 520px;
  margin-bottom: 36px;
}
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.hero-stats { display: flex; gap: 36px; margin-top: 48px; flex-wrap: wrap; }
.hero-stat .num {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.8rem;
  color: var(--text);
}
.hero-stat .lbl { font-size: 0.82rem; color: var(--text-muted); }

/* Декоративный коллаж карточек на лендинге */
.hero-art {
  position: relative;
  height: 520px;
}
@media (max-width: 880px) {
  .hero-art { height: 440px; max-width: 460px; margin: 0 auto; }
}
.float-card {
  position: absolute;
  border-radius: var(--r-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line-strong);
  background: var(--surface-2);
}
.float-card.fc-1 {
  top: 0; left: 5%;
  width: 58%; height: 64%;
  transform: rotate(-6deg);
  animation: float1 8s ease-in-out infinite;
}
.float-card.fc-2 {
  top: 18%; right: 0;
  width: 50%; height: 60%;
  transform: rotate(5deg);
  animation: float2 9s ease-in-out infinite;
}
.float-card.fc-3 {
  bottom: 0; left: 18%;
  width: 56%; height: 50%;
  transform: rotate(-2deg);
  animation: float3 10s ease-in-out infinite;
}
.float-card-inner {
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: flex-end;
  padding: 18px;
}
.float-card-inner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,0.7) 100%);
}
.float-card-name {
  position: relative; z-index: 1;
  font-family: var(--font-display);
  font-size: 1.3rem;
  color: #fff;
  font-style: italic;
}
.float-card-name span { color: var(--rose); font-style: normal; font-family: var(--font-body); font-size: 0.95em; opacity: 0.85; }

@keyframes float1 {
  0%, 100% { transform: rotate(-6deg) translateY(0); }
  50% { transform: rotate(-5deg) translateY(-12px); }
}
@keyframes float2 {
  0%, 100% { transform: rotate(5deg) translateY(0); }
  50% { transform: rotate(7deg) translateY(-10px); }
}
@keyframes float3 {
  0%, 100% { transform: rotate(-2deg) translateY(0); }
  50% { transform: rotate(-1deg) translateY(-8px); }
}

/* Декоративная линия */
.hero-line {
  position: absolute;
  left: 50%; top: 50%;
  transform: translate(-50%, -50%);
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.4rem;
  color: var(--accent);
  background: var(--bg);
  padding: 8px 16px;
  border-radius: 99px;
  border: 1px dashed var(--accent);
  white-space: nowrap;
  box-shadow: 0 0 30px rgba(244, 201, 93, 0.3);
}

/* Секция features */
.features-section { padding: 80px 0; }
.section-title-wrap { text-align: center; margin-bottom: 60px; }
.section-eyebrow {
  display: inline-block;
  color: var(--accent);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  padding: 28px;
  border-radius: var(--r-lg);
  background: var(--surface);
  border: 1px solid var(--line);
  transition: transform 0.2s, border-color 0.2s;
}
.feature-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.feature-icon {
  width: 48px; height: 48px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, rgba(255, 61, 110, 0.2), rgba(244, 201, 93, 0.15));
  color: var(--primary);
  margin-bottom: 16px;
}
.feature-icon svg { width: 24px; height: 24px; }
.feature-card h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature-card p { color: var(--text-muted); font-size: 0.92rem; margin: 0; }

/* Footer */
.site-footer {
  padding: 40px 0;
  border-top: 1px solid var(--line);
  text-align: center;
  color: var(--text-dim);
  font-size: 0.85rem;
}
.site-footer .heart {
  color: var(--primary);
  display: inline-block;
  vertical-align: -2px;
  margin: 0 4px;
}

/* ============================================================
   Discover (карточки анкет)
   ============================================================ */

.discover-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 24px;
  padding: 24px 0;
}
@media (max-width: 880px) {
  .discover-layout { grid-template-columns: 1fr; }
  .filters-pane { display: none; }
  .filters-pane.open { display: block; position: fixed; inset: 0; z-index: 60; overflow-y: auto; padding: 80px 16px 32px; background: var(--bg); }
}
.filters-pane { position: sticky; top: 92px; height: fit-content; }
.filters-pane h3 {
  font-family: var(--font-body);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
}

.filter-toggle {
  display: none;
  margin-bottom: 16px;
}
@media (max-width: 880px) {
  .filter-toggle { display: inline-flex; }
}

/* Сетка карточек */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
}
.user-card {
  position: relative;
  background: var(--surface-2);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  overflow: hidden;
  cursor: pointer;
  aspect-ratio: 3/4.2;
  transition: transform 0.18s, box-shadow 0.2s;
  text-decoration: none;
  color: var(--text);
}
.user-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  color: var(--text);
}
.user-card-photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-3);
}
.user-card-photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 35%, rgba(0,0,0,0.85) 100%);
}
.user-card-info {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  padding: 16px;
  z-index: 2;
}
.user-card-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: #fff;
  margin: 0 0 4px;
  font-weight: 500;
  display: flex; align-items: center; gap: 6px;
}
.user-card-name .age {
  font-family: var(--font-body);
  font-style: normal;
  font-weight: 400;
  color: var(--rose);
  opacity: 0.9;
}
.user-card-meta {
  font-size: 0.85rem;
  color: rgba(255, 230, 230, 0.8);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}

.online-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--success);
  display: inline-block;
  box-shadow: 0 0 8px rgba(70, 193, 120, 0.6);
}
.online-tag {
  position: absolute;
  top: 12px; left: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center; gap: 5px;
  padding: 4px 10px;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 99px;
  font-size: 0.75rem;
  color: #fff;
  backdrop-filter: blur(8px);
}
.verified-tag {
  position: absolute;
  top: 12px; right: 12px;
  z-index: 2;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  display: flex; align-items: center; justify-content: center;
  color: #2a1d0a;
}
.verified-tag svg { width: 16px; height: 16px; }

/* Empty state */
.empty {
  text-align: center;
  padding: 80px 20px;
  color: var(--text-muted);
}
.empty .big {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 2rem;
  color: var(--text);
  margin-bottom: 8px;
}

/* ============================================================
   Просмотр анкеты
   ============================================================ */

.profile-view {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 32px;
  padding: 32px 0 80px;
}
@media (max-width: 880px) {
  .profile-view { grid-template-columns: 1fr; }
}

.gallery {
  position: relative;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: var(--surface-2);
  aspect-ratio: 4/5;
}
.gallery-img {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.gallery-img.active { opacity: 1; }
.gallery-bars {
  position: absolute;
  top: 12px; left: 12px; right: 12px;
  z-index: 3;
  display: flex; gap: 4px;
}
.gallery-bar {
  flex: 1;
  height: 3px;
  background: rgba(255,255,255,0.3);
  border-radius: 2px;
  overflow: hidden;
}
.gallery-bar.active { background: #fff; }
.gallery-arrow {
  position: absolute;
  top: 0; bottom: 0;
  width: 50%;
  cursor: pointer;
  z-index: 2;
}
.gallery-arrow.left { left: 0; }
.gallery-arrow.right { right: 0; }

.profile-info h1 {
  margin: 0 0 6px;
  font-style: italic;
}
.profile-info h1 .age {
  font-style: normal;
  font-family: var(--font-body);
  color: var(--text-muted);
  font-weight: 400;
  font-size: 0.7em;
  margin-left: 8px;
}
.profile-meta {
  display: flex; gap: 14px; flex-wrap: wrap;
  color: var(--text-muted);
  margin-bottom: 24px;
  font-size: 0.95rem;
}
.profile-meta-item { display: inline-flex; gap: 6px; align-items: center; }

.bio-block {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.15rem;
  color: var(--text);
  line-height: 1.4;
  padding: 20px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin-bottom: 24px;
}

.facts-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 24px;
}
.fact {
  background: var(--surface);
  padding: 12px 14px;
  border-radius: var(--r);
  border: 1px solid var(--line);
}
.fact-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-muted);
  margin-bottom: 4px;
}
.fact-value { font-weight: 500; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.tag {
  padding: 6px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 99px;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.action-bar {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 24px;
}
.act-btn {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  padding: 16px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  cursor: pointer;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  transition: all 0.15s;
}
.act-btn:hover { transform: translateY(-2px); }
.act-btn svg { width: 28px; height: 28px; }
.act-btn.act-pass { color: var(--text-muted); }
.act-btn.act-pass:hover { color: var(--text); border-color: var(--text-dim); }
.act-btn.act-like { color: var(--primary); border-color: rgba(255, 61, 110, 0.3); }
.act-btn.act-like:hover { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; border-color: transparent; }
.act-btn.act-super { color: var(--accent); border-color: rgba(244, 201, 93, 0.3); }
.act-btn.act-super:hover { background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #2a1d0a; border-color: transparent; }

/* ============================================================
   Match popup
   ============================================================ */

.match-overlay {
  position: fixed; inset: 0;
  background: rgba(13, 5, 10, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.match-overlay.show { display: flex; }
.match-box {
  text-align: center;
  max-width: 380px;
  animation: scaleIn 0.4s cubic-bezier(.23,1,.32,1);
}
.match-title {
  font-family: var(--font-display);
  font-style: italic;
  font-size: 4rem;
  background: linear-gradient(135deg, var(--primary-2), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 8px;
  text-shadow: 0 0 40px rgba(255, 61, 110, 0.4);
}
.match-sub { color: var(--text); margin-bottom: 24px; font-size: 1.1rem; }
.match-photos { display: flex; justify-content: center; gap: -20px; margin-bottom: 28px; }
.match-photos img {
  width: 110px; height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 4px solid var(--bg);
  box-shadow: var(--shadow);
}
.match-photos img:first-child { transform: rotate(-6deg) translateX(15px); }
.match-photos img:last-child { transform: rotate(6deg) translateX(-15px); }

@keyframes scaleIn {
  from { opacity: 0; transform: scale(0.85); }
  to { opacity: 1; transform: scale(1); }
}

/* ============================================================
   Чат / сообщения
   ============================================================ */

.matches-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 0;
}
.match-row {
  display: flex; align-items: center; gap: 14px;
  padding: 12px;
  border-radius: var(--r);
  background: var(--surface);
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}
.match-row:hover { background: var(--surface-2); color: var(--text); }
.match-row .ava {
  width: 56px; height: 56px;
  border-radius: 50%;
  background-size: cover;
  background-position: center;
  background-color: var(--surface-3);
  flex-shrink: 0;
  position: relative;
}
.match-row .ava .online-dot {
  position: absolute; bottom: 2px; right: 2px;
  border: 2px solid var(--surface);
}
.match-row .meta { flex: 1; min-width: 0; }
.match-row .name { font-weight: 600; margin-bottom: 2px; }
.match-row .lastmsg {
  color: var(--text-muted);
  font-size: 0.88rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.match-row .badge {
  background: var(--primary);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: 99px;
  flex-shrink: 0;
}

/* Чат */
.chat-page {
  display: grid;
  grid-template-rows: auto 1fr auto;
  height: calc(100vh - 70px);
  max-height: 900px;
  margin-top: 0;
}
.chat-header {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.chat-header .ava { width: 44px; height: 44px; border-radius: 50%; background-size: cover; background-position: center; }
.chat-header .name { font-weight: 600; }
.chat-header .status { font-size: 0.8rem; color: var(--text-muted); }

.chat-msgs {
  overflow-y: auto;
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.bubble {
  max-width: 75%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.95rem;
  line-height: 1.4;
  word-wrap: break-word;
  position: relative;
}
.bubble-time {
  font-size: 0.65rem;
  opacity: 0.7;
  margin-top: 4px;
  display: block;
}
.bubble.mine {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  border-bottom-right-radius: 4px;
}
.bubble.theirs {
  align-self: flex-start;
  background: var(--surface-2);
  color: var(--text);
  border-bottom-left-radius: 4px;
}
.day-sep {
  align-self: center;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin: 8px 0;
  font-family: var(--font-display);
  font-style: italic;
}

.chat-input-bar {
  display: flex; gap: 10px; align-items: center;
  padding: 12px 14px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.chat-input-bar .input { border-radius: 99px; padding: 12px 18px; }
.chat-input-bar .send-btn {
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}

/* ============================================================
   Профиль (редактирование)
   ============================================================ */

.profile-edit { padding: 32px 0 80px; }
.section-block {
  margin-bottom: 32px;
}
.section-header {
  display: flex; align-items: baseline; gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}
.section-header h2 {
  margin: 0;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.6rem;
}
.section-header span { color: var(--text-muted); font-size: 0.85rem; }

.photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}
.photo-slot {
  aspect-ratio: 3/4;
  border-radius: var(--r);
  background: var(--surface-2);
  border: 2px dashed var(--line-strong);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  cursor: pointer;
  position: relative;
  background-size: cover;
  background-position: center;
  transition: border-color 0.2s;
}
.photo-slot:hover { border-color: var(--primary); }
.photo-slot.has-photo { border-style: solid; }
.photo-slot .delete {
  position: absolute;
  top: 6px; right: 6px;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: rgba(0,0,0,0.6);
  color: #fff;
  border: none;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
}
.photo-slot.has-photo .delete { display: flex; }
.photo-slot .placeholder { font-size: 2rem; }
.photo-slot.is-main::before {
  content: 'ОСНОВНОЕ';
  position: absolute;
  top: 6px; left: 6px;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  background: var(--accent);
  color: #2a1d0a;
  padding: 3px 7px;
  border-radius: 4px;
  z-index: 2;
}

/* ============================================================
   Утилиты
   ============================================================ */

.flash-area { padding: 16px 0 0; }
.flash {
  padding: 12px 16px;
  border-radius: var(--r);
  margin-bottom: 10px;
  font-size: 0.92rem;
  border: 1px solid var(--line-strong);
}
.flash.success { background: rgba(70, 193, 120, 0.12); border-color: rgba(70, 193, 120, 0.4); color: #9eecbb; }
.flash.error { background: rgba(255, 85, 119, 0.12); border-color: rgba(255, 85, 119, 0.4); color: #ffb4c1; }

.text-muted { color: var(--text-muted); }
.text-center { text-align: center; }
.mt-1 { margin-top: 8px; } .mt-2 { margin-top: 16px; } .mt-3 { margin-top: 24px; } .mt-4 { margin-top: 32px; }
.mb-1 { margin-bottom: 8px; } .mb-2 { margin-bottom: 16px; } .mb-3 { margin-bottom: 24px; } .mb-4 { margin-bottom: 32px; }
.flex { display: flex; }
.flex-1 { flex: 1; }
.gap-1 { gap: 8px; } .gap-2 { gap: 16px; } .gap-3 { gap: 24px; }
.items-center { align-items: center; } .justify-between { justify-content: space-between; }
.hide-mobile { display: block; }
@media (max-width: 720px) { .hide-mobile { display: none; } }

/* Loading spinner */
.spinner {
  width: 28px; height: 28px;
  border: 2px solid var(--line-strong);
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
  display: inline-block;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ============================================
   ДОПОЛНИТЕЛЬНЫЕ КЛАССЫ ДЛЯ НАСТРОЕК / ОБ САЙТЕ / ОШИБОК
============================================ */

.container.narrow,
.narrow {
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

.lead {
  font-size: 1.1rem;
  line-height: 1.55;
}

.text-center { text-align: center; }

.setting-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  flex-wrap: wrap;
}
.setting-title {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: .25rem;
}
.setting-desc {
  color: var(--text-muted);
  font-size: .9rem;
  max-width: 460px;
}

.blocked-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: .65rem;
}
.blocked-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .65rem .75rem;
  border-radius: 14px;
  background: rgba(255,255,255,.03);
  border: 1px solid rgba(255,255,255,.06);
}
.blocked-info {
  display: flex;
  align-items: center;
  gap: .75rem;
}
.avatar-sm {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,.06) center/cover no-repeat;
  flex-shrink: 0;
}

.btn-sm { padding: .45rem .9rem; font-size: .85rem; }

.danger-card {
  border-color: rgba(255, 90, 110, .35) !important;
}

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(5,2,5,.78);
  backdrop-filter: blur(8px);
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}
.modal.show { display: flex; }
.modal-card {
  max-width: 460px;
  width: 100%;
  animation: pop .25s ease;
}
@keyframes pop {
  from { transform: scale(.92); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Steps & dotted lists for /about */
.steps {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .65rem;
  line-height: 1.55;
}
.steps li::marker { color: var(--primary); font-weight: 700; }

.dotted {
  margin: 0;
  padding-left: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: .5rem;
  line-height: 1.55;
}
.dotted li::marker { color: var(--accent); }

/* Error page */
.error-page {
  padding: 4rem 1rem;
}
.error-code {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-size: clamp(5rem, 18vw, 9rem);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  line-height: 1;
}
.error-msg {
  font-size: 1.25rem;
  color: var(--text-muted);
  margin-top: .5rem;
}

.row { display: flex; }
.gap-2 { gap: .65rem; }
.row.gap-2 { justify-content: flex-end; }
