/* === ATMA Dating, Match, Filters, Compat === */
/* Extracted from components.css -- Step 2 */

/* РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’
   Chat & Messaging РІР‚вЂќ Single Source of Truth
   РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’ */

/* РІвЂќР‚РІвЂќР‚ Dating Mini-Chat Header РІвЂќР‚РІвЂќР‚ */
.dating-chat-header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  margin-bottom: 12px;
}
.dating-chat-header .btn-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: var(--tile-bg);
  font-size: 16px;
  cursor: pointer;
}
.dating-chat-header span {
  font-size: 16px;
  font-weight: 600;
}

/* РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’
   Dating Topbar РІР‚вЂќ Single Source of Truth
   РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’ */
.d-topbar {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 16px;
  padding-top: max(12px, var(--safe-top));
  background: var(--menu-bg);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
  z-index: var(--z-header);
}
.d-topbar-left {
  display: flex;
  align-items: center;
  gap: 10px;
}
.d-topbar-title { display: none; }
.d-topbar-stat {
  font-size: 12px;
  color: var(--label);
}
.d-topbar-right {
  display: flex;
  align-items: center;
  gap: 6px;
}
.d-topbar-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 16px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}
.d-topbar-btn:active { opacity: .6; }
#btn-dating-search { display: none; }
.d-topbar-bell { position: relative; }
.d-topbar-bell-dot {
  position: absolute;
  top: 7px;
  right: 7px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: var(--text-primary);
}

/* РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’
   Dating UI РІР‚вЂќ Single Source of Truth
   РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’ */

/* Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™ Dating Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™ */
.dating-stats {
  display: flex;
  gap: 12px;
  padding: 12px 16px;
  background: var(--tile-bg);
  border-radius: 12px;
  margin-bottom: 16px;
  font-size: 12px;
  color: var(--label);
}
.match-photo {
  width: 60px;
  height: 72px;
  border-radius: 10px;
  object-fit: cover;
  background: var(--page-bg-open);
  flex-shrink: 0;
}
.match-info { flex: 1; min-width: 0; }
.match-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--label);
  margin: 4px 0 0;
}
.match-archetype {
  font-size: 12px;
  color: var(--label);
  margin-bottom: 4px;
}
.match-score-bar {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  overflow: hidden;
  margin-top: 6px;
}
.match-score-fill {
  height: 100%;
  border-radius: 3px;
  background: var(--text-primary);
  transition: width .4s ease;
}
.match-score-label {
  font-size: 12px;
  color: var(--text-primary);
  font-weight: 600;
  margin-top: 3px;
}
/* Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™ Dating Tabs (P9.2) Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™ */
.dating-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}
.dating-tab {
  flex: 1;
  padding: 12px 16px;
  background: var(--tile-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 14px;
  font-weight: 600;
  color: var(--label);
  cursor: pointer;
  transition: all .2s ease;
  font-family: inherit;
}
.dating-tab.active {
  background: var(--tile-bg);
  border-color: var(--text-primary);
  color: var(--text-primary);
}
.dating-panel {
  min-height: 300px;
}
/* Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™ Suggestion Card (P9.2) Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™ */
.suggestion-card {
  background: var(--tile-bg);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
}
.suggestion-photo {
  position: relative;
  height: 300px;
  background: var(--page-bg-open);
}
.suggestion-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.suggestion-photo-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 80px;
  background: var(--tile-bg);
}
.suggestion-score {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
}
.suggestion-info {
  padding: 16px;
}
.suggestion-name {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 4px;
}
.suggestion-meta {
  font-size: 14px;
  color: var(--label);
  margin-bottom: 8px;
}
.suggestion-bio {
  font-size: 14px;
  color: var(--text-primary);
  line-height: 1.4;
  margin-bottom: 8px;
}
.suggestion-why {
  font-size: 13px;
  color: var(--text-primary);
  padding: 8px 12px;
  background: var(--tile-bg);
  border-radius: 8px;
}
.suggestion-hd {
  font-size: 12px;
  color: var(--label);
  margin-top: 8px;
  padding: 6px 10px;
  background: var(--border);
  border-radius: 6px;
  display: inline-block;
}
.suggestion-actions {
  display: flex;
  justify-content: center;
  gap: 16px;
  padding: 16px;
}
/* Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™ Match Popup (P9.2) Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™ */
.match-overlay {
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: var(--z-overlay);
  background: var(--bg-main);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s;
}
.match-overlay.show {
  opacity: 1;
  pointer-events: auto;
}
.match-popup {
  background: var(--tile-bg);
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  max-width: 320px;
  animation: matchPop .4s ease;
}
@keyframes matchPop {
  0% { transform: scale(0.8); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}
.match-confetti {
  font-size: 40px;
  margin-bottom: 16px;
}
.match-popup h2 {
  font-size: 26px;
  margin: 12px 0;
  color: var(--text-primary);
}
.match-photos {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin: 14px 0;
}
.match-photo-circle {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: var(--tile-bg);
}
.match-photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.match-heart {
  font-size: 28px;
  animation: heartBeat 1s ease infinite;
}
.match-popup .match-name {
  font-size: 16px;
  color: var(--label);
  margin-bottom: 20px;
}
.match-popup .match-actions {
  display: flex;
  gap: 12px;
}
.match-popup .match-actions .btn {
  flex: 1;
}
/* Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™ Match Item (P9.2) Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™ */
.match-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--tile-bg);
  border: 1px solid var(--border);
  border-radius: 12px;
  cursor: pointer;
  transition: all .2s ease;
}
.match-item:hover {
  background: var(--tile-bg);
  border-color: var(--text-primary);
}
.match-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--page-bg-open);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  flex-shrink: 0;
}
.match-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.match-details {
  flex: 1;
  min-width: 0;
}
.match-item .match-name {
  font-size: 15px;
  font-weight: 600;
}
.match-preview {
  font-size: 13px;
  color: var(--label);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.match-time {
  font-size: 12px;
  color: var(--label);
}
/* Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™ Dating P9.4: Edit Profile, Status, etc Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™ */
.dating-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}
/* Compatibility Pros/Cons in Cards */
.suggestion-pros,
.suggestion-cons {
  margin-top: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 12px;
}
.suggestion-pros {
  background: var(--switch-active);
}
.suggestion-cons {
  background: var(--danger);
}
/* Biorhythm Block in Cards */
.suggestion-bio-block {
  margin-top: 10px;
  padding: 10px;
  background: var(--text-secondary);
  border-radius: 8px;
}
/* РІвЂќР‚РІвЂќР‚ Dating registration card РІвЂќР‚РІвЂќР‚ */
#dating-reg.card {
}
#dating-reg .card-intro {
  font-size: var(--fs-base, 15px);
  line-height: 1.5;
  color: var(--label);
  margin-bottom: 16px;
}
/* Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™
   P5: Compatibility & Match Card
   Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™ */
/* Invite card */
/* Match Card */
.match-card {
  background: var(--tile-bg);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 20px 16px;
  display: flex;
  gap: 14px;
  align-items: center;
  margin-bottom: 16px;
}
.match-card-header {
  text-align: center;
  margin-bottom: 16px;
}
.match-names {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
  flex-wrap: wrap;
}
.match-vs {
  color: var(--text-primary);
  font-size: 20px;
}
.match-signs {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  font-size: 14px;
  color: var(--label);
}
/* Score ring */
.match-score-ring {
  width: 140px;
  height: 140px;
  margin: 16px auto;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 5px solid var(--border);
  position: relative;
}
.match-score-ring.high {
  border-color: var(--switch-active);
  box-shadow: none;
}
.match-score-ring.mid {
  border-color: var(--label);
  box-shadow: none;
}
.match-score-ring.low {
  border-color: var(--danger);
  box-shadow: none;
}
.match-score-value {
  font-size: 36px;
  font-weight: 800;
  color: var(--text-primary);
  line-height: 1;
}
.match-score-label {
  font-size: 12px;
  color: var(--label);
  margin-top: 4px;
  text-align: center;
  padding: 0 8px;
}
/* Aspect details (PRO) */
.match-details {
  margin-top: 20px;
}
.match-aspect {
  padding: 14px 0;
  border-top: 1px solid var(--border);
}
.match-aspect:first-child {
  border-top: none;
}
.match-aspect-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}
.match-aspect-icon {
  font-size: 20px;
}
.match-aspect-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}
.match-aspect-score {
  background: var(--text-primary);
  color: var(--bg-main);
  font-size: 12px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 8px;
}
.match-aspect-signs {
  font-size: 13px;
  color: var(--label);
  margin-bottom: 6px;
}
.match-aspect-text {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.55;
  opacity: 0.9;
}
/* Preview (FREE) */
.match-preview {
  margin-top: 16px;
  padding: 14px;
  background: var(--tile-bg);
  border-radius: 10px;
}
.match-preview p {
  font-size: 13px;
  color: var(--text-primary);
  line-height: 1.55;
}
/* Paywall block */
.match-paywall {
  text-align: center;
  padding: 20px 16px;
  margin-top: 12px;
  background: var(--tile-bg);
  border-radius: 12px;
  border: 1px dashed var(--label);
}
.match-paywall-lock {
  font-size: 32px;
  margin-bottom: 8px;
}
.match-paywall p {
  font-size: 13px;
  color: var(--label);
  margin-bottom: 12px;
}
.btn.primary.match-pro-btn {
  background: var(--label);
}
/* Actions */
.match-actions {
  padding: 0 0 20px;
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 18px;
}
/* Р Р†РІР‚СњР вЂљР Р†РІР‚СњР вЂљ Gender Selector (P9.1) Р Р†РІР‚СњР вЂљР Р†РІР‚СњР вЂљ */
/* Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™
   P9.7: Union Analysis Modal
   Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™ */
/* Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™
   P10.2 Р Р†Р вЂљРІР‚Сњ Dating Preference Selector
   Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™ */
/* РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’
   P11: Compact Profile Header
   РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’ */
/* РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’
   Source: dating.css
   РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’ */
.dating-notify-screen {
  padding-top: 12px;
}
.dating-notify-card {
  margin-top: 10px;
}
.dating-notify-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 2px;
  border-bottom: 1px solid var(--border);
}
.dating-notify-row:last-child { border-bottom: none; }
.dating-notify-copy { flex: 1; }
.dating-notify-title {
  color: var(--text-primary);
  font-size: 15px;
  font-weight: 700;
}
.dating-notify-sub {
  color: var(--text-secondary);
  font-size: 12px;
  margin-top: 3px;
}
.dating-switch {
  position: relative;
  width: 48px;
  height: 28px;
  flex-shrink: 0;
}
.dating-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.dating-switch-slider {
  position: absolute;
  inset: 0;
  border-radius: 999px;
  background: var(--border);
  transition: .2s;
}
.dating-switch-slider::before {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  left: 3px;
  top: 3px;
  border-radius: 50%;
  background: var(--switch-thumb);
  transition: .2s;
}
.dating-switch input:checked + .dating-switch-slider {
  background: var(--switch-active);
}
.dating-switch input:checked + .dating-switch-slider::before {
  transform: translateX(20px);
  background: var(--switch-thumb);
}
/* Р РЋР С”РЎР‚Р С•Р В»Р В»-Р С•Р В±Р В»Р В°РЎРѓРЎвЂљРЎРЉ Р С—Р С•РЎРѓР В»Р Вµ РЎвЂћР С‘Р С”РЎРѓР С‘РЎР‚Р С•Р Р†Р В°Р Р…Р Р…Р С•Р С–Р С• РЎвЂ¦Р ВµР Т‘Р ВµРЎР‚Р В° */
.scroll-content.d-scroll { padding-top: 0; padding-bottom: 0; }
/* Flex layout: card fills space between topbar and tab-bar */
#screen-dating .d-scroll {
  display: flex;
  flex-direction: column;
}
#dating-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}
/* РІвЂќР‚РІвЂќР‚ Р РЋРЎвЂљР В°РЎР‚РЎвЂ№Р в„– (legacy) РЎвЂљР С•Р С—Р В±Р В°РЎР‚ Р В·Р Р…Р В°Р С”Р С•Р СРЎРѓРЎвЂљР Р† РІвЂќР‚РІвЂќР‚ */
.dating-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}
/*  Р С™Р В°РЎР‚РЎвЂљР С•РЎвЂЎР С”Р В° (Twinby / Full-bleed style)  */
.d-card {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  border-radius: 0;
  overflow: hidden;
  background: var(--page-bg-open);
  margin-bottom: 0;
}
.d-card-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: var(--bg-main);
  overflow: hidden;
}
.d-card-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.d-card-photo-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 72px;
  color: var(--label);
}
/* Gradient overlay — top (city + goal readability) */
.d-card-photo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 35%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.55) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
/* Gradient overlay — bottom (name + pills readability) */
.d-card-photo::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 65%;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 100%);
  pointer-events: none;
  z-index: 1;
}
.d-card-score {
  position: absolute;
  top: 16px;
  right: 16px;
  background: #16A34A;
  color: #fff;
  border-radius: 20px;
  padding: 6px 14px;
  font-weight: 700;
  font-size: 16px;
  z-index: 2;
  opacity: 0;
  transition: opacity .3s;
  cursor: pointer;
}
.d-card-score.revealed { opacity: 1; }
.d-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 20px calc(104px + 24px + var(--space-3));
  z-index: 2;
}
.d-card-name {
  font-size: 28px;
  font-weight: 800;
  line-height: 1.2;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
.d-card-age {
  font-weight: 400;
  color: var(--text-primary);
  text-shadow: none;
  margin-left: 8px;
  font-size: 22px;
}
.d-card-city {
  font-size: 14px;
  color: var(--text-primary);
  text-shadow: none;
  margin-top: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.d-card-city::before {
  content: '';
  display: inline-block;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: var(--tile-bg);
}
.d-card-id {
  font-size: 13px;
  color: var(--text-primary);
  margin-top: 2px;
}
.d-card-bio {
  font-size: 14px;
  color: var(--text-secondary);
  margin-top: 8px;
  line-height: 1.45;
  word-break: break-word;
  overflow-wrap: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.d-card-hd {
  margin-top: 8px;
  font-size: 13px;
  color: var(--label);
  background: var(--border);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 8px;
}
/* ── Card overlay: top info (city + goal) ── */
.d-card-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 16px 20px;
  z-index: 2;
  color: #fff;
}
.d-card-top-city {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
.d-city-icon { flex-shrink: 0; opacity: 0.9; }
.d-card-top-goal {
  font-size: 13px;
  opacity: 0.8;
  margin-top: 3px;
  text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}
/* ── Card pills (capsules under name) ── */
.d-card-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}
.d-pill {
  font-size: 13px;
  line-height: 1;
  padding: 6px 12px;
  border-radius: 16px;
  white-space: nowrap;
}
[data-theme="dark"] .d-pill,
:root:not([data-theme]) .d-pill {
  background: rgba(255,255,255,0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #fff;
}
[data-theme="light"] .d-pill {
  background: rgba(255,255,255,0.85);
  color: #1a1a1a;
}
/* Ensure carousel bars + tap zones stay above gradient overlays */
.d-card-bars { z-index: 3; }
.d-card-tap-left,
.d-card-tap-right { z-index: 3; }
/*  Action Buttons (5-button Twinby layout)  */
.d-actions {
  position: absolute;
  bottom: calc(24px + var(--space-2));
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 0;
  z-index: 3;
}
.d-btn {
  flex: 0 0 auto;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  transition: transform .12s, box-shadow .2s;
  -webkit-tap-highlight-color: transparent;
}
.d-btn:active { transform: scale(0.88); }
/* Small side buttons */
.d-btn.d-btn-sm {
  width: 48px;
  height: 48px;
  background: var(--border);
  backdrop-filter: blur(8px);
  font-size: 18px;
}
/* Medium buttons (dislike, like) */
.d-btn.d-btn-md {
  width: 56px;
  height: 56px;
  font-size: 22px;
}
.d-btn.skip {
  background: var(--button-bg);
  color: var(--text-primary);
  border: 1.5px solid var(--button-border);
}
.d-btn.like {
  background: var(--button-bg);
  color: var(--danger);
  border: 1.5px solid var(--button-border);
}
.d-btn.fire {

/* ── Super Like Button (Fire) Animation ── */
.d-btn.fire {
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
}
.d-btn.fire:active {
  transform: scale(0.95);
  box-shadow: 0 0 15px rgba(255, 140, 0, 0.4);
}
.d-btn.fire .superlike-icon {
  transition: transform 0.3s ease;
  transform-origin: bottom center;
}
.d-btn.fire:active .superlike-icon {
  transform: scale(1.05) rotate(-3deg);
}
.d-btn.fire.animating .superlike-icon {
  animation: fire-pulse 0.5s ease-out;
}
@keyframes fire-pulse {
  0% { transform: scale(1) rotate(0deg); }
  30% { transform: scale(1.15) rotate(3deg); }
  60% { transform: scale(1.05) rotate(-2deg); }
  100% { transform: scale(1) rotate(0deg); }
}

  background: var(--button-bg);
  color: var(--danger);
  border: 1.5px solid var(--button-border);
}
/* Center compat button (large, green) */
.d-btn.d-btn-yin {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  border: none;
  background: transparent;
  padding: 0;
  overflow: hidden;
}
.d-btn.d-btn-yin img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  pointer-events: none;
}
.d-btn.d-btn-yin:active {
  transform: scale(0.9);
}
/* Back button */
.d-btn.back {
  background: var(--button-bg);
  color: var(--text-primary);
  border: 1.5px solid var(--button-border);
}
/* РІвЂќР‚РІвЂќР‚ Р РЋР ВµРЎвЂљР С”Р В° (Grid) РІвЂќР‚РІвЂќР‚ */
.d-grid-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}
.d-grid-header h3 { margin: 0; font-size: 15px; }
.d-grid-back {
  background: none;
  border: none;
  color: var(--text-primary);
  font-size: 13px;
  cursor: pointer;
}
.d-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.d-grid-item {
  background: var(--tile-bg);
  border-radius: 12px;
  overflow: hidden;
  cursor: pointer;
  transition: transform .12s;
}
.d-grid-item:active { transform: scale(0.97); }
.d-grid-photo {
  position: relative;
  aspect-ratio: 1;
  background: var(--bg-main);
  overflow: hidden;
}
.d-grid-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.d-grid-photo-ph {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: var(--label);
}
.d-grid-score {
  position: absolute;
  bottom: 4px;
  right: 4px;
  background: var(--bg-main);
  border-radius: 10px;
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 700;
}
.d-grid-info {
  padding: 6px 6px 8px;
  text-align: center;
}
.d-grid-name {
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.d-grid-age {
  font-size: 11px;
  color: var(--label);
}
/* P-info line (Twinby compact) */
/* Р С™Р В°РЎР‚РЎвЂљР С•РЎвЂЎР С”Р В° РЎРѓР С•Р Р†Р СР ВµРЎРѓРЎвЂљР С‘Р СР С•РЎРѓРЎвЂљР С‘ */
/* Sections */
/* Р С™Р В°Р Р…Р В°Р В»РЎвЂ№ */
.cd-ch-tag.em     { background: var(--tile-bg); color: var(--label); }
.cd-ch-tag.comp   { background: var(--tile-bg); color: var(--danger); }
.cd-ch-tag.new    { background: var(--tile-bg); color: var(--switch-active); }
/* РІвЂќР‚РІвЂќР‚ Channel cards (expandable) РІвЂќР‚РІвЂќР‚ */
.cd-ch-card {
  background: var(--tile-bg);
  border-radius: 10px;
  margin-bottom: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  transition: border-color .2s;
}
.cd-ch-card.open { border-color: var(--text-primary); }
.cd-ch-card-head {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  cursor: pointer;
  font-size: 13px;
  line-height: 1.4;
}
.cd-zone-card.open .cd-ch-arrow,
.cd-chakra-row.open .cd-ch-arrow { transform: rotate(90deg); }
.cd-ch-card-body {
  display: none;
  padding: 0 12px 10px;
  font-size: 13px;
  line-height: 1.5;
}
.cd-ch-card.open .cd-ch-card-body {
  display: block;
}
.cd-ch-card.open .cd-ch-arrow {
  transform: rotate(90deg);
}
.cd-zone-card.open .cd-zone-body,
.cd-chakra-row.open .cd-chakra-body { display: block; }
/* РІвЂќР‚РІвЂќР‚ Zone cards (Matrix pair zones) РІвЂќР‚РІвЂќР‚ */
.cd-zone-card {
  background: var(--tile-bg);
  border-radius: 10px;
  margin-bottom: 6px;
  overflow: hidden;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: border-color .2s;
}
.cd-zone-card.open { border-color: var(--text-primary); }
/* РІвЂќР‚РІвЂќР‚ Chakra rows (expandable) РІвЂќР‚РІвЂќР‚ */
.cd-chakra-row.open { border-color: var(--text-primary); }
/* Sync bar */
/* Matrix pair in compatibility */
.cd-matrix-card {
  background: var(--bg-main);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 8px;
}
.cd-matrix-card .matrix-classic-svg {
  width: 100%;
  height: auto;
  border-radius: 10px;
}/* РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’
   P12+: Matches (Р РЋР С‘Р СР С—Р В°РЎвЂљР С‘Р С‘) РІР‚вЂќ tabs + grid
   РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’ */
/* P25: calc-compat button on match cards */
/* JS handles scroll + resize via visualViewport API */
/* РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’
   Score Breakdown (collapsible)
   РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’РІвЂўС’ */
/* P24: "calculate compat" pulsing button */
.d-card-score.calc-btn {
  color: var(--text-primary);
  animation: pulse-glow 2s infinite;
  cursor: pointer;
  font-size: 20px;
}
.d-grid-score.calc-hint {
  font-size: 14px;
}
/* P30: Calc compat button on card */
.d-card-score.d-calc-btn {
  cursor: pointer;
  background: var(--tile-bg);
  backdrop-filter: blur(10px);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 16px;
  border-radius: 20px;
  color: var(--text-primary);
  transition: transform .15s, background .15s;
  opacity: 1;
  -webkit-tap-highlight-color: transparent;
}
.d-card-score.d-calc-btn:active {
  transform: scale(0.93);
  background: var(--tile-bg);
}
/* Toggle checked РІР‚вЂќ green bg, white knob */
/* Toggle unchecked РІР‚вЂќ ensure thumb visible in light theme */
/* Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™ v115: Dating Card Photo Carousel Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™Р Р†РІР‚СћРЎвЂ™ */
.d-card-photos {
  position: absolute;
  inset: 0;
  display: flex;
  transition: transform 0.3s ease;
}
.d-card-photos img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  flex-shrink: 0;
}
.d-card-bars {
  position: absolute;
  top: 8px;
  left: 8px;
  right: 8px;
  display: flex;
  gap: 4px;
  z-index: 4;
}
.d-card-bar {
  flex: 1;
  height: 3px;
  border-radius: 2px;
  background: rgba(255,255,255,0.25);
  transition: background 0.2s;
}
.d-card-bar.active {
  background: #fff;
}
[data-theme="light"] .d-card-bar {
  background: rgba(0,0,0,0.2);
}
[data-theme="light"] .d-card-bar.active {
  background: #000;
}
/* Tap zones for carousel navigation */
.d-card-tap-left,
.d-card-tap-right {
  position: absolute;
  top: 0;
  bottom: 40%;
  z-index: 2;
  background: transparent;
  cursor: pointer;
}
.d-card-tap-left { left: 0; width: 40%; }
.d-card-tap-right { right: 0; width: 40%; }
/* =======================================================
   ATMA - Filters (screen-page mode, NOT overlay)
   Filters live inside #screen-filters .scroll-content
   ======================================================= */
/* -- Filter pill button in dating topbar -- */
.d-filter-pill {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 14px; border-radius: 20px;
  border: 1px solid var(--border); background: transparent;
  color: var(--button-text-pressed); font-size: 14px; font-weight: 500;
  cursor: pointer; -webkit-tap-highlight-color: transparent;
  transition: background .15s, border-color .15s; white-space: nowrap;
}
.d-filter-pill:active { background: var(--tile-bg); }
.d-filter-pill.has-filters { border-color: var(--border); color: var(--text-primary); }
.d-filter-pill svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ═══════════════════════════════════════════════════════════════
   P-FIX: FILTERS — from unloaded filters.css
   ═══════════════════════════════════════════════════════════════ */

/* Sections */
.fs-section { margin-bottom: 24px; }
.fs-section-title {
  font-size: 14px; font-weight: 600; color: var(--text-secondary);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 12px;
}

/* Gender row */
.fs-gender-row { display: flex; gap: 8px; }
.fs-gender-btn {
  flex: 1; padding: 12px 0; border-radius: 999px;
  border: 1px solid var(--border); background: transparent;
  color: var(--button-text-pressed); font-size: 14px; font-weight: 500;
  cursor: pointer; text-align: center;
  transition: background .15s, border-color .15s, color .15s;
}

/* Range sliders — accent track, bordered thumb */
.fs-range-wrap { padding: 4px 0; }
.fs-range-header { display: flex; justify-content: space-between; margin-bottom: 8px; }
.fs-range-label { font-size: 14px; color: var(--text-primary); }
.fs-range-value { font-size: 14px; font-weight: 600; color: var(--text-primary); }

.fs-dual-track {
  position: relative; height: 36px; display: flex; align-items: center;
}
.fs-dual-track .fs-track-bg {
  position: absolute; left: 0; right: 0; height: 4px; border-radius: 2px;
  background: var(--border); z-index: 0;
}
.fs-dual-track .fs-track-fill {
  position: absolute; height: 4px; border-radius: 2px;
  background: var(--switch-active); pointer-events: none; z-index: 1;
}
.fs-dual-track input[type="range"],
.fs-range {
  width: 100%; height: 36px; -webkit-appearance: none; appearance: none;
  background: transparent; margin: 0;
}
.fs-dual-track input[type="range"] { position: absolute; pointer-events: none; z-index: 2; }
.fs-range { outline: none; }

.fs-dual-track input[type="range"]::-webkit-slider-runnable-track {
  height: 0; background: transparent;
}
.fs-range::-webkit-slider-runnable-track {
  height: 4px; border-radius: 999px; background: var(--border);
}
.fs-dual-track input[type="range"]::-moz-range-track {
  height: 0; background: transparent;
}
.fs-range::-moz-range-track {
  height: 4px; border-radius: 999px; background: var(--border);
}

.fs-dual-track input[type="range"]::-webkit-slider-thumb,
.fs-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none; position: relative; z-index: 3;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3); cursor: pointer; margin-top: -9px;
}
.fs-dual-track input[type="range"]::-moz-range-thumb,
.fs-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%; position: relative; z-index: 3;
  background: #fff; border: 2.5px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3); cursor: pointer;
}
.fs-dual-track input[type="range"]::-webkit-slider-thumb { pointer-events: all; }
.fs-dual-track input[type="range"]::-moz-range-thumb { pointer-events: all; }

/* Check grid (systems) */
.fs-check-grid { display: flex; flex-wrap: wrap; gap: 8px; }
.fs-check-item {
  display: flex; align-items: center; gap: 6px;
  padding: 10px 18px; border-radius: 999px;
  border: 1px solid var(--border); background: transparent;
  color: var(--button-text-pressed); font-size: 14px; font-weight: 500; cursor: pointer;
  transition: background .15s, border-color .15s, color .15s;
  -webkit-tap-highlight-color: transparent; user-select: none;
}


/* ═══════════════════════════════════════════════════════════════
   P-FIX: DATING CARD — full-height Tinder style
   ═══════════════════════════════════════════════════════════════ */

/* Card fills the available space */
#suggestions-area {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
}

/* Actions bar pinned to bottom of card */

/* d-card-body: reduce bottom padding so content doesn't float */

/* ═══════════════════════════════════════════════════════════════
   P-FIX: COMPAT DETAIL — from unloaded dating.css
   ═══════════════════════════════════════════════════════════════ */

/* Header */
.cd-header { text-align: center; margin-bottom: 16px; }
.cd-header h2 { font-size: 20px; font-weight: 800; margin: 8px 0 4px; }
.cd-subtitle { font-size: 13px; color: var(--text-secondary); }

/* System tabs (TABS-SCROLL-2: wrap + compact) */
.sys-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin-bottom: 12px;
  padding-bottom: 4px;
}
.sys-tabs::-webkit-scrollbar { display: none; }
.sys-tab {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--button-text-pressed);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: background .15s, color .15s, border-color .15s;
}
.sys-tab.active {
  background: transparent; color: var(--text-primary); border-color: var(--border);
}
.sys-panel { display: none; }
.sys-panel.active { display: block; }

/* Stats grid */
.cd-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px;
  margin: 16px 0;
}
.cd-stat {
  text-align: center; padding: 12px 4px;
  background: var(--tile-bg); border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border);
}
.cd-stat-num { display: block; font-size: 20px; font-weight: 700; }
.cd-stat-label { display: block; font-size: 11px; color: var(--text-secondary); margin-top: 2px; }

/* Legend */
.cd-legend {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
  font-size: 12px; color: var(--text-secondary); margin: 12px 0;
}
.cd-legend-dot {
  display: inline-block; width: 10px; height: 10px; border-radius: 50%;
  margin-right: 4px; vertical-align: middle;
}

/* Types row */
.cd-types {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  margin: 16px 0;
}
.cd-type-box {
  text-align: center; padding: 12px;
  background: var(--tile-bg); border-radius: var(--radius-sm, 8px);
  border: 1px solid var(--border); flex: 1;
}
.cd-type-name { font-size: 16px; font-weight: 700; }
.cd-type-label { font-size: 12px; color: var(--text-secondary); margin-top: 4px; }
.cd-type-connector { font-size: 20px; }

/* Sync bar */
.cd-sync-bar {
  height: 8px; border-radius: 8px; background: var(--border);
  overflow: hidden; margin: 4px 0;
}
.cd-sync-fill { height: 100%; border-radius: 8px; }

/* Section */
.cd-section { margin: 16px 0; }
.cd-section h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.cd-item { font-size: 14px; padding: 6px 0; line-height: 1.5; }

/* Verdict */
.cd-verdict { margin-top: 16px; }
.cd-verdict-item { padding: 4px 0; font-size: 14px; line-height: 1.5; }

/* Bodygraph in compat */
.cd-bodygraph { margin: 16px 0; text-align: center; }
.cd-bodygraph h4 { margin-bottom: 8px; }

/* Compat page wrapper */
#screen-compat .scroll-content,
#screen-compat-detail .scroll-content {
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
  overflow-x: hidden;
}

/* Partner profile compat card */
.p-compat-card {
  padding: 16px;
  background: var(--tile-bg);
  border-radius: var(--radius, 14px);
  border: 1px solid var(--border);
  margin-bottom: 14px;
  margin-top: 16px;
  max-width: 100%;
  overflow-x: hidden;
}
.p-compat-card h3 { margin: 0 0 10px; font-size: 16px; }
.p-compat-score-row {
  display: flex; align-items: center; gap: 12px; margin-bottom: 8px;
  min-width: 0;
  max-width: 100%;
}
.p-compat-pct { font-size: 24px; font-weight: 800; flex-shrink: 0; white-space: nowrap; }
.p-compat-bar {
  flex: 1; height: 8px; border-radius: 8px; background: var(--border); overflow: hidden;
}
.p-compat-bar-fill { height: 100%; border-radius: 8px; }
.p-compat-highlights { margin-top: 8px; }
.p-compat-item { font-size: 13px; padding: 2px 0; }

/* Partner photo */
.p-photo-wrap { margin-bottom: 12px; }
.p-photo-wrap img { width: 100%; border-radius: var(--radius, 14px); display: block; }
.p-photo-ph { width: 100%; aspect-ratio: 3/4; display: flex; align-items: center; justify-content: center; font-size: 64px; background: var(--tile-bg); border-radius: var(--radius, 14px); }
.p-info-line { font-size: 14px; line-height: 1.5; margin-bottom: 4px; }
.p-id { font-size: 13px; color: var(--text-secondary); margin-bottom: 8px; }
.p-write-btn { margin-bottom: 12px; width: 100%; }

/* ═══════════════════════════════════════════════════════════════
   P-FIX: CHAT LIST — from unloaded dating.css
   ═══════════════════════════════════════════════════════════════ */
.cl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 4px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: background .15s;
}
.cl-item:active { background: var(--tile-bg); }
.cl-unread { background: var(--tile-bg); }

.cl-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  background: var(--tile-bg);
}
.cl-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cl-noimg {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  font-size: 24px;
  color: var(--text-secondary);
}

.cl-body { flex: 1; min-width: 0; }

.cl-top-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 8px;
}
.cl-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cl-time {
  font-size: 12px;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.cl-bottom-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 3px;
}
.cl-preview {
  font-size: 13px;
  color: var(--text-secondary);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.cl-unread .cl-preview { color: var(--text-primary); font-weight: 500; }

.cl-badge {
  flex-shrink: 0;
  min-width: 22px;
  height: 22px;
  border-radius: 11px;
  background: var(--switch-active);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 6px;
}

/* ═══════════════════════════════════════════════════════════════
   P-FIX: Responsive — filters + compat
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 360px) {
  .cd-stats { grid-template-columns: repeat(2, 1fr); }
  .sys-tab { font-size: 11px; padding: 5px 8px; }
  .fs-chip, .fs-pill, .fs-check-item { padding: 8px 14px; font-size: 13px; }
}

/* ── Step 10: Compat/Report overflow containment (TABS-SCROLL fix) ── */
#compat-detail-content {
  max-width: 100%;
  overflow-x: hidden;
}
/* Allow .sys-tabs to scroll horizontally, clip everything else */
#compat-detail-content > *:not(.sys-tabs) {
  max-width: 100%;
  overflow-x: hidden;
}
#compat-detail-content > .sys-tabs {
  max-width: 100%;
  overflow-x: auto;
}
.cd-section {
  max-width: 100%;
  overflow-x: hidden;
}
.cd-sync-bar {
  max-width: 100%;
  overflow: hidden;
}
/* Inline flex rows inside compat: force shrink */
#compat-detail-content [style*="display:flex"] {
  max-width: 100%;
  flex-wrap: nowrap;
  min-width: 0;
}
#compat-detail-content [style*="display:flex"] > span {
  flex-shrink: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
/* Override fixed widths for compat system labels */
#compat-detail-content [style*="width:140px"] {
  width: auto !important;
  max-width: 100px;
  flex: 0 1 100px;
}
#compat-detail-content [style*="width:100px"] {
  width: auto !important;
  max-width: 80px;
  flex: 0 1 80px;
}
#compat-detail-content [style*="width:40px"] {
  width: auto !important;
  max-width: 40px;
  flex: 0 0 40px;
}

/* ── Step 13: Profile Actions ── */
.profile-actions {
  display: flex;
  gap: 12px;
  width: 100%;
  margin-top: 12px;
}
.profile-actions .btn {
  flex: 1;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ── Step 13: HD Chart / SVG containment ── */
.cd-bodygraph {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  text-align: center;
}
.cd-bodygraph svg {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
}
.cd-bodygraph img {
  width: 100%;
  max-width: 320px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* Matrix pair cards responsive */
.cd-matrix-pair {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}
.cd-matrix-card {
  max-width: 100%;
  overflow: hidden;
}
.cd-matrix-card svg {
  width: 100%;
  max-width: 280px;
  height: auto;
  display: block;
  margin: 0 auto;
}

/* ── Step 13: Numerology bars fix ── */
.cd-sync-bar {
  width: 100%;
  max-width: 100%;
  height: 8px;
  border-radius: 8px;
  background: var(--border);
  overflow: hidden;
  flex-shrink: 1;
}
.cd-sync-fill {
  height: 100%;
  border-radius: 8px;
  max-width: 100%;
}

/* ── Step 13: Astrology list ── */
.cd-item {
  max-width: 100%;
  overflow-wrap: break-word;
  word-break: break-word;
}

/* ── Step 13: System screen containment ── */
.cd-section {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  overflow-wrap: break-word;
}
.cd-section > * {
  max-width: 100%;
}

/* ── Step 13: Compat tabs (TABS-SCROLL-2: wrap + scroll fallback) ── */
.sys-tabs {
  display: flex;
  flex-wrap: wrap;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  gap: 6px;
  padding: 4px 0;
}
.sys-tabs::-webkit-scrollbar {
  display: none;
}
.sys-tab {
  flex: 0 0 auto;
  white-space: nowrap;
  font-size: 12px;
  padding: 6px 10px;
}

/* Synthesis Mechanic */
.d-btn-yin-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
}
.d-synthesis-btn {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 8px 14px;
  color: #fff;
  font-weight: 600;
  font-size: 13px;
  white-space: nowrap;
  cursor: pointer;
  z-index: 4;
  transition: all 0.3s ease;
}
.d-synthesis-result {
  position: absolute;
  bottom: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: 20px;
  padding: 6px 14px;
  color: #fff;
  font-weight: 700;
  font-size: 24px;
  white-space: nowrap;
  z-index: 4;
  animation: synth-pop 0.3s ease-out forwards;
}
@keyframes synth-pop {
  0% { opacity: 0; transform: translateX(-50%) scale(0.9); }
  100% { opacity: 1; transform: translateX(-50%) scale(1); }
}
.yin-pulse {
  animation: yin-pulse-anim 0.8s ease-in-out;
}
@keyframes yin-pulse-anim {
  0% { transform: scale(1); }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); }
}


/* -- Action feedback flash -- */
.d-action-feedback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.5);
  font-size: 64px;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
  animation: d-feedback-pop 0.6s ease forwards;
}
@keyframes d-feedback-pop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(0.5); }
  30%  { opacity: 1; transform: translate(-50%, -50%) scale(1.3); }
  100% { opacity: 0; transform: translate(-50%, -50%) scale(1.6); }
}

/* -- Card fly-out transition -- */
.d-card {
  position: relative;
  will-change: transform, opacity;
}

/* ═══════════════════════════════════════════════════════════════
   FILTERS V4 — Dynamic, schema-driven, zero-emoji
   ═══════════════════════════════════════════════════════════════ */

/* ── Section groups ── */
.fs-group {
  margin-bottom: 8px;
}
.fs-group-title {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-secondary);
  padding: 12px 0 6px;
  opacity: 0.7;
}

/* ── Gender row ── */
.fs-gender-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* ── Pills (systems, zodiac, education…) ── */
.fs-pills-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.fs-pill {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: transparent;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: background .18s, border-color .18s, color .18s;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}
.fs-pill:active { transform: scale(0.95); }
.fs-pill.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  font-weight: 600;
}

/* ── Single-range track with themed fill ── */
.fs-single-track {
  position: relative;
  height: 36px;
  display: flex;
  align-items: center;
}
.fs-single-track .fs-track-bg {
  position: absolute; left: 0; right: 0;
  height: 4px; border-radius: 2px;
  background: var(--border);
  z-index: 0;
}
.fs-track-fill-single {
  position: absolute; left: 0;
  height: 4px; border-radius: 2px;
  width: 0;
  z-index: 1;
  pointer-events: none;
  transition: width .05s linear;
}
/* Dark = purple, Light = green */
:root .fs-track-fill-single,
[data-theme="dark"] .fs-track-fill-single {
  background: #7c3aed;
}
[data-theme="light"] .fs-track-fill-single {
  background: #22c55e;
}
.fs-single-track .fs-range {
  position: relative;
  z-index: 2;
  width: 100%;
  height: 36px;
  -webkit-appearance: none;
  appearance: none;
  background: transparent;
  margin: 0;
  outline: none;
}
.fs-single-track .fs-range::-webkit-slider-runnable-track {
  height: 0; background: transparent;
}
.fs-single-track .fs-range::-moz-range-track {
  height: 0; background: transparent;
}
.fs-single-track .fs-range::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  cursor: pointer;
  margin-top: -9px;
  position: relative; z-index: 3;
}
.fs-single-track .fs-range::-moz-range-thumb {
  width: 22px; height: 22px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--border);
  box-shadow: 0 1px 4px rgba(0,0,0,0.3);
  cursor: pointer;
}

/* ── Collapsible blocks ── */
.fs-collapse {
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
}
.fs-collapse-toggle {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 14px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  font: inherit;
  color: var(--text-primary);
  gap: 8px;
}
.fs-collapse-title {
  font-size: 15px;
  font-weight: 600;
  flex: 0 0 auto;
}
.fs-collapse-chosen {
  flex: 1 1 auto;
  font-size: 13px;
  font-weight: 500;
  color: var(--accent);
  text-align: right;
  margin-right: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fs-collapse-arrow {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-secondary);
  transition: transform .2s;
  flex: 0 0 auto;
  transform: rotate(90deg);
}
.fs-collapse-toggle.open .fs-collapse-arrow {
  transform: rotate(270deg);
}
.fs-collapse-body {
  border-top: 1px solid var(--border);
}
.fs-check-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  cursor: pointer;
  transition: background .12s;
  -webkit-tap-highlight-color: transparent;
}
.fs-check-row:not(:last-child) {
  border-bottom: 1px solid var(--border);
}
.fs-check-row:active {
  background: var(--tile-bg);
}
.fs-check-label {
  font-size: 15px;
  font-weight: 500;
  color: var(--text-primary);
}
.fs-check-box {
  width: 22px; height: 22px;
  border-radius: 6px;
  border: 2px solid var(--border);
  background: transparent;
  position: relative;
  flex-shrink: 0;
  transition: background .15s, border-color .15s;
  cursor: pointer;
}
.fs-check-box.checked {
  background: var(--accent);
  border-color: var(--accent);
}
.fs-check-box.checked::after {
  content: '';
  position: absolute;
  left: 5px; top: 2px;
  width: 6px; height: 11px;
  border: solid #fff;
  border-width: 0 2.5px 2.5px 0;
  transform: rotate(45deg);
}

/* ── Pill count badge ── */
.fs-pill-count {
  min-width: 18px;
  height: 18px;
  border-radius: 9px;
  background: var(--accent);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 4px;
}

/* ── Responsive ── */
@media (max-width: 380px) {
  .fs-pill { padding: 8px 14px; font-size: 13px; }
  .fs-collapse-toggle { padding: 12px 14px; }
  .fs-check-row { padding: 10px 14px; }
}
