:root {
  --bg-main: #0a0c10;
  --bg-surface: #12151c;
  --bg-card: #181c24;
  --bg-glass: rgba(24, 28, 36, 0.85);
  --border: rgba(255, 255, 255, 0.08);
  --border-focus: rgba(255, 51, 102, 0.4);
  
  --primary: #ff3366;
  --primary-glow: rgba(255, 51, 102, 0.35);
  --accent-cyan: #00e5ff;
  --accent-amber: #ffb703;
  --accent-purple: #9d4edd;
  --accent-green: #06d6a0;
  --accent-red: #ef476f;
  
  --text-main: #f8fafc;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --radius-full: 9999px;
  
  --shadow-card: 0 16px 36px -8px rgba(0, 0, 0, 0.65), 0 0 0 1px var(--border);
  --shadow-btn: 0 8px 24px -4px rgba(0, 0, 0, 0.4);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg-main);
  color: var(--text-main);
  height: 100dvh;
  width: 100vw;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

#app {
  width: 100%;
  max-width: 480px;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-main);
  position: relative;
  overflow: hidden;
}

/* Header */
.app-header {
  height: 60px;
  padding: 8px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border);
  background: var(--bg-glass);
  backdrop-filter: blur(16px);
  z-index: 50;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 1.15rem;
  letter-spacing: -0.5px;
}

.brand-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  box-shadow: 0 0 12px var(--primary-glow);
}

.brand-name {
  background: linear-gradient(135deg, #fff 30%, #ff8fa3 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.header-center {
  display: flex;
  align-items: center;
}

.location-btn {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 6px 12px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--accent-cyan);
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
  max-width: 140px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.2s ease;
}

.location-btn:hover {
  background: rgba(0, 229, 255, 0.1);
  border-color: rgba(0, 229, 255, 0.3);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
}

.icon-btn:hover {
  background: rgba(255, 255, 255, 0.1);
  transform: scale(1.05);
}

.icon-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 14px var(--primary-glow);
}

.badge-dot {
  position: absolute;
  top: 4px;
  right: 4px;
  width: 8px;
  height: 8px;
  background-color: var(--accent-cyan);
  border-radius: 50%;
  border: 2px solid var(--bg-surface);
}

/* Nav Switch (Descubrir / Favoritos) */
.view-nav {
  display: flex;
  padding: 6px 14px;
  background: var(--bg-surface);
  gap: 8px;
  border-bottom: 1px solid var(--border);
}

.nav-tab {
  flex: 1;
  padding: 7px 0;
  font-size: 0.82rem;
  font-weight: 600;
  text-align: center;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--text-muted);
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.nav-tab.active {
  background: var(--bg-card);
  color: var(--text-main);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

/* Main Area */
.app-content {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* Card Deck View */
#deck-view {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 12px;
  overflow: hidden;
}

.card-stack {
  flex: 1;
  position: relative;
  width: 100%;
  height: 100%;
}

.tinder-card {
  position: absolute;
  inset: 0;
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.25s ease;
  will-change: transform, opacity;
  cursor: grab;
}

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

.tinder-card.next {
  transform: scale(0.95) translateY(12px);
  opacity: 0.85;
  pointer-events: none;
  z-index: 1;
}

.tinder-card.current {
  transform: scale(1) translateY(0);
  opacity: 1;
  z-index: 10;
}

/* Card Media / Image */
.card-media {
  position: relative;
  flex: 1.1;
  min-height: 240px;
  background: #000;
  cursor: pointer;
  overflow: hidden;
}

.card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.card-media:hover .card-img {
  transform: scale(1.02);
}

.media-top-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 80px;
  background: linear-gradient(180deg, rgba(0,0,0,0.7) 0%, transparent 100%);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 12px 14px;
  pointer-events: none;
}

.distance-pill {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: var(--accent-cyan);
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 4px;
}

.photo-count-pill {
  background: rgba(15, 23, 42, 0.75);
  backdrop-filter: blur(8px);
  border: 1px solid var(--border);
  color: #fff;
  padding: 5px 10px;
  border-radius: var(--radius-full);
  font-size: 0.76rem;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 4px;
}

.tap-gallery-hint {
  position: absolute;
  bottom: 12px;
  right: 12px;
  background: rgba(255, 51, 102, 0.85);
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 0.74rem;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(255, 51, 102, 0.4);
  pointer-events: none;
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.04); opacity: 1; }
}

/* Swipe Badges (Like / Pass Stamp) */
.stamp {
  position: absolute;
  top: 40px;
  padding: 8px 18px;
  border-radius: 8px;
  font-size: 1.6rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 2px;
  border-width: 4px;
  border-style: solid;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  transform: rotate(-15deg);
}

.stamp.like {
  right: 30px;
  border-color: var(--accent-green);
  color: var(--accent-green);
  transform: rotate(15deg);
}

.stamp.nope {
  left: 30px;
  border-color: var(--accent-red);
  color: var(--accent-red);
  transform: rotate(-15deg);
}

/* Card Body / Info */
.card-info {
  flex: 0.9;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  overflow-y: auto;
  scrollbar-width: none;
}

.card-info::-webkit-scrollbar {
  display: none;
}

.card-header-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
}

.couple-name {
  font-size: 1.35rem;
  font-weight: 700;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 6px;
}

.couple-status-badge {
  font-size: 0.75rem;
  padding: 3px 8px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.08);
  color: var(--text-muted);
}

.couple-details-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.detail-pill {
  font-size: 0.8rem;
  font-weight: 500;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  color: #cbd5e1;
}

.detail-pill.highlight {
  background: rgba(255, 51, 102, 0.12);
  border-color: rgba(255, 51, 102, 0.3);
  color: #ff8fa3;
}

.bio-text {
  font-size: 0.86rem;
  line-height: 1.45;
  color: var(--text-muted);
  position: relative;
  user-select: text;
}

.bio-text.collapsed {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.bio-toggle {
  font-size: 0.78rem;
  color: var(--accent-cyan);
  cursor: pointer;
  margin-top: -4px;
}

.tags-section {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 4px;
}

.tag-badge {
  font-size: 0.72rem;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.05);
  color: #94a3b8;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

/* Bottom Action Bar */
.action-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  padding: 12px 16px 16px 16px;
}

.action-btn {
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: var(--shadow-btn);
}

.action-btn:hover {
  transform: scale(1.1);
}

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

.action-btn.pass {
  width: 52px;
  height: 52px;
  background: #1f242e;
  border: 1px solid rgba(239, 71, 111, 0.4);
  color: var(--accent-red);
}

.action-btn.gallery {
  width: 44px;
  height: 44px;
  background: #1f242e;
  border: 1px solid rgba(0, 229, 255, 0.4);
  color: var(--accent-cyan);
}

.action-btn.like {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, #ff3366, #ff6584);
  color: #fff;
  box-shadow: 0 8px 24px var(--primary-glow);
}

.action-btn.ons {
  width: 44px;
  height: 44px;
  background: #1f242e;
  border: 1px solid rgba(157, 78, 221, 0.4);
  color: var(--accent-purple);
}

/* Empty / Radar Scanning State */
.scanner-container {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px;
  gap: 20px;
}

.radar-sweep-box {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  border: 2px solid rgba(255, 51, 102, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle, rgba(255, 51, 102, 0.08) 0%, transparent 70%);
}

.radar-sweep-box::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border-right: 2px solid var(--primary);
  border-top: 2px solid transparent;
  border-bottom: 2px solid transparent;
  border-left: 2px solid transparent;
  animation: spin 2.5s linear infinite;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.radar-sweep-center {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 16px var(--primary);
}

.scanner-title {
  font-size: 1.15rem;
  font-weight: 600;
  color: #fff;
}

.scanner-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 260px;
  line-height: 1.4;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  box-shadow: 0 4px 16px var(--primary-glow);
  transition: transform 0.2s ease;
}

.btn-primary:hover {
  transform: scale(1.04);
}

/* Fullscreen Photo Gallery Overlay */
#gallery-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 7, 10, 0.97);
  backdrop-filter: blur(20px);
  z-index: 1000;
  display: flex;
  flex-direction: column;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

#gallery-overlay.hidden {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.98);
}

.gallery-top-bar {
  height: 60px;
  padding: 12px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.gallery-title-box {
  display: flex;
  flex-direction: column;
}

.gallery-couple-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
}

.gallery-counter {
  font-size: 0.78rem;
  color: var(--accent-cyan);
}

.gallery-close-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid var(--border);
  color: #fff;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.gallery-close-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.gallery-stage {
  flex: 1;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  touch-action: pan-y pinch-zoom;
}

.gallery-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
}

.gallery-nav-btn.prev {
  left: 12px;
}

.gallery-nav-btn.next {
  right: 12px;
}

.gallery-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
}

.gallery-tray {
  height: 80px;
  padding: 10px 16px;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.4);
  scrollbar-width: none;
}

.gallery-tray::-webkit-scrollbar {
  display: none;
}

.tray-thumb {
  width: 60px;
  height: 60px;
  border-radius: 8px;
  object-fit: cover;
  opacity: 0.5;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.tray-thumb.active {
  opacity: 1;
  border-color: var(--primary);
  transform: scale(1.05);
}

/* Favorites View */
#favorites-view {
  flex: 1;
  overflow-y: auto;
  padding: 14px;
  display: flex;
  flex-direction: column;
}

.favorites-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
}

.fav-card {
  border-radius: var(--radius-md);
  background: var(--bg-card);
  border: 1px solid var(--border);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  cursor: pointer;
  transition: transform 0.2s ease;
  position: relative;
}

.fav-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 51, 102, 0.4);
}

.fav-thumb-box {
  width: 100%;
  height: 140px;
  position: relative;
  background: #000;
}

.fav-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fav-remove-btn {
  position: absolute;
  top: 6px;
  right: 6px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 0.8rem;
}

.fav-remove-btn:hover {
  background: var(--accent-red);
}

.fav-info {
  padding: 8px 10px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.fav-name {
  font-size: 0.92rem;
  font-weight: 600;
  color: #fff;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.fav-sub {
  font-size: 0.74rem;
  color: var(--text-muted);
}

.fav-dist {
  font-size: 0.72rem;
  color: var(--accent-cyan);
}

/* Filter & Location Modals */
#filter-modal, #location-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  transition: opacity 0.25s ease;
}

#filter-modal.hidden, #location-modal.hidden {
  opacity: 0;
  pointer-events: none;
}

.filter-sheet {
  width: 100%;
  max-width: 480px;
  max-height: 85dvh;
  background: var(--bg-surface);
  border-top-left-radius: var(--radius-lg);
  border-top-right-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 20px 20px 30px 20px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  overflow-y: auto;
  transform: translateY(0);
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}

#filter-modal.hidden .filter-sheet, #location-modal.hidden .filter-sheet {
  transform: translateY(100%);
}

/* GPS Button */
.gps-target-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: rgba(0, 229, 255, 0.08);
  border: 1px solid rgba(0, 229, 255, 0.35);
  border-radius: var(--radius-md);
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
}

.gps-target-btn:hover {
  background: rgba(0, 229, 255, 0.16);
  border-color: var(--accent-cyan);
}

.gps-target-btn.active {
  border-color: var(--accent-green);
  background: rgba(6, 214, 160, 0.12);
}

.gps-icon-live {
  font-size: 1.5rem;
}

.gps-btn-text {
  display: flex;
  flex-direction: column;
}

.gps-btn-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}

.gps-btn-sub {
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

/* Location Search Box */
.location-search-box {
  display: flex;
  flex-direction: column;
  gap: 6px;
  position: relative;
}

.search-input-wrapper {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  font-size: 0.9rem;
  pointer-events: none;
}

#loc-search-input {
  width: 100%;
  padding: 10px 36px 10px 36px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: 0.88rem;
  outline: none;
  transition: border-color 0.2s ease;
}

#loc-search-input:focus {
  border-color: var(--accent-cyan);
  background: rgba(255, 255, 255, 0.08);
}

.search-clear-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
  font-size: 0.85rem;
}

.loc-search-results {
  background: #161b24;
  border: 1px solid rgba(0, 229, 255, 0.25);
  border-radius: var(--radius-md);
  max-height: 180px;
  overflow-y: auto;
  box-shadow: 0 10px 25px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
}

.loc-result-item {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.15s ease;
}

.loc-result-item:last-child {
  border-bottom: none;
}

.loc-result-item:hover, .loc-result-item:active {
  background: rgba(0, 229, 255, 0.15);
}

.loc-result-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #fff;
}

.loc-result-sub {
  font-size: 0.75rem;
  color: var(--accent-cyan);
}

/* Badge en filter modal */
.current-loc-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--accent-cyan);
}

/* Age Inputs */
.age-inputs-row {
  display: flex;
  gap: 12px;
}

.age-input-field {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 6px 12px;
}

.age-input-field label {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.age-select {
  background: #1e2430;
  color: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 4px 8px;
  font-size: 0.88rem;
  font-weight: 600;
  outline: none;
  cursor: pointer;
}

.age-select:focus {
  border-color: var(--primary);
}

.age-mode-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 6px;
}

.age-mode-label {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.age-mode-buttons {
  display: flex;
  gap: 6px;
}

/* Selector de pestañas Rango Pareja vs Él y Ella */
.age-tab-switch {
  display: flex;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 3px;
  gap: 4px;
  margin-top: 4px;
}

.age-tab-btn {
  flex: 1;
  border: none;
  background: transparent;
  color: var(--text-muted);
  padding: 6px 0;
  font-size: 0.76rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all 0.2s ease;
}

.age-tab-btn.active {
  background: var(--bg-card);
  color: var(--accent-cyan);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.4);
}

/* Modo Él y Ella por separado */
.split-age-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 12px;
}

.split-age-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.split-age-title {
  font-size: 0.8rem;
  font-weight: 600;
  color: #cbd5e1;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.split-age-val {
  font-size: 0.76rem;
  color: var(--accent-cyan);
  font-weight: 700;
}

/* Chips de prácticas y preferencias seleccionables */
.chip-btn.practice-chip.active {
  background: linear-gradient(135deg, rgba(255, 51, 102, 0.9), rgba(255, 101, 132, 0.9));
  border-color: var(--primary);
  color: #fff;
  box-shadow: 0 0 10px var(--primary-glow);
}

.filter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.filter-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.filter-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  font-weight: 600;
  color: #cbd5e1;
}

.filter-val {
  color: var(--accent-cyan);
  font-weight: 700;
}

input[type="range"] {
  width: 100%;
  accent-color: var(--primary);
  height: 6px;
  background: #334155;
  border-radius: 3px;
  outline: none;
}

.chips-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.chip-btn {
  padding: 6px 12px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Animations */
@keyframes heartPop {
  0% { transform: scale(0.6); opacity: 0; }
  50% { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}

.floating-heart {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  font-size: 4rem;
  pointer-events: none;
  z-index: 100;
  animation: heartPop 0.8s ease-out forwards;
}

/* User Badge & Header */
.user-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(239, 71, 111, 0.3), rgba(0, 229, 255, 0.3));
  border: 1.5px solid var(--accent-cyan);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
}

/* Login Overlay & Card */
.login-overlay {
  position: fixed;
  inset: 0;
  background: rgba(10, 12, 16, 0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 2500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.login-overlay.hidden {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.login-card {
  width: 100%;
  max-width: 380px;
  background: #141822;
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.7), 0 0 30px rgba(239, 71, 111, 0.15);
  border-radius: 24px;
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  animation: modalSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 24px;
}

.login-logo-ring {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(239, 71, 111, 0.2) 0%, rgba(10, 12, 16, 0.5) 70%);
  border: 2px solid rgba(239, 71, 111, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  box-shadow: 0 0 20px rgba(239, 71, 111, 0.25);
  animation: radarGlow 3s infinite ease-in-out;
}

@keyframes radarGlow {
  0%, 100% { box-shadow: 0 0 15px rgba(239, 71, 111, 0.2); border-color: rgba(239, 71, 111, 0.3); }
  50% { box-shadow: 0 0 25px rgba(0, 229, 255, 0.4); border-color: rgba(0, 229, 255, 0.5); }
}

.login-logo {
  width: 44px;
  height: 44px;
}

.login-title {
  font-size: 1.4rem;
  font-weight: 800;
  color: #fff;
  letter-spacing: -0.5px;
  margin: 0;
}

.login-subtitle {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-top: 4px;
  font-weight: 500;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.login-error-msg {
  background: rgba(239, 71, 111, 0.15);
  border: 1px solid rgba(239, 71, 111, 0.35);
  color: #ff6b8b;
  font-size: 0.82rem;
  font-weight: 500;
  padding: 10px 14px;
  border-radius: 12px;
  text-align: center;
  animation: shake 0.4s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
}

.login-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.login-field label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.login-input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.login-input-icon {
  position: absolute;
  left: 14px;
  font-size: 1rem;
  color: var(--text-muted);
  pointer-events: none;
}

.login-input-wrap input {
  width: 100%;
  padding: 12px 42px 12px 42px;
  background: #0d1017;
  border: 1.5px solid var(--border);
  border-radius: 14px;
  color: #fff;
  font-size: 0.95rem;
  outline: none;
  transition: all 0.2s ease;
}

.login-input-wrap input:focus {
  border-color: var(--accent-cyan);
  box-shadow: 0 0 12px rgba(0, 229, 255, 0.25);
  background: #11151f;
}

.toggle-password-btn {
  position: absolute;
  right: 10px;
  background: transparent;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  padding: 6px;
  opacity: 0.6;
  transition: opacity 0.2s;
}

.toggle-password-btn:hover {
  opacity: 1;
}

.login-submit-btn {
  width: 100%;
  padding: 14px;
  margin-top: 8px;
  background: linear-gradient(135deg, var(--primary) 0%, #d42c54 100%);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 8px 20px rgba(239, 71, 111, 0.35);
  transition: all 0.2s ease;
}

.login-submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 10px 25px rgba(239, 71, 111, 0.45);
}

.login-submit-btn:active {
  transform: translateY(1px);
}

.login-spinner {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.login-footer {
  margin-top: 20px;
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-muted);
}

/* User Modal */
.user-modal-content {
  max-width: 360px;
  border-radius: 24px;
}

.user-card-info {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid var(--border);
  border-radius: 16px;
  margin-bottom: 20px;
}

.user-avatar-large {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent-cyan));
  color: #fff;
  font-size: 1.5rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.user-profile-name {
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
}

.user-profile-role {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.password-change-section {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-bottom: 20px;
}

.text-link-btn {
  background: none;
  border: none;
  color: var(--accent-cyan);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.text-link-btn:hover {
  text-decoration: underline;
}

.pwd-change-form {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-group-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.form-group-field label {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.form-group-field input {
  padding: 8px 12px;
  background: #0d1017;
  border: 1px solid var(--border);
  border-radius: 10px;
  color: #fff;
  font-size: 0.88rem;
  outline: none;
}

.form-group-field input:focus {
  border-color: var(--accent-cyan);
}

.btn-logout {
  width: 100%;
  padding: 12px;
  background: rgba(239, 71, 111, 0.1);
  border: 1px solid rgba(239, 71, 111, 0.3);
  color: var(--accent-red);
  font-size: 0.92rem;
  font-weight: 600;
  border-radius: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.btn-logout:hover {
  background: var(--accent-red);
  color: #fff;
}

