@import url('https://fonts.googleapis.com/css2?family=Italianno&display=swap');
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:ital,wght@0,400..900;1,400..900&display=swap');

/* ==========================================
   MALSARA.LK — ETHEREAL ESTATE COLOR SYSTEM
   ========================================== */

:root {
  /* Core Brand Colors */
  --primary: #C84B7A;
  --heading: #8B1A3A;
  --accent: #D4607E;
  --soft: #E8A0B4;

  /* Background System */
  --bg-main: #FDF7F5;
  --bg-alt: #F2EDE8;
  --white: #FFFFFF;

  /* Structure Colors */
  --border: #E8E3DC;
  --border-light: #EEE9E3;

  /* Text System */
  --text-main: #1A1A1A;
  --text-muted: #6B6560;
  --text-light: #A8A29E;

  /* Special UI Colors */
  --gold: #F5C800;
  --success: #6FCF97;
  --error: #E57373;

  /* Button Colors */
  --btn-primary: #C84B7A;
  --btn-primary-hover: #B63E6C;
  --btn-ghost-border: #C84B7A;
  --btn-ghost-text: #C84B7A;
  --btn-ghost-hover: #FDF0F4;

  /* Shadow System */
  --shadow-soft: 0 8px 24px rgba(232, 160, 180, 0.25);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-hover: 0 15px 35px rgba(200, 75, 122, 0.12);
  --font-sans: 'Playfair Display', serif;
  --font-display: 'Playfair Display', serif;
}

/* ==========================================
   HERO SECTION — NEW DESIGN
   ========================================== */
.new-hero-section {
  background: linear-gradient(135deg, #FDF7F5 0%, #FFF5F3 100%);
  padding: 80px 0 100px;
  position: relative;
  overflow: hidden;
}

.new-hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: linear-gradient(135deg, rgba(200, 75, 122, 0.08) 0%, rgba(248, 187, 208, 0.12) 100%);
  pointer-events: none;
  border-radius: 0 0 0 100px;
}

.new-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 60px;
  position: relative;
  z-index: 2;
}

/* Left Content */
.hero-left-content {
  flex: 1;
  max-width: 550px;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(248, 187, 208, 0.3);
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  color: #C84B7A;
  margin-bottom: 24px;
}

.pink-dot {
  width: 8px;
  height: 8px;
  background: #C84B7A;
  border-radius: 50%;
  display: inline-block;
}

.hero-main-heading {
  font-family: 'Playfair Display', serif;
  font-size: 48px;
  font-weight: 700;
  color: #1A0A0A;
  line-height: 1.2;
  margin-bottom: 20px;
  letter-spacing: -0.5px;
}

.italic-pink {
  font-family: 'Playfair Display', serif;
  font-style: italic;
  color: #C84B7A;
  font-size: 52px;
  font-weight: 400;
}

.hero-description {
  font-size: 15px;
  color: #6B6560;
  line-height: 1.7;
  margin-bottom: 28px;
  font-weight: 400;
  max-width: 400px;
}

/* Video Guide Button */
.hero-story-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  background: rgba(200, 75, 122, 0.08);
  border: 1px solid rgba(200, 75, 122, 0.2);
  border-radius: 50px;
  text-decoration: none;
  padding: 8px 24px 8px 8px;
  transition: all 0.3s ease;
}

.hero-story-btn:hover {
  background: rgba(200, 75, 122, 0.15);
  transform: translateY(-2px);
}

@keyframes pulse-story-btn {
  0% {
    box-shadow: 0 0 0 0 rgba(200, 75, 122, 0.6);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(200, 75, 122, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(200, 75, 122, 0);
  }
}

.hero-story-play {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(135deg, #C84B7A 0%, #8B1A3A 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s ease;
  animation: pulse-story-btn 2s infinite;
}

.hero-story-play svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
  margin-left: 3px;
}

.hero-story-text {
  color: #7B1937;
  font-weight: 700;
  font-size: 15px;
  font-family: 'DM Sans', sans-serif;
  letter-spacing: 0.5px;
}

.hero-inputs {
  display: flex;
  gap: 16px;
  margin-bottom: 40px;
}

.hero-input {
  flex: 1;
  padding: 14px 20px;
  border: 2px solid #E8E3DC;
  border-radius: 12px;
  font-size: 14px;
  font-family: 'Playfair Display', serif;
  background: #FFFFFF;
  color: #1A1A1A;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.hero-input::placeholder {
  color: #A8A29E;
}

.hero-input:focus {
  outline: none;
  border-color: #C84B7A;
  box-shadow: 0 0 0 3px rgba(200, 75, 122, 0.1);
}

.hero-statistics {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 0;
}

.stat-item {
  text-align: left;
  padding: 0 24px;
}

.stat-item:first-child {
  padding-left: 0;
}

.stat-value {
  font-family: 'Playfair Display', serif;
  font-size: 36px;
  font-weight: 700;
  color: #1A0A0A;
  line-height: 1;
  margin-bottom: 4px;
  display: flex;
  align-items: flex-start;
}

.stat-plus,
.stat-percent {
  font-size: 24px;
  color: #C84B7A;
  font-weight: 600;
}

.stat-text {
  font-size: 12px;
  color: #6B6560;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  line-height: 1.4;
}

.stat-divider {
  width: 1px;
  height: 50px;
  background: #E8E3DC;
}

/* Right Content - Profile Cards */
.hero-right-content {
  flex: 1;
  max-width: 400px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 500px;
}

/* Background Card Layers */
.profile-card-bg-1 {
  position: absolute;
  width: 280px;
  height: 380px;
  background: white;
  border-radius: 24px;
  top: 20px;
  right: 40px;
  z-index: 1;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  transform: rotate(-8deg);
}

.profile-card-bg-2 {
  position: absolute;
  width: 280px;
  height: 380px;
  background: white;
  border-radius: 24px;
  top: 10px;
  right: 20px;
  z-index: 2;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transform: rotate(-4deg);
}

/* Main Profile Card */
.profile-card-main {
  position: relative;
  width: 300px;
  background: white;
  border-radius: 24px;
  padding: 100px 40px 40px;
  box-shadow: 0 8px 40px rgba(200, 75, 122, 0.15), 0 2px 12px rgba(0, 0, 0, 0.08);
  z-index: 3;
  text-align: center;
}

/* New Match Badge */
.new-match-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: white;
  color: #C84B7A;
  padding: 5px 12px 5px 9px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 2px 12px rgba(200, 75, 122, 0.15);
  border: 1px solid rgba(200, 75, 122, 0.1);
  position: absolute;
  top: 14px;
  right: 16px;
  left: auto;
  z-index: 10;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.new-match-badge:hover {
  transform: scale(1.05);
}

.new-match-badge svg {
  flex-shrink: 0;
  vertical-align: middle;
}

.profile-card .new-match-badge {
  top: 14px;
  right: 16px;
  left: auto;
}

/* Avatar */
.profile-avatar-img {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: linear-gradient(135deg, #F8BBD0 0%, #FCE4EC 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(200, 75, 122, 0.2);
}

.profile-avatar-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.profile-name {
  font-size: 18px;
  font-weight: 700;
  color: #1A0A0A;
  margin-bottom: 6px;
  font-family: 'Playfair Display', serif !important;
}

.profile-location {
  font-size: 13px;
  color: #6B6560;
  margin-bottom: 16px;
  font-weight: 500;
}

.profile-tags {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
  flex-wrap: wrap;
  color: #000000;
  position: relative;
  z-index: 10;
}

.tag {
  background: #FFF5F3;
  color: #000000;
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  font-weight: 600;
  border: 1px solid rgba(200, 75, 122, 0.2);
  position: relative;
  z-index: 10;
  display: inline-block;
  visibility: visible;
}

/* Platinum Button */
.platinum-btn {
  width: 100%;
  padding: 12px 20px;
  background: linear-gradient(135deg, #C84B7A 0%, #D4607E 100%);
  color: white;
  border: none;
  border-radius: 25px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'Playfair Display', serif;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(200, 75, 122, 0.3);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.platinum-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 75, 122, 0.4);
}

/* Bottom Badges */
.bottom-badges {
  position: absolute;
  bottom: 20px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 4;
}

.bottom-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: white;
  padding: 10px 16px;
  border-radius: 25px;
  font-size: 12px;
  font-weight: 500;
  color: #1A0A0A;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  border: 1px solid rgba(0, 0, 0, 0.05);
}

/* ==========================================
   MAIN LAYOUT
   ========================================== */
.main-content {
  max-width: 1420px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 30px;
}

/* ==========================================
   FILTER SIDEBAR
   ========================================== */
.filter-sidebar {
  background: var(--bg-alt);
  padding: 25px;
  border-radius: 16px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.filter-sidebar h3 {
  font-family: 'Playfair Display', serif;
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 2px solid var(--border);
}

.filter-group {
  margin-bottom: 20px;
}

.filter-group label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 8px;
}

.filter-group select,
.filter-group input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-main);
  font-size: 14px;
  font-family: 'Playfair Display', serif;
  transition: all 0.3s ease;
}

.filter-group select,
.filter_box select.form-control {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  padding-right: 42px;
  background-color: var(--white);
  background-image:
    linear-gradient(45deg, transparent 50%, var(--text-muted) 50%),
    linear-gradient(135deg, var(--text-muted) 50%, transparent 50%);
  background-position:
    calc(100% - 21px) 50%,
    calc(100% - 15px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.filter-group select:focus,
.filter-group input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200, 75, 122, 0.1);
}

.religion-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.religion-btn {
  padding: 8px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: var(--white);
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}

.religion-btn:hover,
.religion-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.age-range {
  display: flex;
  gap: 10px;
  align-items: center;
}

.age-range select {
  flex: 1;
}

.age-separator {
  color: var(--text-muted);
  font-weight: 600;
}

.filter-actions {
  margin-top: 25px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.btn-search {
  width: 100%;
  padding: 14px;
  background: var(--primary);
  color: var(--white);
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: 'Playfair Display', serif;
}

.btn-search:hover {
  background: var(--btn-primary-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(200, 75, 122, 0.3);
}

.btn-clear {
  display: block;
  text-align: center;
  margin-top: 12px;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
}

.btn-clear:hover {
  color: var(--primary);
}

/* ==========================================
   PROFILES SECTION
   ========================================== */
.profiles-section {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 25px;
  box-shadow: var(--shadow-card);
  box-sizing: border-box;
  min-width: 0;
}

.profiles-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}

.profiles-count {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
}

.profile-filter-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.profile-filter-links a {
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  padding: 8px 12px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.profile-filter-links a:hover,
.profile-filter-links a.active {
  /* background: var(--primary); */
  border-color: var(--primary);
  color: var(--primary);
}

.profile-filter-links span {
  font-weight: 700;
}

.view-toggle {
  display: flex;
  gap: 10px;
}

.view-toggle button {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.view-toggle button:hover,
.view-toggle button.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ==========================================
   PROFILE CARDS
   ========================================== */
.profiles-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

@media (max-width: 1200px) {
  .profiles-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (max-width: 900px) {
  .profiles-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .profiles-grid {
    grid-template-columns: 1fr;
  }
}

.profile-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 20px;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: var(--shadow-card);
  min-width: 0;
}

.profile-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-hover);
  border-color: var(--soft);
}

.profile-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
  font-weight: 700;
  margin: 0 auto 15px;
  position: relative;
}

/* ── Profile Badges (pill-shaped) ── */
.profile-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 5px 12px 5px 9px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  z-index: 10;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.profile-badge:hover {
  transform: scale(1.05);
}

.profile-badge svg {
  flex-shrink: 0;
  vertical-align: middle;
}

/* Premium — amber/gold */
.badge-platinum,
.badge-premium {
  background: linear-gradient(135deg, #f9c74f 0%, #f4a800 100%);
  color: #6b3a00;
  box-shadow: 0 2px 10px rgba(244, 168, 0, 0.32);
}

/* Featured — soft lavender/purple */
.profile-badge.badge-featured,
.badge-featured {
  top: 14px;
  right: 16px !important;
  left: auto !important;
  width: auto !important;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  color: #6d28d9;
  border: 1px solid rgba(196, 181, 253, 0.6);
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* New — soft mint */
.badge-new {
  background: #d1fae5;
  color: #065f46;
  border: 1.5px solid #6ee7b7;
}

/* Verified — soft blue */
.badge-verified {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1.5px solid #93c5fd;
}

/* NIC Verified — matches site brand (Malsara Rose & Wine) */
.nic-verified-badge {
  position: absolute;
  top: 14px;
  left: 16px;
  background: linear-gradient(135deg, #C84B7A 0%, #8B1A3A 100%);
  color: #ffffff !important;
  padding: 5px 12px 5px 9px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(200, 75, 122, 0.32);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nic-verified-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(200, 75, 122, 0.45);
}

.nic-verified-badge .badge-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.profile-badge.badge-nic-verified,
.badge-nic-verified {
  background: linear-gradient(135deg, #C84B7A 0%, #8B1A3A 100%);
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(200, 75, 122, 0.32);
  border: none;
}

.profile-name {
  font-size: 18px;
  font-weight: 700;
  color: var(--heading);
  text-align: center;
  margin-bottom: 5px;
  font-family: 'Playfair Display', serif !important;
}

.profile-profession {
  font-size: 14px;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 15px;
}

.profile-details {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 15px;
  justify-content: center;
}

.detail-tag {
  background: var(--bg-alt);
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}

.profile-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.btn-view-profile {
  flex: 1;
  background: transparent;
  border: 2px solid #c84b7a;
  color: #c84b7a;
  font-family: var(--font-sans);
  font-size: 14px;
  font-weight: 600;
  padding: 12px 20px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  min-height: 44px;
  height: 44px;
  text-decoration: none;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-view-profile:hover {
  background: var(--ghost-hover-bg);
  color: #c84b7a;
  transform: translateY(-2px);
}

.btn-favorite {
  width: 45px;
  height: 45px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
}

.btn-favorite:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-favorite.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* ==========================================
   PAGINATION
   ========================================== */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.pagination button,
.pagination a {
  width: 40px;
  height: 40px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  color: var(--text-main);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-weight: 500;
}

.pagination button:hover,
.pagination a:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.pagination button.active,
.pagination a.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.pagination .ellipsis {
  border: none;
  background: transparent;
  cursor: default;
}

/* ==========================================
   RESPONSIVE DESIGN
   ========================================== */
@media (max-width: 992px) {
  .proposals-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .main-content {
    grid-template-columns: 1fr;
  }

  .filter-sidebar {
    position: relative;
    top: 0;
  }

  .new-hero-container {
    flex-direction: column;
    text-align: center;
    gap: 40px;
  }

  .hero-left-content {
    max-width: 100%;
  }

  .hero-inputs {
    flex-direction: column;
  }

  .hero-statistics {
    justify-content: center;
    flex-wrap: wrap;
    gap: 30px;
  }

  .stat-item {
    text-align: center;
  }

  .hero-right-content {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .proposals-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .new-hero-section {
    padding: 60px 0 80px;
  }

  .hero-main-heading {
    font-size: 36px;
  }

  .italic-pink {
    font-size: 40px;
  }

  .hero-description {
    font-size: 15px;
  }

  .hero-statistics {
    gap: 25px;
  }

  .stat-value {
    font-size: 28px;
  }

  .stat-text {
    font-size: 12px;
  }

  .profile-card-main {
    width: 280px;
    padding: 28px 24px;
  }

  .profile-card-bg {
    width: 260px;
    height: 360px;
  }

  .profiles-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 15px;
  }

  .main-content {
    padding: 30px 15px;
  }
}

@media (max-width: 576px) {
  .proposals-grid {
    grid-template-columns: 1fr;
  }

  .new-hero-section {
    padding: 40px 0 60px;
  }

  .hero-main-heading {
    font-size: 28px;
  }

  .italic-pink {
    font-size: 32px;
  }

  .hero-description {
    font-size: 14px;
  }

  .trust-badge {
    font-size: 10px;
    padding: 8px 16px;
  }

  .hero-statistics {
    gap: 20px;
    flex-direction: column;
  }

  .stat-value {
    font-size: 24px;
  }

  .stat-text {
    font-size: 11px;
  }

  .profile-card-main {
    width: 260px;
    padding: 70px 30px;
  }

  .profile-card-bg {
    width: 240px;
    height: 340px;
  }

  .profile-avatar {
    width: 70px;
    height: 70px;
    font-size: 24px;
  }

  .profile-name {
    font-size: 18px;
  }

  .profile-location {
    font-size: 13px;
  }

  .tag {
    font-size: 11px;
    padding: 5px 12px;
  }

  .profiles-grid {
    grid-template-columns: 1fr;
  }

  .profiles-header {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .filter-sidebar {
    padding: 20px;
  }

  .profile-badge.badge-featured,
  .badge-featured {
    left: 8px !important;
    right: auto !important;
    width: auto !important;
  }
}

/* ==========================================
   LEGACY STYLES (for compatibility)
   ========================================== */
.btn-danger {
  color: var(--white);
  background-color: var(--primary);
  border-color: var(--primary);
}

.btn-danger:hover,
.btn-danger:focus,
.btn-danger:active {
  color: var(--white);
  background-color: var(--btn-primary-hover);
  border-color: var(--btn-primary-hover);
}

.page-item.active .page-link {
  z-index: 3;
  color: var(--white);
  background-color: var(--primary);
  border-color: var(--primary);
}

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

.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 0.2rem rgba(200, 75, 122, 0.25);
}

/* Filter Box Legacy */
.filter_box {
  background: var(--white);
  border-radius: 20px;
  box-shadow: var(--shadow-card);
  border: 1px solid var(--border);
  padding: 30px;
  margin-bottom: 30px;
}

.filter_box h3 {
  color: var(--heading);
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}

.filter_box b {
  color: var(--primary);
  font-weight: 600;
}

.filter_box label {
  color: var(--text-main);
  font-weight: 600;
  margin-bottom: 8px;
  display: block;
  font-size: 14px;
}

.filter_box select.form-control {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 42px 12px 15px;
  background-color: var(--white);
  color: var(--text-main);
  font-size: 14px;
  transition: all 0.3s ease;
  width: 100%;
}

.filter_box select.form-control:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(200, 75, 122, 0.1);
  outline: none;
}

.filter_box select.form-control:hover {
  border-color: var(--primary);
}

#search_profiles {
  background: var(--primary) !important;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(200, 75, 122, 0.3);
}

#search_profiles:hover {
  background: var(--btn-primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 75, 122, 0.4);
}

.common-filter-button-exe {
  background: var(--primary) !important;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(200, 75, 122, 0.3);
}

.common-filter-button-exe:hover {
  background: var(--btn-primary-hover) !important;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(200, 75, 122, 0.4);
}

/* ==========================================
   PROPOSAL CARD STYLES - Redesigned to match profile-card
   ========================================== */
.proposals-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  padding: 10px 0;
}

.profiles-grid.list-view {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.profiles-grid.list-view .profile-card {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: auto;
  padding: 20px;
}

.profiles-grid.list-view .profile-avatar {
  margin: 0 20px 0 0;
  flex-shrink: 0;
}

.profiles-grid.list-view .profile-badge {
  top: 10px;
  right: 10px;
}

.profiles-grid.list-view .profile-badge.badge-featured {
  top: 10px;
  right: 10px !important;
  left: auto !important;
}

.profiles-grid.list-view .new-match-badge {
  top: 10px;
  right: 10px;
  left: auto;
}

.profiles-grid.list-view .profile-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.profiles-grid.list-view .profile-name {
  text-align: left;
  margin-bottom: 5px;
}

.profiles-grid.list-view .profile-profession {
  text-align: left;
  margin-bottom: 10px;
}

.profiles-grid.list-view .profile-details {
  justify-content: flex-start;
  margin-bottom: 15px;
}

.profiles-grid.list-view .profile-actions {
  flex-direction: column;
  gap: 10px;
  margin-top: 0;
}

.proposal-card {
  background: var(--white);
  border: 1px solid #f3dfe7;
  border-radius: 14px;
  padding: 0;
  transition: all 0.3s ease;
  position: relative;
  box-shadow: 0 8px 22px rgba(126, 40, 74, 0.1);
  min-height: 326px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.proposal-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.1);
  border-color: #f3dfe7;
}

.proposals-grid .matching-profile-card {
  flex: none;
  min-width: 0;
}

.proposals-grid .proposal-image-premium {
  height: 184px;
}

.proposal-image {
  display: none;
}

.proposal-card .proposal-image-premium {
  position: relative;
  background: linear-gradient(135deg, #fff 0%, #fff8fa 100%);
  padding: 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
  height: 184px;
}

.proposal-card .premium-match-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 48px;
  height: 48px;
  background: conic-gradient(#b52258 var(--match-progress), #f3dfe7 0);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 0 4px #fff, 0 4px 10px rgba(0, 0, 0, 0.1);
  font: 700 18px 'Playfair Display', serif;
  color: #8d1b45;
  z-index: 2;
}

.proposal-card .premium-match-badge span {
  font-size: 12px;
  margin-left: 1px;
}

.proposal-card .premium-avatar-container {
  width: 78px;
  height: 78px;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  margin: 22px 0 7px;
  position: relative;
  z-index: 2;
}

.proposal-card .premium-avatar-container::after {
  content: '\2713';
  position: absolute;
  right: -2px;
  bottom: 2px;
  width: 15px;
  height: 15px;
  border-radius: 50%;
  background: #8d1b45;
  color: #fff;
  border: 2px solid #fff;
  font-size: 9px;
  line-height: 11px;
  font-weight: 700;
}

.proposal-card .premium-avatar-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #fff;
  background: #fff;
}

.proposal-card .premium-info-section {
  width: 100%;
}

.proposal-card .premium-profile-name {
  font: 700 15px/1.2 'Playfair Display', serif;
  color: #7e173d;
  margin: 0 0 5px;
}

.proposal-card .premium-profile-details {
  font-size: 10px;
  font-weight: 600;
  color: #75636b;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proposal-card .matching-profile-info {
  padding: 14px 16px 17px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.proposal-card .compatibility-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 10px;
  font-weight: 700;
  color: #1a1a1a;
  text-transform: uppercase;
  letter-spacing: .5px;
  margin-bottom: 15px;
}

.proposal-card .compatibility-overall {
  padding: 4px 8px;
  border: 1px solid #e7b7c9;
  border-radius: 10px;
  color: #8d1b45;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  white-space: nowrap;
}

.proposal-card .compatibility-breakdown {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 18px;
  flex: 1;
}

.proposal-card .compat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}

.proposal-card .compat-score {
  width: 35px;
  height: 35px;
  border: 2px solid #cf4b7b;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #8d1b45;
  font-size: 8px;
  font-weight: 700;
  flex-shrink: 0;
}

.proposal-card .compat-status {
  font-size: 8px;
  font-weight: 700;
  color: #8d1b45;
  text-transform: uppercase;
}

.proposal-card .compat-label {
  font-size: 8px;
  color: #666;
  font-weight: 500;
}

.proposal-card .btn-view-matching-profile {
  display: block;
  width: 100%;
  text-align: center;
  padding: 10px;
  border: 1px solid #b52258;
  border-radius: 8px;
  font-weight: 600;
  font-size: 11px;
  background: linear-gradient(90deg, #c63e72, #8f173f);
  color: #fff;
  text-decoration: none;
  transition: all .2s ease;
}

.proposal-card .btn-view-matching-profile:hover {
  background: #c84b7a;
  color: #fff;
}

.proposal-card .badge-platinum,
.proposal-card .badge-featured,
.proposal-card .badge-verified,
.proposal-card .badge-new,
.proposal-card .btn-favorite {
  display: none;
}

/* ── Profile Badges (pill-shaped) ── */
.profile-badge {
  position: absolute;
  top: 7px;
  right: 7px;
  padding: 5px 12px 5px 9px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  z-index: 10;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}


.profile-badge:hover {
  transform: scale(1.05);
}

.profile-badge svg {
  flex-shrink: 0;
  vertical-align: middle;
}

/* Premium — amber/gold */
.badge-platinum,
.badge-premium {
  background: linear-gradient(135deg, #f9c74f 0%, #f4a800 100%);
  color: #6b3a00;
  box-shadow: 0 2px 10px rgba(244, 168, 0, 0.32);
}

/* Featured — soft lavender/purple */
.profile-badge.badge-featured,
.badge-featured {
  top: 14px;
  right: 16px !important;
  left: auto !important;
  width: auto !important;
  background: linear-gradient(135deg, #f5f3ff 0%, #ede9fe 100%);
  color: #6d28d9;
  border: 1px solid rgba(196, 181, 253, 0.6);
  box-shadow: 0 4px 12px rgba(109, 40, 217, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(4px);
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.8);
}

/* New — soft mint */
.badge-new {
  background: #d1fae5;
  color: #065f46;
  border: 1.5px solid #6ee7b7;
}

/* Verified — soft blue */
.badge-verified {
  background: #dbeafe;
  color: #1d4ed8;
  border: 1.5px solid #93c5fd;
}

/* NIC Verified — matches site brand (Malsara Rose & Wine) */
.nic-verified-badge {
  position: absolute;
  top: 14px;
  left: 16px;
  background: linear-gradient(135deg, #C84B7A 0%, #8B1A3A 100%);
  color: #ffffff !important;
  padding: 5px 12px 5px 9px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.3px;
  box-shadow: 0 2px 8px rgba(200, 75, 122, 0.32);
  z-index: 10;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.nic-verified-badge:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 14px rgba(200, 75, 122, 0.45);
}

.nic-verified-badge .badge-icon {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  vertical-align: middle;
}

.profile-badge.badge-nic-verified,
.badge-nic-verified {
  background: linear-gradient(135deg, #C84B7A 0%, #8B1A3A 100%);
  color: #ffffff !important;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 50px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  box-shadow: 0 2px 8px rgba(200, 75, 122, 0.32);
  border: none;
}

.proposal-actions {
  display: flex;
  gap: 10px;
  margin-top: auto;
}

.proposal-actions form {
  flex: 1;
  display: block;
}

.proposal-actions .btn-view-profile,
.proposal-actions .btn-view-matching-profile {
  flex: 1;
  padding: 12px;
  cursor: pointer;
  width: 100%;
}

.proposal-actions .btn-view-matching-profile {
  margin-top: 0;
}

.btn-favorite {
  width: 45px;
  height: 45px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--white);
  cursor: pointer;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.btn-favorite:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.btn-favorite.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Force header profile button visibility on findproposal page */
.header-actions .btn-primary {
  display: inline-flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* ==================================================
   NEW PROFILE CARD UI (ETHEREAL ESTATE REDESIGN)
   ================================================== */

.profile-card.new-ui {
  background: #FFFFFF;
  border-radius: 24px;
  padding: 24px;
  box-shadow: 0 4px 20px rgba(200, 75, 122, 0.08);
  border: 1px solid rgba(232, 160, 180, 0.15);
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  transition: all 0.3s ease;
}

.profile-card.new-ui:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 30px rgba(200, 75, 122, 0.15);
}

.pc-top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 10;
}

.pc-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 50px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.pc-premium {
  background: linear-gradient(135deg, #F5C800 0%, #E0A800 100%);
  color: #1A0A0A;
  box-shadow: 0 2px 8px rgba(245, 200, 0, 0.3);
}

.pc-featured {
  background: linear-gradient(135deg, #C84B7A 0%, #D4607E 100%);
  color: #FFFFFF;
  box-shadow: 0 2px 8px rgba(200, 75, 122, 0.3);
}

.pc-new {
  background: #FFFFFF;
  color: #C84B7A;
  border: 1px solid rgba(200, 75, 122, 0.2);
  box-shadow: 0 2px 8px rgba(200, 75, 122, 0.1);
}

.pc-header-row {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 10px;
  /* space for absolute top bar */
}

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

.pc-avatar-ring {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  padding: 3px;
  background: linear-gradient(135deg, #F5C800, #FDF0F4);
}

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

.pc-verified-badge {
  position: absolute;
  bottom: 2px;
  right: 2px;
  width: 22px;
  height: 22px;
  background: #0095F6;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
}

.pc-verified-badge svg {
  width: 12px;
  height: 12px;
}

.pc-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  flex: 1;
}

.pc-name {
  font-family: 'Playfair Display', serif;
  font-size: 22px;
  font-weight: 700;
  color: #1A0A0A;
  margin: 0;
  line-height: 1.2;
}

.pc-location {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 13px;
  color: #6B6560;
}

.pc-location svg {
  color: #C84B7A;
}

.pc-demographics {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
}

.pc-demo-pill {
  background: #FDF7F5;
  color: #1A0A0A;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.pc-gold-pill {
  background: #FFFDF0;
  color: #B8935F;
  border: 1px solid #F5E5A4;
}

.pc-gold-pill .dot {
  width: 6px;
  height: 6px;
  background: #F5C800;
  border-radius: 50%;
}

.pc-highlights-section {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.pc-highlights-title {
  font-size: 11px;
  font-weight: 700;
  color: #A8A29E;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

.pc-tags-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pc-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #FDF7F5;
  border: 1px solid #E8E3DC;
  border-radius: 20px;
  font-size: 12px;
  color: #1A0A0A;
  font-weight: 500;
}

.pc-tag svg {
  width: 14px;
  height: 14px;
}

.pc-tag:nth-child(1) svg {
  color: #8A2BE2;
}

.pc-tag:nth-child(2) svg {
  color: #0095F6;
}

.pc-tag:nth-child(3) svg {
  color: #D2691E;
}

.pc-actions-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 8px;
}

.pc-btn-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #FFFFFF;
  border: 1px solid #E8E3DC;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  color: #6B6560;
}

.pc-btn-icon:hover {
  background: #FDF7F5;
}

.pc-btn-fav {
  border-color: #F8BBD0;
  color: #C84B7A;
  font-size: 20px;
  padding: 0;
}

.pc-btn-fav.active {
  background: #C84B7A;
  color: #FFFFFF;
}

.pc-btn-msg {
  border-color: #E8E3DC;
  color: #1A0A0A;
}

.pc-btn-msg svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.pc-btn-view {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #8B1A3A 0%, #D4607E 100%);
  color: #FFFFFF;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(200, 75, 122, 0.25);
}

.pc-btn-view:hover {
  box-shadow: 0 6px 20px rgba(200, 75, 122, 0.4);
  transform: translateY(-2px);
  color: #FFFFFF;
}

.pc-btn-view svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 480px) {
  .pc-header-row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .pc-demographics,
  .pc-tags-row {
    justify-content: center;
  }

  .pc-actions-row {
    flex-wrap: wrap;
  }

  .pc-btn-view {
    width: 100%;
  }
}

/* Mobile Responsive List View */
@media (max-width: 991px) {
  .profiles-grid.list-view .profile-card {
    flex-direction: column !important;
    text-align: center !important;
  }
  .profiles-grid.list-view .profile-avatar {
    margin: 0 auto 15px auto !important;
  }
  .profiles-grid.list-view .profile-name,
  .profiles-grid.list-view .profile-profession {
    text-align: center !important;
  }
  .profiles-grid.list-view .profile-details {
    justify-content: center !important;
    flex-wrap: wrap !important;
  }
  .profiles-grid.list-view .profile-actions {
    flex-direction: row !important;
    width: 100% !important;
    margin-top: 15px !important;
  }
}
