/* ═══════════════════════════════════════════════════════════════
   SonoHub — Match Page Styles
   Tinder-style swipe interface for musicians
   ═══════════════════════════════════════════════════════════════ */

/* ─── Page Layout ───────────────────────────────────────────────── */
body {
  background: var(--bg-page);
  overflow-x: hidden;
}

.match-page {
  min-height: 100vh;
  background: var(--bg-page);
}

/* ── Section color override for match module */
.match-page { --section-color: var(--pink-500); --section-color-bg: rgba(236,72,153,0.10); }

/* ─── Match Layout: sidebar + main ─────────────────────────────── */
.match-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 0;
  margin-top: var(--header-h);
  min-height: calc(100vh - var(--header-h));
}

/* ─── Filter Sidebar ────────────────────────────────────────────── */
.match-sidebar {
  display: block;
  background: var(--bg-dark);
  border-right: 1px solid var(--border-dark);
  padding: 1.5rem 1.25rem 2rem;
  overflow-y: auto;
  position: sticky;
  top: var(--header-h);
  height: calc(100vh - var(--header-h));
}

.match-sidebar-header {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1.5rem;
}

.match-sidebar-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dark);
}

.match-sidebar-title i {
  color: var(--pink-400);
  font-size: 1rem;
}

.filter-section {
  margin-bottom: 1.25rem;
}

.filter-section-label {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  color: var(--slate-500);
  margin-bottom: 0.5rem;
  display: block;
}

.filter-select {
  width: 100%;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--border-dark);
  border-radius: var(--radius-sm);
  padding: 0.55rem 2rem 0.55rem 0.75rem;
  font-size: 0.82rem;
  color: var(--text-dark);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%2394a3b8' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 0.65rem center;
  transition: all var(--trans-fast);
  font-family: inherit;
}

.filter-select:focus {
  outline: none;
  border-color: var(--pink-500);
  box-shadow: 0 0 0 3px rgba(236,72,153,0.15);
}

.filter-select option {
  background: var(--slate-800);
  color: var(--text-dark);
}

/* Distance filter */
.filter-distance-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.filter-range {
  flex: 1;
  height: 5px;
  -webkit-appearance: none;
  appearance: none;
  background: linear-gradient(90deg, rgba(139,92,246,0.2) 0%, rgba(139,92,246,0.2) 100%);
  border-radius: 5px;
  outline: none;
  cursor: pointer;
}

.filter-range::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(139,92,246,0.3);
  transition: all 0.2s;
}

.filter-range::-webkit-slider-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(139,92,246,0.4);
}

.filter-range::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  border-radius: 50%;
  border: none;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(139,92,246,0.3);
  transition: all 0.2s;
}

.filter-range::-moz-range-thumb:hover {
  transform: scale(1.15);
  box-shadow: 0 4px 12px rgba(139,92,246,0.4);
}

.filter-distance-value {
  font-size: 0.8rem;
  color: #c4b5fd;
  font-weight: 600;
  min-width: 50px;
  text-align: right;
}

/* Checkboxes */
.filter-checkboxes {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  cursor: pointer;
  font-size: 0.85rem;
  color: #e2e8f0;
  transition: color 0.2s;
}

.filter-checkbox:hover {
  color: #f1f5f9;
}

.filter-checkbox input[type="checkbox"] {
  width: 16px;
  height: 16px;
  cursor: pointer;
  accent-color: #8b5cf6;
}

.filter-divider {
  height: 1px;
  background: var(--border-dark);
  margin: 1.25rem 0;
}

.btn-apply-filters {
  width: 100%;
  padding: 0.65rem;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--trans-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  box-shadow: 0 2px 8px rgba(236,72,153,0.3);
  font-family: inherit;
}

.btn-apply-filters:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(236,72,153,0.4);
}

/* ─── Main Swipe Area ───────────────────────────────────────────── */
.match-main {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 2.5rem 1.5rem 6rem;
  min-height: calc(100vh - var(--header-h));
  position: relative;
}

/* ─── Card Stack ────────────────────────────────────────────────── */
.card-stack-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
  width: 100%;
  max-width: 400px;
}

.card-stack {
  position: relative;
  width: 100%;
  max-width: 380px;
  height: auto;
  min-height: 480px;
}

/* Desktop: fixed width for cards */
@media (min-width: 900px) {
  .card-stack {
    width: 400px;
    max-width: 400px;
    min-width: 400px;
  }
}

/* ─── Swipe Card ────────────────────────────────────────────────── */
.swipe-card {
  position: absolute;
  inset: 0;
  background: var(--bg-card);
  border-radius: 20px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  user-select: none;
  touch-action: manipulation;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  will-change: transform;
  cursor: grab;
}

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

/* ─── Card Photo ────────────────────────────────────────────────── */
.swipe-card__photo {
  aspect-ratio: 4 / 3;
  width: 100%;
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.swipe-card__photo-bg {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: -0.02em;
  pointer-events: none;
}

/* Avatar color palette (matches swipe.js hash) */
.avatar-color-0 { background: linear-gradient(135deg, #7c3aed, #ec4899); }
.avatar-color-1 { background: linear-gradient(135deg, #0891b2, #6d28d9); }
.avatar-color-2 { background: linear-gradient(135deg, #059669, #0891b2); }
.avatar-color-3 { background: linear-gradient(135deg, #d97706, #dc2626); }
.avatar-color-4 { background: linear-gradient(135deg, #db2777, #7c3aed); }
.avatar-color-5 { background: linear-gradient(135deg, #0e7490, #059669); }
.avatar-color-6 { background: linear-gradient(135deg, #9333ea, #06b6d4); }
.avatar-color-7 { background: linear-gradient(135deg, #b45309, #84cc16); }

/* Photo gradient overlay for info readability */
.swipe-card__photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, transparent 50%, rgba(0,0,0,0.25) 100%);
  pointer-events: none;
}

/* ─── Card Info ─────────────────────────────────────────────────── */
.swipe-card__info {
  padding: 1rem 1.1rem 1.1rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  flex: 1;
}

.swipe-card__name-row {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.swipe-card__name {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.swipe-card__age {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--text-muted);
}

.swipe-card__location {
  font-size: 0.78rem;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 0.3rem;
}

.swipe-card__location i {
  color: var(--pink-500);
  font-size: 0.72rem;
}

.swipe-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.1rem;
}

.swipe-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0.65rem;
  border-radius: 99px;
  font-size: 0.7rem;
  font-weight: 600;
  white-space: nowrap;
  line-height: 1;
}

.swipe-card__badge--instrument {
  background: rgba(139,92,246,0.12);
  color: var(--violet-600);
}

.swipe-card__badge--genre {
  background: rgba(6,182,212,0.12);
  color: var(--cyan-600);
}

.swipe-card__badge--seeking {
  background: rgba(236,72,153,0.12);
  color: var(--pink-600);
}

.swipe-card__badge--level-profesional {
  background: rgba(139,92,246,0.12);
  color: var(--violet-600);
}

.swipe-card__badge--level-intermedio {
  background: rgba(59,130,246,0.12);
  color: var(--blue-600);
}

.swipe-card__badge--level-amateur {
  background: var(--slate-100);
  color: var(--slate-600);
}

.swipe-card__seeking-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.swipe-card__seeking-label {
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.swipe-card__bio {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.swipe-card__audio-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.7rem;
  color: var(--green-600);
  background: rgba(34,197,94,0.1);
  border-radius: 99px;
  padding: 0.15rem 0.55rem;
  font-weight: 600;
}

/* ─── Photo Gallery ────────────────────────────────────────────────── */
.swipe-gallery {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  overflow: hidden;
  flex-shrink: 0;
}

.swipe-gallery-wrap {
  display: flex;
  width: 100%;
  height: 100%;
  scroll-behavior: smooth;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
}

.swipe-gallery-slide {
  min-width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  scroll-snap-align: start;
}

.swipe-gallery-nav {
  position: absolute;
  bottom: 0.5rem;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 0.5rem;
  z-index: 3;
}

.swipe-gallery-counter {
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.3rem 0.6rem;
  border-radius: 99px;
  backdrop-filter: blur(8px);
}

.swipe-gallery-btn {
  background: rgba(0,0,0,0.5);
  border: none;
  color: #fff;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  transition: all 0.2s;
  backdrop-filter: blur(8px);
}

.swipe-gallery-btn:hover {
  background: rgba(0,0,0,0.8);
  transform: scale(1.1);
}

/* ─── Audio Player ────────────────────────────────────────────────── */
.swipe-audio-section {
  padding: 0.6rem 0.85rem;
  background: rgba(96,165,250,0.08);
  border-top: 1px solid rgba(96,165,250,0.15);
  flex-shrink: 0;
}

.swipe-audio-header {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.76rem;
  font-weight: 600;
  color: #3b82f6;
  margin-bottom: 0.5rem;
}

.swipe-audio-player {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.swipe-audio-el {
  width: 100%;
  height: 28px;
  border-radius: 6px;
  --webkit-appearance: none;
}

.swipe-audio-el::-webkit-media-controls-panel {
  background-color: rgba(59,130,246,0.1);
}

.swipe-audio-info {
  font-size: 0.7rem;
  color: #64748b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ─── Badges (metadata on card) ─────────────────────────────────── */
.swipe-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem 0;
  flex-shrink: 0;
}

.swipe-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 99px;
  padding: 0.35rem 0.6rem;
  white-space: nowrap;
  transition: all 0.2s;
}

.badge-verified {
  background: rgba(34,197,94,0.15);
  color: #22c55e;
  border: 1px solid rgba(34,197,94,0.3);
}

.badge-verified:hover {
  background: rgba(34,197,94,0.25);
  border-color: rgba(34,197,94,0.5);
}

.badge-availability {
  background: rgba(96,165,250,0.15);
  color: #3b82f6;
  border: 1px solid rgba(96,165,250,0.3);
}

.badge-availability:hover {
  background: rgba(96,165,250,0.25);
  border-color: rgba(96,165,250,0.5);
}

.badge-instrument {
  background: rgba(236,72,153,0.15);
  color: #ec4899;
  border: 1px solid rgba(236,72,153,0.3);
}

.badge-instrument:hover {
  background: rgba(236,72,153,0.25);
  border-color: rgba(236,72,153,0.5);
}

/* ─── Swipe Labels (indicators) ─────────────────────────────────── */
.swipe-label {
  position: absolute;
  top: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 50%;
  font-size: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.08s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 3px solid;
  width: 58px; height: 58px;
}

.like-label {
  right: 1rem;
  color: var(--green-500);
  border-color: var(--green-500);
  transform: rotate(8deg);
}

.pass-label {
  left: 1rem;
  color: var(--red-500);
  border-color: var(--red-500);
  transform: rotate(-8deg);
}

.super-label {
  left: 50%;
  transform: translateX(-50%) rotate(0deg);
  color: var(--blue-500);
  border-color: var(--blue-500);
  bottom: auto;
  top: 1.1rem;
}

/* ─── Action Buttons ────────────────────────────────────────────── */
.action-buttons {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.1rem;
  margin-top: 0.5rem;
}

.action-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  border: 2.5px solid;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all var(--trans-fast);
  background: var(--bg-card);
  box-shadow: var(--shadow);
  flex-shrink: 0;
  font-family: inherit;
}

.action-btn:hover {
  transform: scale(1.12);
  box-shadow: var(--shadow-lg);
}

.action-btn:active {
  transform: scale(0.95);
}

.btn-pass {
  border-color: var(--red-400);
  color: var(--red-500);
  width: 52px;
  height: 52px;
  font-size: 1.1rem;
}

.btn-pass:hover {
  background: rgba(239,68,68,0.08);
  border-color: var(--red-500);
}

.btn-superlike {
  border-color: var(--blue-400);
  color: var(--blue-500);
  width: 48px;
  height: 48px;
  font-size: 1rem;
}

.btn-superlike:hover {
  background: rgba(59,130,246,0.08);
  border-color: var(--blue-500);
}

.btn-like {
  border-color: #4ade80;
  color: var(--green-500);
  width: 60px;
  height: 60px;
  font-size: 1.4rem;
}

.btn-like:hover {
  background: rgba(34,197,94,0.08);
  border-color: var(--green-500);
}

/* Pro badge on superlike button */
.btn-superlike-wrap {
  position: relative;
}

.pro-badge {
  position: absolute;
  top: -6px;
  right: -6px;
  background: var(--gradient-brand);
  color: #fff;
  font-size: 0.5rem;
  font-weight: 800;
  padding: 0.1rem 0.35rem;
  border-radius: 99px;
  letter-spacing: 0.04em;
  pointer-events: none;
}

/* ─── Keyboard hint ─────────────────────────────────────────────── */
.keyboard-hint {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-top: 0.75rem;
  flex-wrap: wrap;
  justify-content: center;
}

.key-hint-item {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.key-hint-item kbd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--slate-100);
  border: 1px solid var(--slate-300);
  border-radius: 4px;
  padding: 0.1rem 0.45rem;
  font-size: 0.68rem;
  font-family: inherit;
  color: var(--text-secondary);
  box-shadow: 0 1px 0 var(--slate-300);
  min-width: 28px;
}

/* ─── Card Exit Animations ──────────────────────────────────────── */
@keyframes flyRight {
  0%   { transform: translateX(0) rotate(0deg); opacity: 1; }
  100% { transform: translateX(150vw) rotate(30deg); opacity: 0; }
}

@keyframes flyLeft {
  0%   { transform: translateX(0) rotate(0deg); opacity: 1; }
  100% { transform: translateX(-150vw) rotate(-30deg); opacity: 0; }
}

@keyframes flyUp {
  0%   { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(-150vh) scale(0.8); opacity: 0; }
}

.card-exit-right { animation: flyRight 0.4s cubic-bezier(0.55, 0, 1, 0.45) forwards; }
.card-exit-left  { animation: flyLeft  0.4s cubic-bezier(0.55, 0, 1, 0.45) forwards; }
.card-exit-up    { animation: flyUp    0.4s cubic-bezier(0.55, 0, 1, 0.45) forwards; }

/* ─── Match Modal ───────────────────────────────────────────────── */
.match-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.75);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 600;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans);
}

.match-modal-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.match-modal {
  background: var(--bg-card);
  border-radius: var(--radius-xl);
  width: min(420px, 94vw);
  padding: 2.5rem 2rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-lg);
  transform: translateY(24px) scale(0.96);
  transition: transform var(--trans);
  position: relative;
  overflow: hidden;
}

.match-modal-overlay.open .match-modal {
  transform: translateY(0) scale(1);
}

.match-modal__heading {
  font-size: 1.8rem;
  font-weight: 900;
  letter-spacing: -0.02em;
  background: var(--gradient-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.match-modal__sub {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
}

.match-modal__avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  margin-bottom: 1.75rem;
}

.match-modal__avatar {
  width: 86px;
  height: 86px;
  border-radius: 50%;
  border: 4px solid var(--bg-card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.15);
  font-family: inherit;
  letter-spacing: -0.02em;
}

.match-modal__avatar:last-child { margin-left: -16px; }

.match-modal__heart {
  position: relative;
  z-index: 2;
  margin: 0 -8px;
  width: 40px;
  height: 40px;
  background: var(--gradient-brand);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 2px 12px rgba(236,72,153,0.4);
  flex-shrink: 0;
}

.match-modal__names {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin-bottom: 1.75rem;
  font-weight: 500;
}

.match-modal__names strong { color: var(--text-primary); font-weight: 700; }

.match-modal__actions {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.btn-mensaje {
  width: 100%;
  padding: 0.75rem;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: all var(--trans-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 2px 10px rgba(139,92,246,0.3);
  font-family: inherit;
}

.btn-mensaje:hover {
  opacity: 0.9;
  transform: translateY(-1px);
  box-shadow: 0 4px 18px rgba(139,92,246,0.4);
}

.btn-seguir-buscando {
  width: 100%;
  padding: 0.65rem;
  background: transparent;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 500;
  border: 1px solid var(--border);
  cursor: pointer;
  transition: all var(--trans-fast);
  font-family: inherit;
}

.btn-seguir-buscando:hover {
  background: var(--slate-50);
  color: var(--text-secondary);
  border-color: var(--slate-300);
}

/* ─── Super Like Modal ──────────────────────────────────────────── */
.super-like__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  cursor: pointer;
  font-size: 1.2rem;
  color: #94a3b8;
  transition: color 0.2s;
  z-index: 10;
}
.super-like__close:hover { color: #e2e8f0; }

.super-like__header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0 0 1.5rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  margin: 0 0 1.5rem 0;
}

.super-like__musician-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  font-size: 1.5rem;
}

.super-like__musician-info {
  flex: 1;
  text-align: left;
}

.super-like__name {
  font-size: 1rem;
  font-weight: 700;
  color: #e2e8f0;
}

.super-like__instrument {
  font-size: 0.8rem;
  color: #94a3b8;
  margin-top: 0.2rem;
}

.super-like__content {
  margin-bottom: 1.5rem;
}

.super-like__title {
  font-size: 0.9rem;
  font-weight: 600;
  color: #e2e8f0;
  margin-bottom: 0.8rem;
}

.super-like__textarea {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.03);
  color: #e2e8f0;
  font-family: inherit;
  font-size: 0.85rem;
  resize: vertical;
  transition: border-color 0.2s, background 0.2s;
}

.super-like__textarea:focus {
  outline: none;
  border-color: rgba(139,92,246,0.5);
  background: rgba(139,92,246,0.08);
}

.super-like__textarea::placeholder {
  color: #64748b;
}

.super-like__counter {
  font-size: 0.7rem;
  color: #64748b;
  text-align: right;
  margin-top: 0.3rem;
}

.super-like__suggestions {
  margin-bottom: 1.5rem;
}

.super-like__suggestions-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  color: #94a3b8;
  margin-bottom: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.05em;
}

.super-like__suggestion-btn {
  display: block;
  width: 100%;
  padding: 0.6rem;
  margin-bottom: 0.5rem;
  background: rgba(139,92,246,0.12);
  border: 1px solid rgba(139,92,246,0.25);
  border-radius: var(--radius-sm);
  color: #c4b5fd;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
}

.super-like__suggestion-btn:hover {
  background: rgba(139,92,246,0.2);
  border-color: rgba(139,92,246,0.4);
  color: #ddd6fe;
}

.super-like__actions {
  display: flex;
  gap: 0.8rem;
}

.super-like__btn-cancel,
.super-like__btn-send {
  flex: 1;
  padding: 0.8rem;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
}

.super-like__btn-cancel {
  background: rgba(255,255,255,0.08);
  color: #94a3b8;
}

.super-like__btn-cancel:hover {
  background: rgba(255,255,255,0.12);
  color: #e2e8f0;
}

.super-like__btn-send {
  background: linear-gradient(135deg, #8b5cf6, #d946ef);
  color: #fff;
  box-shadow: 0 4px 15px rgba(139,92,246,0.3);
}

.super-like__btn-send:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139,92,246,0.4);
}

.super-like__btn-send:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

/* ─── Confetti ──────────────────────────────────────────────────── */
.confetti-container {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  border-radius: var(--radius-xl);
}

.confetti-particle {
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 2px;
  top: -10px;
  animation: confettiFall linear forwards;
  will-change: transform;
}

@keyframes confettiFall {
  0% {
    transform: translateY(-10px) rotate(0deg) scale(1);
    opacity: 1;
  }
  80% { opacity: 1; }
  100% {
    transform: translateY(500px) rotate(720deg) scale(0.5);
    opacity: 0;
  }
}

/* ─── Empty State ───────────────────────────────────────────────── */
.match-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 3rem 2rem;
  gap: 1rem;
  width: 100%;
  max-width: 380px;
  display: none;
}

.match-empty.visible { display: flex; }

.match-empty__icon {
  width: 90px;
  height: 90px;
  background: linear-gradient(135deg, rgba(139,92,246,0.1), rgba(236,72,153,0.1));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--slate-400);
  margin-bottom: 0.5rem;
}

.match-empty__title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.match-empty__sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 280px;
  line-height: 1.5;
}

.btn-change-filters {
  margin-top: 0.5rem;
  padding: 0.65rem 1.5rem;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: var(--radius-sm);
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all var(--trans-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  box-shadow: 0 2px 8px rgba(139,92,246,0.3);
  font-family: inherit;
}

.btn-change-filters:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* ─── Login CTA (when not logged in) ───────────────────────────── */
.match-login-cta {
  position: absolute;
  inset: 0;
  background: rgba(248,250,252,0.88);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.75rem;
  padding: 2rem;
  text-align: center;
  z-index: 50;
}

.match-login-cta i {
  font-size: 2.5rem;
  color: var(--violet-500);
}

.match-login-cta h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.match-login-cta p {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* ─── Section counter badge ─────────────────────────────────────── */
.match-counter {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-bottom: 1.5rem;
}

.match-counter strong {
  font-weight: 700;
  color: var(--text-secondary);
}

/* ─── Bottom Filter Sheet (mobile) ──────────────────────────────── */
.filter-sheet-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15,23,42,0.5);
  z-index: 400;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--trans);
}

.filter-sheet-overlay.open {
  opacity: 1;
  pointer-events: all;
}

.filter-sheet {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--bg-dark);
  border-radius: 20px 20px 0 0;
  padding: 1.5rem 1.25rem 2rem;
  z-index: 401;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.32, 0.72, 0, 1);
  max-height: 85vh;
  overflow-y: auto;
}

.filter-sheet-overlay.open .filter-sheet {
  transform: translateY(0);
}

.filter-sheet-handle {
  width: 40px;
  height: 4px;
  background: var(--slate-600);
  border-radius: 99px;
  margin: 0 auto 1.25rem;
}

.filter-sheet-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

/* ─── Responsive ────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .match-layout {
    grid-template-columns: 1fr;
  }
  .match-sidebar {
    display: none;
  }
  .match-main {
    padding: 1.5rem 1rem 7rem;
  }
}

@media (max-width: 600px) {
  .card-stack {
    height: 520px;
    max-width: 100%;
  }
  .card-stack-wrap {
    max-width: 100%;
  }
  .match-main {
    padding: 1rem 0.75rem 7rem;
  }
  .action-buttons {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(248,250,252,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--border);
    padding: 0.85rem 1.5rem 1.25rem;
    z-index: 100;
    margin-top: 0;
  }
  .swipe-card__name { font-size: 1rem; }
  .match-modal__heading { font-size: 1.5rem; }
  .keyboard-hint { display: none; }
}

/* ─── Mobile filter button (floating) ──────────────────────────── */
.btn-filter-mobile {
  display: none;
  position: fixed;
  bottom: 90px;
  right: 1.25rem;
  width: 48px;
  height: 48px;
  background: var(--gradient-brand);
  color: #fff;
  border-radius: 50%;
  border: none;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(139,92,246,0.4);
  align-items: center;
  justify-content: center;
  z-index: 99;
  transition: all var(--trans-fast);
  font-family: inherit;
}

.btn-filter-mobile:hover { transform: scale(1.08); }

@media (max-width: 900px) {
  .btn-filter-mobile { display: flex; }
}

/* ─── Match Card Heart Button ──────────────────────────────────── */
.match-card-heart {
  position: absolute;
  top: 12px;
  left: 12px;
  z-index: 10;
}

.match-card-heart .heart-btn {
  width: 44px;
  height: 44px;
  background: rgba(255,255,255,0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.25rem;
  transition: all var(--trans-fast);
  box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.match-card-heart .heart-btn:hover {
  background: #fff;
  box-shadow: 0 6px 16px rgba(0,0,0,0.3);
  transform: scale(1.08);
}

.match-card-heart .heart-btn.active {
  color: var(--pink-500);
}

/* ─── Mobile chat FAB (managed by sono-chat.js) ───────────────────────────── */
.btn-chat-fab {
  display: none !important;
}

/* ─── Swipe card stack visual depth (set by JS, reinforced here) ── */
.card-stack .swipe-card:nth-last-child(2) {
  pointer-events: none;
}

.card-stack .swipe-card:nth-last-child(3) {
  pointer-events: none;
}

/* ─── Match page nav link active state ──────────────────────────── */
.hub-nav-link.match-nav-active {
  color: var(--pink-600);
  background: rgba(236,72,153,0.08);
}

/* ═══════════════════════════════════════════════════════════════
   Dark-theme overrides + SoundBetter Pro card redesign
   ═══════════════════════════════════════════════════════════════ */

/* Dark page background */
.match-page {
  background:
    radial-gradient(ellipse 900px 650px at 15% 25%, rgba(99,102,241,0.07) 0%, transparent 65%),
    radial-gradient(ellipse 800px 550px at 85% 15%, rgba(236,72,153,0.06) 0%, transparent 60%),
    linear-gradient(135deg, #0f172a 0%, #13112a 50%, #0f1629 100%) !important;
  background-attachment: fixed !important;
}

/* Dark sidebar */
.match-sidebar {
  background: rgba(15,23,42,0.95) !important;
  border-right-color: rgba(255,255,255,0.07) !important;
}
.match-sidebar-title { color: #f1f5f9 !important; }
.filter-section-label { color: #64748b !important; }
.filter-select {
  background: rgba(255,255,255,0.06) !important;
  border-color: rgba(255,255,255,0.1) !important;
  color: #e2e8f0 !important;
}
.filter-select option { background: #1e1535; color: #e2e8f0; }
.filter-divider { background: rgba(255,255,255,0.07) !important; }

/* Dark action button bar (mobile) */
@media (max-width: 600px) {
  .action-buttons {
    background: rgba(13,17,23,0.96) !important;
    border-top-color: rgba(255,255,255,0.08) !important;
  }
}

/* Dark match counter */
.match-counter { color: #64748b !important; }
.match-counter strong { color: #94a3b8 !important; }

/* Action buttons and keyboard hints visible */
.action-buttons { display: flex !important; }
.keyboard-hint  { display: flex !important; }

/* ─── Swipe card — SoundBetter Pro style ────────────────────── */
.swipe-card {
  background: #0d1117 !important;
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 22px !important;
  box-shadow: 0 24px 60px rgba(0,0,0,0.7) !important;
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

/* Hero gradient area — compacted */
.swipe-hero {
  width: 100%;
  height: 480px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
.swipe-hero::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.06) 0%, rgba(0,0,0,0.7) 100%);
  pointer-events: none;
}

/* Avatar ring — compacted */
.swipe-avatar-ring {
  width: 76px; height: 76px;
  border-radius: 50%;
  border: 3px solid rgba(255,255,255,0.6);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.6rem; font-weight: 900; color: #fff;
  position: relative; z-index: 1;
  box-shadow: 0 4px 22px rgba(0,0,0,0.5), 0 0 0 5px rgba(255,255,255,0.08);
  user-select: none; background: transparent;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.swipe-card:hover .swipe-avatar-ring {
  border-color: rgba(255,255,255,0.85);
  box-shadow: 0 4px 22px rgba(0,0,0,0.5), 0 0 0 6px rgba(236,72,153,0.22);
}

/* ─── In-card action buttons ─────────────────────────────────── */
.swipe-card-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  padding: 0.6rem 1rem 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}
.sca-btn {
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 2px solid;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.05rem; cursor: pointer;
  background: rgba(13,17,23,0.8);
  transition: transform 0.15s, box-shadow 0.15s, background 0.15s;
  font-family: inherit;
}
.sca-btn:hover  { transform: scale(1.14); }
.sca-btn:active { transform: scale(0.93); }
.sca-pass  { border-color: rgba(239,68,68,0.5);  color: #ef4444; width: 42px; height: 42px; font-size: 0.95rem; }
.sca-pass:hover  { background: rgba(239,68,68,0.1); border-color: #ef4444; box-shadow: 0 0 14px rgba(239,68,68,0.3); }
.sca-super { border-color: rgba(96,165,250,0.5); color: #60a5fa; width: 38px; height: 38px; font-size: 0.85rem; }
.sca-super:hover { background: rgba(96,165,250,0.1); border-color: #60a5fa; box-shadow: 0 0 14px rgba(96,165,250,0.3); }
.sca-like  { border-color: rgba(74,222,128,0.5); color: #4ade80; width: 52px; height: 52px; font-size: 1.2rem; }
.sca-like:hover  { background: rgba(74,222,128,0.1); border-color: #4ade80; box-shadow: 0 0 14px rgba(74,222,128,0.3); }

/* Score badge top-left */
.swipe-score-badge {
  position: absolute; top: 0.75rem; left: 0.75rem; z-index: 2;
  background: rgba(0,0,0,0.62); backdrop-filter: blur(10px);
  border: 1px solid var(--sc, #94a3b8);
  border-radius: 99px;
  padding: 0.22rem 0.7rem;
  display: flex; align-items: baseline; gap: 0.25rem;
}
.swipe-score-num {
  font-size: 0.88rem; font-weight: 900;
  color: var(--sc, #94a3b8); line-height: 1;
}
.swipe-score-lbl {
  font-size: 0.6rem; font-weight: 600;
  color: rgba(255,255,255,0.45); text-transform: uppercase; letter-spacing: 0.05em;
}

/* Name overlay */
.swipe-name-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 0.6rem 1rem 0.75rem; z-index: 2;
}
.swipe-name {
  font-size: 1.15rem; font-weight: 800; color: #fff;
  text-shadow: 0 1px 8px rgba(0,0,0,0.7);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.swipe-sub {
  font-size: 0.75rem; color: rgba(255,255,255,0.55); margin-top: 0.1rem;
}

/* Info section */
.swipe-info {
  padding: 0.85rem 1rem 1rem;
  display: flex; flex-direction: column; gap: 0.6rem;
  flex: 1;
}

/* Compatibility bar */
.swipe-compat-row { display: flex; flex-direction: column; gap: 0.4rem; }
.swipe-compat-track {
  height: 4px; border-radius: 99px;
  background: rgba(255,255,255,0.08);
  overflow: hidden;
}
.swipe-compat-fill {
  height: 100%; border-radius: 99px;
  transition: width 0.6s cubic-bezier(0.34,1.56,0.64,1);
}
.swipe-compat-hints { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.swipe-compat-hint {
  font-size: 0.67rem; color: #64748b;
  display: flex; align-items: center; gap: 0.22rem;
}
.swipe-compat-hint i { font-size: 0.58rem; }

/* Member info (duration + rating) */
.swipe-member-info {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 0.75rem;
  color: #64748b;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255,255,255,0.04);
}
.swipe-member-since {
  font-weight: 500;
  color: #94a3b8;
}
.swipe-rating {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.7rem;
}

.swipe-distance {
  font-size: 0.75rem;
  color: #60a5fa;
  font-weight: 500;
}

/* Top genres display */
.swipe-top-genres {
  font-size: 0.75rem;
  color: #a78bfa;
  font-weight: 500;
  padding: 0.2rem 0;
  font-style: italic;
}

/* Tags */
.swipe-tags { display: flex; flex-wrap: wrap; gap: 0.3rem; }
.swipe-tag {
  padding: 0.18rem 0.55rem; border-radius: 99px;
  font-size: 0.7rem; font-weight: 600; white-space: nowrap;
}
.swipe-tag--instr { background: rgba(139,92,246,0.12); color: #c4b5fd; border: 1px solid rgba(139,92,246,0.28); }
.swipe-tag--genre { background: rgba(34,211,238,0.10); color: #22d3ee; border: 1px solid rgba(34,211,238,0.25); }
.swipe-tag--seek  { background: rgba(236,72,153,0.10); color: #f472b6; border: 1px solid rgba(236,72,153,0.25); }

/* Bio */
.swipe-bio {
  font-size: 0.78rem; color: #475569; line-height: 1.5;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ─── Dark action buttons ────────────────────────────────────── */
.action-btn { background: #0d1117 !important; border-width: 2px !important; }

/* ─── Dark empty state ───────────────────────────────────────── */
.match-empty__title { color: #e2e8f0 !important; }
.match-empty__sub   { color: #64748b !important; }

/* ─── Dark match modal ───────────────────────────────────────── */
.match-modal { background: #13112a !important; }
.match-modal__sub   { color: #64748b !important; }
.match-modal__names { color: #94a3b8 !important; }
.match-modal__names strong { color: #f1f5f9 !important; }
.btn-seguir-buscando {
  background: rgba(255,255,255,0.04) !important;
  border-color: rgba(255,255,255,0.1) !important;
  color: #64748b !important;
}
.btn-seguir-buscando:hover {
  background: rgba(255,255,255,0.08) !important;
  color: #94a3b8 !important;
}

/* ─── Matches panel ──────────────────────────────────────────── */
.matches-panel {
  background: rgba(15,23,42,0.8);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  padding: 1rem;
  width: 100%;
  max-width: 380px;
  margin-top: 0.5rem;
}
.matches-panel-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 0.75rem;
}
.matches-panel-title {
  font-size: 0.82rem; font-weight: 700; color: #e2e8f0;
  display: flex; align-items: center; gap: 0.4rem;
}
.matches-panel-count {
  font-size: 0.7rem; background: rgba(236,72,153,0.12);
  border: 1px solid rgba(236,72,153,0.25); color: #f472b6;
  padding: 0.1rem 0.5rem; border-radius: 99px; font-weight: 700;
}
.matches-list { display: flex; flex-direction: column; gap: 0.5rem; }
.match-row {
  display: flex; align-items: center; gap: 0.65rem;
  padding: 0.55rem 0.65rem;
  background: rgba(255,255,255,0.03);
  border: 1px solid rgba(255,255,255,0.06);
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s;
}
.match-row:hover { background: rgba(236,72,153,0.06); border-color: rgba(236,72,153,0.18); }
.match-row-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 0.85rem; color: #fff; flex-shrink: 0;
}
.match-row-info { flex: 1; min-width: 0; }
.match-row-name { font-size: 0.85rem; font-weight: 700; color: #f1f5f9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.match-row-sub  { font-size: 0.7rem; color: #64748b; margin-top: 0.05rem; }
.match-row-btn  {
  padding: 0.28rem 0.65rem;
  background: linear-gradient(135deg, rgba(236,72,153,0.15), rgba(139,92,246,0.15));
  border: 1px solid rgba(236,72,153,0.3);
  border-radius: 8px; color: #f472b6;
  font-size: 0.7rem; font-weight: 700; cursor: pointer;
  font-family: inherit; white-space: nowrap;
  transition: opacity 0.15s;
}
.match-row-btn:hover { opacity: 0.8; }
.matches-empty {
  font-size: 0.78rem; color: #475569; text-align: center;
  padding: 0.75rem 0;
}

/* ─── View tabs (Descubrir / Mis Matches) ────────────────────── */
.match-view-tabs {
  display: flex; gap: 0.08rem;
  margin-bottom: 0.25rem;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: 6px; padding: 0px;
}
.match-view-tab {
  flex: 1; padding: 0.1rem 0.25rem;
  border-radius: 4px; border: none; background: none;
  font-size: 0.6rem; font-weight: 600; cursor: pointer;
  font-family: inherit; color: #64748b;
  display: flex; align-items: center; justify-content: center; gap: 0.1rem;
  transition: all 0.15s;
  line-height: 1;
  height: 24px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.match-view-tab.active {
  background: rgba(236,72,153,0.15);
  color: #f472b6;
  border: 1px solid rgba(236,72,153,0.3);
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE & DARK THEME IMPROVEMENTS
   ═══════════════════════════════════════════════════════════════ */

/* Improved Dark Theme Colors */
:root {
  --match-bg-dark: #0f172a;
  --match-bg-darker: #020617;
  --match-card-bg: #1e293b;
  --match-text-primary: #f1f5f9;
  --match-text-secondary: #94a3b8;
  --match-border: rgba(226, 232, 240, 0.1);
  --match-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.5);
}

body.match-page {
  background: linear-gradient(135deg, #0f172a 0%, #1a1f35 100%);
  color: var(--match-text-primary);
}

/* Enhanced Dark Theme - Filter Sidebar */
.match-sidebar {
  background: linear-gradient(180deg, rgba(30,41,59,0.8) 0%, rgba(15,23,42,0.95) 100%);
  border-right: 1px solid var(--match-border);
  backdrop-filter: blur(20px);
}

.filter-select {
  background: rgba(203, 213, 225, 0.05) !important;
  border: 1px solid rgba(203, 213, 225, 0.1) !important;
  color: var(--match-text-primary) !important;
}

.filter-select:focus {
  background: rgba(203, 213, 225, 0.08) !important;
  border-color: #ec4899 !important;
  box-shadow: 0 0 0 3px rgba(236, 72, 153, 0.1) !important;
}

/* Enhanced Card Styling */
.swipe-card {
  background: var(--match-card-bg);
  border: 1px solid var(--match-border);
  box-shadow: var(--match-shadow);
}

.swipe-card__info {
  background: linear-gradient(180deg, var(--match-card-bg) 0%, rgba(30,41,59,0.9) 100%);
}

/* Mobile Responsive Styles */

/* Hide mobile elements on desktop */
.btn-filter-mobile {
  display: none !important;
}

.btn-chat-fab {
  display: none !important;
}

.filter-sheet-overlay {
  display: none !important;
}

/* Desktop sidebar - hidden on mobile by default */
.match-sidebar {
  display: block;
}

@media (max-width: 1200px) {
  .match-layout {
    grid-template-columns: 240px 1fr;
  }

  .match-sidebar {
    padding: 1.25rem 1rem 2rem;
  }

  .match-main {
    padding: 2rem 1rem 6rem;
  }
}

/* Tablet & Small Desktop */
@media (max-width: 900px) {
  .match-layout {
    grid-template-columns: 1fr;
    margin-top: var(--header-h);
    min-height: auto;
  }

  .match-sidebar {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    max-width: 280px;
    height: calc(100vh - var(--header-h));
    z-index: 200;
    border-right: 1px solid var(--match-border);
    border-bottom: none;
  }

  .match-sidebar.active {
    display: block;
  }

  .btn-filter-mobile {
    display: flex !important;
  }

  .match-main {
    padding: 1.5rem 1rem 6rem;
  }

  .card-stack-wrap {
    max-width: 100%;
  }

  .card-stack {
    max-width: 100%;
  }
}

/* Mobile (< 600px) */
@media (max-width: 600px) {
  /* Sidebar responsive for mobile */
  .match-layout {
    grid-template-columns: 1fr;
  }

  .match-sidebar {
    display: none;
    position: fixed;
    top: var(--header-h);
    left: 0;
    width: 100%;
    max-width: 280px;
    height: calc(100vh - var(--header-h));
    z-index: 200;
    border-right: 1px solid var(--match-border);
  }

  .match-sidebar.active {
    display: block;
  }

  /* Mobile filter bottom sheet */
  .filter-sheet-overlay {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    top: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 250;
    animation: slideUp 0.3s ease-out;
  }

  .filter-sheet-overlay.active {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
  }

  .filter-sheet {
    background: var(--match-card-bg);
    border-radius: 20px 20px 0 0;
    padding: 1rem;
    max-height: 80vh;
    overflow-y: auto;
    width: 100%;
    animation: slideUp 0.3s ease-out;
    border: 1px solid var(--match-border);
    border-bottom: none;
  }

  .filter-sheet-handle {
    width: 40px;
    height: 4px;
    background: rgba(226, 232, 240, 0.2);
    border-radius: 2px;
    margin: 0.75rem auto;
  }

  .filter-sheet-title {
    font-size: 1rem;
    font-weight: 700;
    color: var(--match-text-primary);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
  }

  /* Mobile FABs */
  .btn-filter-mobile {
    display: flex !important;
  }

  .btn-chat-fab {
    display: flex;
  }

  .btn-filter-mobile,
  .btn-chat-fab {
    position: fixed;
    bottom: 1.5rem;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    z-index: 100;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    transition: all 0.2s ease;
    background: linear-gradient(135deg, #ec4899, #8b5cf6);
    color: white;
  }

  .btn-filter-mobile:active,
  .btn-chat-fab:active {
    transform: scale(0.95);
  }

  .btn-filter-mobile {
    right: 1.5rem;
  }

  .btn-chat-fab {
    right: 1.5rem;
    bottom: 5.5rem;
    background: linear-gradient(135deg, #3b82f6, #06b6d4);
  }

  /* Card responsive */
  .card-stack {
    height: 480px;
    max-width: 100%;
  }

  .card-stack-wrap {
    max-width: 100%;
    padding: 0;
  }

  .swipe-card {
    border-radius: 16px;
  }

  .swipe-card__photo {
    aspect-ratio: 3 / 4;
    height: 300px;
  }

  .swipe-card__info {
    padding: 0.85rem;
  }

  .swipe-card__name {
    font-size: 1rem;
  }

  .swipe-card__badge {
    font-size: 0.65rem;
    padding: 0.15rem 0.5rem;
  }

  /* Matches panel mobile */
  #matchesView {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0;
  }

  .matches-panel {
    width: 100%;
    max-width: 100%;
    border-radius: 16px;
    margin-top: 0;
  }

  /* Modal responsive */
  .match-modal-overlay {
    padding: 1rem;
  }

  .match-modal {
    max-width: 95vw !important;
    border-radius: 16px;
  }

  .match-view-tabs {
    gap: 0.1rem;
    margin-bottom: 0.75rem;
  }

  .match-view-tab {
    font-size: 0.65rem;
    padding: 0.2rem 0.3rem;
  }

  /* Counter hide on mobile */
  .match-counter {
    font-size: 0.75rem;
    margin-bottom: 1rem;
  }
}

/* Extra Small Mobile (< 400px) */
@media (max-width: 400px) {
  .swipe-card__photo {
    height: 250px;
  }

  .card-stack {
    height: 420px;
  }

  .swipe-card__name {
    font-size: 0.95rem;
  }

  .match-main {
    padding: 1rem 0.5rem 6rem;
  }

  .btn-filter-mobile,
  .btn-chat-fab {
    width: 45px;
    height: 45px;
    font-size: 1.1rem;
    right: 1rem;
  }

  .btn-chat-fab {
    bottom: 5rem;
  }
}

/* Animation for mobile sheet */
@keyframes slideUp {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}

@keyframes slideDown {
  from {
    transform: translateY(0);
  }
  to {
    transform: translateY(100%);
  }
}
.match-view-tab:hover:not(.active) { color: #94a3b8; background: rgba(255,255,255,0.06); }
