/* ═══════════════════════════════════════════════════════════
   Pink Meet Mates — Mobile-First Dating App Styles
   ═══════════════════════════════════════════════════════════ */

:root {
  --pink-50: #fdf2f8;
  --pink-100: #fce7f3;
  --pink-200: #fbcfe8;
  --pink-300: #f9a8d4;
  --pink-400: #f472b6;
  --pink-500: #ec4899;
  --pink-600: #db2777;
  --pink-700: #be185d;
  --bg-dark: #0f0f1a;
  --bg-card: #1a1a2e;
  --bg-surface: #16162a;
  --text-primary: #f8f8ff;
  --text-secondary: rgba(248,248,255,0.6);
  --text-muted: rgba(248,248,255,0.35);
  --glass: rgba(26,26,46,0.85);
  --glass-border: rgba(255,255,255,0.08);
  --radius-sm: 12px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-full: 9999px;
  --shadow-card: 0 8px 32px rgba(0,0,0,0.4);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%; width: 100%;
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-primary);
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  touch-action: pan-y;
}

.hidden { display: none !important; }

/* ─── Splash Screen ─── */
.splash-screen {
  position: fixed; inset: 0; z-index: 1000;
  background: linear-gradient(160deg, #1a1a2e 0%, #0f0f1a 40%, #1a0a1a 100%);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: opacity 0.6s ease;
}
.splash-screen.active { opacity: 1; pointer-events: all; }
.splash-content { text-align: center; }
.splash-heart {
  width: 72px; height: 72px; margin: 0 auto 20px;
  color: var(--pink-500);
  animation: splashPulse 1.5s ease-in-out infinite;
}
.splash-heart svg { width: 100%; height: 100%; filter: drop-shadow(0 0 20px rgba(236,72,153,0.5)); }
.splash-title {
  font-size: 28px; font-weight: 800;
  background: linear-gradient(135deg, var(--pink-400), var(--pink-600));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
  letter-spacing: -0.5px;
}
.splash-subtitle { color: var(--text-secondary); font-size: 14px; margin-top: 6px; font-weight: 300; }
.splash-loader { width: 120px; height: 3px; background: rgba(255,255,255,0.08); border-radius: 3px; margin: 32px auto 0; overflow: hidden; }
.loader-bar { width: 40%; height: 100%; background: linear-gradient(90deg, var(--pink-500), var(--pink-400)); border-radius: 3px; animation: load 1.2s ease-in-out infinite; }

@keyframes splashPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.15); } }
@keyframes load { 0% { transform: translateX(-100%); } 100% { transform: translateX(350%); } }

/* ─── App Shell ─── */
.app { position: relative; width: 100%; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }

#main-app {
  display: flex;
  flex-direction: column;
  flex: 1;
  height: 100%;
  width: 100%;
  overflow: hidden;
  position: relative;
}

/* ─── Top Bar ─── */
.top-bar {
  position: relative; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: calc(var(--safe-top) + 8px) 16px 8px;
  background: rgba(15, 15, 26, 0.7);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--glass-border);
  flex-shrink: 0;
}
.app-logo-small { width: 32px; height: 32px; color: var(--pink-500); }
.app-logo-small svg { width: 100%; height: 100%; }
.top-bar-title { font-size: 18px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--text-primary); }
.icon-btn {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.06); border: 1px solid var(--glass-border);
  color: var(--text-secondary); display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:active { transform: scale(0.92); background: rgba(255,255,255,0.12); }

/* ─── Card Stack ─── */
.card-stack-container {
  flex: 1; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  padding: 0 12px;
}
.card-stack { position: relative; width: 100%; max-width: 420px; height: 100%; }

.swipe-card {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%;
  border-radius: var(--radius-lg);
  overflow-y: auto; overflow-x: hidden;
  background: var(--bg-card);
  box-shadow: var(--shadow-card);
  cursor: grab; will-change: transform;
  transition: box-shadow 0.3s;
  display: flex; flex-direction: column;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}
.swipe-card::-webkit-scrollbar { display: none; }
.swipe-card:active { cursor: grabbing; }

/* Card behind peek */
.swipe-card.card-behind {
  transform: scale(0.95) translateY(12px);
  opacity: 0.6; pointer-events: none;
}
.swipe-card.card-behind-2 {
  transform: scale(0.90) translateY(24px);
  opacity: 0.3; pointer-events: none;
}

/* Swipe stamp overlays */
.swipe-stamp {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) scale(0);
  z-index: 5; font-size: 48px; font-weight: 800;
  padding: 12px 32px; border-radius: var(--radius-sm);
  border: 4px solid; opacity: 0;
  pointer-events: none; transition: all 0.15s ease;
}
.stamp-like { color: #4ade80; border-color: #4ade80; transform: translate(-50%, -50%) rotate(-15deg) scale(0); }
.stamp-nope { color: #f87171; border-color: #f87171; transform: translate(-50%, -50%) rotate(15deg) scale(0); }
.stamp-visible.stamp-like { opacity: 0.9; transform: translate(-50%, -50%) rotate(-15deg) scale(1); }
.stamp-visible.stamp-nope { opacity: 0.9; transform: translate(-50%, -50%) rotate(15deg) scale(1); }

/* Card image area */
.card-image-wrapper {
  position: relative; overflow: hidden;
  min-height: 100%; flex-shrink: 0;
}
.card-image {
  width: 100%; height: 100%; object-fit: cover;
  display: block; pointer-events: none;
}
.card-image-gradient {
  position: absolute; bottom: 0; left: 0; right: 0; height: 55%;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 40%, transparent 100%);
  pointer-events: none;
}

/* Card info overlay */
.card-info-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 20px; z-index: 3;
}
.card-name { font-size: 28px; font-weight: 800; line-height: 1.1; }
.card-name .card-age { font-weight: 400; opacity: 0.8; }
.card-meta { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 4px; display: flex; align-items: center; gap: 6px; }
.card-meta svg { width: 14px; height: 14px; flex-shrink: 0; }
.card-scroll-hint {
  display: flex; align-items: center; gap: 4px;
  margin-top: 12px; font-size: 11px; color: rgba(255,255,255,0.4);
  animation: hintBounce 2s ease infinite;
  transition: opacity 0.3s;
}
.card-scroll-hint.faded { opacity: 0; }
.card-scroll-hint svg { width: 16px; height: 16px; }
@keyframes hintBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(4px); } }

/* Card detail panel (sits below image, revealed by scrolling) */
.card-detail-panel {
  background: var(--bg-card);
  padding: 0 20px 100px;
  flex-shrink: 0;
}

.detail-section { padding: 20px 0; border-bottom: 1px solid var(--glass-border); }
.detail-section:last-child { border-bottom: none; }
.detail-label { font-size: 11px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--pink-400); font-weight: 600; margin-bottom: 8px; }
.detail-bio { font-size: 15px; line-height: 1.6; color: var(--text-secondary); }
.detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.detail-item { display: flex; flex-direction: column; gap: 2px; }
.detail-item-label { font-size: 11px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1px; }
.detail-item-value { font-size: 14px; font-weight: 500; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  padding: 6px 14px; border-radius: var(--radius-full);
  background: rgba(236,72,153,0.12); color: var(--pink-300);
  font-size: 13px; font-weight: 500;
  border: 1px solid rgba(236,72,153,0.2);
}

/* ─── Action Bar ─── */
.action-bar {
  flex-shrink: 0; display: flex; align-items: center; justify-content: center;
  gap: 20px; padding: 12px 0 6px; z-index: 10;
}
.action-btn {
  border-radius: var(--radius-full); border: 2px solid; display: flex;
  align-items: center; justify-content: center; cursor: pointer;
  transition: all 0.2s; background: transparent;
}
.action-btn:active { transform: scale(0.88); }
.action-btn svg { pointer-events: none; }
.action-btn-pass {
  width: 56px; height: 56px; border-color: rgba(248,113,113,0.4); color: #f87171;
}
.action-btn-pass svg { width: 26px; height: 26px; }
.action-btn-pass:hover { background: rgba(248,113,113,0.1); border-color: #f87171; box-shadow: 0 0 20px rgba(248,113,113,0.2); }
.action-btn-info {
  width: 44px; height: 44px; border-color: rgba(96,165,250,0.4); color: #60a5fa;
}
.action-btn-info svg { width: 20px; height: 20px; }
.action-btn-info:hover { background: rgba(96,165,250,0.1); }
.action-btn-like {
  width: 56px; height: 56px; border-color: rgba(74,222,128,0.4); color: #4ade80;
}
.action-btn-like svg { width: 28px; height: 28px; }
.action-btn-like:hover { background: rgba(74,222,128,0.1); border-color: #4ade80; box-shadow: 0 0 20px rgba(74,222,128,0.2); }

/* ─── Bottom Nav ─── */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  display: flex; align-items: center; justify-content: space-around;
  padding: 6px 0 calc(var(--safe-bottom) + 8px);
  background: var(--glass); backdrop-filter: blur(20px);
  border-top: 1px solid var(--glass-border);
  z-index: 100;
}
.nav-item {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 6px 20px; background: none; border: none;
  color: var(--text-muted); font-size: 10px; font-weight: 500;
  cursor: pointer; transition: color 0.2s;
}
.nav-item svg { width: 24px; height: 24px; }
.nav-item.active { color: var(--pink-500); }
.nav-item:active { transform: scale(0.92); }

/* ─── Modal Overlay ─── */
.modal-overlay {
  position: fixed; inset: 0; z-index: 500;
  background: rgba(0,0,0,0.7); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; animation: fadeIn 0.3s ease;
}
@keyframes fadeIn { from { opacity: 0; } }

/* User Select Modal */
.user-select-modal {
  background: var(--bg-card); border-radius: var(--radius-lg);
  padding: 28px 20px; width: 100%; max-width: 380px;
  max-height: 80vh; overflow-y: auto;
  border: 1px solid var(--glass-border);
}
.modal-header h2 { font-size: 22px; font-weight: 700; }
.modal-desc { color: var(--text-secondary); font-size: 13px; margin-top: 4px; }
.user-select-list { margin-top: 20px; display: flex; flex-direction: column; gap: 10px; }
.user-select-item {
  display: flex; align-items: center; gap: 14px;
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
  cursor: pointer; transition: all 0.2s;
}
.user-select-item:hover { background: rgba(236,72,153,0.08); border-color: rgba(236,72,153,0.3); }
.user-select-item:active { transform: scale(0.98); }
.user-select-avatar {
  width: 50px; height: 50px; border-radius: var(--radius-full);
  overflow: hidden; flex-shrink: 0; border: 2px solid var(--pink-500);
}
.user-select-avatar img { width: 100%; height: 100%; object-fit: cover; }
.user-select-info h4 { font-size: 15px; font-weight: 600; }
.user-select-info p { font-size: 12px; color: var(--text-secondary); }

/* Match Modal */
.match-modal-content {
  text-align: center; padding: 40px 24px;
  background: linear-gradient(160deg, #2d1a3e 0%, var(--bg-card) 100%);
  border-radius: var(--radius-lg); width: 100%; max-width: 360px;
  border: 1px solid rgba(236,72,153,0.2);
  animation: matchPop 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
@keyframes matchPop { from { transform: scale(0.7); opacity: 0; } }
.match-hearts { font-size: 40px; display: flex; justify-content: center; gap: 8px; margin-bottom: 12px; animation: matchFloat 2s ease infinite; }
@keyframes matchFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.match-title {
  font-size: 32px; font-weight: 800;
  background: linear-gradient(135deg, var(--pink-400), #c084fc);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.match-subtitle { color: var(--text-secondary); margin-top: 6px; font-size: 14px; }
.match-avatars { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 24px 0; }
.match-avatar {
  width: 80px; height: 80px; border-radius: var(--radius-full);
  overflow: hidden; border: 3px solid var(--pink-500);
  background-size: cover; background-position: center;
}
.match-heart-icon { color: var(--pink-500); width: 32px; animation: matchPulse 1s ease infinite; }
.match-heart-icon svg { width: 100%; }
@keyframes matchPulse { 0%,100% { transform: scale(1); } 50% { transform: scale(1.3); } }
.btn-match-continue {
  width: 100%; padding: 14px; border: none; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
  color: white; font-size: 15px; font-weight: 600; cursor: pointer;
  transition: all 0.2s; font-family: var(--font);
}
.btn-match-continue:active { transform: scale(0.97); }

/* ─── Page Views ─── */
.page-view {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  z-index: 8; background: var(--bg-dark);
  padding: calc(var(--safe-top) + 56px) 16px calc(var(--safe-bottom) + 64px);
  overflow-y: auto;
  animation: slideUp 0.3s ease;
}
@keyframes slideUp { from { transform: translateY(20px); opacity: 0; } }

/* Matches View */
.matches-header h2 { font-size: 24px; font-weight: 700; }
.matches-count { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.matches-list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.match-list-item {
  display: flex; align-items: center; gap: 14px;
  padding: 14px; border-radius: var(--radius-md);
  background: rgba(255,255,255,0.04); border: 1px solid var(--glass-border);
  transition: all 0.2s;
}
.match-list-avatar {
  width: 56px; height: 56px; border-radius: var(--radius-full);
  overflow: hidden; flex-shrink: 0; border: 2px solid var(--pink-500);
}
.match-list-avatar img { width: 100%; height: 100%; object-fit: cover; }
.match-list-info h4 { font-size: 16px; font-weight: 600; }
.match-list-info p { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }

.empty-state {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 12px; height: 100%; color: var(--text-muted); text-align: center;
}
.empty-icon { width: 80px; height: 80px; color: var(--pink-500); opacity: 0.3; }
.empty-icon svg { width: 100%; height: 100%; }
.empty-state h3 { font-size: 20px; color: var(--text-secondary); }
.empty-state p { font-size: 14px; }
.empty-state-inline { text-align: center; padding: 40px 0; }
.empty-icon-small { font-size: 48px; margin-bottom: 12px; }
.empty-state-inline p { color: var(--text-secondary); }

/* Profile View */
.profile-page { padding-bottom: 20px; }
.profile-hero {
  width: 120px; height: 120px; border-radius: var(--radius-full);
  margin: 0 auto 16px; background-size: cover; background-position: center;
  border: 3px solid var(--pink-500);
  box-shadow: 0 0 30px rgba(236,72,153,0.3);
}
.profile-info-section { text-align: center; }
.profile-info-section h2 { font-size: 24px; font-weight: 700; }
.profile-meta { color: var(--text-secondary); font-size: 14px; margin-top: 4px; }
.profile-bio {
  margin: 16px 0; padding: 16px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04); text-align: left;
  font-size: 14px; line-height: 1.6; color: var(--text-secondary);
}
.profile-details-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
  text-align: left; margin: 16px 0;
}
.profile-tags { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 16px; }

/* ─── Swipe animation ─── */
.swipe-card.swiping-left {
  animation: swipeLeft 0.4s ease forwards;
}
.swipe-card.swiping-right {
  animation: swipeRight 0.4s ease forwards;
}
@keyframes swipeLeft {
  to { transform: translateX(-150%) rotate(-30deg); opacity: 0; }
}
@keyframes swipeRight {
  to { transform: translateX(150%) rotate(30deg); opacity: 0; }
}

/* ─── Responsive ─── */
@media (min-width: 768px) {
  .card-stack-container { padding: 0; }
  .card-stack { max-width: 380px; max-height: 600px; }
  .top-bar { max-width: 480px; margin: 0 auto; }
  .action-bar { max-width: 480px; margin: 0 auto; }
}

/* ═══════════════════════════════════════════════════════════
   Auth Screens
   ═══════════════════════════════════════════════════════════ */

.auth-screen {
  position: fixed; inset: 0; z-index: 50;
  background: linear-gradient(160deg, #1a1a2e 0%, #0f0f1a 40%, #1a0a1a 100%);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; overflow-y: auto;
}
.auth-card {
  width: 100%; max-width: 400px;
  background: var(--bg-card);
  border-radius: var(--radius-lg);
  padding: 36px 24px;
  border: 1px solid var(--glass-border);
  animation: fadeIn 0.4s ease;
}
.setup-card { max-width: 440px; max-height: 85vh; overflow-y: auto; }
.auth-logo {
  width: 52px; height: 52px; margin: 0 auto 16px;
  color: var(--pink-500);
}
.auth-logo svg { width: 100%; height: 100%; filter: drop-shadow(0 0 16px rgba(236,72,153,0.4)); }
.auth-title {
  text-align: center; font-size: 26px; font-weight: 800;
  background: linear-gradient(135deg, var(--pink-400), var(--pink-600));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.auth-subtitle { text-align: center; color: var(--text-secondary); font-size: 13px; margin-top: 4px; }
.auth-error {
  margin-top: 14px; padding: 10px 14px;
  background: rgba(248,113,113,0.12); border: 1px solid rgba(248,113,113,0.3);
  border-radius: var(--radius-sm); color: #f87171; font-size: 13px; text-align: center;
}
.auth-form { margin-top: 20px; display: flex; flex-direction: column; gap: 14px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-group label, .form-label-top {
  font-size: 12px; font-weight: 600; text-transform: uppercase;
  letter-spacing: 1px; color: var(--text-secondary);
}
.form-group label .hint { font-weight: 400; text-transform: none; letter-spacing: 0; font-size: 11px; color: var(--text-muted); }
.form-group input, .form-group select, .form-group textarea {
  padding: 12px 14px; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
  color: var(--text-primary); font-size: 15px; font-family: var(--font);
  outline: none; transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--pink-500);
}
.form-group select { cursor: pointer; }
.form-group select option { background: var(--bg-card); color: var(--text-primary); }
.form-group textarea { resize: vertical; min-height: 70px; }
.form-row { display: flex; gap: 12px; }
.form-group.half { flex: 1; }
.btn-primary {
  width: 100%; padding: 14px; border: none; border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
  color: white; font-size: 15px; font-weight: 600; cursor: pointer;
  font-family: var(--font); transition: all 0.2s; margin-top: 4px;
}
.btn-primary:active { transform: scale(0.97); }
.btn-primary:disabled { opacity: 0.5; cursor: not-allowed; }
.auth-switch {
  text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-secondary);
}
.auth-switch a { color: var(--pink-400); text-decoration: none; font-weight: 600; }

/* Photo Upload Grid */
.photo-upload-section { margin-bottom: 4px; }
.photo-grid {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 10px; margin-top: 8px;
}
.photo-slot {
  aspect-ratio: 3/4; border-radius: var(--radius-sm);
  background: rgba(255,255,255,0.04); border: 2px dashed var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; overflow: hidden; position: relative;
  transition: border-color 0.2s;
}
.photo-slot:hover { border-color: var(--pink-500); }
.photo-slot.primary { border-color: rgba(236,72,153,0.4); }
.photo-slot.has-image { border-style: solid; border-color: var(--pink-500); }
.photo-placeholder {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--text-muted);
}
.photo-placeholder svg { width: 28px; height: 28px; }
.photo-placeholder span { font-size: 10px; text-transform: uppercase; letter-spacing: 0.5px; }
.photo-preview {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.photo-slot.has-image .photo-placeholder { display: none; }

/* Logout */
.btn-logout {
  width: 100%; margin-top: 12px; padding: 12px;
  border-radius: var(--radius-full); background: transparent;
  border: 1px solid rgba(248,113,113,0.3); color: #f87171;
  font-size: 14px; font-weight: 500; cursor: pointer;
  font-family: var(--font); transition: all 0.2s;
}
.btn-logout:hover { background: rgba(248,113,113,0.08); }

/* Edit Profile Button */
.btn-edit-profile {
  width: 100%; margin-top: 20px; padding: 12px;
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
  border: none; color: white;
  font-size: 14px; font-weight: 600; cursor: pointer;
  font-family: var(--font); transition: all 0.2s;
}
.btn-edit-profile:active { transform: scale(0.97); }

/* Profile Photo Gallery */
.profile-photos {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 8px; margin: 16px 0;
}
.profile-photo-item {
  aspect-ratio: 3/4; border-radius: var(--radius-sm);
  overflow: hidden; position: relative; cursor: pointer;
  border: 2px solid var(--glass-border);
  transition: border-color 0.2s;
}
.profile-photo-item:first-child { border-color: var(--pink-500); }
.profile-photo-item:hover { border-color: var(--pink-400); }
.profile-photo-item img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.profile-photo-item .photo-badge {
  position: absolute; top: 4px; left: 4px;
  background: var(--pink-500); color: white;
  font-size: 8px; font-weight: 700; text-transform: uppercase;
  padding: 2px 6px; border-radius: 4px; letter-spacing: 0.5px;
}
.profile-photo-empty {
  aspect-ratio: 3/4; border-radius: var(--radius-sm);
  border: 2px dashed var(--glass-border);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-muted); cursor: pointer;
  transition: border-color 0.2s;
}
.profile-photo-empty:hover { border-color: var(--pink-500); }
.profile-photo-empty svg { width: 24px; height: 24px; }

/* Edit Profile Section */
.edit-profile-section {
  margin-top: 24px; padding-top: 24px;
  border-top: 1px solid var(--glass-border);
  text-align: left;
}
.edit-title {
  font-size: 20px; font-weight: 700; margin-bottom: 16px;
  text-align: center;
  background: linear-gradient(135deg, var(--pink-400), var(--pink-600));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.edit-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.btn-secondary {
  width: 100%; padding: 12px; border-radius: var(--radius-full);
  background: transparent; border: 1px solid var(--glass-border);
  color: var(--text-secondary); font-size: 14px; font-weight: 500;
  cursor: pointer; font-family: var(--font); transition: all 0.2s;
}
.btn-secondary:hover { background: rgba(255,255,255,0.04); }

/* Edit photo grid in edit form */
.edit-photo-slot {
  aspect-ratio: 3/4; border-radius: var(--radius-sm);
  overflow: hidden; position: relative; cursor: pointer;
  border: 2px solid var(--glass-border);
  background: rgba(255,255,255,0.04);
  display: flex; align-items: center; justify-content: center;
  transition: border-color 0.2s;
}
.edit-photo-slot:hover { border-color: var(--pink-500); }
.edit-photo-slot img {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
}
.edit-photo-slot .change-overlay {
  position: absolute; inset: 0;
  background: rgba(0,0,0,0.5); display: flex;
  align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s;
  color: white; font-size: 11px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.5px;
}
.edit-photo-slot:hover .change-overlay { opacity: 1; }

/* ─── Swipe Guide Tutorial ─── */
.swipe-guide {
  position: absolute; inset: 0;
  background: rgba(15,15,26,0.85);
  backdrop-filter: blur(8px);
  z-index: 50; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  color: white; pointer-events: none;
  opacity: 0; transition: opacity 0.4s ease;
  border-radius: var(--radius-lg);
}
.swipe-guide.show { opacity: 1; pointer-events: all; }
.swipe-guide-animation {
  position: relative; width: 120px; height: 120px;
  margin-bottom: 20px; display: flex; align-items: center; justify-content: center;
}
.swipe-hand {
  width: 48px; height: 48px; color: var(--pink-400);
  animation: guideSwipe 2.5s ease-in-out infinite;
  filter: drop-shadow(0 0 15px rgba(236,72,153,0.4));
}
.swipe-hand svg { width: 100%; height: 100%; }
.swipe-arrows {
  position: absolute; width: 100%; display: flex;
  justify-content: space-between; font-size: 24px;
  color: rgba(255,255,255,0.4); animation: arrowsPulse 2.5s ease-in-out infinite;
}
.swipe-guide-text {
  font-size: 15px; font-weight: 600; text-align: center;
  line-height: 1.5; color: var(--text-primary);
  text-shadow: 0 2px 10px rgba(0,0,0,0.5);
  animation: textFade 1.2s ease-in-out infinite alternate;
}

@keyframes guideSwipe {
  0% { transform: translateX(0) rotate(0); }
  25% { transform: translateX(-35px) rotate(-15deg); }
  50% { transform: translateX(35px) rotate(15deg); }
  75% { transform: translateX(0) rotate(0); }
  100% { transform: translateX(0) rotate(0); }
}
@keyframes arrowsPulse {
  0%, 100% { opacity: 0.3; }
  25% { opacity: 0.8; }
  50% { opacity: 0.8; }
  75% { opacity: 0.3; }
}
@keyframes textFade {
  from { opacity: 0.8; }
  to { opacity: 1; }
}

/* ─── Match Profile Detail Modal ─── */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(15,15,26,0.7);
  backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  z-index: 2000; padding: 20px;
  transition: opacity 0.3s ease;
}
.modal-close-btn {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; border-radius: var(--radius-full);
  background: rgba(15, 15, 26, 0.6); border: 1px solid rgba(255,255,255,0.15);
  color: white; display: flex; align-items: center; justify-content: center;
  cursor: pointer; z-index: 10; transition: all 0.2s ease;
}
.modal-close-btn:hover {
  background: var(--pink-500); transform: rotate(90deg); border-color: transparent;
}
.modal-close-btn svg { width: 16px; height: 16px; }

.match-detail-content {
  width: 100%; max-width: 440px; background: var(--bg-card);
  border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--glass-border); position: relative;
  max-height: 85vh; display: flex; flex-direction: column;
  animation: modalScaleUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.match-detail-hero {
  width: 100%; height: 260px; background-size: cover; background-position: center;
  position: relative; flex-shrink: 0;
}
.match-detail-body {
  padding: 24px; overflow-y: auto; text-align: left;
}
.match-detail-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 16px;
}
.match-detail-header h3 { font-size: 22px; font-weight: 800; }
.match-detail-meta { font-size: 13px; color: var(--text-secondary); margin-top: 2px; }
.match-chat-btn {
  width: 48px; height: 48px; border-radius: var(--radius-full);
  background: var(--pink-500); border: none; color: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 4px 14px rgba(236,72,153,0.4);
  transition: all 0.2s;
}
.match-chat-btn:active { transform: scale(0.92); }
.match-chat-btn svg { width: 22px; height: 22px; fill: currentColor; }
.match-detail-bio {
  font-size: 14px; line-height: 1.6; color: var(--text-secondary);
  background: rgba(255,255,255,0.03); padding: 14px;
  border-radius: var(--radius-sm); margin-bottom: 16px;
}
.match-detail-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }

/* ─── Messages & Conversations ─── */
.messages-container {
  display: flex; flex-direction: column; height: 100%; width: 100%;
  position: relative;
}
.chat-list-view {
  display: flex; flex-direction: column; height: 100%; width: 100%;
}
.chat-list {
  display: flex; flex-direction: column; gap: 8px; margin-top: 16px;
}
.chat-item {
  display: flex; align-items: center; gap: 14px; padding: 14px;
  border-radius: var(--radius-md); background: rgba(255,255,255,0.04);
  border: 1px solid var(--glass-border); cursor: pointer;
  transition: all 0.2s; position: relative;
}
.chat-item:hover { background: rgba(255,255,255,0.07); border-color: var(--pink-500); }
.chat-item-avatar {
  width: 52px; height: 52px; border-radius: var(--radius-full);
  overflow: hidden; border: 2px solid var(--pink-500); flex-shrink: 0;
}
.chat-item-avatar img { width: 100%; height: 100%; object-fit: cover; }
.chat-item-info { flex: 1; min-width: 0; }
.chat-item-header { display: flex; align-items: center; justify-content: space-between; }
.chat-item-name { font-size: 15px; font-weight: 700; color: var(--text-primary); }
.chat-item-time { font-size: 10px; color: var(--text-muted); }
.chat-item-preview {
  font-size: 12px; color: var(--text-secondary); margin-top: 4px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.chat-item-unread {
  background: var(--pink-500); color: white;
  font-size: 9px; font-weight: 800; min-width: 16px;
  height: 16px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px; position: absolute; right: 16px; bottom: 18px;
  box-shadow: 0 2px 6px rgba(236,72,153,0.3);
  line-height: 1;
}

/* Active Chat View */
.active-chat-view {
  display: flex; flex-direction: column; height: 100%; width: 100%;
  position: absolute; inset: 0; z-index: 20; background: var(--bg-dark);
}
.chat-header {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-bottom: 1px solid var(--glass-border);
  background: var(--bg-card); flex-shrink: 0;
}
.chat-back-btn {
  background: none; border: none; color: var(--text-secondary);
  cursor: pointer; padding: 4px; display: flex; align-items: center;
}
.chat-back-btn svg { width: 22px; height: 22px; }
.chat-header-avatar {
  width: 40px; height: 40px; border-radius: var(--radius-full);
  border: 2px solid var(--pink-500); background-size: cover; background-position: center;
}
.chat-header-info h4 { font-size: 15px; font-weight: 700; }
.chat-header-status { font-size: 10px; color: #4ade80; display: flex; align-items: center; gap: 4px; }
.chat-header-status::before {
  content: ''; display: inline-block; width: 6px; height: 6px;
  background: #4ade80; border-radius: 50%;
}

.chat-messages {
  flex: 1; padding: 16px; overflow-y: auto;
  display: flex; flex-direction: column; gap: 12px;
}
.msg-bubble {
  max-width: 75%; padding: 12px 16px; border-radius: 18px;
  font-size: 14px; line-height: 1.4; word-break: break-word;
}
.msg-bubble.sent {
  align-self: flex-end;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
  color: white; border-bottom-right-radius: 4px;
}
.msg-bubble.received {
  align-self: flex-start;
  background: rgba(255,255,255,0.06);
  color: var(--text-primary); border-bottom-left-radius: 4px;
  border: 1px solid var(--glass-border);
}
.msg-time {
  font-size: 9px; color: rgba(255,255,255,0.4); margin-top: 4px;
  text-align: right; display: block;
}

.chat-input-area {
  padding: 12px 16px calc(var(--safe-bottom) + 12px);
  background: var(--bg-card); border-top: 1px solid var(--glass-border);
  display: flex; gap: 10px; align-items: center; flex-shrink: 0;
}
.chat-input-area input {
  flex: 1; padding: 12px 16px; border-radius: var(--radius-full);
  background: rgba(255,255,255,0.05); border: 1px solid var(--glass-border);
  color: white; outline: none; font-size: 14px; font-family: var(--font);
}
.chat-input-area input:focus { border-color: var(--pink-500); }
.chat-send-btn {
  width: 44px; height: 44px; border-radius: var(--radius-full);
  background: var(--pink-500); border: none; color: white;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; transition: all 0.2s; flex-shrink: 0;
}
.chat-send-btn:active { transform: scale(0.9); }
.chat-send-btn svg { width: 18px; height: 18px; margin-left: 2px; }

/* Grid and elements inside Match Detail */
.detail-label {
  font-size: 13px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 1px; color: var(--pink-400); margin: 20px 0 10px;
}
.detail-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px;
}
.detail-item {
  display: flex; align-items: center; gap: 10px; padding: 10px 14px;
  background: rgba(255,255,255,0.03); border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
}
.detail-icon { font-size: 18px; }
.detail-item strong { display: block; font-size: 11px; color: var(--text-muted); }
.detail-item p { font-size: 13px; font-weight: 600; color: var(--text-primary); margin: 2px 0 0; }
.interest-tag {
  background: rgba(236,72,153,0.1); color: var(--pink-400);
  border: 1px solid rgba(236,72,153,0.2); padding: 5px 12px;
  border-radius: var(--radius-full); font-size: 12px; font-weight: 600;
}

/* Navigation Badge styling */
.nav-badge {
  position: absolute; top: -5px; right: -8px;
  background: var(--pink-500); color: white;
  font-size: 9px; font-weight: 800; min-width: 15px;
  height: 15px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  padding: 0 3px; box-shadow: 0 2px 8px rgba(236,72,153,0.5);
  border: 1.5px solid var(--bg-dark);
  line-height: 1; z-index: 5;
}

@keyframes modalScaleUp {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

/* Notification Bell and Dropdown */
.notif-btn {
  background: none; border: none; color: white; cursor: pointer;
  width: 36px; height: 36px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s; position: relative;
}
.notif-btn:hover { background: rgba(255,255,255,0.06); color: var(--pink-500); }
.notif-btn svg { width: 20px; height: 20px; }

.notif-badge {
  position: absolute; top: 2px; right: 2px;
  background: var(--pink-500); color: white;
  font-size: 8px; font-weight: 800; min-width: 14px;
  height: 14px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  padding: 0 2px; border: 1.5px solid var(--bg-card);
  box-shadow: 0 2px 6px rgba(236,72,153,0.4);
}

.notif-dropdown {
  position: absolute; top: 48px; right: 0;
  width: 290px; background: var(--bg-card);
  border: 1px solid var(--glass-border); border-radius: var(--radius-md);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5); z-index: 1000;
  overflow: hidden; display: flex; flex-direction: column;
  animation: dropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.notif-dropdown.hidden { display: none; }

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.notif-dropdown-header {
  padding: 12px 16px; border-bottom: 1px solid var(--glass-border);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 13px; font-weight: 700;
}
.notif-clear-btn {
  background: none; border: none; color: var(--pink-400);
  font-size: 11px; font-weight: 600; cursor: pointer;
  transition: opacity 0.2s;
}
.notif-clear-btn:hover { opacity: 0.8; }

.notif-dropdown-list {
  max-height: 180px; overflow-y: auto;
  display: flex; flex-direction: column;
}
.notif-item {
  padding: 12px 16px; border-bottom: 1px solid rgba(255,255,255,0.03);
  font-size: 12px; display: flex; align-items: flex-start; gap: 10px;
  cursor: pointer; transition: background 0.2s; text-align: left;
  position: relative;
}
.notif-item:hover { background: rgba(255,255,255,0.03); }
.notif-item-icon { font-size: 15px; margin-top: 1px; }
.notif-item-text { flex: 1; min-width: 0; }
.notif-item-desc { color: var(--text-primary); font-weight: 500; line-height: 1.35; }
.notif-item-time { color: var(--text-muted); font-size: 9px; margin-top: 4px; display: block; }

.notif-empty {
  padding: 24px 16px; text-align: center; color: var(--text-muted);
  font-size: 13px;
}

/* ─── Loading Spinner ───────────────────────────────────── */
.spinner {
  width: 28px; height: 28px;
  border: 3px solid rgba(236,72,153,0.15);
  border-top-color: var(--pink-500);
  border-radius: var(--radius-full);
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}

/* Your Move Badge */
.your-move-badge {
  background: rgba(236, 72, 153, 0.12);
  color: var(--pink-400);
  border: 1px solid rgba(236, 72, 153, 0.2);
  font-size: 8px;
  font-weight: 700;
  padding: 1.5px 5px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-left: 6px;
  display: inline-block;
  vertical-align: middle;
}

/* ─── Subscription Paywall ─── */
.card-detail-panel.blurred {
  filter: blur(8px);
  pointer-events: none;
  user-select: none;
  -webkit-user-select: none;
}

.sub-paywall-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: linear-gradient(to top, rgba(15,15,26,0.97) 40%, rgba(15,15,26,0.7) 70%, transparent);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px 20px;
  z-index: 10;
  pointer-events: auto;
}

.sub-paywall-overlay .sub-lock-icon {
  width: 48px;
  height: 48px;
  background: rgba(236,72,153,0.15);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
  color: var(--pink-500);
}

.sub-paywall-overlay .sub-lock-icon svg {
  width: 24px;
  height: 24px;
}

.sub-paywall-overlay h3 {
  color: white;
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 6px;
}

.sub-paywall-overlay p {
  color: var(--text-secondary);
  font-size: 13px;
  text-align: center;
  margin-bottom: 16px;
}

.sub-paywall-overlay .sub-cta-btn {
  background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
  color: white;
  border: none;
  padding: 14px 40px;
  border-radius: var(--radius-full);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 4px 20px rgba(236,72,153,0.4);
  transition: transform 0.2s, box-shadow 0.2s;
}

.sub-paywall-overlay .sub-cta-btn:active {
  transform: scale(0.97);
}

/* Subscribe Modal */
.sub-modal-content {
  background: linear-gradient(145deg, #1a1a2e, #16162a);
  border: 1px solid rgba(255,255,255,0.08);
  width: 90%;
  max-width: 400px;
  border-radius: 24px;
  padding: 32px 24px;
  text-align: center;
  animation: subModalSlide 0.4s ease;
}

@keyframes subModalSlide {
  from { transform: translateY(40px); opacity: 0; }
  to { transform: translateY(0); opacity: 1; }
}

.sub-modal-header {
  margin-bottom: 24px;
}

.sub-modal-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--pink-500), var(--pink-600));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.sub-modal-icon svg {
  width: 32px;
  height: 32px;
  color: white;
}

.sub-modal-header h2 {
  font-size: 22px;
  font-weight: 800;
  color: white;
  margin-bottom: 8px;
}

.sub-modal-header p {
  color: var(--text-secondary);
  font-size: 14px;
}

.sub-methods {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 20px;
}

.sub-method-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.08);
  color: white;
  padding: 14px 18px;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
}

.sub-method-btn:hover, .sub-method-btn:active {
  background: rgba(236,72,153,0.12);
  border-color: var(--pink-500);
}

.sub-method-icon {
  font-size: 22px;
}

.sub-close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  padding: 8px;
}

.sub-close-btn:hover {
  color: white;
}

/* ─── Static Swipe Hints ─── */
.static-swipe-hint {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  pointer-events: none;
}
.static-swipe-hint.hint-left {
  left: -20px;
}
.static-swipe-hint.hint-right {
  right: -20px;
}
.hint-icon-wrapper {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  animation: pulseHint 2s infinite ease-in-out;
  opacity: 0.7;
}
.hint-icon-wrapper svg {
  width: 24px;
  height: 24px;
}
.hint-icon-wrapper.nope-hint {
  background: var(--bg-surface);
  color: #ef4444; /* red */
  border: 2px solid #ef4444;
}
.hint-icon-wrapper.like-hint {
  background: var(--bg-surface);
  color: #10b981; /* green */
  border: 2px solid #10b981;
}
@keyframes pulseHint {
  0% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(1); opacity: 0.7; }
}

