/* Happy Banana inspired: warm, clean, human touch */
:root {
  --bg: #fefcf7;
  --bg-card: #ffffff;
  --text: #2d2a26;
  --text-muted: #6b6560;
  --accent: #e8b923;
  --accent-hover: #d4a61c;
  --accent-soft: #fdf6e3;
  --border: #ebe6df;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 4px 20px rgba(45, 42, 38, 0.06);
  --shadow-hover: 0 8px 30px rgba(45, 42, 38, 0.1);
  --font: 'Outfit', 'DM Sans', system-ui, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--text);
  background: var(--bg);
  display: flex;
  flex-direction: column;
}

.header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.5rem;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  text-decoration: none;
  color: var(--text);
  font-weight: 600;
  font-size: 1.2rem;
}

.logo-icon {
  font-size: 1.5rem;
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

.nav a:hover {
  color: var(--text);
}

.nav-out {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.main {
  flex: 1;
  padding: 1.5rem;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
}

.footer {
  padding: 1rem 1.5rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
  border-top: 1px solid var(--border);
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem 1.25rem;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: background 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--accent);
  color: var(--text);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-sm {
  padding: 0.5rem 1rem;
  font-size: 0.9rem;
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border: 2px solid var(--border);
}

.btn-ghost:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-group label {
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 500;
  color: var(--text);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="date"],
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  background: var(--bg-card);
  color: var(--text);
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.form-group .error {
  margin-top: 0.35rem;
  font-size: 0.9rem;
  color: #c24a4a;
}

/* Auth pages */
.auth-page {
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.auth-card {
  width: 100%;
  max-width: 400px;
  padding: 2rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.auth-card h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
}

.auth-card .subtitle {
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.auth-card form .btn {
  width: 100%;
  padding: 0.75rem;
  margin-top: 0.5rem;
}

.auth-card .link-bottom {
  margin-top: 1.25rem;
  text-align: center;
  color: var(--text-muted);
}

.auth-card .link-bottom a {
  color: var(--accent-hover);
  font-weight: 500;
  text-decoration: none;
}

.auth-card .link-bottom a:hover {
  text-decoration: underline;
}

/* Landing */
.hero {
  text-align: center;
  padding: 3rem 1rem 4rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3rem);
  margin: 0 0 1rem;
  line-height: 1.2;
}

.hero .lead {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 520px;
  margin: 0 auto 2rem;
}

.hero .cta {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
}

.hero .features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 3rem;
  text-align: left;
}

.hero .feature-card {
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.hero .feature-card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
}

.hero .feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

/* Feed — cards stack */
.feed-container {
  max-width: 420px;
  margin: 0 auto;
  padding-bottom: 2rem;
}

.feed-actions {
  display: flex;
  justify-content: center;
  gap: 1.5rem;
  margin-top: 1rem;
}

.feed-actions button {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  font-size: 1.75rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, box-shadow 0.15s;
  background: var(--bg-card);
  box-shadow: var(--shadow);
}

.feed-actions button:active {
  transform: scale(0.95);
}

.feed-actions .btn-skip {
  color: var(--text-muted);
}

.feed-actions .btn-skip:hover {
  background: #f5f0eb;
  color: var(--text);
}

.feed-actions .btn-like {
  color: #2e7d32;
  background: var(--accent-soft);
}

.feed-actions .btn-like:hover {
  background: var(--accent);
  color: var(--text);
  box-shadow: var(--shadow-hover);
}

.feed-balance {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.feed-balance strong {
  color: var(--text);
}

.feed-actions .btn-super-like {
  background: linear-gradient(135deg, #ff9800 0%, #f57c00 100%);
  color: #fff;
}

.feed-actions .btn-super-like:hover:not(:disabled) {
  background: linear-gradient(135deg, #fb9e2e 0%, #ff9800 100%);
  box-shadow: var(--shadow-hover);
}

.feed-actions .btn-super-like:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.card-stack {
  position: relative;
  height: 520px;
  margin: 0 auto;
}

.profile-card {
  position: absolute;
  left: 50%;
  top: 0;
  transform: translateX(-50%);
  width: 100%;
  max-width: 380px;
  height: 480px;
  background: var(--bg-card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform 0.3s ease, opacity 0.3s ease;
  cursor: grab;
  user-select: none;
}

.profile-card:active {
  cursor: grabbing;
}

.profile-card.swipe-left {
  transform: translateX(-120%) translateY(20px) rotate(-15deg);
  opacity: 0;
}

.profile-card.swipe-right {
  transform: translateX(20px) translateY(20px) rotate(15deg);
  opacity: 0;
}

.profile-card .card-photo {
  position: relative;
  width: 100%;
  height: 320px;
  background: linear-gradient(135deg, var(--accent-soft) 0%, #f5e6c8 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 5rem;
  color: var(--accent);
}

.profile-card .card-match-badge {
  position: absolute;
  top: 0.5rem;
  right: 0.5rem;
  background: var(--accent);
  color: #fff;
  padding: 0.25rem 0.5rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
}

.profile-card .card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-card .card-body {
  padding: 1.25rem;
}

.profile-card .card-name {
  font-size: 1.4rem;
  font-weight: 600;
  margin: 0 0 0.25rem;
}

.profile-card .card-meta {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.5rem;
}

.profile-card .card-about {
  font-size: 0.9rem;
  color: var(--text);
  line-height: 1.45;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.profile-card .card-interests {
  margin-top: 0.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.profile-card .tag {
  font-size: 0.8rem;
  padding: 0.25rem 0.6rem;
  background: var(--accent-soft);
  color: var(--text);
  border-radius: 999px;
}

.empty-feed {
  text-align: center;
  padding: 3rem 1rem;
  color: var(--text-muted);
}

.empty-feed p {
  margin-bottom: 1rem;
}

.empty-feed-tips {
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

/* Match overlay */
.match-overlay {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.25s ease, visibility 0.25s ease;
}

.match-overlay.is-visible {
  opacity: 1;
  visibility: visible;
}

.match-overlay-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.match-overlay-content {
  position: relative;
  background: var(--bg);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg, 0 20px 40px rgba(0, 0, 0, 0.2));
  padding: 2rem;
  text-align: center;
  max-width: 320px;
  width: 100%;
  animation: matchPop 0.4s ease forwards;
}

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

.match-hearts {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.match-heart {
  font-size: 2.5rem;
  color: var(--accent);
  animation: matchHeart 0.6s ease infinite;
}

.match-heart:nth-child(1) { animation-delay: 0s; }
.match-heart:nth-child(2) { animation-delay: 0.15s; }
.match-heart:nth-child(3) { animation-delay: 0.3s; }

@keyframes matchHeart {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.2); opacity: 0.9; }
}

.match-title {
  font-size: 1.5rem;
  margin: 0 0 0.5rem;
  color: var(--text);
}

.match-subtitle {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1.5rem;
}

.match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

.match-actions .btn {
  min-width: 140px;
}

/* Filters bar */
.feed-flow {
  margin-bottom: 1rem;
}

.feed-flow-step {
  margin: 0 0 0.35rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text);
}

.feed-flow-row {
  margin-bottom: 0.75rem;
}

.feed-flow-row select {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  min-width: 140px;
}

.feed-interests-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.feed-interests-label {
  font-size: 0.95rem;
  font-weight: 500;
  min-width: 12rem;
}

.feed-interests-input {
  flex: 1;
  min-width: 200px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
}

.feed-map-big {
  height: 320px;
  margin: 0.5rem 0;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  cursor: pointer;
}

.feed-map-count {
  margin: 0.5rem 0 0;
  font-size: 1rem;
  color: var(--text);
}

.feed-map-count strong {
  color: var(--accent);
}

.feed-map-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
}

.feed-map-actions .feed-flow-step {
  margin: 0;
}

.feed-map-actions select {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
}

.btn-search-main {
  padding: 0.65rem 1.5rem;
  font-size: 1.1rem;
  font-weight: 600;
}

.feed-flow-hint {
  margin: 0.5rem 0 0;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.feed-filters-details {
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  padding: 0.5rem 1rem;
}

.feed-filters-details summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--text-muted);
  list-style: none;
}

.feed-filters-details summary::-webkit-details-marker {
  display: none;
}

.feed-filters-details summary::before {
  content: '▶ ';
  font-size: 0.7rem;
}

.feed-filters-details[open] summary::before {
  content: '▼ ';
}

.feed-filters-details .filters-bar {
  margin-top: 0.75rem;
  margin-bottom: 0.5rem;
}

.filters-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  align-items: center;
}

.filters-bar select,
.filters-bar input {
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  background: var(--bg-card);
}

.filters-bar .btn {
  padding: 0.5rem 1rem;
}

.filter-interests-inline {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.filter-interests-inline input {
  min-width: 180px;
}

.filter-age {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 1rem;
}

.filter-age-row {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.filter-age-label {
  font-size: 0.9rem;
  color: var(--text-muted);
  min-width: 1.8rem;
}

.filter-age-value {
  min-width: 1.8rem;
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--text);
}

.filter-age-slider {
  width: 100px;
  height: 6px;
  padding: 0;
  border: none;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  border-radius: 3px;
  outline: none;
}

.filter-age-slider::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.filter-age-slider::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent);
  cursor: pointer;
  border: 2px solid #fff;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.filter-age-slider::-webkit-slider-runnable-track {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
}

.filter-age-slider::-moz-range-track {
  height: 6px;
  border-radius: 3px;
  background: var(--border);
}

/* Cabinet */
.cabinet-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  max-width: 800px;
}

@media (max-width: 640px) {
  .cabinet-grid {
    grid-template-columns: 1fr;
  }
}

.cabinet-section {
  background: var(--bg-card);
  border-radius: var(--radius);
  padding: 1.5rem;
  border: 1px solid var(--border);
}

.cabinet-section h2 {
  margin: 0 0 1rem;
  font-size: 1.2rem;
}

/* Matches list */
.matches-hint {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.matches-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: 600px;
}

.match-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--text);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.match-item:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.match-item-no-link {
  cursor: default;
  pointer-events: none;
}

.match-item-no-link:hover {
  border-color: var(--border);
  box-shadow: none;
}

.match-item .avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.match-item .avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.match-item .info {
  flex: 1;
  min-width: 0;
}

.match-item .name {
  font-weight: 600;
  margin-bottom: 0.2rem;
}

.match-item .meta {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.match-super-badge {
  margin-left: 0.25rem;
}

/* Chat */
.chat-layout {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 1rem;
  max-width: 900px;
  margin: 0 auto;
  height: calc(100vh - 140px);
  min-height: 400px;
}

@media (max-width: 640px) {
  .chat-layout {
    grid-template-columns: 1fr;
  }
}

.chat-header {
  padding: 1rem;
  border-bottom: 1px solid var(--border);
  font-weight: 600;
  background: var(--bg-card);
  border-radius: var(--radius-sm) var(--radius-sm) 0 0;
}

.chat-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  background: var(--bg);
}

.chat-msg {
  max-width: 80%;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}

.chat-msg.mine {
  align-self: flex-end;
  background: var(--accent);
  color: var(--text);
}

.chat-msg.theirs {
  align-self: flex-start;
  background: var(--bg-card);
  border: 1px solid var(--border);
}

.chat-msg .chat-read {
  display: block;
  font-size: 0.75rem;
  color: var(--text-muted);
  margin-top: 0.25rem;
}

.chat-typing {
  padding: 0.35rem 1rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  font-style: italic;
  border-top: 1px solid var(--border);
  background: var(--bg);
}

.chat-icebreakers {
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}

.chat-icebreakers-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-right: 0.25rem;
}

.btn-icebreaker {
  font-size: 0.8rem;
  padding: 0.4rem 0.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
}

.btn-icebreaker:hover {
  background: var(--accent-soft);
  border-color: var(--accent);
}

.chat-form {
  padding: 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg-card);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
}

.chat-form form {
  display: flex;
  gap: 0.5rem;
}

.chat-form input {
  flex: 1;
  padding: 0.65rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
}

.chat-form .btn {
  flex-shrink: 0;
}

.chat-panel {
  display: flex;
  flex-direction: column;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.page-title {
  margin: 0 0 1.5rem;
  font-size: 1.5rem;
}

.matches-total-count {
  font-weight: 500;
  color: var(--text-muted);
  font-size: 0.95em;
}

/* Доска объявлений */
.bulletin-section {
  margin-top: 2rem;
  max-width: 720px;
}

.bulletin-section h2 {
  margin: 0 0 1rem;
  font-size: 1.35rem;
}

.bulletin-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.bulletin-item {
  padding: 1rem;
  background: var(--bg-card);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.bulletin-item .bulletin-title {
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.bulletin-item .bulletin-meta {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
}

.bulletin-item .bulletin-body {
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.bulletin-form {
  margin-bottom: 1.5rem;
  padding: 1rem;
  background: var(--accent-soft);
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

.bulletin-form .form-group {
  margin-bottom: 0.75rem;
}

.bulletin-form .form-group:last-of-type {
  margin-bottom: 0;
}

/* Карта */
.map-section {
  margin-top: 2rem;
}

.map-section h2 {
  margin: 0 0 0.75rem;
  font-size: 1.35rem;
}

.map-section .map-description {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

#map {
  width: 100%;
  height: 400px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--border);
}

.map-popup-interests {
  font-size: 0.9em;
  color: var(--text-muted);
}

.map-full {
  height: 60vh;
  min-height: 400px;
}

.map-chat-section {
  margin-top: 2rem;
  max-width: 600px;
}

.map-chat-title {
  font-size: 1.25rem;
  margin: 0 0 0.5rem;
}

.map-chat-hint {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 1rem;
}

.map-chat-messages {
  max-height: 320px;
  overflow-y: auto;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.75rem;
  margin-bottom: 1rem;
}

.map-chat-empty {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin: 0;
}

.map-chat-item {
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
}

.map-chat-item:last-child {
  border-bottom: none;
}

.map-chat-item-author {
  font-weight: 600;
  font-size: 0.9rem;
}

.map-chat-item-time {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.map-chat-item-text {
  margin: 0.25rem 0 0;
  font-size: 0.95rem;
  white-space: pre-wrap;
  word-break: break-word;
}

.map-chat-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: flex-end;
}

.map-chat-form textarea {
  flex: 1;
  min-width: 200px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 1rem;
  resize: vertical;
}

.map-chat-form .btn {
  flex-shrink: 0;
}

.map-picker-wrap {
  margin-top: 1rem;
}

.map-picker-wrap #mapPicker {
  width: 100%;
  height: 300px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}

/* Лента: карта поиска по месту и радиусу */
.feed-map-wrap {
  margin: 1rem 0;
}

.feed-map-caption {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.feed-map {
  width: 100%;
  height: 280px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--border);
}

.feed-map-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-top: 0.5rem;
  flex-wrap: wrap;
}

.feed-map-controls select {
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
}

.feed-map-radius-input {
  width: 4.5rem;
  padding: 0.4rem 0.6rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
}

.feed-map-radius-handle {
  background: none;
  border: none;
}

.feed-map-radius-handle span {
  display: block;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  cursor: grab;
}

.feed-map-radius-handle span:active {
  cursor: grabbing;
}

.map-profile-icon {
  background: none;
  border: none;
}

.map-profile-icon span {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 16px;
  font-weight: bold;
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.25);
  color: #fff;
}

.map-profile-male span {
  background: #2563eb;
}

.map-profile-female span {
  background: #db2777;
}

.filter-whom-label {
  font-size: 0.95rem;
  color: var(--text);
}

.filter-checkbox {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.95rem;
  cursor: pointer;
}

.filter-checkbox input {
  margin: 0;
}

/* Счётчик в шапке */
.header-stats {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-right: 0.5rem;
}

.header-stats .header-stat:not(:last-child)::after {
  content: " · ";
  margin-left: 0.15rem;
}

@media (max-width: 640px) {
  .header-stats {
    display: none;
  }
}

/* Поделиться профилем в кабинете */
.cabinet-share .share-desc {
  color: var(--text-muted);
  font-size: 0.95rem;
  margin-bottom: 0.75rem;
}

.share-link-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}

.invite-count {
  margin: 0.75rem 0 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}

.invite-count strong {
  color: var(--text);
}

.share-input {
  flex: 1;
  min-width: 200px;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 0.9rem;
  background: var(--bg);
}

/* Публичная карточка профиля */
.share-profile-card {
  max-width: 480px;
  padding: 1.5rem;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.share-profile-card .share-meta {
  color: var(--text-muted);
  margin: 0 0 0.5rem;
}

.share-profile-card .share-about {
  margin: 1rem 0;
  white-space: pre-wrap;
}

.share-profile-card .share-interests {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.share-profile-card .share-cta {
  margin-top: 1.5rem;
}
