/* Vesper App Styles - Matching Landing Page Design Language */
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400;0,700;1,400&family=DM+Sans:wght@400;500;600&display=swap');

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

:root {
  --bg-deep: #0C0A0D;
  --bg-card: #161318;
  --bg-elevated: #1E1A21;
  --bg-input: #1A161D;
  --rose: #E85D75;
  --rose-soft: #F2899A;
  --rose-glow: rgba(232, 93, 117, 0.15);
  --rose-dim: rgba(232, 93, 117, 0.08);
  --warm: #F5E6D3;
  --warm-dim: #B8A99A;
  --text: #F0EBE6;
  --text-secondary: #9E9399;
  --accent-gold: #D4A853;
  --green: #5CB85C;
  --danger: #E85D75;
  /* Aliases for component use */
  --surface: #1E1A21;
  --border: rgba(255, 255, 255, 0.08);
}

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

/* ---- LAYOUT ---- */
.app-container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---- NAV ---- */
.app-nav {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 100;
  padding: 1rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  backdrop-filter: blur(20px);
  background: rgba(12, 10, 13, 0.85);
  border-bottom: 1px solid var(--rose-dim);
}

.app-nav .logo {
  font-family: 'Playfair Display', serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text);
  letter-spacing: 0.02em;
  text-decoration: none;
}

.app-nav .logo span { color: var(--rose); }

.nav-links {
  display: flex;
  gap: 0.25rem;
}

.nav-links a {
  color: var(--text-secondary);
  text-decoration: none;
  font-size: 0.8rem;
  padding: 0.5rem 0.85rem;
  border-radius: 100px;
  transition: all 0.2s;
  letter-spacing: 0.02em;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--text);
  background: var(--rose-glow);
}

.nav-links a.active {
  color: var(--rose);
}

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

.nav-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rose-dim);
}

.nav-avatar-placeholder {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--rose-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  color: var(--rose);
  font-weight: 600;
}

.btn-logout {
  background: none;
  border: 1px solid rgba(232, 93, 117, 0.2);
  color: var(--text-secondary);
  padding: 0.35rem 0.75rem;
  border-radius: 100px;
  font-size: 0.7rem;
  cursor: pointer;
  transition: all 0.2s;
  font-family: inherit;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.btn-logout:hover {
  border-color: var(--rose);
  color: var(--rose);
}

/* ---- MAIN CONTENT ---- */
.app-content {
  flex: 1;
  padding-top: 65px;
  max-width: 600px;
  margin: 0 auto;
  width: 100%;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* ---- AUTH SCREEN ---- */
.auth-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 65px);
  padding: 2rem 1rem;
}

.auth-box {
  width: 100%;
  max-width: 400px;
}

.auth-logo {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 0.5rem;
}

.auth-logo span { color: var(--rose); }

.auth-tagline {
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2.5rem;
}

.auth-tabs {
  display: flex;
  gap: 0;
  margin-bottom: 2rem;
  background: var(--bg-card);
  border-radius: 12px;
  padding: 4px;
}

.auth-tab {
  flex: 1;
  padding: 0.65rem 1rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  border-radius: 10px;
  transition: all 0.2s;
  border: none;
  background: none;
  font-family: inherit;
}

.auth-tab.active {
  background: var(--rose);
  color: white;
}

.auth-tab:hover:not(.active) {
  color: var(--text);
}

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

.form-label {
  display: block;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
}

.form-input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-input);
  border: 1px solid rgba(232, 93, 117, 0.1);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-family: inherit;
  transition: border-color 0.2s;
  outline: none;
}

.form-input:focus {
  border-color: var(--rose);
}

.form-input::placeholder {
  color: rgba(158, 147, 153, 0.5);
}

select.form-input {
  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='%239E9399' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 1rem center;
  padding-right: 2.5rem;
}

select.form-input option {
  background: var(--bg-card);
  color: var(--text);
}

textarea.form-input {
  resize: vertical;
  min-height: 100px;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

/* ---- GOOGLE OAUTH BUTTON ---- */
.btn-google-oauth {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.85rem 1rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 10px;
  color: var(--text);
  font-size: 0.95rem;
  font-weight: 500;
  font-family: inherit;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.18s, border-color 0.18s;
  margin-bottom: 0;
}

.btn-google-oauth:hover {
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 255, 255, 0.22);
  color: var(--text);
  text-decoration: none;
}

.google-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* "or" divider between Google button and email form */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin: 1.25rem 0;
  color: var(--text-secondary);
  font-size: 0.8rem;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
}

/* ---- TERMS CHECKBOX ---- */
.terms-check-wrap {
  margin-bottom: 1.25rem;
}

.terms-check-label {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  cursor: pointer;
  font-size: 0.875rem;
  color: var(--text-secondary);
  line-height: 1.5;
}

.terms-check-label input[type="checkbox"] {
  flex-shrink: 0;
  margin-top: 0.15rem;
  width: 16px;
  height: 16px;
  accent-color: var(--rose);
  cursor: pointer;
}

.terms-check-label a {
  color: var(--rose);
  text-decoration: none;
}

.terms-check-label a:hover {
  text-decoration: underline;
}

/* ---- BUTTONS ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border: none;
  border-radius: 100px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s;
  font-family: inherit;
  text-decoration: none;
  width: 100%;
}

.btn-primary {
  background: var(--rose);
  color: white;
}

.btn-primary:hover {
  background: var(--rose-soft);
  transform: translateY(-1px);
  box-shadow: 0 6px 24px rgba(232, 93, 117, 0.3);
}

.btn-primary:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.btn-secondary {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--rose-dim);
}

.btn-secondary:hover {
  border-color: rgba(232, 93, 117, 0.3);
}

.btn-ghost {
  background: none;
  color: var(--text-secondary);
  padding: 0.5rem 1rem;
}

.btn-ghost:hover {
  color: var(--text);
}

.btn-sm {
  padding: 0.5rem 1.25rem;
  font-size: 0.8rem;
}

/* ---- PROFILE WIZARD ---- */
.wizard-container {
  padding: 2rem 0;
}

.wizard-progress {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 2.5rem;
}

.wizard-step-indicator {
  flex: 1;
  height: 3px;
  background: var(--bg-elevated);
  border-radius: 2px;
  transition: background 0.3s;
}

.wizard-step-indicator.active {
  background: var(--rose);
}

.wizard-step-indicator.completed {
  background: var(--green);
}

.wizard-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.wizard-subtitle {
  color: var(--text-secondary);
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

.wizard-actions {
  display: flex;
  gap: 1rem;
  margin-top: 2rem;
}

.wizard-actions .btn {
  flex: 1;
}

/* ---- UPLOAD AREA ---- */
.upload-area {
  border: 2px dashed rgba(232, 93, 117, 0.2);
  border-radius: 16px;
  padding: 2.5rem 1.5rem;
  text-align: center;
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  overflow: hidden;
}

.upload-area:hover {
  border-color: var(--rose);
  background: var(--rose-glow);
}

.upload-area.has-file {
  border-color: var(--green);
  border-style: solid;
}

.upload-icon {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.upload-text {
  color: var(--text-secondary);
  font-size: 0.85rem;
}

.upload-text strong {
  color: var(--rose);
}

.upload-preview {
  width: 100%;
  max-height: 300px;
  object-fit: cover;
  border-radius: 12px;
}

.upload-preview-video {
  width: 100%;
  max-height: 250px;
  border-radius: 12px;
  background: var(--bg-card);
}

.upload-remove {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background: rgba(0,0,0,0.7);
  color: white;
  border: none;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- VIDEO UPLOAD SLOTS ---- */
.video-slots {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.video-slot {
  background: var(--bg-card);
  border: 1px solid var(--rose-dim);
  border-radius: 16px;
  padding: 1.5rem;
  transition: border-color 0.2s;
}

.video-slot:hover {
  border-color: rgba(232, 93, 117, 0.2);
}

.video-slot-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.video-slot-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--text-secondary);
  flex-shrink: 0;
}

.video-slot-dot.recording { background: var(--rose); animation: rec 1.5s ease-in-out infinite; }
.video-slot-dot.uploaded { background: var(--green); }

@keyframes rec {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}

.video-slot-prompt {
  font-size: 0.9rem;
  color: var(--text);
  flex: 1;
}

.video-slot-time {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

.video-slot-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.75rem;
}

.video-slot-upload {
  flex: 1;
}

.video-slot-complete {
  border-color: rgba(72, 199, 142, 0.35);
}

.video-slot-subprompt {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.5rem;
  font-style: italic;
}

/* ---- VIDEO PROGRESS BAR (per slot upload) ---- */
.upload-progress-bar {
  height: 4px;
  background: var(--rose-dim);
  border-radius: 4px;
  overflow: hidden;
  margin-top: 0.75rem;
}

.upload-progress-fill {
  height: 100%;
  background: var(--rose);
  border-radius: 4px;
  transition: width 0.3s ease;
  width: 0%;
}

/* ---- VIDEO PROGRESS INDICATOR (wizard step 3) ---- */
.video-progress-bar-container {
  margin-bottom: 1.25rem;
}

.video-progress-label {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-bottom: 0.4rem;
  text-align: center;
}

.video-progress-track {
  height: 6px;
  background: var(--rose-dim);
  border-radius: 6px;
  overflow: hidden;
}

.video-progress-fill {
  height: 100%;
  background: var(--rose);
  border-radius: 6px;
  transition: width 0.4s ease;
}

/* ---- DISCOVERY FEED ---- */
.discover-container {
  padding: 1.5rem 0 6rem;
}

.discover-empty {
  text-align: center;
  padding: 4rem 1rem;
}

.discover-empty-icon {
  font-size: 4rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.discover-empty h3 {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem;
  margin-bottom: 0.5rem;
}

.discover-empty p {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

/* Profile Card */
.profile-card {
  background: var(--bg-card);
  border-radius: 20px;
  overflow: hidden;
  border: 1px solid var(--rose-dim);
  animation: cardIn 0.3s ease-out;
}

@keyframes cardIn {
  from { opacity: 0; transform: scale(0.96) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.profile-card-photo {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  background: var(--bg-elevated);
}

.profile-card-photo-placeholder {
  width: 100%;
  aspect-ratio: 3/4;
  background: linear-gradient(135deg, var(--bg-elevated), var(--bg-card));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 4rem;
  color: var(--text-secondary);
  opacity: 0.3;
}

.profile-card-info {
  padding: 1.5rem;
}

.profile-card-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
}

.profile-card-age {
  font-family: 'DM Sans', sans-serif;
  font-size: 1.1rem;
  color: var(--text-secondary);
  font-weight: 400;
}

.profile-card-location {
  color: var(--text-secondary);
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.profile-card-bio {
  color: var(--warm-dim);
  font-size: 0.9rem;
  margin-top: 0.75rem;
  line-height: 1.6;
}

/* Video Section in Card */
.profile-card-videos {
  padding: 0 1.5rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.profile-video-item {
  background: var(--bg-elevated);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  transition: background 0.2s;
}

.profile-video-item:hover {
  background: var(--rose-glow);
}

.profile-video-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--rose);
  flex-shrink: 0;
}

.profile-video-label {
  font-size: 0.82rem;
  color: var(--text);
  flex: 1;
}

.profile-video-play {
  font-size: 0.75rem;
  color: var(--text-secondary);
}

/* Action Buttons */
.discover-actions {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  padding: 1.25rem 2rem 2rem;
  background: linear-gradient(to top, var(--bg-deep) 60%, transparent);
  z-index: 100;
}

.action-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  border: 2px solid;
  background: var(--bg-card);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  transition: all 0.2s;
}

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

.action-btn-skip {
  border-color: rgba(158, 147, 153, 0.3);
  color: var(--text-secondary);
}
.action-btn-skip:hover {
  border-color: var(--text-secondary);
  background: rgba(158, 147, 153, 0.1);
}

.action-btn-flower {
  border-color: rgba(212, 168, 83, 0.3);
  color: var(--accent-gold);
}
.action-btn-flower:hover {
  border-color: var(--accent-gold);
  background: rgba(212, 168, 83, 0.1);
  transform: scale(1.05);
}

.action-btn-like {
  border-color: rgba(232, 93, 117, 0.3);
  color: var(--rose);
  width: 70px;
  height: 70px;
  font-size: 1.6rem;
}
.action-btn-like:hover {
  border-color: var(--rose);
  background: var(--rose-glow);
  transform: scale(1.05);
}

/* ---- MATCH NOTIFICATION ---- */
.match-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 13, 0.9);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 200;
  animation: fadeIn 0.3s;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

.match-modal {
  text-align: center;
  padding: 3rem 2rem;
  animation: popIn 0.4s ease-out;
}

@keyframes popIn {
  from { transform: scale(0.8); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.match-emoji {
  font-size: 4rem;
  margin-bottom: 1rem;
}

.match-title {
  font-family: 'Playfair Display', serif;
  font-size: 2rem;
  color: var(--rose);
  margin-bottom: 0.5rem;
}

.match-subtitle {
  color: var(--text-secondary);
  margin-bottom: 2rem;
}

/* ---- MATCHES LIST ---- */
.matches-container {
  padding: 1.5rem 0 2rem;
}

.matches-header {
  font-family: 'Playfair Display', serif;
  font-size: 1.6rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
}

.matches-empty {
  text-align: center;
  padding: 4rem 1rem;
  color: var(--text-secondary);
}

.matches-empty-icon {
  font-size: 3rem;
  margin-bottom: 1rem;
  opacity: 0.3;
}

.match-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem;
  background: var(--bg-card);
  border-radius: 14px;
  margin-bottom: 0.75rem;
  border: 1px solid var(--rose-dim);
  transition: border-color 0.2s;
}

.match-item:hover {
  border-color: rgba(232, 93, 117, 0.2);
}

.match-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--rose-dim);
  flex-shrink: 0;
}

.match-avatar-placeholder {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--rose-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--rose);
  flex-shrink: 0;
}

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

.match-name {
  font-weight: 600;
  font-size: 1rem;
}

.match-detail {
  font-size: 0.8rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

.match-time {
  font-size: 0.7rem;
  color: var(--text-secondary);
  text-align: right;
}

/* ---- MY PROFILE ---- */
.my-profile-container {
  padding: 1.5rem 0 2rem;
}

.my-profile-header {
  text-align: center;
  margin-bottom: 2rem;
}

.my-profile-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid var(--rose-dim);
  margin-bottom: 1rem;
}

.my-profile-photo-placeholder {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--rose-glow);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  color: var(--rose);
  margin: 0 auto 1rem;
}

.my-profile-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
}

.my-profile-location {
  color: var(--text-secondary);
  font-size: 0.9rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin: 1.5rem 0;
}

.stat-card {
  background: var(--bg-card);
  border-radius: 14px;
  padding: 1.25rem 1rem;
  text-align: center;
  border: 1px solid var(--rose-dim);
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--rose);
}

.stat-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-secondary);
  margin-top: 0.25rem;
}

.profile-section {
  background: var(--bg-card);
  border-radius: 16px;
  padding: 1.5rem;
  margin-bottom: 1rem;
  border: 1px solid var(--rose-dim);
}

.profile-section-title {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}

.profile-section p {
  font-size: 0.9rem;
  color: var(--warm-dim);
  line-height: 1.6;
}

/* ---- VIDEO PLAYER MODAL ---- */
.video-modal {
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 13, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  padding: 1rem;
}

.video-modal video {
  max-width: 100%;
  max-height: 80vh;
  border-radius: 16px;
}

.video-modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: rgba(255,255,255,0.1);
  border: none;
  color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---- LOADING ---- */
.loading {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem;
  color: var(--text-secondary);
  gap: 0.5rem;
}

.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid var(--rose-dim);
  border-top-color: var(--rose);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

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

/* ---- TOAST ---- */
.toast {
  position: fixed;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--bg-elevated);
  color: var(--text);
  padding: 0.85rem 1.5rem;
  border-radius: 12px;
  font-size: 0.85rem;
  box-shadow: 0 8px 30px rgba(0,0,0,0.5);
  border: 1px solid var(--rose-dim);
  z-index: 500;
  transition: transform 0.3s ease;
  max-width: 90%;
  text-align: center;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
}

.toast.error {
  border-color: var(--danger);
}

.toast.success {
  border-color: var(--green);
}

/* ---- RESPONSIVE ---- */
@media (max-width: 480px) {
  .app-nav {
    padding: 0.75rem 1rem;
  }

  .nav-links a {
    padding: 0.4rem 0.6rem;
    font-size: 0.72rem;
  }

  .app-content {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  /* Toast: position above bottom nav on mobile */
  .toast {
    bottom: 90px;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
  }

  .form-row {
    grid-template-columns: 1fr;
  }

  .action-btn {
    width: 52px;
    height: 52px;
    font-size: 1.2rem;
  }

  .action-btn-like {
    width: 60px;
    height: 60px;
    font-size: 1.4rem;
  }

  .discover-actions {
    padding: 1rem 1.5rem 1.5rem;
    gap: 1rem;
  }

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

  .stats-grid {
    gap: 0.5rem;
  }

  .stat-card {
    padding: 1rem 0.5rem;
  }

  .stat-value {
    font-size: 1.4rem;
  }
}

/* ===== LIFESTYLE SECTION (wizard) ===== */
.lifestyle-section {
  margin-top: 1.5rem;
  padding: 1.25rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
}

.lifestyle-section-header {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-secondary);
  margin-bottom: 0.25rem;
}

.lifestyle-section-optional {
  font-size: 0.7rem;
  font-weight: 400;
  text-transform: lowercase;
  letter-spacing: 0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  padding: 0.15rem 0.5rem;
  color: var(--text-secondary);
}

.lifestyle-section-hint {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin: 0 0 1rem;
}

/* ===== LIFESTYLE BADGES (discovery card & profile) ===== */
.lifestyle-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.75rem;
}

.lifestyle-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.3rem 0.65rem;
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  font-size: 0.75rem;
  color: var(--text-secondary);
  white-space: nowrap;
}

/* =========================================================
   PERSONALITY PROFILE — Prompts, Interests, Dealbreakers,
   Preferences (task #770006)
   ========================================================= */

/* ── Prompt Slots (wizard step 4) ──────────────────────── */

.prompt-slots {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.25rem;
}

.prompt-slot {
  background: var(--bg-card);
  border: 1.5px solid rgba(255,255,255,0.08);
  border-radius: 14px;
  overflow: hidden;
  transition: border-color 0.2s;
}

.prompt-slot:focus-within {
  border-color: var(--rose);
}

.prompt-slot-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.85rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.prompt-slot-num {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  color: var(--rose);
  text-transform: uppercase;
}

.prompt-slot-remove {
  font-size: 0.7rem;
  color: var(--text-secondary);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.2rem 0.4rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.prompt-slot-remove:hover {
  color: #ff6b6b;
  background: rgba(255, 107, 107, 0.12);
}

.prompt-question {
  padding: 0.6rem 0.85rem 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.35;
}

.prompt-answer {
  width: 100%;
  background: transparent;
  border: none;
  outline: none;
  resize: none;
  padding: 0.5rem 0.85rem 0.75rem;
  font-size: 0.88rem;
  color: var(--text-primary);
  font-family: inherit;
  line-height: 1.5;
  min-height: 70px;
  box-sizing: border-box;
}

.prompt-answer::placeholder {
  color: var(--text-secondary);
}

.prompt-empty {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem;
  cursor: pointer;
  color: var(--text-secondary);
  font-size: 0.85rem;
  transition: color 0.2s;
}

.prompt-empty:hover {
  color: var(--rose);
}

.prompt-empty-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 1.5px dashed currentColor;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

/* ── Prompt Picker overlay ──────────────────────────────── */

.prompt-picker {
  background: var(--bg-card);
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 14px;
  margin-bottom: 1rem;
  overflow: hidden;
}

.prompt-picker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.prompt-picker-header span {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-primary);
}

.prompt-picker-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.2rem;
  cursor: pointer;
  padding: 0.1rem 0.3rem;
  line-height: 1;
}

.prompt-picker-close:hover {
  color: var(--text-primary);
}

.prompt-picker-list {
  display: flex;
  flex-direction: column;
  max-height: 260px;
  overflow-y: auto;
  padding: 0.4rem;
  gap: 0.25rem;
}

.prompt-picker-option {
  background: none;
  border: none;
  border-radius: 10px;
  padding: 0.65rem 0.85rem;
  text-align: left;
  font-size: 0.85rem;
  color: var(--text-primary);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.15s, color 0.15s;
  line-height: 1.4;
}

.prompt-picker-option:hover {
  background: rgba(255, 90, 120, 0.12);
  color: var(--rose);
}

/* ── Interest / Dealbreaker tags (wizard toggles) ───────── */

.interest-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.5rem;
}

.interest-count {
  font-size: 0.78rem;
  color: var(--text-secondary);
  margin-bottom: 0.15rem;
}

.interest-tag,
.dealbreaker-tag {
  padding: 0.45rem 0.85rem;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  border: 1.5px solid rgba(255,255,255,0.14);
  background: var(--bg-card);
  color: var(--text-secondary);
  transition: background 0.15s, border-color 0.15s, color 0.15s, transform 0.1s;
  user-select: none;
}

.interest-tag:hover,
.dealbreaker-tag:hover {
  border-color: var(--rose);
  color: var(--rose);
}

.interest-tag.selected,
.dealbreaker-tag.selected {
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
}

.interest-tag:active,
.dealbreaker-tag:active {
  transform: scale(0.94);
}

/* ── Read-only tag displays (profile & discover views) ─── */

.interest-tag-display,
.dealbreaker-tag-display {
  display: inline-block;
  padding: 0.3rem 0.75rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 500;
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.1);
  color: var(--text-secondary);
  text-transform: capitalize;
}

.dealbreaker-tag-display {
  border-color: rgba(255,107,107,0.3);
  color: #ff9999;
  background: rgba(255,107,107,0.06);
}

/* ── Relationship type grid (wizard step 7) ─────────────── */

.rel-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.rel-type-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35rem;
  padding: 0.85rem 0.5rem;
  border-radius: 14px;
  border: 1.5px solid rgba(255,255,255,0.1);
  background: var(--bg-card);
  cursor: pointer;
  transition: border-color 0.15s, background 0.15s, transform 0.1s;
  font-family: inherit;
}

.rel-type-btn:hover {
  border-color: var(--rose);
  background: rgba(255, 90, 120, 0.08);
}

.rel-type-btn.selected {
  border-color: var(--rose);
  background: rgba(255, 90, 120, 0.16);
}

.rel-type-btn:active {
  transform: scale(0.96);
}

.rel-type-emoji {
  font-size: 1.5rem;
  line-height: 1;
}

.rel-type-label {
  font-size: 0.78rem;
  font-weight: 500;
  color: var(--text-primary);
  text-align: center;
  line-height: 1.2;
}

/* ── Preference sections (wizard step 7 structure) ──────── */

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

.pref-section-title {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

/* ── Relationship badge on discover cards ───────────────── */

.rel-badge {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 600;
  background: rgba(255, 90, 120, 0.15);
  border: 1px solid rgba(255, 90, 120, 0.35);
  color: var(--rose);
  margin-bottom: 0.35rem;
}

/* ── Profile view: prompts section ─────────────────────── */

.profile-prompts-section {
  margin-top: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.profile-prompt-card {
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 14px;
  padding: 0.85rem 1rem;
}

.my-prompt-card {
  border-color: rgba(255, 90, 120, 0.2);
}

.profile-prompt-q {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--rose);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  line-height: 1.3;
}

.profile-prompt-a {
  font-size: 0.92rem;
  color: var(--text-primary);
  line-height: 1.55;
}

/* ── Profile view: interests & dealbreakers rows ────────── */

.profile-interests-section {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.profile-interests-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

/* ── Preferences summary (my profile view) ──────────────── */

.prefs-summary {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-top: 0.25rem;
}

.pref-row {
  font-size: 0.85rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

/* ── Mobile adjustments for new components ──────────────── */
@media (max-width: 480px) {
  .rel-type-grid {
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
  }

  .rel-type-btn {
    padding: 0.7rem 0.4rem;
  }

  .rel-type-emoji {
    font-size: 1.3rem;
  }

  .rel-type-label {
    font-size: 0.72rem;
  }

  .prompt-picker-list {
    max-height: 200px;
  }

  .interest-tag,
  .dealbreaker-tag {
    font-size: 0.75rem;
    padding: 0.4rem 0.7rem;
  }
}

/* ============================================================
   2FA / TOTP Styles
   ============================================================ */

.totp-box {
  text-align: center;
}

.totp-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}

.totp-title {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  color: var(--text-primary);
  margin: 0 0 0.5rem;
}

.totp-subtitle {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.totp-instruction {
  font-size: 0.9rem;
  color: var(--text-secondary);
  margin: 1.25rem 0 0.75rem;
}

/* QR code */
.totp-qr {
  display: block;
  width: 180px;
  height: 180px;
  margin: 0 auto 0.75rem;
  border-radius: 12px;
  border: 3px solid var(--border);
  background: #fff;
}

/* Manual secret key */
.totp-manual {
  margin: 0.75rem 0;
  font-size: 0.85rem;
  color: var(--text-secondary);
  text-align: left;
}

.totp-manual summary {
  cursor: pointer;
  color: var(--primary);
  font-size: 0.82rem;
  text-align: center;
}

.totp-secret-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.5rem;
  background: var(--bg-elevated, #1E1A21);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  color: var(--warm, #F5E6D3);
}

.totp-secret {
  font-family: monospace;
  font-size: 0.85rem;
  word-break: break-all;
  flex: 1;
  letter-spacing: 0.08em;
}

.btn-icon {
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.1rem;
  padding: 0.2rem;
  flex-shrink: 0;
}

/* TOTP code input */
.totp-input {
  text-align: center;
  font-size: 1.5rem;
  letter-spacing: 0.25em;
  font-weight: 600;
}

/* Backup codes */
.backup-codes-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.5rem;
  margin: 1.25rem 0 1rem;
}

.backup-code {
  background: var(--bg-elevated, #1E1A21);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 0.5rem 0.75rem;
  font-family: monospace;
  font-size: 0.88rem;
  letter-spacing: 0.08em;
  text-align: center;
  font-weight: 500;
  color: var(--warm, #F5E6D3);
}

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

/* Backup hint link */
.totp-backup-hint {
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 1rem;
}

.link-btn {
  background: none;
  border: none;
  padding: 0;
  color: var(--primary);
  cursor: pointer;
  font-size: inherit;
  font-family: inherit;
  text-decoration: underline;
}

@media (max-width: 480px) {
  .backup-codes-grid {
    grid-template-columns: 1fr;
  }

  .totp-qr {
    width: 150px;
    height: 150px;
  }
}

/* ================================================================
   VIDEO PHASE 2 — IN-BROWSER RECORDING + FEED PLAYBACK
   ================================================================ */

/* ---- RECORD / UPLOAD AREA in wizard video slots ---- */
.video-slot-record-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  padding: 0.5rem 0;
}

.video-slot-or {
  font-size: 0.78rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

.btn-record {
  background: linear-gradient(135deg, #e85d75, #c0394f);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 0.55rem 1.1rem;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

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

.btn-record:active {
  transform: scale(0.96);
}

.btn-danger {
  background: rgba(220, 53, 69, 0.12);
  color: #dc3545;
  border: 1px solid rgba(220, 53, 69, 0.3);
  border-radius: 8px;
  padding: 0.45rem 0.9rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
}

.btn-danger:hover {
  background: rgba(220, 53, 69, 0.22);
}

/* ---- RECORDER CONTAINER (live preview inside the slot) ---- */
.recorder-container {
  border-radius: 12px;
  background: #0a0a0a;
  overflow: hidden;
  margin-top: 0.5rem;
  border: 2px solid rgba(232, 93, 117, 0.4);
}

.recorder-preview {
  width: 100%;
  max-height: 260px;
  object-fit: cover;
  display: block;
  border-radius: 10px 10px 0 0;
  background: #111;
}

.recorder-controls {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  background: rgba(0, 0, 0, 0.7);
  flex-wrap: wrap;
}

.recorder-timer {
  font-size: 1rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: rgba(232, 93, 117, 0.25);
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  min-width: 3.2rem;
  text-align: center;
  border: 1px solid rgba(232, 93, 117, 0.4);
}

.recorder-timer.maxed {
  color: #ff4d6d;
  border-color: #ff4d6d;
  animation: rec 1s ease-in-out infinite;
}

/* ---- VIDEO THUMBNAIL WRAPPER inside upload slot ---- */
.video-thumb-wrap {
  position: relative;
  width: 100%;
  border-radius: 10px;
  overflow: hidden;
  background: var(--bg-elevated);
  background-size: cover;
  background-position: center;
  min-height: 140px;
  margin-bottom: 0.5rem;
}

.video-thumb-wrap video.upload-preview-video {
  width: 100%;
  max-height: 200px;
  display: block;
  border-radius: 10px;
}

/* ================================================================
   DISCOVERY FEED — VIDEO CARDS
   ================================================================ */

/* Videos section header */
.profiles-videos-header {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0 1.5rem 0.6rem;
  margin-top: 0.25rem;
}

/* Overrides the old flex column so cards sit side-by-side on wider screens */
.profile-card-videos {
  gap: 0.75rem;
}

/* Individual video card inside profile */
.profile-video-card {
  border-radius: 14px;
  overflow: hidden;
  background: #0c0c0c;
  border: 1px solid var(--rose-dim);
  flex-shrink: 0;
}

/* Wrapper keeps 9:16-ish aspect for portrait video */
.profile-video-player-wrap {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 fallback; portrait vids will letterbox */
  background: #000;
  overflow: hidden;
}

.profile-video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Semi-transparent overlay with play button */
.profile-video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.25);
  cursor: pointer;
  transition: background 0.2s;
}

.profile-video-overlay:hover {
  background: rgba(0, 0, 0, 0.35);
}

.profile-video-overlay:hover .profile-video-play-btn {
  background: rgba(0, 0, 0, 0.75);
  transform: scale(1.08);
}

.profile-video-overlay.playing {
  background: transparent;
}

.profile-video-overlay.playing:hover {
  background: rgba(0, 0, 0, 0.15);
}

.profile-video-play-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.15s, background 0.2s;
  pointer-events: none;
  flex-shrink: 0;
}

.profile-video-play-btn svg {
  width: 28px;
  height: 28px;
  fill: rgba(255, 255, 255, 0.95);
}

.profile-video-overlay.playing .profile-video-play-btn {
  opacity: 0;
}

.profile-video-overlay.playing:hover .profile-video-play-btn {
  opacity: 0.7;
}

/* Sound toggle hint below the video player */
.profile-video-sound-hint {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem 0.6rem;
  background: var(--bg-elevated);
}

.profile-video-sound-hint .profile-video-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.profile-video-sound-btn {
  background: none;
  border: 1px solid var(--rose-dim);
  border-radius: 20px;
  padding: 0.2rem 0.6rem;
  font-size: 0.72rem;
  color: var(--text-secondary);
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s;
  white-space: nowrap;
  flex-shrink: 0;
}

.profile-video-sound-btn:hover {
  border-color: var(--rose);
  color: var(--rose);
}

/* ---- Mobile tweaks ---- */
@media (max-width: 480px) {
  .video-slot-record-area {
    flex-direction: column;
    align-items: stretch;
  }

  .video-slot-or {
    text-align: center;
  }

  .btn-record {
    justify-content: center;
  }

  .recorder-preview {
    max-height: 200px;
  }

  .profile-video-play-btn {
    width: 40px;
    height: 40px;
    font-size: 1.1rem;
  }

  .conv-container {
    max-width: 100%;
  }

  .conv-messages {
    padding: 0.75rem;
  }

  .msg-bubble {
    max-width: 85%;
    padding: 0.6rem 0.9rem;
    font-size: 0.875rem;
  }
}

/* ---- NAV BADGE ---- */
.nav-link-rel {
  position: relative;
}

.nav-badge {
  position: absolute;
  top: 2px;
  right: 2px;
  background: var(--rose);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  line-height: 1;
  transform: translate(50%, -50%);
}

/* ---- UNREAD DOT (inbox) ---- */
.unread-dot {
  background: var(--rose);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: 100px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* ---- CONVERSATION LAYOUT ---- */
.conv-container {
  display: flex;
  flex-direction: column;
  height: calc(100vh - 70px);
  max-width: 700px;
  margin: 0 auto;
  width: 100%;
  padding: 0;
}

.conv-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.conv-back {
  color: var(--rose);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 500;
  flex-shrink: 0;
}

.conv-back:hover {
  color: var(--rose-soft);
}

.conv-header-name {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-weight: 600;
  font-size: 1rem;
}

.conv-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  object-fit: cover;
}

.conv-avatar-placeholder {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--rose-glow);
  color: var(--rose);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
  font-weight: 700;
}

.conv-messages {
  flex: 1;
  overflow-y: auto;
  padding: 1rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

/* ---- MESSAGE BUBBLES ---- */
.msg-bubble-wrap {
  display: flex;
  flex-direction: column;
  margin-bottom: 0.1rem;
}

.msg-bubble-wrap.mine {
  align-items: flex-end;
}

.msg-bubble-wrap.theirs {
  align-items: flex-start;
}

.msg-bubble {
  max-width: 72%;
  padding: 0.65rem 1rem;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.45;
  word-break: break-word;
}

.bubble-mine {
  background: var(--rose);
  color: #fff;
  border-bottom-right-radius: 4px;
}

.bubble-theirs {
  background: var(--bg-elevated);
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}

.msg-time {
  font-size: 0.65rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
  padding: 0 0.25rem;
}

/* ---- CONV INPUT BAR ---- */
.conv-input-bar {
  display: flex;
  gap: 0.5rem;
  padding: 0.75rem 1.25rem 1rem;
  border-top: 1px solid var(--border);
  background: var(--bg-deep);
  flex-shrink: 0;
}

.conv-input {
  flex: 1;
  background: var(--bg-input);
  border: 1px solid var(--border);
  border-radius: 100px;
  color: var(--text);
  font-size: 0.9rem;
  padding: 0.6rem 1rem;
  outline: none;
  font-family: inherit;
  transition: border-color 0.2s;
}

.conv-input:focus {
  border-color: var(--rose);
}

.conv-input::placeholder {
  color: var(--text-secondary);
}

.conv-send-btn {
  border-radius: 100px;
  padding: 0.6rem 1.25rem;
  font-size: 0.875rem;
  flex-shrink: 0;
}

/* ============================================================
   ONBOARDING POLISH — Welcome Overlay
   ============================================================ */

.welcome-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: fadeIn 0.25s ease;
}

.welcome-modal {
  background: var(--bg-elevated);
  border-radius: 20px;
  padding: 2rem 1.75rem 1.75rem;
  max-width: 400px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.5);
  animation: slideUp 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

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

.welcome-heart {
  font-size: 3rem;
  margin-bottom: 0.5rem;
  line-height: 1;
}

.welcome-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.4rem;
}

.welcome-subtitle {
  font-size: 0.95rem;
  color: var(--text-secondary);
  margin: 0 0 1.5rem;
  line-height: 1.5;
}

.welcome-features {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 1.75rem;
}

.welcome-feature {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
}

.welcome-feature-icon {
  font-size: 1.4rem;
  line-height: 1;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.welcome-feature-title {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.15rem;
}

.welcome-feature-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.welcome-privacy-note {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  background: rgba(100, 100, 255, 0.07);
  border: 1px solid rgba(100, 100, 255, 0.15);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
  text-align: left;
  font-size: 0.8rem;
  color: var(--text-secondary);
  line-height: 1.45;
}

.welcome-privacy-icon {
  font-size: 1.1rem;
  flex-shrink: 0;
  margin-top: 0.05rem;
}

.welcome-privacy-note strong {
  color: var(--text-primary);
  font-size: 0.82rem;
}

.welcome-cta {
  width: 100%;
  font-size: 1rem;
  padding: 0.8rem 1.5rem;
  border-radius: 14px;
}

/* ============================================================
   FIRST-TIME TIPS — Heart / Flower education overlay
   ============================================================ */

.first-tip-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9900;
  padding: 1.5rem;
  animation: fadeIn 0.2s ease;
}

.first-tip-modal {
  background: var(--bg-elevated);
  border-radius: 20px;
  padding: 2rem 1.75rem 1.5rem;
  max-width: 360px;
  width: 100%;
  text-align: center;
}

.first-tip-emoji {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.first-tip-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 0.75rem;
}

.first-tip-body {
  font-size: 0.88rem;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0 0 1.5rem;
}

.first-tip-body strong {
  color: var(--text-primary);
}

/* ============================================================
   ONBOARDING POLISH — Completion Nudge Banner (Discover)
   ============================================================ */

.completion-nudge-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  background: var(--bg-elevated);
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 14px;
  padding: 0.75rem 1rem;
  margin-bottom: 1rem;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.completion-nudge-banner:hover {
  background: var(--bg-card, #1a1a2e);
  border-color: rgba(255, 90, 95, 0.35);
}

.completion-nudge-left {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex: 1;
  min-width: 0;
}

/* Mini ring */
.completion-ring-mini {
  position: relative;
  width: 44px;
  height: 44px;
  flex-shrink: 0;
}

.ring-svg-mini {
  width: 44px;
  height: 44px;
  transform: rotate(-90deg);
}

.ring-bg-mini {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 3.5;
}

.ring-fill-mini {
  fill: none;
  stroke: var(--rose);
  stroke-width: 3.5;
  stroke-linecap: round;
  transition: stroke-dasharray 0.6s ease;
}

.ring-pct-mini {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1;
}

.completion-nudge-text {
  min-width: 0;
}

.completion-nudge-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 0.1rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.completion-nudge-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.completion-nudge-arrow {
  font-size: 1.1rem;
  color: var(--text-secondary);
  flex-shrink: 0;
}

/* ============================================================
   ONBOARDING POLISH — Completion Ring (/me profile page)
   ============================================================ */

.completion-ring-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.5rem;
}

.completion-ring-svg {
  width: 80px;
  height: 80px;
  transform: rotate(-90deg);
  display: block;
}

.ring-bg {
  fill: none;
  stroke: rgba(255, 255, 255, 0.08);
  stroke-width: 4;
}

.ring-fill {
  fill: none;
  stroke-width: 4;
  stroke-linecap: round;
  transition: stroke-dasharray 0.6s ease;
}

.ring-fill.ring-fill--green { stroke: var(--green); }
.ring-fill.ring-fill--gold  { stroke: var(--accent-gold, #f0b429); }
.ring-fill.ring-fill--rose  { stroke: var(--rose); }

.ring-pct {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-primary);
}

.completion-ring-label {
  font-size: 0.78rem;
  color: var(--text-secondary);
  text-align: center;
}

.completion-ring-link {
  font-size: 0.8rem;
  color: var(--rose);
  cursor: pointer;
  text-decoration: none;
  font-weight: 600;
  transition: opacity 0.15s;
}

.completion-ring-link:hover {
  opacity: 0.75;
}

/* ============================================================
   ONBOARDING POLISH — Wizard Step Labels & Skip Bar
   ============================================================ */

/* Step label beneath the progress dots */
.wizard-step-label {
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-secondary);
  margin-top: 0.35rem;
  letter-spacing: 0.02em;
}

/* "Finish later" skip bar shown on optional wizard steps 4-7 */
.wizard-skip-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.85rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.06);
  border-radius: 10px;
  margin-bottom: 1rem;
}

.wizard-skip-label {
  font-size: 0.8rem;
  color: var(--text-secondary);
}

.wizard-skip-btn {
  font-size: 0.82rem;
  color: var(--text-secondary);
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  padding: 0.28rem 0.7rem;
  cursor: pointer;
  transition: color 0.15s ease, border-color 0.15s ease;
  white-space: nowrap;
}

.wizard-skip-btn:hover {
  color: var(--text-primary);
  border-color: rgba(255, 255, 255, 0.28);
}

/* ============================================================
   ONBOARDING POLISH — Progress dot tooltips
   ============================================================ */

.wizard-step-dot[title] {
  cursor: pointer;
  position: relative;
}

/* ---- Mobile tweaks for onboarding polish ---- */
@media (max-width: 480px) {
  .welcome-modal {
    padding: 1.5rem 1.25rem 1.25rem;
  }

  .welcome-title {
    font-size: 1.35rem;
  }

  .completion-nudge-banner {
    padding: 0.65rem 0.85rem;
  }

  .completion-ring-svg {
    width: 68px;
    height: 68px;
  }

  .wizard-skip-bar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.4rem;
  }
}

/* ---- GENERIC MODAL ---- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 13, 0.88);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 300;
  animation: fadeIn 0.2s;
  padding: 1rem;
}

.modal-box {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
  width: 100%;
  max-width: 420px;
  animation: popIn 0.25s ease-out;
}

/* ---- BOTTOM NAVIGATION (Mobile Only) ---- */
.app-bottom-nav {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  height: calc(70px + env(safe-area-inset-bottom, 0px));
  padding-bottom: env(safe-area-inset-bottom, 0px);
  background: rgba(12, 10, 13, 0.95);
  border-top: 1px solid var(--rose-dim);
  backdrop-filter: blur(20px);
  flex-direction: row;
  justify-content: space-around;
  align-items: center;
  z-index: 99;
  gap: 0;
}

.bottom-nav-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.25rem;
  flex: 1;
  height: 100%;
  text-decoration: none;
  color: var(--text-secondary);
  transition: all 0.2s;
  position: relative;
  font-size: 0.7rem;
  min-width: 0;
}

.bottom-nav-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.bottom-nav-label {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
}

.bottom-nav-tab:hover {
  color: var(--text);
  background: rgba(232, 93, 117, 0.05);
}

.bottom-nav-tab.active {
  color: var(--rose);
  background: rgba(232, 93, 117, 0.1);
}

.bottom-nav-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: var(--rose);
  color: white;
  font-size: 0.5rem;
  font-weight: 700;
  padding: 0.2rem 0.4rem;
  border-radius: 100px;
  min-width: 16px;
  text-align: center;
  line-height: 1;
}

/* ---- RESPONSIVE: Show Bottom Nav on Mobile ---- */
@media (max-width: 480px) {
  /* Show bottom nav on mobile */
  .app-bottom-nav {
    display: flex;
  }

  /* Hide desktop nav links on mobile, keep logo only */
  .nav-links {
    display: none;
  }

  .nav-user {
    display: none;
  }

  /* Adjust top nav for mobile (logo centered or left-aligned) */
  .app-nav {
    justify-content: flex-start;
    padding: 0.75rem 1rem;
  }

  /* Add bottom padding to content to prevent overlap with bottom nav */
  .app-content {
    padding-bottom: 100px; /* Fallback for browsers without env() support */
    padding-bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  }

  /* Position discover action buttons ABOVE the bottom nav so they're fully visible */
  .discover-actions {
    bottom: 90px; /* Fallback for browsers without env() support */
    bottom: calc(70px + env(safe-area-inset-bottom, 0px) + 16px);
    z-index: 110;
  }

  /* Increase discover card bottom padding to account for action buttons + bottom nav */
  .discover-container {
    padding-bottom: 13rem;
  }

  /* Adjust wizard progress bar for bottom nav */
  .wizard-progress {
    margin-bottom: 1rem;
  }

  /* Conversation layout: account for bottom nav height */
  .conv-container {
    height: calc(100vh - 140px); /* Fallback: top nav + bottom nav */
    height: calc(100vh - 70px - 70px - env(safe-area-inset-bottom, 0px));
  }
}

/* ---- Tablet/Desktop: Hide Bottom Nav ---- */
@media (min-width: 481px) {
  .app-bottom-nav {
    display: none !important;
  }

  .app-content {
    padding-bottom: initial;
  }
}

/* ===== LIVENESS VERIFICATION ===== */

/* Status card in wizard step 3 */
.liveness-status {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  background: var(--surface);
}

.liveness-status.liveness-verified {
  background: rgba(34, 197, 94, 0.08);
  border-color: rgba(34, 197, 94, 0.3);
}

.liveness-status.liveness-pending {
  background: rgba(232, 93, 117, 0.07);
  border-color: rgba(232, 93, 117, 0.3);
}

.liveness-check {
  font-size: 1.4rem;
  color: rgb(34, 197, 94);
  font-weight: 700;
  flex-shrink: 0;
}

.liveness-icon {
  font-size: 1.6rem;
  flex-shrink: 0;
}

.liveness-status-title {
  font-weight: 600;
  font-size: 0.88rem;
  color: var(--text);
}

.liveness-status-challenge {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--rose);
  margin-top: 0.1rem;
}

.liveness-status-sub {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
}

/* Liveness badge on discovery cards */
/* ── Compatibility Score Badge ─────────────────────────────────────────────── */
.compatibility-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  background: linear-gradient(135deg, rgba(233, 30, 99, 0.18), rgba(194, 24, 91, 0.12));
  border: 1px solid rgba(233, 30, 99, 0.35);
  border-radius: 999px;
  padding: 0.22rem 0.65rem;
  margin: 0.25rem 0 0.1rem;
  width: fit-content;
}
.compatibility-icon {
  font-size: 0.65rem;
  color: var(--rose);
  line-height: 1;
}
.compatibility-pct {
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--rose);
  letter-spacing: 0.01em;
}
.compatibility-label {
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--rose);
  opacity: 0.8;
}

.liveness-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  font-weight: 600;
  color: rgb(34, 197, 94);
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  border-radius: 999px;
  padding: 0.2rem 0.55rem;
  margin-top: 0.4rem;
}

/* Liveness challenge modal */
.liveness-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  backdrop-filter: blur(2px);
}

.liveness-modal-card {
  background: var(--surface);
  border-radius: 20px;
  padding: 2rem 1.75rem;
  max-width: 360px;
  width: 100%;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border);
}

.liveness-modal-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 1.25rem;
}

.liveness-modal-emoji {
  font-size: 3.5rem;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.liveness-modal-challenge {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--rose);
  margin-bottom: 0.9rem;
}

.liveness-modal-desc {
  font-size: 0.82rem;
  color: var(--text-secondary);
  line-height: 1.5;
  margin-bottom: 1.5rem;
}

.liveness-modal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

/* ===== PUSH NOTIFICATIONS ===== */

/* Bell icon in nav */
.nav-bell {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.3rem;
  color: var(--text);
  font-size: 1.1rem;
  border-radius: 8px;
  transition: background 0.15s;
  flex-shrink: 0;
}

.nav-bell:hover {
  background: var(--surface);
}

.nav-bell-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  background: var(--rose);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  box-sizing: border-box;
}

/* Notification dropdown */
.notif-dropdown {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 320px;
  max-height: 480px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.35);
  overflow: hidden;
  z-index: 200;
  display: flex;
  flex-direction: column;
}

.notif-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
  flex-shrink: 0;
}

.notif-dropdown-title {
  font-weight: 700;
  font-size: 0.9rem;
}

.notif-dropdown-mark-all {
  font-size: 0.75rem;
  color: var(--rose);
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}

.notif-dropdown-mark-all:hover {
  text-decoration: underline;
}

.notif-dropdown-list {
  overflow-y: auto;
  flex: 1;
}

.notif-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  cursor: pointer;
  border-bottom: 1px solid var(--border);
  transition: background 0.12s;
  text-decoration: none;
  color: inherit;
}

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

.notif-item:hover {
  background: rgba(255,255,255,0.04);
}

.notif-item.unread {
  background: rgba(239, 68, 68, 0.05);
}

.notif-item.unread:hover {
  background: rgba(239, 68, 68, 0.08);
}

.notif-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.notif-content {
  flex: 1;
  min-width: 0;
}

.notif-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
}

.notif-body {
  font-size: 0.76rem;
  color: var(--text-secondary);
  margin-top: 0.15rem;
  line-height: 1.3;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.notif-time {
  font-size: 0.68rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
}

.notif-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  flex-shrink: 0;
  margin-top: 5px;
}

.notif-empty {
  padding: 2rem 1rem;
  text-align: center;
  color: var(--text-secondary);
  font-size: 0.82rem;
}

/* Permission prompt banner */
.push-permission-banner {
  background: linear-gradient(135deg, rgba(239,68,68,0.12) 0%, rgba(236,72,153,0.12) 100%);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: 12px;
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  animation: fadeIn 0.4s ease;
}

.push-permission-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
  margin-top: 1px;
}

.push-permission-text {
  flex: 1;
}

.push-permission-title {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.2rem;
}

.push-permission-desc {
  font-size: 0.78rem;
  color: var(--text-secondary);
  line-height: 1.4;
}

.push-permission-actions {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.6rem;
  flex-wrap: wrap;
}

/* Notification preferences section */
.notif-pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0.75rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  margin-bottom: 0.5rem;
}

.notif-pref-label {
  font-size: 0.85rem;
  font-weight: 500;
}

.notif-pref-desc {
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 0.1rem;
}

/* Toggle switch */
.toggle-switch {
  position: relative;
  display: inline-block;
  width: 38px;
  height: 22px;
  flex-shrink: 0;
}

.toggle-switch input {
  opacity: 0;
  width: 0;
  height: 0;
  position: absolute;
}

.toggle-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background: var(--border);
  border-radius: 999px;
  transition: background 0.2s;
}

.toggle-slider:before {
  content: '';
  position: absolute;
  height: 16px;
  width: 16px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.toggle-switch input:checked + .toggle-slider {
  background: var(--rose);
}

.toggle-switch input:checked + .toggle-slider:before {
  transform: translateX(16px);
}

/* Bell in bottom nav */
.bottom-nav-tab.notif-tab {
  position: relative;
}

.bottom-nav-bell-badge {
  position: absolute;
  top: 4px;
  right: calc(50% - 16px);
  min-width: 14px;
  height: 14px;
  background: var(--rose);
  color: #fff;
  font-size: 0.6rem;
  font-weight: 700;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  box-sizing: border-box;
}

/* Notification bell nav wrapper */
.nav-bell-wrap {
  position: relative;
}

@keyframes bellShake {
  0%, 100% { transform: rotate(0); }
  20% { transform: rotate(15deg); }
  40% { transform: rotate(-12deg); }
  60% { transform: rotate(8deg); }
  80% { transform: rotate(-5deg); }
}

.nav-bell.has-notifs {
  animation: bellShake 1.2s ease-in-out;
}

@media (max-width: 600px) {
  .notif-dropdown {
    width: calc(100vw - 2rem);
    right: -0.5rem;
  }
}

/* ===== BLOCKING & REPORTING ===== */

/* Safety bar at bottom of discover profile card */
.discover-safety-bar {
  display: flex;
  justify-content: center;
  padding: 0.75rem 1rem 1rem;
  border-top: 1px solid var(--border);
  margin-top: 0.5rem;
}

.safety-link {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  transition: color 0.15s, background 0.15s;
  font-family: inherit;
}

.safety-link:hover {
  color: var(--rose);
  background: var(--rose-dim);
}

/* Conversation header "more" button */
.conv-more-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.25rem;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  margin-left: auto;
  line-height: 1;
  transition: color 0.15s, background 0.15s;
  flex-shrink: 0;
}

.conv-more-btn:hover {
  color: var(--text);
  background: var(--surface);
}

/* Blocked users list row */
.blocked-user-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-bottom: 1px solid var(--border);
  transition: opacity 0.2s;
}

.blocked-user-row:last-child {
  border-bottom: none;
}

/* ===== APP PAGE FOOTER ===== */
.app-page-footer {
  margin-top: 2.5rem;
  padding: 1.5rem 0 0.5rem;
  border-top: 1px solid rgba(232, 93, 117, 0.06);
  text-align: center;
}

.app-page-footer-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.4rem;
}

.app-page-footer-link {
  font-size: 0.75rem;
  color: var(--text-secondary);
  text-decoration: none;
  transition: color 0.2s;
}

.app-page-footer-link:hover {
  color: var(--rose-soft);
}

.app-page-footer-sep {
  font-size: 0.75rem;
  color: var(--text-secondary);
  opacity: 0.5;
}

.app-page-footer-copy {
  font-size: 0.7rem;
  color: var(--text-secondary);
  opacity: 0.6;
}

/* ── MULTI-PHOTO GRID ── */
.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  width: 100%;
  max-width: 360px;
  margin: 0 auto;
}

.photo-slot {
  aspect-ratio: 3/4;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.photo-slot:active {
  transform: scale(0.97);
}

.photo-slot.drag-over {
  outline: 2px solid var(--rose);
  outline-offset: 2px;
  transform: scale(1.02);
}

.photo-slot-filled {
  background: var(--bg-elevated);
}

.photo-slot-empty {
  background: var(--bg-elevated);
  border: 2px dashed var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  transition: border-color 0.2s, background 0.2s;
}

.photo-slot-empty:hover {
  border-color: var(--rose-soft);
  background: var(--rose-dim);
}

.photo-slot-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

.photo-slot-add {
  font-size: 2rem;
  color: var(--text-secondary);
  line-height: 1;
  transition: color 0.2s;
}

.photo-slot-empty:hover .photo-slot-add {
  color: var(--rose-soft);
}

.photo-slot-main-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7) 0%, transparent 100%);
  color: #fff;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 0.35rem 0.4rem 0.25rem;
  text-align: center;
  pointer-events: none;
}

.photo-slot-filled .photo-slot-main-label {
  z-index: 2;
}

.photo-slot-empty .photo-slot-main-label {
  position: static;
  background: none;
  color: var(--text-secondary);
  font-size: 0.6rem;
  padding: 0;
  margin-top: 0.25rem;
}

.photo-slot-delete {
  position: absolute;
  top: 5px;
  right: 5px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(0,0,0,0.65);
  color: #fff;
  border: none;
  font-size: 0.9rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 3;
  transition: background 0.15s;
}

.photo-slot-delete:hover {
  background: var(--rose);
}

.photo-grid-hint {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-secondary);
  margin-top: 0.5rem;
}

/* ── PHOTO CAROUSEL ── */
.photo-carousel-container {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: 16px 16px 0 0;
}

.photo-carousel-container .profile-card-photo,
.photo-carousel-container .carousel-photo {
  border-radius: 0;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: background 0.15s;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.carousel-btn:hover,
.carousel-btn:active {
  background: rgba(0,0,0,0.75);
}

.carousel-btn-prev { left: 6px; }
.carousel-btn-next { right: 6px; }

.carousel-dots {
  position: absolute;
  bottom: 10px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 10;
}

.carousel-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(255,255,255,0.45);
  transition: background 0.2s, transform 0.2s;
}

.carousel-dot.active {
  background: #fff;
  transform: scale(1.3);
}

.carousel-photo-count {
  position: absolute;
  top: 10px;
  right: 10px;
  background: rgba(0,0,0,0.55);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 0.2rem 0.45rem;
  border-radius: 999px;
  z-index: 10;
}

/* ===== PROFILE STATUS BANNERS ===== */
.profile-status-banner {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  padding: 1rem;
  border-radius: 12px;
  margin-bottom: 1rem;
  border: 1px solid;
}

.profile-status-pending {
  background: rgba(212, 168, 83, 0.12);
  border-color: rgba(212, 168, 83, 0.35);
  color: #D4A853;
}

.profile-status-rejected {
  background: rgba(232, 93, 117, 0.12);
  border-color: rgba(232, 93, 117, 0.35);
  color: #E85D75;
}

.profile-status-icon {
  font-size: 1.4rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.profile-status-content {
  flex: 1;
  min-width: 0;
}

.profile-status-title {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.25rem;
}

.profile-status-desc {
  font-size: 0.82rem;
  opacity: 0.85;
  line-height: 1.45;
}

/* ===== PROFILE COMPLETENESS GATING ===== */

/* Badges row on discovery cards */
.profile-card-status-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.4rem;
}

/* "Profile in progress" badge — shown on incomplete profiles */
.profile-in-progress-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(212,168,83,0.12);
  border: 1px solid rgba(212,168,83,0.35);
  color: #D4A853;
}
.profile-in-progress-badge::before { content: '⏳ '; }

/* "Social Verified" badge */
.social-verified-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.68rem;
  font-weight: 600;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(59,130,246,0.1);
  border: 1px solid rgba(59,130,246,0.3);
  color: #60a5fa;
}

/* Locked like/flower buttons */
.action-btn-locked {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.5);
}

/* Connect locked hint bar */
.connect-locked-hint {
  text-align: center;
  font-size: 0.78rem;
  color: var(--rose);
  padding: 0.5rem 1rem;
  cursor: pointer;
  background: rgba(232,93,117,0.06);
  border-top: 1px solid rgba(232,93,117,0.15);
  letter-spacing: 0.01em;
}
.connect-locked-hint:hover { background: rgba(232,93,117,0.1); }

/* Profile completeness checklist in /me view */
.completeness-checklist {
  width: 100%;
  margin-top: 0;
  border-top: 1px solid var(--border);
  padding-top: 1rem;
}
.completeness-checklist-title {
  font-weight: 600;
  font-size: 0.9rem;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.completeness-checklist-subtitle {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
}
.completeness-progress-bar-wrap {
  height: 6px;
  background: var(--surface);
  border-radius: 999px;
  overflow: hidden;
  margin-bottom: 0.75rem;
}
.completeness-progress-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #E85D75, #D4A853);
  transition: width 0.4s ease;
}
.completeness-items {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
.completeness-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  padding: 0.3rem 0.5rem;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text);
  transition: background 0.15s;
}
.completeness-item:hover { background: var(--surface); }
.completeness-item-done {
  color: var(--text-secondary);
  opacity: 0.6;
}
.completeness-item-icon {
  font-size: 0.9rem;
  flex-shrink: 0;
  width: 1.2rem;
  text-align: center;
}
.completeness-item-label { flex: 1; }
.completeness-item-action {
  font-size: 0.7rem;
  color: var(--rose);
  font-weight: 500;
}
.completeness-item-done .completeness-item-action { display: none; }

/* ===== CONNECTION REQUEST STYLES ===== */

/* Social link pills shown after connection accepted */
.social-link-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.72rem;
  padding: 0.2rem 0.55rem;
  border-radius: 12px;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  color: var(--text-secondary);
  text-decoration: none;
  transition: background 0.15s, color 0.15s;
  white-space: nowrap;
}
.social-link-pill:hover {
  background: rgba(var(--rose-rgb, 220,80,100), 0.15);
  color: var(--text);
  border-color: var(--rose);
}

/* Connection tabs */
.conn-tab-btn {
  flex: 1;
  padding: 0.5rem 0.75rem;
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: color 0.15s, border-color 0.15s;
  white-space: nowrap;
}
.conn-tab-btn:hover { color: var(--text); }
.conn-tab-active {
  color: var(--rose) !important;
  border-bottom-color: var(--rose) !important;
  font-weight: 600;
}

/* Heart sent notification (similar to match overlay) */
.match-overlay .match-subtitle span {
  display: block;
  margin-top: 0.25rem;
}

/* Profile overlay (view other user's profile from sent/skipped lists) */
.profile-overlay {
  position: fixed;
  inset: 0;
  background: rgba(12, 10, 13, 0.95);
  z-index: 300;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  animation: fadeIn 0.2s;
}
.profile-overlay-content {
  max-width: 480px;
  margin: 0 auto;
  padding: 1rem 1rem calc(1rem + env(safe-area-inset-bottom));
  position: relative;
}
.profile-overlay-close {
  position: sticky;
  top: 0.5rem;
  float: right;
  z-index: 10;
  background: rgba(0,0,0,0.5);
  color: #fff;
  border: none;
  border-radius: 50%;
  width: 36px;
  height: 36px;
  font-size: 1.4rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* ===== DESKTOP DISCOVERY ENHANCEMENTS ===== */

/* Profile counter */
.discover-counter {
  text-align: center;
  font-size: 0.78rem;
  color: var(--text-secondary);
  padding: 0.5rem 0 0;
  letter-spacing: 0.04em;
  font-weight: 500;
}

/* Rose counter bar in discover */
.discover-rose-counter {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-secondary);
  padding: 0.2rem 0 0.35rem;
  letter-spacing: 0.02em;
}

.discover-rose-unlimited {
  color: rgba(92, 184, 92, 0.7);
}

/* Upgrade modal slide-up animation */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

/* Card stack visual effect — peek of next cards behind */
.discover-card-stack {
  position: relative;
}
.discover-card-stack::before,
.discover-card-stack::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 20px;
  border: 1px solid var(--rose-dim);
  background: var(--bg-card);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s;
}
.discover-card-stack.has-more::before {
  /* Second card peek */
  width: calc(100% - 16px);
  height: 30px;
  bottom: -8px;
  z-index: -1;
  opacity: 0.5;
}
.discover-card-stack.has-more::after {
  /* Third card peek */
  width: calc(100% - 32px);
  height: 30px;
  bottom: -14px;
  z-index: -2;
  opacity: 0.25;
}

/* Action button wraps (base — mobile) */
.action-btn-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Action button labels (hidden on mobile, visible on desktop) */
.action-btn-label {
  display: none;
}

/* Keyboard hint (desktop only) */
.discover-keyboard-hint {
  display: none;
}

/* ---- Desktop Discovery Layout (≥768px) ---- */
@media (min-width: 768px) {
  /* Inline the action buttons below the card instead of fixed full-width */
  .discover-actions {
    position: static;
    max-width: 600px;
    margin: 0 auto;
    padding: 1.5rem 2rem 1rem;
    background: none;
  }

  /* Show labels under action buttons */
  .action-btn-label {
    display: block;
    font-size: 0.7rem;
    color: var(--text-secondary);
    margin-top: 0.35rem;
    font-weight: 500;
    letter-spacing: 0.02em;
  }

  /* Wrap each action button + label in a column */
  .action-btn-wrap {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  /* Add padding to discover container for inline buttons */
  .discover-container {
    padding-bottom: 1rem;
  }

  /* Keyboard shortcut hint bar */
  .discover-keyboard-hint {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    padding: 0.25rem 0 1.5rem;
    font-size: 0.7rem;
    color: var(--text-secondary);
    opacity: 0.5;
  }
  .discover-keyboard-hint kbd {
    display: inline-block;
    background: var(--bg-elevated);
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 0.1rem 0.4rem;
    font-family: 'DM Sans', sans-serif;
    font-size: 0.65rem;
    margin-right: 0.25rem;
    vertical-align: middle;
  }
}

/* =========================================================
   PERSONALITY ASSESSMENT BADGES (Myers-Briggs, DISC, Strengths)
   ========================================================= */

.personality-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-top: 0.5rem;
}

.personality-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.6rem;
  background: rgba(233, 79, 101, 0.12);
  border: 1px solid rgba(233, 79, 101, 0.28);
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 600;
  color: #e07088;
  white-space: nowrap;
  letter-spacing: 0.02em;
}

/* Strength tag used in edit form — extends interest-tag */
.strength-tag {
  font-size: 0.78rem;
}

/* Wizard skip links */
.wizard-skip-link {
  color: var(--text-secondary);
  text-decoration: underline;
  cursor: pointer;
}
.wizard-skip-link:hover {
  color: var(--text-primary);
}

/* Photo carousel — disable text select during swipe */
.photo-carousel-container {
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

/* ===== DISCOVERY FILTER PANEL ===== */

/* Top bar: counter + filter button side by side */
.discover-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.25rem 0 0;
}

/* The filter icon button */
.discover-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: rgba(232, 93, 117, 0.08);
  border: 1px solid rgba(232, 93, 117, 0.22);
  border-radius: 100px;
  color: var(--rose-soft);
  font-size: 0.78rem;
  font-weight: 600;
  padding: 0.3rem 0.75rem;
  cursor: pointer;
  transition: background 0.2s, border-color 0.2s;
  position: relative;
  letter-spacing: 0.02em;
}
.discover-filter-btn:hover {
  background: rgba(232, 93, 117, 0.14);
  border-color: rgba(232, 93, 117, 0.38);
}

/* Active filter count badge on filter button */
.filter-active-badge {
  background: var(--rose);
  color: #fff;
  border-radius: 100px;
  font-size: 0.68rem;
  font-weight: 700;
  min-width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
}

/* Full-screen backdrop */
.filter-panel-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9990;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Sliding sheet from bottom */
.filter-panel-sheet {
  background: var(--bg-elevated);
  border-radius: 20px 20px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  max-width: 520px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.32, 0.72, 0, 1);
}
.filter-panel-sheet-open {
  transform: translateY(0);
}

/* Drag handle */
.filter-panel-handle {
  width: 36px;
  height: 4px;
  background: rgba(255, 255, 255, 0.18);
  border-radius: 2px;
  margin: 10px auto 0;
  flex-shrink: 0;
}

/* Header row */
.filter-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem 0.5rem;
  flex-shrink: 0;
}
.filter-panel-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text);
  margin: 0;
}
.filter-panel-close {
  background: none;
  border: none;
  color: var(--text-secondary);
  font-size: 1.1rem;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 6px;
  transition: color 0.15s;
}
.filter-panel-close:hover { color: var(--text); }

/* Scrollable body */
.filter-panel-body {
  flex: 1;
  overflow-y: auto;
  padding: 0.25rem 1.25rem;
  -webkit-overflow-scrolling: touch;
}

/* Each filter block */
.filter-section {
  padding: 0.9rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}
.filter-section-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}
.filter-hint-inline {
  font-weight: 400;
  text-transform: none;
  color: var(--text-secondary);
  font-size: 0.72rem;
  letter-spacing: 0;
}

/* Chip rows */
.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.filter-chip {
  padding: 5px 13px;
  border-radius: 100px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-secondary);
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.15s;
  white-space: nowrap;
}
.filter-chip:hover {
  border-color: rgba(232, 93, 117, 0.4);
  color: var(--text);
}
.filter-chip-active {
  background: rgba(232, 93, 117, 0.14);
  border-color: var(--rose);
  color: var(--rose-soft);
  font-weight: 600;
}

/* Range rows (age, height) */
.filter-range-row {
  display: flex;
  align-items: flex-end;
  gap: 10px;
}
.filter-range-field {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.filter-sublabel {
  font-size: 0.72rem;
  color: var(--text-secondary);
  font-weight: 500;
}
.filter-range-sep {
  color: var(--text-secondary);
  padding-bottom: 0.5rem;
  font-size: 1rem;
}
.filter-number-input {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.9rem;
  padding: 0.45rem 0.65rem;
  outline: none;
  transition: border-color 0.15s;
}
.filter-number-input:focus {
  border-color: rgba(232, 93, 117, 0.5);
}
.filter-select {
  width: 100%;
  background: var(--bg-input);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  color: var(--text);
  font-size: 0.85rem;
  padding: 0.45rem 0.65rem;
  outline: none;
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' viewBox='0 0 10 6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%239E9399'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 10px center;
  padding-right: 28px;
  transition: border-color 0.15s;
}
.filter-select:focus {
  border-color: rgba(232, 93, 117, 0.5);
}
.filter-select option {
  background: var(--bg-elevated);
  color: var(--text);
}

/* Toggle rows */
.filter-toggle-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.filter-toggle-info {
  flex: 1;
  min-width: 0;
}
.filter-toggle-desc {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 2px;
  line-height: 1.4;
}

/* Toggle switch */
.filter-toggle-switch {
  position: relative;
  display: inline-flex;
  align-items: center;
  cursor: pointer;
  flex-shrink: 0;
}
.filter-toggle-switch input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
}
.filter-toggle-track {
  display: block;
  width: 44px;
  height: 24px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 100px;
  position: relative;
  transition: background 0.2s;
}
.filter-toggle-track::after {
  content: '';
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--text-secondary);
  transition: transform 0.2s, background 0.2s;
}
.filter-toggle-switch input:checked + .filter-toggle-track {
  background: rgba(232, 93, 117, 0.35);
}
.filter-toggle-switch input:checked + .filter-toggle-track::after {
  transform: translateX(20px);
  background: var(--rose);
}

/* Footer with Reset + Apply */
.filter-panel-footer {
  display: flex;
  gap: 0.75rem;
  padding: 0.875rem 1.25rem calc(0.875rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  flex-shrink: 0;
  background: var(--bg-elevated);
}
.filter-reset-btn {
  flex: 0 0 auto;
  font-size: 0.875rem;
  color: var(--text-secondary) !important;
}
.filter-apply-btn {
  flex: 1;
  background: var(--rose);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border: none;
  border-radius: 10px;
  padding: 0.7rem;
  cursor: pointer;
  transition: opacity 0.15s;
}
.filter-apply-btn:hover { opacity: 0.88; }

/* ===== LIKED ME PAGE ===== */
.liked-me-container {
  max-width: 680px;
  margin: 0 auto;
  padding: 1.25rem 1rem 4rem;
}
.liked-me-header {
  font-family: 'Playfair Display', serif;
  font-size: 1.4rem;
  font-weight: 700;
  margin: 0 0 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.6rem;
}
.liked-me-count-badge {
  background: var(--rose);
  color: #fff;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 12px;
  padding: 0.15rem 0.55rem;
  vertical-align: middle;
}

/* Grid layout */
.liked-me-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 0.85rem;
}
@media (max-width: 400px) {
  .liked-me-grid { grid-template-columns: repeat(2, 1fr); gap: 0.6rem; }
}

/* Individual card */
.liked-me-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.15s, border-color 0.15s;
}
.liked-me-card:hover {
  transform: translateY(-2px);
  border-color: rgba(232, 93, 117, 0.35);
}
.liked-me-card-photo {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  background: var(--bg-elevated);
}
.liked-me-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.liked-me-avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--rose-soft);
  background: var(--rose-dim);
}
.liked-me-card-time {
  position: absolute;
  bottom: 0.4rem;
  right: 0.4rem;
  font-size: 0.65rem;
  background: rgba(0,0,0,0.65);
  color: rgba(255,255,255,0.85);
  border-radius: 6px;
  padding: 0.15rem 0.4rem;
  backdrop-filter: blur(4px);
}
.liked-me-card-info {
  padding: 0.55rem 0.65rem 0.65rem;
}
.liked-me-card-name {
  font-weight: 700;
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.liked-me-card-age {
  font-weight: 400;
  font-size: 0.85rem;
  color: var(--text-secondary);
}
.liked-me-card-meta {
  font-size: 0.75rem;
  color: var(--text-secondary);
  margin-top: 0.2rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Blurred cards for free users */
.liked-me-card-blur {
  cursor: default;
  pointer-events: none;
}
.liked-me-blur-photo {
  background: var(--bg-elevated);
  display: flex;
  align-items: center;
  justify-content: center;
}
.liked-me-blur-avatar {
  font-size: 3rem;
  filter: blur(8px);
  color: var(--text-secondary);
}
.liked-me-blur-text {
  filter: blur(5px);
  color: var(--text-secondary);
  user-select: none;
}

/* Blur overlay over the whole grid */
.liked-me-blur-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(12,10,13,0.1) 0%, rgba(12,10,13,0.85) 45%, rgba(12,10,13,0.97) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 5;
  border-radius: 14px;
  padding: 1rem;
}
.liked-me-blur-overlay-inner {
  text-align: center;
  padding: 1.5rem 1.25rem;
  background: rgba(30, 26, 33, 0.92);
  border: 1px solid rgba(232,93,117,0.2);
  border-radius: 16px;
  backdrop-filter: blur(10px);
  max-width: 280px;
}

/* Upgrade banner at top (for free users) */
.liked-me-upgrade-banner {
  background: linear-gradient(135deg, rgba(232,93,117,0.12) 0%, rgba(212,168,83,0.08) 100%);
  border: 1px solid rgba(232,93,117,0.25);
  border-radius: 14px;
  padding: 1rem 1.25rem;
  margin-bottom: 1.25rem;
  text-align: center;
}
.liked-me-upgrade-count {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.3rem;
  color: var(--rose-soft);
}
.liked-me-upgrade-sub {
  font-size: 0.85rem;
  color: var(--text-secondary);
  margin-bottom: 0.75rem;
  line-height: 1.5;
}
.liked-me-upgrade-btn {
  background: var(--rose);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  padding: 0.6rem 1.5rem;
  border: none;
  border-radius: 10px;
  cursor: pointer;
  transition: opacity 0.15s;
}
.liked-me-upgrade-btn:hover { opacity: 0.88; }
