/* ==========================================================
   AmorConnect - Modern Online Dating Platform
   Core Stylesheet (assets/css/style.css)
   ========================================================== */

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

:root {
  /* Color Palette */
  --primary: #e11d48;
  --primary-hover: #be123c;
  --primary-dark: #881337;
  --primary-light: #ffe4e6;
  --primary-soft: rgba(225, 29, 72, 0.08);

  --secondary: #9333ea;
  --secondary-hover: #7e22ce;
  --secondary-light: #f3e8ff;

  --accent-pink: #f43f5e;
  --accent-gold: #f59e0b;
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  --info: #0ea5e9;

  --gradient-primary: linear-gradient(135deg, #e11d48 0%, #be123c 45%, #9333ea 100%);
  --gradient-hero: linear-gradient(135deg, rgba(136, 19, 55, 0.94) 0%, rgba(15, 23, 42, 0.92) 100%);
  --gradient-card: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(15, 23, 42, 0.85) 100%);

  /* Neutrals */
  --bg-body: #f8fafc;
  --bg-card: #ffffff;
  --bg-surface: #f1f5f9;
  --bg-glass: rgba(255, 255, 255, 0.85);

  --text-main: #0f172a;
  --text-secondary: #334155;
  --text-muted: #64748b;
  --text-light: #94a3b8;
  --text-white: #ffffff;

  --border: #e2e8f0;
  --border-focus: #f43f5e;

  /* Geometry & Shadows */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.06), 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 6px 18px -4px rgba(15, 23, 42, 0.08), 0 4px 6px -2px rgba(15, 23, 42, 0.04);
  --shadow-lg: 0 14px 34px -8px rgba(15, 23, 42, 0.12), 0 8px 12px -4px rgba(15, 23, 42, 0.06);
  --shadow-rose: 0 10px 25px -5px rgba(225, 29, 72, 0.35);

  --transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Reset & Base Setup */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background-color: var(--bg-body);
  color: var(--text-secondary);
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Outfit', sans-serif;
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: var(--transition);
}
a:hover {
  color: var(--primary-hover);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

.container-narrow {
  max-width: 760px;
}

/* ==========================================================
   Navigation Bar
   ========================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--bg-glass);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  transition: var(--transition);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Outfit', sans-serif;
  font-size: 24px;
  font-weight: 800;
  color: var(--text-main);
  text-decoration: none;
}
.brand-logo img {
  height: 40px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
}

.nav-link {
  font-weight: 600;
  font-size: 15px;
  color: var(--text-secondary);
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
  color: var(--primary);
  background-color: var(--primary-soft);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

/* Notification Bell Dropdown */
.notification-bell {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-secondary);
  cursor: pointer;
  border: 1px solid var(--border);
  transition: var(--transition);
}
.notification-bell:hover {
  background: var(--primary-soft);
  color: var(--primary);
  border-color: var(--primary-light);
}
.bell-badge {
  position: absolute;
  top: -2px;
  right: -2px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  min-width: 18px;
  height: 18px;
  border-radius: var(--radius-full);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 4px;
  border: 2px solid #fff;
  animation: pulseBadge 2s infinite;
}

@keyframes pulseBadge {
  0% { transform: scale(1); }
  50% { transform: scale(1.15); }
  100% { transform: scale(1); }
}

.dropdown-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  background: #fff;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
  min-width: 320px;
  max-width: 360px;
  display: none;
  flex-direction: column;
  z-index: 200;
  overflow: hidden;
  animation: dropIn 0.2s ease-out;
}
.dropdown-menu.show {
  display: flex;
}
@keyframes dropIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.dropdown-header {
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.dropdown-list {
  max-height: 380px;
  overflow-y: auto;
  list-style: none;
}
.dropdown-item-notif {
  padding: 12px 16px;
  border-bottom: 1px solid #f1f5f9;
  display: flex;
  gap: 12px;
  transition: var(--transition);
}
.dropdown-item-notif:hover {
  background: var(--bg-body);
}
.dropdown-item-notif.unread {
  background: #fff1f2;
}

/* User Menu Trigger */
.user-menu-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 4px 12px 4px 4px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
}
.user-menu-btn:hover {
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.user-avatar-sm {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  object-fit: cover;
}
.user-menu-name {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-main);
}

.user-nav-dropdown {
  min-width: 220px;
}
.user-nav-dropdown a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
}
.user-nav-dropdown a:hover {
  background: var(--primary-soft);
  color: var(--primary);
}
.dropdown-divider {
  height: 1px;
  background: var(--border);
  margin: 4px 0;
}

.mobile-nav-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: var(--text-main);
}

/* ==========================================================
   Buttons & Micro-Interactions
   ========================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  border: 1px solid transparent;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
  white-space: nowrap;
}
.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
  box-shadow: var(--shadow-rose);
}
.btn-primary:hover {
  color: #fff;
  box-shadow: 0 12px 28px -4px rgba(225, 29, 72, 0.5);
  transform: translateY(-2px);
}

.btn-secondary {
  background: #fff;
  color: var(--text-main);
  border-color: var(--border);
  box-shadow: var(--shadow-sm);
}
.btn-secondary:hover {
  background: var(--bg-surface);
  color: var(--text-main);
  border-color: #cbd5e1;
}

.btn-outline {
  background: transparent;
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: #fff;
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
}
.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
}
.btn-block {
  display: flex;
  width: 100%;
}

.btn-like {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-full);
  background: #fff;
  border: 1px solid var(--border);
  color: var(--text-muted);
  box-shadow: var(--shadow-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 20px;
}
.btn-like:hover {
  transform: scale(1.12);
  color: var(--primary);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-rose);
}
.btn-like.liked {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* ==========================================================
   Alerts & Notifications
   ========================================================== */
.alert {
  display: flex;
  align-items: center;
  padding: 14px 20px;
  border-radius: var(--radius-md);
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 500;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}
.alert-icon {
  font-size: 18px;
  font-weight: bold;
}
.alert-text {
  flex: 1;
}
.alert-close {
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  line-height: 1;
  opacity: 0.6;
  transition: var(--transition);
}
.alert-close:hover {
  opacity: 1;
}

.alert-success { background: #ecfdf5; color: #065f46; border: 1px solid #a7f3d0; }
.alert-danger, .alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.alert-info { background: #f0f9ff; color: #075985; border: 1px solid #bae6fd; }

/* ==========================================================
   Hero Section (Homepage)
   ========================================================== */
.hero-section {
  position: relative;
  background: var(--gradient-hero), url('../images/hero-bg.svg') center/cover;
  padding: 100px 0 80px;
  color: #fff;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(225, 29, 72, 0.4) 0%, rgba(147, 51, 234, 0) 70%);
  filter: blur(40px);
  pointer-events: none;
}
.hero-content {
  text-align: center;
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  padding: 8px 18px;
  border-radius: var(--radius-full);
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 24px;
  border: 1px solid rgba(255, 255, 255, 0.25);
}
.hero-title {
  font-size: 52px;
  font-weight: 800;
  line-height: 1.15;
  color: #ffffff;
  margin-bottom: 20px;
  letter-spacing: -1px;
}
.hero-title span {
  background: linear-gradient(135deg, #fb7185 0%, #c084fc 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-subtitle {
  font-size: 20px;
  color: #e2e8f0;
  margin-bottom: 36px;
  max-width: 650px;
  margin-left: auto;
  margin-right: auto;
}
.hero-buttons {
  display: flex;
  justify-content: center;
  gap: 16px;
  margin-bottom: 48px;
}

/* Quick Search Widget */
.hero-search-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  padding: 24px 30px;
  border-radius: var(--radius-xl);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.25);
  max-width: 1040px;
  margin: 0 auto;
  color: var(--text-main);
  position: relative;
  z-index: 5;
}
.search-form-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr) auto;
  gap: 16px;
  align-items: flex-end;
}
.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  text-align: left;
}
.form-field-group label {
  font-size: 13px;
  font-weight: 700;
  color: var(--text-secondary);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.form-select, .form-input {
  width: 100%;
  height: 48px;
  padding: 0 16px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
  background-color: #fff;
  font-family: inherit;
  font-size: 15px;
  color: var(--text-main);
  transition: var(--transition);
}
.form-select:focus, .form-input:focus {
  outline: none;
  border-color: var(--border-focus);
  box-shadow: 0 0 0 4px var(--primary-soft);
}

/* ==========================================================
   Section Layouts
   ========================================================== */
.section {
  padding: 80px 0;
}
.section-muted {
  background-color: var(--bg-surface);
}
.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 50px;
}
.section-tag {
  color: var(--primary);
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 8px;
  display: block;
}
.section-title {
  font-size: 36px;
  margin-bottom: 14px;
}
.section-desc {
  font-size: 16px;
  color: var(--text-muted);
}

/* ==========================================================
   Member Profile Cards & Grid
   ========================================================== */
.members-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 24px;
}

.profile-card {
  position: relative;
  background: #fff;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border);
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.profile-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: #cbd5e1;
}

.card-media {
  position: relative;
  width: 100%;
  height: 320px;
  overflow: hidden;
  background-color: #f1f5f9;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.profile-card:hover .card-media img {
  transform: scale(1.05);
}

.card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 60%;
  background: var(--gradient-card);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: #fff;
}

.card-status-badges {
  position: absolute;
  top: 14px;
  left: 14px;
  display: flex;
  gap: 8px;
  z-index: 2;
}

.badge-online {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(16, 185, 129, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(4px);
}
.badge-online::before {
  content: '';
  width: 7px;
  height: 7px;
  background: #fff;
  border-radius: 50%;
}

.badge-verified {
  background: rgba(14, 165, 233, 0.9);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-floating-like {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
}

.card-user-info h3 {
  font-size: 20px;
  color: #fff;
  margin-bottom: 2px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.card-location {
  font-size: 13px;
  color: #cbd5e1;
  display: flex;
  align-items: center;
  gap: 4px;
}

.card-body {
  padding: 16px 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  flex: 1;
}
.card-headline {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tag-pill {
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-surface);
  color: var(--text-secondary);
  padding: 3px 8px;
  border-radius: var(--radius-full);
}

.card-footer {
  padding: 12px 20px;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 8px;
}
.card-footer .btn {
  flex: 1;
}

/* ==========================================================
   Discovery & Search Page (Sidebar + Grid)
   ========================================================== */
.discovery-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 30px;
  margin-top: 30px;
  margin-bottom: 60px;
}

.filters-sidebar {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 94px;
  height: fit-content;
}
.filters-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}
.filters-header h3 {
  font-size: 18px;
}
.filter-group {
  margin-bottom: 20px;
}
.filter-group label {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--text-main);
  margin-bottom: 8px;
}
.range-slider-display {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--primary);
  font-weight: 700;
  margin-top: 6px;
}

/* ==========================================================
   Chat & Messaging System UI
   ========================================================== */
.chat-container {
  display: grid;
  grid-template-columns: 340px 1fr;
  height: calc(100vh - 160px);
  min-height: 580px;
  background: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  margin: 30px 0;
  overflow: hidden;
}

.chat-sidebar {
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  background: #fff;
}
.chat-sidebar-header {
  padding: 18px 20px;
  border-bottom: 1px solid var(--border);
}
.chat-sidebar-header h2 {
  font-size: 20px;
}

.conversations-list {
  flex: 1;
  overflow-y: auto;
  list-style: none;
}
.conv-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 20px;
  border-bottom: 1px solid #f8fafc;
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}
.conv-item:hover, .conv-item.active {
  background: #fff1f2;
}
.conv-avatar-wrap {
  position: relative;
}
.conv-avatar {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-full);
  object-fit: cover;
}
.conv-status-dot {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 12px;
  height: 12px;
  background: var(--success);
  border: 2px solid #fff;
  border-radius: 50%;
}
.conv-meta {
  flex: 1;
  min-width: 0;
}
.conv-name-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 4px;
}
.conv-name {
  font-weight: 700;
  font-size: 15px;
  color: var(--text-main);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conv-time {
  font-size: 11px;
  color: var(--text-light);
}
.conv-snippet {
  font-size: 13px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.conv-unread-badge {
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  margin-left: 6px;
}

/* Chat Main View */
.chat-main {
  display: flex;
  flex-direction: column;
  background: #f8fafc;
}
.chat-topbar {
  padding: 14px 24px;
  background: #fff;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.chat-target-user {
  display: flex;
  align-items: center;
  gap: 12px;
}
.chat-target-user img {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-full);
  object-fit: cover;
}

.chat-messages-area {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.msg-bubble-wrap {
  display: flex;
  flex-direction: column;
  max-width: 65%;
}
.msg-bubble-wrap.sent {
  align-self: flex-end;
  align-items: flex-end;
}
.msg-bubble-wrap.received {
  align-self: flex-start;
  align-items: flex-start;
}

.msg-bubble {
  padding: 12px 18px;
  border-radius: var(--radius-lg);
  font-size: 14px;
  line-height: 1.5;
  word-break: break-word;
  box-shadow: var(--shadow-sm);
}
.sent .msg-bubble {
  background: var(--gradient-primary);
  color: #fff;
  border-bottom-right-radius: 4px;
}
.received .msg-bubble {
  background: #fff;
  color: var(--text-main);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.msg-meta {
  font-size: 11px;
  color: var(--text-light);
  margin-top: 4px;
  padding: 0 4px;
}

.chat-input-bar {
  padding: 16px 24px;
  background: #fff;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 12px;
  align-items: center;
}
.chat-input {
  flex: 1;
  height: 48px;
  padding: 0 20px;
  border-radius: var(--radius-full);
  border: 1px solid var(--border);
  font-family: inherit;
  font-size: 15px;
  background: var(--bg-surface);
  transition: var(--transition);
}
.chat-input:focus {
  outline: none;
  background: #fff;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.chat-empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: var(--text-muted);
  text-align: center;
  padding: 40px;
}
.chat-empty-icon {
  font-size: 64px;
  margin-bottom: 16px;
  color: var(--primary-light);
}

/* ==========================================================
   Match Celebration Modal
   ========================================================== */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(15, 23, 42, 0.7);
  backdrop-filter: blur(8px);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.modal-overlay.show {
  display: flex;
}

.match-modal-card {
  background: #fff;
  border-radius: var(--radius-xl);
  padding: 40px 32px;
  text-align: center;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 25px 50px -12px rgba(225, 29, 72, 0.35);
  position: relative;
  animation: scaleUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes scaleUp {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.match-avatars-duo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 28px 0;
  position: relative;
}
.match-avatar-circle {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  border: 4px solid #fff;
  box-shadow: var(--shadow-lg);
  object-fit: cover;
}
.match-avatar-circle:first-child {
  transform: translateX(14px);
  z-index: 1;
}
.match-avatar-circle:last-child {
  transform: translateX(-14px);
  z-index: 2;
}
.match-heart-badge {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: 42px;
  height: 42px;
  background: var(--gradient-primary);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.4);
}

/* ==========================================================
   User Dashboard Layout & Completion Bar
   ========================================================== */
.dashboard-grid {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  margin: 40px 0;
}
.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 20px;
  margin-bottom: 30px;
}
.stat-card {
  background: #fff;
  padding: 24px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  gap: 16px;
  transition: var(--transition);
}
.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.stat-icon {
  width: 50px;
  height: 50px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
}
.stat-icon.pink { background: #ffe4e6; color: var(--primary); }
.stat-icon.purple { background: #f3e8ff; color: var(--secondary); }
.stat-icon.blue { background: #e0f2fe; color: var(--info); }
.stat-icon.emerald { background: #d1fae5; color: var(--success); }

.stat-number {
  font-size: 28px;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

/* Profile Progress Bar */
.progress-bar-container {
  background: #e2e8f0;
  height: 10px;
  border-radius: var(--radius-full);
  overflow: hidden;
  margin: 10px 0;
}
.progress-bar-fill {
  background: var(--gradient-primary);
  height: 100%;
  border-radius: var(--radius-full);
  transition: width 0.6s ease;
}

/* ==========================================================
   Footer
   ========================================================== */
.site-footer {
  background: #0f172a;
  color: #94a3b8;
  padding: 70px 0 30px;
  margin-top: auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 40px;
  margin-bottom: 50px;
}
.footer-brand p {
  margin-top: 14px;
  font-size: 14px;
  line-height: 1.6;
  max-width: 320px;
}
.footer-col h4 {
  color: #ffffff;
  font-size: 16px;
  margin-bottom: 20px;
}
.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.footer-links a {
  color: #94a3b8;
  font-size: 14px;
}
.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}
.footer-bottom {
  padding-top: 30px;
  border-top: 1px solid #1e293b;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}
