/* ==========================================================================
   VARSAATHI Dating App - Complete Professional Styling & Design System
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,400;1,600&family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@500;700;800&display=swap');

:root {
  /* VARSAATHI Brand Crimson Red Color Tokens (#C31F3A / RGB: 195, 31, 58) */
  --ios-pink: #C31F3A;
  --ios-red: #C31F3A;
  --ios-rose: #A8162E;
  --ios-wine: #7E0D1F;
  --ios-purple: #C31F3A;
  --ios-gradient: linear-gradient(135deg, #E02847 0%, #C31F3A 40%, #A8162E 75%, #7E0D1F 100%);
  --ios-glow: 0 10px 24px -2px rgba(195, 31, 58, 0.45);
  
  --ios-bg: #F2F2F7;
  --ios-surface: #FFFFFF;
  --ios-dark: #000000;
  --ios-text: #1C1C1E;
  --ios-muted: #8E8E93;
  --border-subtle: rgba(60, 60, 67, 0.12);

  --radius-full: 9999px;
  --radius-card: 26px;
  --radius-ios: 18px;
  --radius-md: 12px;

  --font-ios: 'Poppins', -apple-system, BlinkMacSystemFont, 'Plus Jakarta Sans', 'Outfit', sans-serif;
}

/* Reset & Global */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-tap-highlight-color: transparent;
  letter-spacing: -0.022em;
}

html, body {
  height: 100%;
  font-family: var(--font-ios);
  background-color: #F2F2F7;
  color: var(--ios-text);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 12px 0;
}

/* App Outer Shell Frame */
.app-container {
  width: 100%;
  max-width: 420px;
  height: 96vh;
  max-height: 860px;
  background: var(--ios-bg);
  border-radius: 36px;
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

@media (max-width: 500px) {
  html, body {
    height: 100%;
    height: 100dvh;
    min-height: -webkit-fill-available;
    background-color: #FFFFFF;
  }
  body {
    padding: 0;
  }
  .app-container {
    max-width: 100%;
    width: 100vw;
    height: 100%;
    height: 100dvh;
    min-height: -webkit-fill-available;
    max-height: none;
    border-radius: 0;
    box-shadow: none;
    border: none;
  }
}

/* Varsaathi Animated Preloader (Pure White Background with Centered Logo) */
.page-loader {
  position: absolute;
  inset: 0;
  background: #FFFFFF;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--ios-text);
  transition: opacity 0.35s ease;
}

.loader-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.loader-brand span {
  color: var(--ios-pink);
  animation: heartPulse 1.2s infinite ease-in-out;
}

@keyframes heartPulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.3); }
  100% { transform: scale(1); }
}

/* Top App Header */
.app-header {
  min-height: 62px;
  height: calc(62px + env(safe-area-inset-top, 0px));
  padding-top: env(safe-area-inset-top, 0px);
  padding-left: 16px;
  padding-right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  z-index: 100;
  border-bottom: 1px solid rgba(60, 60, 67, 0.08);
  flex-shrink: 0;
  box-shadow: none !important;
  -webkit-box-shadow: none !important;
}

.header-title {
  font-size: 1.25rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--ios-text);
  letter-spacing: -0.5px;
}

.header-title img {
  height: 38px;
  max-width: 180px;
  object-fit: contain;
}

.header-title i {
  color: var(--ios-pink);
}

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

/* Buttons System */
.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-full);
  background: var(--ios-surface);
  border: 1px solid var(--border-subtle);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--ios-text);
  font-size: 1.05rem;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.04);
  transition: transform 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.icon-btn:active {
  transform: scale(0.92);
  background: #E5E5EA;
}

.icon-btn.primary-btn {
  background: var(--ios-gradient);
  color: #FFF;
  border: none;
  box-shadow: var(--ios-glow);
}

.btn-block {
  width: 100%;
  padding: 14px 20px;
  border-radius: var(--radius-full);
  font-size: 0.98rem;
  font-weight: 800;
  border: none;
  cursor: pointer;
  transition: all 0.15s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  text-align: center;
  font-family: inherit;
}

.btn-primary {
  background: var(--ios-gradient);
  color: #FFF;
  box-shadow: var(--ios-glow);
}

.btn-primary:active {
  transform: scale(0.97);
}

.btn-light {
  background: #FFF;
  color: var(--ios-pink);
  border: 1px solid var(--border-subtle);
}

.btn-transparent {
  background: rgba(255, 45, 85, 0.08);
  color: var(--ios-pink);
  border: 1px solid rgba(255, 45, 85, 0.2);
}

/* Professional Sidebar Drawer */
.sidebar-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 150;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.sidebar-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.sidebar-drawer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: 285px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(24px);
  -webkit-backdrop-filter: blur(24px);
  z-index: 160;
  padding: 24px 18px;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 12px 0 35px rgba(0, 0, 0, 0.2);
}

.sidebar-overlay.active .sidebar-drawer {
  transform: translateX(0);
}

.sidebar-user {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 10px 20px 10px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--border-subtle);
  position: relative;
}

.sidebar-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFF;
  box-shadow: var(--ios-glow);
}

.sidebar-user-info {
  display: flex;
  flex-direction: column;
}

.sidebar-user-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #1C1C1E;
  line-height: 1.25;
}

.sidebar-user-sub {
  font-size: 0.72rem;
  color: #8E8E93;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 2px;
}

.sidebar-menu {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  overflow-y: auto;
}

.sidebar-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 12px;
  color: #1C1C1E;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.85rem;
  transition: all 0.2s ease;
}

.sidebar-item i {
  font-size: 1.05rem;
  color: #1C1C1E;
  width: 20px;
  text-align: center;
  transition: transform 0.2s ease;
}

.sidebar-item:hover, .sidebar-item:active {
  background: #F2F2F7;
  color: #000000;
}

.sidebar-item:hover i {
  color: var(--ios-pink);
  transform: scale(1.1);
}

.sidebar-section-title {
  font-size: 0.64rem;
  font-weight: 600;
  text-transform: uppercase;
  color: #8E8E93;
  letter-spacing: 0.8px;
  padding: 12px 10px 4px 10px;
}

.sidebar-badge {
  margin-left: auto;
  font-size: 0.68rem;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: #E5E5EA;
  color: #1C1C1E;
}

.sidebar-item.danger {
  color: #FF3B30;
  font-weight: 500;
}

.sidebar-item.danger i {
  color: #FF3B30;
}

.sidebar-item.logout {
  color: #FF3B30;
  margin-top: 6px;
  border-top: 1px solid #E5E5EA;
  padding-top: 12px;
  font-weight: 500;
}

.sidebar-item.logout i {
  color: #FF3B30;
}

/* Onboarding & Social Flow Components */
.social-btn {
  width: 100%;
  height: 52px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-subtle);
  background: #FFF;
  color: var(--ios-text);
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
  text-decoration: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
  transition: all 0.2s ease;
}

.social-btn:active {
  transform: scale(0.98);
  background: #F8F8FD;
}

.social-btn img, .social-btn i {
  font-size: 1.25rem;
  width: 24px;
  text-align: center;
}

.lang-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 18px;
  background: #F8F8FC;
  border-radius: var(--radius-ios);
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-bottom: 10px;
}

.lang-card.active, .lang-card:hover {
  background: #FFF;
  border-color: var(--ios-pink);
  box-shadow: 0 4px 14px rgba(255, 45, 85, 0.12);
}

.lang-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 700;
  color: var(--ios-text);
  font-size: 0.95rem;
}

.lang-flag {
  font-size: 1.4rem;
}

.lang-radio {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFF;
  font-size: 0.7rem;
  transition: all 0.2s ease;
}

.lang-card.active .lang-radio {
  background: var(--ios-pink);
  border-color: var(--ios-pink);
}

/* Native iOS Bottom Navigation Bar */
.app-nav {
  height: calc(60px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 100;
  padding: 4px 0 calc(4px + env(safe-area-inset-bottom, 0px)) 0;
  flex-shrink: 0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.02);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #8E8E93;
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  flex: 1;
  height: 100%;
}

.nav-item i {
  font-size: 1.35rem;
  transition: all 0.2s ease;
  color: #8E8E93;
}

.nav-item.active {
  color: var(--ios-pink);
  font-weight: 800;
}

.nav-item.active i {
  color: var(--ios-pink);
  transform: scale(1.12);
}

.nav-avatar-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: block;
}

.nav-item.active .nav-avatar-img {
  border-color: var(--ios-pink);
  transform: scale(1.12);
  box-shadow: 0 2px 8px rgba(255,45,85,0.3);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  width: 24px;
  height: 3px;
  background: var(--ios-gradient);
  border-radius: 2px;
}

.nav-item .badge {
  position: absolute;
  top: 2px;
  right: 22%;
  background: var(--ios-pink);
  color: #FFF;
  font-size: 0.6rem;
  font-weight: 800;
  min-width: 16px;
  height: 16px;
  border-radius: var(--radius-full);
  padding: 0 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1.5px solid #FFF;
}

/* Main Body Section */
.app-body {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  position: relative;
  display: flex;
  flex-direction: column;
}

/* Cards Feed */
.swipe-section {
  flex: 1;
  padding: 12px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  overflow: hidden;
}

.card-deck {
  flex: 1;
  position: relative;
  width: 100%;
  overflow: hidden;
  touch-action: none;
}

.profile-card {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: var(--radius-card);
  overflow: hidden;
  background: #FFF;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.12);
  user-select: none;
  touch-action: none;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

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

.card-gradient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.88) 100%);
}

.card-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px 16px;
  color: #FFF;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.card-name {
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.15;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 6px;
}

.tag-chip {
  background: rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 3px 9px;
  border-radius: 12px;
  font-size: 0.68rem;
  font-weight: 500;
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFF;
}

/* Swipe Stamps */
.swipe-stamp {
  position: absolute;
  top: 36px;
  padding: 6px 14px;
  border-radius: var(--radius-md);
  font-weight: 900;
  font-size: 1.4rem;
  text-transform: uppercase;
  letter-spacing: 2px;
  opacity: 0;
  transition: opacity 0.15s ease;
  pointer-events: none;
  z-index: 10;
}

.swipe-stamp.like {
  left: 20px;
  color: #34C759;
  border: 3.5px solid #34C759;
  transform: rotate(-16deg);
}

.swipe-stamp.dislike {
  right: 20px;
  color: #FF3B30;
  border: 3.5px solid #FF3B30;
  transform: rotate(16deg);
}

/* Action Controls Bar */
.action-controls {
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  padding: 6px 12px;
  flex-shrink: 0;
  z-index: 10;
}

.ctrl-btn {
  border: none;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
  transition: transform 0.15s ease;
}

.ctrl-btn:active {
  transform: scale(0.85) !important;
}

.ctrl-btn.small {
  width: 44px;
  height: 44px;
  background: #FFF;
  color: var(--ios-muted);
  font-size: 1.05rem;
}

.ctrl-btn.large {
  width: 58px;
  height: 58px;
  font-size: 1.5rem;
}

.ctrl-btn.btn-dislike {
  background: #FFF;
  color: #FF3B30;
  border: 2px solid #FFE5E5;
}

.ctrl-btn.btn-like {
  background: var(--ios-gradient);
  color: #FFF;
  box-shadow: var(--ios-glow);
}

/* Discover Grid & Category Filter Pills */
.discover-filter-pill {
  background: #FFF;
  border-radius: 18px;
  padding: 6px 13px;
  border: 1px solid #E5E5EA;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 500;
  font-size: 0.76rem;
  color: #3A3A3C;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.02);
  cursor: pointer;
  flex-shrink: 0;
  white-space: nowrap;
  transition: all 0.2s ease;
}

.discover-filter-pill.active, .discover-filter-pill:hover {
  background: rgba(255, 45, 85, 0.06);
  border-color: var(--ios-pink);
  color: var(--ios-pink);
  font-weight: 600;
  box-shadow: none;
}

.discover-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  padding: 10px 14px;
}

.discover-card {
  position: relative;
  height: 200px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: #FFF;
}

.discover-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.discover-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0) 40%, rgba(0,0,0,0.85) 100%);
  padding: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.discover-badge {
  align-self: flex-end;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  padding: 3px 7px;
  border-radius: 10px;
  font-size: 0.66rem;
  font-weight: 500;
  color: #FFF;
}

.discover-name {
  font-size: 0.88rem;
  font-weight: 600;
  color: #FFF;
  display: block;
}

.discover-sub {
  font-size: 0.7rem;
  font-weight: 400;
  color: rgba(255,255,255,0.85);
  display: block;
  margin-top: 1px;
}

/* Radar Scanner View */
.radar-view {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.radar-circle {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 45, 85, 0.25);
  animation: pulse-ring 3s infinite ease-out;
}

.radar-circle.c1 { width: 140px; height: 140px; }
.radar-circle.c2 { width: 250px; height: 250px; animation-delay: 0.8s; }
.radar-circle.c3 { width: 350px; height: 350px; animation-delay: 1.6s; }

@keyframes pulse-ring {
  0% { transform: scale(0.85); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 0.4; }
  100% { transform: scale(0.85); opacity: 0.8; }
}

.radar-node-wrapper {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -50%);
  z-index: 15;
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.radar-node-wrapper:hover {
  transform: translate(-50%, -50%) scale(1.1);
}

.radar-node-wrapper.center-wrapper {
  z-index: 20;
}

.radar-center-user {
  width: 72px !important;
  height: 72px !important;
  border-radius: 50% !important;
  border: 4px solid #FFF !important;
  box-shadow: var(--ios-glow);
  object-fit: cover !important;
}

.radar-node {
  width: 48px !important;
  height: 48px !important;
  border-radius: 50% !important;
  border: 3px solid #FFF !important;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
  object-fit: cover !important;
}

.radar-node-pill {
  margin-top: 3px;
  background: #FFFFFF;
  padding: 3px 9px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  white-space: nowrap;
  pointer-events: none;
}

.radar-node-name {
  font-size: 0.72rem;
  font-weight: 700;
  color: #000000;
  line-height: 1.1;
}

.radar-node-dist {
  font-size: 0.62rem;
  font-weight: 600;
  color: #FF1744;
  margin-top: 1px;
}

.radar-node-pill.center-pill {
  background: var(--ios-gradient);
  border-color: transparent;
  padding: 2px 9px;
  box-shadow: var(--ios-glow);
}

.radar-node-pill.center-pill span {
  color: #FFF;
  font-weight: 800;
  font-size: 0.68rem;
}

/* Matches Stories & Conversation List */
.section-label {
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ios-muted);
  letter-spacing: 0.5px;
  padding: 12px 18px 6px 18px;
}

.matches-stories {
  display: flex;
  gap: 14px;
  padding: 6px 18px 14px 18px;
  overflow-x: auto;
  scrollbar-width: none;
  flex-shrink: 0;
}

.matches-stories::-webkit-scrollbar {
  display: none;
}

.story-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  text-decoration: none;
  color: var(--ios-text);
  flex-shrink: 0;
}

.story-ring {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  padding: 2.5px;
  background: var(--ios-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.story-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 55px !important;
  max-height: 55px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 2px solid #FFF !important;
  display: block !important;
}

.story-name {
  font-size: 0.72rem;
  font-weight: 700;
  max-width: 60px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-list {
  display: flex;
  flex-direction: column;
  padding: 0 10px;
}

.chat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: var(--radius-ios);
  text-decoration: none;
  color: var(--ios-text);
  transition: background 0.2s ease;
}

.chat-row:hover, .chat-row:active {
  background: rgba(124, 58, 237, 0.05);
}

.chat-avatar-wrapper {
  position: relative;
  flex-shrink: 0;
}

.chat-avatar {
  width: 50px !important;
  height: 50px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
}

.online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: #34C759;
  border: 2px solid #FFF;
}

.chat-meta {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  overflow: hidden;
}

.chat-top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.chat-name {
  font-size: 0.92rem;
  font-weight: 800;
}

.chat-time {
  font-size: 0.7rem;
  color: var(--ios-muted);
}

.chat-last-msg {
  font-size: 0.8rem;
  color: var(--ios-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.chat-last-msg.unread {
  font-weight: 800;
  color: var(--ios-text);
}

/* Modals & Redesigned Filter Sheet */
.modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 500;
  display: flex;
  align-items: flex-end;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal-drawer {
  width: 100%;
  background: #FFF;
  border-radius: 28px 28px 0 0;
  padding: 22px 20px calc(24px + env(safe-area-inset-bottom, 0px)) 20px;
  transform: translateY(100%);
  transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.1);
  max-height: 85vh;
  overflow-y: auto;
  position: relative;
  z-index: 501;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
  width: 100%;
}

.drawer-title {
  margin: 0;
  font-weight: 900;
  font-size: 1.3rem;
  color: var(--ios-text);
}

.modal-overlay.active .modal-drawer {
  transform: translateY(0);
}

.gender-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  border-radius: var(--radius-full);
  border: 1.5px solid var(--border-subtle);
  background: #FFF;
  color: var(--ios-text);
  font-weight: 700;
  font-size: 0.88rem;
  transition: all 0.2s ease;
}

.gender-btn.active {
  background: var(--ios-gradient);
  color: #FFF;
  border-color: transparent;
  box-shadow: var(--ios-glow);
}

.match-modal {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #E02847 0%, #C31F3A 40%, #A8162E 75%, #7E0D1F 100%);
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  color: #FFF;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s ease;
}

.match-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.match-title {
  font-size: 2.2rem;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
  color: #FFF;
  margin-bottom: 6px;
  letter-spacing: -0.5px;
  text-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.match-subtitle {
  font-size: 0.95rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 24px;
}

.match-avatars {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: 28px;
  position: relative;
}

.avatar-bubble {
  width: 84px !important;
  height: 84px !important;
  min-width: 84px !important;
  min-height: 84px !important;
  max-width: 84px !important;
  max-height: 84px !important;
  border-radius: 50% !important;
  object-fit: cover !important;
  border: 3.5px solid #FFFFFF !important;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.35) !important;
  display: block !important;
}

.match-heart-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--ios-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.25);
  flex-shrink: 0;
  animation: heartPulse 1.2s infinite ease-in-out;
}

/* Matches & Chat List Row Styles */
.chat-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0 2px;
}

.chat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #FFFFFF;
  border-radius: 18px;
  padding: 12px 14px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
  border: 1px solid var(--border-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.chat-row:active {
  transform: scale(0.98);
}

.chat-avatar-wrapper {
  position: relative;
  width: 50px;
  height: 50px;
  flex-shrink: 0;
}

.chat-avatar {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.online-dot {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 11px;
  height: 11px;
  background: #34C759;
  border: 2px solid #FFF;
  border-radius: 50%;
}

.chat-meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 3px;
}

.chat-name {
  font-weight: 800;
  font-size: 0.96rem;
  color: var(--ios-text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.chat-last-msg {
  font-size: 0.8rem;
  color: var(--ios-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: block;
}

.chat-last-msg.unread {
  color: var(--ios-text);
  font-weight: 700;
}

.chat-right-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  flex-shrink: 0;
  margin-left: 6px;
}

.chat-time {
  font-size: 0.7rem;
  color: var(--ios-muted);
  font-weight: 600;
}

.btn-msg-pill {
  background: linear-gradient(135deg, #FF2D55 0%, #E024BE 100%);
  color: #FFF;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 5px 12px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(255,45,85,0.25);
  white-space: nowrap;
}

/* Chat View */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100%;
  max-height: 100%;
  width: 100%;
  background: #F9F9FC;
  overflow: hidden;
  position: relative;
}

.chat-messages {
  flex: 1;
  padding: 16px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-height: 0; /* CRITICAL FLEXBOX SCROLL FIX: Prevents message history from pushing input bar off-screen */
}

.msg-bubble {
  max-width: 76%;
  padding: 10px 14px;
  border-radius: 18px;
  font-size: 0.88rem;
  line-height: 1.35;
  position: relative;
  word-break: break-word;
}

.msg-bubble.received {
  align-self: flex-start;
  background: #FFF;
  color: var(--ios-text);
  border-bottom-left-radius: 4px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.msg-bubble.sent {
  align-self: flex-end;
  background: var(--ios-gradient);
  color: #FFF;
  border-bottom-right-radius: 4px;
  box-shadow: var(--ios-glow);
}

/* Instagram / WhatsApp Style Call Log Cards in Chat */
.call-log-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 2px;
  min-width: 190px;
  user-select: none;
  cursor: pointer;
}

.call-log-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.msg-bubble.received .call-log-icon-circle {
  background: rgba(195, 31, 58, 0.1);
  color: var(--ios-pink);
}

.msg-bubble.received .call-log-icon-circle.missed {
  background: rgba(255, 59, 48, 0.12);
  color: #FF3B30;
}

.msg-bubble.sent .call-log-icon-circle.missed {
  background: rgba(255, 255, 255, 0.2);
  color: #FFF;
}

.call-log-details {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.call-log-title {
  font-weight: 800;
  font-size: 0.88rem;
  line-height: 1.25;
}

.call-log-sub {
  font-size: 0.72rem;
  opacity: 0.88;
  margin-top: 2px;
  font-weight: 600;
}

.msg-footer-row {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  margin-top: 3px;
  font-size: 0.62rem;
  opacity: 0.88;
}

.msg-time {
  font-size: 0.62rem;
  opacity: 0.85;
}

.msg-status-tick {
  font-size: 0.75rem;
  display: inline-flex;
  align-items: center;
  margin-left: 2px;
  line-height: 1;
}

.msg-status-tick.read {
  color: #64D2FF;
  font-weight: 900;
}

.msg-status-tick.delivered {
  color: rgba(255, 255, 255, 0.75);
}

.msg-bubble.sent-pending {
  align-self: flex-end;
  background: var(--ios-gradient);
  color: #FFF;
  border-bottom-right-radius: 4px;
  opacity: 0.75;
}

.chat-input-bar {
  padding: 10px 14px;
  background: #FFF;
  border-top: 1px solid var(--border-subtle);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.chat-input-field {
  flex: 1;
  height: 42px;
  border-radius: var(--radius-full);
  background: #F2F2F7;
  border: 1px solid transparent;
  padding: 0 16px;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
  color: var(--ios-text);
  transition: border-color 0.2s ease, background 0.2s ease;
}

.chat-input-field:focus {
  border-color: var(--ios-pink);
  background: #FFF;
}

/* Forms & Inputs */
.auth-container {
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.form-group {
  margin-bottom: 16px;
}

.form-label {
  display: block;
  font-size: 0.78rem;
  font-weight: 800;
  margin-bottom: 6px;
  color: var(--ios-muted);
  text-transform: uppercase;
}

.form-control {
  width: 100%;
  height: 48px;
  border-radius: var(--radius-ios);
  border: 1.5px solid var(--border-subtle);
  padding: 0 16px;
  font-size: 0.92rem;
  outline: none;
  font-family: inherit;
  background: #FFF;
  color: var(--ios-text);
  transition: border-color 0.2s ease;
}

.form-control:focus {
  border-color: var(--ios-pink);
}

/* ==========================================================================
   WebRTC Call Overlay & Dialog Styles
   ========================================================================== */
.call-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: #0B0B0E;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 40px 20px 50px 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.call-modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.pip-quick-actions {
  display: none;
}

.call-modal-overlay.minimized {
  inset: auto 16px 85px auto !important;
  width: 218px !important;
  height: 64px !important;
  border-radius: 32px !important;
  padding: 6px 10px 6px 6px !important;
  box-shadow: 0 16px 45px rgba(0, 0, 0, 0.55), 0 0 0 1.5px rgba(255, 255, 255, 0.2) !important;
  overflow: hidden !important;
  cursor: grab !important;
  background: rgba(18, 18, 24, 0.94) !important;
  backdrop-filter: blur(20px) !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  z-index: 999999 !important;
  touch-action: none;
}

.call-modal-overlay.minimized #minimizeCallBtn,
.call-modal-overlay.minimized .call-actions-toolbar,
.call-modal-overlay.minimized .local-video-pip {
  display: none !important;
}

.call-modal-overlay.minimized .pip-quick-actions {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
}

.pip-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.76rem;
  color: #FFF;
  cursor: pointer;
  transition: all 0.2s ease;
}

.pip-btn-end {
  background: #FF3B30 !important;
  box-shadow: 0 4px 10px rgba(255, 59, 48, 0.4);
}

.pip-btn-mute {
  background: rgba(255, 255, 255, 0.2) !important;
}

.pip-btn-mute.muted {
  background: #FF9500 !important;
}

.pip-btn-expand {
  background: rgba(255, 255, 255, 0.2) !important;
}

.call-modal-overlay.minimized .call-info-layer {
  margin-top: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  gap: 8px !important;
}

.call-modal-overlay.minimized .call-avatar-wrapper {
  margin-bottom: 0 !important;
}

.call-modal-overlay.minimized .call-avatar-img {
  width: 38px !important;
  height: 38px !important;
}

.call-modal-overlay.minimized .call-partner-name {
  font-size: 0.78rem !important;
  font-weight: 700 !important;
  max-width: 75px !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  color: #FFF !important;
  text-align: left !important;
}

.call-modal-overlay.minimized .call-status-text {
  display: none !important;
}

.call-modal-overlay.minimized .call-timer-badge {
  font-size: 0.65rem !important;
  padding: 1px 5px !important;
  background: rgba(52, 199, 89, 0.25) !important;
  color: #34C759 !important;
}

/* Fullscreen Remote Video & Local PIP */
.video-stream-container {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: #000;
}

.remote-video-full {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.local-video-pip {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 110px;
  height: 160px;
  border-radius: 16px;
  object-fit: cover;
  z-index: 10;
  border: 2px solid rgba(255,255,255,0.4);
  box-shadow: 0 8px 24px rgba(0,0,0,0.4);
  display: none;
  background: #222;
}

/* Call Header / Info Layer */
.call-info-layer {
  position: relative;
  z-index: 5;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 20px;
  text-align: center;
  color: #FFF;
}

.call-avatar-wrapper {
  position: relative;
  width: 110px;
  height: 110px;
  margin-bottom: 16px;
}

.call-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFF;
  box-shadow: 0 8px 30px rgba(255,45,85,0.4);
  position: relative;
  z-index: 2;
}

.call-pulse-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  background: rgba(255, 45, 85, 0.3);
  animation: pulseRing 1.8s infinite cubic-bezier(0.215, 0.61, 0.355, 1);
  z-index: 1;
}

@keyframes pulseRing {
  0% { transform: scale(0.9); opacity: 0.8; }
  100% { transform: scale(1.4); opacity: 0; }
}

.call-partner-name {
  font-size: 1.4rem;
  font-weight: 800;
  margin-bottom: 4px;
  color: #FFF;
  text-shadow: 0 2px 10px rgba(0,0,0,0.6);
}

.call-status-text {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

.call-timer-badge {
  margin-top: 8px;
  background: rgba(0,0,0,0.5);
  backdrop-filter: blur(10px);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  display: none;
}

/* Call Control Buttons Toolbar */
.call-actions-toolbar {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  width: 100%;
  margin-bottom: 20px;
}

.call-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: none;
  outline: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

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

.call-btn-action {
  background: rgba(255,255,255,0.2);
  backdrop-filter: blur(15px);
  color: #FFF;
}

.call-btn-action.muted,
.call-btn-action.off {
  background: #FF9500;
  color: #FFF;
}

.call-btn-end {
  background: #FF3B30;
  color: #FFF;
  width: 68px;
  height: 68px;
  font-size: 1.5rem;
}

.call-btn-accept {
  background: #34C759;
  color: #FFF;
  width: 64px;
  height: 64px;
  font-size: 1.4rem;
}

/* Incoming Call Popup Dialog */
.incoming-call-modal {
  position: fixed;
  top: 16px;
  left: 16px;
  right: 16px;
  z-index: 999999;
  background: rgba(20, 20, 24, 0.98);
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 24px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: none !important;
  transform: translateY(-120%);
  transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.incoming-call-modal.active {
  transform: translateY(0);
}

/* ==========================================================================
   Radar Scanner Styles
   ========================================================================== */
.radar-view {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 500px;
  background: radial-gradient(circle at center, #FFFFFF 0%, #F5F5FA 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.radar-circle {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(195, 31, 58, 0.28);
  pointer-events: none;
  animation: radarPulse 3s infinite linear;
}

.radar-circle.c1 { width: 140px; height: 140px; }
.radar-circle.c2 { width: 260px; height: 260px; animation-delay: 1s; }
.radar-circle.c3 { width: 380px; height: 380px; animation-delay: 2s; }

@keyframes radarPulse {
  0% { transform: scale(0.85); opacity: 0.8; }
  50% { transform: scale(1.05); opacity: 0.4; }
  100% { transform: scale(0.85); opacity: 0.8; }
}

.radar-node-wrapper {
  position: absolute;
  transform: translate(-50%, -50%);
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
  cursor: pointer;
}

.radar-node-wrapper img {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #FFFFFF;
  box-shadow: 0 0 16px rgba(195, 31, 58, 0.5), 0 4px 12px rgba(0, 0, 0, 0.4);
}

.radar-node-wrapper.center-wrapper img {
  width: 66px;
  height: 66px;
  border-color: #FFFFFF;
  box-shadow: 0 0 24px rgba(255, 255, 255, 0.7);
}

.radar-node-pill {
  margin-top: 6px;
  background: #FFFFFF;
  color: #000000;
  padding: 4px 10px;
  border-radius: 16px;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
  white-space: nowrap;
}

.radar-node-pill .radar-node-dist {
  color: #C31F3A;
  font-weight: 800;
  font-size: 0.7rem;
}

.radar-node-pill.center-pill {
  background: var(--ios-gradient);
  color: #FFFFFF;
  font-weight: 800;
}

/* Snap Map Style Globe/Radar World Canvas System */
.snap-map-viewport {
  position: relative;
  width: 100%;
  height: 100%;
  flex: 1;
  background: radial-gradient(circle at center, #FFFFFF 0%, #F5F5FA 60%, #EAEAFA 100%);
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  touch-action: none;
  user-select: none;
  cursor: grab;
}

.snap-map-viewport:active {
  cursor: grabbing;
}

.snap-map-stage {
  position: absolute;
  width: 1200px;
  height: 1200px;
  left: 50%;
  top: 50%;
  margin-left: -600px;
  margin-top: -600px;
  transform-origin: center center;
  will-change: transform;
}

/* Concentric Radar Rings & Grid Background */
.snap-map-stage::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(195, 31, 58, 0.12) 1.5px, transparent 1.5px);
  background-size: 36px 36px;
  pointer-events: none;
  opacity: 0.6;
}

.map-radar-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px dashed rgba(195, 31, 58, 0.28);
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.map-radar-ring.r1 { width: 300px; height: 300px; }
.map-radar-ring.r2 { width: 600px; height: 600px; }
.map-radar-ring.r3 { width: 900px; height: 900px; }
.map-radar-ring.r4 { width: 1150px; height: 1150px; }

/* Snap Pin Nodes */
.snap-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translate(-50%, -100%);
  z-index: 10;
  cursor: pointer;
  transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.snap-node:hover {
  transform: translate(-50%, -108%) scale(1.12);
  z-index: 500 !important;
}

.snap-node.center-user-node {
  z-index: 30;
  transform: translate(-50%, -50%);
}

.snap-pin-avatar-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.snap-pin-avatar {
  width: 62px !important;
  height: 62px !important;
  border-radius: 50% !important;
  border: 3.5px solid #FFFFFF !important;
  object-fit: cover !important;
  box-shadow: 0 8px 24px rgba(195, 31, 58, 0.3), 0 4px 12px rgba(0, 0, 0, 0.12);
}

.snap-node.center-user-node .snap-pin-avatar {
  width: 76px !important;
  height: 76px !important;
  border: 4px solid #FFFFFF !important;
  box-shadow: 0 0 0 6px rgba(195, 31, 58, 0.2), 0 10px 30px rgba(195, 31, 58, 0.4);
}

.snap-pin-stem {
  width: 0;
  height: 0;
  border-left: 7px solid transparent;
  border-right: 7px solid transparent;
  border-top: 10px solid #FFFFFF;
  margin-top: -3px;
  filter: drop-shadow(0 4px 6px rgba(0,0,0,0.15));
}

.snap-pin-badge {
  margin-top: 4px;
  background: #FFFFFF;
  color: #1C1C1E;
  padding: 4px 12px;
  border-radius: 16px;
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.snap-pin-badge.center-badge {
  background: var(--ios-gradient);
  color: #FFFFFF;
  border: none;
  box-shadow: var(--ios-glow);
}

.snap-pin-dist {
  color: var(--ios-pink);
  font-weight: 800;
  font-size: 0.7rem;
}

/* Snap Map Floating Action Controls */
.snap-controls-overlay {
  position: absolute;
  bottom: 20px;
  left: 16px;
  right: 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  pointer-events: none;
  z-index: 100;
}

.snap-hint-pill {
  pointer-events: auto;
  font-size: 0.74rem;
  font-weight: 700;
  color: var(--ios-text);
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 8px 16px;
  border-radius: 24px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(0, 0, 0, 0.06);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.snap-zoom-toolbar {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 8px;
}

.snap-control-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--ios-text);
  border: 1px solid rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  font-weight: 800;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.1);
  cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}

.snap-control-btn:active {
  transform: scale(0.92);
  background: #F2F2F7;
}

.snap-control-btn.primary-btn {
  background: var(--ios-gradient);
  color: #FFFFFF;
  border: none;
  box-shadow: var(--ios-glow);
  width: auto;
  padding: 0 16px;
  border-radius: 22px;
  font-size: 0.8rem;
}

/* ==========================================================================
   Match Request Action Banners & Badges
   ========================================================================== */
.match-request-banner {
  padding: 14px 16px;
  background: #FFFFFF;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.06);
  display: flex;
  flex-direction: column;
  gap: 12px;
  position: relative;
  z-index: 10;
}
.request-banner-info {
  display: flex;
  align-items: center;
  gap: 12px;
}
.request-icon {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF2D55, #C31F3A);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  box-shadow: 0 4px 12px rgba(195,31,58,0.25);
  flex-shrink: 0;
}
.request-text {
  display: flex;
  flex-direction: column;
}
.request-text strong {
  font-weight: 800;
  font-size: 0.92rem;
  color: var(--ios-text);
}
.request-text span {
  font-size: 0.78rem;
  color: var(--ios-muted);
}
.request-banner-actions {
  display: flex;
  gap: 10px;
}
.btn-accept-match {
  flex: 1.5;
  height: 44px;
  border-radius: 22px;
  background: linear-gradient(135deg, #FF2D55, #C31F3A);
  color: #FFFFFF;
  border: none;
  font-weight: 800;
  font-size: 0.9rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(195,31,58,0.3);
  transition: transform 0.15s ease, opacity 0.15s ease;
}
.btn-accept-match:active {
  transform: scale(0.97);
}
.btn-decline-match {
  flex: 1;
  height: 44px;
  border-radius: 22px;
  background: #F2F2F7;
  color: #8E8E93;
  border: none;
  font-weight: 700;
  font-size: 0.88rem;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.btn-decline-match:active {
  background: #E5E5EA;
}
.match-pending-notice {
  padding: 14px 16px;
  background: #FFF0F3;
  border-top: 1px solid rgba(255,45,85,0.15);
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--ios-pink);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}
.badge-pending-request {
  background: linear-gradient(135deg, #FF2D55, #C31F3A);
  color: #FFFFFF;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 2px 7px;
  border-radius: 10px;
  text-transform: uppercase;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 6px rgba(255,45,85,0.25);
}
.incoming-request-ring {
  border-color: #FF2D55 !important;
  box-shadow: 0 0 0 2px rgba(255,45,85,0.3);
  animation: pulse-ring 2s infinite;
}
.chat-row.highlight-request {
  background: rgba(255,45,85,0.03);
}

/* iOS Action Sheet / Bottom Sheet Modal */
.ios-sheet-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.28s;
}
.ios-sheet-overlay.active {
  opacity: 1;
  visibility: visible;
}
.ios-sheet-container {
  width: 100%;
  max-width: 500px;
  background: #FFFFFF;
  border-top-left-radius: 28px;
  border-top-right-radius: 28px;
  padding: 16px 20px 28px 20px;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.18);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  box-sizing: border-box;
}
.ios-sheet-overlay.active .ios-sheet-container {
  transform: translateY(0);
}
.sheet-drag-handle {
  width: 38px;
  height: 5px;
  background: #E5E5EA;
  border-radius: 3px;
  margin: 0 auto 16px auto;
}
.sheet-user-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-bottom: 16px;
  border-bottom: 1px solid #F2F2F7;
  margin-bottom: 12px;
}
.sheet-user-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFE4EE;
}
.sheet-user-title {
  font-weight: 800;
  font-size: 1.1rem;
  color: #1C1C1E;
  margin-bottom: 2px;
}
.sheet-user-sub {
  font-size: 0.78rem;
  color: #8E8E93;
  font-weight: 600;
}
.sheet-options-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.sheet-option-btn {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  border: none;
  background: #F9F9FB;
  font-size: 0.95rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  padding: 0 16px;
  gap: 14px;
  cursor: pointer;
  transition: background 0.15s ease, transform 0.1s ease;
  box-sizing: border-box;
}
.sheet-option-btn:active {
  transform: scale(0.98);
  background: #EFEFF4;
}
.sheet-option-btn.danger {
  color: #FF3B30;
  background: #FFF5F5;
}
.sheet-option-btn.danger i {
  color: #FF3B30;
}
.sheet-option-btn.warning {
  color: #FF9500;
  background: #FFF9F0;
}
.sheet-option-btn.warning i {
  color: #FF9500;
}
/* Slide to Reply Gesture & Quoted Message Pills */
.msg-bubble-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  transition: transform 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  touch-action: pan-y;
}
.msg-bubble-wrapper.sent {
  justify-content: flex-end;
}
.msg-bubble-wrapper.received {
  justify-content: flex-start;
}
.swipe-reply-icon {
  position: absolute;
  left: -36px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 45, 85, 0.12);
  color: var(--ios-pink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  opacity: 0;
  transition: opacity 0.15s ease, transform 0.15s ease;
  pointer-events: none;
}

/* Quoted Reply Box Inside Message Bubble */
.msg-quote-box {
  background: rgba(0, 0, 0, 0.06);
  border-left: 3.5px solid var(--ios-pink);
  padding: 6px 10px;
  border-radius: 8px;
  margin-bottom: 6px;
  font-size: 0.78rem;
}
.msg-bubble.sent .msg-quote-box {
  background: rgba(255, 255, 255, 0.22);
  border-left-color: #FFFFFF;
  color: #FFFFFF;
}
.msg-quote-box .quote-author {
  font-weight: 800;
  font-size: 0.72rem;
  margin-bottom: 2px;
}
.msg-quote-box .quote-text {
  font-style: italic;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 220px;
}

/* iOS Chat Themes */
.theme-ios-crimson .msg-bubble.sent {
  background: var(--ios-gradient);
  color: #FFFFFF;
}
.theme-ios-blue .msg-bubble.sent {
  background: linear-gradient(135deg, #007AFF, #0051A8);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(0, 122, 255, 0.3);
}
.theme-ios-dark .chat-container,
.theme-ios-dark .chat-messages {
  background: #1C1C1E;
}
.theme-ios-dark .msg-bubble.received {
  background: #2C2C2E;
  color: #FFFFFF;
}
.theme-ios-dark .msg-bubble.sent {
  background: linear-gradient(135deg, #FF2D55, #C31F3A);
  color: #FFFFFF;
}
.theme-ios-dark .chat-input-bar {
  background: #2C2C2E;
  border-top-color: #3A3A3C;
}
.theme-ios-dark .chat-input-field {
  background: #1C1C1E;
  color: #FFFFFF;
  border-color: #3A3A3C;
}

/* Native iOS Toggle Switch */
.ios-switch {
  position: relative;
  display: inline-block;
  width: 51px;
  height: 31px;
  flex-shrink: 0;
}
.ios-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}
.ios-slider {
  position: absolute;
  cursor: pointer;
  inset: 0;
  background-color: #E9E9EA;
  transition: background-color 0.3s ease;
  border-radius: 34px;
  border: 1px solid rgba(0,0,0,0.08);
}
.ios-slider::before {
  position: absolute;
  content: "";
  height: 27px;
  width: 27px;
  left: 1px;
  bottom: 1px;
  background-color: #FFFFFF;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(0, 0, 0, 0.18), 0 2px 2px rgba(0, 0, 0, 0.1);
}
.ios-switch input:checked + .ios-slider {
  background-color: #34C759;
}
.ios-switch input:checked + .ios-slider::before {
  transform: translateX(20px);
}

/* ==========================================================================
   Modern Shaadi & Matrimonial Profile Design (Ref: Pink Banner, Overlapping Avatar, Preference Grid)
   ========================================================================== */
.profile-screen-container {
  background: #FDF4F6;
  flex: 1;
  width: 100%;
  height: 100%;
  min-height: 0;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 120px;
  touch-action: pan-y;
}

.profile-top-banner {
  background: linear-gradient(180deg, #FDE8ED 0%, #FCE4EC 65%, #FDF4F6 100%);
  padding: 16px 16px 50px 16px;
  position: relative;
}

.profile-nav-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 16px;
}

.profile-nav-title {
  font-weight: 800;
  font-size: 1.15rem;
  color: #111827;
}

.profile-avatar-container {
  text-align: center;
  position: relative;
  margin-top: 14px;
  margin-bottom: 12px;
  z-index: 10;
}

.profile-avatar-outer-ring {
  position: relative;
  display: inline-block;
  padding: 3.5px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF2D55 0%, #FF4081 100%);
  box-shadow: 0 8px 24px rgba(255, 45, 85, 0.25);
}

.profile-avatar-img {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  object-fit: cover;
  border: 3.5px solid #FFFFFF;
  display: block;
}

.profile-avatar-verified-badge {
  position: absolute;
  bottom: 4px;
  right: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #FF2D55;
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.78rem;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.profile-main-card {
  background: #FFFFFF;
  border-radius: 26px;
  padding: 24px 20px 24px 20px;
  margin: 0 16px 16px 16px;
  position: relative;
  z-index: 2;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.05), 0 2px 10px rgba(0, 0, 0, 0.02);
  border: 1px solid #F2F2F7;
}

.profile-user-name {
  font-weight: 800;
  font-size: 1.35rem;
  color: #111827;
  text-align: center;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.profile-user-subtitle {
  text-align: center;
  font-size: 0.88rem;
  color: #6B7280;
  font-weight: 600;
  margin-top: 4px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
}

.profile-section-title {
  font-weight: 300;
  font-size: 1.3rem;
  color: #1C1C1E;
  letter-spacing: -0.4px;
  margin-top: 24px;
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

.profile-about-text {
  font-size: 0.88rem;
  color: #4B5563;
  line-height: 1.6;
  margin: 0;
  font-weight: 500;
}

.partner-pref-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin-top: 10px;
}

.partner-pref-card {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 12px 14px;
  border: 1px solid #F0F0F5;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.03);
  display: flex;
  align-items: center;
  gap: 12px;
}

.partner-pref-icon-wrap {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: #FFF0F4;
  color: #C31F3A;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.partner-pref-label {
  font-size: 0.7rem;
  color: #8E8E93;
  font-weight: 600;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.partner-pref-value {
  font-size: 0.86rem;
  color: #1C1C1E;
  font-weight: 700;
  white-space: nowrap;
}

.photo-gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin-top: 10px;
}

.photo-gallery-item {
  position: relative;
  aspect-ratio: 1;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.photo-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-gallery-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  color: #FFFFFF;
  font-weight: 800;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(2px);
}

.btn-pink-action {
  background: linear-gradient(135deg, #E91E63 0%, #D81B60 100%);
  color: #FFFFFF !important;
  border-radius: 30px;
  font-weight: 800;
  font-size: 1rem;
  padding: 14px 24px;
  width: 100%;
  border: none;
  box-shadow: 0 6px 20px rgba(233, 30, 99, 0.35);
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  margin-top: 24px;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-pink-action:active {
  transform: scale(0.98);
  box-shadow: 0 2px 10px rgba(233, 30, 99, 0.25);
}

.btn-pink-outline {
  background: #FFFFFF;
  color: #E91E63 !important;
  border-radius: 30px;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 12px 20px;
  width: 100%;
  border: 2px solid #E91E63;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  text-decoration: none;
  margin-top: 10px;
  cursor: pointer;
}

/* ==========================================================================
   Redesigned Floating Bottom Navbar & UI Components (Matching Mockup)
   ========================================================================== */

/* Original Fixed Bottom Navbar Styling */
.app-nav {
  height: calc(60px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(25px);
  -webkit-backdrop-filter: blur(25px);
  display: flex;
  align-items: center;
  justify-content: space-around;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  z-index: 100;
  padding: 4px 0 calc(4px + env(safe-area-inset-bottom, 0px)) 0;
  flex-shrink: 0;
  box-shadow: 0 -4px 16px rgba(0, 0, 0, 0.02);
}

.nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  color: #8E8E93;
  text-decoration: none;
  font-size: 0.65rem;
  font-weight: 700;
  transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
  position: relative;
  flex: 1;
  height: 100%;
}

.nav-item i {
  font-size: 1.35rem;
  transition: all 0.2s ease;
  color: #8E8E93;
}

.nav-item span {
  display: block;
}

.nav-item.active {
  color: var(--ios-pink);
  font-weight: 800;
}

.nav-item.active i {
  color: var(--ios-pink);
  transform: scale(1.12);
}

.nav-item.active::after {
  content: '';
  position: absolute;
  top: 0;
  width: 24px;
  height: 3px;
  background: var(--ios-gradient);
  border-radius: 2px;
}

.nav-avatar-img {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  object-fit: cover;
  border: 1.5px solid transparent;
  transition: transform 0.2s ease, border-color 0.2s ease;
  display: block;
}

.nav-item.active .nav-avatar-img {
  border-color: var(--ios-pink);
  transform: scale(1.12);
  box-shadow: 0 2px 8px rgba(255, 45, 85, 0.3);
}

.nav-item .badge {
  position: absolute;
  top: 2px;
  right: 22%;
  background: var(--ios-pink);
  color: #FFF;
  font-size: 0.62rem;
  font-weight: 800;
  padding: 1px 5px;
  border-radius: var(--radius-full);
  border: 2px solid #FFF;
  line-height: 1;
}

/* Gradient Text Highlight */
.gradient-text {
  background: linear-gradient(135deg, #7000FF 0%, #E91E63 60%, #FF5E3A 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Header Search Pill Input */
.search-bar-pill {
  position: relative;
  width: 100%;
  margin-top: 10px;
  margin-bottom: 14px;
}

.search-input-pill {
  width: 100%;
  height: 46px;
  border-radius: 23px;
  background: #FFFFFF;
  border: 1.5px solid #F0F0F5;
  padding: 0 50px 0 20px;
  font-size: 0.9rem;
  color: #1C1C1E;
  outline: none;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  font-family: inherit;
  transition: border-color 0.2s ease;
}

.search-input-pill:focus {
  border-color: #E91E63;
}

.search-btn-circle {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F8F8FA;
  border: 1px solid #E5E5EA;
  color: #8E8E93;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

/* Stories Horizontal Avatar Reel */
.stories-reel {
  display: flex;
  align-items: center;
  gap: 16px;
  overflow-x: auto;
  padding: 4px 4px 14px 4px;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.stories-reel::-webkit-scrollbar {
  display: none;
}

.story-item-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  flex-shrink: 0;
  text-decoration: none;
}

.story-avatar-wrapper {
  position: relative;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #7000FF, #E91E63, #FF9500);
}

.story-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #FFFFFF;
}

.story-add-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 2px dashed #D1D1D6;
  color: #1C1C1E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
}

.story-name-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: #1C1C1E;
  max-width: 64px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Segmented Control Nav Pill */
.segmented-nav-pill {
  display: flex;
  align-items: center;
  background: #FFFFFF;
  padding: 4px;
  border-radius: 25px;
  border: 1px solid #F0F0F5;
  margin-bottom: 18px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.03);
}

.segmented-item {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  font-size: 0.84rem;
  font-weight: 700;
  color: #8E8E93;
  border-radius: 20px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.segmented-item.active {
  background: linear-gradient(135deg, #7000FF, #E91E63);
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(112, 0, 255, 0.25);
}

/* 2-Column Vertical Interest Card Grid */
.interest-grid-2col {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
  margin-bottom: 20px;
}

.interest-card-item {
  position: relative;
  height: 230px;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
  text-decoration: none;
  display: block;
}

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

.interest-card-item:hover .interest-card-img {
  transform: scale(1.05);
}

.interest-card-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.85) 100%);
}

.interest-card-info {
  position: absolute;
  bottom: 12px;
  left: 12px;
  right: 48px;
  color: #FFFFFF;
}

.interest-card-name {
  font-weight: 800;
  font-size: 0.92rem;
  line-height: 1.2;
  margin-bottom: 2px;
  text-shadow: 0 2px 6px rgba(0,0,0,0.5);
}

.interest-card-loc {
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
}

.interest-card-heart-btn {
  position: absolute;
  bottom: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  backdrop-filter: blur(10px);
  color: #FFFFFF;
  border: 1px solid rgba(255, 255, 255, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

/* Saathi Hero Candidate Card & 96% Match Pill */
.saathi-hero-card {
  position: relative;
  width: 100%;
  height: 480px;
  border-radius: 28px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.12);
  margin-bottom: 18px;
}

.saathi-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.saathi-match-action-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 10px;
  background: transparent !important;
}

.match-percent-badge {
  background: #FFFFFF;
  border-radius: 25px;
  padding: 8px 18px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  border: 1px solid #F0F0F5;
}

.percent-chip {
  background: rgba(112, 0, 255, 0.1);
  color: #7000FF;
  font-weight: 900;
  font-size: 0.84rem;
  padding: 3px 10px;
  border-radius: 14px;
}

.match-label-text {
  font-size: 0.76rem;
  font-weight: 800;
  color: #1C1C1E;
}

.action-circle-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  transition: transform 0.15s ease;
}

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

.action-circle-btn.pass {
  background: #FFFFFF;
  color: #8E8E93;
  border: 1px solid #E5E5EA;
}

.action-circle-btn.like {
  background: linear-gradient(135deg, #E91E63, #FF2D55);
  color: #FFFFFF;
  box-shadow: 0 8px 24px rgba(233, 30, 99, 0.35);
}

/* Messages / Chat Row Redesign */
.messages-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.messages-title {
  font-size: 1.4rem;
  font-weight: 900;
  color: #1C1C1E;
}

.message-row-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 14px;
  background: #FFFFFF;
  border-radius: 18px;
  margin-bottom: 10px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.03);
  border: 1px solid #F0F0F5;
  text-decoration: none;
  transition: transform 0.15s ease, background 0.15s ease;
}

.message-row-card:active {
  transform: scale(0.98);
  background: #FAF8FB;
}

.message-avatar-wrap {
  position: relative;
  width: 52px;
  height: 52px;
  flex-shrink: 0;
}

.message-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

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

.message-author-name {
  font-weight: 600;
  font-size: 0.96rem;
  color: #1C1C1E;
  margin-bottom: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: -0.2px;
}

.message-snippet-text {
  font-size: 0.8rem;
  color: #8E8E93;
  font-weight: 400;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.message-right-info {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
  flex-shrink: 0;
}

.message-time-text {
  font-size: 0.72rem;
  color: #8E8E93;
  font-weight: 400;
}

.message-unread-badge {
  background: #FF3B30;
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 900;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Messages Single White Card Container & Divider Rows (Matching Mockup) */
.messages-container-card {
  background: #FFFFFF;
  border-radius: 28px;
  padding: 4px 16px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04);
  border: 1px solid #F0F0F5;
  margin-top: 14px;
}

.message-item-row {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 0;
  border-bottom: 1px solid #F2F2F7;
  text-decoration: none;
  transition: opacity 0.15s ease;
}

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

.message-item-row:active {
  opacity: 0.75;
}


/* Horizontal 3D Card Carousel with Responsive Layout */
.card-carousel-stage {
  display: flex;
  align-items: stretch;
  gap: 16px;
  overflow-x: auto;
  padding: 6px 24px 10px 24px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  scroll-behavior: smooth;
  flex: 1;
  min-height: 0;
}

.card-carousel-stage::-webkit-scrollbar {
  display: none;
}

.carousel-card-item {
  flex: 0 0 84%;
  scroll-snap-align: center;
  background: #FFFFFF;
  border-radius: 28px;
  padding: 10px;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07);
  border: 1px solid #F0F0F5;
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.3s ease;
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.carousel-card-photo-wrap {
  width: 100%;
  flex: 1;
  min-height: 380px;
  max-height: 520px;
  border-radius: 22px;
  overflow: hidden;
  position: relative;
}

.carousel-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.carousel-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 6px 4px 6px;
}

.carousel-card-name {
  font-weight: 700;
  font-size: 1.05rem;
  color: #1C1C1E;
  margin-bottom: 2px;
  letter-spacing: -0.2px;
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
}

.carousel-card-loc {
  font-size: 0.76rem;
  color: #636366;
  font-weight: 500;
}

.carousel-card-like-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F8F8FA;
  border: 1px solid #E5E5EA;
  color: #1C1C1E;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.carousel-card-like-icon.active {
  color: #E91E63;
  background: #FFF0F4;
  border-color: #FCE4EC;
}

/* Cute Floating Heart Particles Explosion */
.cute-heart-particle {
  position: fixed;
  pointer-events: none;
  z-index: 999999;
  font-size: 1.4rem;
  animation: floatCuteHeart 1.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
  will-change: transform, opacity;
}

@keyframes floatCuteHeart {
  0% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(0.3) rotate(0deg);
  }
  50% {
    opacity: 0.95;
    transform: translate(calc(-50% + var(--tx)), calc(-50% + var(--ty))) scale(1.35) rotate(var(--rot));
  }
  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--tx) * 1.4), calc(-50% + var(--ty) - 50px)) scale(0.5) rotate(calc(var(--rot) * 1.5));
  }
}

.carousel-card-like-icon.active i,
.action-circle-btn.like.active i {
  animation: pulseHeartBounce 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes pulseHeartBounce {
  0% { transform: scale(1); }
  50% { transform: scale(1.45); }
  100% { transform: scale(1); }
}

/* Bouncy 3D Glassmorphic Heart Bubble Animation */
.bouncy-heart-bubble-wrap {
  position: absolute;
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 99999;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bouncyHeartPop 1.1s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.bouncy-heart-bubble {
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, rgba(255, 255, 255, 0.85) 0%, rgba(255, 45, 85, 0.75) 45%, rgba(195, 31, 58, 0.95) 100%);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 3px solid rgba(255, 255, 255, 0.85);
  box-shadow: 0 16px 45px rgba(255, 45, 85, 0.65), inset 0 0 25px rgba(255, 255, 255, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3.2rem;
  filter: drop-shadow(0 6px 16px rgba(0,0,0,0.3));
}

@keyframes bouncyHeartPop {
  0% {
    transform: translate(-50%, -40%) scale(0.1) rotate(-15deg);
    opacity: 0;
  }
  35% {
    transform: translate(-50%, -55%) scale(1.4) rotate(6deg);
    opacity: 1;
  }
  55% {
    transform: translate(-50%, -50%) scale(0.92) rotate(-3deg);
    opacity: 1;
  }
  75% {
    transform: translate(-50%, -65%) scale(1.1) rotate(0deg);
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -110%) scale(1.25) rotate(0deg);
    opacity: 0;
  }
}

/* Filter Bottom Sheet Modal Engine */
.modal-overlay.filter-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 99999;
  display: none;
  align-items: flex-end;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.modal-overlay.filter-drawer-overlay.active {
  display: flex;
  opacity: 1;
}

.filter-drawer-sheet {
  width: 100%;
  max-width: 520px;
  background: #FFFFFF;
  border-top-left-radius: 26px;
  border-top-right-radius: 26px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 -10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}

.modal-overlay.filter-drawer-overlay.active .filter-drawer-sheet {
  transform: translateY(0);
}

.filter-drawer-handle {
  width: 40px;
  height: 5px;
  background: #E5E5EA;
  border-radius: 10px;
  margin: 10px auto 4px auto;
}

.filter-drawer-header {
  padding: 10px 20px 14px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #F2F2F7;
}

.filter-drawer-title {
  font-family: system-ui, -apple-system, 'Plus Jakarta Sans', sans-serif;
  font-size: 1.15rem;
  font-weight: 300;
  color: #1C1C1E;
  letter-spacing: -0.4px;
  margin: 0;
  white-space: nowrap;
}

.filter-drawer-reset-btn {
  background: none;
  border: none;
  color: #FF2D55;
  font-size: 0.85rem;
  font-weight: 400;
  font-family: system-ui, -apple-system, sans-serif;
  cursor: pointer;
  padding: 4px 8px;
}

.filter-drawer-close-btn {
  background: #F8F8FA;
  border: 1px solid #E5E5EA;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  color: #1C1C1E;
  font-size: 0.95rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.filter-drawer-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 20px;
  -webkit-overflow-scrolling: touch;
}

.filter-group-title {
  font-family: system-ui, -apple-system, 'Plus Jakarta Sans', sans-serif;
  font-size: 0.8rem;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #636366;
  margin-bottom: 8px;
}

.filter-chip-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip-btn {
  background: #F8F8FA;
  color: #1C1C1E;
  border: 1px solid #E5E5EA;
  padding: 7px 15px;
  border-radius: 18px;
  font-size: 0.85rem;
  font-weight: 400;
  font-family: system-ui, -apple-system, sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
  user-select: none;
}

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

.filter-chip-btn.active {
  background: #1C1C1E;
  color: #FFFFFF;
  border-color: #1C1C1E;
  font-weight: 500;
  box-shadow: 0 3px 10px rgba(28, 28, 30, 0.15);
}

.filter-range-label-wrap {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
}

.filter-range-value {
  font-size: 0.88rem;
  font-weight: 500;
  font-family: system-ui, -apple-system, sans-serif;
  color: #FF2D55;
  background: rgba(255, 45, 85, 0.08);
  padding: 3px 10px;
  border-radius: 12px;
}

.filter-range-slider {
  width: 100%;
  accent-color: #FF2D55;
  height: 6px;
  border-radius: 4px;
  background: #E5E5EA;
  outline: none;
  cursor: pointer;
}

.filter-drawer-footer {
  padding: 14px 20px;
  border-top: 1px solid #F2F2F7;
  background: #FFFFFF;
}

.filter-apply-btn {
  width: 100%;
  padding: 14px;
  border-radius: 16px;
  font-weight: 500;
  font-size: 0.98rem;
  font-family: system-ui, -apple-system, sans-serif;
  background: #1C1C1E;
  color: #FFFFFF;
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 14px rgba(28, 28, 30, 0.2);
  transition: transform 0.15s ease, opacity 0.15s ease;
}

.filter-apply-btn:active {
  transform: scale(0.98);
}

.filter-apply-btn:active {
  transform: scale(0.98);
}


